|
OverSim
|
Implements the UDP protocol: encapsulates/decapsulates user data into/from UDP. More...
#include <SimpleUDP.h>
Public Types | |
| enum | delayFaultTypeNum { delayFaultUndefined, delayFaultLiveAll, delayFaultLivePlanetlab, delayFaultSimulation } |
Public Member Functions | |
| void | setNodeEntry (SimpleNodeEntry *entry) |
| set or change the nodeEntry of this module | |
| SimpleUDP () | |
| virtual | ~SimpleUDP () |
| destructor | |
Static Public Attributes | |
| static std::string | delayFaultTypeString |
| static std::map< std::string, delayFaultTypeNum > | delayFaultTypeMap |
Protected Member Functions | |
| void | updateDisplayString () |
| utility: show current statistics above the icon | |
| virtual void | processMsgFromApp (cPacket *appData) |
| process packets from application | |
| virtual void | processUDPPacket (cPacket *udpPacket) |
| virtual void | processUndeliverablePacket (cPacket *udpPacket, cPolymorphic *ctrl) |
| virtual void | sendUp (cPacket *payload, UDPControlInfo *ctrl, SockDesc *sd) |
| virtual void | initialize (int stage) |
| initialise the SimpleUDP module | |
| virtual void | handleMessage (cMessage *msg) |
| virtual int | numInitStages () const |
| returns the number of init stages | |
| void | finish () |
Protected Attributes | |
| int | numQueueLost |
| number of lost packets due to queue full | |
| int | numPartitionLost |
| number of lost packets due to network partitions | |
| int | numDestUnavailableLost |
| number of lost packets due to unavailable destination | |
| simtime_t | delay |
| simulated delay between sending and receiving udp module | |
| simtime_t | constantDelay |
| constant delay between two peers | |
| bool | useCoordinateBasedDelay |
| delay should be calculated from euklidean distance between two peers | |
| double | jitter |
| amount of jitter in % of total delay | |
| bool | enableAccessRouterTxQueue |
| bool | faultyDelay |
| GlobalNodeList * | globalNodeList |
| violate the triangle inequality? | |
| GlobalStatistics * | globalStatistics |
| pointer to GlobalStatistics | |
| SimpleNodeEntry * | nodeEntry |
| nodeEntry of the overlay node this module belongs to | |
Implements the UDP protocol: encapsulates/decapsulates user data into/from UDP.
More info in the NED file.
Definition at line 59 of file SimpleUDP.h.
Definition at line 65 of file SimpleUDP.h.
| SimpleUDP::SimpleUDP | ( | ) |
Definition at line 93 of file SimpleUDP.cc.
|
virtual |
|
protected |
Definition at line 156 of file SimpleUDP.cc.
|
protectedvirtual |
Definition at line 405 of file SimpleUDP.cc.
|
protectedvirtual |
initialise the SimpleUDP module
| stage | stage of initialisation phase |
Definition at line 103 of file SimpleUDP.cc.
|
inlineprotectedvirtual |
returns the number of init stages
Definition at line 138 of file SimpleUDP.h.
|
protectedvirtual |
process packets from application
| appData | the data that has to be sent |
Definition at line 276 of file SimpleUDP.cc.
Referenced by handleMessage().
|
protectedvirtual |
Definition at line 207 of file SimpleUDP.cc.
Referenced by handleMessage().
|
protectedvirtual |
Definition at line 196 of file SimpleUDP.cc.
Referenced by processUDPPacket().
|
protectedvirtual |
Definition at line 185 of file SimpleUDP.cc.
Referenced by processUDPPacket().
| void SimpleUDP::setNodeEntry | ( | SimpleNodeEntry * | entry | ) |
set or change the nodeEntry of this module
| entry | the new nodeEntry |
Definition at line 449 of file SimpleUDP.cc.
Referenced by SimpleUnderlayConfigurator::createNode(), and SimpleUnderlayConfigurator::migrateNode().
|
protected |
utility: show current statistics above the icon
Definition at line 170 of file SimpleUDP.cc.
Referenced by handleMessage().
|
protected |
constant delay between two peers
Definition at line 81 of file SimpleUDP.h.
Referenced by initialize(), and processMsgFromApp().
|
protected |
simulated delay between sending and receiving udp module
Definition at line 79 of file SimpleUDP.h.
|
static |
Definition at line 71 of file SimpleUDP.h.
Referenced by SimpleNodeEntry::getFaultyDelay(), and initialize().
|
static |
Definition at line 64 of file SimpleUDP.h.
Referenced by SimpleNodeEntry::getFaultyDelay(), and initialize().
|
protected |
Definition at line 84 of file SimpleUDP.h.
Referenced by handleMessage(), and initialize().
|
protected |
Definition at line 85 of file SimpleUDP.h.
Referenced by initialize(), and processMsgFromApp().
|
protected |
violate the triangle inequality?
pointer to GlobalNodeList
Definition at line 86 of file SimpleUDP.h.
Referenced by initialize(), and processMsgFromApp().
|
protected |
pointer to GlobalStatistics
Definition at line 87 of file SimpleUDP.h.
Referenced by finish(), initialize(), and SimpleUDP().
|
protected |
amount of jitter in % of total delay
Definition at line 83 of file SimpleUDP.h.
Referenced by initialize(), and processMsgFromApp().
|
protected |
nodeEntry of the overlay node this module belongs to
Definition at line 88 of file SimpleUDP.h.
Referenced by handleMessage(), initialize(), processMsgFromApp(), and setNodeEntry().
|
protected |
number of lost packets due to unavailable destination
Definition at line 78 of file SimpleUDP.h.
Referenced by finish(), initialize(), and processMsgFromApp().
|
protected |
number of lost packets due to network partitions
Definition at line 77 of file SimpleUDP.h.
Referenced by finish(), initialize(), and processMsgFromApp().
|
protected |
number of lost packets due to queue full
Definition at line 76 of file SimpleUDP.h.
Referenced by finish(), initialize(), processMsgFromApp(), and updateDisplayString().
|
protected |
delay should be calculated from euklidean distance between two peers
Definition at line 82 of file SimpleUDP.h.
Referenced by initialize(), and processMsgFromApp().