[ns] Trace file

2008-11-11 Thread bombo-claat

Hi

Can you tell me more details about your simulation ? Wired or wireless ? which 
type of routi
ng protocol is used in simulation ? and ...

yamachan



[ns] Flooding algorithm

2008-11-11 Thread pallavi kb

Hi folks,
I am trying to implement broadcasting for wireless nodes
I am hence trying to first set up flooding in wireless scenario.
It would be helpful for me to get started by looking at a flooding algorithm 
for wired nodes.

If any 1 has the tcl script for flooding in wired or wireless scenario. If you 
can share it with me.
That would be of great help

Thanks,
Pall



  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/


Re: [ns] collisions in 802.11 or interference

2008-11-11 Thread Imad Abdeljaouad

Hi Helber,
Thanks for the prompt response. Actually, I am looking for the code in ns2
(source code) where we can detect collisions. I want to simulate
interference, so I need to get the packets that were received at the same
time on some node. I know interference happens on the physical layer, but I
think it would be much more easier to implement it on the MAC in ns2. So I
am actually looking the source code part that says here is another packet
being transmitted while receiving another packet ( which is collision if
both packets are meant for the same receiver, and interference if both
packets belong to the same (or an adjacent) channel.
Can you help with that ?
cheers,

On Tue, Nov 11, 2008 at 8:35 PM, Helber Wagner <[EMAIL PROTECTED]>wrote:

>   Hi, Imad.
>
>   As far as I understood your question, you should analyze the trace file
> generated
> by your simulations.
>
>   If the MAC trace is enabled in your .tcl file, it will be a row like "D
> ... COL ..."
> indicating the time, the node, the packet and other information about a
> collision
> that has been happened.
>
>   Finally, a simple perl/awk script can retrieve this information from the
> trace file.
>
>   You can find more about mac trace in NS2 over the Internet.
>
>   Good luck.
>
> ---
> Helber Wagner da Silva
> Federal University of Ceará - Brazil
> URL: www.great.ufc.br/~helberhws 
>
>
>
> --
> *De:* Imad Abdeljaouad <[EMAIL PROTECTED]>
> *Para:* "ns-users@isi.edu" 
> *Enviadas:* Terça-feira, 11 de Novembro de 2008 23:17:46
> *Assunto:* [ns] collisions in 802.11 or interference
>
>
> Hello there,
> I am looking for the code where collisions in 802.11 occur so that I know
> which packet(s) collided and for how long they collided? this is a step in
> trying to implement interference!
> thank you!
>
> --
> best regards,
> 
> Imad Abdeljaouad
>
> --
> Novos endereços, o Yahoo! que você conhece. Crie um email 
> novocom
>  a sua cara @
> ymail.com ou @rocketmail.com.
>



-- 
best regards,

Imad Abdeljaouad


[ns] collisions in 802.11 or interference

2008-11-11 Thread Imad Abdeljaouad

Hello there,
I am looking for the code where collisions in 802.11 occur so that I know
which packet(s) collided and for how long they collided? this is a step in
trying to implement interference!
thank you!

-- 
best regards,

Imad Abdeljaouad


[ns] Packet Arrival rate -- Need Help*

2008-11-11 Thread LiViAn ZaH



if (typeof YAHOO == "undefined") {
 var YAHOO = {};
}
YAHOO.Shortcuts = YAHOO.Shortcuts || {};
YAHOO.Shortcuts.hasSensitiveText = false;
YAHOO.Shortcuts.sensitivityType = [];
YAHOO.Shortcuts.doUlt = false;
YAHOO.Shortcuts.location = "us";
YAHOO.Shortcuts.document_id = 0;
YAHOO.Shortcuts.document_type = "";
YAHOO.Shortcuts.document_title = "Packet Arrival rate -- Need Help";
YAHOO.Shortcuts.document_publish_date = "";
YAHOO.Shortcuts.document_author = "[EMAIL PROTECTED]";
YAHOO.Shortcuts.document_url = "";
YAHOO.Shortcuts.document_tags = "";
YAHOO.Shortcuts.document_language = "english";
YAHOO.Shortcuts.annotationSet = {
"lw_1226448661_0": {
"text": "Kindest Regards",
"extended": 0,
"startchar": 395,
"endchar": 409,
"start": 395,
"end": 409,
"extendedFrom": "",
"predictedCategory": "",
"predictionProbability": "0",
"weight": 0.597372,
"relScore": 11.5289,
"type": ["shortcuts:/concept"],
"category": ["CONCEPT"],
"wikiId": "",
"relatedWikiIds": [],
"relatedEntities": [],
"showOnClick": [],
"context": "begin --- Can anyone suggest some steps?   Thanks a 
lot.in advance.   Kindest Regards   LiViaN",
"metaData": {
"visible": "true"
}
 }
};
YAHOO.Shortcuts.headerID = "0ad8d09d3b285675fdce2fa1f4d88458";







Hello
 
I want to modify TCP westwood's scheme for packet arrival rate calculation. 
 
Do I need to modify the queue.cc file or i can do that same from westwood.cc ?
 
I m not so sure from which step I can begin --- Can anyone suggest 
some steps?
 
Thanks a lot.in advance.
 
Kindest Regards
LiViaN


  


[ns] Fwd: generate tcp traffic on a run-time

2008-11-11 Thread Tatiana Polishchuk

Hi,

I have  a trivial configuration of 2 nodes. Node 0 has a TCP agent attached
and Node1 - sink and a tcp 1 traffice between then.
I need  Node 0 to start sending additional sequence of packets - generate
anothor tcp  flow (tcp 2) traffic at some point of my simulation then a
particular condition is satisfied (say, then x number of packets is already
sent). Is there a way to do that? Any ideas will be appreciated.

Tatiana


[ns] Rv: how to synchronize nodes

2008-11-11 Thread Douglas Restrepo

Hello...


1. Some body can tell me how to synchronize nodes
2. and ...how to put them in sleep mode.

thank you very much


  



[ns] Add another Agent to node with DSR

2008-11-11 Thread Fry Godwin



Hi All ,

I have developed a wireless protocol and would like to incorporate it with
DSR. According to what i understand it is possible to have multiple agents
at the same node which is selectable through the dmux. I have gone through
ns-lib.tcl , ns-node.tcl , dsr.tcl and ns-mobilenode.tcl . 

When i incorporate the agents on the same node , first i attach DSR through
config node and attach the Agent to the node in my script . It seems that
the dmux object is not set in the dsr agent and gives a segmentation error.

I am a bit confused about the DSR specific node architecture ( which seems
to be different from DSDV etc ). How can i add both DSR and another Agent to
the nodes ?

Hope someone can help me out 
-- 
View this message in context: 
http://www.nabble.com/Add-another-Agent-to-node-with-DSR-tp20445168p20445168.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] how to send an acknowledgment to the one before the previous hop in dsr SR

2008-11-11 Thread anas

Dear NS-Users

Please I need to send an acknowledgment to the node which is before the 
previous one through the source rout in DSR, 
just I need to implement a TWOACK approach, 


I mean where should I but the code, and is there a packet format for network 
layer acknowledgments. 

Thanks in Advance 


[ns] How to get Pr(recieved power) in wireless simulation

2008-11-11 Thread Mirza Naveed Baig

Hi all
 
developing a node location tracking based on signal strength,can any one please 
tell me how to get the recieved power Pr in ns2 simulations.
 
 
Thanks in advance
 
Best Regards


  


Re: [ns] How to send a packet to previous node

2008-11-11 Thread howardgod howardgod

Deer Teerawat
First, thanks for reply.

My timing for send a packet to previous node is when queue received a packet
I will computer some information in packet's header. And in some
circumstances I will send a packet back to previous hop. Let previous hop
knows the result I computer in current node.

Your method is to add some script in tcl file. But I want to add the method
in c++ file. So that anyone can just using my queue method ,says
Queue/MyQueue, then their topology will apply my queue mechanism.

And I'm facing a big problem. After I computer the packet's information, I
decide to send a packet to previous node. And I can't find any information
in packet's header about previous node's ID. Therefor, even I allocate a new
packet, I can't fill the packet's destination field in common header or ip
header. So the packet won't transmit to previous node.

any way , your method is great. Maybe in other program it will help!!

Howard

2008/11/12 Teerawat Issariyakul <[EMAIL PROTECTED]>

>
> Dear Howard,
>
> Say you have a topology like (n1)-->(n2). Usually, packet will flow from
> (n1) to (n2). When you want to send a packet from (n2) back to (n1), you
> can do the following.
>
> 1. Define an instvar $conn (whose class Connector) of n2
> 2. Put the following in the Tcl simulation script
>
> [$n2 set conn] target $n1
>
> 3. I don't know when you want to send the packet back to n1, but when
> you want to do so, you can simply send the packet to $conn by using
> function recv(p,h)
>
> I hope this will help.
>
> Regards,
> Teerawat
>
>


Re: [ns] How to send a packet to previous node

2008-11-11 Thread Teerawat Issariyakul


Dear Howard,

Say you have a topology like (n1)-->(n2). Usually, packet will flow from
(n1) to (n2). When you want to send a packet from (n2) back to (n1), you
can do the following.

1. Define an instvar $conn (whose class Connector) of n2
2. Put the following in the Tcl simulation script

[$n2 set conn] target $n1

3. I don't know when you want to send the packet back to n1, but when
you want to do so, you can simply send the packet to $conn by using
function recv(p,h)

I hope this will help.

Regards,
Teerawat

On 11/11/2008, "howardgod howardgod" <[EMAIL PROTECTED]> wrote:

>Deer Teerawat
>I already know how to transmit to node. 1.generate new packet 2.fill common
>header and destination address 3. target->recv(p,h)
>but my problem is that, I can't find out previous hop's address. My purpose
>is to send a packet to previous node in IFQ.
>But when packet received by queue's recv function. I can't find anything
>about previous hop's address in common header, ip header or mac-802_11
>header.
>I also know that in routing object, it can find out the next hop's
>information in routing table. But unfortunately in IFQ can't access routing
>object's functions.
>
>any way, thanks a lot of ur reply.
>
>Howard
>
>2008/11/11 Teerawat Issariyakul <[EMAIL PROTECTED]>
>
>>
>> Dear Howard,
>>
>> The easiest way to transmit from one NsObject (e.g. Nodes) to another is
>> through a (C++ and Tcl) Connector object. A connector has two pointers
>> to NsObjects: target_ and drop_. In the OTcl domain, it uses an OTcl
>> commands "target" and "drop" (followed by the name of the NsObject)
>> to specify its "forwarding object" and "dropping object"
>>
>> A Connector object recieves a Packet "p" through its funciton
>> recv(p,h). Upon receiving a packet, the Connector object forwards the
>> packet "p" to its forwarding object by executing
>> "target_->recv(p,h)". To drop a packet, the function drop(p) of a
>> Connector object is invoked. In this case, the packet is forwarded to
>> the dropping object "*drop_" which is responsible for destroying the
>> packet.
>>
>> To find out more about Connector please refer to chapter 5 in the
>> following book from Springers:
>>
>> If you are a beginning user, you may look at the following book from
>> Springer.
>>
>> T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator
>> NS2", Springer 2008.
>>
>> Here is the link:
>> http://www.springer.com/engineering/signals/book/978-0-387-71759-3
>>
>> You might also find the following slide useful:
>> http://www.ece.ubc.ca/~teerawat/NS2.htm<
>> http://www.ece.ubc.ca/%7Eteerawat/NS2.htm
>>
>> On 11/11/2008, "howardgod howardgod" <[EMAIL PROTECTED]> wrote:
>>
>> >
>> >-- Forwarded message --
>> >From: howardgod howardgod <[EMAIL PROTECTED]>
>> >Date: 2008/11/8
>> >Subject: How to send a packet to previous node
>> >To: ns-users@isi.edu
>> >
>> >
>> >I want to send a packet to previous node. And I don't know how to find
>> >previous node's ID and where to fill the ID.
>> >
>> >I found that in common header, there's a prev_hop and next_hop_. But the
>> >prev_hop_ is NOT the previous node. It's the source.
>> >
>> >So I want to fill previous node's ID to common header's next_hop_.
>> >
>> >And is there anything else I have to fill?
>> >
>> >btw I found a way to do so. Reverse the ip header's src and dst then send
>> >it. but It still do nothing at all.
>> >
>> >HELP ME!! PLZ
>> >
>> >thanks a lot.
>> >
>> > Howard.
>> >
>>



[ns] how to send an acknowledgment to the one before the previous hop in dsr SR

2008-11-11 Thread anas


 
Dear NS-Users

Please I need to send an acknowledgment to the node which is before the 
previous one through the source rout in DSR, 
just I need to implement a TWOACK approach, 


I mean where should I but the code, and is there a packet format for network 
layer acknowledgments. 

Thanks in Advance 


[ns] ns 2.28 and 2.1b8a Installation problem on Ubuntu 8.04(Unterminated quoted string...)

2008-11-11 Thread pietro.luigi.c

Hi to everybody,

I'm a student and I need help to install NS2 on Ubuntu 8.04.

I download and I create my ns directory.

I type "./install" and i have the problem shown at the end of this page.

I have the same error installing this two versions(2.28 and 2.1b8a).

I need them! I cannot change them!

Then, on Google I have found the same error but I don't understand how =

this

problem can be resolved. Does it exist some patch for Ubuntu?

I don't want to change kind of Linux(only Ubuntu).

Please help me,

thank u

Pietro

[EMAIL PROTECTED]:~/ns2-28/ns-allinone-2.28/ns-2.28$ ../install

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

* Testing for Cygwin environment

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Cygwin not detected, proceeding with regular install.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

* Build XGraph-12.1

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

cd: 270: can't cd to ./xgraph-12.1

configure: error: expected an absolute directory name for --prefix: ../

make: *** No targets specified and no makefile found. Stop.

Can not create xgraph; But xgraph is an optional package, continuing...

==0

* Build CWeb



Making cweb

gcc -g -c -o ctangle.o ctangle.c

ctangle.w:75: warning: conflicting types for built-in function =

=91strlen=92

gcc -g -DCWEBINPUTS=3D\"/usr/local/lib/cweb\" -c common.c

common.w:1409: warning: conflicting types for built-in function =

=91strlen=92

gcc -g -o ctangle ctangle.o common.o=20

gcc -g -c -o cweave.o cweave.c

cweave.w:79: warning: conflicting types for built-in function =

=91strlen=92

gcc -g -o cweave cweave.o common.o

ln: creating symbolic link `cweave': File exists

ln: creating symbolic link `ctangle': File exists

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

* Build Stanford GraphBase

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Making sgb

cc -g -I/usr/local/sgb/include test_io.c gb_io.o -o test_io

cc -g -I/usr/local/sgb/include test_graph.c gb_graph.o -o test_graph

cc -g -I/usr/local/sgb/include test_flip.c gb_flip.o -o test_flip

./test_io

OK, the gb_io routines seem to work!

./test_graph

.=

...Hey, I allocated 1000 bytes successfully. =

Terrific...

OK, the gb_graph routines seem to work!

./test_flip

OK, the gb_flip routines seem to work!

make gb_sort.o

make[1]: Entering directory `/home/pietro/ns2-28/ns-allinone-2.28/sgb'

make[1]: `gb_sort.o' is up to date.

make[1]: Leaving directory `/home/pietro/ns2-28/ns-allinone-2.28/sgb'

make lib

make[1]: Entering directory `/home/pietro/ns2-28/ns-allinone-2.28/sgb'

make[1]: Nothing to be done for `lib'.

make[1]: Leaving directory `/home/pietro/ns2-28/ns-allinone-2.28/sgb'

make test_sample

make[1]: Entering directory `/home/pietro/ns2-28/ns-allinone-2.28/sgb'

cc -g -I/usr/local/sgb/include -L. -L/usr/local/lib test_sample.c =

-lgb -lgb -o test_sample

make[1]: Leaving directory `/home/pietro/ns2-28/ns-allinone-2.28/sgb'

./test_sample > sample.out

diff test.gb test.correct

diff sample.out sample.correct

rm -f test.gb sample.out test_io test_io.exe test_graph test_graph.exe =

test_flip test_flip.exe test_sample test_sample.exe

echo "Congratulations --- the tests have all been passed."

Congratulations --- the tests have all been passed.

touch certified

cp: cannot create regular file `../gt-itm/lib/libgb.a': No such file or =

directory

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

* Build GT-ITM

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

[ns] send packet from another agent's *.cc file

2008-11-11 Thread Breno Caetano

Hi ns-users,
I have another doubt. Do i want know that exist a way to send a packet from an 
instance of agent A at *.cc file's Agent B. For example, in a node 1 i have 2 
agents (A and B). So, Agent A may send a packet to Agent C if Agent B receive a 
packet. Exist a way to do this?
thank you for your help.
regards.

 Breno Caetano da Silva
Bacharel em Ciências da Computação - UFPI
Mestrando em Engenharia Elétrica
Escola de Engenharia de São Carlos - EESC
Universidade de São Paulo
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
Fone: (+5516) 81449079
(+5516) 33738149



  Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua 
cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses

Re: [ns] How to disable a mobileNode's movement

2008-11-11 Thread Mubashir Rehmani

Hi Mathiew

Just include this line in your tcl script to disable motion of mobile nodes:

$ns at 0.0 "$node_($i) random-motion 0";  # disable random motion

Regards

Mubashir Husain Rehmani
Lip6, UPMC, Paris, France.


2008/11/11 Mathiew Moussa <[EMAIL PROTECTED]>

>
> Hello,
>
> If i have an implementation that uses NS2's mobileNode's
> implementation and i decided that without changing the whole class i
> just want to make all the mobileNode NOT move.
>
> How does one do that, do you change the speed to ZERO ???
>
> Thanks,
> Mathiew
>
>
>


-- 
Mubashir Husain Rehmani


Re: [ns] How to send a packet to previous node

2008-11-11 Thread howardgod howardgod

Deer Teerawat
I already know how to transmit to node. 1.generate new packet 2.fill common
header and destination address 3. target->recv(p,h)
but my problem is that, I can't find out previous hop's address. My purpose
is to send a packet to previous node in IFQ.
But when packet received by queue's recv function. I can't find anything
about previous hop's address in common header, ip header or mac-802_11
header.
I also know that in routing object, it can find out the next hop's
information in routing table. But unfortunately in IFQ can't access routing
object's functions.

any way, thanks a lot of ur reply.

Howard

2008/11/11 Teerawat Issariyakul <[EMAIL PROTECTED]>

>
> Dear Howard,
>
> The easiest way to transmit from one NsObject (e.g. Nodes) to another is
> through a (C++ and Tcl) Connector object. A connector has two pointers
> to NsObjects: target_ and drop_. In the OTcl domain, it uses an OTcl
> commands "target" and "drop" (followed by the name of the NsObject)
> to specify its "forwarding object" and "dropping object"
>
> A Connector object recieves a Packet "p" through its funciton
> recv(p,h). Upon receiving a packet, the Connector object forwards the
> packet "p" to its forwarding object by executing
> "target_->recv(p,h)". To drop a packet, the function drop(p) of a
> Connector object is invoked. In this case, the packet is forwarded to
> the dropping object "*drop_" which is responsible for destroying the
> packet.
>
> To find out more about Connector please refer to chapter 5 in the
> following book from Springers:
>
> If you are a beginning user, you may look at the following book from
> Springer.
>
> T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator
> NS2", Springer 2008.
>
> Here is the link:
> http://www.springer.com/engineering/signals/book/978-0-387-71759-3
>
> You might also find the following slide useful:
> http://www.ece.ubc.ca/~teerawat/NS2.htm<
> http://www.ece.ubc.ca/%7Eteerawat/NS2.htm
>
> On 11/11/2008, "howardgod howardgod" <[EMAIL PROTECTED]> wrote:
>
> >
> >-- Forwarded message --
> >From: howardgod howardgod <[EMAIL PROTECTED]>
> >Date: 2008/11/8
> >Subject: How to send a packet to previous node
> >To: ns-users@isi.edu
> >
> >
> >I want to send a packet to previous node. And I don't know how to find
> >previous node's ID and where to fill the ID.
> >
> >I found that in common header, there's a prev_hop and next_hop_. But the
> >prev_hop_ is NOT the previous node. It's the source.
> >
> >So I want to fill previous node's ID to common header's next_hop_.
> >
> >And is there anything else I have to fill?
> >
> >btw I found a way to do so. Reverse the ip header's src and dst then send
> >it. but It still do nothing at all.
> >
> >HELP ME!! PLZ
> >
> >thanks a lot.
> >
> > Howard.
> >
>


[ns] How to disable a mobileNode's movement

2008-11-11 Thread Mathiew Moussa

Hello,

If i have an implementation that uses NS2's mobileNode's  
implementation and i decided that without changing the whole class i  
just want to make all the mobileNode NOT move.

How does one do that, do you change the speed to ZERO ???

Thanks,
Mathiew




Re: [ns] How to send a packet to previous node

2008-11-11 Thread Teerawat Issariyakul


Dear Howard,

The easiest way to transmit from one NsObject (e.g. Nodes) to another is
through a (C++ and Tcl) Connector object. A connector has two pointers
to NsObjects: target_ and drop_. In the OTcl domain, it uses an OTcl
commands "target" and "drop" (followed by the name of the NsObject)
to specify its "forwarding object" and "dropping object"

A Connector object recieves a Packet "p" through its funciton
recv(p,h). Upon receiving a packet, the Connector object forwards the
packet "p" to its forwarding object by executing
"target_->recv(p,h)". To drop a packet, the function drop(p) of a
Connector object is invoked. In this case, the packet is forwarded to
the dropping object "*drop_" which is responsible for destroying the
packet.

To find out more about Connector please refer to chapter 5 in the
following book from Springers:

If you are a beginning user, you may look at the following book from
Springer.

T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator
NS2", Springer 2008.

Here is the link:
http://www.springer.com/engineering/signals/book/978-0-387-71759-3

You might also find the following slide useful:
http://www.ece.ubc.ca/~teerawat/NS2.htm wrote:

>
>-- Forwarded message --
>From: howardgod howardgod <[EMAIL PROTECTED]>
>Date: 2008/11/8
>Subject: How to send a packet to previous node
>To: ns-users@isi.edu
>
>
>I want to send a packet to previous node. And I don't know how to find
>previous node's ID and where to fill the ID.
>
>I found that in common header, there's a prev_hop and next_hop_. But the
>prev_hop_ is NOT the previous node. It's the source.
>
>So I want to fill previous node's ID to common header's next_hop_.
>
>And is there anything else I have to fill?
>
>btw I found a way to do so. Reverse the ip header's src and dst then send
>it. but It still do nothing at all.
>
>HELP ME!! PLZ
>
>thanks a lot.
>
> Howard.
>



[ns] how to change the wireless transmit range

2008-11-11 Thread 胡杰

 
 hi,
I want to change the wireless node's transmit range from 250 to 100, what 
should i do.
thanks.