Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure Basic Functions of the UDP Protocol

In the TCP/IP protocol stack, UDP is a connectionless-oriented transport layer protocol. Before sending data through the TCP protocol, you need not set up a connection. The UDP protocol provides unreliable data transmission without congestion control.

Configuration Condition

None

Configure TTL of UDP Packets

Configuring TTL of UDP packets means to fill in the TTL value in the IP header of UDP packets. The header of an IP packet contains the Time-To-Live (TTL) field, which is decreased by one once the IP packet passes a routing device. When the TTL is 0, the device discards the IP packet. By default, the TTL value of the IP packet of a UDP packet is 64.

Table 2-27 Configuring TTL of UDP Packets

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Configure TTL of UDP packets.

ip udp default-ttl time-to-live

Mandatory.

By default, the TTL value of the IP packet of a UDP packet is 64.

Configure the Size of the UDP Receiving Cache

In some special network environment, you can configure both the size of receiving cache and the size of transmitting cache of a UDP connection so that the network can reach the optimal performance. If the UDP connection receiving cache is not configured, the size of the receiving cache is the default value, 41600 bytes.

Table 2-28 Configuring the Size of the UDP Receiving Cache

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Configure the size of the UDP receiving cache.

ip udp recvbuffers buffer-size

Mandatory.

By default, the size of the UDP receiving cache is 41600 bytes.

Configure the Size of the UDP Transmitting Cache

In some special network environment, you can configure both the size of receiving cache and the size of transmitting cache of a UDP connection so that the network can reach the optimal performance. If the UDP connection transmitting cache is not configured, the size of the transmitting cache is the default value, 9216 bytes.

Table 2-29 Configuring the Size of the UDP Transmitting Cache

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Configure the size of the UDP transmitting cache.

ip udp sendbuffers buffer-size

Mandatory.

By default, the size of the UDP transmitting cache is 9216 bytes.

Enable UDP Verification and Check

To prevent errors that occur during transmission of UDP packets, after UDP packets are received, UDP verification and check need to be performed. The system compares the UDP packet verification field calculated by the receiving end and the UDP packet header checksum field. If the two values are different, the system determines that a transmission error has occurred, and then discards the packet. By default, the function is enabled.

Table 2-30 Enabling UDP Verification and Check

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Enable UDP verification and check.

ip udp recv-checksum

Mandatory.

By default, the function is enabled.

Fill in UDP Packet Checksum

To prevent UDP packets from encountering transmission errors, in transmitting UDP packets, the transmitting end fills in the UDP packet checksum to be calculated into the UDP packet header checksum field for the receiving end to perform checksum check. By default, the function is enabled.

Table 2-31 Filling in UDP Packet Checksum

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Configure to fill in packet checksum in transmitting UDP packets.

ip udp send-checksum

Mandatory.

By default, the function is enabled.