A networking system, method, computer device and storage medium

By establishing 5G and WiFi communication links within the factory workshop and using networking equipment to encapsulate and decapsulate data packets, the problem of communication instability caused by equipment obstruction was solved, and reliable communication without network interruption was achieved.

CN116489688BActive Publication Date: 2026-07-21ASPIRE TECH (SHENZHEN) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ASPIRE TECH (SHENZHEN) LTD
Filing Date
2023-05-15
Publication Date
2026-07-21

Smart Images

  • Figure CN116489688B_ABST
    Figure CN116489688B_ABST
Patent Text Reader

Abstract

The application discloses a networking system and method, computer equipment and a storage medium. The system comprises a first communication device, a first networking device in communication connection with the first communication device, a second communication device, a second networking device in communication connection with the second communication device, and a 5G communication link and a WiFi communication link configured between the first networking device and the second networking device. When the first communication device sends a first Ethernet data packet to the first networking device, the first networking device determines that the first Ethernet data packet does not belong to an encapsulated data packet, encapsulates the first Ethernet data packet into a first data packet, and adds a first data packet sequence number, so as to send the first data packet to the second networking device through the 5G communication link and the WiFi communication link at the same time. The second networking device is used for unpacking the first data packet, extracting the first data packet sequence number, restoring the first data packet into the first Ethernet data packet when it is determined that the first data packet is not processed, and sending the first Ethernet data packet to the second communication device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a networking system, method, computer equipment, and storage medium. Background Technology

[0002] Currently, when covering areas such as factory workshops with 5G signals, communication networks are unstable due to the obstruction, coverage, and interference of various equipment, metal supports, and operating equipment on the 5G signals.

[0003] While increasing WiFi coverage within the facility could improve the instability of 5G networks by allowing communication devices to access both 5G and WiFi simultaneously, this requires modifying the application layer of the device software. This would necessitate binding each application to two IP addresses, one for the 5G network and one for WiFi, allowing only one network to be used during communication. Furthermore, the system would only switch to the other IP address after detecting a communication interruption between the currently used IP address and the peer IP. Since network connectivity and switching take time, short-term network outages can occur. Moreover, the application software requires modification to add mechanisms for detecting network connectivity and switching, making the modification difficult and costly. Summary of the Invention

[0004] Therefore, it is necessary to provide a networking system, method, computer equipment, and storage medium to address the above-mentioned technical problems and solve at least one of the problems existing in the prior art.

[0005] Firstly, a networking system is provided, including: A first communication device, and a first networking device that is communicatively connected to the first communication device; The second communication device, and the second networking device that is communicatively connected to the second communication device, wherein the first networking device and the second networking device are configured with a 5G communication link and a WiFi communication link; When the first communication device sends a first Ethernet data packet to the first networking device, the first networking device obtains the protocol field of the first Ethernet data packet and determines whether the first Ethernet data packet is an encapsulated data packet based on the protocol field of the first Ethernet data packet. If not, the first Ethernet data packet is encapsulated into a first data packet, and a first data packet sequence number is added. The first data packet is then sent to the second networking device simultaneously through the 5G communication link and the WiFi communication link. The second networking device is used to unpack the first data packet and extract the sequence number of the first data packet to determine whether the first data packet is a processed data packet. If not, the first data packet is restored to the first Ethernet data packet and sent to the second communication device. If it is, the first data packet is discarded.

[0006] In one embodiment, When the second communication device sends a second Ethernet data packet to the second networking device, the second networking device obtains the protocol field of the second Ethernet data packet and determines whether the second Ethernet data packet is an encapsulated data packet based on the protocol field of the second Ethernet data packet. If not, the second Ethernet data packet is encapsulated into a second data packet, a second data packet sequence number is added, and the second data packet is sent to the first networking device simultaneously through the 5G communication link and the WiFi communication link. The first networking device is used to unpack the second data packet and extract the sequence number of the second data packet to determine whether the second data packet is a processed data packet. If not, the second data packet is restored to the second Ethernet data packet and sent to the first communication device. If it is, the second data packet is discarded.

[0007] In one embodiment, The first group of networking devices includes: The first 5G module is used to receive the first Ethernet data packet sent through the first communication device via the 5G network; The first WAN module is used to receive the first Ethernet data packet sent by the first communication device; The first VXLAN module and the second VXLAN module, which are respectively connected to the first 5G module and the first WAN module, are respectively used to establish the VXLAN tunnel of the 5G communication link and the VXLAN tunnel of the WiFi communication link. A first bridge module of a 5G communication link that is communicatively connected to the first VXLAN module is used to receive the first Ethernet data packet sent by the first VXLAN module. The second bridge module of the WiFi communication link, which is communicatively connected to the second VXLAN module, is used to receive the first Ethernet data packet sent by the second VXLAN module; A first aggregation module is communicatively connected to both the first bridge module and the second bridge module, and is used to receive the first Ethernet data packet sent by either the first bridge module or the second bridge module. The first aggregation module is used to obtain the protocol field of the first Ethernet data packet, and determine whether the first Ethernet data packet is an encapsulated data packet based on the protocol field. If not, the first Ethernet data packet is encapsulated into a first data packet, a first data packet sequence number is added, and the first data packet is sent to the second networking device simultaneously through the 5G communication link and the WiFi communication link.

[0008] In one embodiment, The first aggregation module is also used for: The system receives a second data packet sent by the second communication device and unpacks the second data packet to extract its sequence number. The sequence number is used to determine whether the second data packet is a processed data packet. If not, the second data packet is restored to a second Ethernet data packet and sent to the first communication device. If it is, the second data packet is discarded.

[0009] In one embodiment, The second group of networking devices includes: The second 5G module is used to receive the second Ethernet data packet sent by the second communication device through the 5G network; The second WAN module is used to receive the second Ethernet data packet sent by the second communication device; The third VXLAN module and the fourth VXLAN module, which are respectively connected to the second 5G module and the second WAN module, are respectively used to establish the VXLAN tunnel of the 5G communication link and the VXLAN tunnel of the WiFi communication link. A third bridge module of the 5G communication link, which is communicatively connected to the third VXLAN module, is used to receive the second Ethernet data packet sent by the third VXLAN module; The fourth bridge module of the second WiFi communication link, which is communicatively connected to the fourth VXLAN module, is used to receive the second Ethernet data packet sent by the fourth VXLAN module; A second aggregation module is communicatively connected to the third bridge module and the fourth bridge module respectively, and is used to receive the second Ethernet data packet sent by the third bridge module or the fourth bridge module. The second aggregation module is used to obtain the protocol field of the second Ethernet data packet, and determine whether the second Ethernet data packet is an encapsulated data packet according to the protocol field of the second Ethernet data packet. If not, the second Ethernet data packet is encapsulated into a second data packet, a second data packet sequence number is added, and the second data packet is sent to the first networking device simultaneously through the 5G communication link and the WiFi communication link respectively.

[0010] In one embodiment, The second aggregation module is also used for: The system receives a first data packet sent by the first communication device, and unpacks the first data packet to extract its sequence number. Based on the sequence number, it determines whether the first data packet is a processed data packet. If not, the system restores the first data packet to the first Ethernet data packet and sends it to the second communication device. If so, the system discards the first data packet.

[0011] In one embodiment, The system also includes: The router that communicates with the second networking device is used to communicate with the first networking device via either 5G network or WiFi network. The first network networking device, which is communicatively connected to the first networking device, is used to add the first DNAT forwarding rule; The second network networking device, which is communicatively connected to the second networking device, is used to add the second DNAT forwarding rule.

[0012] Secondly, a networking method is provided, applied to a first networking device, the method comprising: Create 5G communication links and WiFi communication links, and aggregate the 5G communication links and the WiFi communication links; Receive a first Ethernet data packet sent by a first communication device. When the first Ethernet data packet is an unencapsulated data packet, encapsulate the first Ethernet data packet into a first data packet. The first Ethernet data packet carries a destination address. According to the destination address, the first data packet is sent to the second networking device simultaneously through the 5G communication link and the WiFi communication link, so that the second networking device can restore the first data packet to the first Ethernet data packet and forward it to the second communication device.

[0013] Thirdly, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor, when executing the computer-readable instructions, implements the networking method as described above.

[0014] Fourthly, a readable storage medium stores computer-readable instructions that, when executed by a processor, implement the steps of the networking method described above.

[0015] This application provides a networking system and method. The system includes: a first communication device and a first networking device communicatively connected to the first communication device; a second communication device and a second networking device communicatively connected to the second communication device, wherein the first networking device and the second networking device are configured with a 5G communication link and a WiFi communication link; when the first communication device sends a first Ethernet data packet to the first networking device, the first networking device is used to obtain the protocol field of the first Ethernet data packet, and determine whether the first Ethernet data packet is an encapsulated data packet according to the protocol field of the first Ethernet data packet. If not, the first Ethernet data packet is encapsulated into a first data packet, and a first data packet sequence number is added. The first data packet is then sent to the second networking device simultaneously through the 5G communication link and the WiFi communication link; the second networking device is used to unpack the first data packet and extract the first data packet sequence number to determine whether the first data packet is a processed data packet. If not, the first data packet is restored to the first Ethernet data packet and sent to the second communication device. If so, the first data packet is discarded. In this application, a 5G communication link and a WiFi communication link are created through networking equipment, and the 5G communication link and WiFi communication link are aggregated and allocated an aggregated IP address, so that bidirectional communication can be carried out simultaneously through the 5G communication link and the WiFi communication link. No application software modification is required, and the networking method is simple. As long as one link is not interrupted, communication can be achieved without network switching or network interruption, resulting in high reliability. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1This is a schematic diagram of the networking system in one embodiment of the present invention; Figure 2 This is a schematic diagram of the networking device in one embodiment of the present invention; Figure 3 This is a schematic diagram of an application environment of the networking system in one embodiment of the present invention. Figure 1 ; Figure 4 This is a schematic diagram of an application environment of the networking system in one embodiment of the present invention. Figure 2 ; Figure 5 This is a schematic diagram of an application environment of the networking system in one embodiment of the present invention. Figure 3 ; Figure 6 This is a schematic diagram of an application environment of the networking system in one embodiment of the present invention. Figure 4 ; Figure 7 This is a schematic diagram of an application environment for the networking method in one embodiment of the present invention. Figure 5 ; Figure 8 This is a schematic diagram of an application environment for the networking method in one embodiment of the present invention. Figure 6 ; Figure 9 This is a schematic diagram of the structure of the first networking device in one embodiment of the present invention; Figure 10 This is a schematic diagram of the structure of the second networking device in one embodiment of the present invention; Figure 11 This is a schematic diagram of the sending process of the aggregation module in one embodiment of the present invention. Figure 1 ; Figure 12 This is a schematic diagram of the sending process of the aggregation module in this embodiment. Figure 2 ; Figure 13 This is a schematic diagram of the data transmission process in one embodiment of the present invention. Figure 1 ; Figure 14 This is a schematic diagram of the data transmission process in one embodiment of the present invention. Figure 1 ; Figure 15 This is a flowchart illustrating a networking method in one embodiment of the present invention; Figure 16 This is a schematic diagram of a computer device according to an embodiment of the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] In one embodiment, such as Figure 1 As shown, a networking system is provided, which includes: A first communication device 1, and a first networking device 2 that is communicatively connected to the first communication device 1; The second communication device 4, the second networking device 3 which is communicatively connected to the second communication device 4, and the first networking device 2 and the second networking device 3 are configured with a 5G communication link and a WiFi communication link; When the first communication device 1 sends the first Ethernet data packet to the first networking device 2, the first networking device 2 is used to obtain the protocol field of the first Ethernet data packet, and determine whether the first Ethernet data packet is an encapsulated data packet according to the protocol field of the first Ethernet data packet. If not, the first Ethernet data packet is encapsulated into a first data packet, and a first data packet sequence number is added. The first data packet is then sent to the second networking device 3 simultaneously through the 5G communication link and the WiFi communication link. The second networking device 3 is used to unpack the first data packet and extract the sequence number of the first data packet to determine whether the first data packet is a processed data packet. If not, the first data packet is restored to the first Ethernet data packet and sent to the second communication device 4. If it is, the first data packet is discarded.

