Source on GitHub (Markdown, CC BY 4.0) · FPAC application protocols · Version française

ROSE packet layer: a descriptive specification

Draft 1, 3 December 2026. Bernard Pidoux, F6BVP.

Status of this document

No official specification of ROSE was ever published. The Radio Amateur Telecommunications Society (RATS) announced a “ROSE Implementer’s Guide”, but no copy of it is known. The reference has always been the source code of the implementations.

This document describes the ROSE packet layer as two implementations actually behave on the air:

It was checked against a 24-hour capture made on 2 and 3 December 2026 on a Linux FPAC node with 13 ROSE neighbours in six countries (108 935 AX.25 frames, 52 869 ROSE packets).

The RATS source code is under a restrictive licence. This document describes behaviour and formats only; it does not reproduce that code.

Where the two implementations differ, both behaviours are given, marked RATS and Linux. “Linux” means the current code of the kernel modules as maintained in the linux-netdev/mod-orphan repository (December 2026); older kernels are mentioned where their behaviour matters for interoperation.

1. What ROSE is

ROSE (RATS Open Systems Environment) is a network layer for amateur packet radio. It was designed at the RATS in New Jersey in the late 1980s; its first releases were called “COSI-Switch” before being renamed ROSE.

A ROSE network is made of switches (also called nodes) linked to their neighbours by AX.25 connections. A user, or an application, asks for a call to a station identified by a callsign and by the 10-digit address of the switch where that station is. The switches set up the call hop by hop, without the user having to know the path, much like a telephone call. Once the call is set up, data flows in sequence, with flow control on each hop, until one side clears the call.

ROSE runs on top of AX.25, the amateur link layer, which was itself derived from the link layer of X.25. ROSE uses only AX.25 connected mode (I frames) between neighbouring switches.

ROSE is not FPAC. FPAC, and other node software, are applications that use ROSE: the FPAC user interface, its route exchange daemon and its white pages server open ROSE calls like any other application. Their protocols are not part of ROSE; they are described in a separate document (see Annex B).

2. Terms

Term Meaning
switch, node A station that runs the ROSE packet layer.
neighbour A switch reached directly over one AX.25 connection.
link The AX.25 connection between two neighbours, and the ROSE state of that connection.
address A 10-digit ROSE address (section 4).
call A ROSE connection between two end points, possibly through several switches.
logical channel The number that identifies a call on one link (section 6).
hop The part of a call on one link. A call through n switches has n+1 hops.
through route The state a transit switch keeps for a call it relays.

3.1 AX.25 connection

Two neighbouring switches exchange ROSE packets inside AX.25 I frames with the protocol identifier PID 0x01. UI frames are not used.

Each ROSE packet is carried in one I frame. A packet longer than the AX.25 frame size of the link is carried with AX.25 segmentation (PID 0x08) and reassembled by AX.25 before it reaches ROSE.

The AX.25 callsigns of the link are the ROSE callsigns of the two switches. A switch usually uses a dedicated callsign for ROSE (for example F6BVP-9), distinct from its user access callsign.

The link is set up on demand, when the first packet has to be sent to a neighbour, or when the neighbour connects.

RATS: a frame with any PID other than 0x01 makes the switch drop the AX.25 connection.

Before any call is set up on a link, the link must be restarted:

  1. one switch sends a Restart Request on logical channel 0;
  2. the other answers with a Restart Confirmation.

The link is then usable in both directions.

A Restart Request received on a link that was already restarted means that the neighbour has lost all its calls (it was rebooted, or its ROSE layer was reloaded). The receiving switch clears every call and every through route that used that link, then confirms the restart.

Linux:

4. Addresses

4.1 Format

A ROSE address has 10 decimal digits, carried as 5 bytes of packed BCD, first digit in the high nibble of the first byte.

2080 175520
---- ------
|    national part (6 digits)
DNIC (4 digits)

The first four digits are the DNIC (Data Network Identification Code) of the country: 2080 for France, 3100 for the United States, 5050 for Australia, 3020 for Canada.

The RATS user manual asks that the six national digits follow the telephone numbering plan of the country: in North America, the area code and the exchange of the place where the switch is. The FPAC documentation gives the same rule for France, where the address is taken from the telephone number hierarchy; the final choice belongs to the operator of the switch.

4.2 Routing by address prefix

Switches route calls by address prefix: a routing entry holds an address and a mask, which is the number of leading digits that must match (0 to 10). A switch can answer for several addresses.

5. Packet formats

5.1 Packet header

Every ROSE packet starts with a 3-byte header:

byte 0   Q  D  0  1 | LCI bits 11-8
byte 1   LCI bits 7-0
byte 2   packet type

So byte 0 is 0x10 in almost every packet, and 0x90 in a Data packet with the Q bit set.

RATS: a packet whose byte 0 does not match this format is answered with a Diagnostic packet (code 40).

5.2 Packet types

Type Byte 2 LCI Length
Call Request 0x0B not 0 15 + facilities
Call Accepted 0x0F not 0 3, usually 5
Clear Request 0x13 not 0 5
Clear Confirmation 0x17 not 0 3
Data rrr m sss 0 not 0 3 + user data
RR (receive ready) rrr 00001 not 0 3
RNR (receive not ready) rrr 00101 not 0 3
Reset Request 0x1B not 0 5
Reset Confirmation 0x1F not 0 3
Interrupt 0x23 not 0 4 or more
Interrupt Confirmation 0x27 not 0 3
Restart Request 0xFB 0 5
Restart Confirmation 0xFF 0 3
Diagnostic 0xF1 0 4 or more

rrr is the receive sequence number P(R), sss the send sequence number P(S), and m the “more data” bit (section 5.5).

The codes 0x09 (REJ), 0xF3 and 0xF7 (registration) are reserved; neither implementation sends or accepts them.

A receiver tells packets apart in this order: first the fixed codes of the table, then RR and RNR by their low 5 bits, then Data by bit 0 = 0.

5.3 Call Request

offset  size  field
0       3     header, type 0x0B
3       1     address lengths: 0xAA
4       5     called address (BCD)
9       5     calling address (BCD)
14      1     facilities length F
15      F     facilities (section 5.4)

The address length byte gives the number of digits of the calling address (high nibble) and of the called address (low nibble); both are always 10, hence 0xAA.

Linux drops a Call Request whose byte 3 is not 0xAA.

No user data follows the facilities in any packet of the capture.

5.4 Facilities

The facilities field is a sequence of facilities, in two sets. Each set opens with a two-byte marker:

Marker Set
00 00 ROSE facilities
00 0F address facilities

The source code of both implementations names the address set “CCITT”, after the organization that defined this coding.

Inside a set, the two top bits of the facility code give its length:

Code Parameter
0x00-0x3F 1 byte
0x40-0x7F 2 bytes
0x80-0xBF 3 bytes
0xC0-0xFF 1 length byte L, then L bytes

A receiver skips a facility it does not know, using this rule.

5.4.1 ROSE facilities (marker 00 00)

Code Name Parameter
0x3F handling flags 1 byte of flags for error handling (RATS); not used by Linux
0x7F routing tag 2 bytes (section 7.5)
0xE9 called side digipeater L = 7, one AX.25 address
0xEB calling side digipeater L = 7, one AX.25 address
0xED failed callsign L = 7, AX.25 address of the switch where the call failed
0xEE failed address L = 6: 1 byte, then the 5-byte address of that switch
0xEF digipeater list L = 7 × n, n AX.25 addresses

The ROSE set is sent only when there is something to put in it. In practice every Call Request carries at least the routing tag.

Order of the facilities:

5.4.2 Address facilities (marker 00 0F)

Code Name
0xC9 called address and callsign
0xCB calling address and callsign

Both are always present, 0xC9 first. Each one carries an address in the form of an OSI network service access point (NSAP), followed by the callsign as text:

offset  size  field
0       1     code: 0xC9 or 0xCB
1       1     L: length of what follows (bytes)
2       1     length of the NSAP that follows, in semi-octets
3       3     47 00 11
6       1     0x0A: number of digits of the ROSE address
7       5     ROSE address (BCD)
12      n     callsign as ASCII text, for example "F6KKR-8"

