[ns] How to add a new packet header?

2010-05-01 Thread aamir khan
Hello everyone, I am a beginner of ns2. I want to add a new header in Protoname. So can anyone tell me how to add a new packet header? thanks aamirfalcon > From: ns-users-requ...@isi.edu > Subject: Ns-users Digest, Vol 77, Issue 1 > To: ns-users@ISI.EDU > Date: Sat, 1 May 2010 17:00:19 -0700 >

[ns] Mutliple Interface

2010-05-01 Thread Nirmala Baloorkar
Dear users, Where to make the changes of routingAgent.h and routingAgent.cc files if that file are not in ns2.34 please help mi need the urgent.

[ns] bandwidth of a path form internet gateway to mobile node

2010-05-01 Thread asif iqbal
Dear Experts I am working on the internet gateway discovery of mobile node in manet. Now the metric is based on hop count in case of gateway selection. For my thesis purpose i want incorporate bandwidth with hop count to select the gateway. So i need to know the current bandwidth of each mobile n

[ns] ad hoc asymmetrical link

2010-05-01 Thread etudiant etudiant
in ad hoc network how I can establish an asymmetrical link of node1 towards node2 thanks

Re: [ns] URGENT: Broadcast a UDP packet in NS2.34

2010-05-01 Thread JOE88
Thx, I tried it, it compiled but went I run it it does not display anythingdo you know what can be the problem? thx:) fenomeno83 wrote: > > or > > set udp1 [new Agent/UDP] > $ns attach-agent $n0 $udp1 > > set src1 [new Application/Traffic/CBR] > $src1 attach-agent $udp1 > > set nul

Re: [ns] URGENT: Broadcast a UDP packet in NS2.34

2010-05-01 Thread fenomeno83
or set udp1 [new Agent/UDP] $ns attach-agent $n0 $udp1 set src1 [new Application/Traffic/CBR] $src1 attach-agent $udp1 set null1 [new Agent/Null] $ns attach-agent $n1 $null1 $ns attach-agent $n2 $null1 $ns connect $udp1 $null1 $ns at 0.1 "$src1 start" $ns at 50 finish $ns run

Re: [ns] URGENT: Broadcast a UDP packet in NS2.34

2010-05-01 Thread fenomeno83
set udp1 [new Agent/UDP] $ns attach-agent $n0 $udp1 set src1 [new Application/Traffic/CBR] $src1 attach-agent $udp1 set null1 [new Agent/Null] $ns attach-agent $n1 $null1 set null2 [new Agent/Null] $ns attach-agent $n2 $null2 $ns connect $udp1 $null1 $ns connect $udp1 $null2 $ns at

Re: [ns] URGENT: Broadcast a UDP packet in NS2.34

2010-05-01 Thread JOE88
Thanks for your help, But I want to send the same packet to both nodes at the same time, i.e to broadcast not to send for each node a packet. Can you still help me? Thanks fenomeno83 wrote: > > > > set udp1 [new Agent/UDP] > $ns attach-agent $n0 $udp1 > set udp2 [new Agent/UDP] > $ns att

Re: [ns] URGENT: Broadcast a UDP packet in NS2.34

2010-05-01 Thread fenomeno83
set udp1 [new Agent/UDP] $ns attach-agent $n0 $udp1 set udp2 [new Agent/UDP] $ns attach-agent $n0 $udp2 set src1 [new Application/Traffic/CBR] $src1 attach-agent $udp1 set src2 [new Application/Traffic/CBR] $src2 attach-agent $udp2 set null1 [new Agent/Null] $ns attach-agent $n1 $null1 set nu

[ns] URGENT: Broadcast a UDP packet in NS2.34

2010-05-01 Thread JOE88
Dear Users, I am using NS2.34 for my final year project. I want to know How can I broadcast a packet to all my neighbors within 1 hop? Can you help me? I have the following nodes: - - Node 1 Node 0 - - - - Node 2 I want Node 0 to send the packet to both Node 1 an

[ns] udp forward packets

2010-05-01 Thread alessandro lazzara
hello, I want use udp agent for a script tcl for 802.11.for example I have node 0 node 1 and node2 and I want that 0(udp agent) send to 1 and 1 forward to 2 that is sink(null agent)but when 1 receive, how can forward to 2? ___

[ns] Is every node using AODV protocol maintains a neighber list of its own?

2010-05-01 Thread 李文旺
Hi~ everyone! I am trying to implement ETX metric into AODV protocol. I have add a "count" field into the Aodv_Neighber class to acount for the probe packets it received form this neighering node. And changed Hello packet into a link probe packet. (by adding to it a pointer AODV_Neighber