Simple TCP model (INET)

309 views
Skip to first unread message

Daniel Burnier

unread,
Aug 25, 2013, 8:24:01 AM8/25/13
to omn...@googlegroups.com
Hello,

I am new to the OMNET++/INET environment and I am trying to get used ot it by running some examples ( I use windows 7 and the latest INET and OMNET++ versions)

The example I am working with now is a simple connection between a server and a client through a DataRateChannel

When I run a simulation I get following and it stops after 52 events. Can anyone please explain me why the simulation stops and does not send further packets?

WindowSize.client.tcpApp[0]: opened 1 sessions
WindowSize.client.tcpApp[0]: sent 350 bytes in 1 packets
WindowSize.client.tcpApp[0]: received 0 bytes in 0 packets
WindowSize.client.tcp: finishing with 1 connections open.
WindowSize.server.tcp: finishing with 2 connections open.


My INI file looks like this:

[General]
network = WindowSize

**.tcpType = "TCP"
**.tcp.advertisedWindow = 65535

**.client.numTcpApps = 1
**.client.tcpApp[*].typename = "TCPBasicClientApp"
**.client.tcpApp[*].connectAddress = "server" 
**.client.tcpApp[*].thinkTime = 1s
**.client.tcpApp[*].idleInterval = 3s
**.client.tcpApp[*].requestLength = 350B
**.client.tcpApp[*].numRequestsPerSession = 1
**.client.tcpApp[*].connectPort = 80
**.client.tcpApp[*].dataTransferMode = "object"

**.server.numTcpApps = 1
**.server.tcpApp[*].typename = "TCPSrvHostApp"
**.server.tcpApp[*].serverThreadClass = "TCPGenericSrvThread"
**.server.tcpApp[*].localPort = 80
**.server.tcpApp[*].dataTransferMode = "object"


**.client.ppp[*].queueType = "DropTailQueue"
**.client.ppp[*].queue.frameCapacity = 50

**.server.ppp[*].queueType = "DropTailQueue"
**.server.ppp[*].queue.frameCapacity = 50

**.ppp[*].numOutputHooks = 1
**.ppp[*].outputHook[*].typename = "OrdinalBasedDropper"

And my NED file like this:

package windowsize.simulations;

import inet.linklayer.ethernet.EtherHub;
import inet.networklayer.autorouting.ipv4.FlatNetworkConfigurator;
import inet.networklayer.extras.FailureManager;
import inet.nodes.inet.StandardHost;
import ned.DatarateChannel;


//
// TODO auto-generated type
//
network WindowSize
{
    @display("bgb=639,481");
    submodules:
        client: StandardHost {
            @display("p=176,220");
        }
        server: StandardHost {
            @display("p=421,220;i=device/server");
        }
        flatNetworkConfigurator: FlatNetworkConfigurator {
            @display("p=319,81");
        }

    connections:
        client.pppg++ <--> DatarateChannel {  delay = 0.02s; datarate = 56000bps; } <--> server.pppg++;
}


thank you very much
regards
Daniel B.

Reply all
Reply to author
Forward
0 new messages