[go: up one dir, main page]

CN115665262A - A request processing method, device, electronic device and storage medium - Google Patents

A request processing method, device, electronic device and storage medium Download PDF

Info

Publication number
CN115665262A
CN115665262A CN202211214308.7A CN202211214308A CN115665262A CN 115665262 A CN115665262 A CN 115665262A CN 202211214308 A CN202211214308 A CN 202211214308A CN 115665262 A CN115665262 A CN 115665262A
Authority
CN
China
Prior art keywords
network
service
target
path
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211214308.7A
Other languages
Chinese (zh)
Other versions
CN115665262B (en
Inventor
秦娟
雷昭燕
朱仕银
常向青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202211214308.7A priority Critical patent/CN115665262B/en
Publication of CN115665262A publication Critical patent/CN115665262A/en
Application granted granted Critical
Publication of CN115665262B publication Critical patent/CN115665262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a request processing method, a request processing device, electronic equipment and a storage medium, which relate to the technical field of networks, and the method comprises the following steps: the management node receives a first service request; determining an alternative service module consistent with the service identifier; determining an alternative network path; determining a target network path and a target service module based on the network state information of each network node; sending a first service response to the user side, and sending forwarding information to each network node in the target network path; the user side 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 received second service request according to the forwarding information until the computing node with the target service module receives the second service request, and responds to the second service request through the target service module. Thus, the service quality of the network service can be improved.

Description

一种请求处理方法、装置、电子设备及存储介质A request processing method, device, electronic device and storage medium

技术领域technical field

本申请涉及网络技术领域,特别是涉及一种请求处理方法、装置、电子设备及存储介质。The present application relates to the field of network technology, in particular to a request processing method, device, electronic equipment and storage medium.

背景技术Background technique

随着网络技术的快速发展,可以通过网络中部署的节点为用户提供不同的网络服务,例如,VR(Virtual Reality,虚拟现实)服务、V2X(Vehicle To Everything,车用无线通信)服务等。With the rapid development of network technology, different network services can be provided to users through nodes deployed in the network, for example, VR (Virtual Reality, virtual reality) service, V2X (Vehicle To Everything, wireless communication for vehicles) service, etc.

然而,网络中通常包含多个节点,且每一节点可以提供至少一种网络服务,如何基于该多个节点提高网络服务的服务质量成为亟需解决的问题。However, the network usually includes multiple nodes, and each node can provide at least one network service, how to improve the service quality of the network service based on the multiple nodes becomes an urgent problem to be solved.

发明内容Contents of the invention

本申请实施例的目的在于提供一种请求处理方法、装置、电子设备及存储介质,以提高网络服务的服务质量。具体技术方案如下:The purpose of the embodiments of the present application is to provide a request processing method, device, electronic device and storage medium, so as to improve the service quality of network services. The specific technical scheme is as follows:

第一方面,为了达到上述目的,本申请实施例公开了一种请求处理方法,所述方法应用于请求处理系统中的管理节点,所述请求处理系统还包含多个网络节点和多个算力节点;每一算力节点与一个网络节点通信连接,每一算力节点中部署有至少一个用于提供网络服务的服务模块,所述方法包括:In the first aspect, in order to achieve the above purpose, the embodiment of the present application discloses a request processing method, the method is applied to the management node in the request processing system, and the request processing system also includes multiple network nodes and multiple computing power Node; each computing power node communicates with a network node, and each computing power node is deployed with at least one service module for providing network services. The method includes:

接收用户端发送的第一服务请求;其中,所述第一服务请求中携带有表示所述用户端所请求的网络服务的服务标识;receiving a first service request sent by the client; wherein, the first service request carries a service identifier representing the network service requested by the client;

从各算力节点包含的服务模块中确定与所述服务标识一致的服务模块,作为备选服务模块;Determine a service module consistent with the service identifier from the service modules included in each computing power node as an alternative service module;

针对每一备选服务模块,确定该备选服务模块所属的算力节点与所述用户端之间的网络路径,作为备选网络路径;For each candidate service module, determine the network path between the computing power node to which the candidate service module belongs and the client as the candidate network path;

基于各网络节点的网络状态信息,按照所述服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,并从所述目标网络路径对应的算力节点包含的备选服务模块中确定一个目标服务模块;其中,所述目标服务模块用于提供所述用户端所请求的网络服务;Based on the network state 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 candidate network path, and determine the target network path from the computing node corresponding to the target network path Determine a target service module among the included alternative service modules; wherein, the target service module is used to provide the network service requested by the client;

向所述用户端发送携带有所述目标服务模块的网络地址的第一服务响应,以及向所述目标网络路径中的各网络节点发送与所述目标网络路径匹配的转发信息,以使所述用户端向所述目标网络路径中的网络节点发送携带有所述目标服务模块的网络地址的第二服务请求,由所述目标网络路径中的每一网络节点按照接收到的转发信息对所述第二服务请求进行转发,直至部署有所述目标服务模块的算力节点接收到所述第二服务请求,并通过所述目标服务模块响应所述第二服务请求。sending a first service response carrying the network address of the target service module to the client, and sending forwarding information matching the target network path to each network node in the target network path, so that the The client 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 received forwarding information to the The second service request is forwarded 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.

可选的,所述服务标识表征的网络服务为延时需求型的网络服务;所述网络状态信息包括网络节点之间的延时;Optionally, the network service represented by the service identifier is a delay-demanding network service; the network state information includes the delay between network nodes;

所述基于各网络节点的网络状态信息,按照所述服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,包括: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, determining the target network path from each candidate network path includes:

针对每一备选网络路径,基于该备选网络路径中的网络节点之间的延时,计算在该备选网络路径中所述用户端与对应的备选服务模块所属的算力节点之间的延时,作为该备选网络路径的延时;For each candidate network path, based on the delay between the network nodes in the candidate network path, calculate the distance between the client and the computing power node to which the corresponding candidate service module belongs in the candidate network path The delay of is used as the delay of the alternative network path;

将延时最小的备选网络路径,确定为目标网络路径。The candidate network path with the minimum delay is determined as the target network path.

可选的,所述类型标识表征的网络服务为带宽需求型的网络服务;所述网络状态信息包括网络节点的接口的带宽信息;Optionally, the network service represented by the type identifier is a bandwidth-demanding network service; the network state information includes bandwidth information of an interface of a network node;

所述基于各网络节点的网络状态信息,按照所述服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,包括: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, determining the target network path from each candidate network path includes:

针对每一备选网络路径,基于该备选网络路径中各网络节点的接口的带宽信息,计算该备选网络路径的可用带宽;For each candidate network path, based on the bandwidth information of the interface of each network node in the candidate network path, calculate the available bandwidth of the candidate network path;

将可用带宽最大的备选网络路径,确定为目标网络路径。The candidate network path with the largest available bandwidth is determined as the target network path.

可选的,所述第一服务请求中还携带有所述用户端的网络地址;Optionally, the first service request also carries the network address of the client;

所述从各算力节点包含的服务模块中确定与所述服务标识一致的服务模块,作为备选服务模块,包括:The determining the service module consistent with the service identifier from the service modules contained in each computing power node, as an alternative service module, includes:

从各算力节点包含的服务模块中确定与所述服务标识一致,且所属的算力节点的网络地址与所述用户端的网络地址属于同一区域的服务模块,作为备选服务模块。From the service modules included in each computing power node, determine 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 client, as an alternative service module.

可选的,所述目标网络路径中一个网络节点的转发信息包括:所述目标服务模块的网络地址、所述目标网络路径中的下一跳以及出接口的对应关系,且用于指示该网络节点在接收到携带有所述目标服务模块的网络地址的第二服务请求时,通过对应的出接口将接收到第二服务请求转发至所述目标网络路径中的下一跳。Optionally, the forwarding information of a network node in the target network path includes: the network address of the target service module, the corresponding relationship between the next hop in the target network path and the outgoing interface, and is used to indicate that the network When receiving the second service request carrying the network address of the target service module, the node forwards the received second service request to the next hop in the target network path through the corresponding outbound interface.

第二方面,为了达到上述目的,本申请实施例公开了一种请求处理装置,所述装置应用于请求处理系统中的管理节点,所述请求处理系统还包含多个网络节点和多个算力节点,每一算力节点与一个网络节点通信连接,每一算力节点中部署有至少一个用于提供网络服务的服务模块,所述装置包括:In the second aspect, in order to achieve the above purpose, the embodiment of the present application discloses a request processing device, the device is applied to the management node in the request processing system, and the request processing system also includes multiple network nodes and multiple computing power Nodes, each computing power node communicates with a network node, each computing power node is deployed with at least one service module for providing network services, and the device includes:

第一服务请求接收单元,用于接收用户端发送的第一服务请求;其中,所述第一服务请求中携带有表示所述用户端所请求的网络服务的服务标识;The first service request receiving unit is configured to receive the first service request sent by the client; wherein, the first service request carries a service identifier representing the network service requested by the client;

备选服务模块确定单元,用于从各算力节点包含的服务模块中确定与所述服务标识一致的服务模块,作为备选服务模块;An alternative service module determining unit, configured to determine a service module consistent with the service identifier from the service modules contained in each computing power node as an alternative service module;

备选网络路径确定单元,用于针对每一备选服务模块,确定该备选服务模块所属的算力节点与所述用户端之间的网络路径,作为备选网络路径;An alternative network path determining unit, configured to, for each alternative service module, determine a network path between the computing power node to which the alternative service module belongs and the client as an alternative network path;

目标网络路径确定单元,用于基于各网络节点的网络状态信息,按照所述服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,并从所述目标网络路径对应的算力节点包含的备选服务模块中确定一个目标服务模块;其中,所述目标服务模块用于提供所述用户端所请求的网络服务;The target network path determination unit is configured to determine the target network path from each candidate network path according to the path search strategy corresponding to the type of network service represented by the service identifier based on the network status information of each network node, and from the Determine a target service module among the alternative 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 client;

信息发送单元,用于向所述用户端发送携带有所述目标服务模块的网络地址的第一服务响应,以及向所述目标网络路径中的各网络节点发送与所述目标网络路径匹配的转发信息,以使所述用户端向所述目标网络路径中的网络节点发送携带有所述目标服务模块的网络地址的第二服务请求,由所述目标网络路径中的每一网络节点按照接收到的转发信息对所述第二服务请求进行转发,直至部署有所述目标服务模块的算力节点接收到所述第二服务请求,并通过所述目标服务模块响应所述第二服务请求。an information sending unit, configured to send a first service response carrying the network address of the target service module to the client, and send a forwarding message matching the target network path to each network node in the target network path information, so that the client 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 receives the The forwarding information forwards the second service request 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.

可选的,所述服务标识表征的网络服务为延时需求型的网络服务;所述网络状态信息包括网络节点之间的延时;Optionally, the network service represented by the service identifier is a delay-demanding network service; the network state information includes the delay between network nodes;

所述目标网络路径确定单元,具体用于针对每一备选网络路径,基于该备选网络路径中的网络节点之间的延时,计算在该备选网络路径中所述用户端与对应的备选服务模块所属的算力节点之间的延时,作为该备选网络路径的延时;The target network path determination unit is specifically configured to, for each candidate network path, calculate the corresponding time between the user terminal and the corresponding network node in the candidate network path based on the delay between network nodes in the candidate network path. The delay between computing power nodes to which the candidate service module belongs is taken as the delay of the candidate network path;

将延时最小的备选网络路径,确定为目标网络路径。The candidate network path with the minimum delay is determined as the target network path.

可选的,所述类型标识表征的网络服务为带宽需求型的网络服务;所述网络状态信息包括网络节点的接口的带宽信息;Optionally, the network service represented by the type identifier is a bandwidth-demanding network service; the network state information includes bandwidth information of an interface of a network node;

所述目标网络路径确定单元,具体用于针对每一备选网络路径,基于该备选网络路径中各网络节点的接口的带宽信息,计算该备选网络路径的可用带宽;The target network path determining unit is specifically configured to, for each candidate network path, calculate 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 candidate network path with the largest available bandwidth is determined as the target network path.

可选的,所述第一服务请求中还携带有所述用户端的网络地址;Optionally, the first service request also carries the network address of the client;

所述备选服务模块确定单元,具体用于从各算力节点包含的服务模块中确定与所述服务标识一致,且所属的算力节点的网络地址与所述用户端的网络地址属于同一区域的服务模块,作为备选服务模块。The alternative service module determination unit is specifically configured to determine from the service modules included in each computing power node that is consistent with the service identifier, and the network address of the computing power node to which it belongs belongs to the same area as the network address of the client Service module, as an alternative service module.

可选的,所述目标网络路径中一个网络节点的转发信息包括:所述目标服务模块的网络地址、所述目标网络路径中的下一跳以及出接口的对应关系,且用于指示该网络节点在接收到携带有所述目标服务模块的网络地址的第二服务请求时,通过对应的出接口将接收到第二服务请求转发至所述目标网络路径中的下一跳。Optionally, the forwarding information of a network node in the target network path includes: the network address of the target service module, the corresponding relationship between the next hop in the target network path and the outgoing interface, and is used to indicate that the network When receiving the second service request carrying the network address of the target service module, the node forwards the received second service request to the next hop in the target network path through the corresponding outbound interface.

第三方面,为了达到上述目的,本申请实施例公开了一种请求处理系统,所述系统包括管理节点、多个网络节点和多个算力节点;每一算力节点与一个网络节点通信连接,每一算力节点中部署有至少一个用于提供网络服务的服务模块;其中:In the third aspect, in order to achieve the above purpose, the embodiment of the present application discloses a request processing system, the system includes a management node, a plurality of network nodes and a plurality of computing power nodes; each computing power node communicates with a network node , each computing power node is deployed with at least one service module for providing network services; where:

所述管理节点,用于执行上述任一所述的请求处理方法;The management node is configured to execute any one of the request processing methods described above;

每一网络节点,用于按照所述管理节点发送的转发信息对接收到的服务请求进行转发;Each network node is configured to forward the received service request according to the forwarding information sent by the management node;

每一算力节点,用于在接收到服务请求时,通过接收到的服务请求中携带的网络地址对应的服务模块对接收到服务请求进行响应。Each computing power node is configured to, when receiving a service request, respond to the received service request through the service module corresponding to the network address carried in the received service request.

第四方面,为了达到上述目的,本申请实施例公开了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In the fourth aspect, in order to achieve the above purpose, the 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 complete communication with each other through the communication bus;

存储器,用于存放计算机程序;memory for storing computer programs;

处理器,用于执行存储器上所存放的程序时,实现上述任一所述的请求处理方法。The processor is configured to implement any one of the request processing methods described above when executing the program stored in the memory.

第五方面,为了达到上述目的,本申请实施例公开了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一所述的请求处理方法。In the fifth aspect, in order to achieve the above purpose, the embodiment of the present application discloses a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above-mentioned The request processing method described above.

第六方面,为了达到上述目的,本申请实施例公开了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一所述的请求处理方法。In the sixth aspect, in order to achieve the above purpose, the embodiment of the present application discloses a computer program product containing instructions, which, when run on a computer, causes the computer to execute any one of the request processing methods described above.

本申请实施例有益效果:Beneficial effects of the embodiment of the application:

本申请实施例提供的请求处理方法,管理节点接收用户端发送的第一服务请求;其中,第一服务请求中携带有表示用户端所请求的网络服务的服务标识;从各算力节点包含的服务模块中确定与服务标识一致的服务模块,作为备选服务模块;针对每一备选服务模块,确定该备选服务模块所属的算力节点与用户端之间的网络路径,作为备选网络路径;基于各网络节点的网络状态信息,按照服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,并从目标网络路径对应的算力节点包含的备选服务模块中确定一个目标服务模块;其中,目标服务模块用于提供用户端所请求的网络服务;向用户端发送携带有目标服务模块的网络地址的第一服务响应,以及向目标网络路径中的各网络节点发送与目标网络路径匹配的转发信息;用户端向目标网络路径中的网络节点发送携带有目标服务模块的网络地址的第二服务请求;由目标网络路径中的每一网络节点按照接收到的转发信息对第二服务请求进行转发,直至部署有目标服务模块的算力节点接收到第二服务请求,并通过目标服务模块响应第二服务请求。In the request processing method provided by the embodiment of the present application, the management node receives the first service request sent by the client; wherein, the first service request carries a service identifier representing the network service requested by the client; In the service module, the service module that is consistent with the service identifier is determined as a candidate service module; for each candidate service module, the network path between the computing power node to which the candidate service module belongs and the client is determined 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, determine the target network path from each candidate network path, and determine the target network path from the computing power node corresponding to the target network path A target service module is determined among the alternative service modules; wherein, the target service module is used to provide the network service requested by the client; the first service response carrying the network address of the target service module is sent to the client, and the target network path is sent to the client. Each network node in the target network path sends forwarding information matching the target network path; the client 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 The second service request is forwarded 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.

基于上述处理,由于不同类型的网络服务对网络的要求不同,因此,基于网络服务的类型对应的路径查找策略和各网络节点的网络状态信息,确定目标网络路径,进而,按照目标网络路径对服务请求进行处理,能够满足服务请求的业务需求,即,能够结合网络的状态对服务请求进行处理,也就能够充分利用网络的处理性能,提高网络服务的服务质量。Based on the above processing, since different types of network services have different requirements on 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 is determined according to the target network path. The processing of the request can meet the business requirements of the service request, that is, the service request can be processed in combination with the state of the network, and the processing performance of the network can be fully utilized to improve the service quality of the network service.

当然,实施本申请的任一产品或方法并不一定需要同时达到以上所述的所有优点。Of course, implementing any product or method of the present application does not necessarily need to achieve all the above-mentioned advantages at the same time.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的实施例。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application, and those skilled in the art can also obtain other embodiments according to these drawings.

图1为边缘网络的一种结构图;FIG. 1 is a structural diagram of an edge network;

图2为相关技术中的对服务请求进行处理的示意图;FIG. 2 is a schematic diagram of processing a service request in the related art;

图3为本申请实施例提供的一种请求处理系统的结构图;FIG. 3 is a structural diagram of a request processing system provided by an embodiment of the present application;

图4为本申请实施例提供的一种请求处理方法的示例图;FIG. 4 is an example diagram of a request processing method provided by an embodiment of the present application;

图5为本申请实施例提供的一种管理节点对服务请求进行处理的逻辑示意图;FIG. 5 is a logical schematic diagram of a management node processing a service request provided by an embodiment of the present application;

图6为本申请实施例提供的一种请求处理装置的结构图;FIG. 6 is a structural diagram of a request processing device provided in an embodiment of the present application;

图7为本申请实施例提供的一种电子设备的结构图。FIG. 7 is a structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员基于本申请所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art based on this application belong to the scope of protection of this application.

随着AI(Artificial Intelligence,人工智能),5G技术的广泛应用,促使物联网、大视频、车联网等新兴业务的蓬勃发展,现有网络架构以及云集中式部署方式难以满足业务需求,因此,通过边缘计算使网络和云随业务流向边缘迁移已成为产业新趋势。With the widespread application of AI (Artificial Intelligence, artificial intelligence) and 5G technologies, emerging services such as the Internet of Things, big video, and Internet of Vehicles are booming. The existing network architecture and cloud centralized deployment methods are difficult to meet business needs. Therefore, through Edge computing enables networks and clouds to migrate to the edge along with business flows, which has become a new trend in the industry.

相关技术中,针对网络角度,单边缘站点的资源有限,且多边缘站点之间缺乏协同。针对业务角度,应用层与网络层解耦,业务无法感知网络状态。因此,为了提高网络服务的质量,网络架构需要协同考虑网络和计算融合演进,实现“连接+计算”架构中网络的全局优化,使网络可以感知计算和服务,根据实时资源状态和用户SLA(Service LevelAgreement,服务水平协议)需求,实现服务的灵活调度,业务的合理分发,从而为用户提供良好体验。In related technologies, from a network perspective, resources of a single edge site are limited, and coordination among multiple edge sites is lacking. From a 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 consider the evolution of network and computing convergence, and realize the global optimization of the network in the "connection + computing" architecture, so that the network can perceive computing and services, according to real-time resource status and user SLA (Service LevelAgreement, service level agreement) requirements, to achieve flexible scheduling of services, reasonable distribution of business, so as to provide users with a good experience.

参见图1,图1为边缘网络的一种结构图,边缘网络中包含中心节点和多个边缘节点,每个边缘节点上可以同时部署多个服务模块,不同边缘节点上可以同时部署相同的服务模块,以为用户提供不同的网络服务。如边缘节点1和边缘节点2均部署了VR服务模块。See Figure 1. Figure 1 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, and the same service can be deployed on different edge nodes at the same time. Modules to provide users with different network services. For example, both edge node 1 and edge node 2 are deployed with VR service modules.

例如,基于CDN(Content Delivery Network,内容分发网络)技术,可以在用户访问相对集中的地区或网络中部署缓存服务器(CDN缓存服务器)。当用户访问网络服务时,利用全局负载技术,将用户的访问指向距离最近的缓存服务器上,由缓存服务器响应用户请求。For example, based on CDN (Content Delivery Network, content distribution network) technology, a cache server (CDN cache server) may be deployed in a region or network 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, and the cache server responds to the user request.

参见图2,图2为相关技术中的对服务请求进行处理的示意图。Referring to FIG. 2 , FIG. 2 is a schematic diagram of processing a service request in the related art.

①、当用户点击APP(Application,应用,即用户端)上的服务选项时,用户端根据用户所请求的资源的URL(Uniform Resource Locator,统一资源定位符),向本地DNS(Domain Name System,域名解析系统)发送IP地址解析请求。①. When the user clicks on the service option on the APP (Application, application, that is, the client), the client sends a request to the local DNS (Domain Name System, domain name resolution system) to send an IP address resolution request.

②、本地DNS向CDN专用DNS服务器转发IP(Internet Protocol,网际协议)地址解析请求。②. The local DNS forwards the IP (Internet Protocol, Internet Protocol) address resolution request to the CDN dedicated DNS server.

③、CDN专用DNS服务器向用户端发送CDN负载均衡设备的IP地址。③. The CDN dedicated DNS server sends the IP address of the CDN load balancing device to the client.

④、用户端向CDN负载均衡设备发送URL访问请求。④. The client sends a URL access request to the CDN load balancing device.

⑤、CDN负载均衡设备根据用户端的IP地址,以及用户请求的URL,从用户端所属区域中选择一个CDN缓存服务器。⑤. The CDN load balancing device selects a CDN cache server from the region to which the client belongs according to the IP address of the client and the URL requested by the user.

⑥、CDN负载均衡设备向用户端发送该CDN缓存服务器的IP地址。⑥. The CDN load balancing device sends the IP address of the CDN cache server to the client.

⑦、用户端向该CDN缓存服务器发送资源请求,该CDN缓存服务器向用户端发送资源响应。⑦. The client sends a resource request to the CDN cache server, and the CDN cache server sends a resource response to the client.

⑧、如果该CDN缓存服务器中不存在用户端请求的资源,则该CDN缓存服务器向该服务的源端服务器请求资源,并向用户端发送请求到的资源。8. If the resource requested by the client does not exist in the CDN cache server, the CDN cache server requests the resource from the origin server of the service, and sends the requested resource to the client.

可见,相关技术中,应用层与网络层解耦,即,网络业务无法感知网络的网络状态。例如,在上述过程中的步骤⑤中,CDN负载均衡设备在确定CDN缓存服务器时,并未考虑用户端与该CDN缓存服务器之间的网络状况,也就未能结合网络的状态对请求进行处理,未能够充分利用网络的处理性能,导致网络服务的服务质量不高,无法使业务满足用户的最佳体验。It can be seen that in related technologies, the application layer is decoupled from the network layer, that is, network services 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 client and the CDN cache server, and thus fails to process the request in consideration of the network status , the processing performance of the network cannot be fully utilized, resulting in low service quality of the network service, and the service cannot meet the best user experience.

为了解决上述问题,本申请提供了一种请求处理方法,该方法应用于请求处理系统中的管理节点。例如,参见图3,图3为本申请实施例提供的一种请求处理系统的结构图。本申请中的管理节点也可以称为集中管理器。图3中,该请求处理系统包括集中管理器、多个网络节点和多个算力节点;每一算力节点与一个网络节点通信连接,每一算力节点中部署有至少一个用于提供网络服务的服务模块和数据收发模块。其中,数据收发模块用于接收用户端发送的服务请求,并向相应的服务模块转发该服务请求,以及接收服务模块发送的服务响应,并向用户端转发该服务响应。例如,算力节点1-1中部署有服务模块1-服务模块n。每一服务模块能够提供相应的网络服务,例如,VR服务、V2X服务、视频直播服务、文件存储服务等。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. For example, referring to FIG. 3 , FIG. 3 is a structural diagram of a request processing system provided by an embodiment of the present application. The management node in this application may also be referred to as a centralized manager. In Fig. 3, the request processing system includes a centralized manager, multiple network nodes, and multiple computing power nodes; each computing power node communicates with a network node, and each computing power node is deployed with at least one network node The service module and the data transceiver module of the service. Wherein, the data transceiving module is used for receiving the service request sent by the client, and forwarding the service request to the corresponding service module, and receiving the service response sent by the service module, and forwarding the service response to the client. For example, service module 1-service module n is deployed in computing power node 1-1. Each service module can provide corresponding network services, such as VR services, V2X services, live video services, file storage services, and so on.

相应的,参见图4,图4为本申请实施例提供的一种请求处理方法的示例图,该方法可以包括以下步骤:Correspondingly, refer to FIG. 4, which is an example diagram of a request processing method provided in an embodiment of the present application. The method may include the following steps:

S401:接收用户端发送的第一服务请求。S401: 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 client.

S402:从各算力节点包含的服务模块中确定与服务标识一致的服务模块,作为备选服务模块。S402: Determine a service module consistent with the service identifier from the service modules contained in each computing power node as a candidate service module.

S403:针对每一备选服务模块,确定该备选服务模块所属的算力节点与用户端之间的网络路径,作为备选网络路径。S403: For each candidate service module, determine a network path between the computing power node to which the candidate service module belongs and the client as a candidate network path.

S404:基于各网络节点的网络状态信息,按照服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,并从目标网络路径对应的算力节点包含的备选服务模块中确定一个目标服务模块。S404: Based on the network state 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 candidate network path, and determine the target network path from the computing power nodes corresponding to the target network path. A target service module is determined among the candidate service modules.

其中,目标服务模块用于提供用户端所请求的网络服务。Wherein, the target service module is used to provide the network service requested by the client.

S405:向用户端发送携带有目标服务模块的网络地址的第一服务响应,以及向目标网络路径中的各网络节点发送与目标网络路径匹配的转发信息,以使用户端向目标网络路径中的网络节点发送携带有目标服务模块的网络地址的第二服务请求,由目标网络路径中的每一网络节点按照接收到的转发信息对第二服务请求进行转发,直至部署有目标服务模块的算力节点接收到第二服务请求,并通过目标服务模块响应第二服务请求。S405: Send the 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 can send to the network nodes in the target network path The network node sends the second service request carrying the network address of the target service module, and each network node in the target network path forwards the second service request according to the received forwarding information until the computing power of the target service module is deployed The node receives the second service request, and responds to the second service request through the target service module.

基于本申请实施例提供的请求处理方法,由于不同类型的网络服务对网络的要求不同,因此,基于网络服务的类型对应的路径查找策略和各网络节点的网络状态信息,确定目标网络路径,进而,按照目标网络路径对服务请求进行处理,能够满足服务请求的业务需求,即,能够结合网络的状态对服务请求进行处理,也就能够充分利用网络的处理性能,提高网络服务的服务质量。Based on the request processing method provided in the embodiment of the present application, since different types of network services have different requirements on 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 , process the service request according to the target network path, which can meet the business requirements of the service request, that is, the service request can be processed in combination with the state of the network, and the processing performance of the network can be fully utilized to improve the service quality of the network service.

针对步骤S401和S402,请求处理系统中的网络节点可以为网络中的路由器。算力节点为用于提供网络服务的节点,例如,算力节点可以为物理的服务器,或者,也可以为部署有虚拟机的云平台。算力节点中的服务模块可以为提供网络服务的软件。For steps S401 and S402, the network node in the request processing system may be a router in the network. A computing power node is a node used to provide network services. For example, a computing power node can be a physical server, or it can also be a cloud platform deployed with a virtual machine. The service module in the computing power node can be software that provides network services.

与服务标识一致的服务模块,也就是能够提供相应的网络服务的服务模块。由于请求处理系统包含多个算力节点,且每一算力节点中部署有至少一个服务模块,各算力节点中部署的服务模块可以相同,也可以不同。也就是说,在该请求处理系统中,可以存在多个能够提供相同网络服务的服务模块。A service module that is consistent with the service identifier, that is, a service module that can provide corresponding network services. Since the request processing system includes multiple computing power nodes, and at least one service module is deployed in each computing power node, the service modules deployed in each computing power node may be the same or different. That is to say, in the request processing system, there may be multiple service modules that can provide the same network service.

用户端可以根据用户的需求,向管理节点发送携带有相应服务标识的服务请求。进而,在接收到服务请求后,管理节点可以基于该服务标识,确定用户请求的网络服务,相应的,则可以选择能够提供该网络服务的服务模块,以通过所选择的服务模块响应用户的服务请求。The user terminal can send a service request carrying a corresponding service identifier to the management node according to the user's requirements. Furthermore, after receiving the service request, the management node can determine the network service requested by the user based on the service identifier, and correspondingly, can select a service module that can provide the network service, so as to respond to the user's service through the selected service module ask.

一种实现方式中,可以将请求处理系统中所有与服务标识一致的服务模块,均确定为备选服务模块。In an implementation manner, all service modules consistent with the service identifiers in the request processing system may be determined as candidate service modules.

另一种实现方式中,为了提高网络服务的服务质量,第一服务请求中还携带有用户端的网络地址;相应的,上述步骤S402可以包括以下步骤:从各算力节点包含的服务模块中确定与服务标识一致,且所属的算力节点的网络地址与用户端的网络地址属于同一区域的服务模块,作为备选服务模块。In another implementation, in order to improve the service quality of network services, the first service request also carries the network address of the client; correspondingly, the above step S402 may include the following steps: determine from the service modules included in each computing power node The service module that is consistent with the service identifier and whose network address of the computing power node and the network address of the client belong to the same area is used as an alternative service module.

在本申请实施例中,若服务模块所属的算力节点的网络地址与用户端的网络地址属于同一区域,表明该服务模块所属的算力节点与用户端的物理距离较近,相应的,若通过该服务模块响应用户端的服务请求,能够提高网络服务的服务质量。因此,可以将所属的算力节点的网络地址与用户端的网络地址属于同一区域的服务模块,确定为备选服务模块。In this embodiment of the application, if the network address of the computing power node to which the service module belongs belongs to the same area as the network address of the client, it indicates that the physical distance between the computing power node to which the service module belongs and the client is relatively close. The service module responds to the service request of the client, and can improve the service quality of the network service. Therefore, a service module whose network address of the computing power node and the network address of the user end belong to the same area can be determined as a candidate service module.

针对步骤S403,一个备选服务模块可以对应一个备选网络路径,也可以对应多个备选网络路径,即,用户端可以通过多个不同的网络路径与同一个备选服务模块进行数据通信。For step S403, one candidate service module may correspond to one candidate network path, or may correspond to multiple candidate network paths, that is, the client may perform data communication with the same candidate service module through multiple different network paths.

可以理解的是,备选网络路径包含至少一个网络节点,通过该至少一个网络节点,可以将用户端发送的服务请求转发至对应的算力节点中的备选服务模块。It can be understood that the alternative network path includes at least one network node, and through the at least one network node, the service request sent by the client can be forwarded to the alternative service module in the corresponding computing power node.

针对步骤S404和步骤S405,网络服务的类型可以根据网络服务的需求确定,例如,针对V2X服务,由于其要求延时较小,以保证自动驾驶的安全性,因此,V2X服务的类型可以为延时需求型,即,针对延时需求型的网络服务,需要降低服务请求的响应时长。针对VR服务,由于其需要传输的数据量较大,占用较大的带宽资源,因此,VR服务的类型可以为带宽需求型。For steps S404 and S405, the type of network service can be determined according to the requirements of the network service. For example, for V2X service, because it requires a small delay to ensure the safety of automatic driving, the type of V2X service can be delayed Time-demanding type, that is, for delay-demanding network services, it is necessary to reduce the response time of service requests. For the VR service, since it needs to transmit a large amount of data and occupies a large bandwidth resource, the type of the VR service can be bandwidth-demanding.

由于不同类型的网络服务对网络的要求不同,因此,基于网络服务的类型对应的路径查找策略和网络节点的网络状态信息确定出的目标网络路径,能够满足服务请求的业务需求。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 state information of the network nodes can meet the business requirements of the service request.

可以理解的是,目标网络路径包含至少一个网络节点,通过该至少一个网络节点,可以将用户端发送的服务请求转发至目标服务模块所属的算力节点(可以称为目标算力节点),也就是说,目标算力节点与目标网络路径中的最后一个网络节点通信连接。It can be understood that the target network path includes at least one network node, and through the at least one network node, the service request sent by the client can be forwarded to the computing power node to which the target service module belongs (may be referred to as the target computing power node), also That is to say, the target computing power node communicates with the last network node in the target network path.

由于转发信息与目标网络路径匹配,因此,网络节点按照转发信息对服务请求进行转发,也就能够按照目标网络路径对服务请求进行转发,使得服务请求能够按照目标网络路径从用户端传输至目标算力节点,进而,目标算力节点可以通过目标服务模块响应该服务请求。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 computer according to the target network path. The power node, and then the target computing power node can respond to the service request through the target service module.

若目标算力节点中包含一个提供用户端所请求的网络服务的备选服务模块,则可以将该备选服务模块确定为目标服务模块。If the target computing power node includes a candidate service module that provides the network service requested by the client, the candidate service module can be determined as the target service module.

若目标算力节点中包含多个提供用户端所请求的网络服务的备选服务模块,则可以按照预设的选择策略从该多个备选服务模块中选择一个,作为目标服务模块。If the target computing power node includes multiple candidate service modules that provide the network service requested by the client, one of the multiple candidate service modules may be selected as the target service module according to a preset selection strategy.

例如,可以基于负载均衡策略选择目标服务模块。如,管理节点可以确定各备选服务模块的负载,将负载最小的备选服务模块确定为目标服务模块。或者,多个备选服务模块之间具有指定顺序,相应的,管理节点可以按照该指定顺序,确定当前的备选服务模块为目标服务模块。For example, target service modules can be selected based on load balancing policies. 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. Alternatively, there is a designated order among the multiple candidate service modules, and correspondingly, the management node may determine the current candidate service module as the target service module according to the designated order.

又例如,管理节点可以随机选择一个备选服务模块为目标服务模块。For another example, the management node may randomly select a candidate 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 end may send the 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.

在一个实施例中,每一算力节点可以包含数据收发模块。每一算力节点可以为部署的服务模块生成对应的网络地址,例如,可以为VIP(Virtual Internet Protocol,虚拟网际协议)地址,进而,算力节点可以通过数据收发模块向通信连接的网络节点通告自身的节点标识以及部署的服务模块的网络地址。另外,数据收发模块还可以在接收到服务请求时,将服务请求转发至对应的服务模块,以使服务模块响应服务请求。In one embodiment, each computing power node may include a data transceiving module. Each computing power node can generate a corresponding network address for the deployed service module, for example, it can be a VIP (Virtual Internet Protocol, virtual Internet Protocol) address, and then, the computing power node can notify the network node connected by communication through the data transceiver module Its own node ID and the network address of the deployed service module. In addition, the data transceiving module can also forward the service request to the corresponding service module when receiving the service request, so that the service module can respond to the service request.

相应的,每一网络节点可以向管理节点通告算力节点的节点标识以及算力节点中部署的服务模块的网络地址,且可以向其他网络节点和管理节点通告自身的路由信息。Correspondingly, each network node can notify the management node of the node ID of the computing power node and the network address of the service module deployed in the computing power node, and can notify other network nodes and management nodes of its own routing information.

另外,各网络节点也可以周期性地向管理节点发送网络状态信息。In addition, each network node may also periodically send network status information to the management node.

例如,参见图5,图5为本申请实施例提供的一种管理节点对服务请求进行处理的逻辑示意图。管理节点可以包含采集模块、决策模块、执行模块和服务管理模块。采集模块可以获取各网络节点上传的路由信息、服务信息(包括算力节点的标识、算力节点中部署的服务模块的网络地址)和网络节点的网络状态信息。相应的,基于记录的上述信息,也就可以确定针对每一服务模块的路由信息,并向服务管理模块发送服务信息,以及向决策模块发送路由信息和网络状态信息。服务管理模块可以确定服务请求对应的服务类型,进而,可以确定对应的路径查找策略和备选服务模块,并向决策模块发送。决策模块可以根据路径查找策略,从备选服务模块对应的备选网络路径中确定目标网络路径,并从目标网络路径对应的算力节点包含的备选服务模块中确定一个目标服务模块,并向执行模块发送目标网络路径以及目标服务模块的网络地址;执行模块则可以向用户端发送目标服务模块的网络地址,以及向目标网络路径中的各网络节点发送与目标网络路径匹配的转发信息。基于此,管理节点能够获取最新的网络状态信息,使得确定出的目标网络路径能够有效地与当前的网络状态相匹配,进一步提高网络服务的服务质量。For example, referring to FIG. 5 , FIG. 5 is a schematic diagram of a management node processing a service request provided by an embodiment of the present application. The management node can include collection module, decision-making module, execution module and service management module. The collection module can obtain the routing information uploaded by each network node, service information (including the identification 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. Correspondingly, based on the above recorded information, 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-making module. The service management module can determine the service type corresponding to the service request, and then can determine the corresponding path search strategy and candidate service modules, and send them to the decision-making module. The decision-making module can determine the target network path from the candidate network paths corresponding to the candidate service modules according to the path search strategy, and determine a target service module from the candidate service modules contained in the computing power node corresponding to the target network path, and send to The execution module sends the target network path and the network address of the target service module; the execution module can send the network address of the target service module to the client, 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 state information, so that the determined target network path can effectively match the current network state, further improving the service quality of network services.

在一个实施例中,目标网络路径中一个网络节点的转发信息包括:目标服务模块的网络地址、目标网络路径中的下一跳以及出接口的对应关系,且用于指示该网络节点在接收到携带有目标服务模块的网络地址的第二服务请求时,通过对应的出接口将接收到第二服务请求转发至目标网络路径中的下一跳。In one embodiment, the forwarding information of a network node in the target network path includes: the network address of the target service module, the corresponding relationship between the next hop in the target network path and the outgoing interface, and is used to indicate that the network node receives For the second service request carrying the network address of the target service module, the received second service request is forwarded to the next hop in the target network path through the corresponding outbound interface.

在本申请实施例中,在获取各网络节点的路由信息,以及各算力节点中部署的服务模块的网络地址后,管理节点可以按照相应的路径查找策略确定目标网络路径,即,可以确定出从用户端至目标算力节点之间的各网络节点,且可以确定出各网络节点在目标网络路径中的顺序。In the embodiment of this application, after obtaining the routing information of each network node and the network address of the service module deployed in each computing power node, the management node can determine the target network path according to the corresponding path search strategy, that is, it can determine From the user end to each network node between the target computing power node, and the order 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 can determine the next network node (that is, the corresponding next hop) of the network node, and can also determine the corresponding outbound interface of the next hop, and correspondingly , the management node can send the corresponding relationship of the network address, next hop, and outgoing interface of the target service module to the network node.

进而,在接收到携带有目标服务模块的网络地址的第二服务请求时,该网络节点可以查询该对应关系,也就可以通过该对应关系中记录的出接口,将接收到第二服务请求转发至目标网络路径中的下一跳。Furthermore, when receiving the second service request carrying the network address of the target service module, the network node can query the corresponding relationship, that is, forward the received second service request through the outgoing interface recorded in the corresponding relationship The next hop in the network path to the destination.

可以理解的是,目标网络路径中的最后一个网络节点可以将第二服务请求转发至目标算力节点。目标算力节点在解析出第二服务请求中携带的目标服务模块的网络地址后,则可以通过目标服务模块响应该第二服务请求。另外,目标算力节点还可以将第二服务请求通过目标网络路径向用户端发送。It can be understood that the last network node in the target network path may forward the second service request to the target computing power node. After the target computing power node resolves 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 may also send the second service request to the client through the target network path.

在一个实施例中,服务标识表征的网络服务为延时需求型的网络服务;网络状态信息包括网络节点之间的延时;相应的,上述步骤S404可以包括以下步骤:In one embodiment, the network service represented by the service identifier is a delay-demanding network service; the network state information includes the delay between network nodes; correspondingly, the above step S404 may include the following steps:

步骤一:针对每一备选网络路径,基于该备选网络路径中的网络节点之间的延时,计算在该备选网络路径中用户端与对应的备选服务模块所属的算力节点之间的延时,作为该备选网络路径的延时。Step 1: For each candidate network path, based on the delay between network nodes in the candidate network path, calculate the distance between the client and the computing power node to which the corresponding candidate service module belongs in the candidate network path The delay between is used as the delay of the alternative network path.

步骤二:将延时最小的备选网络路径,确定为目标网络路径。Step 2: Determining the candidate network path with the minimum delay as the target network path.

其中,两个网络节点之间的延时可以表示:网络数据从一个网络节点传输至另一个网络节点所需的时长。Wherein, 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.

在本申请实施例中,针对V2X服务等延时需求型的网络服务,由于其要求延时较小,即,需要降低服务请求的响应时长,以保证自动驾驶的安全性,因此,在确定服务标识表征的网络服务为延时需求型的网络服务时,管理节点可以获取各网络节点上传的网络节点之间的延时。In the embodiment of this application, for delay-demanding network services such as V2X services, since the delay required is small, that is, the response time of service requests needs to be reduced to ensure the safety of autonomous driving, therefore, when determining the service When the network service represented by the identification is a delay-demanding network service, the management node can obtain the delay between network nodes uploaded by each network node.

例如,针对每一备选网络路径,管理节点可以获取该备选网络路径中每两个相邻的网络节点之间的延时,然后计算各延时的总和值作为该备选网络路径的延时。For example, for each candidate network path, the management node can obtain the delay between every two adjacent network nodes in the candidate network path, and then calculate the sum of each delay as the delay of the candidate network path hour.

进而,将延时最小的备选网络路径确定为目标网络路径,使得通过目标网络路径能够降低目标服务模块响应服务请求的时长,也就能够满足延时需求型的网络服务的业务需求,提高网络服务的服务质量。Furthermore, the candidate network path with the smallest delay is determined as the target network path, so that the target service module can reduce the response time of the service request through the target network path, which can also meet the business requirements of delay-demanding network services and improve the quality of the network. Service quality of service.

在一个实施例中,类型标识表征的网络服务为带宽需求型的网络服务;网络状态信息包括网络节点的接口的带宽信息;相应的,上述步骤S404可以包括以下步骤: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; correspondingly, the above step S404 may include the following steps:

步骤1:针对每一备选网络路径,基于该备选网络路径中各网络节点的接口的带宽信息,计算该备选网络路径的可用带宽。Step 1: For each candidate network path, calculate 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.

步骤2:将可用带宽最大的备选网络路径,确定为目标网络路径。Step 2: Determine the candidate network path with the largest available bandwidth as the target network path.

其中,接口的带宽信息可以包含接口的最大带宽和接口当前已使用的带宽,或者,也可以包含接口的带宽利用率,即,接口当前已使用的带宽与最大带宽的比值。The bandwidth information of the interface may include the maximum bandwidth of the interface and the currently used bandwidth of the interface, or may also include the bandwidth utilization of the interface, that is, the ratio of the currently used bandwidth of the interface to the maximum bandwidth.

在本申请实施例中,针对VR服务、视频直播等带宽需求型的网络服务,由于其需要传输的数据量较大,占用较大的带宽资源,因此,在确定服务标识表征的网络服务为带宽需求型的网络服务时,管理节点可以获取各网络节点上传的网络节点的接口的带宽信息。In the embodiment of this application, for bandwidth-demanding network services such as VR services and live video broadcasts, since they need to transmit a large amount of data and occupy relatively large bandwidth resources, when determining the network service represented by the service identifier as bandwidth For demand-type network services, the management node can obtain the bandwidth information of the interface of the network node uploaded by each network node.

例如,针对每一备选网络路径,管理节点可以获取该备选网络路径中各网络节点的接口的带宽利用率,然后将各带宽利用率中的最大值作为该备选网络路径的可用带宽。For example, for each candidate network path, the management node may acquire bandwidth utilization rates of interfaces of network nodes in the candidate network path, and then use the maximum value of each bandwidth utilization rate as the available bandwidth of the candidate network path.

或者,针对每一备选网络路径,管理节点可以获取该备选网络路径中各网络节点的接口的剩余带宽(即最大带宽与当前已使用的带宽的差值),然后将各剩余带宽中的最小值作为该备选网络路径的可用带宽。Or, for each candidate network path, the management node can obtain the remaining bandwidth of the interface of each network node in the candidate network path (that is, the difference between the maximum bandwidth and the currently used bandwidth), and then use the The minimum value is used as the available bandwidth of the alternative network path.

进而,将可用带宽最大的备选网络路径确定为目标网络路径,使得通过目标网络路径能够满足服务请求的带宽需求,提高网络服务的服务质量。Furthermore, the candidate 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 present application also provides a request processing system, which includes a management node, multiple network nodes, and multiple computing power nodes; each computing power node communicates with a network node, and each computing power At least one service module for providing network services is deployed in the node; where:

管理节点,用于执行上述实施例中所述的请求处理方法;A management node, configured to execute the request processing method described in the foregoing embodiments;

每一网络节点,用于按照管理节点发送的转发信息对接收到的服务请求进行转发;Each network node is configured to forward the received service request according to the forwarding information sent by the management node;

每一算力节点,用于在接收到服务请求时,通过接收到的服务请求中携带的网络地址对应的服务模块对接收到服务请求进行响应。Each computing power node is configured to, when receiving a service request, respond to the received service request through the service module corresponding to the network address carried in the received service request.

基于相同的发明构思,本申请还提供了一种请求处理装置,参见图6,图6为本申请实施例提供的一种请求处理装置的结构图,所述装置应用于请求处理系统中的管理节点,所述请求处理系统还包含多个网络节点和多个算力节点,每一算力节点与一个网络节点通信连接,每一算力节点中部署有至少一个用于提供网络服务的服务模块,所述装置包括:Based on the same inventive concept, this application also provides a request processing device, see Fig. 6, Fig. 6 is a structural diagram of a request processing device provided by an embodiment of this application, and the device is applied to the management of the request processing system node, the request processing system also includes a plurality of network nodes and a plurality of computing power nodes, each computing power node communicates with a network node, and each computing power node is deployed with at least one service module for providing network services , the device includes:

第一服务请求接收单元601,用于接收用户端发送的第一服务请求;其中,所述第一服务请求中携带有表示所述用户端所请求的网络服务的服务标识;The first service request receiving unit 601 is configured to receive the first service request sent by the client; wherein, the first service request carries a service identifier representing the network service requested by the client;

备选服务模块确定单元602,用于从各算力节点包含的服务模块中确定与所述服务标识一致的服务模块,作为备选服务模块;An alternative service module determining unit 602, configured to determine a service module consistent with the service identifier from the service modules contained in each computing power node as an alternative service module;

备选网络路径确定单元603,用于针对每一备选服务模块,确定该备选服务模块所属的算力节点与所述用户端之间的网络路径,作为备选网络路径;The alternative network path determination unit 603 is configured to, for each alternative service module, determine a network path between the computing power node to which the alternative service module belongs and the client as an alternative network path;

目标网络路径确定单元604,用于基于各网络节点的网络状态信息,按照所述服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,并从所述目标网络路径对应的算力节点包含的备选服务模块中确定一个目标服务模块;其中,所述目标服务模块用于提供所述用户端所请求的网络服务;The target network path determination unit 604 is configured to determine the target network path from each candidate network path according to the path search strategy corresponding to the type of network service represented by the service identifier based on the network state information of each network node, and from the Determine a target service module among the alternative 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 client;

信息发送单元605,用于向所述用户端发送携带有所述目标服务模块的网络地址的第一服务响应,以及向所述目标网络路径中的各网络节点发送与所述目标网络路径匹配的转发信息,以使所述用户端向所述目标网络路径中的网络节点发送携带有所述目标服务模块的网络地址的第二服务请求,由所述目标网络路径中的每一网络节点按照接收到的转发信息对所述第二服务请求进行转发,直至部署有所述目标服务模块的算力节点接收到所述第二服务请求,并通过所述目标服务模块响应所述第二服务请求。An information sending unit 605, configured to send a first service response carrying the network address of the target service module to the client, and send a message matching the target network path to each network node in the target network path Forwarding information, so that the client 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 receives according to The received forwarding information forwards the second service request 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.

可选的,所述服务标识表征的网络服务为延时需求型的网络服务;所述网络状态信息包括网络节点之间的延时;Optionally, the network service represented by the service identifier is a delay-demanding network service; the network state information includes the delay between network nodes;

所述目标网络路径确定单元604,具体用于针对每一备选网络路径,基于该备选网络路径中的网络节点之间的延时,计算在该备选网络路径中所述用户端与对应的备选服务模块所属的算力节点之间的延时,作为该备选网络路径的延时;The target network path determining unit 604 is specifically configured to calculate, for each candidate network path, the user terminal in the candidate network path and the corresponding The delay between computing power nodes to which the candidate service module belongs is taken as the delay of the candidate network path;

将延时最小的备选网络路径,确定为目标网络路径。The candidate network path with the minimum delay is determined as the target network path.

可选的,所述类型标识表征的网络服务为带宽需求型的网络服务;所述网络状态信息包括网络节点的接口的带宽信息;Optionally, the network service represented by the type identifier is a bandwidth-demanding network service; the network state information includes bandwidth information of an interface of a network node;

所述目标网络路径确定单元604,具体用于针对每一备选网络路径,基于该备选网络路径中各网络节点的接口的带宽信息,计算该备选网络路径的可用带宽;The target network path determination unit 604 is specifically configured to, for each candidate network path, calculate 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 candidate network path with the largest available bandwidth is determined as the target network path.

可选的,所述第一服务请求中还携带有所述用户端的网络地址;Optionally, the first service request also carries the network address of the client;

所述备选服务模块确定单元602,具体用于从各算力节点包含的服务模块中确定与所述服务标识一致,且所属的算力节点的网络地址与所述用户端的网络地址属于同一区域的服务模块,作为备选服务模块。The alternative service module determining unit 602 is specifically configured to determine from the service modules included in each computing power node that it is consistent with the service identifier, and that the network address of the computing power node to which it belongs belongs to the same area as the network address of the client The service module of , as an alternative service module.

可选的,所述目标网络路径一个网络节点的转发信息包括:所述目标服务模块的网络地址、所述目标网络路径中的下一跳以及出接口的对应关系,且用于指示该网络节点在接收到携带有所述目标服务模块的网络地址的第二服务请求时,通过对应的出接口将接收到第二服务请求转发至所述目标网络路径中的下一跳。Optionally, the forwarding information of a network node on the target network path includes: the network address of the target service module, the corresponding relationship between the next hop in the target network path and the outgoing interface, and is used to indicate that the network node When receiving the second service request carrying the network address of the target service module, forward the received second service request to the next hop in the target network path through the corresponding outbound interface.

本申请实施例还提供了一种电子设备,如图7所示,包括处理器701、通信接口702、存储器703和通信总线704,其中,处理器701,通信接口702,存储器703通过通信总线704完成相互间的通信,The embodiment of the present application also provides an electronic device, as shown in FIG. complete the mutual communication,

存储器703,用于存放计算机程序;Memory 703, used to store computer programs;

处理器701,用于执行存储器703上所存放的程序时,实现如下步骤:When the processor 701 is used to execute the program stored on the memory 703, the following steps are implemented:

接收用户端发送的第一服务请求;其中,所述第一服务请求中携带有表示所述用户端所请求的网络服务的服务标识;receiving a first service request sent by the client; wherein, the first service request carries a service identifier representing the network service requested by the client;

从各算力节点包含的服务模块中确定与所述服务标识一致的服务模块,作为备选服务模块;Determine a service module consistent with the service identifier from the service modules included in each computing power node as an alternative service module;

针对每一备选服务模块,确定该备选服务模块所属的算力节点与所述用户端之间的网络路径,作为备选网络路径;For each candidate service module, determine the network path between the computing power node to which the candidate service module belongs and the client as the candidate network path;

基于各网络节点的网络状态信息,按照所述服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,并从所述目标网络路径对应的算力节点包含的备选服务模块中确定一个目标服务模块;其中,所述目标服务模块用于提供所述用户端所请求的网络服务;Based on the network state 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 candidate network path, and determine the target network path from the computing node corresponding to the target network path Determine a target service module among the included alternative service modules; wherein, the target service module is used to provide the network service requested by the client;

向所述用户端发送携带有所述目标服务模块的网络地址的第一服务响应,以及向所述目标网络路径中的各网络节点发送与所述目标网络路径匹配的转发信息,以使所述用户端向所述目标网络路径中的网络节点发送携带有所述目标服务模块的网络地址的第二服务请求,由所述目标网络路径中的每一网络节点按照接收到的转发信息对所述第二服务请求进行转发,直至部署有所述目标服务模块的算力节点接收到所述第二服务请求,并通过所述目标服务模块响应所述第二服务请求。sending a first service response carrying the network address of the target service module to the client, and sending forwarding information matching the target network path to each network node in the target network path, so that the The client 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 received forwarding information to the The second service request is forwarded 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.

上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. 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.

通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the electronic device and other devices.

存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.

上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。Above-mentioned processor can be general-purpose processor, comprises central processing unit (Central Processing Unit, CPU), network processor (Network Processor, NP) etc.; It can also be Digital Signal Processor (Digital Signal Processor, DSP), ASIC (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一请求处理方法的步骤。In yet another embodiment provided by the present application, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the above request processing methods is implemented. A step of.

在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一请求处理方法。In yet another embodiment provided by the present application, a computer program product including instructions is also provided, which, when run on a computer, causes the computer to execute any request processing method in the above embodiments.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it 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 the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in 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, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, 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 or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、系统、计算机可读存储介质以及计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment 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. For relevant parts, please refer to part of the description of the method embodiments.

以上所述仅为本申请的较佳实施例,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application are included within the protection scope of this application.

Claims (12)

1.一种请求处理方法,其特征在于,所述方法应用于请求处理系统中的管理节点,所述请求处理系统还包含多个网络节点和多个算力节点;每一算力节点与一个网络节点通信连接,每一算力节点中部署有至少一个用于提供网络服务的服务模块,所述方法包括:1. A request processing method, characterized in that the method is applied to a management node in a request processing system, and the request processing system also includes a plurality of network nodes and a plurality of computing power nodes; each computing power node is connected to a The network nodes are connected by communication, and at least one service module for providing network services is deployed in each computing power node, and the method includes: 接收用户端发送的第一服务请求;其中,所述第一服务请求中携带有表示所述用户端所请求的网络服务的服务标识;receiving a first service request sent by the client; wherein, the first service request carries a service identifier representing the network service requested by the client; 从各算力节点包含的服务模块中确定与所述服务标识一致的服务模块,作为备选服务模块;Determine a service module consistent with the service identifier from the service modules included in each computing power node as an alternative service module; 针对每一备选服务模块,确定该备选服务模块所属的算力节点与所述用户端之间的网络路径,作为备选网络路径;For each candidate service module, determine the network path between the computing power node to which the candidate service module belongs and the client as the candidate network path; 基于各网络节点的网络状态信息,按照所述服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,并从所述目标网络路径对应的算力节点包含的备选服务模块中确定一个目标服务模块;其中,所述目标服务模块用于提供所述用户端所请求的网络服务;Based on the network state 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 candidate network path, and determine the target network path from the computing node corresponding to the target network path Determine a target service module among the included alternative service modules; wherein, the target service module is used to provide the network service requested by the client; 向所述用户端发送携带有所述目标服务模块的网络地址的第一服务响应,以及向所述目标网络路径中的各网络节点发送与所述目标网络路径匹配的转发信息,以使所述用户端向所述目标网络路径中的网络节点发送携带有所述目标服务模块的网络地址的第二服务请求,由所述目标网络路径中的每一网络节点按照接收到的转发信息对所述第二服务请求进行转发,直至部署有所述目标服务模块的算力节点接收到所述第二服务请求,并通过所述目标服务模块响应所述第二服务请求。sending a first service response carrying the network address of the target service module to the client, and sending forwarding information matching the target network path to each network node in the target network path, so that the The client 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 received forwarding information to the The second service request is forwarded 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. 2.根据权利要求1所述的方法,其特征在于,所述服务标识表征的网络服务为延时需求型的网络服务;所述网络状态信息包括网络节点之间的延时;2. The method according to claim 1, wherein the network service represented by the service identifier is a delay-demanding network service; the network status information includes delays between network nodes; 所述基于各网络节点的网络状态信息,按照所述服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,包括: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, determining the target network path from each candidate network path includes: 针对每一备选网络路径,基于该备选网络路径中的网络节点之间的延时,计算在该备选网络路径中所述用户端与对应的备选服务模块所属的算力节点之间的延时,作为该备选网络路径的延时;For each candidate network path, based on the delay between the network nodes in the candidate network path, calculate the distance between the client and the computing power node to which the corresponding candidate service module belongs in the candidate network path The delay of is used as the delay of the alternative network path; 将延时最小的备选网络路径,确定为目标网络路径。The candidate network path with the minimum delay is determined as the target network path. 3.根据权利要求1所述的方法,其特征在于,所述类型标识表征的网络服务为带宽需求型的网络服务;所述网络状态信息包括网络节点的接口的带宽信息;3. The method according to claim 1, wherein the network service represented by the type identifier is a bandwidth-demanding network service; the network state information includes bandwidth information of an interface of a network node; 所述基于各网络节点的网络状态信息,按照所述服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,包括: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, determining the target network path from each candidate network path includes: 针对每一备选网络路径,基于该备选网络路径中各网络节点的接口的带宽信息,计算该备选网络路径的可用带宽;For each candidate network path, based on the bandwidth information of the interface of each network node in the candidate network path, calculate the available bandwidth of the candidate network path; 将可用带宽最大的备选网络路径,确定为目标网络路径。The candidate network path with the largest available bandwidth is determined as the target network path. 4.根据权利要求1所述的方法,其特征在于,所述第一服务请求中还携带有所述用户端的网络地址;4. The method according to claim 1, wherein the first service request also carries the network address of the client; 所述从各算力节点包含的服务模块中确定与所述服务标识一致的服务模块,作为备选服务模块,包括:The determining the service module consistent with the service identifier from the service modules contained in each computing power node, as an alternative service module, includes: 从各算力节点包含的服务模块中确定与所述服务标识一致,且所属的算力节点的网络地址与所述用户端的网络地址属于同一区域的服务模块,作为备选服务模块。From the service modules included in each computing power node, determine 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 client, as an alternative service module. 5.根据权利要求1所述的方法,其特征在于,所述目标网络路径中一个网络节点的转发信息包括:所述目标服务模块的网络地址、所述目标网络路径中的下一跳以及出接口的对应关系,且用于指示该网络节点在接收到携带有所述目标服务模块的网络地址的第二服务请求时,通过对应的出接口将接收到第二服务请求转发至所述目标网络路径中的下一跳。5. The method according to claim 1, wherein the forwarding information of a network node in the target network path comprises: the network address of the target service module, the next hop in the target network path, and the outgoing Interface correspondence, and used to instruct the network node to forward the received second service request to the target network through the corresponding outbound interface when receiving the second service request carrying the network address of the target service module The next hop in the path. 6.一种请求处理装置,其特征在于,所述装置应用于请求处理系统中的管理节点,所述请求处理系统还包含多个网络节点和多个算力节点,每一算力节点与一个网络节点通信连接,每一算力节点中部署有至少一个用于提供网络服务的服务模块,所述装置包括:6. A request processing device, characterized in that the device is applied to a management node in a request processing system, and the request processing system also includes a plurality of network nodes and a plurality of computing power nodes, and each computing power node is connected to a The network nodes are connected by communication, and at least one service module for providing network services is deployed in each computing power node, and the device includes: 第一服务请求接收单元,用于接收用户端发送的第一服务请求;其中,所述第一服务请求中携带有表示所述用户端所请求的网络服务的服务标识;The first service request receiving unit is configured to receive the first service request sent by the client; wherein, the first service request carries a service identifier representing the network service requested by the client; 备选服务模块确定单元,用于从各算力节点包含的服务模块中确定与所述服务标识一致的服务模块,作为备选服务模块;An alternative service module determining unit, configured to determine a service module consistent with the service identifier from the service modules contained in each computing power node as an alternative service module; 备选网络路径确定单元,用于针对每一备选服务模块,确定该备选服务模块所属的算力节点与所述用户端之间的网络路径,作为备选网络路径;An alternative network path determining unit, configured to, for each alternative service module, determine a network path between the computing power node to which the alternative service module belongs and the client as an alternative network path; 目标网络路径确定单元,用于基于各网络节点的网络状态信息,按照所述服务标识表征的网络服务的类型对应的路径查找策略,从各备选网络路径中确定目标网络路径,并从所述目标网络路径对应的算力节点包含的备选服务模块中确定一个目标服务模块;其中,所述目标服务模块用于提供所述用户端所请求的网络服务;The target network path determination unit is configured to determine the target network path from each candidate network path according to the path search strategy corresponding to the type of network service represented by the service identifier based on the network status information of each network node, and from the Determine a target service module among the alternative 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 client; 信息发送单元,用于向所述用户端发送携带有所述目标服务模块的网络地址的第一服务响应,以及向所述目标网络路径中的各网络节点发送与所述目标网络路径匹配的转发信息,以使所述用户端向所述目标网络路径中的网络节点发送携带有所述目标服务模块的网络地址的第二服务请求,由所述目标网络路径中的每一网络节点按照接收到的转发信息对所述第二服务请求进行转发,直至部署有所述目标服务模块的算力节点接收到所述第二服务请求,并通过所述目标服务模块响应所述第二服务请求。an information sending unit, configured to send a first service response carrying the network address of the target service module to the client, and send a forwarding message matching the target network path to each network node in the target network path information, so that the client 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 receives the The forwarding information forwards the second service request 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. 7.根据权利要求6所述的装置,其特征在于,所述服务标识表征的网络服务为延时需求型的网络服务;所述网络状态信息包括网络节点之间的延时;7. The device according to claim 6, wherein the network service represented by the service identifier is a delay-demanding network service; the network state information includes delay between network nodes; 所述目标网络路径确定单元,具体用于针对每一备选网络路径,基于该备选网络路径中的网络节点之间的延时,计算在该备选网络路径中所述用户端与对应的备选服务模块所属的算力节点之间的延时,作为该备选网络路径的延时;The target network path determination unit is specifically configured to, for each candidate network path, calculate the corresponding time between the user terminal and the corresponding network node in the candidate network path based on the delay between network nodes in the candidate network path. The delay between computing power nodes to which the candidate service module belongs is taken as the delay of the candidate network path; 将延时最小的备选网络路径,确定为目标网络路径。The candidate network path with the minimum delay is determined as the target network path. 8.根据权利要求6所述的装置,其特征在于,所述类型标识表征的网络服务为带宽需求型的网络服务;所述网络状态信息包括网络节点的接口的带宽信息;8. The device according to claim 6, wherein the network service represented by the type identifier is a bandwidth-demanding network service; the network state information includes bandwidth information of an interface of a network node; 所述目标网络路径确定单元,具体用于针对每一备选网络路径,基于该备选网络路径中各网络节点的接口的带宽信息,计算该备选网络路径的可用带宽;The target network path determining unit is specifically configured to, for each candidate network path, calculate 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 candidate network path with the largest available bandwidth is determined as the target network path. 9.根据权利要求6所述的装置,其特征在于,所述第一服务请求中还携带有所述用户端的网络地址;9. The device according to claim 6, wherein the first service request also carries the network address of the client; 所述备选服务模块确定单元,具体用于从各算力节点包含的服务模块中确定与所述服务标识一致,且所属的算力节点的网络地址与所述用户端的网络地址属于同一区域的服务模块,作为备选服务模块。The alternative service module determination unit is specifically configured to determine from the service modules included in each computing power node that is consistent with the service identifier, and the network address of the computing power node to which it belongs belongs to the same area as the network address of the client Service module, as an alternative service module. 10.根据权利要求6所述的装置,其特征在于,所述目标网络路径中一个网络节点的转发信息包括:所述目标服务模块的网络地址、所述目标网络路径中的下一跳以及出接口的对应关系,且用于指示该网络节点在接收到携带有所述目标服务模块的网络地址的第二服务请求时,通过对应的出接口将接收到第二服务请求转发至所述目标网络路径中的下一跳。10. The device according to claim 6, wherein 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 outgoing Interface correspondence, and used to instruct the network node to forward the received second service request to the target network through the corresponding outbound interface when receiving the second service request carrying the network address of the target service module The next hop in the path. 11.一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;11. An electronic device, characterized in that it comprises a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus; 存储器,用于存放计算机程序;memory for storing computer programs; 处理器,用于执行存储器上所存放的程序时,实现权利要求1-5任一所述的方法步骤。When the processor is used to execute the program stored in the memory, it realizes the method steps described in any one of claims 1-5. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-5任一所述的方法步骤。12. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps of any one of claims 1-5 are implemented.
CN202211214308.7A 2022-09-30 2022-09-30 Request processing method and device, electronic equipment and storage medium Active CN115665262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211214308.7A CN115665262B (en) 2022-09-30 2022-09-30 Request processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211214308.7A CN115665262B (en) 2022-09-30 2022-09-30 Request processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115665262A true CN115665262A (en) 2023-01-31
CN115665262B CN115665262B (en) 2024-11-19

Family

ID=84985315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211214308.7A Active CN115665262B (en) 2022-09-30 2022-09-30 Request processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115665262B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684349A (en) * 2023-06-05 2023-09-01 中国联合网络通信集团有限公司 Computing power network resource allocation method, system, electronic device and storage medium
WO2024016856A1 (en) * 2022-07-22 2024-01-25 中兴通讯股份有限公司 Network resource allocation method, network device, and storage medium
WO2024230296A1 (en) * 2023-05-06 2024-11-14 大唐移动通信设备有限公司 Distributed network selection method and device based on computing power, and readable storage medium
CN119583422A (en) * 2024-11-25 2025-03-07 中国联合网络通信集团有限公司 A network path determination method, program product, device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243320A (en) * 2014-09-10 2014-12-24 珠海市君天电子科技有限公司 Method and device for optimizing network access paths
US20180167453A1 (en) * 2016-12-14 2018-06-14 Huawei Technologies Co., Ltd. Distributed load balancing system, health check method, and service node
US20190037042A1 (en) * 2017-07-26 2019-01-31 Electronics And Telecommunications Research Institute Distributed forwarding system and method for service stream
CN113038566A (en) * 2019-12-25 2021-06-25 维沃移动通信有限公司 Path selection method, terminal and network side equipment
CN113079218A (en) * 2021-04-09 2021-07-06 网络通信与安全紫金山实验室 Service-oriented computing power network system, working method and storage medium
CN114095579A (en) * 2020-08-04 2022-02-25 中国移动通信有限公司研究院 Network system, business processing method and device for computing power processing
CN114239900A (en) * 2021-10-13 2022-03-25 三明学院 Optimal path selection method, device, equipment and readable storage medium
US20220263756A1 (en) * 2020-01-13 2022-08-18 Tencent Technology (Shenzhen) Company Limited Routing control method and apparatus, electronic device, and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243320A (en) * 2014-09-10 2014-12-24 珠海市君天电子科技有限公司 Method and device for optimizing network access paths
US20180167453A1 (en) * 2016-12-14 2018-06-14 Huawei Technologies Co., Ltd. Distributed load balancing system, health check method, and service node
US20190037042A1 (en) * 2017-07-26 2019-01-31 Electronics And Telecommunications Research Institute Distributed forwarding system and method for service stream
CN113038566A (en) * 2019-12-25 2021-06-25 维沃移动通信有限公司 Path selection method, terminal and network side equipment
US20220263756A1 (en) * 2020-01-13 2022-08-18 Tencent Technology (Shenzhen) Company Limited Routing control method and apparatus, electronic device, and storage medium
CN114095579A (en) * 2020-08-04 2022-02-25 中国移动通信有限公司研究院 Network system, business processing method and device for computing power processing
CN113079218A (en) * 2021-04-09 2021-07-06 网络通信与安全紫金山实验室 Service-oriented computing power network system, working method and storage medium
CN114239900A (en) * 2021-10-13 2022-03-25 三明学院 Optimal path selection method, device, equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱晓荣;张倩;: "面向多业务需求的NFV和SDN融合的资源优化算法", 通信学报, no. 11, 25 November 2018 (2018-11-25) *
梁宁宁;兰巨龙;张岩;: "基于分布式选择探测算法的服务路由机制", 电子学报, no. 07, 15 July 2017 (2017-07-15) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024016856A1 (en) * 2022-07-22 2024-01-25 中兴通讯股份有限公司 Network resource allocation method, network device, and storage medium
WO2024230296A1 (en) * 2023-05-06 2024-11-14 大唐移动通信设备有限公司 Distributed network selection method and device based on computing power, and readable storage medium
CN116684349A (en) * 2023-06-05 2023-09-01 中国联合网络通信集团有限公司 Computing power network resource allocation method, system, electronic device and storage medium
CN119583422A (en) * 2024-11-25 2025-03-07 中国联合网络通信集团有限公司 A network path determination method, program product, device and storage medium
CN119583422B (en) * 2024-11-25 2025-12-16 中国联合网络通信集团有限公司 A method, program product, device and storage medium for determining network paths

Also Published As

Publication number Publication date
CN115665262B (en) 2024-11-19

Similar Documents

Publication Publication Date Title
US11563713B2 (en) Domain name server allocation method and apparatus
JP7521005B2 (en) Method for determining user plane function, method for providing information, device, and medium
CN115665262A (en) A request processing method, device, electronic device and storage medium
CN106230896B (en) A message push method, device and system
JP7771472B2 (en) CDN network request scheduling method, device, electronic device, and storage medium
CN112087382B (en) Service routing method and device
CN110572377A (en) A data forwarding method, plug-in and domain name server
CN109040243B (en) Message processing method and device
CN109688235A (en) Virtual network method for processing business, device and system, controller, storage medium
WO2018152919A1 (en) Path selection method and system, network acceleration node, and network acceleration system
CN114726854B (en) A method and device for processing service requests and a cloud service system
WO2019042186A1 (en) Network management method and related device
CN109151009B (en) A MEC-based CDN node allocation method and system
WO2012065531A1 (en) Method, device, and system for implementing relay selection
CN115622938A (en) Computing power service processing method, device and system
CN110620721A (en) Gateway equipment, application method and service system
CN115412549B (en) Information configuration method, device and request processing method and device
US20120300776A1 (en) Method for creating virtual link, communication network element, and ethernet network system
WO2024098816A1 (en) Data transmission processing method and device, storage medium, and electronic device
CN112152928A (en) Neighbor table entry learning method and device and routing equipment
JP2022533639A (en) Method, apparatus, apparatus and storage medium for determining edge applications
CN108401040A (en) Content receiving method, content sending method, device and system for NDN
CN118803292A (en) Resource acquisition method, device, equipment, storage medium and program product
CN114520784B (en) Dynamic content accelerated access method and device
WO2024222006A1 (en) Service request response method, service data acquisition method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant