Routing Protocol (SARP)

The main goal of the Routing Protocol (SARP) is to find a route and transfer a packet to destination device that located in the Network. The Routing Protocol (SARP) does not guarantee delivery. The only thing that it guarantees is integrity of the Header and the Payload data in the packet (based on CRC).

Packet structure

Part Field name Length (bits) Description
  SOP 8 Start of packet
Header SACP 8 SACP Header part
Source 8 The source device ID
Destination 8 The destination device ID
SATP 3 SATP Header part
Reserved 1 Must be set to 0x0
Data length 4 The length of data in bytes
Payload Data 0-64 Max 8 bytes
  CRC 16 Checksum
  EOF 8 End of packet

SOP (8 bits)

It specifies the start of the packet. These 8 bits are equal to ASCII Start Of Heading (SOH) character 0x1.

SACP (8 bits)

These are the Channel and Data Classifier for Control Protocol (SACP).

Source (8 bits)

This is an Identifier (ID) of the source device. Network supports up to 255 devices. Each device has unique identifier from range 0-255. The device with ID=0x0 corresponds to Zero Virtual Device.

Destination (8 bits)

This is an Identifier (ID) of destination device. Network supports up to 255 devices. Each device has unique identifier from range 0-255. The device with ID=0x0 corresponds to Zero Virtual Device.

SATP (3 bits)

These are the Segmentation, Final and Acknowledgment flags for Transport Protocol (SATP).

Data length (4 bits)

This is a length of Payload data in bytes. The Packet can be empty (without Payload). In this situation Data length=0x0 and Payload part is not present in the Packet. The maximum size of Payload part are 8 bytes.

Data (0-64 bits)

This is a Payload part for Transport Protocol (SATP).

CRC (16 bits)

The 16-bit checksum is used for error-checking of the Header and Payload parts.

EOF (8 bits)

It specifies the end of the packet. These 8 bits are equal to ASCII End of Transmission (SOH) character 0x17.