Get your hands dirty

Create a TCP Server on port 8080

Create a TCP Client

  • telnet 8080 (intall on mac brew install telnet) connects to localhost:8080 over TCP. A new socat process should be created

Create TCP Server in NodeJS

TCP Slow Start

  • Only a small amount of data is transferred to test the water at the start of the communication. If data is delivered smoothly, TCP will gradually increase the amount of data

Avoid network congestion

If a particular network path is congested and we dump a lot of data to the data. The congested network path will result in a lot of packet loss, and this incurs extra time to resend the network packets

Initial lag

A slower startup speed means accessing new resources like a new web page will appear laggy