Protocol Controls: by Dr. Piya Techateerawat
Protocol Controls: by Dr. Piya Techateerawat
Piya Techateerawat
Protocol Controls
Basic Flow Control
Signaling Frame-Oriented Control
Protocol Controls
Basic Flow Control
Signaling Frame-Oriented Control
Signaling
DTE-DCE Flow Control
There is DTR and DST lines to indicate the readiness DTE send to DCE by
1. RTS (Request To Send) 2. Wait for CTS (Clear To Send)
Signaling
X-ON/X-OFF
In ASCII character defines DC3[19] and DC1[17] They are X-OFF (DC3) and X-ON (DC1) X-OFF is a signal that use when buffer is filling up so sender will stop sending. X-ON is signal that use to resume the transmission. Note: There is delay when sending X-OFF so generally receiver sends X-OFF signal when buffer is reached the threshold.
Signaling
The simple example is
Sender Receiver DATA DATA .. DATA
Buffers filling up, please stop Sender DATA DATA .. DATA Receiver
Receiver
Protocol Controls
Basic Flow Control
Signaling Frame-Oriented Control
Frame-Oriented Control
X-ON/X-OFF is byte oriented and asynchronous communications. (Can pause at any given byte) Synchronous communication are frame oriented and require more organization. Generally, these protocols send as a large piece of data. So buffer must able to store the whole frame.
Unrestricted Protocol
This protocol is an example that assumes receiver has un limited capacity and fast enough so the buffer space is always available. This is count as easiest protocol where it does not consider problem on flow control. Text book give an example as post office with normal mail.
Protocol Efficiency
Channel Utilization R = transmission rate (e.g. 10 Mbps) S = signal speed (e.g. 200 meter per sec) D = distance between the sender and receiver (e.g. 200 meters) T = time to create one frame (e.g. 1 sec) F = number of bits in a frame (e.g. 200) N = number of data bits in a frame (e.g. 160) A = number of bits in an acknowledgement (e.g. 40)
Protocol Efficiency
Time (UP) = T + F/R Time (SWP)= 2* (T+D/S) + (F+A)/R P (UP) = 100 * (F/R)/ (T+ (F/R)) P (SWP) = 100 * (F/R)+ (D/S) 2*(T+D/S) + (F+A)/R Effective data rate (UP) = N/(T+F/R) Effective data rate (SWP) = N 2*(T+D/S) + (F+A)/R UP:- Unrestricted Protocol SWP:- Stop and Wait Protocol
Protocol Controls
Basic Flow Control
Signaling Frame-Oriented Control
Acknowledged
Protocol Controls
Basic Flow Control
Signaling Frame-Oriented Control
Frame Format
Protocol sends and receive frame which both must be understand. Source | Dest | No. | ACK| Type | .. Data.. | CRC
Protocol Controls
Basic Flow Control
Signaling Frame-Oriented Control
Go-Back-n Protocol
Protocol Controls
Basic Flow Control
Signaling Frame-Oriented Control
R = transmission rate (e.g. 10 Mbps) S = signal speed (e.g. 200 meter per sec) D = distance between the sender and receiver (e.g. 200 meters) T = time to create one frame (e.g. 1 sec) F = number of bits in a frame (e.g. 200) N = number of data bits in a frame (e.g. 160) A = number of bits in an acknowledgement (e.g. 40) W = number of frames in the window
Protocol Controls
Basic Flow Control
Signaling Frame-Oriented Control
Protocol Controls
Basic Flow Control
Signaling Frame-Oriented Control
Combined station
It acts as both primary and secondary station.
FCS
16 or 32
| Flag
8
Protocol Controls
Basic Flow Control
Signaling Frame-Oriented Control
Reference
http://www.simplesat.co.uk/images/rs%20232.jpg @ 17 Nov 2008 http://www.tutorialsweb.com/networking/tcpip/images/Fig10_SlidingWindow.jpg @ 17 NOV 2008 http://astro.temple.edu/~stafford/sp05/cis320/lecture/chap3/deluxecontent_files/03-21.jpe@17 NOV 2008 http://gaia.cs.umass.edu/cs653-1997/notes/ch5/Image4.gif @ 17 Nov 2008 http://www.ecst.csuchico.edu/~sim/547/Old547/notes/NOTE9_1_files /image002.jpg @ 17 Nov 2008 http://ckp.made-it.com/bisync.html@ 17 Nov 2008