Broken Network SimulationComponents 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) Example UsageTesting a forward-error correction scheme to cope with an unreliable network: Pipeline( RateControlledFileReader("sourcefile",rate=1000000), MyForwardErrorCorrector(), Duplicate(), Throwaway(), Reorder(), MyErrorRecoverer(), SimpleFileWriter("receiveddata") ).activate() Duplicate, Throwaway, ReorderThese 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. More detailsThese 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. HistoryThis 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. Kamaelia.Internet.Simulate.BrokenNetwork.Duplicateclass Duplicate(Axon.Component.component)Duplicate() -> new component. This component passes on data it receives. Sometimes it randomly duplicates items. Methods defined hereWarning! You should be using the inbox/outbox interface, not these methods (except construction). This documentation is designed as a roadmap as to their functionalilty for maintainers and new component developers. Kamaelia.Internet.Simulate.BrokenNetwork.Reorderclass Reorder(Axon.Component.component)Reorder() -> new component This component passes on data it receives, but will sometimes jumble it up (reordering it). Methods defined hereWarning! You should be using the inbox/outbox interface, not these methods (except construction). This documentation is designed as a roadmap as to their functionalilty for maintainers and new component developers. Kamaelia.Internet.Simulate.BrokenNetwork.Throwawayclass Throwaway(Axon.Component.component)Throwaway() -> new component. This component passes on data it receives, but sometimes it doesn't! Methods defined hereWarning! You should be using the inbox/outbox interface, not these methods (except construction). This documentation is designed as a roadmap as to their functionalilty for maintainers and new component developers. FeedbackGot 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 |
Kamaelia
is an open source project originated from and guided by BBC
Research. For more information browse the site or get in
contact.
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.