LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-10-2008, 05:30 AM   #1
kapsikum
Member
 
Registered: Mar 2005
Location: INDIA
Posts: 79

Rep: Reputation: 16
MTU/MSS issue in TCP connection


hello everyone,

heres my setup:

host1 [x86 client, MTU= 1500]
|
router [mips, nat'ed,MTU=1000 dropping http/https packets]
|
host2 [x86, nat'ed, MTU=1500,sniffing packets]
|
INTERNET

I am facing some problem in opening any site on the Internet through the router (MTU=1000) and my host1 MTU is 1500. when i put my host1 MTU as < 1000 the problem disappears.

with host1 MTU > 1000, when i try to browse any site, on the ethereal on Host2 (ethereal running on interface connected to router) shows that the TCP connection establishment negotiation takes places with router proposing MSS=1460 and the other end replies back with MSS=1430, subsequently when the site sends some data containing packets (with aggregate / assembled MTU = 1418), the router drops the packet saying:

Port 1 receive error code 2, packet dropped

error code 2 seems like "PIP: PIP calculated bad CRC" (from file linux-2.6.16/arch/mips/cavium-octeon/setup.c)

now can anybody please tell me that MSS clamping is done by whom i.e is it the network layer or the driver does it. Putting a Firewall rule to do the MSS clamping does solves the problem but thats just a work around. Why i am asking this question is because i have already scanned some extent of the driver code and was not able to find if that is doing the clamping part and this brings me to the aforesaid fundamental question.

any pointer in this regard will be appriciated.

PS: i had previously posted the related issue but couldn't get any effective help. This time posting my query bit refined.
 
Old 06-10-2008, 08:34 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
can not help directly but have you tried a /etc/rc.local for host2 machine
/sbin/ifconfig eth0 mtu 1418

to force it to mtu 1418?
 
  


Reply



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
connection to aol- need to change mtu to 1400? sonichedgehog Debian 2 03-03-2008 07:25 AM
set MSS ? Server does NOT send with negotiated MSS lomex Linux - Networking 0 01-30-2008 01:56 PM
MTU issue ratul_11 Linux - Networking 2 11-13-2007 07:34 PM
Path MTU Discovery issue Honor Linux - Networking 1 06-23-2006 06:45 AM
HELP! Unable to lower MTU on pppoe connection hrr Debian 1 10-16-2005 05:56 PM

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

All times are GMT -5. The time now is 12:38 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