MITM on TCP with ettercap.
Hello forum users,
I am a student and performing experiments for a course at my university. I have ubuntu 9.04; and installed ettercap (GTK) and wireshark. I am connecting my laptop with an ethernet cable to a switched network.
The goal is to analyse the congestion control mechanism of TCP, and in particular its reaction to congestion notifications (dupl ACKs, or timeout).
To simulate network reordering (and its impact on TCP) or duplicates (generated by network), I need to reorder packets on transit, e.g., sent by a server, so that the receiver (client) identifies a gap in the sequence numbers which will trigger dupl ACK.
I am using ettercap to capture the TCP segments. I need to delay every e.g., i packets, and to let packet i+1 to go through (for instance by duplicating it, and then transmitting the duplicate, once packet i is sent, to release all the i+1 of packets). As a result, the receiver receives packet i+1, and then packets 1,...,i,i+1. If i>3 the receiver will generate three dupl ACKs and the transmission rate at the sender will be halved.
I did not find an info on how to delay the packets using ettercap. Does ettercap provide such a functionality (or is there an equivalent ettercap filter)? There is also an option to execute a shell command in ettercap filter, how can I accomplish this with a filter?
Any help is highly appreciated.
Thanks in advance.
We do not support Ubuntu. No matter what you installed into /onto it.