2 Documentation Deep inspection of HTTP traffic on asymmetric chain.
3 ... Nodes are located on the same VM.
5 Resource ../../../../../libraries/GBP/OpenFlowUtils.robot
6 Resource ../../../../../libraries/GBP/ConnUtils.robot
7 Resource ../Variables.robot
8 Resource ../Connections.robot
9 Suite Setup Start Connections
10 Suite Teardown Close Connections
16 Start HTTP on h36_2 on Port 80
17 [Documentation] Starting HTTP service on docker container.
18 Set Test Variables client_name=h35_2 client_ip=10.0.35.2 server_name=h36_2 server_ip=10.0.36.2
19 ... service_port=80 ether_type=0x0800 proto=6 vxlan_gpe_port=2
20 Switch Connection GPSFC1_CONNECTION
21 Start HTTP Service on Docker ${SERVER_NAME} ${SERVICE_PORT}
24 [Documentation] Test HTTP request from a docker container to serving docker container.
25 Curl from Docker ${CLIENT_NAME} ${SERVER_IP} ${SERVICE_PORT}
27 Start Endless Curl on h35_2 on port 80
28 [Documentation] Starting endless HTTP session for traffic inspection.
29 Start Endless Curl from Docker ${CLIENT_NAME} ${SERVER_IP} ${SERVICE_PORT} sleep=1
31 On GBPSFC1 Send HTTP req h35_2-h36_2 to GBPSFC2
32 [Documentation] HTTP traffic inspection.
33 Switch Connection GPSFC1_CONNECTION
34 ${flow} Inspect Classifier Outbound in_port=4 out_port=${VXLAN_GPE_PORT} eth_type=${ETHER_TYPE} inner_src_ip=${CLIENT_IP}
35 ... inner_dst_ip=${SERVER_IP} next_hop_ip=${GBPSFC2} nsi=255 proto=${PROTO} dst_port=${SERVICE_PORT}
36 ${nsp_35_2-nsp_36_2} GET NSP Value From Flow ${flow}
37 Set Global Variable ${NSP} ${nsp_35_2-nsp_36_2}
39 On GBPSFC2 Send HTTP req h35_2-h36_2 to GBPSFC3
40 [Documentation] HTTP traffic inspection.
41 Switch Connection GPSFC2_CONNECTION
42 Inspect Service Function Forwarder in_port=${VXLAN_GPE_PORT} out_port=${VXLAN_GPE_PORT} outer_src_ip=${GBPSFC1} outer_dst_ip=${GBPSFC2} eth_type=${ETHER_TYPE}
43 ... inner_src_ip=${CLIENT_IP} inner_dst_ip=${SERVER_IP} next_hop_ip=${GBPSFC3} nsp=${NSP} nsi=255 proto=${PROTO}
45 On GBPSFC3 Send HTTP req h35_2-h36_2 to GBPSFC2
46 [Documentation] HTTP traffic inspection.
47 Switch Connection GPSFC3_CONNECTION
48 Inspect Service Function in_port=${VXLAN_GPE_PORT} out_port=${VXLAN_GPE_PORT} outer_src_ip=${GBPSFC2} outer_dst_ip=${GBPSFC3} eth_type=${ETHER_TYPE}
49 ... inner_src_ip=${CLIENT_IP} inner_dst_ip=${SERVER_IP} next_hop_ip=${GBPSFC2} nsp=${NSP} received_nsi=255
51 On GBPSFC2 Send HTTP req h35_2-h36_2 to GBPSFC4
52 [Documentation] HTTP traffic inspection.
53 Switch Connection GPSFC2_CONNECTION
54 Inspect Service Function Forwarder in_port=${VXLAN_GPE_PORT} out_port=${VXLAN_GPE_PORT} outer_src_ip=${GBPSFC3} outer_dst_ip=${GBPSFC2} eth_type=${ETHER_TYPE}
55 ... inner_src_ip=${CLIENT_IP} inner_dst_ip=${SERVER_IP} next_hop_ip=${GBPSFC4} nsp=${NSP} nsi=254 proto=${PROTO}
57 On GBPSFC4 Send HTTP req h35_2-h36_2 to GBPSFC5
58 [Documentation] HTTP traffic inspection.
59 Switch Connection GPSFC4_CONNECTION
60 Inspect Service Function Forwarder in_port=${VXLAN_GPE_PORT} out_port=${VXLAN_GPE_PORT} outer_src_ip=${GBPSFC2} outer_dst_ip=${GBPSFC4} eth_type=${ETHER_TYPE}
61 ... inner_src_ip=${CLIENT_IP} inner_dst_ip=${SERVER_IP} next_hop_ip=${GBPSFC5} nsp=${NSP} nsi=254 proto=${PROTO}
63 On GBPSFC5 Send HTTP req h35_2-h36_2 to GBPSFC4
64 [Documentation] HTTP traffic inspection.
65 Switch Connection GPSFC5_CONNECTION
66 Inspect Service Function in_port=${VXLAN_GPE_PORT} out_port=${VXLAN_GPE_PORT} outer_src_ip=${GBPSFC4} outer_dst_ip=${GBPSFC5} eth_type=${ETHER_TYPE}
67 ... inner_src_ip=${CLIENT_IP} inner_dst_ip=${SERVER_IP} next_hop_ip=${GBPSFC4} nsp=${NSP} received_nsi=254
69 On GBPSFC4 Send HTTP req h35_2-h36_2 to GBPSFC1
70 [Documentation] HTTP traffic inspection.
71 Switch Connection GPSFC4_CONNECTION
72 Inspect Service Function Forwarder in_port=${VXLAN_GPE_PORT} out_port=${VXLAN_GPE_PORT} outer_src_ip=${GBPSFC5} outer_dst_ip=${GBPSFC4} eth_type=${ETHER_TYPE}
73 ... inner_src_ip=${CLIENT_IP} inner_dst_ip=${SERVER_IP} next_hop_ip=${GBPSFC1} nsp=${NSP} nsi=253 proto=${PROTO}
75 On GBPSFC1 Send HTTP req h35_2-h36_2 to h36_2
76 [Documentation] HTTP traffic inspection.
77 Switch Connection GPSFC1_CONNECTION
78 Inspect Classifier Inbound in_port=${VXLAN_GPE_PORT} out_port=6 eth_type=${ETHER_TYPE} inner_src_ip=${CLIENT_IP} inner_dst_ip=${SERVER_IP}
79 ... outer_src_ip=${GBPSFC4} outer_dst_ip=${GBPSFC1} nsp=${NSP} nsi=253 proto=${PROTO}
81 On GBPSFC1 Send HTTP resp h36_2-h35_2 to h35_2
82 [Documentation] HTTP traffic inspection.
83 Switch Connection GPSFC1_CONNECTION
84 ${flow} Inspect Classifier Outbound in_port=6 out_port=4 eth_type=${ETHER_TYPE} inner_src_ip=${SERVER_IP}
85 ... inner_dst_ip=${CLIENT_IP} proto=${PROTO} src_port=${SERVICE_PORT}
87 Stop Endless Curl on h36_2 on port 80
88 [Documentation] Stopping endless HTTP session after traffic inspection finishes.
89 Stop Endless Curl from Docker ${CLIENT_NAME}
91 Stop HTTP on h36_2 on Port 80
92 [Documentation] Stopping HTTP service on the docker container.
93 Stop HTTP Service on Docker ${SERVER_NAME}