LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to find out dat how many number of packets have travelled in 1 minute in C? (https://www.linuxquestions.org/questions/linux-software-2/how-to-find-out-dat-how-many-number-of-packets-have-travelled-in-1-minute-in-c-940397/)

sowpra 04-18-2012 02:38 AM

How to find out dat how many number of packets have travelled in 1 minute in C?
 
Actually our project is traffic generator via wired networks...!

we are in a module which is traffic generating parameters...where we send packets with different ip,mac addresses and port numbers...!

now we want to know how many bits can be sent in 1 minute including the delay...so that we can enhance the speed of sending the packets by making use even of that delay time....
so that more number of packets can be sent with enhanced speed...!

also there is something like...if the packet size is less...we should be able to send more number of packets than the usual sending...we are completely new

and also i want to know how to add a timer in our program so that we can count how many packets are sent for 1 minute..that is when the timer reaches 60seconds!

chrism01 04-18-2012 07:24 PM

You may find some of the links here highly informative http://www.knowplace.org/pages/howto.../resources.php
These books by Richard Stevens are classics on the subject; your Library should have some/all http://www.kohala.com/start/

Tinkster 04-18-2012 08:40 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


http://www.linuxquestions.org/questi...ackets-940207/


All times are GMT -5. The time now is 01:56 PM.