udp basic app

178 views
Skip to first unread message

zeena usama

unread,
Apr 23, 2022, 1:33:25 PM4/23/22
to OMNeT++ Users
hello..

is there ability to run a udp basic app from more than one node ( ex: 3 node ) each one with different udpApp, and receive these request by one udp sink app on one node (server for example) ?

more information about what i mean 

**.numClients = 3

*.server.numUdpApps = 1
*.clientG4[*].numUdpApps = 1

# Transmitter
*.clientG4[*].udpApp[0].typename = "VoIPSender"
*.clientG4[*].udpApp[0].localPort = 3088+ancestorIndex(0)
*.clientG4[*].udpApp[0].startTime = uniform(1s,2s)
*.clientG4[*].udpApp[0].destAddress = "server1"
*.clientG4[*].udpApp[0].destPort = 1001

#Receiver
*.server1.udpApp[0].typename = "VoIPReceiver"
*.server1.udpApp[0].localPort = 1001

i am doing this with voip app, and its work ok

but when i try to do same thing with udp basic app and sink like below i got error

*.clientG4[0].udpApp[0].typename = "UDPBasicApp"
*.clientG4[0].udpApp[0].destAddresses = "server1"
*.clientG4[0].udpApp[0].localAddress = "clientG4[*]"
*.clientG4[0].udpApp[0].destPort = 1000
*.clientG4[0].udpApp[0].localPort = 1000
*.clientG4[0].udpApp[0].startTime = uniform(1s,2s)

*.server1.udpApp[0].typename = "UDPSink"
*.server1.udpApp[0].localPort = 1000

dose any one know what i made wrong in the config ?

sorry for long message
thank you in advance

zeena usama

unread,
Apr 23, 2022, 1:38:58 PM4/23/22
to omn...@googlegroups.com
sorry i mean like this 
*.clientG4[*].udpApp[0].typename = "UDPBasicApp"
*.clientG4[*].udpApp[0].destAddresses = "server1"
*.clientG4[*].udpApp[0].localAddress = "clientG4[*]"
*.clientG4[*].udpApp[0].destPort = 1000
*.clientG4[*].udpApp[0].localPort = 1000

*.clientG4[*].udpApp[0].startTime = uniform(1s,2s)

*.server1.udpApp[0].typename = "UDPSink"
*.server1.udpApp[0].localPort = 1000

from all nodes to single server

--
You received this message because you are subscribed to a topic in the Google Groups "OMNeT++ Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/wkB44cRGQns/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/603f7337-f90b-472b-ab1e-a6a20dc99600n%40googlegroups.com.

Alfonso Ariza Quintana

unread,
Apr 25, 2022, 5:53:28 AM4/25/22
to omn...@googlegroups.com
I suppose that you are using inet 3,

If you want more app modules, you can increase the number

*.server.numUdpApps = xxx
*.server1.udpApp[0].typename = "type1"
*.server1.udpApp[1].typename = "type2"
*.server1.udpApp[2].typename = "type3"
......


De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de zeena usama <zeena....@gmail.com>
Enviado: sábado, 23 de abril de 2022 19:38
Para: omn...@googlegroups.com <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] udp basic app
 
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/CAEfo_NAO2zQ0qsgtKF%2BA6bP7on_Jq_uXUMr%2B3Ox0nBku9fjYdQ%40mail.gmail.com.

zeena usama

unread,
Apr 25, 2022, 6:28:47 AM4/25/22
to OMNeT++ Users
yes im working with init 3.6.6

is it not possible to use only one app ?
since its work with voip

thanks 

Alfonso Ariza Quintana

unread,
Apr 25, 2022, 6:33:12 AM4/25/22
to omn...@googlegroups.com
You can use an arbitrary number, from 0 to 65536 which is the maximum value available for ports

Enviado: lunes, 25 de abril de 2022 12:28
Para: OMNeT++ Users <omn...@googlegroups.com>

zeena usama

unread,
Apr 25, 2022, 6:37:07 AM4/25/22
to omn...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages