找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1805|回复: 4

[负载平衡] pcc负载的疑问

[复制链接]
发表于 2011-6-11 00:05:42 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
/ip address add address=59.61.6.238/255.255.252.0 interface=lan comment=lan
/ip dns set primary-dns=218.85.152.99 secondary-dns=218.85.157.99 allow-remote-requests=yes



/ ip firewall mangle
add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:10/0 \
    action=mark-connection new-connection-mark=1st_conn passthrough=yes comment="PCC1"
add chain=prerouting connection-mark=1st_conn in-interface=lan action=mark-routing new-routing-mark=1st_route

add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:10/1 \
    action=mark-connection new-connection-mark=2st_conn passthrough=yes comment="PCC2"
add chain=prerouting connection-mark=2st_conn in-interface=lan action=mark-routing new-routing-mark=2st_route

add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:10/2 \
    action=mark-connection new-connection-mark=3st_conn passthrough=yes comment="PCC3"
add chain=prerouting connection-mark=3st_conn in-interface=lan action=mark-routing new-routing-mark=3st_route

add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:10/3 \
    action=mark-connection new-connection-mark=4st_conn passthrough=yes comment="PCC4"
add chain=prerouting connection-mark=4st_conn in-interface=lan action=mark-routing new-routing-mark=4st_route

add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:10/4 \
    action=mark-connection new-connection-mark=5st_conn passthrough=yes comment="PCC5"
add chain=prerouting connection-mark=5st_conn in-interface=lan action=mark-routing new-routing-mark=5st_route

add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:10/5 \
    action=mark-connection new-connection-mark=6st_conn passthrough=yes comment="PCC6"
add chain=prerouting connection-mark=6st_conn in-interface=lan action=mark-routing new-routing-mark=6st_route

add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:10/6 \
    action=mark-connection new-connection-mark=7st_conn passthrough=yes comment="PCC7"
add chain=prerouting connection-mark=7st_conn in-interface=lan action=mark-routing new-routing-mark=7st_route

add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:10/7 \
    action=mark-connection new-connection-mark=8st_conn passthrough=yes comment="PCC8"
add chain=prerouting connection-mark=8st_conn in-interface=lan action=mark-routing new-routing-mark=8st_route

add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:10/8 \
    action=mark-connection new-connection-mark=9st_conn passthrough=yes comment="PCC9"
add chain=prerouting connection-mark=9st_conn in-interface=lan action=mark-routing new-routing-mark=9st_route

add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses:10/9 \
    action=mark-connection new-connection-mark=10st_conn passthrough=yes comment="PCC10"
add chain=prerouting connection-mark=10st_conn in-interface=lan action=mark-routing new-routing-mark=10st_route



/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out1 routing-mark=1st_route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out2 routing-mark=2st_route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out3 routing-mark=3st_route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out4 routing-mark=4st_route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out5 routing-mark=5st_route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out6 routing-mark=6st_route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out7 routing-mark=7st_route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out8 routing-mark=8st_route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out9 routing-mark=9st_route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    pppoe-out10 routing-mark=10st_route

/ip firewall nat
add action=masquerade chain=srcnat comment=1 out-interface=pppoe-out1
add action=masquerade chain=srcnat comment=2 out-interface=pppoe-out2
add action=masquerade chain=srcnat comment=3 out-interface=pppoe-out3
add action=masquerade chain=srcnat comment=4 out-interface=pppoe-out4
add action=masquerade chain=srcnat comment=5 out-interface=pppoe-out5
add action=masquerade chain=srcnat comment=6 out-interface=pppoe-out6
add action=masquerade chain=srcnat comment=7 out-interface=pppoe-out7
add action=masquerade chain=srcnat comment=8 out-interface=pppoe-out8
add action=masquerade chain=srcnat comment=9 out-interface=pppoe-out9
add action=masquerade chain=srcnat comment=10 out-interface=pppoe-out10

一条2M,10进配置完成后下载速度最多冲到1.8M/s,正常现象?





routeros
 楼主| 发表于 2011-6-11 00:06:22 | 显示全部楼层
经常都在700-800之间。。
routeros
回复

使用道具 举报

 楼主| 发表于 2011-6-11 00:06:57 | 显示全部楼层
5条可以1m/s
routeros
回复

使用道具 举报

 楼主| 发表于 2011-6-11 00:32:31 | 显示全部楼层
有人说流量是从上到下,默认路由就2M,底下那几条没跑满,所以满不了20M,可以做PCC+NTH混合,不知道怎么个混合法?单做NTH可以解决,但是我搞不定掉了一条全掉的问题。。
routeros
回复

使用道具 举报

发表于 2011-6-11 04:51:40 | 显示全部楼层
正常现象……
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-24 16:44 , Processed in 0.068594 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表