[ns] Timer with packet ID

2006-07-11 Thread sandoche balakrichenan

Hello everybody

The timer function in NS in Constant Bit Rate(CBR) traffic
generation works like this. After every interval it creates a new packet and
sends the created packet. For me what i want is, if i have created a packet
with sequence number 1, i send that packet and wait for 0.2 seconds to send
that same packet again. In the mean time there are other packets created.
For e.g a packet with sequence number 2 is created and sent. It has to wait
for another 0.3 seconds to be sent again. The question is, is there a way to
relate packet sequence number with the time, so that at an instance of the
time i can get which packet is to be resent. Is there any examples in NS on
that.
Thanks
Sandoche


[ns] how to simulate UDP server?

2006-07-11 Thread S.Thanga Prakash

hi all,

 I am trying to simulate UDP server/client application.
The client will send the request and the server receives it and send it 
back to the client and client receives it.

When i tried with Agent/UDP? I don't know send the message back to client.

One more, the client behaves a source and sink.

Please, help me for the same.

regards,
stp.




[ns] 802.11 dynamic bit rate change

2006-07-11 Thread guille

Hi,

In real 802.11b and 802.11g wireless cards the bit rate changes dynamically
depending on the channel conditions. If the card is working at 54Mbps and
is  receiving no ACK's from the receiver it will automatically switch to a
lower bit rate. Modulations used by lower bit rates are stronger against
errors, so the link may improve its performance at a lower speed (at least
some packets will arrive). There are some algorithms that rule the bit rate
such as the one used by the mad-wifi driver for atheros chips.
I would like to simulate this behavior in ns2. I'm new using ns2 and I was
not able to find the code which simulates this behaviour, is this feature
implemented on ns2? Is anybody else interested on this topic?

Thanks,

Guillermo


[ns] urgent, plz suggest

2006-07-11 Thread ijaz haider naqvi

  Dear all,
   
  I am waiting for a response.
  I am encountering a problem with ns loss models...
   
  The problem is:
   
  The uniform / Markovian loss model works very well with UDP agent But when I 
try to use these loss models with DCCP/TCPlike Agent it does not works 
properly. It gives a lot more loss than expected? Kindly suggest me what to do 
in this case. This is urgent .
   
  Thankyou all in advance.
   
  Waiting for your mail.
   
  Regards,
   
  Ijaz Haider Naqvi



 Send instant messages to your online friends http://uk.messenger.yahoo.com 


[ns] R: 802.11 dynamic bit rate change

2006-07-11 Thread Marco Fiore

Guillermo,

ns-2 does not offer native support for such phenomenon.
You 
can have a look at the patch at  www.reti.polito.it/fiore
which adds 
realistic propagation and ARF support.

Marco

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 11-lug-2006 11.50 AM
A: 
Ns Usersns-users@ISI.EDU
Ogg: [ns] 802.11 dynamic bit rate change


Hi,

In real 802.11b and 802.11g wireless cards the bit rate 
changes dynamically
depending on the channel conditions. If the card 
is working at 54Mbps and
is  receiving no ACK's from the receiver it 
will automatically switch to a
lower bit rate. Modulations used by 
lower bit rates are stronger against
errors, so the link may improve 
its performance at a lower speed (at least
some packets will arrive). 
There are some algorithms that rule the bit rate
such as the one used 
by the mad-wifi driver for atheros chips.
I would like to simulate 
this behavior in ns2. I'm new using ns2 and I was
not able to find the 
code which simulates this behaviour, is this feature
implemented on 
ns2? Is anybody else interested on this topic?

Thanks,

Guillermo





[ns] ns226 - ns228 differences

2006-07-11 Thread Christos Antonopoulos

Hello everyone,

 

I am running the same simulations of ad-hoc network with ns2.26 and ns2.28 and 
I get significant differences at delay measurements. 

Especially when DSR is considered the differences are quite high. 

Can someone verify these conclusions? 

Is the implementation of DSR so significantly changed between the two versions?

 

Please I need urgent help

 

Christos


Re: [ns] ns226 - ns228 differences

2006-07-11 Thread Samer Bali

Hi  Christos, Hi all,

I noticed also that TCP behaviour is different between the two versions 
(ns-2.26  ns-2.28). I ran the same simulation on both versions and I 
noticed that in ns-2.26 there is more dropped packet than in ns-2.28. I do 
not know if this is a bug in ns-2.26 or not. Has any body an idea about this 
problem???

Yours,
Samer

 - Original Message - 
 From: Christos Antonopoulos [EMAIL PROTECTED]
 To: ns-users@ISI.EDU
 Sent: Tuesday, July 11, 2006 2:44 PM
 Subject: [ns] ns226 - ns228 differences



 Hello everyone,



 I am running the same simulations of ad-hoc network with ns2.26 and 
 ns2.28 and I get significant differences at delay measurements.

 Especially when DSR is considered the differences are quite high.

 Can someone verify these conclusions?

 Is the implementation of DSR so significantly changed between the two 
 versions?



 Please I need urgent help



 Christos
 



Re: [ns] how to simulate UDP server?

2006-07-11 Thread S.Thanga Prakash

hi,

thanks for the response.

But, i want the flow as client--server--client.
So, that i can able to find out the response time for the request.

Simplex will be trigger the request and response independently.

Is there way to give continous X request of N bytes? ie., parameters for 
trafficType.

regards,
stp.


On Tue, 11 Jul 2006, ijaz haider naqvi wrote:

 
 hi,

   u can create two simplex links between server and cient and attach UDP 
 agent to both of them.. in this way u can carry out two way communication 
 with UDP Agent.

   Regards,

   Ijaz Naqvi
 S.Thanga Prakash [EMAIL PROTECTED] wrote:
   
 hi all,
 
 I am trying to simulate UDP server/client application.
 The client will send the request and the server receives it and send it 
 back to the client and client receives it.
 
 When i tried with Agent/UDP? I don't know send the message back to client.
 
 One more, the client behaves a source and sink.
 
 Please, help me for the same.
 
 regards,
 stp.
 
 
 
 
  Send instant messages to your online friends http://uk.messenger.yahoo.com 




[ns] TX Range Problem Still not Clear

2006-07-11 Thread Abdulaziz Barnawi


Hi All,

I have been looking for a solution on how to set a TX range for a Base Station 
that is different (e.g. much larger) from other nodes in the network. 
Unfortunately all the solutions I have tried (including ones already posted on 
the this list) will set the same TX range for all nodes including BS.

I would really appreciate if any one can help.


Regards.

A. Barnawi


[ns] DSDV Data recv()

2006-07-11 Thread Sameh Gobriel

Hi ns-users,
I have a question related to the receive function in dsdv.cc
If you take a look on the code it does the following:
1- It first checks if the node is the sender (src == myaddr_)
2- Then it checks if the packet received is a routing packet (src !=
myaddr_)  (iph-dport() == ROUTER_PORT)
3- Then it checks if the packet received is a broadcast packet
4- Else the packet is forwarded

I wonder where the data packet receive is handled, the case when
(iph-daddr() == myaddr_) and the packet is to be transmitted up to
the application layer.

Your help is greatly appreciated.

Thanks



Re: [ns] Changing CBR parameters with TCL scripts

2006-07-11 Thread B. A. Hirantha Sithira Abeysekera

Hi,
 You can set parameter as follows:
set app [new Application/Traffic/CBR]
$app set rate_ 64000 ;#kbps
$app set packetSize_ 100 ;#bytes

You can get more details in ns manual.

Regards,
Hirantha

On Tue, 11 Jul 2006 16:22:22 +0100, lekkie omotayo [EMAIL PROTECTED]
 wrote:

 
 Hi guys,
 Can anybody show me how I can change the parameters of a CBR traffic
 using tcl scripts. I mean parameters like: Packet size,  time
 interval.
 
 Also, I want the CBR traffic to be duplex transmission. i.e. when a
 traffic is send to a receiver, I want the receiver to be able to send
 CBR packets back to the sender at a specified packet size and time.
 
 I also need to introduce some signaling to trigger the initiation of
 the second session.
 
 Thnx.
 



Re: [ns] TX Range Problem Still not Clear

2006-07-11 Thread Daniel Mahrenholz

Abdulaziz Barnawi schrieb:
 I have been looking for a solution on how to set a TX range for a Base 
 Station that is different (e.g. much larger) from other nodes in the network. 
 Unfortunately all the solutions I have tried (including ones already posted 
 on the this list) will set the same TX range for all nodes including BS.
   

If you change the node-config during the creation of nodes (e.g. by 
setting different antenna gains) you will get different transmission 
ranges. You can safely assume that the antenna of the BS has a higher 
gain that that of mobile stations.

Daniel.