i am learning the basics.......!

Tuesday, May 06, 2008

Flow control in data link layer

Do we need flow control in datalink layer ?

May be we should have. The example given in switch book is like this: You may be travelling to watch a cricket match and the stadium has enough parking space.. but the road in btw is jammed due to traffic. So even if the parking space is there, it does not help us are we are stuck in traffic.

Similarly TCP has end-end flow control. But it does not detect link layer flow issues fast. Many techniques are used in ethernet for flow control.

In half duplex ethernet some of the techniques used are:
1. send jam signal in the link where u want to throttle the flow
2. or send preamble signal in the link where u want to throttle the flow
3. or start sending the packets before the interframe gap is finished ( so that ur output queue gets priority )

For full duplex ethernet, IEEE has designed MAC control frames - A PAUSE frame is send to start/stop flow.

The link layer techniques to control flow are handy. But it sometimes confuses the upper layer protocols. TCP may not detect the flow issues and will be sending packets.., if link layer flow controls are not there, TCP may detect flow control issues faster and can take remedial actions..

3 comments:

Anonymous said...

Hi,

I was reading ur blog posts and found some of them to be very good.. u write well.. Why don't you popularize it more.. ur posts on ur blog ‘Studying networking’ took my particular attention as some of them are interesting topics of mine too;

BTW I help out some ex-IIMA guys who with another batch mate run www.rambhai.com where you can post links to your most loved blog-posts. Rambhai was the chaiwala at IIMA and it is a site where users can themselves share links to blog posts etc and other can find and vote on them. The best make it to the homepage!

This way you can reach out to rambhai readers some of whom could become your ardent fans.. who knows.. :)

Cheers,
Ray

Anonymous said...

Can anyone recommend the robust MSP utility for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central system network
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anonymous said...

very useful read. I would love to follow you on twitter.

About Me

My photo
Predictably Unpredicatble, lazy, careless, sincere, honest, caring, Trouble maker, emotional, likeable