Data forwarding method and device, electronic equipment, storage medium and program product

By pre-constructing the IP address mapping table and link mapping structure diagram, link matching is performed in hierarchical order, the problem of complex link network topology in the existing technology is solved, maintenance costs and link matching delays are reduced, and link matching delays are improved Data forwarding efficiency and acceleration efficiency.

CN119094360AActive Publication Date: 2024-12-06CHINA MOBILE GROUP ZHEJIANG +3
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411172428.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-06
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

In computing power network, existing data forwarding methods lead to complex topology of link networks, resulting in high maintenance costs. Especially when multiple vendors and multiple links are configured, hundreds of GRE tunnels are required to be configured, and links are added Match delay and maintenance difficulty.

Method used

Generate a link mapping structure chart by pre-constructing an IP address mapping table, perform link matching operations in the decreasing order of the district service node layer, manufacturer node layer and link node layer, determine the target link, and according to the importance of the link Updated matching priority and reduce GRE tunnel count and configuration complexity.

Benefits of technology

It realizes the reduction of network topology configuration complexity and maintenance costs, improves data forwarding efficiency, can quickly and accurately locate and solve acceleration problems, and reduces link matching time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094360A_ABST
    Figure CN119094360A_ABST
Patent Text Reader

Abstract

The invention provides a data forwarding method and device, an electronic device, a storage medium and a program product, and belongs to the technical field of communication, and the method comprises the steps: generating a link mapping structure chart comprising a zone server node layer, a manufacturer node layer and a link node layer of which the levels are decreased progressively based on a pre-constructed IP address mapping table; in response to the data transmission request, executing a link matching operation according to a hierarchy decreasing sequence until a target link matched with the target IP address is determined; the target IP address is determined based on the data transmission request; and forwarding the user data to the target link. According to the method provided by the invention, the IP address mapping table is pre-constructed, the link mapping structure chart is generated, and then the link matching is carried out according to the level decreasing sequence of the zone server node layer, the manufacturer node layer and the link node layer to determine the target link, so that only one GRE tunnel needs to be configured for each manufacturer during network configuration; and hundreds of GRE links do not need to be configured for all links of each manufacturer, so that the configuration complexity of the network topology is greatly reduced, and the network maintenance cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a data forwarding method, device, electronic equipment, storage medium and program product. Background Art

[0002] Against the backdrop of computing power networks, the networking industry is developing rapidly, the network market size and the number of users are growing, and the industry's scale and industrialization process are accelerating, bringing new challenges to the acceleration of network data forwarding services.

[0003] At present, the commonly used data forwarding method is to configure a Generic Routing Encapsulation (GRE) tunnel when connecting to manufacturer links. A GRE tunnel needs to be established for each link of each manufacturer.

[0004] However, when operators connect to multiple manufacturers at the same time and provide multiple dedicated links for multiple manufacturers at the same time, they need to configure hundreds or thousands of GRE tunnels. The link network topology is extremely complex, and the personnel cost and maintenance cost of maintaining these GRE tunnel configurations are very high. Summary of the invention

[0005] The present invention provides a data forwarding method, device, electronic device, storage medium and program product, which are used to solve the defect of extremely complex link network topology structure in the data forwarding process in the prior art, and realize data forwarding with reduced configuration complexity and maintenance cost of network topology.

[0006] The present invention provides a data forwarding method, comprising: Generate a link mapping structure diagram based on a pre-built IP address mapping table; the link mapping structure diagram includes a zone and service node layer, a manufacturer node layer, and a link node layer in descending order; In response to the data transmission request, performing a link matching operation in descending order of the zone server node layer, the manufacturer 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 the user data to the target link.

[0007] According to a data forwarding method provided by the present invention, after the link mapping structure diagram is generated based on the pre-built IP address mapping table, the link mapping structure diagram is updated, including: Determining the importance of each link mapping node in the link mapping structure diagram based on predetermined importance influencing factors; Determine the activity of each link based on the usage frequency and traffic volume of each link in the link mapping structure diagram within a preset period; 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.

[0008] According to a data forwarding method provided by the present invention, the link mapping node includes a zone service node, a manufacturer node and a link node; 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 includes: For any of the server nodes, determining a first matching priority of the server node 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 manufacturer nodes, determining a second matching priority of the manufacturer node based on the importance of the manufacturer node, the importance of all link mapping nodes linked to the manufacturer node, and the activity of all links where the manufacturer node is located; For any of the link nodes, 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.

[0009] According to a data forwarding method provided by the present invention, the link matching operation is performed in descending order of the levels of the zone server node layer, the manufacturer node layer, and the link node layer, including: The server node with the highest matching priority in the server node layer is used as the current server node; The manufacturer node with the second highest matching priority among all the manufacturer nodes linked to the current zone server node is used as the current manufacturer node; Using the link node with the highest third matching priority among all the link nodes linked to the current manufacturer node as the current link node; Determine 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 used as the target link.

[0010] According to a data forwarding method provided by the present invention, the link mapping structure diagram is generated based on a pre-built IP address mapping table, comprising: Taking the first IP address mapping record in the IP address mapping table as the current record; Determine a link mapping node from the current record; the link mapping node includes a zone service node, a manufacturer node and a link node; Determine whether all the link mapping nodes exist in the link mapping structure diagram, and create new link mapping nodes that do not exist according to the determination result; 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; The next IP address mapping record of the current record is used as a 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.

[0011] According to a data forwarding method provided by the present invention, the response to the data transmission request performs a link matching operation in descending order of the levels of the zone server node layer, the manufacturer node layer, and the link node layer, including: Parsing the data transmission request to obtain a service type of the data transmission request; If the service type is an accelerated service, responding to the data transmission request, performing a link matching operation in descending order of the zone server node layer, the manufacturer node layer, and the link node layer; If the service type is not an accelerated service, a default link is determined as the target link.

[0012] The present invention also provides a data forwarding device, comprising: A structure diagram generation module, used to generate a link mapping structure diagram based on a pre-built IP address mapping table; the link mapping structure diagram includes a zone and service node layer, a manufacturer node layer, and a link node layer in descending order; A link matching module, for responding to a data transmission request, and performing a link matching operation in descending order of the zone server node layer, the manufacturer 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 the user data to the target link.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any of the above-mentioned data forwarding methods is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements any of the above-mentioned data forwarding methods.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned data forwarding methods.

[0016] The data forwarding method, device, electronic device, storage medium and program product provided by the present invention pre-build an IP address mapping table and generate a link mapping structure diagram, and then determine the target link by performing link matching in descending order of the zone node layer, manufacturer node layer and link node layer. When configuring the network, only one GRE tunnel needs to be configured for each manufacturer, and there is no need to configure hundreds or thousands of GRE links for all the links of each manufacturer, which greatly reduces the configuration complexity of the network topology and reduces the network maintenance cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 It is a flowchart of game acceleration service data forwarding in related technologies.

[0019] Figure 2 This is one of the flow charts of the data forwarding method provided by the present invention.

[0020] Figure 3 This is the second flow chart of the data forwarding method provided by the present invention.

[0021] Figure 4 This is an example diagram of the initially generated link mapping structure diagram provided by the present invention.

[0022] Figure 5 It is an example diagram of the updated link mapping structure diagram provided by the present invention.

[0023] Figure 6 This is the third flow chart of the data forwarding method provided by the present invention.

[0024] Figure 7 It is a structural schematic diagram of the data forwarding device provided by the present invention.

[0025] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] It should be noted that, in the description of the present invention, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.

[0028] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" means at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0029] Against the backdrop of computing power networks, the Internet industry is developing rapidly, the size of the network market and the number of users are growing, and the industry's scale and industrialization process are accelerating, bringing new challenges to the acceleration of network data forwarding services.

[0030] Take games as an example. Players are prone to problems such as screen freezes, delays, and high packet loss rates during the game experience, which seriously affects the gaming experience. Game acceleration comes into being. Game acceleration improves the gaming environment and reduces delays by accelerating data transmission between the local network and the game server. It solves problems such as slow network speed, game freezes, disconnections, and high delays caused by inappropriate network nodes.

[0031] Figure 1 It is a flowchart of game acceleration service data forwarding in the related technology, such as Figure 1As shown in the figure, in the data forwarding process of the traditional game acceleration service, the end side (user terminal) forwards the service data message to the Sokcs5 Server, and then forwards it to different dedicated links of different game manufacturers such as BD, LS, and TC through the Sokcs5 Server.

[0032] Socks5 is a proxy protocol that plays an intermediary role between the front-end machine and the server machine using the TCP / IP protocol, allowing the front-end machine in the intranet to access the server in the Internet, making communication more secure.

[0033] Leased lines are dedicated links of various speeds provided by operators to game manufacturers and other customers, which are directly connected to the backbone network to achieve convenient and fast high-speed Internet access services, so that game manufacturers and game users can access the Internet through wired or wireless methods and flexibly choose bandwidth.

[0034] A link refers to the physical network medium that connects two computers to each other, including wired links and wireless links.

[0035] Related technical solutions often use a method of configuring a Generic Routing Encapsulation (GRE) tunnel when connecting to a vendor link, and a GRE tunnel needs to be established for each vendor link.

[0036] Specifically, when the operator's Sokcs5 Server connects to multiple game manufacturers and provides multiple dedicated links for each game manufacturer, each link needs to be configured with the GRE configuration of the Sokcs5 Server and the manufacturer's link. The number of GREs that need to be configured on the network side will reach hundreds or thousands.

[0037] In the complex solution of traditional game acceleration link forwarding, based on the hundreds or thousands of GRE tunnels configured, professional network personnel need to maintain these complex GRE tunnel configurations, including the local IP, remote IP, tunnel status and other information of the GRE tunnel. The maintenance of configuration data is very large, resulting in high personnel and maintenance costs. At the same time, the link matching delay will also increase exponentially with the increase in the number of links, affecting data forwarding efficiency.

[0038] In addition, because the traditional game acceleration method configures a GRE tunnel for each vendor link, the network configuration and maintenance information includes the GRE configuration information and GRE tunnel status of each vendor link, and the amount of data is huge. When the game acceleration has no obvious effect, it is necessary to quickly and accurately locate the game acceleration problem, which makes it difficult to guarantee the player's game acceleration experience. Because if the GRE tunnel establishment fails due to configuration information errors and other reasons, the operation and maintenance personnel face complex network topology and thousands of network configuration and maintenance information. It is difficult to quickly and accurately locate the problem in a short period of time. It is difficult to locate the game acceleration problem, and it is impossible to guarantee the player's acceleration experience.

[0039] In view of the technical problems existing in data forwarding in the aforementioned related technologies, the present invention provides a data forwarding method, device, electronic device, storage medium and program product, which solve at least one of the aforementioned technical problems.

[0040] Combine the following Figure 2-Figure 8 The data forwarding method, device, electronic device, storage medium and program product of the present invention are described.

[0041] It should be noted that the executor of the data forwarding method provided by the present invention is the corresponding data forwarding device, which can specifically be a server, a computer device, such as a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc.

[0042] Figure 2 It is one of the flow charts of 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.

[0043] Step 201: Generate a link mapping structure diagram based on a pre-constructed IP address mapping table; the link mapping structure diagram includes a region and service node layer, a manufacturer node layer, and a link node layer in descending order.

[0044] The IP address mapping table is a data table about the mapping relationship between links and IP addresses, which is used to represent different link information provided by different manufacturers in different regions and servers. Data forwarding service providers / operators negotiate with game manufacturers and other data forwarding service demand manufacturers in advance to agree on the links to be provided and the IP addresses corresponding to each link, and pre-build the IP address mapping table and store it on the server or node.

[0045] The IP address mapping table obtained based on the agreed IP address is used to represent different regions, different manufacturers, different links and the IP address information corresponding to each link. It can be understood that one link corresponds to one IP address.

[0046] Table 1 is an example table of the IP address mapping table provided by the present invention. As shown in Table 1, the IP address mapping table includes a service area field, a vendor + link field, and an IP address field. At this time, the IP address mapping table covers two service areas A and B, two demand vendors BD and TC, and the IP addresses corresponding to 6 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 service area. Through the IP address mapping table, different link information of different service areas and different vendors can be distinguished.

[0047] If the player selects region A, the IP address mapping table has already agreed that the IP address 10.11.100.1 in region A corresponds to the SH-HG link of the BD manufacturer, 10.11.100.2 corresponds to the SH-RB link of the BD manufacturer, 10.11.100.3 corresponds to the SH-TW link of the BD manufacturer, 10.11.100.5 corresponds to the HZ-HG link of the TC manufacturer, and 10.11.100.6 corresponds to the SH-RB link of the TC manufacturer.

[0048] If the player selects region B, the IP address mapping table has already stipulated that the IP address 10.11.100.7 in region B corresponds to the SH-TW link of the BD manufacturer, 10.11.100.8 corresponds to the SH-HG link of the BD manufacturer, and 10.11.100.9 corresponds to the SH-RB link of the TC manufacturer.

[0049] Table 1

[0050] Optionally, the IP address mapping table is stored on a server or node of a data forwarding service provider / operator.

[0051] Optionally, the server is a Socks5 Server.

[0052] Optionally, the node is constructed based on Socks5 Server and Post Office Protocol (POP).

[0053] Figure 3 This is a second flow chart of the data forwarding method provided by the present invention, such as Figure 3As shown in the figure, during data forwarding, the user forwards the service data message through the user terminal on the end side through the elastic load balancing (ELB) to the node built based on the Socks5 Server and POP. The Socks5 Server parses the service data message, obtains the zone and link information, matches the zone and link information in the IP address mapping table, converts it to the IP address in the IP address mapping table, and forwards it to the link corresponding to the BD, LS, and TC manufacturers according to the IP address.

[0054] ELB is a traffic distribution control service that distributes access traffic to multiple backend servers according to the distribution strategy. Elastic load balancing can expand the external service capabilities of the application system through traffic distribution, and improve the availability of the application system by eliminating single points of failure.

[0055] Compared with the traditional solution that requires the server to configure a GRE tunnel for each link of each manufacturer, the data forwarding method provided by the present invention pre-builds an IP address mapping table on the server or node according to the agreed IP address to establish a mapping relationship between the link and the IP address. After the IP address mapping table is pre-built, the server does not need to configure a GRE tunnel for each link, but only needs to configure a GRE tunnel for each manufacturer, and one manufacturer corresponds to one GRE tunnel, which greatly reduces the number of GRE tunnels, and the specific link matching is performed by matching the IP address mapping table.

[0056] Alternatively, if Figure 3 As shown, the nodes include a master node and a backup node. The master node is built based on Socks5 Server-1 and POP-1, and the backup node is built based on Socks5 Server-2 and POP-2. When the master node fails, the backup node replaces the master node to perform IP address mapping and matching.

[0057] The link mapping structure diagram is generated based on the pre-built IP address mapping table. When the IP address mapping table includes the zone service field, the vendor + link field and the IP address field, the link mapping structure diagram accordingly includes the zone service node layer, the vendor node layer and the link node layer in descending order. That is, the zone service node layer is higher than the vendor node layer, and the vendor node layer is higher than the link node layer.

[0058] The zone node layer includes several zone nodes, the manufacturer node layer includes several manufacturer nodes, and the link node layer includes several link nodes. The zone nodes, manufacturer nodes, and link nodes are all a type of link mapping node. That is, the link mapping structure diagram is a diagram obtained by linking several link mapping nodes according to the mapping relationship between links and IP addresses recorded in the IP address mapping table.

[0059] Among them, each link node in the link node layer is pre-associated with the IP address corresponding to each link in the IP address mapping table.

[0060] Table 2 is an example table of the link mapping linked table provided by the present invention. As shown in Table 2, the link mapping linked table is a mapping table obtained by merging the same zone servers and the same vendors under the same zone servers according to the levels of zone server node layer, vendor node layer and link node layer based on the pre-constructed IP address mapping table. The link mapping linked table covers two zone servers, A and B, two demand vendors, BD and TC, 8 links and the IP addresses corresponding to the 8 links.

[0061] Table 2

[0062] Figure 4 is an example diagram of the initially generated link mapping structure diagram provided by the present invention, such as Figure 4 As shown, the link mapping structure diagram is a mapping link structure diagram constructed based on the zone server A in the link mapping linked list of the example in Table 2. In the link mapping structure diagram, the zone server node layer includes a zone server node "A", the manufacturer node includes two manufacturer nodes "BD" and "TC" that link the zone server node "A", and the link node layer includes 5 link nodes, of which 3 link nodes link the manufacturer node "BD", and 2 link nodes link the manufacturer node "TC".

[0063] The link node "SH-HG" linking the manufacturer node "BD" corresponds to the IP address 10.11.100.1, the link node "SH-RB" linking the manufacturer node "BD" corresponds to the IP address 10.11.100.2, the link node "SH-TW" linking the manufacturer node "BD" corresponds to the IP address 10.11.100.3, the link node "HZ-HG" linking the manufacturer node "TC" corresponds to the IP address 10.11.100.5, and the link node "SH-RB" linking the manufacturer node "TC" corresponds to the IP address 10.11.100.6.

[0064] 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 based on the IP address mapping table first, and then a link mapping structure diagram can be generated based on the link mapping linked list; or the link mapping structure diagram can be generated directly based on the IP address mapping table.

[0065] Specifically, before receiving and responding to the data transmission request sent by the user, an IP address mapping table representing the link information of different regions and different manufacturers is pre-built based on the agreement on IP addresses with the game manufacturers and other demand manufacturers, and a link mapping structure diagram is generated based on the IP address mapping table. The generated link mapping structure diagram consists of a number of link mapping nodes and the link relationship between the link mapping nodes. The link mapping nodes include region and service nodes, manufacturer nodes and link nodes. The region and service nodes constitute the region and service node layer, the manufacturer nodes constitute the manufacturer node layer, and the link nodes constitute the link node layer. The level of the region and service node layer is greater than the manufacturer node layer, and the level of the manufacturer node layer is greater than the link node layer.

[0066] Step 202: In response to the data transmission request, a link matching operation is performed in descending order of the zone service node layer, the manufacturer 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.

[0067] The link matching operation is a series of operations determined based on the link mapping structure diagram to match the target link according to the information carried in the data transmission request.

[0068] The target link is negotiated and agreed upon by the data forwarding service demander and the data forwarding service provider / operator, which can provide users with dedicated links of various speeds and realize convenient and fast Internet access services.

[0069] Specifically, combined Figure 4 As shown, after receiving the data transmission request sent by the user, respond to the data transmission request, parse the target IP address and / or business information from the data transmission request, and then perform the link matching operation in descending order of the zone node layer, manufacturer node layer, and link node layer.

[0070] When performing the link matching operation, according to the descending structure of the zone and service node layer, manufacturer node layer and link node layer in the link mapping structure diagram, first select the first zone and service node "A" in the zone and service node layer as the current zone and service node, and use the first manufacturer node "BD" linked to the current zone and service node "A" in the manufacturer node layer as the current manufacturer node, and use the first link node "SH-HG" linked to the current manufacturer node "BD" in the link node layer as the current link node, and determine whether the IP address associated with the current link node "SH-HG" matches the target IP address. If they match, use the link where the current link node "SH-HG" is located as the target link.

[0071] If not, the next link node "SH-RB" of the current link node "SH-HG" is used as the new current link node to determine whether the IP address associated with the new current link node "SH-RB" matches the target IP address.

[0072] By analogy, if all link nodes connected to the current manufacturer node "BD" at the link node layer are traversed and it is determined that the IP addresses associated with all link nodes do not match the target IP address, the next manufacturer node "TC" of the current manufacturer node "BD" is used as the new current manufacturer node, and all link nodes connected to the new current manufacturer node "TC" at the link node layer are traversed according to the above steps until a target link with the same associated IP address as the target IP address is matched, or all manufacturer nodes connected to the current zone server node at the manufacturer node layer are traversed.

[0073] If the target link is still not determined after traversing all the manufacturer nodes linked to the current server node "A" at the manufacturer node layer, the next server node of the current server node "A" will be used as the new current server node, and all link nodes of the new current server node will be traversed according to the above steps until a target link with the same associated IP address as the target IP address is matched.

[0074] Step 203: Forward the user data to the target link.

[0075] Specifically, after performing the link matching operation to determine the target link, routing forwarding is performed according to the target IP address, and the service data message is forwarded to the target link obtained after the link matching operation.

[0076] The data forwarding method provided by the present invention pre-builds an IP address mapping table and generates a link mapping structure diagram, and then performs link matching in descending order of the zone and service node layer, the manufacturer node layer, and the link node layer to determine the target link. This allows only one GRE tunnel to be configured for each manufacturer during network configuration, without the need to configure hundreds or thousands of GRE links for all links of each manufacturer, thereby greatly reducing the configuration complexity of the network topology and reducing the network maintenance cost.

[0077] Moreover, based on the data forwarding method provided by the present invention, if data forwarding does not have an obvious acceleration effect, due to the reduction in the number of network configurations and the optimization of the network topology structure, the faulty target link can be quickly located by querying the IP address mapping table, thereby accurately locating and solving the data forwarding acceleration problem in a relatively short time.

[0078] Based on the above embodiment, as an optional embodiment, after the link mapping structure diagram is generated based on the pre-built IP address mapping table, the link mapping structure diagram is updated, including: Determining the importance of each link mapping node in the link mapping structure diagram based on predetermined importance influencing factors; Determine the activity of each link based on the usage frequency and traffic volume of each link in the link mapping structure diagram within a preset period; 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.

[0079] The preset period is a pre-set period for updating the generated link mapping structure diagram.

[0080] The importance influencing factors refer to the factors that affect the data forwarding performance of each link mapping node.

[0081] The matching priority is determined based on the importance of each link mapping node and the activity of each link, and is used as a basis for updating the link relationship between each link mapping node in the link mapping structure diagram.

[0082] It can be understood that when the types of link mapping nodes include service nodes, manufacturer nodes and link nodes, the importance influencing factors of each type of link mapping node may be the same or different. The importance influencing factors of each link mapping node can be determined based on the actual application situation.

[0083] It should be noted that the factors affecting importance include but are not limited to at least one of the factors such as the type of link mapping node, network equipment performance, network protocol and its configuration, bandwidth, bandwidth utilization, and traffic management strategy, and the present invention does not limit this.

[0084] A link is a link consisting of a unique complete set of a zone service node, a manufacturer node linked to the zone service node, and a link node linked to the manufacturer node.

[0085] Activity refers to the frequency of use and traffic volume of a link within a preset period, which is used to measure how frequently a link is used as a target link for data forwarding within a preset period. Generally speaking, if other factors remain unchanged, the higher the activity of a link, the higher the matching priority of the link mapping node on the link.

[0086] The 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 a link matching operation. The higher the matching priority of a link mapping node, the higher the priority of the link mapping node for matching.

[0087] After the link mapping structure diagram is generated based on the pre-built IP address mapping table, in the subsequent process of continuously responding to data transmission requests and forwarding data, it is necessary to update the link mapping structure diagram to reduce the matching time according to the actual data forwarding situation.

[0088] Specifically, when updating the link mapping structure diagram, first, based on the predetermined importance influencing factors, the importance of each link mapping node in the link mapping structure diagram, including the zone service node, manufacturer node and link node, is determined. Then, based on the usage frequency and traffic size of each link within a preset period, the activity of each link is determined. Finally, based on the importance of each link mapping node and the activity of each link, the matching priority of each link mapping node is updated, and then the entire link mapping structure diagram is updated.

[0089] It is understandable that the determination of importance influencing factors is often not affected by different preset periods. Therefore, the importance of each link mapping node can be calculated based on the same, predetermined importance influencing factors in different preset periods; and the calculation of activity is based on two real-time indicators, frequency of use and traffic size. Therefore, the activity of each link is often calculated after a preset period ends.

[0090] Optionally, the importance of each link mapping node is determined according to the following expression: ; (1)

[0091] in, Indicates The importance of each link mapping node, Indicates The number of factors affecting the importance of a link mapping node, Indicates The total number of factors influencing the importance of Class impact factor, Indicates The weight of the factors affecting the importance of the item, Indicates Among the factors affecting the importance of The weight of the class impact factor.

[0092] By assigning different weights to different types of importance influencing factors and different influencing factors in specific influencing factors, various importance influencing factors and the criticality of influencing factors can be measured to obtain more accurate importance.

[0093] It can be understood that, referring to the above expression (1), the first The importance of each zone server node , No. Importance of each manufacturer node and The importance of a link node .

[0094] Optionally, after each preset period ends, the activity of each link is determined according to the following expression: ; (2)

[0095] in, Indicates The activity of the links; Represents a periodic set The first Preset cycles, , ; Indicates The link in The frequency of use of a preset period, , ; Indicates The link in The flow rate of a preset cycle, , ; , are two constants.

[0096] Considering the huge amount of actual link data in the link mapping structure diagram, whether it is the traditional solution of configuring a GRE tunnel for each link, or the present invention of only configuring a GRE tunnel for each manufacturer after pre-building an IP address mapping table, the time-consuming link matching may become an obstacle to data forwarding and even acceleration.

[0097] The data forwarding method provided by the present invention updates the generated link mapping structure diagram according to a preset period, and specifically updates the matching priority of each link mapping node based on the importance of each link mapping node and the activity of each link. The degree to which each link mapping node is matched with priority can be adjusted according to the actual data forwarding and link matching process, so that link mapping nodes with higher matching priorities can be matched with higher priority within the next preset period, thereby reducing the time consumption of link matching operations.

[0098] Based on the above embodiment, as an optional embodiment, the link mapping node includes a zone server node, a manufacturer node and a link node; 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 includes: For any of the server nodes, determining a first matching priority of the server node 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 manufacturer nodes, determining a second matching priority of the manufacturer node based on the importance of the manufacturer node, the importance of all link mapping nodes linked to the manufacturer node, and the activity of all links where the manufacturer node is located; For any of the link nodes, 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.

[0099] The first matching priority refers to the matching priority of the zone and server nodes in the link mapping structure diagram; the second matching priority refers to the matching priority of the manufacturer nodes in the link mapping structure diagram; the third matching priority refers to the matching priority of the link nodes in the link mapping structure diagram.

[0100] 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 service nodes, manufacturer nodes and link nodes based on the different types of link mapping nodes.

[0101] For any zone server node, the first matching priority of the zone server node is determined based on the importance of the zone server node, the importance of all link mapping nodes linked to the zone server node, and the activity of all links where the manufacturer node is located. Among them, all link mapping nodes linked to the zone server node include several manufacturer nodes directly linked to the zone server node, and also include all link nodes directly linked to several manufacturer nodes.

[0102] Optionally, the first matching priority of the zone server node is calculated according to the following expression: ; (3)

[0103] in, Represents the zone server node set The A zone server node, , Indicates the number of zone and server nodes; Indicates The first matching priority of the zone server node; Indicates Region server nodes In the preset cycle The collection of all manufacturer nodes linked below, ; Indicates Region server nodes In the preset cycle The set of all link nodes linked below, ; Indicates Region server nodes In the preset cycle The set of all links under = ; A collection of zone and server nodes The The importance of each zone and server node; For the The zone server node is linked to The importance of each manufacturer's node; Indicates The zone server node is linked to The importance of each link node; For the The zone server node is located in The activity of the links; , , is a constant.

[0104] Optionally, the second matching priority of the vendor node is calculated according to the following expression: ; (4)

[0105] in, Represents a set of vendor nodes The Manufacturer nodes, , Indicates the number of manufacturer nodes; Indicates The second matching priority of the manufacturer node; Indicates Manufacturer Node In the preset cycle The set of all link nodes linked below, ; Indicates Manufacturer Node In the preset cycle The set of all links under ; Represents the manufacturer node set The The importance of each manufacturer node; Indicates The manufacturer node is linked to the The importance of each link node; For the The zone server node is located in The activity of the links; , is a constant.

[0106] Optionally, the third matching priority of the link node is calculated according to the following expression: ; (5)

[0107] in, Represents a set of link nodes The Link nodes, , Indicates the number of link nodes; Indicates The third matching priority of the link node; No. The importance of each link node; No. The activity of the link where the link node is located, is a constant.

[0108] The data forwarding method provided by the present invention updates the matching priority of each service node, manufacturer node and link node in the link mapping structure diagram according to the preset period based on the corresponding matching priority calculation method according to the different types of link mapping nodes, and can calculate the matching priority of the data forwarding and link matching process that is more in line with reality, thereby further improving the accuracy of link mapping nodes with higher matching priority being matched with higher priority in the next preset period. In addition, the link mapping structure diagram is a structure diagram in the form of a linked list, and the sorting is fast. It only needs to change the corresponding link of the link mapping node according to the calculation result, further shortening the time consumption of the link matching operation.

[0109] Based on the above embodiment, as an optional embodiment, performing the link matching operation in descending order of the levels of the zone server node layer, the manufacturer node layer, and the link node layer includes: The server node with the highest matching priority in the server node layer is used as the current server node; The manufacturer node with the second highest matching priority among all the manufacturer nodes linked to the current zone server node is used as the current manufacturer node; Using the link node with the highest third matching priority among all the link nodes linked to the current manufacturer node as the current link node; Determine 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 used as the target link.

[0110] Figure 5 is an example diagram of the updated link mapping structure diagram provided by the present invention, such as Figure 5 As shown, in the updated link mapping structure diagram, the zone service node "A" links two manufacturer nodes "BD" and "TC", among which the second matching priority of the manufacturer node "TC" is higher than that of the manufacturer node "BD". Among the two link nodes linked by the manufacturer node "TC", the third matching priorities are, from high to low, the link nodes "SH-RB" and "HZ-HG". Among the three link nodes linked by the manufacturer node "BD", the third matching priorities are, from high to low, the link nodes "SH-RB", "SH-TW" and "SH-HG".

[0111] Specifically, combined Figure 5 As shown, the link mapping structure diagram has updated the matching priority of each link mapping node. When a data transmission request sent by the user is received to perform a link matching operation, the service node layer has only one service node "A", and its first matching priority is the highest. The service node "A" is used as the current service node. Among the manufacturer nodes "BD" and "TC" linked to the current service node "A", "TC" with the highest second matching priority is selected as the current manufacturer node. Among the link nodes "SH-RB" and "HZ-HG" linked to the current manufacturer node "TC", "SH-RB" with the highest third matching priority is selected as the current link node. Determine 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 used as the target link.

[0112] If not, the next link node "HZ-HG" of the current link node "SH-RB" is used as the new current link node to determine whether the IP address associated with the new current link node "HZ-HG" matches the target IP address.

[0113] By analogy, if all link nodes connected to the current manufacturer node "TC" at the link node layer are traversed and it is determined that the IP addresses associated with all link nodes do not match the target IP address, the next manufacturer node "BD" of the current manufacturer node "TC" is used as the new current manufacturer node, and all link nodes connected to the new current manufacturer node "BD" at the link node layer are traversed according to the above steps until a target link with the same associated IP address as the target IP address is matched, or all manufacturer nodes connected to the current zone server node at the manufacturer node layer are traversed.

[0114] If the target link is still not determined after traversing all the manufacturer nodes linked to the current server node "A" at the manufacturer node layer, the next server node of the current server node "A" will be used as the new current server node, and all link nodes of the new current server node will be traversed according to the above steps until a target link with the same associated IP address as the target IP address is matched.

[0115] The data forwarding method provided by the present invention sets a priority matching algorithm, periodically calculates and updates the matching priority of each mapping link node, and based on the structure of the link mapping structure diagram, performs link matching with the level of each node layer and the matching priority of each mapping link node as the matching sorting basis, further improving the efficiency of matching hits, and can dynamically adjust the algorithm to ensure that the rule matching time is always maintained at a low level, greatly improving the source IP mapping matching efficiency, and enhancing the acceleration performance of data forwarding.

[0116] Based on the above embodiment, as an optional embodiment, the link mapping structure diagram is generated based on the pre-built IP address mapping table, including: Taking the first IP address mapping record in the IP address mapping table as the current record; Determine a link mapping node from the current record; the link mapping node includes a zone service node, a manufacturer node and a link node; Determine whether all the link mapping nodes exist in the link mapping structure diagram, and create new link mapping nodes that do not exist according to the determination result; 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; The next IP address mapping record of the current record is used as a 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.

[0117] Specifically, in one embodiment, based on the pre-built IP address mapping table shown in Table 1, 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 used as the current record, and the zone server node "A", the manufacturer node "BD" and the link node "SH-HG" are determined from the current record.

[0118] The current record is the first IP address mapping record, which means that no link mapping node and link relationship within the link mapping node bracket has been established in the link mapping structure diagram. At this time, it is determined that all link mapping nodes do not exist in the link mapping structure diagram, so it is necessary to create a new zone service node "A", manufacturer node "BD" and link node "SH-HG" in the link mapping structure diagram.

[0119] Furthermore, a link relationship is established between the newly created zone server node "A", manufacturer node "BD" and link node "SH-HG", so that the zone server node "A", manufacturer node "BD" and link node "SH-HG" together constitute the link corresponding to the current record.

[0120] 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 used as the new current record, and the zone server node "A", the manufacturer node "BD" and the link node "SH-RB" are determined from the current record. It is determined that the link node "SH-RB" does not exist in the link mapping structure diagram, so it is necessary to create a new link node "SH-RB" in the link mapping structure diagram, and establish a link relationship between the manufacturer node "BD" and the link node "SH-RB", so that the zone server node "A", the manufacturer node "BD" and the link node "SH-RB" together constitute the link corresponding to the new current record.

[0121] This process is repeated in this way until all IP address mapping records in the IP address mapping table are traversed to generate an initial link mapping structure diagram.

[0122] The data forwarding method provided by the present invention generates a link mapping structure diagram based on a pre-constructed IP address mapping table, so that the efficiency of matching hits can be improved by setting a priority matching algorithm based on the structure of the link mapping structure diagram, periodically calculating and updating the matching priority of each mapping link node.

[0123] Based on the above embodiment, as an optional embodiment, the responding to the data transmission request performs a link matching operation in descending order of the levels of the zone server node layer, the manufacturer node layer, and the link node layer, including: Parsing the data transmission request to obtain a service type of the data transmission request; If the service type is an accelerated service, responding to the data transmission request, performing a link matching operation in descending order of the zone server node layer, the manufacturer node layer, and the link node layer; If the service type is not an accelerated service, a default link is determined as the target link.

[0124] Specifically, Figure 6 FIG. 3 is a flow chart of the data forwarding method provided by the present invention. Figure 6 As shown, after receiving the data transmission request sent by the user, Socks5 Server parses the data transmission request to obtain the service type of the data transmission request. It can be understood that Socks5 Server pre-adds a protocol field service type to identify the service type of the message, so as to determine whether the current service is an accelerated service.

[0125] If the service type is an acceleration service, the data transmission request is responded to and 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, that is, the pre-agreed manufacturer link. If the matching is unsuccessful, 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 function.

[0126] If the service type is not an accelerated service, a default link that does not provide data forwarding acceleration service is determined as the target link, and then the data is forwarded to the target link to achieve normal Internet access function.

[0127] The data forwarding method provided by the present invention pre-uses the characteristic that the Socks5 Server can add a new protocol field to add a new service type field, and then pre-determines whether the service type of data transmission is an accelerated service when performing a link matching operation, and only determines the target link through the link matching operation if it is an accelerated service, otherwise the default link is used as the target link, and the service requiring acceleration service is provided to the user in a targeted manner according to the user's data transmission needs; based on the characteristic that the Socks5 Server can add a new protocol field, the data forwarding method of the present invention can be applied to various accelerated services such as games, education, and live broadcasts.

[0128] Figure 7 is a schematic diagram of the structure of the data forwarding device provided by the present invention, such as Figure 7 As shown, the data forwarding device includes but is not limited to a structure diagram generating module 701 , a link matching module 702 and a forwarding execution module 703 .

[0129] 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 region and service node layer, a manufacturer node layer, and a link node layer in descending order; The link matching module 702 is used to respond to the data transmission request and perform a link matching operation in descending order of the zone server node layer, the manufacturer 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 703 is used to forward the user data to the target link.

[0130] 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, which will not be elaborated in this embodiment.

[0131] The data forwarding device provided by the present invention pre-builds an IP address mapping table and generates a link mapping structure diagram, and then determines the target link by performing link matching in descending order of the zone node layer, the manufacturer node layer and the link node layer. This makes it necessary to configure only one GRE tunnel for each manufacturer during network configuration, without having to configure hundreds or thousands of GRE links for all the links of each manufacturer, thereby greatly reducing the configuration complexity of the network topology and reducing the network maintenance cost.

[0132] Figure 8 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 (Processor) 810, a communication interface (Communications Interface) 820, a memory (Memory) 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 complete mutual communication through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the data forwarding method provided by any of the above embodiments, and 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 hierarchical descending zone service node layer, a manufacturer node layer, and a link node layer; responding to a data transmission request, performing a link matching operation in the descending order of the hierarchical levels of the zone service node layer, the manufacturer 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.

[0133] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0134] On the other hand, the present invention also provides a computer program product, which includes a computer program, which 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, and 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 hierarchical descending zone and service node layer, a manufacturer node layer and a link node layer; in response to a data transmission request, performing a link matching operation in the descending order of the zone and service node layer, the manufacturer 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.

[0135] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the data forwarding method provided by any of the above embodiments, the data forwarding method including but 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 hierarchical descending zone and service node layer, a manufacturer node layer, and a link node layer; in response to a data transmission request, performing a link matching operation in the descending order of the zone and service node layer, the manufacturer 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.

[0136] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions 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: Generate a link mapping structure diagram based on a pre-built IP address mapping table; the link mapping structure diagram includes a zone and service node layer, a manufacturer node layer, and a link node layer in descending order; In response to the data transmission request, performing a link matching operation in descending order of the zone server node layer, the manufacturer 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 the user data to the target link.

2. The data forwarding method according to claim 1, characterized in that: After the link mapping structure diagram is generated based on the pre-built IP address mapping table, the link mapping structure diagram is updated, including: Determining the importance of each link mapping node in the link mapping structure diagram based on predetermined importance influencing factors; Determine the activity of each link based on the usage frequency and traffic volume of each link in the link mapping structure diagram within a preset period; 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.

3. The data forwarding method according to claim 2, characterized in that: The link mapping nodes include zone service nodes, manufacturer nodes and link nodes; 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 includes: For any of the server nodes, determining a first matching priority of the server node 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 manufacturer nodes, determining a second matching priority of the manufacturer node based on the importance of the manufacturer node, the importance of all link mapping nodes linked to the manufacturer node, and the activity of all links where the manufacturer node is located; For any of the link nodes, 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.

4. The data forwarding method according to claim 3, characterized in that: The link matching operation is performed in descending order of the levels of the zone server node layer, the manufacturer node layer, and the link node layer, including: The server node with the highest matching priority in the server node layer is used as the current server node; The manufacturer node with the second highest matching priority among all the manufacturer nodes linked to the current zone server node is used as the current manufacturer node; Using the link node with the highest third matching priority among all the link nodes linked to the current manufacturer node as the current link node; Determine 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 used as the target link.

5. The data forwarding method according to claim 1, characterized in that: The link mapping structure diagram is generated based on the pre-built IP address mapping table, including: Taking the first IP address mapping record in the IP address mapping table as the current record; Determine a link mapping node from the current record; the link mapping node includes a zone service node, a manufacturer node and a link node; Determine whether all the link mapping nodes exist in the link mapping structure diagram, and create new link mapping nodes that do not exist according to the determination result; 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; The next IP address mapping record of the current record is used as a 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.

6. The data forwarding method according to claim 1, characterized in that: The responding to the data transmission request, performing a link matching operation in descending order of the levels of the zone server node layer, the manufacturer node layer, and the link node layer, includes: Parsing the data transmission request to obtain a service type of the data transmission request; If the service type is an accelerated service, responding to the data transmission request, performing a link matching operation in descending order of the zone server node layer, the manufacturer node layer, and the link node layer; If the service type is not an accelerated service, a default link is determined as the target link.

7. A data forwarding device, characterized in that: include: A structure diagram generation module, used to generate a link mapping structure diagram based on a pre-built IP address mapping table; the link mapping structure diagram includes a zone and service node layer, a manufacturer node layer, and a link node layer in descending order; A link matching module, for responding to a data transmission request, and performing a link matching operation in descending order of the zone server node layer, the manufacturer 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 the user data to the target link.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the data forwarding method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data forwarding method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the data forwarding method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Path selection method and system, network acceleration node and network acceleration system

    CN106656800A

  • Network access acceleration method, cloud DNS server, CE and cloud IP acceleration network system

    CN108259237A

  • Application program acceleration method and device, computer equipment and storage medium

    CN112217679A

  • Scheduling method and device, equipment and storage medium

    CN113301085A

  • Flow processing method and system for VXLAN (Virtual eXtensible Local Area Network) two-layer networking

    CN113904867A