接上篇博文: http://blog.csdn.net/gw569453350game/article/details/53127800
TCP/IP 的结构如下图所示:
Ethercat 的结构如下图所示:
如果觉得 raw socket 的 Ethercat 实现相应速度不够快,可以尝试设置:
sudo ethtool
-A eth0 autoneg off
rx off tx off
echo
0 > /proc/irq
/$IRQ/smp_affinity_list
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