ArticleslgStudy

computer science

ALTQ

ALTQ is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand ALTQ rather than just read about it. In short: ALTQ (ALTernate Queueing) is the network scheduler for Berkeley Software Distribution. ALTQ provides queueing disciplines, and other components related to quality of service (QoS), required to realize resource sharing.

Key takeaways

  • ALTQ belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect ALTQ to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of ALTQ from memory before moving on to harder problems.

Reference excerpt

ALTQ (ALTernate Queueing) is the network scheduler for Berkeley Software Distribution. ALTQ provides queueing disciplines, and other components related to quality of service (QoS), required to realize resource sharing. It is most commonly implemented on BSD-based routers. ALTQ is included in the base distribution of FreeBSD, NetBSD, and DragonFly BSD, and was integrated into the pf packet filter of OpenBSD but later replaced by a new queueing subsystem (it was deprecated with OpenBSD 5.5 release, and completely removed with 5.6 in 2014). With ALTQ, packets can be assigned to queues for the purpose of bandwidth control. The scheduler defines the algorithm used to decide which packets get delayed, dropped or sent out immediately. There are five schedulers currently supported in the FreeBSD implementation of ALTQ:

cbq — Class-based Queueing. Queues attached to an interface build a tree, thus each queue can have further child queues. Each queue can have a priority and a bandwidth assigned. Priority mainly controls the time packets take to get sent out, while bandwidth has primarily effects on throughput. CoDel — Controlled Delay. Attempts to combat bufferbloat. fairq — Fair Queuing. Attempts to fairly distribute bandwidth among all connections. hfsc — Hierarchical Fair Service Curve. Queues attached to an interface build a tree, thus each queue can have further child queues. Each queue can have a priority and a bandwidth assigned. Priority mainly controls the time packets take to get sent out, while bandwidth has primarily effects on throughput. PRIQ — Priority Queueing. Queues are flat attached to the interface, thus, queues cannot have further child queues. Each queue has a unique priority assigned, ranging from 0 to 15. Packets in the queue with the highest priority are processed first.

See also

Traffic shaping KAME project

References

External links ALTQ home Archived 2007-09-27 at the Wayback Machine Configuring ALTQ in OpenBSD 5.4 and earlier PF and ALTQ documentation by the FreeBSD project pfSense Documentation ALTQ Scheduler Types on pfSense Firewall

Worked examples

Example 1 — a first encounter with ALTQ

Start with the simplest possible case. Write down what ALTQ claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to ALTQ before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about ALTQ ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of ALTQ

In research
ALTQ appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses ALTQ in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
ALTQ is common in secondary-school and first-year university syllabi. It links to neighbouring topics BSD software, DragonFly BSD, FreeBSD, so understanding it makes those chapters shorter.
In everyday life
Look for ALTQ outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “ALTQ” →

How to study ALTQ in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what ALTQ means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain ALTQ out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is ALTQ in simple terms?

ALTQ (ALTernate Queueing) is the network scheduler for Berkeley Software Distribution. ALTQ provides queueing disciplines, and other components related to quality of service (QoS), required to realize resource sharing.

Why does ALTQ matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study ALTQ?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on ALTQ.

Tags

  • BSD software
  • DragonFly BSD
  • FreeBSD
  • Free software programmed in C
  • I/O scheduling
  • NetBSD
  • Network performance
  • Network scheduling algorithms
  • Operating system technology
  • Quality of service

Keep exploring