Coder Social home page Coder Social logo

temp's Introduction

DPDK-Protocol-Stack

 _____  _____  _____  _  __     _____           _                  _        _____ _             _    
|  __ \|  __ \|  __ \| |/ /    |  __ \         | |                | |      / ____| |           | |   
| |  | | |__) | |  | | ' /_____| |__) | __ ___ | |_ ___   ___ ___ | |_____| (___ | |_ __ _  ___| | __
| |  | |  ___/| |  | |  <______|  ___/ '__/ _ \| __/ _ \ / __/ _ \| |______\___ \| __/ _` |/ __| |/ /
| |__| | |    | |__| | . \     | |   | | | (_) | || (_) | (_| (_) | |      ____) | || (_| | (__|   < 
|_____/|_|    |_____/|_|\_\    |_|   |_|  \___/ \__\___/ \___\___/|_|     |_____/ \__\__,_|\___|_|\_\

Simple protocol stack based on dpdk(使用dpdk搭建协议栈)

为了对协议栈了解更深入一些,借助dpdk-19.08实现一个简易协议栈。

本项目要完成的工作如下:

  1. dpdk相关配置
  2. 实现协议栈,主要针对TCP与UDP,包含三次握手、四次挥手、TCP滑动窗口、超时重传
  3. 实现服务端socket系统调用api:socket、bind、listen、accept、recv、send、recvfrom、sendto、recv、send、close
  4. 实现epoll多线程,接口

使用

环境:安装dpdp-19.08 or dpdk-19.11,多队列网卡,配置好dpdk驱动

注意:加入权限:sudo su

make clean;make
sh run.sh

测试

./build/test

windows中可以使用类似网络调试助手的工具软件给虚拟机发送tcp/udp数据包 测试时,需要在客户端增加一条arp表项,目的是为了客户端能根据mac地址将数据包发送至服务端

其他

  • 本项目在持续开发、优化中o( ̄▽ ̄)ブ

temp's People

Contributors

sugarlxn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.