[0020] Furthermore, when the second communication device 4 sends the second Ethernet data packet to the second networking device 3, the second networking device 3 is used to obtain the protocol field of the second Ethernet data packet, and determine whether the second Ethernet data packet is an encapsulated data packet according to the protocol field of the second Ethernet data packet. If not, the second Ethernet data packet is encapsulated into a second data packet, the second data packet sequence number is added, and the second data packet is sent to the first networking device 2 simultaneously through the 5G communication link and the WiFi communication link. The first networking device 2 is used to unpack the second data packet and extract the sequence number of the second data packet to determine whether the second data packet is a processed data packet. If not, the second data packet is restored to the second Ethernet data packet and sent to the first communication device 1. If it is, the second data packet is discarded.

[0021] In this embodiment, when the first networking device 2 receives a first Ethernet data packet, it can obtain the protocol field of the first Ethernet data packet and determine whether the first Ethernet data packet is a data packet encapsulated by this networking device based on the protocol field. If so, it performs decapsulation processing. After decapsulation, it processes the original first Ethernet data packet. If not, it performs encapsulation processing. During encapsulation, the protocol field is set to a different protocol number than the existing one, and the original protocol number is saved to another area. Sequence number, length, and other fields are added for transmission to the other end. It is understood that when the second networking device 3 receives a second Ethernet data packet sent by the second communication device, it can also process the second Ethernet data packet in the same way and send it to the other end.

[0022] Specifically, when the first network device 2 receives the first Ethernet data packet, it can encapsulate the original Ethernet data packet into a dual-network protocol data packet. The encapsulated data packet is still an Ethernet data packet, and its Ethernet protocol ID is a dual-network data packet protocol number. This protocol number is different from the existing Ethernet protocol numbers. The Ethernet data packet also includes a sequence number, the original Ethernet protocol ID, and the data packet length, and is sent to the second network device 3. The second network device 3 can further determine whether the Ethernet protocol ID of the Ethernet data packet is a dual-network protocol number. If not, it performs packet encapsulation processing and sends it via dual links. If it is, it extracts the sequence number. Based on the source address, it extracts the sequence number of the previously sent data packet. If it is less than or equal to the previously sent sequence number, it is discarded directly. If it is greater than the previously sent sequence number, it extracts the original Ethernet protocol number from the data packet, restores it to the original Ethernet data packet, and hands it over to the next-level network device or protocol stack for processing.

[0023] Furthermore, when the Ethernet data packet restored by the first networking device 2 or the second networking device 3 is an ARP response packet, it can be sent directly to the first communication device 1 or the second communication device 4 according to the target address. When the restored Ethernet data packet is an IP protocol response packet, it can be sent to the first communication device 1 or the second communication device 4 through preset routing rules.

[0024] Furthermore, both the first networking device 2 and the second networking device 3 can aggregate 5G communication links and WiFi communication links to create an aggregation network card, and assign a corresponding aggregation IP address through the aggregation network card. Through the aggregation network card, data can be sent to other communication devices simultaneously through the 5G network and WiFi network. If one of the communication links fails, there is no need to switch, and data can be transmitted directly through the other communication link.

[0025] The aggregation network card can encapsulate the first Ethernet data packet into a first data packet, or encapsulate the second Ethernet data packet into a second data packet. The first data packet or the second data packet can include: aggregation protocol number, data packet sequence number, and data packet length.

[0026] In this embodiment, the first communication device 1 and the second communication device 4 can be communication devices such as industrial control computers, host computers, computers, and mobile phones. Multiple first communication devices 1 and multiple second communication devices 4 can be included, meaning one first communication device 1 can communicate with multiple second communication devices 4. Furthermore, both the first communication device 1 and the second communication device 4 can simultaneously achieve bidirectional data transmission and reception via 5G and WiFi communication links through networking equipment; that is, the first communication device 1 can send data packets to the second communication device 4, and the second communication device 4 can also send data packets to the first communication device 1.

[0027] See Figure 2 In one embodiment of this application, the first networking device 2 and the second networking device 3 may specifically include: an antenna, a SIM card, a 5G module, a WAN module, a LAN module, RAM, FLASH, POWER, and a CPU.

[0028] The antenna may include four, such as ANT0, ANT1, ANT2, and ANT3. ANT0 and ANT1 are responsible for transmitting and receiving baseband signals, while ANT2 and ANT3 are responsible for receiving baseband signals.

[0029] The SIM card is a SIM card provided by a telecommunications operator, usually an Internet of Things (IoT) card, and there must be at least one SIM card.

[0030] This 5G module is an integrated module used to process 5G communications.

[0031] The WAN module is a communication interface used to access wired networks.

[0032] The LAN module is used to provide internet access for network devices.

[0033] This RAM is used to provide memory for the network device system to run.

[0034] Among them, FLASH is used for permanent storage of system data and runtime data.

[0035] POWER is a power module used to provide stable power for operation.

[0036] CPU stands for computing processor.

[0037] In this embodiment of the application, the system further includes: a router R1 that communicates with the second networking device 3, and is used to communicate with the first networking device 2 via 5G network or WiFi network through the router R1.

[0038] Furthermore, the system also includes a first network networking device WiFiSAT-1, which is communicatively connected to the first networking device 2, for adding a first DNAT forwarding rule; and a second network networking device WiFi SAT-2, which is communicatively connected to the second networking device 3, for adding a second DNAT forwarding rule.

[0039] Among them, the first network networking device WiFi SAT-1 and the second network networking device WiFi SAT-2 are WiFi Station devices, used for WiFi Mesh network networking. The WAN port of the first networking device 2 can be connected to the LAN port of WiFi SAT-1, and the WAN port of the second networking device 3 can be connected to the LAN port of WiFi SAT-2. Therefore, a DNAT forwarding rule needs to be added to the WiFi Station device. The specific rule parameters are shown in Table 1 below: Table 1:

[0040] Once the DNAT rule is added, the data packets sent by the network device via the WiFi communication link can reach the VXLAN network card device at the communication peer.

[0041] Furthermore, since the first networking device 2 and the second networking device 3 need to connect to the LAN port of the WiFi Station device through the WAN port, it is necessary to assign an IP address to the WAN port that is in the same network segment as the WiFi Station LAN, while avoiding conflicts with the addresses of downstream devices of the LAN port proposed in this application.

[0042] See Figure 3In one implementation scenario, when the 5G module of the first networking device CPE-1 is not in use, CPE-1 can connect to router R1 via its WAN port. Router R1 can then communicate with the 5G network IP addresses of CPE-2 and CPE-3, as well as the IP address of the WiFi Mesh network. CPE-2 and CPE-3 communicate with the WiFi STA devices. Furthermore, CPE-2 and CPE-3 can communicate with the WAN port of CPE-1 via their respective 5G and WAN modules. After networking, when CPE-1 and CPE-2 communicate, they simultaneously transmit and receive data via both the 5G and WiFi Mesh networks, discarding received network data packets. Both CPE-1 and CPE-3, and both CPE-2 and CPE-3, can achieve bidirectional communication via both the 5G and WiFi Mesh networks.

[0043] See Figure 4 In one implementation scenario, the 5G module of the first networking device CPE-1 is connected to a 5G network. CPE-1, CPE-2, and CPE-3 can communicate with WiFi STA devices via their WAN ports to access the WiFi Mesh network. CPE-1 can communicate with other devices, such as CPE-2 and CPE-3, via the IP address of their 5G networks. CPE-1 can also communicate with other devices, such as CPE-2 and CPE-3, via their WiFi Mesh network IP addresses through its WAN module. After networking, when devices CPE-1 and CPE-2 communicate, CPE-1 and CPE-2 perform dual data transmission and reception via both the 5G and WiFi Mesh networks, discarding received network data packets. CPE-1 and CPE-3, as well as CPE-2 and CPE-3, can simultaneously perform bidirectional communication via both the 5G and WiFi Mesh networks.

[0044] See Figure 5 In one implementation scenario, when device-1 sends data packets P1, P2, and P3 to device-2, CPE-1 can simultaneously transmit these data packets P1, P2, and P3 through both the 5G network and the WiFi Mesh network to CPE-2. Figure 5 As shown, data packet P2 is first sent to CPE-2 via the WiFi Mesh network, while data packets P1 and P3 are first sent to CPE-2 via the 5G network. Therefore, CPE-2 can discard the data that arrives later and send the data that arrives earlier to device-2. Thus, device-2 can receive P1 and P3 sent via the 5G network and P2 sent via the WiFi Mesh network.

[0045] See Figure 6In one implementation scenario, device-1 sends data packets P1, P2, and P3 to device-2 simultaneously via 5G network and WiFi Mesh. When the 5G network transmits normally, but the WiFi Mesh network cannot transmit normally, data packet transmission is not possible. In this case, the data packets P1, P2, and P3 received by CPE-2 are all transmitted via the 5G network and sent to device-2.

[0046] See Figure 7 In one implementation scenario, device-1 sends data packets P1, P2, and P3 to device-2 simultaneously via 5G network and WiFi Mesh. When the WiFi Mesh network transmits normally, but the 5G network cannot transmit normally, then the data packets P1, P2, and P3 received by CPE-2 are all transmitted via WiFi Mesh and sent to device-2.

