Skip to content
Snippets Groups Projects
Unverified Commit 45f82eed authored by rupumped's avatar rupumped Committed by GitHub
Browse files

finished markdown algorithm?

parent 07642eb9
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,31 @@ elseif packet is ack:
else:
send packet to all ports as ack flood
elseif packet is standard flood:
if LUT does not already have source address:
add entry to LUT
if I am destination:
process data in packet
else:
if I have seen this packet before:
return
increment hop count
if LUT has destination address:
send packet to port which minimizes C(hops, buffer) = hops + \lambda*buffer over all ports
else:
send packet to all ports
elseif packet is ack flood
if LUT does not already have source address:
add entry to LUT
if I am destination:
process acknowledgement
else:
if I have seen this packet before:
return
increment hop count
if LUT has destination address:
send packet to port which minimizes C(hops, buffer) = hops + \lambda*buffer over all ports
else:
send packet to all ports
else:
write buffer depth to LUT
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment