Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maicuongtho opened this issue Mar 24, 2024 · 5 comments
Assignees
Labels

Comments

@maicuongtho
Copy link

maicuongtho commented Mar 24, 2024

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
Copy link
Author

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

@levy levy self-assigned this Mar 26, 2024
@levy
Copy link
Contributor

levy commented Mar 26, 2024

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

@levy levy added the Bug label Mar 26, 2024
@maicuongtho
Copy link
Author

maicuongtho commented Mar 27, 2024

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
Copy link
Contributor

levy commented Mar 27, 2024

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
Copy link
Member

rhornig commented Mar 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants