

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Goal: Implement unreliable rate-controlled message delivery to neighbors.
DUE: March 14. late deadline will be Monday, March 17; you have only one late deadline to play with.
This project extends the previous project by providing rate-controlled message transmission. We’ll add a command called sendmsg^1 that will inject a message into the network when doing so will not exceed a rate limit. The rate-control requirement ensures that messages from a host do not swamp its neighbors or the network. Because the service runs over UDP (over IP), without any retransmission, it remains unreliable. The rate control is the so-called “leaky bucket” algorithm. Water (packets) pours into a leaky bucket (queue). When the bucket has water, it leaks steadily (sends at fixed rate). If the incoming water flow is so fast that it fills the bucket (queue is filled), water spills out (packets are dropped).
The sendmsg service:
When sendmsg is invoked, it does the following in sequence:
In addition to the requirements of P2, P3 should:
At the end of this assignment, you should understand: