35 0 250KB
24/04/13
Classic QOS setup tutorial - Coyote Linux & BrazilFW Add-ons
Classic QOS setup tutorial QoS and bandwidth management | QoS documentation | QoS tutorial This tutorial shows you how to setup QOS configuration when you are using Coyote or BrazilFW init scripts. It shows you how to setup correct upstream and downstream values and contains information about other QOS configuration options.
What is QOS, Traffic Shaping and Bandwidth limiting QOS is an attempt to control computer network traffic in order to optimize or guarantee performance, low-latency, and/or bandwidth. QOS (Traffic shaping) deals with concepts of classification, queue disciplines, enforcing policies, congestion management, and fairness. Traffic shaping provides a mechanism to control the amount and volume of traffic being sent into a network (bandwidth throttling), and the rate at which the traffic is being sent (rate limiting). For this reason, traffic shaping schemes need to be implemented at the network edges to control the traffic entering the network. It also may be necessary to identify traffic flows at the ingress point (the point at which traffic enters the network) with a granularity that allows the traffic-shaping control mechanism to separate traffic into individual flows and shape them differently.
Basic QOS setup Basic QOS configuration is made in Web-admin configuration interface from "QOS configuration" panel. If you choose Coyote (BrazilFW) QOS init scripts, the configuration screen will look like this (click for large picture) ... Now we will describe what the configuration options meen. Q O S init type
QOS configuration script init type. You can either use Wondershaper configuration or Coyote Linux (BrazilFW) QOS scripts configuration. This tutorial focuses on the second option. You can choose between default config and manual class config. default config - There is only one QOS class created for all computers. Use this option if you want all computers to share full bandwidth and only categorize traffic to QOS subclasses based on QOS filters (covered later). Setting QOS with this configuration type is the easyest way. For example you can tell that p2p traffic belongs to slow priority class and Voice over IP belong to high priority class. manual class config - Use this option if you want to have more control over how the bandwidth is distributed between computers on your local network. With this configuration option you can for example setup that one computer can use maximaly 128kB downstream and the other one only 64kB. Re al Downstre am bandwidth
Real value of your downstream bandwidth..not the value your ISP pretends you have. For QOS to function properly it's very important to setup you downstream and mainly upstream maximal values properly. The correct values is almost every time even lower than the maximum value you download/upload from internet. The explanation of this effect is quite simple. QOS works on the principle of prioritizing some packet on the packet queue. Because the interface between you Coyote(BrazilFW) router and Cable/ADSL/Modem or whatever is a lot faster than your internet connection, if you setup you upstream/downstream speed too high, the queue is not build at the Coyote(BrazilFW) router but at Cable modem for example and QOS does not work. Re al Upstre am bandwidth
Same as downstream bandwidth, only for upstream values. We will look how to setup correct values later. Dire ct route r -> ine t class re se rve d bandwidth
How many percent of total bandwidth (Real Upstream Bandwidth) is used for connections made directly from internet to your Coyote Linux (BrazilFW) router. For example remote administration over the internet, Web server of FTP server on your Coyote Linux (BrazilFW) Priority classe s re se rve d bandwidth
Theese are percentage values of bandwidth reserved for priority classes. Ig there is not other traffic, the bandwidth is borrowed to lower priority classes. Burst se ttings
Burst size is the limit of transfered data that can be transfered at full speed before any shaping occurs. It's goot for WWW traffic which mades requests in bursts.
Setting correct Upstream/Downstream values It's the time for upstream/downstream values tweaking. First measure your free line latency. You will need your ISP's gateway address. If you don't know it run command prompt on your windows workstation and issue following command. C:\Documents and Settings\Dolly22>tracert www.google.com the output should look something like this: Tracing route to www.google.akadns.net [216.239.59.104] over a maximum of 30 hops: 1 1 ms 2 10 ms 3 18 ms ...