[ns] Mobile Node Turns off at wrong time instance
Hello, I face a problem with NS2 Mobile Nodes. I have a file in which i specify when individual nodes turn on / off and this file is passed as input in the NS2 simulation. Some mobile nodes turn off at different time instances than the ones specified in this file and this results to files getting dropped. Has anyone experienced this before? What do you suggest? Thanks in advance. -- _ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy _
Re: [ns] Mobile Node Turns off at wrong time instance
Hi Mubashir, Thanks for the quick response. I have 4 files: 1) the simulation parameters TCL file , 2) the mobility file, 3) the node's on/off file 4) the data file (says when nodes send some data) I make sure that each mobile node sends some data in the network when it is ON. In some cases i see some data are lost simply because when the node tries to send something it's energy model is OFF. I always perform the following check before sending something: if ( true == thisNode-energy_model()-node_on() ){ send_data } thanks. Mubashir Rehmani wrote: Hi, But the question is that how you made synchronize your nodes to switch to on/off states with the data you are providing with the file? Regards Mubashir Husain Rehmani 2009/10/12 Nicholas Loulloudes loulloude...@cs.ucy.ac.cy mailto:loulloude...@cs.ucy.ac.cy Hello, I face a problem with NS2 Mobile Nodes. I have a file in which i specify when individual nodes turn on / off and this file is passed as input in the NS2 simulation. Some mobile nodes turn off at different time instances than the ones specified in this file and this results to files getting dropped. Has anyone experienced this before? What do you suggest? Thanks in advance. -- _ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy http://cs.ucy.ac.cy _ -- Mubashir Husain Rehmani -- _ Nicholas Loulloudes PhD Candidate, High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy Web: www.cs.ucy.ac.cy/~nickl _
Re: [ns] GPRS simulation in NS-2
Actually GPSR is a geographic routing protocol designed for mobile and more recently vehicular networks. On the other hand GPRS (General Packet Radio Service) is a packet oriented mobile data service for GSM communications. So there is quite a difference among the two. Mats Folke wrote: Hi! There is a small but not insignificant difference between GPRS and GPSR. These guys seem to have done simulations with GPRS: http://ieeexplore.ieee.org/Xplore/login.jsp?url=http%3A%2F%2Fieeexplore.ieee.org%2Fiel5%2F9581%2F30299%2F01391808.pdf%3Farnumber%3D1391808authDecision=-203 If you want other cellular protocols you can search for EURANE which has UMTS and HSDPA. Good luck! Mats Folke Swaroop Shere wrote: Please refer this link... http://www.cs.binghamton.edu/~kliu/research/ns2code/index.html#gpsr regards, Swaroop --- On Tue, 2/6/09, Nicholas Loulloudes loulloude...@cs.ucy.ac.cy wrote: From: Nicholas Loulloudes loulloude...@cs.ucy.ac.cy Subject: [ns] GPRS simulation in NS-2 To: ns-users@ISI.EDU Date: Tuesday, 2 June, 2009, 8:06 PM Hello, Do you know if it is possible to simulate GPRS or any other cellular data protocol in NS-2.33? Thanks in advance. - Nicholas. -- _ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy _ Explore and discover exciting holidays and getaways with Yahoo! India Travel http://in.travel.yahoo.com/ -- _ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy _
[ns] GPRS simulation in NS-2
Hello, Do you know if it is possible to simulate GPRS or any other cellular data protocol in NS-2.33? Thanks in advance. - Nicholas. -- _ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy _
[ns] ns-2.33 Scheduler loosing events
Hi all, Is it possible the ns-2.33 scheduler is losing events? I generated aprox. 7000 events in a TCL source file and a lot of those events when given to the scheduler are lost. This is a code snippet: void ProtName::create_Pkt(Packet* p){ /* * Create a packet with source and destination header */ // Schedule it for later Transmission Scheduler::instance().schedule(target_, p2, 0.0); } Using printf's i can see the Scheduler correctly receives the packet, but later on there is no other trace of it. Any suggestions? Is there a limit to the events the scheduler can handle? Thanks in advance. -- _ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy
[ns] ns-2.33 Scheduler loosing events
Hi all, Is it possible the ns-2.33 scheduler is losing events? I generated aprox. 7000 events in a TCL source file and a lot of those events when given to the scheduler are lost. This is a code snippet: void ProtName::create_Pkt(Packet* p){ /* * Create a packet with source and destination header */ // Schedule it for later Transmission Scheduler::instance().schedule(target_, p2, 0.0); } Using printf's i can see the Scheduler correctly receives the packet, but later on there is no other trace of it. Any suggestions? Is there a limit to the events the scheduler can handle? Thanks in advance. -- _ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy
[ns] TCL string bind...is it possible?
Hi all, I want to pass to my C++ code a string from the TCL script i use for configuring the NS-2 simulation. Is this possible? I saw that there are bind methods in the tclcl.h file for doubles and integers but not for chars. Thanks in advance. -- _ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus
Re: [ns] Understanding Mobile Nodes movement in NS2
Nicholas Loulloudes wrote: Hello all, I am trying to understand how mobile nodes in NS-2 move and i would like any possible help. Assuming that i have the following mobility scenario where i am interested for Node 49: $node_(49) set X_ 696220.00 $node_(49) set Y_ 260720.00 $node_(49) set Z_ 0.0 $ns_ at 7.0 $node_(49) setdest 696193.8102 261479.3690 8.1233 .. .. /* Other Node movements */ .. .. $ns_ at 41.0 $node_(49) setdest 696269.3069 261551.7842 8.7203 While reading the Nam trace file i can see that at Time= 27.0 , node 49 is at the following coordinates ( 696087.18 , 261285.68 ). These coordinates are no where included in the mobility scenario. How did ns-2 obtain these coordinates? Do you know how ns-2 implements node movements? Is there an algorithm for this? Thanks in advance. Any suggestions? -- _ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy
[ns] Help on how to create a Trace object in TCL.
Hello all, Recently i have implemented a routing protocols for MANET's in NS-2. Know i would like somehow to get a dump of the routing table at some specific time intervals. I have defined a print function in routing table class of based on a tutorial (http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf) i saw on the Internet. void myproto_rtable::print(Trace* out) { .. } This function is invoked through a TCL command for example: $ns_ at 15.0 [$node_ agent 255] print_rtable I would like to know how to instantiate a new Trace object in TCL in order to dump the routing table in a seperate trace file. So far i have managed to dump the routing table in the trace-all file. Thanks in advance. -Nicholas. -- _ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy
[ns] Recording the time a flow monitor exceeds a specific value
Hello, Is there any way in NS2 i can record the time the value of nlost_ of a specific flow monitor exceeds a certain value? Thank you. -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] How to Send only ONE packet ???
Hello, Is there a way i can send from one node to an other node only ONE UDP packet? Best Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] How to check if a specific flow goes through a node??
Hello, Is there any way i can find out if packets of a specific flow pass through a specific node? Best Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Clearing fmonitor statistics.
Hello, I have created a flow monitor for a link as follows: set nlink_0_1 [$ns link $n(0) $n(1)] set fmonitor_0_1 [$ns makeflowmon Fid] $ns attach-fmon $nlink_0_1 $fmonitor_0_1 In a procedure i do the following : set fcla_0_1 [$fmonitor_0_1 classifier] set f(0) [$fcla_0_1 lookup auto 0 0 1] and then i check if { f(0) != } it means that packets with flowid pass through link n(0) - n(1). Now when this packets are re-routed and do no pass through link n(0) - n(1) the f(0) variable does not become empty. Is there any way i can clear this flow monitor statistics when i reroute my packets? Best Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Implementing via command in C++
Hello, I want to implement a via command in my NS which will specify which will be the next hop a packet will take enroute to destination. I want to do this because i want to specify different hops for different packet flows. I was thinking having something like this. $ns connect $udp0 $null0 via n(2) Can someone point me to the write way from where should i start my research for doing this? Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
Re: [ns] R: Calculating Mean end-to-end delay.
Thank you Marco, i think the problem was tha t i didn't multiply with the previous number of pkts. Regards. On 7/17/06, Marco Fiore [EMAIL PROTECTED] wrote: Nicholas, I think the right way would be: mean = [mean * (total_pkts- 1) + curr_pkt_delay] / total_pkts where total_pkts represents the number of packets received, including the current one (i.e., that determining the curr_pkt_delay contribution). Regards, Marco Messaggio originale Da: [EMAIL PROTECTED] Data: 17- lug-2006 3.06 AM A: ns-users@ISI.EDU Ogg: [ns] Calculating Mean end- to-end delay. Hello, i have created an agent which allows me to record the end-to-end delays of packets arriving at a specific node. What i want to do is to calculate the mean end-to-end delay at specific time intervals and later on output it on a trace file. To calculate the mean end-to-end delay i use the following: mean= (mean+curr_pkt_delay)/total_pkts. I do this every time a new packet arrives. Is this the correct way of calculating mean end-to-end delay or i am totally wrong here? Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science. -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Calculating Mean end-to-end delay.
Hello, i have created an agent which allows me to record the end-to-end delays of packets arriving at a specific node. What i want to do is to calculate the mean end-to-end delay at specific time intervals and later on output it on a trace file. To calculate the mean end-to-end delay i use the following: mean=(mean+curr_pkt_delay)/total_pkts. I do this every time a new packet arrives. Is this the correct way of calculating mean end-to-end delay or i am totally wrong here? Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Getting an Undefined reference to: ERROR while doing make
Hello, I have added two virtual functions in agent.h and app.h which i use in a new UDP agent and UDP application that i have created. I have added the function - virtual void recv_msg(int nbytes, int id, double sendtime) in app.h - virtual void sendmsg(int nbytes, int pkt_id, double sendtime) in agent.h When i try to compile ns2.29 i do the following: 1) make clean 2) make depend 3) make During the make at the end i get several error saying Undefined reference to: Undefined reference to Application::recv_msg(int, int, double) Undefined reference to Agent::sendmsg(int, int, double) What i am doing wrong here? Any help would be greatly appreciated. Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
Re: [ns] Creating a UDP relay agent
Anyone who can give me a hint on the above please?? On 7/8/06, Nicholas Loulloudes [EMAIL PROTECTED] wrote: Hello, I am trying to create a UDP relay agent in C++ which will simply copy all incoming packets on an intermediate node and forward them from the outgoing interface to the next node. I do not want to create an application which will sit on top of this agent, i just want only this single UDP agent on certain nodes. I have run into a problem. In UDPrelay::sent() function of my relay agent i want to forward all the pkts by using the target_-recv(pkt); The problem is that when i compile my c++ file and run my simulation i get a segmentation fault probably because i have not declared a UDPrelay::send() function in my UDP agent. How is it possible to send the packet to the next node without using the target_ method ?? Any help would be extremely appreciated. Thank you in advanced.. -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science. -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Creating a UDP relay agent
Hello, I am trying to create a UDP relay agent in C++ which will simply copy all incoming packets on an intermediate node and forward them from the outgoing interface to the next node. I do not want to create an application which will sit on top of this agent, i just want only this single UDP agent on certain nodes. I have run into a problem. In UDPrelay::sent() function of my relay agent i want to forward all the pkts by using the target_-recv(pkt); The problem is that when i compile my c++ file and run my simulation i get a segmentation fault probably because i have not declared a UDPrelay::send() function in my UDP agent. How is it possible to send the packet to the next node without using the target_ method ?? Any help would be extremely appreciated. Thank you in advanced.. -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Calculatiing Packet Queueing Delay
Hello, Is is possible to trace the queueing delay of packets from a specific flow as certain nodes? Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Keep track of nodes a packet passes through
Hello, is there a way in NS2 to keep track all the nodes a packet passes through en-route to destination? Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
Re: [ns] Applying Saved Layout in Nam
Anyone can give me a help on the above topic? Regards, On 6/26/06, Nicholas Loulloudes [EMAIL PROTECTED] wrote: Hello, I have created a topology in ns2 and adjusted it's layout in NAM as it suits me. I have now saved this layout in nam using the Save Layout function provided. Is it possible to apply this specific layout to the respective tcl file everytime i am loading it ??? Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science. -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Count node neighbors
Hello, i know in ns2 you can find the neighbors of each node by using [$node neighbors]. Is it possible to count how many neighbors a node has? The reason i want to do this is because i need to apply a TCL script regardless to the topology i create. Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
Re: [ns] Forwarding packets to an adjacent node
Hello Varrian, Thanks for the code. Which is the main udp you are referring to? How will packets be copied from the sink to the source (assuming i have a single source/sink agent) and then retransmitted to n2? Thank you. On 6/27/06, Varrian Hall [EMAIL PROTECTED] wrote: Hi, I think the only difference in udp and udpsink is the sink has a receive function that frees the packet where the source udp may not have a receive function. If the source has a receive it's probably to receive an ack back from the sink then it frees the packet. Therefore, to use the same udp for source and sink you will have to add those receive and/or other functions in the sink to the main udp, then you can use this new udp as a source and sink. I attached both cc and header file. Ignore the accounting and rate calculation using scaling unless you're interested. The link below has more info. http://nile.wpi.edu/NS/new_app_agent.html later, Varrian On 6/27/06, Nicholas Loulloudes [EMAIL PROTECTED] wrote: Varrian , thanks for the prompt responce. You mean i have to modify the UDP C++ class to do so? Do you have any fragment of code you can post to make it more clear? Thanks in advance. On 6/27/06, Varrian Hall [EMAIL PROTECTED] wrote: Yep, You have to create a shared or global class variable within the application that is attached to the agent. Create a app_recv and a app_fwd application and attach to udp agent. Attach both udp agents to node 1. When agent_recv gets the packet and sends up to the app where it saves the pkt data, now agent_fwd can access same global class and send to node 2. In my scenario, I modified UDP to UDPxx to act as both a source and sink. I then attached this udp to all nodes. later, Varrian On 6/26/06, Nicholas Loulloudes [EMAIL PROTECTED] wrote: Hello, I have three nodes in ns2 (n0-n1-n2). n0 is connected to n1 and n1 is connected to n2. I have created a UDP agent on n0 and a UDP sink on n1 to send some packets. Is there a way the packets received from n1 to be forwarded to n2??? I don't want to connect n0 to n2just only forward packets of a specific flow ton n2 from n1 Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science. -- As a leader you should learn like you'll live forever and live like you'll die tomorrow. Either way, you're covered. Dr. John C. Maxwell -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science. -- As a leader you should learn like you'll live forever and live like you'll die tomorrow. Either way, you're covered. Dr. John C. Maxwell -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] How to create hardware interfaces on nodes
Hello.. Is it possible to create hardware interfaces on nodes so i can transmit and receive packets through different interfaces? Thank you. -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Applying Saved Layout in Nam
Hello, I have created a topology in ns2 and adjusted it's layout in NAM as it suits me. I have now saved this layout in nam using the Save Layout function provided. Is it possible to apply this specific layout to the respective tcl file everytime i am loading it ??? Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Forwarding packets to an adjacent node
Hello, I have three nodes in ns2 (n0-n1-n2). n0 is connected to n1 and n1 is connected to n2. I have created a UDP agent on n0 and a UDP sink on n1 to send some packets. Is there a way the packets received from n1 to be forwarded to n2??? I don't want to connect n0 to n2just only forward packets of a specific flow ton n2 from n1 Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] TCL variable substitution problem
Hello, I have the following problem regarding TCL variable substitution I have the following code in ns2: set Appl_udp_0_1 [new Agent/UDP] $ns attach-agent $n(0) $Appl_udp_0_1 $Appl_udp_0_1 set class_ 1 where the first number in $Appl_udp_0_1 (i.e 0) characterizes the node the UDP agent is running and the second number (ie. 1) the flow id. In a procedure i have the following parameters proc test { src flowid} { global Appl_udp_$src_$flowid } My problem is that TCL takes as variable the $src_ (including the _ character) and as a result shows that a variable $src_ does not exist. Is there a way i can make the variable expression to stop before the _ character ?? Thank you. -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Sending packets from different flows to a destination via two different paths
Hello, I have created two nodes in ns2 which are connected to each other using two links. I have created also two different UDP flows on n0 (source node) to be transmitted to n1 (destination node). Is it possible to have packets belonging to flow 1 routed from one link and packets belonging to flow 2 routed from the other link? Thank you in advance? -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] UDP Agent and Multiple Applications
Hello, In NS2 can a single UDP agent be used for multiple CBR applications? Or is it necesessary for each application to create a new UDP agent? Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
[ns] Path Probing
Hello, I'm totally new to ns2 so please forgive my ignorance. I am trying to creating a path probing script from a source node to destination. Do you know if it is possible to probe simultaneously two paths from a source node to a destination? How it is possible to route one proble through a one path and a second probe through another path? Thank you in advanced Nicholas Loulloudes.