I use libpcap to send some captured traffic to ids for testing, but I don"t have a real machine that responds to this traffic, that is, TCP packets don"t have a ACK
response confirmation.
uses the function pcap_sendpacket
. After sending it for more than ten seconds in a row, it starts stuttering. I grabbed the packet and looked at the network situation. All the packets that did not respond before were retransmitted TCP Retransmission
, and a large number of resending packets eventually led to inefficiency.
I read the value of / proc/sys/net/ipv4/retries1
, but there is a minimum limit. I want to extend the time to resend the package by setting RTO, but it is not successful. I would like to ask if there is a good solution.