Version 1.1 2023 annual review
docker build -t amyangxyz111/rethi-comm . && docker compose up --force-recreate
Change Local/Remote IP addresses and ports in the docker-compose.yml
if necessary
On top of UDP
1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SRC | DST | TYPE | PRIO | VER | RES |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PHYSICAL_TIMESTAMP |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SIMULINK_TIMESTAMP |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SEQUENCE | LEN |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| DATA…
+-+-+-+-+-+-+-+-+
main.go
: entry and configurations (some from env)subsys.go
: a UDP server/client represents an outside subsystemswitch.go
: emulate TSN MIMOMQ switch, follows 802.1Qbv schedulegate.go
,link.go
: emulate the gates and cables of TSN switchestopo.go
: form the topology and find routing pathspacket.go
: define the app-layer protocol formatdb.go
: database connector, mainly for topo and statisticsweb.go
: set up a Web serverutils.go
: utility functions