Traditionally, the only way to inform sending hosts that there was congestion on the network and that the hosts should slow their transmission rates was by dropping TCP packets.
RFC 3168, however, defined a new and more efficient way that the network could communicate congestion to sending hosts, namely the “The Addition of Explicit Congestion Notification (ECN) to IP.” By marking the final two bits of the ToS byte of the IP header, devices can communicate to each other and to endpoints that they are experiencing congestion. These two bits have been defined as follows:
- ECN-capable Transport (ECT) bit: This bit indicates whether the device and the transport protocol supports ECN.
Figure 1 shows the location of the ECN bits in the TOS byte of an IP packet header.
During periods of congestion, WRED/DSCP-based WRED drops packets when the average queue length exceeds a specific threshold value. ECN is an extension to WRED, such that ECN marks packets, instead of dropping them, to communicate the existence of congestion when the average queue length exceeds a specific threshold value. Routers configured with the WRED ECN feature use this marking as a signal to application endpoints that the network is congested. This way, TCP transmission rates can be adjusted by the application endpoints without dropping packets, (or at least with dropping far fewer packets).
WRED ECN is enabled with the ecn keyword with the random-detect command. WRED ECN can be enabled by itself or in conjunction with WRED or DSCP-based WRED (as shown in Example 1).
No comments:
Post a Comment