Skip to main content

Unstructured Thoughts and Comments

The further down a route a datagram traverses before being clobbered the greater the waste of network resources. SQs which do not destroy the datagram referred to are better than ones that do if return path resources are available.

Any fix must be implementable piecemeal. A fix can not be installed in all or most nodes at one time. The SQuID algorithm fulfills this requirement. It could be implemented, installed in one location, and used effectively.

If it can be shown that by using the new algorithm effective throughput can be increased over implementations which do not implement it that may well be effective impetus to get vendors to implement it.

Once a source host has an established average minimum inter-datagram delay to a destination (see Appendix A), this information should be stored across system restarts. This value might be used each time data is sent to the given host as a minimum inter-datagram delay value.

Window closing algorithms reduce the average inter-datagram delay and the burst size but do not affect the minimum inter-datagram spacing by TCP.

Currently an IP gateway node can know if it is in a critical path because its queues stay high or keep building up. Its optimum queue size is one because it always has something to do and the through node delay is at a minimum. It is very important that the gateway at the critical path not so discourage data flow that its queue size drops to zero. If the gateway tosses datagrams this stops data flow for TCP for a while (as described in Observed Results above). This argues for the gateway algorithm described above which SQs but does not toss datagrams unless necessary. Optimally we should try to have a queue size somewhat larger than 1 but less than say 50% of the max queue size. Large queues lead to large delay.

TCP's SRTT is made artificially large by introducing delay at IP but the perceived round trip time variance is probably smaller allowing a smaller Beta value for the timeout value.

So that a decrease timer is not needed for the "D" decrease function, upon the next sent datagram to a delayed destination just decrease the delay by the amount of time since we last did this divided by the decrease timer interval. An alternate algorithm would be to decrease it by only one decrease unit amount if more than the timer interval has gone by. This eliminates the problem caused by the delay, "D", dwindling away if we stop sending for a while. The longer we send using this "D", the more likely it is that it is too large a delay and the more we should decrease it.

It is better for the network and the sender for our introduced delay to be a little on the high side. It minimizes the chances of getting a datagram clobbered by sending it into a congested gateway. A lost datagram scenario described above showed that one lost datagram can reduce our effective delay by one to two orders of magnitude temporarily. Also if the delay is a little high, the net is less stressed and the queues get smaller, reducing through network delay.

The RTT experienced at a given time verses the minimum RTT possible for the given route does give a good measure of congestion. If we ever get congestion control working RTT may have little to do with the amount of congestion. Effective throughput when compared with the possible throughput (or some other measure) is the only real measure of congestion.

Slow startup of TCP is a good thing and should be encouraged as an additional mechanism for alleviating network overload.

The network dynamics tends to bunch datagrams. If we properly space data instead of bunching it like windowing techniques to control overflow of queues then greater throughput is accomplished because the absolute rate we can send is pacing our sending not the RTT. We eliminate "stochastic bunching" [6].

The longer the RTT the more network resources the data takes to traverse the net.

Should "fair queuing" say that a longer route data transfer should get less band width than a shorter one (since it consumes more of the net)? Being fair locally on each node may be unfair overall to datagrams traversing many nodes.

If we solve congestion problems today, we will start loading up the net with more data tomorrow. When this causes congestion in a year will that type of congestion be harder to solve than todays or is it not our problem? John Nagle suggests "In a large net, we may well try to force congestion out to the fringes and keep the interior of the net uncongested by controlling entry to the net. The IMP-based systems work that way, or at least used to. This has the effect of concentrating congestion at the entrance to the long-haul system. That's where we want it; the Source Quench / congestion window / fair queuing set of strategies are able to handle congestion at the LAN to WAN bottleneck [7]. Our algorithm should try to push the network congestion out to the extremities and keep the interior network congestion free.

Use of the algorithm is aesthetically appealing because the data is sitting in our local queue instead of consuming resources inside the net. We give data to the network only when it is ready to accept it.

An averaged minimum inter-datagram arrival value will give a measure of the network bottleneck speed at the receiver. If the receiver does not defer or batch together acks the same would be learned from the inter-datagram arrival time of the acks. A problem is that IP doesn't have knowledge of the datagram contents. However IP does know from which host a datagram comes.

If SQuID limits the size of its pre-net buffering properly (causes back-pressure to TCP) then artificially high RTT measurements would not occur.

TCP might, in the future, get a way to query IP for the current introduced delay, D, for a given destination and if the value is too excessive abort or not start a session.

With the new algorithm TCP could have an arbitrarily large window to send into without fear of over running queue sizes in intermediate nodes (not that any TCP ever considered having this fear before). Thus it could have a window size which would allow it to always be sending; keeping the pipe full and seldom getting in the stop-and-wait mode of sending. This presupposes that the local IP is able to cause some sort of back pressure so that the local IPs queues are not over run. TCP would still be operating in the burst mode of sending but the local IP would be sending a datagram for the TCP as often as the network could accept it keeping the data flow continuous though potentially slow.

Experience implementing protocols suggests avoiding timers in protocols whenever possible. IP, as currently defined, does not use timers. The SQuID algorithm uses two at the IP level. A way to eliminate the introduced delay decrease timer is to decrease the D value when we check the send queue for data to send. We would decrease "D" by one "J" unit if "S" time, or more, has elapsed. The other timer is not so easily eliminated. If the IP implementation is periodically awakened to check for work to do, it could check the time stamps of the head of the queues to see if any datagrams have waited long enough. This would mean we would necessarily wait too long before sending, but it may not be too large of a variance from our desired rates. The additional delay would help congestion and reduce our chances of SQ. Another option is setting a real timer which is say 25-50% too large and hope that our periodic work in IP will allow us to notice a datagram is delayed enough, and send it. Upon sending the datagram we would cancel the timer, avoiding the timer interrupt and environment swap. In other implementations the communications interface or the link level protocol may be able to provide the timing needed without interrupts to the main processor.

Background tasks like some file transfers could query IP for the latest delay characteristics for a given destination to determine if it is appropriate to consume network resources now or if it would be better to wait until later.

We should consider what would happen if IP, using the SQuID algorithm, and TCP both introduced delay between the datagrams. If TCPs delay was greater than IP's, then when IP got the datagrams it would forward them immediately as described in the algorithm above. This is because when the IP send queue is empty and it has been at least as long as IP wants the higher level protocol, TCP, gets one free (no delay) send. Note also that IP will be decreasing the amount of delay it wants introduced because of the successful transmissions without SQs. This would affect other protocols who might also send to the same destination. If TCP sends too quickly then IP will protect the network from its indiscretion as described in the basic algorithm however TCPs round trip time estimates will be much closer to reality. A lost datagram will thus be detected more quickly. If TCP also uses windowing to limit its sending rate, it might, because of its success with a smaller window, increase the window size increasing TCPs efficiency.

As this algorithm is implemented everywhere, the SQ Keep (SQK) and SQ Low Water (SQLW) queue level percentages should be dropped to reduce queue sizes and thus the through net delay. The percentage we lower SQK and SQLW to should be adjusted based upon the percentage of time the queue is empty. The more the queue is empty the more likely it is that the node is discouraging data flow too much. The more time the queue is not empty but not too full, the more likely it is the node is not excessively discouraging data flow. How uniform the queue size is, is a measure of how well the network citizens are behaved.

As the congestion is pushed to the sources, gateways which are bottlenecks can more easily detect someone not playing by the rules (sending datagrams in bursts) and deal with the offender.