找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: ogion

[其它] 不同带宽负载,Passthrough应该是yes还是no啊

  [复制链接]
发表于 2009-12-2 14:56:50 | 显示全部楼层
你什么版本的,还有你的做法比较奇特
routeros
回复

使用道具 举报

发表于 2009-12-2 14:59:27 | 显示全部楼层
你什么版本的,还有你的做法比较奇特
routeros
回复

使用道具 举报

 楼主| 发表于 2009-12-2 15:13:40 | 显示全部楼层
是3.20的,现在把四条改成了三条线,配置如下:
另外还能请教下具体是什么地方奇特了,还望指教下

6   ;;; ChinaUnicom
     chain=prerouting action=mark-packet new-packet-mark=ChinaUnicom passthrough=yes dst-address-list=ChinaUnicom  

7   ;;; ChinaUnicom
     chain=prerouting action=mark-routing new-routing-mark=gw4 passthrough=no dst-address-list=ChinaUnicom packet-mark=ChinaUnicom

8   ;;; 443
     chain=prerouting action=mark-routing new-routing-mark=main passthrough=no protocol=tcp dst-port=443

9   ;;; WEB80
     chain=prerouting action=mark-packet new-packet-mark=web passthrough=yes layer7-protocol=http

10   ;;; line1
     chain=prerouting action=mark-connection new-connection-mark=line1 passthrough=yes connection-state=new src-address-list=balancing dst-address-list=!inside nth=3,1

11   ;;; line1
     chain=prerouting action=mark-routing new-routing-mark=gw1 passthrough=no src-address-list=balancing dst-address-list=!inside connection-mark=line1

12   ;;; line2
     chain=prerouting action=mark-connection new-connection-mark=line2 passthrough=yes connection-state=new src-address-list=balancing dst-address-list=!inside nth=2,1

13   ;;; line2
     chain=prerouting action=mark-routing new-routing-mark=gw3 passthrough=no src-address-list=balancing dst-address-list=!inside connection-mark=line2

14   ;;; line3
     chain=prerouting action=mark-connection new-connection-mark=line3 passthrough=yes connection-state=new src-address-list=balancing dst-address-list=!inside

15   ;;; line3
     chain=prerouting action=mark-routing new-routing-mark=gw2 passthrough=no src-address-list=balancing dst-address-list=!inside connection-mark=line3
routeros
回复

使用道具 举报

发表于 2009-12-2 15:16:03 | 显示全部楼层
你什么版本的,还有你的做法比较奇特
routeros
回复

使用道具 举报

 楼主| 发表于 2009-12-2 15:16:26 | 显示全部楼层
按照上面的配置了三线负载,感觉line1上负载很大,2和3上流量很小,routing-mark统计的gw1数值几乎和gw2和gw3加一起的总和差不多,interface里的流量也是wan1上很大,wan2和wan3流量很小
不知道具体是什么原因,大侠指教啊,谢谢
routeros
回复

使用道具 举报

发表于 2009-12-2 15:20:27 | 显示全部楼层
一段时间后才会平衡
routeros
回复

使用道具 举报

 楼主| 发表于 2009-12-2 15:23:24 | 显示全部楼层
谢谢大侠的回复,上面的passthrough设置应该没问题吧
routeros
回复

使用道具 举报

发表于 2009-12-2 15:36:35 | 显示全部楼层
routeros
回复

使用道具 举报

 楼主| 发表于 2009-12-2 15:40:35 | 显示全部楼层
跑了几个小时,wan口还是差别大
另外在ip-firewall-connections里看到有很多源ip的connection mark 是空的,没有标记到line1-3是不是说明他们是连接的默认main路由啊,这又是怎么回事呢?mark-connection的时候把他们漏了吗
routeros
回复

使用道具 举报

发表于 2009-12-2 16:43:34 | 显示全部楼层
个人觉得,楼主的问题都不大!相信我,可加我!
   现在在研究,如果是多ADSL,加光纤,怎么用光纤的上行补充ADSL的不足!上下行不对称!
routeros
回复

使用道具 举报

发表于 2009-12-2 16:45:05 | 显示全部楼层
NTH与RANDOM在上下行比较均的情况下都还好用,但如果有根比较特别的线路,就有点难度了!
routeros
回复

使用道具 举报

 楼主| 发表于 2009-12-3 10:37:00 | 显示全部楼层
用了透明代理,访问网页是不是就不能均衡了啊,发现总是从一条线出去的
routeros
回复

使用道具 举报

发表于 2009-12-3 15:45:08 | 显示全部楼层
代理应该是走默认
routeros
回复

使用道具 举报

 楼主| 发表于 2009-12-3 16:02:44 | 显示全部楼层
确实,代理走的是默认网关,不能负载了
routeros
回复

使用道具 举报

发表于 2009-12-3 16:56:36 | 显示全部楼层
本帖最后由 robert_cao 于 2009-12-3 17:01 编辑

passthrough的意思是数据包是否往下传递。

楼主的环境,用random比较适合。
当passthrough设置为yes时,比例为29%,29%,29%,13%
当passthrough设置为no时,比例为29%,40%,67%,最后一个不用设置。
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-11 06:24 , Processed in 0.124813 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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