inet-framework / inet

INET Framework for the OMNeT++ discrete event simulator
https://inet.omnetpp.org
Other
431 stars 483 forks source link

GPSR does not work properly when using 2 source nodes send simultaneously #966

Open maicuongtho opened 6 months ago

maicuongtho commented 6 months ago

gpsr

If I just use only one U1, or U2 it works OK, (test on StationaryMobility config)

-- -------- this is my INI file

[General]
network = KhaoSatGPSR.MangMoPhong
sim-time-limit = 180s            
repeat = 1                       
num-rngs = 3
#abstract-config = true (requires omnet 6)

**.mobility.rng-0 = 1
**.wlan[*].mac.rng-0 = 2

**.wlan[*].radio.typename = "Ieee80211ScalarRadio"
**.wlan[*].radio.bandName = "2.4 GHz"   #5 GHz
**.opMode = "g(mixed)"
**.wlan[*].bitrate = 2Mbps
**.wlan[*].radio.transmitter.power =9dBm

#**.wlan[*].radio.transmitter.power =3dBm (=1.995mW)   #3dBm-> com range =250m
#**.wlan[*].radio.transmitter.power =9dBm (=7.943mW)  #9dBm-> com range =500m

*.radioMedium.pathLoss.typename = "FreeSpacePathLoss"   

#*.visualizer.*.dataLinkVisualizer.displayLinks = true
*.visualizer.*.networkRouteVisualizer.displayRoutes = true
*.visualizer.*.networkRouteVisualizer[0].packetFilter = "UDP*"

*.visualizer.*.infoVisualizer.modules = "*.*.app[0]"
*.visualizer.*.infoVisualizer.format = "%t"
*.visualizer.*.infoVisualizer.placementHint = "topCenter"

*.U1.numApps = 1
*.U1.app[0].typename = "UdpBasicApp"
*.U1.app[0].destAddresses = "GCS"
*.U1.app[0].destPort = 1000
*.U1.app[0].sendInterval = 1s
*.U1.app[0].startTime = 1s
*.U1.app[0].messageLength = 512Byte 
*.U1.app[0].packetName = "UDPdata"

#
*.U2.numApps = 1
*.U2.app[0].typename = "UdpBasicApp"
*.U2.app[0].destAddresses = "GCS"
*.U2.app[0].destPort = 1000
*.U2.app[0].sendInterval = 1s
*.U2.app[0].startTime = 0s
*.U2.app[0].messageLength = 512Byte 
*.U2.app[0].packetName = "UDPdata"

*.GCS.numApps = 1
*.GCS.app[0].typename = "UdpSink"
*.GCS.app[0].localPort = 1000

*.U*.mobility.constraintAreaMinX = 0m
*.U*.mobility.constraintAreaMinY = 0m
*.U*.mobility.constraintAreaMinZ = 0m
*.U*.mobility.constraintAreaMaxX = 1200m
*.U*.mobility.constraintAreaMaxY = 1000m
*.U*.mobility.constraintAreaMaxZ = 0m 

[Config StationaryMobility]
*.*.mobility.typename = "StationaryMobility"

[Config MassMobility_5mps]
*.U**.mobility.typename = "MassMobility"
*.U**.mobility.changeInterval = 1s
*.U**.mobility.angleDelta = uniform(-10deg,10deg)
*.U**.mobility.speed = uniform(1mps,2mps)  
maicuongtho commented 6 months ago

for the case only one source node U1 send to GCS image

levy commented 6 months ago

Thanks for reporting this issue. I need the exact NED files and INI file (including the * charaters), please edit the post.

maicuongtho commented 6 months ago

Thanks for help. Github editor reject some special character, so i attach my full simulation folder (which include .ini and .ned file). MoPhongGPSR.zip

levy commented 6 months ago

You can quote file contents on GitHub.

Anyway, the zip file you sent contains a different scenario than the one on your screenshot. I started the StationaryMobility config and for me both U1 and U2 can send traffic to GCS. I cannot reproduce your issue.

image

rhornig commented 6 months ago

I have edited the original post to include proper code block. FYI, use ``` (three back quites) to delimit a code block, both at the start and at the end. (or just select your code block and use the code toolbar button. github will do the rest.