debugging udp

Function

The debugging udp ipv6 packet command enables debugging of UDP IPv6 packets and outputs debugging information.

The undo debugging udp ipv6 packet command disables debugging of UDP IPv6 packets.

The debugging udp packet command enables debugging of UDP packets and outputs debugging information.

The undo debugging udp packet command disables debugging of UDP packets.

By default, the debugging of UDP packets is disabled.

Format

debugging udp packet [ src-ip src-address ] [ src-port src-port ] [ dest-ip dest-address ] [ dest-port dest-port ] [ socket-id socket-id ]

debugging udp ipv6 packet [ src-ip src-address6 ] [ src-port src-port ] [ dest-ip dest-address6 ] [ dest-port dest-port ] [ socket-id socket-id ]

undo debugging udp packet [ src-ip src-address ] [ src-port src-port ] [ dest-ip dest-address ] [ dest-port dest-port ] [ socket-id socket-id ]

undo debugging udp ipv6 packet [ src-ip src-address6 ] [ src-port src-port ] [ dest-ip dest-address6 ] [ dest-port dest-port ] [ socket-id socket-id ]

Parameters

Parameter Description Value
src-ip src-address6

Displays packets of the specified source IPv6 address.

The address is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

src-ip src-address

Displays packets of the specified source IPv4 address.

The value is in dotted decimal notation.

src-port src-port

Displays packets of the specified source UDP port number.

The value is an integer ranging from 0 to 65535.

dest-ip dest-address6

Displays packets of the specified destination IPv6 address.

The address is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

dest-ip dest-address

Displays packets of the specified destination IPv4 address.

The value is in dotted decimal notation.

dest-port dest-port

Displays packets of the specified destination UDP port number.

The value is an integer ranging from 0 to 65535.

socket-id socket-id

Displays the data length of a UDP packet.

The value is an integer ranging from 0 to 2147418111.

packet

Debugs a packet.

-

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ip-stack debug

Usage Guidelines

Usage Scenario

The debugging udp ipv6 command enables debugging of IPv6 UDP packets sent and received by the host and outputs debugging information. For example, to detect interworking between BGP 4+ connections, run the debugging udp ipv6 command.

The debugging udp command enables debugging of UDP packets sent and received by the host and outputs debugging information so that you can locate problems. For example, to detect sending and receiving of BFD packets run the debugging udp command.

Example

# Enable debugging of UDP IPv6 packets, detect that the host sends a UDP IPv6 packet.
<HUAWEI> debugging udp ipv6 packet
1 Aug  4 2011 12:14:18 HUAWEI %%01SOCKET/7/debug_udp_packet(d):CID=0x80652793:
UDP6 debug packet information:
380: Output: pid = 6629209,socketid = 17, ifindex = 2,
(Time = 1337310519,src = 2001:db8:1::1, dst = 2001:db8:2::1, 
datalen = 208)
# Enable debugging of UDP packets, detect that the host sends a UDP packet.
<HUAWEI> debugging udp packet
2037-11-24 22:12:46 RT5 %%01SOCKET/7/debug_udp_packet(d):CID=2154103793;
UDP debug packet information:
650: Output: pid = 6620139,socketid = 7209, ifindex = 25,
(Time = 75, src = 10.5.5.5:40000, dst = 10.0.0.2:1, datalen = 76)
Table 1 Description of the debugging udp command output
Item Description
pid

Path ID.

ifindex

Index of an interface.

dst

Destination IP address.

src

Source IP address.

socketid

Socket ID.

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