Fttr network roaming method, main gateway, system, storage medium and program product
By establishing a VXLAN Layer 2 bridge tunnel in the FTTR network, the data interruption problem caused by wireless terminal roaming was solved, seamless data stream forwarding was achieved, and the continuity and losslessness of data transmission were ensured.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZTE CORP
- Filing Date
- 2026-06-16
- Publication Date
- 2026-07-31
AI Technical Summary
In FTTR wireless LANs, when a wireless terminal (STA) roams from one main gateway to another, the original data flow path is interrupted, resulting in data packet loss and increased latency, which is particularly prominent in application scenarios with high real-time requirements.
In a Fiber to the Room (FTTR) network, seamless data flow switching is achieved by pre-establishing a Layer 2 bridge tunnel based on the Virtual Extended Local Area Network (VXLAN) protocol between two main gateways. Specifically, this involves deleting the forwarding table entries of the old main gateway when the terminal is roaming, and sending data packets to the new main gateway through the target tunnel. The new main gateway then forwards the data based on the updated forwarding table entries.
It enables seamless switching of data streams for wireless terminals during roaming, solving the data latency and interruption problems caused by traditional roaming and ensuring the continuity and losslessness of data transmission.
Smart Images

Figure CN122496882A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to an FTTR network roaming method, a main gateway, a system, a storage medium, and a program product. Background Technology
[0002] FTTR (Fiber To The Room) extends fiber optic cables from the communication base station to every corner of a home, providing home users with extremely high-speed internet access.
[0003] In the current FTTR wireless LAN architecture, when a wireless terminal (STA) roams from one main gateway to another, the original data flow path is interrupted. Typically, after roaming, the data flow needs to re-establish a connection or be forwarded via upper-layer devices, leading to packet loss and increased latency. This is particularly pronounced in applications with high real-time requirements, such as video streaming, VoIP (Voice over Internet Protocol), and online gaming, where data interruption during roaming is especially significant. Summary of the Invention
[0004] This disclosure provides an FTTR network roaming method, a main gateway, a system, a storage medium, and a program product.
[0005] In a first aspect, embodiments of this disclosure provide an FTTR network roaming method applied to a first master gateway in a fiber-to-the-room (FTTR) network. The method includes: in response to a terminal disconnecting from the first master gateway, deleting a first forwarding table entry for the terminal in a first forwarding database; in response to receiving a first data packet to be sent to the terminal and not finding a corresponding first forwarding table entry for the first data packet in the first forwarding database, sending the first data packet to a second master gateway through a target tunnel, so that the second master gateway determines a target port based on the second forwarding table entry for the terminal in the second forwarding database and the destination address in the first data packet, and sends the first data packet to the terminal corresponding to the destination address through the target port; wherein, the target tunnel is a pre-established Layer 2 bridge tunnel between the first master gateway and the second master gateway implemented based on the Virtual Extended Local Area Network (VXLAN) protocol, and the second master gateway is the master gateway associated with the terminal after roaming; the first data packet is sent by the optical line terminal under the following condition: during the roaming process of the terminal from the first master gateway to the second master gateway, the third forwarding table entry corresponding to the terminal stored in the optical line terminal is not updated based on the terminal's roaming.
[0006] Secondly, this disclosure also provides an FTTR network roaming method applied to a second main gateway in a fiber-to-the-room (FTTR) network. The method includes: in response to a terminal roaming to the second main gateway, adding a second forwarding table entry for the terminal to a second forwarding database; receiving a first data packet sent by a first main gateway to the terminal via a target tunnel, wherein the target tunnel is a pre-established Layer 2 bridge tunnel between the first and second main gateways based on the Virtual Extended Local Area Network (VXLAN) protocol; the first data packet is sent to the first main gateway by the optical line terminal under the following conditions: during the roaming process of the terminal from the first main gateway to the second main gateway, the third forwarding table entry corresponding to the terminal stored in the optical line terminal is not updated based on the terminal's roaming; determining a target port based on the terminal's second forwarding table entry in the second forwarding database and the destination address in the first data packet, and sending the first data packet to the terminal corresponding to the destination address through the target port.
[0007] Thirdly, embodiments of this disclosure also provide a main gateway, which includes a memory and a processor; the memory stores a computer program that can be executed by the processor, and when the computer program is executed by the processor, it implements the FTTR network roaming method of the first aspect or the second aspect.
[0008] Fourthly, this disclosure also provides an FTTR network system, which includes at least a first main gateway, a second main gateway, and a terminal. The first main gateway is used to implement the FTTR network roaming method of the first aspect, the second main gateway is used to implement the FTTR network roaming method of the second aspect, and the terminal is associated with the first main gateway or the second main gateway.
[0009] Fifthly, embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the FTTR network roaming method of the first or second aspect.
[0010] In a sixth aspect, embodiments of this disclosure also provide a computer program product, which includes a computer program that, when executed by a processor, implements the FTTR network roaming method of the first or second aspect.
[0011] The FTTR network roaming method of this disclosure is applied to a first master gateway in a fiber-to-the-room (FTTR) network. In response to a terminal disconnecting from the first master gateway, the method deletes the terminal's first forwarding table entry in the first forwarding database. In response to receiving a first data packet intended for transmission to the terminal and not finding a corresponding first forwarding table entry in the first forwarding database, the method sends the first data packet to a second master gateway via a target tunnel. This allows the second master gateway to determine a target port based on the terminal's second forwarding table entry in the second forwarding database and the destination address in the first data packet, and then sends the first data packet to the terminal corresponding to the destination address via the target port. The target tunnel is a pre-established Layer 2 bridge tunnel between the first and second master gateways, implemented using the Virtual Extended Local Area Network (VXLAN) protocol. The second master gateway is the master gateway associated with the terminal after roaming. The first data packet is sent by the optical line terminal under the following condition: during the terminal's roaming process from the first master gateway to the second master gateway, the terminal's corresponding third forwarding table entry stored in the optical line terminal is not updated based on the terminal's roaming. This embodiment of the disclosure establishes a VXLAN Layer 2 bridge tunnel between two main gateways. During the process of a terminal roaming from one main gateway to another, the two main gateways can transmit data streams based on the VXLAN Layer 2 bridge tunnel. The data streams can be seamlessly switched, solving the data latency and interruption problems caused by traditional wireless device roaming and achieving lossless roaming. Attached Figure Description
[0012] In the accompanying drawings of the embodiments disclosed herein:
[0013] Figure 1 A schematic diagram of the system architecture of the FTTR network roaming method provided in the embodiments of this disclosure;
[0014] Figure 2 A flowchart illustrating the FTTR network roaming method on the first main gateway side provided in this embodiment of the disclosure;
[0015] Figure 3 A flowchart illustrating the FTTR network roaming method on the second main gateway side provided in this embodiment of the disclosure;
[0016] Figure 4 A signaling diagram illustrating the process of establishing a VXLAN tunnel and forwarding data streams before STA roaming, provided as a specific example of this disclosure;
[0017] Figure 5 A signaling diagram illustrating the FTTR network roaming procedure, provided as another specific example of this disclosure;
[0018] Figure 6 This is a schematic diagram of the module composition of the main gateway provided in an embodiment of this disclosure. Detailed Implementation
[0019] To enable those skilled in the art to better understand the technical solutions of this disclosure, the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings.
[0020] The present disclosure will be described more fully below with reference to the accompanying drawings; however, the embodiments shown may be embodied in different forms, and the present disclosure should not be construed as limited to the embodiments set forth below. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will enable those skilled in the art to fully understand the scope of the disclosure.
[0021] The accompanying drawings are provided to further illustrate this disclosure and form part of the specification. They are used together with the detailed embodiments to explain this disclosure and do not constitute a limitation thereof. These and other features and advantages will become more apparent to those skilled in the art from the description of detailed embodiments with reference to the accompanying drawings.
[0022] Unless otherwise specified, each embodiment and feature of this disclosure may be used individually or in combination with other embodiments and features thereof.
[0023] Those skilled in the art will understand that various changes in form and detail may be made to the embodiments of this disclosure without departing from the scope of this disclosure as set forth by the appended claims.
[0024] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to limit the disclosure. The term "and / or" as used in this disclosure includes any and all combinations of one or more of the associated enumerated entries. The singular forms "a" and "the" as used in this disclosure are also intended to include the plural forms, unless the context clearly indicates otherwise. The terms "comprising," "made of," etc., as used in this disclosure specify the presence of the stated feature, integral, step, operation, element, and / or component, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof.
[0025] Unless otherwise specified, all terms used in this disclosure (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined in this disclosure.
[0026] This disclosure provides an FTTR network roaming method. Figure 1 This is a schematic diagram of the system architecture of the FTTR network roaming method provided in the embodiments of this disclosure, such as... Figure 1As shown, the system includes a controller (IP address: 192.168.2.20), an optical line terminal (OLT), a first main gateway (IP address: 192.168.2.30), a second main gateway (IP address: 192.168.2.40), and wireless terminals (STAs) (IP address: 192.168.10.5). The system is applied in an FTTR scenario. In this scenario, the controller is a centralized control node, which can be a Mesh (wireless mesh network) controller used to control STA roaming and manage the main gateways. The first and second main gateways are access points (APs), which can be, for example, optical modems, optical routers, etc. STAs can include, but are not limited to: mobile terminals such as mobile phones, tablets, and laptops; smart home devices such as smart TVs, smart speakers, and cameras; and office equipment such as wireless printers.
[0027] The controller connects to the OLT via a LAN (Local Area Network) link. The OLT connects to the first and second main gateways via two independent UDP (User Datagram Protocol) links. Initially, the STA is connected to the first main gateway. Subsequently, the STA roams from the first main gateway to the second main gateway. To ensure uninterrupted data transmission during the STA's roaming process, a VXLAN (Virtual Extensible Local Area Network) Layer 2 bridge tunnel (hereinafter referred to as the VXLAN tunnel) is pre-established between the first and second main gateways. After receiving a data packet destined for the STA, the first main gateway encapsulates the data packet through the VXLAN tunnel and forwards it to the second main gateway. The second main gateway then decapsulates the data packet and sends it to the STA, achieving seamless data forwarding.
[0028] This disclosure provides an FTTR network roaming method, applied to... Figure 1 The first main gateway in the system shown, Figure 2 This is a flowchart illustrating the FTTR network roaming method on the first main gateway side provided in an embodiment of this disclosure, combined with... Figure 1 and Figure 2 As shown, the FTTR network roaming method includes the following steps:
[0029] Step S11: In response to the terminal disconnecting from the first main gateway, delete the terminal's first forwarding table entry in the first forwarding database.
[0030] If a STA disconnects from the first primary gateway, the first primary gateway will delete the STA's first forwarding table entry from its locally stored First Forwarding Database (FDB). The first forwarding table entry is the basis for the first primary gateway to forward packets. In this step, the STA's disconnection from the first primary gateway triggers the first primary gateway to actively delete the STA's locally stored first forwarding table entry, ensuring that subsequent packets sent to the STA can be successfully forwarded. It should be noted that if the STA successfully associates with the second primary gateway at this time, it means that the STA has successfully roamed from the first primary gateway to the second primary gateway.
[0031] Step S12: In response to receiving a first data packet for sending to a terminal and not finding a first forwarding table entry corresponding to the first data packet in the first forwarding database, the first data packet is sent to the second main gateway through the target tunnel, so that the second main gateway determines the target port based on the second forwarding table entry of the terminal in the second forwarding database and the destination address in the first data packet, and sends the first data packet to the terminal corresponding to the destination address through the target port.
[0032] The target tunnel is a pre-established Layer 2 bridge tunnel between the first and second main gateways, implemented using the Virtual Extended Local Area Network (VXLAN) protocol. The second main gateway is the main gateway associated with the terminal after roaming. The first data packet is sent by the optical line terminal under the following condition: during the roaming process of the terminal from the first main gateway to the second main gateway, the third forwarding table entry corresponding to the terminal stored in the optical line terminal is not updated based on the terminal's roaming.
[0033] Before the STA disconnects from the first main gateway, the STA sends a data request to the OLT through the first main gateway, and the OLT sends a data request to the server ( Figure 1 (Not shown in the figure) Sending a data request, the server can be a business server. Based on the data request, the server returns the corresponding first data packet (i.e., data response) to the OLT and sends the first data packet to the first main gateway.
[0034] During the extremely short period between the start of roaming handover (i.e., the STA disconnects from the first primary gateway) and successful roaming (i.e., the STA connects to the second primary gateway), the third forwarding table entry corresponding to the STA stored locally on the OLT has not yet been updated. The outgoing port information of this third forwarding table entry still points to the first primary gateway. In this situation, the OLT sends the downlink data packet (i.e., the first data packet) destined for the STA to the first primary gateway based on the third forwarding table entry. The OLT is the core forwarding device on the network side, and the first / second primary gateways are edge forwarding devices on the user side. In this step, the first primary gateway receives the first data packet through the UDP link with the OLT. The first data packet is a UDP stream sent by the OLT to the STA. The first primary gateway queries the forwarding table entry for the STA in the first forwarding database locally. If no match is found (i.e., no corresponding first forwarding table entry for the first data packet is found in the first forwarding database), the first data packet is sent to the second primary gateway through a pre-established VXLAN tunnel. The second primary gateway then queries the second forwarding table entry for the STA in its locally stored second forwarding database based on the destination address in the first data packet, determines the target port of the second primary gateway, and sends the first data packet to the STA corresponding to the destination address based on that target port. It should be noted that at this point, the STA has successfully roamed to the second primary gateway.
[0035] VXLAN tunnels are used to carry Layer 2 data frames across gateways, utilizing the Layer 3 IP (Internet Protocol) network as the transport layer to transparently carry Layer 2 Ethernet frames. Logically, a VXLAN tunnel extends the Layer 2 domain, presenting itself as a transparent Layer 2 bridging link to the STA (Station), thus achieving Layer 2 forwarding. In terms of implementation, VXLAN tunnels rely on Layer 3 IP encapsulation and routing to establish the tunnel on the physical network, therefore involving Layer 3 forwarding. Logically, VXLAN tunnels extend the Layer 2 network, ensuring that the STA remains within the same Layer 2 broadcast domain before and after roaming. Therefore, the STA's IP address remains unchanged, the UDP session can be maintained, and zero packet loss can be achieved.
[0036] The FTTR network roaming method of this disclosure is applied to a first master gateway in a fiber-to-the-room (FTTR) network. The FTTR network roaming method includes: in response to a terminal disconnecting from the first master gateway, deleting a first forwarding table entry for the terminal in a first forwarding database; in response to receiving a first data packet to be sent to the terminal and not finding a corresponding first forwarding table entry in the first forwarding database, sending the first data packet to a second master gateway through a target tunnel, so that the second master gateway determines a target port based on the terminal's second forwarding table entry in the second forwarding database and the destination address in the first data packet, and sends the first data packet to the terminal corresponding to the destination address through the target port; wherein, the target tunnel is a pre-established Layer 2 bridge tunnel between the first and second master gateways implemented based on the Virtual Extended Local Area Network (VXLAN) protocol, and the second master gateway is the master gateway associated with the terminal after roaming; the first data packet is sent by the optical line terminal under the following condition: during the roaming process of the terminal from the first master gateway to the second master gateway, the third forwarding table entry corresponding to the terminal stored in the optical line terminal is not updated based on the terminal's roaming. This embodiment of the disclosure establishes a VXLAN Layer 2 bridge tunnel between two main gateways. During the process of a terminal roaming from one main gateway to another, the two main gateways can transmit data streams based on the VXLAN Layer 2 bridge tunnel. The data streams can be seamlessly switched, solving the data latency and interruption problems caused by traditional wireless device roaming and achieving lossless roaming.
[0037] In some embodiments, sending a first data packet to a second main gateway via a target tunnel may include the following steps: flooding the first data packet to send the first data packet to the second main gateway via the target tunnel.
[0038] In this step, the first data packet is flooded so that, assuming the destination MAC address (Media Access Control Address) of the first data packet is the terminal's MAC address, the first data packet is encapsulated to generate a target packet, which is then sent to the second main gateway through the target tunnel. By flooding the first data packet and sending it to the second main gateway through the target tunnel, a small amount of network bandwidth is sacrificed in exchange for seamless continuity of roaming services within the time difference of forwarding table synchronization.
[0039] In some embodiments, before deleting the first forwarding table entry of the terminal in the first forwarding database in response to the terminal disconnecting from the first main gateway, the FTTR network roaming method may further include the step of establishing a target tunnel. The step of establishing a target tunnel includes: in response to receiving a first VXLAN tunnel configuration instruction, creating a first VXLAN interface, configuring the bridge port attribute of the first VXLAN interface as a local area network attribute, and configuring the interface mode of the first VXLAN interface as Internet mode, so as to establish a target tunnel (i.e., a VXLAN tunnel) between the first VXLAN interface and the second VXLAN interface of the second main gateway.
[0040] In some embodiments, the user sends a first VXLAN tunnel configuration command to the first main gateway through the vendor platform. The first main gateway creates a first VXLAN interface based on the configuration information carried in the first VXLAN tunnel configuration command, configures the bridge port attribute of the first VXLAN interface to a local area network (LAN) attribute, and configures the interface mode of the first VXLAN interface to Internet mode, thereby establishing a VXLAN tunnel between the first VXLAN interface and the second VXLAN interface of the second main gateway. It should be noted that the second VXLAN interface of the second main gateway also requires the user to send a second VXLAN tunnel configuration command to the second main gateway through the vendor platform to establish the interface and configure its attributes and mode.
[0041] The Local Area Network (LAN) attribute defines the broadcast domain and interoperability, used to assign the first VXLAN interface to the home network, ensuring that devices under the two main gateways are on the same LAN. This is a prerequisite for the STA to maintain its IP address after roaming. The Internet mode defines the routing exit and policy, designating the first VXLAN interface as the default logical outgoing interface for traffic, used to guide the traffic of roaming terminals through the VXLAN tunnel. For example, taking the STA roaming to the second main gateway as an example, downlink data sent to the STA arrives at the first main gateway from the OLT. The first main gateway checks the STA's first forwarding table entry and discovers that the STA is roaming. Since the first VXLAN interface of the first main gateway has a LAN attribute, the first main gateway treats it as an internal port and forwards the downlink data to the second main gateway through the VXLAN tunnel. The second main gateway receives uplink data sent by the STA, checks the STA's second forwarding table entry, and since the second VXLAN interface is configured for Internet mode, the second main gateway treats it as the default gateway. Therefore, it sends the uplink data back to the first main gateway through the VXLAN tunnel, and then the first main gateway sends it to the Internet. The first primary gateway establishes a VXLAN tunnel based on the first VXLAN tunnel configuration command, so as to forward downlink data sent to the STA to the second primary gateway based on the VXLAN tunnel, and to receive uplink data sent by the STA from the second primary gateway based on the VXLAN tunnel.
[0042] In some embodiments, the first forwarding table entry includes a mapping relationship between the destination address and the outgoing port information. In this embodiment, the destination address is the MAC address of the STA.
[0043] After the STA disconnects from the first main gateway, if the first main gateway receives a data packet, it queries the mapping relationship of the first forwarding table entry based on the destination address of the data packet to determine the outgoing port information corresponding to the destination address. The first main gateway then sends the data packet through the outgoing port corresponding to the outgoing port information.
[0044] In some embodiments, when the first data packet is an Ethernet packet (i.e., an Ethernet frame), the corresponding step of sending the first data packet to the second main gateway through the target tunnel includes the following steps: taking the first data packet as a data payload, encapsulating it sequentially with a VXLAN header, a UDP header, and an outer IP header to generate a target packet; and sending the target packet to the second main gateway through the target tunnel.
[0045] In other words, the object encapsulated by the VXLAN tunnel is the original complete Ethernet packet (including the MAC header). This complete Ethernet packet is used as the payload and sequentially encapsulated into the VXLAN header, UDP header, and IP header to obtain the target packet, which is an IP datagram. The first primary gateway sends the encapsulated target packet to the second primary gateway through the VXLAN tunnel. It should be noted that the VXLAN header may include a VNI (VXLAN Network Identifier). The VNI is a global identifier, and in the configurations of the encapsulation end (first primary gateway) and the decapsulation end (second primary gateway), the VNI value for the same logical network is pre-configured to be consistent. The VNI can be pre-assigned or dynamically negotiated.
[0046] By using the first data packet as the data payload, encapsulating it sequentially with a VXLAN header, a UDP header, and an outer IP header to generate the target packet, and sending the target packet to the second main gateway through the target tunnel, a transparent Layer 2 data channel based on the IP network is constructed. The target packet is not concerned with upper-layer roaming policies or control logic; it is only responsible for physical layer data transport. Based on this encapsulation method, the FTTR system transforms the problem of single AP coverage in wireless roaming into the problem of whole-house network roaming achieved through IP tunnels, laying the foundation for multi-gateway collaborative processing.
[0047] This disclosure also provides an FTTR network roaming method, applied to... Figure 1 The second main gateway in the system shown. Figure 3 This is a flowchart illustrating the FTTR network roaming method on the second main gateway side provided in this embodiment of the disclosure, combined with... Figure 1 and Figure 3 As shown, the FTTR network roaming method includes the following steps:
[0048] Step S21: In response to the terminal roaming to the second main gateway, add the terminal's second forwarding table entry to the second forwarding database.
[0049] When a STA roams into the coverage area of the second primary gateway, the second primary gateway actively generates a second forwarding table entry corresponding to the STA in the second forwarding database stored locally, based on control plane signaling (such as synchronization messages from the controller or the first primary gateway). This second forwarding table entry binds the STA's MAC address to the local access port, thereby achieving accurate forwarding of downlink traffic and avoiding the initial packet loss delay caused by the traditional self-learning mechanism.
[0050] Step S22: Receive the first data packet sent by the first main gateway to the terminal through the target tunnel.
[0051] The target tunnel is a pre-established Layer 2 bridge tunnel between the first and second main gateways, implemented using the VXLAN protocol. The VXLAN Layer 2 bridge tunnel (hereinafter referred to as the VXLAN tunnel) logically extends the Layer 2 network, ensuring that the STA remains in the same Layer 2 broadcast domain before and after roaming. Therefore, the STA's IP address remains unchanged, the UDP session can be maintained continuously, and zero data packet loss can be achieved.
[0052] The first data packet is sent to the first primary gateway by the optical line terminal (OLT) under the following conditions: During the roaming process of the terminal from the first primary gateway to the second primary gateway, the third forwarding table entry corresponding to the terminal stored in the OLT is not updated based on the terminal's roaming. In the very short period between the start of the roaming handover (i.e., the STA disconnects from the first primary gateway) and the successful roaming (i.e., the STA connects to the second primary gateway), the third forwarding table entry corresponding to the STA stored locally in the OLT has not yet been updated, and the outgoing port information of the third forwarding table entry still points to the first primary gateway. In this case, the OLT sends the downlink data packet (i.e., the first data packet) destined for the STA to the first primary gateway based on the third forwarding table entry. The first primary gateway then forwards the first data packet to the second primary gateway through the target tunnel.
[0053] Step S23: Based on the second forwarding table entry of the terminal in the second forwarding database and the destination address in the first data packet, determine the target port, and send the first data packet to the terminal corresponding to the destination address through the target port.
[0054] The second primary gateway receives the first data packet sent by the first primary gateway through the VXLAN tunnel. If the destination address of the first data packet is determined to be the destination address of the terminal, it means that the first data packet is sent to the STA roaming to the second primary gateway. In this case, the second primary gateway determines the local physical port (i.e., the destination port) of the second primary gateway based on the second forwarding table entry in the second forwarding database stored locally, and forwards the first data packet to the STA through the destination port.
[0055] In this embodiment, in response to a terminal roaming to a second main gateway, a second forwarding table entry for the terminal is added to the second forwarding database. A first data packet sent by the first main gateway to the terminal is received through a target tunnel, which is a pre-established Layer 2 bridge tunnel between the first and second main gateways implemented using the VXLAN protocol. The first data packet is sent to the first main gateway by the optical line terminal under the following conditions: during the roaming process from the first main gateway to the second main gateway, the third forwarding table entry corresponding to the terminal stored in the optical line terminal is not updated based on the terminal's roaming. Based on the terminal's second forwarding table entry in the second forwarding database and the destination address in the first data packet, a target port is determined, and the first data packet is sent to the terminal corresponding to the destination address through the target port. This embodiment establishes a VXLAN Layer 2 bridge tunnel between the two main gateways. During the roaming process from one main gateway to the other, the two main gateways can transmit data streams based on this VXLAN Layer 2 bridge tunnel, allowing seamless switching between data streams. This solves the data latency and interruption problems caused by roaming in traditional wireless devices, achieving lossless roaming.
[0056] In some embodiments, before receiving the first data packet sent by the first main gateway to the terminal through the target tunnel, the FTTR network roaming method may further include the step of establishing a target tunnel. The step of establishing a target tunnel includes: in response to receiving a second VXLAN tunnel configuration instruction, creating a second VXLAN interface, configuring the bridge port attribute of the second VXLAN interface as a local area network attribute, and setting the interface mode of the second VXLAN interface to Internet mode, so as to establish a target tunnel between the second VXLAN interface and the first VXLAN interface of the first main gateway.
[0057] In some embodiments, the user sends a second VXLAN tunnel configuration command to the second main gateway through the vendor platform. The second main gateway creates a second VXLAN interface based on the configuration information carried in the second VXLAN tunnel configuration command, configures the bridge port attribute of the second VXLAN interface to a local area network (LAN) attribute, and configures the interface mode of the second VXLAN interface to Internet mode, thereby establishing a target tunnel between the second VXLAN interface and the first VXLAN interface of the first main gateway. It should be noted that the first VXLAN interface of the first main gateway also requires the user to send a first VXLAN tunnel configuration command to the first main gateway through the vendor platform to establish the interface and configure its attributes and mode.
[0058] The Local Area Network (LAN) attribute defines the broadcast domain and interoperability, used to classify the second VXLAN interface into the home network, ensuring that devices under the two main gateways are on the same LAN. This is a prerequisite for the STA to maintain its IP address after roaming. The Internet mode defines the routing exit and policy, designating the second VXLAN interface as the default logical outgoing interface for traffic, used to guide the roaming terminal's traffic through the VXLAN tunnel. For example, taking the STA roaming to the second main gateway for data transmission and reception, the second main gateway receives uplink data sent by the STA. The second main gateway queries the STA's second forwarding table entry. Since the second VXLAN interface is configured for Internet mode, the second main gateway treats it as the default gateway and sends the uplink data back to the first main gateway through the VXLAN tunnel, from where it is then forwarded to the Internet. Downlink data sent to the STA arrives at the first main gateway from the OLT. The first main gateway queries the STA's first forwarding table entry and discovers that the STA is roaming. Since the first main gateway's first VXLAN interface has a LAN attribute, the first main gateway treats it as an internal port and forwards the downlink data to the second main gateway through the VXLAN tunnel. The second primary gateway establishes a VXLAN tunnel based on the second VXLAN tunnel configuration command, so as to forward uplink data sent to the STA to the first primary gateway based on the VXLAN tunnel, and to receive downlink data sent by the STA from the first primary gateway based on the VXLAN tunnel.
[0059] In some embodiments, when the first data packet is an Ethernet packet (i.e., an Ethernet frame), receiving the first data packet sent by the first main gateway to the terminal through the target tunnel includes the following steps: receiving the target packet sent by the first main gateway through the target tunnel; and decapsulating the outer IP header, UDP header, and VXLAN header of the target packet in sequence to obtain the first data packet to be sent to the terminal.
[0060] Since VXLAN tunnels encapsulate the original, complete Ethernet packet (including the MAC header), the complete Ethernet packet is encapsulated as the payload into the VXLAN header, UDP header, and IP header sequentially to obtain the target packet, which is an IP datagram. The first primary gateway sends the target packet to the second primary gateway through the VXLAN tunnel. Correspondingly, after receiving the target packet from the first primary gateway through the VXLAN tunnel, the second primary gateway decapsulates the IP header, UDP header, and VXLAN header sequentially to obtain the first datagram (i.e., the complete Ethernet packet) carried by the target packet's payload. It should be noted that the VXLAN header may include the VNI (Virtual Identity Registry), which is a global identifier. In the configuration of the encapsulation end (first primary gateway) and the decapsulation end (second primary gateway), the VNI value of the same logical network must be pre-configured to be consistent. The VNI can be pre-assigned or dynamically negotiated.
[0061] The second main gateway decapsulates the outer IP header, UDP header, and VXLAN header of the target packet sequentially to obtain the first data packet sent to the terminal. The second main gateway restores the tunnel packet transmitted across devices to the original Layer 2 Ethernet frame, so that the downlink traffic of the roaming terminal is seamlessly delivered to the new physical access point without changing the IP address or interrupting the session, ensuring lossless roaming of data plane traffic under the FTTR dual main gateway architecture.
[0062] In some embodiments, the second forwarding table entry includes a mapping relationship between the destination address and the outgoing port information. In this embodiment, the destination address is the MAC address of the STA.
[0063] After the STA successfully roams to the second main gateway, if the second main gateway receives a data packet, it queries the mapping relationship of the second forwarding table entry based on the destination address of the data packet to determine the outgoing port information corresponding to the destination address. The second main gateway then sends the data packet through the outgoing port corresponding to the outgoing port information.
[0064] In some embodiments, determining the target port based on the second forwarding table entry of the terminal in the second forwarding database and the destination address in the first data packet includes the following steps: obtaining the destination address in the first data packet; in response to finding the second forwarding table entry of the terminal in the second forwarding database based on the destination address, and the outgoing port information in the second forwarding table entry being the local port information of the second main gateway, determining the port corresponding to the outgoing port information as the target port.
[0065] The destination address in the first data packet is the MAC address of the STA, which is obtained by parsing the MAC header of the first data packet. The second main gateway queries the second forwarding database locally based on this destination address. If the second forwarding table entry for the STA is found in the database, the destination address is matched, and the outgoing port information in the second forwarding table entry is the local port information of the second main gateway, indicating that the STA has roamed to the second main gateway. At this time, the first data packet can be forwarded to the STA through the outgoing port corresponding to the outgoing port information, realizing low-latency and high-efficiency local switching.
[0066] Through precise MAC address table lookup and local port verification, the second main gateway achieves precise point-to-point delivery of roaming traffic, ensuring that data is forwarded on the optimal path (local), while eliminating Layer 2 forwarding loops or broadcast storms that may be caused by changes in STA location.
[0067] To clearly illustrate the scheme of this disclosure embodiment, the following detailed explanation of the process of establishing a VXLAN tunnel and forwarding data streams before STA roaming is provided in conjunction with a specific example. Figure 4 A signaling diagram illustrating the data flow forwarding process before STA roaming, provided as a specific example of this disclosure, is shown below. Figure 4 As shown, the process of establishing a VXLAN tunnel includes the following steps:
[0068] In step S101, the user sends VXLAN tunnel configuration commands to main gateway 1 and main gateway 2 respectively through the manufacturer's platform.
[0069] It should be noted that the execution order of sending VXLAN tunnel configuration commands to main gateway 1 and main gateway 2 is not limited. VXLAN tunnel configuration commands can be sent to main gateway 1 first, or to main gateway 2 first, or to both main gateway 1 and main gateway 2 simultaneously. This embodiment of the disclosure takes sending VXLAN tunnel configuration commands to both main gateway 1 and main gateway 2 simultaneously as an example for illustration.
[0070] In step S102, based on the VXLAN tunnel configuration instructions, main gateway 1 and main gateway 2 respectively create VXLAN interfaces, configure the bridge port attribute of the VXLAN interface as LAN attribute, and configure the interface mode of the VXLAN interface as Internet mode, thereby establishing a VXLAN tunnel between the VXLAN interfaces of main gateway 1 and main gateway 2. This VXLAN tunnel is used to carry the cross-gateway transmission of Layer 2 data frames.
[0071] like Figure 4 As shown, the STA roaming pre-roaming data stream forwarding process includes the following steps:
[0072] In step S103, the STA connects to the main gateway 1 via Wi-Fi (wireless network communication technology) and sends a data request to the main gateway 1.
[0073] Step S104: The main gateway 1 forwards a data request to the OLT.
[0074] In step S105, the OLT forwards the data request to the server.
[0075] Step S106: The server sends the corresponding data stream to the OLT based on the data request.
[0076] In step S107, the OLT forwards the data stream to the main gateway 1.
[0077] In step S108, the main gateway 1 forwards the data stream to the STA according to the first forwarding table entry of the STA in the first FDB (i.e., the mapping relationship between the STA's MAC and the outgoing port).
[0078] Figure 5 This is a signaling diagram illustrating the FTTR network roaming process, provided as another specific example of this disclosure. The FTTR network roaming process includes the STA roaming triggering and handover process and the post-roaming data stream forwarding process. For example... Figure 5 As shown, the STA roaming triggering and switching process includes the following steps:
[0079] In step S201, the STA connects to the main gateway 1 via Wi-Fi (wireless network communication technology) and sends a data request to the main gateway 1.
[0080] Step S202: The main gateway 1 forwards a data request to the OLT.
[0081] Step S203: The OLT forwards the data request to the server.
[0082] Step S204: STA initiates the roaming process from main gateway 1 to main gateway 2.
[0083] It should be noted that after the STA is associated with the main gateway 2, the main gateway 2 learns the second forwarding table entry of the STA in the second FDB table.
[0084] In step S205, in response to the STA disconnecting from the main gateway 1, the main gateway 1 deletes the first forwarding table entry of the STA in the first FDB table.
[0085] It should be noted that the STA is associated with the main gateway 2, and can send a data request to the OLT through the main gateway 1 (i.e., step S201) at any time after that, such as after steps S201, S202 or S203.
[0086] like Figure 5As shown, after the STA sends a data request to the OLT through the main gateway 1, the STA disconnects from the main gateway 1. In this case, the data flow forwarding process after roaming includes the following steps:
[0087] In step S206, the server sends a UDP stream to the OLT, which is intended for the STA.
[0088] Step S207: The OLT forwards the UDP stream to the main gateway 1.
[0089] It should be noted that when the OLT receives the UDP stream sent by the server, the STA has not yet successfully associated with the main gateway 2. At this time, the third forwarding table entry of the STA stored locally by the OLT has not been updated. Therefore, the OLT forwards the UDP stream to the main gateway 1 based on the third forwarding table entry.
[0090] Step S208: The first forwarding table entry does not match the MAC address of the STA, so flood the UDP stream.
[0091] In step S209, the main gateway 1 sends the UDP stream sent by the server to the main gateway 2 via the VXLAN tunnel.
[0092] In step S210, the main gateway 2 decapsulates the received UDP stream from the server to obtain an Ethernet frame.
[0093] In step S211, the main gateway 2 forwards the Ethernet frame to the STA according to the second forwarding table entry of the STA in the second FDB table (i.e., the mapping relationship between MAC and outgoing port). Throughout the service process, the data flow is guaranteed to be uninterrupted or the link is re-established, so as to realize lossless roaming of the STA.
[0094] It should be noted that in the FTTR dual-master gateway roaming scenario, if master gateway 2 receives a UDP stream from master gateway 1 based on the VXLAN tunnel, and the STA has not yet associated with master gateway 2, master gateway 2 will directly discard it. Alternatively, master gateway 2 will cache the UDP stream and wait for the STA to successfully associate with master gateway 2 before sending out the cached UDP stream, thus achieving zero packet loss roaming.
[0095] This disclosure provides a data forwarding scheme based on VXLAN tunnels for wireless devices in an FTTR network when roaming. By establishing VXLAN Layer 2 bridge tunnels between main gateways, the original data stream of the wireless terminal is not interrupted or rebuilt during roaming, achieving seamless switching of the data stream, ensuring that external devices are unaware of the roaming, and achieving the effect of lossless roaming.
[0096] A VXLAN Layer 2 bridge tunnel is established between the main gateways based on the standard VXLAN protocol. VXLAN interfaces are created on each main gateway, with their bridge port attributes configured as LAN and their interface mode configured as Internet mode. This indicates that the VXLAN interface can be used for Internet data forwarding, ensuring that packets encapsulated within the VXLAN Layer 2 bridge tunnel can be correctly routed or bridged. Before STA roaming occurs, the STA is associated with the first main gateway, which sends UDP data streams to the STA. At this time, the first main gateway acts as the STA's access point, responsible for Layer 2 forwarding or Layer 3 routing of uplink and downlink data.
[0097] When the STA moves into the signal coverage area of the second main gateway, a roaming decision is triggered, the STA initiates a reassociation request and successfully associates with the second main gateway.
[0098] After the STA successfully roams to the second main gateway, data destined for the STA (e.g., a UDP stream from the server to the STA) reaches the first main gateway. If the first main gateway recognizes that the destination MAC address of the UDP stream belongs to the roaming STA, it encapsulates the original Ethernet frame in a VXLAN packet. The VNI uses an identifier corresponding to the tunnel. Through a pre-configured VXLAN Layer 2 bridge tunnel, the encapsulated VXLAN packet is sent to the second main gateway. The second main gateway decapsulates the received VXLAN packet, restoring it to the original Ethernet frame (i.e., the UDP stream). Based on the destination MAC address (i.e., the STA's MAC address) in the original Ethernet frame, the second main gateway queries the forwarding table entry in its local FDB and sends the original Ethernet frame back to the STA through its local wireless port. Throughout the data transmission process, the STA's IP address remains unchanged, and the UDP session is maintained, achieving lossless roaming with zero packet loss.
[0099] The embodiments disclosed herein can achieve zero packet loss during wireless terminal roaming across main gateways; maintain Layer 2 network connectivity through VXLAN Layer 2 bridge tunnels without modifying terminal IP or re-establishing connections; support configuring VXLAN interfaces on existing network devices via a web page, improving operability; and be compatible with existing network topologies, making them easy to deploy and expand.
[0100] To clearly illustrate the solutions of this disclosure, the following detailed explanation uses a specific example to illustrate the process of establishing a VXLAN tunnel and forwarding data based on the VXLAN tunnel in STA roaming situations.
[0101] Step 1: The user sends VXLAN tunnel configuration commands to the first main gateway and the second main gateway through the vendor platform. The first main gateway and the second main gateway perform the following operations respectively: create a VXLAN interface, configure the bridge port attribute of the VXLAN interface to LAN attribute, and configure the interface mode of the VXLAN interface to Internet mode to ensure that the VXLAN tunnel is used as a bridging link in Layer 2 forwarding.
[0102] Step 2: The STA connects to the first main gateway via Wi-Fi. The user opens the iperf (Internet Protocol Bandwidth Measuring Tool) client on the STA, enters the IP address and port information of the iperf server in the iperf client, and then clicks the Start Speed Test button.
[0103] Step 3: The iperf client establishes a connection with the iperf server through the first main gateway using the IP address and corresponding port.
[0104] Step 4: The iperf server sends a data stream to the first primary gateway, which then forwards the data stream to the STA.
[0105] Step 5: During the process of the iperf server sending the data stream, the STA moves close to the second main gateway. When the STA successfully roams to the second main gateway, the data stream sent by the iperf server can be sent to the STA normally without interruption or reconnection.
[0106] This disclosure also provides a main gateway, such as... Figure 6 As shown, it includes a memory 1 and a processor 2; the memory 1 has a computer program that can be executed by the processor 2, and when the computer program is executed by the processor 2, it implements any of the FTTR network roaming methods of the present disclosure embodiments.
[0107] Among them, the processor is a device with data processing capabilities, including but not limited to the central processing unit (CPU); the memory is a device with data storage capabilities, including but not limited to random access memory (RAM), more specifically such as SDRAM, DDR, etc., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); I / O interface, or read-write interface, is connected between the processor and the memory, enabling information exchange between the memory and the processor, including but not limited to the data bus (Bus).
[0108] This disclosure also provides an FTTR network system, which includes at least a first main gateway, a second main gateway, and a terminal. The first main gateway and the second main gateway are respectively used to implement any one of the FTTR network roaming methods of this disclosure, and the terminal is associated with the first main gateway or the second main gateway.
[0109] This disclosure also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements any of the FTTR network roaming methods of this disclosure.
[0110] This disclosure also provides a computer program product, which includes a computer program that, when executed by a processor, implements any of the FTTR network roaming methods of this disclosure.
[0111] Those skilled in the art will understand that all or some of the steps, systems, and devices disclosed above, as functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0112] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be executed by several physical components working together.
[0113] Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable storage medium, which may include computer storage media and communication media. In embodiments of this disclosure, the computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, and any other media that can be used to store desired information and can be accessed by a computer. In embodiments of this disclosure, the communication medium typically contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.
Claims
1. A roaming method for an FTTR network, applied to the first main gateway in a fiber-to-the-room FTTR network, characterized in that, The method includes: In response to the terminal disconnecting from the first main gateway, the first forwarding table entry of the terminal in the first forwarding database is deleted; In response to receiving a first data packet intended for transmission to the terminal and finding no corresponding first forwarding table entry in the first forwarding database, the first data packet is transmitted to the second primary gateway via a target tunnel. This allows the second primary gateway to determine a target port based on the terminal's second forwarding table entry in the second forwarding database and the destination address in the first data packet, and then transmit the first data packet to the terminal corresponding to the destination address via the target port. The target tunnel is a pre-established Layer 2 bridge tunnel between the first and second primary gateways, implemented using the Virtual Extended Local Area Network (VXLAN) protocol. The second primary gateway is the primary gateway associated with the terminal after roaming. The first data packet is transmitted by the optical line terminal (OLT) under the following condition: during the terminal's roaming process from the first primary gateway to the second primary gateway, the third forwarding table entry corresponding to the terminal stored in the OLT is not updated based on the terminal's roaming.
2. The method according to claim 1, characterized in that, The step of sending the first data packet to the second main gateway through the target tunnel includes: The first data packet is flooded to send it to the second main gateway through the target tunnel.
3. The method according to claim 1, characterized in that, Before deleting the first forwarding table entry of the terminal in the first forwarding database in response to the terminal disconnecting from the first main gateway, the method further includes: In response to receiving a first VXLAN tunnel configuration command, a first VXLAN interface is created, the bridge port attribute of the first VXLAN interface is configured as a local area network attribute, and the interface mode of the first VXLAN interface is configured as Internet mode, so as to establish the target tunnel between the first VXLAN interface and the second VXLAN interface of the second main gateway.
4. The method according to claim 1, characterized in that, The first data packet is an Ethernet packet, and the step of sending the first data packet to the second main gateway through the target tunnel includes: The first data packet is used as the data payload, and VXLAN header, UDP header and IP header are sequentially encapsulated to generate the target packet. The target message is sent to the second main gateway through the target tunnel.
5. The method according to claim 1, characterized in that, The first forwarding table entry includes the mapping relationship between the destination address and the outgoing port information.
6. A roaming method for an FTTR network, applied to the second main gateway in a fiber-to-the-room FTTR network, characterized in that, The method includes: In response to a terminal roaming to the second main gateway, a second forwarding table entry for the terminal is added to the second forwarding database; The optical line terminal receives a first data packet sent by the first main gateway to the terminal via a target tunnel. The target tunnel is a pre-established Layer 2 bridge tunnel between the first and second main gateways, implemented based on the Virtual Extended Local Area Network (VXLAN) protocol. The first data packet is sent to the first main gateway by the optical line terminal under the following conditions: during the roaming process of the terminal from the first main gateway to the second main gateway, the third forwarding table entry corresponding to the terminal stored in the optical line terminal is not updated based on the roaming of the terminal. Based on the second forwarding table entry of the terminal in the second forwarding database and the destination address in the first data packet, the target port is determined, and the first data packet is sent to the terminal corresponding to the destination address through the target port.
7. The method according to claim 6, characterized in that, Before receiving the first data packet sent by the first main gateway to the terminal through the target tunnel, the method further includes: In response to receiving a second VXLAN tunnel configuration command, a second VXLAN interface is created, the bridge port attribute of the second VXLAN interface is configured as a local area network attribute, and the interface mode of the second VXLAN interface is set to Internet mode, so as to establish the target tunnel between the second VXLAN interface and the first VXLAN interface of the first main gateway.
8. The method according to claim 6, characterized in that, The first data packet is an Ethernet packet. The step of receiving the first data packet sent by the first main gateway through the target tunnel for transmission to the terminal includes: Receive the target message sent by the first main gateway through the target tunnel; The outer Internet Protocol (IP) header, User Datagram Protocol (UDP) header, and VXLAN header of the target message are decapsulated sequentially to obtain the first data packet to be sent to the terminal.
9. The method according to claim 6, characterized in that, The step of determining the target port based on the second forwarding table entry of the terminal in the second forwarding database and the destination address in the first data packet includes: Obtain the destination address from the first data packet; In response to finding the second forwarding table entry of the terminal in the second forwarding database based on the destination address, and the outgoing port information in the second forwarding table entry being the local port information of the second main gateway, the port corresponding to the outgoing port information is determined to be the target port.
10. The method according to claim 6, characterized in that, The second forwarding table entry includes the mapping relationship between the destination address and the outgoing port information.
11. A main gateway, characterized in that, It includes a memory and a processor; the memory stores a computer program that can be executed by the processor, and when the computer program is executed by the processor, it implements the FTTR network roaming method according to any one of claims 1 to 5, or the FTTR network roaming method according to any one of claims 6 to 10.
12. An FTTR network system, characterized in that, It includes at least a first main gateway, a second main gateway, and a terminal. The first main gateway is used to implement the FTTR network roaming method according to any one of claims 1 to 5. The second main gateway is used to implement the FTTR network roaming method according to any one of claims 6 to 10. The terminal is associated with the first main gateway or the second main gateway.
13. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the FTTR network roaming method according to any one of claims 1 to 5, or the FTTR network roaming method according to any one of claims 6 to 10.
14. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the FTTR network roaming method according to any one of claims 1 to 5, or the FTTR network roaming method according to any one of claims 6 to 10.