Data accurate transmission method and device based on multi-network port equipment and computer equipment
By utilizing cross-network routing tables and network port identifier mapping relationships in multi-port devices, combined with connection priority and communication status, the optimal transmission path is selected, solving the problem of inaccurate data transmission in multi-port devices and achieving more efficient data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN OURUIBO ELECTRONICS
- Filing Date
- 2022-11-29
- Publication Date
- 2026-04-14
AI Technical Summary
In multi-port devices, business data processed across networks may be inaccurate due to the unique default gateway, making it impossible to accurately select the transmission path.
By obtaining the IP address and subnet mask of the target service data, the target network interface identifier is determined using the mapping relationship in the cross-network routing table, and the best transmission path is selected based on the connection priority and communication status of the network interface.
Ensuring accurate transmission of business data across multi-port devices improves the reliability and accuracy of data transmission, preventing data loss and transmission errors.
Smart Images

Figure CN116016338B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network communication technology, and in particular to a method, apparatus, computer equipment, and storage medium for accurate data transmission based on multi-port devices. Background Technology
[0002] With the development of Internet technology, in modern communication equipment, it is difficult to meet the system requirements for control and communication if a single device is only equipped with a network communication interface. Therefore, in practical applications, such as smartphones and tablets used by individual consumers, smart device terminals used in industry fields, and various smart home devices, robots and other Internet of Things devices, they usually have one or more network communication interfaces. These network communication interfaces are usually based on the Internet Protocol (IP) to send or receive business data.
[0003] Currently, since the default gateway is usually unique, when multiple network communication interfaces are configured with the same default gateway, the default priority of each interface can be determined based on its IP address. Therefore, when there are services that require cross-network processing—meaning that the service data needs to be forwarded via a gateway—the data might only be forwarded to the network communication interface with the highest default priority, potentially resulting in inaccurate data transmission. Therefore, improving the accuracy of service data transmission is a pressing issue that needs to be addressed. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, and storage medium for accurate data transmission based on multi-port devices, which can improve the accuracy of business data transmission and address the aforementioned technical problems.
[0005] Firstly, this application provides a method for precise data transmission based on a multi-port device. The method includes:
[0006] Acquire target business data, which includes the target Internet Protocol (IP) address and the target subnet mask (NETMASK).
[0007] Based on the target IP address and target NETMASK of the target business data, determine the first address of the first network server;
[0008] Based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, the target network port identifier corresponding to the first address is determined.
[0009] The target service data is transmitted to the first network server through the target network port, which is uniquely identified by the target network port identifier.
[0010] In one embodiment, the step of determining the target network interface identifier corresponding to the first address based on the first address of the first network server and the mapping relationship between network interface identifiers and server addresses in the cross-network routing table specifically includes:
[0011] Based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, determine two or more network port identifiers corresponding to the first address.
[0012] Based on the connection priority of the two or more network port identifiers corresponding to the first address, the target network port identifier is determined from the two or more network port identifiers.
[0013] In one embodiment, the step of determining the target network interface identifier from the two or more network interface identifiers corresponding to the first address specifically includes:
[0014] The network interface identifier with the highest connection priority among two or more network interface identifiers is determined as the target network interface identifier;
[0015] Among them, the connection priority is related to the network port information corresponding to the network port that is uniquely indicated by the network port identifier. The network port information includes at least: network port stability, network port transmission rate, and network attributes to which the network port is connected.
[0016] In one embodiment, the step of determining the target network interface identifier corresponding to the first address based on the first address of the first network server and the mapping relationship between network interface identifiers and server addresses in the cross-network routing table specifically includes:
[0017] Based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, determine two or more network port identifiers corresponding to the first address.
[0018] Based on the connection priority of the two or more network port identifiers corresponding to the first address, and the unique indication of the communication status of the network port by the two or more network port identifiers, the target network port identifier is determined from the two or more network port identifiers.
[0019] In one embodiment, the step of determining the target network interface identifier from the two or more network interface identifiers based on the connection priority of each of the two or more network interface identifiers corresponding to the first address and the unique indication of the communication status of each of the two or more network interface identifiers includes:
[0020] The network port identifier corresponding to the network port whose communication status is normal is determined as the first network port identifier to be selected.
[0021] The first candidate network port with the highest connection priority among all candidate network port identifiers is determined as the target network port identifier.
[0022] In one embodiment, the method further includes:
[0023] If it is determined that the target network port has a communication failure based on the communication status of the target network port, the network port identifier corresponding to the network port with a normal communication status is determined as the second candidate network port identifier.
[0024] The second candidate network port identifier with the highest connection priority among all the second candidate network port identifiers is determined as the switching network port identifier corresponding to the first address;
[0025] By switching the target network interface, which is uniquely identified by the network interface identifier, the target service data is transmitted to the first network server.
[0026] Secondly, this application also provides a data precision transmission device based on a multi-port network device. The device includes:
[0027] The data acquisition module is used to acquire target business data, which includes the target Internet Protocol (IP) address and the target subnet mask (NETMASK).
[0028] The address determination module is used to determine the first address of the first network server based on the target IP address and target NETMASK of the target business data.
[0029] The identifier determination module is used to determine the target network interface identifier corresponding to the first address based on the first address of the first network server and the mapping relationship between the network interface identifier and the server address in the cross-network routing table.
[0030] The data transmission module is used to calculate the target service data to be transmitted to the first network server through the target network port that is uniquely indicated by the target network port identifier.
[0031] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0032] Acquire target business data, which includes the target Internet Protocol (IP) address and the target subnet mask (NETMASK).
[0033] Based on the target IP address and target NETMASK of the target business data, determine the first address of the first network server;
[0034] Based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, the target network port identifier corresponding to the first address is determined.
[0035] The target service data is transmitted to the first network server through the target network port, which is uniquely identified by the target network port identifier.
[0036] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0037] Acquire target business data, which includes the target Internet Protocol (IP) address and the target subnet mask (NETMASK).
[0038] Based on the target IP address and target NETMASK of the target business data, determine the first address of the first network server;
[0039] Based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, the target network port identifier corresponding to the first address is determined.
[0040] The target service data is transmitted to the first network server through the target network port, which is uniquely identified by the target network port identifier.
[0041] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0042] Acquire target business data, which includes the target Internet Protocol (IP) address and the target subnet mask (NETMASK).
[0043] Based on the target IP address and target NETMASK of the target business data, determine the first address of the first network server;
[0044] Based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, the target network port identifier corresponding to the first address is determined.
[0045] The target service data is transmitted to the first network server through the target network port, which is uniquely identified by the target network port identifier.
[0046] The aforementioned method, apparatus, computer equipment, storage medium, and computer program product for precise data transmission based on multi-port devices first acquires target service data, including a target Internet Protocol (IP) address and a target subnet mask (NETMASK). Then, based on the target IP address and NETMASK, the first address of a first network server is determined. Furthermore, based on the first network server's first address and the mapping relationship between network port identifiers and server addresses in the cross-network routing table, the target network port identifier corresponding to the first address is determined. Finally, the target service data is transmitted to the first network server through the target network port uniquely indicated by the target network port identifier. When processing services across networks, because the cross-network routing table includes the mapping relationship between network port identifiers and server addresses, the specific transmission path of the target service data can be determined based on the information included in the target service data and the aforementioned mapping relationship. This avoids situations where service data is not accurately forwarded and transmitted, thereby improving the accuracy of service data transmission. Attached Figure Description
[0047] Figure 1 This is an application environment diagram of a method for precise data transmission based on multi-port devices in one embodiment;
[0048] Figure 2 This is a flowchart illustrating a method for precise data transmission based on multi-port devices in one embodiment;
[0049] Figure 3 This is a flowchart illustrating the process of determining the target network interface identifier corresponding to the first address in one embodiment;
[0050] Figure 4 This is a partial flowchart illustrating the process of determining the target network interface identifier based on priority in one embodiment;
[0051] Figure 5 This is a partial flowchart illustrating the process of determining the target network port identifier based on priority in another embodiment;
[0052] Figure 6 This is a partial flowchart illustrating the process of determining the target network interface identifier based on priority and communication status in one embodiment.
[0053] Figure 7 This is a flowchart illustrating a method for precise data transmission based on multi-port devices in another embodiment;
[0054] Figure 8 This is a schematic diagram of the overall process of a method for precise data transmission based on multi-port devices in one embodiment;
[0055] Figure 9 This is a structural block diagram of a data precision transmission device based on a multi-port network device in one embodiment;
[0056] Figure 10 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0057] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0058] The data transmission method based on multi-port devices provided in this application can be applied to, for example... Figure 1 In the application environment shown, the multi-port device 102 communicates with the cloud server 104 via a wired or wireless network. It also communicates with the switch device 106 via a wired network, and then with the LAN server 108 via the switch device 106. Alternatively, it can communicate with terminals 110 within the LAN server 108 via the switch device 106. The cloud server 104 and the LAN server 108 are securely isolated. The multi-port device 102 includes a first network port and a second network port. Thus, the multi-port device 102 communicates with the cloud server 104 via a wired network using the first network port and via a wireless network using the second network port. Furthermore, the data storage system can store the data that the cloud server 104 needs to process. The data storage system can be integrated into the cloud server 104 or placed on other network servers.
[0059] Specifically, the data transmission method based on multi-port devices provided in this application can be applied to community security scenarios. Multi-port device 102 communicates with switch device 106 via a wired network, and then communicates with local area network server 108 via switch device 106 to obtain data related to community security terminals corresponding to terminals 110 within the local area network in the local area network server 108. Examples include the Internet Protocol (IP) address of the access gate device at the community entrance, the IP addresses of the calling devices at the doorways of each resident's room, and the default security network deployment data between the access gate and each resident's room. Based on this, multi-port device 102 can transmit community security terminal-related data to cloud server 104 via wired or wireless network.
[0060] Secondly, if the data transmission method based on multi-port devices provided in this application is applied to a community property scenario, the multi-port device 102 obtains community property information within the range of the local area network server 108 in a similar manner as described above. The aforementioned community property information may include, but is not limited to, property management information and property call information. Then, the multi-port device 102 transmits the obtained community property information to the cloud server 104 through a wired network or wireless network, thereby enabling the cloud server 104 to obtain and process community property information such as property management information and property call information.
[0061] Furthermore, if the data precision transmission method based on multi-port devices provided in this application embodiment is applied to a community management scenario, the multi-port device 102 obtains localized community information within the range of the local area network server 108 through a similar method described above. The aforementioned localized community information may include, but is not limited to, weather information, traffic information, food delivery service information, housekeeping service information, and appliance repair information. Then, the multi-port device 102 transmits the obtained localized community information to the cloud server 104 through a wired network or wireless network, thereby enabling the cloud server 104 to obtain and process the aforementioned localized community information.
[0062] It should be understood that the embodiments of this application can also be applied to scenarios where local area network servers 108 are securely isolated from cloud server 104, such as managing factory equipment within the scope of local area network server 108, or managing internal company security information within the scope of local area network server 108. Therefore, the foregoing scenario examples are only for understanding this solution and should not be construed as limiting the application.
[0063] The multi-port device 102 can be one or more, and the local area network server 108 can also include one or more. Figure 1 In the scenario, there can be multiple multi-port devices 102 that communicate with switch devices 106 via wired network, and then communicate with local area network servers 108 via switch devices 106 to obtain information from terminals 110 within the range of each local area network server 108.
[0064] Secondly, terminal 110 can be, but is not limited to, various security devices, personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart central control switches, smart curtains, and smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Cloud server 104 can be implemented using a standalone server or a server cluster composed of multiple servers. Similarly, local area network server 108 can also be implemented using a standalone server or a server cluster composed of multiple servers.
[0065] In one embodiment, such as Figure 2 As shown, a method for precise data transmission based on multi-port devices is provided, which can be applied to... Figure 1 Taking the multi-port device 102 as an example, the explanation includes the following steps:
[0066] Step 202: Obtain target service data, which includes the target Internet Protocol (IP) address and the target subnet mask (NETMASK).
[0067] The target Internet Protocol (IP) address is the address of any service node in the network server at the destination of the target business data transmission. The IP address is specifically composed of a network identifier and a host identifier. The network identifier uniquely indicates the network server, and the host identifier uniquely indicates the specific service node within the network server. This service node can be a node that processes data from at least one terminal 110. Secondly, the subnet mask (NETMASK) specifically describes which identifiers of the IP address are used to indicate the subnet where the network server resides, and which identifiers are used to indicate the bitmask of the network server. In other words, the target NETMASK is specifically used to divide the target IP address into two parts: the network address and the host address.
[0068] Specifically, when processing services across networks, the multi-port device 102 acquires the target service data corresponding to the cross-network processing service. The target service data is the service data transmitted from the initial network to the destination network, and the target service data includes the target IP address and the target NETMASK.
[0069] For example, if the target business data comes from Figure 1 If the data is transmitted from the local area network server 108 to the cloud server 104, then the target service data will include the IP address and NETMASK of any service node in the cloud server 104. Secondly, if the target service data originates from... Figure 1 If the data is transmitted from cloud server 104 to local area network server 108, the target business data will include the IP address and NETMASK of any service node in local area network server 108.
[0070] Step 204: Determine the first address of the first network server based on the target IP address and target NETMASK of the target business data.
[0071] Wherein, the first network server is the destination network server for transmitting the target business data, and the first address is the address of any service node in the destination network server (i.e., the first network server).
[0072] Specifically, as can be seen from the foregoing embodiments, the target NETMASK is specifically used to divide the target IP address into two parts: a network address and a host address. Therefore, the multi-port device 102 divides the target IP address into two parts: a network address and a host address based on the target NETMASK, and then calculates the first network server and the first address in the first network server based on the network address and host address obtained by dividing the target IP.
[0073] For example, if the target IP address of the target business data is 192.168.3.10 and the target NETMASK is 255.255.255.0, then the IP address of the first network server can be calculated as 192.168.3.0, and the first address of the first network server is 255.255.255.0. Secondly, if the target IP address of the target business data is 192.168.4.11 and the target NETMASK is 255.255.255.0, then the IP address of the first network server can be calculated as 192.168.4.0, and the first address of the first network server is 255.255.255.0.
[0074] Step 206: Based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, determine the target network port identifier corresponding to the first address.
[0075] The cross-network routing table includes the mapping relationship between each network port identifier and the server address. For example, network port identifier 1 is mapped to server address 1, network port identifier 2 is mapped to server address 2, and network port identifier 3 is mapped to server address 3.
[0076] The aforementioned mapping relationship is configured based on the actual cloud server and LAN server time conditions. Taking community management as an example, based on the overall design and pre-planned network topology, each multi-port device 102 selects specific information from the network group to obtain configuration information. Then, based on the connection relationship between the multi-port device 102 and each switch in the community, as well as the configuration information, the mapping relationship between the network ports of the multi-port device 102 and the addresses of each server in the LAN service is determined. The aforementioned configuration information may include, but is not limited to, the IP address and NETMASK of each network port, the IP address of the LAN server, the building information, floor information, and the room information of the residents in the community.
[0077] Specifically, the multi-port device 102, based on the first address of the first network server determined in step 204, determines the target port identifier corresponding to the first address of the first network server through the mapping relationship between port identifiers and server addresses in the cross-network routing table. For example, the cross-network routing table includes the mapping relationship between port identifier 1 and server address 1, the mapping relationship between port identifier 2 and server address 2, and the mapping relationship between port identifier 3 and server address 3. If the first address of the first network server is specifically server address 3, then based on the mapping relationship between port identifier 3 and server address 3, it can be determined that the target port identifier corresponding to the first address is specifically port identifier 3.
[0078] It should be understood that, based on Figure 1 The scenario shown includes multiple local area network servers 108. Therefore, the cross-network routing table can include the mapping relationship between each local area network server 108 and each network port, as well as the mapping relationship between the cloud server 104 and each network port.
[0079] Step 208: Transmit the target service data to the first network server through the target network port uniquely indicated by the target network port identifier.
[0080] The multi-port device 102 includes multiple network ports, each with a corresponding port identifier. For example, the first port corresponds to port identifier 1, the second port to port identifier 2, and the third port to port identifier 3.
[0081] Specifically, since a network port identifier can uniquely identify one network port in a multi-port device, the multi-port device 102 first determines the target network port uniquely indicated by the target network port identifier determined in the aforementioned steps, and then transmits the target service data to the first network server through that target network port. For example, the first network port corresponds to network port identifier 1, the second network port corresponds to network port identifier 2, and the third network port corresponds to network port identifier 3. Based on the aforementioned example, the target network port identifier corresponding to the first address is determined to be network port identifier 3. Therefore, the third network port uniquely indicated by network port identifier 3 can be determined as the target network port, and then the target service data is transmitted to the first network server through the third network port.
[0082] In the above-mentioned method for accurate data transmission based on multi-port devices, when processing services across networks, since the cross-network routing table includes the mapping relationship between port identifiers and server addresses, the specific transmission path of the target service data can be determined based on the information included in the target service data and the aforementioned mapping relationship, thus avoiding the situation where the service data is not accurately forwarded and transmitted, thereby improving the accuracy of service data transmission.
[0083] In one embodiment, such as Figure 3As shown, the steps for determining the target network interface identifier corresponding to the first address based on the first address of the first network server and the mapping relationship between network interface identifiers and server addresses in the cross-network routing table specifically include:
[0084] Step 302: Based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, determine two or more network port identifiers corresponding to the first address.
[0085] In the cross-network routing table, there are more than two network interface identifiers corresponding to the first address. For example, the cross-network routing table includes the mapping relationship between network interface identifier 1 and server address 1, the mapping relationship between network interface identifier 2 and server address 2, the mapping relationship between network interface identifier 3 and server address 3, and the mapping relationship between network interface identifier 4 and server address 3.
[0086] Specifically, since there are more than two network interface identifiers corresponding to the first address in the cross-network routing table, the multi-port device 102 can determine the more than two network interface identifiers corresponding to the first address based on the first address of the determined first network server, through the mapping relationship between network interface identifiers and server addresses in the cross-network routing table. For example, based on the aforementioned example, if the first address is server address 3, then based on the mapping relationship between network interface identifier 3 and server address 3 in the cross-network routing table, and the mapping relationship between network interface identifier 4 and server address 3, the network interface identifier 3 and network interface identifier 4 corresponding to server address 3 can be determined.
[0087] Step 304: Determine the target network interface identifier from the two or more network interface identifiers corresponding to the first address based on the connection priority of each network interface identifier.
[0088] Each network port has a corresponding connection priority, meaning that the network port identifier corresponding to each network port has a corresponding connection priority.
[0089] Specifically, the multi-port device 102 determines the target port identifier from among the two or more port identifiers corresponding to the first address based on the connection priority of each port identifier. It should be understood that the target port identifier can be determined based on the connection priority of each port identifier, according to specific scenario requirements. Alternatively, it can be determined based on the connection priority of the port identifiers, taking into account the communication status of each port. No limitation is imposed here.
[0090] In this embodiment, when there are two or more network port identifiers corresponding to the first address, the target network port identifier is determined by considering the connection priority of each network port identifier. This improves the feasibility of business data transmission by taking into account the needs of actual connection scenarios while ensuring the accuracy of business data transmission.
[0091] The following section will introduce the connection priority of each network port identifier and how to determine the target network port identifier based on specific scenario requirements:
[0092] In one embodiment, such as Figure 4 As shown, the steps for determining the target network interface identifier from two or more network interface identifiers based on the connection priority of the first address include:
[0093] Step 402: Determine the network port identifier with the highest connection priority from two or more network port identifiers as the target network port identifier.
[0094] Each network port has a corresponding connection priority, meaning that each network port identifier has a specific connection priority. The connection priority is related to the network port information uniquely indicated by the network port identifier. This information includes at least: network port stability, network port transmission rate, and the network attributes to which the network port is connected. In other words, the connection priority can be determined based on information such as the stability, transmission rate, or network attributes of each network port. For example, if the first network port in the multi-port device 102 communicates with the cloud server 104 via a wired network, and the second network port communicates with the cloud server 104 via a wireless network, since the stability of a wired network is generally higher than that of a wireless network, the connection priority of the first network port can be determined to be higher than that of the second network port. Based on this, the connection priority of network port identifier 1 corresponding to the first network port is higher than the connection priority of network port identifier 2 corresponding to the second network port.
[0095] Specifically, the multi-port device 102 selects the port identifier with the highest connection priority from two or more port identifiers to determine the target port identifier. For example, based on the aforementioned example, the first port corresponds to port identifier 1, the second port corresponds to port identifier 2, the third port corresponds to port identifier 3, and the fourth port corresponds to port identifier 4. Furthermore, the connection priority of port identifier 1 is higher than that of port identifier 2, the connection priority of port identifier 2 is higher than that of port identifier 3, and the connection priority of port identifier 3 is higher than that of port identifier 4. The cross-network routing table includes the mapping relationship between port identifier 1 and server address 1, the mapping relationship between port identifier 2 and server address 2, the mapping relationship between port identifier 3 and server address 3, and the mapping relationship between port identifier 4 and server address 3.
[0096] Based on this, if the first address is server address 3, then the multi-port device 102 can determine the network port identifier 3 and network port identifier 4 corresponding to server address 3 based on the mapping relationship in the cross-network routing table. Furthermore, since the connection priority of network port identifier 3 is higher than that of network port identifier 4, the multi-port device 102 determines that network port identifier 3, which has the highest connection priority among network port identifiers 3 and 4, is the target network port identifier. That is, the multi-port device 102 transmits the target service data to the first network server through the third network port uniquely indicated by network port identifier 3.
[0097] In this embodiment, the network port indicated by the network port with the highest connection priority usually has higher network reliability. Therefore, selecting the network port with the highest connection priority as the target network port can further ensure the reliability of business data transmission while ensuring the accuracy of business data transmission.
[0098] The following section will introduce the connection priority based on the network port identifier, and the method for determining the target network port identifier by considering the communication status of each network port:
[0099] In one embodiment, such as Figure 5 As shown, the steps for determining the target network interface identifier corresponding to the first address based on the first address of the first network server and the mapping relationship between network interface identifiers and server addresses in the cross-network routing table specifically include:
[0100] Step 502: Based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, determine two or more network port identifiers corresponding to the first address.
[0101] Specifically, since there are more than two network port identifiers corresponding to the first address in the cross-network routing table, the multi-port device 102 can determine the more than two network port identifiers corresponding to the first address based on the first address of the determined first network server, through the mapping relationship between the network port identifiers and the server addresses in the cross-network routing table. The specific method is similar to step 302, and will not be repeated here.
[0102] Step 504: Determine the target network port identifier from the two or more network port identifiers based on the connection priority of each of the two or more network port identifiers corresponding to the first address and the unique indication of the communication status of each of the two or more network port identifiers.
[0103] The communication status of the network port includes normal communication and abnormal communication. Normal communication means that the network port can transmit business data normally, while abnormal communication includes at least the following situations: network port has network connection problems and cannot transmit business data.
[0104] Specifically, in determining the target network port identifier, the multi-port device 102 comprehensively considers the unique indication of the communication status of each network port by two or more network port identifiers, as well as the connection priority of each network port identifier. It should be understood that the multi-port device 102 may first determine the communication status of each network port and then determine the connection priority of each network port identifier. Alternatively, it may first determine the connection priority of each network port identifier and then adjust and determine the target network port identifier based on the communication status of each network port; this is not limited here.
[0105] In this embodiment, in addition to considering the connection priority of each network port identifier, the communication status of each network port is also taken into account, so as to ensure the accuracy of service data transmission and further ensure the reliability of service data transmission.
[0106] In one embodiment, such as Figure 6 As shown, the steps for determining the target network interface identifier from two or more network interface identifiers based on the connection priority of each of the two or more network interface identifiers corresponding to the first address, and the unique indication of the communication status of each of the two or more network interface identifiers, specifically include:
[0107] Step 602: Determine the network port identifier corresponding to the network port with normal communication status as the first network port identifier to be selected.
[0108] Specifically, the multi-port device 102 determines the port with normal communication status based on the communication status of each port, and then determines the port identifier corresponding to the port with normal communication status as the first port identifier to be selected. For example, based on the aforementioned example, the first port corresponds to port identifier 1, the second port corresponds to port identifier 2, the third port corresponds to port identifier 3, the fourth port corresponds to port identifier 4, and the fifth port corresponds to port identifier 5. Furthermore, the cross-network routing table includes the mapping relationship between port identifier 1 and server address 1, the mapping relationship between port identifier 2 and server address 2, the mapping relationship between port identifier 3 and server address 3, the mapping relationship between port identifier 4 and server address 3, and the mapping relationship between port identifier 5 and server address 3.
[0109] Based on this, if the first address is server address 3, then the network interface device 102 can determine the network interface identifiers 3, 4, and 5 corresponding to server address 3 based on the mapping relationship in the cross-network routing table. Further, the communication status of each network interface is uniquely indicated by the real-time monitored network interface identifiers. If the communication status of the third network interface is normal, the communication status of the fourth network interface is normal, and the communication status of the fifth network interface is abnormal, then the network interface identifier 3 corresponding to the third network interface and the network interface identifier 3 corresponding to the fourth network interface will be determined as the first candidate network interface identifiers.
[0110] Step 604: Determine the first candidate network port identifier with the highest connection priority among all the first candidate network port identifiers as the target network port identifier.
[0111] Specifically, the multi-port device 102 determines the first candidate port identifier with the highest connection priority among all the first candidate port identifiers as the target port identifier. For example, based on the example of step 602, the connection priority of port identifier 1 is higher than that of port identifier 2, the connection priority of port identifier 2 is higher than that of port identifier 3, the connection priority of port identifier 5 is higher than that of port identifier 3, and the connection priority of port identifier 3 is higher than that of port identifier 4.
[0112] Since the first candidate network port identifier specifically includes network port identifier 3 and network port identifier 4, and the connection priority of network port identifier 3 is higher than that of network port identifier 4, network port identifier 3 can be determined as the target network port identifier.
[0113] It should be understood that in practical applications, the network interface identifier to be selected can be determined first based on the connection priority of each network interface identifier, and then the target network interface identifier can be determined based on the communication status of the network interface identifier to be selected. That is, if the communication status of the network interface identifier to be selected is normal, then the network interface identifier to be selected is determined as the target network interface identifier. If the communication status of the network interface identifier to be selected is abnormal, then the next network interface identifier to be selected is determined again based on the connection priority of each network interface identifier (excluding the previous network interface identifier to be selected), until a target network interface identifier that meets the conditions is determined.
[0114] In this embodiment, by combining the connection priority of each network port identifier and the communication status of each network port, and based on the information included in the target service data and the aforementioned mapping relationship, the situation where service data is not accurately forwarded and transmitted can be avoided, thus ensuring the accuracy of service data transmission. Furthermore, the reliability of the network port indicated by each network port identifier is ensured by the connection priority of each network port identifier, and the network availability of the network port for service data transmission is ensured by considering the communication status of each network port, thereby further guaranteeing the reliability of service data transmission.
[0115] In one embodiment, such as Figure 7 As shown, the method also includes:
[0116] Step 702: If it is determined that the target network port has a communication failure based on the communication status of the target network port, the network port identifier corresponding to the network port with a normal communication status is determined as the second candidate network port identifier.
[0117] Among them, the second candidate network port identifier has a mapping relationship with the first address.
[0118] Specifically, the multi-port device 102 performs real-time network probing on each port to obtain the communication status of each port. Based on this, when the communication status of the target port is abnormal, the multi-port device 102 determines that the target port has a communication failure based on the communication status of the target port, and then determines the port identifier corresponding to the port with a normal communication status as the second candidate port identifier.
[0119] For example, the first network port corresponds to network port identifier 1, the second network port corresponds to network port identifier 2, the third network port corresponds to network port identifier 3, the fourth network port corresponds to network port identifier 4, and the fifth network port corresponds to network port identifier 5. If network port identifier 3 is determined to be the target network port for transmitting target service data, however, during real-time network detection, it is determined that the communication status of the third network port, uniquely indicated by network port identifier 3, is abnormal, while the communication status of the first network port, uniquely indicated by network port identifier 1, is normal; the communication status of the fourth network port, uniquely indicated by network port identifier 4, is normal; and the communication status of the fifth network port, uniquely indicated by network port identifier 5, is normal.
[0120] Since the cross-network routing table specifically includes the mapping relationship between network port identifier 1 and server address 1, the mapping relationship between network port identifier 4 and server address 3, and the mapping relationship between network port identifier 5 and server address 3, the multi-port device 102 should, based on the first address being server address 3, designate network port identifier 4 and network port identifier 5 as the second candidate network port identifiers.
[0121] Step 704: Determine the second candidate network port identifier with the highest connection priority among all the second candidate network port identifiers as the switching network port identifier corresponding to the first address.
[0122] Specifically, the multi-port device 102 determines the second candidate port identifier with the highest connection priority among the second candidate port identifiers in a manner similar to that in the aforementioned embodiments as the switching port identifier corresponding to the first address, which will not be elaborated here.
[0123] Step 706: Transmit target service data to the first network server by switching the target switching network interface, which is uniquely indicated by the switching network interface identifier.
[0124] Specifically, the multi-port device 102 transmits target service data to the first network server by switching the target switching port uniquely indicated by the port identifier in a manner similar to that described in the previous embodiments. This will not be elaborated further here.
[0125] In this embodiment, in the event of communication failures such as network port anomalies during data transmission, a network port with normal communication is identified, and the network port identifier of this network port has a mapping relationship with the first address. This ensures the accuracy of the specific transmission path of the target service data, thereby improving the accuracy of service data transmission. Furthermore, the connection priority of each network port identifier is further considered to take into account the needs of actual connection scenarios, thereby improving the feasibility of service data transmission.
[0126] The above sections have described different scenarios and the situations considering factors affecting data transmission. The following section will detail the most complete data transmission method based on multi-port devices in this application's embodiments, such as... Figure 8 As shown, this method is applied to Figure 1 Taking the multi-port device 102 as an example, the explanation includes the following steps:
[0127] Step 801: Obtain target business data.
[0128] The target Internet Protocol (IP) address is the address of any service node in the network server to which the target business data is transmitted. The IP address is specifically composed of a network identifier and a host identifier. The network identifier uniquely indicates the network server, and the host identifier uniquely indicates the specific service node in the network server. The aforementioned service node can be a node that processes data from at least one terminal 110.
[0129] Specifically, when processing services across networks, the multi-port device 102 acquires the target service data corresponding to the cross-network processing service. The target service data is the service data transmitted from the initial network to the destination network, and the target service data includes the target IP address and the target NETMASK.
[0130] Step 802: Determine the first address of the first network server based on the target IP address and target NETMASK of the target business data.
[0131] Wherein, the first network server is the destination network server for transmitting the target business data, and the first address is the address of any service node in the destination network server (i.e., the first network server).
[0132] Specifically, as can be seen from the foregoing embodiments, the target NETMASK is specifically used to divide the target IP address into two parts: a network address and a host address. Therefore, the multi-port device 102 divides the target IP address into two parts: a network address and a host address based on the target NETMASK, and then calculates the first network server and the first address in the first network server based on the network address and host address obtained by dividing the target IP.
[0133] Step 803: Based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, determine two or more network port identifiers corresponding to the first address.
[0134] In the cross-network routing table, there are more than two network interface identifiers corresponding to the first address. For example, the cross-network routing table includes the mapping relationship between network interface identifier 1 and server address 1, the mapping relationship between network interface identifier 2 and server address 2, the mapping relationship between network interface identifier 3 and server address 3, and the mapping relationship between network interface identifier 4 and server address 3.
[0135] Specifically, based on the first address of the first network server determined in step 204, the multi-port device 102 can determine the two or more port identifiers corresponding to the first address through the mapping relationship between port identifiers and server addresses in the cross-network routing table.
[0136] Step 804: Determine the network port identifier corresponding to the network port with normal communication status as the first network port identifier to be selected.
[0137] The communication status of the network port includes normal communication and abnormal communication. Normal communication means that the network port can transmit business data normally, while abnormal communication includes situations such as network connection failure and inability to transmit business data.
[0138] Specifically, the multi-port device 102 determines the port with normal communication status based on the communication status of each port, and then determines the port identifier corresponding to the port with normal communication status as the first port identifier to be selected.
[0139] Step 805: Determine the first candidate network port identifier with the highest connection priority among all the first candidate network port identifiers as the target network port identifier.
[0140] Each network port has a corresponding connection priority; that is, the network port identifier for each port has a specific connection priority. Connection priorities can be determined based on factors such as the stability of each network port, its transmission rate, or the network attributes to which it is connected.
[0141] Specifically, the multi-port device 102 determines the first candidate port identifier with the highest connection priority among the first candidate port identifiers as the target port identifier.
[0142] It should be understood that in practical applications, the network interface identifier to be selected can be determined first based on the connection priority of each network interface identifier, and then the target network interface identifier can be determined based on the communication status of the network interface identifier to be selected. That is, if the communication status of the network interface identifier to be selected is normal, then the network interface identifier to be selected is determined as the target network interface identifier. If the communication status of the network interface identifier to be selected is abnormal, then the next network interface identifier to be selected is determined again based on the connection priority of each network interface identifier (excluding the previous network interface identifier to be selected), until a target network interface identifier that meets the conditions is determined.
[0143] Step 806: Transmit the target service data to the first network server through the target network port uniquely indicated by the target network port identifier.
[0144] The multi-port device 102 includes multiple network ports, and each network port has a corresponding network port identifier.
[0145] Specifically, since a network port identifier can uniquely indicate one of the network ports in a multi-port device, the multi-port device 102 first determines the target network port uniquely indicated by the target network port identifier determined in the aforementioned steps, and then transmits the target service data to the first network server through the target network port.
[0146] Step 807: If it is determined that the target network port has a communication failure based on the communication status of the target network port, the network port identifier corresponding to the network port with a normal communication status is determined as the second candidate network port identifier.
[0147] Among them, the second candidate network port identifier has a mapping relationship with the first address.
[0148] Specifically, the multi-port device 102 performs real-time network probing on each port to obtain the communication status of each port. Based on this, when the communication status of the target port is abnormal, the multi-port device 102 determines that the target port has a communication failure based on the communication status of the target port, and then determines the port identifier corresponding to the port with a normal communication status as the second candidate port identifier.
[0149] Step 808: The second candidate network port identifier with the highest connection priority among all the second candidate network port identifiers is determined as the switching network port identifier corresponding to the first address.
[0150] Specifically, the multi-port device 102 determines the second candidate port identifier with the highest connection priority among the various second candidate port identifiers as the switching port identifier corresponding to the first address.
[0151] Step 809: Transmit target service data to the first network server by switching the target switching network interface, which is uniquely indicated by the switching network interface identifier.
[0152] Specifically, the multi-port device 102 transmits target service data to the first network server by switching the target switching port, which is uniquely indicated by the port identifier.
[0153] It should be understood that the specific implementation methods of steps 801 to 809 are different from those of steps 809. Figures 2 to 8 The specific implementation method is similar and will not be described in detail here.
[0154] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0155] Based on the same inventive concept, this application also provides a data precision transmission device based on a multi-port device for implementing the aforementioned method for precise data transmission based on a multi-port device. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more embodiments of the data precision transmission device based on a multi-port device provided below can be found in the limitations of the data precision transmission method based on a multi-port device described above, and will not be repeated here.
[0156] In one embodiment, such as Figure 9 As shown, a data precision transmission device based on a multi-port network device is provided, comprising: a data acquisition module, an address determination module 904, an identifier determination module 906, and a data transmission module 908, wherein:
[0157] Data acquisition module 902 is used to acquire target business data, which includes the target Internet Protocol IP address and the target subnet mask NETMASK.
[0158] Address determination module 904 is used to determine the first address of the first network server based on the target IP address and target NETMASK of the target service data.
[0159] The identifier determination module 906 is used to determine the target network interface identifier corresponding to the first address based on the first address of the first network server and the mapping relationship between the network interface identifier and the server address in the cross-network routing table.
[0160] The data transmission module 908 is used to calculate the target service data to be transmitted to the first network server through the target network port that is uniquely indicated by the target network port identifier.
[0161] In one embodiment, the identifier determination module 906 is specifically used to determine two or more network interface identifiers corresponding to the first address based on the first address of the first network server and the mapping relationship between network interface identifiers and server addresses in the cross-network routing table; and to determine the target network interface identifier from the two or more network interface identifiers according to the connection priority of the two or more network interface identifiers corresponding to the first address.
[0162] In one embodiment, the identifier determination module 906 is specifically used to determine the network port identifier with the highest connection priority among two or more network port identifiers as the target network port identifier; wherein, the connection priority is related to the network port information corresponding to the network port uniquely indicated by the network port identifier, and the network port information includes at least: network port stability, network port transmission rate, and network attributes to which the network port is connected.
[0163] In one embodiment, the feature is that, based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, two or more network port identifiers corresponding to the first address are determined; and based on the connection priority of the two or more network port identifiers corresponding to the first address and the unique indication of the communication status of the network port by the two or more network port identifiers, the target network port identifier is determined from the two or more network port identifiers.
[0164] The identifier determination module 906 is specifically used to determine the target network port identifier from two or more network port identifiers based on the connection priority of the two or more network port identifiers corresponding to the first address and the unique indication of the communication status of the network port by the two or more network port identifiers.
[0165] In one embodiment, the identifier determination module 906 is specifically used to determine the network port identifier corresponding to the network port with a normal communication status as the first candidate network port identifier; and to determine the first candidate network port identifier with the highest connection priority among the first candidate network port identifiers as the target network port identifier.
[0166] In one embodiment, the identifier determination module 906 is further configured to, if it is determined that the target network port has a communication failure based on the communication status of the target network port, determine the network port identifier corresponding to the network port with a normal communication status as the second candidate network port identifier; and determine the second candidate network port identifier with the highest connection priority among the second candidate network port identifiers as the switching network port identifier corresponding to the first address.
[0167] The data transmission module 908 is also used to transmit target service data to the first network server by switching the target switching network port, which is uniquely indicated by the switching network port identifier.
[0168] The modules in the aforementioned data transmission device based on multi-port network equipment can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0169] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 10 As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a data transmission method based on a multi-port device. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device casing, or an external keyboard, touchpad, or mouse.
[0170] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0171] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0172] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0173] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0174] 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, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0175] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0176] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0177] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for precise data transmission based on multi-port network devices, characterized in that, The method is applied to a multi-port device, which communicates with a switch via a wired network and with a local area network server via the switch; the method includes: Obtain target service data for cross-network processing services. The target service data includes a target Internet Protocol (IP) address and a target subnet mask (NETMASK). The target subnet mask (NETMASK) is used to describe the subnet where the network server indicated by the target IP address is located, as well as the bitmask of the network server. Based on the target NETMASK of the target service data, the target IP address of the target service data is divided into a network address and a host address, and a first address of the first network server is determined based on the network address and the host address; the first network server is the destination network server for the transmission of the target service data, and the first address is the address of any service node in the first network server; Based on the first address of the first network server and the mapping relationship between the network port identifier and the server address in the cross-network routing table, two or more network port identifiers corresponding to the first address are determined; the cross-network routing table includes at least the mapping relationship between each local area network server and each network port, and the mapping relationship between the cloud server and each network port. Based on the connection priority of each of the two or more network port identifiers corresponding to the first address, and the unique indication of the communication status of each of the two or more network port identifiers, the target network port identifier is determined from the two or more network port identifiers. The connection priority is related to the network port information corresponding to the network port uniquely indicated by the network port identifier; the network port information includes at least: network port stability, network port transmission rate, and network attributes to which the network port is connected. The higher the network port stability, the higher the connection priority; the communication status of the network port includes normal communication and abnormal communication. Normal communication indicates that the network port can transmit service data normally, and abnormal communication includes at least situations where the network port cannot transmit service data due to network connection abnormalities. The target service data is transmitted to the first network server through the target network port uniquely indicated by the target network port identifier. Real-time network detection is performed on each of the network ports to obtain the communication status of each network port; If the target network port is found to be in a communication abnormal state, and a communication failure is determined, the network port identifier corresponding to the network port in a normal communication state is identified as the second candidate network port identifier; the second candidate network port identifier has a mapping relationship with the first address; The second candidate network port identifier with the highest connection priority among all the second candidate network port identifiers is determined as the switching network port identifier corresponding to the first address; The target service data is transmitted to the first network server through the target switching network port uniquely indicated by the switching network port identifier.
2. The method according to claim 1, characterized in that, The step of determining the target network interface identifier from two or more network interface identifiers based on the connection priority of each of the two or more network interface identifiers corresponding to the first address specifically includes: The network port identifier with the highest connection priority among two or more network port identifiers is determined as the target network port identifier.
3. The method according to claim 1, characterized in that, The step of determining the target network port identifier from two or more network port identifiers based on the connection priority of each of the two or more network port identifiers corresponding to the first address and the unique indication of the communication status of each of the two or more network port identifiers specifically includes: The network port identifier corresponding to the network port whose communication status is normal is determined as the first network port identifier to be selected. The first network port identifier with the highest connection priority among the first network port identifiers is determined as the target network port identifier.
4. The method according to claim 1, characterized in that, The step of determining the target network port identifier from two or more network port identifiers based on the connection priority of each of the two or more network port identifiers corresponding to the first address and the unique indication of the communication status of each of the two or more network port identifiers specifically includes: The network port identifier to be selected is determined based on the connection priority of each of the aforementioned network port identifiers; The network port identifier that is in a normal communication state is selected as the target network port identifier.
5. A precise data transmission device based on a multi-port network device, characterized in that, The device is applied to a multi-port network device, which communicates with a switch via a wired network and with a local area network server via the switch; the device includes: The data acquisition module is used to acquire target service data for cross-network processing services. The target service data includes a target Internet Protocol (IP) address and a target subnet mask (NETMASK). The target subnet mask (NETMASK) is used to describe the subnet where the network server indicated by the target IP address is located, as well as the bitmask of the network server. The address determination module is used to divide the target IP address of the target service data into a network address and a host address based on the target NETMASK of the target service data, and determine the first address of the first network server based on the network address and the host address; the first network server is the destination network server for the transmission of the target service data, and the first address is the address of any service node in the first network server; The identifier determination module is used to determine two or more network port identifiers corresponding to the first address based on the first address of the first network server and the mapping relationship between network port identifiers and server addresses in the cross-network routing table; the cross-network routing table includes at least the mapping relationship between each local area network server and each network port, and the mapping relationship between the cloud server and each network port; and to determine the target network port identifier from the two or more network port identifiers according to the connection priority of the two or more network port identifiers corresponding to the first address and the unique indication of the communication status of the network port by the two or more network port identifiers. The connection priority is related to the network port information corresponding to the network port uniquely indicated by the network port identifier. The higher the stability of the network port, the higher the connection priority. The network port information includes at least: network port stability, network port transmission rate, and the network attributes to which the network port is connected. The communication status of the network port includes normal communication and abnormal communication. Normal communication indicates that the network port can transmit service data normally. Abnormal communication includes at least situations where the network port cannot transmit service data due to network connection abnormalities. The data transmission module is used to calculate the target service data to be transmitted to the first network server through the target network port uniquely indicated by the target network port identifier; The identifier determination module is further configured to perform real-time network detection on each of the network ports to obtain the communication status of each of the network ports; if it is determined that the target network port has a communication failure based on the communication status of the target network port, the network port identifier corresponding to the network port with a normal communication status is determined as the second candidate network port identifier; the second candidate network port identifier has a mapping relationship with the first address; the second candidate network port identifier with the highest connection priority among the second candidate network port identifiers is determined as the switching network port identifier corresponding to the first address; The data transmission module is also used to transmit the target service data to the first network server through the target switching network port uniquely indicated by the switching network port identifier.
6. The apparatus according to claim 5, characterized in that, The identifier determination module is specifically used to: determine the network port identifier with the highest connection priority among two or more network port identifiers as the target network port identifier.
7. The apparatus according to claim 5, characterized in that, The identifier determination module is specifically used to determine the network port identifier corresponding to the network port with a normal communication status as the first candidate network port identifier; and to determine the first candidate network port identifier with the highest connection priority among the first candidate network port identifiers as the target network port identifier.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Routing list generating method and device of digital receiver
CN104410572A
Routing method and device
CN106170956A