add: [format] brainstorm discussion

master
Alexandre Dulaunoy 2018-11-26 14:09:35 +01:00
parent f7c89bfab7
commit 08153cede0
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 20 additions and 0 deletions

20
format/README.md Normal file
View File

@ -0,0 +1,20 @@
# D4 encapsulation protocol (DRAFT)
## Headers
| Name | bit size | Description |
|---------------|-----------|:----------------------------------------------------------------------:|
| type | uint 8 | Data encapsulated type |
| uuid | uint 128 | Sensor uuid |
| timestamp | uint 64 | Encapsulation time |
| hmac | uint 256 | Header authenticated header (HMAC-SHA-256-128) |
| size | uint 32 | Payload size |
## Type
|Type| Description |
|----|:------------|
| 0 | Reserved |
| 1 | pcap |
| 2 | meta header (JSON)|