Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Hi thanks for your help i installed ns-allinone-2.34..but while validating
i am getting this
Running test aloha:
../../ns test-suite-satellite.tcl aloha QUIET
Test output agrees with reference output
Running test aloha.collisions:
../../ns test-suite-satellite.tcl aloha.collisions QUIET
Test output agrees with reference output
Running test mixed.legacy:
../../ns test-suite-satellite.tcl mixed.legacy QUIET
Test output agrees with reference output
All test output agrees with reference output.
Mon Feb 18 06:05:18 IST 2013
These messages are NOT errors and can be ignored:
warning: using backward compatibility mode
This test is not implemented in backward compatibility mode
validate overall report: some portable tests failed:
./test-all-newreno ./test-all-tcpOptions ./test-all-tcpVariants ./test-all-aimd ./test-all-frto ./test-all-quickstart ./test-all-manual-routing ./test-all-links
some non-portable tests also failed:
./test-all-session
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME
yashwanth@ubuntu:~/ns-allinone-2.34/ns-2.34$
and also after patching bgp and executing this command
> cd ~/ns-allinone-2.34/ns-2.34
> ./configure
> make clean ; make
i am getting thsi
bgp/Util/ipaddress.cc: In constructor ‘IPaddress::IPaddress(std::string)’:
bgp/Util/ipaddress.cc:163: warning: comparison between signed and unsigned integer expressions
bgp/Util/ipaddress.cc: In member function ‘std::string IPaddress::bin2str(boolVector)’:
bgp/Util/ipaddress.cc:279: warning: comparison between signed and unsigned integer expressions
bgp/Util/ipaddress.cc:295: error: ‘sprintf’ was not declared in this scope
bgp/Util/ipaddress.cc: In member function ‘boolVector IPaddress::str2bin(std::string)’:
bgp/Util/ipaddress.cc:310: warning: comparison between signed and unsigned integer expressions
bgp/Util/ipaddress.cc: In member function ‘int IPaddress::intval()’:
bgp/Util/ipaddress.cc:420: warning: comparison between signed and unsigned integer expressions
bgp/Util/ipaddress.cc: In member function ‘int IPaddress::masked_intval(int)’:
bgp/Util/ipaddress.cc:580: warning: comparison between signed and unsigned integer expressions
bgp/Util/ipaddress.cc: In member function ‘std::string IPaddress::val2str()’:
bgp/Util/ipaddress.cc:667: error: ‘sprintf’ was not declared in this scope
bgp/Util/ipaddress.cc: In member function ‘std::string IPaddress::toString()’:
bgp/Util/ipaddress.cc:698: error: ‘sprintf’ was not declared in this scope
make: *** [bgp/Util/ipaddress.o] Error 1
yashwanth@ubuntu:~/ns-allinone-2.34/ns-2.34$
The above are some of 119 group tests, used for running the 2,000 tests.
* Some few tests will usually fail. Don't worry as long as everything else works.
Quote:
> ./configure
> make clean ; make
$ './configure' is the wrong command.
Right is : $ export CC=gcc34 CXX=g++34 && ./configure ( If Fedora ).
EDIT : Ubuntu 12* : $ export CC=gcc41 CXX=g++41 && ./configure
yashwanth@ubuntu:~/ns-allinone-2.34/ns-2.34$ export CC=gcc34 CXX=g++34 && ./configure
checking for gcc... gcc34
checking for C compiler default output file name...
configure: error: in `/home/yashwanth/ns-allinone-2.34/ns-2.34':
configure: error: C compiler cannot create executables
See `config.log' for more details.
yashwanth@ubuntu:~/ns-allinone-2.34/ns-2.34$
but for ./configure this at the end,
Explicitly disabling static compilation
checking for dlopen in -ldl... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tcl/lib/ns-autoconf.tcl
config.status: creating indep-utils/webtrace-conv/ucb/Makefile
config.status: creating indep-utils/webtrace-conv/dec/Makefile
config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
config.status: creating indep-utils/webtrace-conv/epa/Makefile
config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
config.status: creating autoconf.h
config.status: autoconf.h is unchanged
yashwanth@ubuntu:~/ns-allinone-2.34/ns-2.34$
and for this make clean ; make
bgp/Util/ipaddress.cc: In constructor ‘IPaddress::IPaddress(std::string)’:
bgp/Util/ipaddress.cc:163: warning: comparison between signed and unsigned integer expressions
bgp/Util/ipaddress.cc: In member function ‘std::string IPaddress::bin2str(boolVector)’:
bgp/Util/ipaddress.cc:279: warning: comparison between signed and unsigned integer expressions
bgp/Util/ipaddress.cc:295: error: ‘sprintf’ was not declared in this scope
bgp/Util/ipaddress.cc: In member function ‘boolVector IPaddress::str2bin(std::string)’:
bgp/Util/ipaddress.cc:310: warning: comparison between signed and unsigned integer expressions
bgp/Util/ipaddress.cc: In member function ‘int IPaddress::intval()’:
bgp/Util/ipaddress.cc:420: warning: comparison between signed and unsigned integer expressions
bgp/Util/ipaddress.cc: In member function ‘int IPaddress::masked_intval(int)’:
bgp/Util/ipaddress.cc:580: warning: comparison between signed and unsigned integer expressions
bgp/Util/ipaddress.cc: In member function ‘std::string IPaddress::val2str()’:
bgp/Util/ipaddress.cc:667: error: ‘sprintf’ was not declared in this scope
bgp/Util/ipaddress.cc: In member function ‘std::string IPaddress::toString()’:
bgp/Util/ipaddress.cc:698: error: ‘sprintf’ was not declared in this scope
make: *** [bgp/Util/ipaddress.o] Error 1
yashwanth@ubuntu:~/ns-allinone-2.34/ns-2.34$
#
# select.tcl
#
puts ""
puts "SELECT Validation Test: "
puts ""
puts " A \"triangle\" consisting of three ASes. Each AS has one"
puts " BGP-speaking router. Each router is connected directly to"
puts " the routers in each neighboring AS."
puts ""
puts " AS----AS "
puts " \\ / "
puts " \\ / "
puts " AS "
puts ""
set nf [open select.nam w]
set ns [new Simulator]
$ns namtrace-all $nf
$ns node-config -BGP ON
set n0 [$ns node 0:10.0.0.1]
set n1 [$ns node 1:10.1.1.1]
set n2 [$ns node 2:10.2.2.1]
$ns node-config -BGP OFF
$ns duplex-link $n0 $n1 1Mb 1ms DropTail
$ns duplex-link $n0 $n2 1Mb 1ms DropTail
$ns duplex-link $n1 $n2 1Mb 1ms DropTail
set bgp_agent0 [$n0 get-bgp-agent]
$bgp_agent0 bgp-id 10.0.0.1
$bgp_agent0 neighbor 10.1.1.1 remote-as 1
$bgp_agent0 neighbor 10.2.2.1 remote-as 2
set bgp_agent1 [$n1 get-bgp-agent]
$bgp_agent1 bgp-id 10.1.1.1
$bgp_agent1 neighbor 10.0.0.1 remote-as 0
$bgp_agent1 neighbor 10.2.2.1 remote-as 2
set bgp_agent2 [$n2 get-bgp-agent]
$bgp_agent2 bgp-id 10.2.2.1
$bgp_agent2 neighbor 10.0.0.1 remote-as 0
$bgp_agent2 neighbor 10.1.1.1 remote-as 1
$ns at 0.25 "puts \ "\n time: 0.25 \n n0 (ip_addr 10.0.0.1) \
defines a network 10.0.0.0/24.\ ""
$ns at 0.25 "$bgp_agent0 network 10.0.0.0/24"
$ns at 39.0 "puts \ "\n time: 39 \
\n dump routing tables in all BGP agents: \n\ ""
$ns at 39.0 "$bgp_agent0 show-routes"
$ns at 39.0 "$bgp_agent1 show-routes"
$ns at 39.0 "$bgp_agent2 show-routes"
$ns at 40.0 "finish"
proc finish {} {
global ns nf
$ns flush-trace
close $nf
puts "Simulation finished. Executing nam..."
exec nam select.nam
exit 0
}
puts "Simulation starts..."
$ns run
i am getting this
yashwanth@ubuntu:~/bgp$ ns select.tcl
SELECT Validation Test:
A "triangle" consisting of three ASes. Each AS has one
BGP-speaking router. Each router is connected directly to
the routers in each neighboring AS.
AS----AS
\ /
\ /
AS
(_o10 cmd line 1)
invoked from within
"_o10 cmd get-bgp-agent"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o10" line 2)
(SplitObject unknown line 2)
invoked from within
"$n0 get-bgp-agent"
invoked from within
"set bgp_agent0 [$n0 get-bgp-agent]"
(file "select.tcl" line 28)
yashwanth@ubuntu:~/bgp$
Last edited by yashwanth58; 02-19-2013 at 10:32 PM.
Sir which ubuntu version is suitable for ns-allinone-2.34 and i want to use bgp patch also..i tried to execute some tcl script which is present in test folder under bgp folder..but i am getting error there also..I think its problem with the ubuntu itself..Currently i am using ubuntu 12.04..Which would you prefer..
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 26 .
All files but one (route-distrib.tcl) in ns-2.34/tcl/bgp/test/ work OK here.
All OK simulations will open nam automaticaly, except two :
reflection.tcl, reflection2.tcl. Nam works with :
$ nam reflection.nam
$ nam reflection2.nam
The files in ns-2.34/tcl/bgp/ : Not to be run.
About testing which Ubuntu that will work best :
I can upload an installable package "bgp-ns-2.34-ubuntu**_i386.deb" ~5 MB,
providing /usr/local/bin/ns-bgp , then you can test $ ns-bgp *.tcl.
I.e. it makes no difference which Ubuntu is used to run the executable
'ns-bgp', as long as it has been successfully built on another Ubuntu version.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
The package bgp-ns-2.34-ubuntu1004_i386.deb (6.6 MB) can be downloaded from https://docs.google.com/file/d/0B7S2...it?usp=sharing
.. And installed with "QApt Package Installer" or :
$ sudo dpkg -i bgp-ns-2.34-ubuntu1004_i386.deb
The package provides /usr/local/bin/ ns-bgp ns-bgp-rfd
Tested OK on Ubuntu 12.04. And the file route-distrib.tcl works too.
The 'ns-bgp-rfd' executable is for the two "bgp-rfd-mrai" examples,
ref. post # 25. ( tcl/bgp/test/ damping1.tcl damping2.tcl ).
sir i tested this file route-distrib.tcl after installing sudo dpkg -i bgp-ns-2.34-ubuntu1004_i386.deb
but then also i am getting this error..
yashwanth@ubuntu:~/ns-allinone-2.34/ns-2.34/tcl/bgp/test$ ns route-disturb.tcl
couldn't read file "route-disturb.tcl": no such file or directory
yashwanth@ubuntu:~/ns-allinone-2.34/ns-2.34/tcl/bgp/test$ ns route-distrib.tcl
ROUTE-DISTRIB Validation Test:
Two directly connected routers, each running BGP, and each representing
a different autonomous system.
AS 0 AS 1
n0 }------ { n1
(_o10 cmd line 1)
invoked from within
"_o10 cmd get-bgp-agent"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o10" line 2)
(SplitObject unknown line 2)
invoked from within
"$n0 get-bgp-agent"
invoked from within
"set bgp_agent0 [$n0 get-bgp-agent]"
(file "route-distrib.tcl" line 27)
yashwanth@ubuntu:~/ns-allinone-2.34/ns-2.34/tcl/bgp/test$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.