25.01.2014 Aufrufe

Institut für Kommunikationsnetze und Rechnersysteme - Universität ...

Institut für Kommunikationsnetze und Rechnersysteme - Universität ...

Institut für Kommunikationsnetze und Rechnersysteme - Universität ...

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

– 126 –<br />

min_tag = infinity;<br />

min_congestion_tag = infinity;<br />

next_class = <strong>und</strong>efined;<br />

congestion = false;<br />

for all class identifiers i {<br />

if (LPD is enabled) {<br />

while ((queue i is not empty) &&<br />

(tag of first packet in class i < current time) {<br />

discard first packet in class i queue;<br />

update estimator for class i;<br />

}<br />

}<br />

if (queue i is not empty) {<br />

tag = tag of first packet in class i queue;<br />

if (tag - congestion_margin[i] < current time) {<br />

congestion = true;<br />

congestion_tag = w[i]/current_estimator_value[i];<br />

if (congestion_tag < min_congestion_tag) {<br />

min_congestion_tag = congestion_tag;<br />

next_class = i;<br />

}<br />

}<br />

if (!congestion) {<br />

if (tag < min_tag) {<br />

min_tag = tag;<br />

next_class = i;<br />

}<br />

}<br />

}<br />

}<br />

if (next_class != <strong>und</strong>efined) {<br />

serve first packet in next_class queue;<br />

update estimator for next_class;<br />

}<br />

Bild 5.3: Ablauf der Auswahl des nächsten zu bedienenden Pakets durch WEDD<br />

in Pseudocode-Darstellung<br />

N i<br />

= ( 1 – β) ⋅ N i<br />

' + 1<br />

⎧<br />

⎪ ( 1 – β) ⋅ M<br />

M i<br />

' falls Paket fristgerecht abgearbeitet<br />

i<br />

= ⎨<br />

⎪ ( 1 – β) ⋅ M i ' + 1 falls Frist überschritten<br />

⎩<br />

(5.7)<br />

Für β > 0 ergibt sich damit eine Obergrenze<br />

1<br />

M i<br />

≤ N i<br />

< --<br />

β<br />

(5.8)<br />

die im Fall von N i<br />

gleichzeitig den Grenzwert <strong>für</strong> t → ∞ darstellt. Damit ergibt sich im Grenzfall<br />

<strong>für</strong> Gleichung (5.6):<br />

E i<br />

() t → M i<br />

⋅ β <strong>für</strong> t → ∞<br />

(5.9)

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!