I'm doing a network project.
I first create a tcp socket, which is a merely a placeholder.
Then I send tcp many packets by libnet. ISN is captured through tcp 3-way handshake and seq number after is calculated by myself.
Since I don't send packets through system socket, the client/server will keep sending zero length packets indicating next sequence number it expects when receive packets from peer each. This is due to standard.
This can work. But the problem is that speed is slow comparing using udp in the same network.
So I'm wondering, what router will do if it receive packets with different seq numbers, e.g, the 1st packets ISN, the 2nd one seq1(seq>ISN), and 3rd one ISN.
Will router/firewall route everything it meet or will drop packets due do wrong tcp seq number.