Docsity

DLL Framing - Computer Networks - Lecture Slides, Slides of Computer Networks

Partial preview of the text

Download DLL Framing - Computer Networks - Lecture Slides and more Slides Computer Networks in PDF only on Docsity!

Data Link Layer

• Study of algorithms for achieving reliable,

efficient communication between twoadjacent machines at DLL.

• adjacent - two machines physically

connected using a communication channelthat acts like a wire.

•^

issues

- bits should be delivered in the

same order, they are sent.

Data Link Layer

• What is so difficult?

communication circuits •^

introduce errors (error control)

-^

introduce propagation delay

-^

circuits have a finite data rate

  • fast sender/ slow receiver
    • Not all machines have the same speed

DLL functions

• determines the bits of the physical layer that

make up a frames.

• deal with transmission error • regulate the flow of frames – slow receiver

are not swamped by fast senders

• Assume a virtual circuit from source to

destination at the DLL

Data Link Layer Functions

Virtual circuit

Unacknowledge Connectionless

Service

-^

source machine sends independent frames to thedestination machine^ – w/o destination machine acknowledging them.^ – no connection established beforehand or released

afterwards.

  • a frame lost, no efforts to recover it. – appropriate when error rate is low, recovery at higher

layer.

  • appropriate for real time system - speech – better never

than late!

Acknowledged Connectionless

Service

  • no connection used but each frame

individually added.

  • sender knows whether frame received safely

or not.

  • useful over unreliable links – wireless links! • Acknowledged service: only optimise

Transport service, not a requirement.

Primary Tasks of DLL

• Framing: • Insert time gaps between frames

  • LANs do not guarantee timing

Bits Adapters

Primary Functions of DLL

• Frame identified by begin and end bit

patterns

detection a challenge

packet

Frame end

Frame Begin

Framing using Character Count

• In figure

frame

Wrong charlength fornext frame

hr count

error frame!

received wrongly

Correctframe

Docsity.com

Framing using Character Count

• Issues: • Ask for retransmission of what?

  • which chars to transmit – duplication – where to start

Framing using Character Stuffing • What if data contains DLE

  • Example DLE

• STX A

DLE

B

DLE

ETX

• Escape the escape character

• DLE

STX

A

DLE

DLE

B

DLE

ETX

• Drawbacks:

  • Character based
    • Frames occur ONLY at character boundaries

Framing using Bit Stuffing

• Allow arbitrary length frames

  • each frame begins and ends with a flag byte – 01111110

•^

whenever data contains 5 consecutive onesinsert 0

Framing Protocols

•^

BISYNC & PPP – use character stuffing

•^

DECNET DDCMP – count field

•^

HDLC – High Level Data Link Control^ –

Bit stuffing using^ Flag byte

Header

CRC

EndingSequence

Body

P-P-P Links

• Uses flag byte

Flag

Add

ctrl

Protocol

variable

Checksum

Flag

IP/IPX

LCP – Link Control Protocolseveral field are negotiated: escape sequences

8