[net2-wg] routing protocols on ..

Philip Levis pal at cs.stanford.edu
Thu Jan 19 11:56:13 PST 2006


On Wed, 2006-01-18 at 21:56 -0800, Philip Levis wrote:
> On Jan 18, 2006, at 12:50 PM, Philip Levis wrote:
> 
> > The T2 WG agreed today with the net2 WG recommendations of fair
> > queueing, etc. I should  be committing the components today. The
> > document to look at is TEP 116: Packet Protocols.
> 
> I wasn't able to finish the components today. There were a few corner  
> cases on the queue I wanted to handle properly (e.g., not suffering a  
> task latency when sending on an empty queue and signaling sendDone  
> *after* submitting the next send). All of that aside, you can code  
> against the components and interfaces specified in TEP 116. I'll  
> definitely check them in tomorrow (I think I have ~1 hour of coding  
> left, + ~1 hour debugging).
> 
> The current implementation uses a round-robin queue. Basically, it  
> cycles through the possible queue entries until it finds a pending  
> packet, starting with the index of the last packet sent. This is also  
> fair queueing (there's one packet per entry), but does not preserve a  
> FIFO ordering. The advantage is that it saves n+1 bytes of RAM, where  
> n is the number of clients. Even for 20 clients, cycling through the  
> array shouldn't much more than 240 cycles, which is less than 0.1% of  
> a packet time.
> 
> I'll look into a fcfs implementation once I check in the RRobin.

The components are now checked in.

Phil




More information about the net2-wg mailing list