wireshark 抓取 TCPIP & Ethercat

    xiaoxiao2021-10-29  150

    接上篇博文: http://blog.csdn.net/gw569453350game/article/details/53127800

    TCP/IP 的结构如下图所示:

    Ethercat 的结构如下图所示:

    如果觉得 raw socket 的 Ethercat 实现相应速度不够快,可以尝试设置:

    sudo ethtool -A eth0 autoneg off rx off tx off // 关闭 Ethernet flow control echo 0 > /proc/irq/$IRQ/smp_affinity_list // 关闭 irqbalance 服务,手动设置好响应中断的cpu. $IRQ 为 eth0 分配的终端号: cat /proc/interrupts | grep eth0 查看 ethtool -C eth0 rx-usecs 0 rx-frames 1 tx-usecs 0 tx-frames 1 // 设置中断相应

    see link: https://blog.cloudflare.com/how-to-achieve-low-latency/

    转载请注明原文地址: https://ju.6miu.com/read-677851.html

    最新回复(0)