LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2014, 01:08 PM   #1
Sandeep reddy
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Rep: Reputation: Disabled
Modifying the Linux TCP implementation


Hi everyone,

I have been trying to modify the TCP implementation code in Linux. I want to disable the reliability feature in TCP. can any one please suggest a way of doing this?

Regards,

sandeep
 
Old 08-05-2014, 03:06 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,744

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
What have you tried?
 
Old 08-05-2014, 03:45 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by Sandeep reddy View Post
can any one please suggest a way of doing this?
- Start by going over your notes again or do research and list which five mechanisms help provide reliability.
- Find out which of those mechanisms can be disabled from user land using sysctls (if any).
- Check which mechanisms (if any) can be disabled using compile time kernel configuration options.
- For the mechanisms that remain you will have to change kernel code. That is not a trivial task. Depending on test requirements and your understanding of the Linux Kernel you may find it (slightly) easier to start with modifying a 2.4 kernel.
 
Old 08-05-2014, 04:05 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,687

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
why?

If it is just to have unreliable delivery, use UDP.
 
Old 08-05-2014, 05:27 PM   #5
Sandeep reddy
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
modifying the linux tcp

@ smallpond: i ahve been trying to check how the tcp.c works using printk ststements, i am checking the messages in /var/log. its not just about reliability, i am trying to disable any of the features of tcp (reliability, congestion control, flow control, ordering and error control).
 
Old 08-05-2014, 05:33 PM   #6
Sandeep reddy
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
@unspawn: hi thanx for the reply. i tried to do more research but i see there is no explanation for tcp implementation online. could you please suggest some materials , if there is any...
 
Old 08-05-2014, 09:25 PM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,687

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
There is a fair amount of information online.

One at http://www.cs.unh.edu/cnrg/people/gh...linux-net.html

You can google for "linux tcp implementation", and find a number of books, university papers/courses...
 
Old 08-06-2014, 05:44 AM   #8
Sandeep reddy
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
@jpollard: thank you.
 
  


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
multipath tcp implementation Lekshmileelamurali Linux - Wireless Networking 0 11-29-2013 09:44 AM
Tcp implementation in linux kskkumar Linux - Networking 1 08-24-2005 05:45 AM
Questions on Linux 2.4.20 TCP fast recovery and ECN implementation enjoyzj Linux - Networking 0 07-16-2004 07:57 AM
tcp linux implementation mk_26 Linux - Networking 0 03-22-2004 08:10 PM
Linux TCP implementation mk_26 Linux - Newbie 0 03-22-2004 04:05 PM


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