Request processing method, device, electronic device and storage medium
By coordinating network nodes and computing power nodes in the request processing system, dynamically selecting paths based on service type and network status, the problem of low network service quality in the existing technology is solved, and more efficient service request processing and resource utilization is achieved, improving the The quality of network services.
Patent Information
- Application Number
- CN202211214308.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-09-30
AI Technical Summary
When existing network architectures provide multiple network services, it is difficult to effectively improve service quality, especially due to the lack of collaborative cooperation between network nodes and limited resources, resulting in low efficiency in service request processing and inability to make full use of network resources.
In the request processing system, the management node coordinates multiple network nodes and computing power nodes, and dynamically determines the target network path and service module based on the service type and network status information requested by the user to ensure that the service request can be reached through the optimal path and provide corresponding information. The computing power node of the service is improved, thereby improving the quality of network services.
By combining network status and service type, optimize the path selection of service requests, meet business needs, improve the response speed and bandwidth utilization of network services, and improve user experience.
Smart Images

Figure CN115665262B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network technology, and in particular to a request processing method, device, electronic device and storage medium. Background Art
[0002] With the rapid development of network technology, different network services can be provided to users through nodes deployed in the network, such as VR (Virtual Reality) services and V2X (Vehicle To Everything) services.
[0003] However, a network usually includes multiple nodes, and each node can provide at least one network service. How to improve the quality of service of the network service based on the multiple nodes has become an urgent problem to be solved. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a request processing method, device, electronic device and storage medium to improve the service quality of network services. The specific technical solution is as follows:
[0005] In a first aspect, in order to achieve the above-mentioned purpose, an embodiment of the present application discloses a request processing method, which is applied to a management node in a request processing system, wherein the request processing system further comprises a plurality of network nodes and a plurality of computing nodes; each computing node is communicatively connected to a network node, and each computing node is deployed with at least one service module for providing network services, wherein the method comprises:
[0006] Receive a first service request sent by a user terminal; wherein the first service request carries a service identifier representing the network service requested by the user terminal;
[0007] Determine, from the service modules included in each computing power node, a service module that is consistent with the service identifier as a candidate service module;
[0008] For each candidate service module, determine a network path between a computing node to which the candidate service module belongs and the user terminal as a candidate network path;
[0009] Based on the network status information of each network node, according to the path search strategy corresponding to the type of network service represented by the service identifier, a target network path is determined from each candidate network path, and a target service module is determined from the candidate service modules included in the computing power node corresponding to the target network path; wherein the target service module is used to provide the network service requested by the user terminal;
[0010] A first service response carrying the network address of the target service module is sent to the user terminal, and forwarding information matching the target network path is sent to each network node in the target network path, so that the user terminal sends a second service request carrying the network address of the target service module to the network nodes in the target network path, and each network node in the target network path forwards the second service request according to the received forwarding information until the computing node deployed with the target service module receives the second service request and responds to the second service request through the target service module.
[0011] Optionally, the network service represented by the service identifier is a delay-demanding network service; the network status information includes the delay between network nodes;
[0012] The determining of the target network path from each candidate network path based on the network status information of each network node and according to the path search strategy corresponding to the type of the network service represented by the service identifier includes:
[0013] For each candidate network path, based on the delay between the network nodes in the candidate network path, calculate the delay between the user terminal and the computing power node to which the corresponding candidate service module belongs in the candidate network path as the delay of the candidate network path;
[0014] The alternative network path with the smallest delay is determined as the target network path.
[0015] Optionally, the network service represented by the type identifier is a bandwidth-demanding network service; the network status information includes bandwidth information of an interface of a network node;
[0016] The determining of the target network path from each candidate network path based on the network status information of each network node and according to the path search strategy corresponding to the type of the network service represented by the service identifier includes:
[0017] For each candidate network path, based on bandwidth information of interfaces of each network node in the candidate network path, calculate the available bandwidth of the candidate network path;
[0018] The alternative network path with the largest available bandwidth is determined as the target network path.
[0019] Optionally, the first service request also carries the network address of the user terminal;
[0020] The determining, from the service modules included in each computing power node, a service module consistent with the service identifier as a candidate service module includes:
[0021] A service module that is consistent with the service identifier and to which the network address of the computing node and the network address of the user end belong is determined from the service modules included in each computing node as a candidate service module.
[0022] Optionally, the forwarding information of a network node in the target network path includes: the network address of the target service module, the next hop in the target network path, and the correspondence between the output interface, and is used to instruct the network node to forward the received second service request to the next hop in the target network path through the corresponding output interface when receiving the second service request carrying the network address of the target service module.
[0023] In a second aspect, in order to achieve the above-mentioned purpose, an embodiment of the present application discloses a request processing device, which is applied to a management node in a request processing system, wherein the request processing system further includes a plurality of network nodes and a plurality of computing nodes, each computing node is communicatively connected to a network node, and each computing node is deployed with at least one service module for providing network services, wherein the device includes:
[0024] A first service request receiving unit, configured to receive a first service request sent by a user terminal; wherein the first service request carries a service identifier representing the network service requested by the user terminal;
[0025] A candidate service module determining unit, configured to determine a service module consistent with the service identifier from the service modules included in each computing power node as a candidate service module;
[0026] An alternative network path determination unit, configured to determine, for each alternative service module, a network path between a computing node to which the alternative service module belongs and the user terminal as an alternative network path;
[0027] A target network path determination unit is used to determine the target network path from each candidate network path based on the network status information of each network node and according to the path search strategy corresponding to the type of network service represented by the service identifier, and determine a target service module from the candidate service modules included in the computing power node corresponding to the target network path; wherein the target service module is used to provide the network service requested by the user terminal;
[0028] An information sending unit is used to send a first service response carrying the network address of the target service module to the user terminal, and to send forwarding information matching the target network path to each network node in the target network path, so that the user terminal sends a second service request carrying the network address of the target service module to the network node in the target network path, and each network node in the target network path forwards the second service request according to the received forwarding information until the computing node deployed with the target service module receives the second service request and responds to the second service request through the target service module.
[0029] Optionally, the network service represented by the service identifier is a delay-demanding network service; the network status information includes the delay between network nodes;
[0030] The target network path determination unit is specifically configured to calculate, for each candidate network path, a delay between the user terminal and a computing node to which a corresponding candidate service module belongs in the candidate network path based on the delay between network nodes in the candidate network path, as the delay of the candidate network path;
[0031] The alternative network path with the smallest delay is determined as the target network path.
[0032] Optionally, the network service represented by the type identifier is a bandwidth-demanding network service; the network status information includes bandwidth information of an interface of a network node;
[0033] The target network path determination unit is specifically configured to calculate, for each candidate network path, the available bandwidth of the candidate network path based on the bandwidth information of the interface of each network node in the candidate network path;
[0034] The alternative network path with the largest available bandwidth is determined as the target network path.
[0035] Optionally, the first service request also carries the network address of the user terminal;
[0036] The candidate service module determination unit is specifically used to determine, from the service modules included in each computing node, a service module that is consistent with the service identifier and whose network address of the computing node belongs to the same area as the network address of the user terminal, as a candidate service module.
[0037] Optionally, the forwarding information of a network node in the target network path includes: the network address of the target service module, the next hop in the target network path, and the correspondence between the output interface, and is used to instruct the network node to forward the received second service request to the next hop in the target network path through the corresponding output interface when receiving the second service request carrying the network address of the target service module.
[0038] In a third aspect, in order to achieve the above-mentioned purpose, an embodiment of the present application discloses a request processing system, the system comprising a management node, multiple network nodes and multiple computing nodes; each computing node is communicatively connected to a network node, and each computing node is deployed with at least one service module for providing network services; wherein:
[0039] The management node is used to execute any of the request processing methods described above;
[0040] Each network node is used to forward the received service request according to the forwarding information sent by the management node;
[0041] Each computing power node is used to respond to the received service request through the service module corresponding to the network address carried in the received service request when receiving the service request.
[0042] In a fourth aspect, in order to achieve the above-mentioned purpose, an embodiment of the present application discloses an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
[0043] Memory, used to store computer programs;
[0044] The processor is used to implement any of the request processing methods described above when executing the program stored in the memory.
[0045] In a fifth aspect, in order to achieve the above-mentioned purpose, an embodiment of the present application discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, any of the request processing methods described above is implemented.
[0046] In a sixth aspect, in order to achieve the above-mentioned purpose, an embodiment of the present application discloses a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the request processing methods described above.
[0047] Beneficial effects of the embodiments of the present application:
[0048] The request processing method provided by the embodiment of the present application is that the management node receives a first service request sent by a user terminal; wherein the first service request carries a service identifier representing the network service requested by the user terminal; a service module consistent with the service identifier is determined from the service modules included in each computing power node as an alternative service module; for each alternative service module, a network path between the computing power node to which the alternative service module belongs and the user terminal is determined as an alternative network path; based on the network status information of each network node, a target network path is determined from each alternative network path according to a path search strategy corresponding to the type of network service represented by the service identifier, and a computing power node corresponding to the target network path is obtained. A target service module is determined from the included alternative service modules; wherein the target service module is used to provide the network service requested by the user end; a first service response carrying the network address of the target service module is sent to the user end, and forwarding information matching the target network path is sent to each network node in the target network path; the user end sends a second service request carrying the network address of the target service module to the network node in the target network path; each network node in the target network path forwards the second service request according to the received forwarding information until the computing power node deployed with the target service module receives the second service request, and responds to the second service request through the target service module.
[0049] Based on the above processing, since different types of network services have different requirements for the network, the target network path is determined based on the path search strategy corresponding to the type of network service and the network status information of each network node, and then the service request is processed according to the target network path, which can meet the business needs of the service request, that is, the service request can be processed in combination with the status of the network, which can make full use of the processing performance of the network and improve the service quality of the network service.
[0050] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0052] Figure 1 A structural diagram of an edge network;
[0053] Figure 2 A schematic diagram of processing a service request in the related art;
[0054] Figure 3 A structural diagram of a request processing system provided in an embodiment of the present application;
[0055] Figure 4 An example diagram of a request processing method provided in an embodiment of the present application;
[0056] Figure 5 A logical diagram of a management node processing a service request provided in an embodiment of the present application;
[0057] Figure 6 A structural diagram of a request processing device provided in an embodiment of the present application;
[0058] Figure 7 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.
[0060] With the widespread application of AI (Artificial Intelligence) and 5G technology, emerging businesses such as the Internet of Things, big video, and the Internet of Vehicles have flourished. The existing network architecture and centralized cloud deployment methods are difficult to meet business needs. Therefore, it has become a new industry trend to migrate networks and clouds to the edge along with business flows through edge computing.
[0061] In the related technologies, from the network perspective, the resources of a single edge site are limited, and there is a lack of coordination between multiple edge sites. From the business perspective, the application layer is decoupled from the network layer, and the business cannot perceive the network status. Therefore, in order to improve the quality of network services, the network architecture needs to collaboratively consider the converged evolution of network and computing, and realize the global optimization of the network in the "connection + computing" architecture, so that the network can perceive computing and services, and realize flexible scheduling of services and reasonable distribution of services based on real-time resource status and user SLA (Service Level Agreement) requirements, thereby providing users with a good experience.
[0062] See also Figure 1 , Figure 1This is a structural diagram of an edge network. The edge network includes a central node and multiple edge nodes. Multiple service modules can be deployed on each edge node at the same time. The same service module can be deployed on different edge nodes at the same time to provide users with different network services. For example, VR service modules are deployed on both edge node 1 and edge node 2.
[0063] For example, based on CDN (Content Delivery Network) technology, cache servers (CDN cache servers) can be deployed in areas or networks where user access is relatively concentrated. When a user accesses a network service, the global load technology is used to direct the user's access to the nearest cache server, which responds to the user's request.
[0064] See also Figure 2 , Figure 2 The figure is a schematic diagram of processing a service request in the related art.
[0065] ①. When a user clicks on a service option on an APP (Application, i.e., the user end), the user end sends an IP address resolution request to the local DNS (Domain Name System) based on the URL (Uniform Resource Locator) of the resource requested by the user.
[0066] ②. The local DNS forwards the IP (Internet Protocol) address resolution request to the CDN dedicated DNS server.
[0067] ③. The CDN dedicated DNS server sends the IP address of the CDN load balancing device to the user end.
[0068] ④. The client sends a URL access request to the CDN load balancing device.
[0069] ⑤. The CDN load balancing device selects a CDN cache server from the area where the user belongs based on the IP address of the user and the URL requested by the user.
[0070] ⑥. The CDN load balancing device sends the IP address of the CDN cache server to the user end.
[0071] ⑦. The client sends a resource request to the CDN cache server, and the CDN cache server sends a resource response to the client.
[0072] ⑧. If the resource requested by the client does not exist in the CDN cache server, the CDN cache server requests the resource from the source server of the service and sends the requested resource to the client.
[0073] It can be seen that in the related technology, the application layer is decoupled from the network layer, that is, the network service cannot perceive the network status of the network. For example, in step ⑤ of the above process, when the CDN load balancing device determines the CDN cache server, it does not consider the network status between the user end and the CDN cache server, and thus fails to process the request in combination with the network status, and fails to fully utilize the processing performance of the network, resulting in low service quality of the network service, and failing to enable the service to meet the user's best experience.
[0074] In order to solve the above problems, the present application provides a request processing method, which is applied to a management node in a request processing system. Figure 3 , Figure 3 A structural diagram of a request processing system provided in an embodiment of the present application. The management node in the present application may also be referred to as a centralized manager. Figure 3 In the example, the request processing system includes a centralized manager, multiple network nodes, and multiple computing nodes; each computing node is communicatively connected to a network node, and each computing node is deployed with at least one service module and a data transceiver module for providing network services. Among them, the data transceiver module is used to receive a service request sent by a user terminal, and forward the service request to a corresponding service module, as well as to receive a service response sent by a service module, and forward the service response to the user terminal. For example, service module 1-service module n are deployed in computing node 1-1. Each service module can provide corresponding network services, such as VR services, V2X services, live video services, file storage services, etc.
[0075] Accordingly, see Figure 4 , Figure 4 An example diagram of a request processing method provided in an embodiment of the present application, the method may include the following steps:
[0076] S401: Receive a first service request sent by a user terminal.
[0077] The first service request carries a service identifier representing the network service requested by the user terminal.
[0078] S402: Determine a service module that is consistent with the service identifier from the service modules included in each computing power node as a candidate service module.
[0079] S403: For each candidate service module, determine a network path between the computing node to which the candidate service module belongs and the user end as a candidate network path.
[0080] S404: Based on the network status information of each network node, according to the path search strategy corresponding to the type of network service represented by the service identifier, determine the target network path from each alternative network path, and determine a target service module from the alternative service modules included in the computing node corresponding to the target network path.
[0081] The target service module is used to provide the network service requested by the user.
[0082] S405: Send a first service response carrying the network address of the target service module to the user end, and send forwarding information matching the target network path to each network node in the target network path, so that the user end sends a second service request carrying the network address of the target service module to the network node in the target network path, and each network node in the target network path forwards the second service request according to the received forwarding information until the computing node deployed with the target service module receives the second service request and responds to the second service request through the target service module.
[0083] Based on the request processing method provided in the embodiment of the present application, since different types of network services have different requirements for the network, the target network path is determined based on the path search strategy corresponding to the type of network service and the network status information of each network node, and then the service request is processed according to the target network path, which can meet the business needs of the service request, that is, the service request can be processed in combination with the status of the network, which can make full use of the processing performance of the network and improve the service quality of the network service.
[0084] For steps S401 and S402, the network node in the request processing system may be a router in the network. The computing node is a node used to provide network services. For example, the computing node may be a physical server, or may be a cloud platform with a virtual machine deployed. The service module in the computing node may be software that provides network services.
[0085] The service module that is consistent with the service identifier is the service module that can provide the corresponding network service. Since the request processing system includes multiple computing nodes, and each computing node is deployed with at least one service module, the service modules deployed in each computing node can be the same or different. In other words, in the request processing system, there can be multiple service modules that can provide the same network service.
[0086] The user terminal can send a service request carrying a corresponding service identifier to the management node according to the user's needs. After receiving the service request, the management node can determine the network service requested by the user based on the service identifier, and accordingly, can select a service module that can provide the network service to respond to the user's service request through the selected service module.
[0087] In one implementation, all service modules in the request processing system that are consistent with the service identifier may be determined as candidate service modules.
[0088] In another implementation, in order to improve the service quality of the network service, the first service request also carries the network address of the user terminal; accordingly, the above step S402 may include the following steps: determine, from the service modules included in each computing power node, a service module that is consistent with the service identifier and whose network address of the computing power node belongs to the same area as the network address of the user terminal, as an alternative service module.
[0089] In the embodiment of the present application, if the network address of the computing node to which the service module belongs and the network address of the user end belong to the same area, it indicates that the physical distance between the computing node to which the service module belongs and the user end is relatively close. Accordingly, if the service request of the user end is responded to through the service module, the service quality of the network service can be improved. Therefore, the service module to which the network address of the computing node belongs and the network address of the user end belong to the same area can be determined as an alternative service module.
[0090] With respect to step S403, one candidate service module may correspond to one candidate network path or may correspond to multiple candidate network paths, that is, the user end may perform data communication with the same candidate service module through multiple different network paths.
[0091] It can be understood that the alternative network path includes at least one network node, through which the service request sent by the user terminal can be forwarded to the alternative service module in the corresponding computing power node.
[0092] For step S404 and step S405, the type of network service can be determined according to the demand of network service. For example, for V2X service, since it requires a small delay to ensure the safety of autonomous driving, the type of V2X service can be a delay-demand type, that is, for delay-demand type network services, it is necessary to reduce the response time of service requests. For VR service, since it needs to transmit a large amount of data and occupies a large amount of bandwidth resources, the type of VR service can be a bandwidth-demand type.
[0093] Since different types of network services have different requirements on the network, the target network path determined based on the path search strategy corresponding to the type of network service and the network status information of the network nodes can meet the business needs of the service request.
[0094] It can be understood that the target network path includes at least one network node, through which the service request sent by the user terminal can be forwarded to the computing power node (which can be called the target computing power node) to which the target service module belongs, that is, the target computing power node is communicated with the last network node in the target network path.
[0095] Since the forwarding information matches the target network path, the network node forwards the service request according to the forwarding information, and can also forward the service request according to the target network path, so that the service request can be transmitted from the user end to the target computing power node according to the target network path. Then, the target computing power node can respond to the service request through the target service module.
[0096] If the target computing power node includes an alternative service module that provides the network service requested by the user, the alternative service module can be determined as the target service module.
[0097] If the target computing power node includes multiple alternative service modules that provide the network service requested by the user, one of the multiple alternative service modules can be selected as the target service module according to a preset selection strategy.
[0098] For example, the target service module can be selected based on the load balancing strategy. For example, the management node can determine the load of each candidate service module and determine the candidate service module with the smallest load as the target service module. Alternatively, there is a specified order between multiple candidate service modules, and accordingly, the management node can determine the current candidate service module as the target service module according to the specified order.
[0099] For another example, the management node may randomly select a candidate service module as the target service module.
[0100] In addition, the management node may also send the network address of the first network node in the target network path to the user terminal. Furthermore, the user terminal may send a second service request carrying the network address of the target service module to the first network node in the target network path. The first network node forwards the second service request to the second network node according to the forwarding information, and so on, until the target computing power node receives the second service request.
[0101] In one embodiment, each computing node may include a data transceiver module. Each computing node may generate a corresponding network address for the deployed service module, for example, a VIP (Virtual Internet Protocol) address, and then the computing node may notify the network node connected to the communication via the data transceiver module of its own node identification and the network address of the deployed service module. In addition, when receiving a service request, the data transceiver module may also forward the service request to the corresponding service module so that the service module responds to the service request.
[0102] Accordingly, each network node can notify the management node of the node identifier of the computing node and the network address of the service module deployed in the computing node, and can notify other network nodes and the management node of its own routing information.
[0103] In addition, each network node may also periodically send network status information to the management node.
[0104] For example, see Figure 5 , Figure 5 A logical diagram of a management node processing a service request provided in an embodiment of the present application. The management node may include a collection module, a decision module, an execution module, and a service management module. The collection module may obtain the routing information, service information (including the identifier of the computing power node, the network address of the service module deployed in the computing power node) and the network status information of the network node uploaded by each network node. Accordingly, based on the above-mentioned information recorded, the routing information for each service module can be determined, and the service information can be sent to the service management module, and the routing information and network status information can be sent to the decision module. The service management module can determine the service type corresponding to the service request, and then, the corresponding path search strategy and alternative service module can be determined, and sent to the decision module. The decision module can determine the target network path from the alternative network path corresponding to the alternative service module according to the path search strategy, and determine a target service module from the alternative service module contained in the computing power node corresponding to the target network path, and send the target network path and the network address of the target service module to the execution module; the execution module can send the network address of the target service module to the user end, and send forwarding information matching the target network path to each network node in the target network path. Based on this, the management node can obtain the latest network status information, so that the determined target network path can effectively match the current network status, further improving the service quality of the network service.
[0105] In one embodiment, the forwarding information of a network node in a target network path includes: the network address of a target service module, the next hop in the target network path, and the correspondence between an output interface, and is used to instruct the network node to forward the received second service request to the next hop in the target network path through the corresponding output interface when receiving a second service request carrying the network address of the target service module.
[0106] In an embodiment of the present application, after obtaining the routing information of each network node and the network address of the service module deployed in each computing node, the management node can determine the target network path according to the corresponding path search strategy, that is, each network node from the user end to the target computing node can be determined, and the order of each network node in the target network path can be determined.
[0107] Correspondingly, for each network node in the target network path, the management node can determine the next network node of the network node (i.e., the corresponding next hop), and thus determine the output interface corresponding to the next hop. Correspondingly, the management node can send the corresponding relationship between the network address, next hop, and output interface of the target service module to the network node.
[0108] Furthermore, when receiving a second service request carrying the network address of the target service module, the network node can query the corresponding relationship, and can forward the received second service request to the next hop in the target network path through the outbound interface recorded in the corresponding relationship.
[0109] It is understandable that the last network node in the target network path can forward the second service request to the target computing power node. After the target computing power node parses the network address of the target service module carried in the second service request, it can respond to the second service request through the target service module. In addition, the target computing power node can also send the second service request to the user end through the target network path.
[0110] In one embodiment, the network service represented by the service identifier is a delay-demanding network service; the network status information includes the delay between network nodes; accordingly, the above step S404 may include the following steps:
[0111] Step 1: For each alternative network path, based on the delay between network nodes in the alternative network path, calculate the delay between the user end and the computing power node to which the corresponding alternative service module belongs in the alternative network path as the delay of the alternative network path.
[0112] Step 2: Determine the alternative network path with the smallest delay as the target network path.
[0113] The delay between two network nodes may represent: the time required for network data to be transmitted from one network node to another network node.
[0114] In an embodiment of the present application, for delay-demanding network services such as V2X services, since they require a smaller delay, that is, the response time of service requests needs to be reduced to ensure the safety of autonomous driving, when determining that the network service represented by the service identifier is a delay-demanding network service, the management node can obtain the delay between network nodes uploaded by each network node.
[0115] For example, for each candidate network path, the management node may obtain the delay between every two adjacent network nodes in the candidate network path, and then calculate the sum of the delays as the delay of the candidate network path.
[0116] Furthermore, the alternative network path with the smallest delay is determined as the target network path, so that the time it takes for the target service module to respond to the service request can be reduced through the target network path, thereby meeting the business needs of delay-demanding network services and improving the service quality of network services.
[0117] In one embodiment, the network service represented by the type identifier is a bandwidth-demanding network service; the network status information includes bandwidth information of the interface of the network node; accordingly, the above step S404 may include the following steps:
[0118] Step 1: For each candidate network path, based on bandwidth information of interfaces of each network node in the candidate network path, calculate the available bandwidth of the candidate network path.
[0119] Step 2: Determine the candidate network path with the largest available bandwidth as the target network path.
[0120] The bandwidth information of the interface may include the maximum bandwidth of the interface and the bandwidth currently used by the interface, or may also include the bandwidth utilization rate of the interface, that is, the ratio of the bandwidth currently used by the interface to the maximum bandwidth.
[0121] In an embodiment of the present application, for bandwidth-demanding network services such as VR services and live video broadcasts, since the amount of data they need to transmit is large and occupies a large amount of bandwidth resources, when determining that the network service represented by the service identifier is a bandwidth-demanding network service, the management node can obtain the bandwidth information of the interface of the network node uploaded by each network node.
[0122] For example, for each candidate network path, the management node may obtain the bandwidth utilization of the interface of each network node in the candidate network path, and then use the maximum value of each bandwidth utilization as the available bandwidth of the candidate network path.
[0123] Alternatively, for each alternative network path, the management node may obtain the remaining bandwidth of the interface of each network node in the alternative network path (ie, the difference between the maximum bandwidth and the currently used bandwidth), and then use the minimum of the remaining bandwidths as the available bandwidth of the alternative network path.
[0124] Furthermore, the candidate network path with the largest available bandwidth is determined as the target network path, so that the bandwidth demand of the service request can be met through the target network path, thereby improving the service quality of the network service.
[0125] Based on the same inventive concept, the present application also provides a request processing system, which includes a management node, multiple network nodes and multiple computing nodes; each computing node is communicatively connected to a network node, and each computing node is deployed with at least one service module for providing network services; wherein:
[0126] A management node, used to execute the request processing method described in the above embodiment;
[0127] Each network node is used to forward the received service request according to the forwarding information sent by the management node;
[0128] Each computing power node is used to respond to the received service request through the service module corresponding to the network address carried in the received service request when receiving the service request.
[0129] Based on the same inventive concept, the present application also provides a request processing device, see Figure 6 , Figure 6 This is a structural diagram of a request processing device provided in an embodiment of the present application. The device is applied to a management node in a request processing system. The request processing system further includes multiple network nodes and multiple computing nodes. Each computing node is communicatively connected to a network node. At least one service module for providing network services is deployed in each computing node. The device includes:
[0130] The first service request receiving unit 601 is used to receive a first service request sent by a user terminal; wherein the first service request carries a service identifier representing the network service requested by the user terminal;
[0131] A candidate service module determining unit 602 is used to determine a service module consistent with the service identifier from the service modules included in each computing power node as a candidate service module;
[0132] The candidate network path determining unit 603 is used to determine, for each candidate service module, a network path between the computing node to which the candidate service module belongs and the user terminal as a candidate network path;
[0133] The target network path determination unit 604 is used to determine the target network path from each candidate network path based on the network status information of each network node and according to the path search strategy corresponding to the type of network service represented by the service identifier, and determine a target service module from the candidate service modules included in the computing power node corresponding to the target network path; wherein the target service module is used to provide the network service requested by the user terminal;
[0134] The information sending unit 605 is used to send a first service response carrying the network address of the target service module to the user terminal, and to send forwarding information matching the target network path to each network node in the target network path, so that the user terminal sends a second service request carrying the network address of the target service module to the network node in the target network path, and each network node in the target network path forwards the second service request according to the received forwarding information until the computing node deployed with the target service module receives the second service request and responds to the second service request through the target service module.
[0135] Optionally, the network service represented by the service identifier is a delay-demanding network service; the network status information includes the delay between network nodes;
[0136] The target network path determination unit 604 is specifically configured to calculate, for each candidate network path, a delay between the user terminal and a computing node to which a corresponding candidate service module belongs in the candidate network path based on the delay between network nodes in the candidate network path, as the delay of the candidate network path;
[0137] The alternative network path with the smallest delay is determined as the target network path.
[0138] Optionally, the network service represented by the type identifier is a bandwidth-demanding network service; the network status information includes bandwidth information of an interface of a network node;
[0139] The target network path determination unit 604 is specifically configured to calculate, for each candidate network path, the available bandwidth of the candidate network path based on the bandwidth information of the interface of each network node in the candidate network path;
[0140] The alternative network path with the largest available bandwidth is determined as the target network path.
[0141] Optionally, the first service request also carries the network address of the user terminal;
[0142] The candidate service module determination unit 602 is specifically used to determine, from the service modules included in each computing node, a service module that is consistent with the service identifier and whose network address of the computing node belongs to the same area as the network address of the user terminal, as a candidate service module.
[0143] Optionally, the forwarding information of a network node in the target network path includes: the network address of the target service module, the next hop in the target network path, and the correspondence between the output interface, and is used to instruct the network node to forward the received second service request to the next hop in the target network path through the corresponding output interface when receiving the second service request carrying the network address of the target service module.
[0144] The present application also provides an electronic device, such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.
[0145] Memory 703, used for storing computer programs;
[0146] The processor 701 is used to execute the program stored in the memory 703 to implement the following steps:
[0147] Receive a first service request sent by a user terminal; wherein the first service request carries a service identifier representing the network service requested by the user terminal;
[0148] Determine, from the service modules included in each computing power node, a service module that is consistent with the service identifier as a candidate service module;
[0149] For each candidate service module, determine a network path between a computing node to which the candidate service module belongs and the user terminal as a candidate network path;
[0150] Based on the network status information of each network node, according to the path search strategy corresponding to the type of network service represented by the service identifier, a target network path is determined from each candidate network path, and a target service module is determined from the candidate service modules included in the computing power node corresponding to the target network path; wherein the target service module is used to provide the network service requested by the user terminal;
[0151] A first service response carrying the network address of the target service module is sent to the user terminal, and forwarding information matching the target network path is sent to each network node in the target network path, so that the user terminal sends a second service request carrying the network address of the target service module to the network nodes in the target network path, and each network node in the target network path forwards the second service request according to the received forwarding information until the computing node deployed with the target service module receives the second service request and responds to the second service request through the target service module.
[0152] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0153] The communication interface is used for communication between the above electronic device and other devices.
[0154] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0155] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0156] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above request processing methods are implemented.
[0157] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any request processing method in the above embodiments.
[0158] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0159] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0160] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, system, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0161] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. A request processing method, characterized in that: The method is applied to a management node in a request processing system, wherein the request processing system further comprises a plurality of network nodes and a plurality of computing power nodes; Each computing node is in communication connection with a network node, and each computing node is deployed with at least one service module for providing network services. The method includes: Receive a first service request sent by a user terminal; wherein the first service request carries a service identifier representing the network service requested by the user terminal; Determine, from the service modules included in each computing power node, a service module that is consistent with the service identifier as a candidate service module; For each candidate service module, determine a network path between a computing node to which the candidate service module belongs and the user terminal as a candidate network path; Based on the network status information of each network node, according to the path search strategy corresponding to the type of network service represented by the service identifier, a target network path is determined from each candidate network path, and a target service module is determined from the candidate service modules included in the computing power node corresponding to the target network path; wherein the target service module is used to provide the network service requested by the user terminal; Sending a first service response carrying the network address of the target service module to the user terminal, and sending forwarding information matching the target network path to each network node in the target network path, so that the user terminal sends a second service request carrying the network address of the target service module to the network node in the target network path, and each network node in the target network path forwards the second service request according to the received forwarding information until the computing node deployed with the target service module receives the second service request and responds to the second service request through the target service module; The first service request also carries the network address of the user terminal; The determining, from the service modules included in each computing power node, a service module consistent with the service identifier as a candidate service module includes: A service module that is consistent with the service identifier and to which the network address of the computing node and the network address of the user end belong is determined from the service modules included in each computing node as a candidate service module.
2. The method according to claim 1, characterized in that: The network service represented by the service identifier is a delay-demanding network service; the network status information includes the delay between network nodes; The determining of the target network path from each candidate network path based on the network status information of each network node and according to the path search strategy corresponding to the type of the network service represented by the service identifier includes: For each candidate network path, based on the delay between the network nodes in the candidate network path, calculate the delay between the user terminal and the computing power node to which the corresponding candidate service module belongs in the candidate network path as the delay of the candidate network path; The alternative network path with the smallest delay is determined as the target network path.
3. The method according to claim 1, characterized in that The network service represented by the type identifier is a bandwidth-demanding network service; the network status information includes bandwidth information of the interface of the network node; The determining of the target network path from each candidate network path based on the network status information of each network node and according to the path search strategy corresponding to the type of the network service represented by the service identifier includes: For each candidate network path, based on bandwidth information of interfaces of each network node in the candidate network path, calculate the available bandwidth of the candidate network path; The alternative network path with the largest available bandwidth is determined as the target network path.
4. The method according to claim 1, characterized in that: The forwarding information of a network node in the target network path includes: the network address of the target service module, the next hop in the target network path, and the correspondence between the output interface, and is used to instruct the network node to forward the received second service request to the next hop in the target network path through the corresponding output interface when receiving the second service request carrying the network address of the target service module.
5. A request processing device, characterized in that: The device is applied to a management node in a request processing system, the request processing system further includes a plurality of network nodes and a plurality of computing nodes, each computing node is communicatively connected with a network node, and each computing node is deployed with at least one service module for providing network services, the device includes: A first service request receiving unit, configured to receive a first service request sent by a user terminal; wherein the first service request carries a service identifier representing the network service requested by the user terminal; A candidate service module determining unit, configured to determine a service module consistent with the service identifier from the service modules included in each computing power node as a candidate service module; An alternative network path determination unit, configured to determine, for each alternative service module, a network path between a computing node to which the alternative service module belongs and the user terminal as an alternative network path; A target network path determination unit is used to determine the target network path from each candidate network path based on the network status information of each network node and according to the path search strategy corresponding to the type of network service represented by the service identifier, and determine a target service module from the candidate service modules included in the computing power node corresponding to the target network path; wherein the target service module is used to provide the network service requested by the user terminal; An information sending unit, used to send a first service response carrying the network address of the target service module to the user terminal, and send forwarding information matching the target network path to each network node in the target network path, so that the user terminal sends a second service request carrying the network address of the target service module to the network node in the target network path, and each network node in the target network path forwards the second service request according to the received forwarding information until the computing node deployed with the target service module receives the second service request and responds to the second service request through the target service module; The first service request also carries the network address of the user terminal; The candidate service module determination unit is specifically used to determine, from the service modules included in each computing node, a service module that is consistent with the service identifier and whose network address of the computing node belongs to the same area as the network address of the user terminal, as a candidate service module.
6. The device according to claim 5, characterized in that The network service represented by the service identifier is a delay-demanding network service; the network status information includes the delay between network nodes; The target network path determination unit is specifically configured to calculate, for each candidate network path, a delay between the user terminal and a computing node to which a corresponding candidate service module belongs in the candidate network path based on the delay between network nodes in the candidate network path, as the delay of the candidate network path; The alternative network path with the smallest delay is determined as the target network path.
7. The device according to claim 5, characterized in that The network service represented by the type identifier is a bandwidth-demanding network service; the network status information includes bandwidth information of the interface of the network node; The target network path determination unit is specifically configured to calculate, for each candidate network path, the available bandwidth of the candidate network path based on the bandwidth information of the interface of each network node in the candidate network path; The alternative network path with the largest available bandwidth is determined as the target network path.
8. The device according to claim 5, characterized in that The forwarding information of a network node in the target network path includes: the network address of the target service module, the next hop in the target network path, and the correspondence between the output interface, and is used to instruct the network node to forward the received second service request to the next hop in the target network path through the corresponding output interface when receiving the second service request carrying the network address of the target service module.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 4 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 4 are implemented.
