LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Modifying the Linux TCP implementation (https://www.linuxquestions.org/questions/linux-newbie-8/modifying-the-linux-tcp-implementation-4175513608/)

Sandeep reddy 08-05-2014 01:08 PM

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

smallpond 08-05-2014 03:06 PM

What have you tried?

unSpawn 08-05-2014 03:45 PM

Quote:

Originally Posted by Sandeep reddy (Post 5215648)
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.

jpollard 08-05-2014 04:05 PM

why?

If it is just to have unreliable delivery, use UDP.

Sandeep reddy 08-05-2014 05:27 PM

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).

Sandeep reddy 08-05-2014 05:33 PM

@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...

jpollard 08-05-2014 09:25 PM

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...

Sandeep reddy 08-06-2014 05:44 AM

@jpollard: thank you.


All times are GMT -5. The time now is 10:31 PM.