This is the case. There are 4 ports. There are thousands of packets. I need assign these packets to these 4 ports (load balancing). The ports are not actual ports. just need to simulate them (variables for example). The order is 1st pkt to 1st port, 2nd to 2nd port, 3rd pkt to 3 rd port, 4th pkt to 4th port, 5th pkt to 1st port, 6pkt to 2nd port.....

i.e round robin.

Then, i need to find avg bit rate on each of the ports for every 5 min window.

The pkts are in .txt file in the format timestamp, source host, destination host, source TCP port, destination TCP port, and number of data bytes (zero for "pure-ack" packets).