Docsity

Common Protocol Functions - Lecture Slides | EECS 563, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
1
DLC
Victor S. Frost
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-7789
http://www.ittc.ku.edu/
Data Link Control
#10
Chapter 5
2
DLC
Outline
Common protocol functions
DLC functions
¾DLC Framing
¾Error and flow control
¾Performance of DLC
¾Example of a standard DLC protocol-
>HDLC
¾Open loop flow control
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download Common Protocol Functions - Lecture Slides | EECS 563 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

DLC 1

Victor S. Frost

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/

Data Link Control

Chapter 5

Outline

„ Common protocol functions

„ DLC functions

¾ DLC Framing

¾ Error and flow control

¾ Performance of DLC

¾ Example of a standard DLC protocol-

>HDLC

¾ Open loop flow control

DLC 3

Protocol functions

„ Encapsulation

„ Fragmentation and reassembly

„ Connection control

„ Ordered delivery

„ Flow control

„ Error control

„ Addressing

„ Multiplexing

„ Transmission services

Protocol functions

„ EncapsulationÆ adding control

information

¾ Address

¾ Error detection/correction bits

¾ Protocol control

„ Fragmentation and reassembly

¾ Max packet size

DLC 7

Protocol functions

„ Addressing

¾ Different layers contain different addressed, e.g., MAC, IP addresses, and socket

„ Multiplexing

¾ Enables multiple customers to use one “pipe”

  • MAC address allows sharing on LAN
  • In TDM address is the time slot
  • In the internet host id is the IP address

„ Transmission services, e.g., priority and security

¾ 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

¾ Error Control

¾ Flow Control

¾ Error Detection

DLC 9

Framing

„ Character Count

¾ Insert PDU length as first character in the frame.

From: “Computer Networks, 3rd Edition, A.S. Tanenbaum. Prentice Hall, 1996

DLC 10

Framing

„ Flags ¾ Insert special bit patterns, called ‘flags’ at start and end of the frame.

  • 01111110

From: “Computer Networks, 3rd Edition, A.S. Tanenbaum. Prentice Hall, 1996

DLC 13

Required procedures

„ Timers

¾ StartTimer ¾ StopTimer ¾ StartAckTimer ¾ StopAckTimer

„ EnableNetworkLayer

¾ Turn on flow of information from the network layer

„ DisableNetworkLayer

¾ Turn off flow of information from the network layer

Error and Flow Control

Events

„ Networks are Asynchronous

¾ Arrival time of packet and acknowledgments are unknown

„ Arrival of packet and acknowledgments

triggers some action by the protocol

¾ Action is a function of the type of arrival ¾ State of the protocol

„ Examples:

¾ FrameArrival ¾ CksumErr

DLC 15

Protocol 1: The Unrestricted Simplex Protocol

„ Assumptions

¾ One directional information flow

¾ Infinite buffers

¾ No errors

¾ Network Layer always has a packet to

send

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

¾ Finite buffer means that there must be

some way to stop the transmitter from

sending when the buffer is full

DLC 19

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

„ Assumptions

¾ One directional information flow ¾ Network Layer always has a packet to send ¾ Finite receive buffers

¾ Allow errors

„ Data link protocols must address

¾ When to retransmit

¾ What to retransmit

DLC 21

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

  • If no acknowledgment received in 2.1 ms then, „ Packet in error „ Acknowledgment lost

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

DLC 25

Sliding Window Protocols: Assumptions

„ Two directional information flow

„ Network Layer always has a packet to send

„ Finite receive buffers

„ Finite number of bits/sequence number

„ Bit errors

„ Piggybacking

¾ Put Acknowledgments in reverse traffic flow ¾ Increases protocol efficiency ¾ Reduces interrupts

Error and Flow Control Sliding Window Protocols:

„ AdvantageÆ pipeline

„ Why called sliding window

¾ Assume 2 bits/Sequence number

¾ Possible frame numbers 0, 1, 2, 3

Receive ack and advance window

DLC 27

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)

DLC 31

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)

DLC 33

Go-Back-N Protocol

„ Types of sliding window protocols

¾ Go-Back-N

¾ Selective Reject

„ 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

DLC 37

Go-Back-N Protocol

0.83us 22ms

Frame # 53,

Ack for Frame 1

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

DLC 39

Example

„ Case 1: Stop and Wait (N=1)

¾ 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

  • 6.66us ¾ Effective transmission rate is 1000/13.3us ~ 75Mb/s ¾ Efficiency: (75Mb/s)/(150Mb/s) ~ 50.0% efficient

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