[ns] :how to reteive information from trace file
Mayur
mayur at ee.iitd.ac.in
Fri Aug 22 08:52:07 PDT 2008
Dear Srirupa,
For changing data rate use:
#I assume you are using CBR...
set traffic [new Application/Traffic/CBR]
set CBRrate <your desired data rate>
# and then
$traffic set rate_ $CBRrate
regards,
Mayur
Srirupa Dasgupta wrote:
>
>
> Dear ns-friends,
> I have created a new packet type named pong like ping...its corresponding tcl script is also running and producing a trace output file...now I want to plot the through-put by changing the time of the stop variable in tcl.but the trace file is remaining the same every time....how do I proceed?Now my agent only has a fixed packet size ..how do I set a data-rate in my new Agent?so that by varying the datarate I can plot the throughput?...what other factors can I plot? please help
> Srirupa
> On Fri, 22 Aug 2008 ns-users-request at ISI.EDU wrote :
>
>> Send Ns-users mailing list submissions to
>> ns-users at isi.edu
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://mailman.isi.edu/mailman/listinfo/ns-users
>> or, via email, send a message with subject or body 'help' to
>> ns-users-request at isi.edu
>>
>> You can reach the person managing the list at
>> ns-users-owner at isi.edu
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Ns-users digest..."
>>
>>
>> Today's Topics:
>>
>> 1. sending packet with unicast node address in wireless mac
>> (reza mohammadi)
>> 2. question regarding "rtproto manual" (Rafiq Shaikh)
>> 3. Re : installation problem (./install) (Nour)
>> 4. :help on interpretation of wireless trace file (Srirupa Dasgupta)
>> 5. Help concearning broadcasting messages - protocols
>> (fhg07 at c3sl.ufpr.br)ished with my new trace format but i can't set up the right 'tt'
>> when i debug it with gdb i can't get the right code there!
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> 6. Re: :help on interpretation of wireless trace file
>> (Mubashir Rehmani)
>> 7. Re: Help concearning broadcasting messages - protocols
>> (Mubashir Rehmani)
>> 8. Log Node movements (Hector Agustin Cozzetti)
>> 9. Log Node movements (mail corrected) (Hector Agustin Cozzetti)
>> 10. Interpretation of wireless trace file (Mubashir Rehmani)
>> 11. Broadcasting messages in ns2 (Mubashir Rehmani)
>> 12. Re: Broadcasting messages in ns2 (fhg07 at c3sl.ufpr.br)
>> 13. warning:deprecated conversion from string constant to 'char* (J S)
>> 14. Re: warning:deprecated conversion from string constant to
>> 'char* (Narcissus)
>> 15. Re: Problems of Marc Greis' Tutorial (Narcissus)
>> 16. Re: warning:deprecated conversion from string constant to
>> 'char* (J S)
>> 17. format routine in Trace.cc (Nick Zando)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Wed, 20 Aug 2008 19:21:58 -0700 (PDT)
>> From: reza mohammadi <reza_mo1384 at yahoo.com>
>> Subject: [ns] sending packet with unicast node address in wireless
>> mac
>> To: ns-users at ISI.EDU
>> Message-ID: <36131.46806.qm at web33404.mail.mud.yahoo.com>
>> Content-Type: text/plain; charset=us-ascii
>>
>>
>>
>> hello
>> i design new mac protocol and i implement in wireless topology
>> but in first packet sennding (RTS) destination address is -1 and -1 is br
>> oadcast mac address. how i can send packet with unicat node address my output is shown below
>> my simulation time is 5 minutes but in first packet sending below result occure
>> when i implemetn my protocol only one packet exchange occurany body can help me?
>> best regards
>> hdr_src,,,,,,,,,,,,,src=0
>> hdr_type
>> hdr_dst ,,,,,,,,,, dts=-1
>> hdr_src,,,,,,,,,,,,,src=0
>> hdr_type
>> hdr_dst ,,,,,,,,,, dts=-1
>> ns: finish: X connection to :0.0 broken (explicit kill or server shutdown).
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Wed, 20 Aug 2008 23:42:59 -0700 (PDT)
>> From: Rafiq Shaikh <rfq_2002 at yahoo.com>
>> Subject: [ns] question regarding "rtproto manual"
>> To: NS Users <ns-users at ISI.EDU>
>> Message-ID: <607948.14295.qm at web50410.mail.re2.yahoo.com>
>> Content-Type: text/plain; charset=us-ascii
>>
>> Hi All,
>>
>> I am trying to add manual route entry to the node_(3) as below:
>> $ns rtproto Manual
>> $node_(3) add-route-to-adj-node -default $node_(1)
>>
>> It gives me an error as below. I am new to NS-2 so can't understand what this means:
>> (_o68 cmd line 1)
>> invoked from within
>> "_o68 cmd add-route-to-adj-node -default _o32"
>> invoked from within
>> "catch "$self cmd $args" ret"
>> invoked from within
>> "if [catch "$self cmd $args" ret] {
>> set cls [$self info class]
>> global errorInfo
>> set savedInfo $errorInfo
>> error "error when calling class $cls: $args" $..."
>> (procedure "_o68" line 2)
>> (SplitObject unknown line 2)
>> invoked from within
>> "$node_(3) add-route-to-adj-node -default $node_(1)"
>> (file "./cp-1" line 11)
>> invoked from within
>> "source.orig ./cp-1"
>> ("uplevel" body line 1)
>> invoked from within
>> "uplevel source.orig [list $fileName]"
>> invoked from within
>> "if [$instance_ is_http_url $fileName] {
>> set buffer [$instance_ read_url $fileName]
>> uplevel eval $buffer
>> } else {
>> uplevel source.orig [list $fileName]
>> ..."
>> (procedure "source" line 8)
>> invoked from within
>> "source $val(cp)"
>> (file "w.tcl" line 117)
>>
>>
>> I think I typed the command as mentioned in the NS-2 manual.
>> Any idea why this error is coming?
>>
>> Regards,
>> -Rafiq.
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Thu, 21 Aug 2008 06:45:51 +0000 (GMT)
>> From: Nour <ghali_noura at yahoo.fr>
>> Subject: [ns] Re : installation problem (./install)
>> To: ns-users at ISI.EDU
>> Message-ID: <640576.1367.qm at web27906.mail.ukl.yahoo.com>
>> Content-Type: text/plain; charset=utf-8
>>
>> Hi everyone
>> About the problem of NS installation . It was due to the version 2.28. But as soon as i installed the version 2.33, it's resolved. And i even tried the first example.
>> Now i'm gonna read how to write a script.
>>
>> Thank you for your help
>>
>>
>>
>>
>> ----- Message d'origine ----
>> De : Nour <ghali_noura at yahoo.fr>
>> ? : ns-users at isi.edu
>> Envoy? le : Mercredi, 20 Ao?t 2008, 10h01mn 48s
>> Objet : installation problem (.\install) [resent]
>>
>>
>>
>>
>>
>>
>> ----- Message d'origine ----
>> De : Nour <ghali_noura at yahoo.fr>
>> ? : ns-users at isi.edu
>> Envoy? le : Mercredi, 20 Ao?t 2008, 9h33mn 07s
>> Objet : installation problem (.\install)
>>
>>
>> Hello Everyone
>>
>> I tried to install NS [version 2.28] under windows. I followed all the instructions of how to install cygwin and how to extract NS files to a directory reachable from Cygwin.
>>
>> But when i write the command " .\install" in the shell, this message appears : " no such file or directory "
>>
>> Thank you for your help
>> Nour81
>>
>> ________________________________
>> Envoy? avec Yahoo! Mail.
>> Une boite mail plus intelligente.
>> ________________________________
>> Envoy? avec Yahoo! Mail.
>> Une boite mail plus intelligente.
>>
>>
>> _____________________________________________________________________________
>> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
>>
>> ------------------------------
>>
>> Message: 4
>> Date: 21 Aug 2008 10:35:54 -0000
>> From: "Srirupa Dasgupta" <srirupadasgupta at rediffmail.com>
>> Subject: [ns] :help on interpretation of wireless trace file
>> To: ns-users at ISI.EDU
>> Message-ID: <20080821103554.30942.qmail at f4mail-234-244.rediffmail.com>
>> Content-Type: text/plain; charset=iso-8859-1
>>
>> Dear ns-users,
>> can some one help me to interpret a wireless trace format like:
>> s 1.000000000 _0_ AGT --- 0 pong 128 [0.00 0 0] ------- [0:0 -1:0 32 0]
>> r 1.000000000 _0_ RTR --- 0 pong 128 [0.00 0 0] ------- [0:0 -1:0 32 0]
>> s 1.000000000 _0_ RTR --- 0 pong 128 [0.00 0 0] ------- [0:0 -1:0 32 0]
>> s 1.000000000 _1_ AGT --- 1 pong 128 [0.00 0 0] ------- [1:0 -1:0 32 0]
>> what is AGT what is RTR ..how will I know that my packet has been accepted from the above trace..
>> Regard Srirupa
>>
>>
>> On Thu, 21 Aug 2008 ns-users-request at ISI.EDU wrote :
>>
>>> Send Ns-users mailing list submissions to
>>> ns-users at isi.edu
>>>
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>> http://mailman.isi.edu/mailman/listinfo/ns-users
>>> or, via email, send a message with subject or body 'help' to
>>> ns-users-request at isi.edu
>>>
>>> You can reach the person managing the list at
>>> ns-users-owner at isi.edu
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of Ns-users digest..."
>>>
>>>
>>> Today's Topics:
>>>
>>> 1. Implemtation of switch contribute (amj ns2)
>>> 2. installation problem (.\install) [resent] (Nour)
>>> 3. General Procedure for static build?? (xing y)
>>> 4. Re: installation problem (.\install) [resent] (Mats Folke)
>>> 5. how i can adjust specific node address in wireless mac
>>> (reza mohammadi)
>>> 6. Implementing a New Manet Unicast Routing Protocol in NS2
>>> (Maurizio Bellemo)
>>> 7. Code for link level recovery of Base Station ( ????? )
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Wed, 20 Aug 2008 11:26:54 +0300
>>> From: "amj ns2" <amjedns2 at gmail.com>
>>> Subject: [ns] Implemtation of switch contribute
>>> To: ns-users at ISI.EDU
>>> Message-ID:
>>> <a72f6d010808200126x68ab3ca1vfd32da526c8191ea at mail.gmail.com>
>>> Content-Type: text/plain; charset="iso-8859-1"
>>>
>>> ---------- Forwarded message ----------
>>> From: amj ns2 <amjedns2 at gmail.com>
>>> Date: Fri, Aug 15, 2008 at 12:13 PM
>>> Subject: Implemtation of switch contribute
>>> To: ns-users at isi.edu
>>>
>>>
>>> I have implemented Switch In NS2 from some reference about how to fabric
>>> switch
>>> and then I implemented in ns2-31 i want contribute of my code of switch .
>>> thank you for help
>>> i prefered any contribute please send me in my email : amjedns2 at gmail.com
>>> and I thank anyone help me .
>>> thank you
>>> the files is attached in message
>>>
>>> ------------------------------
>>>
>>> Message: 2
>>> Date: Wed, 20 Aug 2008 09:01:48 +0000 (GMT)
>>> From: Nour <ghali_noura at yahoo.fr>
>>> Subject: [ns] installation problem (.\install) [resent]
>>> To: ns-users at ISI.EDU
>>> Message-ID: <569377.5980.qm at web27908.mail.ukl.yahoo.com>
>>> Content-Type: text/plain; charset=utf-8
>>>
>>>
>>>
>>>
>>>
>>> ----- Message d'origine ----
>>> De : Nour <ghali_noura at yahoo.fr>
>>> ? : ns-users at isi.edu
>>> Envoy? le : Mercredi, 20 Ao?t 2008, 9h33mn 07s
>>> Objet : installation problem (.\install)
>>>
>>>
>>> Hello Everyone
>>>
>>> I tried to install NS [version 2.28] under windows. I followed all the instructions of how to install cygwin and how to extract NS files to a directory reachable from Cygwin.
>>>
>>> But when i write the command " .\install" in the shell, this message appears : " no such file or directory "
>>>
>>> Thank you for your help
>>> Nour81
>>>
>>> ________________________________
>>> Envoy? avec Yahoo! Mail.
>>> Une boite mail plus intelligente.
>>>
>>>
>>> _____________________________________________________________________________
>>> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
>>>
>>> ------------------------------
>>>
>>> Message: 3
>>> Date: Wed, 20 Aug 2008 15:20:38 +0530
>>> From: "xing y" <xingy2001 at gmail.com>
>>> Subject: [ns] General Procedure for static build??
>>> To: ns-users at ISI.EDU
>>> Message-ID:
>>> <6b44f2ff0808200250r4eb357eemc1a6c854eb9f5968 at mail.gmail.com>
>>> Content-Type: text/plain; charset=ISO-8859-1
>>>
>>> Subject: General Procedure for static build??
>>> To: ns-users at isi.edu
>>>
>>>
>>> Hi
>>>
>>> I am looking for a standard procedure for making a static ns build so that i
>>> can run the ns on any
>>> other linux machine with same configuration without installing the
>>> ns-allinone.
>>>
>>> I tried configure --enable-static and changing STATIC flag in Makefile.
>>>
>>> Please suggest a standard way of doing it.
>>>
>>> Thanks
>>> Xing.
>>>
>>>
>>> ------------------------------
>>>
>>> Message: 4
>>> Date: Wed, 20 Aug 2008 12:27:31 +0200
>>> From: "Mats Folke" <mats.folke at ericsson.com>
>>> Subject: Re: [ns] installation problem (.\install) [resent]
>>> To: <ns-users at ISI.EDU>
>>> Message-ID:
>>> <7F641D42A7166F4FBB32DDC8E48B6F8FA9954A at esealmw114.eemea.ericsson.se>
>>> Content-Type: text/plain; charset="iso-8859-1"
>>>
>>> Hi!
>>>
>>> Try "./install" not ".\install".
>>>
>>> Best wishes,
>>> Mats Folke
>>>
>>> Nour wrote:
>>>
>>>> ----- Message d'origine ----
>>>> De : Nour <ghali_noura at yahoo.fr>
>>>> ? : ns-users at isi.edu
>>>> Envoy? le : Mercredi, 20 Ao?t 2008, 9h33mn 07s
>>>> Objet : installation problem (.\install)
>>>>
>>>>
>>>> Hello Everyone
>>>>
>>>> I tried to install NS [version 2.28] under windows. I followed all
>>>> the instructions of how to install cygwin and how to extract NS files
>>>> to a directory reachable from Cygwin.
>>>>
>>>> But when i write the command " .\install" in the shell, this message
>>>> appears : " no such file or directory "
>>>>
>>>> Thank you for your help
>>>> Nour81
>>>>
>>>> ________________________________
>>>> Envoy? avec Yahoo! Mail.
>>>> Une boite mail plus intelligente.
>>>>
>>>>
>>>>
>>>> _____________________________________________________________________________
>>>> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente
>>>> http://mail.yahoo.fr
>>>>
>>>
>>> --
>>> Mats Folke, M.Sc., Tech.lic
>>> Research Engineer
>>>
>>> Ericsson AB Office: +46 8 7571385
>>> Ericsson Research Fax: +46 920 99621
>>> P.O. Box 920 Mobile: +46 76 1271385
>>> SE-971 28 Lule?
>>>
>>>
>>>
>>> ------------------------------
>>>
>>> Message: 5
>>> Date: Wed, 20 Aug 2008 05:35:39 -0700 (PDT)
>>> From: reza mohammadi <reza_mo1384 at yahoo.com>
>>> Subject: [ns] how i can adjust specific node address in wireless mac
>>> To: ns-users at ISI.EDU
>>> Message-ID: <860579.87219.qm at web33405.mail.mud.yahoo.com>
>>> Content-Type: text/plain; charset=us-ascii
>>>
>>> hello
>>> i design new mac protocol and i implement in wireless topology
>>> but in first packet sennding (RTS) destination address is -1 and -1 is=A0br=
>>> oadcast mac address. how i can send packet to specific node=20
>>> my output is shown below
>>> my simulation time is =A05=A0 minutes=A0 but in first packet sending below =
>>> result occure
>>> any body can help me?
>>> best regards
>>> hdr_src,,,,,,,,,,,,,src=0
>>> hdr_type
>>> hdr_dst ,,,,,,,,,, dts=-1
>>> hdr_src,,,,,,,,,,,,,src=0
>>> hdr_type
>>> hdr_dst ,,,,,,,,,, dts=-1
>>> ns: finish: X connection to :0.0 broken (explicit kill or server shutdown).
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------
>>>
>>> Message: 6
>>> Date: Wed, 20 Aug 2008 18:56:52 +0200
>>> From: "Maurizio Bellemo" <maurizio.bellemo at gmail.com>
>>> Subject: [ns] Implementing a New Manet Unicast Routing Protocol in NS2
>>> To: ns-users at ISI.EDU
>>> Message-ID:
>>> <7f432a2f0808200956w32b41859i1619abbc218f22eb at mail.gmail.com>
>>> Content-Type: text/plain; charset="iso-8859-1"
>>>
>>> Hi all,
>>>
>>> I'm trying to simulate a MANET in order to test an efficient flooding
>>> technique (broadcast). I took the code in this article, without using the
>>> routing part, because I don't need. I want only to flood the network with
>>> control information. I wrote a little simulation to test the algorithm. Two
>>> nodes flooding packets. The problem is I get a segmentation fault and I
>>> don't know why.
>>> I attach the simulation file and the algorithm of the article changed.
>>>
>>> Thank you a lot
>>> Best Regards
>>> Maurizio
>>>
>>> ------------------------------
>>>
>>> Message: 7
>>> Date: Wed, 20 Aug 2008 23:13:40 +0530
>>> From: " ????? " <mandarchoure at gmail.com>
>>> Subject: [ns] Code for link level recovery of Base Station
>>> To: ns-users at ISI.EDU
>>> Message-ID:
>>> <e40e86ea0808201043q2b4ff208o833fc2f01301a2e3 at mail.gmail.com>
>>> Content-Type: text/plain; charset=ISO-8859-1
>>>
>>> Dear ns users,
>>>
>>> I am working on wired-cum-wireless scenario.
>>> In this i have to do link level recovery when packet is dropped between base
>>> station and wireless node.
>>> So, Please help me in this regard and send me the code for link level
>>> recovery for base station. and tell me in which file the code is there for
>>> base station in NS-2.29.
>>> I am very much thankful to you.
>>>
>>> Thanking You,
>>>
>>> Regards
>>> Mandar.
>>>
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Ns-users mailing list
>>> Ns-users at isi.edu
>>> http://mailman.isi.edu/mailman/listinfo/ns-users
>>>
>>>
>>> End of Ns-users Digest, Vol 56, Issue 17
>>> ****************************************
>>>
>> ------------------------------
>>
>> Message: 5
>> Date: Thu, 21 Aug 2008 10:04:58 -0300 (BRT)
>> From: fhg07 at c3sl.ufpr.br
>> Subject: [ns] Help concearning broadcasting messages - protocols
>> To: ns-users at ISI.EDU
>> Message-ID:
>> <34936.200.17.212.252.1219323898.squirrel at webmail.c3sl.ufpr.br>
>> Content-Type: text/plain;charset=iso-8859-1
>>
>> Well.. I'm trying to learn how to implement protocols to NS2,30. And I did
>> not understand how to broadcast a message in wireless networks.
>>
>> Here is what I've got:
>> Packet* pkt = allocpkt(); // new packet
>> hdr_protex* hdr = (hdr_protex*) pkt->access(off_protex_);
>> hdr->type = 0; // sending initial msg or answering another?
>> hdr->id = 0; // type of the message
>> send(pkt, 0);
>>
>> hdr_protex is the structure of the message I want to send, after setting
>> all its parameters, how do I broadcast it? I guess the send command that
>> I'm using there won't work, as it is not to work on a wired network.
>>
>>
>>
>> Fernando.
>>
>>
>>
>> ------------------------------
>>
>> Message: 6
>> Date: Thu, 21 Aug 2008 15:15:05 +0200
>> From: "Mubashir Rehmani" <mshrehmani at gmail.com>
>> Subject: Re: [ns] :help on interpretation of wireless trace file
>> To: "Srirupa Dasgupta" <srirupadasgupta at rediffmail.com>
>> Cc: ns-users at ISI.EDU
>> Message-ID:
>> <ee77fa130808210615o7d35a5c3o5b810b1f37197b93 at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hello
>>
>> "s" and "r" indicates that you send and receive the packets respectively.
>> RTR means network layer and AGT means application layer.
>>
>> Here is the full description of trace format:
>>
>> To find the interpretation of all possible trace format when you do the
>> wireless simulation, you'd better read the code of ns2 in file
>> *ns2home/trace/cmu-trace{.h,
>> .cc}* Mostly, the format would be as
>>
>> ACTION: [s|r|D]: s -- sent, r -- received, D -- dropped
>> WHEN: the time when the action happened
>> WHERE: the node where the action happened
>> LAYER: AGT -- application,
>> RTR -- routing,
>> LL -- link layer (ARP is done here)
>> IFQ -- outgoing packet queue (between link and mac layer)
>> MAC -- mac,
>> PHY -- physical
>> flags:
>> SEQNO: the sequence number of the packet
>> TYPE: the packet type
>> cbr -- CBR data stream packet
>> DSR -- DSR routing packet (control packet generated by routing)
>> RTS -- RTS packet generated by MAC 802.11
>> ARP -- link layer ARP packet
>> SIZE: the size of packet at current layer, when packet goes down, size
>> increases, goes up size decreases
>> [a b c d]: a -- the packet duration in mac layer header
>> b -- the mac address of destination
>> c -- the mac address of source
>> d -- the mac type of the packet body
>> flags:
>> [......]: [
>> source node ip : port_number
>> destination node ip (-1 means broadcast) : port_number
>> ip header ttl
>> ip of next hop (0 means node 0 or broadcast)
>> ]
>>
>>
>> Mubashir Husain Rehmani
>>
>>
>> 2008/8/21 Srirupa Dasgupta <srirupadasgupta at rediffmail.com>
>>
>>
>>> Dear ns-users,
>>> can some one help me to interpret a wireless trace format like:
>>> s 1.000000000 _0_ AGT --- 0 pong 128 [0.00 0 0] ------- [0:0 -1:0 32 0]
>>> r 1.000000000 _0_ RTR --- 0 pong 128 [0.00 0 0] ------- [0:0 -1:0 32 0]
>>> s 1.000000000 _0_ RTR --- 0 pong 128 [0.00 0 0] ------- [0:0 -1:0 32 0]
>>> s 1.000000000 _1_ AGT --- 1 pong 128 [0.00 0 0] ------- [1:0 -1:0 32 0]
>>> what is AGT what is RTR ..how will I know that my packet has been accepted
>>> from the above trace..
>>> Regard Srirupa
>>>
>>>
>>> On Thu, 21 Aug 2008 ns-users-request at ISI.EDU wrote :
>>>
>>>> Send Ns-users mailing list submissions to
>>>> ns-users at isi.edu
>>>>
>>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>> http://mailman.isi.edu/mailman/listinfo/ns-users
>>>> or, via email, send a message with subject or body 'help' to
>>>> ns-users-request at isi.edu
>>>>
>>>> You can reach the person managing the list at
>>>> ns-users-owner at isi.edu
>>>>
>>>> When replying, please edit your Subject line so it is more specific
>>>> than "Re: Contents of Ns-users digest..."
>>>>
>>>>
>>>> Today's Topics:
>>>>
>>>> 1. Implemtation of switch contribute (amj ns2)
>>>> 2. installation problem (.\install) [resent] (Nour)
>>>> 3. General Procedure for static build?? (xing y)
>>>> 4. Re: installation problem (.\install) [resent] (Mats Folke)
>>>> 5. how i can adjust specific node address in wireless mac
>>>> (reza mohammadi)
>>>> 6. Implementing a New Manet Unicast Routing Protocol in NS2
>>>> (Maurizio Bellemo)
>>>> 7. Code for link level recovery of Base Station ( ????? )
>>>>
>>>>
>>>> ----------------------------------------------------------------------
>>>>
>>>> Message: 1
>>>> Date: Wed, 20 Aug 2008 11:26:54 +0300
>>>> From: "amj ns2" <amjedns2 at gmail.com>
>>>> Subject: [ns] Implemtation of switch contribute
>>>> To: ns-users at ISI.EDU
>>>> Message-ID:
>>>> <a72f6d010808200126x68ab3ca1vfd32da526c8191ea at mail.gmail.com>
>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>
>>>> ---------- Forwarded message ----------
>>>> From: amj ns2 <amjedns2 at gmail.com>
>>>> Date: Fri, Aug 15, 2008 at 12:13 PM
>>>> Subject: Implemtation of switch contribute
>>>> To: ns-users at isi.edu
>>>>
>>>>
>>>> I have implemented Switch In NS2 from some reference about how to fabric
>>>> switch
>>>> and then I implemented in ns2-31 i want contribute of my code of switch .
>>>> thank you for help
>>>> i prefered any contribute please send me in my email : amjedns2 at gmail.com
>>>> and I thank anyone help me .
>>>> thank you
>>>> the files is attached in message
>>>>
>>>> ------------------------------
>>>>
>>>> Message: 2
>>>> Date: Wed, 20 Aug 2008 09:01:48 +0000 (GMT)
>>>> From: Nour <ghali_noura at yahoo.fr>
>>>> Subject: [ns] installation problem (.\install) [resent]
>>>> To: ns-users at ISI.EDU
>>>> Message-ID: <569377.5980.qm at web27908.mail.ukl.yahoo.com>
>>>> Content-Type: text/plain; charset=utf-8
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ----- Message d'origine ----
>>>> De : Nour <ghali_noura at yahoo.fr>
>>>> ? : ns-users at isi.edu
>>>> Envoy? le : Mercredi, 20 Ao?t 2008, 9h33mn 07s
>>>> Objet : installation problem (.\install)
>>>>
>>>>
>>>> Hello Everyone
>>>>
>>>> I tried to install NS [version 2.28] under windows. I followed all the
>>>>
>>> instructions of how to install cygwin and how to extract NS files to a
>>> directory reachable from Cygwin.
>>>
>>>> But when i write the command " .\install" in the shell, this message
>>>>
>>> appears : " no such file or directory "
>>>
>>>> Thank you for your help
>>>> Nour81
>>>>
>>>> ________________________________
>>>> Envoy? avec Yahoo! Mail.
>>>> Une boite mail plus intelligente.
>>>>
>>>>
>>>>
>>>>
>>> _____________________________________________________________________________
>>>
>>>> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente
>>>>
>>> http://mail.yahoo.fr
>>>
>>>> ------------------------------
>>>>
>>>> Message: 3
>>>> Date: Wed, 20 Aug 2008 15:20:38 +0530
>>>> From: "xing y" <xingy2001 at gmail.com>
>>>> Subject: [ns] General Procedure for static build??
>>>> To: ns-users at ISI.EDU
>>>> Message-ID:
>>>> <6b44f2ff0808200250r4eb357eemc1a6c854eb9f5968 at mail.gmail.com>
>>>> Content-Type: text/plain; charset=ISO-8859-1
>>>>
>>>> Subject: General Procedure for static build??
>>>> To: ns-users at isi.edu
>>>>
>>>>
>>>> Hi
>>>>
>>>> I am looking for a standard procedure for making a static ns build so that
>>>>
>>> i
>>>
>>>> can run the ns on any
>>>> other linux machine with same configuration without installing the
>>>> ns-allinone.
>>>>
>>>> I tried configure --enable-static and changing STATIC flag in Makefile.
>>>>
>>>> Please suggest a standard way of doing it.
>>>>
>>>> Thanks
>>>> Xing.
>>>>
>>>>
>>>> ------------------------------
>>>>
>>>> Message: 4
>>>> Date: Wed, 20 Aug 2008 12:27:31 +0200
>>>> From: "Mats Folke" <mats.folke at ericsson.com>
>>>> Subject: Re: [ns] installation problem (.\install) [resent]
>>>> To: <ns-users at ISI.EDU>
>>>> Message-ID:
>>>> <
>>>>
>>> 7F641D42A7166F4FBB32DDC8E48B6F8FA9954A at esealmw114.eemea.ericsson.se>
>>>
>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>
>>>> Hi!
>>>>
>>>> Try "./install" not ".\install".
>>>>
>>>> Best wishes,
>>>> Mats Folke
>>>>
>>>> Nour wrote:
>>>>
>>>>> ----- Message d'origine ----
>>>>> De : Nour <ghali_noura at yahoo.fr>
>>>>> ? : ns-users at isi.edu
>>>>> Envoy? le : Mercredi, 20 Ao?t 2008, 9h33mn 07s
>>>>> Objet : installation problem (.\install)
>>>>>
>>>>>
>>>>> Hello Everyone
>>>>>
>>>>> I tried to install NS [version 2.28] under windows. I followed all
>>>>> the instructions of how to install cygwin and how to extract NS files
>>>>> to a directory reachable from Cygwin.
>>>>>
>>>>> But when i write the command " .\install" in the shell, this message
>>>>> appears : " no such file or directory "
>>>>>
>>>>> Thank you for your help
>>>>> Nour81
>>>>>
>>>>> ________________________________
>>>>> Envoy? avec Yahoo! Mail.
>>>>> Une boite mail plus intelligente.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>> _____________________________________________________________________________
>>>
>>>>> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente
>>>>> http://mail.yahoo.fr
>>>>>
>>>>
>>>> --
>>>> Mats Folke, M.Sc., Tech.lic
>>>> Research Engineer
>>>>
>>>> Ericsson AB Office: +46 8 7571385
>>>> Ericsson Research Fax: +46 920 99621
>>>> P.O. Box 920 Mobile: +46 76 1271385
>>>> SE-971 28 Lule?
>>>>
>>>>
>>>>
>>>> ------------------------------
>>>>
>>>> Message: 5
>>>> Date: Wed, 20 Aug 2008 05:35:39 -0700 (PDT)
>>>> From: reza mohammadi <reza_mo1384 at yahoo.com>
>>>> Subject: [ns] how i can adjust specific node address in wireless mac
>>>> To: ns-users at ISI.EDU
>>>> Message-ID: <860579.87219.qm at web33405.mail.mud.yahoo.com>
>>>> Content-Type: text/plain; charset=us-ascii
>>>>
>>>> hello
>>>> i design new mac protocol and i implement in wireless topology
>>>> but in first packet sennding (RTS) destination address is -1 and -1
>>>>
>>> is=A0br=
>>>
>>>> oadcast mac address. how i can send packet to specific node=20
>>>> my output is shown below
>>>> my simulation time is =A05=A0 minutes=A0 but in first packet sending below
>>>>
>>> =
>>>
>>>> result occure
>>>> any body can help me?
>>>> best regards
>>>> hdr_src,,,,,,,,,,,,,src=0
>>>> hdr_type
>>>> hdr_dst ,,,,,,,,,, dts=-1
>>>> hdr_src,,,,,,,,,,,,,src=0
>>>> hdr_type
>>>> hdr_dst ,,,,,,,,,, dts=-1
>>>> ns: finish: X connection to :0.0 broken (explicit kill or server
>>>>
>>> shutdown).
>>>
>>>>
>>>>
>>>>
>>>> ------------------------------
>>>>
>>>> Message: 6
>>>> Date: Wed, 20 Aug 2008 18:56:52 +0200
>>>> From: "Maurizio Bellemo" <maurizio.bellemo at gmail.com>
>>>> Subject: [ns] Implementing a New Manet Unicast Routing Protocol in NS2
>>>> To: ns-users at ISI.EDU
>>>> Message-ID:
>>>> <7f432a2f0808200956w32b41859i1619abbc218f22eb at mail.gmail.com>
>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>
>>>> Hi all,
>>>>
>>>> I'm trying to simulate a MANET in order to test an efficient flooding
>>>> technique (broadcast). I took the code in this article, without using the
>>>> routing part, because I don't need. I want only to flood the network with
>>>> control information. I wrote a little simulation to test the algorithm.
>>>>
>>> Two
>>>
>>>> nodes flooding packets. The problem is I get a segmentation fault and I
>>>> don't know why.
>>>> I attach the simulation file and the algorithm of the article changed.
>>>>
>>>> Thank you a lot
>>>> Best Regards
>>>> Maurizio
>>>>
>>>> ------------------------------
>>>>
>>>> Message: 7
>>>> Date: Wed, 20 Aug 2008 23:13:40 +0530
>>>> From: " ????? " <mandarchoure at gmail.com>
>>>> Subject: [ns] Code for link level recovery of Base Station
>>>> To: ns-users at ISI.EDU
>>>> Message-ID:
>>>> <e40e86ea0808201043q2b4ff208o833fc2f01301a2e3 at mail.gmail.com>
>>>> Content-Type: text/plain; charset=ISO-8859-1
>>>>
>>>> Dear ns users,
>>>>
>>>> I am working on wired-cum-wireless scenario.
>>>> In this i have to do link level recovery when packet is dropped between
>>>>
>>> base
>>>
>>>> station and wireless node.
>>>> So, Please help me in this regard and send me the code for link level
>>>> recovery for base station. and tell me in which file the code is there for
>>>> base station in NS-2.29.
>>>> I am very much thankful to you.
>>>>
>>>> Thanking You,
>>>>
>>>> Regards
>>>> Mandar.
>>>>
>>>>
>>>> ------------------------------
>>>>
>>>> _______________________________________________
>>>> Ns-users mailing list
>>>> Ns-users at isi.edu
>>>> http://mailman.isi.edu/mailman/listinfo/ns-users
>>>>
>>>>
>>>> End of Ns-users Digest, Vol 56, Issue 17
>>>> ****************************************
>>>>
>>
>> --
>> Mubashir Husain Rehmani
>>
>> Mobile : 00 33 (0)6 32 00 89 35
>>
>>
>> ------------------------------
>>
>> Message: 7
>> Date: Thu, 21 Aug 2008 15:16:22 +0200
>> From: "Mubashir Rehmani" <mshrehmani at gmail.com>
>> Subject: Re: [ns] Help concearning broadcasting messages - protocols
>> To: fhg07 at c3sl.ufpr.br
>> Cc: "ns-users at ISI.EDU" <ns-users at ISI.EDU>
>> Message-ID:
>> <ee77fa130808210616n36461173j56166d6162486303 at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hello
>>
>> You should use in the ip header
>>
>> ih->daddr() = IP_BROADCAST;
>>
>> like this.
>>
>> Hope it helps
>>
>> Regards
>> Mubashir Husain Rehmani
>>
>> 2008/8/21 <fhg07 at c3sl.ufpr.br>
>>
>>
>>> Well.. I'm trying to learn how to implement protocols to NS2,30. And I did
>>> not understand how to broadcast a message in wireless networks.
>>>
>>> Here is what I've got:
>>> Packet* pkt = allocpkt(); // new packet
>>> hdr_protex* hdr = (hdr_protex*) pkt->access(off_protex_);
>>> hdr->type = 0; // sending initial msg or answering another?
>>> hdr->id = 0; // type of the message
>>> send(pkt, 0);
>>>
>>> hdr_protex is the structure of the message I want to send, after setting
>>> all its parameters, how do I broadcast it? I guess the send command that
>>> I'm using there won't work, as it is not to work on a wired network.
>>>
>>>
>>>
>>> Fernando.
>>>
>>>
>>>
>> --
>> Mubashir Husain Rehmani
>>
>> Mobile : 00 33 (0)6 32 00 89 35
>>
>>
>> ------------------------------
>>
>> Message: 8
>> Date: Thu, 21 Aug 2008 15:23:04 +0200
>> From: "Hector Agustin Cozzetti" <agustin.cozzetti at gmail.com>
>> Subject: [ns] Log Node movements
>> To: ns-users at ISI.EDU
>> Message-ID:
>> <c6cb0dba0808210623o2a4382aahc337d3bad44a7924 at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hello everybody!
>> I have a doubt about the log movements. I need the *coordinates* (x,y) of
>> nodes appear on the trace output (file .tr or file .nam). I have read in
>> some tutorials that I have to add the following in the
>> tlc file:
>>
>> *proc log-movement {} {
>>
>> global logtimer ns_ ns
>>
>> set ns $ns_
>> source ../mobility/timer.tcl
>> Class LogTimer -superclass Timer
>> LogTimer instproc timeout {} {
>> global opt node_;
>> for {set i 0} {$i \< $opt(nn)} {incr i} {
>>
>>
>>
>>
>> $node_($i) log-movement
>> }
>> $self sched 0.1
>> }
>>
>> set logtimer [new LogTimer]
>> $logtimer sched 0.1
>> }*
>>
>> Poi pero credo che debba essere chiamata in qualche maniera. Il problema ?
>> che non so come richiamarla ed usarla. Io l'ho scritta cosi nel mio tcl
>> file, ma non ? successo nulla. Qualche suggerimento? Vi metto i link da cui
>> ho preso le informazioni:
>>
>> www.cse.cuhk.edu.hk/~cslui/CSC5480/<http://www.cse.cuhk.edu.hk/%7Ecslui/CSC5480/>
>> *patrick*.ps.gz
>> http://www.isi.edu/nsnam/ns/doc/node174.html
>>
>> Thanks you very much for all the help!!!
>> Agus
>>
>>
>> ------------------------------
>>
>> Message: 9
>> Date: Thu, 21 Aug 2008 15:45:55 +0200
>> From: "Hector Agustin Cozzetti" <agustin.cozzetti at gmail.com>
>> Subject: [ns] Log Node movements (mail corrected)
>> To: ns-users at ISI.EDU
>> Message-ID:
>> <c6cb0dba0808210645n7344cbd4i790655104b77ba96 at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hello everybody!
>> I have a doubt about the log movements. I need the *coordinates* (x,y) of
>> nodes appear on the trace output (file .tr or file .nam). I have read in
>> some tutorials that I have to add the following procedure in the tlc file:
>>
>> *proc log-movement {} {
>>
>> global logtimer ns_ ns
>>
>> set ns $ns_
>> source ../mobility/timer.tcl
>> Class LogTimer -superclass Timer
>> LogTimer instproc timeout {} {
>> global opt node_;
>> for {set i 0} {$i \< $opt(nn)} {incr i} {
>>
>>
>>
>>
>>
>> $node_($i) log-movement
>> }
>> $self sched 0.1
>> }
>>
>> set logtimer [new LogTimer]
>> $logtimer sched 0.1
>> }*
>>
>> But, there's a problem, I don't know how to call it and use it. In my tlc
>> file i wrote that, but nothing happens. Could you help me, please? I links
>> where I took the information:
>>
>> www.cse.cuhk.edu.hk/~cslui/CSC5480/<http://www.cse.cuhk.edu.hk/%7Ecslui/CSC5480/>
>> *patrick*.ps.gz
>> http://www.isi.edu/nsnam/ns/doc/node174.html
>>
>> Thanks you very much for all the help!!!
>> Agus
>>
>>
>> ------------------------------
>>
>> Message: 10
>> Date: Thu, 21 Aug 2008 16:51:08 +0200
>> From: "Mubashir Rehmani" <mshrehmani at gmail.com>
>> Subject: [ns] Interpretation of wireless trace file
>> To: "ns-users at ISI.EDU" <ns-users at ISI.EDU>
>> Cc: Srirupa Dasgupta <srirupadasgupta at rediffmail.com>
>> Message-ID:
>> <ee77fa130808210751p70b18542ka0498249ddc382a8 at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hello Srirupa Dasgupta,
>>
>> Here is the answer to your question:
>>
>> "s" and "r" indicates that you send and receive the packets respectively.
>> RTR means network layer and AGT means application layer.
>>
>> Here is the full description of trace format:
>>
>> To find the interpretation of all possible trace format when you do the
>> wireless simulation, you'd better read the code of ns2 in file
>> *ns2home/trace/cmu-trace{.h,
>> .cc}* Mostly, the format would be as
>>
>> ACTION: [s|r|D]: s -- sent, r -- received, D -- dropped
>> WHEN: the time when the action happened
>> WHERE: the node where the action happened
>> LAYER: AGT -- application,
>> RTR -- routing,
>>
>> LL -- link layer (ARP is done here)
>> IFQ -- outgoing packet queue (between link and mac layer)
>> MAC -- mac,
>> PHY -- physical
>> flags:
>> SEQNO: the sequence number of the packet
>> TYPE: the packet type
>>
>> cbr -- CBR data stream packet
>>
>> DSR -- DSR routing packet (control packet generated by routing)
>> RTS -- RTS packet generated by MAC 802.11
>> ARP -- link layer ARP packet
>> SIZE: the size of packet at current layer, when packet goes down, size
>> increases, goes up size decreases
>>
>> [a b c d]: a -- the packet duration in mac layer header
>> b -- the mac address of destination
>> c -- the mac address of source
>> d -- the mac type of the packet body
>> flags:
>> [......]: [
>> source node ip : port_number
>>
>> destination node ip (-1 means broadcast) : port_number
>> ip header ttl
>> ip of next hop (0 means node 0 or broadcast)
>> ]
>>
>>
>> i
>>
>> --
>> Mubashir Husain Rehmani
>>
>> Mobile : 00 33 (0)6 32 00 89 35
>>
>>
>> ------------------------------
>>
>> Message: 11
>> Date: Thu, 21 Aug 2008 16:52:29 +0200
>> From: "Mubashir Rehmani" <mshrehmani at gmail.com>
>> Subject: [ns] Broadcasting messages in ns2
>> To: "ns-users at ISI.EDU" <ns-users at ISI.EDU>
>> Message-ID:
>> <ee77fa130808210752o387eabbci14b8f28181cd2507 at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hello Fernando
>>
>> You should use IP_BROADCAST in the ip header
>>
>> ih->daddr() = IP_BROADCAST;
>>
>>
>> Hope it helps
>>
>> --
>> Mubashir Husain Rehmani
>>
>> Mobile : 00 33 (0)6 32 00 89 35
>>
>>
>> ------------------------------
>>
>> Message: 12
>> Date: Thu, 21 Aug 2008 12:58:20 -0300 (BRT)
>> From: fhg07 at c3sl.ufpr.br
>> Subject: Re: [ns] Broadcasting messages in ns2
>> To: "Mubashir Rehmani" <mshrehmani at gmail.com>
>> Cc: ns-users at ISI.EDU
>> Message-ID:
>> <55619.200.17.212.252.1219334300.squirrel at webmail.c3sl.ufpr.br>
>> Content-Type: text/plain;charset=iso-8859-1
>>
>> Can it be done like:
>> cmh->next_hop() = IP_BROADCAST; ?
>> Whats the difference between cmh and ih headers?
>>
>> I've seen this on some codes that I've found.
>>
>> Fernando.
>>
>>> Hello Fernando
>>>
>>> You should use IP_BROADCAST in the ip header
>>>
>>> ih->daddr() = IP_BROADCAST;
>>>
>>>
>>> Hope it helps
>>>
>>> --
>>> Mubashir Husain Rehmani
>>>
>>> Mobile : 00 33 (0)6 32 00 89 35
>>>
>>>
>>
>>
>> ------------------------------
>>
>> Message: 13
>> Date: Thu, 21 Aug 2008 13:18:23 -0400
>> From: "J S" <geekreader at gmail.com>
>> Subject: [ns] warning:deprecated conversion from string constant to
>> 'char*
>> To: ns-users at ISI.EDU
>> Message-ID:
>> <51c600f80808211018ya0d0e8dq42694618b278027f at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hello I am new to ns.
>>
>> I have been following "NS by example tutorial" from http://nile.wpi.edu/NS/
>>
>> In the sub-section extending NS (for user define agents), While using make,
>> I am getting bunch of warnings
>>
>> ./common/packet.h:: warning: deprecated conversion from string constant to
>> 'char*'
>>
>> I am using ubuntu.
>>
>> Any help in this matter is appreciated
>>
>> Thanks you
>>
>>
>> ------------------------------
>>
>> Message: 14
>> Date: Fri, 22 Aug 2008 01:34:48 +0800
>> From: Narcissus <yelohuang at gmail.com>
>> Subject: Re: [ns] warning:deprecated conversion from string constant
>> to 'char*
>> To: ns-users at ISI.EDU
>> Message-ID:
>> <a3b4b5ef0808211034u3decbe60h85bf4e9b29989767 at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hi,
>> Just ignore this warnings of imperfect coding, your ns will work well.
>>
>> 2008/8/22 J S <geekreader at gmail.com>
>>
>>
>>> Hello I am new to ns.
>>>
>>> I have been following "NS by example tutorial" from
>>> http://nile.wpi.edu/NS/
>>>
>>> In the sub-section extending NS (for user define agents), While using make,
>>> I am getting bunch of warnings
>>>
>>> ./common/packet.h:: warning: deprecated conversion from string constant to
>>> 'char*'
>>>
>>> I am using ubuntu.
>>>
>>> Any help in this matter is appreciated
>>>
>>> Thanks you
>>>
>>>
>>
>> --
>> Regards
>> NarcissusHuang
>>
>>
>> ------------------------------
>>
>> Message: 15
>> Date: Fri, 22 Aug 2008 01:36:29 +0800
>> From: Narcissus <yelohuang at gmail.com>
>> Subject: Re: [ns] Problems of Marc Greis' Tutorial
>> To: ns-users at ISI.EDU
>> Message-ID:
>> <a3b4b5ef0808211036k1b4490b0u78924e6ece9b95c9 at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Jose Campos wrote On Fri Nov 21 03:40:02 2003
>>
>>
>>> Hi, I'm a new user of NS and in order to start with
>>> the simulator, I have
>>> been doing the examples which appeared in Marc Greis's
>>> Tutorial. I have
>>> tried to do one on my own, so I have copied the files
>>> ping.h, ping.cc and
>>> ping.tcl; but instead of putting the same name 'ping'
>>> I have changed it by
>>> 'prueba' and I have modified all the files indicated
>>> in the tutorial. When
>>> I've tried to compile two errors have ocurred. The
>>> first one is that the
>>> variable off_ip_ is not declared; I think that it
>>> could be because it is not
>>> declared in file 'ip.h' as off_ip_, but as offset_.
>>> However, I've changed
>>> it and the message is the same. The second error is
>>> derived from the first
>>> one because, as the program can't access to ip
>>> header, it can't manage the
>>> command 'hdrip->src_ >>
>>> Address::instance().NodeShift[1]'. Thanks in
>>> advance. Jose.
>>>
>> Such an old problem from Marc Greis' Tutorial For NS.
>> I ran into it today, do some search on the web, and then
>> so surprised to find that this annoying old problem,
>> perhaps derived form version incompatiblity, is still left
>> unanswerd for FIVE years...--!
>>
>> So I try to fix it by myself, hoping that may also help others.
>>
>> the error "off_ip_ was not declared in this scope" is simply
>> because the variable really doesn't exist. To solve it, define
>> it in the header file, just under the definition of off_ping_.
>> And add "off_ip_ = hdr_ip::offset();" before using it in statement:
>> " hdr_ip* hdrip = (hdr_ip*)pkt->access(off_ip_);".
>>
>> another error lies in the command :
>> "hdrip->src_ >> Address::instance().NodeShift[1]"
>> compiler complains about the operator ">>"
>> i guess this usage is obsolete. To make the compiler
>> work, comment this command out and replace it with
>> "(hdrip->src_).addr_,"
>>
>> Well, that should be all, except one embarrassing problem,
>> another protocol PT_PING is already implemented in newer
>> version of NS, so ... to get over the confliction, some
>> modification in class name and struct name will be necessary.
>>
>> --
>> Regards
>> NarcissusHuang
>>
>>
>>
>>
>> --
>> Regards
>> NarcissusHuang
>>
>>
>> ------------------------------
>>
>> Message: 16
>> Date: Thu, 21 Aug 2008 13:48:09 -0400
>> From: "J S" <geekreader at gmail.com>
>> Subject: Re: [ns] warning:deprecated conversion from string constant
>> to 'char*
>> To: Narcissus <yelohuang at gmail.com>, ns-users at ISI.EDU
>> Message-ID:
>> <51c600f80808211048s3b01df52o44db0c87e02b01de at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Thanks, In the same tutorial, in the OCTL linkage sub section,
>> it is mentioned that
>> that one needs to set the default value for that variable exported in C++ in
>> the "ns-2/tcl/lib/ns-lib.tcl" file
>>
>> Does any one has any example that how can I set the default value of the
>> variable?
>>
>> Thanks again
>> JS
>>
>> On Thu, Aug 21, 2008 at 1:34 PM, Narcissus <yelohuang at gmail.com> wrote:
>>
>>
>>> Hi,
>>> Just ignore this warnings of imperfect coding, your ns will work well.
>>>
>>> 2008/8/22 J S <geekreader at gmail.com>
>>>
>>>
>>>> Hello I am new to ns.
>>>>
>>>> I have been following "NS by example tutorial" from
>>>> http://nile.wpi.edu/NS/
>>>>
>>>> In the sub-section extending NS (for user define agents), While using
>>>>
>>> make,
>>>
>>>> I am getting bunch of warnings
>>>>
>>>> ./common/packet.h:: warning: deprecated conversion from string constant
>>>>
>>> to
>>>
>>>> 'char*'
>>>>
>>>> I am using ubuntu.
>>>>
>>>> Any help in this matter is appreciated
>>>>
>>>> Thanks you
>>>>
>>>>
>>>
>>> --
>>> Regards
>>> NarcissusHuang
>>>
>>>
>> ------------------------------
>>
>> Message: 17
>> Date: Thu, 21 Aug 2008 21:55:03 +0200
>> From: "Nick Zando" <nick.zando at gmail.com>
>> Subject: [ns] format routine in Trace.cc
>> To: ns-users at ISI.EDU
>> Message-ID:
>> <53b7ebd80808211255p62645eare3d41bee74e1cc4e at mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hi everyone!
>> I am trying to create a new packet trace format.
>> In trace.cc i see:
>>
>> void Trace::format(int tt, int s, int d, Packet* p) {
>>
>> bla bla
>>
>>
>>
>
>
More information about the Ns-users
mailing list