Q:

Can we put the networking/TCP stack into user-space?

Like
Answer
Comment
Flag
Thanks for your feedback!
A:

1 Answer

rank
1
1
Like
Comment
Flag
• (REG) The short answer is no, because this would slow it down (see the monolithic versus microkernel debate for reasons why). The longer answer involves the motivations behind the question. Some people want to inspect every packet, and think it's easier to do in user-space. In fact, the kernel has a network packet filtering API (Linux Socket Filter (LSF), which is an easier-to-use implementation of the Berkeley Packet Filter (BPF)). The LSF allows you to capture some or all packets and pass them to user-space. This yields the advantages of a kernel-based networking stack, but still allows you to inspect packets in user-space if needed. One reason people want to inspect packets is to perform firewalling. In this case, a far superior solution is available, using the Netfilter infrastructure. This is a kernel-level firewalling/NAT solution which is fast and reliable. You may create both stateful and stateless firewalling configurations. This infrastructure was introduced during the 2. ...  more
tux.org
/lkml 
3 more sources
Hide

Related Videos

Add your answer...

Top Related Experts

1.
Brian Lee
Networking expert · Articles · 0 Likes
2.
CNR Technologies
Networking expert · Articles · 0 Likes
3.
4.
Philip de Souza
Networking expert · Articles · 0 Likes

Top Answerers

1.
vanity fair
7 Answers in the past week
2.
Robert Turner
4 Answers in the past week
3.
jacob kind
3 Answers in the past week

Top Askers

1.
Deitty smith
3 Questions in the past week
2.
Frank Bell
2 Questions in the past week
3.
Charles McAtee
2 Questions in the past week

Top Supporters

1.
Tom Wagner
9 Likes given in the past week
2.
Nancy Hayden
2 Likes given in the past week
3.
Rachel Kellen Gill
3 Likes given in the past week
...