Analysis of the causes of UDP packet loss in Linux system kernel

Source: Internet
Author: User

Analysis of the causes of UDP packet loss in Linux system kernel

1. UDP Checksum Error

Phenomenon: You can use NETSTAT-SU to see that there is a UDP error packet.

Tcpdump catch packet, open the captured UDP message in Wireshark, turn on checksum option, error packet.

Scenario: Finding link Failure www.ahlinux.com

2, Firewall Open

Symptom: A package for a specific port is not receiving

Scenario: Use service iptables stop to shut down.

3, Rp_filter Open

Phenomenon: Tcpdump has a package, the protocol stack is not received. A package sent by one address cannot receive a package, but the other one is only sent over.

Scenario: Set the Rp_filter in/etc/sysctl.conf to 0.

See also: Http://serverfault.com/questions/163244/linux-kernel-not-passing-through-multicast-udp-packets

Check the source address of the packet and its network card address switch to prevent IP spoofing, Linux 2.6.32 by default.

4. Application performance issues, buffer full.

Symptom: The application can receive UDP packets intermittently.

Scenario: Use the Vmstat and top commands to discover CPU or IO overloads. Increase the buffer to optimize the program.

  • This article is from: Linux Tutorial Network

Analysis of the causes of UDP packet loss in Linux system kernel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.