A method, device and system for forwarding service messages

By moving the three-layer forwarding process in the FTTR system to the slave ONT, the performance bottleneck problem caused by the large amount of data processing by the main ONT is solved, and network stability and user experience are improved.

CN118233790BActive Publication Date: 2025-03-21HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211648511.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-21
Publication Date
2025-03-21
Estimated Expiration
2042-12-21

AI Technical Summary

Technical Problem

In fiber to room (FTTR) networking technology, the main optical network terminal (ONT) processes a large amount of data, which makes it difficult to process and packet loss, affecting the user experience.

Method used

By moving the layer three forwarding process from the main ONT to the slave ONT for processing, the central processor resource consumption of the main ONT is reduced, and forwarded packets are generated and sent on the slave ONT.

Benefits of technology

This solution effectively reduces the resource consumption of main ONT, improves network stability, improves user experience, and supports access to more terminal devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118233790B_ABST
    Figure CN118233790B_ABST
Patent Text Reader

Abstract

The present application is applied to the field of optical access, and in particular to a method, device and system for forwarding service messages, and the scheme can be applied to FTTR networks. In the method, for the first data packet of the service message, the CPU of the slave ONT edits and forwards the service message at three layers. For non-first data packets of the service message, the service message is forwarded and edited at three layers by the hardware forwarding chip of the master ONT. The method can alleviate the performance pressure of the CPU processing of the master ONT by moving the forwarding process of the user data message centrally processed by the CPU of the master ONT down to the slave ONT, and at the same time, the processing of non-first data packets can improve the efficiency of message processing, save latency, and thus improve user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of optical access, and more specifically, to a method, device and system for forwarding service messages. Background Art

[0002] Fiber to the room (FTTR) is a new coverage model for home networks in the gigabit era. It is based on fiber to the building (FTTB) and fiber to the home (FTTH). It lays optical fiber to every room, interconnects with the home gateway by deploying optical networking terminals, and combines dual-band WiFi, WiFi6 and other technologies to ensure full-house network coverage. The home gigabit all-optical networking solution based on FTTR technology deploys the main optical network terminal (ONT) in the home distribution box or the center of the home. With the main ONT as the core, based on splitters and optical fibers, unified management and configuration of all slave ONTs can be achieved.

[0003] With the development of various broadband value-added services such as online live broadcast, distance education, and real-time video conferencing, the number of slave ONTs and user devices connected to the master ONT is increasing, which makes the master ONT process a huge amount of data, which is difficult to process and causes packet loss, resulting in a decline in user experience. Therefore, how to solve the performance bottleneck when connecting a large number of slave ONTs and user devices to the master ONT has become an urgent problem to be solved in FTTR networking technology. Summary of the invention

[0004] The present application provides a method, device and system for forwarding service messages, which reduces the resource consumption of the central processor of the master ONT and ensures the stability of the network by moving the three-layer forwarding process of processing user data messages from the master ONT to the slave ONT, thereby achieving the purpose of improving user experience.

[0005] In the first aspect, an embodiment of the present application provides a method for forwarding a service message. The method can be executed by a slave ONT or by a component of the slave ONT (such as a chip or a chip system, etc.), and the present application does not limit this. The method is applied to an FTTR system, the FTTR system includes a master ONT and at least one slave ONT, the at least one slave ONT is connected to the master ONT, and the method includes: receiving an uplink service message from a terminal device from an optical network terminal ONT. The uplink service message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source Internet Protocol IP address field, an uplink destination IP address field, an uplink source media access control MAC address field, and an uplink destination MAC address field. Among them, the uplink source port field includes the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the slave ONT. The slave ONT modifies the MAC address information of the terminal device in the uplink source MAC address field to the MAC address information of the slave ONT. The slave ONT modifies the MAC address information of the slave ONT in the uplink destination MAC address field to the MAC address information of the server. The slave ONT modifies the IP address information of the terminal device in the uplink source IP address field to the IP address information of the slave ONT. The slave ONT modifies the port number information of the terminal device in the uplink source port field to the port number information of the slave ONT. The slave ONT sends an uplink forwarding message to the master ONT, wherein the uplink forwarding message includes the uplink source port field, the uplink destination port field, the protocol field, the uplink source IP address field, the uplink destination IP address field, the uplink source MAC address field, and the uplink destination MAC address field, wherein the uplink source port field includes the port number information of the slave ONT, the uplink source IP address field includes the IP address information of the slave ONT, the uplink source MAC address field includes the MAC address information of the slave ONT, and the uplink destination MAC address field includes the MAC address information of the server.

[0006] Based on this scheme, the method for forwarding service messages provided in the embodiment of the present application generates a forwarding message by forwarding the service message from the slave ONT through three-layer forwarding, and sends the forwarding message to the master ONT. Compared with the three-layer forwarding process of the current master ONT centrally processing the data message, the scheme of the present application moves the three-layer forwarding process down to the slave ONT, which can achieve the purpose of alleviating the resource consumption of the master ONT. At the same time, since the processing of the message is transferred to each slave ONT, a larger number of terminal devices can be connected from the ONT, that is, the number of access terminals is increased. In addition, since the editing of the service message is performed through the distributed processing of the slave ONT, the processing delay of the master ONT can be further alleviated, and the purpose of improving the user experience is achieved.

[0007] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the slave ONT generates a slave ONT upstream NAPT table by performing network address translation NAT, and the slave ONT upstream NAPT table includes a mapping relationship from the IP address information of the terminal device and the port number information of the terminal device to the IP address information of the slave ONT and the port number information of the slave ONT.

[0008] Based on this solution, the upstream layer 3 forwarding is completed by the slave ONT, and the upstream NAPT table of the slave ONT is generated, so as to relieve the pressure of the master ONT to centrally process service messages, thereby achieving the purpose of improving processing efficiency and system reliability.

[0009] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the slave ONT sending the slave ONT upstream NAPT table to the master ONT.

[0010] Based on this solution, by sending the slave ONT upstream NAPT table to the master ONT, after receiving the downstream service message, the master ONT forwards the downstream service message to the slave ONT through the port of the slave ONT for processing according to the port number information of the slave ONT obtained from the slave ONT upstream NAPT table, thereby ensuring the reliability of system communication.

[0011] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the slave ONT receives an ARP message from the terminal device, the ARP message includes a MAC address of the terminal device and an IP address of the terminal device. The slave ONT generates an ONT ARP table according to the MAC address of the terminal device and the IP address of the terminal device, and the slave ONT ARP table includes a correspondence between the MAC address of the terminal device and the IP address of the terminal device.

[0012] Based on the above scheme, the slave ONT can obtain the IP address and MAC of the terminal device according to the ARP message of the terminal device received, and generate an uplink forwarding message according to the IP address and MAC of the terminal device. Since the ARP message of the terminal device is copied by the slave ONT in the process of forwarding to the master ONT during the sending process, the method for forwarding service messages provided by the present application is simple in process and ensures the reliability of system communication.

[0013] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the slave ONT receives a downlink service message from the master ONT. The downlink service message includes a downlink source port field, a downlink destination port field, the protocol field, a downlink source IP address field, a downlink destination IP address field, a downlink source MAC address field, and a downlink destination MAC address field. Among them, the downlink source port field includes the port number information of the server, the downlink destination port field includes the port number information of the slave ONT, the downlink source IP address field includes the IP address information of the server, the downlink destination IP address field includes the IP address information of the slave ONT, the downlink source MAC address field includes the MAC address information of the server, and the downlink destination MAC address field includes the MAC address information of the slave ONT. The slave ONT modifies the MAC address information of the server in the downlink source MAC address field into the MAC address information of the slave ONT. The slave ONT modifies the MAC address information of the slave ONT in the downlink destination MAC address field into the MAC address information of the terminal device. The slave ONT modifies the IP address information of the slave ONT in the downstream destination IP address field into the IP address information of the terminal device according to the slave ONT upstream NAPT table. The slave ONT modifies the port number information of the slave ONT in the downstream destination port field into the port number information of the terminal device according to the slave ONT upstream NAPT table. The slave ONT sends a downstream forwarding message to the terminal device, the downstream forwarding message includes the downstream source port field, the downstream destination port field, the protocol field, the downstream source IP address field, the downstream destination IP address field, the downstream source MAC address field and the downstream destination MAC address field, wherein the downstream destination port field includes the port number information of the terminal device, the downstream destination IP address field includes the IP address information of the terminal device, the downstream source MAC address field includes the MAC address information of the slave ONT, and the downstream destination MAC address field includes the MAC address information of the terminal device.

[0014] Based on the above scheme, the method for forwarding service messages provided in the present application can be applied to the process of forwarding downlink response messages, which can alleviate the processing delay of the main ONT and achieve the purpose of improving user experience.

[0015] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the slave ONT generates a slave ONT downstream NAPT table by performing NAT, and the slave ONT downstream NAPT table includes a mapping relationship from the IP address information of the slave ONT and the port number information of the slave ONT to the IP address information of the terminal device and the port number information of the terminal device.

[0016] Based on this solution, the slave ONT completes downstream layer 3 forwarding and generates a slave ONT downstream NAPT table, thereby alleviating the pressure of the master ONT on centralized processing of service messages, thereby improving processing efficiency and system reliability.

[0017] In combination with the first aspect, in some implementations of the first aspect, the slave ONT sends the slave ONT downstream NAPT table to the master ONT.

[0018] Based on the above scheme, the slave ONT sends the slave ONT downstream NAPT table to the master ONT, so that the master ONT generates the master ONT downstream NAPT table according to the slave ONT downstream NAPT table, and forwards the downstream forwarding message through the master ONT downstream NAPT table, thereby improving the efficiency of the master ONT forwarding message.

[0019] In the second aspect, an embodiment of the present application provides a method for forwarding a service message. The method can be performed by a master ONT or by a component of the master ONT (such as a chip or a chip system, etc.), and the present application does not limit this. The method is applied to a fiber-to-the-room FTTR system, the FTTR system includes a master ONT and at least one slave ONT, the at least one slave ONT is connected to the master ONT, and the method includes: the master ONT receives an uplink forwarding message from the slave ONT, and the uplink forwarding message is generated based on the uplink service message. The uplink forwarding message includes the uplink source port field, the uplink destination port field, the protocol field, the uplink source IP address field, the uplink destination IP address field, the uplink source MAC address field, and the uplink destination MAC address field. The uplink source port field includes the port number information of the slave ONT after replacing the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the slave ONT after replacing the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the slave ONT after replacing the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the server after replacing the MAC address information of the slave ONT. The master ONT forwards the uplink forwarding message to the server.

[0020] Based on this scheme, the method for forwarding service messages provided in the embodiment of the present application is compared with the three-layer forwarding process of the current master ONT centrally processing data messages. By completing the process of three-layer forwarding of service messages from the slave ONT, the resource consumption of the master ONT can be alleviated. At the same time, since the processing of the message is transferred to each slave ONT for processing, a larger number of terminal devices can be connected under the slave ONT, that is, the number of access terminals is increased. In addition, the distributed processing of the slave ONT can also alleviate the processing delay of the master ONT, thereby achieving the purpose of improving user experience.

[0021] In combination with the second aspect, in some implementations of the second aspect, the method further includes: the master ONT receives a slave ONT upstream NAPT table from the slave ONT, wherein the slave ONT upstream NAPT table includes a mapping relationship from the IP address information of the terminal device and the port number information of the terminal device to the IP address information of the slave ONT and the port number information of the slave ONT. The master ONT generates a master ONT upstream NAPT table according to the slave ONT upstream NAPT table.

