Elastic Compute Service (ECS) Network Connectivity Diagnostics is a feature that allows you to diagnose the network connectivity between diagnostic objects in the cloud and identify the causes of network connectivity issues. This topic describes the ECS Network Connectivity Diagnostics feature and how to use this feature.
Prerequisites
- If you want to use instances or elastic network interfaces (ENIs) as diagnostic objects, make sure that the instances or ENIs are in the Running state.
- If you want to use secondary ENIs as diagnostic objects, make sure that the ENIs are bound to instances. For more information, see Bind an ENI.
- If you diagnose an instance in a scenario where the operating system configurations
of the instance are checked, the instance operating system meets the requirements
described in the following table.
Operating system architecture Operating system version Operating system configuration x86_64-bit - Windows Server 2008 or later
- Alibaba Cloud Linux 2/3
- AlmaLinux 8.x
- Anolis OS 7.x/8.2
- CentOS 7.x/8.x
- CentOS Stream 8
- Debian 8.x/9.x/10.x
- Fedora 33/34
- OpenSUSE 15.x/42.x
- Rocky Linux 8.x
- SUSE Linux 12.x/15.x
- Ubuntu 20.04
- Python:
- Python 3.6 to 3.9
- Python 2.7
- The Cloud Assistant client is installed on the instance. For more information, see Install the Cloud Assistant client.
Background information
- Specify a path.
Each path includes all information required to execute a diagnostic task, such as a virtual private cloud (VPC) and diagnostic objects (instances, ENIs, or public IP addresses). You can create or clone a path. For more information, see Create a path and Clone a path.
- Initiate a diagnostic task.
A diagnostic task is a diagnosis performed to check the real-time network connectivity between the source and destination diagnostic objects configured in a path. After a path is created or cloned, the system immediately initiates a diagnostic task for the path. You can also manually initiate a diagnostic task for an existing path. For more information, see Diagnose a path.
- View diagnostic results.
In the diagnostic task list, you can view the results and details of diagnostic tasks. For more information, see Manage diagnostic tasks.
Note The ECS Network Connectivity Diagnostics feature is used as an auxiliary tool to provide insight into critical network connectivity configurations, but its diagnostic results cannot indicate whether communication over networks is allowed or denied.
When you create a path and initiate a diagnostic task, the system checks whether the AliyunServiceRoleForECSNetworkInsights service-linked role exists. If the role does not exist, the system creates the role. For more information, see Manage the service-linked role for ECS Network Connectivity Diagnostics.
Item | Limit | Adjustable |
---|---|---|
Diagnostic paths within a single region | 100 | N/A |
Diagnostic tasks within a single region | 1,000 | N/A |
Diagnostic tasks that can be concurrently executed within a single region | 5 | N/A |
Create a path
Clone a path
You can clone an existing path and modify some settings, such as the source or destination diagnostic object, to quickly create a path.
Diagnose a path
You can manually initiate a diagnostic task for an existing path. However, each path can have only a single diagnostic task ongoing. If a diagnostic task is being executed on a path, no other diagnostic tasks can be initiated for the path.
- Log on to the ECS console.
- In the left-side navigation pane, click Troubleshooting.
- In the top navigation bar, select a region.
- Click the Network Connectivity Diagnostics tab.
- Click Diagnose in the Actions column corresponding to a path.
- Click Continue.
Manage diagnostic tasks
- Log on to the ECS console.
- In the left-side navigation pane, click Troubleshooting.
- In the top navigation bar, select a region.
- Click the Network Connectivity Diagnostics tab.
- Click the ID of a path.
- Perform the following operations based on your business requirements:
- To initiate a diagnostic task, click Diagnose and click Continue.
- To delete a diagnostic task, find the task and click Delete in the Actions column. Then, click Continue.
- To view details of a specific diagnostic task, click the
icon in the Diagnosis List section on the details page of the task.
Note For more information about diagnostic items, see Diagnostic items of ECS Network Connectivity Diagnostics.Figure 1. Details of a sample diagnostic task whose result is Connectable Figure 2. Details of a sample diagnostic task whose result is Unconnectable
Delete a path
- Log on to the ECS console.
- In the left-side navigation pane, click Troubleshooting.
- In the top navigation bar, select a region.
- Click the Network Connectivity Diagnostics tab.
- Click Delete in the Actions column corresponding to a path.
- Click Continue.