mtcp-stack / mtcp

mTCP: A Highly Scalable User-level TCP Stack for Multicore Systems
Other
1.98k stars 435 forks source link

set congestion window (cwnd) size #240

Open awaisather opened 5 years ago

awaisather commented 5 years ago

I was looking into the code and i want to set congestion window size manually, so anyone knows where i can set it?

eunyoung14 commented 5 years ago

Congestion window is managed by a variable named cwnd in struct tcp_send_vars (see tcp_stream.h). It's finally referenced when sending packets at FlushTCPSendingBuffer in tcp_out.c. Just search with the keyword cwnd in mtcp/src/ for more details.