linux - What does the ESTABLISHED indicator mean after running lsof -
i ran command sudo lsof -i -n -p | grep tcp
, wondering if more clarification on output.
specifically, in image:
why have ip:port pointing ip:port , @ label 'established'? confused on means exactly.
established
means tcp connection has completed 3-way handshake. (not sure though whether accept
must have been called). see tcp state diagram.
why have ip:port pointing ip:port , @ itself
that mean have 2 tcp sockets open in process. likely, 1 listens on port 9092, , 1 connected port 57633 listening socket. port 57633 belongs ephemeral port range, i.e. range of ports os automatically assigns sockets call connect
did not call bind
assign specific port.
Comments
Post a Comment