Re: [ns] Ns-users Digest, Vol 73, Issue 27
Hi Can anyone provide me the code of any multicast routing protocols of mobile ad hoc networks Regards: sunil soni On Thu, Jan 28, 2010 at 6:30 AM, ns-users-requ...@isi.edu wrote: Send Ns-users mailing list submissions to ns-users@isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to ns-users-requ...@isi.edu You can reach the person managing the list at ns-users-ow...@isi.edu When replying, please edit your Subject line so it is more specific than Re: Contents of Ns-users digest... Today's Topics: 1. ping protocol ns2 implementation error (Frank Kitumba) 2. how to run simulation 100 times in ns2 (S.M.Mehdi Feiz) 3. How to detect the Misbehaving Nodes in MANET (08DI005 resmybaby) 4. IEEE WAVE and 802.11p Standard's Ability (Mustafa Kamal) -- Message: 1 Date: Wed, 27 Jan 2010 02:50:10 -0500 From: Frank Kitumba fkitu...@engineer.com Subject: [ns] ping protocol ns2 implementation error To: ns-users@ISI.EDU Message-ID: 8cc6d3c7ca3facf-1600-...@web-mmc-d05.sysops.aol.com Content-Type: text/plain; charset=us-ascii make: *** [common/scheduler] Error 1 if any one has encountered this error before please let me know how to go about it. LIFE IS A GAME OF PREDETERMINED CHANCES; HARD WORK FOR GREAT WORK. === (Currently Student) Masters in Communication and Information system Department of Electronics and Information Engineering, Huazhong University of science and Technology, No. 1037 Luoyu Road, Wuhan, Hubei, 430074, China -- Message: 2 Date: Wed, 27 Jan 2010 00:01:50 -0800 (PST) From: S.M.Mehdi Feiz smmf...@yahoo.com Subject: [ns] how to run simulation 100 times in ns2 To: ns-users@ISI.EDU Message-ID: 423764.28917...@web62107.mail.re1.yahoo.com Content-Type: text/plain; charset=us-ascii hi all I want to run my simulation 100 times in ns2 and use the average performance parameters. However, I don't know how to do??? please, help me. Mehdi Feiz -- Message: 3 Date: Wed, 27 Jan 2010 14:08:05 +0530 From: 08DI005 resmybaby resmyb...@karunya.edu.in Subject: [ns] How to detect the Misbehaving Nodes in MANET To: ns-users@ISI.EDU Message-ID: cdeaa50c1001270038n64c96d90we588becbfb6fe...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Hi Anyone know any method to detect the misbehaviour of the Nodes in MANET..any idea of implementing it in NS2..Plz reply -- Resmy Baby 08DI005 NIE -- Message: 4 Date: Wed, 27 Jan 2010 08:07:43 -0800 (PST) From: Mustafa Kamal contact.joar...@yahoo.com Subject: [ns] IEEE WAVE and 802.11p Standard's Ability To: NS2 Users ns-users@ISI.EDU Message-ID: 711592.87867...@web45614.mail.sp1.yahoo.com Content-Type: text/plain; charset=us-ascii Hi, Can anyone tell me is IEEE WAVE and 802.11p standards offer V2V and I2V communications with either single-hop or multi-hop forwarding ability? Any particular reference will be very much helpful in this regard. Thanks in advance. Regards, Mustafa Kamal -- ___ Ns-users mailing list Ns-users@isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 73, Issue 27 -- Thanks Regards: Sunil Kumar Soni Asstt.Prof. - Deptt. of Computer Science Email: sunilson...@gmail.com Phone: +91-98725-00787 Fax: +91-172-5094173 www.sasiitmohali.com
[ns] Required ODMRP, AMRoute, AMRIS, CAMP code for NS2
Dear Sir/Madam I am Sunil Soni Research scholar from Punjab Technical University India I require NS2 Implemented code of multicast routing protocols Like ODMRP,AMRoute,AMRIS, CAMP etc I shall be very thank full to yours -- Thanks Regards: Sunil Kumar Soni Asstt.Prof. - Deptt. of Computer Science Email: sunilson...@gmail.com Phone: +91-98725-00787 Fax: +91-172-5094173 www.sasiitmohali.com
[ns] Simulation halting after ARP request in Wifi, ns3
Hello ns users, I am simulating a small Adhoc-wifi network of 4 nodes in ns3. Two nodes are OnOff sources and other two of them are OnOff sinks. I am starting two source nodes at the same time. The problem I am facing is that, after ARP request the simulation just halts, not even a single data packet is sent. Following is my script: #include iostream #include fstream #include ns3/core-module.h #include ns3/common-module.h #include ns3/node-module.h #include ns3/helper-module.h #include ns3/mobility-module.h #include ns3/contrib-module.h #include ns3/wifi-module.h using namespace ns3; int main (int argc, char *argv[]) { Packet::EnableMetadata (); Config::SetDefault (ns3::WifiRemoteStationManager::RtsCtsThreshold, StringValue (0)); // enable rts cts all the time. WifiHelper wifi; MobilityHelper mobility; NodeContainer stas; NetDeviceContainer staDevs; InternetStackHelper stack; stas.Create (4); PtrWifiChannel channel = CreateObjectWifiChannel (); channel-SetPropagationDelayModel (CreateObjectConstantSpeedPropagationDelayModel ()); PtrLogDistancePropagationLossModel log = CreateObjectLogDistancePropagationLossModel (); log-SetReferenceModel (CreateObjectFriisPropagationLossModel ()); channel-SetPropagationLossModel (log); wifi.SetPhy (ns3::WifiPhy); wifi.SetRemoteStationManager (ns3::ArfWifiManager); wifi.SetMac (ns3::AdhocWifiMac); mobility.SetPositionAllocator (ns3::GridPositionAllocator, MinX, DoubleValue (0.0), MinY, DoubleValue (0.0), DeltaX, DoubleValue (5.0), DeltaY, DoubleValue (10.0), GridWidth, UintegerValue (3), LayoutType, StringValue (RowFirst)); mobility.SetMobilityModel (ns3::StaticMobilityModel); mobility.Install (stas); staDevs = wifi.Install (stas, channel); stack.Install (stas); Ipv4AddressHelper ipv; ipv.SetBase (10.1.1.0, 255.255.255.0); Ipv4InterfaceContainer ipvcontain = ipv.Assign (staDevs); OnOffHelper onoff1 (ns3::UdpSocketFactory, InetSocketAddress (ipvcontain.GetAddress (1), 9)); onoff1.SetAttribute (OnTime, RandomVariableValue (ConstantVariable (10))); onoff1.SetAttribute (OffTime, RandomVariableValue (ConstantVariable (0))); ApplicationContainer apps1 = onoff1.Install (stas.Get (0)); apps1.Start (Seconds (0.5)); apps1.Stop (Seconds (10.0)); PacketSinkHelper sink (ns3::UdpSocketFactory, Address (InetSocketAddress (Ipv4Address::GetAny (), 9))); sink.Install (stas.Get (1)); onoff1.SetAttribute (Remote, AddressValue (InetSocketAddress (ipvcontain.GetAddress (3), 9))); ApplicationContainer apps2 = onoff1.Install (stas.Get (2)); sink.Install (stas.Get (3)); apps2.Start(Seconds (0.5)); apps2.Stop (Seconds (10.0)); std::ofstream ascii(out.tr); WifiHelper::EnableAsciiAll(ascii); Simulator::Stop (Seconds (10.0)); Simulator::Run (); Simulator::Destroy (); return 0; } Following is content of out.tr after simulation: + 508192000ns /NodeList/0/DeviceList/0/$ns3::WifiNetDevice/Phy/Tx ns3::WifiMacHeader (DATA ToDS=0, FromDS=0, MoreFrag=0, Retry=0, MoreData=0 Duration/ID=0usDA=ff:ff:ff:ff:ff:ff, SA=00:00:00:00:00:01, BSSID=ff:ff:ff:ff:ff:ff, FragNumber=0, SeqNumber=0) ns3::LlcSnapHeader (type 0x806) ns3::ArpHeader (request source mac: 00-06-00:00:00:00:00:01 source ipv4: 10.1.1.1 dest ipv4: 10.1.1.2) ns3::WifiMacTrailer () + 508192000ns /NodeList/2/DeviceList/0/$ns3::WifiNetDevice/Phy/Tx ns3::WifiMacHeader (DATA ToDS=0, FromDS=0, MoreFrag=0, Retry=0, MoreData=0 Duration/ID=0usDA=ff:ff:ff:ff:ff:ff, SA=00:00:00:00:00:03, BSSID=ff:ff:ff:ff:ff:ff, FragNumber=0, SeqNumber=0) ns3::LlcSnapHeader (type 0x806) ns3::ArpHeader (request source mac: 00-06-00:00:00:00:00:03 source ipv4: 10.1.1.3 dest ipv4: 10.1.1.4) ns3::WifiMacTrailer () r 508304033ns /NodeList/3/DeviceList/0/$ns3::WifiNetDevice/Phy/RxOk ns3::WifiMacHeader (DATA ToDS=0, FromDS=0, MoreFrag=0, Retry=0, MoreData=0 Duration/ID=0usDA=ff:ff:ff:ff:ff:ff, SA=00:00:00:00:00:01, BSSID=ff:ff:ff:ff:ff:ff, FragNumber=0, SeqNumber=0) ns3::LlcSnapHeader (type 0x806) ns3::ArpHeader (request source mac: 00-06-00:00:00:00:00:01 source ipv4: 10.1.1.1 dest ipv4: 10.1.1.2) ns3::WifiMacTrailer () It appears that the ARP request does collide (I dont' know why?) since the node 3 is receiveing the ARP request sent by node 0 for node 2. But simulation doesn't carry on. This is the whole trace file that I have shown. Please help me in simulating more than 1 application in wifi ns3 because any example does not show us how to do so. Any help would be greatly appreciated. Thank you, BR, Amit Soni
[ns] MAC layer queue and Very slow simulations
Hi ns-users, First of all I want to thank you all for replying to my previous post. My simulations are taking days to complete. Here is my problem: I want that my queue at the MAC layer such that it is never empty, that is, MAC always has atleast one packet to send. So, what I did was increased the cbr rate as: $cbr($i) set rate_ 10Mb And since I don't want any payload so I set the packet size as: $cbr($i) set packetSize_ 1 Number of stations are 2000 in a LAN. 1000 are sources and 1000 are sinks. Time for the simulation is 10 seconds. This simualtion took me one day i.e. 22 hours approx to complete. But If I remove the packet size line i.e. set the packet size to default. then the simulation finishes within an hour. But my simualtions want the packet size to be less as possible and also always crowded MAC layer. I need help to fasten up the Simulations OR any other fast method for crowding MAC layer and small packet length in LAN. Any help would be greatly appreciated. Thanks in advance, Best Regards, Amit Soni Email ID: [EMAIL PROTECTED]
Re: [ns] Negative UID of the packets
Hi Ns-Users, Thank you Teerawat for your reply, but in my simulation, from 0-3.4 seconds th-uid() is positive but from 3.4 it goes negative. I think the most probably reason is that the packet uid space exhausts, but then why doesn't it shows some error. Any ways even if it goes exhausts is there any way to wrap around the uid's , I mean renew all the uid's. Thanks again, Regards, Amit Soni email id: [EMAIL PROTECTED] Hi Amit, Negative UID is a common mechanism in NS2. NS2 uses the scheduler to keep track of event. The mechanism is as follows: 1. When you schedule an event at a certain time, a positive uid_ value is assigned to the event. 2. When the event is executed, the uid_ is revert to its negative value. 3. Again, when you create another event, a new event with positive uid_ is created. Having negative uid_ simply means that the packet (or event) is being executed (e.g., transmitted to another node). Best, Teerawat P.S. There is one book for NS2. If you are interested, please check the following link http://www.springer.com/engineering/signals/book/978-0-387-71759-3?detailsPage=otherBooksCIPageCounter=CI_MORE_BOOKS_BY_AUTHOR0 On 6/6/2008, Amit Soni [EMAIL PROTECTED] wrote: Hello Ns-Users, I am simulating Large Ethernet LAN over ns2 and wanted to trace packets that are ready to be send in to the channel. Since ns2 does not support this type of trace I have to change the code of mac-802_3.cc to know when and which packets are ready to be dumped in to the channel. Following is the code in mac-802_3.cc:: hdr_cmn *th = hdr_cmn::access(p); hdr_mac *mh= HDR_MAC(p); mytrace+2\t\tth-uid()\t\t(Scheduler::instance().clock())\t\tt\t\tth-size()\t\tmh-macDA()\t\tmh-macSA()'\n'; Following are my specification of network:: Bandwidth of the LAN: 10Mb Number of nodes: 2002 Delay: 0.025ms 1001 nodes are cbr agents and 1001 nodes are null. Following line is used to make LAN:: set lan_ [$ns make-lan -trace on $nodelist 10Mb .025ms LL Queue/DropTail Mac/802_3 Channel Phy/WiredPhy ] I am Simulating just for 5 seconds and after around 3.4 seconds or so I started getting th-uid() as negative. And the uid of the packet just before negative uid is 2147453588. Please point me where I am going wrong. I would greatly appreciate any suggestions. Thanks, Regards, Amit Soni email id: [EMAIL PROTECTED]
[ns] Negative UID of the packets
Hello Ns-Users, I am simulating Large Ethernet LAN over ns2 and wanted to trace packets that are ready to be send in to the channel. Since ns2 does not support this type of trace I have to change the code of mac-802_3.cc to know when and which packets are ready to be dumped in to the channel. Following is the code in mac-802_3.cc:: hdr_cmn *th = hdr_cmn::access(p); hdr_mac *mh= HDR_MAC(p); mytrace+2\t\tth-uid()\t\t(Scheduler::instance().clock())\t\tt\t\tth-size()\t\tmh-macDA()\t\tmh-macSA()'\n'; Following are my specification of network:: Bandwidth of the LAN: 10Mb Number of nodes: 2002 Delay: 0.025ms 1001 nodes are cbr agents and 1001 nodes are null. Following line is used to make LAN:: set lan_ [$ns make-lan -trace on $nodelist 10Mb .025ms LL Queue/DropTail Mac/802_3 Channel Phy/WiredPhy ] I am Simulating just for 5 seconds and after around 3.4 seconds or so I started getting th-uid() as negative. And the uid of the packet just before negative uid is 2147453588. Please point me where I am going wrong. I would greatly appreciate any suggestions. Thanks, Regards, Amit Soni email id: [EMAIL PROTECTED]
[ns] Help me to write awk scripts fromTrace File (new format) to find Route Acquisition Time, Average End-to-end delay and Protocol Load
Hi, I have wireless program for three nodes and I am able to generate trace file successfully. Trace file is having new revised format like following. s -t 0.898988 -Hs 0 -Hd -1 -Ni 0 -Nx 5.00 -Ny 2.00 -Nz 0.00 -Ne -1.000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.255 -Id -1.255 -It message -Il 32 -If 0 -Ii 0 -Iv 32 s -t 1.552488 -Hs 1 -Hd -1 -Ni 1 -Nx 390.00 -Ny 386.00 -Nz 0.00 -Ne -1.000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.255 -Id -1.255 -It tcp -Il 1000 -If 0 -Ii 0 -Iv 32 Now, According to different criteria mentioned in subject line, I want to generate files which can generate Xgraph for above criteria. I need awk scripts to select specific required data from main trace file. So if anybody is having that scripts please help me out. Thanks. Now you can chat without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php
[ns] How to use xgraph command in NS 2.28 Fedora4
Hello Everybody, xgraph command is running successfully in my machine. But I dont know how to use it. I only know that xgraph generates graph. I am interested to draw graph for trace file using xgraph, Is it possible? bye, Find a mall, hotel or ATM in any part of India. Go to http://in.maps.yahoo.com
[ns] Help me to develop AODV, SAODV implementation/simulation in NS2
Dear friends, I like to develop AODV and SAODV implementation or simulation using NS2. If anybody having any code in NS2 about AODV or SAODV then please reply me. Or if you have any information about same then also reply me. Bye. Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/