my question is: is it possible where all hosts [nodes] stream UDP packets to a gcs?
I have tried following code:
**.host[*].numUdpApps = 1 **.host[*].udpApp[*].typename = "UDPVideoStreamSvr" **.host[*].udpApp[*].videoSize = 1GiB **.host[*].udpApp[*].sendInterval = 0.01ms **.host[*].udpApp[*].packetLen = 1000B **.host[*].udpApp[*].packetName = "UDPData" **.host[*].udpApp[*].localPort = 9999 **.host[*].udpApp[*].serverPort = 3088 **.host[*].udpApp[*].startTime = 0 **.gcs.numUdpApps = 1 **.gcs.udpApp[*].typename = "UDPVideoStreamCli" **.gcs.udpApp[*].serverAddress = "host[*](ipv4)" **.gcs.udpApp[*].localPort = 9999 **.gcs.udpApp[*].serverPort = 3088 **.gcs.udpApp[*].startTime = 0
But here only host[0] (server) sends packet to gcs (client) as I understand that there could be only one server and multiple clients. But not the other way around like what about multiple clients who send/stream packets to server like in VANET?
should I use UDPBasicApp for clients and UDPSink for gcs? If I do that then rcvdPk for gcs remains zero. Though, I do get sentPk for all UAVs okay. Or atleast a solution where all hosts can UDP video stream among each other?
Please suggest me a solution.
Also how I can calculate throughput? INET framework doesn't provide 'throughput statistic' support/code/library for pingApp/UDP/TCP. I even tried .cc and .h but got errors.
INET version: 3.2.4
OMNET: 4.6
I just need this simulation for pre-liminary results. Please help! Thank you.