[0047] See Figure 8 In one implementation scenario, device-1 sends data packets P1, P2, and P3 to device-2 simultaneously via 5G network and WiFi Mesh. When both the 5G network and the WiFi Mesh network fail to transmit normally, the communication between device-1 and device-2 is interrupted.

[0048] In this embodiment, both the first networking device 2 and the second networking device 3 may include a 5G module, a WAN module, a VXLAN module, a bridge module for the 5G communication link, a bridge module for the WiFi communication link, and an aggregation module.

[0049] Specifically, see Figure 9 The first networking device 2 may include: The first 5G module 21 is used to receive the first Ethernet data packet sent through the 5G network via the first communication device 1; The first WAN module 22 is used to receive the first Ethernet data packet sent by the first communication device through a 5G network or a WiFi network; The first VXLAN module 23 and the second VXLAN module 24, which are respectively connected to the first 5G module 21 and the first WAN module 22, are used to establish the VXLAN tunnel of the 5G communication link and the VXLAN tunnel of the WiFi communication link, respectively. The first bridge module 25 of the 5G communication link, which is communicatively connected to the first VXLAN module 23, is used to receive the first Ethernet data packet sent by the first VXLAN module 23. The second bridge module 26 of the WiFi communication link, which is communicatively connected to the second VXLAN module 24, is used to receive the first Ethernet data packet sent by the second VXLAN module 24; A first aggregation module 27, which is communicatively connected to the first bridge module 25 and the second bridge module 26 respectively, is used to receive the first Ethernet data packet sent by the first bridge module 25 or the second bridge module 26. The first aggregation module 27 is used to obtain the protocol field of the first Ethernet data packet and determine whether the first Ethernet data packet is an encapsulated data packet according to the protocol field of the first Ethernet data packet. If not, the first Ethernet data packet is encapsulated into a first data packet and a first data packet sequence number is added. The second data packet is then sent to the second networking device 3 simultaneously through the 5G communication link and the WiFi communication link.

[0050] The first aggregation module 27 is further configured to: receive the second data packet sent by the second communication device 4, and depacketize the second data packet to extract the sequence number of the second data packet, so as to determine whether the second data packet is a processed data packet by the sequence number of the second data packet; if not, restore the second data packet to the second Ethernet data packet and send it to the first communication device 1; if so, discard the second data packet.

[0051] Specifically, the second networking device 3 includes The second 5G module 31 is used to receive the second Ethernet data packet sent by the second communication device 4 through the 5G network; The second WAN module 32 is used to receive the second Ethernet data packet sent by the second communication device 4; The third VXLAN module 33 and the fourth VXLAN module 34, which are respectively connected to the second 5G module 31 and the second WAN module 32, are used to establish the VXLAN tunnel of the 5G communication link and the VXLAN tunnel of the WiFi communication link, respectively. The third bridge module 35 of the 5G communication link, which is communicatively connected to the third VXLAN module 33, is used to receive the second Ethernet data packet sent by the third VXLAN module 33. The fourth bridge module 36 of the WiFi communication link, which is communicatively connected to the fourth VXLAN module 34, is used to receive the second Ethernet data packet sent by the fourth VXLAN module 34. A second aggregation module 37, which is communicatively connected to the third bridge module 35 and the fourth bridge module 36 respectively, is used to receive the second Ethernet data packets sent by the third bridge module 35 or the fourth bridge module 36. The second aggregation module 37 is used to obtain the protocol field of the second Ethernet data packet, and determine whether the second Ethernet data packet is an encapsulated data packet according to the protocol field of the second Ethernet data packet. If not, the second Ethernet data packet is encapsulated into a second data packet, a second data packet sequence number is added, and the second data packet is sent to the first networking device 2 simultaneously through the 5G communication link and the WiFi communication link respectively.

[0052] Furthermore, the second aggregation module 37 is also used for: The system receives a first data packet sent by the first communication device 1, and performs unpacking processing on the first data packet to extract the sequence number of the first data packet. Based on the sequence number of the first data packet, it determines whether the first data packet is a processed data packet. If not, the first data packet is restored to the first Ethernet data packet and sent to the second communication device 4. If it is, the first data packet is discarded.

[0053] In this embodiment, the first communication device 1 or the second communication device 4 may experience 5G network communication interruption or WiFi communication interruption during movement or due to other factors, causing the VXLAN module to shut down and subsequently triggering aggregation anomalies in the aggregation module. Therefore, by setting up a bridge module on the 5G communication link and the WiFi communication link, the bridge module can dynamically access and remove network devices that support the bridge, effectively resolving aggregation anomalies caused by 5G network and WiFi Mesh network communication.

[0054] In this embodiment of the application, both the first networking device 2 and the second networking device 3 need to establish VXLAN tunnels for the 5G communication link and the WiFi communication link.

[0055] See Figure 11 In this embodiment of the application, the first networking device 2 and the second networking device 3 can act as data senders or data receivers. When acting as senders, taking the first networking device 2 as an example, when it receives the Ethernet data packet sent by the first communication device 1, it can perform frame detection and determine whether the Ethernet data packet type is HSR. If it is, it encapsulates it into an HSR frame type=HSR and transmits it to the bridge module of the 5G communication link or the bridge module of the WiFi communication link for forwarding to the network card of the 5G communication link and the network card of the WiFi communication link for processing, and further encapsulates it when transmitting it to the communication device.

[0056] See Figure 12 When acting as a receiver, taking the first network device as an example, it can receive Ethernet packets, perform frame inspection to determine if the packet type is HSR. If so, it performs packet unpacking and extracts the sequence number. Then, based on this sequence number, it determines whether the packet has been processed. If so, it is discarded; otherwise, the Ethernet packet is restored to its original form and processed according to the rules of the Ethernet protocol ID. For example, ARP requests are broadcast, responses are unicast, and IP requests are unicast, and forwarding is performed according to routing rules.

[0057] See Figure 13 In one implementation scenario of this application, taking the sending of a first Ethernet data packet from a first communication device 1 to a second communication device 4 as an example, the first networking device 2 is interconnected with a 5G network through a first 5G module 21 and with a WiFi Mesh network through a first WAN module 22. At this time, the first 5G module 21 is used to receive the first Ethernet data packet sent by the first communication device 1 and send it to the first VXLAN module 23, and then send it to the first bridge module 25 on the first 5G communication link through the first VXLAN module 23. At the same time, the first WAN module 22 receives the first Ethernet data packet sent by the first networking device 2 through the WiFi network, and sends it to the second bridge module 26 on the first WiFi communication link through the first VXLAN module 23. Then, the first bridge module 25 and the second bridge module 26 send it to the first aggregation module 27, so that the first Ethernet data packet can be transmitted to the second networking device 3 through the first aggregation module 27.

[0058] See Figure 14 In one implementation scenario of this application, taking the sending of a first Ethernet data packet from a first communication device 1 to a second communication device 4 as an example, the first networking device 2 is interconnected with a 5G network and a WiFi Mesh network through a first WAN module 22. At this time, when receiving the first Ethernet data packet sent by the first communication device 1, the first 5G module 21 is not used. The first Ethernet data packet is sent to the first VXLAN module 23 through the first WAN module 22, and then sent to the first bridge module 25 on the 5G communication link and the second bridge module 26 on the WiFi communication link through the first VXLAN module. The data packet is then sent to the first aggregation module 27 through the first bridge module 25 and the second bridge module 26, so that the first Ethernet data packet can be transmitted to the second networking device 3 through the first aggregation module 27.

[0059] In this embodiment, two communication links need to be established between each pair of communication devices to enable simultaneous communication via 5G and WiFi networks. The VXLAN protocol can be used to create end-to-end communication links. The specific communication parameters of the 5G and WiFi communication links are shown in Table 2 below: Table 2:

[0060] In one embodiment of this application, the peer IP address under the 5G communication link can be the IP address of other communication devices connected to the network device and communicating under the 5G communication link. For example, if the network device is a first network device connected to a first communication device, then the peer IP address can be the IP address of a second communication device. Conversely, if the network device is a second network device connected to a second communication device, then the peer IP address can be the IP address of the first communication device. This IP address can be a host address or a multicast address. If the 5G network does not support multicast, a host address is used. If the 5G network supports multicast, then when one first communication device corresponds to multiple second communication devices, only one multicast address needs to be configured.

[0061] In one embodiment of this application, the IP address of the peer communication device under the WiFi communication link can be the IP address of the communication device connected to the networking device, or the IP address of other communication devices communicating under the WiFi communication link. For example, if the networking device is a first networking device connected to a first communication device, then the IP address of the peer communication device can be the IP address of a second communication device. Conversely, if the networking device is a second networking device connected to a second communication device, then the IP address of the peer communication device can be the IP address of the first communication device. This IP address can be a host address or a multicast address. If the WiFi Mesh network and the WiFi STATION device support multicast, then the IP address of the peer communication device can be a multicast address. If the WiFi Mesh network does not support networking, and one first communication device corresponds to multiple second communication devices, then the host address of each second communication device needs to be configured.

[0062] In this embodiment, after a 5G communication link and a WiFi communication link are established, when the first networking device 2 establishes communication with the second networking device 3, VXLAN network cards are created in the first networking device 2 and the second networking device 3 respectively. For example, a 5Glink network card and a WiFilink network card named after the link. When communication is interrupted, the VXLAN network card named after the link is automatically removed. Specifically, when a 5G communication link is established, the network card named after the 5G communication link is added to the bridge of the 5G communication link; when a WiFi communication link is established, the network card named after the WiFi communication link is added to the bridge of the WiFi communication link; when a 5G communication link is disconnected, the network card named after the 5G communication link is removed from the bridge of the 5G communication link; when a WiFi communication link is disconnected, the network card named after the WiFi communication link is removed from the bridge of the WiFi communication link.

[0063] It should be understood that although terms such as "first," "second," etc., may be used to describe various information in the embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the embodiments of the present invention, a first networking device may also be referred to as a second networking device, without necessarily requiring or implying any such actual relationship or order between these entities or operations. Similarly, a second networking device may also be referred to as a first networking device.

[0064] In this embodiment of the application, a networking system is provided, including: a first communication device and a first networking device communicatively connected to the first communication device; a second communication device and a second networking device communicatively connected to the second communication device, wherein the first networking device and the second networking device are configured with a 5G communication link and a WiFi communication link; when the first communication device sends a first Ethernet data packet to the first networking device, the first networking device is used to obtain the protocol field of the first Ethernet data packet, and determine whether the first Ethernet data packet is an encapsulated data packet according to the protocol field of the first Ethernet data packet. If not, the first Ethernet data packet is encapsulated into a first data packet, and a first data packet sequence number is added. The first data packet is then sent to the second networking device simultaneously through the 5G communication link and the WiFi communication link; the second networking device is used to unpack the first data packet and extract the first data packet sequence number to determine whether the first data packet is a processed data packet. If not, the first data packet is restored to the first Ethernet data packet and sent to the second communication device. If so, the first data packet is discarded. In this application, a 5G communication link and a WiFi communication link are created through networking equipment, and the 5G communication link and WiFi communication link are aggregated and allocated an aggregated IP address, so that bidirectional communication can be carried out simultaneously through the 5G communication link and the WiFi communication link. No application software modification is required, and the networking method is simple. As long as one link is not interrupted, communication can be achieved without network switching or network interruption, resulting in high reliability.

[0065] See Figure 15 This application provides an implementation flow of a networking method, which can be applied to a first networking device. The method specifically includes the following steps: In step S110, a 5G communication link and a WiFi communication link are created, and the 5G communication link and the WiFi communication link are aggregated. In this embodiment, when the networking device starts up, it can read the networking configuration parameters of the networking device, create a bridge under the 5G communication link and a bridge under the WiFi communication link according to the networking configuration parameters, and then create and bind a convergence network card. Through the convergence network card, the first networking device 2 and the second networking device 3 can each create a convergence network card. Through the convergence network card, a convergence IP address can be assigned, so that data can be sent to other communication devices simultaneously through the 5G network and the WiFi network.

[0066] In step S120, a first Ethernet data packet sent by a first communication device is received. When the first Ethernet data packet is an unencapsulated data packet, the first Ethernet data packet is encapsulated into a first data packet, and the first Ethernet data packet carries a destination address. In this embodiment, the first communication device is communicatively connected to the first networking device. When the first communication device sends a first Ethernet data packet to a communication peer, such as a second communication device, a 5G communication link and a WiFi communication link can be established between the first communication device and the second communication device through the first networking device connected to the first communication device and the second networking device connected to the second communication device. When the first communication device sends a data packet to the second communication device, the first networking device communicatively connected to the first communication device can obtain the protocol field of the first Ethernet data packet and determine whether the first Ethernet data packet is an encapsulated data packet based on the protocol field of the first Ethernet data packet. If not, the first Ethernet data packet is encapsulated into a first data packet, and a first data packet sequence number is added. The first data packet is then sent to the second networking device simultaneously through the 5G communication link and the WiFi communication link.

[0067] The destination address is the communication peer, such as the IP address of the second communication device.

[0068] In step S130, the first Ethernet data packet is sent to the second networking device simultaneously through the 5G communication link and the WiFi communication link, according to the destination address.

[0069] In this embodiment of the application, upon receiving the data packet, the data packet is encapsulated and transmitted to the second communication device via the converged network card, simultaneously through the 5G communication link and the WiFi communication link.

[0070] In one embodiment of this application, after the 5G communication link and the WiFi communication link are established, the second communication device can also send a second Ethernet data packet to the first network device through the second network device with communication connection. When the second Ethernet data packet is received, the data packet can be unpacked and the sequence number of the data packet can be extracted. According to the sequence number of the data packet, it is determined whether the data packet is a processed data packet. If it is, it is discarded; otherwise, the second Ethernet data packet is restored to the original Ethernet data packet and sent to the first communication device.

[0071] In this embodiment of the application, the networking device is the first networking device in the above-mentioned networking system. Similarly, the second networking device can also use the above process to send data. It can be understood that all networking devices can send and receive data through the above process.

[0072] In this embodiment, a 5G communication link and a WiFi communication link are created through a networking device, and the 5G communication link and the WiFi communication link are aggregated and an aggregated IP address is assigned, so that bidirectional communication can be carried out simultaneously through the 5G communication link and the WiFi communication link. No application software modification is required, and the networking method is simple. As long as one link is not interrupted, communication can be achieved without network switching or network interruption, resulting in high reliability.

[0073] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0074] In one embodiment, a computer device is provided, which may be the networking device, and its internal structure diagram may be as follows: Figure 16 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a readable storage medium storing computer-readable instructions. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer-readable instructions implement a networking method. The readable storage medium provided in this embodiment includes both non-volatile and volatile readable storage media.

[0075] A computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor executes the computer-readable instructions to implement the steps of the networking method described above.

[0076] A readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the steps of the networking method described above.

[0077] 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 instructing related hardware with computer-readable instructions. These computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When executed, these computer-readable instructions can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0078] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0079] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A networking system, characterized in that, The system includes: A first communication device, and a first networking device that is communicatively connected to the first communication device; A second communication device, a second networking device communicatively connected to the second communication device, a 5G communication link and a WiFi communication link configured between the first networking device and the second networking device, both the first networking device and the second networking device include an aggregation module, a VXLAN module, a bridge module for the 5G communication link, and a bridge module for the WiFi communication link. The VXLAN module establishes VXLAN tunnels for the 5G communication link and the WiFi communication link respectively. The bridge module for the 5G communication link and the bridge module for the WiFi communication link are communicatively connected to their respective VXLAN modules. The aggregation module is communicatively connected to the bridge module for the 5G communication link and the bridge module for the WiFi communication link. When the first communication device sends a first Ethernet data packet to the first networking device, the first networking device obtains the protocol field of the first Ethernet data packet and determines whether the first Ethernet data packet is an encapsulated data packet based on the protocol field of the first Ethernet data packet. If not, the first Ethernet data packet is encapsulated into a first data packet. The first data packet includes a convergence protocol number, a first data packet sequence number, and a data packet length. The first networking device sends the first data packet to the second networking device simultaneously through a 5G communication link and a WiFi communication link. The aggregation module of the second networking device is used to unpack the first data packet and extract the sequence number of the first data packet to determine whether the first data packet is a processed data packet. If not, the first data packet is restored to the first Ethernet data packet and sent to the second communication device. If it is, the first data packet is discarded.

2. The networking system as described in claim 1, characterized in that, When the second communication device sends a second Ethernet data packet to the second networking device, the second networking device obtains the protocol field of the second Ethernet data packet and determines whether the second Ethernet data packet is an encapsulated data packet based on the protocol field of the second Ethernet data packet. If not, the second Ethernet data packet is encapsulated into a second data packet, a second data packet sequence number is added, and the second data packet is sent to the first networking device simultaneously through the 5G communication link and the WiFi communication link. The first networking device is used to unpack the second data packet and extract the sequence number of the second data packet to determine whether the second data packet is a processed data packet. If not, the second data packet is restored to the second Ethernet data packet and sent to the first communication device. If it is, the second data packet is discarded.

3. The networking system as described in claim 1, characterized in that, The first group of networking devices includes: The first 5G module is used to receive the first Ethernet data packet sent through the first communication device via the 5G network; The first WAN module is used to receive the first Ethernet data packet sent by the first communication device; The first VXLAN module and the second VXLAN module, which are respectively connected to the first 5G module and the first WAN module, are respectively used to establish the VXLAN tunnel of the 5G communication link and the VXLAN tunnel of the WiFi communication link. A first bridge module of a 5G communication link that is communicatively connected to the first VXLAN module is used to receive the first Ethernet data packet sent by the first VXLAN module. The second bridge module of the WiFi communication link, which is communicatively connected to the second VXLAN module, is used to receive the first Ethernet data packet sent by the second VXLAN module; A first aggregation module is communicatively connected to both the first and second bridge modules, and is used to receive the first Ethernet data packet sent by either the first or second bridge module. The first aggregation module is used to obtain the protocol field of the first Ethernet data packet and determine whether the first Ethernet data packet is an encapsulated data packet based on the protocol field. If not, the first Ethernet data packet is encapsulated into a first data packet, and a first data packet sequence number is added. The first data packet is then sent to the second networking device simultaneously through the 5G communication link and the WiFi communication link.

4. The networking system as described in claim 3, characterized in that, The first aggregation module is also used for: The system receives a second data packet sent by the second communication device and unpacks the second data packet to extract its sequence number. The sequence number is used to determine whether the second data packet is a processed data packet. If not, the second data packet is restored to a second Ethernet data packet and sent to the first communication device. If it is, the second data packet is discarded.

5. The networking system as described in claim 2, characterized in that, The second group of networking devices includes: The second 5G module is used to receive the second Ethernet data packet sent by the second communication device through the 5G network; The second WAN module is used to receive the second Ethernet data packet sent by the second communication device; The third VXLAN module and the fourth VXLAN module, which are respectively connected to the second 5G module and the second WAN module, are respectively used to establish the VXLAN tunnel of the 5G communication link and the VXLAN tunnel of the WiFi communication link. A third bridge module of the 5G communication link, which is communicatively connected to the third VXLAN module, is used to receive the second Ethernet data packet sent by the third VXLAN module; The fourth bridge module of the second WiFi communication link, which is communicatively connected to the fourth VXLAN module, is used to receive the second Ethernet data packet sent by the fourth VXLAN module; A second aggregation module is communicatively connected to the third bridge module and the fourth bridge module respectively, and is used to receive the second Ethernet data packet sent by the third bridge module or the fourth bridge module. The second aggregation module is used to obtain the protocol field of the second Ethernet data packet, and determine whether the second Ethernet data packet is an encapsulated data packet according to the protocol field of the second Ethernet data packet. If not, the second Ethernet data packet is encapsulated into a second data packet, a second data packet sequence number is added, and the second data packet is sent to the first networking device simultaneously through the 5G communication link and the WiFi communication link respectively.

6. The networking system as described in claim 5, characterized in that, The second aggregation module is also used for: The system receives a first data packet sent by the first communication device, and unpacks the first data packet to extract its sequence number. Based on the sequence number, it determines whether the first data packet is a processed data packet. If not, the system restores the first data packet to the first Ethernet data packet and sends it to the second communication device. If so, the system discards the first data packet.

7. The networking system as described in claim 1, characterized in that, The system also includes: The router that communicates with the second networking device is used to communicate with the first networking device via either 5G network or WiFi network. The first network networking device, which is communicatively connected to the first networking device, is used to add the first DNAT forwarding rule; The second network networking device, which is communicatively connected to the second networking device, is used to add the second DNAT forwarding rule.

8. A networking method, characterized in that, The method, applied to the first networking device as described in any one of claims 1-7, comprises: Create 5G communication links and WiFi communication links, and aggregate the 5G communication links and the WiFi communication links; Receive a first Ethernet data packet sent by a first communication device. When the first Ethernet data packet is an unencapsulated data packet, encapsulate the first Ethernet data packet into a first data packet. The first Ethernet data packet carries the destination address. According to the destination address, the first data packet is sent to the second networking device simultaneously through the 5G communication link and the WiFi communication link, so that the second networking device can restore the first data packet to the first Ethernet data packet and forward it to the second communication device.

9. A computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, characterized in that, When the processor executes the computer-readable instructions, it implements the networking method as described in claim 8.

10. A readable storage medium storing computer-readable instructions, characterized in that, When the computer-readable instructions are executed by the processor, they implement the steps of the networking method as described in claim 8.