diff --git a/testmd.md b/testmd.md new file mode 100644 index 0000000000000000000000000000000000000000..8d497c373851bdfbfe20fb582a4079423b0f93fe --- /dev/null +++ b/testmd.md @@ -0,0 +1,29 @@ +```swift +if packet is standard: + if LUT does not already have source address: + add entry to LUT + if I am destination: + process data in packet + else: + 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 as standard flood +elseif packet is ack: + if LUT does not already have source address: + add entry to LUT + if I am destination: + process acknowledgement + else: + 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 as ack flood +elseif packet is standard flood: + +elseif packet is ack flood + +else: +```