Ethernet flow control

Short description: Technique to suspend transmission to avoid congestion

Wireshark screenshot of an Ethernet pause frame

Ethernet flow control is a mechanism for temporarily stopping the transmission of data on Ethernet family computer networks. The goal of this mechanism is to avoid packet loss in the presence of network congestion.

The first flow control mechanism, the pause frame, was defined by the IEEE 802.3x standard. The follow-on priority-based flow control, as defined in the IEEE 802.1Qbb standard, provides a link-level flow control mechanism that can be controlled independently for each class of service (CoS), as defined by IEEE P802.1p and is applicable to data center bridging (DCB) networks, and to allow for prioritization of voice over IP (VoIP), video over IP, and database synchronization traffic over default data traffic and bulk file transfers.

## Contents

* 1 Description
* 1.1 Pause frame
* 1.2 Issues
* 2 Subsequent efforts
* 2.1 Congestion management
* 2.2 Priority flow control
* 3 See also
* 4 References
* 5 External links

## Description

A sending station (computer or network switch) may be transmitting data faster than the other end of the link can accept it. Using flow control, the receiving station can signal the sender requesting suspension of transmissions until the receiver catches up. Flow control on Ethernet can be implemented at the data link layer.

The first flow control mechanism, the pause frame, was defined by the Institute of Electrical and Electronics Engineers (IEEE) task force that defined full duplex Ethernet link segments. The IEEE standard 802.3x was issued in 1997.[1]

### Pause frame

An overwhelmed network node can send a pause frame, which halts the transmission of the sender for a specified period of time. A media access control (MAC) frame (EtherType 0x8808) is used to carry the pause command, with the Control opcode set to 0x0001 (hexadecimal).[1] Only stations configured for full-duplex operation may send pause frames. When a station wishes to pause the other end of a link, it sends a pause frame to either the unique 48-bit destination address of this link or to the 48-bit reserved multicast address of 01-80-C2-00-00-01.[2]: Annex 31B.3.3 The use of a well-known address makes it unnecessary for a station to discover and store the address of the station at the other end of the link.

Another advantage of using this multicast address arises from the use of flow control between network switches. The particular multicast address used is selected from a range of address which have been reserved by the IEEE 802.1D standard which specifies the operation of switches used for bridging. Normally, a frame with a multicast destination sent to a switch will be forwarded out to all other ports of the switch. However, this range of multicast address is special and will not be forwarded by an 802.1D-compliant switch. Instead, frames sent to this range are understood to be frames meant to be acted upon only within the switch.

A pause frame includes the period of pause time being requested, in the form of a two-byte (16-bit), unsigned integer (0 through 65535). This number is the requested duration of the pause. The pause time is measured in units of pause quanta, where each quanta is equal to 512 bit times.

By 1999, several vendors supported receiving pause frames, but fewer implemented sending them.[3][4]

### Issues

One original motivation for the pause frame was to handle network interface controllers (NICs) that did not have enough buffering to handle full-speed reception. This problem is not as common with advances in bus speeds and memory sizes. A more likely scenario is network congestion within a switch. For example, a flow can come into a switch on a higher speed link than the one it goes out, or several flows can come in over two or more links that total more than an output link's bandwidth. These will eventually exhaust any amount of buffering in the switch. However, blocking the sending link will cause all flows over that link to be delayed, even those that are not causing any congestion. This situation is a case of head-of-line (HOL) blocking, and can happen more often in core network switches due to the large numbers of flows generally being aggregated. Many switches use a technique called virtual output queues to eliminate the HOL blocking internally, so will never send pause frames.[4]

## Subsequent efforts

### Congestion management

Another effort began in March 2004, and in May 2004 it became the IEEE P802.3ar Congestion Management Task Force. In May 2006, the objectives of the task force were revised to specify a mechanism to limit the transmitted data rate at about 1% granularity. The request was withdrawn and the task force was disbanded in 2008.[5]

### Priority flow control

Ethernet flow control disturbs the Ethernet class of service (defined in IEEE 802.1p), as the data of all priorities are stopped to clear the existing buffers which might also consist of low-priority data. As a remedy to this problem, Cisco Systems defined their own priority flow control extension to the standard protocol. This mechanism uses 14 bytes of the 42-byte padding in a regular pause frame. The MAC control opcode for a Priority pause frame is 0x0101. Unlike the original pause, Priority pause indicates the pause time in quanta for each of eight priority classes separately.[6] The extension was subsequently standardized by the Priority-based Flow Control (PFC) project authorized on March 27, 2008, as IEEE 802.1Qbb.[7] Draft 2.3 was proposed on June 7, 2010. Claudio DeSanti of Cisco was editor.[8] The effort was part of the data center bridging task group, which developed Fibre Channel over Ethernet.[9]

