SlideShare a Scribd company logo
1 of 16
Download to read offline
Troubleshoot Cloud Networking Like a Pro 
A. VM to VM flow (on same hosts) 
1. Check vm’s status on controller node 
 
2. Check vm’s port‐list. How to relate vm’s vNIC/eth0 to tap/qbr/rvb/qvo interface on host so we can 
check if packets are arriving there. 
 
3. Check vm’s instance name 
 
4. Check these instances are running on compute host 
 
5. Check tap/qbr/qvb/qvo details from the vm’s 
 
 
 
 
 
 
6. Check ifconfig with grep of first 11 port‐id on compute hosts (to verify all tap/qbr/qvb/qvo exists) 
 
 
7. Connect to vm’s (through horizon console) and check the ip addresses / mac addresses 
 
 
8. vm_1 (1.1.1.4) ping vm_2 (1.1.1.5) – both are on the same host. Our diagram will show us, vm_1’s 
vNIC  (eth0) will send packet out. So from vm_1 
 
9. So now if we start a ping from vm_1 (1.1.1.4) to vm_2 (1.1.1.5), we should be able to see the 
packets on both tap device and in the corresponding bridge via tcpdump: 
 
 
 
 
10. Now check the packets on ovs 
 
11. So packets are pushed from one port to another. Let’s check on vm_2 tap/qbr/qvb/qvo ports 
 
 
 
 
B. VM to VM flow (on different hosts)  
 
1. Check vm’s status on controller node 
 
2. Check vm’s port‐list. How to relate vm’s vNIC/eth0 to tap/qbr/rvb/qvo interface on host so we can 
check if packets are arriving there. 
 
3. Connect to vm’s (through horizon console) and check the ip addresses / mac addresses 
 
4. Check instance name, tap/qbr/qvb/qvo ports details and running on controller (our 2nd compute 
host) 
 
 
 
5. vm_1 (1.1.1.4) to ping vm_5(1.1.1.8) – they are on different hosts 
 
 
6. Packets are sent directly to eth2, I guess. 
 
 
 
7. tcpdump ‐i eth2 host 1.1.1.4 –ln 
 
8. On the other compute (host name is controller in this case), where vm_5 is, we can check the same 
points. 
 
 
 
 
 
C. VM to external flow  
 
1. vm_1 (1.1.1.4) has a floating IP associated. So vm_1 to ping internet 
 
2. Floating IP for vm_1:  10.118.47.180 
 
3. In this case, the packet goes out on the same path on the host where vm_1 is. No difference from 
2nd
 cases. The only point to note is, in this case, the packet will be sent to default gateway, which is 
1.1.1.1 
Let’s see what’s going on in the controller where the router is: Let ping the external router interface 
IP.  
 
 
 
 
 
4. Packet is sent to router namespace: 
 
5. Take 1st 11 character from gateway port (1.1.1.1) 
 
 
6. Tcpdump on network namespace 
 
 
 
7. Let’s check the NAT Rules in qrouter: (which will translate the private ip to floating ip) 
 
 
 
8. To be able to check the corresponding flow for this in OVS we need to know the MAC of associated 
floating IP. (get the 11 character from external gateway port) 
 
 
 
9. Using this MAC, lets dump ovs‐flows: 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
D.  
 
1. Working scenario 
root@controller:~/tmp# ./check.sh
Please enter valid VM Name or ID:vm_1
VM UUID is: 1ec57719-7d3a-4e4a-af5b-8074bb3b9429
VM Host is: compute
VM is attached to network: net_1
cffa93c1-2793-4862-86b8-c1de3eaaa5a6
VM's IP is: 1.1.1.4
VM Floating IP is: 10.118.47.180
VM is pingable from namespace
VM Neutron Port will have: 9409f1fe-47
tap9409f1fe-47
Namespace TAP is: tap305ee78c-83
Namespace IP is: 1.1.1.2
External VLAN for cffa93c1-2793-4862-86b8-c1de3eaaa5a6 Network
is: 2020
Internal VLAN for cffa93c1-2793-4862-86b8-c1de3eaaa5a6 Network
is: 1
NS TAP is: tap305ee78c-83
NS MAC is: fa:16:3e:d4:4d:7b
NS DPCTL Port is: 7
External Port is: 5
Packets sent out from NS, continuing analysis...
Check Source MAC
tmp_MAC_in_flow fa:16:3e:d4:4d:7b
Correct fa:16:3e:d4:4d:7b is seen
===> OVS Datapath Shows *correct* behavior:
ARP on VLAN [2020] is expected on port [7]
Checking Destination MAC is correct
Checking flow is using correct VLAN IDs and forwarding on correct
Port/s
Starting Packet Capture...
Packet Capture successful...
Starting packet capture analysis...
Checking if ICMP Request is egressing with right parameters
ICMP Request from 1.1.1.2 sent to 1.1.1.4 on VLAN 2020
Next Step: Check correct ICMP Reply is received
ICMP Reply from 1.1.1.4 to 1.1.1.2 received on VLAN 2020
root@controller:~/tmp#
2. Non‐working scenario (failure detected to send the packet towards vm_1) 
root@controller:~/tmp# ./check.sh
Please enter valid VM Name or ID:vm_1
VM UUID is: 1ec57719-7d3a-4e4a-af5b-8074bb3b9429
VM Host is: compute
VM is attached to network: net_1
cffa93c1-2793-4862-86b8-c1de3eaaa5a6
VM's IP is: 1.1.1.4
VM Floating IP is: 10.118.47.180
===>Error:
VM is NOT pingable from namespace
I'll try to find where the path is broken
VM Neutron Port will have: 9409f1fe-47
tap9409f1fe-47
Namespace TAP is: tap305ee78c-83
Namespace IP is: 1.1.1.2
External VLAN for cffa93c1-2793-4862-86b8-c1de3eaaa5a6 Network
is: 2020
Internal VLAN for cffa93c1-2793-4862-86b8-c1de3eaaa5a6 Network
is: 1
NS TAP is: tap305ee78c-83
NS MAC is: fa:16:3e:d4:4d:7b
NS DPCTL Port is: 7
External Port is: 5
Packets sent out from NS, continuing analysis...
Check Source MAC
tmp_MAC_in_flow fa:16:3e:d4:4d:7b
Correct fa:16:3e:d4:4d:7b is seen
===> OVS Datapath Shows *correct* behavior:
ARP on VLAN [2020] will be sent on port [5]
Checking Destination MAC is correct
Checking flow is using correct VLAN IDs and forwarding on correct
Port/s
Starting Packet Capture...
===>Error:
No Packet is seen leaving host towards target VM
Check Interfaces and Ports
root@controller:~/tmp#
3. Non‐working scenario (failure detected to receive the packet from vm_1) 
root@controller:~/tmp# ./check.sh
Please enter valid VM Name or ID:vm_1
VM UUID is: 1ec57719-7d3a-4e4a-af5b-8074bb3b9429
VM Host is: compute
VM is attached to network: net_1
cffa93c1-2793-4862-86b8-c1de3eaaa5a6
VM's IP is: 1.1.1.4
VM Floating IP is: 10.118.47.180
===>Error:
VM is NOT pingable from namespace
I'll try to find where the path is broken
VM Neutron Port will have: 9409f1fe-47
tap9409f1fe-47
Namespace TAP is: tap305ee78c-83
Namespace IP is: 1.1.1.2
External VLAN for cffa93c1-2793-4862-86b8-c1de3eaaa5a6 Network
is: 2020
Internal VLAN for cffa93c1-2793-4862-86b8-c1de3eaaa5a6 Network
is: 1
NS TAP is: tap305ee78c-83
NS MAC is: fa:16:3e:d4:4d:7b
NS DPCTL Port is: 7
External Port is: 5
Packets sent out from NS, continuing analysis...
Check Source MAC
tmp_MAC_in_flow fa:16:3e:d4:4d:7b
Correct fa:16:3e:d4:4d:7b is seen
===> OVS Datapath Shows *correct* behavior:
ARP on VLAN [2020] will be sent on port [5]
Checking Destination MAC is correct
Checking flow is using correct VLAN IDs and forwarding on correct
Port/s
Starting Packet Capture...
Packet Capture successful...
Starting packet capture analysis...
Checking if ARP Request is egressing with right parameters
ARP Request from 1.1.1.2 broadcasted for 1.1.1.4 on VLAN 2020
Next Step: Check correct ARP Reply is received
===>ERROR:
ARP Request sent successfully but Reply is not recieved
Problem could be in ToR Switch or Compute Host
root@controller:~/tmp#

More Related Content

What's hot

Nmap flags table
Nmap flags tableNmap flags table
Nmap flags table
hughpearse
 
08 module interconnecting cisco router
08 module interconnecting cisco router08 module interconnecting cisco router
08 module interconnecting cisco router
Asif
 

What's hot (20)

Nmap not only a port scanner by ravi rajput comexpo security awareness meet
Nmap not only a port scanner by ravi rajput comexpo security awareness meet Nmap not only a port scanner by ravi rajput comexpo security awareness meet
Nmap not only a port scanner by ravi rajput comexpo security awareness meet
 
Beginner's Guide to the nmap Scripting Engine - Redspin Engineer, David Shaw
Beginner's Guide to the nmap Scripting Engine - Redspin Engineer, David ShawBeginner's Guide to the nmap Scripting Engine - Redspin Engineer, David Shaw
Beginner's Guide to the nmap Scripting Engine - Redspin Engineer, David Shaw
 
Nmap flags table
Nmap flags tableNmap flags table
Nmap flags table
 
08 module interconnecting cisco router
08 module interconnecting cisco router08 module interconnecting cisco router
08 module interconnecting cisco router
 
Network Mapper (NMAP)
Network Mapper (NMAP)Network Mapper (NMAP)
Network Mapper (NMAP)
 
Tendermint in a nutshell
Tendermint in a nutshellTendermint in a nutshell
Tendermint in a nutshell
 
Nmap
NmapNmap
Nmap
 
Tomasz P from Poland
Tomasz P from PolandTomasz P from Poland
Tomasz P from Poland
 
Nessus scan report using microsoft patchs scan policy - Tareq Hanaysha
Nessus scan report using microsoft patchs scan policy - Tareq HanayshaNessus scan report using microsoft patchs scan policy - Tareq Hanaysha
Nessus scan report using microsoft patchs scan policy - Tareq Hanaysha
 
Per tenant QoS enhancements in Openvswitch
Per tenant QoS enhancements in OpenvswitchPer tenant QoS enhancements in Openvswitch
Per tenant QoS enhancements in Openvswitch
 
Lab 4 marking
Lab 4 markingLab 4 marking
Lab 4 marking
 
Dynamic Port Scanning
Dynamic Port ScanningDynamic Port Scanning
Dynamic Port Scanning
 
Proactive monitoring with Monit
Proactive monitoring with MonitProactive monitoring with Monit
Proactive monitoring with Monit
 
Nmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumerationNmap Scripting Engine and http-enumeration
Nmap Scripting Engine and http-enumeration
 
04 18-2018--netcat port-80_blue
04 18-2018--netcat port-80_blue04 18-2018--netcat port-80_blue
04 18-2018--netcat port-80_blue
 
Tutorial of SF-TAP Flow Abstractor
Tutorial of SF-TAP Flow AbstractorTutorial of SF-TAP Flow Abstractor
Tutorial of SF-TAP Flow Abstractor
 
Live Streaming with Receiver-based Peer-division Multiplexing
Live Streaming with Receiver-based Peer-division Multiplexing Live Streaming with Receiver-based Peer-division Multiplexing
Live Streaming with Receiver-based Peer-division Multiplexing
 
Understanding NMAP
Understanding NMAPUnderstanding NMAP
Understanding NMAP
 
Nmap tutorial
Nmap tutorialNmap tutorial
Nmap tutorial
 
Nessus scan report using the defualt scan policy - Tareq Hanaysha
Nessus scan report using the defualt scan policy - Tareq HanayshaNessus scan report using the defualt scan policy - Tareq Hanaysha
Nessus scan report using the defualt scan policy - Tareq Hanaysha
 

Viewers also liked

Viewers also liked (8)

Vitrindeyiz Company Presentation
Vitrindeyiz Company PresentationVitrindeyiz Company Presentation
Vitrindeyiz Company Presentation
 
Weekly ambulance checklist
Weekly ambulance checklistWeekly ambulance checklist
Weekly ambulance checklist
 
Visual Merchandising 2020
Visual Merchandising 2020Visual Merchandising 2020
Visual Merchandising 2020
 
Retail Store Operations
Retail Store Operations Retail Store Operations
Retail Store Operations
 
Visplay - Visual Merchandising Guidelines
Visplay - Visual Merchandising GuidelinesVisplay - Visual Merchandising Guidelines
Visplay - Visual Merchandising Guidelines
 
Vm training manual
Vm training manualVm training manual
Vm training manual
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
 

Similar to Troubleshoot cloud networking like a pro

Figure 3 TCP Session Hijacking Attack victims to execute the mali.pdf
Figure 3 TCP Session Hijacking Attack victims to execute the mali.pdfFigure 3 TCP Session Hijacking Attack victims to execute the mali.pdf
Figure 3 TCP Session Hijacking Attack victims to execute the mali.pdf
orderfabfirki
 
Packet sniffing in switched LANs
Packet sniffing in switched LANsPacket sniffing in switched LANs
Packet sniffing in switched LANs
Ishraq Al Fataftah
 

Similar to Troubleshoot cloud networking like a pro (20)

Figure 3 TCP Session Hijacking Attack victims to execute the mali.pdf
Figure 3 TCP Session Hijacking Attack victims to execute the mali.pdfFigure 3 TCP Session Hijacking Attack victims to execute the mali.pdf
Figure 3 TCP Session Hijacking Attack victims to execute the mali.pdf
 
Xpress path vxlan_bgp_evpn_appricot2019-v2_
Xpress path vxlan_bgp_evpn_appricot2019-v2_Xpress path vxlan_bgp_evpn_appricot2019-v2_
Xpress path vxlan_bgp_evpn_appricot2019-v2_
 
Secure LXC Networking
Secure LXC NetworkingSecure LXC Networking
Secure LXC Networking
 
Make container without_docker_6-overlay-network_1
Make container without_docker_6-overlay-network_1 Make container without_docker_6-overlay-network_1
Make container without_docker_6-overlay-network_1
 
Using metasploit
Using metasploitUsing metasploit
Using metasploit
 
VLAN
VLANVLAN
VLAN
 
Nova HA
Nova HANova HA
Nova HA
 
VXLAN BGP EVPN: Technology Building Blocks
VXLAN BGP EVPN: Technology Building BlocksVXLAN BGP EVPN: Technology Building Blocks
VXLAN BGP EVPN: Technology Building Blocks
 
Packet sniffingin switch lans
Packet sniffingin switch lansPacket sniffingin switch lans
Packet sniffingin switch lans
 
Et4045-3-attacks-2
Et4045-3-attacks-2Et4045-3-attacks-2
Et4045-3-attacks-2
 
Packet sniffing in switched LANs
Packet sniffing in switched LANsPacket sniffing in switched LANs
Packet sniffing in switched LANs
 
Vpc notes
Vpc notesVpc notes
Vpc notes
 
6. hands on - open mano demonstration in remote pool of servers
6. hands on - open mano demonstration in remote pool of servers6. hands on - open mano demonstration in remote pool of servers
6. hands on - open mano demonstration in remote pool of servers
 
Nexus 1000v part ii
Nexus 1000v part iiNexus 1000v part ii
Nexus 1000v part ii
 
Nmap Hacking Guide
Nmap Hacking GuideNmap Hacking Guide
Nmap Hacking Guide
 
VXLAN Integration with CloudStack Advanced Zone
VXLAN Integration with CloudStack Advanced ZoneVXLAN Integration with CloudStack Advanced Zone
VXLAN Integration with CloudStack Advanced Zone
 
Ch6
Ch6Ch6
Ch6
 
Switch security
Switch securitySwitch security
Switch security
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking Explained
 
APNIC Hackathon IPv4 & IPv6 security & threat comparisons
APNIC Hackathon IPv4 & IPv6 security & threat comparisonsAPNIC Hackathon IPv4 & IPv6 security & threat comparisons
APNIC Hackathon IPv4 & IPv6 security & threat comparisons
 

Recently uploaded

Recently uploaded (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 

Troubleshoot cloud networking like a pro