Analysis of UDP packet loss in linux kernel

Source: Internet
Author: User
Cause Analysis of UDP packet loss in linux kernel 1. UDP checksum and error phenomenon: you can use netstat-su to view UDP error packets. Tcpdump packet capture: enable the captured udp packet in wireshark and enable the checksum option. Solution: Find Link faults www.2cto. com2, firewall... cause analysis of UDP packet loss in linux kernel 1. UDP checksum and error phenomenon: you can use netstat-su to view UDP error packets. Tcpdump packet capture: enable the captured udp packet in wireshark and enable the checksum option. Solution: Search for link faults www.2cto.com 2. firewall enabling phenomenon: packets on specific ports cannot be received. Solution: disable using service iptables stop. 3. rp_filter enabled: tcpdump has packets and the protocol stack cannot receive them. A package sent from one address cannot receive any package, but the package sent from another address is okay. Solution: set rp_filter in/etc/sysctl. conf to 0. See: 2.6.32 is enabled by default. 4. application performance problems. The buffer is full. Symptom: The application can receive UDP packets intermittently. Solution: Use the vmstat and top commands to detect cpu or IO overload. Increase the buffer and optimize the program.
Related Article

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.