[ns] find the idle time of node
Hi In mac802.11 one of the state the system can enter is idle state. We have a three variable rx_state_ , tx_state and nav_. Can anybody tell how can we calculate the the idle time before the station enters either in transmit or receive mode. Neeraj Neeraj Gupta
Re: [ns] Why do we have this group?
Fine, I suggest two method we can follow 1- All reply for all. 2- All relpy in perivate and then the person who was asking the question, gather the replys and forward them as an answer of that question (we will only have one collected reply). //may be use a tag in the subject of the reply mail as {ANSWER}. Thanks in advance Mariam On Mon, Feb 21, 2011 at 5:49 AM, Ahmad arasem...@yahoo.com wrote: Hi Fellow NS2ers, Personally I prefer to see answers for everything as it may be relevent at some point. Anand, you can do what I (and may be many de here), have a special folder setup with every email with the Subject NS2 being forwarded to it so your general inbox does not get flooded with it. I am glad to know that there are people answer becuase I posted 2 questions (figured the answer of the first one though) and didn't get answers and I saw just questions so I thought no one is answering here. but yea I would personally like seeing all answers so everyone has reference incase they run into similar issues. I think I saw two more posts sharing the same likes. After all, good luck everyone in your research! Ahmad From: Teerawat@UBC teera...@ece.ubc.ca To: anand waytoan...@gmail.com Cc: ns-users@ISI.EDU Sent: Sun, February 20, 2011 9:23:02 PM Subject: Re: [ns] Why do we have this group? Hi, I answer to people in this group regularly (as much as I can). But usually, I just do it to avoid others who have to receive the answers which are relevant to their interest. There is no guideline on the use of this mailing list. If there is one and it says that most (if not all) answers should be replied to ALL, I'll be glad to do so. What do you guys think? Best Wishes Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Feb 21, 2011, at 8:28 AM, anand wrote: isi is build like this...it is easy to mail al the groupbut they didn't considered that one may take interest in getting the answers of all the questions. besides if they forward to all then ur inbox will always be filled with ns-user's mailit will end only u unsubscribeso it's for the best :) -- Best regards, Mariam Ahmed Moustafa Software Engineer, RD Department Integrated Solutions For Ports Tel: +(203) 4293846/4294632 Extn: 207 Email: mka...@isfpegypt.com Web Site: www.isfpegypt.com
Re: [ns] How to implement the wireless link queue
Hello, I'm trying to monitor queue size in wireless scenario. I've read this topic: http://old.nabble.com/how-to-monitor-the-queue-on-a-wireless-node-to30608840.html how-to-monitor-the-queue-on-a-wireless-node And do the things explained in: http://hpds.ee.ncku.edu.tw/~smallko/ns2/qa_en.htm http://hpds.ee.ncku.edu.tw/~smallko/ns2/qa_en.htm but I'm not able to access to curq_ variable. I'm trying with a record proc like this one: proc record {} { global ns_ node_ queuefile set time 1 set now [$ns_ now] set qlen [$node_(0) set curq_] puts $queuefile $now $qlen $ns_ at [expr $now+$time] record } But I obtain the follow error: ns: record: can't read curq_: no such variable. I think that I'm not reading in a good way the var curq_, because I think it is a variable from the queue object (not the node), but I'm not able to obtain it. Could you explain in detail how you access this variable and trace it? By the way, when I try to trace it via set node0ifq [$node_(0) set ifq_(0)] set queuechan [open qlen.tr w] $node0_ifq trace curq_ $node0_ifq attach $queuechan I obtain an error in the last line $node0_ifq attach $queuechan. If I comment it, I have no error, but qlen.tr is empty. How can I fix it? Sorry if it's a many times question, but I haven't found any other answer but the one I told before, and it is not useful to me, and if nobody ask at least one time this question, you will have many other people asking same things again and again :S I'm using ns2-allinone-2.34 over Ubuntu 10.10 (kernel 2.6.35-25 generic). If you need further information, please ask me. Thanks and regards! PS: sorry for my English, I'm not fluent. Huang-13 wrote: Hey all, I am trying to get the queue sizes of several wireless links (802.11). I configure the 802.11 nodes and set the ifqType as DropTail or RED with ifqlen 60. Then I can trace the curq_ from the queue object of the node. But is it the same thing as the wireless link queue? Compared to the wired network, we have the node queue and also we can set the link queue by the command like: ns duplex-link $n0 $n1 10Mb 20ms DropTail. ns queue - limit $n1 $n2 60 So, I am wandering whether the link queue and node queue are the same thing? If not, how can I convert the node's queue into link queue in wireless? Any comment would be appreciated. Thank you all, Song -- View this message in context: http://old.nabble.com/How-to-implement-the-wireless-link-queue-tp29143488p30976429.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] Why do we have this group?
the latter one is much better, --- On Mon, 2/21/11, Mariam A. Moustafa elansary@gmail.com wrote: From: Mariam A. Moustafa elansary@gmail.com Subject: Re: [ns] Why do we have this group? To: Ahmad arasem...@yahoo.com, ns-users@ISI.EDU Date: Monday, February 21, 2011, 4:38 AM Fine, I suggest two method we can follow 1- All reply for all. 2- All relpy in perivate and then the person who was asking the question, gather the replys and forward them as an answer of that question (we will only have one collected reply). //may be use a tag in the subject of the reply mail as {ANSWER}. Thanks in advance Mariam On Mon, Feb 21, 2011 at 5:49 AM, Ahmad arasem...@yahoo.com wrote: Hi Fellow NS2ers, Personally I prefer to see answers for everything as it may be relevent at some point. Anand, you can do what I (and may be many de here), have a special folder setup with every email with the Subject NS2 being forwarded to it so your general inbox does not get flooded with it. I am glad to know that there are people answer becuase I posted 2 questions (figured the answer of the first one though) and didn't get answers and I saw just questions so I thought no one is answering here. but yea I would personally like seeing all answers so everyone has reference incase they run into similar issues. I think I saw two more posts sharing the same likes. After all, good luck everyone in your research! Ahmad From: Teerawat@UBC teera...@ece.ubc.ca To: anand waytoan...@gmail.com Cc: ns-users@ISI.EDU Sent: Sun, February 20, 2011 9:23:02 PM Subject: Re: [ns] Why do we have this group? Hi, I answer to people in this group regularly (as much as I can). But usually, I just do it to avoid others who have to receive the answers which are relevant to their interest. There is no guideline on the use of this mailing list. If there is one and it says that most (if not all) answers should be replied to ALL, I'll be glad to do so. What do you guys think? Best Wishes Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Feb 21, 2011, at 8:28 AM, anand wrote: isi is build like this...it is easy to mail al the groupbut they didn't considered that one may take interest in getting the answers of all the questions. besides if they forward to all then ur inbox will always be filled with ns-user's mailit will end only u unsubscribeso it's for the best :) -- Best regards, Mariam Ahmed Moustafa Software Engineer, RD Department Integrated Solutions For Ports Tel: +(203) 4293846/4294632 Extn: 207 Email: mka...@isfpegypt.com Web Site: www.isfpegypt.com
[ns] queue length measure
hi how the queue length of each node was calculated in wireless network? how will alter the queue length ? regards akalya
Re: [ns] instaling ns2 in redhat linux
Hi, I got the same error while recompiling (when enter 'make')ns2.34 on ubuntu 9.10. Did you figure out this error?? If yes, kindly share your experience. Thank you. -- View this message in context: http://old.nabble.com/instaling-ns2-in-redhat-linux-tp30870975p30977959.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] instaling ns2 in redhat linux
On 21 Φεβ 2011, at 3:32 μ.μ., gzkhan wrote: Hi, I got the same error while recompiling (when enter 'make')ns2.34 on ubuntu 9.10. Did you figure out this error?? If yes, kindly share your experience. Thank you. You can try: make clean in ns 2.34 directory and ./install in ns-allinone directory. Ilias -- View this message in context: http://old.nabble.com/instaling-ns2-in-redhat-linux-tp30870975p30977959.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] Why do we have this group?
Hi, The problem with the latter one (i.e., when a questioner gets the answer, repost the answer back to the mailing list) is that the person who's got the answer may not forward the answer back to the mailing list. Even when you have the rule written say in FAQ, new persons who recently joined the mailing list might not know about the rule. Then, they would not forward the answer back to the mailing list. In my opinion, reply all with a simple tag [ANS:NS] or something like this might work. People will know that this email message is an answer to a certain question. Those who do not care about the answer can immediately delete it. They may event get their mail client to delete mail whose subject contain [ANS:NS]. But we need to come up with an agreed-upon tag for answering the question. Note that one drawback of this approach is that there might be too many email about the reply, which might annoy our members. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Feb 21, 2011, at 7:35 PM, farzin parsa wrote: the latter one is much better, --- On Mon, 2/21/11, Mariam A. Moustafa elansary@gmail.com wrote: From: Mariam A. Moustafa elansary@gmail.com Subject: Re: [ns] Why do we have this group? To: Ahmad arasem...@yahoo.com, ns-users@ISI.EDU Date: Monday, February 21, 2011, 4:38 AM Fine, I suggest two method we can follow 1- All reply for all. 2- All relpy in perivate and then the person who was asking the question, gather the replys and forward them as an answer of that question (we will only have one collected reply). //may be use a tag in the subject of the reply mail as {ANSWER}. Thanks in advance Mariam On Mon, Feb 21, 2011 at 5:49 AM, Ahmad arasem...@yahoo.com wrote: Hi Fellow NS2ers, Personally I prefer to see answers for everything as it may be relevent at some point. Anand, you can do what I (and may be many de here), have a special folder setup with every email with the Subject NS2 being forwarded to it so your general inbox does not get flooded with it. I am glad to know that there are people answer becuase I posted 2 questions (figured the answer of the first one though) and didn't get answers and I saw just questions so I thought no one is answering here. but yea I would personally like seeing all answers so everyone has reference incase they run into similar issues. I think I saw two more posts sharing the same likes. After all, good luck everyone in your research! Ahmad From: Teerawat@UBC teera...@ece.ubc.ca To: anand waytoan...@gmail.com Cc: ns-users@ISI.EDU Sent: Sun, February 20, 2011 9:23:02 PM Subject: Re: [ns] Why do we have this group? Hi, I answer to people in this group regularly (as much as I can). But usually, I just do it to avoid others who have to receive the answers which are relevant to their interest. There is no guideline on the use of this mailing list. If there is one and it says that most (if not all) answers should be replied to ALL, I'll be glad to do so. What do you guys think? Best Wishes Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Feb 21, 2011, at 8:28 AM, anand wrote: isi is build like this...it is easy to mail al the groupbut they didn't considered that one may take interest in getting the answers of all the questions. besides if they forward to all then ur inbox will always be filled with ns-user's mailit will end only u unsubscribeso it's for the best :) -- Best regards, Mariam Ahmed Moustafa Software Engineer, RD Department Integrated Solutions For Ports Tel: +(203) 4293846/4294632 Extn: 207 Email: mka...@isfpegypt.com Web Site: www.isfpegypt.com
Re: [ns] Why do we have this group?
Hi all, I agree with Teerawat, the replay to all with special tag is more efficient , However we can define special tag for different questions : For example I have noted that most of the question is related to the problem of installation : ns2.29 on ubuntu , on fedora , bad version of gcc.. I propose to add [ANS:Install:NS] for replay to problem of installation [ANS:MAC:NS] for mac questions and so on ... if I am not interested to reply or read to one category I will just have to delet them easily by creating folder. Best, Hadi Le 2/21/2011 4:59 PM, Teerawat@UBC a écrit : Hi, The problem with the latter one (i.e., when a questioner gets the answer, repost the answer back to the mailing list) is that the person who's got the answer may not forward the answer back to the mailing list. Even when you have the rule written say in FAQ, new persons who recently joined the mailing list might not know about the rule. Then, they would not forward the answer back to the mailing list. In my opinion, reply all with a simple tag [ANS:NS] or something like this might work. People will know that this email message is an answer to a certain question. Those who do not care about the answer can immediately delete it. They may event get their mail client to delete mail whose subject contain [ANS:NS]. But we need to come up with an agreed-upon tag for answering the question. Note that one drawback of this approach is that there might be too many email about the reply, which might annoy our members. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Feb 21, 2011, at 7:35 PM, farzin parsa wrote: the latter one is much better, --- On Mon, 2/21/11, Mariam A. Moustafaelansary@gmail.com wrote: From: Mariam A. Moustafaelansary@gmail.com Subject: Re: [ns] Why do we have this group? To: Ahmadarasem...@yahoo.com, ns-users@ISI.EDU Date: Monday, February 21, 2011, 4:38 AM Fine, I suggest two method we can follow 1- All reply for all. 2- All relpy in perivate and then the person who was asking the question, gather the replys and forward them as an answer of that question (we will only have one collected reply). //may be use a tag in the subject of the reply mail as {ANSWER}. Thanks in advance Mariam On Mon, Feb 21, 2011 at 5:49 AM, Ahmadarasem...@yahoo.com wrote: Hi Fellow NS2ers, Personally I prefer to see answers for everything as it may be relevent at some point. Anand, you can do what I (and may be many de here), have a special folder setup with every email with the Subject NS2 being forwarded to it so your general inbox does not get flooded with it. I am glad to know that there are people answer becuase I posted 2 questions (figured the answer of the first one though) and didn't get answers and I saw just questions so I thought no one is answering here. but yea I would personally like seeing all answers so everyone has reference incase they run into similar issues. I think I saw two more posts sharing the same likes. After all, good luck everyone in your research! Ahmad From: Teerawat@UBCteera...@ece.ubc.ca To: anandwaytoan...@gmail.com Cc: ns-users@ISI.EDU Sent: Sun, February 20, 2011 9:23:02 PM Subject: Re: [ns] Why do we have this group? Hi, I answer to people in this group regularly (as much as I can). But usually, I just do it to avoid others who have to receive the answers which are relevant to their interest. There is no guideline on the use of this mailing list. If there is one and it says that most (if not all) answers should be replied to ALL, I'll be glad to do so. What do you guys think? Best Wishes Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Feb 21, 2011, at 8:28 AM, anand wrote: isi is build like this...it is easy to mail al the groupbut they didn't considered that one may take interest in getting the answers of all the questions. besides if they forward to all then ur inbox will always be filled with ns-user's mailit will end only u unsubscribeso it's for the best :) -- Best regards, Mariam Ahmed Moustafa Software Engineer, RD Department Integrated Solutions For Ports Tel: +(203) 4293846/4294632 Extn: 207 Email: mka...@isfpegypt.com Web Site: www.isfpegypt.com
Re: [ns] Why do we have this group?
Hi Hadi, Thanks for the support. I understand that you'd like to make tag more specific to fit the readers' need. However, there is a wide variety of question in this mailing list. For example, - Installation basic NS2 - Installation of patch (which some people don't even know that they are patching their NS2. They think that they ran into weird problems.) - Segmentation fault - Including new protocols - No-slot (classifier) errors - OTcl and C++ linkage (e.g., evalf, resultf,...) - Protocol specific questions (IEEE 802.11, Energy, routing, etc.) These are just few examples I've seen over past year. If we assign a tag to each of the categories above, before long we're gonna have to maintain a long list of tags. Now the next problem is that the anwerers will have to remember the exact words of the tags to conform with the standard we are trying to set here. Another problem is that with more complicated tag, you cannot ask your mail client (e.g., mail rules in Apple mail) to automatically delete the mail which contains a certain tag (e.g., [NS-ANS]). Anyway, thank you for your thought. I hope we can help each other make this mailing list a better place. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Feb 21, 2011, at 11:12 PM, El Hadi Cherkaoui wrote: Hi all, I agree with Teerawat, the replay to all with special tag is more efficient , However we can define special tag for different questions : For example I have noted that most of the question is related to the problem of installation : ns2.29 on ubuntu , on fedora , bad version of gcc.. I propose to add [ANS:Install:NS] for replay to problem of installation [ANS:MAC:NS] for mac questions and so on ... if I am not interested to reply or read to one category I will just have to delet them easily by creating folder. Best, Hadi Le 2/21/2011 4:59 PM, Teerawat@UBC a écrit : Hi, The problem with the latter one (i.e., when a questioner gets the answer, repost the answer back to the mailing list) is that the person who's got the answer may not forward the answer back to the mailing list. Even when you have the rule written say in FAQ, new persons who recently joined the mailing list might not know about the rule. Then, they would not forward the answer back to the mailing list. In my opinion, reply all with a simple tag [ANS:NS] or something like this might work. People will know that this email message is an answer to a certain question. Those who do not care about the answer can immediately delete it. They may event get their mail client to delete mail whose subject contain [ANS:NS]. But we need to come up with an agreed-upon tag for answering the question. Note that one drawback of this approach is that there might be too many email about the reply, which might annoy our members. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Feb 21, 2011, at 7:35 PM, farzin parsa wrote: the latter one is much better, --- On Mon, 2/21/11, Mariam A. Moustafaelansary@gmail.com wrote: From: Mariam A. Moustafaelansary@gmail.com Subject: Re: [ns] Why do we have this group? To: Ahmadarasem...@yahoo.com, ns-users@ISI.EDU Date: Monday, February 21, 2011, 4:38 AM Fine, I suggest two method we can follow 1- All reply for all. 2- All relpy in perivate and then the person who was asking the question, gather the replys and forward them as an answer of that question (we will only have one collected reply). //may be use a tag in the subject of the reply mail as {ANSWER}. Thanks in advance Mariam On Mon, Feb 21, 2011 at 5:49 AM, Ahmadarasem...@yahoo.com wrote: Hi Fellow NS2ers, Personally I prefer to see answers for everything as it may be relevent at some point. Anand, you can do what I (and may be many de here), have a special folder setup with every email with the Subject NS2 being forwarded to it so your general inbox does not get flooded with it. I am glad to know that there are people answer becuase I posted 2 questions (figured the answer of the first one though) and didn't get answers and I saw just questions so I thought no one is answering here. but yea I would personally like seeing all answers so everyone has reference incase they run into similar issues. I think I saw two more posts sharing the same likes. After all, good luck everyone in your research! Ahmad From: Teerawat@UBCteera...@ece.ubc.ca To: anandwaytoan...@gmail.com Cc: ns-users@ISI.EDU Sent: Sun, February 20, 2011 9:23:02 PM Subject: Re: [ns]
Re: [ns] Lacking of Sample code for Clustering Routing Protocol
Have someone answered this to you? Érico V. Porto On Tue, Feb 15, 2011 at 3:41 PM, lim shia yok shia...@gmail.com wrote: Hi, Most of us are lacking the code information about clustering based routing protocol, pls help, thanks I need your help on how do I collect the weight for cluster head selection in NS2, the weight includes number of hops, degree nodes, and etc.. Or is there anyone know where can I get the sample code for clustering based routing protocol? Thanks for your help.. Regards, Shia Yok
Re: [ns] interference model
I was looking at the mac802_11.cc implementation, and looking at the following function: Mac802_11::recv It seems that it also has another type of decision clause: if(pktRx_-txinfo_.RxPr / p-txinfo_.RxPr = p-txinfo_.CPThresh) { capture(p); } else { collision(p); } From this code I think a package can interfere with another in a one on one way, so multiple packages don't sum their energy to create a noisy environment. Also, if one package Receive power is CPThresh times bigget the another, than it is received, otherwise, it as marked as colision and discarded. Érico V. Porto On Mon, Feb 21, 2011 at 2:05 PM, Érico Porto ericoporto2...@gmail.comwrote: Hello everyone, I was looking at how the NS-2 implements the interference that a noda has over the other... So I map this functions: (phy.cc) Phy::recv - (wireless-phy.cc) WirelessPhy::sendDown(packet *p) - (channel.cc) WirelessChannel::Recvd(packet *p) - WirelessChannel::SendUp(packet* P, Phy * tifp) - getAffectedNodes(mtnode, distCST_ + 5, numAffectedNodes) - distCST_ = wifp-getDist( wifp -getPowerMonitorTresh(), wifp-getPt(), wifp-getAntennaRxGain(), wifp-getAntennaTxGain(), highestZ, highestZ, wifp-getL() ) The getDist function implementation depends on what model is being used: (propagation.cc) [freespace/friss] lambda/(4pi) * sqrt(Pt Gt Gr / Pr L) (tworayground.cc) {tworayground] hr/ht sqrt(Pt Gt Gr / Pr) Also I was reading this : http://www.cs.binghamton.edu/~kliu/research/ns2code/note.pdf ; and looking at that and at the code, it became strange that, looking at the code, a node affects the nodes in a SQUARE centered in the one which is sending, with a distance from the getDist plus 5. I may be wrong, but a Node was suposed to interfere with another, with a bigger distance than just the Friss model distance - something like twice that distance... Érico V. Porto
Re: [ns] distance calculation of the nodes
In this case is easier if you just make a tcl function that do that to you. something like (don't know if the syntax is right) proc calcDist { node_a node_b } { set x1 [$node_a set X_] set y1 [$node_a set Y_] set x2 [$node_b set X_] set y2 [$node_b set Y_] set distance [expr sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))] } Érico V. Porto On Mon, Feb 21, 2011 at 12:56 AM, Suman paul choudhury sumanpc2...@gmail.com wrote: dear all hw ow is it possible to calculate the distance of the two nodes using ns-2? example_ if node1 has cordinates as (5,15) and the other node2 has cordinates (15,20) then what would be the command in NS-2 to calculate the distance between the nodes. thanking you regards suman
[ns] Send a multicast packet
Hi all I have, for example, a tree topology composed of 9 nodes. Imagine that node 4 is connected to nodes 1, 2, 3, and 5 and I want to send a broadcast packet to nodes 2, 3 and 5 but no to node 1. How can I do that in C++? I want nodes 2, 3 and 5 receives the packet at same time (it happens when I send a broadcast/multicast packet. Suppose the distance between nodes are the same and there are not anything that delays and affect the transmission). Thanks in advance David
Re: [ns] Send a multicast packet
Hi the problem is that I have collisions. Imagine the same example (multihop network), node 4 and node 7 are directly connected to 1 (1 is their parent) and they do the same at the same time, broadcast/multicast a packet to their childrens (4 to 2, 3 and 5; 7 to 8 and 9). In a normal broadcast, the packet send by 4 and 7 to 1 collides. I don't want to send any of both packets to 1. A node must to send a broadcast packet only to their children. Hence, here is my problem, and I don't know what to do. Any suggestion? David De: Stephan Lorenz sloren...@googlemail.com Para: David Rodenas drodenasherr...@yahoo.es Enviado: lun,21 febrero, 2011 22:23 Asunto: Re: [ns] Send a multicast packet I'm not sure but can't you simply say something like this on the receivers side? : if destination address != my_address then ignore packet. If all nodes are within the communication range they will see the packet anyways. On Mon, Feb 21, 2011 at 10:17 PM, David Rodenas drodenasherr...@yahoo.es wrote: Hi all I have, for example, a tree topology composed of 9 nodes. Imagine that node 4 is connected to nodes 1, 2, 3, and 5 and I want to send a broadcast packet to nodes 2, 3 and 5 but no to node 1. How can I do that in C++? I want nodes 2, 3 and 5 receives the packet at same time (it happens when I send a broadcast/multicast packet. Suppose the distance between nodes are the same and there are not anything that delays and affect the transmission). Thanks in advance David
Re: [ns] Send a multicast packet
Hi Stephan you are right but that is not really the point. As you say, If I want to do what I explain, with a broadcast I can't control where the packets go, but I need to do exactly that. I need all children nodes receive at same time a packet from their parent. In a single PAN tree topology we would't have this problem (I checked it): there is only one hop and the node who send the broadcast is not worried about not the send to determinate node. But I have to do this on a multihop network so an intermediate node have to broadcast to their childrens but not send anything to his parent. Yes, what I'm doing is rare, but I have to :) Thanks a lot Stephan for your answers, and the rest of researchers. David De: Stephan Lorenz sloren...@googlemail.com Para: David Rodenas drodenasherr...@yahoo.es Enviado: lun,21 febrero, 2011 22:52 Asunto: Re: [ns] Send a multicast packet I think what you need is CSMA, you can't control where packets go.. they will be distributed based on their communication range and all packets in that area will interfere with each other. Maybe I'm looking at the problem from the wrong side but I think you need to have something in order to avoid interference.. either CSMA or a small random time interval before sending a packet on each node. Let me know if I am misunderstanding you ;) On Mon, Feb 21, 2011 at 10:47 PM, David Rodenas drodenasherr...@yahoo.es wrote: Hi the problem is that I have collisions. Imagine the same example (multihop network), node 4 and node 7 are directly connected to 1 (1 is their parent) and they do the same at the same time, broadcast/multicast a packet to their childrens (4 to 2, 3 and 5; 7 to 8 and 9). In a normal broadcast, the packet send by 4 and 7 to 1 collides. I don't want to send any of both packets to 1. A node must to send a broadcast packet only to their children. Hence, here is my problem, and I don't know what to do. Any suggestion? David De: Stephan Lorenz sloren...@googlemail.com Para: David Rodenas drodenasherr...@yahoo.es Enviado: lun,21 febrero, 2011 22:23 Asunto: Re: [ns] Send a multicast packet I'm not sure but can't you simply say something like this on the receivers side? : if destination address != my_address then ignore packet. If all nodes are within the communication range they will see the packet anyways. On Mon, Feb 21, 2011 at 10:17 PM, David Rodenas drodenasherr...@yahoo.es wrote: Hi all I have, for example, a tree topology composed of 9 nodes. Imagine that node 4 is connected to nodes 1, 2, 3, and 5 and I want to send a broadcast packet to nodes 2, 3 and 5 but no to node 1. How can I do that in C++? I want nodes 2, 3 and 5 receives the packet at same time (it happens when I send a broadcast/multicast packet. Suppose the distance between nodes are the same and there are not anything that delays and affect the transmission). Thanks in advance David
Re: [ns] Why do we have this group?
I agree, I think we should go with the first option otherwise I can tell you that it will be not likelky a person will sit down to collect all the answer and send it to the group.. lets face it, laziness plays a factor here. However when a person is answering the question, it is very simple just to use reply all rather than reply so we will definitly get more answers. Making the tags more specific is definitly good idea but I agree with Teerawat, it is not easy task. I like the idea of ANS in the tag it is simple, direct to the point and enable filteration. I gotta tell you, knowing the answer is much better than being flooded with questions with no answers. My thoughts... Lets make it better. I can already see Erico replying all which is Awsome! Some questions were interesting to know the answer for.. this is just my personal experience. Regards, Ahmad From: Teerawat@UBC teera...@ece.ubc.ca To: El Hadi Cherkaoui elhadi.cherka...@gmail.com Cc: ns-users@ISI.EDU Sent: Mon, February 21, 2011 11:37:15 AM Subject: Re: [ns] Why do we have this group? Hi Hadi, Thanks for the support. I understand that you'd like to make tag more specific to fit the readers' need. However, there is a wide variety of question in this mailing list. For example, - Installation basic NS2 - Installation of patch (which some people don't even know that they are patching their NS2. They think that they ran into weird problems.) - Segmentation fault - Including new protocols - No-slot (classifier) errors - OTcl and C++ linkage (e.g., evalf, resultf,...) - Protocol specific questions (IEEE 802.11, Energy, routing, etc.) These are just few examples I've seen over past year. If we assign a tag to each of the categories above, before long we're gonna have to maintain a long list of tags. Now the next problem is that the anwerers will have to remember the exact words of the tags to conform with the standard we are trying to set here. Another problem is that with more complicated tag, you cannot ask your mail client (e.g., mail rules in Apple mail) to automatically delete the mail which contains a certain tag (e.g., [NS-ANS]). Anyway, thank you for your thought. I hope we can help each other make this mailing list a better place. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Feb 21, 2011, at 11:12 PM, El Hadi Cherkaoui wrote: Hi all, I agree with Teerawat, the replay to all with special tag is more efficient , However we can define special tag for different questions : For example I have noted that most of the question is related to the problem of installation : ns2.29 on ubuntu , on fedora , bad version of gcc.. I propose to add [ANS:Install:NS] for replay to problem of installation [ANS:MAC:NS] for mac questions and so on ... if I am not interested to reply or read to one category I will just have to delet them easily by creating folder. Best, Hadi Le 2/21/2011 4:59 PM, Teerawat@UBC a écrit : Hi, The problem with the latter one (i.e., when a questioner gets the answer, repost the answer back to the mailing list) is that the person who's got the answer may not forward the answer back to the mailing list. Even when you have the rule written say in FAQ, new persons who recently joined the mailing list might not know about the rule. Then, they would not forward the answer back to the mailing list. In my opinion, reply all with a simple tag [ANS:NS] or something like this might work. People will know that this email message is an answer to a certain question. Those who do not care about the answer can immediately delete it. They may event get their mail client to delete mail whose subject contain [ANS:NS]. But we need to come up with an agreed-upon tag for answering the question. Note that one drawback of this approach is that there might be too many email about the reply, which might annoy our members. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Feb 21, 2011, at 7:35 PM, farzin parsa wrote: the latter one is much better, --- On Mon, 2/21/11, Mariam A. Moustafaelansary@gmail.com wrote: From: Mariam A. Moustafaelansary@gmail.com Subject: Re: [ns] Why do we have this group? To: Ahmadarasem...@yahoo.com, ns-users@ISI.EDU Date: Monday, February 21, 2011, 4:38 AM Fine, I suggest two method we can follow 1- All reply for all. 2- All relpy in perivate and then the person who was asking the question, gather the replys and forward them as an answer of that question (we will only have one collected