Elsevier

Computer Networks

Volume 35, Issues 2–3, February 2001, Pages 185-201
Computer Networks

Improving explicit congestion notification with the mark-front strategy

Responsible Editor: G. Kesidis
https://doi.org/10.1016/S1389-1286(00)00167-5Get rights and content

Abstract

Delivering congestion signals is essential to the performance of networks. Current TCP/IP networks use packet losses to signal congestion. Packet loss not only reduces TCP performance, but also adds large delay. Explicit congestion notification (ECN) delivers a faster indication of congestion and has better performance. However, current ECN implementations mark the packet from the tail of the queue. In this paper, we propose the mark-front strategy to send an even faster congestion signal. We show that mark-front strategy reduces buffer size requirement, improves link efficiency and provides better fairness among users. Simulation results that verify our analysis are also presented.

Introduction

Delivering congestion signals is essential to the performance of computer networks. In TCP/IP, congestion signals from the network are used by the source to determine the load. When a packet is acknowledged, the source increases its window size. When a congestion signal is received, its window size is reduced [1], [2].

TCP/IP uses two methods to deliver congestion signals. The first method is timeout. When the source sends a packet, it starts a retransmission timer. If it does not receive an acknowledgment within a certain time, it assumes that congestion has happened in the network and the packet has been lost. Timeout is the slowest congestion signal because the source has to wait a long time for the retransmission timer to expire.

The second method is loss detection. In this method, the receiver sends a duplicate ACK immediately on reception of each out-of-sequence packet. The source interprets the reception of three duplicate acknowledgments as a congestion packet loss. Loss detection can avoid the long wait of timeout.

Both timeout and loss detection use packet losses as congestion signals. Packet losses not only increase the traffic in the network but also add large transfer delay. The explicit congestion notification (ECN) proposed in [3], [4] provides a light-weight mechanism for routers to send a direct indication of congestion to the source. It makes use of two experimental bits in the IP header and two in the TCP header. When the average queue length exceeds a threshold, the incoming packet is marked as congestion experienced, with a probability calculated from the average queue length. When the marked packet is received, the receiver marks the acknowledgment using an ECN-Echo bit in the TCP header to send congestion notification back to the source. Upon receiving the ECN-Echo, the source halves its congestion window to help alleviate the congestion.

Many authors have pointed out that marking provides more information about the congestion state than packet dropping [5], [6], and ECN has been proven to be a better way to deliver congestion signals and to exhibit better performance [4], [5], [7].

In most ECN implementations, when congestion happens, the congested router marks the incoming packet that just entered the queue. When the buffer is full or when a packet needs to be dropped, as in random early detection (RED), some implementations, such as the ns simulator [8], have the “drop-from-front” option, as suggested by Yin [9] and Lakshman [10]. A brief discussion of drop-from-front in RED can be found in [11]. However, for packet marking, these implementations still pick the incoming packet and not the front packet. We call this policy “mark-tail”.

In this paper, we propose a simple marking mechanism – the “mark-front” strategy. This strategy marks a packet when the packet is going to leave the queue and the queue length is greater than a predetermined threshold. The mark-front strategy is different from the current mark-tail policy in two ways. First, since the router marks the packet at the time when it is sent, and not at the time when the packet is received, a more up-to-date congestion signal is carried by the marked packet. Second, since the router marks the packet in the front of the queue and not the incoming packet, congestion signals do not undergo queueing delay as do the data packets. In this way, a faster congestion feedback is delivered to the source.

The implementation of this strategy is extremely simple. One only needs to move the marking action from the enqueue procedure to the dequeue procedure and choose the packet leaving the queue instead of the packet entering the queue.

We justify the mark-front strategy by studying its benefits. We find that, by providing faster congestion signals, the mark-front strategy reduces the buffer size requirement at the routers; it avoids packet losses and thus improves the link efficiency when the buffer size in routers is limited. Our simulations also show that mark-front strategy improves the fairness among old and new users and alleviates TCP's discrimination against connections with large round-trip time (RTT).

The mark-front strategy differs from the drop-from-front option in that, when packets are dropped, only implicit congestion feedback can be inferred from timeout or duplicate ACKs; when packets are marked, explicit and faster congestion feedback is delivered to the source.

Gibbons and Kelly [6] suggested a number of mechanisms for packet marking, such as “marking all the packets in the queue at the time of packet loss”, “marking every packet leaving the queue from the time of packet loss until the queue becomes empty”, and “marking packets randomly as they leave the queue with a probability so that later packets will not be lost”. Our mark-front strategy differs from these marking mechanisms in that it is a simple marking rule that faithfully reflects the up-to-date congestion status, while the mechanisms suggested by Gibbons and Kelly either do not reflect the correct congestion status or need sophisticated probability calculations for which no sound algorithm is known.

It is worth mentioning that the mark-front strategy is as effective in high speed networks as in low speed networks. Lakshman and Madhow [12] showed that the amount of drop-tail switches should be at least two to three times the bandwidth-delay product of the network in order for TCP to achieve decent performance and to avoid losses in the slow start phase. Our analysis in Section 4.3 reveals that, in the steady-state congestion avoidance phase, the queue size fluctuates from empty to one bandwidth-delay product. So the queueing delay experienced by packets when congestion happens is comparable to the fixed round-trip time.1 Therefore, the mark-front strategy can save as much as a fixed round-trip time in congestion signal delay, independent of link speed.

This paper is organized as follows. In Section 2, we describe the assumptions for our analysis. The dynamics of queue growth with TCP window control is studied in Section 3. In Section 4, we compare the buffer size requirements of mark-front and mark-tail strategies. In Section 5, we explain why mark-front is fairer than mark-tail. The simulation results that verify our conclusions are presented in Section 6. In Section 7, we remove the assumptions made to facilitate the analysis and apply the mark-front strategy to the RED algorithm. Simulation results show that mark-front has advantages over mark-tail, as revealed by the analysis.

Section snippets

Assumptions

ECN is used together with TCP congestion control mechanisms like slow start and congestion avoidance [2]. When the acknowledgment is not marked, the source follows existing TCP algorithms to send data and increase the congestion window. Upon the receipt of an ECN-Echo, the source halves its congestion window and reduces the slow start threshold. In the case of packet loss, the source follows the TCP algorithm to reduce the window and retransmit the lost packet.

ECN delivers congestion signals by

Queue dynamics with TCP window control

In this section, we study the relationship between the window size at the source and the queue size at the congested router. The purpose is to show the difference between mark-tail and mark-front strategies. Our analysis is made on one connection, but with small modifications, it can also apply to multiple connection cases. Simulation results of multiple connections and connections with different round trip time will be presented in Section 6.

In a path with one connection, the only bottleneck

Buffer size requirement and threshold setting

When ECN signals are used for congestion control, the network can achieve zero packet loss. When acknowledgments are not marked, the source gradually increases the window size. Upon the receipt of an ECN-Echo, the source halves its congestion window to reduce the congestion.

In this section, we analyze the buffer size requirement for both mark-tail and mark-front strategies. The result also includes an analysis on how to set the threshold.

Lock-out phenomenon and fairness

One of the weaknesses of the mark-tail policy is its discrimination against new flows. Consider the time when a new flow joins the network, but the buffer of the congested router is occupied by packets of old flows. In the mark-tail strategy, the packet that just arrived will be marked, but the packets already in the buffer will be sent without being marked. The acknowledgments of the sent packets will increase the window size of the old flows. Therefore, the old flows, which already have a

Simulation results

In order to compare the mark-front and mark-tail strategies, we performed a set of simulations with the ns simulator [8]. We modified the RED algorithm in the ns simulator to deterministically mark the packets when the real queue length exceeded the threshold. The basic simulation model is shown in Fig. 2. A number of sources s1,s2,…,sm are connected to the router r1 by a 10 Mbps links, router r1 is connected to r2 by a 1.5 Mbps link, and destinations d1,d2,…,dm are connected to r2 by 10 Mbps

Application to RED

The analytical and simulation results obtained in the previous sections are based on the simplified congestion detection model that a packet leaving a router is marked if the actual queue size of the router exceeds the threshold. However, RED uses a different congestion detection criterion. First, RED uses average queue size instead of actual queue size. Second, a packet is not marked deterministically, but with a probability calculated from the average queue size.

In this section, we apply the

Conclusion

In this paper, we analyze the mark-front strategy used in ECN. Instead of marking the packet from the tail of the queue, this strategy marks the packet in the front of the queue and thus delivers faster congestion signals to the source. Compared with the mark-tail policy, the mark-front strategy has three advantages. First, it reduces the buffer size requirement at the routers. Second, it provides more up-to-date congestion information to help the source adjust its window in time to avoid

Chunlei Liu received his M.Sc. degree in Computational Mathematics from Wuhan University, China, in 1991. He received his M.S. degrees in Applied Mathematics and Computer and Information Science from the Ohio State University in 1997. He is now a Ph.D. candidate in the Department of Computer and Information Science at the Ohio State University. His research interests include congestion control, quality of service, wireless networks and network telephony. He is a student member of the IEEE and

References (17)

  • V. Jacobson, Congestion avoidance and control, in: Proceedings of the ACM SIGCOMM '88, 1988, pp....
  • W. Stevens, TCP slow start, congestion avoidance, fast retransmit, and fast recovery algorithms, RFC 2001, January...
  • K. Ramakrishnan, S. Floyd, A proposal to add Explicit Congestion Notification (ECN) to IP, RFC 2481, January...
  • S. Floyd

    TCP and explicit congestion notification

    ACM Computer Communication Review

    (1994)
  • J.H. Salim, U. Ahmed, Performance evaluation of Explicit Congestion Notification (ECN) in IP networks, Internet Draft...
  • R.J. Gibbens et al.

    Resource pricing and the evolution of congestion control

    Automatica

    (1999)
  • C. Chen, H. Krishnan, S. Leung, N. Tang, Implementing Explicit Congestion Notification (ECN) in TCP for IPv6, available...
  • UCB/LBNL/VINT Network Simulator - ns (version 2),...
There are more references available in the full text version of this article.

Cited by (37)

  • A new explicit congestion notification scheme for satellite IP networks

    2016, Journal of Network and Computer Applications
    Citation Excerpt :

    Upon reaching the end host (sender), this information will be conveyed from the IP layer to the TCP layer which takes necessary actions. Conventional Mark-Tail ECN scheme and Mark-Front ECN scheme (Liu and Jain, 2001) need about RTT time to notify congestion to the source node. To the contrary, Mark-Reverse ECN scheme needs nearly zero time to notify congestion to the source node if the congestion link is near the source node.

  • Fluid flow approximation of time-limited TCP/UDP/XCP streams

    2014, Bulletin of the Polish Academy of Sciences: Technical Sciences
  • ECN-based congestion probability prediction over hybrid wired-wireless networks

    2014, International Journal of Distributed Sensor Networks
View all citing articles on Scopus

Chunlei Liu received his M.Sc. degree in Computational Mathematics from Wuhan University, China, in 1991. He received his M.S. degrees in Applied Mathematics and Computer and Information Science from the Ohio State University in 1997. He is now a Ph.D. candidate in the Department of Computer and Information Science at the Ohio State University. His research interests include congestion control, quality of service, wireless networks and network telephony. He is a student member of the IEEE and the IEEE Communications Society.

Raj Jain is an active member of the ATM Forum Traffic Management group and has influenced its direction considerably. He is a Fellow of the IEEE and ACM and serves on the editorial boards of Computer Networks, Computer Communications (UK) and the Journal of High Speed Networks. He is the author of two popular books: “FDDI Handbook: High Speed Networking using Fiber and Other Media” published by Addison-Wesley and “The Art of Computer Systems Performance Analysis” published by Wiley. His publications and ATM Forum contributions and can be found at http://www.cis.ohio-state.edu/∼jain/.

This research was sponsored in part by grants from Nokia Corporation, Burlington, MA and NASA Glenn Research Center, Cleveland, OH.

View full text