Wired-wireless topology in GPSR

30 views
Skip to first unread message

Danny Candra Rumantyo

unread,
Jun 24, 2019, 8:27:18 AM6/24/19
to Network Simulator 2 (NS2)
Dear sir Knudfl, good evening.
I want implement wired-wireless topology in GPSR for vehicle and RSU communication. Vehicles are the mobile nodes that using wireless and RSU are static nodes that using wired.

How these nodes can communicate each other? there are no problems with pure wireless communication but after i follow https://www.isi.edu/nsnam/ns/tutorial/nsscript6.html and wired-cum-wireless-sim.tcl from /tcl/ex i always getting error message like Wrong node routing agent! or Error!! str2addr:Address -1 outside range of address field length 2048.

In wireless-gpsr.tcl there is syntax source ../tcl/lib/ns-bsnode.tcl that refer to library to use base station node, should i use that library in for wired-wireless communication?

Here is my files, thank you.

cbr100.tcl
coba.tcl
wireless-gpsr.tcl
gpsr.tcl

knudfl

unread,
Jun 24, 2019, 10:14:15 AM6/24/19
to Network Simulator 2 (NS2)
Hi.

First :  You cannot use the file name "wireless-gpsr.tcl", which is already used.
It's the name of the GPSR-KeLiu default simulation → GPSR-KeLiu-examples_07Jun17.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNakpZcF85eFJrRnM/view?usp=sharing
.... Please always use a new unique file name for a new file.

»» should i use that library ( ns-bsnode.tcl) in for wired-wireless communication «« :
I have no idea. 

The "diff" $ diff -dbBwaur orig__wireless-gpsr.tcl wireless-gpsr.tcl
.... is attached.

Note :  Your question is missing the name of the GPSR setup→  GPSR-KeLiu  or GPSR-hls
diff:orig__wireless-gpsr.tcl__wireless-gpsr.tcl.diff

Danny Candra Rumantyo

unread,
Jun 24, 2019, 10:38:55 AM6/24/19
to Network Simulator 2 (NS2)
i used patch from GPSR KeLiu and modified it.
Reply all
Reply to author
Forward
0 new messages