KORTHVEILSecurity firewall
Guides

Wi-Fi experience score and app-aware Wi-Fi priority

Download as PDF All guides

This guide covers two Wi-Fi tools on Wireless › Experience & reports: a score from 0 to 100 for every Wi-Fi device, with the reasons, and priority on the Wi-Fi for the applications you choose (calls, games, video). Both are off until you turn them on. Every address below is an example (192.0.2.0/24 and 2001:db8::/32 are reserved for documentation); use your own.

At a glance:

What Where
Turn the score on Wireless › Experience & reports, Wi-Fi experience score, Score every Wi-Fi device
See every device's score, the worst first Wireless › Experience & reports, Wi-Fi experience
One device's score, its figures and 7 days of history Wireless › Overview, a device in Clients or Wi-Fi experience
The score when a device has trouble Wireless › Overview, Why can't this device connect?, and Wizards › Why can't this device connect? (the Wi-Fi link step)
Priority for calls, games and video Wireless › Radios & channels, App-aware Wi-Fi priority
What each access point brand does with it Wireless › Radios & channels, Wi-Fi priority by brand

Not yet proven on real hardware. Both tools have been tested with simulated access points only. Until a real access point of each brand has been checked, treat the brand table as what the brand's documentation says.

1. The Wi-Fi experience score

Turn it on

  1. Open Wireless › Experience & reports.
  2. Under Wi-Fi experience score, switch on Score every Wi-Fi device.
  3. Press Save to pending changes, then commit.

Scores appear after the next poll of the access points (every 30 seconds unless you changed Poll access points every).

What the score is made of

The score starts at 100. Each figure that shows a problem takes points off; the largest reasons are listed first, each with the points it costs.

Figure Where it comes from Costs points when
Signal the access point, at each poll weaker than −60 dBm (−5), −67 (−12), −72 (−25), −78 (−40)
Link speed to the device the access point below 100 Mbit/s (−3), 50 (−8), 20 (−15), 6 (−25)
Retransmissions the access point's frame counters over 10 % of frames sent again (−5), 20 % (−12), 35 % (−20), 50 % (−30)
Connect time the access points' log lines joining took over 2 s (−5), 5 s (−12), 10 s (−20)
Sign-in failures the access points' log lines, last day 1 refused password or sign-in (−5), 2–3 (−12), more (−25)
Roaming moves between access points seen between polls each move where the device was off the Wi-Fi for a while (−8, at most −24)
Drops the device vanished and came back within 10 minutes each drop (−6, at most −24)
Address (DHCP) the firewall's DHCP server connected, but no address from the firewall (−30)
Name lookups (DNS) the firewall's DNS service not answering (−20)

A score of 80 or more is good, 60 to 79 fair, below 60 poor.

Nothing is guessed. A figure a brand does not give is shown as not given by the brand (for example "not given by Cisco Meraki") and never counts. A figure nobody measured yet says not measured yet. Without signal, link speed and retransmissions, the score is not shown at all.

What "between polls" means. The access points are asked every poll interval, so a move or a drop shorter than that may not be seen, and a gap is only known to be at most as long as the time between two polls. A device away for longer than 10 minutes left and came back: that is neither a drop nor a bad move.

Connect time, sign-in failures, DHCP and DNS are added when you open Why can't this device connect? for the device: they come from the log lines and the firewall's own services, which are read when asked.

The list and a device's page

Wi-Fi experience lists every device, the worst score first, with its access point, the average of the last 24 hours and what costs the most. Press a device's address to open its page:

  • Wi-Fi experience: the score now and each figure;
  • a live graph of the score per 15-minute window over 7 days, with drops and moves that were not clean marked on it, and a smaller graph of the average signal per window;
  • Forget removes the device's history (the action is recorded in Recent changes and actions).

Each device keeps one point per 15 minutes for 7 days, for at most 256 devices; the least recently seen device is dropped first. The history is kept in the firewall's database, so it survives a restart of the add-in.

In "Why can't this device connect?"

  • On Wireless › Overview, Why can't this device connect? now shows the score with each figure, under the causes.
  • On Wizards › Why can't this device connect?, a device on the Wi-Fi gets a Wi-Fi link step right after the device itself: a Wi-Fi problem found (a wrong password, a weak signal, PMF the device cannot do) becomes the likely cause; a poor score is a warning; a good score passes. A wired device has no Wi-Fi step. When you ask about a past time, the Wi-Fi link is not checked (it is only known live).

2. App-aware Wi-Fi priority

Wi-Fi has four queues (WMM): voice, video, best effort and background. An access point sends from the voice queue first and from the background queue last. Korthveil marks the traffic of the applications you choose so that the access points put it in the right queue, using the standard mapping of RFC 8325:

Priority Mark (DSCP) Wi-Fi queue
Calls and meetings EF (46) Voice
Gaming CS4 (32) Video
Video AF31 (26) Video
Bulk (updates, backups, downloads) CS1 (8) Background

Marks only. Nothing is dropped, blocked or slowed: traffic you did not choose keeps its normal place.

Before you start

The applications are recognised by application control. Turn on the App-ID add-in (Security › Content & app filtering › Application control) and, under Address sets, add the applications you want to give priority: Korthveil marks the traffic to and from the addresses App-ID has seen each application use.

Turn it on

  1. Open Wireless › Radios & channels, App-aware Wi-Fi priority.
  2. Switch on Mark chosen applications for Wi-Fi priority.
  3. Choose the Wi-Fi zones (the zones your Wi-Fi networks are in).
  4. For each priority, type the applications (App-ID's names, for example zoom, ms-teams) or switch on categories (for example gaming). Fill empty priorities with the usual choices fills in calls and meetings apps, the gaming and streaming categories, and software updates as bulk.
  5. Optionally switch on Send the DSCP-to-Wi-Fi-queue map to access points that can take it (see below).
  6. Press Save to pending changes, then commit.

An application can have one priority only; the page and the commit both say so if one is listed twice.

Marks are set on traffic both ways: towards the devices (so the access point queues it) and from them (so the internet link's QoS sees it too). IPv4 and IPv6 alike. They are set after the QoS add-in's own classification, so on the Wi-Fi zones these choices win.

The QoS Map

Phones and laptops send their own traffic. With Send the DSCP-to-Wi-Fi-queue map, Korthveil gives OpenWrt access points the RFC 8325 map as the 802.11 QoS Map, which tells devices that support it which Wi-Fi queue to use for each mark on their uploads. On OpenWrt this turns on 802.11u interworking, which carries the map. Other brands keep their own mapping; the commit warns for each access point that does not take it.

What each brand does

Wi-Fi priority by brand lists, for every brand, whether its access points use the marks, take the QoS Map, and whether Korthveil sets airtime fairness on them. Airtime fairness is the Airtime on the access points' radios setting on the same page (OpenWrt access points with a driver that supports it); for other brands it is set on their own controller.

Check it works

  • Wi-Fi priority by brand shows how many marking rules are active and the applications in each priority. An application without an address set in App-ID yet is not marked.
  • Recent changes and actions records what is marked after each commit (for example "Calls and meetings (EF, AC_VO): ms-teams, zoom").
  • During a call on a busy Wi-Fi, the call should keep its sound while a large download runs.

3. Privacy and limits

  • The score keeps figures about the radio link (signal, speed, retransmissions, moves, drops) per device address, never what the device does.
  • Priority reads only App-ID's address sets; it adds no inspection of its own.
  • Turning a tool off stops it at the next commit; the score's saved history stays until you press Forget for a device.

Download as PDF All guides