Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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-08-2015 at 11:21 PM.
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.
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?
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.
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..................
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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
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.
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:
==================================================================================================== =======================================================
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.