Broken Network Simulation
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).
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, 05 Jun 2009 at 03:01:38 UTC/GMT
This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC. (the site is powered by a wiki engine)
(C) Copyright 2008 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved.