The school project require us to do 4 things:
- implement the TCP 3-way-handshakes (also Initialize sequence numbers randomly and synchronize them during the handshake)
- Implement an adaptive RTO by estimating the RTT using either the Jacobson/Karels or Karn/Partridge algorithms
- Transmit multiple packets before an ACK by using a fixed window size
- Perform connection teardown
I am already stuck at the first task and my code wouldn't respond to my ACK-SYN signal. Any suggestions would help. Thanks!
My code is attached below:
https://pastecode.io/s/uoyb9s79