LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-06-2012, 12:14 PM   #1
ssoumayaa
LQ Newbie
 
Registered: Dec 2012
Posts: 17

Rep: Reputation: Disabled
Unhappy NS2: Using GPSR , VANET simulation


Hello everybody,

I was finally able to patch GPSR over ns-2.33 with the help of an other topic of this forum.

But the problem am facing right now is that i don't know how to use GPSR to simulate a vehicular ad hoc network. I tried to wright a tcl code , it seems that it works well , i could generate the trace and nam files but now i don't understand the trace file and when using nam i have nodes which are moving with no paquet transmission bitween them .... !!!!

this is my tcl script:

Code:
# ======================================================================
# Define options
# ======================================================================
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhyExt ;# network interface type
set val(mac) Mac/802_11Ext ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 4 ;# number of mobilenodes
set val(rp) GPSR ;# routing protocol
set val(cp) "./changjing1.tcl"

# ======================================================================
#802.11p parameters
# ======================================================================

Phy/WirelessPhyExt set CSThresh_ 3.9810717055349694e-13	;# -94 dBm wireless interface sensitivity
Phy/WirelessPhyExt set Pt_ 0.1	 ;# equals 20dBm when considering antenna gains of 1.0
Phy/WirelessPhyExt set freq_ 5.9e+9
Phy/WirelessPhyExt set noise_floor_ 1.26e-13 ;# -99 dBm for 10MHz bandwidth
Phy/WirelessPhyExt set L_ 1.0 ;# default radio circuit gain/loss
Phy/WirelessPhyExt set PowerMonitorThresh_ 3.981071705534985e-18 ;# -174 dBm power monitor sensitivity (=level of gaussian noise)
Phy/WirelessPhyExt set HeaderDuration_ 0.000040 ;# 40 us
Phy/WirelessPhyExt set BasicModulationScheme_ 0
Phy/WirelessPhyExt set PreambleCaptureSwitch_ 1
Phy/WirelessPhyExt set DataCaptureSwitch_ 1
Phy/WirelessPhyExt set SINR_PreambleCapture_ 3.1623; ;# 5 dB
Phy/WirelessPhyExt set SINR_DataCapture_ 10.0; ;# 10 dB
Phy/WirelessPhyExt set trace_dist_ 1e6 ;# PHY trace until distance of 1 Mio. km ("infinity")
Phy/WirelessPhyExt set PHY_DBG_ 0

Mac/802_11Ext set CWMin_ 15
Mac/802_11Ext set CWMax_ 1023
Mac/802_11Ext set SlotTime_ 0.000013
Mac/802_11Ext set SIFS_ 0.000032
Mac/802_11Ext set ShortRetryLimit_ 7
Mac/802_11Ext set LongRetryLimit_ 4
Mac/802_11Ext set HeaderDuration_ 0.000040
Mac/802_11Ext set SymbolDuration_ 0.000008
Mac/802_11Ext set BasicModulationScheme_ 0
Mac/802_11Ext set use_802_11a_flag_ true
Mac/802_11Ext set RTSThreshold_ 2346
Mac/802_11Ext set MAC_DBG 0


# ======================================================================
#configure RF model parameters
# ======================================================================
Antenna/OmniAntenna set Gt_ 1.0
Antenna/OmniAntenna set Gr_ 1.0
Propagation/Nakagami set use_nakagami_dist_ false
Propagation/Nakagami set gamma0_ 2.0
Propagation/Nakagami set gamma1_ 2.0
Propagation/Nakagami set gamma2_ 2.0
Propagation/Nakagami set d0_gamma_ 200
Propagation/Nakagami set d1_gamma_ 500
Propagation/Nakagami set m0_ 1.0
Propagation/Nakagami set m1_ 1.0
Propagation/Nakagami set m2_ 1.0
Propagation/Nakagami set d0_m_ 80
Propagation/Nakagami set d1_m_ 200


#======================================================================
# Main Program
#======================================================================
#======================================================================
#Initialization
#======================================================================


set ns_	 [new Simulator]	 ;#Create a ns simulator
set tracefd	[open fangzhen1.tr w]	;# setting up output files
set nf [open fangzhen1.nam w]	;# trace and nam file
$ns_ trace-all $tracefd
$ns_ namtrace-all-wireless $nf 2000 500 ;# mobily topo x&y
set topo [new Topography]	 ;# set up topography object
$topo load_flatgrid 1600 1600 ;#set mobile sensior
set chan [new $val(chan)]

#======================================================================
# Create God
#======================================================================
set god_ [create-god $val(nn)]

#======================================================================
# Create the specified number of mobilenodes [$val(nn)] and "attach" them
# to the channel. 
#======================================================================

#======================================================================
# configure node
#======================================================================
$ns_ node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channel $chan \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace ON \
-movementTrace ON
#======================================================================
#nodes Definition
#======================================================================
# Creating node objects	
#======================================================================

for {set i 0} {$i < $val(nn) } {incr i} {
set ID_($i) $i
set node_($i) [$ns_ node]
$node_($i) set id_ $ID_($i)
$node_($i) set address_ $ID_($i)
$node_($i) nodeid $ID_($i)
$node_($i) random-motion 0; # disable random motion
}

#======================================================================
# Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
#======================================================================
# set mobility file
#======================================================================
source $val(cp)

#======================================================================
# Setup traffic flow between nodes
#======================================================================

#======================================================================
#Setup UDP connection
#======================================================================
set udp_s [new Agent/UDP]
set udp_r [new Agent/Null]
$ns_ attach-agent $node_(1) $udp_s
$ns_ attach-agent $node_(3) $udp_r


#======================================================================
#Setup a MM Application
#======================================================================
set e [new Application/Traffic/CBR]
$e set packetSize_ 500
$e set rate_ 20Kb
$e set random_ 1
#$e attach-agent $udp_r
$e attach-agent $udp_s
$ns_ connect $udp_s $udp_r

#======================================================================
#Simulation Scenario
#======================================================================
$ns_ at 1.0 "$e start"
#======================================================================
#Tell nodes when the simulation ends
#======================================================================
for {set i 0} {$i < $val(nn) } {incr i} {
$ns_ at 80.0 "$node_($i) reset";
}
$ns_ at 80.000 "stop"
$ns_ at 80.010 "puts \"NS EXITING...\" ; $ns_ halt"
proc stop {} {
global ns_ tracefd
global ns_ nf
$ns_ flush-trace
close $nf
close $tracefd
exit 0
}

puts "Starting Simulation..."
$ns_ run



and this is a part of my trace file:


