Flow control in data link layer vs flow control in transport layer

14,514

Before knowing how the layers are actually controlling the flow via various algorithms, you must know the reason why is it actually necessary.

Flow control in transport layer ensures the delivery of the message globally, as the two points of connection over this protocol are logically connected.

Whereas in data-link layer, the concern is to deliver message locally, as the two points of connection over this protocol are physically connected.

Now, coming upon the algorithms that control flow of a network:

  1. Stop and Wait - This flow control mechanism forces the sender after transmitting a data frame to stop and wait until the acknowledgement of the data-frame sent is received.
  2. Sliding Window - In this flow control mechanism, both sender and receiver agree on the number of data-frames after which the acknowledgement should be sent. As we learnt, stop and wait flow control mechanism wastes resources, this protocol tries to make use of underlying resources as much as possible.

These are the 2 basic algorithms for flow control, whereas others are used for error control mechanism.

TCP uses the sliding window protocol for flow control, the size of which is dependent upon the bandwidth, RTT and errors in packets.

Share:
14,514
Chill3er
Author by

Chill3er

Updated on June 05, 2022

Comments

  • Chill3er
    Chill3er almost 2 years

    I'm trying to understand the OSI layer model.
    I often read that flow control in mainly handelt in Data Link Layer (L2) and Transport Layer (L4). But I cant find what methods thay use.
    Does the Transport layer uses flow control by TCP by useing window mechanism?
    But what/how does the data link layer does flow control?

  • Andy Brown
    Andy Brown almost 7 years
    CSMA/CD for ethernet died years ago when everyone moved to full-duplex communication with direct connections to the switch.
  • dastan
    dastan almost 7 years
    @AndyBrown It's said CSMA/CD as part of IEEE specification still exists in switches, only that it doesn't do anything when you're not using a hub and the switch is on full-duplex.
  • Ron Maupin
    Ron Maupin about 5 years
    Hubs are almost extinct, so CSMA/CD is almost extinct. The latest ethernet standards do not even support CSMA/CD. It does not exist inside switches.