Data transmission method and system, computing device, storage medium and program product
By deploying candidate servers in a proprietary network and using address translation logic, directly converting intranet addresses into external network addresses, the flexibility and scalability problems of enterprises when exchanging data with external regulators in classic networks are solved, and the problem of improvement of data from enterprises has been improved. Data transmission efficiency and reduce maintenance costs.
Patent Information
- Application Number
- CN202411286899.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-06
AI Technical Summary
When enterprises exchange data with external regulators in classic networks, traditional methods are difficult to meet flexibility and scalability requirements, and are costly to maintain and have low fault handling efficiency.
By deploying candidate servers in a proprietary network, the intranet address is directly converted into external network addresses using address translation logic, realizing direct data transmission from the target server to external network devices, avoiding offline IDC transit.
Improves the flexibility and efficiency of data transmission, reduces maintenance costs and fault handling time, and simplifies data transmission paths.
Smart Images

Figure CN119094591A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of cloud computing technology, and in particular to a data transmission method, system, computing device, storage medium, and program product. Background Art
[0002] The company's current business is deployed in the classic network. These business systems often need to exchange data with external regulatory agencies in a stable and secure manner. After the classic network and the proprietary network are connected through the class link, they cannot communicate with regulatory agencies outside the proprietary network.
[0003] In related technologies, enterprises establish communication links with regulatory agencies by laying dedicated physical lines in offline Internet Data Centers (IDCs). However, this method is not easy to expand and cannot meet the flexibility of data exchange required by enterprises as their business changes.
[0004] Therefore, there is an urgent need for a flexible and scalable data transmission method across proprietary networks. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a data transmission method. One or more embodiments of the present invention also relate to a data transmission system, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.
[0006] According to a first aspect of an embodiment of the present invention, there is provided a data transmission method, which is applied to a data management platform and includes:
[0007] Receiving an initial data transmission request for an external network device, wherein the initial data transmission request carries an internal network address of the private network and a target device identifier of the external network device;
[0008] Determine a target server from at least two candidate servers, wherein at least two candidate servers are deployed in a private network, and at least two candidate servers are configured with address translation logic;
[0009] The initial data transmission request is sent to the target server, so that the target server converts the intranet address in the initial data transmission request into an extranet address based on the target device identifier according to the address conversion logic, and performs data transmission with the extranet device based on the updated data transmission request after the address conversion.
[0010] According to a second aspect of an embodiment of the present invention, a data transmission method is provided, which is applied to a target server and includes:
[0011] Receiving an initial data transmission request for an external network device sent by a data management platform, wherein the initial data transmission request carries an intranet address of a private network and a target device identifier of the external network device;
[0012] According to the address conversion logic, based on the target device identifier, the intranet address in the initial data transmission request is converted into an extranet address;
[0013] Data is transmitted with the external network device based on the updated data transmission request after address conversion.
[0014] According to a third aspect of an embodiment of the present invention, there is provided a data transmission system, including a data management platform, at least two candidate servers and an external network device;
[0015] The data management platform is used to receive an initial data transmission request for an external network device, wherein the initial data transmission request carries an internal network address of a private network and a target device identifier of the external network device; determine a target server from at least two candidate servers, wherein at least two candidate servers are deployed in the private network and at least two candidate servers are configured with address conversion logic; and send the initial data transmission request to the target server;
[0016] The target server is used to receive the initial data transmission request; according to the address conversion logic, based on the target device identification, the internal network address in the initial data transmission request is converted into an external network address; based on the updated data transmission request after the address conversion, data transmission is performed with the external network device.
[0017] According to a fourth aspect of an embodiment of the present invention, there is provided a data transmission device, which is applied to a data management platform and includes:
[0018] A first receiving module is configured to receive an initial data transmission request for an external network device, wherein the initial data transmission request carries an internal network address of a private network and a target device identifier of the external network device;
[0019] A determination module is configured to determine a target server from at least two candidate servers, wherein the at least two candidate servers are deployed in a private network and the at least two candidate servers are configured with address translation logic;
[0020] The sending module is configured to send the initial data transmission request to the target server, so that the target server converts the intranet address in the initial data transmission request into an external network address based on the target device identifier according to the address conversion logic, and performs data transmission with the external network device based on the updated data transmission request after the address conversion.
[0021] According to a fifth aspect of an embodiment of the present invention, there is provided a data transmission device, which is applied to a target server and includes:
[0022] A second receiving module is configured to receive an initial data transmission request for an external network device sent by the data management platform, wherein the initial data transmission request carries an intranet address of the private network and a target device identifier of the external network device;
[0023] A conversion module is configured to convert the internal network address in the initial data transmission request into an external network address based on the target device identifier according to the address conversion logic;
[0024] The transmission module is configured to perform data transmission with the external network device based on the updated data transmission request after address conversion.
[0025] According to a sixth aspect of an embodiment of the present invention, there is provided a computing device, including:
[0026] Memory and processor;
[0027] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the data transmission method described in the first aspect or the second aspect are implemented.
[0028] According to a seventh aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the data transmission method described in the first aspect or the second aspect are implemented.
[0029] According to an eighth aspect of an embodiment of the present invention, a computer program product is provided, including a computer program / instruction, which, when executed by a processor, implements the steps of the data transmission method described in the first aspect or the second aspect above.
[0030] An embodiment of the present invention realizes receiving an initial data transmission request for an external network device, wherein the initial data transmission request carries the internal network address of a private network and the target device identifier of the external network device; determining a target server from at least two candidate servers, wherein at least two candidate servers are deployed in the private network, and at least two candidate servers are configured with address conversion logic; sending the initial data transmission request to the target server, so that the target server converts the internal network address in the initial data transmission request into an external network address based on the target device identifier according to the address conversion logic, and performs data transmission with the external network device based on the updated data transmission request after the address conversion. Data can directly depart from the target server to the external network device without being transferred through an offline IDC, which significantly improves the flexibility and efficiency of data transmission. By implementing a specific data processing flow on the server, the server deployed in the private network can directly interact with the external network device outside the private network, so as to no longer be restricted by the offline IDC. When receiving a request to send data to an external network device, the data management platform will determine the target server from at least two candidate servers, and then send the data transmission request to the target server, and the target server will use the pre-configured address conversion logic to convert the internal network address in the data transmission request into an external network address, and perform the data transmission task. In this way, data can start directly from the server and reach the external network device after a simple address conversion, without the need for transit through the offline IDC. This significantly improves the flexibility and efficiency of data transmission, while reducing maintenance costs and troubleshooting time. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a structural interaction diagram of a data transmission system provided by an embodiment of the present invention;
[0032] Figure 2 is a flow chart of a data transmission method provided by an embodiment of the present invention;
[0033] Figure 3 is a flow chart of another data transmission method provided by an embodiment of the present invention;
[0034] Figure 4 is a processing flow chart of a data transmission method provided by an embodiment of the present invention;
[0035] Figure 5 It is a schematic diagram of an operation interface of a configuration management workbench provided by an embodiment of the present invention;
[0036] Figure 6 It is a schematic diagram of a process of communication between a proprietary network and a regulatory agency provided by an embodiment of the present invention;
[0037] Figure 7is a structural schematic diagram of a data transmission device provided by an embodiment of the present invention;
[0038] Figure 8 is a schematic structural diagram of another data transmission device provided by an embodiment of the present invention;
[0039] Fig. 9 It is a structural block diagram of a computing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] Many specific details are set forth in the following description to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present invention, so the present invention is not limited to the specific implementation disclosed below.
[0041] The terms used in one or more embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present invention. The singular forms of "a", "said" and "the" used in one or more embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present invention refers to and includes any or all possible combinations of one or more associated listed items.
[0042] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present invention, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present invention, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0043] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0044] First, the terms involved in one or more embodiments of the present invention are explained.
[0045] Classic network: A more traditional cloud network model, more common in early cloud services. It provides a shared network environment in which all cloud resources (such as virtual machine instances, load balancers, etc.) are in the same network.
[0046] Private network: A network service in a cloud computing environment that allows users to create an isolated virtual network environment on the public cloud infrastructure of a cloud service provider. VPC enables users to define their own network architecture, including selecting IP address ranges, creating subnets, configuring routing tables and network gateways, etc.
[0047] LVS: Linux Virtual Server, Linux virtual service, is used to implement high-performance load balancing services based on the Linux kernel. It can create a virtual server cluster on the Linux system to distribute client requests to the real servers at the back end.
[0048] NAT: Network Address Translation. It is a technology used in IP network environment. Its main function is to convert IP addresses between public and private networks, so that hosts in the internal network can communicate with the external network through one or a small number of public IP addresses. NAT has two main modes: Source NAT (SNAT) and Destination NAT (DNAT). Both modes modify the IP address and / or port number of the data packet when it passes through the router or firewall.
[0049] IPTABLES: IP tables, a command line tool in Linux, used to configure and manage IP packet filtering rules in the kernel.
[0050] ECS: Elastic Compute Service, which refers to elastic computing server, is an on-demand virtual server service provided by cloud computing platforms, allowing users to quickly create and manage virtual server instances in the cloud.
[0051] IDC: Internet Data Center. It refers to professional facilities that provide Internet infrastructure services and are used to host customers' applications, servers, storage and other IT equipment. These data centers usually have highly secure and reliable power supply, cooling systems, network connections and disaster recovery mechanisms.
[0052] SLA: Service Level Agreement. It is a formal contract between a service provider and a customer regarding service quality. It defines the service standards, expected service levels, measurement criteria, and remedies when these standards are not met.
[0053] ClassicLink: Classic Link is a link function of the classic network that enables ECS instances in the classic network to access ECS instances in the VPC. The limitation is that it can only communicate with the ECS instances that have established the link, and cannot communicate across VPCs.
[0054] The company's current business is deployed in the classic network. These business systems often need to exchange data with external regulatory agencies in a stable and secure manner. After the classic network and the proprietary network are connected through the class link, they cannot communicate with regulatory agencies outside the proprietary network.
[0055] In order to establish communication links with regulators, companies usually lay dedicated physical lines through offline Internet data centers. This method allows companies to establish a stable connection with regulators to ensure the security and compliance of data transmission. However, this method has some obvious limitations:
[0056] Physical dedicated lines are not easy to expand and cannot meet the flexibility of data exchange required by enterprises as their business changes. Non-standard solutions cannot guarantee SLAs and cannot ensure the stability and reliability of communications. Maintaining physical dedicated lines requires high costs, including hardware equipment updates and network maintenance. There are many rules and they need to be configured manually through command lines, which is prone to errors and has weak rollback capabilities. The lack of effective monitoring and logging mechanisms leads to inefficient fault handling.
[0057] In response to the above problems, the present invention provides a data transmission method. The present invention also relates to a data transmission system, a data transmission device, a computing device, a computer-readable storage medium, and a computer program product, which are described in detail one by one in the following embodiments.
[0058] See also Figure 1 , Figure 1It is a structural interaction diagram of a data transmission system provided by an embodiment of the present invention. The data transmission system includes a data management platform, at least two candidate servers and an external network device; the data management platform is used to receive an initial data transmission request for the external network device, wherein the initial data transmission request carries the intranet address of the private network and the target device identifier of the external network device; determine the target server from at least two candidate servers, wherein at least two candidate servers are deployed in the private network, and at least two candidate servers are configured with address conversion logic; send the initial data transmission request to the target server; the target server is used to receive the initial data transmission request; according to the address conversion logic, the intranet address in the initial data transmission request is converted to an external network address based on the target device identifier; and data transmission is performed with the external network device based on the updated data transmission request after address conversion.
[0059] Applied to the data transmission system, the function that data can directly reach the external network device from the target server is realized, which significantly improves the flexibility and efficiency of data transmission, and avoids offline IDC transit by implementing a specific data processing process on the server in the private network. The system first receives the initial data transmission request for the external network device by the data management platform, which carries the intranet address and the target device identifier of the external network device. Based on this information, the data management platform determines a target server from at least two candidate servers deployed in the private network, and sends the initial data transmission request to the target server. After receiving the request, the target server converts the intranet address into an external network address according to its preset address conversion logic, and then directly transmits data with the external network device. This method omits the traditional offline IDC transit link, uses direct address conversion and direct communication between servers, simplifies the data transmission path, thereby improving the efficiency and flexibility of data transmission, while reducing maintenance costs and troubleshooting time.
[0060] See also Figure 2 , Figure 2 It is a flow chart of a data transmission method provided by an embodiment of the present invention, which specifically includes the following steps.
[0061] Step 202: Receive an initial data transmission request for an external network device, wherein the initial data transmission request carries the internal network address of the private network and the target device identifier of the external network device.
[0062] The initial data transmission request refers to a data transmission request initiated from the private network to the external network device, which usually involves the transmission of data packets at the network layer.
[0063] A private network is an isolated network environment, usually referred to as a Virtual Private Cloud (VPC) in cloud computing. It provides a private network space where resources can only be accessed in a specific way.
[0064] Intranet addresses are private IP addresses used within a private network. These addresses do not appear on the Internet and are usually used for internal communications. Extranet devices refer to any device outside the private network, which can be a server on the Internet, an IoT device, etc. The target device identifier is information used to identify the extranet device, which can be an IP address, domain name, etc.
[0065] In actual applications, a device inside a private network wants to transmit data with an external network device, so it initiates an initial data transmission request. This request contains two key pieces of information: the private network address, for example: 192.168.1.100, and the target device identifier of the external network device, for example: www.example.com or 203.0.113.100.
[0066] Step 204: Determine a target server from at least two candidate servers, wherein at least two candidate servers are deployed in a private network and at least two candidate servers are configured with address translation logic.
[0067] The at least two candidate servers refer to multiple servers deployed in a private network, which are potential candidates and can become target servers. Address translation logic refers to hardware or software that can perform NAT (Network Address Translation) functions. NAT is a network technology used to map private IP addresses to public IP addresses, so that devices on private networks can communicate with the public network.
[0068] In actual applications, we need to determine a target server among at least two candidate servers. This selection process can be based on different strategies, such as load balancing, availability, performance and other factors. All candidate servers are deployed in a private network, which means that they are all in the same isolated network environment and have their own intranet addresses. Each candidate server is configured with address translation logic, which means that they are all capable of performing NAT functions. This is usually achieved by installing software that supports NAT or using hardware devices with NAT functions.
[0069] Further, determining the target server from at least two candidate servers includes: obtaining load information of at least two candidate cloud servers; and determining the target cloud server from the at least two candidate cloud servers based on a preset determination rule and the load information.
[0070] Load information refers to the current workload of each server, including CPU utilization, memory usage, disk I / O and other indicators.
[0071] The preset determination rules are a set of standards or algorithms used to decide which server should become the target server. These rules can be adjusted according to actual conditions to meet different needs.
[0072] In actual applications, first, the data management platform will collect the load information of at least two candidate servers. This information reflects the current working status of each server. Then, the data management platform will analyze this load information according to the preset determination rules. These rules may be simple polling methods, random selection methods, or more complex algorithms, such as minimum load priority, maximum throughput priority, etc. Finally, the data management platform will select the most suitable server as the target server after considering the load information of all candidate servers and the preset determination rules. This selection process is to ensure the stability and efficiency of the data management platform.
[0073] In a specific embodiment of the present invention, a private network is provided, in which there are three candidate servers A, B and C. Each server has its own load information, as shown below:
[0074] A: CPU utilization 50%, memory utilization 70%
[0075] B: CPU utilization 30%, memory utilization 80%
[0076] C: CPU utilization 80%, memory utilization 60%.
[0077] A target server is selected according to the preset determination rule. The default determination rule is "minimum CPU utilization first". First, the data management platform collects the load information of each server. In this example, the CPU utilization and memory usage of each server are already known. Then, the data management platform analyzes this load information according to the preset determination rule. Since the default rule is "minimum CPU utilization first", the CPU utilization of each server is compared. Finally, the data management platform selects the server with the lowest CPU utilization as the target server. In this example, server B has the lowest CPU utilization (30%), so it will become the target server.
[0078] Based on this, determining the target server from at least two candidate servers can effectively optimize resource utilization and load balancing. By obtaining the load information of the candidate cloud servers and selecting them based on preset rules, it can ensure that tasks are assigned to servers with lower loads, thereby improving the overall response speed and stability of the data management platform, reducing the pressure on a single server, and improving user experience and service availability.
[0079] Step 206: Send the initial data transmission request to the target server, so that the target server converts the intranet address in the initial data transmission request to an external network address based on the target device identifier according to the address conversion logic, and performs data transmission with the external network device based on the updated data transmission request after address conversion.
[0080] In actual applications, the initial data transmission request is sent to the target server. This request contains the private network address in the private network and the target device identifier of the external network device. After receiving the request, the target server converts the private network address in the request into an external network address according to the pre-configured address conversion logic. This process is usually implemented by the NAT function. The request after the address conversion is called an updated data transmission request. This request now contains the external network address and can be recognized and processed by the device on the public network. The target server uses the updated data transmission request to transmit data with the external network device. This process can involve multiple steps such as routing selection and data packet encapsulation.
[0081] Furthermore, before receiving the initial data transmission request for the external network device, it also includes: responding to the configuration instruction of the front-end user, obtaining the configuration information input by the front-end user, wherein the configuration information includes the correspondence between the device identification of at least one external network device and the external network address of at least one external network device; sending the configuration information to at least two candidate servers so that the at least two candidate servers store the correspondence.
[0082] Configuration instructions refer to commands issued by front-end users, requiring the data management platform to make certain settings or changes.
[0083] Configuration information refers to some parameters or settings about the data management platform, such as the relationship between devices.
[0084] A device ID is a string or number used to uniquely identify a device, such as an IP address, MAC address, host name, etc.
[0085] In actual applications, when the front-end user issues a configuration instruction, the data management platform will respond. This response may be a prompt, a confirmation message, or the start of the configuration operation. Next, the data management platform will ask the front-end user to enter some configuration information. In this example, the configuration information includes the device identifier of at least one external network device and its corresponding external network address. The data management platform will send the configuration information provided by the front-end user to at least two candidate servers. This process may be completed through network transmission. Finally, at least two candidate servers will receive the configuration information and store it. In this way, when data needs to be transmitted with the external network device, this information can be used for address conversion.
[0086] In a specific embodiment of the present invention, a private network is provided, in which there is a front-end server and two candidate servers A and B. The front-end server is responsible for interacting with the user, while the candidate servers are responsible for processing data transmission requests. The user clicks the "Add New Device" button on the front-end server to issue a configuration instruction to the data management platform. After receiving the instruction, the data management platform displays a confirmation message: "You are preparing to add a new external network device, please enter the relevant information." The user fills in the device identifier (for example, IP address 192.168.1.100) and its corresponding external network address (for example, 203.0.113.100) in the pop-up window, and then clicks the "Save" button. After receiving the information submitted by the user, the front-end server packages the information into a data packet and sends it to the candidate servers A and B through the network. After receiving the data packet, the candidate servers A and B parse the content and find that it is new device configuration information. Therefore, they respectively store the device identifier 192.168.1.100 and the external network address 203.0.113.100 in their own databases.
[0087] Based on this, users do not need to have professional NAT knowledge and skills. The effect of convenient operation is that users can more easily perform network configuration and data transmission without in-depth understanding of the complex network address translation (NAT) mechanism. By simplifying the operation steps and providing an intuitive configuration interface, users can quickly set up and manage network connections, reduce operational difficulty, reduce errors, and improve efficiency.
[0088] Furthermore, after sending the configuration information to at least two candidate servers so that the at least two candidate servers store the corresponding relationship, it also includes: in response to an update instruction from the front-end user, obtaining update configuration information input by the front-end user, wherein the configuration information includes update operation information for at least one target corresponding relationship; sending the update operation information to at least two candidate servers so that the at least two candidate servers update at least one target corresponding relationship according to the update operation information.
[0089] Update instructions refer to commands issued by front-end users to modify existing configurations. Update configuration information refers to changes to some parameters or settings on the data management platform, such as the relationship between devices. Update operation information refers to specific operations on a configuration item, such as adding, deleting, modifying, etc. The target correspondence refers to the relationship between the device identifier that needs to be updated and its corresponding external network address.
[0090] In actual applications, when the front-end user issues an update instruction, the data management platform will respond. This response may be a prompt, a confirmation message, or the start of the update operation. Next, the data management platform will ask the front-end user to enter some update configuration information. In this example, the update configuration information includes update operation information for at least one target correspondence. The data management platform will send the update operation information provided by the front-end user to at least two candidate servers. This process may be completed through network transmission. Finally, at least two candidate servers will receive the update operation information and update at least one target correspondence according to this information. For example, if the update operation information is "delete the device identifier 192.168.1.100 and its corresponding external network address 203.0.113.100", then the candidate server will remove this record from the database.
[0091] In a specific embodiment of the present invention, a private network is provided, in which there is a front-end server and two candidate servers A and B. The front-end server is responsible for interacting with the user, while the candidate servers are responsible for processing data transmission requests. The user clicks the "Edit Device List" button on the front-end server to issue an update instruction to the data management platform. After receiving the instruction, the data management platform displays a confirmation message: "You are preparing to edit the device list, please enter the relevant information." The user selects the device identifier to be deleted (for example, 192.168.1.100) in the pop-up window, and then clicks the "Delete" button. After receiving the information submitted by the user, the front-end server packages the information into a data packet and sends it to the candidate servers A and B through the network. After receiving the data packet, the candidate servers A and B parse the content and find that it is update operation information. Therefore, they each find the record of the device identifier 192.168.1.100 and its corresponding external network address 203.0.113.100 from their own databases and delete it.
[0092] Based on this, after sending the configuration information to multiple candidate servers, the configuration information is updated in response to the user's update instructions, so that the target correspondence is updated synchronously on multiple servers, which can improve the flexibility and consistency of the data management platform. Users can easily add, delete, modify and query the target correspondence without having to manually adjust the server settings one by one, thereby simplifying the management process, reducing errors and improving the accuracy and real-time nature of the data.
[0093] Furthermore, after sending the configuration information to at least two candidate servers so that the at least two candidate servers store the corresponding relationship, it also includes: obtaining the current operation information of the front-end user at every preset time period, wherein the current operation information includes the current configuration information or the current update operation information; verifying whether the corresponding relationship between at least two candidate servers matches the current operation information, and determining the candidate server whose corresponding relationship does not match the current operation information as a faulty server; rolling back the fault correspondence of the faulty server based on the current operation information, and generating a fault detection report and sending it to the front-end user.
[0094] Current operation information refers to the user's most recent operation, such as the latest configuration change or update operation. This can be operations such as adding, modifying, or deleting devices. The preset period is the time interval for the data management platform to regularly check, such as every 5 minutes, every hour, etc.
[0095] In actual applications, the data management platform periodically (for example, every 5 minutes) checks the latest operation information of the front-end users. The data management platform obtains the corresponding relationship stored from each candidate server. If the data of a server does not match the current operation information, it is considered that the server has failed. The data management platform restores the correct correspondence to the failed server from the backup or other reliable source. Create a report detailing which server failed, the nature of the failure, and the corrective measures taken. Send the report to the front-end users so that they can understand the situation.
[0096] In a specific embodiment of the present invention, there are two candidate servers (ServerA and ServerB), both of which are responsible for processing requests from front-end users and storing configuration information. At a certain moment, the front-end user performs an update operation, such as changing the configuration parameters of a service. The data management platform automatically checks the latest operation information of the front-end user every 5 minutes. Assume that in the current cycle, the user updates the configuration parameters of a service. The data management platform obtains the service configuration information stored by each of ServerA and ServerB. The data management platform compares the configuration information on the two servers with the latest operation information of the front-end user. Assume that the service configuration information on ServerA is consistent with the latest operation information of the front-end user, while the service configuration information on ServerB has not been updated, and therefore does not match the latest operation information. Therefore, the data management platform believes that ServerB has a fault. The data management platform restores the correct configuration information from the main server or other reliable source (such as a backup) to ServerB. The data management platform creates a report that records in detail the fault that occurred in ServerB, the specific nature of the fault (i.e., the configuration information was not updated), and the corrective measures that have been taken (i.e., restoring the correct configuration information from the main server). Send this report to front-end users to let them know the fault situation and the solutions that have been taken by the data management platform.
[0097] Based on this, after sending the configuration information to multiple candidate servers, the correspondence between the current operation information and the server is obtained and verified at preset intervals, so that server failures can be detected and handled in a timely manner. By identifying unmatched candidate servers as faulty servers and performing rollback processing, the consistency and reliability of the data management platform data can be ensured. The generated fault detection report provides detailed fault information, helping front-end users understand and solve problems, and improving the stability of the data management platform and the user's operating experience.
[0098] Furthermore, the fault correspondence of the faulty server is rolled back based on the latest operation information, including: obtaining the update log of the faulty server, extracting the target rollback information in the update log based on the preset rollback rules; sending the target rollback information to the faulty server, so that the faulty server updates the fault correspondence according to the target rollback information.
[0099] A faulty server refers to a server that does not match the latest operation information, that is, the server fails to correctly reflect the latest operation status of the front-end user. The fault correspondence refers to the correspondence between the internal status of the server and the front-end user operation. When the server fails to correctly update these correspondences, a fault occurs. The update log is a log file maintained by the server, which records all changes to the server status. The preset rollback rules are a set of logical rules pre-set by the data management platform to determine how to extract the information that needs to be rolled back from the update log. The target rollback information is the specific information extracted from the update log that needs to be rolled back to the faulty server.
[0100] In actual applications, after the data management platform detects a faulty server, it first obtains the update log of the server, which records all the changes in the server status. The data management platform uses preset rollback rules to analyze the update log. These rules help the data management platform determine which changes need to be undone so that the status of the faulty server is consistent with the latest operation information. The data management platform extracts the specific change information that needs to be rolled back as the target rollback information. The data management platform sends the extracted target rollback information to the faulty server. After receiving the target rollback information, the faulty server performs the corresponding rollback operation to revoke the changes that cause the status inconsistency. In this way, the status on the faulty server is updated to match the latest operation information.
[0101] In a specific embodiment of the present invention, following the above example, the data management platform automatically checks the latest operation information of the front-end user every 5 minutes. Assume that in the current cycle, the user updates the configuration parameters of a service. The data management platform obtains the service configuration information stored in ServerA and ServerB. The data management platform compares the configuration information on the two servers with the latest operation information of the front-end user. Assume that the service configuration information on ServerA is consistent with the latest operation information of the front-end user, while the service configuration information on ServerB has not been updated, so it does not match the latest operation information. Therefore, the data management platform believes that ServerB has a fault. After the data management platform detects that ServerB is a faulty server, it obtains the update log of ServerB. The data management platform uses preset rollback rules to analyze the update log of ServerB. These rules help the data management platform determine which changes need to be undone so that the status of ServerB is consistent with the latest operation information. The data management platform extracts the specific change information that needs to be rolled back as the target rollback information. The data management platform sends the extracted target rollback information to ServerB. After receiving the target rollback information, ServerB performs the corresponding rollback operation to undone those changes that cause inconsistent status. In this way, the state on ServerB is updated to match the latest operation information.
[0102] Based on this, the failed server is rolled back based on the latest operation information. By obtaining the update log and extracting the target rollback information, the data inconsistency caused by the failure can be effectively repaired. After the rollback information is sent to the failed server, it is quickly restored to the correct state to ensure the stability and accuracy of the data management platform. This automated processing method reduces manual intervention, improves the efficiency of fault recovery, reduces the downtime of the data management platform, and helps improve user experience and business continuity.
[0103] Applied to this data transmission method, data can directly depart from the target server to the external network device without the need for offline IDC transit, which significantly improves the flexibility and efficiency of data transmission. By implementing a specific data processing process on the server, the server deployed in the private network can directly interact with the external network device outside the private network, and is no longer restricted by the offline IDC. When a request to send data to an external network device is received, the data management platform will determine the target server from at least two candidate servers, and then send the data transmission request to the target server. The target server uses the pre-configured address conversion logic to convert the intranet address in the data transmission request to an external network address and execute the data transmission task. In this way, data can depart directly from the server and reach the external network device after a simple address conversion, without the need for offline IDC transit, which significantly improves the flexibility and efficiency of data transmission, while reducing maintenance costs and troubleshooting time.
[0104] See also Figure 3 , Figure 3 It is a flowchart of another data transmission method provided by an embodiment of the present invention, which specifically includes the following steps.
[0105] Step 302: Receive an initial data transmission request for an external network device sent by a data management platform, wherein the initial data transmission request carries an intranet address of a private network and a target device identifier of the external network device.
[0106] It is understandable that step 302 is a part of the target server execution logic in step 206, which will not be described in detail here.
[0107] Step 304: According to the address conversion logic, based on the target device identifier, the internal network address in the initial data transmission request is converted into an external network address.
[0108] It is understandable that step 304 is a part of the target server execution logic in step 206, which will not be described in detail here.
[0109] Furthermore, the target server stores a correspondence between a device identifier of at least one external network device and an external network address of at least one external network device; according to the address conversion logic, the internal network address in the initial data transmission request is converted into an external network address based on the target device identifier, including: according to the correspondence, querying the external network address corresponding to the target device identifier; converting the internal network address in the initial data transmission request into an external network address; and performing data transmission with the external network device based on the updated data transmission request after the address conversion.
[0110] In actual applications, the target server stores the correspondence between the device identification of at least one external network device and the external network address of at least one external network device. When receiving a data transmission request, the target server first searches for the external network address corresponding to the device identification in the target server according to the target device identification in the request. The target server uses the address conversion logic to replace the intranet address in the initial data transmission request with the queried external network address. The target server uses the updated data transmission request (in which the intranet address has been replaced with the external network address) to perform data transmission with the specified external network device.
[0111] Based on this, the server stores the correspondence between the device ID and the external network address, and converts the internal network address to the external network address according to the address conversion logic, so that data transmission between the internal network device and the external network device can be realized. After querying the external network address corresponding to the target device ID, the internal network address is converted to the external network address, and data exchange is performed based on the updated data transmission request, which ensures smooth and accurate data communication between the internal and external network devices, and improves the flexibility and effectiveness of network data transmission.
[0112] Furthermore, the intranet address includes a first source address and a first target address, the first source address is the address of the target server, and the first target address is the address of the private network; converting the intranet address in the initial data transmission request into an external network address includes: replacing the first source address with the address of the private network to obtain a second source address; replacing the first target address with the external network address.
[0113] In actual applications, the initial data transmission request contains an intranet address, which includes a first source address (the address of the target server) and a first target address (the address of the private network). The target server replaces the first source address (i.e., the address of the target server) in the initial data transmission request with the address of the private network to obtain a new source address (the second source address). The target server replaces the first target address (i.e., the address of the private network) in the initial data transmission request with an external network address.
[0114] In a specific embodiment of the present invention, the first source address included in the initial data transmission request is 10.0.0.5 (the address of the target server). The first target address included in the initial data transmission request is 10.0.0.10 (the address of the private network). The first source address 10.0.0.5 is replaced with the address 10.0.0.10 of the private network to obtain the second source address 10.0.0.10. The external network address queried is 192.168.1.100. The first target address 10.0.0.10 is replaced with the external network address 192.168.1.100.
[0115] Based on this, by converting the intranet address in the initial data transmission request into an external network address, including replacing the first source address with the private network address, obtaining the second source address, and replacing the first target address with the external network address, direct communication with external network devices in a private network environment is achieved. This conversion method avoids the complexity and cost of going through offline IDCs, simplifies the network architecture, improves the efficiency and flexibility of data transmission, and helps to achieve more efficient and economical data exchange.
[0116] Step 306: Perform data transmission with the external network device based on the updated data transmission request after address conversion.
[0117] It is understandable that step 306 is a part of the target server execution logic in step 206, which will not be described in detail here.
[0118] Applied to this data transmission method, data can directly depart from the target server to the external network device without the need for offline IDC transit, which significantly improves the flexibility and efficiency of data transmission. By implementing a specific data processing process on the server, the server deployed in the private network can directly interact with the external network device outside the private network, and is no longer restricted by the offline IDC. When a request to send data to an external network device is received, the data management platform will determine the target server from at least two candidate servers, and then send the data transmission request to the target server. The target server uses the pre-configured address conversion logic to convert the intranet address in the data transmission request to an external network address and execute the data transmission task. In this way, data can depart directly from the server and reach the external network device after a simple address conversion, without the need for offline IDC transit, which significantly improves the flexibility and efficiency of data transmission, while reducing maintenance costs and troubleshooting time.
[0119] The following combination Figure 4 , taking the application of the data transmission method provided by the present invention in the flow transmission between the enterprise private network and the regulatory agency as an example, the data transmission method is further explained. Figure 4 It is a processing flow chart of a data transmission method provided by an embodiment of the present invention, which specifically includes the following steps.
[0120] Step 402: The user enters the regulatory agency and the corresponding address transformation rules in the configuration management workbench.
[0121] For details, see Figure 5 As shown, Figure 5It is a schematic diagram of the operation interface of a configuration management workbench provided by an embodiment of the present invention. The schematic diagram of the operation interface includes a top navigation bar for displaying the name of the workbench and related menu options, so that users can switch the functions of different modules conveniently; the left sidebar lists the classification directory of various configuration items (management, rollback, inspection), and users can view and edit the corresponding settings by clicking the sub-items under the directory; the display area: displays the specific information and parameter settings of the currently selected "management" configuration item, including: the server ID is server 1, server 2, and server 3, the monitoring task name is supervision-regulatory agency 1 (representing communication with an external regulatory network, and the ID of the regulatory agency is regulatory agency 1), classic-business agency 1 (representing communication with a business agency of the classic network, and the ID of the business agency is business agency 1), classic-business agency 2 (representing communication with a business agency of the classic network, and the ID of the business agency is business agency 1), the protocol is TCP, and the port numbers are 213, 456, and 789, respectively, as well as "modify" and "delete" user configuration items, and users can click the "modify" and "delete" controls to modify or delete the configuration rules. The operator interface is designed to provide an intuitive and easy-to-understand user experience, allowing users to easily manage and configure communication rules with regulators.
[0122] Step 404: Bind the ECS in the classic network to the VPC through class link.
[0123] It can be understood that ECS is the aforementioned server, vpc is the aforementioned private network, and classic network is the aforementioned internal network, which will not be elaborated here.
[0124] Step 406: The configuration management workbench detects the traffic transmission task with the regulatory agency, selects the target ECS through load balancing in the vpc, and forwards the traffic transmission request to the target ECS.
[0125] It can be understood that the configuration management workbench is the aforementioned data management platform, the regulatory agency is the aforementioned external network device, the traffic transmission request is the aforementioned data transmission request, and the target ECS is the target cloud server, which will not be repeated here.
[0126] Step 408: The target ECS performs address conversion on the traffic data through DNAT and SNAT of the LVS, and transmits the traffic to the regulatory agency.
[0127] Specifically, refer to Figure 6 As shown, Figure 6It is a schematic diagram of a process of communication between a proprietary network and a regulatory agency provided by an embodiment of the present invention. In the related scheme, in order to realize the communication between the classic network and the regulatory agency, the classic network first constructs a flow transmission request with a source address of 10.253.1.1 (classic network address) and a target address of 10.153.133.168 (the sending port address of the offline IDC) to send the flow to the offline IDC; the offline IDC constructs a flow transmission request with a source address of 10.253.1.2 (the receiving port address of the offline IDC) and a target address of 88.88.1.1 (the address of the regulatory agency) through DNAT, and sends the flow to the regulatory IDC; the regulatory IDC constructs a flow transmission request with a source address of 88.253.1.1 (the camouflaged address of the classic network) and a target address of 88.88.1.1 (the address of the regulatory agency) through SNAT, and sends the flow to the regulatory agency. In this solution, in order to bypass the offline IDC to achieve communication between the classic network and the regulatory agency, the classic network first constructs a traffic transmission request with a source address of 10.253.1.1 (classic network address) and a destination address of 192.168.1.1 (vpc address), and sends the traffic to the target ECS in the vpc; the target ECS in the vpc constructs a traffic transmission request with a source address of 192.168.1.1 and a destination address of 88.88.1.1 (the address of the regulatory agency) through DNAT, and sends the traffic to the regulatory IDC; the regulatory IDC constructs a traffic transmission request with a source address of 88.253.1.1 (the masquerading address of the classic network) and a destination address of 88.88.1.1 (the address of the regulatory agency) through SNAT, and sends the traffic to the regulatory agency.
[0128] Step 410: The configuration management workbench periodically inspects all rules and performs a rollback operation when an ECS configuration rule failure is detected.
[0129] Corresponding to the above method embodiment, the present invention also provides a data transmission device embodiment, Figure 7 FIG. 1 is a schematic diagram of a data transmission device provided by an embodiment of the present invention. Figure 7 As shown, the device is applied to a data management platform and includes:
[0130] The first receiving module 702 is configured to receive an initial data transmission request for an external network device, wherein the initial data transmission request carries an internal network address of the private network and a target device identifier of the external network device;
[0131] The determination module 704 is configured to determine a target server from at least two candidate servers, wherein the at least two candidate servers are deployed in a private network and the at least two candidate servers are configured with address translation logic;
[0132] The sending module 706 is configured to send the initial data transmission request to the target server, so that the target server converts the intranet address in the initial data transmission request into an external network address based on the target device identifier according to the address conversion logic, and performs data transmission with the external network device based on the updated data transmission request after the address conversion.
[0133] Optionally, the determination module 704 is further configured to obtain load information of at least two candidate cloud servers; and determine a target cloud server from the at least two candidate cloud servers based on a preset determination rule and the load information.
[0134] Optionally, the data transmission device also includes a configuration module, which is configured to respond to the configuration instructions of the front-end user, obtain configuration information input by the front-end user, wherein the configuration information includes the correspondence between the device identification of at least one external network device and the external network address of at least one external network device; and send the configuration information to at least two candidate servers so that the at least two candidate servers store the correspondence.
[0135] Optionally, the configuration module is further configured to respond to an update instruction from the front-end user, obtain update configuration information input by the front-end user, wherein the configuration information includes update operation information for at least one target correspondence relationship; and send the update operation information to at least two candidate servers so that the at least two candidate servers update at least one target correspondence relationship according to the update operation information.
[0136] Optionally, the configuration module is further configured to obtain current operation information of the front-end user at preset time intervals, wherein the current operation information includes current configuration information or current update operation information; verify whether the correspondence between at least two candidate servers matches the current operation information, and determine the candidate server whose correspondence does not match the current operation information as a faulty server; roll back the fault correspondence of the faulty server based on the current operation information, and generate a fault detection report and send it to the front-end user.
[0137] Optionally, the configuration module is further configured to obtain the update log of the faulty server, extract target rollback information in the update log based on preset rollback rules; and send the target rollback information to the faulty server so that the faulty server updates the fault correspondence according to the target rollback information.
[0138] The device realizes data directly reaching the external network device from the target server through precise module configuration, without offline IDC transfer, thereby improving the flexibility and efficiency of data transmission. First, the first receiving module 702 receives an initial data transmission request with an intranet address and an external network device target device identifier. Then, the determination module 704 selects a target server from at least two candidate servers, which are all deployed in a proprietary network and have address conversion logic. Next, the sending module 706 sends the initial data transmission request to the selected target server. The target server uses its configured address conversion logic to convert the intranet address into an external network address, and performs data transmission with the external network device based on the converted update request. Through this mechanism, data can be directly transmitted from the target server to the external network device after a simple address conversion, avoiding the transfer process of the traditional IDC, thereby improving transmission efficiency and reducing maintenance costs and troubleshooting time.
[0139] The above is a schematic scheme of a data transmission device applied to a data management platform of this embodiment. It should be noted that the technical scheme of the data transmission device applied to the data management platform and the technical scheme of the data transmission method applied to the data management platform belong to the same concept, and the details of the technical scheme of the data transmission device applied to the data management platform that are not described in detail can all be referred to the description of the technical scheme of the data transmission method applied to the data management platform.
[0140] Corresponding to the above method embodiment, the present invention also provides a data transmission device embodiment, Figure 8 FIG. 1 is a schematic diagram of the structure of another data transmission device provided by an embodiment of the present invention. Figure 8 As shown, applied to a target server, the device comprises:
[0141] The second receiving module 802 is configured to receive an initial data transmission request for an external network device sent by the data management platform, wherein the initial data transmission request carries an internal network address of the private network and a target device identifier of the external network device;
[0142] The conversion module 804 is configured to convert the internal network address in the initial data transmission request into an external network address based on the target device identifier according to the address conversion logic;
[0143] The transmission module 806 is configured to perform data transmission with the external network device based on the updated data transmission request after address conversion.
[0144] Optionally, the target server stores a correspondence between a device identifier of at least one external network device and an external network address of at least one external network device; accordingly, the conversion module 804 is further configured to query the external network address corresponding to the target device identifier according to the correspondence; convert the intranet address in the initial data transmission request into an external network address; and perform data transmission with the external network device based on the updated data transmission request after the address conversion.
[0145] Optionally, the intranet address includes a first source address and a first target address, the first source address is the address of the target server, and the first target address is the address of the private network; accordingly, the conversion module 804 is further configured to replace the first source address with the address of the private network to obtain a second source address; and replace the first target address with the external network address.
[0146] The above is a schematic scheme of a data transmission device applied to a target server of this embodiment. It should be noted that the technical scheme of the data transmission device applied to the target server and the technical scheme of the data transmission method applied to the target server belong to the same concept, and the details of the technical scheme of the data transmission device applied to the target server that are not described in detail can all be referred to the description of the technical scheme of the data transmission method applied to the target server.
[0147] Fig. 9 The block diagram of a computing device 900 provided according to an embodiment of the present invention is shown. The components of the computing device 900 include but are not limited to a memory 910 and a processor 920. The processor 920 is connected to the memory 910 via a bus 930, and a database 950 is used to store data.
[0148] The computing device 900 also includes an access device 940 that enables the computing device 900 to communicate via one or more networks 960. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 940 may include one or more of any type of network interface, wired or wireless (e.g., a network interface card (NIC)), such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, and a Near Field Communication (NFC).
[0149] In one embodiment of the present invention, the above components of the computing device 900 and Fig. 9 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig. 9 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of the present invention. Those skilled in the art may add or replace other components as needed.
[0150] The computing device 900 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 900 may also be a mobile or stationary server.
[0151] The processor 920 is used to execute the following computer program / instruction, which implements the steps of the above-mentioned data transmission method when executed by the processor.
[0152] The various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computing device embodiment, since it is basically similar to the data transmission method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the data transmission method embodiment.
[0153] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program / instruction, which implements the steps of the above-mentioned data transmission method when executed by a processor.
[0154] Each embodiment of the present invention is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computer-readable storage medium embodiment, since it is basically similar to the data transmission method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the data transmission method embodiment.
[0155] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above data transmission method when executed by a processor.
[0156] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the above data transmission method belong to the same concept, and the details not described in detail in the technical scheme of the computer program product can be referred to the description of the technical scheme of the above data transmission method.
[0157] The above describes specific embodiments of the present invention. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0158] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0159] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the described action sequence, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of the present invention.
[0160] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0161] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of the present invention. The present invention selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A data transmission method, characterized in that: Applied to data management platforms, including: Receiving an initial data transmission request for an external network device, wherein the initial data transmission request carries an internal network address of a private network and a target device identifier of the external network device; Determine a target server from at least two candidate servers, wherein the at least two candidate servers are deployed in the private network and the at least two candidate servers are configured with address translation logic; The initial data transmission request is sent to the target server, so that the target server converts the intranet address in the initial data transmission request into an extranet address based on the target device identifier according to the address conversion logic, and performs data transmission with the extranet device based on the updated data transmission request after the address conversion.
2. The method according to claim 1, characterized in that The step of determining a target server from at least two candidate servers comprises: Obtain load information of at least two candidate cloud servers; A target cloud server is determined among the at least two candidate cloud servers based on a preset determination rule and the load information.
3. The method according to claim 1, characterized in that: Before receiving the initial data transmission request for the external network device, the method further includes: In response to a configuration instruction of a front-end user, obtaining configuration information input by the front-end user, wherein the configuration information includes a correspondence between a device identification of at least one external network device and an external network address of at least one external network device; The configuration information is sent to the at least two candidate servers, so that the at least two candidate servers store the corresponding relationship.
4. The method according to claim 3, characterized in that After sending the configuration information to the at least two candidate servers so that the at least two candidate servers store the corresponding relationship, the method further includes: In response to an update instruction from a front-end user, acquiring update configuration information input by the front-end user, wherein the configuration information includes update operation information for at least one target correspondence relationship; The update operation information is sent to the at least two candidate servers, so that the at least two candidate servers update the at least one target correspondence relationship according to the update operation information.
5. The method according to claim 3, characterized in that: After sending the configuration information to the at least two candidate servers so that the at least two candidate servers store the corresponding relationship, the method further includes: At every preset time period, obtaining the current operation information of the front-end user, wherein the current operation information includes current configuration information or current update operation information; Verifying whether the correspondence between the at least two candidate servers matches the current operation information, and determining a candidate server whose correspondence does not match the current operation information as a faulty server; The fault correspondence of the faulty server is rolled back based on the current operation information, and a fault detection report is generated and sent to the front-end user.
6. The method according to claim 5, characterized in that The rolling back the fault correspondence relationship of the faulty server based on the latest operation information includes: Obtaining an update log of the failed server, and extracting target rollback information in the update log based on a preset rollback rule; The target rollback information is sent to the faulty server, so that the faulty server updates the fault corresponding relationship according to the target rollback information.
7. A data transmission method, characterized in that: Applied to the target server, including: Receiving an initial data transmission request for an external network device sent by a data management platform, wherein the initial data transmission request carries an intranet address of a proprietary network and a target device identifier of the external network device; According to the address conversion logic, based on the target device identifier, the intranet address in the initial data transmission request is converted into an extranet address; Data is transmitted with the external network device based on the updated data transmission request after address conversion.
8. The method according to claim 7, characterized in that The target server stores a correspondence between a device identification of at least one external network device and an external network address of at least one external network device; The converting the intranet address in the initial data transmission request into an extranet address based on the target device identifier according to the address conversion logic includes: According to the corresponding relationship, query the external network address corresponding to the target device identifier; Converting the intranet address in the initial data transmission request to the extranet address; Data is transmitted with the external network device based on the updated data transmission request after address conversion.
9. The method according to claim 8, characterized in that The intranet address includes a first source address and a first target address, the first source address is the address of the target server, and the first target address is the address of the private network; the converting the intranet address in the initial data transmission request to the external network address includes: Replacing the first source address with the address of the private network to obtain a second source address; The first target address is replaced with the external network address.
10. A data transmission system, characterized in that: Includes a data management platform, at least two candidate servers and external network equipment; The data management platform is configured to receive an initial data transmission request for the external network device, wherein the initial data transmission request carries the internal network address of the private network and the target device identifier of the external network device; determine a target server from the at least two candidate servers, wherein the at least two candidate servers are deployed in the private network and the at least two candidate servers are configured with address conversion logic; and send the initial data transmission request to the target server; The target server is used to receive the initial data transmission request; convert the intranet address in the initial data transmission request into an external network address based on the target device identifier according to the address conversion logic; and perform data transmission with the external network device based on the updated data transmission request after address conversion.
11. A computing device, characterized in that: include: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the data transmission method according to any one of claims 1 to 6 or claims 7 to 9 are implemented.
12. A computer-readable storage medium, characterized in that: It stores a computer program / instruction, which, when executed by a processor, implements the steps of the data transmission method described in any one of claims 1-6 or claims 7-9.
13. A computer program product, characterized in that It includes a computer program / instruction, which, when executed by a processor, implements the steps of the data transmission method described in any one of claims 1-6 or claims 7-9.
Citation Information
Cited By
Field operation robot and intranet platform data synchronization method and system
CN120455475A
