首页 > 其他分享 >ROS的Fasttrack,可以极大的减少ROS的CPU使用率已经带宽!特别注意:如果开启了 fasttrack,simple queue 将失效。

ROS的Fasttrack,可以极大的减少ROS的CPU使用率已经带宽!特别注意:如果开启了 fasttrack,simple queue 将失效。

时间:2022-11-23 10:27:13浏览次数:69  
标签:fasttrack FastTrack firewall series Fasttrack connection ip ROS ports

原文

http://t.zoukankan.com/itfat-p-12936850.html

https://wiki.mikrotik.com/wiki/Manual:IP/Fasttrack

特别注意:如果开启了 fasttrack,simple queue 将失效。

需要两条命令来执行:

/ip firewall filter add chain=forward action=fasttrack-connection connection-state=established,related
/ip firewall filter add chain=forward action=accept connection-state=established,related

条件!

IPv4 FastTrack is active if following conditions are met:

  • no meshmetarouter interface configuration;
  • sniffertorch and traffic generator is not running;
  • no active mac-ping, mac-telnet or mac-winbox sessions restriction removed in 6.33;
  • /tool mac-scan is not actively used;
  • /tool ip-scan is not actively used;
  • FastPath and Route cache is enabled under IP/Settings

Description

IPv4 FastTrack handler is automatically used for marked connections. Use firewall action "fasttrack-connection" to mark connections for FastTrack. Currently only TCP and UDP connections can be actually FastTracked (even though any connection can be marked for FastTrack). IPv4 FastTrack handler supports NAT (SNAT, DNAT or both).

Note that not all packets in a connection can be FastTracked, so it is likely to see some packets going through slow path even though connection is marked for FastTrack. This is the reason why fasttrack-connection is usually followed by identical action=accept rule. FastTracked packets bypass firewall, connection tracking, simple queues, queue tree with parent=global, ip traffic-flow(restriction removed in 6.33), IP accounting, IPSec, hotspot universal client, VRF assignment, so it is up to administrator to make sure FastTrack does not interfere with other configuration;

支持的硬件清单如下图:

或者可以通过查询默认配置来确认是否支持快速转发Fasttrack

/system default-configuration print

FastTrack is supported on the listed devices.

RouterBoardInterfaces
RB6xx series ether1,2
RB7xx series all ports
RB800 ether1,2
RB9xx series all ports
RB1000 all ports
RB1100, RB1000AHx2 ether1-11
RB1000AHx2 all ports
RB2011 series all ports
RB3011 series all ports
RB4011 series all ports
CRS series routers all ports except management interface (if the device has one)
CCR series routers all ports except management interface (if the device has one)
All devices wireless interfaces, if wireless-fp, wireless-cm2, wireless-rep or wireless (starting from 6.37) package used

Examples

Initial configuration

For example, in home routers with factory default configuration, you could FastTrack all LAN traffic with this one rule placed at the top of the Firewall Filter. The same configuration accept rule is required:

/ip firewall filter add chain=forward action=fasttrack-connection connection-state=established,related
/ip firewall filter add chain=forward action=accept connection-state=established,related

View of simple FastTrack rules in the firewall, it is important to have other filter or mangle rules to get the advantage of the FastTrack:

  • /ip firewall filter
Fasttrack1 example.png  
  • /ip firewall mangle
Screenshot 2015-11-27 09.40.09.png   Icon-warn.png

Warning: Queues (except Queue Trees parented to interfaces), firewall filter and mangle rules will not be applied for FastTracked traffic.

  • Connection is FastTracked until connection is closed, timed-out or router is rebooted.
  • Dummy rules will dissapear only after FastTrack firewall rules will be deleted/disabled and router rebooted.

FastTrack on RB2011

FastTrack is enabled on RB2011 at chain=forward with the rule from previous example. Bandwidth test with single TCP stream is sent,

Fasttrackon2011.png

标签:fasttrack,FastTrack,firewall,series,Fasttrack,connection,ip,ROS,ports
From: https://www.cnblogs.com/itfat/p/16917402.html

相关文章

  • ROS_C++_第三方库Eigen
    Eigen提供了快速的矩阵线性代数运算,矩阵、向量、旋转矩阵、变换矩阵。Eigen是纯头文件搭建成的库,使用时只需引入Eigen的头文件即可,不需要链接库文件target_link安装......
  • regexcrossword Hamlet篇
    一个练习正则表达式的网站,用类似数独的方式填写,但是规则是正则。从简单到难循序渐进,网址:https://regexcrossword.com偶尔访问不了基本的话,DoubleCross篇之前的做一遍,正......
  • 未在本地计算机上注册“Microsoft.ACE.OLEDB.12.0”提供程序
    1、需要在服务器安装AccessDatabaseEngine_2010_X64.exe驱动程序2、虽然金蝶安装程序目录是32位的,但是IIS的w3wp进程是64位,所以安装64位的AccessDatabaseEngine才有用3......
  • ROS_解析protobuf
    protobufProtobuf的数据结构定义的语法,以及如何编译proto文件,以及相关的主要读写proto文件结构中的API说明:读bin文件API是bin文件二进制形式,Prototxt文件是......
  • 遨博机械臂——末端工具ROS驱动
    文章目录​​知识目标​​​​1.机械臂末端工具(EOAT)​​​​2.电动夹爪​​​​3.气动吸盘​​​​参考​​知识目标学习机械臂常用末端工具构成;学习aubo机械臂安装电动......
  • 遨博机械臂URDF功能包ROS仿真
    文章目录​​知识目标​​​​1.机械臂URDF功能包文件结构​​​​2.URDF模型中的元素和参数​​​​3.任务描述​​​​3.1修订launch启动文件参数​​​​3.2URDF功能包......
  • Microstation V8i输出三维模型为3Dpdf格式
    在file->print,在对话框中PrinterandPaperSize选择Bentleydriver,点选右上角的Printto3D复选框。最后,点击打印。注意:有的pdf阅读器不一定支持3Dpdf的显示。 ......
  • ROS应用层通信协议解析
    参考:http://wiki.ros.org/ROS/Master_APIhttp://wiki.ros.org/ROS/ConnectionHeader说明ROS本质上就是一个松耦合的通信框架,通信模式包括:远程调用(service-client)、订阅......
  • 白泽六足机器人_ros_v1——零件准备
    导航在这里:ROS六足机器人导航贴1.主控板fireflyrk3328(支持ubuntu18.04)或者Nanopik2  x12.舵机驱动板  x1例如这个链接:​​https://item.taobao.com/item.htm?spm......
  • ROS主从机通讯
    目录​​1.查看IP地址​​​​2.分别给两台电脑设置静态IP​​​​3.修改.bashrc​​​​4.测试​​​​5.不同版本ROS通讯​​今天学习使用一下ros的主从机通讯功能。本人......