Updated Networking (markdown)

Mikayla 2023-08-12 02:22:05 -04:00
parent 8ad775defa
commit 2a3bffdaa6

@ -2,7 +2,15 @@
## Network Architecture ## Network Architecture
Version 2 of the network architecture identifies devices using their unique computer ID's rather than the channel they are configured to use. This allows using only 5 channels for the whole system, which are common across all the configured devices. The default channels are shown in the diagram above. On multiplayer servers, it is highly encouraged (and necessary if there is more than one system) to not use the default channels, as having two systems on the same network will cause undesirable behavior, such as devices linking to the wrong system. Version 2 of the network architecture identifies devices using their unique computer ID's rather than the channel they are configured to use. This allows using only 5 channels for the whole system, which are common across all the configured devices. The default channels are shown in the diagram above and the table below. On multiplayer servers, it is highly encouraged (and necessary if there is more than one system) to not use the default channels, as having two systems on the same network will cause undesirable behavior, such as devices linking to the wrong system.
| Name | Default Channel | Purpose |
| --- | --- | --- |
| `SVR_CHANNEL` | `16240` | Channel for all devices to send messages to the supervisor |
| `PLC_CHANNEL` | `16241` | Channel for messages from the supervisor to the PLCs |
| `RTU_CHANNEL` | `16242` | Channel for messages from the supervisor to the RTUs |
| `CRD_CHANNEL` | `16243` | Channel for messages from the supervisor to the coordinator |
| `PKT_CHANNEL` | `16244` | Channel for messages from the supervisor/coordinator to pocket computers |
### HMAC Message Authentication ### HMAC Message Authentication