wire / wire-format / infiniband-grh
The InfiniBand GRH (Global Route Header) is a 40-byte header for routed packets (between subnets). Fields: IP version (4 bits), traffic class (8), flow label (20), payload length (16), next header (8), hop limit (8), source GID (16 bytes), destination GID (16 bytes).
aka: InfiniBand Global Route Header (GRH)
spec: InfiniBand Architecture Specification
The InfiniBand GRH (Global Route Header) is a 40-byte header for routed packets (between subnets). Fields: IP version (4 bits), traffic class (8), flow label (20), payload length (16), next header (8), hop limit (8), source GID (16 bytes), destination GID (16 bytes).
| field | size | meaning |
|---|---|---|
| IP version | 4 bits | Always 6 (IPv6-style). |
| Traffic class | 8 bits | Traffic class (like IPv6). |
| Flow label | 20 bits | Flow label (like IPv6). |
| Payload length | 2 bytes (uint16) | Length of the payload (including the InfiniBand headers). |
| Next header | 1 byte | Next header type (e.g., 0x1B for BTH). |
| Hop limit | 1 byte | Hop limit (decremented per hop). |
| Source GID | 16 bytes | Source Global Identifier (GUID + subnet prefix). |
| Destination GID | 16 bytes | Destination Global Identifier. |
example:
60 00 00 00 00 00 1b 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
InfiniBand GRH: version 6, next header 0x1B (BTH), hop limit 64
agent: curl -H 'accept: application/json' wire.phall.io/wire-format/infiniband-grh
or /wire-format/infiniband-grh.json