2

Assuming Linux, would it be possible to implement a TCP/IP stack in the user context (vs. kernel)? How would you do it? What would be pros and cons of such an implementation, as compared to the conventional implementations where the stack resides in the kernel?

2
  • Easily: make a VM which translate TCP/IP calls from inside OS to outside via any other mechanism :) Cons are simple: slowdown because userspace passes more security and safety checks than direct kernel code, which even can rush mad easily.
    – user140866
    Nov 8, 2015 at 17:01
  • But there is a related pro too: avoiding user/kernel context switches.
    – saulius2
    Apr 14, 2018 at 15:11

0

You must log in to answer this question.

Browse other questions tagged .