Data transmission method and device for edge computing, equipment, medium and product

By detecting the public network address of client access requests in edge computing and saving session records, the five-tuple conflict problem is solved, improving data transmission success rate and user experience.

CN120301952AActive Publication Date: 2025-07-11BEIJING VOLCANO ENGINE TECH CO LTD

Patent Information

Application Number
CN202510779811.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-11
Publication Date
2025-07-11
Estimated Expiration
2045-06-11

AI Technical Summary

Technical Problem

In edge computing, when multiple access requests to access IPs from different public networks but use the same edge service node, it leads to five-tuple conflicts, resulting in data transmission abnormalities and affecting the user experience.

Method used

By detecting the public network address requested by the client access, determining the session record and saving it to the target service node, ensuring that the response information contains the public network address when hitting the session record, avoiding five-tuple conflicts.

Benefits of technology

It improves the success rate of data transmission, improves the user experience, and avoids abnormal data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120301952A_ABST
    Figure CN120301952A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a data transmission method and device for edge computing, equipment, a medium and a product.The data transmission method for edge computing comprises the steps that an access request sent by a client side is detected, and a first address of a public network accessed by the access request is determined; based on the first address, determining a session record, and storing the session record to a target service node, the target service node being an edge service node for processing the access request in a content distribution network; and when the response information of the target service node hits the session record, sending the response information to the client. According to the method and the device, the session record can contain the first address of the public network, so that when the access requests for accessing different public networks are responded, data transmission abnormity caused by quintuple conflict is avoided, the success rate of data transmission is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and particularly to a data transmission method, apparatus, device, medium and product for edge computing. Background Art

[0002] Edge computing is a distributed computing mode in which computing, storage, and network resources are deployed on the network edge side close to the data source or the client. In related data transmission methods, requests for accessing the public network can be distributed to virtual machines (Real Servers, hereinafter referred to as RSs) of multiple edge service nodes according to a certain load balancing algorithm through the four-layer load balancer (LoadBalancer, hereinafter referred to as LB) of the edge cloud, and a session record corresponding to the access request is generated in the edge service node, where the session record is used to indicate the source IP and the destination IP, that is, the IP of the client and the IP of the virtual machine of the edge service node. Next, if the response information for the access request hits the session record, in response to the access request, the response information is returned to the client, where the session record includes the IP of the virtual machine of the edge service node and the IP of the public network.

[0003] However, if there are multiple access requests, and the IPs of the public networks accessed by each access request are different, but the corresponding edge service nodes are the same, then for these multiple access requests, only the session record of the first access request is established in the edge service node, which causes the five-tuples established for the response packets of each access request in the edge service node to be the same (the source IP and the source port are both the IP and the port of the public network accessed by the first access request, and the destination IP and the destination port are both the IP and the port of the virtual machine), thereby causing five-tuple conflicts, resulting in abnormal data transmission and affecting the user experience. Summary of the Invention

[0004] In view of this, the present disclosure provides a data transmission method, apparatus, device, medium and product for edge computing to solve the problem of abnormal data transmission caused by five-tuple conflicts during data transmission.

[0005] In a first aspect, the present disclosure provides a data transmission method for edge computing, the method including: Detect an access request sent by a client and determine a first address of the public network accessed by the access request; Based on the first address, determine a session record and save the session record to a target service node, where the target service node is an edge service node in the content delivery network for processing the access request; When the response information of the target service node hits the session record, send the response information to the client.

[0006] In a second aspect, the present disclosure provides a data transmission device for edge computing, the device comprising: a detection module, configured to detect an access request sent by a client and determine a first address of a public network accessed by the access request; a determination module, configured to determine a session record based on the first address and save the session record to a target service node, where the target service node is an edge service node in a content delivery network for processing the access request; a sending module, configured to send the response message to the client when the response message of the target service node hits the session record.

[0007] In a third aspect, the present disclosure provides a computer device, comprising: a memory and a processor, which are communicatively connected to each other, where the memory stores computer instructions, and the processor executes the computer instructions to execute the data transmission method for edge computing according to the first aspect or any corresponding embodiment thereof.

[0008] In a fourth aspect, the present disclosure provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to execute the data transmission method for edge computing according to the first aspect or any corresponding embodiment thereof.

[0009] In a fifth aspect, the present disclosure provides a computer program product, comprising computer instructions, and the computer instructions are used to cause a computer to execute the data transmission method for edge computing according to the first aspect or any corresponding embodiment thereof.

[0010] In an embodiment of the present disclosure, first, an access request sent by a client can be detected, and a first address of a public network accessed by the access request can be determined. Next, a session record can be determined based on the first address, and the session record can be saved to a virtual switch of the target service node, where the target service node is an edge service node in a content delivery network for processing the access request. Then, when the response message of the target service node hits the session record, the response message can be sent to the client, so that the first address of the public network can be included in the session record, so as to avoid data transmission anomalies caused by five-tuple conflicts when responding to access requests for different public networks, improve the success rate of data transmission, and thus enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] To more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings required for the description of the specific embodiments or the prior art. Obviously, the accompanying drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0012] Figure 1 is a schematic diagram of data transmission in a related content delivery network; Figure 2 is a schematic diagram of quintuple conflict during data transmission; Figure 3 is a flowchart of a data transmission method for edge computing according to an embodiment of the present disclosure; Figure 4 is a schematic diagram of data transmission using four-layer load balancing of edge cloud according to an embodiment of the present disclosure; Figure 5 is a flowchart of another data transmission method for edge computing according to an embodiment of the present disclosure; Figure 6 is a flowchart of yet another data transmission method for edge computing according to an embodiment of the present disclosure; Figure 7 is a structural block diagram of a data transmission device for edge computing according to an embodiment of the present disclosure; Figure 8 is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present disclosure. Specific Embodiments

[0013] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are some, but not all, of the embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present disclosure.

[0014] Combined with the application scenarios on which the execution of the data transmission method for edge computing depends, the application scenarios are described herein.

[0015] Edge computing is a distributed computing mode that deploys computing, storage, and network resources on the network edge side close to the data source or client. In related data transmission methods, usually, the access requests of users are distributed to edge service nodes for processing, and a session record corresponding to the access request is generated in the edge service node. Among them, the edge service node is used for edge computing, and the session record is used to indicate the source IP and destination IP, that is, the IP of the client and the virtual machine IP of the edge service node. Next, if the response message for the access request hits the session record, then in response to the access request, the response message is returned to the client. Among them, the session record contains the virtual machine IP of the edge service node and the IP of the public network.

[0016] However, if there are multiple access requests, and the IPs of the public networks accessed by each access request are different, but the corresponding edge service nodes are the same, then for these multiple access requests, only the session record of the first access request will be established in the edge service node. This results in the same five-tuple (source IP and source port are both the IP and port of the public network accessed by the first access request, and the destination IP and destination port are both the IP and port of the virtual machine) being established for the response packets of each access request in the edge service node, thus causing a five-tuple conflict, resulting in abnormal data transmission and affecting the user experience.

[0017] In related data transmission methods, the requests for accessing the public network can be distributed to the virtual machines (Real Server, hereinafter referred to as RS) of multiple edge service nodes according to a certain load balancing algorithm through the four-layer load balancer (Load Balancer, hereinafter referred to as LB) of the edge cloud. On the host where the RS is located, a virtual switch (Virtual Switch, hereinafter referred to as VS) is usually deployed, and the VS is responsible for managing the network packet transmission of all virtual machines on the host. When there is a request, the path of the network traffic starts from the client, passes through the LB, then reaches the host where the RS is located, and finally reaches the virtual machine where the RS is located. In this process, the role of the LB is to convert the public network IP accessed by the client into the internal network IP of the RS virtual machine, and this forwarding mode is called network address translation (Network Address Translation, hereinafter referred to as NAT).

[0018] For the packet path in the response direction, it is transmitted along the reverse path, that is, starting from the RS virtual machine, passing through the VS on the host, then through the LB, and finally returning to the client. In this process, the LB will convert the IP address of the RS into the public network IP address and then send the packet out.

[0019] However, in some business scenarios that are sensitive to latency, in order to reduce the latency through the LB link and improve the throughput, the industry usually adopts the Direct Server Return (hereinafter referred to as DSR) method. In this method, the packets in the response direction will be directly transmitted from the RS virtual machine to the public network area, rather than through the LB. This requires the VS to change the source IP address of the response packet sent by the RS to the public IP address (hereinafter referred to as EIP), and then send it directly.

[0020] Specifically, as Figure 1 shown in the schematic diagram of data transmission using the four-layer load balancing of the edge cloud. Among them, the network traffic path of the client IP in the request direction can be expressed as: client - LB - edge service node where the RS is located - RS. Here, the client IP is 1.1.1.1:32333, the EIP is 2.2.2.2:80, and the virtual machine IP of the edge service node allocated for the access request is 172.168.1.1:80. After the switch TOR (Top of Rack, a data center network architecture) receives the access request from the client for the EIP, it determines the edge service node 172.168.1.1:80 that processes the access request through the LB, and establishes a session record in the VS of this edge service node: 1.1.1.1:32333 -> 172.168.1.1:80.

[0021] Next, through RS listening, listen to the response packets generated by this edge service node, and when the response packet hits this session record, modify the source IP and source port of the response packet to the public IP and port 2.2.2.2:80, and directly transmit the response packet from the RS virtual machine to the switch TOR in the public network area, and directly feedback the response packet to the client through the switch TOR.

[0022] However, in this data transmission method, if there are multiple access requests from the same client with the same source IP (client IP) and using the same source port (client port), and the IPs of the public networks accessed by each access request are different, but the corresponding edge service nodes are the same, it may cause the five-tuples established for the response packets of each access request by the edge service node to be the same, resulting in five-tuple conflicts.

[0023] Here, as Figure 2 shown in the schematic diagram of five-tuple conflict. Among them, access request 1 requests to access EIP1: 2.2.2.2:80, access request 2 requests to access EIP2: 2.2.2.3:80, and the edge service nodes allocated by the LB for access request 1 and access request 2 are the same, and the virtual machine IPs are both 172.168.1.1:80.

[0024] However, since the source IP and source port of access request 1 and access request 2 are the same, when there is a session record 1.1.1.1:32333 -> 172.168.1.1:80 of access request 1 in the VS of the edge service node, and then access request 2 is received, the session record will not be established repeatedly. That is to say, even though the data streams of access request 1 and access request 2 are different, the session records are the same. Therefore, the five-tuples of the response packets established based on this session record are the same, and the five-tuple conflict causes the transmission of access request 1 to be abnormal and the connection establishment of access request 2 to fail.

[0025] Based on this, an embodiment of the present disclosure provides a data transmission method for edge computing. First, it is possible to detect an access request sent by a client and determine a first address of a public network accessed by the access request. Next, based on the first address, a session record can be determined and saved to the virtual switch of the target service node, where the target service node is an edge service node in the content delivery network for processing access requests. Then, when the response information of the target service node hits the session record, the response information can be sent to the client, so that the session record can include the first address of the public network, in order to avoid the five-tuple conflict causing data transmission anomalies when responding to access requests for different public networks, improve the success rate of data transmission, and thus enhance the user experience.

[0026] According to an embodiment of the present disclosure, there is provided an embodiment of a data transmission method for edge computing. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in a different order.

[0027] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0028] For example, when responding to an active request from a user, a prompt message can be sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that executes the operations of the technical solutions of the present disclosure according to the prompt message.

[0029] As an optional but non-limiting implementation manner, in response to receiving an active request from a user, the manner of sending a prompt message to the user may be, for example, in the form of a pop-up window, and the prompt message may be presented in text in the pop-up window. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0030] It can be understood that the above notification and user authorization acquisition process is only illustrative and does not limit the implementation manner of the present disclosure. Other manners that comply with relevant laws and regulations can also be applied to the implementation manner of the present disclosure.

[0031] It can be understood that the data involved in the technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the corresponding laws, regulations and related regulations.

