Command Reference Guide
58 ● debugging tcp packet 3Com Router 5000 Family and Router 6000 Family
Command Reference
debugging tcp packet
Purpose Use the debugging tcp packet command to enable the debugging of TCP
connection. The number of debugging switches users can enable is limited, that is, at
the same time only a fixed number of debugging switches can be enabled
(combination of task ID and socket ID).
Use the undo debugging tcp packet command to disable the debugging of
TCP connection.
Syntax debugging tcp packet [ task_id socket_id ]
undo debugging tcp packet [ task_id socket_id ]
Parameters task_id
The ID of a task.
socket_id
The ID of a socket.
Example Enable the debugging of TCP connection.
<3Com> debugging tcp packet
<3Com> display debugging
*0.100070-SOCKET-8-TCP PACKET:
1043204051: Input: Co0(5) socketId = 2, state = SYN_SENT,
src = 127.0.0.1:1025, dst = 2.2.2.2:23,
seq = 11084380, ack = 0, optlen = 4, flag = SYN ,
window = 8192
1043204051: Output: Co0(5) SocketId = 2, State = SYN_SENT,
src = 127.0.0.1:1025, Dst = 2.2.2.2:23,
Seq = 11084380, Ack = 0, Datalen = 4, Flag = ACK PSH ,
Window = 8192
1043204051: Retrans: Co0(5) SocketId = 2, State = SYN_SENT,
Src = 127.0.0.1:1025, Dst = 2.2.2.2:23,
Seq = 11084380, Ack = 0, Optlen = 4, Flag = SYN ,
Window = 8192
View This command can be used in the following views:
■ User view