Search

US-12621204-B2 - Method and apparatus for obtaining management data

US12621204B2US 12621204 B2US12621204 B2US 12621204B2US-12621204-B2

Abstract

A method and apparatus for obtaining management data, where the method includes: a first network element receiving a request message from a second network element, where the request message indicates a tenant identifier and at least one managed object instance, where the tenant identifier corresponds to at least one network slice service identifier; the first network element determining a first managed object instance in the at least one managed object instance based on the network slice service identifier, where the second network element has permission to obtain management data in the first managed object instance; and the first network element obtaining management data corresponding to the network slice service identifier from the first managed object instance.

Inventors

  • Zhuoming Li
  • Lei Zhu

Assignees

  • HUAWEI TECHNOLOGIES CO., LTD.

Dates

Publication Date
20260505
Application Date
20220208
Priority Date
20190808

Claims (20)

  1. 1 . A method for obtaining management data, comprising: receiving, by a first network element, a request message from a second network element, wherein the request message indicates a tenant identifier and at least one managed object instance, wherein the tenant identifier corresponds to at least one network slice service identifier, and wherein the at least one managed object instance comprises one or more of a network function, a network slice identifier, or a subnet slice instance; determining, for each managed object instance in the at least one managed object instance, an attribute of each managed object instance; obtaining, by the first network element from each managed object instance whose attribute comprises the network slice service identifier, managed data corresponding to a network slice service identifier in the at least one network slice service identifier; and sending, by the first network element, the managed data to the second network element.
  2. 2 . The method according to claim 1 , further comprising obtaining, by the first network element, the attribute of each managed object instance in the at least one managed object instance from a database.
  3. 3 . The method according to claim 1 , wherein the tenant identifier is the at least one network slice service identifier.
  4. 4 . The method according to claim 1 , wherein the request message comprises the tenant identifier and information of the at least one managed object instance, wherein the request message requests creating a performance measurement task corresponding to a first managed object in the at least one managed object instance, and wherein obtaining the managed data comprises: setting, by the first network element, a measurement sub-item for the performance measurement task based on the network slice service identifier; creating the performance measurement task; and receiving, by the first network element from each managed object instance, a performance measurement result corresponding to the performance measurement task, wherein the performance measurement result includes first management data of the measurement sub-item.
  5. 5 . The method according to claim 1 , wherein the request message requests creating an alarm information subscription task, wherein the request message further indicates a first filter parameter to determine alarm information of the at least one managed object instance, and wherein obtaining the managed data comprises: determining, by the first network element, a second filter parameter based on the network slice service identifier and the first filter parameter; creating the alarm information subscription task, wherein the alarm information subscription task corresponds to the second filter parameter, and wherein the second filter parameter is for obtaining, from a first managed object instance in the at least one managed object instance, first alarm information corresponding to the alarm information subscription task and the network slice service identifier in the at least one network slice service identifier; and receiving, by the first network element from the first managed object instance, the first alarm information corresponding to the alarm information subscription task, wherein the first alarm information includes the managed data.
  6. 6 . The method according to claim 5 , wherein determining the second filter parameter comprises adding, by the first network element, the network slice service identifier to the first filter parameter to obtain the second filter parameter.
  7. 7 . The method according to claim 1 , wherein the request message requests to query for alarm information, wherein the request message further indicates a first filter parameter to determine first alarm information of the at least one managed object instance, and wherein obtaining the managed data comprises: determining, by the first network element, a second filter parameter based on the network slice service identifier and the first filter parameter; and obtaining, by the first network element from each managed object instance, the first alarm information based on the second filter parameter, wherein the first alarm information corresponds to the network slice service identifier in the at least one network slice service identifier, and wherein the first alarm information includes the managed data.
  8. 8 . The method according to claim 1 , wherein the method further comprises obtaining, by the first network element, the at least one network slice service identifier from a third network element, and wherein the third network element is the first network element, the second network element, or a database.
  9. 9 . An apparatus for obtaining management data, comprising: a processor; and a memory coupled to the processor and configured to store instructions executable by the processor to: receive a request message from a second network element, wherein the request message indicates a tenant identifier and at least one managed object instance, wherein the tenant identifier corresponds to at least one network slice service identifier, and wherein the at least one managed object instance comprises one or more of a network function, a network slice identifier, or a subnet slice instance; determine an attribute for each managed object instance in the at least one managed object instance; obtain, from each managed object instance whose attribute comprises the least one network slice service identifier, managed data corresponding to a network slice service identifier in the at least one network slice service identifier; and send the managed data to the second network element.
  10. 10 . The apparatus according to claim 9 , wherein the processor is further configured to obtain the attribute of each managed object instance from a database.
  11. 11 . The apparatus according to claim 9 , wherein the tenant identifier is the at least one network slice service identifier.
  12. 12 . The apparatus according to claim 9 , wherein the request message comprises the tenant identifier and information of the at least one managed object instance, wherein the request message requests creating a performance measurement task corresponding to a first managed object instance in the at least one managed object instance, and wherein the processor is further configured to: set a measurement sub-item for the performance measurement task based on the network slice service identifier in the at least one network slice service identifier; create the performance measurement task; and receive, from each managed object instance, a performance measurement result corresponding to the performance measurement task, wherein the performance measurement result includes first management data of the measurement sub-item.
  13. 13 . The apparatus according to claim 9 , wherein the request message requests to create an alarm information subscription task, wherein the request message further indicates a first filter parameter to determine alarm information of the at least one managed object instance, and wherein the processor is further configured to: determine a second filter parameter based on the network slice service identifier and the first filter parameter; create the alarm information subscription task, wherein the alarm information subscription task corresponds to the second filter parameter, and wherein the second filter parameter is to obtain, from a first managed object instance in the at least one managed object instance, first alarm information corresponding to the network slice service identifier in the at least one network slice service identifier; and receive the first alarm information from the first managed object instance, wherein the first alarm information includes the management data.
  14. 14 . The apparatus according to claim 13 , wherein the processor is configured to obtain the second filter parameter by adding the network slice service identifier to the first filter parameter.
  15. 15 . The apparatus according to claim 9 , wherein the request message requests to query for an alarm information subscription task, wherein the request message further indicates a first filter parameter to determine alarm information of the at least one managed object instance, and wherein the processor is further configured to: determine a second filter parameter based on the network slice service identifier and the first filter parameter; and obtain, based on the second filter parameter, first alarm information from each managed object instance, wherein the first alarm information corresponds to the network slice service identifier in the at least one network slice service identifier, and wherein first the alarm information includes the managed data.
  16. 16 . The apparatus according to claim 9 , wherein the tenant identifier is the at least one network slice service identifier.
  17. 17 . A system for obtaining management data, comprising: a second network element configured to send a request message to a first network element, wherein the request message indicates a tenant identifier and at least one managed object instance, wherein the tenant identifier corresponds to at least one network slice service identifier, and wherein the at least one managed object instance comprises one or more of a network function, a network slice identifier, or a subnet slice instance; the first network element is configured to: receive the request message; determine, for each managed object instance in the at least one managed object instance, an attribute of each managed object instance; obtain, from each managed object instance whose attribute comprises the network slice service identifier, managed data corresponding to a network slice service identifier in the at least one network slice service identifier; and send the managed data to the second network element, and wherein the second network element is further configured to receive the management data.
  18. 18 . The system according to claim 17 , wherein the tenant identifier is the at least one network slice service identifier.
  19. 19 . The system according to claim 17 , wherein the request message comprises the tenant identifier and information of the at least one managed object instance, wherein the request message requests creating a performance measurement task, and wherein the management data is included in a performance measurement result.
  20. 20 . The system according to claim 17 , wherein the tenant identifier is the at least one network slice service identifier.

Description

CROSS REFERENCE TO RELATED APPLICATIONS This is a continuation of International Patent Application No. PCT/CN2020/100932, filed on Jul. 8, 2020, which claims priority to Chinese Patent Application No. 201910730071.X, filed on Aug. 8, 2019. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This disclosure relates to the field of mobile communications technologies, and in particular, to a method and an apparatus for obtaining management data. BACKGROUND As various communications services are emerging, different communications services have significantly different requirements for network performance. A network slice is introduced into a 5th generation (5G) communications system to meet differentiated requirements of the different communications services for network performance. The network slice refers to customizing a logical network on a physical or virtual network infrastructure, according to different service requirements. The network slice may be a complete end-to-end network including a terminal device, an access network, a transmission network, a core network, and an application server, and can provide a complete communication service. Generally, different network slices have different network performance requirements. After an operator divides a communications network into a series of network slices, the network slices are logically isolated from each other and have different network features. Different customers can subscribe to a plurality of network slices from the operator, in this way, a physical network of the operator can meet differentiated requirements of different applications for network. Because a network slice instance is a relatively isolated logical network, the operator usually opens a part of management data to a tenant (for example, another operator) based on a service requirement. For example, the operator allows the tenant to obtain part of network performance results or part of alarm information, such that the tenant learns a network slice running status and facilitates the tenant to develop its own business. Currently, there is no good method to control the tenant to obtain management data within a reasonable range. SUMMARY This disclosure provides a method and apparatus for obtaining management data, to enable a tenant to obtain management data within a proper range. According to a first aspect, this disclosure provides a method for obtaining management data. The method includes: A first network element receives a request message from a second network element, where the request message indicates a tenant identifier and at least one managed object instance, and the tenant identifier corresponds to at least one network slice service identifier; the first network element determines a first managed object instance in the at least one managed object instance based on the network slice service identifier, where the second network element has permission to obtain management data of the first managed object instance; the first network element obtains management data corresponding to the network slice service identifier from the first managed object instance; and the first network element sends the obtained management data to the second network element. According to this solution, upon requesting to obtain management data, the second network element obtains management data at a network slice service identifier granularity, to be more specific, obtains management data related to a slice service subscribed by a tenant, such that data isolation between different tenants is implemented and data security and privacy is facilitated. In a possible implementation method, that the first network element determines a first managed object instance in the at least one managed object instance based on the network slice service identifier includes: For any one managed object instance in the at least one managed object instance, if the first network element determines that an attribute of the any one managed object instance includes the network slice service identifier, determining that the any one managed object instance is the first managed object instance. In a possible implementation method, the first network element obtains the attribute of each managed object instance in the at least one managed object instance from a database. In a possible implementation method, the tenant identifier is the at least one network slice service identifier. Alternatively, the first network element obtains the at least one network slice service identifier corresponding to the tenant identifier based on the tenant identifier from a third network element, where the third network element is the first network element, the second network element, or the database. In a possible implementation method, the at least one managed object instance includes one or more of the following items: a network function, a network slice instance, or a subnet slice i