Kernel bypass for UDP and TCP on Linux- what does it involve?

前端 未结 3 1435
我寻月下人不归
我寻月下人不归 2021-02-03 15:13

Per http://www.solacesystems.com/blog/kernel-bypass-revving-up-linux-networking:

[...]a network driver called OpenOnload that use “kernel bypass” tec

3条回答
  •  孤街浪徒
    2021-02-03 16:08

    Do you perhaps want to send and recieve raw IP packets?

    Basically you will need to fill in headers and data in a ip-packet. There are some examples here on how to send raw ethernet packets: :http://austinmarton.wordpress.com/2011/09/14/sending-raw-ethernet-packets-from-a-specific-interface-in-c-on-linux/

    To handle TCP/IP on your own, i think that you might need to disable the TCP driver in a custom kernel, and then write your own user space server that reads raw ip.

    It's probably not that efficient though...

提交回复
热议问题