LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2015, 05:52 AM   #31
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156

Post #30, @padmakmath : Welcome to LQ.

"downl413.tcl" : Unknown file. Please attach as downl413.tcl.txt

Attachments : The paper clip tool in the 'Advanced Editor'.
 
Old 05-08-2015, 11:22 AM   #32
padmakmath
LQ Newbie
 
Registered: May 2015
Posts: 2

Rep: Reputation: Disabled
ns2.35+lte error

sir,
this is with reference to the post on ns235-lte. i installed according to your procedure.
i used the command $ns235-lte downl413.tcl . it executed but showing the error as "invalide class id in droptail::enqueue, packet's class id is 4".
what is this error and how to remove it.

the code is as below:

Code:
set num_nodes 20
set max_nodes 25

set ns_ [new Simulator]

#Define different colors for data flows (for NAM)

$ns_ color 1 Blue
$ns_ color 2 Red
$ns_ color 3 yellow
$ns_ color 4 cyan
$ns_ color 5 brown
$ns_ color 6 purple
$ns_ color 7 green
$ns_ color 8 navy
$ns_ color 9 maroon
$ns_ color 10 black
$ns_ color 11 cornsilk
$ns_ color 12 lightcoral
$ns_ color 13 firebrick
$ns_ color 14 deeppink
$ns_ color 15 palevioletred
$ns_ color 16 coral
$ns_ color 17 lightsalmon


#Open the NAM trace file
set nf [open out.nam w]
$ns_ namtrace-all $nf

set tf [open tracefile.tr w]
$ns_ trace-all $tf
#define the finish procedure
proc finish {} {
global ns_ nf tf
$ns_ flush-trace
close $nf
close $tf
exec nam out.nam
exit 0
}

#declare two dimension array with MCS index

for {set i 1} {$i < $max_nodes } {incr i} {
for {set j 1} {$j < $max_nodes } {incr j} {

set MCSID_UERB($i$j) $j
puts "Assigned MCSID_UERB($i$j) code = $MCSID_UERB($i$j)"
}

}


#Create nodes
for {set i 0} {$i < $num_nodes} {incr i} {
set n_($i) [$ns_ node]
}


#Create links between the nodes
for {set i 1} {$i < $num_nodes } { incr i } {
$ns_ duplex-link $n_(0) $n_($i) 10Mb 5ms LTEQueue/DLAirQueue
}

#-------------QUEUE SIZE DESCRIPTION---------------#
$ns_ queue-limit $n_(0) $n_(1) 10


#label the BS
$ns_ at 0.0 "$n_(0) label BS"
$ns_ at 0.0 "$n_(0) add-mark m1 brown circle"


#label the nodes
for {set i 1} {$i < $num_nodes } {incr i } {
$ns_ at 0.0 "$n_($i) label UE$i"
$ns_ at 0.0 "$n_($i) color green"

}


#-----------Configuring nodes------------#
for {set i 1} {$i < $num_nodes } {incr i } {

#Setup a UDP connection
set udp_($i) [new Agent/UDP]
$ns_ attach-agent $n_(0) $udp_($i)
set null_($i) [new Agent/Null]
$ns_ attach-agent $n_($i) $null_($i)
$ns_ connect $udp_($i) $null_($i)
$udp_($i) set fid_ 1

#puts "null_($i)"
#Setup a CBR over UDP connection
set cbr_($i) [new Application/Traffic/CBR]
$cbr_($i) attach-agent $udp_($i)
$cbr_($i) set type_ CBR
$cbr_($i) set packet_size_ 1000
$cbr_($i) set rate_ 0.5mb
$cbr_($i) set random_ false

}

#assigning RB with BCS code

#$ns_ at 0.0 "$udp_(1) set fid_ 1"
#$ns_ at 0.0 "$udp_(2) set fid_ 4"
#$ns_ at 0.0 "$udp_(3) set fid_ 5"
#$ns_ at 0.0 "$udp_(4) set fid_ 7"
#$ns_ at 0.0 "$udp_(5) set fid_ 8"
#$ns_ at 0.0 "$udp_(6) set fid_ 2"
#$ns_ at 0.0 "$udp_(7) set fid_ 13"
#$ns_ at 0.0 "$udp_(8) set fid_ 19"
#$ns_ at 0.0 "$udp_(9) set fid_ 3"
#$ns_ at 0.0 "$udp_(10) set fid_ 5"
#$ns_ at 0.0 "$udp_(11) set fid_ 14"
#$ns_ at 0.0 "$udp_(12) set fid_ 16"
#$ns_ at 0.0 "$udp_(13) set fid_ 6"
#$ns_ at 0.0 "$udp_(14) set fid_ 17"
#$ns_ at 0.0 "$udp_(15) set fid_ 12"
#$ns_ at 0.0 "$udp_(16) set fid_ 18"
#$ns_ at 0.0 "$udp_(17) set fid_ 9"
#$ns_ at 0.0 "$udp_(18) set fid_ 11"
#$ns_ at 0.0 "$udp_(19) set fid_ 10"

#carrier allocation from array

for {set j 1} {$j < $num_nodes } {incr j } {

$ns_ at 0.2 "$udp_($j) set fid_ $MCSID_UERB(2$j)"

}
for {set j 1} {$j < $num_nodes } {incr j } {

$ns_ at 1.2 "$udp_($j) set fid_ $MCSID_UERB(3$j)"
}

for {set j 1} {$j < $num_nodes } {incr j } {

$ns_ at 2.2 "$udp_($j) set fid_ $MCSID_UERB(2$j)"
}


#Schedule events for the CBR and FTP agents
for {set j 1} {$j < $num_nodes } {incr j } {

$ns_ at 0.0 "$cbr_($j) start"
$ns_ at 3.2 "$cbr_($j) stop"

}
#call the finish procedure after 3 seconds of simulation time
$ns_ at 3.5 "finish"
#run the simulation
$ns_ run
please waiting for the guidance


thank you,
padma

Last edited by padmakmath; 05-09-2015 at 12:21 AM.
 
Old 05-08-2015, 04:41 PM   #33
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Re #32.

If you cannot attach your file, the code shown must be in CODE Tags :
[code]code text[/code] .

Please edit post #32 : That's the 'Edit' button in post #32.


-
 
1 members found this post helpful.
Old 05-10-2015, 05:54 AM   #34
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
@padmakmath : Read post #31.

Repeat : Attachments are done with the paper clip tool in the 'Advanced Editor'.


No file is attached to post #30. It's just a text.
** Please edit post #30 to 'Code Tags'.


-

Last edited by knudfl; 05-10-2015 at 05:56 AM.
 
Old 05-30-2015, 10:02 AM   #35
yhhsiung
LQ Newbie
 
Registered: Mar 2015
Posts: 5

Rep: Reputation: Disabled
Dear Sir
Using LTE Module in NS2.35, the module whether support LTE+WiFi simulation or not?
Hsiung
 
Old 06-29-2015, 11:57 PM   #36
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Rep: Reputation: Disabled
Hi,
I was using ns2.29 at cygwin window7 (32 bit). But, I need to use now LTE module for my research. I read some posts regarding this.
Ca u please suggest me which version of NS2 and ubuntu will be matched for LTE patch? I have to install ubuntu on the
same machine (32 bit) where the windows 7 are already installed. Please suggest me.
 
Old 06-30-2015, 09:38 AM   #37
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Post #36, @rimonece : Welcome to LQ.

Installing Ubuntu ,,, the easy solution is "VirtualBox".
Install 'VirtualBox' in Windows7, then install Ubuntu(s) into VirtualBox.

