LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-19-2013, 12:32 PM   #31
hothifa
LQ Newbie
 
Registered: Dec 2013
Posts: 13

Rep: Reputation: Disabled

now, can i get your help?
thanks
 
Old 12-19-2013, 12:47 PM   #32
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 29 .
Quote:
Im trying to run example of gpsr or hls but i got this error :
Which "example.gpsr.tcl" is it about ? ?

The awk file definition :
You can try to replace the awk script with one that works →
→ "awk_scripts_11.2013.tar.bz2" → →
https://drive.google.com/file/d/0B7S...it?usp=sharing

-
 
Old 12-19-2013, 01:38 PM   #33
hothifa
LQ Newbie
 
Registered: Dec 2013
Posts: 13

Rep: Reputation: Disabled
First ,

1. I run hls.tcl by typing " ns hls.tcl"
2. I got the a trace file called "hls_test.tr"

which is look like this
Code:
M 0.00000 31 (695.79, 86.54, 0.00), (382.23, 128.42), 3.43
M 0.00000 32 (590.37, 347.49, 0.00), (247.47, 1298.91), 10.64
M 0.00000 33 (54.73, 1847.59, 0.00), (533.07, 1342.59), 10.48
M 0.00000 34 (770.30, 491.96, 0.00), (399.87, 642.34), 23.02
M 0.00000 35 (1766.75, 1832.12, 0.00), (443.12, 1430.44), 17.10
M 0.00000 36 (5.46, 1684.85, 0.00), (1298.96, 1587.19), 23.99
M 0.00000 37 (1729.94, 1089.38, 0.00), (1280.88, 1832.51), 12.63
M 0.00000 38 (157.71, 681.51, 0.00), (158.15, 18.42), 19.66
M 0.00000 39 (1204.51, 204.07, 0.00), (1721.98, 1412.68), 11.55
s 0.001675134 _32_ RTR  --- 0 GPSR 11 [0 0 0 0] ------- [32:255 -1:255 32 0] 3 0 [-1 -1]
s 0.002130134 _32_ MAC  --- 0 GPSR 69 [0 ffffffff 20 800] ------- [32:255 -1:255 32 0] 3 0 [-1 -1]
r 0.002682903 _34_ MAC  --- 0 GPSR 11 [0 ffffffff 20 800] ------- [32:255 -1:255 32 0] 3 1 [-1 -1]
r 0.002707903 _34_ RTR  --- 0 GPSR 11 [0 ffffffff 20 800] ------- [32:255 -1:255 32 0] 3 1 [1 1]
s 0.005404169 _14_ RTR  --- 1 GPSR 11 [0 0 0 0] ------- [14:255 -1:255 32 0] 3 0 [-1 -1]
s 0.005799169 _14_ MAC  --- 1 GPSR 69 [0 ffffffff e 800] ------- [14:255 -1:255 32 0] 3 0 [-1 -1]
s 0.007102330 _0_ RTR  --- 2 GPSR 11 [0 0 0 0] ------- [0:255 -1:255 32 0] 3 0 [-1 -1]
s 0.007357330 _0_ MAC  --- 2 GPSR 69 [0 ffffffff 0 800] ------- [0:255 -1:255 32 0] 3 0 [-1 -1]
r 0.007909757 _8_ MAC  --- 2 GPSR 11 [0 ffffffff 0 800] ------- [0:255 -1:255 32 0] 3 1 [-1 -1]
r 0.007910131 _9_ MAC  --- 2 GPSR 11 [0 ffffffff 0 800] ------- [0:255 -1:255 32 0] 3 1 [-1 -1]
r 0.007910131 _27_ MAC  --- 2 GPSR 11 [0 ffffffff 0 800] ------- [0:255 -1:255 32 0] 3 1 [-1 -1]
r 0.007934757 _8_ RTR  --- 2 GPSR 11 [0 ffffffff 0 800] -------

.

etc
then Im trying to pass this file to

awk -f [anyawk from awk_scripts_11.2013 .awk] hls_test.tr

i got the following erorr:
Code:
awk: all.awk:62: (FILENAME=hls_test.tr FNR=5041) fatal: division by zero attempted
while when i use the same awk for AODV trace file, i got result as shown below:
Code:
send = 33983.00
recv = 33881.00
Routing Packet Sent = 7091.00
Routing Packet Forward = 110.00
Routing Overhead = 7201.00
Packaet Delivery Fraction (%) = 99.6998
Normalized Routing Load (%)= 0.2125
Average e-e delay (second)= 0.0179
No. of dropped data (packets) = 206
No. of dropped data (bytes)   = 109592
ALL what I want is to get result e-e delay , Packaet Delivery Fraction . etc .. how?
thank you very much
 
Old 12-02-2014, 02:29 AM   #34
amitkatre2013@gmail.com
LQ Newbie
 
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
Unhappy Error while running "make" comand after configuring GPSR in NS-2.33

Quote:
Originally Posted by knudfl View Post
This is GPSR , not GPRS.
Hello

I am trying to patch GPSR in NS-2.33. I have successfully configured it but when i run "make" command it shows following error

"queue/priqueue.cc: In member function ‘virtual void PriQueue::recv(Packet*, Handler*)’:
queue/priqueue.cc:93:8: error: ‘PT_GPSR’ cannot appear in a constant-expression
queue/priqueue.cc: In member function ‘virtual void PriQueue::recv(Packet*, Handler*)’:"

Please tell me how to remove this..
 
Old 12-02-2014, 04:34 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #34, @amitkatre2013.. : Welcome to LQ.

Latest GPSR-hls instructions, ns-2.33, post #5 here ...
http://www.linuxquestions.org/questi...-4175498876/#5

Latest GPSR-hls, ns-2.35 :
http://network-simulator-ns-2.7690.n...g-td29371.html


Your errrors, ns-2.33 : g++ version 4.1.2 must be used.
Check your Makefile, line ~37 : CPP = g++41

Any questions ? Please specify Ubuntu version →
a) Show the reply from the command $ uname -m
b) $ cat /etc/issue

-
 
  


Reply

Tags
gpsr, gpsr-hls, ns2



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
How to implement my own protocol with AgenjJ dissou Programming 2 02-14-2011 08:49 AM
How to implement my own protocol with AgentJ dissou Linux - Networking 0 02-10-2011 03:25 AM
Telnet protocol through GPRS/GSM Modem capa_master Linux - Newbie 1 12-22-2010 03:05 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:51 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration