A resource state determination method, system, apparatus and product

CN119697013BActive Publication Date: 2026-08-21CHINA TELECOM CLOUD TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411706819.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2026-08-21
Estimated Expiration
2044-11-26

AI Technical Summary

Technical Problem

然而,由于当前云网络中缺少对资源状态可见性的实现,导致云网络资源是否在底层已创建/配置是不可知的,存在无法确认云网络资源在系统中的状态的问题

Benefits of technology

[0024]在本发明实施例提供的资源状态确定方法中,资源生命周期管理服务接收用户发起的云网络资源操作请求,确定并基于云网络资源的标识,将云网络资源操作请求转发至对应的网关控制器;网关控制器将云网络资源操作请求转换为云网络资源配置信息并下发至对应的网关;网关基于云网络资源配置信息进行云网络资源配置,得到云网络资源配置结果并返回至网关控制器;网关控制器再基于云网络资源配置结果,通过状态机以状态更新的形式发送给资源生命周期管理服务以对用户展示。如此,本实施例通过在网关控制器中设置云网络资源的状态机,将网关返回的云网络资源配置结果通过设置的状态机以状态更新的形式返回给资源生命周期管理服务以对用户展示,从而实现云中的云网络资源状态的可见性,保证了云网络资源在底层生效情况的可见性,并保证了各个状态是可预见和可操作的,防止未知状态的出现。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697013B_ABST
    Figure CN119697013B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a resource state determination method, system, device and product, and relate to the technical field of cloud network. The method comprises: a resource life cycle management service receiving a cloud network resource operation request initiated by a user, determining and forwarding the cloud network resource operation request to a corresponding gateway controller based on the identification of the cloud network resource; the gateway controller converts the cloud network resource operation request into cloud network resource configuration information and delivers it to the corresponding gateway; the gateway configures the cloud network resource based on the cloud network resource configuration information, obtains the cloud network resource configuration result and returns it to the gateway controller; and the gateway controller sends the cloud network resource configuration result to the resource life cycle management service in the form of state update through a state machine to show it to the user. The resource state determination method of the embodiments guarantees the visibility and accessibility of the cloud network resource state in the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of cloud network technology, and in particular to a method, system, device and product for determining resource status. Background Technology

[0002] Cloud networking uses the cloud (a centralized third-party resource provider) to connect network resources. Cloud networking acts as a gatekeeper for applications, and understanding this concept means you can leverage the cloud for infrastructure, network management, network monitoring, and maintenance. In other words, you can design, configure, manage, and fine-tune network resources in the cloud to create simple and resilient networks.

[0003] Cloud networks can be either cloud-enabled or entirely cloud-based. In a cloud-enabled network, the network itself is located on-premises, but some or all of the resources used to manage it reside in the cloud. The core network infrastructure (packet forwarding, routing, and data) remains on-premises, but tasks such as network management, monitoring, maintenance, and security services are handled through the cloud. For example, a SaaS-based firewall might be used to protect the on-premises network. In a cloud-based network, the entire network resides in the cloud, including network management resources and physical hardware. Cloud-based networks are used to provide connectivity between applications and resources deployed in the cloud.

[0004] In this context, system (cloud) status visibility refers to the degree to which the system status is communicated to the user. Ideally, the system should always inform the user of the situation through appropriate feedback within a reasonable timeframe. However, due to the current lack of resource status visibility implementation in cloud networks, it is unknowable whether cloud network resources have been created / configured at the underlying level, resulting in the inability to confirm the status of cloud network resources within the system. Therefore, determining the status of cloud network resources within the system is a problem that this invention urgently aims to solve. Summary of the Invention

[0005] This invention provides a method, system, device, and product for determining the status of cloud network resources. By setting a state machine for cloud network resources, the visibility and reachability of cloud network resource status within the system are guaranteed.

[0006] The first aspect of this invention provides a method for determining resource status, the method comprising:

[0007] The resource lifecycle management service receives cloud network resource operation requests initiated by users, determines the identifier of the cloud network resource, and forwards the cloud network resource operation request to the corresponding gateway controller based on the identifier of the cloud network resource; the resource lifecycle management service communicates with multiple gateway controllers.

[0008] The gateway controller converts the cloud network resource operation request into cloud network resource configuration information and sends it to the corresponding gateway; the gateway controller corresponds one-to-one with the gateway.

[0009] The gateway configures cloud network resources based on the cloud network resource configuration information, obtains the cloud network resource configuration result, and returns it to the gateway controller.

[0010] Based on the cloud network resource configuration results, the gateway controller sends the updated status information to the resource lifecycle management service via a state machine for display to the user.

[0011] A second aspect of the present invention provides a resource status determination system, the system being used to execute the resource status determination method provided in the first aspect of the present invention, the system comprising: a resource lifecycle management service, multiple gateway controllers and multiple gateways, the resource lifecycle management service being communicatively connected to the multiple gateway controllers, and each gateway controller corresponding to one of the gateways;

[0012] The resource lifecycle management service is used to receive cloud network resource operation requests initiated by users, determine the identifier of the cloud network resource, and forward the cloud network resource operation request to the corresponding gateway controller based on the identifier of the cloud network resource.

[0013] The gateway controller is used to convert the cloud network resource operation request into cloud network resource configuration information and send it to the corresponding gateway;

[0014] The gateway is used to configure cloud network resources based on the cloud network resource configuration information, obtain the cloud network resource configuration result, and return it to the gateway controller.

[0015] The gateway controller is used to send the cloud network resource configuration results to the resource lifecycle management service in the form of state updates via a state machine for display to the user.

[0016] A third aspect of the present invention provides a resource status determination apparatus, the apparatus comprising:

[0017] The forwarding module, deployed in the resource lifecycle management service, is used to receive cloud network resource operation requests initiated by users, determine the identifier of the cloud network resource, and forward the cloud network resource operation request to the corresponding gateway controller based on the identifier of the cloud network resource; the resource lifecycle management service is communicatively connected to multiple gateway controllers.

[0018] A conversion module, deployed in the gateway controller, is used to convert the cloud network resource operation request into cloud network resource configuration information and send it to the corresponding gateway; the gateway controller corresponds one-to-one with the gateway.

[0019] A configuration module, deployed on the gateway, is used to configure cloud network resources based on the cloud network resource configuration information, obtain the cloud network resource configuration result, and return it to the gateway controller.

[0020] The status determination module, deployed on the gateway controller, is used to send the status update to the resource lifecycle management service through a state machine based on the cloud network resource configuration results for display to the user.

[0021] A fourth aspect of the present invention provides an electronic device, the electronic device comprising: a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the computer program, when executed by the processor, implements the resource status determination method as described in the first aspect of the present invention.

[0022] A fifth aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the resource status determination method of the first aspect of the present invention.

[0023] A sixth aspect of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the resource status determination method of the first aspect of the present invention.

[0024] In the resource status determination method provided in this embodiment of the invention, the resource lifecycle management service receives a cloud network resource operation request initiated by a user, determines and forwards the cloud network resource operation request to the corresponding gateway controller based on the identifier of the cloud network resource; the gateway controller converts the cloud network resource operation request into cloud network resource configuration information and sends it to the corresponding gateway; the gateway configures the cloud network resource based on the cloud network resource configuration information, obtains the cloud network resource configuration result, and returns it to the gateway controller; the gateway controller then sends the cloud network resource configuration result to the resource lifecycle management service in the form of a state update through a state machine for display to the user. Thus, this embodiment, by setting a state machine for cloud network resources in the gateway controller, returns the cloud network resource configuration result returned by the gateway to the resource lifecycle management service in the form of a state update through the set state machine for display to the user, thereby achieving visibility of the cloud network resource status in the cloud, ensuring the visibility of the cloud network resource's effective status at the underlying level, and ensuring that each status is predictable and operable, preventing the occurrence of unknown states. Attached Figure Description

[0025] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 This is a flowchart illustrating a resource status determination method according to an embodiment of the present invention;

[0027] Figure 2 This is a flowchart illustrating the implementation of a cloud network resource status determination method according to an embodiment of the present invention.

[0028] Figure 3 This is a schematic diagram of state transitions in a state machine according to an embodiment of the present invention;

[0029] Figure 4 This is an example diagram illustrating the change in the state of cloud network resources according to an embodiment of the present invention;

[0030] Figure 5 This is a structural block diagram of a resource status determination system provided in an embodiment of the present invention;

[0031] Figure 6 This is a structural block diagram of a resource status determination device provided in an embodiment of the present invention;

[0032] Figure 7 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0033] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0034] refer to Figure 1 , Figure 1 This is a flowchart illustrating a resource status determination method according to an embodiment of the present invention. Figure 1 As shown, the resource status determination method in this embodiment may include the following steps:

[0035] Step S11: The resource lifecycle management service receives a cloud network resource operation request initiated by the user, determines the identifier of the cloud network resource, and forwards the cloud network resource operation request to the corresponding gateway controller based on the identifier of the cloud network resource; the resource lifecycle management service communicates with multiple gateway controllers.

[0036] In this embodiment, a user can initiate a cloud network resource operation request to request related operations on cloud network resources. For example, a cloud network resource operation request may include at least one of the following: a cloud network resource creation request, a cloud network resource query request, a cloud network resource update request, a cloud network resource deletion request, etc. Cloud network resources may include, but are not limited to: virtual routers, virtual private networks (VPNs), virtual firewalls, data connections, load balancers, virtual bridges, virtual adapters, etc.

[0037] The Resource Lifecycle Management Service is responsible for receiving cloud network resource operation requests initiated by users and forwarding these requests to the gateway controller. The Resource Lifecycle Management Service communicates with multiple gateway controllers, with each gateway corresponding to a specific cloud network resource.

