Components to simulate properties of an unreliable network connection. Specifically: out of order delivery, duplication, and loss of packets.
Original author: Tom Gibson (whilst at BBC)
Testing a forward-error correction scheme to cope with an unreliable network:
Pipeline( RateControlledFileReader("sourcefile",rate=1000000), MyForwardErrorCorrector(), Duplicate(), Throwaway(), Reorder(), MyErrorRecoverer(), SimpleFileWriter("receiveddata") ).activate()
These three components all receive data and, respectively, randomly duplicate packets, re-order packets or throw some packets away.
They can be used to simulate the effects of multicast delivery over wireless or a WAN.
These component all receive data on their "inbox" inbox and send it on to their "outbox" outbox. However, they will sometimes tamper with the data in the manners described!
None of these components terminate when sent shutdown messages.
This was used for the development of a simple recovery protocol. The actual version in use replaces the string2tuple and tuple2string code (in sketches in tomg.py, omitted here), with something more robust.
Duplicate() -> new component.
This component passes on data it receives. Sometimes it randomly duplicates items.
Reorder() -> new component
This component passes on data it receives, but will sometimes jumble it up (reordering it).
Throwaway() -> new component.
This component passes on data it receives, but sometimes it doesn't!
Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!
Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.
-- Automatic documentation generator, 19 Oct 2008 at 14:29:09 UTC/GMT