Linux refuses an address facility with L below 10 or above 20.

5.4.3 Example

This Call Request was sent by F6BVP-9 to its neighbour F6KKR-9, for a call from F6BVP-3 at 2080175520 to F6KKR-8 at 2080178520:

10 02 0b                    header: LCI 2, Call Request
aa                          address lengths 10 and 10
20 80 17 85 20              called address 2080178520
20 80 17 55 20              calling address 2080175520
2d                          facilities length 45
00 00                       ROSE facilities
7f c0 02                    routing tag 0xC002
00 0f                       address facilities
c9 11 20 47 00 11 0a        called: L 17, NSAP 32 semi-octets
   20 80 17 85 20           2080178520
   46 36 4b 4b 52 2d 38     "F6KKR-8"
cb 11 20 47 00 11 0a        calling: L 17, NSAP 32 semi-octets
   20 80 17 55 20           2080175520
   46 36 42 56 50 2d 33     "F6BVP-3"

5.5 Data

byte 0   Q 0 0 1 | LCI bits 11-8
byte 1   LCI bits 7-0
byte 2   P(R) (3 bits) | M | P(S) (3 bits) | 0
byte 3.. user data

5.6 RR and RNR

Three bytes; P(R) in the top 3 bits of byte 2. RR acknowledges the Data packets up to P(R) − 1; RNR does the same and asks the other side to stop sending Data until an RR comes.

5.7 Call Accepted

Linux sends 5 bytes: the header, then 0x00 (no addresses) and 0x00 (no facilities). A receiver should accept a Call Accepted of any length of at least 3 bytes.

5.8 Clear, Reset and Restart Requests

Byte 3 is the cause, byte 4 the diagnostic (section 9). The confirmations are 3 bytes long.

Linux always sends Restart Request and Reset Request with cause 0x00 and diagnostic 0x00.

5.9 Diagnostic

Sent on logical channel 0 to report a packet that could not be handled at all.

byte 3   diagnostic code (section 9.2)
byte 4-6 the first 3 bytes of the offending packet (Linux expectation)

RATS sends the diagnostic code only (4 bytes). Linux logs a received Diagnostic packet of 7 bytes or more and ignores a shorter one; it never sends one.

5.10 Interrupt

Interrupt carries one or more bytes of urgent user data outside the flow control; it is answered by Interrupt Confirmation. RATS handles both in the data transfer state. Linux neither sends nor handles them.

6. Logical channels

6.1 Scope

The logical channel identifies a call on one link. It is chosen when the call is set up, and it is only valid on that link: each hop of a call has its own logical channel, and a transit switch maps the logical channel of the incoming hop to the one of the outgoing hop. The number is freed when the call is cleared on that hop, and can then be used for another call.

Logical channel 0 is reserved for packets that concern the whole link: Restart Request, Restart Confirmation and Diagnostic. Any other packet type is invalid on channel 0, and these three are invalid on any other channel.

Applications above ROSE use ordinary calls: no logical channel number is reserved for any service.

6.2 Choice of a logical channel

The calling side of a hop picks a free logical channel on the link for each new call. So that two neighbours do not pick the same channel at the same moment, one of them searches upwards from 1 and the other downwards from its highest channel.

Linux decides the roles with the Restart Request: the switch that received a Restart Request with cause 0x00 searches upwards from 1; the switch that sent it searches downwards from its maximum. The maximum is the maximum_virtual_circuits setting, 50 by default. In the capture, channels 1 to 5 and 44 to 50 are the ones in use.

RATS accepts logical channels up to 254.

6.3 Errors

A Call Request on a logical channel that is already in use on that link replaces the old call: the neighbour has obviously lost it. Linux releases the local call it had there (an application sees it end with cause 0x05), or clears the other half of the through route, then handles the new Call Request.

For a packet other than a Call Request on a logical channel with no call, see section 7.8.

7. Procedures

7.1 Call states

Each end of each hop of a call is in one of these states:

State Meaning
Ready no call on this logical channel
Awaiting Call Accepted Call Request sent
Awaiting call acceptance Call Request received, the application has not accepted yet (Linux deferred acceptance)
Data transfer call set up
Awaiting Reset Confirmation Reset Request sent
Awaiting Clear Confirmation Clear Request sent

7.2 Call setup

  1. The calling switch sends a Call Request on a free logical channel of the link toward the called address, and starts T1.
  2. Each transit switch relays the Call Request (section 7.4).
  3. The switch that answers for the called address finds the application for the called callsign (section 7.3) and answers with Call Accepted, or refuses the call with a Clear Request.
  4. Call Accepted travels back along the path; at the calling switch it stops T1, and the call goes to data transfer.

If T1 runs out, the calling switch clears the call.

7.3 Choice of the application at the called switch

ROSE has no port numbers. At the switch that answers for the called address, the called callsign, taken from facility 0xC9, chooses the application, just as a port number does in other networks. For example, under FPAC, the callsign of the node leads to its user interface, WP-0 to its white pages server, FPACRT-0 to its route exchange daemon, and the callsign of a user station to that station.

Linux looks for an application listening on the called address and called callsign, then for one listening on the called address with no callsign (a catch-all). If there is none, or if the listener cannot take more calls, the call is cleared with cause 0x05, diagnostic 120.

7.4 Call routing at a transit switch

A switch that does not answer for the called address of a Call Request relays it:

  1. it looks up the called address in its routing table, most specific entries first (longest mask), and takes the first neighbour of the matching entry whose link is restarted; Linux keeps up to three neighbours per entry, in order of preference;
  2. it picks a free logical channel on the link to that neighbour;
  3. it records a through route: incoming link and logical channel, outgoing link and logical channel, plus the routing tag, calling address and the two callsigns of the call;
  4. it sends the Call Request on the outgoing link, unchanged except for the logical channel: addresses, callsigns and facilities, routing tag included, go through as they came.

From then on, every packet that comes in on one logical channel of the through route is sent out on the other one, with only the logical channel changed. The through route is removed when the Clear Confirmation goes through.

Linux refuses to relay when its routing_control setting is 0: the call is cleared with cause 0x0D, diagnostic 0.

Errors when relaying:

Situation Clear Request sent back
no route to the called address cause 0x0D, diagnostic 0
no free logical channel toward the next switch cause 0x05, diagnostic 71
loop detected (section 7.5) cause 0x0D, diagnostic 120
facilities that cannot be decoded cause 0x03, diagnostic 76

7.5 Loop detection

The calling switch puts a routing tag (facility 0x7F) in each Call Request: a 16-bit value that is unlikely to be used by another call at the same time.

Transit switches never change it. A switch that receives a Call Request with the same routing tag, the same calling address and the same calling and called callsigns as a call it already relays knows that the call came back to it, and clears it with cause 0x0D, diagnostic 120.

7.6 Data transfer and flow control

Each hop has its own flow control, modulo 8, with a window of W packets (Linux: window_size, 7 by default).

A switch that receives a P(R) that does not acknowledge a packet it sent resets the call. Linux also resets the call when a Data packet arrives with an unexpected P(S) (a packet was lost), after acknowledging what it got in sequence.

7.7 Reset

A Reset Request sets the flow control of the call back to its starting point without clearing the call. On both sides, P(S) and P(R) start again from 0, and the side that had unacknowledged Data packets sends them again. Data in transit at that moment may be lost or, at worst, duplicated.

The receiver answers with Reset Confirmation. If none comes before T2 runs out, the sender clears the call.

A transit switch relays Reset Request and Reset Confirmation like any other packet, so that the reset reaches the other end.

7.8 Clearing

Either end, or any switch on the path, can clear a call:

  1. it sends a Clear Request with a cause and a diagnostic, and starts T3;
  2. the neighbour answers with Clear Confirmation and frees the logical channel; a transit switch passes the Clear Request on to the next hop;
  3. on Clear Confirmation, the sender frees the logical channel.

When both sides send Clear Request at the same time, each one takes the Clear Request of the other as the end of the call.

Linux does not send the Clear Request again when T3 runs out: it frees the call locally.

Linux also clears a call with no traffic for no_activity_timeout (0 by default: never).

7.9 Packets on a logical channel with no call

A packet other than a Call Request can arrive on a logical channel that has no call on that link: the call was lost on one side, for example after a restart, a link failure or a clearing that crossed.

RATS:

Linux (December 2026 and later):

Older Linux kernels:

Interworking note: a switch that answers a Clear Request on an unknown channel with a Clear Confirmation can loop endlessly against an older Linux switch with routing_control set to 0, which answers each Clear Confirmation with a Clear Request. For this reason current Linux does not confirm.

When the AX.25 connection to a neighbour fails, every call using that link is lost:

Linux then avoids that neighbour for new calls from local applications for link_fail_timeout (120 s by default), and the link must be restarted before it is used again.

8. Timers

Timer Runs in On expiry Linux setting, default
T0 link not restarted send Restart Request again restart_request_timeout, 180 s
T1 Awaiting Call Accepted clear the call call_request_timeout, 200 s
T2 Awaiting Reset Confirmation clear the call reset_request_timeout, 180 s
T3 Awaiting Clear Confirmation free the call clear_request_timeout, 180 s
holdback Data transfer, data not yet acknowledged send RR (or RNR) acknowledge_hold_back_timeout, 5 s
idle Data transfer clear the call no_activity_timeout, 0 (off)
link fail after a link failure neighbour usable again link_fail_timeout, 120 s

The Linux settings are under /proc/sys/net/rose/; the timers are in milliseconds.

9. Causes and diagnostics

9.1 Causes

Carried in Clear, Reset and Restart Requests.

Cause Meaning Seen in the capture
0x00 originated by the end point (normal clearing) 375
0x01 number busy
0x03 invalid facility
0x05 network congestion
0x09 out of order 28
0x0B access barred
0x0D not obtainable 351
0x11 remote procedure error
0x13 local procedure error 1
0x39 ship absent

(Counts for the 755 Clear Requests of the capture; the 8 Reset Requests and 17 Restart Requests all have cause 0x00.)

9.2 Diagnostics

The diagnostic gives the reason in more detail. 0 means no further information. Values used by the two implementations:

Diagnostic Used for
0 no further information
17-19 packet not allowed in the restart state of the link (RATS)
20-26 packet not allowed in the call setup or clearing state (RATS)
27-29 packet not allowed in the data transfer state (RATS)
33 packet type not recognized (RATS)
36 packet on a logical channel with no call; also (RATS) a packet on channel 0 that belongs on another channel, or a channel above 254
38 packet too short (RATS)
40 invalid byte 0 of the header (RATS)
41 Restart or Diagnostic packet on a channel other than 0 (RATS)
71 no free logical channel toward the next switch (Linux)
76 facilities that cannot be decoded (Linux)
120 loop detected; no application for the call; no memory (Linux)

10. User access

How a user station reaches a switch is outside the packet layer, but it explains the facilities.

RATS: a user connects in AX.25 to the destination callsign, with the entry switch and the destination address as digipeaters:

C N2FWI via N2DSY-3,201744

N2DSY-3 is the entry switch and 201744 is the destination address, given as a pseudo callsign of six digits (the DNIC of the entry switch is added). Digipeaters before the switch become facility 0xEB, and a digipeater after the address becomes facility 0xE9.

Linux has no user access of its own: user access is done by applications (for example FPAC), which accept the AX.25 connection and open a ROSE call for it.

Annex A. Notes for protocol analysers

Annex B. Applications that use ROSE

FPAC (node software for Linux, by Jean-Paul Roubelat, F6FBB, maintained today by F6BVP) and other programs use ROSE calls for their own services. These services are not part of ROSE:

Their protocols are described in a separate document of the FPAC documentation, “FPAC application protocols”: https://f6bvp.org/fpac-protocols.html, and doc/fpac-protocols.md in the fpac-4.2 branch of https://github.com/f6bvp/fpac.

Annex C. Sources