aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/l2tp/encap.c
AgeCommit message (Expand)AuthorFilesLines
2020-09-21misc: Move l2tp to pluginNeale Ranns1-0/+235
on value='oper-rls2402-240219'>oper-rls2402-240219 Integration testsGrokmirror user
aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/methodology/test/packet_flow_ordering.md
blob: c2c87038d49e41b84762b46dee922ee4825d726c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: "Packet Flow Ordering"
weight: 2
---

# Packet Flow Ordering

TRex Traffic Generator (TG) supports two main ways how to cover
address space (on allowed ranges) in scale tests.

In most cases only one field value (e.g. IPv4 destination address) is
altered, in some cases two fields (e.g. IPv4 destination address and UDP
destination port) are altered.

## Incremental Ordering

This case is simpler to implement and offers greater control.

When changing two fields, they can be incremented synchronously, or one
after another. In the latter case we can specify which one is
incremented each iteration and which is incremented by "carrying over"
only when the other "wraps around". This way also visits all
combinations once before the "carry" field also wraps around.

It is possible to use increments other than 1.

## Randomized Ordering

This case chooses each field value at random (from the allowed range).
In case of two fields, they are treated independently.
TRex allows to set random seed to get deterministic numbers.
We use a different seed for each field and traffic direction.
The seed has to be a non-zero number, we use 1, 2, 3, and so on.

The seeded random mode in TRex requires a "limit" value,
which acts as a cycle length limit (after this many iterations,
the seed resets to its initial value).
We use the maximal allowed limit value (computed as 2^24 - 1).

Randomized profiles do not avoid duplicated values,
and do not guarantee each possible value is visited,
so it is not very useful for stateful tests.