[ns] Multichannel single interface MAC simulation help
hi, Can anyone help me to simulate multi channel single interface mac for wireless network.Is there any patch or modification available. basil
[ns] Underwater module install problem!
Dear all, I failed to install the latest underwater module under NS2. I added .o files, modified ns-default file as the instruction. I put the underwaterchannel.cc and underwaterchannel.h in mobile dir. The rest are put into mac dir. That was all about. Help me please! The following are the messages dumping. mac/underwater-phy.cc: In constructor ‘UnderwaterPhy::UnderwaterPhy()’: mac/underwater-phy.cc:44: error: no matching function for call to ‘Sleep_Timer::Sleep_Timer(UnderwaterPhy* const)’ ./mac/wireless-phy.h:58: note: candidates are: Sleep_Timer::Sleep_Timer(WirelessPhy*) ./mac/wireless-phy.h:56: note: Sleep_Timer::Sleep_Timer(const Sleep_Timer) mac/underwater-phy.cc: In member function ‘virtual void UnderwaterPhy::sendDown(Packet*)’: mac/underwater-phy.cc:221: error: ‘MIN’ was not declared in this scope make: *** [mac/underwater-phy.o] Error 1 Is that the compiler version problem? Or it's simply the bug in this program? Help please!! Thank you very much! p.s. I use ubuntu-v7.10 as my unix-like OS. Best, Jeffy Yang
[ns] aw k script for new trace format
Hi, Anyone can provide me the awk / perl script for end-to-end delay, throughput, jitter and packet loss for new trace format? Thank you. -- View this message in context: http://www.nabble.com/awk-script-for-new-trace-format-tp16000970p16000970.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] TRP code
hi all , can anybody provide me coding for Token routing protocol please. thanks -- mk
[ns] packets generated number
hi ns users! is there anyone can tell i there is a command to return number of packets generated by a source? thanks.
[ns] Extending 802.11
Hi, I've been studying NS3. My goal is to create a 802.11s module by extending 802.11 code (recently added by Mathieu Lacage). I've been looking to NS3 architecture and in particular, the 802.11 code and supplied wifi examples: main-adhoc-wifi.cc and main-ap-wifi.cc. At this point I have some doubts that maybe someone could give some pointers: 1. How do I active tracing to see (wifi) frames and if it's possible to trace frames in pcap format. 2. How to add IP to the main-ap-wifi.cc example? Do I need just to use InternetNode instead of Node? What else should I need? 3. After analyzing Mathieu's 802.11 code, it seems that it wasn't structured in such a way that it is possible/easy to add more management frames, new beacon, etc. At first glance, it seems that I need to create a WifiMacHeader subclass and create new methods and enum types, instead of overriding methods such as: - void SetType (enum WifiMacType_e type) - enum WifiMacType_e GetType ( ) Best Regards, Nuno Rodrigues
Re: [ns] Nodes not receiving broadcast message
in my protocol code, the addr_type is NS_AF_INET I define the port number as well here is my broadcast code : http://nuraini.net/2007/09/16/unicast-and-broadcat-packet-on-ns2/ it works for me :) --- Nur Aini Rakhmawati Touch the sky, Down to the earth http://nuraini.net/ - Original Message From: SS Mukaka [EMAIL PROTECTED] To: ns-users@ISI.EDU Sent: Tuesday, March 11, 2008 10:16:50 PM Subject: [ns] Nodes not receiving broadcast message I want to send a broadcast message to neighbours I'm having a problem because the nodes are not receiving the message if I put ih-daddr() = IP_BROADCAST; I have tested it by putting ih-daddr() = 1; and it worked... ie. node 1 was able to receive the message.. Below is my code for sending and also for receiving void ReQuest::sendREQUEST() { Packet* p = Packet::alloc(); struct hdr_cmn* ch = HDR_CMN(p); struct hdr_ip* ih = HDR_IP(p); struct hdr_MyPacket* ah = HDR_MyPacket(p); ch-size() = IP_HDR_LEN + ah-size(); ch-addr_type() = NS_AF_NONE; ih-daddr() = IP_BROADCAST; ih-saddr() = index; ah-MyPacket_type = ReQ; Scheduler::instance().schedule(target_, p, 0.0); } My receive function is as follows: void ReQuest::recv(Packet* p, Handler*) { struct hdr_cmn* ch = HDR_CMN(p); struct hdr_ip* ih = HDR_IP(p); struct hdr_MyPacket* ah = HDR_MyPacket(p); nsaddr_t src = ih-saddr(); printf(Node %d receiving data packet from %d \n, index, src); // processing packet } like i said, nodes can only receive messages if i put the IP address of the receipient but when i use IP_BROADCAST, nothing is received... Thank you in advance Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: [ns] packets generated number
Not sure of built in commands but you can call in TCL like disp_count and in command function call a function and display. For this maintain array of countpkt[n] where n is no of nodes. Keep incrementing for every timer expiry of Hello + forward() function + send functions. Better have it as static variable. Regards, Maddy. On Wed, Mar 12, 2008 at 7:36 PM, amel ksentini [EMAIL PROTECTED] wrote: hi ns users! is there anyone can tell i there is a command to return number of packets generated by a source? thanks.
[ns] Transmitting packets without using AODV in 802.15.4
Dear friends, First of all, i would like to apologise if this is a duplicated post. I had some problems with the ns-users mailing list. I would greatly appreciate some information, or an example script, on how to sent packets without using AODV. I want to set up a CBR and directly send down packets from SSCS to MAC using 802.15.4 data primitives. I have looked in the ns FAQ and ns mailing lists but couldn't find any information on how to do it. It is mentioned that there is a TCL interface to set the transmission method in Mac802_15_4::txOption. How one can use this through a TCL script??? I am sorry for your time, if this is something trivial that I have overlooked. I await your response. Regards, George
[ns] how can i change BER of the link
Hello all ns users, With which command in tcl i can deteriorate the wireless link characteristics, such as changing the BER (bit error rate)? Regards, Semra ## Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi gorusu olmak zorunda degildir. ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. E-mails to and from the company are monitored for operational reasons and in accordance with lawful business practices. Any views or opinions presented are solely those of the author and do not necessarily represent the views of the company. ##
Re: [ns] about usage fo thorughput.awk file
It has nothing to do with the USAGE of the awk file. Check the algorithm in your awk file, especially the denominators. Seems you used a 0-value counter as a denominator. good luck! -- 此致 敬礼 蔡杰
[ns] install works but make on its own produces errors on powerpc-apple-darwin8.11.0.
Hi I am having a very odd problem I am installing ns-2 on powerpc-apple-darwin8.11.0. I have not changed the makefile or any other files yet but... If I use the install /ns-2/allinone/install,v 1.31 it installs and runs fine. However soon as I go to remake it from ns-allinone-2.32/ns-2.32/Makefile it fails with the following error: * /usr/bin/ld: /Users/student3/ns-2/ns-allinone-2.32/tclcl-1.19/libtclcl.a( embedded-tclobj.o) malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (8)) collect2: ld returned 1 exit status make: *** [ns] Error 1* If I do a make again it produces the same error. if i then do a *make clean *then a *make *it produces the same error again. If I do a *make distclean* then a *./configure --with-otcl=../otcl-1.13/ --with-tclcl=../tclcl-1.19/* (this what I think the install is doing) then make it still produces the same error. Please any ideas? I'm going mad! Thank you Mark