From fzufzu at 163.com Fri Aug 2 01:35:22 2013 From: fzufzu at 163.com (fzufzu) Date: Fri, 2 Aug 2013 16:35:22 +0800 (CST) Subject: [ndnSIM] common-module.h In-Reply-To: References: Message-ID: <269a1baf.30963.1403e2ab9e1.Coremail.fzufzu@163.com> Can you send me common-module.h file? At 2013-07-29 06:40:32,ndnsim-request at lists.cs.ucla.edu wrote: >Send ndnSIM mailing list submissions to > ndnsim at lists.cs.ucla.edu > >To subscribe or unsubscribe via the World Wide Web, visit > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >or, via email, send a message with subject or body 'help' to > ndnsim-request at lists.cs.ucla.edu > >You can reach the person managing the list at > ndnsim-owner at lists.cs.ucla.edu > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of ndnSIM digest..." > > >Today's Topics: > > 1. Re: ndnSIM Digest, Vol 8, Issue 17 (Alex Afanasyev) > 2. Re: cache mechanism (Alex Afanasyev) > 3. How to get nonce value from the reply object? (Prasertsak U.) > 4. Re: How to get nonce value from the reply object? (Prasertsak U.) > 5. Re: How to get nonce value from the reply object? (Alex Afanasyev) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Tue, 23 Jul 2013 10:32:20 -0700 >From: Alex Afanasyev >To: Tun Tun Oo >Cc: ndnsim at lists.cs.ucla.edu >Subject: Re: [ndnSIM] ndnSIM Digest, Vol 8, Issue 17 >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >Hi Tun, > >There is definitely a lot of things to be improved. Even without enabling NACKs, there could be an implementation of consumerWindow that replicates to some extent more aggressive versions of TCP, such as Cubic or Compound TCP. Enabling NACKs basically enables explicit notifications from the network about available resources and again, a lot of can be improved here. > >--- >Alex > >On Jul 21, 2013, at 8:57 PM, Tun Tun Oo wrote: > >> Dear Alex, >> >> Thanks a lot for your contribution. >> As you mention, by using the enable NACKs the result is improved. >> We have to do some tuning of consumerWindows app for better result as TCP. >> In this sense, some sample model such as limit-window, rtt-estimator, rtt-deviation, etc are required to improve. >> This just my thinking about it and I am not quite sure. >> Could you advice me what I am missing or mis-understanding. >> Thanks again. >> >> Rgds >> TUN >> >> Date: Thu, 18 Jul 2013 08:34:53 -0700 >> From: Alex Afanasyev >> To: Tun Tun Oo >> Cc: ndnsim at lists.cs.ucla.edu >> Subject: Re: [ndnSIM] ConsumerWindow and Congestion >> Message-ID: <46F071A0-EBBA-4B68-83C8-D66FA0B29035 at ucla.edu> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hi Tun, >> >> The behavior you're observing is probably not wrong, it just that ConsumerWindow is not equal to TCP. ConsumerWindow has very simplistic congestion-related logic implemented, so it causes such an oscillations and weirdnesses. You may want to consider implementing a more aggressive and more TCP-like consumer, or you can also enable NACKs (EnableNACKs parameter for the forwarding strategy), which may improve (but probably not going to completely solve) your problem. >> >> --- >> Alex >> >> On Jul 17, 2013, at 8:07 AM, Tun Tun Oo wrote: >> >> > Dear Alex >> > >> > I did an experiment using the 8-node bottleneck scenario with ConsumerWindows application. As topology, I arranged as similar to the 6-node bottleneck scenario. >> > C1\ /P1 >> > \ / >> > /-------R1---------R2---------R3-------R4 \ >> > / \ >> > C2 P2 >> > >> > All the access link are 10 Mbps/10 ms and all routers are 1 Mpbs/10 ms. >> > I set the Size Attribute of ConsumerWindow as 2 Mbyte and other setting as default. >> > I found the some strange behaviors from graph-output >> > First 3 sec simulation two consumers are working as usual. >> > Next 20 sec only one consumer (c1)can send and receive. >> > After 20 sec two consumers can send and receive. >> > From 23 sec to end of simulation (40 sec) only one consumer (c2) is sending and receiving. >> > >> > I would like to know your advice of what is wrong in this experiment? >> > Thanks in advance. >> > >> > Regards >> > >> > TUN >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > >------------------------------ > >Message: 2 >Date: Tue, 23 Jul 2013 10:36:38 -0700 >From: Alex Afanasyev >To: chen dqing >Cc: ndnsim at lists.cs.ucla.edu >Subject: Re: [ndnSIM] cache mechanism >Message-ID: <2BD512B9-1FC5-4A08-81D8-484B780DD1FE at ucla.edu> >Content-Type: text/plain; charset=iso-8859-1 > >Hi Chen, > >In the current implementations, when Data packet is cached, it loses all memory on where this Data packet came from. So, you may need to do some extensions to retain such memory. After this part is done, the rest could be relatively easy: you need to create a policy, similar to utils/trie/lru-policy.h that implements the right logic in "insert" method. > > >--- >Alex > >On Jul 23, 2013, at 12:58 AM, chen dqing wrote: > >> Dear all, >> I want to implement a cache mechanism like this. >> There are two nodes A<---->B. >> When B's content store is full,continuing to add, it will pop content object named 'b'. >> How can B push 'b' back to A(Assuming that A has enough space)? Anyone can give me a hint? >> >> Thanks >> >> My Regards >> Chendq >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > >------------------------------ > >Message: 3 >Date: Sun, 28 Jul 2013 18:52:40 +0700 >From: "Prasertsak U." >To: "ndnsim at lists.cs.ucla.edu" >Subject: [ndnSIM] How to get nonce value from the reply object? >Message-ID: > >Content-Type: text/plain; charset="iso-8859-1" > >Dear All, > >I'm trying to use nonce value from the reply step to map something in the >buffer. >Unfortunately, I'm not found the way to get nonce value from the reply >object in the method "*OnContentObject".* Anybody knows the way or some >hints for mapping between request packet and the reply packet. (I mean any >headers or fields like a nonce of Interest packet) > >*Overview Diagram for mapping:* >(1) Create Interest Packet -----> (2) Keep sender nonce value -----> (3) >waiting for reply >(4) Receive Reply content -----> (*5)* Get nonce value from reply >objects*------> >(6) mapping with the buffer in step-2 ----> etc. > > >Thank you. > >Regards, >Prasertsak U. > >Computing Department, Silpakorn University, Thailand. >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > >------------------------------ > >Message: 4 >Date: Sun, 28 Jul 2013 21:01:31 +0700 >From: "Prasertsak U." >To: "ndnsim at lists.cs.ucla.edu" >Subject: Re: [ndnSIM] How to get nonce value from the reply object? >Message-ID: > >Content-Type: text/plain; charset="iso-8859-1" > >For now, I solve my problem already, which workaround by signature field of >ContentObject. > >// @Provider App. >void OnInterest(...) >{ > ndn::ContentObjectHeader data; > ... > data.SetSignature(interest->GetNonce()); > ... >} > >// @Consumer App. >void OnContentObject (...) >{ > ... > uint32_t reply_nonce = contentObject->GetSignature(); > ... >} > >Regards, >Prasertsak U. > > >On Sun, Jul 28, 2013 at 6:52 PM, Prasertsak U. wrote: > >> Dear All, >> >> I'm trying to use nonce value from the reply step to map something in the >> buffer. >> Unfortunately, I'm not found the way to get nonce value from the reply >> object in the method "*OnContentObject".* Anybody knows the way or some >> hints for mapping between request packet and the reply packet. (I mean any >> headers or fields like a nonce of Interest packet) >> >> *Overview Diagram for mapping:* >> (1) Create Interest Packet -----> (2) Keep sender nonce value -----> (3) >> waiting for reply >> (4) Receive Reply content -----> (*5)* Get nonce value from reply objects*------> >> (6) mapping with the buffer in step-2 ----> etc. >> >> >> Thank you. >> >> Regards, >> Prasertsak U. >> >> Computing Department, Silpakorn University, Thailand. >> >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > >------------------------------ > >Message: 5 >Date: Sun, 28 Jul 2013 15:40:22 -0700 >From: Alex Afanasyev >To: "Prasertsak U." >Cc: "ndnsim at lists.cs.ucla.edu" >Subject: Re: [ndnSIM] How to get nonce value from the reply object? >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >Hi! > >With Data packet you can really put anything inside as part of the content. There are many ways to do that, but in NS-3 the preferred method is to use a custom header. It can be something like this: > >class NonceHeader : public Header >{ >public: > static TypeId GetTypeId (void) > { > static TypeId tid = TypeId ("ns3::NonceHeader") > .SetParent
() > ; > return tid; > } > > NonceHeader () > : m_nonce (0) > { > } > > NonceHeader (uint32_t nonce) > : m_nonce (nonce > { > } > > uint32_t > GetNonce () const > { > return m_length; > } > > virtual TypeId > GetInstanceTypeId (void) const > { > return NonceHeader::GetTypeId (); > } > > virtual void > Print (std::ostream &os) const > { > os << m_nonce; > } > > virtual uint32_t > GetSerializedSize (void) const > { > return 4; > } > > virtual void > Serialize (Buffer::Iterator start) const > { > start.WriteU32 (m_nonce); > } > > virtual uint32_t > Deserialize (Buffer::Iterator start) > { > m_nonce = start.ReadU32 (); > return 4; > } > >private: > uint32_t m_nonce; >}; > >... > >// in producer >void >OnInterest (Ptr interest) >{ > Ptr content = Create (m_virtualPayloadSize); > // or just Ptr content = Create (); if you don't need data packet to carry virtual payload > NonceHeader hdr (intereset->GetNonce ()); > content->AddHeader (hdr); > > Ptr data = Create (content); > > // the rest is standard from apps/ndn-producer.cc >} > >// in consumer >void >OnContentObject (Ptr data) >{ > NonceHeader hdr; > data->GetPayload ()->PeekHeader (hdr); > > uint32_t echoedNonce = hdr->GetNonce (); > // use it somehow >} >--- >Alex > >PS >My example uses API from version 0.5 of ndnSIM, which is a little bit different from the "old" one. > >On Jul 28, 2013, at 7:01 AM, Prasertsak U. wrote: > >> For now, I solve my problem already, which workaround by signature field of ContentObject. >> >> // @Provider App. >> void OnInterest(...) >> { >> ndn::ContentObjectHeader data; >> ... >> data.SetSignature(interest->GetNonce()); >> ... >> } >> >> // @Consumer App. >> void OnContentObject (...) >> { >> ... >> uint32_t reply_nonce = contentObject->GetSignature(); >> ... >> } >> >> Regards, >> Prasertsak U. >> >> >> On Sun, Jul 28, 2013 at 6:52 PM, Prasertsak U. wrote: >> Dear All, >> >> I'm trying to use nonce value from the reply step to map something in the buffer. >> Unfortunately, I'm not found the way to get nonce value from the reply object in the method "OnContentObject". Anybody knows the way or some hints for mapping between request packet and the reply packet. (I mean any headers or fields like a nonce of Interest packet) >> >> Overview Diagram for mapping: >> (1) Create Interest Packet -----> (2) Keep sender nonce value -----> (3) waiting for reply >> (4) Receive Reply content -----> (*5) Get nonce value from reply objects ------> >> (6) mapping with the buffer in step-2 ----> etc. >> >> >> Thank you. >> >> Regards, >> Prasertsak U. >> >> Computing Department, Silpakorn University, Thailand. >> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > >------------------------------ > >Subject: Digest Footer > >_______________________________________________ >ndnSIM mailing list >ndnSIM at lists.cs.ucla.edu >http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > >------------------------------ > >End of ndnSIM Digest, Vol 8, Issue 19 >************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From fzufzu at 163.com Fri Aug 2 01:40:39 2013 From: fzufzu at 163.com (fzufzu) Date: Fri, 2 Aug 2013 16:40:39 +0800 (CST) Subject: [ndnSIM] fatal error: ns3/common-module.h: No such file or directory compilation terminated. In-Reply-To: References: Message-ID: <47d89421.30caf.1403e2f92af.Coremail.fzufzu@163.com> ../src/spectrum/examples/adhoc-aloha-ideal-phy.cc:26:31: fatal error: ns3/common-module.h: No such file or directory compilation terminated. How can i solve the error? At 2013-08-02 16:35:49,ndnsim-request at lists.cs.ucla.edu wrote: >Send ndnSIM mailing list submissions to > ndnsim at lists.cs.ucla.edu > >To subscribe or unsubscribe via the World Wide Web, visit > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >or, via email, send a message with subject or body 'help' to > ndnsim-request at lists.cs.ucla.edu > >You can reach the person managing the list at > ndnsim-owner at lists.cs.ucla.edu > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of ndnSIM digest..." > > >Today's Topics: > > 1. Re: some questions (Alex Afanasyev) > 2. common-module.h (fzufzu) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Mon, 29 Jul 2013 19:34:22 -0700 >From: Alex Afanasyev >To: ??? >Cc: ndnsim >Subject: Re: [ndnSIM] some questions >Message-ID: <9671DB2C-AE7D-408D-A091-95E6CDC6082E at ucla.edu> >Content-Type: text/plain; charset="utf-8" > >Hi! > >1. CS is using a generalized data structure (trie: utils/trie/trie-with-policy.h), so that's why there is a word "payload", and not something specific. In the context of content store, payload is the content store entry. > >2. CS store entry contains data packet, which contains name > >4. Ptr is a general abstraction of a packet in NS-3 in general. ndnSIM uses Interest and Data packets, which in version before 0.5 are actually so called "headers" that are added to Ptr, and since 0.5 they are wrappers on top of Ptr (which internally use "header" to add to packet). > >By default, ndnSIM uses packet formats defined in the document that you linked. In version 0.5 it is also possible to use other format (currently, the only other format is CCNx's ccnb) > >5. I would recommend to check out version 0.5, since it got a little bit more straightforward, especially in this case. CS stores Ptr object, which internally has reference to it's payload (Ptr) and wire format (also Ptr). > >Hope my answers didn't confuse you too much :) > >--- >Alex > >On Jul 28, 2013, at 8:53 PM, ??? wrote: > >> Hi All, >> I just know the payload in CS is a valid entry and learn the entry from some documents,it contains the content name and the content.There are some questions puzzled me these days. >> 1.What is the relationship between payload and entry? >> 2.whether the entry containes the name of content in ndnSIM? >> 3.If the second is true,whether the name of an entry in CS or the other two structures is the name of the node or the full name of content like some documents present? >> 4.Whether all the ptr packets in ndnSIM are the same format like the http://ndnsim.net/ndnsim-packet-formats.html?&n bsp; >> 5.I read the ContentStoreIMpl::lookup(),what is the formats of FullyFormedNdnPacket,Header and Packet form the three methods (node->payload ()->GetFullyFormedNdnPacket (),node->payload ()->GetHeader (),node->payload ()->GetPacket ())? >> >> Thank you >> >> Regards. >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > >------------------------------ > >Message: 2 >Date: Fri, 2 Aug 2013 16:35:22 +0800 (CST) >From: fzufzu >To: ndnsim at lists.cs.ucla.edu >Subject: [ndnSIM] common-module.h >Message-ID: <269a1baf.30963.1403e2ab9e1.Coremail.fzufzu at 163.com> >Content-Type: text/plain; charset="gbk" > >Can you send me common-module.h file? > > > > > > > > >At 2013-07-29 06:40:32,ndnsim-request at lists.cs.ucla.edu wrote: >>Send ndnSIM mailing list submissions to >> ndnsim at lists.cs.ucla.edu >> >>To subscribe or unsubscribe via the World Wide Web, visit >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >>or, via email, send a message with subject or body 'help' to >> ndnsim-request at lists.cs.ucla.edu >> >>You can reach the person managing the list at >> ndnsim-owner at lists.cs.ucla.edu >> >>When replying, please edit your Subject line so it is more specific >>than "Re: Contents of ndnSIM digest..." >> >> >>Today's Topics: >> >> 1. Re: ndnSIM Digest, Vol 8, Issue 17 (Alex Afanasyev) >> 2. Re: cache mechanism (Alex Afanasyev) >> 3. How to get nonce value from the reply object? (Prasertsak U.) >> 4. Re: How to get nonce value from the reply object? (Prasertsak U.) >> 5. Re: How to get nonce value from the reply object? (Alex Afanasyev) >> >> >>---------------------------------------------------------------------- >> >>Message: 1 >>Date: Tue, 23 Jul 2013 10:32:20 -0700 >>From: Alex Afanasyev >>To: Tun Tun Oo >>Cc: ndnsim at lists.cs.ucla.edu >>Subject: Re: [ndnSIM] ndnSIM Digest, Vol 8, Issue 17 >>Message-ID: >>Content-Type: text/plain; charset="iso-8859-1" >> >>Hi Tun, >> >>There is definitely a lot of things to be improved. Even without enabling NACKs, there could be an implementation of consumerWindow that replicates to some extent more aggressive versions of TCP, such as Cubic or Compound TCP. Enabling NACKs basically enables explicit notifications from the network about available resources and again, a lot of can be improved here. >> >>--- >>Alex >> >>On Jul 21, 2013, at 8:57 PM, Tun Tun Oo wrote: >> >>> Dear Alex, >>> >>> Thanks a lot for your contribution. >>> As you mention, by using the enable NACKs the result is improved. >>> We have to do some tuning of consumerWindows app for better result as TCP. >>> In this sense, some sample model such as limit-window, rtt-estimator, rtt-deviation, etc are required to improve. >>> This just my thinking about it and I am not quite sure. >>> Could you advice me what I am missing or mis-understanding. >>> Thanks again. >>> >>> Rgds >>> TUN >>> >>> Date: Thu, 18 Jul 2013 08:34:53 -0700 >>> From: Alex Afanasyev >>> To: Tun Tun Oo >>> Cc: ndnsim at lists.cs.ucla.edu >>> Subject: Re: [ndnSIM] ConsumerWindow and Congestion >>> Message-ID: <46F071A0-EBBA-4B68-83C8-D66FA0B29035 at ucla.edu> >>> Content-Type: text/plain; charset="iso-8859-1" >>> >>> Hi Tun, >>> >>> The behavior you're observing is probably not wrong, it just that ConsumerWindow is not equal to TCP. ConsumerWindow has very simplistic congestion-related logic implemented, so it causes such an oscillations and weirdnesses. You may want to consider implementing a more aggressive and more TCP-like consumer, or you can also enable NACKs (EnableNACKs parameter for the forwarding strategy), which may improve (but probably not going to completely solve) your problem. >>> >>> --- >>> Alex >>> >>> On Jul 17, 2013, at 8:07 AM, Tun Tun Oo wrote: >>> >>> > Dear Alex >>> > >>> > I did an experiment using the 8-node bottleneck scenario with ConsumerWindows application. As topology, I arranged as similar to the 6-node bottleneck scenario. >>> > C1\ /P1 >>> > \ / >>> > /-------R1---------R2---------R3-------R4 \ >>> > / \ >>> > C2 P2 >>> > >>> > All the access link are 10 Mbps/10 ms and all routers are 1 Mpbs/10 ms. >>> > I set the Size Attribute of ConsumerWindow as 2 Mbyte and other setting as default. >>> > I found the some strange behaviors from graph-output >>> > First 3 sec simulation two consumers are working as usual. >>> > Next 20 sec only one consumer (c1)can send and receive. >>> > After 20 sec two consumers can send and receive. >>> > From 23 sec to end of simulation (40 sec) only one consumer (c2) is sending and receiving. >>> > >>> > I would like to know your advice of what is wrong in this experiment? >>> > Thanks in advance. >>> > >>> > Regards >>> > >>> > TUN >>-------------- next part -------------- >>An HTML attachment was scrubbed... >>URL: >> >>------------------------------ >> >>Message: 2 >>Date: Tue, 23 Jul 2013 10:36:38 -0700 >>From: Alex Afanasyev >>To: chen dqing >>Cc: ndnsim at lists.cs.ucla.edu >>Subject: Re: [ndnSIM] cache mechanism >>Message-ID: <2BD512B9-1FC5-4A08-81D8-484B780DD1FE at ucla.edu> >>Content-Type: text/plain; charset=iso-8859-1 >> >>Hi Chen, >> >>In the current implementations, when Data packet is cached, it loses all memory on where this Data packet came from. So, you may need to do some extensions to retain such memory. After this part is done, the rest could be relatively easy: you need to create a policy, similar to utils/trie/lru-policy.h that implements the right logic in "insert" method. >> >> >>--- >>Alex >> >>On Jul 23, 2013, at 12:58 AM, chen dqing wrote: >> >>> Dear all, >>> I want to implement a cache mechanism like this. >>> There are two nodes A<---->B. >>> When B's content store is full,continuing to add, it will pop content object named 'b'. >>> How can B push 'b' back to A(Assuming that A has enough space)? Anyone can give me a hint? >>> >>> Thanks >>> >>> My Regards >>> Chendq >>> _______________________________________________ >>> ndnSIM mailing list >>> ndnSIM at lists.cs.ucla.edu >>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> >> >> >>------------------------------ >> >>Message: 3 >>Date: Sun, 28 Jul 2013 18:52:40 +0700 >>From: "Prasertsak U." >>To: "ndnsim at lists.cs.ucla.edu" >>Subject: [ndnSIM] How to get nonce value from the reply object? >>Message-ID: >> >>Content-Type: text/plain; charset="iso-8859-1" >> >>Dear All, >> >>I'm trying to use nonce value from the reply step to map something in the >>buffer. >>Unfortunately, I'm not found the way to get nonce value from the reply >>object in the method "*OnContentObject".* Anybody knows the way or some >>hints for mapping between request packet and the reply packet. (I mean any >>headers or fields like a nonce of Interest packet) >> >>*Overview Diagram for mapping:* >>(1) Create Interest Packet -----> (2) Keep sender nonce value -----> (3) >>waiting for reply >>(4) Receive Reply content -----> (*5)* Get nonce value from reply >>objects*------> >>(6) mapping with the buffer in step-2 ----> etc. >> >> >>Thank you. >> >>Regards, >>Prasertsak U. >> >>Computing Department, Silpakorn University, Thailand. >>-------------- next part -------------- >>An HTML attachment was scrubbed... >>URL: >> >>------------------------------ >> >>Message: 4 >>Date: Sun, 28 Jul 2013 21:01:31 +0700 >>From: "Prasertsak U." >>To: "ndnsim at lists.cs.ucla.edu" >>Subject: Re: [ndnSIM] How to get nonce value from the reply object? >>Message-ID: >> >>Content-Type: text/plain; charset="iso-8859-1" >> >>For now, I solve my problem already, which workaround by signature field of >>ContentObject. >> >>// @Provider App. >>void OnInterest(...) >>{ >> ndn::ContentObjectHeader data; >> ... >> data.SetSignature(interest->GetNonce()); >> ... >>} >> >>// @Consumer App. >>void OnContentObject (...) >>{ >> ... >> uint32_t reply_nonce = contentObject->GetSignature(); >> ... >>} >> >>Regards, >>Prasertsak U. >> >> >>On Sun, Jul 28, 2013 at 6:52 PM, Prasertsak U. wrote: >> >>> Dear All, >>> >>> I'm trying to use nonce value from the reply step to map something in the >>> buffer. >>> Unfortunately, I'm not found the way to get nonce value from the reply >>> object in the method "*OnContentObject".* Anybody knows the way or some >>> hints for mapping between request packet and the reply packet. (I mean any >>> headers or fields like a nonce of Interest packet) >>> >>> *Overview Diagram for mapping:* >>> (1) Create Interest Packet -----> (2) Keep sender nonce value -----> (3) >>> waiting for reply >>> (4) Receive Reply content -----> (*5)* Get nonce value from reply objects*------> >>> (6) mapping with the buffer in step-2 ----> etc. >>> >>> >>> Thank you. >>> >>> Regards, >>> Prasertsak U. >>> >>> Computing Department, Silpakorn University, Thailand. >>> >>> >>-------------- next part -------------- >>An HTML attachment was scrubbed... >>URL: >> >>------------------------------ >> >>Message: 5 >>Date: Sun, 28 Jul 2013 15:40:22 -0700 >>From: Alex Afanasyev >>To: "Prasertsak U." >>Cc: "ndnsim at lists.cs.ucla.edu" >>Subject: Re: [ndnSIM] How to get nonce value from the reply object? >>Message-ID: >>Content-Type: text/plain; charset="iso-8859-1" >> >>Hi! >> >>With Data packet you can really put anything inside as part of the content. There are many ways to do that, but in NS-3 the preferred method is to use a custom header. It can be something like this: >> >>class NonceHeader : public Header >>{ >>public: >> static TypeId GetTypeId (void) >> { >> static TypeId tid = TypeId ("ns3::NonceHeader") >> .SetParent
() >> ; >> return tid; >> } >> >> NonceHeader () >> : m_nonce (0) >> { >> } >> >> NonceHeader (uint32_t nonce) >> : m_nonce (nonce >> { >> } >> >> uint32_t >> GetNonce () const >> { >> return m_length; >> } >> >> virtual TypeId >> GetInstanceTypeId (void) const >> { >> return NonceHeader::GetTypeId (); >> } >> >> virtual void >> Print (std::ostream &os) const >> { >> os << m_nonce; >> } >> >> virtual uint32_t >> GetSerializedSize (void) const >> { >> return 4; >> } >> >> virtual void >> Serialize (Buffer::Iterator start) const >> { >> start.WriteU32 (m_nonce); >> } >> >> virtual uint32_t >> Deserialize (Buffer::Iterator start) >> { >> m_nonce = start.ReadU32 (); >> return 4; >> } >> >>private: >> uint32_t m_nonce; >>}; >> >>... >> >>// in producer >>void >>OnInterest (Ptr interest) >>{ >> Ptr content = Create (m_virtualPayloadSize); >> // or just Ptr content = Create (); if you don't need data packet to carry virtual payload >> NonceHeader hdr (intereset->GetNonce ()); >> content->AddHeader (hdr); >> >> Ptr data = Create (content); >> >> // the rest is standard from apps/ndn-producer.cc >>} >> >>// in consumer >>void >>OnContentObject (Ptr data) >>{ >> NonceHeader hdr; >> data->GetPayload ()->PeekHeader (hdr); >> >> uint32_t echoedNonce = hdr->GetNonce (); >> // use it somehow >>} >>--- >>Alex >> >>PS >>My example uses API from version 0.5 of ndnSIM, which is a little bit different from the "old" one. >> >>On Jul 28, 2013, at 7:01 AM, Prasertsak U. wrote: >> >>> For now, I solve my problem already, which workaround by signature field of ContentObject. >>> >>> // @Provider App. >>> void OnInterest(...) >>> { >>> ndn::ContentObjectHeader data; >>> ... >>> data.SetSignature(interest->GetNonce()); >>> ... >>> } >>> >>> // @Consumer App. >>> void OnContentObject (...) >>> { >>> ... >>> uint32_t reply_nonce = contentObject->GetSignature(); >>> ... >>> } >>> >>> Regards, >>> Prasertsak U. >>> >>> >>> On Sun, Jul 28, 2013 at 6:52 PM, Prasertsak U. wrote: >>> Dear All, >>> >>> I'm trying to use nonce value from the reply step to map something in the buffer. >>> Unfortunately, I'm not found the way to get nonce value from the reply object in the method "OnContentObject". Anybody knows the way or some hints for mapping between request packet and the reply packet. (I mean any headers or fields like a nonce of Interest packet) >>> >>> Overview Diagram for mapping: >>> (1) Create Interest Packet -----> (2) Keep sender nonce value -----> (3) waiting for reply >>> (4) Receive Reply content -----> (*5) Get nonce value from reply objects ------> >>> (6) mapping with the buffer in step-2 ----> etc. >>> >>> >>> Thank you. >>> >>> Regards, >>> Prasertsak U. >>> >>> Computing Department, Silpakorn University, Thailand. >>> >>> >>> _______________________________________________ >>> ndnSIM mailing list >>> ndnSIM at lists.cs.ucla.edu >>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >>-------------- next part -------------- >>An HTML attachment was scrubbed... >>URL: >> >>------------------------------ >> >>Subject: Digest Footer >> >>_______________________________________________ >>ndnSIM mailing list >>ndnSIM at lists.cs.ucla.edu >>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >> >> >>------------------------------ >> >>End of ndnSIM Digest, Vol 8, Issue 19 >>************************************* >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > >------------------------------ > >Subject: Digest Footer > >_______________________________________________ >ndnSIM mailing list >ndnSIM at lists.cs.ucla.edu >http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > >------------------------------ > >End of ndnSIM Digest, Vol 9, Issue 1 >************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Fri Aug 2 10:02:29 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 2 Aug 2013 10:02:29 -0700 Subject: [ndnSIM] fatal error: ns3/common-module.h: No such file or directory compilation terminated. In-Reply-To: <47d89421.30caf.1403e2f92af.Coremail.fzufzu@163.com> References: <47d89421.30caf.1403e2f92af.Coremail.fzufzu@163.com> Message-ID: <6BE5CAA1-BFA6-458B-8A3B-6A3FF6078B12@ucla.edu> Hi! I think you're using a wrong version of NS-3. Did you follow there instructions: http://ndnsim.net/getting-started.html? common-module.h was automatically generated in an old version of NS-3 (before and including version 3.10) and since then there was a major source reorganization. --- Alex On Aug 2, 2013, at 1:40 AM, fzufzu wrote: > ../src/spectrum/examples/adhoc-aloha-ideal-phy.cc:26:31: fatal error: ns3/common-module.h: No such file or directory > compilation terminated. > > How can i solve the error? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gniliamg at gmail.com Sat Aug 3 00:40:37 2013 From: gniliamg at gmail.com (Prasertsak U.) Date: Sat, 3 Aug 2013 14:40:37 +0700 Subject: [ndnSIM] Some warnings in compiling step of ndnSIM (v0.5 RC1) Message-ID: Dear Alex, Today, I try to investigate the new release of ndnSIM (v0.5 RC1). I got some errors in compiling step. (In fact, it is some Warning) cc1plus: warnings being treated as errors > /opt/local/include/boost/archive/iterators/transform_width.hpp: In copy > constructor ?boost::archive::iterators::transform_width BitsIn, CharType>::transform_width(const > boost::archive::iterators::transform_width CharType>&) [with Base = > boost::transform_iterator, > __gnu_cxx::__normal_iterator std::char_traits, std::allocator > >, boost::use_default, > boost::use_default>, int BitsOut = 8, int BitsIn = 4, CharType = char]?: > ../src/ndnSIM/ndn.cxx/detail/uri.h:111: instantiated from ?static void > ns3::ndn::Uri::fromEscaped(Iterator1, Iterator1, Iterator2) [with Iterator1 > = __gnu_cxx::__normal_iterator std::char_traits, std::allocator > >, Iterator2 = > std::back_insert_iterator]? > ../src/ndnSIM/ndn.cxx/name-component.cc:51: instantiated from here > /opt/local/include/boost/archive/iterators/transform_width.hpp:104: > warning: > ?boost::archive::iterators::transform_width, > __gnu_cxx::__normal_iterator std::char_traits, std::allocator > >, boost::use_default, > boost::use_default>, 8, 4, char>::m_remaining_bits? will be initialized > after > /opt/local/include/boost/archive/iterators/transform_width.hpp:101: > warning: ?char > boost::archive::iterators::transform_width, > __gnu_cxx::__normal_iterator std::char_traits, std::allocator > >, boost::use_default, > boost::use_default>, 8, 4, char>::m_buffer_in? > /opt/local/include/boost/archive/iterators/transform_width.hpp:119: > warning: when initialized here > Waf: Leaving directory `/Users/Psaku/Workspace/ndnSIM-0.5/ns-3/build' > Build failed My environment : - OS X 10.8 - Boost Library 1.53 - Python 2.7 - GCC 4.2.1 - C++ 4.2 Regards, Prasertsak U. Silpakorn University, Thailand. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Sat Aug 3 17:31:47 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Sat, 3 Aug 2013 17:31:47 -0700 Subject: [ndnSIM] Some warnings in compiling step of ndnSIM (v0.5 RC1) In-Reply-To: References: Message-ID: <7C60F98F-D7B2-4329-A6E9-F93A22BA1CED@ucla.edu> Hi! Thanks for catching this! I have pushed an update that should resolve this issue. Technically it is a harmless warning which could be ignored if not the "-Werror" flag which NS-3 set by default. --- Alex On Aug 3, 2013, at 12:40 AM, "Prasertsak U." wrote: > Dear Alex, > > Today, I try to investigate the new release of ndnSIM (v0.5 RC1). > I got some errors in compiling step. (In fact, it is some Warning) > > cc1plus: warnings being treated as errors > /opt/local/include/boost/archive/iterators/transform_width.hpp: In copy constructor ?boost::archive::iterators::transform_width::transform_width(const boost::archive::iterators::transform_width&) [with Base = boost::transform_iterator, __gnu_cxx::__normal_iterator, std::allocator > >, boost::use_default, boost::use_default>, int BitsOut = 8, int BitsIn = 4, CharType = char]?: > ../src/ndnSIM/ndn.cxx/detail/uri.h:111: instantiated from ?static void ns3::ndn::Uri::fromEscaped(Iterator1, Iterator1, Iterator2) [with Iterator1 = __gnu_cxx::__normal_iterator, std::allocator > >, Iterator2 = std::back_insert_iterator]? > ../src/ndnSIM/ndn.cxx/name-component.cc:51: instantiated from here > /opt/local/include/boost/archive/iterators/transform_width.hpp:104: warning: ?boost::archive::iterators::transform_width, __gnu_cxx::__normal_iterator, std::allocator > >, boost::use_default, boost::use_default>, 8, 4, char>::m_remaining_bits? will be initialized after > /opt/local/include/boost/archive/iterators/transform_width.hpp:101: warning: ?char boost::archive::iterators::transform_width, __gnu_cxx::__normal_iterator, std::allocator > >, boost::use_default, boost::use_default>, 8, 4, char>::m_buffer_in? > /opt/local/include/boost/archive/iterators/transform_width.hpp:119: warning: when initialized here > Waf: Leaving directory `/Users/Psaku/Workspace/ndnSIM-0.5/ns-3/build' > Build failed > > > My environment : > - OS X 10.8 > - Boost Library 1.53 > - Python 2.7 > - GCC 4.2.1 > - C++ 4.2 > > Regards, > > Prasertsak U. > Silpakorn University, Thailand. > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From msukang at swu.ac.kr Wed Aug 7 14:28:24 2013 From: msukang at swu.ac.kr (=?EUC-KR?B?sK29wryu?=) Date: Thu, 8 Aug 2013 06:28:24 +0900 (KST) Subject: [ndnSIM] Print() in ndn-pit-impl.h Message-ID: <20671206.1375910904533.38.KebiMail.msukang@swu.ac.kr> An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Wed Aug 7 14:59:45 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 7 Aug 2013 14:59:45 -0700 Subject: [ndnSIM] Print() in ndn-pit-impl.h In-Reply-To: <20671206.1375910904533.38.KebiMail.msukang@swu.ac.kr> References: <20671206.1375910904533.38.KebiMail.msukang@swu.ac.kr> Message-ID: Hi Kang, Print method is defined to return nothing: virtual void Print (std::ostream &os) const; So, you cannot really use it they way you tried. But simple change should fix your problem: std::cout << Simulator::Now ().ToDouble (Time::S) << "\t" << node->GetId () << "\t" << Names::FindName (node) << "\t" << pit->GetSize () << "\n"; pit->Print(std::cout); std::cout << "\n"; --- Alex PS Not sure what happened, but somehow either your email client or the smtp provider completely destroyed format of your message (I had to dig in into the message source to get readable text back). You may try to use the HTML format next time. On Aug 7, 2013, at 2:28 PM, ??? wrote: > Dear Manager, > > I have a very simple question. > > I'd like to use a Print() method defined in nun-pit-impl.h. > > My slightly modified code in ndn-simple-with-pit-count-stats.cc is as follo= > ws. > > void > PeriodicStatsPrinter (Ptr node, Time next) > { > Ptr pit =3D node->GetObject (); > > std::cout << Simulator::Now ().ToDouble (Time::S) << "\t" > << node->GetId () << "\t" > << Names::FindName (node) << "\t" > << pit->GetSize () << "\n" > << pit->Print(std::cout) << "\n"; // <<<=3D=3D=3D Here!! > } > > When I added the pit->Print() statement, it produces a long error. > > What will be the proper argument in the Print() method? > > Thanks in advance > -------------- next part -------------- An HTML attachment was scrubbed... URL: From blindeafer at 163.com Wed Aug 7 20:41:04 2013 From: blindeafer at 163.com (=?GBK?B?s8LKpMC2?=) Date: Thu, 8 Aug 2013 11:41:04 +0800 (CST) Subject: [ndnSIM] fib entry Message-ID: <6e24b14.2059f.1405c0371fc.Coremail.blindeafer@163.com> Hi All, I read ndn-fib.h and have a little confused.The annotation of the Add() method indicates that entries in FIB never deleted,but that of Remove() method indicates that entries in FIB can be removed.Is it a paradox? Thanks Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Wed Aug 7 22:16:58 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 7 Aug 2013 22:16:58 -0700 Subject: [ndnSIM] fib entry In-Reply-To: <6e24b14.2059f.1405c0371fc.Coremail.blindeafer@163.com> References: <6e24b14.2059f.1405c0371fc.Coremail.blindeafer@163.com> Message-ID: <26881D54-37A9-4458-BAB6-B6009CBB2258@ucla.edu> Hi! Thanks for catching this up! This is just an outdated comment that I will remove shortly. FIB used to not having Remove() method, but this has been changed since then. --- Alex On Aug 7, 2013, at 8:41 PM, ??? wrote: > Hi All, > I read ndn-fib.h and have a little confused.The annotation of the Add() method indicates that entries in FIB never deleted,but that of Remove() method indicates that entries in FIB can be removed.Is it a paradox? > > Thanks > > Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ravi.ravindran at gmail.com Fri Aug 9 17:50:59 2013 From: ravi.ravindran at gmail.com (Ravi Ravindran) Date: Fri, 9 Aug 2013 17:50:59 -0700 Subject: [ndnSIM] (no subject) Message-ID: Hi Alex, I've problem compiling ndnSIM, see below for the errors. Seems to be issue with libboost installation, I tried the "apt-get" and also manual installation of 1.52 package, but the problem remains. Current environment has a 1.48 libboost version, the ndnSIM is the latest version 0.2.8, also attached is the config.log. Any suggestions ? [1247/1925] cxx: build/src/flow-monitor/bindings/ns3module.cc -> build/src/flow-monitor/bindings/ns3module.cc.7.o [1248/1925] cxx: src/internet/model/ipv6.cc -> build/src/internet/model/ipv6.cc.1.o In file included from /usr/local/include/boost/unordered/detail/equivalent.hpp:14:0, from /usr/local/include/boost/unordered/unordered_set.hpp:17, from /usr/local/include/boost/unordered_set.hpp:16, from /usr/local/include/boost/graph/adjacency_list.hpp:21, from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.h:32, from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc:24: /usr/local/include/boost/unordered/detail/table.hpp:173:46: error: wrong number of template arguments (2, should be 1) /usr/local/include/boost/unordered/detail/buckets.hpp:40:37: error: provided for ?template struct boost::unordered::iterator_detail::iterator? /usr/local/include/boost/unordered/detail/table.hpp:175:68: error: wrong number of template arguments (3, should be 2) /usr/local/include/boost/unordered/detail/buckets.hpp:41:64: error: provided for ?template struct boost::unordered::iterator_detail::c_iterator? /usr/local/include/boost/unordered/detail/table.hpp:177:56: error: wrong number of template arguments (3, should be 2) /usr/local/include/boost/unordered/detail/buckets.hpp:42:54: error: provided for ?template struct boost::unordered::iterator_detail::l_iterator? /usr/local/include/boost/unordered/detail/table.hpp:179:77: error: wrong number of template arguments (4, should be 3) /usr/local/include/boost/unordered/detail/buckets.hpp:44:16: error: provided for ?template struct boost::unordered::iterator_detail::cl_iterator? /usr/local/include/boost/unordered/detail/table.hpp: In member function ?std::size_t boost::unordered::detail::table::bucket_size(std::size_t) const?: /usr/local/include/boost/unordered/detail/table.hpp:263:21: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp:266:22: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp:267:43: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp: In member function ?void boost::unordered::detail::table::delete_node(boost::unordered::detail::table::c_iterator)?: /usr/local/include/boost/unordered/detail/table.hpp:506:19: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp:508:41: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp:509:63: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp: In member function ?boost::unordered::detail::table::iterator boost::unordered::detail::table::find_matching_node(boost::unordered::detail::table::iterator) const?: /usr/local/include/boost/unordered/detail/table.hpp:839:39: error: invalid type argument of unary ?*? (have ?boost::unordered::detail::table::iterator {aka int}?) Waf: Leaving directory `/home/ravi/Documents/code/ndnSIM/ns-3/build' Build failed -> task in 'ns3-ndnSIM' failed (exit status 1): {task 28558352: cxx rocketfuel-map-reader.cc -> rocketfuel-map-reader.cc.1.o} ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', '-I/usr/include', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc', '-c', '-o', 'src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc.1.o'] Regards, Ravi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 58112 bytes Desc: not available URL: From ravi.ravindran at gmail.com Fri Aug 9 17:51:57 2013 From: ravi.ravindran at gmail.com (Ravi Ravindran) Date: Fri, 9 Aug 2013 17:51:57 -0700 Subject: [ndnSIM] Compiling Errors Message-ID: Hi Alex, I've problem compiling ndnSIM, see below for the errors. Seems to be issue with libboost installation, I tried the "apt-get" and also manual installation of 1.52 package, but the problem remains. Current environment has a 1.48 libboost version, the ndnSIM is the latest version 0.2.8, also attached is the config.log. Any suggestions ? [1247/1925] cxx: build/src/flow-monitor/bindings/ns3module.cc -> build/src/flow-monitor/bindings/ns3module.cc.7.o [1248/1925] cxx: src/internet/model/ipv6.cc -> build/src/internet/model/ipv6.cc.1.o In file included from /usr/local/include/boost/unordered/detail/equivalent.hpp:14:0, from /usr/local/include/boost/unordered/unordered_set.hpp:17, from /usr/local/include/boost/unordered_set.hpp:16, from /usr/local/include/boost/graph/adjacency_list.hpp:21, from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.h:32, from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc:24: /usr/local/include/boost/unordered/detail/table.hpp:173:46: error: wrong number of template arguments (2, should be 1) /usr/local/include/boost/unordered/detail/buckets.hpp:40:37: error: provided for ?template struct boost::unordered::iterator_detail::iterator? /usr/local/include/boost/unordered/detail/table.hpp:175:68: error: wrong number of template arguments (3, should be 2) /usr/local/include/boost/unordered/detail/buckets.hpp:41:64: error: provided for ?template struct boost::unordered::iterator_detail::c_iterator? /usr/local/include/boost/unordered/detail/table.hpp:177:56: error: wrong number of template arguments (3, should be 2) /usr/local/include/boost/unordered/detail/buckets.hpp:42:54: error: provided for ?template struct boost::unordered::iterator_detail::l_iterator? /usr/local/include/boost/unordered/detail/table.hpp:179:77: error: wrong number of template arguments (4, should be 3) /usr/local/include/boost/unordered/detail/buckets.hpp:44:16: error: provided for ?template struct boost::unordered::iterator_detail::cl_iterator? /usr/local/include/boost/unordered/detail/table.hpp: In member function ?std::size_t boost::unordered::detail::table::bucket_size(std::size_t) const?: /usr/local/include/boost/unordered/detail/table.hpp:263:21: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp:266:22: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp:267:43: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp: In member function ?void boost::unordered::detail::table::delete_node(boost::unordered::detail::table::c_iterator)?: /usr/local/include/boost/unordered/detail/table.hpp:506:19: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp:508:41: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp:509:63: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? /usr/local/include/boost/unordered/detail/table.hpp: In member function ?boost::unordered::detail::table::iterator boost::unordered::detail::table::find_matching_node(boost::unordered::detail::table::iterator) const?: /usr/local/include/boost/unordered/detail/table.hpp:839:39: error: invalid type argument of unary ?*? (have ?boost::unordered::detail::table::iterator {aka int}?) Waf: Leaving directory `/home/ravi/Documents/code/ndnSIM/ns-3/build' Build failed -> task in 'ns3-ndnSIM' failed (exit status 1): {task 28558352: cxx rocketfuel-map-reader.cc -> rocketfuel-map-reader.cc.1.o} ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', '-I/usr/include', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc', '-c', '-o', 'src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc.1.o'] Regards, Ravi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 58112 bytes Desc: not available URL: From alexander.afanasyev at ucla.edu Fri Aug 9 17:56:22 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 9 Aug 2013 17:56:22 -0700 Subject: [ndnSIM] Compiling Errors In-Reply-To: References: Message-ID: Hi Ravi, The error message indicates that you're still using the system's version of boost libraries (if you're on Ubuntu 12.04, it can be 1.46, 1.48, or both... which make things even more confusing). Did you use "--boost-includes=/usr/local/include --boost-libs=/usr/local/lib" configure options? In any case, I can recommend you to get the latest version of ndnSIM (master branch, it is almost ready to be 0.5-rc2), as well as latest version of custom NS-3. --- Alex On Aug 9, 2013, at 5:51 PM, Ravi Ravindran wrote: > > Hi Alex, > > I've problem compiling ndnSIM, see below for the errors. Seems to be issue with libboost installation, I tried the "apt-get" and also manual installation of 1.52 package, but the problem remains. Current environment has a 1.48 libboost version, the ndnSIM is the latest version 0.2.8, also attached is the config.log. > > Any suggestions ? > > [1247/1925] cxx: build/src/flow-monitor/bindings/ns3module.cc -> build/src/flow-monitor/bindings/ns3module.cc.7.o > [1248/1925] cxx: src/internet/model/ipv6.cc -> build/src/internet/model/ipv6.cc.1.o > In file included from /usr/local/include/boost/unordered/detail/equivalent.hpp:14:0, > from /usr/local/include/boost/unordered/unordered_set.hpp:17, > from /usr/local/include/boost/unordered_set.hpp:16, > from /usr/local/include/boost/graph/adjacency_list.hpp:21, > from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.h:32, > from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc:24: > /usr/local/include/boost/unordered/detail/table.hpp:173:46: error: wrong number of template arguments (2, should be 1) > /usr/local/include/boost/unordered/detail/buckets.hpp:40:37: error: provided for ?template struct boost::unordered::iterator_detail::iterator? > /usr/local/include/boost/unordered/detail/table.hpp:175:68: error: wrong number of template arguments (3, should be 2) > /usr/local/include/boost/unordered/detail/buckets.hpp:41:64: error: provided for ?template struct boost::unordered::iterator_detail::c_iterator? > /usr/local/include/boost/unordered/detail/table.hpp:177:56: error: wrong number of template arguments (3, should be 2) > /usr/local/include/boost/unordered/detail/buckets.hpp:42:54: error: provided for ?template struct boost::unordered::iterator_detail::l_iterator? > /usr/local/include/boost/unordered/detail/table.hpp:179:77: error: wrong number of template arguments (4, should be 3) > /usr/local/include/boost/unordered/detail/buckets.hpp:44:16: error: provided for ?template struct boost::unordered::iterator_detail::cl_iterator? > /usr/local/include/boost/unordered/detail/table.hpp: In member function ?std::size_t boost::unordered::detail::table::bucket_size(std::size_t) const?: > /usr/local/include/boost/unordered/detail/table.hpp:263:21: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? > /usr/local/include/boost/unordered/detail/table.hpp:266:22: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? > /usr/local/include/boost/unordered/detail/table.hpp:267:43: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? > /usr/local/include/boost/unordered/detail/table.hpp: In member function ?void boost::unordered::detail::table::delete_node(boost::unordered::detail::table::c_iterator)?: > /usr/local/include/boost/unordered/detail/table.hpp:506:19: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? > /usr/local/include/boost/unordered/detail/table.hpp:508:41: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? > /usr/local/include/boost/unordered/detail/table.hpp:509:63: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? > /usr/local/include/boost/unordered/detail/table.hpp: In member function ?boost::unordered::detail::table::iterator boost::unordered::detail::table::find_matching_node(boost::unordered::detail::table::iterator) const?: > /usr/local/include/boost/unordered/detail/table.hpp:839:39: error: invalid type argument of unary ?*? (have ?boost::unordered::detail::table::iterator {aka int}?) > Waf: Leaving directory `/home/ravi/Documents/code/ndnSIM/ns-3/build' > Build failed > -> task in 'ns3-ndnSIM' failed (exit status 1): > {task 28558352: cxx rocketfuel-map-reader.cc -> rocketfuel-map-reader.cc.1.o} > ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', '-I/usr/include', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc', '-c', '-o', 'src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc.1.o'] > > > Regards, > Ravi > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From jackwee_yao at sina.cn Mon Aug 12 20:05:19 2013 From: jackwee_yao at sina.cn (jackwee_yao at sina.cn) Date: Tue, 13 Aug 2013 11:05:19 +0800 Subject: [ndnSIM] something confuse about ndnSim Message-ID: <20130813030519.0844F730003@webmail.sinamail.sina.com.cn> Hi Alex how to implement wifi simulation in ndnsim? for example,there is a simple example "ndn-simple.cc" I try to use WifiHelper instead PointToPointHelper to implement it. Any suggestion? And could you offer some more example about wifi in ndnsim? Looking forward for your reply.Thanks a lot. yours sincerely jackwee -------------- next part -------------- An HTML attachment was scrubbed... URL: From seugxj2012 at 163.com Tue Aug 13 02:59:00 2013 From: seugxj2012 at 163.com (seugxj) Date: Tue, 13 Aug 2013 17:59:00 +0800 (CST) Subject: [ndnSIM] About "ndnSIM format " and " ccnb format" Message-ID: <74199152.1dabb.140771d423f.Coremail.seugxj2012@163.com> Hi Alex, As the following information indicated: "As of now, ndnSIM supports two packet formats: ndnSIM (efficient processing) and ccnb (compatible with NDNx/CCNx). By default, ndnSIM format is used and can be switched to ccnb using global variable ndn::WireFormat:" (from here: http://redmine.named-data.net/issues/1008). I have run the "ndn-simple-with-pcap.cc" twice with commads as follows: 1 ./waf --run="ndn-simple-with-pcap ndn::WireFormat=0" // Through this , I want to get the ndnSIM format 2 ./waf --run="ndn-simple-with-pcap ndn::WireFormat=1" // Through this , I want to get ccnb format but? the two reuslts files " ndn-simple-trace.pcap " are the same. So, I was puzzled. I don't know where is the problem. Pls, help me. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Tue Aug 13 10:13:28 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Tue, 13 Aug 2013 10:13:28 -0700 Subject: [ndnSIM] About "ndnSIM format " and " ccnb format" In-Reply-To: <74199152.1dabb.140771d423f.Coremail.seugxj2012@163.com> References: <74199152.1dabb.140771d423f.Coremail.seugxj2012@163.com> Message-ID: <9E3C1C7A-FCAB-4B63-9D42-07B4A87F824E@ucla.edu> Hi! After checking the pcap scenario I realized that there is no command line processing, so the format was basically hard-coded on line 59. I just pushed an update, so it fixes the problem and the following should work (note, there is a small difference from the command line you tried): ./waf --run "ndn-simple-with-pcap --ndn::WireFormat=0" and ./waf --run "ndn-simple-with-pcap --ndn::WireFormat=1" --- Alex On Aug 13, 2013, at 2:59 AM, seugxj wrote: > Hi Alex, > As the following information indicated: > "As of now, ndnSIM supports two packet formats: ndnSIM (efficient processing) and ccnb (compatible with NDNx/CCNx). By default, ndnSIM format is used and can be switched to ccnb using global variable ndn::WireFormat:" (from here: http://redmine.named-data.net/issues/1008). > > I have run the "ndn-simple-with-pcap.cc" twice with commads as follows: > 1 ./waf --run="ndn-simple-with-pcap ndn::WireFormat=0" // Through this , I want to get the ndnSIM format > 2 ./waf --run="ndn-simple-with-pcap ndn::WireFormat=1" // Through this , I want to get ccnb format > > > but? the two reuslts files " ndn-simple-trace.pcap " are the same. So, I was puzzled. I don't know where is the problem. Pls, help me. > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Tue Aug 13 10:44:35 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Tue, 13 Aug 2013 10:44:35 -0700 Subject: [ndnSIM] something confuse about ndnSim In-Reply-To: <20130813030519.0844F730003@webmail.sinamail.sina.com.cn> References: <20130813030519.0844F730003@webmail.sinamail.sina.com.cn> Message-ID: <141F48B7-7D03-485C-9A14-4867C97CCAE4@ucla.edu> Hi Jackwee, I just pushed a very simple WiFi-based scenario (examples/ndn-simple-wifi.cc), which contains just two nodes communicating directly over adhoc channel. Note that in order to extend simulation to support wifi relaying, a custom forwarding strategy (and possibly custom NetDeviceFace) is needed to be implemented. --- Alex On Aug 12, 2013, at 8:05 PM, jackwee_yao at sina.cn wrote: > Hi Alex > how to implement wifi simulation in ndnsim? > for example,there is a simple example "ndn-simple.cc" > I try to use WifiHelper instead PointToPointHelper to > implement it. > Any suggestion? > And could you offer some more example about wifi in ndnsim? > Looking forward for your reply.Thanks a lot. > yours sincerely > jackwee -------------- next part -------------- An HTML attachment was scrubbed... URL: From seugxj2012 at 163.com Wed Aug 14 07:23:47 2013 From: seugxj2012 at 163.com (seugxj) Date: Wed, 14 Aug 2013 22:23:47 +0800 (CST) Subject: [ndnSIM] About "ndnSIM format " and " ccnb format" Message-ID: <55e9f0f7.29430.1407d3608f7.Coremail.seugxj2012@163.com> Hi Alex, Thank you very much for your answers. But, I still have a questions as follows: I want to use wireshark 1.8.6 to analysis the traffic file --- "ndn-simple-with-pcap.pcap " which is in ccnb format. And I installed the wireshark 1.8.6 with ccn plugins successfully as the README-wireshark-1.8.txt ( https://github.com/ProjectCCNx/ccnx/tree/master/apps/wireshark) indicated. There was no error in the whole installtion . But when I opend the "ndn-simple-with-pcap.pcap " in wireshark 1.8.6, The display is as follows: No. Time Source Destination Protocol Length Info 1 0.000000 N/A N/A 0x0077 33 PPP Unknown (0x0077) 2 0.010248 N/A N/A 0x0077 33 PPP Unknown (0x0077) 3 0.020496 N/A N/A 0x0077 1063 PPP Unknown (0x0077) 4 0.038984 N/A N/A 0x0077 1063 PPP Unknown (0x0077) 5 0.100000 N/A N/A 0x0077 34 PPP Unknown (0x0077) .......... I think this is not the right display. There must be something did't work in my wireshark 1.8.6. But I still can't find the cause after spending a long time. I also tried the wireshark 1.6.2 as README-wireshark-1.6.txt ( https://github.com/ProjectCCNx/ccnx/tree/master/apps/wireshark) indicated. But The display was as the same as before. Can the traffice file "ndn-simple-with-pcap.pcap " not be viewed in this way ? Could you give me some advice ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Wed Aug 14 10:59:00 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 14 Aug 2013 10:59:00 -0700 Subject: [ndnSIM] About "ndnSIM format " and " ccnb format" In-Reply-To: <55e9f0f7.29430.1407d3608f7.Coremail.seugxj2012@163.com> References: <55e9f0f7.29430.1407d3608f7.Coremail.seugxj2012@163.com> Message-ID: <4349CD59-B3EB-46C6-90D7-21E2CEC06489@ucla.edu> Hi! The wireshark plugin does not know how to handle NDN packets that are not encapsulated into TCP or UDP. There are a couple of things you can do: 1/ (ideal) update wireshark plugin so it knows that PPP protocol 0x0077 means NDN packets and process them exactly as UDP packet payload 2/ use ndndump (https://github.com/cawka/ndndump) 3/ use UDP tunnels in ndnSIM. It is way harder to set up the simulation this way, but not impossible. You can basically combine ndn-simple-with-pcap.cc and ndn-simple-udp.cc scenarios. --- Alex On Aug 14, 2013, at 7:23 AM, seugxj wrote: > Hi Alex, > > Thank you very much for your answers. But, I still have a questions as follows: > I want to use wireshark 1.8.6 to analysis the traffic file --- "ndn-simple-with-pcap.pcap " which is in ccnb format. > And I installed the wireshark 1.8.6 with ccn plugins successfully as the README-wireshark-1.8.txt ( https://github.com/ProjectCCNx/ccnx/tree/master/apps/wireshark) indicated. There was no error in the whole installtion . > > But when I opend the "ndn-simple-with-pcap.pcap " in wireshark 1.8.6, ! The displ ay is as follows: > > No. Time Source Destination Protocol Length Info > 1 0.000000 N/A N/A 0x0077 33 PPP Unknown (0x0077) > 2 0.010248 N/A N/A 0x0077 33 PPP Unknown (0x0077) > &! nbsp;&nbs p; 3 0.020496 N/A N/A 0x0077 1063 PPP Unknown (0x0077) > 4 0.038984 N/A N/A 0x0077 1063 PPP Unknown (0x0077) > 5 0.100000 N/A N/A &nb! sp; 0x0077 34 PPP Unknown (0x0077) > .......... > > I think this is not the right display. There must be something did't work in my wireshark 1.8.6. But I still can't find the cause after spending a long time. > > I also tried the wireshark 1.6.2 as README-wireshark-1.6.txt ( https://github.com/ProjectCCNx/ccnx/tree/master/apps/wireshark) indicated. But The display was as the same as before. > > > Can the traffice file "ndn-simple-with-pcap.pcap " not be viewed in this way ? > Could you give me some advice ? > > > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From seugxj2012 at 163.com Wed Aug 14 20:56:47 2013 From: seugxj2012 at 163.com (seugxj) Date: Thu, 15 Aug 2013 11:56:47 +0800 (CST) Subject: [ndnSIM] About "ndnSIM format " and " ccnb format" Message-ID: <485c6600.73c0.140801e5a4c.Coremail.seugxj2012@163.com> Hi Alex , Thank you for your help. I will try it. ^_^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From wsjie_happy at 163.com Thu Aug 15 23:02:48 2013 From: wsjie_happy at 163.com (=?GBK?B?zfXJ3L3a?=) Date: Fri, 16 Aug 2013 14:02:48 +0800 (CST) Subject: [ndnSIM] How to connect NDN with Internet in ndnSIM In-Reply-To: References: Message-ID: <48153ac0.1b3cc.14085b81395.Coremail.wsjie_happy@163.com> Dear Sir, There is always a problem makes me very confused: how can I connect a network using NDN stack with a network using Internet stack in the ndnSIM? What functions should I use, I can't find a proper one. I don't know whether am I right to ask you, but I couldn't find anyone else for help. Would you please give me a hand? I'm looking forward to your answer! Thank you so much! Yours sincerely, Shaojie.Wang Beijing China At 2013-08-14 01:13:38,ndnsim-request at lists.cs.ucla.edu wrote: >Send ndnSIM mailing list submissions to > ndnsim at lists.cs.ucla.edu > >To subscribe or unsubscribe via the World Wide Web, visit > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim >or, via email, send a message with subject or body 'help' to > ndnsim-request at lists.cs.ucla.edu > >You can reach the person managing the list at > ndnsim-owner at lists.cs.ucla.edu > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of ndnSIM digest..." > > >Today's Topics: > > 1. Re: Compiling Errors (Alex Afanasyev) > 2. something confuse about ndnSim (jackwee_yao at sina.cn) > 3. About "ndnSIM format " and " ccnb format" (seugxj) > 4. Re: About "ndnSIM format " and " ccnb format" (Alex Afanasyev) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Fri, 9 Aug 2013 17:56:22 -0700 >From: Alex Afanasyev >To: Ravi Ravindran >Cc: ndnsim at lists.cs.ucla.edu >Subject: Re: [ndnSIM] Compiling Errors >Message-ID: >Content-Type: text/plain; charset="windows-1252" > >Hi Ravi, > >The error message indicates that you're still using the system's version of boost libraries (if you're on Ubuntu 12.04, it can be 1.46, 1.48, or both... which make things even more confusing). > >Did you use "--boost-includes=/usr/local/include --boost-libs=/usr/local/lib" configure options? > >In any case, I can recommend you to get the latest version of ndnSIM (master branch, it is almost ready to be 0.5-rc2), as well as latest version of custom NS-3. > >--- >Alex > >On Aug 9, 2013, at 5:51 PM, Ravi Ravindran wrote: > >> >> Hi Alex, >> >> I've problem compiling ndnSIM, see below for the errors. Seems to be issue with libboost installation, I tried the "apt-get" and also manual installation of 1.52 package, but the problem remains. Current environment has a 1.48 libboost version, the ndnSIM is the latest version 0.2.8, also attached is the config.log. >> >> Any suggestions ? >> >> [1247/1925] cxx: build/src/flow-monitor/bindings/ns3module.cc -> build/src/flow-monitor/bindings/ns3module.cc.7.o >> [1248/1925] cxx: src/internet/model/ipv6.cc -> build/src/internet/model/ipv6.cc.1.o >> In file included from /usr/local/include/boost/unordered/detail/equivalent.hpp:14:0, >> from /usr/local/include/boost/unordered/unordered_set.hpp:17, >> from /usr/local/include/boost/unordered_set.hpp:16, >> from /usr/local/include/boost/graph/adjacency_list.hpp:21, >> from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.h:32, >> from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc:24: >> /usr/local/include/boost/unordered/detail/table.hpp:173:46: error: wrong number of template arguments (2, should be 1) >> /usr/local/include/boost/unordered/detail/buckets.hpp:40:37: error: provided for ?template struct boost::unordered::iterator_detail::iterator? >> /usr/local/include/boost/unordered/detail/table.hpp:175:68: error: wrong number of template arguments (3, should be 2) >> /usr/local/include/boost/unordered/detail/buckets.hpp:41:64: error: provided for ?template struct boost::unordered::iterator_detail::c_iterator? >> /usr/local/include/boost/unordered/detail/table.hpp:177:56: error: wrong number of template arguments (3, should be 2) >> /usr/local/include/boost/unordered/detail/buckets.hpp:42:54: error: provided for ?template struct boost::unordered::iterator_detail::l_iterator? >> /usr/local/include/boost/unordered/detail/table.hpp:179:77: error: wrong number of template arguments (4, should be 3) >> /usr/local/include/boost/unordered/detail/buckets.hpp:44:16: error: provided for ?template struct boost::unordered::iterator_detail::cl_iterator? >> /usr/local/include/boost/unordered/detail/table.hpp: In member function ?std::size_t boost::unordered::detail::table::bucket_size(std::size_t) const?: >> /usr/local/include/boost/unordered/detail/table.hpp:263:21: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? >> /usr/local/include/boost/unordered/detail/table.hpp:266:22: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? >> /usr/local/include/boost/unordered/detail/table.hpp:267:43: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table::iterator {aka int}? >> /usr/local/include/boost/unordered/detail/table.hpp: In member function ?void boost::unordered::detail::table::delete_node(boost::unordered::detail::table::c_iterator)?: >> /usr/local/include/boost/unordered/detail/table.hpp:506:19: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? >> /usr/local/include/boost/unordered/detail/table.hpp:508:41: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? >> /usr/local/include/boost/unordered/detail/table.hpp:509:63: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table::c_iterator {aka int}? >> /usr/local/include/boost/unordered/detail/table.hpp: In member function ?boost::unordered::detail::table::iterator boost::unordered::detail::table::find_matching_node(boost::unordered::detail::table::iterator) const?: >> /usr/local/include/boost/unordered/detail/table.hpp:839:39: error: invalid type argument of unary ?*? (have ?boost::unordered::detail::table::iterator {aka int}?) >> Waf: Leaving directory `/home/ravi/Documents/code/ndnSIM/ns-3/build' >> Build failed >> -> task in 'ns3-ndnSIM' failed (exit status 1): >> {task 28558352: cxx rocketfuel-map-reader.cc -> rocketfuel-map-reader.cc.1.o} >> ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', '-I/usr/include', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc', '-c', '-o', 'src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc.1.o'] >> >> >> Regards, >> Ravi >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > >------------------------------ > >Message: 2 >Date: Tue, 13 Aug 2013 11:05:19 +0800 >From: >To: "ndnsim" >Subject: [ndnSIM] something confuse about ndnSim >Message-ID: <20130813030519.0844F730003 at webmail.sinamail.sina.com.cn> >Content-Type: text/plain; charset="gbk" > >Hi Alex >how to implement wifi simulation in ndnsim? >for example,there is a simple example "ndn-simple.cc" >I try to use WifiHelper instead PointToPointHelper to >implement it. >Any suggestion? >And could you offer some more example about wifi in ndnsim? >Looking forward for your reply.Thanks a lot. > yours sincerely > jackwee >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > >------------------------------ > >Message: 3 >Date: Tue, 13 Aug 2013 17:59:00 +0800 (CST) >From: seugxj >To: ndnsim at lists.cs.ucla.edu >Subject: [ndnSIM] About "ndnSIM format " and " ccnb format" >Message-ID: <74199152.1dabb.140771d423f.Coremail.seugxj2012 at 163.com> >Content-Type: text/plain; charset="gbk" > > Hi Alex, >As the following information indicated: > "As of now, ndnSIM supports two packet formats: ndnSIM (efficient processing) and ccnb (compatible with NDNx/CCNx). By default, ndnSIM format is used and can be switched to ccnb using global variable ndn::WireFormat:" (from here: http://redmine.named-data.net/issues/1008). > >I have run the "ndn-simple-with-pcap.cc" twice with commads as follows: > 1 ./waf --run="ndn-simple-with-pcap ndn::WireFormat=0" // Through this , I want to get the ndnSIM format > 2 ./waf --run="ndn-simple-with-pcap ndn::WireFormat=1" // Through this , I want to get ccnb format > > >but? the two reuslts files " ndn-simple-trace.pcap " are the same. So, I was puzzled. I don't know where is the problem. Pls, help me. >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > >------------------------------ > >Message: 4 >Date: Tue, 13 Aug 2013 10:13:28 -0700 >From: Alex Afanasyev >To: seugxj >Cc: ndnsim at lists.cs.ucla.edu >Subject: Re: [ndnSIM] About "ndnSIM format " and " ccnb format" >Message-ID: <9E3C1C7A-FCAB-4B63-9D42-07B4A87F824E at ucla.edu> >Content-Type: text/plain; charset="utf-8" > >Hi! > >After checking the pcap scenario I realized that there is no command line processing, so the format was basically hard-coded on line 59. I just pushed an update, so it fixes the problem and the following should work (note, there is a small difference from the command line you tried): > >./waf --run "ndn-simple-with-pcap --ndn::WireFormat=0" > >and > >./waf --run "ndn-simple-with-pcap --ndn::WireFormat=1" > >--- >Alex > >On Aug 13, 2013, at 2:59 AM, seugxj wrote: > >> Hi Alex, >> As the following information indicated: >> "As of now, ndnSIM supports two packet formats: ndnSIM (efficient processing) and ccnb (compatible with NDNx/CCNx). By default, ndnSIM format is used and can be switched to ccnb using global variable ndn::WireFormat:" (from here: http://redmine.named-data.net/issues/1008). >> >> I have run the "ndn-simple-with-pcap.cc" twice with commads as follows: >> 1 ./waf --run="ndn-simple-with-pcap ndn::WireFormat=0" // Through this , I want to get the ndnSIM format >> 2 ./waf --run="ndn-simple-with-pcap ndn::WireFormat=1" // Through this , I want to get ccnb format >> >> >> but? the two reuslts files " ndn-simple-trace.pcap " are the same. So, I was puzzled. I don't know where is the problem. Pls, help me. >> >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > >------------------------------ > >Subject: Digest Footer > >_______________________________________________ >ndnSIM mailing list >ndnSIM at lists.cs.ucla.edu >http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > >------------------------------ > >End of ndnSIM Digest, Vol 9, Issue 6 >************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Fri Aug 16 09:42:03 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 16 Aug 2013 09:42:03 -0700 Subject: [ndnSIM] How to connect NDN with Internet in ndnSIM In-Reply-To: <48153ac0.1b3cc.14085b81395.Coremail.wsjie_happy@163.com> References: <48153ac0.1b3cc.14085b81395.Coremail.wsjie_happy@163.com> Message-ID: Hi Shaojie, You can check out ndn-simple-tcp.cc (https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-simple-tcp.cc) and ndn-simple-udp.cc (https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-simple-udp.cc) scenarios in examples folder that give basic idea how to use ndnSIM in overlay mode on top of IP. --- Alex On Aug 15, 2013, at 11:02 PM, ??? wrote: > Dear Sir, > > There is always a problem makes me very confused: how can I connect a network using NDN stack with a network using Internet stack in the ndnSIM? What functions should I use, I can't find a proper one. > I don't know whether am I right to ask you, but I couldn't find anyone else for help. Would you please give me a hand? > I'm looking forward to your answer! Thank you so much! > > Yours sincerely, > > Shaojie.Wang > > Beijing China -------------- next part -------------- An HTML attachment was scrubbed... URL: From jackwee_yao at 163.com Sat Aug 17 04:47:26 2013 From: jackwee_yao at 163.com (JackWee) Date: Sat, 17 Aug 2013 19:47:26 +0800 (CST) Subject: [ndnSIM] ForwardStrategy in wifi-csma connection Message-ID: <75d52335.652b.1408c19f7db.Coremail.jackwee_yao@163.com> HI Alax I try to implement a csma-wifi-wifi connection scenario with ndnsim,in which csma node as producer,one wifi node as backnode which connect to the other wifi node which act the role of consumer. Here is the problem:if the ForwardStrategy I choose is Flooding or SmartFlooding, it runs as I wish.But when I choose BestRoute as ForwardStrategy,the backbone does not work. Does it means that BestRoute is not suitable for wifi-csma connection? Or there is something wrong in my codes? Here is a file 'csma-wifi-wifi.cc' in attachments??. Any suggestion? Looking forward for your reply.Thanks a lot!!! your sincerely JackWee -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: csma-wifi-wifi.cc Type: application/octet-stream Size: 5445 bytes Desc: not available URL: From seugxj2012 at 163.com Sat Aug 17 06:30:27 2013 From: seugxj2012 at 163.com (seugxj) Date: Sat, 17 Aug 2013 21:30:27 +0800 (CST) Subject: [ndnSIM] about script of "A Case for Stateful Forwarding Plane" Message-ID: <17f33b78.6305.1408c784682.Coremail.seugxj2012@163.com> Hi Alex , Sorry to trouble you. In paper "A Case for Stateful Forwarding Plane", you have compared performance of NDN, Path Splicing and IP in the case of prefix hijack. How do you implement the "Path Splicing" ? I can't find it in "blackhole-sprint.cc". Could tell me which file( or files) conludes the this implement ? Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From xuan.liu at mail.umkc.edu Sun Aug 18 23:43:41 2013 From: xuan.liu at mail.umkc.edu (Liu, Xuan (UMKC-Student)) Date: Mon, 19 Aug 2013 06:43:41 +0000 Subject: [ndnSIM] ndnSIM scenario template compile error Message-ID: <38004F43C4397144BBB4CB71145581897270CD0C@BLUPRD0113MB674.prod.exchangelabs.com> Hi Alex, I'm installing ndnSIM on a different machine, and I tried to add my code as a separate scenario by following the instructions on how to compile a separate scenario. I had no problem with my current setup, however, when I move to a new system with a fresh installation of ndnSIM today, I got a problem. One of my code within the ./my-scenario/extensions/ has imported ns/ndn-content-object.h. When I run ./waf from ./my-scenario/, i got following errors: ./extensions/custom-apps/custom-app.cc:32:36: fatal error: ns3/ndn-content-object.h: No such file or directory compilation terminated. Waf: Leaving directory `/home/xuanliu/ndnSIM/sync-chat/build' Build failed -> task in 'extensions' failed (exit status 1): {task 145405132: cxx custom-app.cc -> custom-app.cc.1.o} ['/usr/bin/g++', '-O3', '-g', [], '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/usr/include/gtk-2.0', '-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '../extensions/custom-apps/custom-app.cc', '-c', '-o', 'extensions/custom-apps/custom-app.cc.1.o'] Do you have any suggestions? Thanks, -- Xuan -------------- next part -------------- An HTML attachment was scrubbed... URL: From chavoosh.ghasemi.off at gmail.com Mon Aug 19 01:34:38 2013 From: chavoosh.ghasemi.off at gmail.com (chavoosh ghasemi) Date: Mon, 19 Aug 2013 13:04:38 +0430 Subject: [ndnSIM] Compare between progrmas Message-ID: Hello I have a question about compare between CCNx, ndnSIM and other programs(like NDNx and so on) I'm MS Student and my thesis is about NDN and specifically "Fast Forwarding". Now I'm wondering which program can help me to executing my ideas in this field. Please help me to make a right decision. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Mon Aug 19 09:53:21 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Mon, 19 Aug 2013 09:53:21 -0700 Subject: [ndnSIM] ndnSIM scenario template compile error In-Reply-To: <38004F43C4397144BBB4CB71145581897270CD0C@BLUPRD0113MB674.prod.exchangelabs.com> References: <38004F43C4397144BBB4CB71145581897270CD0C@BLUPRD0113MB674.prod.exchangelabs.com> Message-ID: <2AA57052-04B7-478D-871E-F6B9D9A077E0@ucla.edu> Hi Xuan, There were quite a bit of changes recently, so may want to consider to do an update in your code. For instance, ContentObject structure has been renamed to simply "Data" and the header file now "ns3/ndn-data.h" instead of "ns3/ndn-content-object.h". There were also changes (simplifications) in function APIs in forwarding strategy and ndn::App, so you may want to check new function definition and do the update. Alternatively, you can check out pre-0.5 version of ndnSIM v0.4.3 (git checkout -b old-version v0.4.3) --- Alex On Aug 18, 2013, at 11:43 PM, "Liu, Xuan (UMKC-Student)" wrote: > Hi Alex, > > I'm installing ndnSIM on a different machine, and I tried to add my code as a separate scenario by following the instructions on how to compile a separate scenario. I had no problem with my current setup, however, when I move to a new system with a fresh installation of ndnSIM today, I got a problem. > > One of my code within the ./my-scenario/extensions/ has imported ns/ndn-content-object.h. When I run ./waf from ./my-scenario/, i got following errors: > > ./extensions/custom-apps/custom-app.cc:32:36: fatal error: ns3/ndn-content-object.h: No such file or directory > compilation terminated. > Waf: Leaving directory `/home/xuanliu/ndnSIM/sync-chat/build' > Build failed > -> task in 'extensions' failed (exit status 1): > {task 145405132: cxx custom-app.cc -> custom-app.cc.1.o} > ['/usr/bin/g++', '-O3', '-g', [], '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-I/usr/include', '-I/usr/local/include/ns3-dev', '-I/usr/include/gtk-2.0', '-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '../extensions/custom-apps/custom-app.cc', '-c', '-o', 'extensions/custom-apps/custom-app.cc.1.o'] > > Do you have any suggestions? > > Thanks, > > -- Xuan > > > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Mon Aug 19 09:56:08 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Mon, 19 Aug 2013 09:56:08 -0700 Subject: [ndnSIM] about script of "A Case for Stateful Forwarding Plane" In-Reply-To: <17f33b78.6305.1408c784682.Coremail.seugxj2012@163.com> References: <17f33b78.6305.1408c784682.Coremail.seugxj2012@163.com> Message-ID: <0E25F83C-3245-4BB9-9C0E-B222412547C5@ucla.edu> Hi! Our implementation of the path splicing is in a separate repository, which you can find here: https://github.com/yic/ns-3-splicing. --- Alex On Aug 17, 2013, at 6:30 AM, seugxj wrote: > Hi Alex , > Sorry to trouble you. > In paper "A Case for Stateful Forwarding Plane", you have compared performance of NDN, Path Splicing and IP in the case of prefix hijack. How do you implement the "Path Splicing" ? I can't find it in "blackhole-sprint.cc". Could tell me which file( or files) conludes the this implement ? > > > Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Mon Aug 19 10:08:51 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Mon, 19 Aug 2013 10:08:51 -0700 Subject: [ndnSIM] ForwardStrategy in wifi-csma connection In-Reply-To: <75d52335.652b.1408c19f7db.Coremail.jackwee_yao@163.com> References: <75d52335.652b.1408c19f7db.Coremail.jackwee_yao@163.com> Message-ID: Hi JackWee, To make BestRoute strategy work, you may want to manually set up proper FIB content (or use global routing controller for that). While the default routes may be "acceptable" for the flooding, since it simply forwards a copy of the interest to all faces, it is not a good thing for BestRoute strategy. BestRoute tries just one way, which in this particular case happens to be not the right one. Here is extract from a modified version of your scenario: ndn::StackHelper ndnHelper; ndnHelper.SetForwardingStrategy ("ns3::ndn::fw::BestRoute"); // ndnHelper.SetForwardingStrategy ("ns3::ndn::fw::Flooding"); //ndnHelper.SetForwardingStrategy ("ns3::ndn::fw::SmartFlooding"); ndnHelper.SetContentStore ("ns3::ndn::cs::Lru", "MaxSize", "1000"); // ndnHelper.SetDefaultRoutes (true); ndnHelper.InstallAll (); ndn::GlobalRoutingHelper ndnGlobalRoutingHelper; ndnGlobalRoutingHelper.InstallAll (); ndnGlobalRoutingHelper.AddOrigins ("/prefix", lannode); ndn::GlobalRoutingHelper::CalculateRoutes (); I have commented out configuring default routes and added configuration of the global routing controller that pre-calculates routing tables. After I did so, the scenario seems to work as expected. --- Alex On Aug 17, 2013, at 4:47 AM, JackWee wrote: > HI Alax > I try to implement a csma-wifi-wifi connection scenario with ndnsim,in which csma node as producer,one wifi node as backnode which connect to the other wifi node which act the role of consumer. > Here is the problem:if the ForwardStrategy I choose is Flooding or SmartFlooding, it runs as I wish.But when I choose BestRoute as ForwardStrategy,the backbone does not work. > Does it means that BestRoute is not suitable for wifi-csma connection? > Or there is something wrong in my codes? > Here is a file 'csma-wifi-wifi.cc' in attachments??. > Any suggestion? > Looking forward for your reply.Thanks a lot!!! > your sincerely > JackWee -------------- next part -------------- An HTML attachment was scrubbed... URL: From ioannoa at scss.tcd.ie Tue Aug 20 07:27:26 2013 From: ioannoa at scss.tcd.ie (ioannoa at scss.tcd.ie) Date: Tue, 20 Aug 2013 15:27:26 +0100 Subject: [ndnSIM] hop counts Message-ID: Hello everyone, I am trying to count the hops of each Interest packet and each Content packet as well. For example, considering a 3 nodes topology where I have N0 - N1 - N2 where N0 is the requestor and N2 is the source I should have a hop count number of 1, 2 and 3 for the Interest packet and 1, 2, 3 for the Content packet on the opposite direction. The values of both of these should be kept inside my packet structure. Could anyone please advice me an efficient way to do that? At the moment, I have changed the TrySendOutInterest at the forwarding class which works ok and the SatisfyPendingInterest at the forwarding class as well which works ok but is not what i wanted. The thing is that i need this value to be updated before deciding on the caching (meaning in the OnData function) which goes before the call of the SatisfyPendingInterest function. A simple +1 before hand in the OnData function seems not to work as i am getting empty statistic files e.g. aggregate-trace file goes empty and rate-trace file or cs-trace file. Any suggestions, please? Kind regards, Andriana. From mohammad.hovaidi.ardestani at aalto.fi Wed Aug 21 08:59:08 2013 From: mohammad.hovaidi.ardestani at aalto.fi (Hovaidi Ardestani Mohammad) Date: Wed, 21 Aug 2013 15:59:08 +0000 Subject: [ndnSIM] Network Throughput Message-ID: Hello, I am wondering how it is possible to measure network throughput in ndnSIM scenario. The number of satisfied interest packets are given in l3-rate-tracer , but I am not quite sure whether it is the actual throughput or at least it can help to find it. Thanks for your response in advance. -Mohammad -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Wed Aug 21 09:18:09 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 21 Aug 2013 09:18:09 -0700 Subject: [ndnSIM] hop counts In-Reply-To: References: Message-ID: Hi Andriana, You should be able to do anything inside OnData function call and it should not affect in any way any standard functionality, including tracing. When you overloaded OnData method, did you forget to call parent's version of OnData (i.e., chain the calls)? --- Alex On Aug 20, 2013, at 7:27 AM, ioannoa at scss.tcd.ie wrote: > Hello everyone, > > I am trying to count the hops of each Interest packet and each Content > packet as well. > For example, considering a 3 nodes topology where I have > > N0 - N1 - N2 > > where N0 is the requestor and N2 is the source I should have a hop count > number of 1, 2 and 3 for the Interest packet and 1, 2, 3 for the Content > packet on the opposite direction. The values of both of these should be > kept inside my packet structure. > > Could anyone please advice me an efficient way to do that? At the moment, > I have changed the TrySendOutInterest at the forwarding class which works > ok and the SatisfyPendingInterest at the forwarding class as well which > works ok but is not what i wanted. The thing is that i need this value to > be updated before deciding on the caching (meaning in the OnData function) > which goes before the call of the SatisfyPendingInterest function. A > simple +1 before hand in the OnData function seems not to work as i am > getting empty statistic files e.g. aggregate-trace file goes empty and > rate-trace file or cs-trace file. > > Any suggestions, please? > > Kind regards, > Andriana. > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From alexander.afanasyev at ucla.edu Wed Aug 21 09:25:11 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 21 Aug 2013 09:25:11 -0700 Subject: [ndnSIM] Network Throughput In-Reply-To: References: Message-ID: <80982E95-80FF-4371-902D-935D100ECC0D@ucla.edu> Hi Mohammad, ndn::L3RateTracer provides several metrics, including throughput estimation for each packet type (the 7th column "Kilobytes"). It could be not exactly the throughput in the channel (for that you would need to extend L2RateTracer implementation, which is now very limited), but in most cases is a very good approximation of the throughput with breakdown by NDN packet types. --- Alex On Aug 21, 2013, at 8:59 AM, Hovaidi Ardestani Mohammad wrote: > Hello, > I am wondering how it is possible to measure network throughput in ndnSIM scenario. The number of satisfied interest packets are given in l3-rate-tracer , but I am not quite sure whether it is the actual throughput or at least it can help to find it. > Thanks for your response in advance. > -Mohammad -------------- next part -------------- An HTML attachment was scrubbed... URL: From chavoosh.ghasemi.off at gmail.com Thu Aug 22 10:27:58 2013 From: chavoosh.ghasemi.off at gmail.com (chavoosh ghasemi) Date: Thu, 22 Aug 2013 21:57:58 +0430 Subject: [ndnSIM] Problem with "Trace sources" Message-ID: Hi everybody I have a problem with *trace sources .*When I want use any of them-e.g. ndn::L3AggregateTracer- I will take below message : ../scratch/ndn-first-sim.cc: In function ?int main(int, char**)?: ../scratch/ndn-first-sim.cc:53:8: error: ?ns3::ndn::L3AggregateTracer? has not been declared ../scratch/ndn-first-sim.cc:54:8: error: ?ns3::ndn::L3RateTracer? has not been declared I used one of the example that was in the site, without any changes...! *How I can solve it ?* * * *Thanks?With best regards.* *--Chavoosh* -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Thu Aug 22 10:34:34 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Thu, 22 Aug 2013 10:34:34 -0700 Subject: [ndnSIM] Problem with "Trace sources" In-Reply-To: References: Message-ID: <907BBD83-233A-468F-8776-EB300AB66494@ucla.edu> Are you using the latest version of ndnSIM? If yes, then you should make sure that ndnSIM was actually compiled (it is reported after ./waf configure and ./waf building stages). If it is not the latest version, then you will need to explicitly include header files: #include "ns3/ndnSIM/utils/tracers/ndn-l3-rate-tracer.h" and #include "ns3/ndnSIM/utils/tracers/ndn-l3-aggregate-tracer.h" --- Alex On Aug 22, 2013, at 10:27 AM, chavoosh ghasemi wrote: > Hi everybody > > I have a problem with trace sources .When I want use any of them-e.g. ndn::L3AggregateTracer- I will take below message : > > > ../scratch/ndn-first-sim.cc: In function ?int main(int, char**)?: > > ../scratch/ndn-first-sim.cc:53:8: error: ?ns3::ndn::L3AggregateTracer? has not been declared > > ../scratch/ndn-first-sim.cc:54:8: error: ?ns3::ndn::L3RateTracer? has not been declared > > I used one of the example that was in the site, without any changes...! > > How I can solve it ? > > > > Thanks?With best regards. > > --Chavoosh -------------- next part -------------- An HTML attachment was scrubbed... URL: From chavoosh.ghasemi.off at gmail.com Sun Aug 25 11:45:11 2013 From: chavoosh.ghasemi.off at gmail.com (chavoosh ghasemi) Date: Sun, 25 Aug 2013 23:15:11 +0430 Subject: [ndnSIM] comparison between NDN and IP Message-ID: Hi Alex I want compare NDN and IP network with each other by ns-3. The metrics are *delay *and *throughput*. I think I need same scenario for this purpose, but how I can achieve comparability packets, scenarios and results for this comparison? How I can do it? *Best regards* *--*Chavoosh -------------- next part -------------- An HTML attachment was scrubbed... URL: From blindeafer at 163.com Mon Aug 26 20:23:27 2013 From: blindeafer at 163.com (=?GBK?B?s8LKpMC2?=) Date: Tue, 27 Aug 2013 11:23:27 +0800 (CST) Subject: [ndnSIM] Get RTT in Class FaceMetric Message-ID: <472e77d8.5a69.140bdcc243b.Coremail.blindeafer@163.com> Hi All, How can I get the smoothed round-trip time (private member of FaceMetric:m_sRtt in ndn-fib-entry.h) of the inface from which when a data come into a node in OnData() function in ForwardStrategy.cc? Would you please give me some hint? Thank you. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From blindeafer at 163.com Tue Aug 27 20:34:43 2013 From: blindeafer at 163.com (=?GBK?B?s8LKpMC2?=) Date: Wed, 28 Aug 2013 11:34:43 +0800 (CST) Subject: [ndnSIM] How to obtain content diversity of network? Message-ID: <4023620f.f42a.140c2fcd164.Coremail.blindeafer@163.com> Hi All, I would like to obtain an average content diversity of network, I think it would be number of content cached in network divided by total number of content,how could I obtain the value from simulation,would you please give me some hints? Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ioannoa at scss.tcd.ie Thu Aug 29 03:07:05 2013 From: ioannoa at scss.tcd.ie (ioannoa at scss.tcd.ie) Date: Thu, 29 Aug 2013 11:07:05 +0100 Subject: [ndnSIM] Replacement metric Message-ID: <846853382cd0f2ddcd436e02f6e593b8.squirrel@webmail.scss.tcd.ie> Hello all, I am trying to implement a replacement metric, similar to the one used for cache hits and cache misses in content store. My issue is though that replacement counts are not calculated in the content store but rather to each replacement policy used. Would someone advice which way would be proper to try to do so? I have found this post related to: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2012-December/000007.html would the creation of a new policy be the way to go? Thanks in advance. Kind regards, Andriana. From xuan.liu at mail.umkc.edu Thu Aug 29 07:29:57 2013 From: xuan.liu at mail.umkc.edu (Liu, Xuan (UMKC-Student)) Date: Thu, 29 Aug 2013 14:29:57 +0000 Subject: [ndnSIM] packet loss in large scale network Message-ID: <38004F43C4397144BBB4CB71145581897272335B@BN1PRD0113MB678.prod.exchangelabs.com> Hi Alex, I would like to test large scale network with ndnSIM, and I have created a topology file, and use AnnotatedTopologyReader to import it, as the example interest-ddos-attack did. I use GlobalRoutingHelper to add prefix origin to the nodes that are generating interests. I have used BestRoute as the forwarding strategy. When I checked the output, I notice there are still quite a few packets are lost for source to destination. Could you please give any suggestion on how to trace where the packet is lost in the network? Thanks, -- Xuan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ioannoa at scss.tcd.ie Thu Aug 29 13:55:35 2013 From: ioannoa at scss.tcd.ie (ioannoa at scss.tcd.ie) Date: Thu, 29 Aug 2013 21:55:35 +0100 Subject: [ndnSIM] [Fwd: Replacement metric] Message-ID: Hello all again, further to my previous question I have tried to also implement a metric in the producer to hold the hits made each time regarding the interests, i.e. how many interests were satisfied by the producer if not from a content store of a node along the way. i've tried to use the tracers available and made the included files. Unfortunately, even though my file is created, the metric is always 0. Furthermore, having a print in the function updating the metric, it seems that it is never called! The function is set using the TracedCallback. Now, i know that the tracer is made for all nodes and not just specifying one, but i have tried this for an operation similar to the cache misses or cache hits at the content store and still did not work, so can't see that as a problem. I have included the files. If someone has a hint, please let me know! p.s. the changes in the producer files can be found using //(+) in the finder! Kind regards, Andriana. ---------------------------- Original Message ---------------------------- Subject: Replacement metric From: ioannoa at scss.tcd.ie Date: Thu, August 29, 2013 11:07 am To: ndnsim at lists.cs.ucla.edu -------------------------------------------------------------------------- Hello all, I am trying to implement a replacement metric, similar to the one used for cache hits and cache misses in content store. My issue is though that replacement counts are not calculated in the content store but rather to each replacement policy used. Would someone advice which way would be proper to try to do so? I have found this post related to: http://www.lists.cs.ucla.edu/pipermail/ndnsim/2012-December/000007.html would the creation of a new policy be the way to go? Thanks in advance. Kind regards, Andriana. -------------- next part -------------- A non-text attachment was scrubbed... Name: ndn-producer-tracer.cc Type: application/octet-stream Size: 3891 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ndn-producer-tracer.h Type: application/octet-stream Size: 3045 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ndn-producer.cc Type: application/octet-stream Size: 4745 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ndn-producer.h Type: application/octet-stream Size: 2673 bytes Desc: not available URL: From alexander.afanasyev at ucla.edu Fri Aug 30 09:40:25 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 30 Aug 2013 09:40:25 -0700 Subject: [ndnSIM] comparison between NDN and IP In-Reply-To: References: Message-ID: Hi Chavoosh, It is a very good question and I don't have a definite answer to it. Both delay and throughput metrics is something that depends on the behavior of the sender in IP and requester in NDN. That is, the major factor for the delay could be how fast sender/requester retransmits/re-requests. Similar could be for the throughput: depending on how aggressively sender sends/receiver express Interests, the throughput could be different. One potential (though not ideal) is to compare a bulk data transfer using IP/TCP versus some implementation of reliable data deliver in NDN. For the latter it is possible to use ConsumerWindow, but it implements very simple logic and it may not be too fair to compare it with TCP. --- Alex On Aug 25, 2013, at 11:45 AM, chavoosh ghasemi wrote: > Hi Alex > > I want compare NDN and IP network with each other by ns-3. The metrics are delay and throughput. > > I think I need same scenario for this purpose, but how I can achieve comparability packets, scenarios and results for this comparison? How I can do it? > > Best regards > > --Chavoosh -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Fri Aug 30 09:47:06 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 30 Aug 2013 09:47:06 -0700 Subject: [ndnSIM] Get RTT in Class FaceMetric In-Reply-To: <472e77d8.5a69.140bdcc243b.Coremail.blindeafer@163.com> References: <472e77d8.5a69.140bdcc243b.Coremail.blindeafer@163.com> Message-ID: <435DE833-9CC0-4E0B-9DD0-0993D4BEBF69@ucla.edu> Hi, I just added two new method for ndn::fib::Entry class to include GetSRtt and GetRttVar accessor methods, so now it is possible to get the estimate. You also can feel free to extend the FIB entry implementation to include additional information/method that you need. If the modification is semi-general, I would be more than happy to include your changes into the ndnSIM codebase. --- Alex On Aug 26, 2013, at 8:23 PM, ??? wrote: > Hi All, > How can I get the smoothed round-trip time (private member of FaceMetric:m_sRtt in ndn-fib-entry.h) of the inface from which when a data come into a node in OnData() function in ForwardStrategy.cc? > Would you please give me some hint? > Thank you. > > > Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Fri Aug 30 09:50:52 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 30 Aug 2013 09:50:52 -0700 Subject: [ndnSIM] How to obtain content diversity of network? In-Reply-To: <4023620f.f42a.140c2fcd164.Coremail.blindeafer@163.com> References: <4023620f.f42a.140c2fcd164.Coremail.blindeafer@163.com> Message-ID: Getting the number of cached Data packets can be done something like this (I'm copying a part of examples/ndn-simple-with-cs-lfu.cc): uint64_t csCount = 0; for (NodeList::Iterator node = NodeList::Begin (); node != NodeList::End (); node ++) { Ptr cs = (*node)->GetObject (); csCount += cs->GetSize (); } The total number of content in the network is something that is known just to you in your simulation scenario, so you can manually pre-calculate the value based on simulation setup. (In general, number of content in the network is virtually unlimited.) --- Alex On Aug 27, 2013, at 8:34 PM, ??? wrote: > Hi All, > I would like to obtain an average content diversity of network, I think it would be number of content cached in network divided by total number of content,how could I obtain the value from simulation,would you please give me some hints? > > Regards. > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Fri Aug 30 09:53:59 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 30 Aug 2013 09:53:59 -0700 Subject: [ndnSIM] packet loss in large scale network In-Reply-To: <38004F43C4397144BBB4CB71145581897272335B@BN1PRD0113MB678.prod.exchangelabs.com> References: <38004F43C4397144BBB4CB71145581897272335B@BN1PRD0113MB678.prod.exchangelabs.com> Message-ID: <8D92D21D-FC58-4F7F-AAE2-1B0A0720130A@ucla.edu> Hi Xuan, If the losses happen in the network layer due to buffer overflows (most likely in your case), you can use L2Tracer (http://ndnsim.net/metric.html) that was actually implemented to trace packet drop specifically (and for now supports only that). --- Alex On Aug 29, 2013, at 7:29 AM, "Liu, Xuan (UMKC-Student)" wrote: > Hi Alex, > > I would like to test large scale network with ndnSIM, and I have created a topology file, and use AnnotatedTopologyReader to import it, as the example interest-ddos-attack did. I use GlobalRoutingHelper to add prefix origin to the nodes that are generating interests. I have used BestRoute as the forwarding strategy. > > When I checked the output, I notice there are still quite a few packets are lost for source to destination. > > Could you please give any suggestion on how to trace where the packet is lost in the network? > > Thanks, > > -- Xuan -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Fri Aug 30 10:08:47 2013 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 30 Aug 2013 10:08:47 -0700 Subject: [ndnSIM] [Fwd: Replacement metric] In-Reply-To: References: Message-ID: <78CD9E62-4864-4B1F-9301-53556CEC661C@ucla.edu> Hi Andriana, The code looks right, and the whole problem seem to be because of a small problem with "connect" implementation in your tracer. The producer application is not "aggregated" (in NS-3 terms) on the node, rather than it is installed on a Node as an application. While it seem the same, it actually requires a slightly different way to connect the trace. The working example is in utils/tracers/ndn-app-delay-tracer.cc:231 and in your case ndn-producer-tracer.cc on line 105 could look something like: Config::ConnectWithoutContext ("/NodeList/"+m_node+"/ApplicationList/*/ServerHits", MakeCallback (&ProducerTracer::ServerHits, this)); Can you try it and if it doesn't fix the problem, I'll try to dig more. --- Alex On Aug 29, 2013, at 1:55 PM, ioannoa at scss.tcd.ie wrote: > Hello all again, > > further to my previous question I have tried to also implement a metric in > the producer to hold the hits made each time regarding the interests, i.e. > how many interests were satisfied by the producer if not from a content > store of a node along the way. > > i've tried to use the tracers available and made the included files. > Unfortunately, even though my file is created, the metric is always 0. > Furthermore, having a print in the function updating the metric, it seems > that it is never called! The function is set using the TracedCallback. > > Now, i know that the tracer is made for all nodes and not just specifying > one, but i have tried this for an operation similar to the cache misses or > cache hits at the content store and still did not work, so can't see that > as a problem. > > I have included the files. If someone has a hint, please let me know! > > p.s. the changes in the producer files can be found using //(+) in the > finder! > > Kind regards, > Andriana. > > ---------------------------- Original Message ---------------------------- > Subject: Replacement metric > From: ioannoa at scss.tcd.ie > Date: Thu, August 29, 2013 11:07 am > To: ndnsim at lists.cs.ucla.edu > -------------------------------------------------------------------------- > > Hello all, > > I am trying to implement a replacement metric, similar to the one used for > cache hits and cache misses in content store. My issue is though that > replacement counts are not calculated in the content store but rather to > each replacement policy used. Would someone advice which way would be > proper to try to do so? I have found this post related to: > http://www.lists.cs.ucla.edu/pipermail/ndnsim/2012-December/000007.html > would the creation of a new policy be the way to go? > > Thanks in advance. > > Kind regards, > Andriana._______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From mohammad.hovaidi.ardestani at aalto.fi Sat Aug 31 10:12:22 2013 From: mohammad.hovaidi.ardestani at aalto.fi (Hovaidi Ardestani Mohammad) Date: Sat, 31 Aug 2013 17:12:22 +0000 Subject: [ndnSIM] Retransmitted Interests Message-ID: Dear Alex I have a scenario in which NDN requesters sends their Interests with dynamic rate. I have put several functions to set the rates to achieve this goal. My problem is that number of OutInterests shows a cumulative numbers during the simulation. For Instance in first interval the sending rate is 300 packets per seconds and the next time interval the rate is double, but OutInterests rate shows almost triple at the end. I am just wondering whether this additional numbers are due to the retransmission of delayed Interests or there is another reason of which I am not aware. BTW, I used the following to stop sending rate at the end of every time interval: ApplicationContainer allconsumers = consumerHelper.Install(consumers[i]); allconsumers.Stop(Seconds (4)); Thank you for your response in advance! -Mohammad -------------- next part -------------- An HTML attachment was scrubbed... URL: