Load balancing processing method and device based on PON (Passive Optical Network), and storage medium
By deploying local control modules and virtual switches in FTTR devices, multiple data transmission links are established and service types are dynamically allocated, solving the problem of single-link congestion in FTTR networks and improving bandwidth utilization and service continuity.
Patent Information
- Application Number
- CN202510568092.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-08-08
AI Technical Summary
In traditional FTTR networks, high-concurrency services can easily lead to single-link congestion, while low-concurrency services cannot fully utilize the link bandwidth potential, resulting in low bandwidth utilization.
Deploy a local control module and virtual switch in the FTTR device to establish multiple data transmission links and dynamically allocate data transmission links according to service type. Use artificial intelligence load balancing algorithms to monitor and adjust link status in real time, and combine source IP hashing and 5-tuple hashing methods for traffic distribution.
It effectively solves the single-link congestion problem, improves bandwidth utilization, meets the needs of high-bandwidth and low-latency services, realizes multi-link redundancy and fault switching, and ensures service continuity.
Smart Images

Figure CN120455871A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of FTTR technology, and in particular to a load balancing processing method, device, and storage medium based on a PON network. Background Art
[0002] Fiber to the Room (FTTR), a new home networking solution, builds a high-speed, whole-home network system by running fiber directly to every room. This system combines a master optical modem (FTTR master), slave optical modems (FTTR slaves), an indoor fiber optic network, and optical splitters. Compared to traditional FTTB (Fiber to the Building) or FTTH (Fiber to the Home) solutions, Passive Optical Networks (PONs) leverage the high bandwidth and interference resistance of optical fiber media to provide users with gigabit and even 10GbE network experiences, making them a mainstream choice for home network upgrades.
[0003] In an FTTR network, a main FTTR unit connects to multiple slave units via optical fiber. Each slave unit provides network access to a separate room. Traditional FTTR networks typically utilize a single-link transmission mode, with the main FTTR unit and slave units communicating over a single optical fiber link. High-concurrency traffic can easily lead to congestion on this link, while low-concurrency traffic struggles to fully utilize the link's bandwidth potential, leading to technical issues like low bandwidth utilization. Summary of the Invention
[0004] The present application provides a load balancing processing method, device and storage medium based on a PON network, which is used to solve the technical problem in traditional solutions that high-concurrency services easily lead to single-link congestion, while low-concurrency services cannot fully utilize the link bandwidth potential, resulting in low bandwidth utilization.
[0005] A load balancing processing method based on a PON network, wherein the PON network includes an FTTR device, the FTTR device includes an FTTR host or an FTTR slave, the FTTR device is deployed with a local control module and a virtual switch, and multiple network ports of the virtual switch of the FTTR device respectively establish multiple data transmission links with multiple network ports of the virtual switch of another FTTR device. The method includes: The virtual switch determines the service type of the FTTR service; The virtual switch allocates a corresponding data transmission link to the FTTR service according to the service type of the FTTR service, and performs data transmission based on the corresponding data transmission link.
[0006] Furthermore, the service type of the FTTR service includes a first service type, a second service type, and a third service type with decreasing priorities. The local control module allocates a corresponding data transmission link to the FTTR service according to the service type of the FTTR service, including: The virtual switch allocates a first data transmission link for the FTTR service of the first service type, allocates a second data transmission link for the FTTR service of the second service type, and allocates a third data transmission link for the FTTR service of the third service type.
[0007] Furthermore, the first data transmission link, the second data transmission link and the third data transmission link are respectively an optical fiber transmission link, an Ethernet transmission link and a WiFi transmission link.
[0008] Furthermore, the first service type includes 8K video service and cloud gaming service, the second service type includes video conferencing service, and the third service type includes file download service.
[0009] Furthermore, the method further comprises: The virtual switch reserves bandwidth resources ≥ first bandwidth resources for the FTTR service of the first service type, dynamically allocates bandwidth resources ≥ second bandwidth resources and allows delay < first duration for the FTTR service of the second service type, and fills idle bandwidth resources for the FTTR service of the third service type.
[0010] Furthermore, the first bandwidth resource is 120 Mbps, the second bandwidth resource is 50 Mbps, and the first duration is 30 ms.
[0011] Furthermore, the method further comprises: The virtual switch uses an artificial intelligence (AI) load balancing algorithm to monitor the link status of the multiple data transmission links in real time, where the link status includes at least one of bandwidth, latency, and packet loss rate; The virtual switch dynamically switches the transmission link of the service traffic according to the link status.
[0012] Furthermore, the method further comprises: The virtual switch implements traffic distribution of the multiple data transmission links based on source IP hash or quintuple hash.
[0013] A FTTR device for a PON network, the FTTR device comprising an FTTR host or an FTTR slave, the FTTR device being deployed with a local control module and a virtual switch, wherein multiple network ports of the virtual switch of the FTTR device respectively establish multiple data transmission links with multiple network ports of the virtual switch of another FTTR device, wherein: The virtual switch is used to determine the service type of the FTTR service, and allocate a corresponding data transmission link to the FTTR service according to the service type of the FTTR service, and perform data transmission based on the corresponding data transmission link.
[0014] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the functions of any of the aforementioned load balancing processing methods.
[0015] As can be seen, the embodiment of the present application provides a load balancing processing method based on a PON network, wherein the PON network includes an FTTR device, wherein the FTTR device includes an FTTR host or an FTTR slave, and wherein the FTTR device is deployed with a local control module and a virtual switch. Multiple network ports of the virtual switch of the FTTR device respectively establish multiple data transmission links with multiple network ports of the virtual switch of another FTTR device. The virtual switch will allocate corresponding data transmission links to the FTTR service according to the service type of the FTTR service, and perform data transmission based on the corresponding data transmission links. This allows multiple data transmission links to be provided between the FTTR host and the FTTR slave, or between the FTTR slaves and the FTTR slaves in the PON network. In addition to expanding the transmission link bandwidth and ensuring the high-speed network service requirements of the FTTR device, the deployed virtual switch allocates corresponding data transmission links to the FTTR service according to the service type of the FTTR service, and performs data transmission based on the corresponding data transmission links. This can solve the congestion problem caused by a single link and effectively improve the bandwidth utilization of the link. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0017] Figure 1 This is a system diagram of a PON network in one embodiment of the present application; Figure 2This is another system diagram of a PON network in one embodiment of the present application; Figure 3 This is a schematic diagram of a transmission process between an FTTR host and an FTTR slave in one embodiment of the present application; Figure 4 This is a multi-link transmission diagram of a PON network in one embodiment of the present application; Figure 5 This is a schematic diagram of a load balancing processing method based on a PON network in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0019] It should be understood that in fiber to the room (FTTR) technology, one FTTR host can manage multiple FTTR slaves. The specific specifications of the managed FTTR slaves will vary depending on the manufacturer. Generally speaking. In an FTTR network, the number of FTTR slaves that need to be deployed may be much greater than the case where one FTTR host manages FTTR slaves. In this FTTR network, the FTTR host and / or FTTR slaves can communicate and connect with terminal devices such as mobile phones, laptops or tablets. When actually laying out the FTTR network, Ethernet (ETH) to the room is also supported. For example Figure 1 The figure shows an FTTR network application scenario under a PON network, including an FTTR host and multiple FTTR slaves, wherein the FTTR host or the FTTR slave can communicate with the terminal device. Specifically, the FTTR host can communicate with one or more terminal devices, the FTTR slave can communicate with one or more terminal devices, the FTTR host and the FTTR slaves can communicate with each other, and the FTTR slaves can also communicate with each other. Figure 1 The terminal devices include mobile phone 1, mobile phone 2, mobile phone 3, tablet 1 and other device types, and are not specifically limited.
[0020] In one embodiment, a PON-based network is provided. The PON network includes FTTR equipment, which includes an FTTR host or an FTTR slave. In this application, the FTTR equipment refers to the FTTR host or FTTR slave in the PON network. The FTTR equipment is deployed with a local control module (local control) and a virtual switch (vSwtich). Multiple network ports of the virtual switch of the FTTR device establish multiple data transmission links with multiple network ports of the virtual switch of another FTTR device. The local control module of the FTTR device is used to implement routing control.
[0021] Wherein, multiple network ports of the virtual switch of the FTTR device respectively establish multiple data transmission links with multiple network ports of the virtual switch of another FTTR device, mainly including the following situations: Multiple network ports of the virtual switch of the FTTR host respectively establish multiple data transmission links with multiple network ports of the virtual switch of another FTTR host; Multiple network ports of the virtual switch of the FTTR host respectively establish multiple data transmission links with multiple network ports of the virtual switch of one or more FTTR slaves; Multiple network ports of the virtual switch of the FTTR slave machine respectively establish multiple data transmission links with multiple network ports of the virtual switch of any other FTTR slave machine under the PON network.
[0022] For example, see also Figure 2 as well as Figure 3 As shown, in one embodiment, a PON network is provided, the PON network including at least one FTTR host and at least one FTTR slave communicating with each of the FTTR hosts, wherein: The FTTR host is deployed with a first local control module and a first virtual switch, and the FTTR slave is deployed with a second local control module and a second virtual switch. The first virtual switch and the second virtual switch serve as data planes (Data Plane) of the FTTR host and the FTTR slave, respectively. The first virtual switch and the second virtual switch each include a plurality of network ports (Inf); Among them, data transmission links are established between the multiple network ports of the first virtual switch and the multiple network ports of the second virtual switch respectively to establish multiple data transmission links. The first local control module serves as the control plane (Control Plane) of the FTTR host to control the routing distribution and status synchronization of the FTTR host, and the second local control module serves as the control plane of the FTTR slave to control the routing distribution and status synchronization of the FTTR slave.
[0023] It can be seen that in the PON network of the embodiment of the present application, the FTTR host and the FTTR slave are both deployed with a control module (Local control) and a virtual switch (vSwtich). In this article, for the convenience of distinguishing the description, the control modules of the FTTR host and the FTTR slave are respectively recorded as the first local control module and the second local control module, and the virtual switches of the FTTR host and the FTTR slave are respectively recorded as the first virtual switch and the second virtual switch.
[0024] It should be understood that the first local control module serves as the control plane of the FTTR host and is used to control the routing distribution and status synchronization of the FTTR host. This means that the first local control module is deployed in the FTTR host and is responsible for the learning of the PON network and the dissemination of routing information, including the learning and synchronization of MAC addresses, IP addresses, etc., and uses a control protocol to exchange this information in the PON network.
[0025] In addition, the embodiment of the present application also deploys a virtual switch in the FTTR host and the FTTR slave, so that the FTTR host or the FTTR slave can use the virtual switch as a data plane to be responsible for actual data forwarding, that is, the virtual switch is used to control how data packets are forwarded, encapsulated and decapsulated between the FTTR host and the FTTR slave; or how data packets are forwarded, encapsulated and decapsulated between the FTTR slave and the FTTR slave.
[0026] In an embodiment of the present application, the first virtual switch and the second virtual switch both include multiple network ports (Inf); the multiple network ports of the first virtual switch respectively establish data transmission links with the multiple network ports of the second virtual switch to establish multiple data transmission links.
[0027] As can be seen, in the embodiments of the present application, a PON network is provided. By deploying a virtual switch and a local control module on the FTTR host and the FTTR slave, the local control module and the virtual switch serve as the control plane and data plane, respectively, responsible for their respective tasks. This allows the multiple network ports of the first virtual switch of the FTTR host to establish data transmission links with the multiple network ports of the second virtual switch of the FTTR slave, thereby establishing multiple data transmission links. This method can realize FTTR multi-channel transmission, support multiple links between the FTTR host and the FTTR slave for simultaneous data transmission, expand the transmission link bandwidth, and ensure the high-speed network service requirements of the FTTR slave, thereby improving the user's Internet experience.
[0028] In one embodiment, continue to refer to Figure 2 and Figure 3 As shown, the first virtual switch and the second virtual switch each include a first network port, a second network port, and a third network port, i.e., three network ports (Inf); wherein, a first data transmission link is established between the first network port of the first virtual switch and the first network port of the second virtual switch, a second data transmission link is established between the second network port of the first virtual switch and the second network port of the second virtual switch, and a third data transmission link is established between the third network port of the first virtual switch and the third network port of the second virtual switch. For example, as Figure 3 As shown, the multiple data transmission links include optical fiber transmission links, Ethernet transmission links and WiFi transmission links.
[0029] It should be noted that the network port (Inf) can also be understood as a network interface, including a physical network card and a virtual interface, an interface for connecting FTTR devices (including FTTR host and FTTR slave), and an interface for connecting the user end. In the embodiment of the present application, multi-link transmission is designed for the link between devices in the local area network, for example, Figure 4As shown, optical fiber links connect the FTTR host and FTTR slaves, Ethernet (network cable) links connect the FTTR host and FTTR slaves, and Wi-Fi transmission links such as wireless 2.4G and wireless 5G links connect the FTTR host and FTTR slaves. This PON network includes an FTTR host (gateway leaf), FTTR slave 1 (leaf 1), and FTTR slave 2 (leaf 2). Data can be transmitted between the FTTR host (gateway leaf) and FTTR slave 1 (leaf 1), FTTR slave 2 (leaf 2), and between FTTR slave 1 (leaf 1) and FTTR slave 2 (leaf 2) via optical fiber transmission links, Ethernet transmission links, and Wi-Fi transmission links.
[0030] As can be seen, in the embodiments of this application, data can be transmitted from the FTTR slave to the FTTR master simultaneously via optical fiber, Ethernet cables, and WiFi transmission links. This eliminates the need for bandwidth to be limited to a single physical line, expands the transmission link bandwidth, and thus improves the user's Internet experience. Furthermore, multiple transmission links of other types are also possible, and the specifics are not limited here.
[0031] It should be noted that, in one embodiment, as an exemplary or explanatory description, the local control module may utilize RFC7432 EVPN technology for processing, while the virtual switch may utilize Open vSwitch (OVS). Specifically, the first and second local control modules may utilize RFC7432 EVPN technology for route distribution and state synchronization, while the first and second virtual switches utilize the Open vSwitch architecture. This separates the data plane and control plane of the PON network, enabling multi-link redundancy and transmission for FTTR. In other embodiments, the virtual switch may utilize other virtual switches, and the local control module may utilize other routing processing methods, which are not specifically limited in this embodiment.
[0032] It should be understood that RFC7432 EVPN is a next-generation VPN solution for carrying all services. It unifies the control planes of various VPN services and utilizes extended protocols to transmit Layer 2 or Layer 3 reachability information, achieving separation between the data plane and the control plane. Open vSwitch (OVS) is an open-source virtual switch widely used in the cloud computing industry, supporting high-quality multi-layer data forwarding. Therefore, in the embodiments of this application, the processing methods of EVPN can be used in conjunction with OVS to achieve multi-link interconnection between FTTR hosts and FTTR slaves, enabling automatic discovery of FTTR devices, automatic establishment of VLAN tunnels, and information exchange between FTTR devices (such as IP, MAC, Address Resolution Protocol (ARP), and routing information). This effectively reduces the flooding of broadcast, multicast, and location messages.
[0033] To achieve high-quality virtual switch functionality, OVS supports VLAN trunking, manages virtual and physical network cards, adds tunnel ports, supports network isolation and data forwarding, and provides remote management if necessary. Therefore, the embodiments of this application are based on EVPN combined with Open vSwitch, leveraging its inherent characteristics to conveniently implement the required functions, making multi-link transmission in PON networks more easily manageable and scalable.
[0034] In one embodiment, the first local control module may control the routing distribution and state synchronization of the FTTR host based on the Border Gateway Protocol (BGP), and the second local control module may control the routing distribution and state synchronization of the FTTR slave based on the Border Gateway Protocol (BGP). Exemplarily, the control protocol may include but is not limited to the Border Gateway Protocol (BGP). Exemplarily, Figure 2 as well as Figure 3The control protocol is taken as the Border Gateway Protocol BGP as an example, and no specific limitation is made. This application does not elaborate on the specific content of the BGP protocol. Similarly, the second local control module is deployed in the FTTR sub-machine to be responsible for the learning of the PON network and the dissemination of routing information, including the learning and synchronization of MAC addresses, IP addresses, etc., and uses the control protocol to exchange this information in the PON network. For example, the FTTR host or FTTR sub-machine can use the BGP protocol to transmit network information of the L2 layer (data link layer) and the L3 layer (network layer), such as MAC addresses, IP addresses, etc., to achieve distributed MAC learning without relying on the flooding mechanism of traditional switches to avoid unnecessary data traffic flooding and significantly reduce network load; in addition, the BGP extension protocol is used to achieve device information synchronization under the PON network, support dynamic learning of MAC addresses of user devices (such as mobile phones, smart homes), and avoid manual configuration. And allow multiple data transmission links to establish independent VLAN tunnels (such as Figure 2 As shown, the fiber transmission link is bound to VLAN 1, and Wi-Fi 5G is bound to VLAN 2. Furthermore, with EVPN's multi-homing feature, the FTTR host and slave devices support multipath redundancy and dynamic synchronization of redundancy across devices, enabling load balancing and failover across multiple transmission links. For example, if the primary link fails, dynamic MAC / IP table synchronization and failover to the backup link ensures recovery time of less than 50ms, ensuring service continuity.
[0035] For example, Figure 2 As shown in the figure, the FTTR host can establish a tunnel Tunnel2 with FTTR slave 1, the FTTR host can establish a tunnel Tunnel3 with FTTR slave 2, and the FTTR slave 1 can establish a tunnel Tunnel1 with FTTR slave 2. It should be noted that the tunnel can be understood as a virtual network channel established between the host and the slave. Tunnel transmission between FTTR devices is as follows: Figure 3 As shown, Figure 3As shown, the FTTR host establishes a data plane with the FTTR slave through VLAN1 (virtual LAN 1) via port Inf of the virtual switch OVS to realize data transmission, which is used for data transmission at the L2 layer (data link layer); the FTTR host establishes a data plane with the FTTR slave through VLAN2 (virtual LAN 2) via port Inf of the virtual switch OVS to realize data transmission, which is used for data transmission at the L2 layer (data link layer); the FTTR host establishes a data plane with the FTTR slave through routing via port Inf of the virtual switch OVS to realize data transmission, which is used for data transmission at the L3 layer (network layer). The FTTR host also establishes a control plane with the FTTR slave based on the extended protocol BPG to realize route distribution and status synchronization.
[0036] In one embodiment, continue as Figure 2 As shown, the at least one FTTR sub-machine includes a first FTTR sub-machine and a second FTTR sub-machine, and the first FTTR sub-machine and the second FTTR sub-machine respectively refer to any two FTTR sub-machines in the PON network; wherein, the multiple network ports of the second virtual switch in the first FTTR sub-machine respectively establish data transmission links with the multiple network ports of the second virtual switch in the second FTTR sub-machine.
[0037] That is to say, if Figure 2 or Figure 3 As shown, in the PON network provided by the embodiments of the present application, multiple data transmission links can be established between FTTR slaves by deploying local control modules and virtual switches. Tunnel transmission between FTTR slaves can also achieve transmission separation between the control plane and the data plane. The process for FTTR host and FTTR slave is also applicable to tunnel transmission between FTTR slaves. For details, please refer to the aforementioned tunnel transmission between FTTR host and FTTR slaves, which will not be explained in detail here.
[0038] It should be noted that the virtual switch OVS also supports binding multiple physical network cards of the FTTR host or FTTR slave into logical links, prioritizing traffic to local physical links, and customizing drivers for hardware acceleration.
[0039] In an embodiment of the present application, based on the above-mentioned PON network, in order to improve bandwidth utilization, the embodiment of the present application further provides a load balancing processing method based on the above-mentioned PON network. The PON network includes an FTTR device, the FTTR device includes an FTTR host or an FTTR slave, the FTTR device is deployed with a local control module and a virtual switch, and multiple network ports of the virtual switch of the FTTR device respectively establish multiple data transmission links with multiple network ports of the virtual switch of another FTTR device. For specific details about the content of the PON network, please refer to the above description. Based on this PON network, the method includes the following steps: S101, the virtual switch determines the service type of the FTTR service; S102: The virtual switch allocates a corresponding data transmission link to the FTTR service according to the service type of the FTTR service, and performs data transmission based on the corresponding data transmission link.
[0040] For example, multiple network ports of the virtual switch of the FTTR host respectively establish multiple data transmission links with multiple network ports of the virtual switch of another FTTR host; in this case, the virtual switch of the FTTR host will determine the service type of the FTTR service between the two FTTR hosts, and then the FTTR host will allocate a corresponding data transmission link (one of the multiple data transmission links between the two FTTR hosts) to the FTTR service according to the service type of the FTTR service, and perform data transmission based on the corresponding data transmission link.
[0041] For another example, multiple network ports of the virtual switch of the FTTR host respectively establish multiple data transmission links with multiple network ports of the virtual switches of one or more FTTR slaves; in this case, the virtual switch of the FTTR host will determine the service type of the FTTR service between the FTTR host and the FTTR slave, and then the FTTR host will allocate a corresponding data transmission link (one of the multiple data transmission links between the FTTR host and the FTTR slave) to the FTTR service according to the service type of the FTTR service, and perform data transmission based on the corresponding data transmission link.
[0042] For another example, multiple network ports of the virtual switch of the FTTR sub-machine respectively establish multiple data transmission links with multiple network ports of the virtual switch of one or more FTTR sub-machines; in this case, the virtual switch of the FTTR sub-machine will determine the service type of the FTTR service between the two FTTR sub-machines, and then the FTTR sub-machine will allocate a corresponding data transmission link (one of the multiple data transmission links between the FTTR sub-machines) to the FTTR service according to the service type of the FTTR service, and perform data transmission based on the corresponding data transmission link.
[0043] It can be seen that in this embodiment, a load balancing processing method based on the PON network is provided. The FTTR virtual switch will allocate corresponding data transmission links to the FTTR business according to the business type of the FTTR business. In addition to expanding the transmission link bandwidth and ensuring the business needs of the high-speed network of the FTTR equipment, the deployed virtual switch is used to allocate corresponding data transmission links to the FTTR business according to the business type of the FTTR business, and data transmission is performed based on the corresponding data transmission link, which can solve the congestion problem caused by a single link and effectively improve the broadband utilization rate of the link.
[0044] In one embodiment, the service type of the FTTR service includes a first service type, a second service type, and a third service type with decreasing priorities, and the local control module allocates a corresponding data transmission link to the FTTR service according to the service type of the FTTR service, including: The virtual switch allocates a first data transmission link for the FTTR service of the first service type, allocates a second data transmission link for the FTTR service of the second service type, and allocates a third data transmission link for the FTTR service of the third service type.
[0045] It should be noted that the first service type, the second service type and the third service type with decreasing priorities can be understood as high-priority service, medium-priority service and low-priority service.
[0046] Illustratively, as an example, the first data transmission link, the second data transmission link, and the third data transmission link are respectively an optical fiber transmission link, an Ethernet transmission link, and a WiFi transmission link.
[0047] For example, as an application scenario example, the first service type includes 8K video service and cloud gaming service, the second service type includes video conferencing service, and the third service type includes file download service.
[0048] In this embodiment, compared with the traditional FTTR single-link solution, the embodiment of the present application can meet the requirements of FTTR business scenarios such as high bandwidth and low latency such as 8K video and cloud gaming through multi-link aggregation and intelligent scheduling.
[0049] In one embodiment, the virtual switch reserves bandwidth resources greater than or equal to the first bandwidth resource for the first service type's FTTR service, dynamically allocates bandwidth resources greater than or equal to the second bandwidth resource and with an allowed latency less than the first duration for the second service type's FTTR service, and fills idle bandwidth resources for the third service type's FTTR service. Exemplarily, the first bandwidth resource is 120 Mbps, the second bandwidth resource is 50 Mbps, and the first duration is 30 ms.
[0050] It can be seen that in this embodiment, differentiated processing strategies can be defined through the virtual switch: high-priority services (8K video and cloud gaming) have reserved bandwidth ≥120Mbps; medium-priority services (such as video conferencing) are dynamically allocated bandwidth ≥50Mbps, with an allowed latency of <30ms; low-priority services (such as file downloads) fill idle bandwidth to avoid preempting critical resources.
[0051] In one embodiment, the method further comprises: The virtual switch uses an artificial intelligence (AI) load balancing algorithm to monitor the link status of the multiple data transmission links in real time, where the link status includes at least one of bandwidth, latency, and packet loss rate; The virtual switch dynamically switches the data transmission link of the service traffic according to the link status.
[0052] In this embodiment, the FTTR device's virtual switch also incorporates an AI load balancing algorithm to monitor the link status of the multiple data transmission links in real time, thereby dynamically adjusting traffic paths. For example, if interference is detected on the WiFi transmission link, cloud gaming traffic is automatically switched to the fiber transmission link.
[0053] In other embodiments, the virtual switch of the FTTR device can also ensure high reliability and security of each of the multiple transmission links based on the EVPN loop suppression mechanism technology and VLAN tunnel isolation method.
[0054] For example, EVPN loop suppression mechanisms include but are not limited to split horizon (Split Horizon) or STP (Spanning Tree Protocol) protocols to avoid traffic loops. Figure 2 As shown in the figure, VLAN tunnel isolation means that in a network environment with multiple VLANs (such as VLAN1 and VLAN2), data flows between different VLANs are isolated from each other and do not interfere with each other during transmission.
[0055] In one embodiment, in this method, the local control module of the FTTR device further allows multiple data transmission links to establish independent VLAN tunnels (such as Figure 2 As shown, the fiber transmission link is bound to VLAN 1, and Wi-Fi 5G is bound to VLAN 2. Furthermore, EVPN's Multi-homing feature enables dynamic synchronization of redundancy across devices, enabling multi-link load balancing and failover. For example, if the primary link between the FTTR host and FTTR slave fails, dynamic MAC / IP table synchronization and failover to the backup link reduce recovery time to less than 50ms, ensuring FTTR service continuity.
[0056] In one embodiment, the method utilizes the Spanning Tree Protocol (STP) and flow table rules of the virtual switch OVS to prevent broadcast storms when conducting elections based on EVPN. It should be understood that in a PON network, repeated forwarding of data packets between multiple nodes can create forwarding loops, which can ultimately lead to broadcast storms, resource exhaustion, and service interruptions. In this embodiment, the Spanning Tree Protocol (STP) and flow table rules of the virtual switch OVS are combined to prevent broadcast storms.
[0057] In one embodiment, the method further comprises: The virtual switch implements traffic distribution of the multiple data transmission links based on source IP hash or quintuple hash.
[0058] In this embodiment, Source IP Hash and Five-Tuple Hash are two commonly used hashing methods in load balancing and traffic scheduling, respectively. In the embodiments of the present application, the above two methods can be used to distribute or process traffic (e.g., data packets) according to certain rules to rationally and effectively utilize multiple data transmission links and maximize bandwidth utilization. Source IP Hash means that the local control module can perform hash calculations based on the source IP address of the data packet and distribute traffic to different data transmission links based on the hash value. For example, it can ensure that mobile phones are always transmitted through optical fiber transmission links. In this way, traffic can be distributed according to the source IP, thereby ensuring a consistent experience for single-connected devices (such as mobile phones).
[0059] Quintuple hashing means that the local control module can perform hash calculations based on the five key fields of the data packet, including: source IP address (Source IP), destination IP address (Destination IP), source port number (Source Port), destination port number (Destination Port), and protocol type (Protocol). These fields determine the uniqueness of the traffic, so the traffic can be more accurately allocated to different data transmission links to achieve load balancing and other processing. For example, links are dynamically allocated according to FTTR service flows (source / destination IP, port) to maximize bandwidth utilization. This method is more sophisticated than source IP hashing. It not only considers the source IP, but also determines the data transmission path of the traffic based on the port and protocol, which can better manage sessions and connections. In addition, the load balancing of the traffic is more even, reducing the situation where a single source IP has concentrated access.
[0060] In one embodiment, in the method, the virtual switch may dynamically adjust path selection of the plurality of data transmission links based on utilizing an OpenFlow flow table.
[0061] It should be noted that the OpenFlow flow table is a list of rules used in the FTTR host and FTTR slave for matching data packets and making action decisions. In the embodiments of the present application, the FTTR host and FTTR slave use the OpenFlow flow table to dynamically adjust path selection. For example, a high-priority flow table entry can be set for the video stream, forcing it to pass through the lowest-latency link among multiple data transmission links, thereby improving transmission efficiency. For example, the video stream can be forced to pass through the fiber link (latency <10ms, bandwidth ≥120Mbps), while the IoT control message is prioritized through Wi-Fi 2.4G (wide coverage, latency <50ms), thereby achieving differentiated quality of service.
[0062] In one embodiment, in this method, the virtual switch can also customize the driver, for example, using DPDK (DataPlane Development Kit) or SmartNIC (SmartNIC) to offload data forwarding, thereby reducing the CPU load of the FTTR device.
[0063] In one embodiment, the method further includes controlling the routing distribution and state synchronization of the FTTR device based on the Border Gateway Protocol (BGP), including the learning and synchronization of MAC addresses, IP addresses, etc., and using the control protocol to exchange this information in the PON network. For example, the FTTR host or FTTR slave can use the BGP protocol to transmit network information at the L2 layer (data link layer) and L3 layer (network layer), such as MAC addresses, IP addresses, etc., to achieve distributed MAC learning without relying on the flooding mechanism of traditional switches, thereby avoiding unnecessary data traffic flooding and significantly reducing network load. The control protocol may include, but is not limited to, the Border Gateway Protocol (BGP). For example, Figure 2 as well as Figure 3 Taking the Border Gateway Protocol (BGP) as an example, the control protocol is not limited to specific protocols. Device information synchronization in the PON network is achieved through the BGP extension protocol, supporting dynamic learning of MAC addresses of user devices (such as mobile phones and smart homes), eliminating manual configuration.
[0064] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean 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 this application.
[0065] Correspondingly, in one embodiment, a FTTR device for a PON network is provided, characterized in that the FTTR device includes an FTTR host or an FTTR slave, the FTTR device is deployed with a local control module and a virtual switch, and multiple network ports of the virtual switch of the FTTR device respectively establish multiple data transmission links with multiple network ports of the virtual switch of another FTTR device, wherein: the virtual switch is used to determine the service type of the FTTR service, and according to the service type of the FTTR service, allocate a corresponding data transmission link to the FTTR service, and perform data transmission based on the corresponding data transmission link.
[0066] It can be seen that the embodiment of the present application provides an FTTR device, which not only expands the bandwidth of the transmission link and ensures the business needs of the high-speed network of the FTTR device, but also utilizes the deployed virtual switch to allocate corresponding data transmission links to the FTTR business according to the business type of the FTTR business, and transmits data based on the corresponding data transmission link, which can solve the congestion problem caused by a single link and effectively improve the broadband utilization of the link.
[0067] In combination with the above-mentioned FTTR equipment embodiment, in one embodiment, the service types of the FTTR service include a first service type, a second service type, and a third service type with decreasing priorities, and the virtual switch also allocates a first data transmission link for the FTTR service of the first service type, a second data transmission link for the FTTR service of the second service type, and a third data transmission link for the FTTR service of the third service type.
[0068] In combination with the above FTTR device embodiment, in one embodiment, the first data transmission link, the second data transmission link and the third data transmission link are respectively an optical fiber transmission link, an Ethernet transmission link and a WiFi transmission link.
[0069] In combination with the above-mentioned FTTR device embodiment, in one embodiment, the first service type includes 8K video service and cloud gaming service, the second service type includes video conferencing service, and the third service type includes file download service.
[0070] In combination with the above-mentioned FTTR device embodiment, in one embodiment, the virtual switch reserves bandwidth resources ≥ the first bandwidth resources for the FTTR service of the first service type, dynamically allocates bandwidth resources ≥ the second bandwidth resources for the FTTR service of the second service type and allows a delay < the first duration, and fills idle bandwidth resources for the FTTR service of the third service type.
[0071] In combination with the above FTTR device embodiment, in one embodiment, the first bandwidth resource is 120 Mbps, the second bandwidth resource is 50 Mbps, and the first duration is 30 ms.
[0072] In conjunction with the above-mentioned FTTR device embodiment, in one embodiment, the virtual switch uses an artificial intelligence (AI) load balancing algorithm to monitor the link status of the multiple data transmission links in real time, where the link status includes at least one of bandwidth, latency, and packet loss rate; The virtual switch dynamically switches the transmission link of the service traffic according to the link status.
[0073] In combination with the above-mentioned FTTR device embodiment, in one embodiment, the virtual switch implements traffic distribution of the multiple data transmission links based on source IP hash or quintuple hash.
[0074] For the relevant contents of the FTTR host or FTTR slave, please refer to the relevant description of the aforementioned embodiment. To avoid redundancy, it will not be further described in this embodiment.
[0075] In one embodiment, a fiber-to-tr (FTTR) device is provided, which can be a FTTR host or a FTTR slave. The FTTR device includes a processor, memory, and a network interface connected via a system bus. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and computer program stored in the non-volatile storage medium. The network interface of the processor can be used to connect and communicate with external FTTR devices. When executed by the processor, the computer program implements the functions of an FTTR host or FTTR slave in a PON network as described in any of the aforementioned embodiments.
[0076] In one embodiment, an FTTR device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the functions or steps of the FTTR host or FTTR slave in a load balancing processing method based on a PON network as described in any of the aforementioned embodiments are implemented.
[0077] In one embodiment, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the functions or steps of the FTTR host or FTTR slave in a load balancing processing method based on a PON network in any of the aforementioned embodiments are implemented.
[0078] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may 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 many forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double 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), etc.
[0079] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by 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.
[0080] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A load balancing processing method based on a PON network, characterized in that: The PON network includes an FTTR device, the FTTR device includes an FTTR host or an FTTR slave, the FTTR device is deployed with a local control module and a virtual switch, multiple network ports of the virtual switch of the FTTR device respectively establish multiple data transmission links with multiple network ports of the virtual switch of another FTTR device, and the method includes: The virtual switch determines the service type of the FTTR service; The virtual switch allocates a corresponding data transmission link to the FTTR service according to the service type of the FTTR service, and performs data transmission based on the corresponding data transmission link.
2. The load balancing processing method according to claim 1, characterized in that: The service type of the FTTR service includes a first service type, a second service type, and a third service type with decreasing priorities. The local control module allocates a corresponding data transmission link to the FTTR service according to the service type of the FTTR service, including: The virtual switch allocates a first data transmission link for the FTTR service of the first service type, allocates a second data transmission link for the FTTR service of the second service type, and allocates a third data transmission link for the FTTR service of the third service type.
3. The load balancing processing method according to claim 2, characterized in that: The first data transmission link, the second data transmission link and the third data transmission link are respectively an optical fiber transmission link, an Ethernet transmission link and a WiFi transmission link.
4. The load balancing processing method according to claim 3, characterized in that: The first service type includes 8K video service and cloud gaming service, the second service type includes video conferencing service, and the third service type includes file download service.
5. The load balancing processing method according to claim 4, characterized in that: The method further comprises: The virtual switch reserves bandwidth resources ≥ first bandwidth resources for the FTTR service of the first service type, dynamically allocates bandwidth resources ≥ second bandwidth resources and allows delay < first duration for the FTTR service of the second service type, and fills idle bandwidth resources for the FTTR service of the third service type.
6. The load balancing processing method according to claim 5, characterized in that: The first bandwidth resource is 120 Mbps, the second bandwidth resource is 50 Mbps, and the first duration is 30 ms.
7. The load balancing processing method according to any one of claims 1 to 6, characterized in that: The method further comprises: The virtual switch uses an artificial intelligence (AI) load balancing algorithm to monitor the link status of the multiple data transmission links in real time, where the link status includes at least one of bandwidth, latency, and packet loss rate; The virtual switch dynamically switches the transmission link of the service traffic according to the link status.
8. The load balancing processing method according to claim 3, characterized in that: The method further comprises: The virtual switch implements traffic distribution of the multiple data transmission links based on source IP hash or quintuple hash.
9. A FTTR device for a PON network, characterized in that: The FTTR device includes an FTTR host or an FTTR slave, and the FTTR device is deployed with a local control module and a virtual switch. Multiple network ports of the virtual switch of the FTTR device respectively establish multiple data transmission links with multiple network ports of the virtual switch of another FTTR device, wherein: The virtual switch is used to determine the service type of the FTTR service, and allocate a corresponding data transmission link to the FTTR service according to the service type of the FTTR service, and perform data transmission based on the corresponding data transmission link.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the function of the load balancing processing method according to any one of claims 1 to 9 is realized.