Re: [ns] measuring various parameters in ns

2006-08-27 Thread Giorgis Georgakoudis

You have to parse the trace file. Use awk or perl and you can google for some 
scripts.

ggeorgak

On Sunday 27 August 2006 21:48, Aritra Das wrote:
 hi

 i am simulating an wireless scenario in ns. i want to get the packet
 delivery ratio, total number of routing packets transmiited, total number
 of data packets transmitted, end to end delay at the ned of the simulation,
 preferably printed to a file. can anyone please help me how to get these.

 thanks in advance

 Aritra Das



[ns] Wireless God

2006-08-23 Thread Giorgis Georgakoudis

I'm trying to use the God::instance()-IsReachable(node1,node2) method and the 
simulation stops saying God is off. How can I turn God on?

ggeorgak



Re: [ns] Wireless God

2006-08-23 Thread Giorgis Georgakoudis

Ok, don't bother:

set $god [create-god 2]
$god on

ggeorgak

On Wednesday 23 August 2006 13:07, Giorgis Georgakoudis wrote:
 I'm trying to use the God::instance()-IsReachable(node1,node2) method and
 the simulation stops saying God is off. How can I turn God on?

 ggeorgak



[ns] ns ftp

2006-08-23 Thread Giorgis Georgakoudis

From what I see there is no ftp implementation in ns, more precisely 
what seems like ftp application is a tcl Application/FTP object that the 
only thing it does is to send packets through a tcp connection. So is there a 
real ftp implementation that complies to the standard?

ggeorgak



Re: [ns] ns ftp

2006-08-23 Thread Giorgis Georgakoudis


On Wednesday 23 August 2006 16:21, Pedro Fortuna wrote:
 No, not that I know.
 But it shouldnt be too hard to extend the existing one...

OK you are definitely kidding, have you seen the rfc specification of FTP? At 
least for me hard is not defined by how mind challenging is a task but by the 
time it consumes, and my estimate is that it needs considerable time to have 
an FTP implementation. Especially since we are talking on an abandoned 
project like ns. I am considering moving my simulations to PlanetLab and 
waiting for the arrival of Internet2 but I am hugely disappointed by the 
potential not exploited of ns. At least when I see an Application/FTP 
interface I am expecting to do what it says. If I hadn't checked the source 
code deviating from my main work I wouldn't know ( and it's bad not to 
deliver what you promiss).

ggeorgak

 On 8/23/06, Giorgis Georgakoudis [EMAIL PROTECTED] wrote:
  From what I see there is no ftp implementation in ns, more precisely
 
  what seems like ftp application is a tcl Application/FTP object that
  the only thing it does is to send packets through a tcp connection. So is
  there a real ftp implementation that complies to the standard?
 
  ggeorgak



Re: [ns] ns ftp

2006-08-23 Thread Giorgis Georgakoudis

I am sorry for the aggresiveness of my mail. The free implementation is too 
unreliable for what I am trying to do as I want very accurate results. The 
use of emulation is possible but still there are better ways to do it 
(PlanetLab). As for the open-source spirit you are completely right. I 
apologize again, it was in the spur of the moment.

ggeorgak

On Wednesday 23 August 2006 16:56, you wrote:
 You have to understand that not everyone has the same requirements you
 have. Very few ppl would need a complete and rigorous implementation
 of FTP in NS. Many don't even care if it is FTP at all... they just
 want to drive a continuous flow of tcp traffic through the simulated
 scenario. When you do some simulations, you do not need to implement
 everything, you just need to figure out what is important for your
 studies.

 There's two things that come to mind that you could probably do.
 1) adapt a free implementation of FTP to a new Application/FTP source and
 sink 2) use real FTP traffic (NS2 can be made to bridge between two real
 life FTP applications).
 I'm not saying that those are easy to accomplish, but they are
 certainly feasible.

 As for the unmaintainability of NS, I share your concerns, but there's
 nothing we can do except to contribute. That's the spirit of
 open-source. In the meanwhile, NS3 is being planed and will be
 available some day.

 Best Regards,
 Pedro Fortuna
 INESC Porto



Re: [ns] Multiple UDP traffic generator to one UDP source

2006-08-22 Thread Giorgis Georgakoudis

Perhaps I didn't express it right. I have two sources and one sink. The 
sources send data packets to the sink and the sink must ack the packets to 
each the source. The problem is that UDP agent can handle only one connection 
between source and sink so the ack packets are only transmitted to one source 
(the last one for which $ns connect $udpsource $udpsink has been called for).  
Has anybody already solved that problem? Another issue is that there is no 
sendto() method defined for UDP agent and not for its parent agent too which 
partially could solve the problem by changing the default recv() method of 
UDP Agent to provide a sender ns_addr_t to the application. If anybody has 
worked this out please reply to me.

ggeorgak

On Tuesday 22 August 2006 00:19, amin nazaran wrote:
 Dear Giorgis

 I think your Channel do not transmit the data to specified sink when you
 have 2 sink with

 one share node it is better that you defined two sources ,then connect each
 source to

 spesified sink , I think, it is not possible that you connect two udp agent
 to each other,

 , you must connect udp agent to sink,  your Definition have problems.

 On 8/21/06, Giorgis Georgakoudis [EMAIL PROTECTED] wrote:
  I builded a very simple app on top of the UDP agent of ns and the problem
  is
  that if I have two traffic generators both can send to the UDP agent of
  the
  traffic sink but when the sink is sending the ack (my application) the
  ack is
  send to the last node for which the $ns connect $udpAgent1 $udpAgent2
  has
  been called. How can I correct that?



