24.11.2012 Views

Traffic Management for the Available Bit Rate (ABR) Service in ...

Traffic Management for the Available Bit Rate (ABR) Service in ...

Traffic Management for the Available Bit Rate (ABR) Service in ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPENDIX B<br />

THE OSU SCHEME: PSEUDO CODE<br />

B.1 The Source Algorithm<br />

There are four events that can happen at <strong>the</strong> source adapter or Network Interface<br />

Card (NIC). These events and <strong>the</strong> action to be taken on <strong>the</strong>se events are described<br />

below.<br />

1. Initialization:<br />

TCR Initial Cell <strong>Rate</strong>�<br />

Averag<strong>in</strong>g Interval Some <strong>in</strong>itial value�<br />

IF (BECN Option) THEN Time Already Acted 0�<br />

2. A data cell or cell burst is received from <strong>the</strong> host.<br />

Enqueue <strong>the</strong> cell(s) <strong>in</strong> <strong>the</strong> output queue.<br />

3. The <strong>in</strong>ter-cell transmission timer expires.<br />

IF Output Queue NOT Empty THEN dequeue <strong>the</strong> rst cell and transmit�<br />

Increment Transmitted Cell Count�<br />

Restart Inter Cell Transmission Timer�<br />

389

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!