Monday 22 March 2010

Queue them up, push them out

The latest lab expedition is to configure Class Based Weighted Fair Queuing to allow for different treatment of voice and http traffic. The way of testing this is by hosting a website on one end of a low bandwidth link that has two pictures in and you are able to match http traffic by key words! so the class maps are able to distinguish between LEFT and RIGHT giving different bandwidth to each. Even though the allotted bandwidth per class isn't greater than the total bandwidth it still uses the full bandwidth but as a ratio of the initial inputs. To get the web server ready you need to do a few things.

1) Grab a picture with a decent size (500k - 1M)
Here is one i prepared earlier for you to download
IMAGE, ALT
ADDITIONAL- I have just tried to download the image from within the lab and pictures are getting blocked by admin!
SOLUTION - Go through a proxy, or go ask admin if they will stop filtering pictures.
SECURITY - The above mentioned content filter happily gives out the information "powered by draytek". Know of any exploits for them....?

2) Make a copy of the image and rename it "right" and the original should be "left"

3) Copy this simple html text into notepad and save as index.html in the Apache htdocs folder and drop the two pictures into the folder as well


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CBWFQ + LLQ </title>
<style type="text/css">
*{width:100%}
.picleft { float:left; width:45%; border-right:#FF0000 20px solid; margin-right:20px}
.picright { float:left; width:45%; border-left:#0000FF 20px solid}
</style>
</head>
<body>
<h1 align="center">Let the race begin!</h1>
<div class="picleft">
<img src="left.jpg" />
</div>
<div class="picright">
<img src="right.jpg" />
</div>
</body>
</html>


4) Sit back and enjoy watching an image crawl on screen just like the good old days
Bonus video
180's on the new ramp
GO

No comments: