This operation uses sorting algorithms and data processing to analyze and rank traffic across various cloud network resources. It also sorts metrics from Alibaba Cloud performance monitoring probes. This helps you quickly identify network bottlenecks, optimize resource configurations, and improve overall network performance.
Operation description
This operation supports the following analysis scenarios:
Internet performance monitoring dashboard
Cross-zone internal network performance monitoring dashboard
Cross-region internal network performance monitoring dashboard
Internet performance monitoring dashboard scenario
Note
You do not need to specify a time to query the latest probe results.
Request parameters
Name | Type | Required | Description |
RegionNo | string | Yes | The Alibaba Cloud region where the monitoring node is located. |
ResourceType | string | Yes | Set the value to InternetProbing. This value indicates that you want to query the rankings of Internet performance monitoring. |
Direction | string | Yes | Set the value to out. This value indicates that the traffic direction is outbound. |
GroupBy | string | Yes | The dimension for ranking metrics. Valid values: Country: the country where the probe is located. CountryIsp: the country and ISP where the probe is located. Province: the province where the probe is located. ProvinceIsp: the province and ISP where the probe is located. |
OrderBy | string | Yes | The metric used for ranking. Set the value to rtt, which specifies the response time (RT) of the probe. |
Filter | object[] | No | The filter conditions. |
-Name | string | No | The filter condition. Valid values: |
-Value | string | No | The value of the filter condition. |
Response parameters
Name | Type | Description |
RequestId | string | The request ID. |
Data | array | A collection of cloud network metric ranking data. |
Country | string | The country where the probe is located. |
Province | string | The province where the probe is located. |
Isp | string | The ISP of the probe. |
RTT | double | The RT of the probe. Unit: ms. |
Cross-zone internal network performance monitoring dashboard scenario
Note
The maximum time range that you can query is 1 hour.
Request parameters
Name | Type | Required | Description |
RegionNo | string | Yes | The Alibaba Cloud region. |
ResourceType | string | Yes | Set the value to IntranetProbing. This value indicates that you want to query the rankings of cross-zone performance monitoring. |
Direction | string | Yes | You must specify the source or destination of the probe in the Filter parameter. This means the direction is already determined. Therefore, setting this parameter to in or out has no effect. |
GroupBy | string | Yes | The dimension for ranking metrics. Set the value to ZonePair, which specifies that aggregation and analysis are performed by zone pair. |
OrderBy | string | Yes | The metric used for ranking. Set the value to rtt, which specifies the RT of the probe. |
Filter | object[] | Yes | The filter conditions. |
-Name | string | Yes | The filter condition. Valid values: |
-Value | string | Yes | The value of the filter condition. |
Response parameters
Name | Type | Description |
RequestId | string | The request ID. |
Data | array | A collection of cloud network metric ranking data. |
SourceZone | string | The source zone of the probe. |
DestinationZone | string | The destination zone of the probe. |
RTT | double | The RT of the probe. Unit: ms. |
Cross-region internal network performance monitoring dashboard scenario
Note
The maximum time range that you can query is 24 hours. If you do not specify a time range, data from the last hour is queried by default.
Request parameters
Name | Type | Required | Description |
RegionNo | string | Yes | The Alibaba Cloud region. |
ResourceType | string | Yes | Set the value to IntranetProbing. This value indicates that you want to query the rankings of cross-region performance monitoring. |
Direction | string | Yes | The probe direction. Valid values: in: The probe destination is the region specified by RegionNo. out: The probe source is the region specified by RegionNo. |
GroupBy | string | Yes | The dimension for ranking metrics. Set the value to RegionPair, which specifies that aggregation and analysis are performed by region pair. |
OrderBy | string | Yes | The metric used for ranking. Set the value to rtt, which specifies the RT of the probe. |
Filter | object[] | No | The filter conditions. |
-Name | string | No | The filter condition. Set the value to DestinationRegionNo. When Direction is set to out, you can use this parameter to specify the destination region of the probe. |
-Value | string | No | The destination region. |
Response parameters
Name | Type | Description |
RequestId | string | The request ID. |
Data | array | A collection of cloud network metric ranking data. |
RegionNo | string | The source region of the probe. |
DestinationRegionNo | string | The destination region of the probe. |
RTT | double | The RT of the probe. Unit: ms. |
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
nis:GetNisNetworkRanking | none | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
RegionNo | string | Yes | The region where the resource is located. | cn-beijing |
ResourceType | string | Yes | The type of the Alibaba Cloud network resource that is used for traffic forwarding. Valid values:
| AccessInternetIpV4 |
Direction | string | Yes | The direction of network traffic on the Alibaba Cloud resource. Valid values:
Important Cross-domain traffic analysis collects only outbound traffic. Therefore, if you set this parameter to in, the value is automatically changed to out. For intra-region and inter-region performance monitoring, you must specify the source or destination in the Filter parameter. Therefore, the Direction parameter is invalid. | in |
GroupBy | string | Yes | The dimension for ranking metrics. The valid values vary based on the scenario.
Rankings of traffic statistics:
Rankings of network access performance:
| Protocol |
OrderBy | string | Yes | The metric used to rank Internet traffic. This parameter is case-sensitive. Valid values:
| bps |
| Filter | array<object> | No | Specifies additional filter conditions to focus the network traffic analysis. | |
object | No | A list of filter conditions for querying resources. | ||
Name | string | No | The name of the filter condition. | instanceId |
Value | string | No | The value of the filter condition. | lb-2zxxxxz1d |
BeginTime | integer | No | The beginning of the time range to query. This is a UNIX timestamp. Unit: ms. If you do not specify this parameter, data from the last hour is queried. | 1684373600099 |
EndTime | integer | No | The end of the time range to query. This is a UNIX timestamp. Unit: ms. If you do not specify this parameter, data from the last hour is queried. If you specify only BeginTime, data within 1 hour after the specified BeginTime is queried. | 1684379093000 |
Sort | string | No | The sorting order. The default value is desc. Valid values:
| desc |
TopN | integer | No | The number of entries to return. Default value: 10. This indicates that the top 10 entries are returned. Maximum value: 100. | 10 |
UseCrossAccount | boolean | No | Specifies whether to use the multi-account access mode. This is a reserved parameter and is not supported. | false |
| AccountIds | array | No | The IDs of the member accounts. | |
string | No | A list of member account IDs. | 118639953821**** |
Response elements
Element | Type | Description | Example |
object | RpcResponse<ArrayList> | ||
RequestId | string | The request ID. | A7F0D6EC-E19E-58AC-AC9F-08036763960F |
| Data | array<object> | A collection of cloud network metric ranking data. | |
object | A row of cloud network metric ranking data. | ||
RegionNo | string | The ID of the Alibaba Cloud region. | cn-shenzhen |
InstanceId | string | The ID of the cloud resource instance. In a cross-domain traffic analysis scenario, this parameter indicates the CEN ID. In an Internet scenario, this parameter indicates the EIP ID, ECS ID, or CLB ID. | eip-sample* |
BandwidthPackageId | string | The ID of the bandwidth plan instance. | cbwp-sample* |
SourceIp | string | The source IP address. | 42.120.XX.XX |
SourcePort | string | The source port. | 443 |
SourceIsp | string | The source ISP. | China Mobile |
DestinationIp | string | The destination IP address. | 2.2.XX.XX |
DestinationPort | string | The destination port. | 80 |
DestinationIsp | string | The destination ISP. | Alibaba Cloud |
Protocol | string | The network protocol. | 6 |
Country | string | The country where the client is located. | China |
Province | string | The province or state where the client is located. | Sichuan Province |
City | string | The city where the client is located. | Chengdu |
Isp | string | The client ISP. | China Mobile |
Asn | string | The ASN of the client ISP. | 129103 |
IP | string | The IP address. | 120.238.XX.XX |
DestinationRegionNo | string | The ID of the destination region. | cn-hangzhou |
VbrId | string | The ID of the virtual border router instance. | vbr-sample* |
AttachmentId | string | The ID of the transit router connection. | tr-sample* |
SourceZone | string | The source zone of the probe. | cn-hangzhou-a |
DestinationZone | string | The destination zone of the probe. | cn-hangzhou-b |
ByteCount | number | The traffic volume in bytes. | 1024 |
PacketCount | number | The number of packets. | 66 |
RTT | number | The latency. Unit: ms. | 23 |
RetransmitRate | number | The retransmission rate of TCP messages. | 0.1 |
InBps | number | The inbound bandwidth. Unit: bps. | 10 |
InPps | number | The inbound packet rate. Unit: packets/second. | 3 |
OutBps | number | The outbound bandwidth. Unit: bps. | 88 |
OutPps | number | The outbound packet rate. Unit: packets/second. | 8 |
NewSessionPerSecond | number | The number of new connections. Unit: connections/second. | 18 |
ActiveSessionCount | number | The number of concurrent connections. Unit: connections. | 66 |
Examples
Success response
JSON format
{
"RequestId": "A7F0D6EC-E19E-58AC-AC9F-08036763960F",
"Data": [
{
"RegionNo": "cn-shenzhen",
"InstanceId": "eip-sample*",
"BandwidthPackageId": "cbwp-sample*",
"SourceIp": "42.120.XX.XX",
"SourcePort": "443",
"SourceIsp": "移动",
"DestinationIp": "2.2.XX.XX",
"DestinationPort": "80",
"DestinationIsp": "阿里云",
"Protocol": "6",
"Country": "中国",
"Province": "四川省",
"City": "成都市",
"Isp": "移动",
"Asn": "129103",
"IP": "120.238.XX.XX",
"DestinationRegionNo": "cn-hangzhou",
"VbrId": "vbr-sample*",
"AttachmentId": "tr-sample*",
"SourceZone": "cn-hangzhou-a",
"DestinationZone": "cn-hangzhou-b",
"ByteCount": 1024,
"PacketCount": 66,
"RTT": 23,
"RetransmitRate": 0.1,
"InBps": 10,
"InPps": 3,
"OutBps": 88,
"OutPps": 8,
"NewSessionPerSecond": 18,
"ActiveSessionCount": 66
}
]
}Error codes
HTTP status code | Error code | Error message | Description |
400 | IllegalParam.BeginTimeAndEndTime | It only supports querying data for up to 24 hours: %s. | The time range that you can query must be no longer than 24 hours. |
400 | OperationFailed.DataTooMuch | Too much data has been queried under the specified conditions. Shorten the query time, specify more precise filtering conditions, or try again later. | Too much data has been queried under the specified conditions. Shorten the query time, specify more precise filtering conditions, or try again later. |
400 | IllegalParam.OrderBy | The specified param of orderBy (%s) is invalid. | The specified sort field (%s) is invalid. |
400 | IllegalParam.ResourceType | The specified resourceType (%s) is invalid. | The value of ResourceType is invalid. |
400 | IllegalParam.GroupBy | The specified param of GroupBy (%s) is invalid. | The specified group field (%s) is invalid. |
400 | IllegalParam.Direction | The specified direction (%s) is invalid. | The Direction parameter is invalid. Modify the parameter and try again. |
400 | IllegalParam.Filter.InstanceId | The specified InstanceId(%s) is illegal. | |
400 | IllegalParam.BeginTimeAndEndTime5M | It only supports querying data for up to 5 minute when TupleType is 5 and the CloudIp and OtherIp are both empty: %s. | When TupleType = 5 and the CloudIp and OtherIp are both empty, you can only query data in a range of up to 5 minutes. |
400 | IllegalParam.ServiceOffline | The service has been taken offline. | The service has been taken offline. |
404 | ResourceNotFound.InstanceId | The specified InstanceId(%s) does not exist. | The specified InstanceId does not exist. |
404 | ResourceNotFound.IpSets | The specified instance does not exist or does not have any acceleration region. | The specified instance does not exist or does not have any acceleration region. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.