Using OCI Network Path Analyser with On-Premises end-points

From Iwan
Jump to: navigation, search


OCI Network Path Analyser is a diagnostic tool provided by Oracle Cloud Infrastructure (OCI) to help users troubleshoot and optimize network paths within their cloud environments. OCI Network Path Analyser with On-Premises end-points extends the capabilities of the OCI Network Path Analyser to include analysis of network paths that start or end in an on-premises environment.

This tutorial will show you different scenarios of how this OCI Network Path Analyser with On-Premises end-point enabled and disabled.

96ccd7695e484aea6c3017d9458dacf4.png

OCI Network Path Analyser (NPA)

OCI Network Path Analyser is a diagnostic tool provided by Oracle Cloud Infrastructure (OCI) to help users troubleshoot and optimize network paths within their cloud environments. This tool is handy for identifying potential network issues, understanding the performance of network paths, and ensuring that the network configurations align with best practices and operational requirements.

Key Features and Capabilities

1. End-to-End Path Analysis: The Network Path Analyser can trace the complete path between two points in your network, such as between instances, subnets, or across VCNs (Virtual Cloud Networks). This helps in understanding the route traffic takes and identifying any potential bottlenecks or misconfigurations.
2. Network Hop Visibility: It provides detailed visibility into each hop along the network path, including details like latency, packet loss, and the status of each hop. This helps in pinpointing where issues may be occurring.
3. Performance Metrics: Users can view performance metrics for each segment of the path, which aids in diagnosing performance-related issues and ensuring that the network is performing optimally.
4. Configuration Validation: The tool can validate network configurations against OCI best practices, helping to identify misconfigurations that could lead to network performance issues or failures.
5. Security Group and Route Table Analysis: It analyzes security group rules and route tables that affect the network path, providing insights into whether the correct rules and routes are in place for the desired traffic flow.
6. Troubleshooting Assistance: By identifying and highlighting problem areas in the network path, the Network Path Analyser aids in faster troubleshooting and resolution of network issues.

Use Cases

- Network Troubleshooting: Quickly identify where network issues are occurring and understand the root cause.
- Performance Optimisation: Ensure that your network paths are configured for optimal performance by analyzing latency and packet loss.
- Configuration Audits: Regularly check your network configurations to ensure they align with OCI best practices and operational requirements.
- Security Validation: Verify that security group rules and route tables are correctly configured to allow or deny the intended traffic.

How It Works

- Initiation: Users can initiate the network path analysis from the OCI console by specifying the source (an on-premises endpoint) and the destination (within OCI or another on-premises location).

- Path Mapping: The tool maps out the entire network path, including OCI components (VCNs, subnets, etc.) and on-premises network components (routers, switches, firewalls, etc.).

- Data Collection and Analysis: Collects performance metrics and configuration data at each hop along the path, providing detailed insights into each segment.

- Visualization and Reporting: Presents the analyzed data in a user-friendly interface, often with visual representations of the network path, performance metrics, and configuration status.

Benefits

- Improved Visibility: Gain deep visibility into your network paths within OCI.
- Enhanced Performance: Optimize network performance by identifying and resolving issues.
- Increased Security: Ensure that your network security configurations are correctly implemented and effective.
- Efficient Troubleshooting: Reduce the time and effort needed to diagnose and fix network problems.

OCI Network Path Analyser is a powerful tool for any organization using Oracle Cloud Infrastructure, helping to maintain a robust, efficient, and secure cloud network environment.

NPA with On-Premises end-points

OCI Network Path Analyser with On-Premises end-points extends the capabilities of the OCI Network Path Analyser to include analysis of network paths that start or end in an on-premises environment. This integration is particularly beneficial for hybrid cloud architectures where resources are spread across both on-premises data centers and Oracle Cloud Infrastructure (OCI).

The testing scenarios

Initial Architecture

The initial network architecture that I will use for testing is an OCI environment with two VCNs and an ON-PREM environment that is connected with an IPSEC tunnel to the OCI environment.

The subnet information for the full architecture can be found below:

Location Subnet Notes
ON-PREM 10.222.10.0/24 This is an overlapping subnet with NPA-VCN-A!
NPA-VCN-A 10.222.10.0/24 This is an overlapping subnet with ON-PREM!
NPA-VCN-B 10.222.11.0/24

Because NPA-VCN-A and ON-PREM have overlapping CIDR space I will start with a DE-ATTACHED NPA-VCN-A. So NPA-VCN-A will not be attached to the DRG and will not participate in the routing architecture from the start.

8e69b0c06bbd7238b9cf1eed6ee1469f.png

Test Scenario 1

The first test scenario will use the following Path Analysis Parameters:

Location IP address IP address on-premises setting Port
Source OCI 10.222.11.65 Unchecked N/A
Destination ON-PREM 10.222.10.100 Checked 22

Keep in mind that NPA-VCN-A with overlapping Subnet ON-PREM is not part of the routing architecture.

788745b231874d063ff75e7173498aa9.png 1. Click on the hamburger menu in the upper left corner.
2. Click on Networking.
3. Click on Network Path Analyser.

Acbf70105be78e432f514bc049fdeaf0.png

Path Analysis Settings

- Click on the Create path analysis button.

E598598645051384d84ced24c5f8aaf9.png

1. Specify a name.
2. Select TCP for the protocol.
3. Select Enter IP address for the Source.
4. Type in the Source IP address.
5. Scroll Down

93cceb6876a6f565c58e325a6a6a462c.png

1. Select Enter IP address for the Destination.
2. Type in the Destination IP address.
3. Check the box: The IP address is an on-premises endpoint.
4. Type in the Destination Port.
5. Click on the Run analysis button.

F591a54b7120f21b7b94b9098553bfd1.png

- Scroll down.

3f42e0b6b99e6388843f60b1c91168a0.png

- Notice that the analysis has started, it will take around a minute to complete.

E8baca3ef881e7a17b250c4ae06d59ea.png

Test Results

1. Notice that the forward path status is reachable and the number of hops is 4.
2. Notice the visual routing path the packet has taken from the source to the destination.
3. Click on the arrow to expand.
4. Look at the detailed diagram information.
5. Scroll down.

D4ba7704975b5567f7bac9881adeeb80.png

1. Notice that the return path status is reachable and the number of hops is 4.
2. Notice the visual routing path the packet has taken from the source to the destination.
3. Click on the arrow to expand.
4. Look at the detailed diagram information.
5. Click on the Save analysis button.

7bb76ae0d69c8ad3ae591b40b0c711f4.png

This test passed because there is a network with 10.222.10.0/24 in the routing table, and NPA is checking for this network ON-PREM.

Test Scenario 2

The first and second scenarios will use the following Path Analysis Parameters:

Location IP address IP address on-premises setting Port
Source OCI 10.222.11.65 Unchecked N/A
Destination ON-PREM 10.222.10.100 Unchecked 22

Keep in mind that NPA-VCN-A with overlapping Subnet ON-PREM is not part of the routing architecture.

D4a0963c6d40a9aff98aa9b3ff89acbf.png

Path Analysis Settings

- Click on the Create path analysis button.

61b830d514966630162bb9275ddb5ff6.png

1. Specify a name.
2. Select TCP for the protocol.
3. Select Enter IP address for the Source.
4. Type in the Source IP address.
5. Scroll Down

E5694e55c409f34ad19b6fe1591b9be4.png

1. Select Enter IP address for the Destination.
2. Type in the Destination IP address.
3. Leave the box unchecked: The IP address is an on-premises endpoint.
4. Type in the Destination Port.
5. Click on the Run analysis button.

5511490421ecb0597c2af5332fe813b4.png

- Notice that the analysis has started, it will take around a minute to complete.

D8b1af47886f8620cd0231640a3ab3f6.png

Test Results

1. Notice that the forward path status is indeterminate and the number of hops is 0.
2. Notice error message
Cannot determine the path.
IP address 10.222.10.100 is associated with the following listed overlapping resources.

Possible causes:

- 1: There are multiple route table entries for the destination. - Review route table for overlaps for 10.222.10.0/25. - 2: There is a missing route table entry for the destination. - Review the route table for missing routes for 10.222.10.0/25. - Overlapping resources: ExternalNetwork, ocid1.subnet.oc1.eu-frankfurt-1.aaaaaaaas3jilha3is4uhq7q25qzeyxcv4qqqt5bucjlwszujf6krs3ydy6q, ExternalNetwork - 3. Click on the Save analysis button.

517de5582f28fba11274caf886d3f622.png

This test failed because there is no network with 10.222.10.0/24 in the routing tables, and NPA is not checking for this network ON-PREM.

Test Scenario 3

The third-second scenario will use the following Path Analysis Parameters:

Location IP address IP address on-premises setting Port
Source OCI 10.222.11.65 Unchecked N/A
Destination ON-PREM 10.222.10.100 Checked 22

Notice that NPA-VCN-A with overlapping Subnet ON-PREM is now of the routing architecture.

E4daa9b6dc0f7026a6aea423a7c152de.png

Attaching NPA-VCN-A

- Before we start testing scenario #3 I will first attach the NPA-VCN-A to the DRG.

1. Click on the hamburger menu in the upper left corner.
2. Click on Networking.
3. Click on Dynamic Routing Gateway.

21e43df40cc3756b871cc2c7d0bbe4d1.png

- Click on the DRG.

C3e971aab27e8b3da71eb836e3efa083.png

1. Click on VCN Attachments.
2. Click on the Create virtual cloud network attachment button.

F007f102f3f883491e021197bcc7f039.png

1. Specify a name.
2. Select the NPA-VCN-A VCN
3. Click on the Create VCN attachment button.

F1c9f4b731b05cac6ae1ec4a64684dfc.png

- Notice that the NPA-VCN-A VCN is now attached.

E772872f66a79f121e80fa456bd31fbe.png

Path Analysis Settings

- Go back the the Path Analyser and create a new path analysis.

1. Specify a name.
2. Select TCP for the protocol.
3. Select Enter IP address for the Source.
4. Type in the Source IP address.
5. Scroll Down

A9cf9633ff25cc923d7ddd90e45580f2.png

1. Select Enter IP address for the Destination.
2. Type in the Destination IP address.
3. Check the box: The IP address is an on-premises endpoint.
4. Type in the Destination Port.
5. Click on the Run analysis button.

4cfe3b65458f00495e2b49912433f492.png

- Notice that the analysis has started, it will take around a minute to complete.

358724a2fdee0160c58db269b9e01416.png

Test Results

1. Notice that the forward path status is indeterminate and the number of hops is 0.
2. Notice the error message

Cannot determine the path.
IP address 10.222.10.100 is associated with the following listed overlapping resources.

Possible causes:

- 1: There are multiple route table entries for the destination.
- Review route table for overlaps for 10.222.10.0/25.
- 2: There is a missing route table entry for the destination.
- Review the route table for missing routes for 10.222.10.0/25.
- Overlapping resources: ExternalNetwork, ocid1.subnet.oc1.eu-frankfurt-1.aaaaaaaas3jilha3is4uhq7q25qzeyxcv4qqqt5bucjlwszujf6krs3ydy6q

3. Click on the Save analysis button.

0e85047a8bd91a744310c3a026d1b705.png

This test failed because of the overlapping Subnets ON-PREM and NPA-VCN-A. NPA has two paths to the 10.222.10.0/24 network and does not know which one to take even though the NPA is checking for this network ON-PREM.

Test Scenario 4

The fourth-second scenario will use the following Path Analysis Parameters:

Location IP address IP address on-premises setting Port
Source OCI 10.222.11.65 Unchecked N/A
Destination ON-PREM 10.222.10.100 Unchecked 22

Notice that NPA-VCN-A with overlapping Subnet ON-PREM is still part of the routing architecture.

Path Analysis Settings

- Click on the Create path analysis button.

F6e7b9722c7275275f4412c8b35461fe.png

1. Specify a name.
2. Select TCP for the protocol.
3. Select Enter IP address for the Source.
4. Type in the Source IP address.
5. Scroll Down

9eac8ab30f2344b63f0c39ec5ae296f9.png

1. Select Enter IP address for the Destination.
2. Type in the Destination IP address.
3. Leave the box unchecked: The IP address is an on-premises endpoint.
4. Type in the Destination Port.
5. Click on the Run analysis button.

21672737ea50d0abc8622b8e98142f6d.png

- Notice that the analysis has started, it will take around a minute to complete.

Db9abf1655badb601ed64ac3bc199339.png

Test Results

1. Notice that the forward path status is reachable and the number of hops is 3.
2. Notice the visual routing path the packet has taken from the source to the destination.
3. Click on the arrow to expand.
4. Look at the detailed diagram information.
5. Scroll down.

56531bf1276ec1a9431cf9f39b10c4ad.png

1. Notice that the return path status is reachable and the number of hops is 4.
2. Notice the visual routing path the packet has taken from the source to the destination.
3. Click on the arrow to expand.
4. Look at the detailed diagram information.
5. Click on the Save analysis button.

Ba30c880cd9cfb0dddc3f20cf36ae3de.png

Notice that I specified the IP address that is ON-OREM (10.222.10.100) but the path that the NPA has taken is towards the OCI NPA-VCN-A VCN.

46de376ef4b5ced14fcc84db8eab62dc.png

This test is passing even though I have specified an IP address ON-PREM, but because NPA is not checking for this network ON-PREM and the same network is available within OCI NPA will mark it as a pass.

Test Scenario 5

The fifth-second scenario will use the following Path Analysis Parameters:

Location IP address IP address on-premises setting Port
Source OCI 10.222.11.65 Unchecked N/A
Destination OCI 10.222.10.98 Checked 22

Notice that I am now using the OCI Subnet (inside the NPA-VCN-A VCN) as a destination.

Notice that NPA-VCN-A with overlapping Subnet ON-PREM is still part of the routing architecture.

Db511e0a525942d87a2b1ce268052b7b.png

Path Analysis Settings

- Click on the Create path analysis button.

8956e5f283674b773802facea6b8e924.png

1. Specify a name.
2. Select TCP for the protocol.
3. Select Enter IP address for the Source.
4. Type in the Source IP address.
5. Scroll Down

95bff974b8c9def8086e50e906de78a8.png

1. Select Enter IP address for the Destination.
2. Type in the Destination IP address.
3. Check the box: The IP address is an on-premises endpoint.
4. Type in the Destination Port.
5. Click on the Run analysis button.

Ecf027bd03895ae05385596f9958f699.png

- Notice that the analysis has started, it will take around a minute to complete.

1fa69260e11de2128218790927aecb3f.png

Test Results

1. Notice that the forward path status is indeterminate and the number of hops is 0.
2. Notice the error message

Cannot determine the path.
IP address 10.222.10.98 is associated with the following listed overlapping resources.

Possible causes:
- 1: There are multiple route table entries for the destination.
- Review route table for overlaps for 10.222.10.0/25.
- 2: There is a missing route table entry for the destination.
- Review the route table for missing routes for 10.222.10.0/25.
- Overlapping resources: ExternalNetwork, ocid1.subnet.oc1.eu-frankfurt-1.aaaaaaaas3jilha3is4uhq7q25qzeyxcv4qqqt5bucjlwszujf6krs3ydy6q

3. Click on the Save analysis button.

20f0a0a7ee30929149bdc9eea83bc168.png

This test failed because the IP address I specified in the destination is not ON-PREM but in OCI.

