发表文章

[C] 在混乱的交通控制工作与 wshaper..。 Getting traffic control in Chaos Calmer to work with wshaper...[nodogsplash]

glomotion 2017-10-9 62

因此, 我们现在试图让交通控制工作在 Nodog-仍然使用最新版本的 OpenWRT (混乱平静 (15.05.1, r48532))-和得到一点点丢失。

我们已经添加了线到/等/配置/nodogsplash:

list trafficcontrol 1
list downloadlimit 100

还安装了 "wshaper"。它的当前配置 (取自/等/配置/wshaper) 是:

config 'wshaper' 'settings'
    option 'network' 'wan'
    option 'downlink' '2000'
    option 'uplink' '240'

我们只是有点不确定如何告诉 nodogsplash 使用 wshaper, 而不是 imq (这显然不再是与 OpenWRT 后态度调整)。
当使用当前的 nodogsplash 配置 (包括上面提到的 trafficconrol 线) 启动时, nodogsplash 错误就会出现:

 Testing required modules
  Testing module ipt_mac 
   ipt_mac is working
  Testing module ipt_mark 
   ipt_mark is working
  Testing module imq numdevs=2
   Module imq numdevs=2 needed
   Scanning disk for imq module
   imq module missing: please install it

https://wiki.openwrt.org/doc/howto/wireless.hotspot.nodogsplash提到了以前需要的一些其他包:

opkg install iptables-mod-imq
opkg install kmod-ipt-imq
opkg install kmod-sched

以及:

opkg install ip
opkg install tc

这些仍然需要使用 nodog 与交通控制内部混乱平静?他们中的任何一个也改变了吗?

再次感谢你们能提供的任何帮助:)nodog 岩石!

原文:

So we're now trying to get traffic control working within Nodog - still using the latest build of OpenWRT (CHAOS CALMER (15.05.1, r48532)) - and getting a little lost.

We've added the lines to /etc/config/nodogsplash:

list trafficcontrol 1
list downloadlimit 100

And also installed 'wshaper'. It's current config (taken from /etc/config/wshaper) is:

config 'wshaper' 'settings'
    option 'network' 'wan'
    option 'downlink' '2000'
    option 'uplink' '240'

We're just a little unsure how to tell nodogsplash to use wshaper, instead of imq (which apparently no longer comes with OpenWRT after Attitude Adjustment).
When booting up using the current nodogsplash config (including the trafficconrol lines mentioned above) nodogsplash errors out on-startup:

 Testing required modules
  Testing module ipt_mac 
   ipt_mac is working
  Testing module ipt_mark 
   ipt_mark is working
  Testing module imq numdevs=2
   Module imq numdevs=2 needed
   Scanning disk for imq module
   imq module missing: please install it

https://wiki.openwrt.org/doc/howto/wireless.hotspot.nodogsplash mentions some other packages which used to be needed:

opkg install iptables-mod-imq
opkg install kmod-ipt-imq
opkg install kmod-sched

as well as:

opkg install ip
opkg install tc

Are any of these still needed to use nodog with traffic control inside Chaos Calmer? Have any of them also changed?

Again, huge thanks in advance for any help you guys can offer. :) nodog rocks!

相关推荐
最新评论 (18)
mwarning 2017-10-9
1

依存关系是正确的。但我还没把手放进去

我怀疑 NDS 的交通整形工作在混乱的平静了。内核不再支持 imq。

有些票能解释得更好。我可能会更容易解决在 NDS。
这可能是一个或两个代码, 需要固定的工作与不同的东西, imq。

无论如何, 请使用邮寄名单的问题-而不是票务系统。:]

原文:

The dependencies are about right. But I haven't had my hands in there.

I doubt that NDS traffic shaping works on chaos calmer anymore. imq is not supported anymore by the Kernel.

There is some ticket that explains that better. I might be easier to fix that in NDS.
It is probably one code or two that need to be fixed to work with something different that imq.

Anyway, please use the mailing list for questions - not the ticket system.. :]

bluewavenet 2017-10-9
2

在标准版的 OpenWrt 中, 我取得了很大的成功。它在连接级别工作, 不需要任何 NoDogSplash 配置。诚然, 您无法定义每个用户的单独上传/下载速率, 但对于大多数应用程序而言, 在繁忙的 Internet 提要上每个用户的总体性能都有显著提高。
当然值得尝试。
https://wiki.openwrt.org/doc/howto/sqm

原文:

I have had great success using SQM as in the standard release of OpenWrt. It works at a connection level and does not require any NoDogSplash configuration. True that you cannot define individual upload/download rates per user but for most applications dramatically improves overall performance per user on a busy Internet feed.
Certainly worth trying.
https://wiki.openwrt.org/doc/howto/sqm

nicopace 2017-10-9
3

@bluewavenet您是否可以与 NoDogSplash 共享您的调查结果?我开始做同样的事情, 这将是伟大的不做的事情两次!:D

原文:

