tcp statistics (syn, syn ack, ack, fin)

42 views
Skip to first unread message

Rubén Prieto Prado

unread,
Dec 27, 2015, 5:31:22 PM12/27/15
to OMNeT++ Users
I don't know if this has already been answered but i swear i've been looking fon an answer all day.

I have a ned file with some standarhost6 and router6 linked with ethernet channels,

package inet.examples.ipv6.p2;

import inet.applications.httptools.browser.HttpBrowser;
import inet.applications.httptools.server.HttpServer;
import inet.applications.tcpapp.TelnetApp;
import inet.node.inet.NodeBase;
import ned.DatarateChannel;
import inet.networklayer.configurator.ipv6.FlatNetworkConfigurator6;
import inet.node.ipv6.Router6;
import inet.node.ipv6.StandardHost6;



//
// TODO documentation
//
network Network
{
    @display("bgb=952,558");
    types:
        channel ethernet extends DatarateChannel
        {
            delay = 0.1us;
            datarate = 10Mbps;
        }

    submodules:

        cli1: StandardHost6 {
            @display("p=235,97");
        }
        cli2: StandardHost6 {
            @display("p=214,167");
        }
        cli3: StandardHost6 {
            @display("p=180,297");
        }
        cli4: StandardHost6 {
            @display("p=181,368");
        }
        cli5: StandardHost6 {
            @display("p=207,425");
        }
        cli6: StandardHost6 {
            @display("p=268,460");
        }
        router2: Router6 {
            @display("p=298,368");
        }
        router1: Router6 {
            @display("p=305,166");
        }
        router3: Router6 {
            @display("p=521,272");
        }
        srvHttp: StandardHost6 {
            @display("p=680,182");
        }
        srvTelnet: StandardHost6 {
            @display("p=675,276");
        }
        configurator6: FlatNetworkConfigurator6 {
            @display("p=898,38");
        }
    connections:
        //clientes
        cli1.ethg++ <--> ethernet <--> router1.ethg++;
        cli2.ethg++ <--> ethernet <--> router1.ethg++;
        cli3.ethg++ <--> ethernet <--> router2.ethg++;
        cli4.ethg++ <--> ethernet <--> router2.ethg++;
        cli5.ethg++ <--> ethernet <--> router2.ethg++;
        cli6.ethg++ <--> ethernet <--> router2.ethg++;
        //routers
        router1.ethg++ <--> ethernet <--> router3.ethg++;
        router2.ethg++ <--> ethernet <--> router3.ethg++;
        //servers con routers
        srvHttp.ethg++ <--> ethernet <--> router3.ethg++;
        srvTelnet.ethg++ <--> ethernet <--> router3.ethg++;
}

[General]
tkenv-plugin-path = ../../inet/etc/plugins

[Config p2]
network = Network

record-eventlog = true

**.cli*.numTcpApps = 2
**.cli*.tcpApp[0].typename = "TCPBasicClientApp"
**.cli*.tcpApp[1].typename = "TelnetApp"
**.cli*.tcpApp[0].connectAddress = "srvHttp"
**.cli*.tcpApp[1].connectAddress = "srvTelnet"
**.cli*.tcpApp[*].localPort = -1
**.cli*.tcpApp[0].connectPort = 80 
**.cli*.tcpApp[1].connectPort = 23 

**.cli1.tcpApp[*].localAddress = "aaaa:b::8aa:ff:fe00:1" 
**.cli2.tcpApp[*].localAddress = "aaaa:b::8aa:ff:fe00:2" 
**.cli3.tcpApp[*].localAddress = "aaaa:b::8aa:ff:fe00:3" 
**.cli4.tcpApp[*].localAddress = "aaaa:b::8aa:ff:fe00:4" 
**.cli5.tcpApp[*].localAddress = "aaaa:b::8aa:ff:fe00:5" 
**.cli6.tcpApp[*].localAddress = "aaaa:b::8aa:ff:fe00:6" 

**.cli*.tcpApp[0].startTime = uniform(10s,15s)
**.cli*.tcpApp[0].numRequestsPerSession = exponential(5)
**.cli*.tcpApp[0].thinkTime = truncnormal(100ms,200ms)
**.cli*.tcpApp[0].requestLength = truncnormal(350B,20B)
**.cli*.tcpApp[0].idleInterval = truncnormal(300ms,500ms)
**.cli*.tcpApp[0].replyLength = exponential(2000B)

**.cli*.tcpApp[1].startTime = uniform(60s,75s)
**.cli*.tcpApp[1].thinkTime = truncnormal(0.5s,1s)
**.cli*.tcpApp[1].requestLength = truncnormal(350B,20B)
**.cli*.tcpApp[1].idleInterval = truncnormal(300ms,500ms)
**.cli*.tcpApp[1].reconnectInterval = 0.1ms

**.srvHttp.numTcpApps = 1
**.srvHttp.tcpApp[0].typename = "TCPGenericSrvApp"
**.srvHttp.tcpApp[0].localPort = 80
**.srvHttp.tcpApp[0].replyDelay = 0

**.srvTelnet.numTcpApps = 1
**.srvTelnet.tcpApp[0].typename = "TCPGenericSrvApp"
**.srvTelnet.tcpApp[0].localPort = 23
**.srvTelnet.tcpApp[0].replyDelay = 0

# tcp settings
**.tcpApp[*].dataTransferMode = "object"
**.vector-recording = true
**.scalar-recording = true


What i can't get to work is recording some statistics for the tcp trafic, more precisely the stablishing conection traffic and ending, syn, fin, syn-ack, in the statistics i can find in the vector recording ACK records, but there is no record that i can find which shows me the others.

Any idea? :(

thank you
Reply all
Reply to author
Forward
0 new messages