Monitoring and capacity
How to read what a link is really carrying, turn twelve months of readings into a forecast with a range, derive the line that tells you when to order, and write the report that gets the money in time
Crustwell's head office to Agbara link carries 1,000 Mbit/s in each direction. The monitoring graph stores five-minute averages, and its highest value in the busiest hour is 700 Mbit/s, which is 70%. What can you say about the link inside that five minutes?
A capacity report answers two questions: how full is this link, and when will it be too full to wait. Monitoring answers the first one, every day, and capacity planning answers the second, once a month. They are one job because the second question is unanswerable without the first one measured properly. This chapter is the network engineer’s angle: how to read a link, how to forecast one, and how to write the report. The general method of turning demand into resources is in Capacity and cost. How percentiles and bursts hide in averages is in Histograms, percentiles and why you cannot average them. How to decide what may wake a person is in Alert design: symptoms not causes. A mobile operator’s version of the same busy-hour arithmetic is in Network planning and capacity. The Networking and Cloud Networks course, which will cover the mechanisms, is not written yet.
The running case is Crustwell’s link between head office and the Agbara factory. It carries ERP traffic and CCTV backup. At its busiest it runs at 70%. The link speed, readings and prices in this chapter are illustrative, chosen to show the method.
The model: measure, forecast, set a line, order
Four steps, each with its own way to go wrong.
- Measure the link in three numbers: how full it is, whether anything is queued or dropped, and whether it is damaged. A wrong measurement poisons everything after it.
- Forecast from at least a year of readings, as a range, and add the steps you know are coming: a new building, a new system, a merger.
- Set a line: the reading at which you order. It comes from three things you can write down: the level where the link starts to hurt, the growth during the time an upgrade takes, and the known steps.
- Order when the line is reached, and write the whole chain into a report that someone who controls the money can read in five minutes.
Most capacity failures are not a lack of forecasting. They are an upgrade that takes twelve weeks, ordered in the week the link filled.
What to measure on a link
Three numbers, for each direction. Brendan Gregg’s USE method names them for any resource: utilisation, saturation and errors.
Utilisation is bits per second divided by the link speed. A link carries traffic both ways, and each direction is full on its own. Report the busier direction. At Crustwell it is Agbara to head office, because the CCTV recorders send footage that way.
Saturation is whether work is waiting. On a router interface, it is the output queue and the discard counter. A link can show 85% and drop nothing, or 70% and drop every minute, as the Why showed. Discards are the symptom; utilisation is a cause that may or may not produce one.
Errors are damaged frames: bad checksums, runts, input errors. A dirty fibre or a failing optic shows as errors long before it shows as an outage. It is not a capacity problem, but a link with errors loses throughput at any load, and you should not order an upgrade to fix a bad cable.
How the counters work
Routers expose interface counters through SNMP: cumulative totals of bytes and packets. The rate is the difference between two readings divided by the seconds between them. Two traps follow.
Wrap. A 32-bit byte counter holds 2^32 bytes, which is 4.29 billion. At 1 Gbit/s that is 34 seconds of full-rate traffic. A five-minute poll can see the counter wrap several times and report a rate that is wrong in either direction. RFC 2863 defines 64-bit counters in the interface extension table (ifHCInOctets and ifHCOutOctets) and requires 64-bit byte counters on interfaces faster than 20 Mbit/s. Poll those on every link you report on.
Averaging. Whatever you poll, the graph stores a mean over its step. A step of five minutes, which is the common default, flattens bursts. Keep a one-minute series for at least thirty days, and also keep the discard counter. Then measure the burst ratio: the highest one-minute reading in the busy hour divided by the busy-hour average. At Crustwell it is 770 ÷ 700 = 1.10 this month. That ratio is how you translate “the average is 70%” into “the worst minute is 77%”.
The busy hour, not the day
Users feel the worst hour, not the daily mean. A day’s average of 25% is irrelevant if two hours are saturated. Take the busy hour of each working day, average those across the month, and report that as the figure. The mobile chapter linked above describes the standard way to pick the hour; for a company link a simple version works: the hour with the most traffic on most working days. Keep month-end separately if it differs, because it will set the peak once a month and you will be asked why you did not plan for it.
Who is on the link
A rate says how much. A flow record says who. Routers and firewalls can export flow records (the standard is IPFIX, RFC 7011) with source, destination, port and bytes. This is where An addressing plan pays you back. Because each site has its own /16, you split the link’s traffic by prefix with no guessing. Traffic from the Agbara block 10.20.0.0/16 to the cloud ERP block 10.50.0.0/16 is ERP. Traffic from 10.20.0.0/16 to the head office servers in 10.10.0.0/16 includes the CCTV backup, which you separate by the recorders’ subnet. At the busy hour Crustwell’s link splits as 380 Mbit/s of ERP, 220 of CCTV backup and 100 of everything else, which is 700 in all.
Devices are not demand. The plan’s counts, 1,208 devices at head office and 517 at the second factory, size address space. They do not size bandwidth: 48 cameras can move more data than 400 phones. Measure traffic.
From readings to a forecast
A forecast needs history in the same unit as the link: the monthly busy-hour figure in Mbit/s. Twelve months is the minimum, because it shows the year’s shape. Capacity and cost explains organic and inorganic demand; here are the network versions.
Organic growth is more traffic from the same things: more ERP users, bigger documents, higher camera quality. Plot the twelve points and read the slope. A straight line is usually good enough for a link. Crustwell’s twelve months run from 530 to 700 Mbit/s, which is 15.5 Mbit/s a month overall, 12.6 over the first half and 18.4 over the last. Growth is accelerating, so the range is 13, 15 and 18 Mbit/s a month, and you plan an order date from the upper one.
Steps are the changes you hear about from people, not from graphs: Ayibatonye, who runs the CCTV recorders and their backup job, says the new packing hall’s recorders go live in March and will add about 40 Mbit/s. A merger, a cloud migration, a new camera estate and a big patch set all arrive this way. The 14-day patch rule means a large patch set crosses the link inside a fortnight, so ask what is coming. Ask the Agbara factory engineering manager and the head of IT infrastructure each quarter what is planned, because the next step is never in the trend line.
Lead time is the time from deciding to the capacity being live. For a circuit it is the provider’s delivery time, plus your own approval, plus the next change window. At Crustwell Meenakshi, the circuit provider’s account manager, quotes 8 weeks. Approval takes about 3. The Agbara line stops only on Sunday from 02:00 to 05:00, so allow 1 more for the next stop. That is 12 weeks, about 3 months. The change chapter covers the plan and rollback for the cutover itself.
Put it together month by month. From 700 now, with the 40 step from March:
| Month | Low (13 a month) | Mid (15) | High (18) |
|---|---|---|---|
| Jan | 726 | 730 | 736 |
| Mar | 792 | 800 | 812 |
| May | 818 | 830 | 848 |
| Jul | 844 | 860 | 884 |
| Sep | 870 | 890 | 920 |
The mid case reaches 80% in March and 90% in October. The high case reaches 90% in August.
Where the line comes from
Do not copy “upgrade at 80%” from a handbook. Derive it.
The hard line is the busy-hour level at which the worst minute fills the link. With a burst ratio of 1.10, the worst minute reaches 1,000 when the busy-hour average is 1,000 ÷ 1.10 = 909. Round down: 900, which is 90%. This is a rule of thumb that you re-measure, not a standard. A link with spikier traffic has a lower hard line.
The order line is the hard line minus what happens while you wait. Three months of the upper growth rate is 3 × 18 = 54 Mbit/s. The known step is 40. So 900 − 54 − 40 = 806, rounded down to 800: 80%. When the busy hour reads 800, an upgrade ordered that day lands near 800 + 54 + 40 = 894 in the high case, even if the step has not yet arrived: below 900. When the reading reaches 800 only because the step has already landed, as in the mid case, the margin is wider.
Two checks keep the line honest. Convert it to a date: the mid forecast reaches 800 in March, so you expect to order in March. Then compare with the latest safe date: the high case reaches 900 in August, and 12 weeks earlier is May. March is earlier, so the line has margin.
Alerts and tickets are different. Utilisation near the order line is a ticket: a slow trend, reviewed in the monthly report. What may wake the person on call is the symptom: discards on the link in the busy hour, or latency across it above a stated figure. Alert design gives the four tests for a page. A graph crossing 80% at 03:00 on a Sunday is not one of them.
Where practitioners disagree
Upgrade early or late. Early costs money every month for capacity nobody uses. Late risks the incident and an emergency order, which is dearer and slower to approve. Most teams settle on a derived line like the one above and keep an emergency route for the unplanned step.
Fix the traffic or buy the bandwidth. Moving a backup to the night is free to try. It is right only if the night is quiet. Buying is certain and recurring. Check the hourly profile before you choose; the Decide below does.
One bigger link or two links. A second link adds resilience, since one failure no longer cuts the site off, and capacity if both are active. It also adds routing to design and a second bill. Capacity and resilience are different questions, and you answer them in different reports.
Flow records or sampling. Full flow export costs router CPU and storage. Sampled export is cheap and misses small flows. For capacity, sampling is usually enough; for a fault hunt, you want the full record for a short time.
Day to day
Hajara’s capacity work is small slices of a week, because the rest is changes and faults. The team is three engineers with a 15-minute stand-up every day.
Daily. The morning look: discards and errors on the critical links overnight. If a link shows discards in the busy hour, it is a fault report first and a capacity question second. Troubleshooting a live fault gives the evidence to gather.
Weekly. A ticket check on utilisation alerts. Any link above its order line has a ticket with an owner. The Monday 14:00 change review is where an upgrade’s plan is approved, so the order is not held up waiting for a weekly meeting.
Monthly. The capacity report, two hours at most: add the month’s busy-hour reading, update the burst ratio, re-run the forecast, check the order line, and send it to the head of IT infrastructure. One page per link, one summary on top.
Quarterly. Ask the step question of the Agbara factory engineering manager, the ERP administrator and whoever owns the CCTV. Re-measure the traffic split from flow records. Check that the report’s lead times still match the provider’s. An upgrade that touches the Agbara end waits for a Sunday stop; one that touches head office uses the 21:00 to 23:00 window. An upgrade is a change, and the auditors, who sample 30 of the quarter’s 112 changes, will want its approval and its result. The report is the first page of that evidence.
When a new link opens. A new link joins the report the day it opens, with its first month’s reading and its own burst ratio. The second factory’s internet connection, which carries its VPN to head office, is already in the report. The leased circuit ordered for it joins on the day it goes live, and the VPN is then reported as the fallback path.
Where capacity work goes wrong
Reading the average as the ceiling. The Why. A dashboard with one number invites it.
Counters that wrap. A 32-bit counter on a gigabit link produces readings that look plausible and are false.
A line copied from a book. Nobody can defend it when the head of IT infrastructure asks why 80%, and it does not change when the lead time does.
Forecasting from the graph and not from people. The trend line does not know about March.
Moving the problem. A backup shifted to the night lands on the night’s own peak. Check the night’s profile first.
Ordering for resilience with a capacity report. If the risk is a single link failing, say that, and cost the second link on that argument.
You have an office internet link, a cloud account and perhaps a VPN. Measuring means the provider’s usage page and the cloud console, plus one number written down each month: the busy-hour peak as a percentage of the link. Upgrades are usually a call to the provider that completes in days, so the lead time is short and a late order is cheap. Do the one-line report anyway. The day a second office arrives, you will want the history.
Several sites and a cloud mean a poller, a one-minute series and flow records on the links that matter. You write the report monthly, and you meet the first slow circuit: eight to twelve weeks to deliver. That is when the derived line replaces “upgrade when it hurts”. Ask product and the sites what is coming each quarter, because the traffic step now comes from decisions you are not part of. Keep the report to one page per link.
Dozens of links, several providers and annual budgets make capacity a planning calendar with owners. Reports roll up into a quarterly review that finance reads, and circuit contracts of one to three years make the upgrade date a commercial decision as well as a technical one. Forecasts are automated, and the argument moves to the inputs: who owns the step list, who approves a hard line, and who pays when the lead time exceeds the budget year.
Template
# Link capacity report: <link> · <month> · author: <name>
Link speed: <Mbit/s each way> · busier direction: <which> · data: <source and step>
## This month
Busy hour: <Mbit/s> (<%>) · highest one-minute: <Mbit/s> · burst ratio: <x> · discards in busy hour: <n>
Who is on the link: <split by flow records, Mbit/s each>
## History
<Monthly busy-hour readings for the last 12 months, growth per month, first half and last half>
## Forecast
Growth range: <low, mid, high> Mbit/s a month · Known steps: <what, when, Mbit/s, who told you>
| Month | Low | Mid | High |
|---|---|---|---|
## Lines
Hard line: <link speed ÷ burst ratio, rounded down>
Lead time: <parts, total> · Order line: <hard line − growth over lead time − steps>
Reaches order line: <month, by case> · Latest safe order date: <hard line month minus lead time, high case>
## Recommendation
<Order now / order at the line / other>, because <numbers>. Decided by <role> by <date>. While waiting: <alert, quote, approval>.
What would change this: <the reading, burst ratio or date that makes you re-run it> · re-run on <date> WORKED EXAMPLE
Crustwell, head office to Agbara, November 2026. Hajara writes it for the head of IT infrastructure.
This month. The link is 1,000 Mbit/s each way; the busier direction is Agbara to head office. Data: five-minute averages and one-minute maxima from the monitoring poller. Busy hour 700 Mbit/s (70%). Highest one-minute 770. Burst ratio 770 ÷ 700 = 1.10. Discards in the busy hour: 0. Flow records split the 700 as ERP 380, CCTV backup 220, other 100.
History. December to November: 530, 541, 553, 565, 579, 593, 608, 625, 644, 663, 681, 700. Growth is 15.5 a month overall, 12.6 in the first half and 18.4 in the last. The range is 13, 15 and 18.
Known step. Ayibatonye: the packing hall’s recorders go live in March, about 40 Mbit/s of backup.
Forecast. Mid case: 730 in January, 800 in March, 830 in May, 860 in July, 890 in September. High case: 736, 812, 848, 884, 920.
Lines. Hard line: 1,000 ÷ 1.10 = 909, rounded down to 900 (90%). Lead time: 8 weeks (provider quote from Meenakshi), 3 weeks approval, 1 week to the next Sunday 02:00 to 05:00 stop at Agbara: 12 weeks, about 3 months. Order line: 900 − (3 × 18 = 54) − 40 = 806, rounded down to 800 (80%). The mid case reaches 800 in March. The high case reaches 900 in August, so the latest safe order date is early May. March is earlier, so there is margin.
Recommendation. Do not order now. Order when the busy hour first reads 800, expected in March. An upgrade to 2 Gbit/s costs about ₦1.8m a month more (provider’s quote, illustrative), so ordering now would pay about ₦7.2m for four months of unused capacity. Decided by the head of IT infrastructure at the March review. While waiting: a ticket alert at 800 on the monthly figure, a page on busy-hour discards, the quote kept valid, and the money pre-approved so the 3 weeks of approval fall away.
What would change this. A burst ratio above 1.15 lowers the hard line to 800 and the order line to 700, which is today’s reading, so we would order at once. A slip of the packing hall date is a re-run. Next re-run: the December report.
Now you
You are Hajara. The second factory still reaches head office over an internet VPN, as it has since the acquisition, and the head of IT infrastructure wants the capacity report. The factory’s internet connection is 500 Mbit/s each way and carries the tunnel; the busier direction is the factory to head office. The leased circuit approved for the factory is not live yet, so the tunnel carries everything. Busy-hour tunnel readings, June to November: 150, 170, 195, 210, 240, 262 Mbit/s. The highest one-minute reading this month is 315. The factory plans to move about 300 office users onto the cloud ERP in February, and that traffic will cross the tunnel to head office. A pilot of 25 users used 7.5 Mbit/s at the busy hour. The internet provider quotes 10 weeks for an upgrade, approval takes 3 weeks and the cutover goes in a head office window one week after delivery. Complication: the step lands in about three months, and the lead time is longer than the example’s. Produce the report with the hard line, the order line, the forecast with the February step, and a recommendation. Use one growth rate from the six readings and say so.
Self-check
You are Hajara. Crustwell's head office to Agbara link is 1,000 Mbit/s and runs at 70% at the busy hour, rising by about 15 Mbit/s a month. The busy hour splits as ERP 380, CCTV backup 220 and other 100. New recorders add about 40 Mbit/s in March. The CCTV backup copies footage from 06:00 to 22:00, and the ERP's overnight batch uses about 450 from 01:00 to 04:00. An upgrade to 2 Gbit/s takes 12 weeks from decision to cutover and costs about ₦1.8m a month more (illustrative). The head of IT infrastructure asks what to do. What do you recommend?
- BOOK The Art of Capacity Planning John Allspaw, 2008
The standard book on measuring growth, forecasting from history and ordering ahead of the lead time. It is about web servers, but the method of resource, ceiling, forecast and order date carries straight over to a link. Read: O'Reilly Media; the 2017 second edition adds Arun Kejariwal as co-author.
- DOC RFC 2863: The Interfaces Group MIB K. McCloghrie and F. Kastenholz, 2000
The definition of the interface counters you poll, including the 64-bit high-capacity counters for fast links. Read the counter section before you trust any graph from a gigabit interface.
- POST The USE Method Brendan Gregg
The short statement of utilisation, saturation and errors as three separate checks on any resource. It is the reason this chapter reports three numbers for a link, not one.
- BOOK Chapter 6, Monitoring Distributed Systems, in Site Reliability Engineering Rob Ewaschuk, edited by Betsy Beyer, 2016
The case for alerting on symptoms and for keeping saturation among the signals you watch. Use it to argue which link alerts page a person and which become tickets. Read: Google SRE book, free online; O'Reilly Media, 2016.
- DOC RFC 7011: Specification of the IP Flow Information Export (IPFIX) Protocol B. Claise, B. Trammell and P. Aitken, 2013
The standard for exporting flow records from routers and firewalls. It is the format behind the 'who is on the link' split, so read it before you buy a collector.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.