Source on GitHub (Markdown) · ROSE packet layer specification · Version française

FPAC application protocols

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:

  1. the FPAC/1 announcement, a UI frame by which a node makes itself known on its AX.25 ports (section 3);
  2. the route exchange, carried on ROSE calls to the callsign FPACRT (section 4);
  3. 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:

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:

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.

4. Route exchange (FPACRT)

4.1 Session

The route exchange runs on a ROSE call between two neighbouring nodes:

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

Examples from the capture:

FPACRT 1 F6BVP-9
R 2080835201 10 1
W 5050626300 10
E 11

4.3 Exchange

  1. When the call is set up, each side sends its FPACRT line.
  2. A side that receives an FPACRT line with another version, or any other first line, clears the call.
  3. After the FPACRT line of the other side, each side sends its full table: one R line per route, then E with the number of routes.
  4. Each side sends its full table again every 30 minutes.
  5. Between two tables, a change (a route learned, lost, or whose cost changed) is sent as single R or W lines 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:

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:

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:

  1. 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.
  2. 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.
  3. The first node compares those with its own and sends its records of the slots that differ.
  4. 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):

Each set message is answered with a response message. A node does not send the records it would itself ignore.

Sources