TCP/IP stack for DPDK
hi,
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is based on dpdk rte_mbuf, rte_ring, rte_memory and rte_table. it is faster to forwarding packets.
Below feature are ready:
Netdp initialize
Ether layer
ARP
IP layer
Routing
ICMP
Commands for adding, deleting, showing IP address Commands for adding, deleting, showing static route Next planning:
Porting udp to netdp.
Porting tcp to netdp.
Porting socket to netdp.
You can find the code from the link: https://github.com/dpdk-net/netdp
Quoted 3 lines · zimeiw
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is based on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.
Hello,
This is awesome work to be doing and badly needed to use DPDK for any L4 purposes where it is very limited. I'll be following your progress.
You didn't mention your name, and compare your work with
https://github.com/rumpkernel/dpdk-rumptcpip/ , and talk about behavior / performance, and how long you think it'll take. I'm curious if you can give some more comments.
I'm implementing an RX-side very basic stack myself... but I'm not using BSD standard APIs or doing TX-side like yours will have.
Matthew.
Quoted 18 lines · Matthew Hall
Quoted 3 lines · zimeiw
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is based on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.Hello,
This is awesome work to be doing and badly needed to use DPDK for any L4 purposes where it is very limited. I'll be following your progress.
You didn't mention your name, and compare your work with
https://github.com/rumpkernel/dpdk-rumptcpip/ , and talk about behavior / performance, and how long you think it'll take. I'm curious if you can give some more comments.
Quoted 4 lines
I'm implementing an RX-side very basic stack myself... but I'm not using BSD standard APIs or doing TX-side like yours will have.
Matthew.
It’s interesting timing. We had just been talking (earlier today) to Venky Venkatesan at the DPDK Summit about a similar effort using libuinet
https://github.com/pkelsey/libuinet <https://github.com/pkelsey/libuinet> or the work out of Sandstone (over netmap)
http://conferences.sigcomm.org/hotnets/2013/papers/hotnets-final43.pdf <http://conferences.sigcomm.org/hotnets/2013/papers/hotnets-final43.pdf>
http://dl.acm.org/citation.cfm?id=2626311&dl=ACM&coll=DL&CFID=422196400&CFTOKEN=18275972 <http://dl.acm.org/citation.cfm?id=2626311&dl=ACM&coll=DL&CFID=422196400&CFTOKEN=18275972>
Jim
I've ported the Linux kernel TCP/IP stack to user space and integrated with DPDK, the source and documentation and the roadmap will be published (and announced) within few days.
Regards,
Vadim
Quoted 22 lines · Matthew Hall
Quoted 1 line · zimeiw
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is
based
Quoted 2 lines
on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.Hello,
This is awesome work to be doing and badly needed to use DPDK for any L4 purposes where it is very limited. I'll be following your progress.
You didn't mention your name, and compare your work with
https://github.com/rumpkernel/dpdk-rumptcpip/ , and talk about behavior / performance, and how long you think it'll take. I'm curious if you can give some more comments.I'm implementing an RX-side very basic stack myself... but I'm not using BSD
standard APIs or doing TX-side like yours will have.Matthew.
Quoted 9 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Vadim Suraev
Sent: Tuesday, September 9, 2014 2:30 PM
To: Matthew Hall
Cc: [email protected]
Subject: Re: [dpdk-dev] TCP/IP stack for DPDK
Quoted 3 lines
I've ported the Linux kernel TCP/IP stack to user space and integrated with DPDK, the source and documentation and the roadmap will be published (and announced) within few days.
Any license issue of porting Linux kernel stack into DPDK?
Quoted 26 lines
Regards,
VadimQuoted 22 lines · Matthew Hall
Quoted 2 lines · zimeiw
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is
based
Quoted 2 lines
on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.Hello,
This is awesome work to be doing and badly needed to use DPDK for any L4 purposes where it is very limited. I'll be following your progress.
You didn't mention your name, and compare your work with
https://github.com/rumpkernel/dpdk-rumptcpip/ , and talk about behavior / performance, and how long you think it'll take. I'm curious if you can give some more comments.I'm implementing an RX-side very basic stack myself... but I'm not using BSD standard APIs or doing TX-side like yours will have.
Matthew.
Regards,
Helin
IMHO, since GPL is more restrictive so the source must remain open
Quoted 47 lines · Helin
Quoted 10 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Vadim Suraev
Sent: Tuesday, September 9, 2014 2:30 PM
To: Matthew Hall
Cc: [email protected]
Subject: Re: [dpdk-dev] TCP/IP stack for DPDKI've ported the Linux kernel TCP/IP stack to user space and integrated
with
Quoted 1 line
DPDK, the source and documentation and the roadmap will be published
(and
Quoted 1 line
announced) within few days.
Any license issue of porting Linux kernel stack into DPDK?
Quoted 26 lines
Regards,
VadimQuoted 22 lines · Matthew Hall
Quoted 2 lines · zimeiw
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is
based
Quoted 2 lines
on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.Hello,
This is awesome work to be doing and badly needed to use DPDK for any L4 purposes where it is very limited. I'll be following your progress.
You didn't mention your name, and compare your work with
https://github.com/rumpkernel/dpdk-rumptcpip/ , and talk about behavior / performance, and how long you think it'll take. I'm curious if you can give some more comments.I'm implementing an RX-side very basic stack myself... but I'm not using BSD standard APIs or doing TX-side like yours will have.
Matthew.
Regards,
Helin
☺ That means your great works under GPL/LGPL license will not occur in DPDK main line, as it is always BSD license.
Regards,
Helin
From: Vadim Suraev [mailto:[email protected]]
Sent: Tuesday, September 9, 2014 2:43 PM
To: Zhang, Helin
Cc: Matthew Hall; [email protected]
Subject: RE: [dpdk-dev] TCP/IP stack for DPDK
IMHO, since GPL is more restrictive so the source must remain open
Quoted 10 lines · On Sep 9, 2014 9:39 AM, "Zhang, Helin" <[email protected]<mailto:helin.zhan…
-----Original Message-----
From: dev [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Vadim Suraev
Sent: Tuesday, September 9, 2014 2:30 PM
To: Matthew Hall
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [dpdk-dev] TCP/IP stack for DPDKI've ported the Linux kernel TCP/IP stack to user space and integrated with DPDK, the source and documentation and the roadmap will be published (and announced) within few days.
Any license issue of porting Linux kernel stack into DPDK?
Quoted 26 lines
Regards,
VadimQuoted 22 lines · On Sep 9, 2014 9:20 AM, "Matthew Hall" <[email protected]<mailto:mhall@mhco…
Quoted 2 lines · zimeiw
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is
based
Quoted 2 lines
on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.Hello,
This is awesome work to be doing and badly needed to use DPDK for any L4 purposes where it is very limited. I'll be following your progress.
You didn't mention your name, and compare your work with
https://github.com/rumpkernel/dpdk-rumptcpip/ , and talk about behavior / performance, and how long you think it'll take. I'm curious if you can give some more comments.I'm implementing an RX-side very basic stack myself... but I'm not using BSD standard APIs or doing TX-side like yours will have.
Matthew.
Regards,
Helin
Quoted 4 lines · Helin
That means your great works under GPL/LGPL license will not occur in DPDK main line, as it is always BSD license.
Regards,
Helin
However despite this issue, there are some cases where the Linux stack is greatly superior to the BSD one although normally the opposite is the case... AF_NETLINK for configuring 10,000+ IP addresses, especially for L4-L7 performance testing, would be one possible example of this. Another potential example would be the BPF JIT compiler if you want to combine BPF filters with DPDK (something I'm doing right now in my own code actually).
Matthew.
hi,
netdp stack use rte_mbuf directly, so no packet copied from DPDK port queue to netdp stack. netdp forwarding performance is same as FreeBSD.
Quoted 19 lines · Matthew Hall
Quoted 3 lines · zimeiw
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is based on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.Hello,
This is awesome work to be doing and badly needed to use DPDK for any L4 purposes where it is very limited. I'll be following your progress.
You didn't mention your name, and compare your work with
https://github.com/rumpkernel/dpdk-rumptcpip/ , and talk about behavior / performance, and how long you think it'll take. I'm curious if you can give some more comments.I'm implementing an RX-side very basic stack myself... but I'm not using BSD standard APIs or doing TX-side like yours will have.
Matthew.
Quoted 6 lines · Matthew Hall
However despite this issue, there are some cases where the Linux stack is greatly superior to the BSD one although normally the opposite is the case...
AF_NETLINKfor configuring 10,000+ IP addresses, especially for L4-L7 performance testing, would be one possible example of this. Another potential example would be the BPF JIT compiler if you want to combine BPF filters with DPDK (something I'm doing right now in my own code actually).
BPF JIT is available in NetBSD too. It should be quite staightforward to enable it in the rump-dpdk kernel.
Alex
Porting Linux stack to DPDK opens up a licensing can of worms. Linux code is GPLv2, and DPDK code is BSD. Any combination of the two would end up
being covered by the Linux GPLv2 license.
Quoted 32 lines · Vadim Suraev
I've ported the Linux kernel TCP/IP stack to user space and integrated with DPDK, the source and documentation and the roadmap will be published (and announced) within few days.
Regards,
VadimQuoted 6 lines · Matthew Hall
Quoted 1 line · zimeiw
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is
based
Quoted 2 lines
on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.Quoted 7 lines
Hello,
This is awesome work to be doing and badly needed to use DPDK for any L4 purposes where it is very limited. I'll be following your progress.
You didn't mention your name, and compare your work with
https://github.com/rumpkernel/dpdk-rumptcpip/ , and talk about behavior/
Quoted 1 line
performance, and how long you think it'll take. I'm curious if you can
give
Quoted 8 lines
some more comments.
I'm implementing an RX-side very basic stack myself... but I'm not using BSD
standard APIs or doing TX-side like yours will have.Matthew.
Quoted 11 lines · Alexander Nasonov
Quoted 6 lines · Matthew Hall
However despite this issue, there are some cases where the Linux stack is greatly superior to the BSD one although normally the opposite is the case...
AF_NETLINKfor configuring 10,000+ IP addresses, especially for L4-L7 performance testing, would be one possible example of this. Another potential example would be the BPF JIT compiler if you want to combine BPF filters with DPDK (something I'm doing right now in my own code actually).
Quoted 2 lines
BPF JIT is available in NetBSD too. It should be quite staightforward to enable it in the rump-dpdk kernel.
BPF JIT, or even pflua[1] should be straight-forward to put on top of DPDK. (It’s straight-forward to do on top of netmap.)
jim
The licensing worms prevent IMHO only selling the source code, although, porting may be useful
Quoted 43 lines · Stephen Hemminger
Porting Linux stack to DPDK opens up a licensing can of worms. Linux code is GPLv2, and DPDK code is BSD. Any combination of the two would end up
being covered by the Linux GPLv2 license.Quoted 33 lines · Vadim Suraev
I've ported the Linux kernel TCP/IP stack to user space and integrated with
DPDK, the source and documentation and the roadmap will be published (and announced) within few days.
Regards,
VadimQuoted 6 lines · Matthew Hall
Quoted 1 line · zimeiw
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is
based
Quoted 2 lines
on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.Quoted 7 lines
Hello,
This is awesome work to be doing and badly needed to use DPDK for any L4 purposes where it is very limited. I'll be following your progress.
You didn't mention your name, and compare your work with
https://github.com/rumpkernel/dpdk-rumptcpip/ , and talk aboutbehavior /
Quoted 1 line
performance, and how long you think it'll take. I'm curious if you can
give
Quoted 8 lines
some more comments.
I'm implementing an RX-side very basic stack myself... but I'm not using BSD
standard APIs or doing TX-side like yours will have.Matthew.
Then you don’t understand licensing.
the GPL has a requirement that you make one of two offers:
The fourth section for version 2 of the license and the seventh section of version 3 require that programs distributed as pre-compiled binaries are accompanied by a copy of the source code, or a written offer *valid for any third party* to obtain the source code via the same mechanism as the pre-compiled binary.
You can’t sell the source, you have to make it available, either with the binary, or to anyone who asks.
There are other terms and conditions with the GPL (patent licenses, etc.)
Jim
Quoted 50 lines · Vadim Suraev
The licensing worms prevent IMHO only selling the source code, although, porting may be useful
Quoted 43 lines · Stephen Hemminger
Porting Linux stack to DPDK opens up a licensing can of worms. Linux code is GPLv2, and DPDK code is BSD. Any combination of the two would end up
being covered by the Linux GPLv2 license.Quoted 33 lines · Vadim Suraev
I've ported the Linux kernel TCP/IP stack to user space and integrated with
DPDK, the source and documentation and the roadmap will be published (and announced) within few days.
Regards,
VadimQuoted 6 lines · Matthew Hall
Quoted 1 line · zimeiw
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is
based
Quoted 2 lines
on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.Quoted 7 lines
Hello,
This is awesome work to be doing and badly needed to use DPDK for any L4 purposes where it is very limited. I'll be following your progress.
You didn't mention your name, and compare your work with
https://github.com/rumpkernel/dpdk-rumptcpip/ , and talk aboutbehavior /
Quoted 1 line
performance, and how long you think it'll take. I'm curious if you can
give
Quoted 8 lines
some more comments.
I'm implementing an RX-side very basic stack myself... but I'm not using BSD
standard APIs or doing TX-side like yours will have.Matthew.
#You can’t sell the source, you have to make it available, either with the binary, or to anyone who asks#
But I didn't tell I want to sell it, and I open all the source
Quoted 77 lines · Jim Thompson
Then you don’t understand licensing.
the GPL has a requirement that you make one of two offers:
The fourth section for version 2 of the license and the seventh section of version 3 require that programs distributed as pre-compiled binaries are accompanied by a copy of the source code, or a written offer *valid for any third party* to obtain the source code via the same mechanism as the pre-compiled binary.
You can’t sell the source, you have to make it available, either with the binary, or to anyone who asks.
There are other terms and conditions with the GPL (patent licenses, etc.)
Jim
On Sep 9, 2014, at 8:19 AM, Vadim Suraev <[email protected]> wrote:
The licensing worms prevent IMHO only selling the source code, although,
porting may be useful
On Sep 9, 2014 5:54 PM, "Stephen Hemminger" <[email protected]> wrote:Porting Linux stack to DPDK opens up a licensing can of worms. Linux code is GPLv2, and DPDK code is BSD. Any combination of the two would end up
being covered by the Linux GPLv2 license.On Mon, Sep 8, 2014 at 11:30 PM, Vadim Suraev <[email protected]> wrote:
I've ported the Linux kernel TCP/IP stack to user space and integrated
with
DPDK, the source and documentation and the roadmap will be published (and announced) within few days.
Regards,
Vadim
On Sep 9, 2014 9:20 AM, "Matthew Hall" <[email protected]> wrote:On Tue, Sep 09, 2014 at 08:49:44AM +0800, zimeiw wrote:
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is
based
on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.Hello,
This is awesome work to be doing and badly needed to use DPDK for any L4 purposes where it is very limited. I'll be following your progress.
You didn't mention your name, and compare your work with
https://github.com/rumpkernel/dpdk-rumptcpip/ , and talk aboutbehavior /
performance, and how long you think it'll take. I'm curious if you can
give
some more comments.
I'm implementing an RX-side very basic stack myself... but I'm not using BSD
standard APIs or doing TX-side like yours will have.Matthew.
Quoted 18 lines · zimeiw
hi,
I have porting major FreeBSD tcp/ip stack to dpdk. new tcp/ip stack is based on dpdk
rte_mbuf,rte_ring,rte_memoryandrte_table. it is faster to forwarding packets.Below feature are ready:
Netdp initialize
Ether layer
ARP
IP layer
Routing
ICMP
Commands for adding, deleting, showing IP address Commands for adding, deleting, showing static route Next planning:
Porting udp to netdp.
Quoted 8 lines
Porting tcp to netdp.
Porting socket to netdp.You can find the code from the link: https://github.com/dpdk-net/netdp
Hi zimeiw, when will you be posting the source code to github? I can only find a static lib and some header files. Thanks,
Jeff
Quoted 5 lines · Jim Thompson
BPF JIT, or even pflua[1] should be straight-forward to put on top of DPDK. (It?s straight-forward to do on top of netmap.)
jim
Glad to see LuaJIT here. I hope to DPDK will eventually add support for LuaJIT.
Alex
Quoted 4 lines · Stephen Hemminger
Porting Linux stack to DPDK opens up a licensing can of worms. Linux code is GPLv2, and DPDK code is BSD. Any combination of the two would end up
being covered by the Linux GPLv2 license.
It would be a can of worms for a closed-source app. Which is why some others have used the BSD stack. But it doesn't mean it isn't useful code.
Matthew.
Quoted 4 lines · Jim Thompson
BPF JIT, or even pflua[1] should be straight-forward to put on top of DPDK. (It’s straight-forward to do on top of netmap.)
jim
The pflua guys made a user-space copy of Linux BPF JIT. I'm planning to use that because it was almost as fast as pflua with a lot fewer usage headaches and dependencies.
I'm making an MIT licensed app... so it isn't an issue for me personally if there is some GPL2 Linux code present. I don't think anybody made a non-rump version of the BSD one yet or I'd use that... I'm trying not to stray too far from the app's original purposes until it has some working features present.
Until that time comes, I just started out with libpcap offline mode BPF for development purposes because it's standard and already available, and allows operations upon raw packet pointers with no issues at all.
Matthew.
Quoted 3 lines · Matthew Hall
The pflua guys made a user-space copy of Linux BPF JIT. I'm planning to use that because it was almost as fast as pflua with a lot fewer usage headaches and dependencies.
Ah, I see.
Quoted 4 lines
I'm making an MIT licensed app... so it isn't an issue for me personally if there is some GPL2 Linux code present. I don't think anybody made a non-rump version of the BSD one yet or I'd use that... I'm trying not to stray too far from the app's original purposes until it has some working features present.
sys/net/bpfjit.c in NetBSD should be very easy to adapt to Linux. I was often testing it on Linux in userspace (without mbuf support). At the moment, I'm only allowed to work on some NetBSD projects and I can't adapt bpfjit to anything outside of NetBSD but when I last compiled bpfjit on Linux, it took me about a minute to fix compilation.
Please try github version, it's not up-to-date but it worked on Linux:
https://github.com/alnsn/bpfjit
Alex
Hi,
Quoted 4 lines · Jeff Shaw
Quoted 1 line
You can find the code from the link: https://github.com/dpdk-net/netdp
Hi zimeiw, when will you be posting the source code to github? I can only find a static lib and some header files.
It's BSD licensed, getting only the binary should be good enough for you. :-)
A.
Quoted 11 lines · Alexander Nasonov
sys/net/bpfjit.cin NetBSD should be very easy to adapt to Linux. I was often testing it on Linux in userspace (without mbuf support). At the moment, I'm only allowed to work on some NetBSD projects and I can't adapt bpfjit to anything outside of NetBSD but when I last compiled bpfjit on Linux, it took me about a minute to fix compilation.Please try github version, it's not up-to-date but it worked on Linux:
https://github.com/alnsn/bpfjit
Alex
Alex,
You rock, thanks for supplying this, I'll be sure to use it along with upstream changes from BSD to get a friendlier license for users of my code, whoever they might eventually be.
If I forked this from you and updated it to the latest code periodically for performance, security, and features, would you accept the pull requests?
Matthew.
Quoted 8 lines · Matthew Hall
Alex,
You rock, thanks for supplying this, I'll be sure to use it along with upstream changes from BSD to get a friendlier license for users of my code, whoever they might eventually be.
If I forked this from you and updated it to the latest code periodically for performance, security, and features, would you accept the pull requests?
I think it shouldn't be a problem.
PS my stuff depends on sljit which is also BSD-licensed.
Alex
hi,
Currently, still not open the netdp lib source code.
But could provide some hooks in netdp for user to special handle packet if need.
Quoted 12 lines · Aaro Koskinen
Hi,
Quoted 4 lines · Jeff Shaw
Quoted 1 line
You can find the code from the link: https://github.com/dpdk-net/netdp
Hi zimeiw, when will you be posting the source code to github? I can only find a static lib and some header files.
It's BSD licensed, getting only the binary should be good enough for you. :-)
A.