TCPApp (which sends and receives a "file" over the link), and a PingApp (which generates ICMP echo requests and replies). To simulate this network, you only need three files:
chmod 700 file-sender-receiver).
omnetpp.ini file contains plenty of configuration parameters for the TCP and Ping Applications. The "dummy" executable file is interesting: It only contains a single line: $HOME/oppsim/INET/bin/INET $*. That's really it. OMNeT++ magically runs our little TCP/IP network when we execute this (note that you need to adjust the directory pointers in the files if you do not use my directory organization).
So far so good. Let's run the network, and see some results: ./file-sender-receiver. Note the absence of the make process! No need to compile any C++ code since the INET Framework code is already compiled, and we use dynamic loading method.

omnetpp.ini file dictates, simulation will run for 8 simulated seconds, and will record statistics into the omnetpp.vec file. We can use the plove program to examine the statistics: plove omnetpp.vec. There are quite a few number of data sets available. Let's plot the sequence numbers of the segments sent by the file sender:
| Topic FileSenderreceiverOverTCPIPv4 . { Edit | Attach | Ref-By | Printable | Diffs | r1.8 | > | r1.7 | > | r1.6 | More } |
|
Revision r1.8 - 17 Oct 2006 - 03:20 GMT - AhmetSekercioglu Parents: WebHome > Tutorials |
Copyright © 1999-2003 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding TWiki? Send feedback. |