tunneling: Vanilla OVS decapsulation tests
[vswitchperf.git] / conf / integration / 03_traffic.conf
1 # Copyright 2015-2016 Intel Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #   http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # For OP2P deployment scenario
16 TRAFFICGEN_PORT1_MAC = '02:00:00:00:00:01'
17 TRAFFICGEN_PORT2_MAC = '02:00:00:00:00:02'
18 TRAFFICGEN_PORT1_IP = '1.1.1.1'
19 TRAFFICGEN_PORT2_IP = '90.90.90.90'
20
21 # To test VXLAN set the ff to ixnetrfc2544v2.tcl
22 TRAFFICGEN_IXNET_TCL_SCRIPT = 'ixnetrfc2544v2.tcl'
23
24 # VXLAN traffic item
25
26 VXLAN_VNI = '99'
27 # TEST frame
28 # dstmac should be set to the MAC address of the DUT's receiving port
29 #VXLAN_FRAME_L2 = {'srcmac':
30 #                  '01:02:03:04:05:06',
31 #                  'dstmac':
32 #                  '00:1b:21:b3:48:a9'}
33
34 VXLAN_FRAME_L2 = {'srcmac': '01:02:03:04:05:06',
35                   'dstmac': DUT_NIC2_MAC,
36                  }
37
38 # VXLAN is supported both in IxNetwork and IXIA IxExplorer
39 # FOR IXIA IxExplorer - VXLAN INNER FRAME
40 # The following lines can be removed if IXIA support will be dropped:
41 # 'protocolpad': 'true',
42 # 'protocolpadbytes':
43 # '080000000000630006050403020101020304050608004500002e000000004011095bc0a' \
44 # '8000ac0a8f0090bb80bb9001a2e93000102030405060708090a0b0c0d0e0f1011',
45 # protocolpadbytes contains the following values:
46 # VxLAN header with VNI 99 (0x63)
47 # Inner SRC 01:02:03:04:05:06
48 # Inner DST 06:05:04:03:02:01
49 # IP SRC 192.168.0.2
50 # IP DST 192.168.240.9
51 # SRC port 3000 (0x0BB8)
52 # DST port 3001 (0x0BB9)
53 # length 26
54 # UDP Checksum 0x2E93
55
56 VXLAN_FRAME_L3 = {'proto': 'udp',
57                   'packetsize': 64,
58                   'srcip': TRAFFICGEN_PORT1_IP,
59                   'dstip': '192.168.240.1',
60                  }
61
62 VXLAN_FRAME_L4 = {'srcport': 4789,
63                   'dstport': 4789,
64                   'vni': VXLAN_VNI,
65                   'inner_srcmac': '01:02:03:04:05:06',
66                   'inner_dstmac': '06:05:04:03:02:01',
67                   'inner_srcip': '192.168.0.10',
68                   'inner_dstip': '192.168.240.9',
69                   'inner_proto': 'udp',
70                   'inner_srcport': 3000,
71                   'inner_dstport': 3001,
72                  }
73
74 # TEST frame
75 # dstmac should be set to the MAC address of the DUT's receiving port
76 GRE_FRAME_L2 = {'srcmac': '01:02:03:04:05:06',
77                 'dstmac': DUT_NIC2_MAC,
78                }
79
80 GRE_FRAME_L3 = {'proto': 'gre',
81                 'packetsize': 64,
82                 'srcip': TRAFFICGEN_PORT1_IP,
83                 'dstip': '192.168.240.1',
84                }
85
86 GRE_FRAME_L4 = {'srcport': 0,
87                 'dstport': 0,
88                 'inner_srcmac': '01:02:03:04:05:06',
89                 'inner_dstmac': '06:05:04:03:02:01',
90                 'inner_srcip': '192.168.0.10',
91                 'inner_dstip': '192.168.240.9',
92                 'inner_proto': 'udp',
93                 'inner_srcport': 3000,
94                 'inner_dstport': 3001,
95                }
96
97
98 # TEST frame
99 # dstmac should be set to the MAC address of the DUT's receiving port
100 GENEVE_FRAME_L2 = {'srcmac': '01:02:03:04:05:06',
101                    'dstmac': DUT_NIC2_MAC,
102                   }
103
104 GENEVE_FRAME_L3 = {'proto': 'udp',
105                    'packetsize': 64,
106                    'srcip': TRAFFICGEN_PORT1_IP,
107                    'dstip': '192.168.240.1',
108                   }
109
110 # UDP source/destination port (OUTER FRAME)
111 # Variables with prefix inner_ are for the
112 # INNER_FRAME
113 GENEVE_FRAME_L4 = {'srcport': 6081,
114                    'dstport': 6081,
115                    'geneve_vni': 0,
116                    'inner_srcmac': '01:02:03:04:05:06',
117                    'inner_dstmac': '06:05:04:03:02:01',
118                    'inner_srcip': '192.168.0.10',
119                    'inner_dstip': '192.168.240.9',
120                    'inner_proto': 'udp',
121                    'inner_srcport': 3000,
122                    'inner_dstport': 3001,
123                   }