[ns] [NS ANS] Re: Send and Receive in NS2
Hi Mohammed, I suggest you to read the following blog post to understand how TCP sends packets. http://www.ns2ultimate.com/post/1255914139/tcp-transmitter-in-a-nutshell Best Regards, 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 Mar 9, 2011, at 8:41 AM, Mohammed Alenezi wrote: > > Hi, > > I just want to understand who is responsible for sending the packets in ns2. > In each layer 4 protocol ( TCP or UDP) there is a function for send and > receive. However,I read in other blog http://t-issariyakul.blogspot.com. > -that the function in Agent.cc is the one responsible for sending and > receiving.!!! > > I need to understand the difference. I read the book many times, couldn't > figure out the difference??? > > > Any Help > > -- > Regards, > Moe >
Re: [ns] Drop packet!!!!!
Hi Mohammed, That's correct. Only the object whose class derives from class Connector can call the function drop(p). However, there are a lot of class like this, e.g., queues, agents. Best Regards, 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 Mar 9, 2011, at 8:17 AM, Mohammed Alenezi wrote: > > Hi, > I've been reading the below blog : > http://t-issariyakul.blogspot.com/search/label/NS2?updated-max=2010-03-08T02%3A02%3A00-07%3A00&max-results=20 > > I found this sentence "Note that "drop(p)" is a function of class Connector, > and therefore must be invoked from within the scope of class Connector." > > Does this mean I can't call the drop from outside connector. In other words, > If I want to call drop I have to create object from connector class then > call drop??? > > > Please help me on this issue? > > -- > Regards, > Mohd. >
[ns] increase queue delay
Hi all, Is there a way (or a module or a website I can look at it) to increase the delay of queue at a node by a specific value? If I increase the delay of the queue, will packets timestamps reflect that (meaning packets will arrive later)? Thank you
[ns] Can anyone help me in executing the following program with 30 nodes?
There was a hardware failure in my system. So i cant execute the above code in my system. please someone execute the above code using ns-2 and send me the trace file and nam file which r created during the execution of the program. Its urgent i hv to submit the report next week. I hv attached the program(dymo30.tcl), dymoum package and Dymoum_ns-2.34_v0.3.patch along with this mail. Please i request u to execute the code and send the trace file and nam file..
[ns] Which Component of ns access traffic files
Hi All I want to know which component or cc file of NS access the traffic files. for example mobilenode.cc or other ??? Thanks
Re: [ns] Debugging ns code (.cc files) with print statements
printf works! I had two copies of ns and I made changes to one of them. The PATH variable was pointing to the original ns folder. Whereas, I wanted to test the result of the changes made in the ns-copy folder. When I gave, ns file1.tcl, the original ns pointed out by PATH was being used. Hence, I could not see the effect of the changes although I was able to compile them successfully. To see which ns folder is being used, issue the command "which ns". To use the ns other than the default one pointed by PATH, traverse to the new ns folder and to the location in which the tcl file is located and give "../../ns file1.tcl" Thanks to my teachers who helped me by pointing out my mistake. --- On Thu, 17/3/11, Ns Learner wrote: From: Ns Learner Subject: Re: [ns] Debugging ns code (.cc files) with print statements To: "pedro chaparro" , ns-users@ISI.EDU Received: Thursday, 17 March, 2011, 2:27 PM Thanks, Pedro. I used printf in tcp.cc file inside the methods that are usually called. But, I don't get any statements printed on the console. What could be the mistake? Thanks. --- On Thu, 17/3/11, pedro chaparro wrote: From: pedro chaparro Subject: Re: [ns] Debugging ns code (.cc files) with print statements To: "Ns Learner" Received: Thursday, 17 March, 2011, 4:42 AM u can use printf, bu cout should works too!!! 2011/3/14 Ns Learner Hello, I am trying to debug ns code (.cc files) with print or cout statements. With cout, I get this error message: error: ISO C++ forbids declaration of ‘cout’ with no type error: expected ‘;’ before ‘<<’ token I tried inserting using namespace std and it still gives me an error message. Print or printf statements simply do not print message on to my console. Can somebody help? Thanks :D -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain