documentation: Installation prerequisites
[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 # VXLAN traffic item
22
23 VXLAN_VNI = '99'
24 # TEST frame
25 # dstmac should be set to the MAC address of the DUT's receiving port
26 #VXLAN_FRAME_L2 = {'srcmac':
27 #                  '01:02:03:04:05:06',
28 #                  'dstmac':
29 #                  '00:1b:21:b3:48:a9'}
30
31 VXLAN_FRAME_L2 = {'srcmac': '01:02:03:04:05:06',
32                   'dstmac': '06:05:04:03:02:01',
33                  }
34
35 # VXLAN is supported both in IxNetwork and IXIA IxExplorer
36 # FOR IXIA IxExplorer - VXLAN INNER FRAME
37 # The following lines can be removed if IXIA support will be dropped:
38 # 'protocolpad': 'true',
39 # 'protocolpadbytes':
40 # '080000000000630006050403020101020304050608004500002e000000004011095bc0a' \
41 # '8000ac0a8f0090bb80bb9001a2e93000102030405060708090a0b0c0d0e0f1011',
42 # protocolpadbytes contains the following values:
43 # VxLAN header with VNI 99 (0x63)
44 # Inner SRC 01:02:03:04:05:06
45 # Inner DST 06:05:04:03:02:01
46 # IP SRC 192.168.0.2
47 # IP DST 192.168.240.9
48 # SRC port 3000 (0x0BB8)
49 # DST port 3001 (0x0BB9)
50 # length 26
51 # UDP Checksum 0x2E93
52
53 VXLAN_FRAME_L3 = {'proto': 'udp',
54                   'packetsize': 64,
55                   'srcip': TRAFFICGEN_PORT1_IP,
56                   'dstip': '192.168.240.1',
57                  }
58
59 VXLAN_FRAME_L4 = {'srcport': 4789,
60                   'dstport': 4789,
61                   'vni': VXLAN_VNI,
62                   'inner_srcmac': '01:02:03:04:05:06',
63                   'inner_dstmac': '06:05:04:03:02:01',
64                   'inner_srcip': '192.168.0.10',
65                   'inner_dstip': '192.168.240.9',
66                   'inner_proto': 'udp',
67                   'inner_srcport': 3000,
68                   'inner_dstport': 3001,
69                  }
70
71 # TEST frame
72 # dstmac should be set to the MAC address of the DUT's receiving port
73 GRE_FRAME_L2 = {'srcmac': '01:02:03:04:05:06',
74                 'dstmac': '06:05:04:03:02:01',
75                }
76
77 GRE_FRAME_L3 = {'proto': 'gre',
78                 'packetsize': 64,
79                 'srcip': TRAFFICGEN_PORT1_IP,
80                 'dstip': '192.168.240.1',
81                }
82
83 GRE_FRAME_L4 = {'srcport': 0,
84                 'dstport': 0,
85                 'inner_srcmac': '01:02:03:04:05:06',
86                 'inner_dstmac': '06:05:04:03:02:01',
87                 'inner_srcip': '192.168.0.10',
88                 'inner_dstip': '192.168.240.9',
89                 'inner_proto': 'udp',
90                 'inner_srcport': 3000,
91                 'inner_dstport': 3001,
92                }
93
94
95 # TEST frame
96 # dstmac should be set to the MAC address of the DUT's receiving port
97 GENEVE_FRAME_L2 = {'srcmac': '01:02:03:04:05:06',
98                    'dstmac': '06:05:04:03:02:01',
99                   }
100
101 GENEVE_FRAME_L3 = {'proto': 'udp',
102                    'packetsize': 64,
103                    'srcip': TRAFFICGEN_PORT1_IP,
104                    'dstip': '192.168.240.1',
105                   }
106
107 # UDP source/destination port (OUTER FRAME)
108 # Variables with prefix inner_ are for the
109 # INNER_FRAME
110 GENEVE_FRAME_L4 = {'srcport': 6081,
111                    'dstport': 6081,
112                    'geneve_vni': 0,
113                    'inner_srcmac': '01:02:03:04:05:06',
114                    'inner_dstmac': '06:05:04:03:02:01',
115                    'inner_srcip': '192.168.0.10',
116                    'inner_dstip': '192.168.240.9',
117                    'inner_proto': 'udp',
118                    'inner_srcport': 3000,
119                    'inner_dstport': 3001,
120                   }