[ns] ns-allinone-2.30 and 2.33 installation problems in linux

2008-06-07 Thread crystal_maple


Dear all,
   I have some problems when I installed ns2 in linux, I use redhat, and the
kernel version is 2.4.21-20.EL,
the gcc version is gcc-3.2.3
it shows:

/usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c: In function
`TkDebugBorder':
/usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1388: `borderPtr'
undeclared (first use in this function)
/usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1391: invalid operands to
binary *
/usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1391: syntax error before
')' token
/usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1394: request for member
`borderTable' in something not a structure or union
/usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1394: request for member
`borderTable' in something not a structure or union
/usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1396: syntax error before
')' token
/usr/include/sys/stat.h: At top level:
/usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1134: storage size of
`shiftTable' isn't known
/usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:31: warning: `BorderInit'
declared `static' but never defined
/usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:36: warning: `Intersect'
declared `static' but never defined
/usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:39: warning: `ShiftLine'
declared `static' but never defined
{standard input}: Assembler messages:
{standard input}:702: Error: symbol `dy' is already defined
{standard input}:708: Error: symbol `dx' is already defined
{standard input}:755: Error: symbol `q' is already defined
{standard input}:761: Error: symbol `p' is already defined
{standard input}:767: Error: symbol `q' is already defined
{standard input}:773: Error: symbol `q' is already defined
make: *** [tk3d.o] Error 1
tk8.4.13 make failed! Exiting ...

The similar problem occurred when I installed ns-allinone-2.33.
Can anybody help me? Thanks very much.
-- 
View this message in context: 
http://www.nabble.com/ns-allinone-2.30-and-2.33-installation-problems-in-linux-tp17688498p17688498.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Test error with can't read "EnableHierRt_": no such variable

2008-06-07 Thread Jong-Hyouk Lee

Hi, all.

I applied mobiwan extension into ns2. Well, after the patch, I got the error
when I perform some test files located ns/tcl/test directory. The error
message is as follows:

imtl-x61:~/ns-allinone-2.33/ns-2.33/tcl/test$ ./test-all-simple
Tests: tahoe1 tahoe1Bytes tahoe1RED tahoe1REDbytes tahoe2 tahoe3 tahoe3RED
tahoe4 no_bug bug reno1 reno renoA reno2 reno3 reno4 reno4a reno5
reno5_nobug telnet delayed phase phase1 phase2 timers manyflows stats
statsECN stats1 stats1Bytes stats1a stats1aBytes statsHeaders stats2 stats3
stats4 statsTFRC
Running test tahoe1:
../../ns test-suite-simple.tcl tahoe1
Guide: Tahoe TCP with multiple packets dropped from a window of data.
can't read "EnableHierRt_": no such variable
(Object set line 1)
invoked from within
"Simulator set EnableHierRt_"
(procedure "_o12" line 10)
(Node attach line 10)
invoked from within
"$node attach $agent"
(procedure "_o4" line 2)
(Simulator attach-agent line 2)
invoked from within
"$self attach-agent $source $s_agent"
(procedure "_o4" line 6)
(Simulator create-connection line 6)
invoked from within
"$ns_ create-connection TCP $node_(s1) TCPSink $node_(k1) 0"
(procedure "_o3" line 7)
(Test/tahoe1 run line 7)
invoked from within
"$t run"
(procedure "TestSuite" line 41)
(TestSuite runTest line 41)
invoked from within
"TestSuite runTest"
(file "test-suite-simple.tcl" line 1824)
Test output differs from reference output
Diagnose with: diff test-output-simple/tahoe1.test test-output-simple/tahoe1
Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html";.
next?
imtl-x61:~/ns-allinone-2.33/ns-2.33/tcl/test$

Anyone knows about these errors? Thanks in advance.

-- 
Internet Management Technology Lab, Sungkyunkwan University.
Jong-Hyouk Lee.

#email: jonghyouk (at) gmail (dot) com
#webpage: http://cv.hurryon.org


[ns] loss rate in tcl file or in ns-default.tcl file gives different results

2008-06-07 Thread Semra YILMAZ

Dear all,
Defining the loss rate in tcl script and ns code gives the different results 
(number of sent, received packets). That is, I am defining loss rate in 
ns-default.tcl file with the following line;

ErrorModel set rate_ 0.10

For example this gives the following results:
# of tcp packet sent from sender: 1955
# of tcp packet received at receiver: 1935
# of ack packet received at sender: 1722
 
Or I am defining the loss rate in tcl script with the following line
 

$ns_ node-config -IncomingErrProc losses_module 
-OutgoingErrProc losses_module 

 

proc losses_module {} {

set loss_module [new ErrorModel]

$loss_module set rate_ 0.10

$loss_module unit pkt

return $loss_module

}

For example this gives the following results:
# of tcp packet sent from sender: 5148
# of tcp packet received at receiver: 5116
# of ack packet received at sender: 5027
 
I am confused with these results. Could you please send your idea for this 
issue.
Regards,
Semra
 
##
Dikkat:

Bu elektronik posta mesaji kisisel ve ozeldir. Eger size 
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. 
Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, 
guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki 
gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi 
gorusu olmak zorunda degildir.

##
Attention: 

This e-mail message is privileged and confidential. If you are 
not the intended recipient please delete the message and notify 
the sender. E-mails to and from the company are monitored for 
operational reasons and in accordance with lawful business practices. 
Any views or opinions presented are solely those of the author and 
do not necessarily represent the views of the company.

##



[ns] FW: packet loss rate cannot be reached to the loss rate defined intcl

2008-06-07 Thread Semra YILMAZ

Hello,
I have sent the below message a few day ago. If anyone has any idea for the 
issue below, i will be very glad.
Thanks
Semra



From: [EMAIL PROTECTED] on behalf of Semra YILMAZ
Sent: Wed 04.06.2008 22:44
To: ns-users@ISI.EDU
Subject: [ns] packet loss rate cannot be reached to the loss rate defined intcl




Hello,
I have a question about error model in ns2. Even i define the loss rate as 10%, 
15% or 20% or more, I cannot see that kind of packet loss in simulations.
For example, I am measuring the number of TCP packet sent from sender, number 
of TCP packets received at receiver and number of ACK packets at the sender. 
But the difference between the number of TCP packet sent from sender and the 
number of received TCP packets at receiver are not so much as defined in the 
loss rate. I was expecting that if I sent 1000 TCP packets and if I define the 
loss rate as %10, 100 TCP packets should be lost. But I cannot see this result 
in my simulation. In my simulaiton the packet losses about 1 %.
My error model is as below:
$ns_ node-config -IncomingErrProc losses_module -OutgoingErrProc losses_module

proc losses_module {} {

set loss_module [new ErrorModel]

$loss_module set rate_ 0.10

$loss_module unit pkt

return $loss_module }

If anyone has an idea, i will deeply appreciate it.
Thanks in advance,
Semra 
##
Dikkat:

Bu elektronik posta mesaji kisisel ve ozeldir. Eger size
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.
Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte,
guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki
gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi
gorusu olmak zorunda degildir.

##
Attention:

This e-mail message is privileged and confidential. If you are
not the intended recipient please delete the message and notify
the sender. E-mails to and from the company are monitored for
operational reasons and in accordance with lawful business practices.
Any views or opinions presented are solely those of the author and
do not necessarily represent the views of the company.

##



##
Dikkat:

Bu elektronik posta mesaji kisisel ve ozeldir. Eger size 
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. 
Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, 
guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki 
gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi 
gorusu olmak zorunda degildir.

##
Attention: 

This e-mail message is privileged and confidential. If you are 
not the intended recipient please delete the message and notify 
the sender. E-mails to and from the company are monitored for 
operational reasons and in accordance with lawful business practices. 
Any views or opinions presented are solely those of the author and 
do not necessarily represent the views of the company.

##



Re: [ns] Negative UID of the packets

2008-06-07 Thread Amit Soni

Hi Ns-Users,

Thank you Teerawat for your reply, but in my simulation, from 0-3.4
seconds "th->uid()" is positive but from 3.4 it goes negative. I think the
most probably reason is that the packet uid space exhausts, but then why
doesn't it shows some error. Any ways even if it goes exhausts is there
any way to wrap around the uid's , I mean renew all the uid's.

Thanks again,

Regards,
Amit Soni
email id: [EMAIL PROTECTED]


>
> Hi Amit,
>
> Negative UID is a common mechanism in NS2. NS2 uses the scheduler to keep
> track of event. The mechanism is as follows:
>
> 1. When you "schedule" an event at a certain time, a positive uid_
> value is assigned to the event.
> 2. When the event is executed, the uid_ is revert to its negative value.
> 3. Again, when you create another event, a new event with positive uid_
> is created.
>
> Having negative uid_ simply means that the packet (or event) is being
> executed (e.g., transmitted to another node).
> Best,
>
> Teerawat
>
> P.S. There is one book for NS2. If you are interested, please check the
> following link
> http://www.springer.com/engineering/signals/book/978-0-387-71759-3?detailsPage=otherBooks&CIPageCounter=CI_MORE_BOOKS_BY_AUTHOR0
>
>
>
> On 6/6/2008, "Amit Soni" <[EMAIL PROTECTED]> wrote:
>
>>
>>Hello Ns-Users,
>>
>>I am simulating Large Ethernet LAN over ns2 and wanted to trace packets
>>that are ready to be send in to the channel. Since ns2 does not support
>>this type of trace I have to change the code of mac-802_3.cc to know when
>>and which packets are ready to be dumped in to the channel.
>>
>>Following is the code in mac-802_3.cc::
>>hdr_cmn *th = hdr_cmn::access(p);
>>hdr_mac *mh= HDR_MAC(p);
>>mytrace<<"+2"<<"\t\t">
>>Following are my specification of network::
>>Bandwidth of the LAN: 10Mb
>>Number of nodes: 2002
>>Delay: 0.025ms
>>1001 nodes are cbr agents and 1001 nodes are null.
>>
>>Following line is used to make LAN::
>>set lan_ [$ns make-lan -trace on $nodelist 10Mb .025ms LL Queue/DropTail
>>Mac/802_3 Channel Phy/WiredPhy ]
>>
>>
>>I am Simulating just for 5 seconds and after around 3.4 seconds or so I
>>started getting th->uid() as negative. And the uid of the packet just
>>before negative uid is 2147453588. Please point me where I am going
>> wrong.
>>I would greatly appreciate any suggestions.
>>
>>Thanks,
>>
>>Regards,
>>Amit Soni
>>email id: [EMAIL PROTECTED]
>>
>