viernes, noviembre 21, 2003

Quality of Service in IP Networks 

by Harald Welte <laforge@conectiva.com>

Contents

Definition of QoS

Why QoS

IP networks not designed for QoS

Properties of IP-based networks:Conclusion: IP networks are not suitable for QoS

How to do the Impossible

As IP Networks including Hardware (Routers, ...) are widely deployed, all QoS efforts have to layer on top of the existing technology.

What can Linux systems do?

Bandwidth limiting at server

Router before bottleneck

The router receives more packets on his incoming interface(s) than it can send out on the outgoing interface. It has to build a queue of packets (usually a FIFO one) and starts dropping packets as soon as the queue is full



The idea is to change this queue, thus decide

The Linux 2.2 / 2.4 Solution

Conclusion: Linux is the best suited general-purpose operating system for QoS, but almost nobody is using it because lack of knowledge.

Available queuing algorithms

The big picture

Overview of the a packet's journey



Example scenario usin CBQ

Let's assume we have a link with 10 MBit maximum available bandwidth.
We offer two major services to the outside world: Anonymous FTP and a Webserver offering important Information.

FTP Bulk data transfers are using up almost all available bandwidth, thus slowing down accesses to our website :(

We want to have FTP transfers use up to 8MBit and reserve 2MBit for WWW.

Implementation uses CBQ for bandwidth divisions.

Example scenario

Further optimization



Now we have achieved bandwidth division between two services.

Within one service, however, one individual user with a high bandwith link can still use up most of our bandwidth, slowing down other user.

We can improve this behaviour of changing the scheduling algorithm from it's default (fifo)


tc qdisc add dev eth0 parent 10:100 sfq quantum 1514b perturb 15
tc qdisc add dev eth0 parent 10:200 sfq quantum 1514b perturb 15


Further reading / Links


Get Firefox!

This page is powered by Blogger. Isn't yours?

GeoURL