Payload (payload)
- Layer: Payload
- Header: variable length
- Generator: built-in payload generator (the fields below are parameters, not wire fields)
- Notes: CLNP / ES-IS (P2), MACsec / GTPv2-C / Diameter / SIP / RTP (P2)
Reached from
No protocol of the catalog leads here: use it as the first layer or stack it explicitly.
Parameters
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
mode | enum(8) | 0 (fixed) | How the payload is generated: fixed (data as given), pattern (data repeated to length), random (length octets from seed) or counter (data with a per-packet counter embedded). | |
data | bytes — rest of the PDU | "" | Payload octets; in fixed mode cut or zero-extended to length when length is non-zero, in pattern mode the repeated unit (empty = 00 01 02 …). | |
length | uint(32) | 0 | Payload length in octets; 0 keeps the length of data (fixed / counter mode). | |
seed | uint(64) | 0 | Seed of the pseudo-random generator in random mode. | |
counter_offset | uint(32) | 0 | Octet offset of the embedded counter in counter mode. | |
counter_width | enum(8) | 4 (u32) | Width of the embedded counter: 4 or 8 octets, big endian. | |
counter_value | uint(64) | 0 | Counter value written per packet by the stream expander (counter mode). |
mode
| Value | Name |
|---|---|
| 0 (0x00) | fixed |
| 1 (0x01) | pattern |
| 2 (0x02) | random |
| 3 (0x03) | counter |
counter_width
| Value | Name |
|---|---|
| 4 (0x04) | u32 |
| 8 (0x08) | u64 |
Sample templates
- eth-ii-frame —
templates/protocols/l2/ethernet2.wpg.yaml - clnp-dt —
templates/protocols/l3/clnp-dt.wpg.yaml - ipv4-fragments —
templates/protocols/l3/ipv4-fragment.wpg.yaml - tcp-data-psh-ack —
templates/protocols/l4/tcp-data.wpg.yaml - payload-counter —
templates/protocols/payload/payload-counter.wpg.yaml - payload-fixed —
templates/protocols/payload/payload-fixed.wpg.yaml - payload-pattern —
templates/protocols/payload/payload-pattern.wpg.yaml - payload-random —
templates/protocols/payload/payload-random.wpg.yaml - scenario-frame-size-sweep —
templates/scenarios/frame-size-sweep.wpg.yaml - scenario-jumbo-udp-mtu-probe —
templates/scenarios/jumbo-udp-mtu-probe.wpg.yaml - scenario-ping-sweep-pattern —
templates/scenarios/ping-sweep-pattern.wpg.yaml