dd-wrt固件_如何使用DD-WRT优先安排网络流量

dd-wrt固件

dd-wrt固件

banner-01

Having a media server is really awesome, unless the other people on your network don’t know how to share the bandwidth. Using some simple QoS rules, you can give your computer a priority and stop your streams from dropping out.

拥有媒体服务器确实很棒,除非网络上的其他人不知道如何共享带宽。 使用一些简单的QoS规则,您可以为计算机设置优先级,并阻止流丢失。

If you have a media server or a HTPC that streams, you’ll obviously want to make sure you can watch your content without having it stutter or drop out. The problem is, with a ton of devices on your network, the bandwidth on your HTPC needs a priority. Alternatively, maybe you have a kid who streams a little too much and is sucking up more than his or her fair share of bandwidth. You can throttle the connection to one computer without messing with the rest.

如果您拥有流式传输的媒体服务器或HTPC,显然您会希望确保观看内容时不会出现卡顿或掉线的情况。 问题是,网络上有大量设备,因此HTPC上的带宽需要优先。 或者,也许您有一个孩子的视频流太多了,并且正在吸收比他或她合理分配的带宽更多的东西。 您可以限制与一台计算机的连接,而不会干扰其他计算机。

Because this tip can be used to unbalance your bandwidth as well as balance it, we urge you to exercise caution and restraint. With the great power of QoS and DD-WRT comes great responsibility.

因为此技巧可用于平衡带宽并使其平衡,所以我们敦促您谨慎行事。 借助QoS和DD-WRT的强大功能,责任重大。

通过MAC地址优先 (Prioritizing via MAC Address)

Using a computer’s MAC address is a great way to prioritize its traffic because it will work even if its IP changes. However, this really only affects prioritization if the connection is initiated from this hardware address. That means if traffic was initiated elsewhere, our settings won’t make a difference even if the destination is this particular computer. As such, this works well when trying to add importance to traffic that a computer starts, like streams, and is less effective for things like throttling torrents.

使用计算机的MAC地址是确定其流量优先级的好方法,因为即使IP发生变化,它也可以工作。 但是,这仅在从此硬件地址启动连接时才影响优先级。 这意味着,如果流量是在其他地方发起的,那么即使目的地是这台特定的计算机,我们的设置也不会有所改变。 因此,当尝试增加计算机启动的流量(例如流)的重要性时,此方法效果很好,而对节流洪流的效果则较差。

Open up your browser and head over to your DD-WRT-enabled router’s login page. Click on NAT/QoS and then QoS. This will bring you to the Quality of Service page.

打开浏览器,然后转到启用了DD-WRT的路由器的登录页面。 单击NAT / QoS,然后单击QoS。 这将带您进入“服务质量”页面。

sshot-1

Here, you want to make sure that Quality of Service is enabled, it’s set to WAN, and you’re using HTB as the packet scheduler.

在这里,您要确保已启用服务质量,将其设置为WAN,并且将HTB用作数据包调度程序。

You also want to set the Uplink to somewhere between 80% and 95% of the max upload bandwidth you have. The Downlink should between 80% and 100%. In theory, you want to make sure that if there’s a bottleneck in speed going into or out of your network, it’s at the router so that it can be managed.

您还希望将上行链路设置为最大上传带宽的80%到95%之间。 下行链路应介于80%和100%之间。 从理论上讲,您要确保如果进出网络的速度存在瓶颈,则该问题在路由器上,以便可以对其进行管理。

Next, head down to the MAC Priority section.

接下来,转到“ MAC优先级”部分。

sshot-2

Enter your computer’s MAC address. If you’re not sure how to look it up, check out our article on Static DHCP and scroll down to see how to find your MAC address.

输入您计算机的MAC地址。 如果不确定如何查找,请查看我们有关静态DHCP的文章,然后向下滚动以查看如何查找您的MAC地址。

sshot-3

Then, you can just set the priority. You can set it to Premium or Express, both of which will vastly improve the speeds your computer will get.

然后,您可以设置优先级。 您可以将其设置为Premium或Express,这两者都将大大提高计算机的速度。

通过IP地址优先 (Prioritizing via IP Address)

When you change priorities via IP address, DD-WRT will manage all traffic, not just traffic that is initiated by that particular computer. This means that receiving IMs, torrenting, and other traffic that the computer is receiving that may start from an outside source is affected. As such, you can use this method to deprioritize a computer on your network much more efficiently, though the consequences can be made more severe by utilizing specific choices. This method works very well with a Static DHCP setup, so that IP addresses are tied to individual computers and they don’t change.

通过IP地址更改优先级时,DD-WRT将管理所有流量,而不仅仅是该特定计算机启动的流量。 这意味着可能会从外部来源接收到的IM,洪流和其他计算机接收的通信受到影响。 这样,您可以使用此方法更有效地取消优先处理网络中计算机的优先级,尽管通过使用特定的选择可以使后果更加严重。 此方法在静态DHCP设置中非常有效,因此IP地址绑定到单个计算机,并且它们不会更改。

Follow the above instructions, but instead of going to the MAC priority section, go down to the Netmask Priority section.

请按照上述说明进行操作,但不要转到“ MAC优先级”部分,而是转到“网络掩码优先级”部分。

sshot-4

Add the IP address of the target computer, followed by the mask. The mask will tell DD-WRT what length of the IP address to apply the rule to. For example, a mask of 24 will change the priority for 192.168.1.x addresses, and a mask of 32 will change the priority of a single IP address. You will likely want to use 32.

添加目标计算机的IP地址,然后添加掩码。 掩码将告诉DD-WRT将规则应用到哪个IP地址长度。 例如,掩码24将更改192.168.1.x地址的优先级,掩码32将更改单个IP地址的优先级。 您可能会想使用32。

sshot-5

Next, you can change the priority. If you want to increase it, choose Premium, as that will work best. If you wish to lower it, choose Standard and use this in conjunction with a prioritized computer elsewhere on the network. If you really want to be mean, you can choose Bulk for severely deprioritized traffic. Choosing Bulk will only allocate significant bandwidth when all other classes are not receiving traffic. This is perfect for a BitTorrent or FTP server on your network, as well as forcing a misbehaving user to come talk to you about reduced bandwidth.

接下来,您可以更改优先级。 如果要增加它,请选择“高级”,因为这将是最好的选择。 如果希望降低它,请选择“标准”并将其与网络上其他位置的优先计算机结合使用。 如果您确实想成为卑鄙的人,则可以选择Bulk来严重降低流量的优先级。 仅当所有其他类别均未收到流量时,选择“批量”才会分配大量带宽。 这非常适合网络上的BitTorrent或FTP服务器,以及迫使行为不端的用户来与您讨论带宽减少的问题。



DD-WRT offers a few unique ways of shaping your internet traffic. We’ve had a few requests specifically for increasing and decreasing traffic priority for specific computers on your network. Once again, we suggest you use this responsibly.

DD-WRT提供了几种独特的方式来影响您的互联网流量。 我们有一些请求专门针对增加和减少网络上特定计算机的流量优先级。 再次,我们建议您负责任地使用它。

Do you have any stories where this could have helped your situation? Share your experiences in the comments!

您有什么故事可以帮助您解决问题吗? 在评论中分享您的经验!

翻译自: https://www.howtogeek.com/70659/how-to-give-your-computers-network-traffic-priority-with-dd-wrt/

dd-wrt固件

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值