display ipv6 tcp verbose

Use display ipv6 tcp verbose to display detailed information about IPv6 TCP connections.

Syntax

display ipv6 tcp verbose [ slot slot-number [ pcb pcb-index ] ]

display ipv6 tcp verbose [ chassis chassis-number slot slot-number [ pcb pcb-index ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

pcb pcb-index: Displays detailed information about IPv6 TCP connections of the specified PCB. The value range for the pcb-index argument is 1 to 16.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays detailed information about IPv6 TCP connections for all cards.

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays detailed information about IPv6 TCP connections for all cards.

Examples

# Display detailed information about an IPv6 TCP connection.

<Sysname> display ipv6 tcp verbose
TCP inpcb number: 1(tcpcb number: 1)

 Location: Slot: 6 Cpu: 0
 NSR standby: N/A
 Creator: bgpd[199]
 State: ISCONNECTED
 Options: N/A
 Error: 0
 Receiving buffer(cc/hiwat/lowat/state): 0 / 65536 / 1 / N/A
 Sending buffer(cc/hiwat/lowat/state): 0 / 65536 / 512 / N/A
 Type: 1
 Protocol: 6
 Connection info: src = 2001::1->179 ,  dst = 2001::2->4181
 Inpcb flags: N/A
 Inpcb extflag: N/A
 Inpcb vflag: INP_IPV6
 Hop limit: 255 (minimum hop limit: 0)
 Connection state: ESTABLISHED
 TCP options: TF_REQ_SCALE TF_REQ_TSTMP TF_SACK_PERMIT TF_NSR
 NSR state: READY(M)
 Send VRF: 0x0
 Receive VRF: 0x0

Table 55: Command output

Field

Description

TCP inpcb number

Number of IPv6 TCP Internet PCBs.

tcpcb number

Number of IPv6 TCP PCBs (excluding PCBs of TCP in TIME_WAIT state).

Creator

Task name of the socket. The process number is in the square brackets.

State

Socket state.

Options

Socket options.

Error

Error code.

Receiving buffer(cc/hiwat/lowat/state)

Displays receive buffer information in the following order:

  • cc—Used space.

  • hiwat—Maximum space.

  • lowat—Minimum space.

  • state—Buffer state:

    • CANTSENDMORE—Unable to send data to the peer.

    • CANTRCVMORE—Unable to receive data from the peer.

    • RCVATMARK—Receiving tag.

    • N/A—None of the above states.

Sending buffer(cc/hiwat/lowat/state)

Displays send buffer information in the following order:

  • cc—Used space.

  • hiwat—Maximum space.

  • lowat—Minimum space.

  • state—Buffer state:

    • CANTSENDMORE—Unable to send data to the peer.

    • CANTRCVMORE—Unable to receive data from the peer.

    • RCVATMARK—Receiving tag.

    • N/A—None of the above states.

Type

Socket type:

  • 1SOCK_STREAM. This socket uses TCP to provide reliable transmission of byte streams.

  • 2SOCK_DGRAM. This socket uses UDP to provide datagram transmission.

  • 3SOCK_RAW. This socket allows an application to change the next upper-layer protocol header.

  • N/A—None of the above types.

Protocol

Number of the protocol using the socket. 6 represents TCP.

Connection info

Connection information, including source IPv6 address and port number, and destination IPv6 address and port number.

Inpcb flags

Flags in the Internet PCB:

  • INP_RECVOPTS—Receives IPv6 options.

  • INP_RECVRETOPTS—Receives replied IPv6 options.

  • INP_RECVDSTADDR—Receives destination IPv6 address.

  • INP_HDRINCL—Provides the entire IPv6 header.

  • INP_REUSEADDR—Reuses the IPv6 address.

  • INP_REUSEPORT—Reuses the port number.

  • INP_ANONPORT—Port number not specified.

  • INP_PROTOCOL_PACKET—Identifies a protocol packet.

  • INP_RCVVLANID—Receives the VLAN ID of the packet. Only UDP and RawIP support this flag.

  • IN6P_IPV6_V6ONLY—Only supports IPv6 protocol stack.

  • IN6P_PKTINFO—Receives the source IPv6 address and input interface of the packet.

  • IN6P_HOPLIMIT—Receives the hop limit.

  • IN6P_HOPOPTS—Receives the hop-by-hop options extension header.

  • IN6P_DSTOPTS—Receives the destination options extension header.

  • IN6P_RTHDR—Receives the routing extension header.

  • IN6P_RTHDRDSTOPTS—Receives the destination options extension header preceding the routing extension header.

  • IN6P_TCLASS—Receives the traffic class of the packet.

  • IN6P_AUTOFLOWLABEL—Attaches a flow label automatically.

  • IN6P_RFC2292—Uses the API specified in RFC 2292.

  • IN6P_MTU—Discovers differences in the MTU size of every link along a given data path. TCP does not support this flag.

  • INP_RCVMACADDR—Receives the MAC address of the frame.

  • INP_SYNCPCB—Waits until Internet PCB is synchronized.

  • N/A—None of the above flags.

Inpcb extflag

Extension flags in the Internet PCB:

  • INP_EXTRCVPVCIDX—Records the PVC index of the received packet.

  • INP_RCVPWID—Records the PW ID of the received packet.

  • INP_EXTDONTDROP—Does not drop the received packet.

  • INP_EXLISTEN—Listening socket.

  • N/A—None of the above flags.

Inpcb vflag

IP version flags in the Internet PCB:

  • INP_IPV4—IPv4 protocol.

  • INP_IPV6—IPv6 protocol.

  • INP_IPV6PROTO—Creates an Internet PCB based on IPv6 protocol.

  • INP_TIMEWAIT—In TIMEWAIT state.

  • INP_ONESBCAST—Sends broadcast packets.

  • INP_DROPPED—Protocol dropped flag.

  • INP_SOCKREF—Strong socket reference.

  • INP_DONTBLOCK—Do not block synchronization of the Internet PCB.

  • N/A—None of the above flags.

Hop limit

Hop limit in the Internet PCB.

Connection state

TCP connection state:

  • CLOSED—The server receives a disconnection request's reply from the client.

  • LISTEN—The server is waiting for connection requests.

  • SYN_SENT—The client is waiting for the server to reply to the connection request.

  • SYN_RCVD—The server receives a connection request.

  • ESTABLISHED—The server and client have established connections and can transmit data bidirectionally.

  • CLOSE_WAIT—The server receives a disconnection request from the client.

  • FIN_WAIT_1—The client is waiting for the server to reply to a disconnection request.

  • CLOSING—The server and client are waiting for peer's disconnection reply when receiving disconnection requests from each other.

  • LAST_ACK—The server is waiting for the client to reply to a disconnection request.

  • FIN_WAIT_2—The client receives a disconnection reply from the server.

  • TIME_WAIT—The client receives a disconnection request from the server.

TCP options

TCP options:

  • TF_MD5SIG—Enables MD5 signature.

  • TF_NODELAY—Disables the Nagle algorithm that buffers the sent data inside the TCP.

  • TF_NOOPT—No TCP options.

  • TF_NOPUSH—Forces TCP to delay sending any TCP data until a full sized segment is buffered in the TCP buffers.

  • TF_BINDFOREIGNADDR—Binds the peer IP address.

  • TF_NSR—Enables TCP NSR.

  • TF_REQ_SCALE—Enables the TCP window scale option.

  • TF_REQ_TSTMP—Enables the time stamp option.

  • TF_SACK_PERMIT—Enables the TCP selective acknowledgement option.

  • TF_ENHANCED_AUTH—Enables the enhanced authentication option.

NSR state

State of the TCP connections.

Between the parentheses is the role of the connection:

  • M—Main connection.

  • S—Standby connection.

Send VRF

VRF from which packets are sent.

Receive VRF

VRF from which packets are received.