This test is the same as test scenario #3.

Test Scenario 6

The sixth-second scenario will use the following Path Analysis Parameters:

Location IP address IP address on-premises setting Port
Source OCI 10.222.11.65 Unchecked N/A
Destination OCI 10.222.10.98 Unchecked 22

Notice that I am now using the OCI Subnet (inside the NPA-VCN-A VCN) as a destination.

Notice that NPA-VCN-A with overlapping Subnet ON-PREM is still part of the routing architecture.

8512a4ef5de585db76700c17eecb7bb9.png

Path Analysis Settings

- Click on the Create path analysis button.

94a2c02d7e3a42022edba7439f79b6c0.png

1. Specify a name.
2. Select TCP for the protocol.
3. Select Enter IP address for the Source.
4. Type in the Source IP address.
5. Scroll Down

6079ac3c525bc2356e63fbeec0915e5b.png

1. Select Enter IP address for the Destination.
2. Type in the Destination IP address.
3. Leave the box unchecked: The IP address is an on-premises endpoint.
4. Type in the Destination Port.
5. Click on the Run analysis button.

56561a40c935343c233baada8c277345.png

- Notice that the analysis has started, it will take around a minute to complete.

3667d6aec0570d5e00175c20b5bf690f.png

Test Results

1. Notice that the forward path status is reachable and the number of hops is 3.
2. Notice the visual routing path the packet has taken from the source to the destination.
3. Click on the arrow to expand.
4. Look at the detailed diagram information.
5. Scroll down.

579bc05c271a32736f924d9a8092cbc3.png

1. Notice that the return path status is reachable and the number of hops is 4.
2. Notice the visual routing path the packet has taken from the source to the destination.
3. Click on the arrow to expand.
4. Look at the detailed diagram information.
5. Click on the Save analysis button.

2272e237ccb6e919a6fc727b5ab3f7d9.png

This test passed because there is a network with 10.222.10.0/24 in the routing table, and NPA is not checking for this network ON-PREM. So the network has to be within OCI.

This test is the same as test scenario #4.

Conclusion

This tutorial has shown you how the OCI Network Path Analyser with On-Premises endpoints significantly enhances the ability of organizations to manage and troubleshoot their hybrid cloud environments. By providing comprehensive visibility into network paths that span both Oracle Cloud Infrastructure and on-premises data centers, this tool ensures that network performance is optimized and that potential issues can be identified and resolved quickly. The detailed performance metrics, configuration validations, and security checks offered by OCI NPA enable IT teams to maintain robust, efficient, and secure network infrastructures. As hybrid cloud architectures become increasingly common, tools like OCI Network Path Analyser with On-Premises endpoints are indispensable for achieving seamless integration and operation across diverse network environments. This leads to improved application performance, reduced downtime, and enhanced overall operational efficiency.


Test Scenario Result Overlapping CIDR NPA On-Prem DST checked Clarification
1 PASS No Yes This test passed because there is a network with 10.222.10.0/24 in the routing table, and NPA is checking for this network ON-PREM.
2 FAIL No No This test failed because there is no network with 10.222.10.0/24 in the routing tables, and NPA is not checking for this network ON-PREM.
3 FAIL Yes Yes This test failed because of the overlapping Subnets ON-PREM and in NPA-VCN-A. NPA has two paths to the 10.222.10.0/24 network and does not know which one to take even though the NPA is checking for this network ON-PREM.
4 PASS Yes No This test is passing even though I have specified an IP address ON-PREM, but because NPA is not checking for this network ON-PREM and the same network is available within OCI NPA will mark it as a pass.
5 FAIL Yes Yes This test failed because the IP address I specified in the destination is not ON-PREM but in OCI.

This test is the same as test scenario #3.
6 PASS Yes No This test passed because there is a network with 10.222.10.0/24 in the routing table, and NPA is not checking for this network ON-PREM. So the network has to be within OCI.

This test is the same as test scenario #4.