Data forwarding method and apparatus, electronic device, storage medium, and program product
By pre-building an IP address mapping table and generating a link mapping structure diagram, link matching is performed in descending order of hierarchy. Only one GRE tunnel is configured for each vendor, which solves the problem of complex link network topology, reduces configuration and maintenance costs, and enables rapid location and resolution of data forwarding acceleration issues.
Patent Information
- Application Number
- CN202411172428.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-08-26
AI Technical Summary
In existing technologies, the network topology of the data forwarding process is extremely complex, resulting in high network configuration and maintenance costs, and making it difficult to quickly and accurately locate acceleration problems.
By pre-constructing an IP address mapping table to generate a link mapping structure diagram, link matching is performed in descending order of region service node layer, vendor node layer and link node layer. Only one GRE tunnel is configured for each vendor to reduce the number of GRE tunnels, and the matching priority is updated based on link importance and activity.
It greatly reduces the configuration complexity and maintenance cost of network topology, can quickly locate and solve data forwarding acceleration problems, and improves network efficiency and user experience.
Smart Images

Figure CN119094360B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a data forwarding method and device, electronic equipment, storage medium and program product. BACKGROUND
[0002] Under the background of computing power network, the networking industry is developing rapidly, the network market scale and the number of users are growing, and the industrialization process is accelerating, which brings new challenges to the acceleration business of network data forwarding.
[0003] At present, the commonly used data forwarding method adopts the mode of configuring a generic routing encapsulation (GRE) tunnel when interfacing with a manufacturer link, and a GRE tunnel needs to be established for each link of each manufacturer.
[0004] However, when an operator simultaneously interfaces with multiple manufacturers and provides multiple private line links for multiple manufacturers, it is necessary to configure hundreds of GRE tunnels, and the link network topology structure is extremely complex, and the personnel cost and maintenance cost of configuring these GRE tunnels are very high. SUMMARY
[0005] The present application provides a data forwarding method, device, electronic equipment, storage medium and program product to solve the defect that the link network topology structure is extremely complex in the prior art data forwarding process, and to realize data forwarding with reduced network topology configuration complexity and maintenance cost.
[0006] The present application provides a data forwarding method, comprising:
[0007] Generating a link mapping structure diagram based on a pre-constructed IP address mapping table; the link mapping structure diagram comprises a hierarchical decreasing zone service node layer, a manufacturer node layer and a link node layer;
[0008] In response to a data transmission request, performing a link matching operation in the order of hierarchical decrease of the zone service node layer, the manufacturer node layer and the link node layer, until a target link matching a target IP address is determined; the target IP address is determined based on the data transmission request;
[0009] Forwarding user data to the target link.
[0010] According to the data forwarding method provided by the present application, after generating the link mapping structure diagram based on the pre-constructed IP address mapping table, the link mapping structure diagram is updated, comprising:
[0011] Determining the importance of each link mapping node in the link mapping structure diagram based on pre-determined importance influencing factors.
[0012] determine an activity of each link based on a frequency of use and a traffic size of each link in the link mapping structure diagram within a preset period;
[0013] update a matching priority of each link mapping node in the link mapping structure diagram based on the importance of each link mapping node and the activity of each link.
[0014] According to the data forwarding method provided by the application, the link mapping node comprises a zone service node, a vendor node and a link node.
[0015] The updating of the matching priority of each link mapping node in the link mapping structure diagram based on the importance of each link mapping node and the activity of each link comprises:
[0016] For any zone service node, a first matching priority of the zone service node is determined based on the importance of the zone service node, the importance of all link mapping nodes linked by the zone service node and the activity of all links where the zone service node is located.
[0017] For any vendor node, a second matching priority of the vendor node is determined based on the importance of the vendor node, the importance of all link mapping nodes linked by the vendor node and the activity of all links where the vendor node is located.
[0018] For any link node, a third matching priority of the link node is determined based on the importance of the link node and the activity of the link where the link node is located.
[0019] According to the data forwarding method provided by the application, the link matching operation is performed in the order of decreasing level of the zone service node layer, the vendor node layer and the link node layer, comprising:
[0020] The zone service node with the highest first matching priority in the zone service node layer is taken as a current zone service node.
[0021] The vendor node with the highest second matching priority in all vendor nodes linked by the current zone service node is taken as a current vendor node.
[0022] The link node with the highest third matching priority in all link nodes linked by the current vendor node is taken as a current link node.
[0023] It is judged whether the IP address associated with the current link node matches the target IP address.
[0024] If yes, the link where the current link node is located is taken as a target link.
[0025] According to the data forwarding method provided by the application, the link mapping structure diagram is generated based on the pre-constructed IP address mapping table, and the method comprises the steps of:
[0026] taking the first IP address mapping record of the IP address mapping table as a current record;
[0027] determining a link mapping node from the current record; the link mapping node comprises a zone server node, a vendor node and a link node;
[0028] judging whether the link mapping node exists in the link mapping structure diagram, and newly creating a non-existing link mapping node according to the judgment result;
[0029] establishing a link relationship between the link mapping nodes corresponding to the current record, so as to establish a link corresponding to the current record in the link mapping structure diagram;
[0030] taking the next IP address mapping record of the current record as a new current record, and returning to the step of determining the link mapping node from the current record until all IP address mapping records of the IP address mapping table are traversed, and a link mapping structure diagram is generated.
[0031] According to the data forwarding method provided by the application, the link matching operation is performed in the order of decreasing level of the zone server node layer, the vendor node layer and the link node layer in response to the data transmission request, and the method comprises the steps of:
[0032] parsing the data transmission request to obtain the service type of the data transmission request;
[0033] if the service type is an acceleration service, performing the link matching operation in the order of decreasing level of the zone server node layer, the vendor node layer and the link node layer in response to the data transmission request;
[0034] if the service type is not an acceleration service, determining a default link as the target link.
[0035] The application further provides a data forwarding device, which comprises:
[0036] a structure diagram generation module, configured to generate a link mapping structure diagram based on a pre-constructed IP address mapping table; the link mapping structure diagram comprises a zone server node layer, a vendor node layer and a link node layer in decreasing level;
[0037] a link matching module, configured to perform a link matching operation in a descending order of the zone node layer, the vendor node layer and the link node layer until a target link matching the target IP address is determined in response to a data transmission request, wherein the target IP address is determined based on the data transmission request;
[0038] a forwarding execution module, configured to forward the user data to the target link.
[0039] The application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data forwarding method according to any one of the above when executing the computer program.
[0040] The application further provides a non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program is executable on a processor to implement the data forwarding method according to any one of the above.
[0041] The application further provides a computer program product, comprising a computer program, wherein the computer program is executable on a processor to implement the data forwarding method according to any one of the above.
[0042] The data forwarding method, device, electronic device, storage medium and program product provided by the application can pre-construct an IP address mapping table and generate a link mapping structure diagram, and then perform link matching in a descending order of the zone node layer, the vendor node layer and the link node layer to determine a target link, so that only one GRE tunnel needs to be configured for each vendor when configuring a network, and hundreds or thousands of GRE links do not need to be configured for all links of each vendor, which greatly reduces the configuration complexity of a network topology and reduces network maintenance costs. BRIEF DESCRIPTION OF DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the application or prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the application, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.
[0044] Figure 1 is a flowchart of a game acceleration service data forwarding process in the related art.
[0045] Figure 2 is one of the flowcharts of the data forwarding method provided by the application.
[0046] Figure 3 is another of the flowcharts of the data forwarding method provided by the application.
[0047] Figure 4 This is an example diagram of the initially generated link mapping structure provided by the present invention.
[0048] Figure 5 This is an example diagram of the updated link mapping structure provided by the present invention.
[0049] Figure 6 This is the third flowchart of the data forwarding method provided by the present invention.
[0050] Figure 7 This is a schematic diagram of the data forwarding device provided by the present invention.
[0051] Figure 8 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0052] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0053] It should be noted that, in the description of this invention, the term "comprising" or any other variations thereof is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. Those skilled in the art will understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0054] The terms "first," "second," etc., used in this invention are used to distinguish similar objects, not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, without limiting the number of objects; for example, a first object can be one or more. Furthermore, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0055] Against the backdrop of computing power networks, the Internet industry is developing rapidly, the network market size and the number of users are constantly growing, and the process of industry scaling and industrialization is accelerating, which brings new challenges to the acceleration of network data forwarding services.
[0056] Taking games as an example, players often experience issues such as screen stuttering, latency, and high packet loss during gameplay, severely impacting the gaming experience. Game acceleration has emerged to address this. Game acceleration improves the gaming environment and reduces latency by speeding up data transmission between the local network and the game server, resolving problems such as slow network speeds, game stuttering, disconnections, and high latency caused by unsuitable network nodes.
[0057] Figure 1 This is a schematic diagram of the data forwarding process in game acceleration services within related technologies, such as... Figure 1 As shown, in the data forwarding process of traditional game acceleration services, the end-side (user terminal) forwards service data packets to the Sokcs5 Server, and then forwards them to different dedicated links of different game manufacturers such as BD, LS, and TC through the Sokcs5 Server.
[0058] Socks5 is a proxy protocol that acts as an intermediary between front-end machines and server machines using the TCP / IP protocol, enabling front-end machines on an intranet to access servers on the Internet and making communication more secure.
[0059] Leased lines are dedicated links provided by operators to customers such as game developers, with various speeds. They are directly connected to the backbone network to provide convenient and fast high-speed Internet access services, allowing game developers and users to access the Internet via wired or wireless means and flexibly choose bandwidth.
[0060] A link refers to the physical network medium that connects two computers, including wired links and wireless links.
[0061] When connecting to vendor links, related technical solutions often use the method of configuring Generic Routing Encapsulation (GRE) tunnels, and a GRE tunnel needs to be established for each vendor link.
[0062] Specifically, when the operator's Sokcs5 Server connects to multiple game developers and provides multiple dedicated lines for each game developer, each line needs to be configured with GRE for both the Sokcs5 Server and the developer's link. The number of GREs that need to be configured on the network side can reach hundreds or thousands.
[0063] In traditional, complex solutions for accelerating game link forwarding, hundreds or even thousands of GRE tunnels are configured. Professional network personnel need to maintain these complex GRE tunnel configurations, including information such as the local IP address, remote IP address, and tunnel status. The sheer volume of configuration data to maintain results in high personnel and maintenance costs. Furthermore, link matching latency increases exponentially with the number of links, impacting data forwarding efficiency.
[0064] Furthermore, traditional game acceleration methods configure GRE tunnels for each vendor's link, resulting in massive amounts of data in the network configuration and maintenance information, including GRE configuration details and tunnel status for each vendor's link. When game acceleration is ineffective, quickly and accurately locating the problem makes it difficult to guarantee a smooth gaming experience for players. If GRE tunnel establishment fails due to incorrect configuration information, operations personnel face complex network topologies and thousands of network configuration and maintenance records, making it difficult to quickly and accurately pinpoint the problem within a short timeframe. This significant challenge in locating game acceleration issues ultimately undermines the player's acceleration experience.
[0065] In view of the technical problems existing in data forwarding in the aforementioned related technologies, the present invention provides a data forwarding method, apparatus, electronic device, storage medium and program product, which solves at least one of the aforementioned technical problems.
[0066] The following is combined Figures 2-8 This invention describes a data forwarding method, apparatus, electronic device, storage medium, and program product.
[0067] It should be noted that the execution subject of the data forwarding method provided by the present invention is the corresponding data forwarding device, which can be a server, computer equipment, such as mobile phone, tablet computer, laptop computer, handheld computer, vehicle electronic equipment, wearable device, ultra-mobile personal computer (UMPC), netbook or personal digital assistant (PDA), etc.
[0068] Figure 2 This is one of the flowcharts illustrating the data forwarding method provided by the present invention, such as... Figure 2 As shown, the data forwarding method includes, but is not limited to, the following steps 201 to 203.
[0069] Step 201: Generate a link mapping structure diagram based on a pre-built IP address mapping table; the link mapping structure diagram includes a service node layer, a vendor node layer, and a link node layer with decreasing hierarchical levels.
[0070] An IP address mapping table is a data table that maps links to IP addresses, representing different link information provided by different vendors in different regions. Data forwarding service providers / operators and game developers and other providers requiring data forwarding services negotiate and agree in advance on the links provided and the corresponding IP addresses for each link, pre-building the IP address mapping table and storing it on a server or node.
[0071] The IP address mapping table, based on the agreed-upon IP addresses, is used to represent different service zones, different vendors, different links, and the IP address information corresponding to each link. Understandably, one link corresponds to one IP address.
[0072] Table 1 is an example of the IP address mapping table provided by this invention. As shown in Table 1, the IP address mapping table includes a region / service field, a vendor + link field, and an IP address field. In this case, the IP address mapping table covers two regions / services, A and B, two vendors, BD and TC, and the IP addresses corresponding to six links. Each IP address mapping record in the IP address mapping table corresponds to a specific link provided to the user by a specific vendor through a specific region / service. Through the IP address mapping table, different link information from different regions / services and different vendors can be distinguished.
[0073] If the player selects server A, the IP address mapping table has already agreed that under server A, IP address 10.11.100.1 corresponds to SH-HG link of BD vendor, 10.11.100.2 corresponds to SH-RB link of BD vendor, 10.11.100.3 corresponds to SH-TW link of BD vendor, 10.11.100.5 corresponds to HZ-HG link of TC vendor, and 10.11.100.6 corresponds to SH-RB link of TC vendor.
[0074] If the player selects server B, the IP address mapping table has already agreed that under server B, IP address 10.11.100.7 corresponds to SH-TW link of BD vendor, 10.11.100.8 corresponds to SH-HG link of BD vendor, and 10.11.100.9 corresponds to SH-RB link of TC vendor.
[0075] Table 1
[0076]
[0077] Optionally, the IP address mapping table is stored on the server or node of the data forwarding service provider / operator.
[0078] Optionally, the server is a Socks5 Server.
[0079] Optionally, the node is built on Socks5 Server and Post Office Protocol (POP).
[0080] Figure 3 This is the second flowchart illustrating the data forwarding method provided by this invention, as shown below. Figure 3 As shown, during data forwarding, the user forwards the service data packets through the user terminal to the node built on Socks5 Server and POP via Elastic Load Balance (ELB). The Socks5 Server parses the service data packets, obtains the area service and link information, matches the area service and link information in the IP address mapping table, converts it into the IP address in the IP address mapping table, and forwards it to the corresponding link of BD, LS, and TC vendors according to the IP address.
[0081] Elastic Load Balancing (ELB) is a traffic distribution and control service that distributes access traffic to multiple backend servers according to allocation policies. Elastic Load Balancing can expand the external service capabilities of an application system through traffic distribution, while simultaneously improving the availability of the application system by eliminating single points of failure.
[0082] Compared to traditional solutions that require servers to configure a GRE tunnel for each link from each vendor, the data forwarding method provided by this invention pre-builds an IP address mapping table on the server or node based on agreed-upon IP addresses, establishing a mapping relationship between links and IP addresses. After pre-building the IP address mapping table, the server no longer needs to configure a GRE tunnel for each link; instead, it only needs to configure one GRE tunnel for each vendor, with one GRE tunnel corresponding to one vendor. This significantly reduces the number of GRE tunnels, and specific link matching is performed by matching the IP address mapping table.
[0083] Optionally, such as Figure 3 As shown, the nodes include a primary node and a backup node. The primary node is built based on Socks5 Server-1 and POP-1, while the backup node is built based on Socks5 Server-2 and POP-2. When the primary node fails, the backup node takes over the IP address mapping and matching.
[0084] The link mapping structure diagram is generated based on a pre-built IP address mapping table. When the IP address mapping table includes a region / service field, a vendor + link field, and an IP address field, the link mapping structure diagram correspondingly includes a region / service node layer, a vendor node layer, and a link node layer in descending order of hierarchy. That is, the region / service node layer is at a higher level than the vendor node layer, and the vendor node layer is at a higher level than the link node layer.
[0085] The regional service node layer includes several regional service nodes, the vendor node layer includes several vendor nodes, and the link node layer includes several link nodes. Regional service nodes, vendor nodes, and link nodes are all types of link mapping nodes. That is, the link mapping structure diagram is a graph obtained by linking several link mapping nodes according to the mapping relationship between links and IP addresses recorded in the IP address mapping table.
[0086] In this layer, each link node is pre-associated with the IP address corresponding to each link in the IP address mapping table.
[0087] Table 2 is an example table of the link mapping linked list provided by this invention. As shown in Table 2, the link mapping linked list is a mapping table obtained by merging the same regional service and the same manufacturer under the same regional service according to the hierarchical structure of regional service node layer, manufacturer node layer, and link node layer, based on a pre-constructed IP address mapping table. The link mapping linked list covers two regional services, A and B, two demanding manufacturers, BD and TC, 8 links, and the IP addresses corresponding to the 8 links.
[0088] Table 2
[0089]
[0090] Figure 4 This is an example diagram of the initially generated link mapping structure provided by the present invention, such as... Figure 4 As shown, this link mapping structure diagram is a mapping link structure diagram constructed based on the region service A in the link mapping chain list in Table 2. In this link mapping structure diagram, the region service node layer includes one region service node "A", the vendor node includes two vendor nodes "BD" and "TC" that link the region service node "A", and the link node layer includes 5 link nodes, of which 3 link nodes link the vendor node "BD" and 2 link nodes link the vendor node "TC".
[0091] The link node “SH-HG” connecting to vendor node “BD” corresponds to IP address 10.11.100.1, the link node “SH-RB” connecting to vendor node “BD” corresponds to IP address 10.11.100.2, the link node “SH-TW” connecting to vendor node “BD” corresponds to IP address 10.11.100.3, the link node “HZ-HG” connecting to vendor node “TC” corresponds to IP address 10.11.100.5, and the link node “SH-RB” connecting to vendor node “TC” corresponds to IP address 10.11.100.6.
[0092] Optionally, when generating a link mapping structure diagram based on a pre-built IP address mapping table, a link mapping linked list can be generated first based on the IP address mapping table, and then a link mapping structure diagram can be generated based on the link mapping linked list; alternatively, the link mapping structure diagram can be generated directly based on the IP address mapping table.
[0093] Specifically, before receiving and responding to data transmission requests sent by users, an IP address mapping table representing link information for different game servers and different vendors is pre-constructed based on agreements with game developers and other demand providers regarding IP addresses. A link mapping structure diagram is then generated based on this table. The generated link mapping structure diagram consists of several link mapping nodes and the link relationships between them. These nodes include server nodes, vendor nodes, and link nodes. Server nodes form the server node layer, vendor nodes form the vendor node layer, and link nodes form the link node layer. The server node layer is at a higher level than the vendor node layer, and the vendor node layer is at a higher level than the link node layer.
[0094] Step 202: In response to the data transmission request, perform a link matching operation in descending order of the service node layer, the vendor node layer, and the link node layer until a target link matching the target IP address is determined; the target IP address is determined based on the data transmission request.
[0095] Link matching is a series of operations that match a target link based on the information carried in the data transmission request, as determined by the link mapping structure diagram.
[0096] The target link is a dedicated link agreed upon by the data forwarding service provider and the data forwarding service provider / operator, which can provide users with various speeds and enable convenient and fast Internet access.
[0097] Specifically, in combination Figure 4 As shown, after receiving a data transmission request from a user, the system responds to the request by parsing out the target IP address and / or service information. Then, it performs link matching operations in descending order of the service node layer, vendor node layer, and link node layer.
[0098] When performing link matching operations, following the descending hierarchy of the service node layer, vendor node layer, and link node layer in the link mapping structure diagram, the first service node "A" in the service node layer is selected as the current service node. The first vendor node "BD" linked by the current service node "A" in the vendor node layer is selected as the current vendor node. The first link node "SH-HG" linked by the current vendor node "BD" in the link node layer is selected as the current link node. It is then determined whether the IP address associated with the current link node "SH-HG" matches the target IP address. If they match, the link where the current link node "SH-HG" is located is selected as the target link.
[0099] If they do not match, the next link node "SH-RB" of the current link node "SH-HG" will be taken as the new current link node, and it will be determined whether the IP address associated with the new current link node "SH-RB" matches the target IP address.
[0100] Similarly, if it is determined that the IP address associated with all the link nodes connected to the current vendor node "BD" at the link node layer does not match the target IP address, the next vendor node "TC" of the current vendor node "BD" is taken as the new current vendor node. The steps described above are repeated to traverse all the link nodes connected to the new current vendor node "TC" at the link node layer until a target link with the same associated IP address as the target IP address is found, or until all the vendor nodes connected to the current regional server node at the vendor node layer have been traversed.
[0101] If the target link is still not determined after traversing all the vendor nodes linked to by the current server node "A" at the vendor node layer, then the next server node of the current server node "A" is taken as the new current server node, and all the link nodes of the new current server node are traversed according to the aforementioned steps until a target link with the same associated IP address as the target IP address is matched.
[0102] Step 203: Forward the user data to the target link.
[0103] Specifically, after performing the link matching operation to determine the target link, the service data packets are forwarded to the target link obtained after the link matching operation based on the target IP address.
[0104] The data forwarding method provided by this invention pre-constructs an IP address mapping table and generates a link mapping structure diagram. Then, it performs link matching to determine the target link in descending order of the service node layer, vendor node layer, and link node layer. This allows the network configuration to require only one GRE tunnel for each vendor, instead of configuring hundreds or thousands of GRE links for each vendor's links, which greatly reduces the complexity of network topology configuration and network maintenance costs.
[0105] Furthermore, based on the data forwarding method provided by this invention, if there is no significant acceleration effect in data forwarding, the reduction in the number of network configurations and the optimization of the network topology can quickly locate the faulty target link by querying the IP address mapping table, thereby accurately locating and solving the data forwarding acceleration problem in a short period of time.
[0106] Based on the above embodiments, as an optional embodiment, after generating the link mapping structure diagram based on the pre-built IP address mapping table, updating the link mapping structure diagram includes:
[0107] Based on predetermined importance influencing factors, the importance of each link mapping node in the link mapping structure diagram is determined;
[0108] Based on the usage frequency and traffic volume of each link in the link mapping structure diagram within a preset period, the activity level of each link is determined.
[0109] Based on the importance of each link mapping node and the activity of each link, the matching priority of each link mapping node in the link mapping structure diagram is updated.
[0110] The preset cycle is a pre-defined cycle for updating the generated link mapping structure diagram.
[0111] Importance factors refer to the factors that affect the data forwarding performance of each link mapping node.
[0112] Matching priority is determined based on the importance of each link mapping node and the activity of each link, and is used as the basis for updating the link relationships between each link mapping node in the link mapping structure diagram.
[0113] Understandably, when the types of link mapping nodes include regional service nodes, vendor nodes, and link nodes, the factors influencing the importance of each type of link mapping node may be the same or different. The specific factors influencing the importance of each link mapping node can be determined based on the actual application situation.
[0114] It should be noted that the factors influencing importance include, but are not limited to, at least one of the following: the type of link mapping node, network device performance, network protocol and its configuration, bandwidth, bandwidth utilization, traffic management strategy, etc., and this invention does not limit these factors.
[0115] A link is a unique and complete set consisting of a server node, a vendor node connected to that server node, and a link node connected to that vendor node.
[0116] Activity level refers to the frequency of a link's use and the amount of traffic it generates within a preset period. It measures how frequently a link is used as a target link for data forwarding within that period. Generally speaking, all other things being equal, the higher the activity level of a link, the higher the matching priority of the link mapping node on that link.
[0117] Matching priority refers to the degree to which a link mapping node is prioritized for matching compared to other link mapping nodes at the same level when performing link matching operations. The higher the matching priority of a link mapping node, the more preferentially it is matched.
[0118] After generating the link mapping structure diagram based on the pre-built IP address mapping table, it is necessary to update the link mapping structure diagram during the subsequent data forwarding process in response to data transmission requests, so as to reduce the matching time according to the actual data forwarding situation.
[0119] Specifically, when updating the link mapping structure diagram, firstly, based on pre-determined importance influencing factors, the importance of each link mapping node in the link mapping structure diagram, including regional service nodes, vendor nodes, and link nodes, is determined. Then, based on the usage frequency and traffic volume of each link within a preset period, the activity level of each link is determined. Finally, based on the importance of each link mapping node and the activity level of each link, the matching priority of each link mapping node is updated, thereby updating the entire link mapping structure diagram.
[0120] It is understandable that the determination of importance influencing factors is usually not affected by different preset periods. Therefore, the importance of each link mapping node can be calculated based on the same, pre-determined importance influencing factors in different preset periods. However, the calculation of activity is based on two real-time indicators: usage frequency and traffic volume. Therefore, the activity of each link is usually calculated after a certain preset period ends.
[0121] Optionally, the importance of each link mapping node is determined according to the following expression:
[0122] (1)
[0123] in, Indicates the first The importance of each link mapping node Indicates the first The number of factors influencing the importance of each link mapping node. Indicates the first There are a total of factors affecting the importance of an item. Class of impact factors Indicates the first The weights of factors influencing the importance of an item. Indicates the first The first of the factors affecting the importance of the item The weights of class-based impact factors.
[0124] By assigning different weights to different types of important influencing factors and different influencing factors within specific influencing factors, the criticality of various important influencing factors and influencing factors can be measured to obtain a more accurate importance.
[0125] Understandably, referring to the above expression (1), the first... Importance of each server node , No. Importance of each vendor node and the Importance of each link node .
[0126] Optionally, at the end of each preset period, the activity level of each link is determined according to the following expression:
[0127] (2)
[0128] in, Indicates the first The activity level of each link; Representing a periodic set The first in A preset cycle, , ; Indicates the first The link is in the 1st Frequency of use within a preset cycle , ; Indicates the first The link is in the 1st The flow rate for a preset period, , ; , These are two constants.
[0129] Given the massive amount of actual link data in the link mapping structure diagram, whether it is the traditional approach of configuring GRE tunnels for each link or the present invention which only requires configuring GRE tunnels for each vendor after pre-building the IP address mapping table, the link matching time may become an obstacle to data forwarding and even acceleration.
[0130] The data forwarding method provided by this invention updates the generated link mapping structure diagram according to a preset period. Specifically, it updates the matching priority of each link mapping node based on the importance of each link mapping node and the activity of each link. This can adjust the degree to which each link mapping node is prioritized for matching according to the actual data forwarding and link matching process, so that link mapping nodes with higher matching priority can be matched more preferentially in the next preset period, thereby reducing the time consumption of link matching operations.
[0131] Based on the above embodiments, as an optional embodiment, the link mapping node includes a regional service node, a vendor node, and a link node;
[0132] The step of updating the matching priority of each link mapping node in the link mapping structure diagram based on the importance of each link mapping node and the activity of each link includes:
[0133] For any of the aforementioned server nodes, a first matching priority for the server node is determined based on the importance of the server node, the importance of all link mapping nodes linked to the server node, and the activity of all links where the server node is located.
[0134] For any of the aforementioned vendor nodes, a second matching priority for the vendor node is determined based on the importance of the vendor node, the importance of all link mapping nodes linked to the vendor node, and the activity of all links where the vendor node is located.
[0135] For any of the aforementioned link nodes, a third matching priority is determined based on the importance of the link node and the activity of the link to which the link node belongs.
[0136] The first matching priority refers to the matching priority of the regional service node in the link mapping structure diagram; the second matching priority refers to the matching priority of the vendor node in the link mapping structure diagram; and the third matching priority refers to the matching priority of the link node in the link mapping structure diagram.
[0137] Specifically, when calculating the matching priority of each link mapping node based on the importance of each link mapping node and the activity of each link, different calculation methods are used for the importance of regional service nodes, vendor nodes and link nodes based on the different types of link mapping nodes.
[0138] For any given server node, its first matching priority is determined based on the importance of the server node, the importance of all link mapping nodes connected to the server node, and the activity of all links where the vendor node resides. The link mapping nodes connected to the server node include several vendor nodes directly connected to the server node, as well as all link nodes directly connected to several vendor nodes.
[0139] Optionally, the first matching priority of a region / server node is calculated based on the following expression:
[0140] (3)
[0141] in, Represents the set of server nodes The first in Each server node , Indicates the number of nodes in the server area; Indicates the first The first matching priority of each server node; Indicates the first Each server node In the preset period The set of all manufacturer nodes linked below, ; Indicates the first Each server node In the preset period The set of all linked nodes below. ; Indicates the first Each server node In the preset period The set of all links where the following exists. = ; For server node set The first in The importance of each regional server node; For the first The first server node linked to The importance of each vendor node; Indicates the first The first server node linked to The importance of each link node; For the first The server node is located at the first The activity level of each link; , , It is a constant.
[0142] Optionally, the second matching priority of the vendor node is calculated based on the following expression:
[0143] (4)
[0144] in, Represents the set of vendor nodes The first in Each vendor node , Indicates the number of manufacturer nodes; Indicates the first The second matching priority for each vendor node; Indicates the first Manufacturer Nodes In the preset period The set of all linked nodes below. ; Indicates the first Manufacturer Nodes In the preset period The set of all links where the following exists. ; Represents the set of manufacturer nodes The first in The importance of each manufacturer's node; Indicates the first The first manufacturer node linked to The importance of each link node; For the first The server node is located at the first The activity level of each link; , It is a constant.
[0145] Optionally, the third matching priority of the link node is calculated according to the following expression:
[0146] (5)
[0147] in, Represents the set of link nodes The first in One link node, , Indicates the number of link nodes; Indicates the first The third matching priority of each link node; No. The importance of each link node; No. The activity level of the link where each link node is located. It is a constant.
[0148] The data forwarding method provided by this invention updates the matching priority of each regional service node, vendor node, and link node in the link mapping structure diagram according to a preset period based on different matching priority calculation methods for different types of link mapping nodes. This allows for the calculation of matching priorities that more accurately reflect the actual data forwarding and link matching process, thereby further improving the accuracy of matching higher-priority link mapping nodes in the next preset period. Furthermore, since the link mapping structure diagram is a linked list structure, sorting is fast; only the corresponding links of the link mapping nodes need to be changed based on the calculation results, further reducing the time required for link matching operations.
[0149] Based on the above embodiments, as an optional embodiment, the step of performing the link matching operation in descending order of the service node layer, the vendor node layer, and the link node layer includes:
[0150] The server node with the highest first matching priority in the server node layer is taken as the current server node;
[0151] The vendor node with the highest second matching priority among all vendor nodes linked to the current server node is taken as the current vendor node;
[0152] The third link node with the highest matching priority among all link nodes connected to the current vendor node is selected as the current link node;
[0153] Determine whether the IP address associated with the current link node matches the target IP address;
[0154] If so, the link where the current link node is located is taken as the target link.
[0155] Figure 5 This is an example diagram of the updated link mapping structure provided by the present invention, such as... Figure 5 As shown in the updated link mapping structure diagram, the regional service node "A" links to two vendor nodes "BD" and "TC", with vendor node "TC" having a higher second matching priority than vendor node "BD". Among the two link nodes linked by vendor node "TC", the third matching priority, from highest to lowest, is link nodes "SH-RB" and "HZ-HG". Among the three link nodes linked by vendor node "BD", the third matching priority, from highest to lowest, is link nodes "SH-RB", "SH-TW", and "SH-HG".
[0156] Specifically, in combination Figure 5As shown, the link mapping structure diagram has been updated with the matching priority of each link mapping node. When a data transmission request sent by a user is received to perform a link matching operation, there is only one regional service node "A" at the regional service node layer. Its first matching priority is the highest, so regional service node "A" is selected as the current regional service node. Among the vendor nodes "BD" and "TC" linked to the current regional service node "A", "TC" with the second highest matching priority is selected as the current vendor node. Among the link nodes "SH-RB" and "HZ-HG" linked to the current vendor node "TC", "SH-RB" with the third highest matching priority is selected as the current link node. It is determined whether the IP address associated with the current link node "SH-RB" matches the target IP address. If they match, the link where the current link node "SH-RB" is located is selected as the target link.
[0157] If they do not match, the next link node "HZ-HG" of the current link node "SH-RB" will be taken as the new current link node, and it will be determined whether the IP address associated with the new current link node "HZ-HG" matches the target IP address.
[0158] Similarly, if it is determined that the IP address associated with all the link nodes connected to the current vendor node "TC" at the link node layer does not match the target IP address, the next vendor node "BD" of the current vendor node "TC" is taken as the new current vendor node. The steps described above are repeated to traverse all the link nodes connected to the new current vendor node "BD" at the link node layer until a target link with the same associated IP address as the target IP address is found, or until all the vendor nodes connected to the current regional server node at the vendor node layer have been traversed.
[0159] If the target link is still not determined after traversing all the vendor nodes linked to by the current server node "A" at the vendor node layer, then the next server node of the current server node "A" is taken as the new current server node, and all the link nodes of the new current server node are traversed according to the aforementioned steps until a target link with the same associated IP address as the target IP address is matched.
[0160] The data forwarding method provided by this invention periodically calculates and updates the matching priority of each mapped link node by setting a priority matching algorithm. Based on the structure of the link mapping structure diagram, the link matching is performed according to the hierarchy of each node layer and the matching priority of each mapped link node, which further improves the efficiency of matching hits. The algorithm can be dynamically adjusted to ensure that the rule matching time is always kept at a low level, greatly improving the source IP mapping matching efficiency and enhancing the acceleration performance of data forwarding.
[0161] Based on the above embodiments, as an optional embodiment, generating the link mapping structure diagram based on the pre-built IP address mapping table includes:
[0162] The first IP address mapping record in the IP address mapping table is taken as the current record;
[0163] The link mapping nodes are determined from the current record; the link mapping nodes include regional service nodes, vendor nodes, and link nodes;
[0164] Determine whether all the link mapping nodes exist in the link mapping structure diagram, and create new link mapping nodes that do not exist based on the determination result;
[0165] Establish the link relationship between the link mapping nodes corresponding to the current record, so as to establish the link corresponding to the current record in the link mapping structure diagram;
[0166] The next IP address mapping record of the current record is taken as the new current record, and the step of determining the link mapping node from the current record is returned until all IP address mapping records of the IP address mapping table are traversed to generate a link mapping structure diagram.
[0167] Specifically, in one embodiment, a pre-built IP address mapping table as shown in Table 1 is generated. Figure 4 When the link mapping structure diagram is shown, the first IP address mapping record "A-BD(SH-HG)-10.11.100.1" in Table 1 is taken as the current record, and the regional service node "A", the vendor node "BD" and the link node "SH-HG" are determined from the current record.
[0168] The current record is the first IP address mapping record, indicating that no link mapping nodes or links within the link mapping node brackets have been established in the link mapping structure diagram. At this point, it is determined that none of the link mapping nodes exist in the link mapping structure diagram. Therefore, it is necessary to create a new regional service node "A", a vendor node "BD", and a link node "SH-HG" in the link mapping structure diagram.
[0169] Furthermore, a link relationship is established between the newly created regional service node "A", the vendor node "BD", and the link node "SH-HG" so that the regional service node "A", the vendor node "BD", and the link node "SH-HG" together constitute the link corresponding to the current record.
[0170] The next IP address mapping record "A-BD(SH-RB)-10.11.100.2" of the current record "A-BD(SH-HG)-10.11.100.1" is taken as the new current record. From the current record, the service node "A", vendor node "BD", and link node "SH-RB" are determined. It is determined that the link node "SH-RB" does not exist in the link mapping structure diagram. Therefore, the link node "SH-RB" needs to be created in the link mapping structure diagram, and a link relationship needs to be established between vendor node "BD" and link node "SH-RB" so that the service node "A", vendor node "BD", and link node "SH-RB" together constitute the link corresponding to the new current record.
[0171] This process continues until all IP address mapping records in the IP address mapping table are traversed, generating the initial link mapping structure diagram.
[0172] The data forwarding method provided by this invention generates a link mapping structure diagram based on a pre-built IP address mapping table. This allows for the subsequent improvement of matching efficiency by setting a priority matching algorithm to periodically calculate and update the matching priority of each mapped link node based on the structure of the link mapping structure diagram.
[0173] Based on the above embodiments, as an optional embodiment, the response to the data transmission request, performing a link matching operation in descending order of the service node layer, the vendor node layer, and the link node layer, includes:
[0174] Parse the data transmission request to obtain the service type of the data transmission request;
[0175] If the service type is an acceleration service, then in response to the data transmission request, a link matching operation is performed in descending order of the service node layer, the vendor node layer, and the link node layer.
[0176] If the service type is not an acceleration service, then the default link will be determined as the target link.
[0177] Specifically, Figure 6 This is the third flowchart of the data forwarding method provided by the present invention, as shown below. Figure 6 As shown, after receiving a data transmission request from the user, the Socks5 Server parses the request to determine the service type. Understandably, the Socks5 Server pre-defines the service type in the protocol field to identify the message's service type, thereby determining whether the current service is an acceleration service.
[0178] If the service type is acceleration service, then in response to the data transmission request, the link matching operation is performed according to the link matching operation provided in any of the aforementioned embodiments. If the link matching is successful, the matched link is used as the target link, and the data is routed and forwarded to the target link, which is the pre-agreed vendor link. If the matching fails, the default link that does not provide data forwarding acceleration service is determined as the target link, and the data is forwarded to the target link to achieve normal Internet access.
[0179] If the service type is not an acceleration service, the default link that does not provide data forwarding acceleration service will be determined as the target link, and the data will be forwarded to the target link to achieve normal Internet access.
[0180] The data forwarding method provided by this invention pre-defines a service type field by leveraging the ability of Socks5 Server to add protocol fields. Then, during link matching, it pre-determines whether the data transmission service type is an acceleration service. Only if it is determined to be an acceleration service will the target link be determined through link matching; otherwise, the default link will be used as the target link. This allows for targeted provision of services requiring acceleration based on the user's data transmission needs. Based on the ability of Socks5 Server to add protocol fields, this invention can be applied to acceleration services in various fields such as gaming, education, and live streaming.
[0181] Figure 7 This is a schematic diagram of the data forwarding device provided by the present invention, as shown below. Figure 7 As shown, the data forwarding device includes, but is not limited to, a structure diagram generation module 701, a link matching module 702, and a forwarding execution module 703.
[0182] The structure diagram generation module 701 is used to generate a link mapping structure diagram based on a pre-built IP address mapping table; the link mapping structure diagram includes a service node layer, a vendor node layer and a link node layer in descending order of hierarchy;
[0183] The link matching module 702 is used to respond to data transmission requests and perform link matching operations in descending order of the service node layer, the vendor node layer, and the link node layer until a target link matching the target IP address is determined; the target IP address is determined based on the data transmission request.
[0184] The forwarding execution module 703 is used to forward user data to the target link.
[0185] It should be noted that the data forwarding device provided by the present invention can execute the data forwarding method described in any of the above embodiments during specific operation, and this embodiment will not elaborate on this.
[0186] The data forwarding device provided by this invention pre-constructs an IP address mapping table and generates a link mapping structure diagram. Then, it performs link matching to determine the target link in descending order of the service node layer, vendor node layer, and link node layer. This allows only one GRE tunnel to be configured for each vendor during network configuration, instead of configuring hundreds or thousands of GRE links for each vendor's links. This greatly reduces the complexity of network topology configuration and lowers network maintenance costs.
[0187] Figure 8 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 8 As shown, the electronic device may include: a processor 810, a communications interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute the data forwarding method provided in any of the above embodiments. The data forwarding method includes, but is not limited to, the following steps: generating a link mapping structure diagram based on a pre-built IP address mapping table; the link mapping structure diagram includes a service node layer, a vendor node layer, and a link node layer in descending order of hierarchy; responding to a data transmission request, performing a link matching operation in descending order of hierarchy of the service node layer, the vendor node layer, and the link node layer until a target link matching the target IP address is determined; the target IP address is determined based on the data transmission request; and forwarding user data to the target link.
[0188] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0189] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the data forwarding method provided in any of the above embodiments. The data forwarding method includes, but is not limited to, the following steps: generating a link mapping structure diagram based on a pre-built IP address mapping table; the link mapping structure diagram includes a service node layer, a vendor node layer, and a link node layer in descending order of hierarchy; responding to a data transmission request, performing a link matching operation in descending order of hierarchy of the service node layer, the vendor node layer, and the link node layer until a target link matching the target IP address is determined; the target IP address is determined based on the data transmission request; and forwarding user data to the target link.
[0190] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the data forwarding method provided in any of the above embodiments. The data forwarding method includes, but is not limited to, the following steps: generating a link mapping structure diagram based on a pre-constructed IP address mapping table; the link mapping structure diagram includes a service node layer, a vendor node layer, and a link node layer in descending order of hierarchy; responding to a data transmission request, performing a link matching operation in descending order of hierarchy of the service node layer, the vendor node layer, and the link node layer until a target link matching a target IP address is determined; the target IP address is determined based on the data transmission request; and forwarding user data to the target link.
[0191] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0192] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0193] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data forwarding method, characterized in that, include: A link mapping structure diagram is generated based on a pre-built IP address mapping table; the link mapping structure diagram includes a region service node layer, a vendor node layer, and a link node layer in descending order of hierarchy; the IP address mapping table is used to represent the mapping relationship between different links and IP addresses provided by different vendors under different regions. In response to a data transmission request, a link matching operation is performed in descending order of the service node layer, the vendor node layer, and the link node layer until a target link matching the target IP address is determined; the target IP address is determined based on the data transmission request. Forward user data to the target link; After generating the link mapping structure diagram based on the pre-built IP address mapping table, the link mapping structure diagram is updated, including: Based on pre-determined importance influencing factors, the importance of each link mapping node in the link mapping structure diagram is determined; based on the usage frequency and traffic volume of each link in the link mapping structure diagram within a preset period, the activity level of each link is determined; based on the importance and activity level of each link mapping node, the matching priority of each link mapping node in the link mapping structure diagram is updated; the link mapping nodes include regional service nodes, vendor nodes, and link nodes; The link matching operation, performed in descending order of the service node layer, the vendor node layer, and the link node layer, includes: The server node with the highest first matching priority in the server node layer is designated as the current server node; the vendor node with the highest second matching priority among all vendor nodes linked to the current server node is designated as the current vendor node; the link node with the highest third matching priority among all link nodes linked to the current vendor node is designated as the current link node; it is determined whether the IP address associated with the current link node matches the target IP address; if so, the link where the current link node is located is designated as the target link; the first matching priority is the matching priority of the server node in the link mapping structure diagram; the second matching priority is the matching priority of the vendor node in the link mapping structure diagram; and the third matching priority is the matching priority of the link node in the link mapping structure diagram.
2. The data forwarding method according to claim 1, characterized in that, The step of updating the matching priority of each link mapping node in the link mapping structure diagram based on the importance of each link mapping node and the activity of each link includes: For any of the aforementioned server nodes, a first matching priority for the server node is determined based on the importance of the server node, the importance of all link mapping nodes linked to the server node, and the activity of all links where the server node is located. For any of the aforementioned vendor nodes, a second matching priority for the vendor node is determined based on the importance of the vendor node, the importance of all link mapping nodes linked to the vendor node, and the activity of all links where the vendor node is located. For any of the aforementioned link nodes, a third matching priority is determined based on the importance of the link node and the activity of the link to which the link node belongs.
3. The data forwarding method according to claim 1, characterized in that, The generation of the link mapping structure diagram based on the pre-built IP address mapping table includes: The first IP address mapping record in the IP address mapping table is taken as the current record; The link mapping nodes are determined from the current record; the link mapping nodes include regional service nodes, vendor nodes, and link nodes; Determine whether all the link mapping nodes exist in the link mapping structure diagram, and create new link mapping nodes that do not exist based on the determination result; Establish the link relationship between the link mapping nodes corresponding to the current record, so as to establish the link corresponding to the current record in the link mapping structure diagram; The next IP address mapping record of the current record is taken as the new current record, and the step of determining the link mapping node from the current record is returned until all IP address mapping records of the IP address mapping table are traversed to generate a link mapping structure diagram.
4. The data forwarding method according to claim 1, characterized in that, The response to the data transmission request performs a link matching operation in descending order of the service node layer, the vendor node layer, and the link node layer, including: Parse the data transmission request to obtain the service type of the data transmission request; If the service type is an acceleration service, then in response to the data transmission request, a link matching operation is performed in descending order of the service node layer, the vendor node layer, and the link node layer. If the service type is not an acceleration service, then the default link will be determined as the target link.
5. A data forwarding device, characterized in that, include: The structure diagram generation module is used to generate a link mapping structure diagram based on a pre-built IP address mapping table. The link mapping structure diagram includes a region service node layer, a vendor node layer, and a link node layer in descending order of hierarchy. The IP address mapping table is used to represent the mapping relationship between different links and IP addresses provided by different vendors under different regions. The link matching module is used to respond to data transmission requests and perform link matching operations in descending order of the service node layer, the vendor node layer, and the link node layer until a target link matching the target IP address is determined; the target IP address is determined based on the data transmission request. The forwarding execution module is used to forward user data to the target link; After generating the link mapping structure diagram based on the pre-built IP address mapping table, the link mapping structure diagram is updated, including: Based on pre-determined importance influencing factors, the importance of each link mapping node in the link mapping structure diagram is determined; based on the usage frequency and traffic volume of each link in the link mapping structure diagram within a preset period, the activity level of each link is determined; based on the importance and activity level of each link mapping node, the matching priority of each link mapping node in the link mapping structure diagram is updated; the link mapping nodes include regional service nodes, vendor nodes, and link nodes; The link matching operation, performed in descending order of the service node layer, the vendor node layer, and the link node layer, includes: The server node with the highest first matching priority in the server node layer is designated as the current server node; the vendor node with the highest second matching priority among all vendor nodes linked to the current server node is designated as the current vendor node; the link node with the highest third matching priority among all link nodes linked to the current vendor node is designated as the current link node; it is determined whether the IP address associated with the current link node matches the target IP address; if so, the link where the current link node is located is designated as the target link; the first matching priority is the matching priority of the server node in the link mapping structure diagram; the second matching priority is the matching priority of the vendor node in the link mapping structure diagram; and the third matching priority is the matching priority of the link node in the link mapping structure diagram.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the data forwarding method as described in any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the data forwarding method as described in any one of claims 1 to 4.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the data forwarding method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Network access acceleration method, cloud DNS server, CE and cloud IP acceleration network system
CN108259237A
Scheduling method and device, equipment and storage medium
CN113301085A