debugging tcp event

Function

The debugging tcp event command enables debugging of TCP events and outputs debugging information.

The undo debugging tcp event command disables debugging of TCP events.

By default, the debugging of TCP events is disabled.

Format

debugging tcp event [ local-ip inpLAddr ] [ local-port inpLPort ] [ remote-ip inpFAddr ] [ remote-port inpFPort ] [ socket-id sofd ]

undo debugging tcp event [ local-ip inpLAddr ] [ local-port inpLPort ] [ remote-ip inpFAddr ] [ remote-port inpFPort ] [ socket-id sofd ]

Parameters

Parameter Description Value
local-ip inpLAddr

Specifies the IPv4 address of the local end.

The value is in dotted decimal notation.

local-port inpLPort

Specifies the TCP port number of the local end.

The value is an integer ranging from 0 to 65535.

remote-ip inpFAddr

Specifies the IPv4 address of the remote end.

The value is in dotted decimal notation.

remote-port inpFPort

Specifies the TCP port number of the remote end.

The value is an integer ranging from 0 to 65535.

socket-id sofd

Specifies the Socket ID.

The value is an integer ranging from 0 to 2147418111.

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ip-stack debug

Usage Guidelines

Usage Scenario

The debugging tcp event command enables debugging of TCP events and outputs debugging information so that you can detect the status of a TCP packet when the TCP packet is abnormal. For example, to detect change of TCP status change during establishment of a three-way handshake or closing of a four-way handshake, run the display tcp event command.

The debugging tcp command enables debugging of TCP packets and outputs debugging information about the TCP packets sent and received by the host. For example, to detect interworking between BGP connections and protocol interworking between MPLS LDP neighbors, run the debugging tcp command.

Example

# Enable debugging of TCP events, detect that the host initiates a three-way handshake and the TCP status changes from CLOSED to SYN_SENT.
<HUAWEI> debugging tcp event
Aug 25 2011 09:44:49 HUAWEI %%01SOCKET/7/debug_tcp_event(d):CID=0x80652795;
TCP state changed from [CLOSED] to [SYN_SENT]
(Time = 2011-8-25:9:44:49:684 ,Task name = XXXX ,Pid = 0x6503F6, Socket ID = 1)
Table 1 Description of the debugging tcp event command output
Item Description
Socket ID

Socket ID.

Pid

Path ID.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >