chg: [format] diagram added

master
Alexandre Dulaunoy 2019-01-13 16:14:27 +01:00
parent b4ac2be86c
commit bb60226c8e
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 4 additions and 2 deletions

View File

@ -1,14 +1,16 @@
# D4 encapsulation protocol version 1 (DRAFT)
![Overview of the D4 encapsulation protocol](https://raw.githubusercontent.com/D4-project/architecture/master/docs/diagram/d4-protocol-encapsulation.png)
## Headers
| Name | bit size | Description |
|---------------|-----------|:----------------------------------------------------------------------:|
| version | uint 8 | Version of the header |
| type | uint 8 | Data encapsulated type |
| uuid | uint 128 | Sensor uuid |
| uuid | uint 128 | Sensor UUID |
| timestamp | uint 64 | Encapsulation time |
| hmac | uint 256 | Header authenticated header (HMAC-SHA-256-128) |
| hmac | uint 256 | Header authentication (HMAC-SHA-256-128) |
| size | uint 32 | Payload size |
## Type