LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-26-2013, 01:22 AM   #1
arunasirigere
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Rep: Reputation: Disabled
Wink Compiling linux kernel without TCP Options


Hello All,

I am using Ubuntu 12.04 and I need help on compiling kernel source by removing TCP options.

To simulate some specific scenario, I have to remove TCP Options filed in SYN ACK mesage. i.e Outgoing SYN-ACK message should not include TCP Options filed.

I have downloaded linux kernel source package after following below link.

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

Now, I need help to understand what files needs to be modified and what section need to be modified in those files in-order to make ubuntu not send TCP Options filed in SYN-ACK message.

Any little help is greatly appreciated
 
Old 12-26-2013, 02:53 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Can you tell us what your overall goal is? Disabling/crippling TCP seems like a real bad idea.

SYN-ACK is part of the three way handshake needed to set up a TCP connection. Removing it (if at all possible) will cripple TCP. TCP is needed on a Linux box, networked or not. Some programs (X being one) depend on it even when the box isn't networked.

Anyway: The Networking support -> Networking options section in the menuconfig has many TCP related options, but none of them can specifically disable SYN-ACK (it is an integrate part of TCP).
 
Old 12-26-2013, 03:09 AM   #3
arunasirigere
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hello druuna,

I have to recreate the problem faced by one of my customer.
He is using a video server where SYN ACK sent by his server during TCP 3-way handshake doers not include TCP Option field. Due to this my gateway is doing more fragmentation of application messages which is resulting in no messages seen at the client.

Since my customer server is sending SYN ACK without TCP Option field I guess there is no harm in excluding in my server kernel.

Any help?
 
Old 12-26-2013, 03:35 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
I'm not a network specialist, but it seems that the server in question might be restrictive in the way the handshake is performed (this can only be confirmed by analysing tcpdump output).

I don't think you need to re-compile the kernel, you might be able to manipulate the way things are done on your site by (un)setting one or more of the net.ipv4.tcp* options available from sysctl

I have to be honest and say that I would not know exactly which ones and what the proper values would be.

Only advise I can give you: Do a net search on SYN ACK tcp option field

EDIT: Maybe this article could be of use to you: RFC 4413 - TCP/IP Field Behavior (especially 4.2 / 4.3)

Last edited by druuna; 12-26-2013 at 03:46 AM. Reason: Added link
 
  


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
Adding custom info to TCP Header Options by changing Kernel Source code abhishek@LQ Linux - Networking 0 08-26-2010 11:29 PM
Compiling new kernel/Boot options with LILO Urban Hermit Slackware 2 06-02-2007 11:41 PM
kernel compiling options slinky2004 Linux - General 6 10-10-2005 07:46 PM
Kernel Compiling options moger Linux - General 1 09-26-2002 10:28 PM
Help compiling kernel with scsi options... mavness Linux - General 1 08-23-2002 07:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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