How to replace TCP stack

Latest response

Hi,

 

I am looking for a way to replace standart Linux TCP stack with a modified one to introduce traffic shaping.

 

I wan't to do it in a kernel module to avoid upgrading the Linux kernel

 

Any idea

 

Thanks

Responses

Hi Eran,

 

to be honest - I don't think that's the way to go since replacing the tcp stack would render your support invalid. Rather have a look at 'tc' which is being shipped with RHEL5 in the iproute package.

 

If you don't get it set up with the manpage, have a look at the 'linux advanced routing and traffic control howto' (http://lartc.org).

 

Cheers

 

Marko

The routing & traffic control are nice features but I need much more capacilities that requires deep involvement in the TCP stack.

 

I am looking for a way to customized the TCP stack without the need to recompile and distribute the Linux source code

I agree with Marko. RHEL 4, 5 and 6 already have support for traffic shaping.

 

In addition to the lartc documentation, I can recommend the "wonder shaper" script from the same location. That script makes it relatively easy to configure traffic shaping.

 

If there is something you cannot figure out about that script, please let us know - I have done all kinds of traffic shaping with it over the years.

 

What are you trying to do?

Honestly it is much more complex than simple traffic shaping and require changes on the TCP stack behaviour and data structures.

 

I am looking for a way to do so without changing the Linux default distribution as an external kernel module.

 

There are many hooks that are missing otherwise I would have used them

Eranstark,

 

What aren't you able to do with the current traffic shaping tools?

 

Thanks in advance,

Marc

Hi Eran,

Your original post is at least confusing compared to the rest of your replies, please state all your requirements so the members in this conversation might be able to help you.

Now you only reply, I need more than what you mention.

Kind regards,

Jan Gerrit

There is no need to replace the Linux TCP stack to achieve traffic shaping, it can already do it.

We have several resources and specific examples indexed at:

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.