LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-18-2019, 07:33 AM   #1
sluge
Member
 
Registered: Dec 2006
Location: Russia,52
Posts: 128

Rep: Reputation: 6
Lost UDP fragments


On my PC I have an issue related to UDP: when snmp bulk request comes and response size is larger than MTU (1500), UDP packet fragmented but only the first part is sent to network. I get a traffic dump on the PC and see the only the first fragment is transmitted. It looks like other parts of UDP packet is dropped by network stack/kernel. OS is Linux. Both hosts are in the same subnet.

What can be wrong? Network settings, kernel settings, user space, etc?
 
Old 09-18-2019, 09:06 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
UDP is designed for small packets. Services that require larger packets should either use TCP or have a mechanism to switch from UDP to TCP for larger packets. BIND DNS originally was UDP only but as more and more detail including DNSSEC began being used they had to modify it to do the switch for UDP to TCP.

It may be whatever you're doing allows such switching but you've only opened UDP in whatever firewall you're using (e.g. iptables or firewalld). You have to open the same port both for UDP and TCP, usually in separate rules (e.g. for BIND DNS).

Last edited by MensaWater; 09-19-2019 at 01:39 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Regular expression to match URL matches fragments - Python madsovenielsen Programming 4 08-29-2010 09:44 AM
Consistently Losing Fragments with Large Packets chewygumstix Linux - Networking 1 12-16-2008 10:48 PM
LXer: Protecting against evil code fragments with HTML Purifier LXer Syndicated Linux News 0 07-08-2008 01:12 PM
svg link to fragments cyb0rg777 Programming 0 02-24-2008 05:01 AM
OSS not allowing small fragments linuxmandrake Linux - Software 0 06-03-2007 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration