V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
nescirem
V2EX  ›  互联网

ipv6 和 ipv4 速度不一致, Qos 该如何设置

  •  
  •   nescirem · 2018-06-23 18:02:28 +08:00 · 1963 次点击
    这是一个创建于 2353 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如果运营商提供的

    • ipv4 上下行均为 4.5Mbps
    • ipv6 上下行分别为 30Mbps 与 45Mbps

    由于是NAT66实现的 ipv6,并不能通过 interface 来判断 ipv6/ipv4 的流量并分别设置 Qos(由路由器 interface 实时流量判断,并不确定) 。

    试验后发现

    如果我以 ipv4 上下行速度设置 upload 与 download 会使得我的 ipv6 上下行速度也会被限制为 4.5Mbps。


    这里使用的是 LEDE 官方源的luci-app-qos

    config interface 'wan'
    	option classgroup 'Default'
    	option enabled '1'
    	option download '51000'
    	option upload '51000'
    
    config classify
    	option target 'Priority'
    	option ports '22,53'
    	option comment 'ssh, dns'
    
    config classify
    	option target 'Normal'
    	option proto 'tcp'
    	option ports '20,21,25,80,110,443,993,995'
    	option comment 'ftp, smtp, http(s), imap'
    
    config classify
    	option target 'Express'
    	option ports '5190'
    	option comment 'AOL, iChat, ICQ'
    
    config default
    	option target 'Express'
    	option proto 'udp'
    	option pktsize '-500'
    
    config reclassify
    	option target 'Priority'
    	option proto 'icmp'
    
    config default
    	option target 'Bulk'
    	option portrange '1024-65535'
    
    config classgroup 'Default'
    	option classes 'Priority Express Normal Bulk'
    	option default 'Normal'
    
    config class 'Priority'
    	option packetsize '400'
    	option avgrate '10'
    	option priority '20'
    
    config class 'Priority_down'
    	option packetsize '1000'
    	option avgrate '10'
    
    config class 'Express'
    	option packetsize '1000'
    	option avgrate '50'
    	option priority '10'
    
    config class 'Normal'
    	option packetsize '1500'
    	option packetdelay '100'
    	option avgrate '10'
    	option priority '5'
    
    config class 'Normal_down'
    	option avgrate '20'
    
    config class 'Bulk'
    	option avgrate '1'
    	option packetdelay '200'
    config interface 'wan'
    	option classgroup 'Default'
    	option enabled '1'
    	option download '51000'
    	option upload '51000'
    
    config classify
    	option target 'Priority'
    	option ports '22,53'
    	option comment 'ssh, dns'
    
    config classify
    	option target 'Normal'
    	option proto 'tcp'
    	option ports '20,21,25,80,110,443,993,995'
    	option comment 'ftp, smtp, http(s), imap'
    
    config classify
    	option target 'Express'
    	option ports '5190'
    	option comment 'AOL, iChat, ICQ'
    
    config default
    	option target 'Express'
    	option proto 'udp'
    	option pktsize '-500'
    
    config reclassify
    	option target 'Priority'
    	option proto 'icmp'
    
    config default
    	option target 'Bulk'
    	option portrange '1024-65535'
    
    config classgroup 'Default'
    	option classes 'Priority Express Normal Bulk'
    	option default 'Normal'
    
    config class 'Priority'
    	option packetsize '400'
    	option avgrate '10'
    	option priority '20'
    
    config class 'Priority_down'
    	option packetsize '1000'
    	option avgrate '10'
    
    config class 'Express'
    	option packetsize '1000'
    	option avgrate '50'
    	option priority '10'
    
    config class 'Normal'
    	option packetsize '1500'
    	option packetdelay '100'
    	option avgrate '10'
    	option priority '5'
    
    config class 'Normal_down'
    	option avgrate '20'
    
    config class 'Bulk'
    	option avgrate '1'
    	option packetdelay '200'
    config interface 'wan'
    	option classgroup 'Default'
    	option enabled '1'
    	option download '51000'
    	option upload '51000'
    
    config classify
    	option target 'Priority'
    	option ports '22,53'
    	option comment 'ssh, dns'
    
    config classify
    	option target 'Normal'
    	option proto 'tcp'
    	option ports '20,21,25,80,110,443,993,995'
    	option comment 'ftp, smtp, http(s), imap'
    
    config classify
    	option target 'Express'
    	option ports '5190'
    	option comment 'AOL, iChat, ICQ'
    
    config default
    	option target 'Express'
    	option proto 'udp'
    	option pktsize '-500'
    
    config reclassify
    	option target 'Priority'
    	option proto 'icmp'
    
    config default
    	option target 'Bulk'
    	option portrange '1024-65535'
    
    config classgroup 'Default'
    	option classes 'Priority Express Normal Bulk'
    	option default 'Normal'
    
    config class 'Priority'
    	option packetsize '400'
    	option avgrate '10'
    	option priority '20'
    
    config class 'Priority_down'
    	option packetsize '1000'
    	option avgrate '10'
    
    config class 'Express'
    	option packetsize '1000'
    	option avgrate '50'
    	option priority '10'
    
    config class 'Normal'
    	option packetsize '1500'
    	option packetdelay '100'
    	option avgrate '10'
    	option priority '5'
    
    config class 'Normal_down'
    	option avgrate '20'
    
    config class 'Bulk'
    	option avgrate '1'
    	option packetdelay '200'
    

    本人萌新,请各路仙人指教 [抱拳

    2 条回复    2018-06-23 18:26:18 +08:00
    Showfom
        1
    Showfom  
       2018-06-23 18:24:02 +08:00 via iPhone
    这是什么奇葩运营商
    watermeter
        2
    watermeter  
       2018-06-23 18:26:18 +08:00 via Android
    @Showfom 教育网吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5508 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:33 · PVG 09:33 · LAX 17:33 · JFK 20:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.