[0022] Based on the above solution, by receiving the upstream NAPT table of the slave ONT, the master ONT generates the master ONT upstream NAPT table according to the slave ONT upstream NAPT table, and forwards the upstream forwarding message through the master ONT upstream NAPT table, thereby improving the efficiency of forwarding messages of the master ONT.

[0023] In combination with the second aspect, in some implementations of the second aspect, the method further includes: the master ONT sending a routing table to the slave ONT, wherein the routing table includes the IP address information of the terminal device and the IP address information of the server.

[0024] Based on the above solution, the master ONT sends the routing table to the slave ONT, so that the slave ONT can complete the sending of the uplink forwarding message according to the routing table, thereby ensuring the reliability of system communication.

[0025] In combination with the second aspect, in some implementations of the second aspect, the method further includes: the master ONT sends a downstream service message to the slave ONT according to the master ONT upstream NAPT table. The downstream service message includes a downstream source port field, a downstream destination port field, the protocol field, a downstream source IP address field, a downstream destination IP address field, a downstream source MAC address field, and a downstream destination MAC address field. Among them, the downstream source port field includes the port number information of the server, the downstream destination port field includes the port number information of the slave ONT, the downstream source IP address field includes the IP address information of the server, the downstream destination IP address field includes the IP address information of the slave ONT, the downstream source MAC address field includes the MAC address information of the server, and the downstream destination MAC address field includes the MAC address information of the slave ONT.

[0026] Based on the above scheme, the method for forwarding service messages provided in the present application can be applied to the process of forwarding downlink response messages, which can alleviate the processing delay of the main ONT and achieve the purpose of improving user experience.

[0027] In combination with the second aspect, in some implementations of the second aspect, the master ONT receives a slave ONT downstream NAPT table from the slave ONT, the slave ONT downstream NAPT table including a mapping relationship from the IP address information of the slave ONT and the port number information of the slave ONT to the IP address information of the terminal device and the port number information of the terminal device. The master ONT generates a master ONT downstream NAPT table according to the slave ONT downstream NAPT table.

[0028] Based on the above scheme, by receiving the downstream NAPT table of the slave ONT, the master ONT generates the master ONT downstream NAPT table according to the slave ONT downstream NAPT table, and forwards the downstream forwarding message through the master ONT downstream NAPT table, thereby improving the efficiency of the master ONT forwarding message.

[0029] In a third aspect, an embodiment of the present application provides a device for forwarding service messages. The device is applied to a fiber-to-the-room FTTR system, the FTTR system includes a master ONT and at least one slave ONT, the at least one slave ONT is connected to the master ONT, the device is one of the at least one slave ONT, and the device includes: a transceiver module and a processing module. The transceiver module is used to receive an uplink service message from a terminal device, the uplink service message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source Internet Protocol IP address field, an uplink destination IP address field, an uplink source media access control MAC address field, and an uplink destination MAC address field. Among them, the uplink source port field includes the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the slave ONT. The processing module is used to modify the MAC address information of the terminal device in the uplink source MAC address field to the MAC address information of the slave ONT, modify the MAC address information of the slave ONT in the uplink destination MAC address field to the MAC address information of the server, modify the IP address information of the terminal device in the uplink source IP address field to the IP address information of the slave ONT, and modify the port number information of the terminal device in the uplink source port field to the port number information of the slave ONT. The transceiver module is further used to send an uplink forwarding message to the master ONT, wherein the uplink forwarding message includes the uplink source port field, the uplink destination port field, the protocol field, the uplink source IP address field, the uplink destination IP address field, the uplink source MAC address field and the uplink destination MAC address field, wherein the uplink source port field includes the port number information of the slave ONT, the uplink source IP address field includes the IP address information of the slave ONT, the uplink source MAC address field includes the MAC address information of the slave ONT, and the uplink destination MAC address field includes the MAC address information of the server.

[0030] In conjunction with the third aspect, in some implementations of the third aspect, the processing module is specifically configured to:

[0031] The slave ONT upstream NAPT table is generated by executing the network address translation NAT, wherein the slave ONT upstream NAPT table includes a mapping relationship from the IP address information and the port number information of the terminal device to the IP address information and the port number information of the slave ONT.

[0032] In combination with the third aspect, in some implementations of the third aspect, the transceiver module is further configured to send the slave ONT uplink NAPT table to the master ONT.

[0033] In combination with the third aspect, in some implementations of the third aspect, the transceiver module is further used to receive an ARP message from the terminal device, wherein the ARP message includes a MAC address of the terminal device and an IP address of the terminal device. The processing module is further used to generate a slave ONT ARP table according to the MAC address of the terminal device and the IP address of the terminal device, wherein the slave ONT ARP table includes a correspondence between the MAC address of the terminal device and the IP address of the terminal device.

[0034] In combination with the third aspect, in some implementations of the third aspect, the transceiver module is further used to receive a downlink service message from the master ONT. The downlink service message includes a downlink source port field, a downlink destination port field, the protocol field, a downlink source IP address field, a downlink destination IP address field, a downlink source MAC address field, and a downlink destination MAC address field. Among them, the downlink source port field includes the port number information of the server, the downlink destination port field includes the port number information of the slave ONT, the downlink source IP address field includes the IP address information of the server, the downlink destination IP address field includes the IP address information of the slave ONT, the downlink source MAC address field includes the MAC address information of the server, and the downlink destination MAC address field includes the MAC address information of the slave ONT. The processing module is further used to modify the MAC address information of the server in the downstream source MAC address field to the MAC address information of the slave ONT, modify the MAC address information of the slave ONT in the downstream destination MAC address field to the MAC address information of the terminal device, modify the IP address information of the slave ONT in the downstream destination IP address field to the IP address information of the terminal device according to the upstream NAPT table of the slave ONT, and modify the port number information of the slave ONT in the downstream destination port field to the port number information of the terminal device according to the upstream NAPT table of the slave ONT. The transceiver module is further used to send a downstream forwarding message to the terminal device, and the downstream forwarding message includes the downstream source port field, the downstream destination port field, the protocol field, the downstream source IP address field, the downstream destination IP address field, the downstream source MAC address field and the downstream destination MAC address field. Among them, the downstream destination port field includes the port number information of the terminal device, the downstream destination IP address field includes the IP address information of the terminal device, the downstream source MAC address field includes the MAC address information of the slave ONT, and the downstream destination MAC address field includes the MAC address information of the terminal device.

[0035] In conjunction with the third aspect, in some implementations of the third aspect, the processing module is specifically configured to:

[0036] A slave ONT downstream NAPT table is generated by executing NAT, wherein the slave ONT downstream NAPT table includes a mapping relationship from the IP address information of the slave ONT and the port number information of the slave ONT to the IP address information of the terminal device and the port number information of the terminal device.

[0037] In combination with the third aspect, in some implementations of the third aspect, the transceiver module is further configured to send the slave ONT downlink NAPT table to the master ONT.

[0038] In a fourth aspect, an embodiment of the present application provides a device for forwarding service messages. Applicable to a fiber-to-the-room FTTR system, the FTTR system includes a master ONT and at least one slave ONT, the at least one slave ONT is connected to the master ONT, and the device includes a transceiver module. The transceiver module is used to receive an uplink forwarding message from the slave ONT, the uplink forwarding message is generated based on the uplink service message, and the uplink forwarding message includes the uplink source port field, the uplink destination port field, the protocol field, the uplink source IP address field, the uplink destination IP address field, the uplink source MAC address field, and the uplink destination MAC address field. The uplink source port field includes the port number information of the slave ONT after replacing the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the slave ONT after replacing the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the slave ONT after replacing the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the server after replacing the MAC address information of the slave ONT. The transceiver module is also used to forward the uplink forwarding message to the server.

[0039] In combination with the fourth aspect, in some implementations of the fourth aspect, the device further includes a processing module, and the transceiver module is further configured to receive a slave ONT upstream NAPT table from the slave ONT, wherein the slave ONT upstream NAPT table includes a mapping relationship from the IP address information of the terminal device and the port number information of the terminal device to the IP address information of the slave ONT and the port number information of the slave ONT. The processing module is configured to generate a master ONT upstream NAPT table according to the slave ONT upstream NAPT table.

[0040] In combination with the fourth aspect, in some implementations of the fourth aspect, the transceiver module is further used to send a routing table to the slave ONT, wherein the routing table includes the IP address information of the terminal device and the IP address information of the server.

[0041] In combination with the fourth aspect, in certain implementations of the fourth aspect, the transceiver module is further used to send a downstream service message to the slave ONT according to the upstream NAPT table of the master ONT, and the downstream service message includes a downstream source port field, a downstream destination port field, the protocol field, a downstream source IP address field and a downstream destination IP address field, a downstream source MAC address field and a downstream destination MAC address field, wherein the downstream source port field includes the port number information of the server, the downstream destination port field includes the port number information of the slave ONT, the downstream source IP address field includes the IP address information of the server, the downstream destination IP address field includes the IP address information of the slave ONT, the downstream source MAC address field includes the MAC address information of the server, and the downstream destination MAC address field includes the MAC address information of the slave ONT.

[0042] In combination with the fourth aspect, in some implementations of the fourth aspect, the transceiver module is further used to receive a slave ONT downstream NAPT table from the slave ONT, wherein the slave ONT downstream NAPT table includes a mapping relationship from the IP address information of the slave ONT and the port number information of the slave ONT to the IP address information of the terminal device and the port number information of the terminal device. The processing module is further used to generate a master ONT downstream NAPT table according to the slave ONT downstream NAPT table.

[0043] In a fifth aspect, an embodiment of the present application provides a device for forwarding a service message. The device is used to execute the method provided in the first aspect above. Specifically, the device for forwarding a service message may include a unit and / or module, such as a processing unit and an acquisition unit, for executing the method provided in the first aspect or any one of the above implementations of the first aspect.

[0044] In one implementation, the device for forwarding the service message is a slave ONT. The acquisition unit may be a transceiver, or an input / output interface; the processing unit may be at least one processor. Optionally, the transceiver may be a transceiver circuit. Optionally, the input / output interface may be an input / output circuit.

[0045] In another implementation, the device for forwarding the service message is a chip, chip system or circuit in the slave ONT. The acquisition unit may be an input / output interface, interface circuit, output circuit, input circuit, pin or related circuit on the chip, chip system or circuit; the processing unit may be at least one processor, processing circuit or logic circuit.

[0046] In a sixth aspect, an embodiment of the present application provides a device for forwarding a service message, the device being used to execute the method provided in the second aspect. Specifically, the device for forwarding a service message may include a unit and / or module, such as a processing unit and an acquisition unit, for executing the method provided in the second aspect or any one of the above-mentioned implementations of the second aspect.

[0047] In one implementation, the device for forwarding service messages is a master ONT. The acquisition unit may be a transceiver, or an input / output interface; the processing unit may be at least one processor. Optionally, the transceiver may be a transceiver circuit. Optionally, the input / output interface may be an input / output circuit.

[0048] In another implementation, the device for forwarding service messages is a chip, chip system or circuit in the main ONT. The acquisition unit may be an input / output interface, interface circuit, output circuit, input circuit, pin or related circuit on the chip, chip system or circuit; the processing unit may be at least one processor, processing circuit or logic circuit.

[0049] In a seventh aspect, an embodiment of the present application provides a processor for executing the methods provided in the above aspects.

[0050] For the operations such as sending and acquiring / receiving involved in the processor, unless otherwise specified, or unless they conflict with their actual function or internal logic in the relevant description, they can be understood as operations such as processor output, reception, input, etc., or as sending and receiving operations performed by the radio frequency circuit and antenna, and this application does not limit this.

[0051] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium stores a program code for execution by a device, the program code including a method for executing the first aspect or the second aspect and any one of the implementations of the first aspect or the second aspect.

[0052] In a ninth aspect, an embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on a computer, the computer executes the method provided in the first aspect or the second aspect and any one of the implementations of the first aspect or the second aspect.

[0053] In the tenth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The processor reads instructions stored in a memory through the communication interface to execute the method provided by the above-mentioned first aspect or second aspect and any one of the implementation methods of the first aspect or second aspect.

[0054] Optionally, as an implementation method, the chip also includes a memory, in which a computer program or instructions are stored, and the processor is used to execute the computer program or instructions stored in the memory. When the computer program or instructions are executed, the processor is used to execute the method provided by the above-mentioned first aspect or second aspect and any one of the implementation methods of the first aspect or second aspect.

[0055] In the eleventh aspect, an embodiment of the present application provides a system for forwarding business messages, including the communication device described in the fifth aspect and the device for forwarding business messages described in the sixth aspect.

[0056] The beneficial effects brought about by the third to eleventh aspects mentioned above can be specifically referred to the description of the beneficial effects in the first or second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 It is a schematic diagram of a passive optical network (PON) application scenario of an embodiment of the present application.

[0058] Figure 2 It is a schematic diagram of the FTTR application scenario of an embodiment of the present application.

[0059] Figure 3 It is a schematic flow chart of FTTR data packet forwarding when the main ONT works in the three-layer forwarding mode.

[0060] Figure 4 This is a schematic diagram of the FTTR centralized forwarding architecture.

[0061] Figure 5 It is a schematic flowchart of a method 500 for forwarding service messages provided in an embodiment of the present application.

[0062] Figure 6 It is a schematic block diagram of a first device 600 for forwarding service messages provided in an embodiment of the present application.

[0063] Figure 7 It is a schematic block diagram of a second device 700 for forwarding service messages provided in an embodiment of the present application.

[0064] Figure 8 It is a schematic structural diagram of the third device 800 for forwarding service messages provided in an embodiment of the present application.

[0065] Fig. 9 It is a schematic structural diagram of the fourth device 800 for forwarding service messages provided in an embodiment of the present application.

[0066] Fig.10 It is a structural diagram of a slave ONT or a master ONT provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0068] The technical solutions of the embodiments of the present application can be applied to various passive optical network (PON) systems, for example, next-generation PON (NG-PON), NG-PON1, NG-PON2, gigabit-capable PON (GPON), 10 gigabit per second PON (XG-PON), 10-gigabit-capable symmetric passive optical network (XGS-PON), Ethernet PON (EPON), 10 gigabit per second EPON (10G-EPON), next-generation EPON (NG-EPON), wavelength-division multiplexing (WDM) PON, time-and wavelength-division multiplexing (TWDM) PON, point-to-point (P2P) WDM PON (P2P-WDM PON), asynchronous transfer mode PON (asynchronous transfer mode PON, APON), broadband PON (broadband PON, BPON), etc., as well as 25 gigabit per second PON (25G-PON), 50 gigabit per second PON (50G-PON), 100 gigabit per second PON (100G-PON), 25 gigabit per second EPON (25G-EPON), 50 gigabit per second EPON (50G-EPON), 100 gigabit per second EPON (100G-EPON), and other GPON, EPON, etc. It can also be used in optical networks such as optical transport network (OTN) systems.

[0069] The terminal device in the embodiment of the present application is a device with wireless transceiver function.

[0070] To facilitate understanding of the embodiments of the present application, several terms involved in the present application are first briefly explained.

[0071] 1. Passive Optical Network (PON) System

[0072] Figure 1 Figure 1 is a schematic diagram of a passive optical network (PON) system. Figure 1 As shown, the passive optical network (PON) includes an optical line terminal (OLT) 110, an optical distribution network (ODN) 120, and an optical network unit (ONU) 130. The optical line terminal 110 is connected to multiple optical network units 130 in a point-to-multipoint manner through the optical distribution network 120. The optical line terminal 110 and the optical network unit 130 can communicate using a time division multiplexing (TDM) mechanism, a wavelength division multiplexing (WDM) mechanism, or a TDM / WDM hybrid mechanism. Among them, the direction from the optical line terminal 110 to the optical network unit 130 is defined as the downlink direction, and the direction from the optical network unit 130 to the optical line terminal 110 is the uplink direction.

[0073] The passive optical network system can be a communication network that does not require any active devices to achieve data distribution between the optical line terminal 110 and the optical network unit 130, wherein the data distribution between the optical line terminal 110 and the optical network unit 130 can be achieved through passive optical devices (such as splitters) in the optical distribution network 120.

[0074] The optical line terminal 110, which can also be called a central office device, can uniformly manage the multiple optical network units 130. The optical line terminal 110 can act as a medium between the optical network unit 130 and the upper network (i.e., the convergence layer), forwarding the data received from the upper network as downlink data to the optical network unit 130, and forwarding the uplink data received from the optical network unit 130 to the upper network.

[0075] The optical distribution network 120 may be a data distribution system that may include optical fibers, optical couplers, optical combiners / demultiplexers, optical splitters, and / or other devices. Figure 1 In the branching structure shown, the optical distribution network 120 may specifically extend from the optical line terminal 110 to a plurality of optical network units 130, but may also be configured into any other point-to-multipoint structure.

[0076] The optical network unit 130 can be distributedly arranged at the user side location (such as the user's premises). The optical network unit 130 can be a network device for communicating with the optical line terminal 110 and the user, and can provide broadband voice, data or video services for the user. Specifically, the optical network unit 130 can act as a medium between the optical line terminal 110 and the user. For example, the optical network unit 130 can forward the downlink data received from the optical line terminal 110 to the user, and forward the data received from the user as uplink data to the optical line terminal 110. In some scenarios, the optical network unit 130 also provides a user port function, such as providing an Ethernet Ethernet user port or a plain old telephone service (POTS) user port, which is called an ONT or an optical modem. Both ONU and ONT are connected optical fibers, and the optical signal is connected from the operator to the user's home, and then the optical signal of the optical fiber is converted into a network electrical signal through optical signal conversion. In this application, they are regarded as the same concept and are not distinguished.

[0077] 2. Address Resolution Protocol (ARP)

[0078] It is a transmission control protocol (TCP) / IP protocol that obtains the physical address based on the Internet protocol (IP) address, that is, it realizes the mapping from IP address to physical address. The Ethernet protocol stipulates that when a host in the same local area network wants to communicate with another host, it needs to clarify the media access control (MAC) address of the target host. In the TCP / IP protocol stack, the network layer and the transport layer need to clarify the IP address of the target host. This results in that when the IP protocol is used in Ethernet, the Ethernet protocol of the data link layer receives the data provided by the upper layer IP protocol, which only contains the IP address of the destination host. Therefore, ARP can be used to obtain the MAC address of the destination host based on the IP address of the destination host. The ARP table generated by this process maintains a mapping relationship between the destination IP address and the destination MAC address.

[0079] 3. Routing table

[0080] Also known as the routing information base (RIB), it is a spreadsheet (file) or database-like information stored in a routing device or networked computer. The routing table stores the path to a specific network address. The routing table contains topological information around the network. The routing table is used to make decisions on routing and forwarding packets. Each forwarding entry in the routing table indicates which physical interface of the router the packet should be sent through to a certain network segment or a certain host, and then it can reach the next router on the path. Among them, there are three types of routes in the routing table: (1) routes discovered by the link layer protocol (that is, direct routes); (2) static routes; (3) routes discovered by dynamic routing protocols. Routing is the basis for IP layer forwarding. The routing table information includes the following important information: (1) destination network / prefix length. Among them, the destination address is used to identify the destination address or destination network of the IP packet. The prefix length is also called the network mask, which together with the destination address identifies the address of the network segment where the destination host or router is located; (2) next hop address IP. The next hop address IP is used to indicate the next router that the IP packet passes through; (3) output interface. The output interface is used to indicate which interface the IP packet will be forwarded from on the router.

[0081] 4. Network address port translation (NAPT)

[0082] Used to map IP addresses and port numbers, internal IP and internal port can be mapped to public IP and public port, that is, the source address of IP data packets with different internal addresses is mapped to the same external address, and the source port numbers of these source addresses are converted to different port numbers, which can realize the mapping between one public address and multiple internal addresses. NAPT can make more full use of IP address resources, use a legal public address, and correspond different internal addresses with different protocol port numbers, that is, the conversion between <internal address + internal port> and <external address + external port>, which is used in scenarios where there is only one public IP but multiple business systems need to be accessed by the Internet. NAPT is commonly used in access devices, which can hide small and medium-sized networks behind a legal IP address.

[0083] 5. Network address translation (NAT)

[0084] Used to achieve mutual access between the internal network (private network) and the public network. Used to convert the internal network address and port number into a legal public network address and port number.

[0085] 6. Open System Interconnection (OSI). Generally referred to as the OSI reference model or the seven-layer model. It is a seven-layer, abstract model that includes not only a series of abstract terms or concepts, but also specific protocols. According to the OSI network seven-layer model, the first to seventh layers are the physical layer, link data layer, network layer, transport layer, session layer, presentation layer, and application layer, respectively. The embodiments of the present application relate to the OSI three-layer forwarding and two-layer forwarding processes. Among them, in the two-layer forwarding, the second-layer data link layer is responsible for the MAC address, and the two-layer forwarding is based on the MAC address to forward data packets. The network layer is located at the third layer in the OSI model, between the transport layer and the data link layer, and provides information transmission services between the sender and the target end. Data at the network layer is transmitted in the form of IP datagrams.

[0086] Specifically, the difference between Layer 3 forwarding and Layer 2 forwarding is: 1. Data forwarding relies on different keywords. Layer 2 forwarding mainly relies on MAC addresses, while Layer 3 forwarding mainly relies on IP addresses. 2. The scope of data exchange is different. Layer 2 exchange refers to communication within the same network segment, while Layer 3 exchange refers to communication across network segments. 3. During the process of Layer 3 forwarding, Layer 2 encapsulation is also required. In other words, the (source and destination) MAC addresses in the Layer 2 frame header will change during the forwarding process. However, the source IP and destination IP addresses in the IP datagram will not change.

[0087] Figure 2 Schematic diagram of FTTR application scenario in the embodiment of the present application. Figure 2 As shown in the figure, the FTTR network consists of four parts: the master ONT, the slave ONT (or edge ONT), the home optical network (or home ODN), and the cloud management platform. Among them, the master ONT is located between the central office OLT and the slave ONT, and is connected to the central office OLT through XGPON or 10G EPON, supporting Gigabit access to the home, and providing a fiber optic interface to connect the slave ONT. As the center of the home network, the master ONT can achieve unified management and configuration of all slave ONTs. The slave ONT is a distributed Wi-Fi access device for the home, distributed to each room of the home, connected to the FTTR master ONT through a home optical cable, and providing Wi-Fi 6 and GE ports to access various home Internet terminals.

[0088] The slave ONT is a networking device distributed in each room in the FTTR solution. It is connected to the master ONT via optical fiber and provides gigabit Ethernet (GE) interface and Wi-Fi 6 access capabilities. It is the main access device for home terminals. The slave ONT works in bridging mode. The FTTR master ONT uniformly allocates management IP and the IP of other devices connected to the slave ONT, so that the entire home network constitutes a unified and interoperable LAN. Each device connected to the slave ONT can achieve LAN inter-access operations such as screen projection and file sharing under ultra-gigabit bandwidth. The home optical network is a home optical cable infrastructure composed of optical cables, optical cable panels and other necessary optical network components deployed using special tools and auxiliary materials. The cloud management platform manages the slave ONT as an agent of the FTTR master ONT, uniformly collects home network information and reports it to the cloud management platform to realize the operation and maintenance of the home network.

[0089] Therefore, under the FTTR architecture, the optical network is further extended to each slave ONT, and the FTTR master ONT plays a role of "bridging the gap", extending the "optical in, copper out" policy to each room. It can achieve a unified name for Wi-Fi in the whole house, dual-band integration, automatic control of roaming switching, and improve user experience.

[0090] Currently, in the FTTR networking scenario, the slave ONT works in the bridging mode, and the master ONT can work in the Layer 2 forwarding mode, or it can work in the Layer 3 forwarding mode as a home gateway. When the master ONT works in the Layer 3 forwarding mode, the master ONT needs to forward the service messages of all the slave ONTs and user devices connected to it at Layer 3, and it also needs to manage the Layer 3 routing and ARP tables, and perform NAPT and Layer 3 forwarding editing on the service messages. Figure 3 The schematic flow chart of FTTR service message forwarding when the master ONT works in the layer 3 forwarding mode is shown. Figure 3 In the example, the IP address of the terminal device is 192.168.100.2, the internal IP address of the master ONT is 192.168.100.1, the public IP address of the master ONT is 100.100.100.10, the IP address of the switch is 100.100.100.1, and the IP address of the server is 27.152.132.30.

[0091] For the upstream direction, if the terminal device sends a TCP protocol or user datagram protocol (UDP) service message to the server, the service message will contain the source IP address field and the source port field, the destination IP address field and the destination port field and the payload data. Among them, the source IP and port are the IP address and port of the terminal device, that is, 192.168.100.2:1111, and the destination IP address and port are the IP address and port of the server, that is, 27.152.132.30, and the default port is 80. First, the terminal device 192.168.100.2 first sends an ARP request to the main ONT (192.168.100.1). After the main ONT learns the ARP table entry of the terminal device, it sends a response ARP to the terminal device. After the terminal device receives the ARP response from the main ONT and generates the ARP table entry, it sends the service message to the main ONT, where the slave ONT is used to directly transmit the service message. After receiving the service message, the master ONT queries the routing table and obtains the IP address of the next-hop gateway (switch) sent to the address 27.152.132.30 (i.e., the server) as 100.100.100.1. Therefore, it first sends an ARP request to the remote switch. After the switch learns the ARP table entry of 100.100.100.10 (the master ONT), it sends a response ARP message to the master ONT. After the master ONT generates an ARP table entry based on the ARP response message sent by the switch, it performs Layer 3 forwarding and NAT conversion on the service message, changes the source IP address of the service message to a public IP address and randomly uses an idle port (2222), the destination address remains unchanged, the source MAC address is replaced with the MAC address of the master ONT, the destination MAC address is replaced with the MAC address of the switch, and the NAT conversion process is recorded in the NAPT table (192.168.100.2:1111->100.100.100.10:2222), and then sends the data packet to the switch. The switch forwards the received data packet to the server. After receiving the data packet, the server obtains the source IP address and port (100.100.100.10:2222), the destination IP address and port (27.152.132.30:80) and the payload data contained in the data packet. At the same time, the server responds to the switch with the received data packet, which includes the address and port (27.152.132.30:80), the destination address and port (100.100.100.10:2222) and the payload data.

[0092] For the downstream direction, after receiving the data packet from the server side, the master ONT determines that the internal IP address of the LAN corresponding to 100.100.100.10:2222 is 192.168.100.2:1111 according to the NAPT address translation table, and performs NAT translation according to the obtained address information, that is, 100.100.100.10:2222 is converted to 192.168.100.2:1111, and the source MAC address is replaced with the MAC address of the master ONT and the destination MAC address is replaced with the MAC address of the terminal device, and the data packet is sent to the terminal device. The terminal device receives the TCP / UDP data packet forwarded from the master ONT, wherein the data packet contains the source IP address and port (27.152.132.30:80), the destination IP address and port (192.168.100.2:1111) and the payload data.

[0093] It should be noted that when the master ONT works as a gateway in the Layer 3 mode, if the data packet on the terminal device side is the first data packet sent, the hardware table entry on the master ONT has not been generated. At this time, the data packet will be sent to the central processing unit (CPU) of the master ONT for processing, and the NAPT table and Layer 3 forwarding table entry will be generated by the CPU of the master ONT. In actual application scenarios, a large number of slave ONTs are generally connected to the master ONT, such as Figure 4 As shown. At this time, the master ONT will receive a large number of data first packets, which poses a great challenge to the performance of the CPU of the master ONT. It is easy to cause the CPU of the master ONT to be unable to process a large amount of data and cause packet loss, thereby affecting the user's Internet experience. Therefore, a distributed forwarding method in the FTTR scenario is urgently needed to solve the performance bottleneck when a large number of slave ONTs and terminal devices are connected to the master ONT, so as to achieve the purpose of accessing more terminal users.

[0094] The present application provides a method for forwarding service messages, which moves the processing flow of generating a NAPT table and a three-layer forwarding table to a slave ONT, that is, the CPU of the slave ONT is used instead of the CPU of the master ONT to perform NAPT and three-layer forwarding editing on the data packet, thereby saving the CPU resources of the master ONT and achieving the purpose of being able to access more slave ONTs and terminal devices.

[0095] The following is a detailed description of the method for forwarding service messages provided by the present application in conjunction with the accompanying drawings. Since one or more slave ONTs in the FTTR optical communication system can be connected to the same master ONT (i.e., connected via a home optical network), the master ONT and any slave ONT in the optical communication system can communicate. Wherein, the master ONT and the slave ONT communicating may include the master ONT sending a downlink data packet (downlink communication) to the slave ONT, and the slave ONT sending an uplink data packet (uplink communication) to the master ONT, which are all applicable to the method for forwarding service messages provided by the present application. Below, a master ONT and at least one slave ONT (wherein, n is an integer greater than or equal to 2) perform uplink communication (corresponding to method 500 below) or a master ONT and at least one slave ONT perform downlink communication (corresponding to method 500 below) The interactive process between the following is described in detail as an example of the method for forwarding service messages provided in the embodiment of the present application.

[0096] Figure 5 is a flow chart of a method 500 for forwarding a service message provided in an embodiment of the present application, which can be applied in Figure 2 In the FTTR system shown in FIG.

[0097] First, it should be noted that the method 500 is described by taking one slave ONT among n slave ONTs as an example.

[0098] S501: The terminal device sends a first uplink service message to a slave ONT.

[0099] Specifically, the terminal device sends a first uplink service message to the slave ONT. Correspondingly, the slave ONT receives the first uplink service message from the terminal device. The first uplink service message is carried in the first uplink data packet of the service flow. The first uplink service message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source IP address field, an uplink destination IP address field, an uplink source MAC address field, and an uplink destination MAC address field.

[0100] Among them, the uplink source port field includes the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the protocol field includes indication information that only the protocol used by the first uplink service message is the TCP protocol or the UDP protocol, the uplink source IP address field includes the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the slave ONT.

[0101] It should be noted that the information included in the uplink source port field, the uplink destination port field, the protocol field, the uplink source IP address field, and the uplink destination IP address field can be called the five-tuple information of the first uplink service message.

[0102] It should be understood that when the terminal device sends the first uplink service message to the server, the terminal device checks that the destination IP address of the server is not in the same network segment as itself. At this time, the terminal device needs to send the first uplink service message to the server through the master ONT. Therefore, the terminal device needs to obtain the MAC address of the master ONT, and generate the terminal device ARP table according to the MAC address of the master ONT and the IP of the master ONT, and then send the first uplink service message according to the terminal device ARP table. That is, before the terminal device sends the first uplink service message to the slave ONT, the method also includes the process of the terminal device generating the terminal device ARP table, the slave ONT generating the slave ONT ARP table, and the master ONT generating the master ONT ARP table, and the process includes the following multiple steps S5011~S5016:

[0103] S5011, the terminal device sends an ARP request message.

[0104] Specifically, when the terminal device accesses the network, the terminal device sends an ARP request message to request the MAC address of the master ONT. The ARP request message can be sent by the terminal device in a broadcast manner. The ARP request message includes the MAC address and IP address of the terminal device.

[0105] Exemplarily, if the MAC address and IP address of each network element are as shown in Table 1 below, the IP address of the terminal device is 100.1.1.2, and the MAC address is 00e0-d26b-8121. The IP address of the slave ONT is 100.1.1.3, and the MAC address is 00e0-d26b-8112. The IP address of the master ONT is 100.1.1.1, and the MAC address is 00e0-d26b-8111. The public IP address of the slave ONT and the master ONT is 200.1.1.1. The IP address of the server is 200.1.1.2, and the MAC address is 00e0-d26b-8212.

[0106] Table 1

[0107] IP address MAC Address Public IP Address Terminal equipment 100.1.1.2 00e0-d26b-8121 / From ONT / / 200.1.1.1 Master ONT 100.1.1.1 00e0-d26b-8111 200.1.1.1 server 200.1.1.2 00e0-d26b-8212 /

[0108] The message format of the ARP request message sent by the terminal device can be as shown in Table 2 below:

[0109] Table 2

[0110]

[0111] Among them, D-MAC represents the destination MAC address, S-MAC represents the source MAC address. Similarly, D-IP represents the destination IP address, and S-IP represents the source IP address.

[0112] S5012: The slave ONT forwards the ARP request message to the master ONT.

[0113] Specifically, after receiving the ARP request message from the terminal device, the slave ONT forwards the ARP request message to the master ONT.

[0114] S5013: The slave ONT generates a slave ONT ARP table according to the ARP request message.

[0115] Specifically, when the slave ONT forwards an ARP request message to the master ONT, the slave ONT copies an ARP message and records the correspondence between the IP address and the MAC address of the terminal device according to the ARP message to generate a slave ONT ARP table.

[0116] S5014: The master ONT generates a master ONT ARP table according to the ARP request message.

[0117] Specifically, when the master ONT receives the ARP request message from the slave ONT, the master ONT checks the message and finds that the IP address of the requested terminal device is the layer 3 interface IP. The master ONT records the correspondence between the IP address and the MAC address of the terminal device according to the ARP request message and generates the master ONT ARP table.

[0118] S5015: The master ONT sends an ARP response message to the terminal device.

[0119] Specifically, after receiving the ARP request message, the master ONT sends an ARP response message to the terminal device, wherein the ARP response message includes the MAC address of the master ONT. Optionally, the ARP response message includes the master ONT ARP table generated by the master ONT in S5014.

[0120] Still taking the example in S5011 as an example, the message format of the ARP response message can be shown in the following Table 3:

[0121] Table 3

[0122]

[0123] S5016: The terminal device generates a terminal device ARP table according to the ARP response message.

[0124] Specifically, after receiving the ARP response message from the master ONT, the terminal device obtains the MAC address of the master ONT by parsing the ARP response message, and records the correspondence between the MAC address of the master ONT and the IP address of the master ONT, and generates an ARP table of the terminal device containing the correspondence between the MAC address of the master ONT and the IP address of the master ONT.

[0125] Exemplarily, still taking the example in S5011 as an example, after the terminal device generates the terminal device ARP table, the address information in the first uplink service message generated according to the terminal device ARP table may be as shown in the following Table 4:

[0126] Table 4

[0127]

[0128] It should be noted that the first uplink service message shown in Table 4 only shows the address information in the first uplink service message. It should be understood that the first uplink service message also includes other information such as the source port number and the destination port number.

[0129] S502: Generate a first uplink forwarding message from the ONT.

[0130] Specifically, since it is the first uplink data packet of the service flow, there is no NAPT table entry sent to the remote server on the hardware forwarding chip of the slave ONT, so the first uplink service message will be sent to the CPU of the slave ONT. At the same time, since the slave ONT is an intermediate node, the CPU of the slave ONT re-edits and replaces the source MAC address field, the destination MAC address field, the source IP address field and the source port field of the first uplink service message. Among them, the slave ONT modifies the MAC address information of the terminal device in the uplink source MAC address field to the MAC address information of the slave ONT; modifies the MAC address information of the slave ONT in the uplink destination MAC address field to the MAC address information of the server; modifies the IP address information of the terminal device in the uplink source IP address field to the IP address information of the slave ONT; and modifies the port number information of the terminal device in the uplink source port field to the port number information of the slave ONT.

[0131] Exemplarily, still taking the example in S5011 as an example, the partial format of the first uplink forwarding message may be as shown in the following Table 5:

[0132] Table 5

[0133]

[0134] It should be understood that the first uplink forwarding message format also includes other information such as the source port number and the destination port number.

[0135] Optionally, the slave ONT may edit the first uplink service message to generate the first uplink forwarding message according to the routing table obtained from the master ONT and the master ONT ARP table. The process includes the following steps.

[0136] S5021, the master ONT obtains configuration information.

[0137] Specifically, the cloud management platform (or the server of the cloud management platform) sends configuration information, such as layer-3 configuration information, to the master ONT. The layer-3 configuration information includes a layer-3 interface, an IP address, and a routing table of the master ONT.

[0138] S5022: The master ONT forwards the configuration information to the slave ONT.

[0139] Specifically, after the master ONT completes the configuration according to the configuration information sent by the cloud management platform, it forwards the configuration information to the slave ONT through the management channel. Correspondingly, the slave ONT obtains the routing table through the configuration information sent by the master ONT.

[0140] S5023, the master ONT forwards the master ONT ARP table to the slave ONT.

[0141] Specifically, after the master ONT generates a master ONT ARP table according to the ARP request message of the terminal device, the master ONT ARP table may be synchronized to the slave ONT.

[0142] S503: The slave ONT sends a first uplink forwarding message to the master ONT.

[0143] Specifically, after the slave ONT generates the first uplink forwarding message, it sends the first uplink forwarding message to the master ONT. It should be understood that the uplink forwarding message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source IP address field, an uplink destination IP address field, an uplink source MAC address field, and an uplink destination MAC address field. Among them, the uplink source port field includes the port number information of the slave ONT, the uplink source IP address field includes the IP address information of the slave ONT, the uplink source MAC address field includes the MAC address information of the slave ONT, and the uplink destination MAC address field includes the MAC address information of the server.

[0144] S504: The master ONT sends a first uplink forwarding message to the server.

[0145] Specifically, after the master ONT receives the first uplink forwarding message sent by the slave ONT, the hardware forwarding chip of the master ONT forwards the first uplink forwarding message to the server through the layer 2 MAC according to the layer 2 MAC address.

[0146] Optionally, before the master ONT forwards the first uplink forwarding message to the server, the method further includes the master ONT generating a master ONT layer 2 forwarding table, namely, the following step S5041.

[0147] S5041: The master ONT generates a master ONT layer 2 forwarding table.

[0148] Specifically, the hardware forwarding chip of the master ONT generates a master ONT layer 2 forwarding table according to its own MAC address and the MAC address of the server.

[0149] S505: The slave ONT sends the slave ONT upstream NAPT table to the master ONT.

[0150] Specifically, after receiving the first uplink service message from the slave ONT, the slave ONT can generate a slave ONT uplink NAPT table by executing NAT, and send the slave ONT uplink NAPT table to the master ONT. The slave ONT uplink NAPT table includes a mapping relationship from the IP address information of the terminal device and the port number information of the terminal device to the IP address information of the slave ONT and the port number information of the slave ONT.

[0151] S506: The master ONT generates a master ONT upstream NAPT table according to the slave ONT upstream NAPT table.

[0152] Specifically, after receiving the upstream NAPT table of the slave ONT, the master ONT generates the upstream NAPT table of the master ONT according to the upstream NAPT table of the slave ONT.

[0153] It should be noted that step S505 should be before S506, and S503 should be before S504; however, S505 may be before or after S503. Exemplarily, the slave ONT may send the slave ONT upstream NAPT table and the first upstream forwarding message to the master ONT simultaneously.

[0154] S507: The master ONT receives a first downlink service message.

[0155] Specifically, after the server receives the first uplink forwarding message from the master ONT, it sends a response message, i.e., the first downlink service message, to the master ONT. Accordingly, the master ONT receives the first downlink service message from the server, and the first downlink service message is included in the first downlink data packet. Among them, the first downlink service message includes a downlink source port field, a downlink destination port field, a protocol field, a downlink source IP address field, a downlink destination IP address field, a downlink source MAC address field, and a downlink destination MAC address field. Among them, the downlink source port field includes the port number information of the server, the downlink destination port field includes the port number information of the slave ONT, the downlink source IP address field includes the IP address information of the server, the downlink destination IP address field includes the IP address information of the slave ONT, the downlink source MAC address field includes the MAC address information of the server, and the downlink destination MAC address field includes the MAC address information of the slave ONT.

[0156] For example, still taking the example in S5011 as an example, a partial format of the first downlink service message may be as shown in the following Table 6:

[0157] Table 6

[0158]

[0159] It should be noted that the format of the first downlink service message portion shown in Table 6 is only an example and not a limitation. It should be understood that the first downlink service message format also includes other information such as the source port number and the destination port number. This information can be obtained based on the information in the first uplink service message (or the first uplink forwarding message).

[0160] S508: The master ONT forwards the first downlink service message to the slave ONT.

[0161] Specifically, after the master ONT receives the first downstream service message sent by the server, it forwards the first downstream service message to the slave ONT. Since the first downstream service message is carried in the first downstream data packet received by the master ONT, there is no NAPT table on the hardware forwarding chip of the master ONT. At this time, the master ONT determines the outgoing port numbers of the slave ONT and the slave ONT according to the first master ONT uplink NAPT table generated in S506 through the master ONT CPU, and forwards the first downstream service message to the corresponding slave ONT through the determined slave ONT and the port of the slave ONT.

[0162] S509: Generate a first downstream forwarding message from the ONT.

[0163] Specifically, after the slave ONT receives the first downstream service message from the master ONT, since it is the first downstream data packet of the service flow, there is no NAPT table entry sent to the terminal device on the hardware forwarding chip of the slave ONT, so the first downstream service message will be sent to the CPU of the slave ONT. The CPU of the slave ONT generates a first downstream forwarding message. Among them, the slave ONT modifies the MAC address information of the server in the downstream source MAC address field to the MAC address information of the slave ONT; modifies the MAC address information of the slave ONT in the downstream destination MAC address field to the MAC address information of the terminal device; modifies the IP address information of the slave ONT in the downstream destination IP address field to the IP address information of the terminal device according to the upstream NAPT table of the slave ONT; and modifies the port number information of the slave ONT in the downstream destination port field to the port number information of the terminal device according to the upstream NAPT table of the slave ONT.

[0164] Exemplarily, still taking the example in S5011 as an example, the partial format of the first downlink forwarding message may be as shown in the following Table 7:

[0165] Table 7

[0166]

[0167] S510: Send a first downlink forwarding message from the ONT to the terminal device.

[0168] Specifically, after the slave ONT generates the first downstream forwarding message, the first downstream forwarding message is sent to the terminal device. The first downstream forwarding message includes a downstream source port field, a downstream destination port field, a protocol field, a downstream source IP address field, a downstream destination IP address field, a downstream source MAC address field, and a downstream destination MAC address field. Among them, the downstream destination port field includes the port number information of the terminal device, the downstream destination IP address field includes the IP address information of the terminal device, the downstream source MAC address field includes the MAC address information of the slave ONT, and the downstream destination MAC address field includes the MAC address information of the terminal device.

[0169] S511, the slave ONT sends the slave ONT downstream NAPT table to the master ONT.

[0170] Specifically, after the slave ONT can generate a slave ONT downstream NAPT table in the downstream direction through NAT, the slave ONT downstream NAPT table is sent to the master ONT.

[0171] S512: The master ONT generates a master ONT downstream NAPT table according to the slave ONT downstream NAPT table.

[0172] Specifically, after receiving the downstream NAPT table of the slave ONT, the master ONT generates a master ONT downstream NAPT table according to the downstream NAPT table of the slave ONT.

[0173] It should be noted that there is no sequence between 505 and S503 or S504. There is no sequence between S506 and S503 or S504. However, it should be understood that S505 should be before S506, and S503 should be before S504. Exemplarily, the sending of the slave ONT downstream NAPT table and the first downstream forwarding message to the master ONT may be performed simultaneously.

[0174] S513: The terminal device sends a second uplink service message to the slave ONT.

[0175] Specifically, the terminal device sends a second uplink service message to the slave ONT, and correspondingly, the slave ONT receives the second uplink service message of the terminal device. The second uplink service message is carried in a non-first data packet of the service flow.

[0176] For example, still taking the example in S5011 as an example, the format of the second uplink service message sent by the terminal device can refer to the above Table 4, which will not be repeated here. It should be understood that the second uplink service message also includes other information such as the source port number and the destination port number.

[0177] S514: The slave ONT sends a second uplink service message to the master ONT.

[0178] Specifically, because the hardware chip of the slave ONT matches the layer 2 forwarding table, the slave ONT forwards the second uplink service message to the master ONT according to the layer 2 forwarding table.

[0179] Optionally, before the slave ONT forwards the second line of service messages to the master ONT, the method further includes generating a slave ONT layer 2 forwarding table from the slave ONT, namely, the following step S5141.

[0180] S5141, the slave ONT generates a slave ONT layer 2 forwarding table.

[0181] Specifically, the hardware forwarding chip of the slave ONT generates a slave ONT layer 2 forwarding table according to its own MAC address and the MAC address of the master ONT.

[0182] S515: The master ONT generates a second uplink forwarding message.

[0183] Specifically, after the master ONT receives the second uplink service message sent from the slave ONT, since the master ONT matches the hardware chip NAPT forwarding table, the master ONT edits and processes the second uplink service message on its hardware forwarding chip to generate a second uplink forwarding message. The editing and processing process of the second uplink service message can refer to the processing of the first uplink service message in S502 above, which will not be repeated here. The format of the second uplink forwarding message can refer to the format of the first uplink forwarding message, that is, as shown in Table 5, which will not be repeated here.

[0184] S516: The master ONT sends a second uplink forwarding message to the server.

[0185] Specifically, the master ONT sends a second uplink forwarding message to the server, and correspondingly, the server receives the second uplink forwarding message sent by the master ONT.

[0186] S517: The master ONT receives a second downlink service message.

[0187] Specifically, after the server receives the second uplink forwarding message from the master ONT, it sends a response message, i.e., a second downlink service message, to the master ONT. Accordingly, the master ONT receives the second downlink service message from the server, and the second downlink service message is included in the second downlink data packet. The second downlink service message is carried in the non-first downlink data packet of the service flow. Among them, the format of the second downlink service message can refer to the format of the first downlink service message, i.e., as shown in Table 6, which will not be repeated here.

[0188] S518: The master ONT generates a second downstream forwarding message.

[0189] Specifically, after the master ONT receives the second downlink service message sent by the slave ONT, since the master ONT matches the hardware chip NAPT forwarding table, the master ONT edits and processes the second downlink service message on its hardware forwarding chip to generate a second downlink forwarding message. The process of editing and processing the second downlink service message can refer to the processing of the second uplink service message in S515 above, which will not be repeated here.

[0190] S519: The master ONT sends a second downstream forwarding message to the slave ONT.

[0191] Specifically, the master ONT sends a second downstream forwarding message to the slave ONT, and correspondingly, the slave ONT receives the second downstream forwarding message sent by the master ONT. The format of the second downstream forwarding message can refer to the format of the first downstream forwarding message, as shown in Table 7, and will not be repeated here.

[0192] S520: Send a second downlink forwarding message from the ONT to the terminal device.

[0193] Specifically, since the hardware chip of the slave ONT matches the layer 2 forwarding table, the slave ONT sends the second downlink forwarding message to the server according to the layer 2 forwarding table.

[0194] It should be understood that in the above Figure 5 In the flowchart of the method 500 for forwarding service messages shown, S501-S506 are the forwarding process of the first uplink data packet, and the corresponding forwarding process of the first downlink data packet is S507-S512. The forwarding process of the uplink non-first data packet is S513-S516, and the corresponding forwarding process of the downlink non-first data packet is S517-S520.

[0195] It should be noted that the message formats in the above steps are only examples and not limitations. It should be understood that the message format may also include other information, for example, the format of the service message may also include information such as a protocol port number, etc., which is not limited in this application.

[0196] Based on the method for forwarding service messages provided by the above embodiment of the present application, when the service message is carried in the first uplink data packet or the first downlink data packet, the service message is edited and forwarded at layer 3 by the CPU of the slave ONT, thereby saving the CPU resources of the master ONT. For service messages carried in non-first data packets, the service message is edited and forwarded at layer 3 by the hardware forwarding chip of the master ONT, thereby improving the efficiency of message processing, saving latency, and thus improving user experience.

[0197] Combination of the above Figure 5 The method for forwarding service messages provided by the embodiment of the present application is described in detail. Figure 6 , Figure 7 , Figure 8 and Fig. 9 The device for forwarding service messages provided in the embodiment of the present application is described in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0198] Figure 6 A schematic block diagram of a device 600 for forwarding service messages provided in an embodiment of the present application. The device 600 includes a CPU 601 and a hardware forwarding chip 602. The device 600 can be used to execute the actions performed by the slave ONT in the above method embodiment 500. In this case, the device 600 can be a component of the slave ONT, the CPU 601 is used to execute the related operations of the processing function and forwarding function of the slave ONT in the above method embodiment 500, and the hardware forwarding chip 602 is used to execute the related operations of the processing function and forwarding function of the slave ONT in the above method embodiment 500.

[0199] In one embodiment, the device 600 for forwarding service messages may be used to perform the above Figure 5 For example:

[0200] CPU 601 is used to receive an uplink service message from a terminal device. The uplink service message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source Internet Protocol IP address field, an uplink destination IP address field, an uplink source MAC address field, and an uplink destination MAC address field. Among them, the uplink source port field includes the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the slave ONT.

[0201] The CPU 601 is further used to modify the MAC address information of the terminal device in the uplink source MAC address field to the MAC address information of the slave ONT, modify the MAC address information of the slave ONT in the uplink destination MAC address field to the MAC address information of the server, modify the IP address information of the terminal device in the uplink source IP address field to the IP address information of the slave ONT, and modify the port number information of the terminal device in the uplink source port field to the port number information of the slave ONT. And the CPU 601 is also used to send an uplink forwarding message from the slave ONT to the master ONT, the uplink forwarding message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source IP address field, an uplink destination IP address field, an uplink source MAC address field, and an uplink destination MAC address field, wherein the uplink source port field includes the port number information of the slave ONT, the uplink source IP address field includes the IP address information of the slave ONT, the uplink source MAC address field includes the MAC address information of the slave ONT, and the uplink destination MAC address field includes the MAC address information of the server.

[0202] CPU 601 is further used to receive a downlink service message from the master ONT. The downlink service message includes a downlink source port field, a downlink destination port field, a protocol field, a downlink source IP address field, a downlink destination IP address field, a downlink source MAC address field, and a downlink destination MAC address field. Among them, the downlink source port field includes the port number information of the server, the downlink destination port field includes the port number information of the slave ONT, the downlink source IP address field includes the IP address information of the server, the downlink destination IP address field includes the IP address information of the slave ONT, the downlink source MAC address field includes the MAC address information of the server, and the downlink destination MAC address field includes the MAC address information of the slave ONT. The CPU 601 is further used to modify the MAC address information of the server in the downstream source MAC address field to the MAC address information of the slave ONT; modify the MAC address information of the slave ONT in the downstream destination MAC address field to the MAC address information of the terminal device; modify the IP address information of the slave ONT in the downstream destination IP address field to the IP address information of the terminal device according to the upstream NAPT table of the slave ONT; modify the port number information of the slave ONT in the downstream destination port field to the port number information of the terminal device according to the upstream NAPT table of the slave ONT. And send a downstream forwarding message to the terminal device. The downstream forwarding message includes a downstream source port field, a downstream destination port field, a protocol field, a downstream source IP address field, a downstream destination IP address field, a downstream source MAC address field, and a downstream destination MAC address field, wherein the downstream destination port field includes the port number information of the terminal device, the downstream destination IP address field includes the IP address information of the terminal device, the downstream source MAC address field includes the MAC address information of the slave ONT, and the downstream destination MAC address field includes the MAC address information of the terminal device.

[0203] The hardware forwarding chip 602 is used to receive a second uplink service message from the terminal device, the second uplink service message being carried in a non-first uplink data packet of the service flow, and forward the second uplink service message to the master ONT according to the layer 2 forwarding table of the slave ONT.

[0204] The hardware forwarding chip 602 is also used to receive a second downstream forwarding message from the master ONT. The second downstream service message is carried in a second downstream data packet, and the second downstream data packet is a non-first downstream data packet of the service flow. It is also used to forward the second downstream forwarding message to the terminal device according to the second-layer forwarding table of the slave ONT.

[0205] Figure 7A schematic block diagram of a device 700 for forwarding service messages provided in an embodiment of the present application. The device 700 includes a CPU 701 and a hardware forwarding chip 702. The device 700 can be used to execute the actions performed by the master ONT in the above method embodiment 500. In this case, the device 700 can be a component of the master ONT, the CPU 701 is used to execute the related operations of the processing function and forwarding function of the master ONT in the above method embodiment 500, and the hardware forwarding chip 702 is used to execute the related operations of the processing function and forwarding function of the master ONT in the above method embodiment 500.

[0206] In one embodiment, the device 700 for forwarding service messages may be used to perform the above Figure 5 The operation of the master ONT or. For example:

[0207] CPU 701 is used to receive an uplink forwarding message from a slave ONT, the uplink forwarding message is generated based on an uplink service message, and the uplink forwarding message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source IP address field, an uplink destination IP address field, an uplink source MAC address field, and an uplink destination MAC address field. The uplink source port field includes the port number information of the slave ONT after the port number information of the terminal device is replaced, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the slave ONT after the IP address information of the terminal device is replaced, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the slave ONT after the MAC address information of the terminal device is replaced, the uplink destination MAC address field includes the MAC address information of the server after the MAC address information of the slave ONT is replaced, and the uplink forwarding message is forwarded to the server.

[0208] The CPU 701 is further configured to receive a first downlink service message from a server, the first downlink service message being carried in a first downlink data packet of a service flow, and send the first downlink service message to a slave ONT according to the master ONT NAPT table.

[0209] The hardware forwarding chip 602 is used to receive a second uplink service message from the slave ONT, the second uplink service message being carried in a non-first uplink data packet of the service flow, and to generate a second uplink forwarding message, and to forward the second uplink forwarding message to the server.

[0210] The hardware forwarding chip 602 is further used to receive a second downlink service message from the server, the second downlink service message being carried in a non-first downlink data packet of the service flow, and to generate a second downlink forwarding message, and to forward the second downlink forwarding message to the slave ONT.

[0211] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0212] Figure 8 800 is a schematic block diagram of a device 800 for forwarding a service message provided in an embodiment of the present application. The device 800 includes a receiving module 801, which can be used to implement a corresponding receiving function. The receiving module 801 can also be called a receiving unit.

[0213] The device 800 further includes a processing module 802, which can be used to implement corresponding processing functions.

[0214] The device 800 further includes a sending module 803 , which can be used to implement a corresponding sending function. The sending module 803 can also be referred to as a sending unit.

[0215] Optionally, the device 800 also includes a storage unit, which can be used to store instructions and / or data. The processing module 802 can read the instructions and / or data in the storage unit so that the device implements the actions of the relevant devices in the aforementioned method embodiments.

[0216] The device 800 may be used to execute the action executed by the slave ONT in the above method embodiment 500. In this case, the device 800 may be a component of the slave ONT, the receiving module 801 is used to execute the operations related to the reception of the slave ONT in the above method embodiment, the processing module 802 is used to execute the operations related to the processing of the slave ONT in the above method embodiment 500, and the sending module 803 is used to execute the operations related to the sending of the slave ONT in the above method embodiment 500.

[0217] In one embodiment, the device 800 for forwarding service messages may be used to perform the above Figure 5 For example:

[0218] The receiving module 801 is used to receive an uplink service message from a terminal device. The uplink service message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source Internet Protocol IP address field, an uplink destination IP address field, an uplink source Media Access Control MAC address field, and an uplink destination MAC address field. Among them, the uplink source port field includes the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the slave ONT.

[0219] The processing module 802 is used to modify the MAC address information of the terminal device in the uplink source MAC address field to the MAC address information of the slave ONT, modify the MAC address information of the slave ONT in the uplink destination MAC address field to the MAC address information of the server, modify the IP address information of the terminal device in the uplink source IP address field to the IP address information of the slave ONT, and modify the port number information of the terminal device in the uplink source port field to the port number information of the slave ONT.

[0220] The sending module 803 is used to send an uplink forwarding message to the master ONT. The uplink forwarding message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source IP address field, an uplink destination IP address field, an uplink source MAC address field, and an uplink destination MAC address field. Among them, the uplink source port field includes the port number information of the slave ONT, the uplink source IP address field includes the IP address information of the slave ONT, the uplink source MAC address field includes the MAC address information of the slave ONT, and the uplink destination MAC address field includes the MAC address information of the server.

[0221] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0222] In addition, the receiving module 801, the processing module 802 and the sending module 803 in the device for forwarding service messages can also implement other operations or functions of the slave ONT in the above method, which will not be described in detail here.

[0223] Optionally, the device 800 for forwarding a service message may be a device including a slave ONT. Alternatively, the device 800 for forwarding a service message may be a component configured in a slave ONT, for example, a chip in the slave ONT. In this case, the receiving module 801 and the sending module 803 may be interface circuits, pins, etc. Specifically, the interface circuit may include an input circuit and an output circuit, wherein the receiving module 801 may include an input circuit, the sending module 803 may include an output circuit, and the processing module 802 may include a processing circuit.

[0224] Fig. 9 1 is a schematic block diagram of a device 900 for forwarding a service message provided in an embodiment of the present application. The device 900 includes a receiving module 901, which can be used to implement a corresponding receiving function. The receiving module 901 can also be called a receiving unit.

[0225] The device 900 further includes a processing module 902, which can be used to implement corresponding processing functions.

[0226] The device 900 further includes a sending module 903 , which can be used to implement a corresponding sending function. The sending module 903 can also be referred to as a sending unit.

[0227] Optionally, the device 900 also includes a storage unit, which can be used to store instructions and / or data. The processing module 902 can read the instructions and / or data in the storage unit so that the device implements the actions of the relevant devices in the aforementioned method embodiments.

[0228] The device 900 may be used to execute the action executed by the master ONT in the above method embodiment 500. In this case, the device 900 may be a component of the master ONT. The receiving module 901 is used to execute the reception-related operations of the master ONT in the above method embodiment. The processing module 902 is used to execute the processing-related operations of the master ONT in the above method embodiment 500. The sending module 903 is used to execute the sending-related operations of the master ONT in the above method embodiment 500.

[0229] In one embodiment, the device for forwarding service messages can be used to perform the above Figure 5 The operation of the master ONT. For example:

[0230] The receiving module 901 is used to receive an uplink forwarding message from a slave ONT. The uplink forwarding message is generated based on the uplink service message, and the uplink forwarding message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source IP address field, an uplink destination IP address field, an uplink source MAC address field, and an uplink destination MAC address field. Among them, the uplink source port field includes the port number information of the slave ONT after replacing the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the slave ONT after replacing the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the slave ONT after replacing the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the server after replacing the MAC address information of the slave ONT.

[0231] The sending module 903 is used to forward the uplink forwarding message to the server.

[0232] In addition, the receiving module 901, the processing module 902 and the sending module 903 in the forwarding service message can also implement other operations or functions of the master ONT in the above method, which will not be repeated here.

[0233] Optionally, the device 900 for forwarding a service message may be a device including a master ONT. Alternatively, the device 900 for forwarding a service message may be a component configured in the master ONT, for example, a chip in the master ONT. In this case, the receiving module 901 and the sending module 903 may be interface circuits, pins, etc. Specifically, the interface circuit may include an input circuit and an output circuit, wherein the receiving module 901 may include an input circuit, the sending module 903 may include an output circuit, and the processing module 902 may include a processing circuit.

[0234] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0235] Fig.10 1 is a schematic structural diagram of another device 1000 for forwarding service messages provided in an embodiment of the present application. The device 1000 for forwarding service messages includes a processor 1001, such as Fig.10 As shown, the device 1000 for forwarding service messages may also include at least one memory 1002 for storing computer programs or instructions or and / or data. The memory 1002 is coupled to the processor 1001, and the processor 1001 is used to execute the computer program or instructions and / or data stored in the memory 1002, so that the method 500 in the above method embodiment is executed. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which can be electrical, mechanical or other forms, for information exchange between devices, units or modules. The processor 1001 may operate in conjunction with the memory 1002. At least one of the at least one memory 1002 may be included in the processor 1001.

[0236] Optionally, the device 1000 for forwarding service messages includes one or more processors 1001.

[0237] Optionally, the memory 1002 may be integrated with the processor 1001 or provided separately.

[0238] The device 1000 for forwarding service messages may also include a transceiver 1003 for forwarding service messages through a transmission medium and other devices, so that the device can forward service messages with other devices. Optionally, the transceiver 1003 may be an interface, a bus, a circuit or a device capable of realizing transceiver functions.

[0239] Optionally, the device in the transceiver 1003 for implementing the receiving function may be regarded as a receiving module, and the device in the transceiver 1003 for implementing the sending function may be regarded as a sending module, that is, the transceiver 1003 includes a receiver and a transmitter.

[0240] The specific connection medium between the processor 1001, the memory 1002 and the transceiver 1003 is not limited in the embodiment of the present application. Fig.10 In the embodiment, the processor 1001, the memory 1002 and the transceiver 1003 are connected via a bus 1004. Fig.10 The connection between other components is shown by bold lines, and is only for schematic illustration and is not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, and the like.

[0241] It should be understood that for ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0242] Alternatively, if Fig.10 As shown, the device 1000 for forwarding service messages may also include a transceiver 1003 and / or a communication interface, and the transceiver 1003 and / or the communication interface are used to receive and / or send signals. For example, the processor 1001 is used to control the transceiver 1003 and / or the communication interface to receive and / or send data.

[0243] A transceiver may also be sometimes referred to as a transceiver, a transceiver module, or a transceiver circuit, etc. A receiver may also be sometimes referred to as a receiver, a receiving module, or a receiving circuit, etc. A transmitter may also be sometimes referred to as a transmitter, a transmitter, a transmitting module, or a transmitting circuit, etc.

[0244] For example, in one embodiment, the processor 1001 is configured to perform other operations or functions of a slave ONT or a chip of the slave ONT. The transceiver 1003 is used to implement the forwarding of service messages between the device for forwarding service messages and the master ONT or terminal device.

[0245] In another embodiment, the processor 1001 is configured to perform other operations or functions of the master ONT or a chip of the master ONT. The transceiver 1003 is used to implement the forwarding of service messages between the device for forwarding service messages and the slave ONT or server.

[0246] One or more of the above modules or units can be implemented by software, hardware or a combination of the two. When any of the above modules or units is implemented by software, the software exists in the form of computer program instructions and is stored in a memory, and the processor can be used to execute the program instructions and implement the above method flow. The processor may include but is not limited to at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor and other types of computing devices that run software, each of which may include one or more cores for executing software instructions to perform operations or processing. The processor may be built into an SoC (system on chip) or an application specific integrated circuit (ASIC), or it may be an independent semiconductor chip. In addition to the core used to execute software instructions for operations or processing in the processor, it may further include necessary hardware accelerators, such as field programmable gate arrays (FPGA), PLDs (programmable logic devices), or logic circuits that implement dedicated logic operations.

[0247] When the above modules or units are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a DSP, an MCU, an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator or a non-integrated discrete device, which can run the necessary software or not rely on the software to execute the above method flow.

[0248] When the above modules or units are implemented using software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0249] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation methods of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application should be included in the scope of protection of the present application.

[0250] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: computer program code, when the computer program code runs on a computer, the computer executes the method of the terminal device in the aforementioned method embodiment.

[0251] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes the method of the first network device in the aforementioned method embodiment.

[0252] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes the method of other network devices except the first network device in the aforementioned method embodiment.

[0253] According to the method provided in the embodiment of the present application, the present application also provides a computer-readable medium, which stores a program code. When the program code runs on a computer, the computer executes the method of the terminal device in the aforementioned method embodiment.

[0254] According to the method provided in the embodiment of the present application, the present application also provides a computer-readable medium, which stores a program code. When the program code runs on a computer, the computer executes the method of the first network device in the aforementioned method embodiment.

[0255] According to the method provided in the embodiment of the present application, the present application also provides a computer-readable medium, which stores a program code. When the program code runs on a computer, the computer executes the method of other network devices except the first network device in the aforementioned method embodiment.

[0256] An embodiment of the present application also provides a processing device, including a processor and an interface; the processor is used to execute the method for forwarding a service message in any of the above method embodiments.

[0257] An embodiment of the present application further provides a system for forwarding service messages, the system comprising the master ONT in the above embodiment, at least one slave ONT and at least one terminal device.

[0258] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).

[0259] Those of ordinary skill in the art will appreciate that the various exemplary units, illustrative logical blocks, and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0260] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0261] It should be understood that "at least one" in the embodiments of the present application refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b and c can represent: a, or, b, or, c, or, a and b, or, a and c, or, b and c, or, a, b and c. Where a, b and c can be single or multiple, respectively.

[0262] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0263] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for forwarding a service message, characterized in that: include: Receive an uplink service message from a terminal device from an optical network terminal ONT, wherein the uplink service message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source Internet Protocol IP address field, an uplink destination IP address field, an uplink source Media Access Control MAC address field, and an uplink destination MAC address field, wherein the uplink source port field includes the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the slave ONT; The slave ONT modifies the MAC address information of the terminal device in the uplink source MAC address field into the MAC address information of the slave ONT; The slave ONT modifies the MAC address information of the slave ONT in the uplink destination MAC address field to the MAC address information of the server; The slave ONT modifies the IP address information of the terminal device in the uplink source IP address field into the IP address information of the slave ONT; The slave ONT modifies the port number information of the terminal device in the uplink source port field to the port number information of the slave ONT; The slave ONT sends an uplink forwarding message to the master ONT, and the uplink forwarding message includes the uplink source port field, the uplink destination port field, the protocol field, the uplink source IP address field, the uplink destination IP address field, the uplink source MAC address field and the uplink destination MAC address field, wherein the uplink source port field includes the port number information of the slave ONT, the uplink source IP address field includes the IP address information of the slave ONT, the uplink source MAC address field includes the MAC address information of the slave ONT, and the uplink destination MAC address field includes the MAC address information of the server.

2. The method according to claim 1, characterized in that The method further comprises: The slave ONT generates a slave ONT upstream network address port translation NAPT table by performing network address translation NAT, and the slave ONT upstream NAPT table includes a mapping relationship from the IP address information of the terminal device and the port number information of the terminal device to the IP address information of the slave ONT and the port number information of the slave ONT.

3. The method according to claim 2, characterized in that The method further comprises: The slave ONT sends the slave ONT upstream NAPT table to the master ONT.

4. The method according to claim 1, characterized in that The method further comprises: The slave ONT receives an address resolution protocol ARP message from the terminal device, wherein the ARP message includes a MAC address of the terminal device and an IP address of the terminal device; The slave ONT generates a slave ONT ARP table according to the MAC address of the terminal device and the IP address of the terminal device, wherein the slave ONT ARP table includes a correspondence between the MAC address of the terminal device and the IP address of the terminal device.

5. The method according to any one of claims 2 to 4, characterized in that The method further comprises: The slave ONT receives a downlink service message from the master ONT, wherein the downlink service message includes a downlink source port field, a downlink destination port field, the protocol field, a downlink source IP address field, a downlink destination IP address field, a downlink source MAC address field, and a downlink destination MAC address field, wherein the downlink source port field includes the port number information of the server, the downlink destination port field includes the port number information of the slave ONT, the downlink source IP address field includes the IP address information of the server, the downlink destination IP address field includes the IP address information of the slave ONT, the downlink source MAC address field includes the MAC address information of the server, and the downlink destination MAC address field includes the MAC address information of the slave ONT; The slave ONT modifies the MAC address information of the server in the downlink source MAC address field into the MAC address information of the slave ONT; The slave ONT modifies the MAC address information of the slave ONT in the downstream destination MAC address field into the MAC address information of the terminal device; The slave ONT modifies the IP address information of the slave ONT in the downstream destination IP address field into the IP address information of the terminal device according to the slave ONT upstream network address port conversion NAPT table; The slave ONT modifies the port number information of the slave ONT in the downstream destination port field to the port number information of the terminal device according to the slave ONT upstream NAPT table; The slave ONT sends a downlink forwarding message to the terminal device, and the downlink forwarding message includes the downlink source port field, the downlink destination port field, the protocol field, the downlink source IP address field, the downlink destination IP address field, the downlink source MAC address field and the downlink destination MAC address field, wherein the downlink destination port field includes the port number information of the terminal device, the downlink destination IP address field includes the IP address information of the terminal device, the downlink source MAC address field includes the MAC address information of the slave ONT, and the downlink destination MAC address field includes the MAC address information of the terminal device.

6. The method according to claim 5, characterized in that The method further comprises: The slave ONT generates a slave ONT downstream NAPT table by executing NAT, and the slave ONT downstream NAPT table includes a mapping relationship from the IP address information and the port number information of the slave ONT to the IP address information and the port number information of the terminal device.

7. The method according to claim 6, characterized in that The method further comprises: The slave ONT sends the slave ONT downstream NAPT table to the master ONT.

8. A method for forwarding a service message, characterized in that: include: The master ONT receives an uplink forwarding message from the slave ONT, the uplink forwarding message is generated based on the uplink service message, and the uplink forwarding message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source IP address field, an uplink destination IP address field, an uplink source MAC address field, and an uplink destination MAC address field, wherein the uplink source port field includes the port number information of the slave ONT after replacing the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the slave ONT after replacing the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the slave ONT after replacing the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the server after replacing the MAC address information of the slave ONT; The master ONT forwards the uplink forwarding message to the server.

9. The method according to claim 8, characterized in that The method further comprises: The master ONT receives a slave ONT upstream network address port conversion NAPT table from the slave ONT, wherein the slave ONT upstream NAPT table includes a mapping relationship from the IP address information of a terminal device and the port number information of the terminal device to the IP address information of the slave ONT and the port number information of the slave ONT; The master ONT generates a master ONT upstream NAPT table according to the slave ONT upstream NAPT table.

10. The method according to claim 8 or 9, characterized in that: The method further comprises: The master ONT sends a routing table to the slave ONT, where the routing table includes the IP address information of the terminal device and the IP address information of the server.

11. The method according to claim 9, characterized in that The method further comprises: The master ONT sends a downstream service message to the slave ONT according to the master ONT upstream NAPT table, wherein the downstream service message includes a downstream source port field, a downstream destination port field, the protocol field, a downstream source IP address field, a downstream destination IP address field, a downstream source MAC address field, and a downstream destination MAC address field, wherein the downstream source port field includes the port number information of the server, the downstream destination port field includes the port number information of the slave ONT, the downstream source IP address field includes the IP address information of the server, the downstream destination IP address field includes the IP address information of the slave ONT, the downstream source MAC address field includes the MAC address information of the server, and the downstream destination MAC address field includes the MAC address information of the slave ONT.

12. The method according to claim 11, characterized in that The method further comprises: The master ONT receives a slave ONT downstream NAPT table from the slave ONT, wherein the slave ONT downstream NAPT table includes a mapping relationship from the IP address information of the slave ONT and the port number information of the slave ONT to the IP address information of the terminal device and the port number information of the terminal device; The master ONT generates a master ONT downstream NAPT table according to the slave ONT downstream NAPT table.

13. A device for forwarding service messages, characterized in that: The device comprises: a transceiver module and a processing module. The transceiver module is used to receive an uplink service message from a terminal device, wherein the uplink service message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source Internet Protocol IP address field, an uplink destination IP address field, an uplink source Media Access Control MAC address field, and an uplink destination MAC address field, wherein the uplink source port field includes the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the slave ONT; The processing module is used to modify the MAC address information of the terminal device in the uplink source MAC address field to the MAC address information of the slave ONT, modify the MAC address information of the slave ONT in the uplink destination MAC address field to the MAC address information of the server, modify the IP address information of the terminal device in the uplink source IP address field to the IP address information of the slave ONT, and modify the port number information of the terminal device in the uplink source port field to the port number information of the slave ONT; The transceiver module is further used to send an uplink forwarding message to the master ONT, wherein the uplink forwarding message includes the uplink source port field, the uplink destination port field, the protocol field, the uplink source IP address field, the uplink destination IP address field, the uplink source MAC address field and the uplink destination MAC address field, wherein the uplink source port field includes the port number information of the slave ONT, the uplink source IP address field includes the IP address information of the slave ONT, the uplink source MAC address field includes the MAC address information of the slave ONT, and the uplink destination MAC address field includes the MAC address information of the server.

14. The device according to claim 13, characterized in that The processing module is specifically used for: A slave ONT upstream network address port translation NAPT table is generated by executing network address translation NAT, wherein the slave ONT upstream NAPT table includes a mapping relationship from the IP address information and the port number information of the terminal device to the IP address information and the port number information of the slave ONT.

15. The device according to claim 14, characterized in that The transceiver module is further used to send the slave ONT uplink NAPT table to the master ONT.

16. The device according to claim 13, characterized in that The transceiver module is further used to receive an Address Resolution Protocol ARP message from the terminal device, wherein the ARP message includes a MAC address of the terminal device and an IP address of the terminal device; The processing module is further configured to generate a slave ONT ARP table according to the MAC address of the terminal device and the IP address of the terminal device, wherein the slave ONT ARP table includes a correspondence between the MAC address of the terminal device and the IP address of the terminal device.

17. The device according to any one of claims 14 to 16, characterized in that The transceiver module is further used to receive a downlink service message from the master ONT, wherein the downlink service message includes a downlink source port field, a downlink destination port field, the protocol field, a downlink source IP address field, a downlink destination IP address field, a downlink source MAC address field, and a downlink destination MAC address field, wherein the downlink source port field includes the port number information of the server, the downlink destination port field includes the port number information of the slave ONT, the downlink source IP address field includes the IP address information of the server, the downlink destination IP address field includes the IP address information of the slave ONT, the downlink source MAC address field includes the MAC address information of the server, and the downlink destination MAC address field includes the MAC address information of the slave ONT; The processing module is further used to modify the MAC address information of the server in the downstream source MAC address field to the MAC address information of the slave ONT, modify the MAC address information of the slave ONT in the downstream destination MAC address field to the MAC address information of the terminal device, modify the IP address information of the slave ONT in the downstream destination IP address field to the IP address information of the terminal device according to the slave ONT upstream network address port conversion NAPT table, and modify the port number information of the slave ONT in the downstream destination port field to the port number information of the terminal device according to the slave ONT upstream NAPT table; The transceiver module is further used to send a downlink forwarding message to the terminal device, wherein the downlink forwarding message includes the downlink source port field, the downlink destination port field, the protocol field, the downlink source IP address field, the downlink destination IP address field, the downlink source MAC address field and the downlink destination MAC address field, wherein the downlink destination port field includes the port number information of the terminal device, the downlink destination IP address field includes the IP address information of the terminal device, the downlink source MAC address field includes the MAC address information of the slave ONT, and the downlink destination MAC address field includes the MAC address information of the terminal device.

18. The device according to claim 17, characterized in that The processing module is specifically used for: A slave ONT downstream NAPT table is generated by executing NAT, wherein the slave ONT downstream NAPT table includes a mapping relationship from the IP address information of the slave ONT and the port number information of the slave ONT to the IP address information of the terminal device and the port number information of the terminal device.

19. The device according to claim 18, characterized in that The transceiver module is further used to send the slave ONT downlink NAPT table to the master ONT.

20. A device for forwarding a service message, characterized in that: The device comprises a transceiver module, The transceiver module is used to receive an uplink forwarding message from a slave ONT, wherein the uplink forwarding message is generated based on an uplink service message, and the uplink forwarding message includes an uplink source port field, an uplink destination port field, a protocol field, an uplink source IP address field, an uplink destination IP address field, an uplink source MAC address field, and an uplink destination MAC address field, wherein the uplink source port field includes the port number information of the slave ONT after replacing the port number information of the terminal device, the uplink destination port field includes the port number information of the server, the uplink source IP address field includes the IP address information of the slave ONT after replacing the IP address information of the terminal device, the uplink destination IP address field includes the IP address information of the server, the uplink source MAC address field includes the MAC address information of the slave ONT after replacing the MAC address information of the terminal device, and the uplink destination MAC address field includes the MAC address information of the server after replacing the MAC address information of the slave ONT; The transceiver module is further used to forward the uplink forwarding message to the server.

21. The device according to claim 20, characterized in that The device also includes a processing module, The transceiver module is further used to receive a slave ONT upstream network address port conversion NAPT table from the slave ONT, wherein the slave ONT upstream NAPT table includes a mapping relationship from the IP address information of the slave terminal device and the port number information of the terminal device to the IP address information of the slave ONT and the port number information of the slave ONT; The processing module is used to generate a master ONT upstream NAPT table according to the slave ONT upstream NAPT table.

22. The device according to claim 20 or 21, characterized in that The transceiver module is further used to send a routing table to the slave ONT, wherein the routing table includes the IP address information of the terminal device and the IP address information of the server.

23. The device according to claim 21, characterized in that The transceiver module is further used to send a downlink service message to the slave ONT according to the uplink NAPT table of the master ONT, wherein the downlink service message includes a downlink source port field, a downlink destination port field, the protocol field, a downlink source IP address field, a downlink destination IP address field, a downlink source MAC address field, and a downlink destination MAC address field, wherein the downlink source port field includes the port number information of the server, the downlink destination port field includes the port number information of the slave ONT, the downlink source IP address field includes the IP address information of the server, the downlink destination IP address field includes the IP address information of the slave ONT, the downlink source MAC address field includes the MAC address information of the server, and the downlink destination MAC address field includes the MAC address information of the slave ONT.

24. The device according to claim 23, characterized in that The transceiver module is further used to receive a slave ONT downstream NAPT table from the slave ONT, wherein the slave ONT downstream NAPT table includes a mapping relationship from the IP address information of the slave ONT and the port number information of the slave ONT to the IP address information of the terminal device and the port number information of the terminal device; The processing module is further configured to generate a master ONT downstream NAPT table according to the slave ONT downstream NAPT table.

25. A device for forwarding a service message, characterized in that: The device comprises a processor, wherein the processor is configured to execute a computer program or instruction stored in a memory, so that the device performs the method according to any one of claims 1 to 7, or the device performs the method according to any one of claims 8 to 12.

26. The device according to claim 25, characterized in that The device further comprises the memory and / or the communication interface, wherein the communication interface is coupled to the processor. The communication interface is used to input and / or output information.

27. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 7, or enables the computer to execute the method according to any one of claims 8 to 12.

Citation Information

Patent Citations

  • System and method for expanding FTTH (Fiber To The Home) network by master-slave ONT (Optical Network Terminal)

    CN110809203A

  • Multistage PON network management method and related device

    CN114531622A