Running Ubuntu.
I have machine A -> machine B (one-way connection from A to B) . Machine A goal is to forward tcp packets to machine B (it dosnt has tcp connection with machine B. it just forward tcp packets that it get from other machines) In machine A there are c++ code that collect some tcp packets based on business rules and write them by raw socket to machine B.
I want to do performance test for my code on machine A, so in order to do this I need to send massive TCP packets to machine A my c++ code will forward them to B. At the end i will validate that all packets were revived in machine B. Do you have any recommendation for tools? tools that will simulate massive send and tools that will help in the assertions (can be assert by amount, checksum, any other idea)
I think on upload big file file to A dump the upload traffic and than replay it with tcpreplay (i will create 100 threads that replay the same upload dump in order to have massive tcp stream). In order to validate i will analyze the tcpdump on the receiver to check if its has the same excepted amount of packets as sent.
This is not about tcp as protocol only generate real tcp packets (as structure) send massive of them and validate by compare payload or amount or any other way. Any advice?