Ubuntu version(s) : First : Must be 32bits (i686/i386).
LTE is not picky with version, suggest Ubuntu 14.04.2 > > >
http://releases.ubuntu.com/14.04/ubu...sktop-i386.iso
> > > ubuntu-14.04.2-desktop-i386.iso

ns-allinone-2.33 : The patch is 'lte-ns233.patch'.
ns-allinone-2.34 : lte-ns234.patch
ns-allinone-2.35_gcc482.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing
Patch : LTE-ns235_2014-2.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing

LTE info http://www.linuxquestions.org/questions/tags/lte/
Simulation examples, lte-examples-0614.tar.gz ...
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
 
Old 06-30-2015, 10:37 PM   #38
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Rep: Reputation: Disabled
Hi knudfl,

thanks for your reply. I am going to install virtualbox and ubuntu 14.04.02 on my PC. Would u please send me the step by step installing process for ns2.35 in ubuntu 14.04.02?
 
Old 07-01-2015, 06:48 AM   #39
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Re #38.

$ sudo apt-get install g++ autoconf libtool libxmu-dev xgraph

In /home/<username>/ns2/ :
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
$ cd ns-allinone-2.35/
$ patch -p0 < LTE-ns235_2014-2.patch
$ ./install
$ cd ns-2.35/
$ sudo make install
( 'make install' will copy the executable 'ns' to /usr/local/bin/)
$ cp ns ns235-lte ( This is your "ns backup" )
$ sudo cp ns235-lte /usr/local/bin/
$ cd ../nam-1.15/
$ sudo make install

The folder with the simulation examples can have any location in /home/<username>/(ns2)/.
$ cd lte-ex_06.14/
$ ns235-lte bic1.tcl
.... Etc. etc. examples.


-
 
1 members found this post helpful.
Old 07-02-2015, 03:53 AM   #40
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by knudfl View Post
Re #38.

$ sudo apt-get install g++ autoconf libtool libxmu-dev xgraph

In /home/<username>/ns2/ :
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
$ cd ns-allinone-2.35/
$ patch -p0 < LTE-ns235_2014-2.patch
$ ./install
$ cd ns-2.35/
$ sudo make install
( 'make install' will copy the executable 'ns' to /usr/local/bin/)
$ cp ns ns235-lte ( This is your "ns backup" )
$ sudo cp ns235-lte /usr/local/bin/
$ cd ../nam-1.15/
$ sudo make install

The folder with the simulation examples can have any location in /home/<username>/(ns2)/.
$ cd lte-ex_06.14/
$ ns235-lte bic1.tcl
.... Etc. etc. examples.


-

Thank you so much... Everything is Okay, I just followed this steps.
Just one more thing, Is it not necessary to define PATH / export TCL_LIBRARY or export LD_LIBRARY_PATH....................
> Actually, I am not clear about this PATH define..................

Last edited by rimonece; 07-13-2015 at 02:19 AM.
 
Old 07-02-2015, 06:17 AM   #41
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Re #40.

The executable 'ns' or "ns-<any-name>" is hard coded to know the location of it`s libraries:
ns-allinone-2.35/{ lib/*/*, bin/tcsh8* }.

The old year ~1999 text ....
"" Please put .... ,, IMPORTANT NOTICES: You MUST put .. ""
... was meant only for a "University Computer" : You had no write permissions to /usr/local/.

Conclusion : The text about setting a *PATH should be ignored.


-
 
1 members found this post helpful.
Old 07-06-2015, 04:50 AM   #42
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Rep: Reputation: Disabled
Hi knudfl,

I want to install LTE patch for ns-2.35 into CentOS6.6 (A separate machine already installed); Would you please help for installing process?

thanks
rimonece
 
Old 07-06-2015, 08:16 AM   #43
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
LTE, the 32bits (i686) CentOS 6.x

Re #42, @rimonece.

LTE, the 32bits (i686) CentOS 6.x, and Fedora - 32bits :
# yum install gcc-c++ autoconf make patch libtool libXmu-devel

In /home/<username>/ns2/ :
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
$ cd ns-allinone-2.35/
$ patch -p0 < LTE-ns235_2014-2.patch
$ ./install
$ cd ns-2.35/
# make install && exit
$ cp ns ns235-lte ( This is your " 'ns' backup" )
# cp ns235-lte /usr/local/bin/ && exit
$ cd ../nam-1.15/
# make install


-

Last edited by knudfl; 07-06-2015 at 08:18 AM.
 
1 members found this post helpful.
Old 07-23-2015, 11:01 PM   #44
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Rep: Reputation: Disabled
Hi,

I am using NS2.35 with (LTE patch) in 32bit Ubuntu 14.04 LTS. I have two questions:

a) eyana.tcl and other files are fully run. But, the throughput,delay,jitter files are not showing proper output.
Can u give me any link where I can get this type of files? I have huge googled but cannot find some appropriate files.

b) I want to install Tracegraph in ubuntu and following the steps from (https://getch.wordpress.com/2011/04/...ion-in-ubuntu/)

==================================================================================================== ========================================================
1. $sudo chmod 777 mglinstaller
2. $./mglinstaller

You would then be prompted with an information, all you have to do is to hit ENTER.
This would create a new folder named glnx86 in the following location: /home/micman/tracegraph202/bin/

Next, copy all the folders and files in /home/micman/tracegraph202/ location and paste them into /home/micman/tracegraph202/bin/glnx86/
Finally, enter the following line in Terminal:

$ sudo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/micman/tracegraph202/bin/glnx86



==================================================================================================== =======================================================
I followed the NS2.35 installation according to post #39. And in post #41, you mentioned that <Conclusion : The text about setting a *PATH should be ignored.>
so, I cannot find LD_LIBRARY_PATH=$LD_LIBRARY_PATH: in gedit ~./bashrc...

So, how to install tracegraph? So, please help in this issue.
 
Old 07-24-2015, 07:25 AM   #45
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Re post #44, @rimonece.

Please edit post #44 to be readable :
You will have to shorten the two long words ( ================ )

! ns2, etc.: The sudo command is not to be used in /home/micman/ !
( Except for 'make install' and 'cp ns-lte /usr/local/bin/ ).
Sudo is for administrative tasks only.

---- ---- ----
Quote:
I cannot find LD_LIBRARY_PATH=$LD_LIBRARY_PATH: in ./bashrc
No ns2 *PATH text is to be added to .bashrc . Not required.
The executable 'ns' or "ns-<any-name>" is hard coded to know the location of it`s libraries:
ns-allinone-2.35/{ lib/*/*, bin/tcsh8* }.

The old year ~1999 text ....
Please put .... ,, IMPORTANT NOTICES: You MUST put ..
... was meant only for a "University Computer" : You had no write permissions to /usr/local/.

This will usually do : $ cd ns-allinone-2.35/ns-2.35/ && sudo make install
* I.e. 'make install' will copy 'ns' to /usr/local/bin/, i.e. i.e. a system PATH.

----- ----- -----

Running 'tracegraph' :
$ cd /home/micman/tracegraph202/
$ export LD_LIBRARY_PATH=./bin/glnx86:$LD_LIBRARY_PATH && ./trgraph


-

Last edited by knudfl; 07-24-2015 at 07:26 AM.
 
  


Reply

Tags
lte, lte-ns235, ns2


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
LTE Patch for NS-2 Redsfan86 Linux - Software 51 04-22-2014 01:57 AM
Writing for 4G-LTE systemlordanubis Programming 3 03-10-2014 01:15 PM
[SOLVED] patching lte in ns2.33 chandana Linux - Software 19 03-01-2014 01:20 AM
Ns2-lte binteasim Linux - Software 2 07-23-2013 05:43 AM
install lte $ wimax in ns-2 maouhoub Linux - Newbie 15 03-26-2011 01:11 AM


All times are GMT -5. The time now is 09:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration