3

Let us say we have switch with multiple gigabit interfaces and there is two machines connected to that switch, one with gigabit NIC and one with 100 mbps NIC and we start copying file from the gigabit machine to the fast ethernet machine. The file copy speed will be maximum 100 mbps but how the 1 gbps machine will know about the second party speed and send slower? Is it through TCP messages? And in case we are sending ICMP/UDP packets what will happen?

  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can provide your own answer and accept it. – Ron Maupin Aug 7 '17 at 16:37
3

Fundamentally, if the switch can only forward packets at 100M, then the switch buffers will overflow and drop packets.

If you're using TCP, the sender will react to no ACKs by slowing down until an equilibrium (more or less) is reached.

3

If TCP is in use and Ethernet flow control is not the following will happen.

  1. The sender will start sending packets, initially slowly but then increasing the rate over time.
  2. When the data rate gets too high the packet buffer on the switch will fill up and a packet will be dropped.
  3. The sender will then back off the data rate, the rate on the line will remain around the capacity of the line gradually increasing until a packet is dropped and then backing off again.

Other protocol combinations may vary. In some cases large volumes of packets may end up being dropped by the switch.

The first and most commonly implemented flow control system for Ethernet used "pause frames". Pause frames were intended as a means of implementing "back pressure" within the Ethernet network so that switch buffers did not overflow as the speed of sending nodes was limited to what the downstream devices could tag. Unfortunately they created problems where one congested flow could cause blocking of other uncongested flows, so they are often disabled in practice.

  • I would argue that flow control is not commonly implemented, except perhaps in storage networks. – Ron Trunk Apr 11 '17 at 18:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.