summaryrefslogtreecommitdiffstats
path: root/scripts/stl/yaml/imix_3pkt_vm.yaml
blob: 3e7cd0ed22f6a4da3f9707f6f3ea909d66e552ef (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
### Three-stream UDP packets, 64B, 594B and 1518B ###
#####################################################
- name: udp_64B
  stream:
    self_start: True
    packet:
      pcap: udp_64B_no_crc.pcap  # pcap should not include CRC
    mode:
      type: single_burst
      total_pkts: 100
      pps: 100

    vm:
      instructions: [
               {
                  "init_value" : 100,
                  "max_value" : 5000,
                  "min_value" : 100,
                  "name" : "l3_src",
                  "op" : "inc",
                  "size" : 2,
                  "step" : 1,
                  "type" : "flow_var"
               },
               {
                  "add_value" : 1,
                  "is_big_endian" : true,
                  "name" : "l3_src",
                  "pkt_offset" : 34,
                  "type" : "write_flow_var"
               }
                    ]
      split_by_var: "l3_src"

- name: udp_594B
  stream:
    isg: 50.0
    self_start: True
    packet:
      pcap: udp_594B_no_crc.pcap  # pcap should not include CRC
    mode:
      type: continuous
      pps: 20
    vm:
      instructions: [
               {
                  "init_value" : 100,
                  "max_value" : 5000,
                  "min_value" : 100,
                  "name" : "l3_src",
                  "op" : "inc",
                  "size" : 2,
                  "step" : 1,
                  "type" : "flow_var"
               },
               {
                  "add_value" : 1,
                  "is_big_endian" : true,
                  "name" : "l3_src",
                  "pkt_offset" : 34,
                  "type" : "write_flow_var"
               }
                    ]
      split_by_var: "l3_src"

- name: udp_1518B
  stream:
    isg: 100.0
    self_start: True
    packet:
      pcap: udp_1518B_no_crc.pcap # pcap should not include CRC
    mode:
      type: single_burst
      total_pkts: 100
      pps: 4
    vm:
      instructions: [
               {
                  "init_value" : 100,
                  "max_value" : 5000,
                  "min_value" : 100,
                  "name" : "l3_src",
                  "op" : "inc",
                  "size" : 2,
                  "step" : 1,
                  "type" : "flow_var"
               },
               {
                  "add_value" : 1,
                  "is_big_endian" : true,
                  "name" : "l3_src",
                  "pkt_offset" : 34,
                  "type" : "write_flow_var"
               }
                    ]
      split_by_var: "l3_src"