[0032] According to an embodiment of the present disclosure, an embodiment of a data transmission method for edge computing is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0033] In this embodiment, a data transmission method for edge computing is provided, which can be used in the above CDN. Figure 3 is a flowchart of a data transmission method for edge computing according to an embodiment of the present disclosure, as Figure 3 shown, the process includes the following steps: Step S301, detect an access request sent by a client and determine a first address of a public network accessed by the access request.

[0034] In the CDN, when a client requests a certain resource for the first time, the CDN will pull the resource from the origin server and store it on the edge service node. After that, when other users in the same region request the same resource again, they can directly obtain it from the edge service node without having to pull data from the origin server every time, thereby improving the access speed and efficiency.

[0035] Based on this, after the CDN detects an access request sent by a client, it can parse the request message of the access request to obtain a first address (hereinafter referred to as EIP) of the public network accessed by the access request, and determine a target service node for processing the access request among the edge nodes of the CDN according to the above LB, and route the access request to the target service node.

[0036] Here, as Figure 4The figure shows a schematic diagram of data transmission using a four-layer load balancer with an edge cloud. Among them, after receiving an access request sent by a client, the TOR switch can determine a target service node for processing the access request through the LB.

[0037] Step S302: Based on the first address, determine a session record and save the session record to the target service node, where the target service node is an edge service node in the content delivery network for processing access requests.

[0038] In the embodiment of the present disclosure, the EIP pass-through mode can be adopted to transmit the request message of the access request to the target service node. In the pass-through mode, during the process of the request message being transmitted from the source device to the target device, the intermediate device only responsible for relaying the data packet and does not perform any processing, parsing, or modification on the data, keeping the originality and integrity of the data unchanged, as if the data "transparently" passes through the intermediate device. Here, the request message usually contains the source IP address, source port number, and the destination IP address and destination port number to be connected (the first address and port number corresponding to the public network), etc.

[0039] In the pass-through mode, the LB can fill the virtual machine address of the target service node into the option field (a field used to carry additional information in network communication) of the request message and encapsulate the request message, so as to transmit the encapsulated request message to the target service node, enabling the target service node to establish a session record based on the first address in the request message.

[0040] Step S303: When the response information of the target service node hits the session record, send the response information to the client.

[0041] In the embodiment of the present disclosure, the response information may include a response message, where the response message may contain information such as the source IP address, source port number, and the destination IP address and destination port number to be connected, etc. Here, if the source IP of the response message hits the above first address, it is determined that the response message hits the session record.

[0042] Here, as Figure 4 shown, after the response information hits the session record, the access request corresponding to the response information can be directly determined, and the response information is fed back to the client to establish a connection with the client.

[0043] As can be seen from the above description, in the embodiments of the present disclosure, first, an access request sent by a client can be detected, and a first address of a public network accessed by the access request can be determined. Next, based on the first address, a session record can be determined and saved to a virtual switch of a target service node, where the target service node is an edge service node in a content delivery network for processing access requests. Then, when the response information of the target service node hits the session record, the response information can be sent to the client, so that the session record can include the first address of the public network, so as to avoid abnormal data transmission caused by five-tuple conflicts when responding to access requests for different public networks, improve the success rate of data transmission, and thus enhance the user experience.

[0044] In this embodiment, another data transmission method for edge computing is provided, which can be used in the above CDN. Figure 5 It is a flowchart of a data transmission method for edge computing according to an embodiment of the present disclosure, as Figure 5 shown. This process includes the following steps: Step S501, detect an access request sent by a client and determine a first address of a public network accessed by the access request.

[0045] Specifically, the above step S501 includes: Step S5011, obtain a request message corresponding to the access request.

[0046] Step S5012, parse the destination address corresponding to the access request based on the request message to obtain the first address.

[0047] In the embodiments of the present disclosure, the request message corresponding to the access request may include a source IP address, a source port number, and a destination IP address and a destination port number to be connected, etc., where the destination IP is the above destination address.

[0048] Here, as Figure 4 shown, the destination address corresponding to access request 1 may be EIP1 2.2.2.2:80 of public network 1, and the destination address corresponding to access request 2 may be 2.2.2.3:80 of public network 2. Next, the first address can be transparently transmitted to the target service node through the above TOR switch.

[0049] Step S502, based on the first address, determine a session record and save the session record to the target service node, where the target service node is an edge service node in a content delivery network for processing access requests. For details, please refer to Figure 3 step S302 of the shown embodiment, which will not be elaborated here.

[0050] Step S503: When the response information of the target service node hits the session record, send the response information to the client. For details, please refer to Figure 3 Step S303 of the embodiment shown, which will not be elaborated here.

[0051] In the embodiment of the present disclosure, the request message of the access request can be parsed to obtain the destination address corresponding to the access request, i.e., the first address, so as to provide a technical basis for passing the first address through to the virtual switch of the target service node.

[0052] In this embodiment, another data transmission method for edge computing is provided, which can be used for the above CDN. Figure 6 It is a flowchart of the data transmission method for edge computing according to the embodiment of the present disclosure. As Figure 6 shown, the process includes the following steps: Step S601: Detect the access request sent by the client and determine the first address of the public network accessed by the access request. For details, please refer to Figure 3 Step S301 of the embodiment shown, which will not be elaborated here.

[0053] Step S602: Based on the first address, determine the session record and save the session record to the target service node, where the target service node is an edge service node in the content delivery network for processing access requests.

[0054] Specifically, the above step S602 includes: Step S6021: Pass the first address through to the virtual switch of the target service node.

[0055] Step S6022: Obtain the second address of the client and the third address of the target service node.

[0056] Step S6023: Generate the session record corresponding to the public network based on the first address, the second address, and the third address.

[0057] In the embodiment of the present disclosure, the first address is the ip of the public network, i.e., the above EIP, that is Figure 4 2.2.2.2:80 and 2.2.2.3:80 in Figure 4 The second address is the ip of the client, i.e., Figure 4 1.1.1.1:32333 in

[0058] Here, the EIP pass-through mode can be adopted to transmit the request message of the access request to the target service node. In the pass-through mode, the LB can fill the virtual machine address of the target service node into the option field of the request message (a field used to carry additional information in network communication), and encapsulate the request message, so as to transmit the encapsulated request message to the target service node.

[0059] Specifically, after receiving the request message, the virtual switch VS of the target service node can parse the request message to establish a session record according to the five-tuple of the request message. Among them, the session record can include the first address, the second address, and the third address.

[0060] For Figure 4 example, session records can be established for access request 1 and access request 2 respectively in the target service node. Among them, the first address, the second address, and the third address corresponding to access request 1 are 2.2.2.2:80, 1.1.1.1:32333, and RS 172.168.1.1 respectively. The first address, the second address, and the third address corresponding to access request 2 are 2.2.2.3:80, 1.1.1.1:32333, and RS 172.168.1.1:80 respectively. Then, the session record 1 generated for access request 1 can be expressed as 1.1.1.1:32333 -> 2.2.2.2:80 RS 172.168.1.1:80, and the session record 2 generated for access request 2 can be expressed as 1.1.1.1:32333 -> 2.2.2.3:80 RS 172.168.1.1:80.

[0061] Step S603, when the response message of the target service node hits the session record, send the response message to the client. For details, please refer to Figure 3 Step S303 of the illustrated embodiment, which will not be elaborated here.

[0062] In the embodiments of the present disclosure, the first address can be passed through to the virtual switch of the target service node, and based on the first address, the second address, and the third address, a session record corresponding to the public network is generated, so that the response message can be directly passed through the edge cloud network to the target service node to generate a session record, providing a technical basis for solving the five-tuple conflict in scenarios where the server needs to directly return the response message.

[0063] In some optional implementation manners, the above Figure 3 corresponding embodiments further include: Step S11, obtain a set of first addresses, where the set of first addresses includes the first addresses of each public network accessible by the client.

[0064] Step S12: Based on each first address in the first address set, generate a listening object for the corresponding public network in the target service node, where the listening object is used to monitor whether the response message hits the session record of the public network.

[0065] In the embodiments of the present disclosure, the listening object can monitor the EIP and listening port of the corresponding public network in real time, receive the request message passed through by the LB, and at the same time monitor the source IP and source port number of the response message. Here, at least one listening object can be set in each edge node, and each listening object is used to monitor the response information corresponding to a target public network.

[0066] Here, when setting the listening object, the corresponding listening object can be set for each accessible public network in sequence, and the listening object is configured in the target service node. Specifically, the above step S12, based on each first address in the first address set, generate a listening object for the corresponding public network in the target service node, includes: Step a1: Obtain the port identifier of the listening port of the public network corresponding to the first address.

[0067] Step a2: Based on the first address and the port identifier, generate a listening object for the public network.

[0068] In the embodiments of the present disclosure, the first address set can be obtained, where the first address set includes the first address EIP of each public network accessible to the client and the port identifier corresponding to the listening port, that is, the port number, so as to generate the listening object corresponding to the public network based on the EIP and the port number corresponding to the listening port.

[0069] Here, taking Figure 4 as an example, among them, the listening object generated for public network 1 can be listening object 1 "2.2.2.2:80", and the listening object generated for public network 2 can be listening object 2 "2.2.2.3:80".

[0070] In the embodiments of the present disclosure, the corresponding listening object can be set for each accessible public network in sequence in the edge service node for edge computing, so as to monitor whether the response message of the edge service node hits the session record of the corresponding public network, so as to avoid five-tuple conflicts.

[0071] In some alternative embodiments, the above step S303, determining that the response information of the target service node hits the session record, includes: Step S21: Based on the listening object corresponding to the target service node, obtain the response message of the response information.

[0072] Step S22, parse based on the response message to obtain a target address, where the target address is used to indicate a first address of a public network accessed by an access request.

[0073] Step S23, when the target address hits a session record, determine that the response information of the target service node hits the session record.

[0074] In an embodiment of the present disclosure, corresponding to the request message, the response message may include a source IP and a source port number of the response, a destination IP and a destination port number. Here, the target address may be the destination IP, that is, the EIP corresponding to the access request.

[0075] Here, taking Figure 4 as an example, if the target address obtained by the monitoring object by parsing the response message is 2.2.2.2:80, it is determined that the response information hits the above session record 1. If the target address obtained by the monitoring object by parsing the response message is 2.2.2.3:80, it is determined that the response information hits the above session record 2.

[0076] In an embodiment of the present disclosure, the monitoring object may parse the response message in the target service node, and when the target address in the response message matches the first address in the session record, determine that the target address hits the session record and determine that the response message hits the session record, where the target address is the destination IP, that is, the EIP corresponding to the access request, thereby realizing the forwarding of the response message based on the EIP and avoiding the five-tuple conflict of the response message.

[0077] In some alternative embodiments, the above step S303, sending the response information to the client, includes: Sending the response information to a switch corresponding to the public network, and returning the response information to the client through the switch.

[0078] In an embodiment of the present disclosure, the switch corresponding to the public network is the above-mentioned TOR switch. For some service scenarios that are sensitive to latency, if the response information is forwarded to the client through the LB, it will cause a relatively high latency.

[0079] Therefore, as Figure 4 can be seen, the present application can directly transmit the response information from the RS of the target service node to the TOR switch, and send the response information to the corresponding client through the TOR switch, thereby skipping the LB forwarding process, reducing data transmission latency and increasing data throughput.

[0080] In some alternative embodiments, the above Figure 3 corresponding embodiment further includes: Step S31, after determining the first address of the public network accessed by the access request, detect the load status of each edge service node in the content delivery network.

[0081] Step S32, determine a target service node in the edge service nodes whose load status meets the allocation condition.

[0082] In the embodiments of the present disclosure, the LB as described in Figure 4 can be used to allocate the access requests for the public network received, so as to implement the distribution of public network traffic to the virtual machines of the edge cloud service nodes according to a certain load balancing algorithm.

[0083] Here, the LB can dynamically adjust the traffic distribution according to the load status of each edge node virtual machine monitored in real time, so as to ensure that the load of each virtual machine is relatively balanced, and improve the overall performance and reliability of the system.

[0084] Specifically, after receiving the access request, the LB can parse the request message of the access request to obtain the target ip and the destination port number, and select a virtual machine of a suitable edge service node according to the preset load balancing algorithm and the load status to process the access request. For example, algorithms such as round robin, weighted round robin, least connections, source address hashing, etc. The present disclosure does not limit the specific load balancing algorithm, as long as it can be implemented.

[0085] In the embodiments of the present disclosure, the LB can be used to allocate the access requests for the public network received, so as to implement the distribution of public network traffic to the virtual machines of the edge cloud service nodes according to a certain load balancing algorithm, thereby ensuring that the load of each virtual machine is relatively balanced, and improving the overall performance and reliability of the system.

[0086] In summary, in the embodiments of the present disclosure, first, the access request sent by the client can be detected, and the first address of the public network accessed by the access request can be determined. Next, based on the first address, a session record can be determined and saved to the virtual switch of the target service node, where the target service node is the edge service node in the content delivery network for processing the access request. Then, when the response message of the target service node hits the session record, the response message can be sent to the client, so that the session record can contain the first address of the public network, so as to avoid the five-tuple conflict and cause abnormal data transmission when responding to the access requests for different public networks, improve the success rate of data transmission, and further enhance the user experience.

[0087] In this embodiment, a data transmission device for edge computing is further provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be repeated here. As used hereinafter, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0088] This embodiment provides a data transmission device for edge computing. As Figure 7 shown, it includes: A detection module 701, configured to detect an access request sent by a client and determine a first address of a public network accessed by the access request; A determination module 702, configured to determine a session record based on the first address and save the session record to a target service node, where the target service node is an edge service node in a content delivery network for processing access requests; A sending module 703, configured to send the response message to the client when the response message of the target service node hits the session record.

[0089] In some alternative implementation manners, the determination module 702 is further configured to: Transparently transmit the first address to a virtual switch of the target service node; Obtain a second address of the client and a third address of the target service node; Generate a session record corresponding to the public network based on the first address, the second address, and the third address.

[0090] In some alternative implementation manners, the device is further configured to: Obtain a set of first addresses, where the set of first addresses contains the first addresses of each public network accessible by the client; Generate a listening object for each corresponding public network in the target service node based on each first address in the set of first addresses, where the listening object is used to monitor whether a response message hits the session record of the public network.

[0091] In some alternative implementation manners, the device is further configured to: Obtain a port identifier of a listening port of the public network corresponding to the first address; Generate a listening object for the public network based on the first address and the port identifier.

[0092] In some alternative implementation manners, the sending module 703 is further configured to: Obtain a response packet of the response message based on the listening object corresponding to the target service node; Parse based on the response message to obtain the target address, where the target address is used to indicate the first address of the public network accessed by the access request. When the target address hits the session record, it is determined that the response information of the target service node hits the session record.

[0093] In some alternative embodiments, the detection module 701 is further configured to: Obtain the request message corresponding to the access request; Parse the destination address corresponding to the access request based on the request message to obtain the first address.

[0094] In some alternative embodiments, the sending module 703 is further configured to: Send the response information to the switch corresponding to the public network, and return the response information to the client through the switch.

[0095] The further function descriptions of the above various modules and units are the same as those in the corresponding above embodiments, and will not be elaborated here.

[0096] The data transmission device for edge computing in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0097] This embodiment of the present disclosure further provides a computer device having the above Figure 7 shown data transmission device for edge computing.

[0098] Please refer to Figure 8 , Figure 8 which is a schematic structural diagram of a computer device provided by an alternative embodiment of the present disclosure. As Figure 8 shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Each component communicates with each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (such as a server array, a set of blade servers, or a multi-processor system). Figure 8Take a processor 10 as an example.

[0099] The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above hardware chip can be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above programmable logic device can be a complex programmable logic device, a field programmable gate array, a generic array logic, or any combination thereof.

[0100] Among them, the memory 20 stores instructions that can be executed by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiments.

[0101] The memory 20 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the computer device, etc. In addition, the memory 20 can include high-speed random access memory, and can also include non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 can optionally include a memory remotely set relative to the processor 10, and these remote memories can be connected to the computer device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0102] The memory 20 can include volatile memory, such as random access memory; the memory can also include non-volatile memory, such as flash memory, a hard disk, or a solid-state drive; the memory 20 can also include a combination of the above types of memory.

[0103] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0104] Embodiments of the present disclosure also provide a computer-readable storage medium. The methods according to the embodiments of the present disclosure can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented as computer code that is originally stored in a remote storage medium or a non-transitory machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the methods described herein can be processed by such software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disc, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the methods shown in the above embodiments are implemented.

[0105] A part of the present disclosure can be applied as a computer program product, such as computer program instructions, which when executed by a computer, can call or provide the methods and / or technical solutions according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the forms of existence of computer program instructions in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executes the instructions, or the computer compiles the instructions and then executes the corresponding compiled program, or the computer reads and executes the instructions, or the computer reads and installs the instructions and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0106] Although the embodiments of the present disclosure are described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A data transmission method for edge computing, characterized in that, The method includes: Detecting an access request sent by a client and determining a first address of a public network accessed by the access request; Determining a session record based on the first address and saving the session record to a target service node, where the target service node is an edge service node in a content delivery network for processing the access request; When the response information of the target service node hits the session record, sending the response information to the client.

2. The method according to claim 1, characterized in that, The determining a session record based on the first address includes: Transparently transmitting the first address to a virtual switch of the target service node; Obtaining a second address of the client and a third address of the target service node; Generating a session record corresponding to the public network based on the first address, the second address, and the third address.

3. The method according to claim 1, wherein The method further includes: Obtaining a first address set, where the first address set contains first addresses of each public network accessible by the client; Generating a listening object for each first address in the first address set in the target service node for a corresponding public network, where the listening object is used to listen whether a response message hits a session record of the public network.

4. The method according to claim 3, wherein The generating a listening object for each first address in the first address set in the target service node for a corresponding public network includes: Obtaining a port identifier of a listening port of the public network corresponding to the first address; Generating a listening object for the public network based on the first address and the port identifier.

5. The method according to claim 1, characterized in that, Determining that the response information of the target service node hits the session record includes: Obtaining a response packet of the response information based on the listening object corresponding to the target service node; Parsing the response packet to obtain a target address, where the target address is used to indicate the first address of the public network accessed by the access request; When the target address hits the session record, determining that the response information of the target service node hits the session record.

6. The method according to claim 1, wherein The determining a first address of a public network accessed by the access request includes: Obtaining a request packet corresponding to the access request; Parsing a destination address corresponding to the access request based on the request packet to obtain the first address.

7. The method according to claim 1, wherein The sending the response information to the client includes: Sending the response information to a switch corresponding to the public network, and returning the response information to the client through the switch.

8. A data transmission device for edge computing, characterized in that, The apparatus includes: A detection module, configured to detect an access request sent by a client and determine a first address of a public network accessed by the access request; A determination module, configured to determine a session record based on the first address and save the session record to a target service node, where the target service node is an edge service node in a content delivery network for processing the access request; A sending module, configured to send the response information to the client when the response information of the target service node hits the session record.

9. A computer device, characterized in that, Includes: A memory and a processor, which are communicatively connected to each other. Computer instructions are stored in the memory, and the processor executes the computer instructions to execute the data transmission method for edge computing according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, Computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to cause a computer to execute the data transmission method for edge computing according to any one of claims 1 to 7.

11. A computer program product, characterized in that, It includes computer instructions, and the computer instructions are used to cause a computer to execute the data transmission method for edge computing according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Content distribution implementation method and system

    CN101984637A

  • Data transmission method and network address translation device

    CN107528932A

  • Network address mapping method and network address mapping equipment of server

    CN110661895A

  • Request processing method and device, traffic agent side, equipment and readable storage medium

    CN114024741A

  • Method for fowarding data, device, storage medium and data transmission system

    US20230239358A1

Cited By

  • Data processing method and device of four-layer load balancing system and medium

    CN122395203A