Code:
M 0.00000 0 (70.00, 520.00, 0.00), (70.60, 520.00), 0.60
M 0.00000 1 (100.00, 520.00, 0.00), (100.60, 520.00), 0.60
M 0.00000 2 (130.00, 520.00, 0.00), (130.60, 520.00), 0.60
M 0.00000 3 (160.00, 520.00, 0.00), (160.60, 520.00), 0.60
M 1.00000 0 (70.60, 520.00, 0.00), (71.80, 520.00), 1.20
M 1.00000 1 (100.60, 520.00, 0.00), (101.80, 520.00), 1.20
M 1.00000 2 (130.60, 520.00, 0.00), (131.80, 520.00), 1.20
M 1.00000 3 (160.60, 520.00, 0.00), (161.80, 520.00), 1.20
s 1.000000000 _1_ AGT --- 0 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [0] 0 0
r 1.000000000 _1_ RTR --- 0 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [0] 0 0
HLS_REQ_s 1.000000000000 (1_0) 1 ->3 <11 264.00 264.00 (1)>
HLS_REQ_u 1.000000000000 (1_0) 1 (100.60 520.00) <11 264.00 264.00 (1)>
HLS_REQ_n 1.000000000000 (1_0) 1 ->3 <5 968.00 88.00 (2)>
HLS_REQ_u 1.000000000000 (1_0) 1 (100.60 520.00) <5 968.00 88.00 (2)>
HLS_REQ_n 1.000000000000 (1_0) 1 ->3 <6 1144.00 88.00 (3)>
HLS_REQ_u 1.000000000000 (1_0) 1 (100.60 520.00) <6 1144.00 88.00 (3)>
HLS_CIC_s 1.000000000000 (1_0) 1 ->3 <7,17,16,15,5,-1,-1,-1>
HLS_CIC_f 1.000000000000 (1_0) 1 ->...->3 <7>
HLS_CIC_f 1.000000000000 (1_0) 1 ->...->3 <17>
HLS_CIC_f 1.000000000000 (1_0) 1 ->...->3 <16>
HLS_CIC_f 1.000000000000 (1_0) 1 ->...->3 <15>
HLS_CIC_f 1.000000000000 (1_0) 1 ->...->3 <5>
HLS_CIC_d 1.000000000000 (1_0) 1 ->...->3
s 1.146920350 _1_ AGT --- 5 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [1] 0 0
r 1.146920350 _1_ RTR --- 5 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [1] 0 0
s 1.374693379 _1_ AGT --- 6 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [2] 0 0
r 1.374693379 _1_ RTR --- 6 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [2] 0 0
s 1.536509191 _1_ AGT --- 7 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [3] 0 0
r 1.536509191 _1_ RTR --- 7 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [3] 0 0
HLS_REQ_d 1.600000000000 (1_0) 1 (3) CTO idev 1.71 mydev 1.71 metonode 528.89
s 1.803773898 _1_ AGT --- 8 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [4] 0 0
r 1.803773898 _1_ RTR --- 8 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [4] 0 0
s 1.936602979 _1_ AGT --- 9 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [5] 0 0
r 1.936602979 _1_ RTR --- 9 cbr 500 [0 0 0 0] ------- [1:0 3:0 32 0] [5] 0 0

Pleaaaaseee help me pleeeaaaaaaaase !!!!

especially to understand the trace format generated ....

Thanks in advance

Last edited by ssoumayaa; 12-18-2012 at 01:01 PM. Reason: Removed personal e-mail address. It's not necessary, since you will receive help publicly in this forum, as it should be.
 
Old 12-07-2012, 12:00 PM   #2
ssoumayaa
LQ Newbie
 
Registered: Dec 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
i neeed help please is there anybody ??!!
 
Old 12-07-2012, 04:41 PM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Quote:
Originally Posted by ssoumayaa View Post
i neeed help please is there anybody ??!!
You should not answer your own threads! now you've moved your thread from the zero-reply list.

Markus
 
1 members found this post helpful.
Old 12-11-2012, 09:17 AM   #4
ssoumayaa
LQ Newbie
 
Registered: Dec 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
Please can anybody help me to use GPSR routing protocol to simulate a vehicular ad hoc network ???

Thanks in advance
 
Old 12-18-2012, 04:09 AM   #6
ssoumayaa
LQ Newbie
 
Registered: Dec 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hello, Thanks for your reply but i know all these links and i already patched GPSR on ns-2.33 but the probleme is how to use it for simulation ???
 
Old 12-18-2012, 04:37 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,632

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
# 6

There is a "gpsr.tcl" in GPSR_KeLiu_SUNY_Binghamton/

$ ns gpsr.tcl
 
Old 12-18-2012, 04:41 AM   #8
ssoumayaa
LQ Newbie
 
Registered: Dec 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
yes i know but i have written a simulation scenario code to simulate a vanet network using GPSR but it does not work i dont know why !!! you can see the tcl and tr files in my first post ... please if you know what is wrong with my tcl file tel me so that i can correct it it is really urgent pleaaase help me if you can .... thank you in advance
 
Old 12-18-2012, 05:00 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,632

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
# 8

Which GPSR patch did you use ?

GPSR_KeLiu_SUNY_Binghamton.tgz ?
 
Old 12-18-2012, 05:05 AM   #10
ssoumayaa
LQ Newbie
 
Registered: Dec 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
i used the patch of this page http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch
 
Old 12-18-2012, 05:06 AM   #11
ssoumayaa
LQ Newbie
 
Registered: Dec 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
do you think that the problem is in the patch ??? it is not in my tcl file ?? because when i run wireless-gpsr.tcl or hls.tcl everything works good !!!
 
Old 12-18-2012, 05:41 AM   #12
ssoumayaa
LQ Newbie
 
Registered: Dec 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
i only used "ns-2.33-hls.patch" ... i thought that it was suffisiant ... please tell me if i have to use "GPSR_KeLiu_SUNY_Binghamton.tgz" and how ?!

Thanks alot
 
Old 12-18-2012, 06:05 AM   #13
ssoumayaa
LQ Newbie
 
Registered: Dec 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
this is my tcl file :

Code:

## GPSR Options
Agent/GPSR set bdesync_                0.5 ;# beacon desync random component
Agent/GPSR set bexp_                   [expr 3*([Agent/GPSR set bint_]+[Agent/GPSR set bdesync_]*[Agent/GPSR set bint_])] ;# beacon timeout interval
Agent/GPSR set pint_                   1.5 ;# peri probe interval
Agent/GPSR set pdesync_                0.5 ;# peri probe desync random component
Agent/GPSR set lpexp_                  8.0 ;# peris unused timeout interval
Agent/GPSR set drop_debug_             1   ;#
Agent/GPSR set peri_proact_            1 	 ;# proactively generate peri probes
Agent/GPSR set use_implicit_beacon_    1   ;# all packets act as beacons; promisc.
Agent/GPSR set use_timed_plnrz_        0   ;# replanarize periodically
Agent/GPSR set use_congestion_control_ 0
Agent/GPSR set use_reactive_beacon_    0   ;# only use reactive beaconing

set val(bint)           0.5  ;# beacon interval
set val(use_mac)        1    ;# use link breakage feedback from MAC
set val(use_peri)       1    ;# probe and use perimeters
set val(use_planar)     1    ;# planarize graph
set val(verbose)        1    ;#
set val(use_beacon)     1    ;# use beacons at all
set val(use_reactive)   0    ;# use reactive beaconing
set val(locs)           0    ;# default to OmniLS
set val(use_loop)       0    ;# look for unexpected loops in peris

set val(agg_mac)          1 ;# Aggregate MAC Traces
set val(agg_rtr)          0 ;# Aggregate RTR Traces
set val(agg_trc)          0 ;# Shorten Trace File


# ======================================================================
# Define options
# ======================================================================
set val(chan)           Channel/WirelessChannel    ;# channel type
set val(prop)           Propagation/TwoRayGround   ;# radio-propagation model
set val(netif)          Phy/WirelessPhy            ;# network interface type
set val(mac)            Mac/802_11              ;# MAC type
set val(ifq)            Queue/DropTail/PriQueue    ;# interface queue type
set val(ll)             LL                         ;# link layer type
set val(ant)            Antenna/OmniAntenna        ;# antenna model
set val(ifqlen)         512                         ;# max packet in ifq
set val(seed)		1.0
set val(rp)             GPSR                       ;# routing protocol
set val(nn)             2                          ;# number of mobilenodes
set val(cp) 		"./changjing1.tcl"
set val(stop)		40.0     ;# simulation time
set val(use_gk)		0	  ;# > 0: use GridKeeper with this radius
set val(zip)		0         ;# should trace files be zipped


Agent/GPSR set locservice_type_ 3

add-all-packet-headers
remove-all-packet-headers
add-packet-header Common Flags IP LL Mac Message GPSR  LOCS SR RTP Ping HLS

Agent/GPSR set bint_                  $val(bint)
# Recalculating bexp_ here
Agent/GPSR set bexp_                 [expr 3*([Agent/GPSR set bint_]+[Agent/GPSR set bdesync_]*[Agent/GPSR set bint_])] ;# beacon timeout interval
Agent/GPSR set use_peri_              $val(use_peri)
Agent/GPSR set use_planar_            $val(use_planar)
Agent/GPSR set use_mac_               $val(use_mac)

Agent/GPSR set verbose_               $val(verbose)
Agent/GPSR set use_reactive_beacon_   $val(use_reactive)
Agent/GPSR set use_loop_detect_       $val(use_loop)

CMUTrace set aggregate_mac_           $val(agg_mac)
CMUTrace set aggregate_rtr_           $val(agg_rtr)

# seeding RNG
ns-random $val(seed)

# ======================================================================
# - Define PHY --> According Orinoco cards and Antenna
Mac/802_11 set CWMin_            15                              ;#
Mac/802_11 set CWMax_            1023                            ;#
Mac/802_11 set SlotTime_         0.000013                        ;#
Mac/802_11 set SIFS_             0.000032                        ;#
Mac/802_11 set ShortRetryLimit_  7                               ;#
Mac/802_11 set LongRetryLimit_   4                               ;#
Mac/802_11 set HeaderDuration_   0.000040                        ;#
Mac/802_11 set SymbolDuration_   0.000008                        ;#
Mac/802_11 set BasicModulationScheme_ 0                          ;#
Mac/802_11 set use_802_11a_flag_ true                            ;#
Mac/802_11 set RTSThreshold_     2346                            ;#
Mac/802_11 set MAC_DBG           0                               ;#


Phy/WirelessPhy set CSThresh_           3.162e-12   ;#-85 dBm Wireless interface sensitivity (sensitivity defined in the standard)
Phy/WirelessPhy set Pt_                 0.001
Phy/WirelessPhy set freq_               5.9e+9
Phy/WirelessPhy set noise_floor_        1.26e-13    ;#-99 dBm for 10MHz bandwidth
Phy/WirelessPhy set L_                  1.0         ;#default radio circuit gain/loss
Phy/WirelessPhy set PowerMonitorThresh_ 6.310e-14   ;#-102dBm power monitor  sensitivity
Phy/WirelessPhy set HeaderDuration_     0.000040    ;#40 us
Phy/WirelessPhy set BasicModulationScheme_ 0        
Phy/WirelessPhy set PreambleCaptureSwitch_ 1
Phy/WirelessPhy set DataCaptureSwitch_     0
Phy/WirelessPhy set SINR_PreambleCapture_ 2.5118    ;# 4 dB
Phy/WirelessPhy set SINR_DataCapture_   100.0       ;# 10 dB
Phy/WirelessPhy set trace_dist_         1e6         ;# PHY trace until distance of 1 Mio. km ("infinty")
Phy/WirelessPhy set PHY_DBG_            0           ;#
Phy/WirelessPhy set CPThresh_           0 ;# not used at the moment
Phy/WirelessPhy set RXThresh_           0 ;# not used at the moment


# ======================================================================
# Main Program
# ======================================================================


#
# Initialize Global Variables
#
set ns_		[new Simulator]

set tracefd	[open fangzhen1.tr w]		;# setting up output files
set nf 		[open fangzhen1.nam w]		;# trace and nam file
$ns_ trace-all $tracefd
$ns_ namtrace-all-wireless $nf 2000 500 ;# mobily topo x&y
#$ns_ use-newtrace

# set up topography object
set topo       [new Topography]

$topo load_flatgrid 2000 500 ;#set mobile sensior
#Create PHY
set chan [new $val(chan)]
#
# Create God
#
set god_ [create-god $val(nn)]

#
#  Create the specified number of mobilenodes [$val(nn)] and "attach" them
#  to the channel. 
#  Here two nodes are created : node(0) and node(1)

# configure node

 $ns_ node-config -adhocRouting $val(rp) \
			 -llType $val(ll) \
			 -macType $val(mac) \
			 -ifqType $val(ifq) \
			 -ifqLen $val(ifqlen) \
			 -antType $val(ant) \
			 -propType $val(prop) \
			 -phyType $val(netif) \
			 -channel $chan \
			 -topoInstance $topo \
			 -agentTrace ON \
			 -routerTrace ON \
			 -macTrace OFF \
			 -movementTrace OFF
	
			 
	for {set i 0} {$i < $val(nn) } {incr i} {
		set node_($i) [$ns_ node]	
		$node_($i) random-motion 0		;# disable random motion
	}
$node_(0) color red
$node_(1) color yellow
#
# Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
#



# set mobility file
 source $val(cp)

# Node_(1) then starts to move away from node_(0)

# Setup traffic flow between nodes

#Setup UDP connection
set udp_s [new Agent/UDP]
set udp_r [new Agent/Null]
$ns_ attach-agent $node_(0) $udp_s
$ns_ attach-agent $node_(1) $udp_r


#Setup a MM Application
set e [new Application/Traffic/CBR]
$e set packetSize_ 500
$e set rate_  20Kb
$e set random_ 1
#$e attach-agent $udp_r
$e attach-agent $udp_s
$ns_ connect $udp_s $udp_r


#Simulation Scenario
$ns_ at 1.0 "$e start"


#
# Tell nodes when the simulation ends
#
for {set i 0} {$i < $val(nn) } {incr i} {
    $ns_ at 80.0 "$node_($i) reset";
}
$ns_ at 80.000 "stop"
$ns_ at 80.010 "puts \"NS EXITING...\" ; $ns_ halt"
proc stop {} {
   	global ns_ tracefd
	global ns_ nf
    	$ns_ flush-trace
	close $nf
    	close $tracefd
	exit 0
}

puts "Starting Simulation..."
$ns_ run
"./changjing1.tcl" file :

Code:
#
# nodes: 2, pause: 3.4028235E38, max speed: 3.4028235E38  max x = 630.0, max y: 200.0
#
$node_(0) set X_ 130.000001
$node_(0) set Y_ 200.000001
$node_(0) set Z_ 0.0
$node_(1) set X_ 100.000001
$node_(1) set Y_ 200.000001
$node_(1) set Z_ 0.0
$ns_ at 0.0 "$node_(0) setdest 130.60000102849847 200.000001 0.6"
$ns_ at 0.0 "$node_(1) setdest 100.60000102849847 200.000001 0.6"
$ns_ at 1.0 "$node_(0) setdest 131.8000010854954 200.000001 1.2"
$ns_ at 1.0 "$node_(1) setdest 101.80000108549541 200.000001 1.2"
$ns_ at 2.0 "$node_(0) setdest 133.60000093816018 200.000001 1.7999998"
$ns_ at 2.0 "$node_(1) setdest 103.60000093816018 200.000001 1.7999998"
$ns_ at 3.0 "$node_(0) setdest 135.9999996551702 200.000001 2.3999987"
$ns_ at 3.0 "$node_(1) setdest 105.9999996551702 200.000001 2.3999987"
$ns_ at 4.0 "$node_(0) setdest 138.999995257465 200.000001 2.9999957"
$ns_ at 4.0 "$node_(1) setdest 108.999995257465 200.000001 2.9999957"
$ns_ at 5.0 "$node_(0) setdest 142.5999830884317 200.000001 3.5999877"
$ns_ at 5.0 "$node_(1) setdest 112.59998308843171 200.000001 3.5999877"
$ns_ at 6.0 "$node_(0) setdest 146.7999549989978 200.000001 4.1999717"
$ns_ at 6.0 "$node_(1) setdest 116.7999549989978 200.000001 4.1999717"
$ns_ at 7.0 "$node_(0) setdest 151.59989701932466 200.000001 4.799942"
$ns_ at 7.0 "$node_(1) setdest 121.59989701932466 200.000001 4.799942"
$ns_ at 8.0 "$node_(0) setdest 156.99978819465434 200.000001 5.3998914"
$ns_ at 8.0 "$node_(1) setdest 126.99978819465434 200.000001 5.3998914"
$ns_ at 9.0 "$node_(0) setdest 162.9995977913419 200.000001 5.9998097"
$ns_ at 9.0 "$node_(1) setdest 132.9995977913419 200.000001 5.9998097"
$ns_ at 10.0 "$node_(0) setdest 169.5992829685489 200.000001 6.599685"
$ns_ at 10.0 "$node_(1) setdest 139.5992829685489 200.000001 6.599685"
$ns_ at 11.0 "$node_(0) setdest 176.7987859842757 200.000001 7.199503"
$ns_ at 11.0 "$node_(1) setdest 146.7987859842757 200.000001 7.199503"
$ns_ at 12.0 "$node_(0) setdest 184.59803093573248 200.000001 7.799245"
$ns_ at 12.0 "$node_(1) setdest 154.59803093573248 200.000001 7.799245"
$ns_ at 13.0 "$node_(0) setdest 192.9969204997102 200.000001 8.39889"
$ns_ at 13.0 "$node_(1) setdest 162.9969204997102 200.000001 8.39889"
$ns_ at 14.0 "$node_(0) setdest 201.9953322072903 200.000001 8.998412"
$ns_ at 14.0 "$node_(1) setdest 171.9953322072903 200.000001 8.998412"
$ns_ at 15.0 "$node_(0) setdest 211.5931142528931 200.000001 9.597782"
$ns_ at 15.0 "$node_(1) setdest 181.5931142528931 200.000001 9.597782"
$ns_ at 16.0 "$node_(0) setdest 221.79008130332625 200.000001 10.196967"
$ns_ at 16.0 "$node_(1) setdest 191.79008130332625 200.000001 10.196967"
$ns_ at 17.0 "$node_(0) setdest 232.58601077249443 200.000001 10.79593"
$ns_ at 17.0 "$node_(1) setdest 202.58601077249443 200.000001 10.79593"
$ns_ at 18.0 "$node_(0) setdest 243.9806363021413 200.000001 11.394626"
$ns_ at 18.0 "$node_(1) setdest 213.9806363021413 200.000001 11.394626"
$ns_ at 19.0 "$node_(0) setdest 255.97364310523665 200.000001 11.993007"
$ns_ at 19.0 "$node_(1) setdest 225.97364310523665 200.000001 11.993007"
$ns_ at 20.0 "$node_(0) setdest 268.56466424068606 200.000001 12.591022"
$ns_ at 20.0 "$node_(1) setdest 238.56466424068606 200.000001 12.591022"
$ns_ at 21.0 "$node_(0) setdest 281.7532722314278 200.000001 13.188608"
$ns_ at 21.0 "$node_(1) setdest 251.7532722314278 200.000001 13.188608"
$ns_ at 22.0 "$node_(0) setdest 295.53897533914244 200.000001 13.785703"
$ns_ at 22.0 "$node_(1) setdest 265.53897533914244 200.000001 13.785703"
$ns_ at 23.0 "$node_(0) setdest 309.92121104499495 200.000001 14.382236"
$ns_ at 23.0 "$node_(1) setdest 279.92121104499495 200.000001 14.382236"
$ns_ at 24.0 "$node_(0) setdest 324.89933953037655 200.000001 14.978128"
$ns_ at 24.0 "$node_(1) setdest 294.89933953037655 200.000001 14.978128"
$ns_ at 25.0 "$node_(0) setdest 340.4726362263242 200.000001 15.573297"
$ns_ at 25.0 "$node_(1) setdest 310.4726362263242 200.000001 15.573297"
$ns_ at 26.0 "$node_(0) setdest 356.6402862255851 200.000001 16.16765"
$ns_ at 26.0 "$node_(1) setdest 326.6402862255851 200.000001 16.16765"
$ns_ at 27.0 "$node_(0) setdest 373.40137683203614 200.000001 16.761091"
$ns_ at 27.0 "$node_(1) setdest 343.40137683203614 200.000001 16.761091"
$ns_ at 28.0 "$node_(0) setdest 390.7548910414258 200.000001 17.353514"
$ns_ at 28.0 "$node_(1) setdest 360.7548910414258 200.000001 17.353514"
$ns_ at 29.0 "$node_(0) setdest 408.6997000907937 200.000001 17.944809"
$ns_ at 29.0 "$node_(1) setdest 378.6997000907937 200.000001 17.944809"
$ns_ at 30.0 "$node_(0) setdest 427.2345541452447 200.000001 18.534855"
$ns_ at 30.0 "$node_(1) setdest 397.2345541452447 200.000001 18.534855"
$ns_ at 31.0 "$node_(0) setdest 446.35807857265866 200.000001 19.123524"
$ns_ at 31.0 "$node_(1) setdest 416.35807857265866 200.000001 19.123524"
$ns_ at 32.0 "$node_(0) setdest 466.06876463046467 200.000001 19.710686"
$ns_ at 32.0 "$node_(1) setdest 436.06876463046467 200.000001 19.710686"
$ns_ at 33.0 "$node_(0) setdest 486.3649601524154 200.000001 20.296196"
$ns_ at 33.0 "$node_(1) setdest 456.3649601524154 200.000001 20.296196"
$ns_ at 34.0 "$node_(0) setdest 507.24486582329666 200.000001 20.879906"
$ns_ at 34.0 "$node_(1) setdest 477.24486582329666 200.000001 20.879906"
$ns_ at 35.0 "$node_(0) setdest 528.7065240030566 200.000001 21.461658"
$ns_ at 35.0 "$node_(1) setdest 498.70652400305664 200.000001 21.461658"
$ns_ at 36.0 "$node_(0) setdest 550.7478150015155 200.000001 22.04129"
$ns_ at 36.0 "$node_(1) setdest 520.7478150015155 200.000001 22.04129"
$ns_ at 37.0 "$node_(0) setdest 573.3664477651397 200.000001 22.618633"
$ns_ at 37.0 "$node_(1) setdest 543.3664477651397 200.000001 22.618633"
$ns_ at 38.0 "$node_(0) setdest 596.5599542891065 200.000001 23.193506"
$ns_ at 38.0 "$node_(1) setdest 566.5599542891065 200.000001 23.193506"
$ns_ at 39.0 "$node_(0) setdest 620.3256803040782 200.000001 23.765726"
$ns_ at 39.0 "$node_(1) setdest 590.3256803040782 200.000001 23.765726"
$ns_ at 40.0 "$node_(0) setdest 630.000001 200.000001 24.335102"
$ns_ at 40.0 "$node_(1) setdest 600.000001 200.000001 24.335102"

Last edited by ssoumayaa; 12-18-2012 at 09:36 AM.
 
Old 12-18-2012, 09:30 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,632

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
#9 #10 #11 #12 : The reason to ask for the patch specification :
Nobody can answer a question about unknown files.
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html

# 13 : Please edit post #13 to use code tags.
I.e. write [/code] at code text end, and [code] at text start.
( Or use the # button in the 'Advanced Editor'.)
http://www.linuxquestions.org/questi....php?do=bbcode

And by the way : Duplicate posts are not allowed.
#59 http://www.linuxquestions.org/questi...526/page4.html

.

Last edited by knudfl; 12-18-2012 at 09:34 AM.
 
Old 12-18-2012, 09:44 AM   #15
ssoumayaa
LQ Newbie
 
Registered: Dec 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
am really sorry for the mistakes that i have made .... but i still nedd help and i can't understund if what is the problem because you asked me about the patch that i used ... i answered but you didn't explain to me if the problem is in the patch i already used the "ns-2.33-hls.patch" of this page http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch but i had problems while installing ns-2.33 with this patch so i used the instructions of your post in : http://www.linuxquestions.org/questi...526/page2.html (#23) and there is no more errors and wireless-gpsr.tcl and hls.tcl are working very well .... but i still have a problem to use GPSR as a routing protocol in my tcl scrip to simulate a vehicular ad hoc network .... so i really need your help to know where is the problem ...

About post #9 #10 #11 #12 i don't know what to do to correct my mistaks ..!! should i delete these three posts ?? am really sorry
 
  


Reply

Tags
gpsr, gpsr-hls, ns2, vanet


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
implementation gpsr in VANET anisabutsi Linux - Newbie 6 07-07-2013 09:14 AM
GPSR in VANET Darshana.yadav@gmail.com Linux - Newbie 2 10-19-2012 01:44 AM
NS2 network simulation problem:Change queue parameters dynamically during simulation raeisy Linux - Networking 1 11-21-2010 11:30 AM


All times are GMT -5. The time now is 07:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration