/mbm

Primary LanguageC++Apache License 2.0Apache-2.0

mbm

Build Status

wire protocol

diagram

Wire Protocol

structures

Config

offset (bytes)field accepted values width
0 test protocol 0 (TCP), 1 (UDP)32-bit
4 bit rate kbits/s0 - INT_MAX-1 32-bit
8 loss threshold 0.0 - 1.0 64-bit

Port

offset (bytes)field accepted valueswidth
0 test port0 - 65535 16-bit

Ready

offset (bytes)fieldaccepted valueswidth
0 ready"READY" 30-bit

Chunk length

offset (bytes)field accepted valueswidth
0 chunk length0 - INT_MAX-1 32-bit

Data

offset (bytes)field accepted valueswidth
0 sequence number0 - INT_MAX-1 32-bit
4 padding * chunk length - 32-bit

Result

offset (bytes)field accepted values width
0 result0 (FAIL), 1 (PASS), 2 (INCONCLUSIVE), 3 (ERROR)32-bit