Efficient Forged Atomic Parallel

FireQai manual Traffic metering and limits
Contents

Traffic metering and limits

Windows nowhere shows permanently how much a program transfers — and offers no way of allotting it a speed or a data volume. FireQai can do both: it counts per program, throttles download and upload separately and, if you wish, sets a ceiling on the data volume — one-off, per day or per month.

8.1 Switching metering on

Traffic metering is off to begin with. Switch it on under Settings → Traffic metering with Measure data volume per program — it takes effect immediately. For this, FireQai loads the WinDivert driver component in the background (used under the GNU LGPL version 3; licence text and source code are included, see section 12.9); it is removed again when you switch metering off and when you exit. Filtering is unaffected: it works the same with or without metering.

If the driver file is not next to the program, the switch is disabled and the line below reads Unavailable; if the driver cannot be loaded, metering stays off and the line gives the cause.

The line below the switch tells you how many packets were seen and what share of them could be assigned to a program; next to it is the data volume that cannot be assigned — multicast and traffic from the system kernel, which belongs to no program. If packets were lost, the line says so too: metering is then incomplete. Below that is the total counted; Reset all counters sets all counters to zero.

Screenshot 42: Settings → Traffic metering while metering is running
Fig. 42 — Settings → Traffic metering while metering is running
ℹ️ After an unclean ending
If FireQai did not end properly last time while metering was running, it stays off at the next start. Switch it back on if you want to try again.

8.2 Data volumes in the applications list

With metering running, the applications list shows two more columns. Data volume gives what the program has transferred in total, with the current throughput in green below it — split into received (↓) and sent (↑), in the same format as the limit next to it. The tooltip breaks the volume down into received and sent and says since when counting has been going on. The counters survive exiting FireQai. Limit shows what has been set for the program. How much each application transferred on which day, in which month or year is shown by the Overview under Data usage (chapter 6.6).

Screenshot 43: The applications list with data volume and limit
Fig. 43 — The applications list with data volume and limit

If you pause the Live view, this display rests as well: the totals stay put and the throughput reads zero. Metering continues — counters and limits carry on unchanged, it is simply not shown again until you resume. Counting does not depend on the Filtering switch: metering is a tool of its own and counts whether filtering is on or not. Limits, on the other hand, are only enforced while filtering is on (section 8.7).

ℹ️ Megabytes, not megabits
FireQai counts in megabytes per second (MB/s, 1 MB = 1,000,000 bytes). Many download programs show megabits per second (Mbit/s) — eight bits make a byte: 68 Mbit/s equals 8.5 MB/s, and a limit of 10 MB/s is 80 Mbit/s. FireQai still comes out slightly above the program’s figure: it counts whole packets including headers and encryption, while the program counts only its payload.

8.3 Limiting the speed

  1. In the program’s row, click + Set limit — or, if something is already set, on the values shown.
  2. Use the Download and Upload sliders to set the maximum speed. The sliders move in steps from 25 kB/s to 1 GB/s; far left means unlimited.
  3. Click Apply. No limit resets everything to unlimited.
Screenshot 44: The limit dialog: speed, data volume, period and counter reading
Fig. 44 — The limit dialog: speed, data volume, period and counter reading
ℹ️ How precise the limit is
Whole packets including their headers are measured, whereas the program only sees its payload — the rate the program itself displays is therefore somewhat below the set value. With a very tight limit, FireQai also lets through what would otherwise have to wait so long that the other side would consider it lost and send it again. In the dialogue this explanation is a tooltip: hover over Download or Upload.
⚠️ Limited programs pass through FireQai
To slow a program down, FireQai holds back its packets and releases them in measured doses — only the packets of limited programs; all others bypass FireQai. Windows then attributes the released packets to “System” rather than to the program. FireQai’s own filtering therefore lets them through — but only for the limited programs’ own ports; whatever else the Windows kernel sends it keeps checking as always. A second firewall or a VPN with a kill switch that only lets certain programs through may, however, block the limited program’s connections — if a program loses its network after you limit it, that is the first suspect. The limit dialogue says so below the sliders. The first packets of a new connection pass unthrottled until FireQai has assigned them — a few milliseconds the limit does not notice.

8.4 Limiting the data volume

The third slider, Data volume, sets a ceiling on how much may be transferred in total — from 50 MB to 1 TB. Without saying what the limit applies to, the number would mean nothing; that is why you choose the Period below it — selectable only once a data volume is set:

PeriodThe volume starts again from zero …
One-off… only when you reset the counter by hand.
Daily… every night at midnight.
Monthly… on the first of each month.

Once the volume is used up, FireQai blocks the program — while filtering is on — until the period starts afresh or you reset the counter. The period rolls over even if FireQai keeps running through midnight or the turn of the month. Below the sliders, once something has been counted, it says how much has already been used — so while setting it you see that of five gigabytes perhaps four are already gone.

8.5 Schedule: when the limit applies

A limit applies around the clock by default. Under Schedule in the limit dialogue you decide that it applies only during certain time slots — say weekdays from 8 am to 4 pm while you work, or at night while the backup runs. Outside the slots the program is unrestricted: it is neither throttled nor blocked once its volume is used up. Counting still goes on around the clock, because the data volume still answers the question of what the program has used. Without a time slot the limit applies at all times, as before.

  1. In the limit dialogue, click Add time slot. The area for creating one opens below it.
  2. Choose the kind: Recurring for fixed weekdays, Calendar days for individual days from a month sheet, One-off for exactly one period from one point in time to another.
  3. Set the days and times and click Add. The time slot appears in the list; the small cross next to it removes it again. Up to twelve time slots per program are possible — it is enough for one of them to be running.
Screenshot 45: The schedule in the limit dialogue: two time slots and the area for creating one
Fig. 45 — The schedule in the limit dialogue: two time slots and the area for creating one
KindWhen the time slot applies
RecurringOn the chosen weekdays between From and To. With Weekdays, Weekend and Every day you pick the days in one go.
Calendar daysOn the days clicked in the calendar, each between From and To. A click on a weekday above the calendar selects all of them in this month; Repeat every week turns the selection into a recurring time slot with exactly those weekdays.
One-offFrom one date and time to another. You type the date or pick it from the calendar next to the field (F4); a time slot that is already over is not accepted.
Screenshot 46: Calendar days: five days chosen on the month sheet
Fig. 46 — Calendar days: five days chosen on the month sheet

The same time for From and To means the whole day. If To is earlier than From, the time slot runs past midnight — a slot Fr 22:00–06:00 runs until early Saturday and belongs to Friday. Times can be typed generously: 8, 8:30, 08.30 and 0830 are all read. If a time slot is still open in the area when you click Apply, FireQai takes it along — and if it is incomplete, stays in the dialogue and says what is missing. No limit also deletes the schedule: time slots with nothing for them to apply to would otherwise lie around invisibly.

ℹ️ Start and end on the full minute
FireQai checks once a minute which time slots are running. While a limit is paused, the program’s packets do not pass through FireQai at all; when the next time slot begins, FireQai takes up its connections again within milliseconds. The metering driver keeps running throughout, and counting has no gap. The log holds no entry: a schedule that does what it should is not an event.

8.6 The display in the row

In the Limit column, the allotted speed appears in green with a bar that shows how far it is being used right now. Below it follows, if set, the data volume — e.g. “7.86 GB of 20 GB · this month” — with an orange bar. Once the volume is used up, text and bar turn red.

If the limit has a schedule (section 8.5), the bottom of the cell holds a line with a clock in front: the first time slot, such as Mo–Fr · 08:00–16:00, with +2 after it if there are several — all of them are in the dialogue. While none is running, speed and data volume fade into the background and the line starts with paused · . They apply again as soon as the next time slot begins; counting goes on all the time.

The same cell also appears in the table of data usage (section 6.6): with the same values, the same click and the same dialogue, likewise only while metering is running.

Screenshot 47: Data volume and limit in the row
Fig. 47 — Data volume and limit in the row

8.7 Resetting counters

The quickest way to reset a single counter is the small arrow ↺ to the right of its data volume; it only appears where something has been counted. You get the same with Reset counter in the limit dialog or with Reset data counter in the context menu of the applications list, and all of them together under Settings → Traffic metering. FireQai asks every time and names the volume that will be lost. The applications stay in the list — what is reset is a counter, not a memory.

Screenshot 48: Confirmation before resetting a counter
Fig. 48 — Confirmation before resetting a counter
⚠️ Limits need metering and filtering
Speed and data volume can also be set with metering or filtering switched off; they are saved but only take effect once both are running. With filtering switched off, FireQai keeps counting but does not intervene in traffic — “filtering off means firewall off” applies here too (chapter 2). FireQai says so in a yellow box at the bottom of the dialogue — it only appears while metering or filtering is off — and points it out again when you apply them.
ℹ️ When a limit cannot be enforced
Setting the first limit and removing the last one leave the metering driver alone — it keeps running, and the counters keep counting. For a limit to take hold, FireQai opens a separate access to the driver alongside, only for the connections of the limited programs. If that only works on the second attempt, you do not notice — the log (chapter 12) merely holds an entry of level Info in the area Metering: “The metering driver only started on the second attempt — metering is running.” If the second attempt fails too, the log records an error: “The limits could not be enforced — the driver rejected the interception filter. Counting continues; FireQai will try again.” Metering then carries on; only the limits do not work until a new attempt succeeds.
ℹ️ When the driver is not ready at startup
Right after sign-in, Windows often provides the metering driver only a little later. If metering is switched on and the first attempt at startup fails, FireQai keeps loading it in the background: up to five times, each after a 15-second pause. While this runs, Settings → Traffic metering shows: “Waiting for the metering driver — after sign-in, Windows often provides it only a little later. FireQai keeps trying by itself.” Once it succeeds, the switch and the columns follow the actual state, and the log records in an entry of level Info on which attempt the driver ran. If all attempts fail, metering is off and the log records an error. If you switch metering on or off yourself in the meantime, the retrying ends.
ℹ️ Technology and licence
The driver component is WinDivert 2.2.2, an open-source project by Basil (basil00); the driver file is countersigned by Microsoft. Only this file, WinDivert64.sys, is included, unmodified. WinDivert is available under your choice of the GNU LGPL version 3 or the GNU GPL version 2; FireQai uses it under the LGPL version 3. The full licence text is in the program folder as WinDivert-LICENSE.txt, the complete source code as Lizenzen\WinDivert-2.2.2-source.zip — more on this in section 12.9.

8.8 Protecting limits with a password

If others who use the same computer should not be able to change the limits, set a password under Settings → Password protection. As long as none is set, FireQai never asks for one.

  1. Click Set password ….
  2. Enter the password twice — it must be at least four characters long — and confirm with Set.
Screenshot 49: Setting a password
Fig. 49 — Setting a password

From then on, FireQai asks for the password for everything that changes a limit or would get around it:

  • opening the limit dialog of an application,
  • resetting counters as soon as a data volume is limited — individually or all together,
  • switching traffic metering off while a limit is set,
  • forgetting a limited application — even when metering is down, since FireQai’s memory is what is asked, not the row in the list,
  • importing data while any limit is set — the import replaces limits and budgets, and with an older backup every limit would otherwise be lifted without a password (the imported limits take effect at once, not only after a restart),
  • deleting, switching off or setting to Allow the block of an AI daily limit in the rules list — that lifts the limit and therefore sits behind the same password as releasing it in the AI tab; the same goes for allowing the application in the applications list and for Network rules… when such a block would fall with it,
  • switching automatic start off or lengthening its delay while a limit is set,
  • exiting FireQai via the notification area while limits are in effect — metering and filtering on, at least one limit set,
  • switching off the AI module or one of its protective switches, removing an agent from supervision or extending its profile by targets or starts, having a confirmed agent relearn, changing or releasing an AI daily limit, accepting an open model service, switching on Count first, do not block for the prompt about local models (chapter 13),
  • resetting FireQai to defaults (chapter 12.6).
Screenshot 50: The password prompt before changing a limit
Fig. 50 — The password prompt before changing a limit

After the correct entry — and likewise right after setting it — the protection stays open for five minutes so you can configure several applications in a row; every further protected action extends this period. During that time the settings show a notice with the Lock now button. As soon as you close or minimize the window, it locks again immediately — as it does with that button. After three wrong entries, FireQai waits 30 seconds before each further attempt.

Screenshot 51: Settings → Password protection shortly after setting it
Fig. 51 — Settings → Password protection shortly after setting it

Change password … and Remove password always require the current password, even while the protection is open. That way nobody who comes to the computer shortly after you can swap the password.

⚠️ Forgotten the password?
FireQai cannot recover a password — only a check value is stored, from which it cannot be calculated back. The protection can be lifted with administrator rights: end FireQai in Task Manager, delete the LimitPassword entry in %ProgramData%\FireQai\settings.json and start FireQai again. Because FireQai does not end properly in doing so, metering that was running stays off once at the next start and has to be switched on again.
ℹ️ What the protection does
It stops anyone who wants to change or get around a limit within FireQai. Someone with administrator rights can still end FireQai in Task Manager or uninstall it — no program can protect itself against someone with full rights over the computer.
An unhandled error has occurred. Reload 🗙