Re: [ns] Help to learn tcl/ex/*.tcl

2006-08-21 Thread Giorgis Georgakoudis

Be more specific on the errors you get.

ggeorgak

On Monday 21 August 2006 08:36, S.Thanga Prakash wrote:
 hi all,

   I am trying to execute example tcl scripts.
 But, i am getting errors on execution.

 how to start the execution of these examples?

 thanks in advance,

 regards,
 stp.



Re: [ns] Installation Problem

2006-08-20 Thread Giorgis Georgakoudis

What exactly is the problem? Did u check the installation troubleshooting at 
nsnam website?

On Sunday 20 August 2006 11:33, Harish Kumar wrote:
 hi all,

  Can any body tell me, issues regarding implementing Ns-2.29 all in one
 package on Red Hat Enterprise Linux Ver 4 Update 2. I am not able to
 install it..But i was able to install on Red Hat Linux 9.0

 thanx
 Harish Kumar




 -
 Do you Yahoo!?
  Everyone is raving about the  all-new Yahoo! Mail Beta.



[ns] Multiple UDP traffic generator to one UDP source

2006-08-20 Thread Giorgis Georgakoudis

I builded a very simple app on top of the UDP agent of ns and the problem is 
that if I have two traffic generators both can send to the UDP agent of the 
traffic sink but when the sink is sending the ack (my application) the ack is 
send to the last node for which the $ns connect $udpAgent1 $udpAgent2 has 
been called. How can I correct that?



[ns] FTP protocol

2006-08-20 Thread Giorgis Georgakoudis

Where is the ftp protocol implemented? There is a baytcp folder where ftp 
source files exist and create a class Agent/BayTcp/FTPClient and server 
respectively, what's the difference between that and an Application/FTP class 
(which by the way can't find where it is implemented)? From what I understand 
the BayTCP is both ways tcp, whereas the Agent/TCP where Application/FTP 
relies not is not(?). If I am right how is the 3-way HS implemented? I know 
things are slow on the list as it is summer and stuff but I would really 
appreciate some help.

best regards,

ggeorgak 



[ns] RESENT: Determine if there is connectivity in wireless

2006-08-16 Thread Giorgis Georgakoudis

Is there way to determine if there is connectivity in a wireless simulation 
because I want to do somethink similar to:

while(!network_up()) { //waiting}

ggeorgak



[ns] Determine if there is connectivity in wireless

2006-08-15 Thread Giorgis Georgakoudis

Is there way to determine if there is connectivity in a wireless simulation 
because I want to do somethink similar to:

while(!network_up()) { //waiting}

ggeorgak



Re: [ns] what should I use to connect nodes in wireless:

2006-08-14 Thread Giorgis Georgakoudis

Just connect the source/sink agents and when there is connectivity a wireless 
channel is available automatically.

ggeorgak

On Monday 14 August 2006 22:32, Mohadig Rousstia wrote:
 hi Sandeep,

   you can take a look at this folder, for wireless:

   .ns-2.29\tcl\ex\wireless-demo-csci694.tcl

   then compare with tcl\ex\simple.tcl for the wired link.

   regards

   Mohadig Widha
 Sandeep [EMAIL PROTECTED] wrote:
 Hello all,
 duplex-link , make-lan dont work in wireless scenario (according to
 some). Then what should I use to connect nodes in wireless.
 Thank u for any help,
 Sandeep.




 -
 Do you Yahoo!?
  Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.



[ns] ns - nam validation failed

2006-07-25 Thread Giorgis Georgakoudis

System configuration:

- gcc version 3.4.6
- tcl-8.4.9
- tk-8.4.9
- otcl-1.11
- tclcl-1.17
- http://www.isi.edu/nsnam/dist/daily/nam-1-20060724.tar.gz (nam daily 
snapshot)
- http://www.isi.edu/nsnam/dist/daily/ns-2-20060724.tar.gz (ns daily snapshot)

I'm getting this failure after building and validating ns:

 http://pastebin.com/756197
http://pastebin.com/756277


I'm getting this failures after building and validating nam:

validate overall report: some tests failed:
 /test-all-ptp ./test-all-lan ./test-all-wireless

Help would be much appreciated.



[ns] Wireless Simulation questions

2006-06-28 Thread GIorgis Georgakoudis

I am getting myself familiar with ns v2.29 and I have some questions on
wireless simulations. I see that there are parameters defining Antenna
type, propagation model, physics, routing protocol, MAC type etc. Where
is the channel bandwidth defined and the range of communication for the
mobile nodes?



[ns] Protocol Questions

2006-06-28 Thread GIorgis Georgakoudis

As far I have seen that there is the FTP protocol on the Application
layer, is the HTTP protocol included too? And is there a DHCP protocol
simulation on ns?



Re: [ns] Wireless Simulation questions

2006-06-28 Thread GIorgis Georgakoudis

Every time I run a wireless simulation I get:

channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0

What do highestAntennaZ_ and distCST_ mean?

Giorgis Georgakoudis