Skip to content

Commit e45d8ea

Browse files
hubble: add support for SCTP metrics
SCTP manages connection state using Chunk Types. SCTP Chunk Types are transmitted in the payload, not in the header. Currently, Cilium controls the amount of payload to extract using TracePayloadLen. Because of this, there are limitations in fully parsing SCTP Chunk Types. This commit adds support, based on the RFC, for Chunk Types that must appear first. Among them, SHUTDOWN is an exception: it may be transmitted together with a DATA chunk and therefore can be missed.
1 parent f0fecfd commit e45d8ea

8 files changed

Lines changed: 599 additions & 184 deletions

File tree

api/v1/flow/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
- [IPVersion](#flow-IPVersion)
6161
- [L7FlowType](#flow-L7FlowType)
6262
- [LostEventSource](#flow-LostEventSource)
63+
- [SCTPChunkType](#flow-SCTPChunkType)
6364
- [SocketTranslationPoint](#flow-SocketTranslationPoint)
6465
- [TraceObservationPoint](#flow-TraceObservationPoint)
6566
- [TraceReason](#flow-TraceReason)
@@ -728,6 +729,7 @@ that happened before the events were captured by Hubble.
728729
| ----- | ---- | ----- | ----------- |
729730
| source_port | [uint32](#uint32) | | |
730731
| destination_port | [uint32](#uint32) | | |
732+
| chunk_type | [SCTPChunkType](#flow-SCTPChunkType) | | |
731733

732734

733735

@@ -1250,6 +1252,23 @@ This enum corresponds to Cilium's L7 accesslog [FlowType](https://github.com
12501252

12511253

12521254

1255+
<a name="flow-SCTPChunkType"></a>
1256+
1257+
### SCTPChunkType
1258+
1259+
1260+
| Name | Number | Description |
1261+
| ---- | ------ | ----------- |
1262+
| UNSUPPORTED | 0 | |
1263+
| INIT | 1 | |
1264+
| INIT_ACK | 2 | |
1265+
| SHUTDOWN | 3 | |
1266+
| SHUTDOWN_ACK | 4 | |
1267+
| SHUTDOWN_COMPLETE | 5 | |
1268+
| ABORT | 6 | |
1269+
1270+
1271+
12531272
<a name="flow-SocketTranslationPoint"></a>
12541273

12551274
### SocketTranslationPoint

0 commit comments

Comments
 (0)