随笔分类 -  trex

trex相关研究
摘要:run_in_rx_core的工作主要是将绑定到本port端的网络节点数据接收后转发到dpdk发送,工作流程如下图所示 flowchart LR subgraph CRxCore start --> _do_start _do_start --> cold_state_loop _do_start 阅读全文
posted @ 2022-05-23 18:11 staylight 阅读(130) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2022-05-09 15:40 staylight 阅读(10) 评论(0) 推荐(0)
摘要:trex在service模式下提供了几种抓包分析的方式,其抓包原理如下图所示: 通过console的方式来抓包 方式一: trex>service Enabling service mode on port(s): [0, 1] [SUCCESS] 6.72 [ms] trex(service)>c 阅读全文
posted @ 2022-04-22 10:22 staylight 阅读(1070) 评论(0) 推荐(0)
摘要:trex-bird原理 TRex-Bird架构图 trex 结合bird服务是采用linux上的veth及网络命名空间的技术: bird运行在trex-a-bird-ns 网络namespace里,创建veth虚接口对bird-0-0-T和bird-0-0-L; veth接口对bird-0-0-L接 阅读全文
posted @ 2022-03-04 09:32 staylight 阅读(470) 评论(0) 推荐(0)
摘要:增加swapfile sudo /sbin/mkswap /dev/sdb1 sudo mkswap /dev/sdb1 build trex support dpdk and bird sudo apt-get install -y autoconf flex bison binutils g++ 阅读全文
posted @ 2022-03-01 10:21 staylight 阅读(528) 评论(1) 推荐(0)
该文被密码保护。
posted @ 2022-02-22 11:21 staylight 阅读(13) 评论(0) 推荐(0)
摘要:scapy rpc client主体代码 #!/usr/bin/env python # simple scapy server tests # pip install pcapy scapy zmq nose # to run use nosetests scapy_test.py import 阅读全文
posted @ 2022-01-25 10:38 staylight 阅读(163) 评论(0) 推荐(0)
摘要:trex配置文件 trex_cfg.yaml - port_limit : 2 version : 2 #List of interfaces. Change to suit your setup. Use ./dpdk_setup_ports.py -s to see available opti 阅读全文
posted @ 2022-01-13 11:10 staylight 阅读(506) 评论(0) 推荐(0)