stevelorenz / comnetsemu

A virtual emulator/testbed designed for the book: Computing in Communication Networks: From Theory to Practice (2020)
https://stevelorenz.github.io/comnetsemu/
MIT License
25 stars 21 forks source link

Encoder and Decoder #5

Closed johanneshofer1 closed 3 years ago

stevelorenz commented 3 years ago

Hi Johannes! Thanks for the help.

  1. The encoder should have a parameter to configure the number of redundant packets.
  2. The encoder should use sleep instead of busy waiting :wink:
  3. The decoder should wait for all packets (original + redundant) and use a timeout. The timeout could be set to the 2 * RTT, so just for the worst case (Assume only one packet is one wire, so the worst case). Then if the decoding failed because of the timeout, it should record this round as failed.