Draft 1, 3 December 2026. Bernard Pidoux, F6BVP.
Status and scope
FPAC is node software for Linux, first written by Jean-Paul Roubelat, F6FBB. It runs on top of the ROSE packet layer of the Linux kernel, and on AX.25.
This document describes the three protocols that FPAC nodes use between themselves:
- the FPAC/1 announcement, a UI frame by which a node makes itself known on its AX.25 ports (section 3);
- the route exchange, carried on ROSE calls to the callsign FPACRT (section 4);
- the White Pages, carried on ROSE calls to the callsign WP (section 5).
These protocols are not part of ROSE. They are application protocols: FPAC opens ROSE calls like any other application, and what flows in those calls is defined by FPAC alone. ROSE itself is described in a separate document, “ROSE packet layer: a descriptive specification” (https://github.com/f6bvp/rose-spec).
The text describes FPAC 4.2-rc6 (tag v4.2-rc6, commit
3a36aff), and it was checked against a 24-hour capture made on the FPAC
node F6BVP-8 on 2 and 3 December 2026. The design of the route exchange,
with the reasons behind each rule, is in
doc/dynamic-routes.md; this document gives what goes on the
air.
1. Callsigns of an FPAC node
An FPAC node has several callsigns, set in
/etc/ax25/fpac.conf, usually with consecutive SSIDs:
| Keyword | Example | Use |
|---|---|---|
L2call |
F6BVP-12 | AX.25 access of users to the node |
L3call |
F6BVP-13 | ROSE: the AX.25 links between switches |
Trcall |
F6BVP-15 | route tracing |
The node also has a ROSE address of 10 digits: its DNIC and its 6-digit address, for example 2080 835201.
2. Services: which callsign is called
ROSE has no port numbers: on the node that answers for the called address, the called callsign chooses the application. FPAC uses these callsigns for its services:
| Called callsign | Service | Program |
|---|---|---|
WP (SSID 0) |
White Pages server | fpacwpd |
FPACRT (SSID 0) |
route exchange | fpacrtd |
ROUTE (SSID 0) |
route tracing | fpacroute |
| any other | a user station: FPAC connects to it in AX.25 | fpad |
A call to a callsign that no FPAC program listens on is taken by
fpad as a call for a user station: fpad
records the caller in the White Pages and tries an AX.25 connection to a
station of that callsign. For this reason a node never calls FPACRT on a
neighbour that is not known to run fpacrtd (section
4.1).
3. FPAC/1 announcement
3.1 Frame
An FPAC/1 announcement is an AX.25 UI frame:
- source: the
L3callof the node; - destination:
QST-0for an announcement to all, or theL3callof one node for a direct reply; - PID 0xF0 (no layer 3);
- information field: one line of ASCII text ended by a carriage return (0x0D).
Example from the capture:
F6BVP-13 > QST-0, UI, PID 0xF0
FPAC/1 L2=F6BVP-12 L3=F6BVP-13 NUA=2080835201 V=4.2-rc6 RT=1<CR>
3.2 Line
The line starts with FPAC/1 and a space: the protocol
name and its version. Then come fields KEY=value, separated
by spaces:
| Field | Value |
|---|---|
L2 |
the L2call of the node |
L3 |
the L3call of the node; must be the source of the
frame |
NUA |
the ROSE address of the node: 10 decimal digits |
V |
the FPAC version, for information |
RT |
1 if the node runs fpacrtd and announces or learns
routes, else 0 |
A receiver:
- ignores a line that does not start with
FPAC/1; - reads the fields in any order and ignores fields it does not know, so that fields can be added later without a new version;
- ignores the announcement if
NUAis not 10 digits, ifL3is missing, or ifL3is not the source callsign of the frame; - ignores its own announcements.
3.3 When it is sent
A node with FpacAnnounce = yes in fpac.conf
sends its announcement to QST-0 on the AX.25 ports of its
neighbours: at start, then every 30 minutes, give or take 2 minutes.
When it hears the announcement of a node it already calls, or of a
new node it accepts, it answers with its own announcement sent to that
node only (destination: its L3call), at most once every 10
minutes for each node.
3.4 What a node does with it
What follows is the behaviour of FPAC 4.2, given so that the frames seen on the air make sense; it is not needed to decode them.
- A known neighbour whose route exchange session is down is called at once.
- A node not yet known, with
RT=1, is handled according toFpacDiscoverinfpac.conf:yes(the default): it is accepted provisionally: the node sets a ROSE route to its address and calls it on FPACRT;ask: it is recorded and waits for the sysop (fpacrtd -a CALLaccepts it,fpacrtd -x CALLrefuses it);no: it is only logged.
- A node is not accepted when its address already has a route written by the sysop, belongs to another neighbour, or when too many nodes are already accepted provisionally (8).
- A node accepted provisionally that ends three sessions in a row before it answers is no longer called, and waits for the sysop.
4. Route exchange (FPACRT)
4.1 Session
The route exchange runs on a ROSE call between two neighbouring nodes:
- called address: the address of the neighbour;
- called callsign:
FPACRT; - calling callsign:
FPACRT; - either node may call; a node calls a neighbour only when its Node
block in
fpac.nodescarriesRoute = yes, or when the neighbour was accepted through its FPAC/1 announcement.
The first call is made 30 seconds after fpacrtd starts.
A call that fails is tried again after 1 minute, then 5 minutes, then
every 30 minutes.
4.2 Messages
The data of the call is plain ASCII text, one message per line. A sender ends each line with a carriage return (0x0D). A receiver accepts a carriage return or a line feed as the end of a line, and handles the data of the call as a stream: a ROSE Data packet may hold several lines, and a line may be cut between two packets.
| Message | Meaning |
|---|---|
FPACRT <v> <call> |
opening: protocol version (1) and L3call of the
sender |
R <address> <mask> <cost> |
route: destination, mask, cost |
W <address> <mask> |
withdrawal of that route |
E <n> |
end of a full table of n routes |
<address>is 10 decimal digits.<mask>is the number of significant digits: 10 for one node, 4 for a whole DNIC. Other masks are neither sent nor accepted.<cost>is the number of hops from the origin of the route: 0 when the sender is itself the origin.
Examples from the capture:
FPACRT 1 F6BVP-9
R 2080835201 10 1
W 5050626300 10
E 11
4.3 Exchange
- When the call is set up, each side sends its
FPACRTline. - A side that receives an
FPACRTline with another version, or any other first line, clears the call. - After the
FPACRTline of the other side, each side sends its full table: oneRline per route, thenEwith the number of routes. - Each side sends its full table again every 30 minutes.
- Between two tables, a change (a route learned, lost, or whose cost
changed) is sent as single
RorWlines about 10 seconds later; changes close together go out together.
4.4 Rules
The full rules, and the reasons for them, are in
doc/dynamic-routes.md. In short:
- A receiver adds 1 to the cost it receives; a route whose cost then goes above 6 is ignored, and no route of cost above 6 is sent.
- A node never announces a destination to the neighbour through which it reaches that destination (split horizon).
- A node announces its own address at cost 0, and a whole DNIC at cost
0 only when its sysop declared it the exit of that DNIC
(
RouteOrigin), and only while the link toward that DNIC is open. - With
RouteNeighbours = yes, a node also announces, at cost 1, the address of a direct neighbour whose link is open, even if that neighbour does not runfpacrtd. - A route stays valid until the neighbour withdraws it
(
W), until three full tables in a row leave it out, or until the session ends. - A node that holds routes from a neighbour and has received no full table from it for 90 minutes clears the call.
5. White Pages (WP)
5.1 What they hold
The White Pages are a database of stations, shared by all FPAC nodes. Each record gives, for one callsign, the ROSE address of the node where that station was last seen, possibly the digipeaters to reach it, a name, a town and a locator. Nodes have records too, marked as such.
A node learns a record when a station uses it, when the sysop edits its White Pages, or from a neighbour; it passes what it learns on to its other neighbours, so that every record reaches every node.
5.2 Session
The White Pages are exchanged on a ROSE call between two neighbouring nodes:
- called address: the address of the neighbour;
- called callsign:
WP(SSID 0); - calling callsign:
WP.
fpacwpd calls each neighbour of its
fpac.conf Node blocks, except those marked
NoWp, and accepts the calls of its neighbours. The call is
kept open; a call that fails is tried again after 2 minutes.
Programs of the node itself (the user interface, the editor
wpedit, the listing tool wplist) use the same
messages to query and update the White Pages server.
5.3 Messages (PDU)
The data of the call is a stream of messages. Each message is:
byte 0 type
byte 1 N: length of the data (bytes)
bytes 2.. data (N bytes)
last byte checksum
The checksum is chosen so that the sum of all the bytes of the message, type, length and checksum included, is 0 modulo 256.
Several messages can be sent in one ROSE Data packet, and a receiver should handle the data of the call as a stream.
| Type | Name | Data |
|---|---|---|
| 0 | set | one record (5.4) |
| 1 | get | 7 bytes: AX.25 callsign |
| 2 | get response | one record |
| 3 | response | 1 byte: status |
| 4 | vector request | vector (5.5) |
| 5 | vector response | vector |
| 6 | get list | 4 bytes max count, 4 bytes flags, 9 bytes mask |
| 7 | get list response | 4 bytes position, 1 byte “more follows”, one record |
| 8 | info | 4 bytes mask |
| 9 | info response | 4 bytes mask, 4 bytes record count, 4 bytes size |
| 10 | end of transaction | none |
0x3A (:) |
text command | text, with no length and no checksum |
Numbers are unsigned, in network byte order (most significant byte first).
Status values of the response: 0 OK, 1 invalid command, 2 set error, 3 get error.
The text command (type :) is a console for the sysop and
for debugging; it is not used between nodes.
Between two nodes, only types 0, 3, 4, 5 and 10 are used. In the capture: 33 028 set, 2 537 response, 1 088 vector request, 1 090 vector response and 305 end of transaction.
5.4 Record
| Size | Field |
|---|---|
| 4 | date of the record: Unix time (seconds since 1970, UTC) |
| 5 | ROSE address of the node where the station is (BCD) |
| 7 | callsign of the station, AX.25 coded |
| 1 | number of digipeaters d (0 to 6) |
| 7 × d | digipeaters, AX.25 coded |
| 1 | 1 if the record is a node, else 0 |
| 1 | 1 if the record is deleted, else 0 |
| 1 + n | name: length n, then n ASCII bytes (n ≤ 21) |
| 1 + n | town: length n, then n ASCII bytes (n ≤ 21) |
| 1 + n | locator: length n, then n ASCII bytes (n ≤ 6) |
“AX.25 coded” means 6 bytes of callsign shifted left by one bit, padded with spaces, then the SSID byte, as in an AX.25 address field.
Example from the capture, a set message with an empty record:
00 16 set, 22 bytes of data
6b 0f fb 7f date
20 80 17 55 20 address 2080175520
8c 6c 84 ac a0 40 06 callsign F6BVP-3
00 no digipeater
00 00 not a node, not deleted
00 00 00 no name, no town, no locator
bc checksum
5.5 Vector and synchronisation
To find which records differ, two neighbours compare summaries of their databases, called vectors, instead of sending all their records.
A vector holds:
| Size | Field |
|---|---|
| 2 | version: 0x0112 (0x0111 in older FPAC) |
| 4 | date base: Unix time |
| 2 | interval: seconds |
| 2 | seed |
| 2 × 16 | 16 checksums, one per time slot |
The records are sorted by date, newest first, and split into 16 time
slots going back from the date base: slot 0 holds the records less than
one interval older than the date base, and each following slot covers a
period twice as long as the previous one; slot 15 holds all the older
records. The checksum of a slot is a CRC-16 (polynomial x^16 + x^12 +
x^5 + 1, bits taken least significant first, initial value 0xFFFF,
result inverted) computed over the seed (2 bytes, network order), then,
for each record of the slot in date order, its date (4 bytes, network
order) and its ROSE address and callsign as held in memory by Linux (a
struct full_sockaddr_rose, 64 bytes).
The vector exchange:
- A node sends a vector request, with a date base chosen from its own records, an interval such that its records fit in the 16 slots, a random seed, and its 16 checksums.
- The neighbour computes its own checksums with the same date base, interval and seed. For each slot whose checksum differs, it sends all its records of that slot (set messages). It answers with a vector response holding its own checksums.
- The first node compares those with its own and sends its records of the slots that differ.
- An end of transaction message marks the end of the records sent.
A vector exchange takes place when the call is set up, then every hour. A record that changes on a node is also sent at once to every neighbour.
5.6 Acceptance of a record
A node that receives a record (set message):
- keeps the one it has if it is newer;
- with the same date and different contents, keeps the version whose coded form is the greater, so that all nodes settle on the same one;
- never lets a user change a node record;
- ignores a deleted record more than 14 days old;
- ignores, from another server, a record that is not deleted and is more than 30 days old (version 0x0112).
Each set message is answered with a response message. A node does not send the records it would itself ignore.
Sources
- FPAC 4.2-rc6:
route/fpacrtd.c(FPAC/1 announcement and route exchange),lib/libwp.candlib/wp.h(White Pages messages),wp/fpacwpd.candwp/db.c(White Pages server, vectors), anddoc/dynamic-routes.md. - Capture made on the FPAC node F6BVP-8, 2 December 2026 11:01 UTC to 3 December 2026 11:01 UTC.