
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Dan F. Servey Distinguished Professor Electrical Engineering and Computer Science University of Kansas 2335 Irving Hill Dr. Lawrence, Kansas 66045 Phone: (785) 864-4833 FAX:(785) 864- e-mail: [email protected] http://www.ittc.ku.edu/
Chapter 5
Protocol functions
Protocol functions
EncapsulationÆ adding control
information
Fragmentation and reassembly
Protocol functions
¾ Different layers contain different addressed, e.g., MAC, IP addresses, and socket
¾ Enables multiple customers to use one “pipe”
¾ Priority ¾ Security ¾ Other “layer” specific services, e.g., framing
Data Link Layer Introduction
Data Link layer provides a ‘error free’
point-to-point bit pipe for transmission of network layer PDU’s.
Framing
From: “Computer Networks, 3rd Edition, A.S. Tanenbaum. Prentice Hall, 1996
Framing
Flags ¾ Insert special bit patterns, called ‘flags’ at start and end of the frame.
From: “Computer Networks, 3rd Edition, A.S. Tanenbaum. Prentice Hall, 1996
Required procedures
¾ StartTimer ¾ StopTimer ¾ StartAckTimer ¾ StopAckTimer
¾ Turn on flow of information from the network layer
¾ Turn off flow of information from the network layer
Error and Flow Control
Events
¾ Arrival time of packet and acknowledgments are unknown
¾ Action is a function of the type of arrival ¾ State of the protocol
¾ FrameArrival ¾ CksumErr
Protocol 1: The Unrestricted Simplex Protocol
Assumptions
Network Layer
Network Layer
Data Link Layer
Data Link Layer
Error and Flow Control Protocol 2: The Simplex Stop & Wait Protocol: Assumptions
One directional information flow
No errors
Network Layer always has a packet to
send
Finite receive buffers
Protocol 2: The Simplex Stop & Wait Protocol
Network Layer
Network Layer
Data Link Layer
Data Link ACK Layer Channel
Assume Network Layer always has data to send
Error and Flow Control Protocol 3: The Simplex Protocol for a Noisy Channel
¾ One directional information flow ¾ Network Layer always has a packet to send ¾ Finite receive buffers
Protocol 3: The Simplex Protocol for a Noisy Channel
Timeout to determine when to retransmitt
Example:
¾ Assume a 1 ms propagation time ¾ Assume a .1 ms receiver packet processing time ¾ Timeout interval >2.1 ms
Error and Flow Control
Protocol 3: The Simplex Protocol for a Noisy Channel
¾Timeout interval too short
–Duplicate packets
¾Timeout interval too long
–Reduced throughput
Sliding Window Protocols: Assumptions
¾ Put Acknowledgments in reverse traffic flow ¾ Increases protocol efficiency ¾ Reduces interrupts
Error and Flow Control Sliding Window Protocols:
AdvantageÆ pipeline
Why called sliding window
Receive ack and advance window
Sliding Window Protocols:
A B
A to B Data Traffic B to A Ack Traffic
B to A Data Traffic A to B Ack Traffic
Error and Flow Control
Sliding Window Protocols
Transmitter keeps a list of
sequence #’s it can use
¾Sending window
Receiver keeps a list of
sequence #’s it will accept
¾Receiving window
n = # bits/(sequence number)
Sliding Window Protocols: How many frames can be pipelined (1)
Now with # frames in pipline = N= 2 n^ - ¾ 0....6 (7 frames)
Node A sends 0...
Node B receives 0...6 ok
Node B sends Ack
Ack gets lost
Error and Flow Control Sliding Window Protocols: How many frames can be pipelined (2)
Node A times out
Node A retransmitts 0...
But Node B is expecting frame #
Node ignores 0...6 (often will send
a RR frame explicitly telling Node
A it is expecting Frame #7)
Go-Back-N Protocol
Types of sliding window protocols
Focus on which frames to retransmit
Pipeline: send up to N frames before
receiving an acknowledgment
Delete correctly received out of sequence frames
Error and Flow Control
Go-Back-N Protocol: Example
Distance between nodes
= 6600 km
Frame length = 1000 bits
Rate = 1.2Gb/s
Large delay-bandwidth
product network
Go-Back-N Protocol
0.83us 22ms
Error and Flow Control Example
Distance between nodes = 1 km Frame length = 1000 bits
Capacity = 150 Mb/s
No errors Delay-bandwidth product ¾ Assume free space ¾ τ =1000m/c = 3.33 us Æ Access Network ¾ 2 τR= 1000 bits
Example
¾ Frame transmission time = 6.66us ¾ Propagation time = 3.33us ¾ Transmit frame at t=0, ¾ At 6.66 us + 3.33us frame received ¾ At 6.66us + 6.66us the acknowledgment is received, therefore transmitted 1000 bits in 6.66us
Error and Flow Control Example
Case 2: Stop and Wait (N=1) ¾ Reduce capacity to 1.5 Mb/s ¾ Frame transmission time = 666us ¾ Propagation time = 3.33us ¾ Transmit frame at t=0, ¾ At 666 us + 3.33us frame received ¾ At 666us + 6.66us the acknowledgment is received, therefore transmitted 1000 bits in 666us + 6.66us ¾ Effective transmission rate is 1000/672us ~ 1.488 Mb/s ¾ Efficiency: (1.488Mb/s)/(1.50Mb/s) ~ 99.2% efficient