Interview Prep/Networking/Network Models, TCP, UDP & Ports

What does a TCP RST mean and when do you see it?

BeginnerConceptNetwork Models, TCP, UDP & Ports
Answer

RST abruptly aborts a connection. You see it when you connect to a port with no listener (the kernel answers SYN with RST, giving Connection refused), when a firewall or load balancer rejects or drops state, when an application closes a socket with unread data, or when an idle connection exceeds a middlebox timeout and the next packet arrives.

Connection reset by peer in app logs usually means the other side or something in the path sent RST.

All Networking questions Roadmap: Networking for DevOps

More on Network Models, TCP, UDP & Ports