Network request processing method, device, computer readable medium and electronic device
By constructing the network request topology map and training the request routing model, the network request processing path is optimized, the problem of low network traffic processing efficiency in the cloud service orchestration system is solved, and the refined management of network traffic and energy consumption reduction are achieved.
Patent Information
- Application Number
- CN202211122916.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-09-15
Smart Images

Figure CN115473838B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of Internet technology, and specifically relates to a method, device, computer-readable medium and electronic device for processing network requests. Background Art
[0002] In the 5G era, computing and networking are integrated, traditional networks continue to be cloud-based, intelligent and automated, big data and artificial intelligence are developing rapidly, various computing resource pools are emerging in an endless stream, and there are multiple paths to choose from for processing network traffic. At present, computing nodes are usually allocated for the network traffic to be processed based on a cloud service orchestration system. However, this cloud service orchestration system requires a lot of manual effort to maintain, and insufficient computing node allocation can only lead to low efficiency in processing network traffic.
[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0004] The purpose of the present application is to provide a method, device, computer-readable medium and electronic device for processing a network request, so as to solve the problem of low efficiency in network traffic processing in the related art.
[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0006] According to one aspect of an embodiment of the present application, a method for processing a network request is provided, including:
[0007] Constructing a network request topology map according to historical network request data, wherein the network request topology map includes a plurality of nodes, and the nodes are used to process network requests;
[0008] Extracting features of historical network requests processed by each node in the network request topology graph to obtain a data feature set corresponding to the network request topology graph;
[0009] Performing model training through a data feature set corresponding to the network request topology graph to obtain a request routing model;
[0010] The request routing model is used to predict the network request to be processed, so as to obtain a routing path of the network request to be processed, wherein the routing path includes at least one target node for processing the request to be processed.
[0011] According to one aspect of an embodiment of the present application, a network request processing device is provided, including:
[0012] A topology map construction module, used to construct a network request topology map according to historical network request data, wherein the network request topology map includes a plurality of nodes, and the nodes are used to process network requests;
[0013] A feature extraction module, used to extract features of historical network requests processed by each node in the network request topology graph to obtain a data feature set corresponding to the network request topology graph;
[0014] A model training module, used to perform model training through a data feature set corresponding to the network request topology diagram to obtain a request routing model;
[0015] The network request processing module is used to predict the pending network request through the request routing model to obtain the routing path of the pending network request, wherein the routing path includes at least one target node for processing the pending request.
[0016] In one embodiment of the present application, the topology map construction module is specifically used to:
[0017] Building a node network according to a cloud resource pool, wherein the cloud resource pool includes a plurality of nodes;
[0018] The routing path of each historical network request in the historical network request data is marked in the node network to form the network request topology graph.
[0019] In one embodiment of the present application, the data feature set includes multiple data features, and the data features include node labels; the model training module includes:
[0020] A convolution processing unit, used to perform convolution processing on the data features to obtain a plurality of feature vectors corresponding to the data features;
[0021] A vector fusion unit, used for performing vector fusion processing on the plurality of feature vectors according to the plurality of first vector weights to obtain a prediction label corresponding to the data feature;
[0022] A parameter updating unit is used to update the model parameters according to the difference between the predicted label and the node label corresponding to the data feature, and to update the first vector weights according to the predicted label and the feature vectors.
[0023] In one embodiment of the present application, the convolution processing unit is specifically used for:
[0024] Performing a first convolution process on the data features to obtain a plurality of first feature vectors;
[0025] A plurality of the first feature vectors are multiplied by corresponding second vector weights to obtain a plurality of second feature vectors, and the plurality of the second feature vectors are used as a plurality of feature vectors corresponding to the data features.
[0026] In one embodiment of the present application, the vector fusion unit is specifically used for:
[0027] Performing weighted sum processing on the plurality of the feature vectors and the plurality of the first vector weights to obtain a weighted vector;
[0028] A squeezing operation is performed on the weighted vector to obtain a predicted label corresponding to the data feature.
[0029] In one embodiment of the present application, the parameter updating unit is specifically used for:
[0030] Multiplying the predicted label by the feature vector to obtain a product result;
[0031] Using the sum of the product result and the current fusion coefficient corresponding to the feature vector as the updated fusion coefficient;
[0032] The first vector weight is updated according to the updated fusion coefficient.
[0033] In one embodiment of the present application, the data feature set includes one or more of the address information of historical network requests, the type of historical network requests, the data packet size of historical network requests, the header type of historical network requests, the computing power requirements of historical network requests, and the response time of historical network requests.
[0034] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for processing a network request in the above technical solution is implemented.
[0035] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute a method for processing a network request as in the above technical solution by executing the executable instructions.
[0036] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method for processing a network request in the above technical solution.
[0037] In the technical solution provided in the embodiment of the present application, a network request topology map is constructed according to historical network requests, and features are extracted from the network request topology map to obtain a data feature set, and then a request routing model is obtained through model training of the data feature set, and finally the routing path of the pending network request is obtained through the request routing model; since the request routing model has learned a variety of data features in the historical network request data, it is equivalent to considering the routing path of the network request from multiple aspects, thereby obtaining a routing path that can efficiently process the pending requests, thereby improving the processing efficiency of network requests. Based on the request routing model obtained in this application, a more refined and intelligent classification and management of network traffic can be achieved, which can save and optimize the computing power of each cloud resource pool and reduce energy consumption.
[0038] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.
[0041] Figure 2 The flowchart of a method for processing a network request provided by an embodiment of the present application is schematically shown.
[0042] Figure 3 A schematic diagram schematically shows an application scenario of the technical solution of the present application.
[0043] Figure 4 The flowchart of a method for processing a network request provided by an embodiment of the present application is schematically shown.
[0044] Figure 5 The structural block diagram of the network request processing device provided in an embodiment of the present application is schematically shown.
[0045] Figure 6 The structure block diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0046] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0047] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0048] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0049] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0050] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0051] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.
[0052] like Figure 1As shown, the system architecture 100 may include a terminal device 110, a network 120 and a server 130. The terminal device 110 may include a smart phone, a tablet computer, a laptop computer, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, etc. The server 130 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The network 120 may be a communication medium of various connection types that can provide a communication link between the terminal device 110 and the server 130, for example, a wired communication link or a wireless communication link.
[0053] According to the implementation requirements, the system architecture in the embodiment of the present application can have any number of terminal devices, networks and servers. For example, the server 130 can be a server group composed of multiple server devices. In addition, the technical solution provided in the embodiment of the present application can be applied to the terminal device 110, can also be applied to the server 130, or can be implemented by the terminal device 110 and the server 130 together, and the present application does not make any special restrictions on this.
[0054] For example, the technical solution provided in the embodiment of the present application is executed by the server 130, and the server 130 constructs a network request topology map based on historical network request data. The network request topology map includes multiple nodes, and the nodes are used to process network requests. Then the server 130 extracts features of the historical network requests processed by each node in the network request topology map to obtain a data feature set corresponding to the network request topology map. Next, the server 130 performs model training through the data feature set corresponding to the network request topology map to obtain a request routing model. Finally, the server 130 predicts the network request to be processed through the request routing model to obtain a routing path for the network request to be processed, and the routing path includes at least one target node for processing the request to be processed.
[0055] For example, Figure 2 A schematic diagram schematically shows an application scenario of the technical solution of the present application.
[0056] like Figure 2 As shown, in this application scenario, the historical network request data includes historical network request data of mobile VR (Virtual Reality) business scenarios, historical network request data of cloud rendering or cloud gaming business scenarios, historical network request data of unmanned driving business scenarios, historical network request data of AI computing business scenarios, and historical network request data of blockchain business scenarios.
[0057] A network request topology map is constructed based on the above historical network request data, wherein a network request topology map can be constructed for the historical network request data corresponding to each of the above business scenarios, for example, a mobile VR network request topology map is constructed based on the historical network request data of the mobile VR business scenario, a cloud game network request topology map is constructed based on the historical network request data of the cloud rendering or cloud game business scenario, and an unmanned driving network request topology map is constructed based on the historical network request data of the unmanned driving business scenario, etc. Optionally, a network request topology map can also be constructed by integrating the historical network requests corresponding to the above business scenarios, for example, a network request topology map is constructed based on the historical network request data of the cloud rendering or cloud game business scenario, the unmanned driving business scenario, and the AI computing business scenario.
[0058] Then, feature extraction is performed on the historical network requests processed by each node in the network request topology graph to obtain a data feature set corresponding to the network request topology graph. When there are multiple network request topologies, multiple data feature sets are obtained.
[0059] Next, the model is trained based on the data feature set to obtain the request routing model. The model training process includes vector inner product summation and squeezing operations, and the model parameters and weights are reversely updated through the squeezing operation results.
[0060] The predicted label of the request routing model is the routing path corresponding to the data feature, that is, the flow direction of the data feature between various resource nodes during the processing. At the same time, the request routing model can also predict the business scenario corresponding to the data feature and the location of the resource pool where the node is located.
[0061] After obtaining the request routing model, the pending network request is input into the request routing model to obtain the routing path corresponding to the pending network request, which is equivalent to determining the optimal processing route for the pending network request and improving the processing efficiency of the pending network request.
[0062] The processing of the network request provided by this application is described in detail below in conjunction with specific implementation methods.
[0063] Figure 3 A flowchart of a method for processing a network request provided by an embodiment of the present application is schematically shown. Figure 3 As shown, the method includes steps 310 to 340, which are specifically as follows:
[0064] Step 310: construct a network request topology map according to historical network request data. The network request topology map includes multiple nodes, and the nodes are used to process network requests.
[0065] Specifically, historical network request data refers to processed network request data, including multiple historical network requests and the routing path of each historical network request. In the implementation of this application, network requests are also network traffic. The routing path of a network request refers to the processing nodes that a network request passes through from the time it is sent to the time it receives a response. For example, device A sends a network request, and after being processed by servers B and C, device A receives the response information of the network request. The routing path of the network request can be from device A to server B, then to server C, and finally back to device A, abbreviated as: ABCA.
[0066] According to the above example, servers B and C are both nodes for processing the network request. In the embodiment of the present application, the node that processes the network request is a node in the cloud resource pool. The storage and computing resources in cloud computing are centrally placed in the cloud resource pool, and different cloud resource pools can be distributed in different regions of the physical environment. The nodes in the cloud resource pool are equivalent to a network server cluster, and the nodes can be servers, storage, CPUs (Central Processing Units, central processing units), etc.
[0067] In one embodiment of the present application, the process of constructing a network request topology map may include: constructing a node network based on a cloud resource pool, the cloud resource pool including multiple nodes; marking the routing path of each historical network request in the historical network request data in the node network to form a network request topology map.
[0068] Specifically, the nodes in the cloud resource pool are first extracted to form a node network, and then the routing army of each network request in the historical network request data is marked in the node network to form a network request topology map. Exemplarily, the node network includes nodes A, B, C and D, the routing path corresponding to network request 1 is ABCA, and the path routing corresponding to network request 2 is ACDA. Then, in the node network, nodes A, B and C can be connected into a path, and nodes A, B and D can be connected into a path to form a network request topology map.
[0069] Then, according to the structure of the network request topology graph, it can be known that the input data of the network request topology graph is the historical network request, and the output data is the routing path corresponding to the historical network request.
[0070] Step 320: extract features of historical network requests processed by each node in the network request topology graph to obtain a data feature set corresponding to the network request topology graph.
[0071] Specifically, feature extraction of the network request topology graph is to extract the data information processed by each node, for example, extracting the address information of the historical network requests processed by each node, the historical network request type, the data packet size of the historical network request, the message header type of the historical network request, the computing power requirement of the historical network request, the response time of the historical network request, the calculation method of the historical network request, etc. The address information of the historical network request includes the source IP (Internet Protocol) address and the destination IP address of the historical network request. The historical network request type refers to the business scenario type corresponding to the historical network request, such as unmanned driving, mobile VR, cloud rendering or cloud gaming, AI computing, blockchain, etc. The message header types of historical network requests generally include text, audio, video and other types.
[0072] Exemplarily, according to the above step example, if node B processes historical network request 1, then relevant data of historical network request 1 is extracted as the data feature of node B. If node C processes historical network request 1 and historical network request 2, then relevant data of historical network request 1 and historical network request 2 is extracted as the data feature of node B.
[0073] Step 330: Perform model training using a data feature set corresponding to the network request topology diagram to obtain a request routing model.
[0074] Specifically, feature extraction is performed on the network request topology graph to obtain a data feature set as training data, and the model is used for learning and training to obtain a request routing model, which can predict the routing path of the network request.
[0075] In one embodiment of the present application, the model training process includes: performing convolution processing on data features to obtain multiple feature vectors corresponding to the data features; performing vector fusion processing on the multiple feature vectors according to multiple first vector weights to obtain predicted labels corresponding to the data features; updating model parameters according to the difference between the predicted labels corresponding to the data features and the node labels, and updating multiple first vector weights according to the predicted labels and multiple feature vectors.
[0076] Specifically, a capsule network model can be used for model training. The capsule network model includes a low-level capsule network and a high-level capsule network. The low-level capsule network performs convolution processing on the data features to obtain multiple feature vectors corresponding to the data features; and then the high-level capsule network performs vector fusion processing on the multiple feature vectors according to multiple first vector weights to obtain the prediction labels corresponding to the data features. After obtaining the prediction labels, the model parameters are updated according to the difference between the prediction labels corresponding to the data features and the node labels, and the multiple first vector weights are updated according to the prediction labels and the multiple feature vectors. The node labels corresponding to the data features indicate the real network request type, real routing path, etc. corresponding to the data features.
[0077] In one embodiment of the present application, assuming that there are n cloud resource pools, a network request topology graph is constructed based on each cloud resource pool, then there are n network request topology graphs, and model training can use the data feature sets corresponding to the n network request topology graphs.
[0078] In one embodiment of the present application, the low-level capsule network may be composed of an input layer and a PrimaryCaps convolutional layer, the high-level capsule network may be composed of a DigitCaps fully connected layer, and the activation function uses ReLU and Squashing.
[0079] In one embodiment of the present application, after the data features are input into the capsule network model, the data features can first be subjected to a first convolution process through the input layer to obtain a plurality of first feature vectors. It can be seen that the first convolution process vectorizes the data features. Then, the plurality of first feature vectors are multiplied by the corresponding second vector weights through the PrimaryCaps convolution layer to obtain a plurality of second feature vectors, thereby obtaining a plurality of feature vectors corresponding to the data features. It should be noted that when calculating feature vectors in the embodiment of the present application, the second vector weights corresponding to the first feature vectors of different data types are different, and the data type of the first feature vector corresponds to the business scenario to which the historical network request belongs.
[0080] Exemplarily, assuming that the data types include three categories: the first category is Internet of Vehicles data, the second category is XR device data, and the third category is cloud game data, and the second vector weight is represented by W, then the second eigenvector can be calculated according to the following formula:
[0081] U j|1 =W j|1 *u1
[0082] U j|2 =W j|2 *u2
[0083] U j|3 =W j|3 *u3
[0084] Where: u1 represents the location of the resource pool where the Internet of Vehicles data is located, that is, the first eigenvector; W j|1 Represents the relationship between the Internet of Vehicles data and the resource pool graph, that is, the second vector weight; U j|1 Represents the resource pool corresponding to the j-th data feature in the Internet of Vehicles data, that is, the second feature vector.
[0085] u2 represents the resource pool location of the XR device data, that is, the first eigenvector; W j|2 Indicates the relationship between XR device data and resource pool graph, that is, the second vector weight; U j|2 Represents the resource pool corresponding to the j-th data feature in the XR device data, that is, the second feature vector.
[0086] u3 represents the location of the resource pool where the cloud game data is located, that is, the first eigenvector; W j|3 Represents the relationship between cloud game data and resource pool graph, that is, the second vector weight; U j|3 Represents the resource pool corresponding to the j-th data feature in the cloud game data, that is, the second feature vector.
[0087] In one embodiment of the present application, the process of vector fusion processing may be: performing weighted summation processing on multiple feature vectors and multiple first vector weights to obtain a weighted vector; performing a squeezing operation on the weighted vector to obtain a predicted label corresponding to the data feature.
[0088] Specifically, the vector fusion processing can be calculated according to the following formula:
[0089] s j =∑C ij *U j|i
[0090] v j =squash(s j )
[0091] Among them, U j|i represents the feature vector obtained by convolution of the j-th data of the i-th data type, which is the second feature vector mentioned above; C ij represents the first vector weight; s j represents the weighted vector; squash is the squeezing function, v j Represents the predicted label. The squeeze function is a function that squeezes a large range of inputs into a smaller range.
[0092] From convolution processing of data features to obtaining predicted labels, the capsule network model predicts the data features once, and also learns once. The loss function can be determined based on the difference between the prediction results and the labels corresponding to the data features. The model parameters are updated based on the loss function, and then the model with updated parameters is used to continue predicting or learning other data features until the model converges. The trained model is recorded as the request routing model.
[0093] In the model training process, the first full-scale weight update is also included, namely C ij Specifically, the predicted label is multiplied by the feature vector to obtain the product result; the sum of the product result and the current first vector weight corresponding to the feature vector is used as the updated fusion coefficient; the first vector weight is updated according to the updated fusion coefficient. The fusion coefficient update refers to the following formula:
[0094] b ij ←b ij +U j|i *v j
[0095] Among them, b ij is the fusion coefficient, the left side of the arrow is the updated fusion coefficient, and the right side of the arrow is the current fusion coefficient; U j|i represents the feature vector; v j Represents the predicted label.
[0096] After getting the updated fusion coefficient b ij After that, repeat until the model converges, thereby achieving consensus on the routing of different computing resource pools for different Internet data. Based on this, the fusion coefficient b is updated. ij Update the corresponding first vector weight C ij The first vector weight C ij The embodiment of the present application implements dynamic routing update of the first vector weight, which is the weight between the low-level capsule network and the high-level capsule network.
[0097] Step 340: predict the pending network request through the request routing model to obtain a routing path of the pending network request, where the routing path includes at least one target node for processing the pending request.
[0098] Specifically, after obtaining the request routing model, the request routing model can be used to predict the routing path of the network request to be processed, the data type of the network request to be processed, etc. by inputting the network request to be processed into the request routing model, and the routing path includes at least one target node for processing the request to be processed. The routing path predicted by the request routing model is equivalent to the optimal processing path of the network request to be processed. Based on the routing path, the processing process of the network request to be processed can be short in time, fast in speed, and high in efficiency.
[0099] In the technical solution provided in the embodiment of the present application, a network request topology map is constructed according to historical network requests, and features are extracted from the network request topology map to obtain a data feature set, and then a request routing model is obtained through model training of the data feature set, and finally the routing path of the pending network request is obtained through the request routing model; since the request routing model has learned a variety of data features in the historical network request data, it is equivalent to considering the routing path of the network request from multiple aspects, thereby obtaining a routing path that can efficiently process the pending requests, thereby improving the processing efficiency of network requests. Based on the request routing model obtained in this application, a more refined and intelligent classification and management of network traffic can be achieved, which can save and optimize the computing power of each cloud resource pool and reduce energy consumption.
[0100] Figure 4 A flowchart of a method for routing network requests provided by an embodiment of the present application is schematically shown. Figure 4 As shown, the method includes:
[0101] S410. Abstraction of computing power resource network diagram.
[0102] The physical computing resource network graph is extracted into a routing graph for capsule network training. Physical cloud resource pools are distributed in different regions and connected through complex networks. The resource pools and networks in each region are abstracted and unified into a network resource routing topology graph (i.e., network request topology graph), and the computing resource pools are marked and identified on the graph for capsule network training.
[0103] S420, network request data element extraction.
[0104] Data elements are data features. This step is to extract data features from the network request topology to obtain a data feature set. Network request data elements are extracted according to data type, computing power requirements, data size, and server response time. The key data elements of network data processed by resource nodes are classified and extracted, including the data source destination IP address, data type (unmanned driving, AR), data size (i.e., the size of the data packet requested by the network), data computing power requirements, and request response time. These data elements are used as the training data set of the capsule network for learning and modeling network traffic routing planning.
[0105] S430, capsule network model training.
[0106] The extracted network data elements are used as training sets for capsule network model learning and training for modeling.
[0107] S440, dynamic routing algorithm.
[0108] A consensus is reached on the routing and classification of data elements through a dynamic routing algorithm, and the trained model is used as the basis for routing planning.
[0109] This step is to update the model's vector weights and other parameters through a dynamic routing algorithm during the model training process. The trained model is the request routing model, based on which routing planning for pending network requests can be performed.
[0110] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0111] The following introduces an apparatus embodiment of the present application, which can be used to execute the method for processing network requests in the above-mentioned embodiment of the present application. Figure 5 The structure block diagram of the network request processing device provided by the embodiment of the present application is schematically shown. Figure 5 As shown, the network request processing device provided in the embodiment of the present application includes:
[0112] A topology map construction module 510, configured to construct a network request topology map according to historical network request data, wherein the network request topology map includes a plurality of nodes, and the nodes are configured to process network requests;
[0113] A feature extraction module 520 is used to extract features of historical network requests processed by each node in the network request topology map to obtain a data feature set corresponding to the network request topology map;
[0114] A model training module 530 is used to perform model training through a data feature set corresponding to the network request topology graph to obtain a request routing model;
[0115] The network request processing module 540 is used to predict the pending network request through the request routing model to obtain a routing path of the pending network request, wherein the routing path includes at least one target node for processing the pending request.
[0116] In one embodiment of the present application, the topology map construction module 510 is specifically used to:
[0117] Building a node network according to a cloud resource pool, wherein the cloud resource pool includes a plurality of nodes;
[0118] The routing path of each historical network request in the historical network request data is marked in the node network to form the network request topology graph.
[0119] In one embodiment of the present application, the data feature set includes multiple data features, and the data features include node labels; the model training module 530 includes:
[0120] A convolution processing unit, used to perform convolution processing on the data features to obtain a plurality of feature vectors corresponding to the data features;
[0121] A vector fusion unit, used to perform vector fusion processing on the plurality of feature vectors according to the plurality of first vector weights to obtain a prediction label corresponding to the data feature;
[0122] A parameter updating unit is used to update the model parameters according to the difference between the predicted label and the node label corresponding to the data feature, and to update the first vector weights according to the predicted label and the feature vectors.
[0123] In one embodiment of the present application, the convolution processing unit is specifically used for:
[0124] Performing a first convolution process on the data features to obtain a plurality of first feature vectors;
[0125] A plurality of the first feature vectors are multiplied by corresponding second vector weights to obtain a plurality of second feature vectors, and the plurality of the second feature vectors are used as a plurality of feature vectors corresponding to the data features.
[0126] In one embodiment of the present application, the vector fusion unit is specifically used for:
[0127] Performing weighted sum processing on the plurality of the feature vectors and the plurality of the first vector weights to obtain a weighted vector;
[0128] A squeezing operation is performed on the weighted vector to obtain a predicted label corresponding to the data feature.
[0129] In one embodiment of the present application, the parameter updating unit is specifically used for:
[0130] Multiplying the predicted label by the feature vector to obtain a product result;
[0131] Using the sum of the product result and the current fusion coefficient corresponding to the feature vector as the updated fusion coefficient;
[0132] The first vector weight is updated according to the updated fusion coefficient.
[0133] In one embodiment of the present application, the data feature set includes one or more of the address information of historical network requests, the type of historical network requests, the data packet size of historical network requests, the header type of historical network requests, the computing power requirements of historical network requests, and the response time of historical network requests.
[0134] The specific details of the network request processing device provided in each embodiment of the present application have been described in detail in the corresponding method embodiment and will not be repeated here.
[0135] Figure 6 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.
[0136] It should be noted that Figure 6 The computer system 600 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0137] like Figure 6 As shown, the computer system 600 includes a central processing unit 601 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 602 (ROM) or the program loaded from the storage part 608 to the random access memory 603 (RAM). Various programs and data required for system operation are also stored in the random access memory 603. The central processing unit 601, the read-only memory 602 and the random access memory 603 are connected to each other through a bus 604. An input / output interface 605 (Input / Output interface, i.e., I / O interface) is also connected to the bus 604.
[0138] The following components are connected to the input / output interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a local area network card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.
[0139] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processor 601, various functions defined in the system of the present application are executed.
[0140] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0141] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0142] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0143] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0144] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.
[0145] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for processing a network request, characterized in that: include: Constructing a network request topology map corresponding to each business scenario according to historical network request data of multiple business scenarios and a cloud resource pool of the business scenarios, wherein the network request topology map includes multiple nodes, and the nodes are used to process network requests; Extracting features of historical network requests processed by each node in the network request topology map to obtain a data feature set corresponding to the network request topology map, wherein the data feature set includes multiple data features; Model training is performed through the data feature set corresponding to the network request topology map to obtain a request routing model; wherein, during the model training process, the data features are subjected to a first convolution process to obtain a plurality of first feature vectors, the first feature vectors representing the location of the cloud resource pool where the data features are located; the plurality of first feature vectors are multiplied by the corresponding second vector weights to obtain a plurality of second feature vectors, and the plurality of second feature vectors are used as a plurality of feature vectors corresponding to the data features, the plurality of feature vectors are used for model prediction to obtain predicted data corresponding to the data features; wherein the second vector weights represent the relationship between the data features and the network request topology map corresponding to the cloud resource pool, the second feature vectors representing the cloud resource pool corresponding to the data features; the request routing model is used to predict the network request to be processed to obtain a routing path for the network request to be processed, the routing path including at least one target node for processing the request to be processed.
2. The method for processing a network request according to claim 1, characterized in that: Build a network request topology map based on historical network request data, including: Building a node network according to a cloud resource pool, wherein the cloud resource pool includes a plurality of nodes; The routing path of each historical network request in the historical network request data is marked in the node network to form the network request topology graph.
3. The method for processing a network request according to claim 1, characterized in that: The data features include node labels; during the model training process, after obtaining a plurality of feature vectors corresponding to the data features, the method includes: Performing vector fusion processing on the plurality of feature vectors according to the plurality of first vector weights to obtain prediction labels corresponding to the data features; The model parameters are updated according to the difference between the predicted label and the node label corresponding to the data feature, and the first vector weights are updated according to the predicted label and the plurality of feature vectors.
4. The method for processing a network request according to claim 3, characterized in that: Performing vector fusion processing on the plurality of feature vectors according to the plurality of first vector weights to obtain prediction labels corresponding to the data features includes: Performing weighted sum processing on the plurality of the feature vectors and the plurality of the first vector weights to obtain a weighted vector; A squeezing operation is performed on the weighted vector to obtain a predicted label corresponding to the data feature.
5. The method for processing a network request according to claim 3, characterized in that: Updating a plurality of first vector weights according to the predicted label and a plurality of the feature vectors includes: Multiplying the predicted label by the feature vector to obtain a product result; Using the sum of the product result and the current fusion coefficient corresponding to the feature vector as the updated fusion coefficient; The first vector weight is updated according to the updated fusion coefficient.
6. The method for processing a network request according to any one of claims 1 to 5, characterized in that: The data feature set includes one or more of address information of historical network requests, types of historical network requests, data packet sizes of historical network requests, message header types of historical network requests, computing power requirements of historical network requests, and response times of historical network requests.
7. A network request processing device, characterized in that: include: A topology map construction module, used to construct a network request topology map corresponding to each business scenario according to historical network request data of multiple business scenarios and the cloud resource pool of the business scenario, wherein the network request topology map includes multiple nodes, and the nodes are used to process network requests; A feature extraction module, used to extract features of historical network requests processed by each node in the network request topology map, and obtain a data feature set corresponding to the network request topology map, wherein the data feature set includes multiple data features; A model training module, used to perform model training through a data feature set corresponding to the network request topology map to obtain a request routing model; wherein, during the model training process, the data features are subjected to a first convolution process to obtain a plurality of first feature vectors, the first feature vectors representing the cloud resource pool location of the data features; the plurality of first feature vectors are multiplied by corresponding second vector weights to obtain a plurality of second feature vectors, and the plurality of second feature vectors are used as a plurality of feature vectors corresponding to the data features, the plurality of feature vectors are used to perform model prediction to obtain predicted data corresponding to the data features; wherein the second vector weight represents the relationship between the data features and the network request topology map corresponding to the cloud resource pool, and the second feature vector represents the cloud resource pool corresponding to the data features; The network request processing module is used to predict the pending network request through the request routing model to obtain the routing path of the pending network request, wherein the routing path includes at least one target node for processing the pending request.
8. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for processing a network request described in any one of claims 1 to 6 is implemented.
9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor executes the executable instructions so that the electronic device executes the method for processing network requests as described in any one of claims 1 to 6.
