ANS(AcceletedNetworkStack)是一个基于DPDK的TCP/IPstack,可以运行在linuxuserspace。用户可以自由添加、删除ether接口和IP地址,添加、删除静态路由。
支持的环境
EALisbasedondpdk-1.7.0
Developmentenviromentisbasedonx86_64-native-linuxapp-gcc
TCP/IPstackisbasedonFreeBSD10.0-RELEASE
支持的特性
Netdpinitialize
Etherlayer
ARP
IPlayer
Routing
ICMP
TCP
UDP
Commandsforadding,deleting,showingIPaddress
Commandsforadding,deleting,showingstaticroute
Testing
TCP连接建立释放性能
|--------------------------------------| | TCP Server accept performance | |--------------------------------------| | Linux with epoll | NETDP with epoll | | (Multi core) | (one core) | |--------------------------------------| | 53k connection/s | 43k connection/s | |--------------------------------------|TCP数据传输性能
一个socket接收190Mbytetcppayload,一个socket发送130Mbytetcpplayload
Communication(synchronization) 0 runtime: 0.734931 sCommunication(synchronization) 1 runtime: 0.469566 sCommunication(synchronization) 2 runtime: 0.449729 sCommunication(synchronization) 3 runtime: 0.648432 sCommunication(synchronization) 4 runtime: 0.449422 sCommunication(synchronization) 5 runtime: 0.647259 sCommunication(synchronization) 6 runtime: 0.457027 sCommunication(synchronization) 7 runtime: 0.457691 sCommunication(synchronization) 8 runtime: 0.67568 sCommunication(synchronization) 9 runtime: 0.736285 s三层转发性能
|--------------------------------------| | L3 forwarding performance | | (one lcore) | |--------------------------------------| | Packet size(byte)| Throughput(Mpps) | |--------------------------------------| | 64 | 3.682 | |--------------------------------------| | 128 | 3.682 | |--------------------------------------| | 256 | 3.683 | |--------------------------------------| | 512 | 2.35 | |--------------------------------------| | 1024 | 1.197 | |--------------------------------------| | 1500 | 0.822 | |--------------------------------------|
评论