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 02-18-2013, 01:30 PM   #1
silva_antonio
LQ Newbie
 
Registered: Aug 2012
Posts: 13

Rep: Reputation: Disabled
IP fragmentation problem on linux kernel 2.6.34.8


Hello all, I am experiencing a problem with IP fragmentation.
I am receiving an udp packet that is larger than the MTU and it is fragmented along the network.
I am receiving the two fragments but they are not being reassembled correclty.

The MTU of the system is 1500 and I cannot increase it, because I am getting this error: SIOCSIFMTU: Numerical result out of range.
Is it necessary to build the kernel with support for jumbo frames?

There's any option a should enable on the kernel (2.6.34.8) to support this feature?

Any hint that may assist in debugging this issue is welcome.

The first packet it is considered (bad) as a complete packet and I am getting an error at the app level.
Click image for larger version

Name:	fragment1.png
Views:	13
Size:	87.7 KB
ID:	11885

The second packet is the last part of the fragment which should be ignored completely:
Click image for larger version

Name:	fragment2.png
Views:	16
Size:	81.1 KB
ID:	11886

As reference I am sending the same packet to my laptop which is implementing correctly the fragmentation re-assembly:
Click image for larger version

Name:	Packet_fragmentation_good.png
Views:	13
Size:	10.1 KB
ID:	11887
 
Old 02-18-2013, 07:22 PM   #2
hogar.strashni
Member
 
Registered: Dec 2007
Distribution: cp6
Posts: 44

Rep: Reputation: 2
I'll do the two things I hate. First, I'll give you a link. that provides an explanation and a solution. I find it is splendid, giving a tribute this way . For future reference, I'll make a resume.
Quote:
The MTU of an interface can be changed temporarily using the mtu option of the ifconfig command:
Code:
ifconfig eth0 mtu 9000
The new MTU will not persist beyond a reboot.
An error of the form: "SIOCSIFMTU: Invalid argument" indicates that the requested MTU was rejected by the kernel. Typically this would be due to it exceeding the maximum value supported by the interface hardware. In that case you must either reduce the MTU to a value that is supported or obtain more capable hardware.
Based on what I read there, to make the changes permanently you'll have to edit "mtu" values in /etc/network/interfaces or /etc/sysconfig/network-scripts/ depending on your distribution. First path is for Debian/Ubuntu, and the latter is for RHEL/CentOS/Fedora. Then restart your network interface.
If you follow the link you'll find out how to check and/or test your new configuration, and how you might change your network configuration to support higher MTU.

Now the secound thing I hate, and I'll still do: Why? Why are you making software that sends packages bigger than default MTU?
 
Old 02-19-2013, 03:56 AM   #3
silva_antonio
LQ Newbie
 
Registered: Aug 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hogar.strashni View Post
I'll do the two things I hate. First, I'll give you a link. that provides an explanation and a solution. I find it is splendid, giving a tribute this way . For future reference, I'll make a resume.

Based on what I read there, to make the changes permanently you'll have to edit "mtu" values in /etc/network/interfaces or /etc/sysconfig/network-scripts/ depending on your distribution. First path is for Debian/Ubuntu, and the latter is for RHEL/CentOS/Fedora. Then restart your network interface.
If you follow the link you'll find out how to check and/or test your new configuration, and how you might change your network configuration to support higher MTU.

Now the secound thing I hate, and I'll still do: Why? Why are you making software that sends packages bigger than default MTU?
Hi, I am not sending packets bigger than the MTU. I am receiving the SDP descriptor from a SIP server.
 
  


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
IPv6 fragmentation problem panos_gr Linux - Networking 0 03-17-2011 09:41 AM
De-fragmentation in Linux pprs project Linux - Newbie 17 05-08-2008 12:43 PM
De-fragmentation in Linux pprs project Linux - Software 9 02-02-2008 02:01 PM
Memory fragmentation problem? Idunno24 Programming 3 06-03-2003 12:33 PM
User level memory fragmentation problem? DHC Linux - Software 3 03-07-2003 11:42 AM


All times are GMT -5. The time now is 06:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration