Not able to understand and map output of /proc/net/tcp

Solution 1:

It's detailed in CPANs Linux::Proc::Net::TCP module page:

 1000        0 54165785 4 cd1e6040 25 4 27 3 -1
    |        |    |     |    |     |  | |  |  |--> slow start size threshold, 
    |        |    |     |    |     |  | |  |      or -1 if the threshold
    |        |    |     |    |     |  | |  |      is >= 0xFFFF
    |        |    |     |    |     |  | |  |----> sending congestion window
    |        |    |     |    |     |  | |-------> (ack.quick<<1)|ack.pingpong
    |        |    |     |    |     |  |---------> Predicted tick of soft clock
    |        |    |     |    |     |              (delayed ACK control data)
    |        |    |     |    |     |------------> retransmit timeout
    |        |    |     |    |------------------> location of socket in memory
    |        |    |     |-----------------------> socket reference count
    |        |    |-----------------------------> inode
    |        |----------------------------------> unanswered 0-window probes
    |---------------------------------------------> uid