Disclosure of Invention
The embodiment of the application aims to provide a request processing method, a request processing device, electronic equipment and a storage medium, so as to improve the service quality of network service. The specific technical scheme is as follows:
In order to achieve the above object, an embodiment of the present application discloses a request processing method, which is applied to a management node in a request processing system, where 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 at least one service module for providing network services is disposed in each computing node, the method comprising:
Receiving a first service request sent by a user side; the first service request carries a service identifier for representing the network service requested by the user side;
determining a service module consistent with the service identifier from service modules contained in each computing node as an alternative service module;
for each alternative service module, determining a network path between the computing power node to which the alternative service module belongs and the user side as an alternative network path;
Based on network state information of each network node, determining a target network path from each alternative network path according to a path searching strategy corresponding to the type of the network service represented by the service identifier, and determining a target service module from alternative service modules contained in the computing nodes corresponding to the target network path; the target service module is used for providing network service requested by the user side;
And transmitting a first service response carrying the network address of the target service module to the user terminal, transmitting forwarding information matched with the target network path to each network node in the target network path, so that the user terminal transmits a second service request carrying the network address of the target service module to the network nodes in the target network path, and forwarding the second service request by each network node in the target network path according to the received forwarding information until an algorithm node deployed with the target service module receives the second service request and responds to the second service request through the target service module.
Optionally, the network service represented by the service identifier is a delay demand network service; the network state information includes a delay between network nodes;
the determining, based on the network state information of each network node, a target network path from the candidate network paths according to a path searching policy corresponding to the type of the network service represented by the service identifier, includes:
For each alternative network path, calculating the delay between the user side and the computing power node of the corresponding alternative service module in the alternative network path based on the delay between the network nodes in the alternative network path, and taking the delay as the delay of the alternative network path;
and determining the candidate network path with the minimum delay as a target network path.
Optionally, the network service characterized by the type identifier is a bandwidth demand type network service; the network state information comprises bandwidth information of an interface of a network node;
the determining, based on the network state information of each network node, a target network path from the candidate network paths according to a path searching policy corresponding to the type of the network service represented by the service identifier, includes:
For each alternative network path, calculating the available bandwidth of the alternative network path based on the bandwidth information of the interfaces of the network nodes in the alternative network path;
and determining the alternative network path with the largest available bandwidth as the target network path.
Optionally, the first service request further carries a network address of the user side;
the service module which is consistent with the service identifier is determined from the service modules contained in each computing node, and the service module which is taken as an alternative service module comprises:
and determining a service module which is consistent with the service identifier from service modules contained in each computing node, and the network address of the computing node and the network address of the user side belong to the same area, wherein the service module is used as an alternative service module.
Optionally, the forwarding information of one network node in the target network path includes: and the network node is used for indicating the network node to forward the received second service request to the next hop in the target network path through the corresponding outgoing interface when receiving the second service request carrying the network address of the target service module.
In order to achieve the above object, in a second aspect, an embodiment of the present application discloses a request processing apparatus, where the apparatus is applied to a management node in a request processing system, and the request processing system further includes a plurality of network nodes and a plurality of computing nodes, each computing node is communicatively connected to one network node, and at least one service module for providing network services is disposed in each computing node, where the apparatus includes:
A first service request receiving unit, configured to receive a first service request sent by a user terminal; the first service request carries a service identifier for representing the network service requested by the user side;
The alternative service module determining unit is used for determining a service module consistent with the service identifier from the service modules contained in each computing node as an alternative service module;
An alternative network path determining unit, configured to determine, for each alternative service module, a network path between an computing power node to which the alternative service module belongs and the user side, as an alternative network path;
a target network path determining unit, configured to determine a target network path from each candidate network path according to a path searching policy corresponding to a type of network service represented by the service identifier based on network state information of each network node, and determine a target service module from candidate service modules included in an computing node corresponding to the target network path; the target service module is used for providing network service requested by the user side;
The information sending unit is configured to send a first service response carrying a network address of the target service module to the user terminal, and send forwarding information matched with 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 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 an 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.
Optionally, the network service represented by the service identifier is a delay demand network service; the network state information includes a delay between network nodes;
The target network path determining unit is specifically configured to calculate, for each alternative network path, based on the delay between network nodes in the alternative network path, the delay between the user side and the computing node to which the corresponding alternative service module belongs in the alternative network path, as the delay of the alternative network path;
and determining the candidate network path with the minimum delay as a target network path.
Optionally, the network service characterized by the type identifier is a bandwidth demand type network service; the network state information comprises bandwidth information of an interface of a network node;
the target network path determining unit is specifically configured to calculate, for each alternative network path, an available bandwidth of the alternative network path based on bandwidth information of interfaces of network nodes in the alternative network path;
and determining the alternative network path with the largest available bandwidth as the target network path.
Optionally, the first service request further carries a network address of the user side;
The alternative service module determining unit is specifically configured to determine, from service modules included in each computing node, a service module that is consistent with the service identifier and that belongs to a network address of the computing node and a network address of the user side belong to a same area, as an alternative service module.
Optionally, the forwarding information of one network node in the target network path includes: and the network node is used for indicating the network node to forward the received second service request to the next hop in the target network path through the corresponding outgoing interface when receiving the second service request carrying the network address of the target service module.
In order to achieve the above object, an embodiment of the present application discloses a request processing system, which includes a management node, a plurality of network nodes, and a plurality of computing nodes; each computing node is in communication connection with one network node, and at least one service module for providing network service is deployed in each computing node; wherein:
the management node is configured to execute any one of the request processing methods described above;
Each network node is used for forwarding the received service request according to the forwarding information sent by the management node;
Each computing node is used for responding to the received service request through the service module corresponding to the network address carried in the received service request when the service request is received.
In order to achieve the above object, an embodiment of the present application discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
and the processor is used for realizing any one of the request processing methods when executing the program stored in the memory.
In a fifth aspect, in order to achieve the above object, an embodiment of the present application discloses a computer readable storage medium, in which a computer program is stored, the computer program implementing any one of the above request processing methods when executed by a processor.
In a sixth aspect, to achieve the above object, an embodiment of the present application discloses a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the above described request processing methods.
The embodiment of the application has the beneficial effects that:
According to the request processing method provided by the embodiment of the application, a management node receives a first service request sent by a user side; the first service request carries a service identifier for representing the network service requested by the user terminal; determining a service module consistent with the service identifier from the service modules contained in each computing node as an alternative service module; for each alternative service module, determining a network path between the computing power node to which the alternative service module belongs and the user side as an alternative network path; based on the network state information of each network node, determining a target network path from the alternative network paths according to a path searching strategy corresponding to the type of the network service represented by the service identifier, and determining a target service module from the alternative service modules contained in the computing nodes corresponding to the target network path; the target service module is used for providing network service requested by the user side; transmitting a first service response carrying a network address of a target service module to a user terminal, and transmitting forwarding information matched with a target network path 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; and forwarding the second service request by each network node in the target network path according to the received forwarding information until the computing node deployed with the target service module receives the second service request, and responding to the second service request through the target service module.
Based on the above processing, because the network requirements of different types of network services are different, the target network path is determined based on the path searching strategy corresponding to the type of the network service and the network state information of each network node, and then the service request is processed according to the target network path, so that the service requirement of the service request can be met, that is, the service request can be processed by combining with the state of the network, the processing performance of the network can be fully utilized, and the service quality of the network service can be improved.
Of course, it is not necessary for any one product or method of practicing the application to achieve all of the advantages set forth above at the same time.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by the person skilled in the art based on the present application are included in the scope of protection of the present application.
Along with the wide application of AI (ARTIFICIAL INTELLIGENCE ), 5G technology has promoted the explosive development of emerging services such as internet of things, large video, internet of vehicles, etc., and the existing network architecture and the centralized deployment mode of cloud are difficult to meet the service requirements, so that the network and the cloud have become a new trend of industry along with the edge migration of the service flow direction through edge computing.
In the related art, for the network point of view, the resources of the single-edge stations are limited, and the multi-edge stations lack cooperation. For the service angle, the application layer is decoupled from the network layer, and the service cannot sense the network state. Therefore, in order to improve the quality of network service, the network architecture needs to cooperatively consider the network and the computing fusion evolution, so as to realize the global optimization of the network in the 'connection+computing' architecture, enable the network to perceive computing and service, realize flexible scheduling of service and reasonable distribution of service according to the real-time resource state and the user SLA (SERVICE LEVEL AGREEMENT ) requirements, and provide good experience for users.
Referring to fig. 1, fig. 1 is a block diagram of an edge network, where the edge network includes a central node and a plurality of edge nodes, each edge node may simultaneously deploy a plurality of service modules, and different edge nodes may simultaneously deploy the same service module to provide different network services for users. Such as edge node 1 and edge node 2, each deploy VR service modules.
For example, based on CDN (Content Delivery Network ) technology, cache servers (CDN cache servers) may be deployed in areas or networks where user access is relatively centralized. When a user accesses a network service, the global loading technology is utilized to direct the access of the user to a cache server closest to the user, and the cache server responds to the user request.
Referring to fig. 2, fig. 2 is a schematic diagram of processing a service request in the related art.
① . When a user clicks on a service option on an APP (Application, i.e., a user side), the user side sends an IP address resolution request to a local DNS (Domain NAME SYSTEM) according to a URL (Uniform Resource Locator ) of a resource requested by the user.
② . The local DNS forwards the IP (Internet Protocol ) address resolution request to the CDN-specific DNS server.
③ . And the CDN special DNS server sends the IP address of the CDN load balancing device to the user.
④ . And the user sends a URL access request to the CDN load balancing equipment.
⑤ . And the CDN load balancing equipment selects a CDN cache server from the area to which the user terminal belongs according to the IP address of the user terminal and the URL of the user request.
⑥ . And the CDN load balancing equipment sends the IP address of the CDN cache server to the user.
⑦ . The user side sends a resource request to the CDN cache server, and the CDN cache server sends a resource response to the user side.
⑧ . If the CDN cache server does not have the resource requested by the user side, the CDN cache server requests the resource to the source side server of the service and sends the requested resource to the user side.
As can be seen, in the related art, the application layer is decoupled from the network layer, i.e., the network traffic cannot perceive the network state of the network. For example, in step ⑤ in the above process, when the CDN load balancing device determines the CDN cache server, the network condition between the user side and the CDN cache server is not considered, that is, the request cannot be processed by combining with the state of the network, so that the processing performance of the network cannot be fully utilized, resulting in poor service quality of the network service, and the service cannot meet the best experience of the user.
In order to solve the above problems, the present application provides a request processing method applied to a management node in a request processing system. For example, referring to fig. 3, fig. 3 is a block diagram of a request processing system according to an embodiment of the present application. The management node in the present application may also be referred to as a centralized manager. In FIG. 3, the request processing system includes a centralized manager, a plurality of network nodes, and a plurality of computing nodes; each computing node is in communication connection with one network node, and at least one service module and data transceiver module for providing network services are deployed in each computing node. The data receiving and transmitting module is used for receiving a service request sent by the user terminal, forwarding the service request to the corresponding service module, receiving a service response sent by the service module, and forwarding the service response to the user terminal. For example, service module 1-service module n is deployed in computing node 1-1. Each service module is capable of providing a respective network service, e.g., VR service, V2X service, live video service, file storage service, etc.
Accordingly, referring to fig. 4, fig. 4 is an exemplary diagram of a request processing method according to an embodiment of the present application, the method may include the following steps:
S401: and receiving a first service request sent by the user terminal.
The first service request carries a service identifier indicating the network service requested by the user terminal.
S402: and determining a service module consistent with the service identifier from the service modules contained in each computing node as an alternative service module.
S403: for each alternative service module, determining a network path between the computing power node to which the alternative service module belongs and the user side as an alternative network path.
S404: based on the network state information of each network node, determining a target network path from the alternative network paths according to a path searching strategy corresponding to the type of the network service represented by the service identifier, and determining a target service module from the alternative service modules contained in the computing nodes corresponding to the target network path.
The target service module is used for providing network service requested by the user side.
S405: and transmitting a first service response carrying the network address of the target service module to the user terminal, transmitting forwarding information matched with the target network path to each network node in the target network path, so that the user terminal transmits 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.
According to the request processing method provided by the embodiment of the application, because the network requirements of different types of network services are different, the target network path is determined based on the path searching strategy corresponding to the type of the network service and the network state information of each network node, and then the service request is processed according to the target network path, so that the service requirement of the service request can be met, namely, the service request can be processed by combining with the state of the network, the processing performance of the network can be fully utilized, and the service quality of the network service is improved.
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 for providing network services, for example, the computing node may be a physical server, or may also be a cloud platform deployed with virtual machines. The service module in the computing node may be software that provides network services.
A service module that corresponds to the service identity, i.e. is capable of providing the corresponding network service. Because the request processing system comprises a plurality of computing nodes, and at least one service module is deployed in each computing node, the service modules deployed in the computing nodes can be the same or different. That is, in the request processing system, there may be a plurality of service modules capable of providing the same network service.
The user terminal can send a service request carrying a corresponding service identifier to the management node according to the requirement of the user. Further, after receiving the service request, the management node may determine the network service requested by the user based on the service identifier, and accordingly, may select a service module capable of providing the network service to respond to the service request of the user through the selected service module.
In one implementation, all service modules in the request processing system that are consistent with the service identification may be determined as alternative service modules.
In another implementation manner, in order to improve the service quality of the network service, the first service request further carries the network address of the user side; accordingly, the step S402 may include the steps of: and determining a service module which is consistent with the service identifier from the service modules contained in each computing node, and the network address of the computing node and the network address of the user side belong to the same area, wherein the service module is used as an alternative service module.
In the embodiment of the application, if the network address of the computing node to which the service module belongs to the same area as the network address of the user terminal, the fact that the physical distance between the computing node to which the service module belongs and the user terminal is relatively close is indicated, and correspondingly, if the service module responds to the service request of the user terminal, the service quality of network service can be improved. Therefore, the service module of which the network address of the computing node belongs to the same area as the network address of the user side can be determined as the alternative service module.
For step S403, one alternative service module may correspond to one alternative network path, or may correspond to multiple alternative network paths, that is, the user side may perform data communication with the same alternative service module through multiple different network paths.
It will be appreciated that the alternative network path comprises at least one network node through which service requests sent by the user side may be forwarded to alternative service modules in the corresponding computing nodes.
For step S404 and step S405, the type of the network service may be determined according to the requirement of the network service, for example, for the V2X service, since the delay is required to be smaller to ensure the safety of the autopilot, the type of the V2X service may be a delay requirement type, that is, for the delay requirement type network service, the response duration of the service request needs to be reduced. For VR services, because the amount of data that needs to be transmitted is large, and larger bandwidth resources are occupied, the VR service may be of a type that requires bandwidth.
Because the network requirements of different types of network services are different, the service requirements of the service request can be met based on the path searching strategy corresponding to the type of the network service and the target network path determined by the network state information of the network node.
It will be appreciated that the target network path comprises at least one network node by which a service request sent by a user terminal can be forwarded to a computing node to which the target service module belongs (which may be referred to as a target computing node), that is, the target computing node is communicatively connected to the last network node in the target network path.
Because the forwarding information is matched with the target network path, the network node forwards the service request according to the forwarding information, and can forward the service request according to the target network path, so that the service request can be transmitted from the user terminal to the target computing node according to the target network path, and the target computing node can respond to the service request through the target service module.
If the target computing node includes an alternative service module for providing the network service requested by the user terminal, the alternative service module may be determined as the target service module.
If the target computing node includes a plurality of alternative service modules for providing the network service requested by the user terminal, one of the plurality of alternative service modules can be selected as the target service module according to a preset selection policy.
For example, the target service module may be selected based on a load balancing policy. For example, the management node may determine the load of each candidate service module, and determine the candidate service module with the smallest load as the target service module. Or a specified sequence is arranged among the plurality of alternative service modules, and correspondingly, the management node can determine that the current alternative service module is the target service module according to the specified sequence.
For another example, the management node may randomly select an alternative service module as the target service module.
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. Further, the user side 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 node receives the second service request.
In one embodiment, each computing node may include a data transceiver module. Each of the power nodes may generate a corresponding network address for the deployed service module, for example, may be a VIP (Virtual Internet Protocol ) address, and further, the power node may notify the network node of the communication connection of its node identifier and the network address of the deployed service module through the data transceiver module. In addition, the data transceiver module can also forward the service request to the corresponding service module when receiving the service request, so that the service module responds to the service request.
Accordingly, each network node may advertise the node identity of the computing node and the network address of the service module deployed in the computing node to the management node, and may advertise its own routing information to other network nodes and to the management node.
In addition, each network node may also periodically send network state information to the management node.
For example, referring to fig. 5, fig. 5 is a logic schematic diagram of a management node processing a service request according to an embodiment of the present application. The management node may comprise an acquisition module, a decision module, an execution module and a service management module. The acquisition module may acquire routing information, service information (including an identification of the computing node, a network address of a service module deployed in the computing node), and network state information of the network node uploaded by each network node. Accordingly, based on the recorded information, the routing information for each service module can be determined, and the service information is sent to the service management module, and the routing information and the network state information are sent to the decision module. The service management module may determine a service type corresponding to the service request, and further may determine a corresponding path search policy and an alternative service module, and send the determined path search policy and the alternative service module to the decision module. The decision module can determine a target network path from the alternative network paths corresponding to the alternative service modules according to the path searching strategy, determine a target service module from the alternative service modules contained in the computing nodes 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 may send the network address of the target service module to the user terminal, and send forwarding information matched with the target network path to each network node in the target network path. Based on the network state information, the management node can acquire the latest network state information, so that the determined target network path can be effectively matched with the current network state, and the service quality of network service is further improved.
In one embodiment, forwarding information for one network node in the target network path includes: the network node is used for indicating the network node to forward the received second service request to the next hop in the target network path through the corresponding outgoing interface when receiving the second service request carrying the network address of the target service module.
In the embodiment of the application, after the route information of each network node and the network address of the service module deployed in each computing node are acquired, the management node can determine the target network path according to the corresponding path searching strategy, namely, each network node from the user terminal to the target computing node can be determined, and the sequence of each network node in the target network path can be determined.
Correspondingly, for each network node in the target network path, the management node may determine the next network node (i.e. the corresponding next hop) of the network node, that is, may determine the outgoing interface corresponding to the next hop, and correspondingly, the management node may send the network address of the target service module, the next hop, and the corresponding relationship of the outgoing interface to the network node.
When receiving a second service request carrying a network address of the target service module, the network node can query the corresponding relation, and can forward the received second service request to the next hop in the target network path through the outgoing interface recorded in the corresponding relation.
It will be appreciated that the last network node in the target network path may forward the second service request to the target computing node. After resolving the network address of the target service module carried in the second service request, the target computing node can respond to the second service request through the target service module. In addition, the target power node may send the second service request to the user terminal through the target network path.
In one embodiment, the network service characterized by the service identity is a latency-requiring network service; the network state information includes delays between network nodes; accordingly, the step S404 may include the following steps:
Step one: for each alternative network path, calculating the delay between the user side and the computing power node of the corresponding alternative service module in the alternative network path based on the delay between the network nodes in the alternative network path, and taking the delay as the delay of the alternative network path.
Step two: and determining the candidate network path with the minimum delay as a target network path.
Wherein the delay between two network nodes may represent: the length of time required for network data to be transferred from one network node to another.
In the embodiment of the application, aiming at the network services such as V2X service and the like with smaller required delay, namely, the response time of the service request needs to be reduced to ensure the safety of automatic driving, when the network service represented by the service identifier is determined to be the network service with the delay required type, the management node can acquire the delay among the network nodes uploaded by each network node.
For example, for each alternative network path, the management node may obtain the delay between each two adjacent network nodes in the alternative network path, and then calculate the sum of the delays as the delay for the alternative network path.
And the candidate network path with the minimum delay is determined as the target network path, so that the time length of the target service module responding to the service request can be reduced through the target network path, the service requirement of the delay-required network service can be met, and the service quality of the network service is improved.
In one embodiment, the network service characterized by the type identifier is a bandwidth-requiring network service; the network state information includes bandwidth information of an interface of the network node; accordingly, the step S404 may include the following steps:
step 1: for each alternative network path, the available bandwidth of the alternative network path is calculated based on the bandwidth information of the interfaces of the network nodes in the alternative network path.
Step 2: and determining the alternative network path with the largest available bandwidth as the target network path.
The bandwidth information of the interface may include a maximum bandwidth of the interface and a bandwidth currently used by the interface, or may also include a bandwidth utilization of the interface, that is, a ratio of the bandwidth currently used by the interface to the maximum bandwidth.
In the embodiment of the application, aiming at the network services with bandwidth requirements such as VR service, video live broadcast and the like, as the data volume required to be transmitted is larger, larger bandwidth resources are occupied, and therefore, when the network service represented by the service identifier is determined to be the network service with bandwidth requirements, the management node can acquire the bandwidth information of the interfaces of the network nodes uploaded by each network node.
For example, for each alternative network path, the management node may obtain the bandwidth utilization of the interfaces of the network nodes in the alternative network path, and then take the maximum of the bandwidth utilizations as the available bandwidth of the alternative network path.
Or for each alternative network path, the management node may obtain the remaining bandwidth (i.e., the difference between the maximum bandwidth and the currently used bandwidth) of the interface of each network node in the alternative network path, and then use the minimum value in each remaining bandwidth as the available bandwidth of the alternative network path.
And further, the alternative network path with the largest available bandwidth is determined as the target network path, so that the bandwidth requirement of the service request can be met through the target network path, and the service quality of the network service is improved.
Based on the same inventive concept, the application also provides a request processing system, which comprises a management node, a plurality of network nodes and a plurality of computing nodes; each computing node is in communication connection with one network node, and at least one service module for providing network service is deployed in each computing node; wherein:
a management node for executing the request processing method described in the above embodiment;
Each network node is used for forwarding the received service request according to the forwarding information sent by the management node;
Each computing node is used for responding to the received service request through the service module corresponding to the network address carried in the received service request when the service request is received.
Based on the same inventive concept, the present application further provides a request processing apparatus, referring to fig. 6, fig. 6 is a block diagram of the request processing apparatus provided by the embodiment of the present application, where the apparatus 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 to one network node, at least one service module for providing network services is disposed in each computing node, and the apparatus includes:
A first service request receiving unit 601, configured to receive a first service request sent by a user terminal; the first service request carries a service identifier for representing the network service requested by the user side;
an alternative service module determining unit 602, configured to determine, from service modules included in each computing node, a service module consistent with the service identifier, as an alternative service module;
an alternative network path determining unit 603, configured to determine, for each alternative service module, a network path between the computing power node to which the alternative service module belongs and the user side, as an alternative network path;
A target network path determining unit 604, configured to determine, based on network state information of each network node, a target network path from each alternative network path according to a path search policy corresponding to a type of a network service represented by the service identifier, and determine a target service module from alternative service modules included in an computing node corresponding to the target network path; the target service module is used for providing network service requested by the user side;
An information sending unit 605, configured to send a first service response carrying a network address of the target service module to the user side, and send forwarding information matched with the target network path to each network node in the target network path, so that the user side 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 an 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.
Optionally, the network service represented by the service identifier is a delay demand network service; the network state information includes a delay between network nodes;
The target network path determining unit 604 is specifically configured to calculate, for each alternative network path, a delay between the user side and the computing node to which the corresponding alternative service module belongs in the alternative network path based on the delay between network nodes in the alternative network path, as the delay of the alternative network path;
and determining the candidate network path with the minimum delay as a target network path.
Optionally, the network service characterized by the type identifier is a bandwidth demand type network service; the network state information comprises bandwidth information of an interface of a network node;
The target network path determining unit 604 is specifically configured to calculate, for each alternative network path, an available bandwidth of the alternative network path based on bandwidth information of interfaces of network nodes in the alternative network path;
and determining the alternative network path with the largest available bandwidth as the target network path.
Optionally, the first service request further carries a network address of the user side;
The alternative service module determining unit 602 is specifically configured to determine, from service modules included in each computing node, a service module that is consistent with the service identifier and that has a network address of the computing node that belongs to the same area as the network address of the user terminal, as an alternative service module.
Optionally, the forwarding information of the network node of the target network path includes: and the network node is used for indicating the network node to forward the received second service request to the next hop in the target network path through the corresponding outgoing interface when receiving the second service request carrying the network address of the target service module.
The embodiment of the present application further provides an electronic device, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 perform communication with each other through the communication bus 704,
A memory 703 for storing a computer program;
the processor 701 is configured to execute the program stored in the memory 703, and implement the following steps:
Receiving a first service request sent by a user side; the first service request carries a service identifier for representing the network service requested by the user side;
determining a service module consistent with the service identifier from service modules contained in each computing node as an alternative service module;
for each alternative service module, determining a network path between the computing power node to which the alternative service module belongs and the user side as an alternative network path;
Based on network state information of each network node, determining a target network path from each alternative network path according to a path searching strategy corresponding to the type of the network service represented by the service identifier, and determining a target service module from alternative service modules contained in the computing nodes corresponding to the target network path; the target service module is used for providing network service requested by the user side;
And transmitting a first service response carrying the network address of the target service module to the user terminal, transmitting forwarding information matched with the target network path to each network node in the target network path, so that the user terminal transmits a second service request carrying the network address of the target service module to the network nodes in the target network path, and forwarding the second service request by each network node in the target network path according to the received forwarding information until an algorithm 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 communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any of the request processing methods described above.
In yet another embodiment of the present application, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the request processing methods of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, systems, computer readable storage media, and computer program product embodiments, the description is relatively simple as it is substantially similar to method embodiments, with reference to the accompanying descriptive matter in which there are several methods embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the 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.