## See also

* Explicit Congestion Notification
* PHY-Level Collision Avoidance

## References

1. ↑ 1.0 1.1 IEEE Standards for Local and Metropolitan Area Networks: Supplements to Carrier Sense Multiple Access with Collision Detection (CSMA/CD) Access Method and Physical Layer Specifications - Specification for 802.3 Full Duplex Operation and Physical Layer Specification for 100 Mb/S Operation on Two Pairs of Category 3 or Better Balanced Twisted Pair Cable (100BASE-T2). Institute of Electrical and Electronics Engineers. 1997. doi:10.1109/IEEESTD.1997.95611. ISBN 978-1-55937-905-2. http://ieeexplore.ieee.org/servlet/opac?punumber=9536.
2. ↑ (PDF) IEEE Standard for Ethernet. IEEE Standards Association. 2018-08-31. doi:10.1109/IEEESTD.2018.8457469. ISBN 978-1-5044-5090-4. https://ieeexplore.ieee.org/servlet/opac?punumber=8457467. Retrieved 2022-11-29.
3. ↑ Ann Sullivan; Greg Kilmartin; Scott Hamilton (September 13, 1999). "Switch Vendors pass interoperability tests". Network World: pp. 81–82. https://books.google.com/books?id=0Q4EAAAAMBAJ&pg=PA82.
4. ↑ 4.0 4.1 "Vendors on flow control". Network World Fusion. September 13, 1999. http://www.networkworld.com/netresources/0913flow2.html. Vendor comments on flow control in the 1999 test.
5. ↑ "IEEE P802.3ar Congestion Management Task Force". December 18, 2008. https://grouper.ieee.org/groups/802/3/ar/.
6. ↑ "Priority Flow Control: Build Reliable Layer 2 Infrastructure". White Paper. Cisco Systems. June 2009. http://www.cisco.com/en/US/prod/collateral/switches/ps9441/ps9670/white_paper_c11-542809.pdf.
7. ↑ IEEE 802.1Qbb
8. ↑ "IEEE 802.1Q Priority-based Flow Control". Institute of Electrical and Electronics Engineers. June 7, 2010. http://www.ieee802.org/1/pages/802.1bb.html.
9. ↑ "Data Center Bridging Task Group". Institute of Electrical and Electronics Engineers. June 7, 2010. http://www.ieee802.org/1/pages/dcbridges.html.

## External links

* "Ethernet Media Access Control - PAUSE Frames". TechFest Ethernet Technical Summary. 1999. http://www.techfest.com/networking/lan/ethernet3.htm#3.2.1.
* Tim Higgins (November 7, 2007). "When Flow Control is not a Good Thing". Small Net Builder. https://www.smallnetbuilder.com/lanwan/lanwan-features/30212-when-flow-control-is-not-a-good-thing.
* Linux Tool for generating flow control PAUSE frames
* Python Tool to Generate PFC Frames
* "Ethernet Flow Control". Topics in High-Performance Messaging. http://www.29west.com/docs/THPM/thpm.html#ETHERNET-FLOW-CONTROL.

* v
* t
* e

Ethernet family of local area network technologies

Speeds|

* 10 Mbit/s
* 100 Mbit/s
* 1 Gbit/s
* 2.5 and 5 Gbit/s
* 10 Gbit/s
* 25 and 50 Gbit/s
* 40 and 100 Gbit/s
* 200 and 400 Gbit/s

General|

* Physical layer
* Autonegotiation
* EtherType
* Flow control
* Frames
* Jumbos

Organizations|

* IEEE 802.3
* Ethernet Alliance

Media|

* Twisted pair
* Coaxial
* First mile
* 10G-EPON

Historic|

* CSMA/CD
* StarLAN
* 10BROAD36
* 10BASE-FB
* 10BASE-FL
* 10BASE5
* 10BASE2
* FOIRL
* 100BaseVG
* LattisNet
* Long Reach

Applications|

* Audio
* Carrier
* Data center
* Energy Efficiency
* Industrial
* Metro
* Power
* Synchronous

Transceivers|

* MAU
* GBIC
* SFP/SFP+/QSFP/QSFP+/OSFP
* XENPAK
* XFP
* CFP

Interfaces|

* AUI
* MDI
* MII
* GMII
* XGMII
* XAUI

* Category
* Commons

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Ethernet flow control. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Ethernet_flow_control&oldid=4150716"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template