Command Manual - Network Protocol Quidway S3000 Series Ethernet Switches. Table of Contents



Similar documents
HP 5120 SI Switch Series

Troubleshooting Tools

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

IP Routing Features. Contents

Chapter 11 Network Address Translation

04 Internet Protocol (IP)

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Hands On Activities: TCP/IP Network Monitoring and Management

HP 5820X & 5800 Switch Series Layer 3 - IP Services. Configuration Guide. Abstract

IP address format: Dotted decimal notation:

Transport Layer. Chapter 3.4. Think about

Configuring DHCP Snooping and IP Source Guard

Network layer: Overview. Network layer functions IP Routing and forwarding

Understanding and Configuring NAT Tech Note PAN-OS 4.1

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

Configuring Flexible NetFlow

Chapter 13 Internet Protocol (IP)

Security Technology White Paper

Ethernet. Ethernet. Network Devices

MAC Address Table Attribute Configuration

Network Security TCP/IP Refresher

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

Lecture Computer Networks

ACHILLES CERTIFICATION. SIS Module SLS 1508

LAB THREE STATIC ROUTING

Internet Control Protocols Reading: Chapter 3

NetStream (Integrated) Technology White Paper HUAWEI TECHNOLOGIES CO., LTD. Issue 01. Date

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

8.2 The Internet Protocol

Subnetting,Supernetting, VLSM & CIDR

Homework 3 TCP/IP Network Monitoring and Management

HP A5820X & A5800 Switch Series Network Management and Monitoring. Configuration Guide. Abstract

Monitoring and Analyzing Switch Operation

Introduction to Analyzer and the ARP protocol

Application Protocols for TCP/IP Administration

TCP Performance Management for Dummies

Introduction to IP networking

Network Layer: and Multicasting Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Use MAC-Forced Forwarding with DHCP Snooping to Create Enhanced Private VLANs

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Internet Protocols. Background CHAPTER

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

How do I get to

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

NetFlow/IPFIX Various Thoughts

Networking Test 4 Study Guide

Internet Architecture and Philosophy

Computer Networks/DV2 Lab

- IPv4 Addressing and Subnetting -

IP - The Internet Protocol

Configuring Static and Dynamic NAT Simultaneously

Transport and Network Layer

CSCE 465 Computer & Network Security

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

Technical Support Information Belkin internal use only

Network Protocol Configuration

RARP: Reverse Address Resolution Protocol

IPv6 Diagnostic and Troubleshooting

Configuring CSS Remote Access Methods

NETWORK LAYER/INTERNET PROTOCOLS

Networks: IP and TCP. Internet Protocol

Configuring Static and Dynamic NAT Translation

H3C MSR Series Routers

Configuring the Switch IP Address and Default Gateway

2. IP Networks, IP Hosts and IP Ports

Vanguard Applications Ware IP and LAN Feature Protocols. Firewall

[Prof. Rupesh G Vaishnav] Page 1

Chapter 25 DHCP Snooping

Transport Layer Protocols

Overview of TCP/IP. TCP/IP and Internet

GLBP - Gateway Load Balancing Protocol

Terminal Server Configuration and Reference Errata

Introduction to Cisco IOS Flexible NetFlow

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

Chapter 3 Using Access Control Lists (ACLs)

Computer Networks/DV2 Lab

Configuring Network Security with ACLs

NetFlow Aggregation. Feature Overview. Aggregation Cache Schemes

HOST AUTO CONFIGURATION (BOOTP, DHCP)

Junos OS Support for OpenFlow v1.0 Beta Draft

Configuring NetFlow-lite

IP Filter/Firewall Setup

Network Layer: Address Mapping, Error Reporting, and Multicasting

Firewall Load Balancing

IOS Server Load Balancing

Innominate mguard Version 6

Configuring Switch Ports and VLAN Interfaces for the Cisco ASA 5505 Adaptive Security Appliance

Network Layer: Network Layer and IP Protocol

Understanding Slow Start

Troubleshooting the Firewall Services Module

1000 CCNA Certification Exam Preparation Questions and Answers:

DO NOT REPLICATE. Analyze IP. Given a Windows Server 2003 computer, you will use Network Monitor to view and analyze all the fields of IP.

Troubleshooting IP Routing

Laboratorio 3 Comunicación sincrónica Vía Satélite

IPV6 流 量 分 析 探 讨 北 京 大 学 计 算 中 心 周 昌 令

Understanding Layer 2, 3, and 4 Protocols

Chapter 3 Configuring Basic IPv6 Connectivity

Transcription:

Table of Contents Table of Contents Chapter 1 ARP Configuration Commands... 1-1 1.1 ARP Configuration Commands... 1-1 1.1.1 arp static... 1-1 1.1.2 arp timer aging... 1-2 1.1.3 debugging arp packet... 1-3 1.1.4 display arp...1-4 1.1.5 display arp timer aging... 1-5 1.1.6 reset arp... 1-6 Chapter 2 DHCP-Snooping Configuration Commands... 2-1 2.1 DHCP-Snooping Configuration Commands... 2-1 2.1.1 dhcp-snooping... 2-1 2.1.2 display dhcp-snooping... 2-2 Chapter 3 Access Management Configuration Commands... 3-1 3.1 Access Management Configuration Commands... 3-1 3.1.1 am enable... 3-1 3.1.2 am isolate...3-2 3.1.3 am trap enable... 3-3 3.1.4 am user-bind... 3-3 3.1.5 display am... 3-4 3.1.6 display am user-bind... 3-5 Chapter 4 IP Performance Configuration Commands... 4-1 4.1 IP Performance Configuration Commands... 4-1 4.1.1 display fib... 4-1 4.1.2 display icmp statistics... 4-1 4.1.3 display ip socket... 4-3 4.1.4 display ip statistics... 4-4 4.1.5 display tcp statistics... 4-6 4.1.6 display tcp status... 4-7 4.1.7 reset ip statistics... 4-8 4.1.8 reset tcp statistics... 4-9 4.1.9 tcp timer fin-timeout... 4-9 4.1.10 tcp timer syn-timeout... 4-10 4.1.11 tcp window... 4-11 i

Chapter 1 ARP Configuration Commands Chapter 1 ARP Configuration Commands 1.1 ARP Configuration Commands 1.1.1 arp static arp static ip-address mac-address [ vlan-id { interface_type interface_num interface_name } ] undo arp ip-address System view ip-address: IP address of the ARP mapping entry. mac-address: MAC address of ARP mapping entry, whose format is H-H-H ( H indicates a hexadecimal number). vlan-id: VLAN to which the static ARP entry belongs, which is in the range of 1 to 4094. interface_name: Port to which the static ARP entry belong, represented with interface_name= interface_type interface_num. interface_type is port type and interface_num is port number. For details about interface_type, interface_num and interface_name, refer to the Port Command Manual. Using arp static command, you can configure the static ARP mapping entries in an ARP mapping table. Using undo arp static command, you can cancel a static ARP mapping entry from the ARP table By default, the mapping table of the system ARP is empty and the switch can maintain its address mapping by means of dynamic ARP. Note that: 1-1

Chapter 1 ARP Configuration Commands Static ARP map entry will be always valid as long as Ethernet switch works normally. But if the VLAN corresponding ARP mapping entry is deleted, the ARP mapping entry will be also deleted. The valid period of dynamic ARP map entries will last only 20 minutes by default. The parameter vlan-id must be the ID of a VLAN that has been created by the user, and the Ethernet port specified behind this parameter must belong to the VLAN. For the related command, see reset arp, display arp, debugging arp. # Associate the IP address 202.38.10.2 with the MAC address 00e0-fc01-0000, and the ARP mapping entry belongs to the Ethernet port Ethernet0/1 on VLAN1. [Quidway] arp static 202.38.0.10 00e0-fc01-0000 1 ethernet0/1 1.1.2 arp timer aging arp timer aging aging-time undo arp timer aging System view aging-time: Aging time of dynamic ARP aging timer, which is in the range of 1 to 1440 minutes. By default, the aging time is 20 minutes. Using arp timer aging command, you can configure the dynamic ARP aging timer. Using undo arp timer aging command, you can restore the default dynamic ARP aging time. For the related command, see display arp timer aging. # Configure the dynamic ARP aging timer to 10 minutes. [Quidway] arp timer aging 10 1-2

Chapter 1 ARP Configuration Commands 1.1.3 debugging arp packet debugging arp packet undo debugging arp packet User view packet: ARP packet debugging. Using debugging arp packet command, you can enable ARP debugging. Using undo debugging arp packet command, you can disable the corresponding ARP debugging. By default, undo ARP debugging is enabled. For the related command, see arp static, display arp. # Enable ARP packet debugging. <Quidway> debugging arp packet *0.771346-ARP-8-S1-arp_send:Send an ARP Packet, operation : 1, sender_eth_addr : 00e0-fc00-3500,sender_ip_addr : 10.110.91.159, target_eth_addr : 0000-0000-0000, target_ip_addr : 10.110.91.193 *0.771584-ARP-8-S1-arp_rcv:Receive an ARP Packet, operation : 2, sender_eth_addr : 0050-ba22-6fd7, sender_ip_addr : 10.110.91.193, target_eth_addr : 00e0-fc00-3 500, target_ip_addr : 10.110.91.159 Table 1-1 Output description of the debugging arp packet display Field operation sender_eth_addr Kind of ARP packets: 1 ARP request packet; 2 ARP reply packet Ethernet address of the sender 1-3

Chapter 1 ARP Configuration Commands Field sender_ip_addr target_eth_addr target_ip_addr IP address of the sender Target Ethernet address. If the packet is ARP request packet, the target IP address will be 0 Target IP address 1.1.4 display arp display arp [ dynamic static ip-address ] Any view dynamic: Display the dynamic ARP entries in ARP mapping table. static: Display the static ARP entries in ARP mapping table. ip-address: Display ARP mapping entries according to specified IP address. Using display arp command, you can view the ARP mapping table. For the related command, see arp static, reset arp, debugging arp. # Display all the ARP entries. <Quidway> display arp IP Address MAC Address VLAN ID Port Name Aging Type 10.1.1.2 00e0-fc01-0102 N/A N/A N/A Static 10.110.91.175 0050-ba22-6fd7 1 Ethernet0/1 20 Dynamic --- 2 entries found --- 1-4

Chapter 1 ARP Configuration Commands Table 1-2 Output description of the display arp display Field IP Address MAC Address VLAN ID Port Name Aging Type IP address of the ARP mapping entry MAC address of the ARP mapping entry VLAN to which the static ARP entry belongs Port to which the static ARP entry belongs Aging time of dynamic ARP entry in minutes Type of ARP entry 1.1.5 display arp timer aging display arp timer aging Any view vlan-id: VLAN interface. Using display arp timer aging command, you can view the current setting of the dynamic ARP map aging timer. For the related command, see arp timer aging. # Display the current setting of the ARP map aging timer. [Quidway] display arp timer aging Current ARP aging time is 10 minute(s) 1-5

Chapter 1 ARP Configuration Commands 1.1.6 reset arp reset arp [ dynamic static interface { interface_type interface_num interface_name } ] User view dynamic: Clear the dynamic ARP mapping entries. static: Clear the static ARP mapping entries interface interface_name: Clear the ARP mapping entries that are related to the specified. port, represented with interface_name= interface_type interface_num. interface_type is port type and interface_num is port number. For details about interface_type, interface_num and interface_name, refer to the Port Command Manual. Using reset arp command, you can reset the ARP mapping entries. For the related command, see arp static, display arp. # Reset the static ARP entries. <Quidway> reset arp static 1-6

Chapter 2 DHCP-Snooping Configuration Commands Chapter 2 DHCP-Snooping Configuration Commands 2.1 DHCP-Snooping Configuration Commands 2.1.1 dhcp-snooping dhcp-snooping undo dhcp-snooping System view none Using dhcp-snooping command, you can enable DHCP-Snooping function on the switch to record users IP addresses. Using undo dhcp-snooping command, you can disable this function. By default, The switch is disabled to listen to DHCP broadcast packets and record users IP addresses. For the related command, see display dhcp-snooping. # Enable DHCP-Snooping. [Quidway] dhcp-snooping 2-1

Chapter 2 DHCP-Snooping Configuration Commands 2.1.2 display dhcp-snooping display dhcp-snooping Any view none Using display dhcp-snooping command, you can view the IP address and MAC address bindings recorded through DHCP-Snooping. For the related command, see dhcp-snooping. # Display clients IP addresses and MAC addresses recorded through DHCP-Snooping. <Quidway>display dhcp-snooping IP Address MAC Address 202.38.12.45 00e0-fc00-0006 202.38.12.70 00a3-de01-0005 In the above terminal outputs, the IP Addresses are learned from the DHCP broadcast packets and the MAC Addresses belong to the clients corresponding to the IP addresses. 2-2

Chapter 3 Access Management Configuration Commands Chapter 3 Access Management Configuration Commands Note: S3050C-48 and S3026 switches don t support the chapter in S3000 series switches. 3.1 Access Management Configuration Commands 3.1.1 am enable am enable undo am enable System view none Using am enable command, you can enable the access management function. Using undo am enable command, you can disable the function. By default, Access management function disabled. When using the access management function, It is recommended to cancel the static ARP configuration to ensure that the binding of IP address and Ethernet switch take effect. If you have configured the static ARP for an IP address in the current port IP address pool from some other port, the system will prompt to cancel the static ARP setting. 3-1

Chapter 3 Access Management Configuration Commands # Enable the access management function. [Quidway] am enable 3.1.2 am isolate am isolate interface-list undo am isolate interface-list Ethernet port view interface-list: Specifies a list of ports isolated from the specified port in the { { interface_type interface_num interface_name } [ to { interface_type interface_num interface_name } ] } &<1-10> format. interface_name: Specified the port name, represented with interface_name= interface_type interface_num. interface_type is port type and interface_num is port number. For details about interface_type, interface_num and interface_name, refer to the Port Command Manual. &<1-10> indicates the preceding parameter can be input up to 10 times. Using am isolate command, you can configure Layer 2 isolation on a port so as to prevent the packets from being forwarded on Layer 2 between the specified port and some other port (group). Using undo am isolate command, you can cancel the Layer 2 isolation on the port. By default, The isolation port pool is null and the packets are allowed to be forwarded between the specified port and all other ports on Layer 2. The port isolation is bidirectional. Isolating the port itself does not make any sense. # Isolate Ethernet0/1 from Ethernet0/2, and Ethernet0/4 through Ethernet0/7. [Quidway-Ethernet0/1] am isolate ethernet0/2 ethernet 0/4 to ethernet 0/7 3-2

Chapter 3 Access Management Configuration Commands 3.1.3 am trap enable am trap enable undo am trap enable System view none Using am trap enable command, you can enable the access management trap function. Using undo am trap enable command, you can disable the access management trap function. By default, The access management trap disabled. # Enable the access management trap. [Quidway] am trap enable 3.1.4 am user-bind am user-bind { interface { interface-name interface-type interface-num } { mac-addr mac ip-addr ip }* mac-addr mac { interface { interface-name interface-type interface-num } ip-addr ip }* ip-addr ip { interface { interface-name interface-type interface-num } mac-addr mac }* } undo am user-bind { interface { interface-name interface-type interface-num } { mac-addr mac ip-addr ip }* mac-addr mac { interface { interface-name interface-type interface-num } ip-addr ip }* ip-addr ip { interface { interface-name interface-type interface-num } mac-addr mac }* } System view 3-3

Chapter 3 Access Management Configuration Commands interface-name: Specifies the port name in the interface-name= interface-type interface-num format. interface-type: Specifies the port type. interface-num: Specifies the port number. For parameter description, refer to the interface command. mac: MAC address. ip: IP address. Using am user-bind command, you can bind port, IP address and MAC address. Using undo am user-bind command, you can remove the binding of port, IP address and MAC address binding. Note that: One MAC address or one IP address cannot be bound more than once. The maximum binding number is 128. Do not perform Port+IP+MAC and Port+IP on the same port. S3026E switch supports this configuration in S3000 series switches. # Bind port Ethernet0/1 and IP address 192.10.1.1. [Quidway] am user-bind interface ethenet0/1 ip-addr 192.10.1.1 3.1.5 display am display am [ interface-list ] Any view interface-list: Specifies a list of ports isolated from the specified port in the { { interface_type interface_num interface_name } [ to { interface_type interface_num interface_name } ] } &<1-10> format. interface_name: Specified the port name, represented with interface_name= interface_type interface_num. interface_type is port type and interface_num is port number. For details about interface_type, interface_num 3-4

Chapter 3 Access Management Configuration Commands and interface_name, refer to the Port Command Manual. &<1-10> indicates the preceding parameter can be input up to 10 times. Using display am command, you can view the current access management configurations on part or all of the ports. # Display the access management configurations on Ethernet0/1 and Ethernet0/2. <Quidway> display am ethernet0/1 ethernet0/2 Ethernet0/1 Status : disabled IP Pools : (NULL) Isolate Ports: Ethernet0/2 Ethernet0/2 Status : disabled IP Pools : (NULL) Isolate Ports: Ethernet0/1 Table 3-1 of information generated by the command display am Field Ethernet Status IP Pools Isolate Ports Port to be displayed AM state on the port: enabled or disabled IP pools. NULL represents no configuration. Each IP address section is represented in X.X.X.X (number), of these, X.X.X.X represents the first address, and number represents that number consecutive IP addresses from the beginning of this address are within the IP pools Isolate ports. NULL represents no configuration 3.1.6 display am user-bind display am user-bind [ interface { interface-name interface-type interface-num } mac-addr mac ip-addr ip ] Any view 3-5

Chapter 3 Access Management Configuration Commands interface-name: Specifies the port name in the interface-name= interface-type interface-num format. interface-type: Specifies the port type. interface-num: Specifies the port number. For parameter description, refer to the interface command. mac: MAC address. ip: IP address. Using display am user-bind command, you can view Port, IP address and MAC address binding information. Note that S3026E switch supports this configuration in S3000 series switches. # Display binding information of Ethernet0/1 port. <Quidway> display am user-bind interface ethernet0/1 Mac IP Port NULL 129.10.1.1 Ethernet0/1 3-6

Chapter 4 IP Performance Configuration Commands Chapter 4 IP Performance Configuration Commands 4.1 IP Performance Configuration Commands 4.1.1 display fib display fib Any view none Using display fib command, you can view the summary of the Forwarding Information Base. The information includes: destination address/mask length, next hop, current flag and outbound interface. # Display the summary of the Forwarding Information Base. <Quidway> display fib Destination/Mask Nexthop Flag Interface 127.0.0.0/8 127.0.0.1 D InLoopBack0 4.1.2 display icmp statistics display icmp statistics 4-1

Chapter 4 IP Performance Configuration Commands Any view none Using display icmp statistics command, you can view the statistics information about ICMP packets. For the related command, see display ip interface vlan-interface, reset ip statistics. # statistics about ICMP packets. <Quidway> display icmp statistics Input: bad formats 0 bad checksum 0 echo 5 destination unreachable 0 source quench 0 redirects 0 echo reply 10 parameter problem 0 timestamp 0 information request 0 mask requests 0 mask replies 0 time exceeded 0 Output:echo 10 destination unreachable 0 source quench 0 redirects 0 echo reply 5 parameter problem 0 timestamp 0 information reply 0 mask requests 0 mask replies 0 time exceeded 0 Table 4-1 of the output information of the display icmp statistics command Field Input: bad formats bad checksum echo destination unreachable source quench redirects echo reply Number of input packets in bad format Number of input packets with wrong checksum Number of input/output echo request packets Number of input/output packets with unreachable destination Number of input/output source quench packets Number of input/output redirected packets Number of input/output echo reply packets 4-2

Chapter 4 IP Performance Configuration Commands Field parameter problem timestamp information request mask requests mask replies information reply time exceeded Number of input/output packets with parameter problem Number of input/output timestamp packets Number of input information request packets Number of input/output mask request packets Number of input/output mask reply packets Number of output information reply packets Number of time exceeded packets 4.1.3 display ip socket display ip socket [ socktype sock-type ] [ task-id socket-id ] Any view sock-type: The type of a socket: (tcp:1, udp 2, raw ip 3). task-id: The ID of a task, with the value ranging from 1 to 100. socket-id: The ID of a socket, with the value ranging from 0 to 3072. Using the display ip socket command, you can display the information about the sockets in the current system. # Display the information about the socket of TCP type. <Quidway> display ip socket socktype 1 SOCK_STREAM: Task = VTYD(18), socketid = 1, Proto = 6, LA = 0.0.0.0:23, FA = 0.0.0.0:0, sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0, socket option = SO_ACCEPTCONN SO_KEEPALIVE SO_SENDVPNID SO_SETKEEPALIVE, 4-3

Chapter 4 IP Performance Configuration Commands socket state = SS_PRIV SS_ASYNC Task = VTYD(18), socketid = 2, Proto = 6, LA = 10.153.17.99:23, FA = 10.153.17.56:1161, sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0, socket option = SO_KEEPALIVE SO_OOBINLINE SO_SENDVPNID SO_SETKEEPALIVE, socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC Task = VTYD(18), socketid = 3, Proto = 6, LA = 10.153.17.99:23, FA = 10.153.17.82:1121, sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0, socket option = SO_KEEPALIVE SO_OOBINLINE SO_SENDVPNID SO_SETKEEPALIVE, socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC Table 4-2 Output description of the display ip socket display Field SOCK_STREAM Task socketid Proto sndbuf rcvbuf sb_cc rb_cc socket option socket state The socket type The ID of a task The ID of a socket The protocol number used by the socket The sending buffer size of the socket The receiving buffer size of the socket The current data size in the sending buffer. The value makes sense only for the socket of TCP type, because only TCP is able to cache data The current data size in the receiving buffer The option of the socket The state of the socket 4.1.4 display ip statistics display ip statistics Any view 4-4

Chapter 4 IP Performance Configuration Commands none Using display ip statistics command, you can view the statistics information about IP packets. For the related command, see display ip interface vlan-interface, reset ip statistics. # statistics about IP packets. <Quidway> display ip statistics Input: sum 7120 local 112 bad protocol 0 bad format 0 bad checksum 0 bad options 0 Output: forwarding 0 local 27 dropped 0 no route 2 compress fails 0 Fragment:input 0 output 0 dropped 0 fragmented 0 couldn't fragment 0 Reassembling:sum 0 timeouts 0 Table 4-3 of the output information of the display ip statistics command Field Input: sum local bad protocol bad format bad checksum bad options Output: forwarding local dropped no route compress fails Fragment: input Sum of input packets Number of received packets whose destination is the local device Number of packets with wrong protocol number Number of packets in bad format Number of packets with wrong checksum Number of packets that has wrong options Number of forwarded packets Number of packets that are sent by the local device Number of dropped packets during transmission Number of packets that cannot be routed Number of packets that cannot be compressed Number of input fragments 4-5

Chapter 4 IP Performance Configuration Commands Field output dropped fragmented couldn't fragment Reassembling: sum timeouts Number of output fragments Number of dropped fragments Number of packets that are fragmented Number of packets that cannot be fragmented Number of packets that are reassembled Number of packets that time out 4.1.5 display tcp statistics display tcp statistics Any view none Using display tcp statistics command, you can view the statistics information about TCP packets. The statistics information about TCP packets are divided into two major kinds which are Received packets and Sent packets. And each kind of packets are further divided into different kinds such as window probe packets, window update packets, duplicate packets, and out-of-order packets. Some statistics information that is closely related to TCP connection, such as window probe packets, window update packets, and data packets retransmitted is also displayed. All these displayed information are measured in packet. For the related commands, see display tcp status, reset tcp statistics. # statistics about TCP packets. [Quidway]display tcp statistics 4-6

Chapter 4 IP Performance Configuration Commands Received packets: Total: 753 packets in sequence: 412 (11032 bytes) window probe packets: 0, window update packets: 0 checksum error: 0, offset error: 0, short error: 0 duplicate packets: 4 (88 bytes), partially duplicate packets: 5 (7 bytes) out-of-order packets: 0 (0 bytes) packets of data after window: 0 (0 bytes) packets received after close: 0 ACK packets: 481 (8776 bytes) duplicate ACK packets: 7, too much ACK packets: 0 Sent packets: Total: 665 urgent packets: 0 control packets: 5 (including 1 RST) window probe packets: 0, window update packets: 2 data packets: 618 (8770 bytes) data packets retransmitted: 0 (0 bytes) ACK-only packets: 40 (28 delayed) Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0 Keepalive timeout: 0, keepalive probe: 0, keepalive timeout, so connections disc onnected : 0 Initiated connections: 0, accepted connections: 0, established connections: 0 Closed connections: 0 (dropped: 0, initiated dropped: 0) 4.1.6 display tcp status display tcp status Any view none 4-7

Chapter 4 IP Performance Configuration Commands Using display tcp status command, you can view the TCP connection state. # Display the state of all TCP connections. <Quidway> display tcp status TCPCB Local Add:port Foreign Add:port State 03e37dc4 0.0.0.0:4001 0.0.0.0:0 Listening 04217174 100.0.0.204:23 100.0.0.253:65508 EstablishedOutput description of the display tcp status display Field Local Add: port Foreign Add: port State Local IP address: local port Remote IP address; remote port State of the TCP link 4.1.7 reset ip statistics reset ip statistics User view none Using reset ip statistics command, you can reset the IP statistics information. For the related commands, see display ip interface vlan-interface, display ip statistics. # Reset the IP statistics information. 4-8

Chapter 4 IP Performance Configuration Commands <Quidway> reset ip statistics 4.1.8 reset tcp statistics reset tcp statistics User view none Using reset tcp statistics command, you can reset the TCP statistics information. For the related command, see display tcp statistics. # Reset the TCP statistics information. <Quidway> reset tcp statistics 4.1.9 tcp timer fin-timeout tcp timer fin-timeout time-value undo tcp timer fin-timeout System view time-value: TCP finwait timer value in second, with the value ranging from 76 to 3600; By default, 675 seconds. 4-9

Chapter 4 IP Performance Configuration Commands Using tcp timer fin-timeout command, you can configure the TCP finwait timer. Using undo tcp timer fin-timeout command, you can restore the default value of the TCP finwait timer. When the TCP connection state changes from FIN_WATI_1 to FIN_WAIT_2, the finwait timer is enabled. If the switch does not receive FIN packet before finwait timer timeouts, the TCP connection will be terminated. For the related command, see tcp timer syn-timeout, tcp window. # Configure the TCP finwait timer value as 800 seconds. [Quidway] tcp timer fin-timeout 800 4.1.10 tcp timer syn-timeout tcp timer syn-timeout time-value undo tcp timer syn-timeout System view time-value: TCP synwait timer value measured in second, whose value ranges from 2 to 600. The default time-value is75 seconds. Using tcp timer syn-timeout command, you can configure the TCP synwait timer. Using undo tcp timer syn-timeout command, you can restore the default value of the timer. TCP will enable the synwait timer, if a SYN packet is sent. The TCP connection will be terminated If the response packet is not received. For the related command, see tcp timer fin-timeout, tcp window. 4-10

Chapter 4 IP Performance Configuration Commands # Configure the TCP synwait timer value as 80 seconds. [Quidway] tcp timer syn-timeout 80 4.1.11 tcp window tcp window window-size undo tcp window System view window-size: The size of the transmission and receiving buffers measured in kilobytes (KB), whose value ranges from 1 to 32. By default, the window-size is 4KB. Using tcp window command, you can configure the size of the transmission and receiving buffers of the connection-oriented Socket. Using undo tcp window command, you can restore the default size of the buffer. For the related command, see tcp timer fin-timeout, tcp timer syn-timeout. # Configure the size of the transmission and receiving buffers as 3KB. [Quidway] tcp window 3 4-11