[0038] Specifically, the resource lifecycle management service can determine the identifier of the cloud network resource based on the received cloud network resource operation request, and then determine the gateway corresponding to the cloud network resource based on the identifier, thereby forwarding the cloud network resource operation request to the gateway controller corresponding to the gateway of the cloud network resource.

[0039] In one optional implementation, when the resource lifecycle management service receives a user's cloud network resource creation request, it will add the cloud network resource to be created into the database based on the identifier of the cloud network resource to be created in the cloud network resource creation request. This enables the resource lifecycle management service to manage all created / existing cloud network resources and ensure the management and forwarding of subsequent cloud network resource query / update / deletion requests.

[0040] Step S12: The gateway controller converts the cloud network resource operation request into cloud network resource configuration information and sends it to the corresponding gateway; the gateway controller corresponds one-to-one with the gateway.

[0041] In this embodiment, the gateway controller is responsible for translating cloud network resource operation requests sent by the resource lifecycle management service into configuration information that the gateway can recognize and then sending it to the corresponding gateway. Specifically, after receiving a cloud network resource operation request, the gateway controller can convert the request into cloud network resource configuration information that the gateway can recognize and then send it to the corresponding gateway.

[0042] In one optional implementation, after receiving a cloud network resource operation request, the gateway controller can retrieve cloud network resource details, determine the detailed information of the cloud network resource corresponding to the operation request from these details, and then convert the cloud network resource operation request into gateway-recognizable cloud network resource configuration information based on this information and send it to the gateway. Specifically, for the first cloud network resource request (i.e., for a cloud network resource to be created), the gateway controller will wait for the cloud network resource configuration result returned by the gateway's creation and recording it in the managed cloud network resource details.

[0043] Step S13: The gateway configures cloud network resources based on the cloud network resource configuration information, obtains the cloud network resource configuration result, and returns it to the gateway controller.

[0044] In this embodiment, the gateway is responsible for specific network traffic forwarding. After receiving the cloud network resource configuration information sent by the gateway controller, the gateway can determine the corresponding cloud network resource based on the identifier of the cloud network resource in the cloud network resource configuration information, and perform cloud network resource configuration for the corresponding cloud network resource based on the cloud network resource configuration information (such as cloud network resource deletion, creation, update, query, etc.) to obtain the cloud network resource configuration result of the corresponding cloud network resource, and then return the cloud network resource configuration result to the gateway controller.

[0045] Step S14: Based on the cloud network resource configuration results, the gateway controller sends the updated state information to the resource lifecycle management service via a state machine for display to the user.

[0046] In this embodiment, the gateway controller is equipped with a state machine for cloud network resources. This state machine is used to ensure the visibility of the cloud network resources' effective status at the underlying level and to ensure that each state is predictable and operable, preventing the occurrence of unknown states. In other words, this embodiment ensures the visibility and reachability of the cloud network resources' states by setting up a state machine.

[0047] After receiving the cloud network resource configuration result returned by the gateway, the gateway controller can use a state machine to send the cloud network resource configuration result to the resource lifecycle management service in the form of a state update for display to the user.

[0048] In this embodiment, the cloud network resource operation requests are transformed, forwarded, and responded to through the resource lifecycle management service, gateway controller, and gateway. The cloud network resource configuration results are then sent to the resource lifecycle management service in the form of state updates via a state machine for display to the user. Thus, by setting a state machine for cloud network resources in the gateway controller, the cloud network resource configuration results returned by the gateway are returned to the resource lifecycle management service in the form of state updates via the set state machine for display to the user. This achieves the visibility of the cloud network resource status in the cloud, ensures the visibility of the cloud network resource's effective status at the underlying level, and ensures that each status is predictable and operable, preventing the occurrence of unknown statuses.

[0049] like Figure 2 As shown, Figure 2 This is a flowchart illustrating the implementation of a cloud network resource status determination method according to an embodiment of the present invention. Figure 2 Taking the creation of cloud network resources as an example, the specific implementation process is as follows:

[0050] ① The resource lifecycle management service (such as api-server, which includes lifecycle management of VPC, ELB, etc.) receives the user's cloud network resource creation request, puts the resource into the database, and then notifies the gateway controller.

[0051] ② The gateway controller retrieves cloud network resource details, translates the cloud network resource creation request into a configuration recognizable by the gateway, and sends it to the gateway. At this time, for the first resource request, the gateway controller waits for the gateway to return the result; in an optional embodiment, the gateway controller periodically performs configuration checks on the gateway and collects the results.

[0052] ③ The gateway sends the configuration results of creating cloud network resources back to the gateway controller via an HTTP communication connection.

[0053] ④ The gateway controller sends the collected configuration information on the gateway to the resource lifecycle management service in the form of status updates for user display.

[0054] In conjunction with the above embodiments, in one implementation, the present invention also provides a method for determining resource status. Specifically, in this embodiment, in addition to the above steps, it further includes step S21, and step S14 may specifically include steps S22 to S24:

[0055] Step S21: The gateway controller obtains the first state of the cloud network resources at the previous moment.

[0056] In this embodiment, the gateway corresponds to multiple cloud network resources, and the gateway periodically reports the status of its corresponding cloud network resources to the gateway controller. After receiving the cloud network resource configuration result returned by the gateway, the gateway controller in this embodiment can obtain the first state of the cloud network resource at the previous moment. The first state refers to the state of the cloud network resource at the previous moment.

[0057] Step S22: The gateway controller determines the second state of the cloud network resources at the current moment based on the cloud network resource configuration result.

[0058] In this embodiment, the gateway controller can determine the second state of the cloud network resource at the current moment based on the cloud network resource configuration result returned by the gateway, wherein the second state refers to the state of the cloud network resource at the current moment.

[0059] Step S23: The gateway controller determines the state information of the cloud network resources based on the first state and the second state through the state machine.

[0060] In this embodiment, the state machine of the cloud network resources configured in the gateway controller defines the resource state status corresponding to the state transition relationships of the cloud network resources, ensuring that each state of the cloud network resources is reachable and can be accurately defined. The gateway controller can determine the state information of the cloud network resources based on the first and second states of the cloud network resources through the state machine.

[0061] Step S24: The gateway controller sends the status information of the cloud network resources to the resource lifecycle management service and displays it to the user in the form of status updates.

[0062] In this embodiment, after determining the status information of cloud network resources, the gateway controller can send the status information of cloud network resources to the resource lifecycle management service and display it to the user in the form of status updates.

[0063] In conjunction with the above embodiments, in one implementation, the present invention also provides a method for determining resource status. Specifically, in this method, step S23 may include steps S31 to S34:

[0064] Step S31: When the first state is the initial state and the second state is the effective state, the gateway controller determines the status information of the cloud network resource through the state machine as follows: the cloud network resource was successfully created and issued to the gateway.

[0065] In this embodiment, the state machine defines an initial state, an effective state, and an error state. The initial state indicates that the cloud network resource is not effective at the underlying layer (meaning that the resource has not been issued or created), the effective state indicates that the cloud network resource is effective at the underlying layer, and the error state indicates that the cloud network resource is in an unknown state at the underlying layer, which is an error state.

[0066] When the gateway controller determines that the first state is the initial state and the second state is the effective state, the gateway controller can determine the status information of the cloud network resource through the state machine: the creation of the cloud network resource is successfully issued by the gateway, which means that the cloud network resource has been successfully created.

[0067] Step S32: When the first state is in an effective state and the second state is in an error state, the gateway controller determines the status information of the cloud network resource through the state machine as follows: updating / querying the cloud network resource on the gateway failed.

[0068] In this embodiment, when the gateway controller determines that the first state is an effective state and the second state is an error state, the gateway controller can determine the status information of the cloud network resource through the state machine as: failure to update / query cloud network resources on the gateway.

[0069] Step S33: When the first state is an error state and the second state is an effective state, the gateway controller determines the status information of the cloud network resource through the state machine as follows: the cloud network resource was successfully updated / queried on the gateway.

[0070] In this embodiment, when the gateway controller determines that the first state is an error state and the second state is an effective state, the gateway controller can determine the status information of the cloud network resource through the state machine as: the cloud network resource was successfully updated / queried on the gateway.

[0071] Step S34: When the first state is in an active state and the second state is in an initial state, or when the first state is in an error state and the second state is in an initial state, the gateway controller determines the status information of the cloud network resource through the state machine as: the cloud network resource was successfully deleted on the gateway.

[0072] In this embodiment, when the gateway controller determines that the first state is an active state and the second state is an initial state, the gateway controller can determine the status information of the cloud network resource as: the cloud network resource was successfully deleted from the gateway through a state machine. When the gateway controller determines that the first state is an error state and the second state is an initial state, the gateway controller can determine the status information of the cloud network resource as: the cloud network resource was successfully deleted from the gateway through a state machine.

[0073] like Figure 3 As shown, Figure 3 This is a schematic diagram of state transitions in a state machine according to an embodiment of the present invention. Figure 2 The statuses are described below:

[0074] DOWN: Initial state, indicating that cloud network resources are not active at the underlying level.

[0075] UP: Indicates that cloud network resources are in effect at the underlying level.

[0076] ERROR: Indicates that the actual state of cloud network resources at the underlying level is unknown, which is an error.

[0077] Introduction to the transitions between states:

[0078] DOWN→UP: Cloud network resources have been successfully created and deployed on the gateway (i.e., Figure 3 (create in the middle).

[0079] UP→ERROR: Failed to update / query cloud network resources on the gateway (i.e., Figure 3 (error in the text).

[0080] UP→DOWN: Cloud network resources were successfully deleted on the gateway (i.e., Figure 3 (delete in the middle).

[0081] ERROR→UP: Successfully updated / queried cloud network resources on the gateway (i.e., ...) Figure 3 (update in the middle).

[0082] ERROR→DOWN: Cloud network resources were successfully deleted on the gateway (i.e., Figure 3 (delete in the middle).

[0083] In one embodiment, the resource status determination method proposed in this embodiment can achieve elastic load balancing.

[0084] In conjunction with the above embodiments, in another implementation, the present invention also provides a method for determining resource status. Specifically, in this embodiment, in addition to the steps described above, steps S41 to S44 may be included:

[0085] Step S41: The gateway controller periodically obtains cloud network resource configuration result information from the corresponding gateway.

[0086] In this embodiment, the gateway controller periodically obtains cloud network resource configuration result information from its corresponding gateway. This cloud network resource configuration result information includes configuration information for multiple cloud network resources corresponding to the gateway, and this configuration information characterizes the resource status of the cloud network resources.

[0087] Step S42: If the gateway controller determines that the received cloud network resource operation request is a cloud network resource query request, it determines whether the corresponding gateway is faulty.

[0088] In this embodiment, when the gateway controller determines that the received cloud network resource operation request is a cloud network resource query request, it can first determine the gateway corresponding to the gateway controller to perform fault detection to determine whether the gateway is faulty.

[0089] If the gateway controller determines that the corresponding gateway is not faulty, it can send the cloud network resource query request to the corresponding gateway and wait for the gateway to return the configuration information of the cloud network resource. Then, based on the configuration information of the previous moment and the configuration information returned by the gateway at the current moment, the state machine determines the cloud network resource query result and sends it to the resource lifecycle management service for display to the user.

[0090] Step S43: When the gateway controller determines that the corresponding gateway is faulty, it determines the cloud network resource query result through a state machine based on the cloud network resource query request and the periodically acquired cloud network resource configuration result information.

[0091] In this embodiment, when the gateway controller determines that the corresponding gateway is faulty, it can determine the latest configuration information of the cloud network resource corresponding to the cloud network resource query request based on the cloud network resource query request and the periodically acquired cloud network resource configuration result information, thereby determining the latest state of the cloud network resource corresponding to the cloud network resource query request; then, through the state machine, based on the configuration information of the previous moment (the state information of the previous moment) and the latest configuration information of the cloud network resource obtained from the periodically acquired cloud network resource configuration results (the latest state of the cloud network resource), it determines the cloud network resource query result of the cloud network resource.

[0092] Step S44: The gateway controller sends the cloud network resource query results to the resource lifecycle management service for display to the user.

[0093] In this embodiment, after obtaining the cloud network resource query results, the gateway controller can send the cloud network resource query results to the resource lifecycle management service for display to the user.

[0094] In this embodiment, the gateway controller can periodically obtain the configuration of cloud network resources from the gateway so that it can still query cloud network resources and return query results in a timely manner when the gateway fails, preventing the configuration from becoming invalid and failing to present the information to the user in a timely and accurate manner due to gateway failure.

[0095] In conjunction with the above embodiments, in another implementation, the present invention also provides a method for determining resource status. In this embodiment, step S24 may include steps S51 and S52:

[0096] Step S51: The gateway controller aggregates the status information of multiple cloud network resources within the first time period to obtain a status aggregation result.

[0097] To prevent inaccurate status display caused by the heavy load on the resource lifecycle management service due to simultaneous reporting of multiple cloud network resources, the gateway controller in this embodiment can aggregate and uniformly report the status of multiple cloud network resources.

[0098] Specifically, the gateway controller aggregates the status information of multiple cloud network resources received within the first time interval to obtain a status aggregation result. The first time interval is a specified period for the gateway controller to aggregate the status information; it can be 10 seconds, 1 minute, 2 minutes, etc. This embodiment does not impose any restrictions on the specific value of the first time interval. For example, if the first time interval is 10 seconds, the gateway will aggregate the status information of multiple cloud network resources received within each 10-second interval to obtain a status aggregation result.

[0099] Step S52: The gateway controller sends the aggregated status results to the resource lifecycle management service for display to the user.

[0100] In this embodiment, after obtaining the state aggregation result, the gateway controller can send the state aggregation result to the resource lifecycle management service for display to the user.

[0101] like Figure 4 As shown, Figure 4 This is an example diagram illustrating the change in the state of cloud network resources according to an embodiment of the present invention. Figure 4 The status changes of cloud network resources are as follows:

[0102] ① Users create cloud network resource requests and create cloud network resource instances through the api-server (i.e., resource lifecycle management service).

[0103] ②The api-server notifies the gw-controller (i.e., the gateway controller) of the user's cloud network resource creation message (i.e., the created resource).

[0104] ③ The gw-controller retrieves the details of cloud network resources, translates the cloud network resource creation message into a configuration that the GW (gateway) can recognize, and sends it to the GW.

[0105] ④GW will return requests from gw-controller to create / update / delete / query cloud network resource configurations, and gw-controller will periodically pull the configuration information from GW.

[0106] ⑤ gw-controller feeds back the configuration status on GW to api-server. Specifically, gw-controller can aggregate the cloud network resource status and send it to api-server for updates.

[0107] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0108] Based on the same inventive concept, one embodiment of the present invention provides a resource status determination system. (See reference...) Figure 5 , Figure 5 This is a structural block diagram of a resource status determination system provided in an embodiment of the present invention. Figure 5 As shown, the resource status determination system is used to execute the resource status determination method as described in any of the above embodiments. The resource status determination system includes: a resource lifecycle management service, multiple gateway controllers, and multiple gateways. The resource lifecycle management service is communicatively connected to the multiple gateway controllers, and each gateway controller corresponds to one of the gateways.

[0109] The resource lifecycle management service is used to receive cloud network resource operation requests initiated by users, determine the identifier of the cloud network resource, and forward the cloud network resource operation request to the corresponding gateway controller based on the identifier of the cloud network resource.

[0110] The gateway controller is used to convert the cloud network resource operation request into cloud network resource configuration information and send it to the corresponding gateway;

[0111] The gateway is used to configure cloud network resources based on the cloud network resource configuration information, obtain the cloud network resource configuration result, and return it to the gateway controller.

[0112] The gateway controller is used to send the cloud network resource configuration results to the resource lifecycle management service in the form of state updates via a state machine for display to the user.

[0113] Optionally, the gateway controller is further configured to obtain the first state of the cloud network resources at the previous moment;

[0114] The gateway controller is specifically used for:

[0115] Based on the cloud network resource configuration results, determine the second state of the cloud network resources at the current moment;

[0116] Based on the first state and the second state, the state information of the cloud network resources is determined by the state machine;

[0117] The status information of the cloud network resources is sent to the resource lifecycle management service and displayed to the user in the form of status updates.

[0118] Optionally, the state machine defines an initial state, an active state, and an error state; the initial state indicates that the cloud network resources are not active at the underlying layer, the active state indicates that the cloud network resources are active at the underlying layer, and the error state indicates that the cloud network resources are in an unknown state at the underlying layer.

[0119] The gateway controller is specifically used for:

[0120] When the first state is the initial state and the second state is the effective state, the state machine determines the state information of the cloud network resource as follows: the creation of the cloud network resource was successfully issued to the gateway;

[0121] When the first state is an effective state and the second state is an error state, the state machine determines the status information of the cloud network resource as follows: updating / querying the cloud network resource on the gateway failed.

[0122] When the first state is an error state and the second state is an effective state, the state machine determines the status information of the cloud network resource as follows: the cloud network resource was successfully updated / queried on the gateway.

[0123] When the first state is in an effective state and the second state is in an initial state, or when the first state is in an error state and the second state is in an initial state, the state machine determines the state information of the cloud network resource as: the cloud network resource was successfully deleted on the gateway.

[0124] Optionally, the gateway controller is further configured to:

[0125] Periodically obtain cloud network resource configuration result information from the corresponding gateway;

[0126] If the received cloud network resource operation request is determined to be a cloud network resource query request, determine whether the corresponding gateway is faulty.

[0127] If the corresponding gateway failure is determined, the cloud network resource query result is determined by a state machine based on the cloud network resource query request and the periodically acquired cloud network resource configuration result information.

[0128] The cloud network resource query results are sent to the resource lifecycle management service for display to the user.

[0129] Optionally, the gateway controller is specifically used for:

[0130] The status information of multiple cloud network resources within the first time period is aggregated to obtain the status aggregation result;

[0131] The aggregated status results are sent to the resource lifecycle management service for display to users.

[0132] Based on the same inventive concept, one embodiment of the present invention provides a resource status determination device. (See reference...) Figure 6 , Figure 6 This is a structural block diagram of a resource status determination device provided in an embodiment of the present invention. Figure 6 As shown, the device includes:

[0133] The forwarding module, deployed in the resource lifecycle management service, is used to receive cloud network resource operation requests initiated by users, determine the identifier of the cloud network resource, and forward the cloud network resource operation request to the corresponding gateway controller based on the identifier of the cloud network resource; the resource lifecycle management service is communicatively connected to multiple gateway controllers.

[0134] A conversion module, deployed in the gateway controller, is used to convert the cloud network resource operation request into cloud network resource configuration information and send it to the corresponding gateway; the gateway controller corresponds one-to-one with the gateway.

[0135] A configuration module, deployed on the gateway, is used to configure cloud network resources based on the cloud network resource configuration information, obtain the cloud network resource configuration result, and return it to the gateway controller.

[0136] The status determination module, deployed on the gateway controller, is used to send the status update to the resource lifecycle management service through a state machine based on the cloud network resource configuration results for display to the user.

[0137] Optionally, the device further includes:

[0138] The first state determination module is deployed on the gateway controller and is used to obtain the first state of the cloud network resources at the previous moment.

[0139] The state determination module includes:

[0140] The second state determination module is used to determine the second state of the cloud network resources at the current moment based on the cloud network resource configuration results.

[0141] A state information determination module is used to determine the state information of the cloud network resource based on the first state and the second state through the state machine;

[0142] The status information sending module is used to send the status information of the cloud network resources to the resource lifecycle management service, and display it to the user in the form of status updates.

[0143] Optionally, the state machine defines an initial state, an active state, and an error state; the initial state indicates that the cloud network resources are not active at the underlying layer, the active state indicates that the cloud network resources are active at the underlying layer, and the error state indicates that the cloud network resources are in an unknown state at the underlying layer.

[0144] The status information determination module includes:

[0145] The first determining module is used to determine the status information of the cloud network resource as follows, through the state machine, when the first state is the initial state and the second state is the effective state: the creation of the cloud network resource was successfully issued to the gateway;

[0146] The second determining module is used to determine the status information of the cloud network resource as follows, through the state machine, when the first state is an effective state and the second state is an error state: update / query of the cloud network resource on the gateway failed.

[0147] The third determining module is used to determine the status information of the cloud network resource as follows, through the state machine, when the first state is an error state and the second state is an effective state: the cloud network resource was successfully updated / queried on the gateway.

[0148] The fourth determining module is used to determine the status information of the cloud network resource as follows through the state machine when the first state is an effective state and the second state is an initial state, or when the first state is an error state and the second state is an initial state: the cloud network resource was successfully deleted on the gateway.

[0149] Optionally, the device further includes:

[0150] A periodic acquisition module, deployed on the gateway controller, is used to periodically acquire cloud network resource configuration result information from the corresponding gateway;

[0151] The fault determination module, deployed in the gateway controller, is used to determine whether the corresponding gateway is faulty when the received cloud network resource operation request is determined to be a cloud network resource query request.

[0152] The query result acquisition module, deployed on the gateway controller, is used to determine the cloud network resource query result through a state machine based on the cloud network resource query request and the periodically acquired cloud network resource configuration result information when a corresponding gateway failure is determined.

[0153] The query result sending module, deployed on the gateway controller, is used to send the cloud network resource query results to the resource lifecycle management service for display to the user.

[0154] Optionally, the status information sending module includes:

[0155] The status aggregation module is used to aggregate the status information of multiple cloud network resources within a first time period to obtain the status aggregation result;

[0156] The unified status sending module is used to send the aggregated status results to the resource lifecycle management service for display to users.

[0157] Based on the same inventive concept, another embodiment of the present invention provides an electronic device, such as... Figure 7 As shown. Figure 7 This is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When executed by the processor, the program implements the steps of the resource status determination method described in any of the above embodiments of the present invention.

[0158] Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the resource status determination method described in any of the above embodiments of the present invention.

[0159] Based on the same inventive concept, another embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps in the resource status determination method described in any of the above embodiments of the present invention.

[0160] For system and device embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to in the description of the method embodiments.

[0161] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0162] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0163] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0164] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0166] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0167] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0168] The above provides a detailed description of the resource status determination method, system, apparatus, and product provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for determining resource status, characterized in that, The method includes: The resource lifecycle management service receives cloud network resource operation requests initiated by users, determines the identifier of the cloud network resource, and forwards the cloud network resource operation request to the corresponding gateway controller based on the identifier of the cloud network resource; the resource lifecycle management service communicates with multiple gateway controllers. The gateway controller converts the cloud network resource operation request into cloud network resource configuration information and sends it to the corresponding gateway; the gateway controller corresponds one-to-one with the gateway, and each gateway corresponds to multiple cloud network resources; the gateway controller aggregates the status of multiple cloud network resources and reports them in a unified manner. The gateway configures cloud network resources based on the cloud network resource configuration information, obtains the cloud network resource configuration result, and returns it to the gateway controller. Based on the cloud network resource configuration results, the gateway controller sends state updates to the resource lifecycle management service via a state machine for display to the user. The method further includes: The gateway controller obtains the first state of the cloud network resources at the previous moment; Based on the cloud network resource configuration results, the gateway controller sends state updates to the resource lifecycle management service via a state machine for user display, including: The gateway controller determines the second state of the cloud network resources at the current moment based on the cloud network resource configuration results; The gateway controller determines the state information of the cloud network resources based on the first state and the second state through the state machine; The gateway controller sends the status information of the cloud network resources to the resource lifecycle management service, and displays it to the user in the form of status updates; The state machine defines an initial state, an active state, and an error state. The initial state indicates that the cloud network resources are not active at the underlying layer, the active state indicates that the cloud network resources are active at the underlying layer, and the error state indicates that the cloud network resources are in an unknown state at the underlying layer. The gateway controller determines the state information of the cloud network resources based on the first state and the second state through the state machine, including: When the first state is the initial state and the second state is the effective state, the gateway controller determines the status information of the cloud network resource through the state machine as follows: the creation of the cloud network resource has been successfully issued to the gateway; When the first state is active and the second state is erroneous, the gateway controller determines the status information of the cloud network resource through the state machine as follows: updating / querying the cloud network resource on the gateway failed. When the first state is an error state and the second state is an effective state, the gateway controller determines the status information of the cloud network resource through the state machine as follows: the cloud network resource was successfully updated / queried on the gateway; When the first state is in an active state and the second state is in an initial state, or when the first state is in an error state and the second state is in an initial state, the gateway controller determines the status information of the cloud network resource through the state machine as: the cloud network resource was successfully deleted on the gateway.

2. The method according to claim 1, characterized in that, The method further includes: The gateway controller periodically obtains cloud network resource configuration result information from the corresponding gateway; If the gateway controller determines that the received cloud network resource operation request is a cloud network resource query request, it will determine whether the corresponding gateway is faulty. When a gateway fault is identified, the gateway controller determines the cloud network resource query result through a state machine based on the cloud network resource query request and the periodically acquired cloud network resource configuration result information. The gateway controller sends the cloud network resource query results to the resource lifecycle management service for display to the user.

3. The method according to claim 1, characterized in that, The gateway controller sends the status information of the cloud network resources to the resource lifecycle management service, and displays it to the user in the form of status updates, including: The gateway controller aggregates the status information of multiple cloud network resources within a first time period to obtain a status aggregation result; The gateway controller sends the aggregated state results to the resource lifecycle management service for display to the user.

4. A resource status determination system, characterized in that, The system is used to execute the resource status determination method as described in any one of claims 1 to 3. The system includes: a resource lifecycle management service, multiple gateway controllers and multiple gateways. The resource lifecycle management service is communicatively connected to the multiple gateway controllers. Each gateway controller corresponds to one of the gateways, and each gateway corresponds to multiple cloud network resources. The resource lifecycle management service is used to receive cloud network resource operation requests initiated by users, determine the identifier of the cloud network resource, and forward the cloud network resource operation request to the corresponding gateway controller based on the identifier of the cloud network resource. The gateway controller is used to convert the cloud network resource operation request into cloud network resource configuration information and send it to the corresponding gateway; The gateway is used to configure cloud network resources based on the cloud network resource configuration information, obtain the cloud network resource configuration result, and return it to the gateway controller. The gateway controller is used to send the cloud network resource configuration results to the resource lifecycle management service in the form of state updates via a state machine for display to the user.

5. A resource status determination device, characterized in that, The device includes: The forwarding module, deployed in the resource lifecycle management service, is used to receive cloud network resource operation requests initiated by users, determine the identifier of the cloud network resource, and forward the cloud network resource operation request to the corresponding gateway controller based on the identifier of the cloud network resource; the resource lifecycle management service is communicatively connected to multiple gateway controllers. A conversion module, deployed on the gateway controller, is used to convert the cloud network resource operation request into cloud network resource configuration information and send it to the corresponding gateway; the gateway controller corresponds one-to-one with the gateway, and each gateway corresponds to multiple cloud network resources; the gateway controller aggregates the status of multiple cloud network resources and reports them in a unified manner. A configuration module, deployed on the gateway, is used to configure cloud network resources based on the cloud network resource configuration information, obtain the cloud network resource configuration result, and return it to the gateway controller. The status determination module, deployed on the gateway controller, is used to send the status update to the resource lifecycle management service through a state machine based on the cloud network resource configuration results for display to the user. The device further includes: The first state determination module is deployed on the gateway controller and is used to obtain the first state of the cloud network resources at the previous moment. The state determination module includes: The second state determination module is used to determine the second state of the cloud network resources at the current moment based on the cloud network resource configuration results. A state information determination module is used to determine the state information of the cloud network resource based on the first state and the second state through the state machine; The status information sending module is used to send the status information of the cloud network resources to the resource lifecycle management service, and display it to the user in the form of status updates; Optionally, the state machine defines an initial state, an active state, and an error state; the initial state indicates that the cloud network resources are not active at the underlying layer, the active state indicates that the cloud network resources are active at the underlying layer, and the error state indicates that the cloud network resources are in an unknown state at the underlying layer. The status information determination module includes: The first determining module is used to determine the status information of the cloud network resource as follows, through the state machine, when the first state is the initial state and the second state is the effective state: the creation of the cloud network resource was successfully issued to the gateway; The second determining module is used to determine the status information of the cloud network resource as follows, through the state machine, when the first state is an effective state and the second state is an error state: update / query of the cloud network resource on the gateway failed. The third determining module is used to determine the status information of the cloud network resource as follows, through the state machine, when the first state is an error state and the second state is an effective state: the cloud network resource was successfully updated / queried on the gateway. The fourth determining module is used to determine the status information of the cloud network resource as follows through the state machine when the first state is an effective state and the second state is an initial state, or when the first state is an error state and the second state is an initial state: the cloud network resource was successfully deleted on the gateway.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the computer program is executed by the processor, it implements the resource status determination method as described in any one of claims 1 to 3.

7. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by the processor, it implements the resource status determination method as described in any one of claims 1 to 3.

8. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the resource status determination method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Resource operation method and device and storage medium

    CN114138598A

  • Service processing method based on cloud native gateway, related device and storage medium

    CN117834737A

  • Method and device for updating resource state information and storage medium

    CN118101675A