NETSTAT and TCP states

  • Thread starter Thread starter Ondrej Sevecek
  • Start date Start date
O

Ondrej Sevecek

Hello,

does anyone know simple method how to demonstrate various TCP states
(FIN-WAIT, CLOSE-WAIT, ...) with Netstat? Common states are LISTENING,
ESTABLISHED and TIME-WAIT, but I would like to show my students the TCP
connection phases step by step (other states occure usually quite quickly).

So I search for some application or script running through all the states
such as OPEN, CLOSE, ... on both sides of the connection. Pretty common case
:-) but I need one that wait somehow for my explicit confirmation (not
neccessary directly) before each step.

Don't you know about any?

Ondra.
 
Unfortunately you can't control all the transitions through the TCP state
machine. What you might want to consider is to use netmon to capture a short
lived TCP connection. With the captured file and netmon you can show the
students the flags on the TCP header, the sequence and ack numbers and how
that moves a connection through the diagram in RFC 793.
 
Back
Top