@bluewavenet can you share your findings on using SQM with NoDogSplash? I'm starting to work on the same thing and it would be great not to do things twice! :D

bluewavenet 2017-10-9
4

@nicopace
我有这个运行在 OpenWrt CC 在生产上的众多大网站和在开发 LEDE 重新启动 17xx, 并发现它非常有效。
您不能为客户定义单独的费率, 但对于我所涉及的公共热点类型, 这并不是必需的。"公平排队" 在连接基础上工作, 如果您反转 "标准" 配置并使其在路由器的 LAN 端运行, 它将在连接基础上从客户端到路由器进行排队管理。根据说明, 我添加了相当高的流量控制率。总体效果是将每个客户端限制在平均的 TC 极限上。到目前为止, 我发现 fq_codel qdisc 是最好的。
一个典型的繁忙的酒店与大约200活跃客户被研磨到停止没有它与许多相片被分享, 浏览, 电子邮件, 闲谈, voip 并且录影电话等。随着它的运行, 它是所有平滑, 快速和可用, voip 呼叫干净和完整的, 视频通话相当不错, 没有大的延迟浏览。惊人的区别。我们也经常运行 mwan3 负载平衡两个 vdsl 的链接, 以及它都很好地结合在一起。
这里是一个典型的/等/配置/平方米 uci 文件提取。 注意 "上传" 是从路由器到客户端, "下载" 是从客户端到路由器。与标准默认类型的配置相反。还要注意接口绑定到 br-lan。
选项 qdisc "fq_codel"
选项脚本 "简单. qos"
选项 qdisc_advanced "0"
选项接口 "br-lan"
选项 debug_logging "0"
选项详细级别 "5"
选项 linklayer "以太网"
选项开销 "8"
选项上传 "25000"
选项下载 "10000"
已启用 "1" 选项

原文:

@nicopace
I have this running on OpenWrt CC in production on numerous large sites and in development on LEDE Reboot 17xx, and find it very effective.
You cannot define individual rates for clients but this is not necessary for the types of Public Hotspot I am involved with. The "Fair Queueing" works on a connection basis and if you reverse the "standard" configuration and have it running on the LAN side of the router it will queue manage on a connection basis from clients to the router. I add a fairly high traffic control rate as per the instructions. The overall effect is to limit each client to that TC limit on average. I have found the fq_codel qdisc the best so far.
A typical busy hotel with some 200 active clients was grinding to a halt without it with lots of photos being shared, browsing, emails, chats, voip and video calls etc. With it running it is all smooth, quick and usable, voip calls clean and unbroken, video calls pretty good and no big latency on browsing. An amazing difference. We also often run mwan3 to load balance two vdsl links as well and it all works well together.
Here is a typical /etc/config/sqm uci file extract. Note "upload" is from router to client and "download" is from client to router. A reverse of the standard default type of config. Note also the interface binding to br-lan.
option qdisc 'fq_codel'
option script 'simple.qos'
option qdisc_advanced '0'
option interface 'br-lan'
option debug_logging '0'
option verbosity '5'
option linklayer 'ethernet'
option overhead '8'
option upload '25000'
option download '10000'
option enabled '1'

nicopace 2017-10-9
5

哦.我知道平方米和 BufferBloat..。我一直在看着自己, 但我想完成的用例 (和 NoDogSplash 提供的一般功能) 此解决方案不能解决此问题:(
我觉得应该使用https://wiki.linuxfoundation.org/networking/ifb完成 implementaiton

原文:

Oh... I know about SQM and BufferBloat... I've been looking at that myself... but for the usecase I want to accomplish (And the general feature that was being provided by NoDogSplash) this solution does not solve this ticket :(
the implementaiton I feel it should be done using https://wiki.linuxfoundation.org/networking/ifb

bluewavenet 2017-10-9
6

@nicopace , 则应执行我所做的任务, 并查看实际要求。对我来说, 这是为了阻止一两个客户通过上传/下载大量的数据流在一个酒店房间的互联网连接饱和, 例如。我确信我必须限制每个客户对每个客户的预设值。原来我需要别的东西!

原文:

@nicopace , you should do what I did and review what the actual requirement is. For me it was to stop one or two clients being able to saturate the Internet connection by uploading/downloading massive amounts of data - streaming in a hotel room for example. I was convinced I had to limit each client to a pre-set value for each client. It turned out I needed something else!

nicopace 2017-10-9
7

对于我们来说, 使用情况是一个社区能够允许上网的那些已经支付每月捐款。

原文:

For us the Use Case is for a Community to be able to allow getting to the Internet to those that have payed the monthly contribution.

bluewavenet 2017-10-9
8

他们能在没有捐款的情况下上网吗?

原文:

Can they get to the Internet without a contribution?

nicopace 2017-10-9
9

这个想法是让社会能够决定的。
我们正在建立一个软件, 与 NoDogSplash (其他圈养门户将支持在不久的将来), 允许社区管理一个凭证系统, 具有一定的有效性日期。如果这个日期超过, 两件事可能发生: 用户是不允许进入互联网, 或它得到一个较低的速度。
可能还有一个 "访问者" 凭证, 允许以较低的速度使用连接。
https://github.com/libremesh/voucher

原文:

The idea is for the community to be able to decide that.
We are building a software that talks to NoDogSplash (other captive portals will be supported in the near future) that allows the communities to manage a voucher system with a certain validity date. If that date exceeds, two things can happen: the user is not allowed to get to the internet, or it gets a lower speed.
There might be also a 'visitor' voucher that allows to use the connection at a lower speed.
https://github.com/libremesh/voucher

bluewavenet 2017-10-9
10

所有或无类型的系统易于实现, 但要求两个级别的连接更复杂。我们的初始页面强制客户端创建登录帐户。要求付款是容易的。需要基于变量的客户端连接速度当然需要类似 ifb 的东西。
我相信将其并入 NDS 版本2的工作正在进行中。

原文:

An all or nothing type of system is easy to implement but requiring the two levels of connectivity is more complex. Our splash page forces clients to create an account to log in. Requiring payment is easy. Requiring variable client based connection speed does of course require something like ifb.
I believe incorporating this into NDS version 2 is being worked on.

nicopace 2017-10-9
11

你将如何使用 NDS?
将调查 NDSv2 的代码, 然后..。

顺便提一下, 您是否知道@bluewavenet VDSv2 代码在哪里?

原文:

And how would you do all or nothing using NDS?
Will look into NDSv2 code then... thanks!

BTW are you aware @bluewavenet where the VDSv2 code is?

bluewavenet 2017-10-9
12

请参阅拉请求 155:
更新以使用 IFB、毛囊和 FQ_CODEL #155

原文:

See Pull Request 155:
Update to use IFB, HFSC and FQ_CODEL #155

nicopace 2017-10-9
13

良好!一定会试试看!

原文:

Excelent! will definitely try it out!

bluewavenet 2017-10-9
14

所有创建帐户和付款, 然后被允许登录
无-创建帐户而不支付-访问被拒绝
当然, 你需要自己的代码来做到这一点, NDS 只是看门人。

原文:

All - Create account and pay then be allowed to log in
Nothing - Create account and not pay - access denied
Of course you need your own code to do this, NDS is just the gatekeeper.

nicopace 2017-10-9
15

哦..。你说得对..。

原文:

oh... duh! you are right... i replied without thinking!

ashbenz 2017-10-9
16

@bluewavenet
正在检查平方米的设置, 并遇到了这一讨论。

我很好奇, 是不是典型的广域网接口上有平方米的实例?(在您的情况下, 两个实例, 一个用于每个 wan)。
你为什么在局域网上安装你的?(对不起, 如果这是显而易见的, 我不熟悉 NDS, 只是想知道的理由)。

你有没有尝试过其他 qdiscs, 蛋糕: layer_cake 等。
谢谢

原文:

@bluewavenet
Was checking out SQM setups and came across this discussion.

I'm curious, isn't it typical to have SQM instance on the wan interface? (in your case, two instances, one for each of your WANs).
Why did you setup yours on the LAN? (sorry if this is obvious, I'm not familiar with NDS and was just wondering about the rationale).

Have you experimented with other qdiscs, cake: layer_cake,etc..
Thanks

bluewavenet 2017-10-9
17

@ashbenz
首先, 我们使用 mwan3 在连接上负载平衡的基础上, 以及提供弹性的情况下, 线路故障和平方米似乎是不相容的, 因为有一个以上的客户端可以连接到一个服务器与 mwan3 选择任一 wan 接口 th我们混淆平方米。
第二, 我们通过实验发现, 平方米的局域网接口工作良好。它似乎在路由器接口和目标之间管理它的队列。在 lan 接口上运行意味着它威嘉与客户端单独连接的目标的队列。在 wan 接口上运行将意味着它将管理与 Internet 上的服务器连接的目标的队列。

原文:

@ashbenz
First, we use mwan3 to load balance on a connection by connection basis as well as providing resilience in the case of a line failure and SQM seems to be incompatible with this as more than one client could be connected to a server with mwan3 choosing either wan interface thus confusing sqm.
Second, we found by experimentation that SQM works well on the lan interface. It seems to manage its queues between the router interface and the target. Running on the lan interface means it manges queues for targets that are individual connections to clients. Running on the wan interface would mean it would manage its queues for targets that are connections to servers out on the Internet.

ashbenz 2017-10-9
18

@bluewavenet
有趣的:)谢谢你的解释
我想, 这一行为因您选择 qdisc (在您的特定用例中) 而大不相同。
看看你的下载和上传数字以上, 你能告诉我你的 vdsl 速度是什么样的两行?

原文:

@bluewavenet
Interesting :) Thanks for the explanation.
I guess the behavior differs greatly depending upon your choice of qdisc (in your particular use case).
Looking at your download and upload numbers above, can you tell me what your vdsl speeds are like for both lines?

返回
发表文章
glomotion
文章数
2
评论数
3
注册排名
60921