Re: [ns] Flow-aware networking
Hi, Some time ago somebody sent this post to ns-users. I am trying to build a flow table. Each node send data (UDP or TCP) to other nodes. The simulation now is very small, just 5 or 6 nodes and I want to make a file with the information of flows over time. Basically what it is said in the e-mail: source_address, destination_address, source_port, destination_port, flowId, number of packets, avg_packet size I sorted how to get and to print in a file source_address, destination_address,flow_id, number of packet and avg packet size, but I cannot find how to get and to print the port number. Any idea in how to do get the port number of the TCP or UDP connection (flow) and to print it in a file? Thanks, -as > Hi, > I'm working with ns2 to make a node whose traffic control is based on > conception of flow-aware networking > (http://perso.rd.francetelecom.fr/oueslati/XP.html). I know how to build > Queue class in c++ and how to include it in ns2. It is not a problem. The > problem is that I need a value of intensity of arriving packet flow. The flow > is identified by [src address, dst address, src port, dst port, type of > transport protocol]. I know that when I define source I have to specify the > intensity of packet emission. I know this, but I want the node to measure the > arriving packet intensity (of identified flow) and return the value as a > parameter to make some calculations. I was wondering about building a buffer > where I could store 2 packets and estimate time between them, but it is not > good solution when you have 1000 sources and you have to store 2000 packets > in the system to account 1000 arrival intensities... is anyone have a idea, > how to do it, how to build a class like this? I > don't know but maybe ns2 has some tools to measure this time? I will be very > grateful for help. > With regards, Marek > > - > Get the free Yahoo! toolbar and rest assured with the added security of > spyware protection. >
[ns] Flow-aware networking
Hi, I'm working with ns2 to make a node whose traffic control is based on conception of flow-aware networking (http://perso.rd.francetelecom.fr/oueslati/XP.html). I know how to build Queue class in c++ and how to include it in ns2. It is not a problem. The problem is that I need a value of intensity of arriving packet flow. The flow is identified by [src address, dst address, src port, dst port, type of transport protocol]. I know that when I define source I have to specify the intensity of packet emission. I know this, but I want the node to measure the arriving packet intensity (of identified flow) and return the value as a parameter to make some calculations. I was wondering about building a buffer where I could store 2 packets and estimate time between them, but it is not good solution when you have 1000 sources and you have to store 2000 packets in the system to account 1000 arrival intensities... is anyone have a idea, how to do it, how to build a class like this? I don't know but maybe ns2 has some tools to measure this time? I will be very grateful for help. With regards, Marek - Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
[ns] Flow-aware networking
Hi, I'm working with ns2 to make a node whose traffic control is based on conception of flow-aware networking (http://perso.rd.francetelecom.fr/oueslati/XP.html). I know how to build Queue class in c++ and how to include it in ns2. It is not a problem. The problem is that I need a value of intensity of arriving packet flow. The flow is identified by [src address, dst address, src port, dst port, type of transport protocol]. I know that when I define source I have to specify the intensity of packet emission. I know this, but I want the node to measure the arriving packet intensity (of identified flow) and return the value as a parameter to make some calculations. I was wondering about building a buffer where I could store 2 packets and estimate time between them, but it is not good solution when you have 1000 sources and you have to store 2000 packets in the system to account 1000 arrival intensities... is anyone have a idea, how to do it, how to build a class like this? I don't know but maybe ns2 has some tools to measure this time? I will be very grateful for help. With regards, Marek - Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.