How to send data in omnet

114 views
Skip to first unread message

권영준

unread,
Jun 20, 2022, 1:47:15 AM6/20/22
to OMNeT++ Users
I'm using the version of omnet 5.6.1
I use inet framework/examples/ethernet/arptest.
I would like to send the data by modifying only the ini file of the arptest, so please let me know that what typename i must use

권영준

unread,
Jun 20, 2022, 2:33:17 AM6/20/22
to OMNeT++ Users
[General]
network = ARPTest
sim-time-limit = 500s
total-stack = 2MiB

[Config ARPTest]
# tcp apps
**.client.numApps = 1
**.client.app[*].typename = "TcpSessionApp"
**.client.app[*].active = true
**.client.app[*].localAddress = ""
**.client.app[*].localPort = -1
**.client.app[*].connectAddress = "server"
**.client.app[*].connectPort = 1000
**.client.app[*].tOpen = 1.0s
**.client.app[*].tSend = 1.1s
**.client.app[*].sendBytes = 1MiB
**.client.app[*].sendScript = ""
**.client.app[*].tClose = 0s

**.server.numApps = 1
**.server.app[*].typename = "TcpEchoApp"
**.server.app[0].localAddress = ""
**.server.app[0].localPort = 1000
**.server.app[0].echoFactor = 2.0
**.server.app[0].echoDelay = 0s

# Ethernet NIC configuration
**.eth[*].mac.duplexMode = true

# Queues
**.ppp[*].ppp.queue.typename = "DropTailQueue"
**.ppp[*].ppp.queue.packetCapacity = 10
**.eth[*].mac.queue.typename = "EtherQosQueue"
**.eth[*].mac.queue.dataQueue.typename = "DropTailQueue"
**.eth[*].mac.queue.dataQueue.packetCapacity = 10

# Ethernet switch
**.switch*.relayUnit.typename = "MacRelayUnit"
**.relayUnit.addressTableSize = 100
**.relayUnit.agingTime = 120s
**.relayUnit.bufferSize = 1MiB
**.relayUnit.highWatermark = 512KiB
**.relayUnit.pauseUnits = 300  # pause for 300*512 bit (19200 byte) time
**.relayUnit.addressTableFile = ""
**.relayUnit.numCPUs = 2
**.relayUnit.processingTime = 2us

**.mac[*].duplexMode = true

2022년 6월 20일 월요일 오후 2시 47분 15초 UTC+9에 권영준님이 작성:

Alfonso Ariza Quintana

unread,
Jun 20, 2022, 4:05:27 AM6/20/22
to omn...@googlegroups.com
With the type of sources that you are using TcpSessionApp
You can change the traffic with
 **.client.app[*].sendBytes = 1MiB

If you want to have better control of the traffic injected, probably will be better to use Udp traffic, with Udp it is easier to modify the packet size and the time between packets.

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de 권영준 <kyj90...@gmail.com>
Enviado: lunes, 20 de junio de 2022 8:33
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] Re: How to send data in omnet
 
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/fcc00bed-cb40-4e90-808b-a5111cd97a24n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages