zhulovesxf 发表于 2005-11-27 15:23:58

看到一些东西,不知道有没有用!

Peer-to-Peer传输标记

保证优质的网络连接,如VoIP 和HTTP等为最优先级,将P2P的优先级设置为最低 RouterOS QOS操作首先使用mangle标记不同类型的传输,然后把它们放入的queues做不同的限制。下面的事例是强迫P2P的总的传输不能超过1Mbps,其他的传输连接则扩大连接带宽和优先级:

> /ip firewall mangle add chain=forwardp2p=all-p2p action=mark-connection new-connection-mark=p2p_conn

> /ip firewall mangle add chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p

> /ip firewall mangle add chain=forwardpacket-mark=!p2p_conn action=mark-packet new-packet-mark=other

> /ip firewall mangle print

Flags: X - disabled, I - invalid, D - dynamic

0   chain=forward p2p=all-p2p action=mark-connection new-connection-mark=p2p_conn



1   chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p



2   chain=forward packet-mark=!p2p_conn action=mark-packet new-packet-mark=other

>

> /queue tree add parent=Public packet-mark=p2p limit-at=1000000max-limit=100000000 priority=8

> /queue tree add parent=Local packet-mark=p2p limit-at=1000000max-limit=100000000 priority=8                                       

> /queue tree add parent=Public packet-mark=otherlimit-at=1000000max-limit=100000000 priority=1

> /queue tree add parent=Local packet-mark=otherlimit-at=1000000max-limit=100000000 priority=1

szlangzi 发表于 2005-11-27 15:43:16

QOS的 priority 的先后顺序是从1-8吗

我不确认 如果是1最有限 而8最后的话 那么 上面的策略应该没错

szlangzi 发表于 2005-11-27 15:46:54

chain=forward packet-mark=!p2p_conn   不知道!是不是表示非 的意识

哪位知道在ROS中是否还有这样的 特殊字符 如!这样的
页: [1]
查看完整版本: 看到一些东西,不知道有没有用!