LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 10-15-2005, 08:38 AM   #1
s_c_braithwaite
LQ Newbie
 
Registered: Feb 2003
Posts: 2

Rep: Reputation: 0
Mice and Elephants AQM


I have developed some Linux queueing disciplines. I developed them for
my masters project. You are free to use or distribute my work.

Here is the abstract from my dissertation:-

This is a project to implement a Mice and Elephants queuing discipline
on Linux. My project has three aims. The first aim was to produce a
prototype Mice and Elephants router for the purpose of further
evaluation of the Mice and Elephants strategy. The second aim was to
make a contribution to Linux by making my implementation as code that
would be both fit for distribution with Linux and useful in a small
business or domestic setting. The third aim was to explore and document
a method of creating Linux queuing disciplines.

The rest of my dissertation, manual pages on my queuing disciplines, my own
HOWTO on how to write queueing disciplines, manual pages on the kernal interface
for queuing disciplines, and the tarball sourcode are all avaiable from:-

www sci usq edu au staff braithwa MastProj index.html
(Sorry - anti spam measures wont let me post a proper URL. The slashes and dots go in there )

Please read the HOWTO for instructions on how to build and install.

Please direct questions about this to braith@dodo.com.au

Apart from Mice and Elephants queueing disciplines, an ARED queueing
discipline is there also.


Yours sincerely,

Stephen Braithwaite


P.S. :-


I would like to "sell" (not really - of course its all free) you the
concept of mice and elephants. So here is some cut and paste from my
master's dissertation:-


A "Mice and Elephants" strategy (also called Shortest Job First) is one
which favours the short flows over long flows. In a mice and elephants
strategy the short flows or the packets from them are called mice, and
the long flows or the packets from them are called elephants. It
involves identifying flows and associating packet with their flows in
order to be able to treat long flows different to short flows. One way
to favor the mice is to give the mice priority when dequeueing. Another
is to avoid dropping mouse packets by dropping elephant packets before
the queue is full.

Proponents of "Mice and Elephants" queuing strategies argue that equal
throughput for each flow or host (sometimes called "Processor Sharing"
or "Fair Queueing") is the wrong goal. Mice and Elephants strategy
response times are significantly better than those obtained using Fair
Queuing.

Shortest Remaining Processing Time (SRPT) has been shown to give better
results than Processor Sharing for a range of measures including average
task turnover time [36]. [36] uses mean task turnover time divided by
job length as a measure of starva- tion, and shows both analytically and
by simulation that no class of jobs are worse off when the the job sizes
are heavy tailed (as they are in internet traffic).

In reality, SRPT would be difficult in a queuing discipline, because we
dont know the length of each job, we only know the size of a job so far.
But Shortest Job First (SJF) has been shown to be a sufficiently good
approximation to SRPT, to enjoy the same benefits over Processor Sharing
that SRPT does. [49] shows that shortest job first gives near optimal
response time regardless of which group of flows we care to observe.
For example, Shortest Job First gives as good a result to medium length
jobs than if we were to give them absolute priority. Simulation of an
implementation of Shortest Job First is described in [13], with results
that show significant gains over other strategies

Two cases of congested queues fed by Poisson Pareto Burst Proccesses
were math- ematically modelled. [14] One had a Pareto distribution
shape parameter of 1.4 (heavy tails) and the other had a Pareto
distribution shape parameter of 1.2 (very heavy tails). Both cases
were modelled with a Mice and Elephants strategy and without. The
benefit from the Mice and Elephants strategy was assessed by
calculating the extra capacity needed when the Mice and Elephant
strategy was not used in order that at most 5% of flows are delayed by
more than 20%. In the heavy tails case, 16% more capacity was required.
In the very heavy tails case 40% more capacity was required. The
modelling showed that the benefit of a mice and elephants strategy
would be quite significant.

Long flows consitute a small minority, but make up the vast majority of
traffic. About 20% of the flows have more than 10 packets but these
flows carry 85% of the total traffic. [60] [24] During periods of
traffic congestion the long flows account for an even greater
percentage of the traffic than they do if we take overall traffic mea-
surments. In [15] an example was given where the short flows accounted
for 89% of the traffic flow and the long flows accounted for the other
11% of the traffic flow over- all. During periods of high congestion,
the long flows accounted for a disproportionate amount of the traffic
flow - perhaps 88%.

It stands to reason that interactive short flows are delay sensitive as
far as the per- ceived quality of service is concerned, because a human
being will have an active process happening and will be impatient to
wait for a result from her mouse click or keystroke. For example, the
keystrokes in a telnet session will have to wait in a queue congested
by packets from long flows.

It is also worth mentioning that short flows are particuarly sensitive
to dropped packets [35] . Treating mice and elephants equally is not
truly "fair", and it would be more fair to assist the mice in order to
achieve a better perceived quality of service.
 
Old 10-15-2005, 09:38 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Wow! That beats my "Using Different Plant Species for Fronds" master's thesis for my Advanced Basket Weaving program by quite a bit. I was going to post that here but now feel horribly inadequate.



P.S. Seriously though thanks for sharing.

Last edited by MensaWater; 10-15-2005 at 03:13 PM.
 
Old 10-16-2005, 08:46 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
To be honest, I'm not sure Wireless is the best forum for this. If this is where you intended it to be posted, fine. Otherwise, use the "Report this post to a moderator" and ask it to be moved. I'd suggest that you might get a better response in the Programming or Linux-General forum.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 mice Rocker Linux - Software 0 02-16-2005 07:18 AM
xmodmap for multiple mice? external and laptop mice scrolling back/forward, etc. bleargh Linux - Software 3 12-31-2004 08:48 AM
Raising Skinny Elephants Is Utterly Boring X4Ivan Linux - Newbie 2 09-21-2004 07:55 PM
2 mice? linda Linux - Hardware 6 08-21-2004 04:25 PM
Help with mice and X... Mr.Radar Debian 3 05-31-2004 02:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration