A networking method, device, equipment and medium based on FTTR

By parsing the DHCP discovery message of the sub-gateway in the FTTR network and disconnecting the optical fiber connection between the main gateway and the sub-gateway, the loop problem in the FTTR network is solved and the stability of the network is ensured.

CN118574047BActive Publication Date: 2024-10-29SICHUAN TIANYI COMHEART TELECOM
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411041360.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-29
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

In FTTR networking, the optical fiber connection between the main gateway and sub-gateway forms a loop, causing network performance degradation and communication interference.

Method used

After the main gateway receives the DHCP discovery message from the sub-gateway, it parses the target sequence number and closes the corresponding data channel. It sends a deactivation message through the PLOAM channel to take the sub-gateway offline, disconnects the optical fiber connection, and then performs wired mesh networking. , to avoid loop formation.

Benefits of technology

It effectively avoids network storms, ensures the stability of network communications, and solves the problem of loops in FTTR networking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574047B_ABST
    Figure CN118574047B_ABST
Patent Text Reader

Abstract

The present application provides a FTTR-based networking method, device, equipment and medium, which relates to the field of communication technology and is used to solve the problem of loop formation in FTTR networking. The method is applied to the main gateway of the FTTR network, and the FTTR network also includes multiple sub-gateways; the method includes: after FTTR networking with any of the multiple sub-gateways, parsing the DHCP discovery message broadcast by any sub-gateway to obtain the target sequence number of any sub-gateway; according to the target sequence number, reading the target state and target data channel identifier of any sub-gateway from the pre-stored first information table; if the target state is online, closing the channel corresponding to the target data channel identifier, and sending a deactivation message to any sub-gateway; and wired mesh networking with any sub-gateway. Before the main gateway performs wired mesh networking with the sub-gateway, it closes the channel and disconnects the optical fiber connection with the sub-gateway to avoid loops.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology and provides a FTTR-based networking method, device, equipment and medium. Background Art

[0002] Fiber to the Room (FTTR) adopts a 1-to-N mode, which is a network consisting of 1 main gateway and multiple sub-gateways.

[0003] When the sub-gateway is connected to the main gateway via optical fiber, the sub-gateway will register with the main gateway and form a network. This networking method can be called FTTR networking or all-optical networking. When the LAN port of the sub-gateway is wired to the LAN port of the main gateway, it will switch to wired networking, which is called wired mesh networking. If the optical fiber between the main gateway and the sub-gateway is still connected at this time, a loop will be formed, which will cause a network storm and have a negative impact on the network performance and normal communication of the entire FFFR. Summary of the invention

[0004] The present application provides a FTTR-based networking method, device, equipment and medium, which are used to solve the problem of loop formation in FTTR networking.

[0005] In a first aspect, a FTTR-based networking method is provided, which is applied to a main gateway of a fiber-to-the-room FTTR network, wherein the FTTR network further includes a plurality of sub-gateways; the method comprises:

[0006] After performing FTTR networking with any sub-gateway among the multiple sub-gateways, receiving a DHCP discovery message broadcasted by any sub-gateway;

[0007] Parsing the DHCP discovery message to obtain a target serial number of any sub-gateway;

[0008] According to the target sequence number, read the target state and target data channel identifier of any sub-gateway from a pre-stored first information table; wherein the first information table includes the sequence numbers, states, optical network unit identifiers and data channel identifiers of the multiple sub-gateways;

[0009] If the target state is an online state, closing the channel corresponding to the target data channel identifier, and sending a deactivation message to any of the sub-gateways through the PLOAM channel; wherein the deactivation message is used to instruct any of the sub-gateways to switch from a running state to a standby state;

[0010] Establish wired mesh networking with any of the sub-gateways.

[0011] Optionally, the performing FTTR networking with any of the sub-gateways includes:

[0012] Receiving a first registration request initiated by any of the sub-gateways; wherein the first registration request is initiated when any of the sub-gateways is connected to the main gateway via an optical fiber;

[0013] Allocate the target data channel identifier and the target optical network unit identifier for any sub-gateway according to the target serial number in the first registration request; wherein the target optical network unit identifier is used to uniquely identify any sub-gateway;

[0014] Data synchronization is performed with any of the sub-gateways through the channel corresponding to the target data channel identifier.

[0015] Optionally, after allocating the target data channel identifier and the target optical network unit identifier to any sub-gateway according to the target sequence number in the first registration request, the method further includes:

[0016] The target state, the target sequence number, the target optical network unit identifier, and the target data channel identifier are stored in the first information table.

[0017] Optionally, parsing the DHCP discovery message to obtain a target serial number of any sub-gateway includes:

[0018] Parsing the DHCP discover message to obtain an option field in the DHCP discover message;

[0019] The option field is decrypted using a preset decryption algorithm to obtain the target sequence number of any sub-gateway.

[0020] Optionally, after parsing the DHCP discovery message to obtain the target serial number of any sub-gateway, the method further includes:

[0021] The target serial number and the name of the target interface are stored in a second information table; wherein the target interface is the interface through which the main gateway receives the DHCP discovery message sent by any sub-gateway.

[0022] Optionally, after performing wired mesh networking with any of the sub-gateways, the method further includes:

[0023] Detecting that the target interface is disconnected, and obtaining the name of the target interface;

[0024] Reading the target serial number from the second information table according to the name of the target interface;

[0025] According to the target sequence number, reading the target optical network unit identifier of any sub-gateway from the first information table;

[0026] According to the target optical network unit identifier, an activation command is sent to any of the sub-gateways through the PLOAM channel; the activation command is used to restart any of the sub-gateways.

[0027] Optionally, after sending the activation command to any sub-gateway through the PLOAM channel, the method further includes:

[0028] receiving a second registration request re-initiated by any of the sub-gateways; the second registration request is sent by any of the sub-gateways after receiving the activation command;

[0029] Reading the target optical network unit identifier and the target data channel identifier from the first information table according to the target sequence number in the second registration request;

[0030] The target optical network unit identifier and the target data channel identifier are allocated to any of the sub-gateways, and a channel corresponding to the target data channel identifier is opened.

[0031] In a second aspect, a FTTR-based networking device is provided, wherein the device is arranged in a main gateway of a fiber-to-the-room FTTR network, wherein the FTTR network further includes a plurality of sub-gateways; the device includes:

[0032] A receiving module, configured to receive a DHCP discovery message broadcasted by any sub-gateway among the multiple sub-gateways after FTTR networking is performed with the sub-gateway;

[0033] A parsing module, used for parsing the DHCP discovery message to obtain a target serial number of any sub-gateway;

[0034] A reading module, configured to read the target state and target data channel identifier of any sub-gateway from a pre-stored first information table according to the target sequence number; wherein the first information table includes the sequence numbers, states, optical network unit identifiers and data channel identifiers of the multiple sub-gateways;

[0035] A processing module, configured to close the channel corresponding to the target data channel identifier if the target state is an online state, and send a deactivation message to any of the sub-gateways through a PLOAM channel; wherein the deactivation message is used to instruct any of the sub-gateways to switch from a running state to a standby state;

[0036] The networking module is used to perform wired mesh networking with any of the sub-gateways.

[0037] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the FTTR-based networking method described in the first aspect.

[0038] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and a processor executes the computer program to implement the FTTR-based networking method described in the first aspect.

[0039] Compared with the prior art, the present invention has the following beneficial effects:

[0040] The present application provides a FTTR-based networking method, which is applied to a main gateway of an FTTR network, wherein the FTTR network further comprises a plurality of sub-gateways; the method comprises: after performing FTTR networking with any of the plurality of sub-gateways, receiving a DHCP discovery message broadcast by any of the sub-gateways, parsing the DHCP discovery message broadcast by any of the sub-gateways, and obtaining a target sequence number of any of the sub-gateways; reading a target state and a target data channel identifier of any of the sub-gateways from a pre-stored first information table according to the target sequence number; if the target state is an online state, closing a channel corresponding to the target data channel identifier, and sending a deactivation message to any of the sub-gateways through a PLOAM channel; and performing wired mesh networking with any of the sub-gateways. In the present application, after the main gateway is wired with the sub-gateway for mesh networking, the main gateway and the sub-gateway are connected by optical fiber. The main gateway disconnects the optical fiber connection between the main gateway and the sub-gateway by closing the data channel corresponding to the sub-gateway and sending a deactivation message to take the sub-gateway offline, and then wired mesh networking is performed with the sub-gateway. At this time, the main gateway and the sub-gateway are only connected by wire, and there will be no loop, which solves the problem of loop formation in FTTR networking, effectively avoids network storms, and ensures the stability of network communications. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0042] Attached Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0043] Attached Figure 2 A schematic diagram of a flow chart of a FTTR-based networking method provided in an embodiment of the present application;

[0044] Attached Figure 3 A schematic diagram of the structure of a FTTR-based networking device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0046] In order to solve the problem of loop formation in FTTR networking, the present application provides a FTTR-based networking method, which is applied to the main gateway of fiber-to-the-room FTTR. The following is a brief introduction to the application scenarios to which the technical solution of the embodiment of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiment of the present application and are not limited. In the specific implementation process, the technical solution provided by the embodiment of the present application can be flexibly applied according to actual needs.

[0047] Please refer to the attached Figure 1 , which is a schematic diagram of an application scenario provided in an embodiment of the present application, or can be understood as a schematic diagram of the FTTR network architecture. The FTTR network includes a main gateway and multiple sub-gateways. The main gateway is the central device in the fiber-optic communication network, responsible for managing and controlling the entire network. It is usually located at the operator's central site or data center and connected to other network equipment, such as fiber optic switches, transmission equipment, etc. The main gateway includes an optical line terminal (OLT) module, and each sub-gateway is equivalent to an independent optical network unit (ONU) device, which receives the optical signal sent by the main gateway and converts it into an electrical signal for use by the user device. The sub-gateway is usually installed in the user's home or office to provide network access and data transmission functions.

[0048] It should be noted that the Figure 1 Two sub-gateways are used as an example. In practice, there is no limit on the number of sub-gateways.

[0049] As described above, the application scenarios of the embodiments of the present application are described below in conjunction with the attached Figure 1 Application scenarios, for the attached Figure 2The FTTR-based networking method shown is introduced.

[0050] S201. After FTTR networking is performed with any sub-gateway among multiple sub-gateways, a DHCP discovery message broadcasted by any sub-gateway is received.

[0051] In the specific implementation process, after the main gateway and any sub-gateway are connected to the LAN port of the main gateway by FTTR, when the LAN port of any sub-gateway is wired to the LAN port of the main gateway, the wired connection means connecting the sub-gateway and the main gateway through a physical cable (such as an Ethernet cable), and the sub-gateway defines a private option field (option) in the DHCP discovery message according to the information reported by the interface, puts the target sequence number into the option field, and then broadcasts the DHCP discovery message. In other words, the DHCP discovery message is sent when any sub-gateway is wired to the main gateway.

[0052] In a possible embodiment, the steps of performing FTTR networking with any sub-gateway include:

[0053] A first registration request initiated by any sub-gateway is received; wherein the first registration request is initiated when any sub-gateway is connected to the main gateway through an optical fiber; a target data channel identifier and a target optical network unit identifier are allocated to any sub-gateway according to a target sequence number in the first registration request; and data synchronization is performed with any sub-gateway through a channel corresponding to the target data channel identifier.

[0054] In the specific implementation process, when any sub-gateway is connected to the main gateway through optical fiber, it will initiate a first registration request to the OLT of the main gateway. The first registration request is used to instruct the OLT of the main gateway to register any sub-gateway, and the first registration request includes the target serial number of any sub-gateway. The target serial number refers to the serial number (SN) of any sub-gateway. The serial number is used to distinguish different gateway devices. The serial number of the sub-gateway can usually be found through the label, packaging box or related information on the device.

[0055] The OLT of the main gateway parses the first registration request, obtains the target serial number, and then allocates the target data channel identifier and the target optical network unit identifier to any sub-gateway according to the target serial number. The target data channel identifier refers to the identifier of the T-CONT channel between the main gateway and any sub-gateway. The T-CONT channel is a channel for data transmission in the Gigabit Passive Optical Network (GPON) system. The target optical network unit identifier refers to the optical network unit identifier (ONU ID) of any sub-gateway (ONU device). The ONU ID is used to uniquely identify and locate each ONU device in the optical network. Each ONU device will be assigned a unique ONU ID for identification and management in the optical fiber communication network.

[0056] Further, after any sub-gateway receives the target data channel identifier and the target optical network unit identifier, it determines that it has been successfully registered, automatically enters the running state, and can communicate with the main gateway OLT. Among them, the sub-gateway has multiple states, including initial state (01), standby state (02), serial number state (03), ranging state (04), and running state (05), which are introduced below.

[0057] Initial state (01): In the initial state, the sub-gateway starts and initializes. It will perform necessary configuration and settings and is ready to receive and process data.

[0058] Standby state (02): After the initial state is completed, the sub-gateway enters the standby state, waiting to receive tasks or data transmission.

[0059] Serial Number State (03): When communication with other devices is required, the sub-gateway enters the Serial Number state to perform handshake and identity authentication.

[0060] Ranging state (04): After completing the sequence number state, the sub-gateway enters the ranging state and performs ranging operations to determine the physical distance.

[0061] Running state (05): After successful registration, the sub-gateway enters the running state and can start normal data transmission and communication.

[0062] S202: Parse the DHCP discovery message to obtain a target serial number of any sub-gateway.

[0063] In a specific implementation process, after receiving the DHCP discovery message, the main gateway can directly parse the DHCP discovery message to obtain the target serial number of any sub-gateway.

[0064] In a possible embodiment, the DHCP discover message is parsed to obtain an option field in the DHCP discover message; the option field is decrypted using a preset decryption algorithm to obtain a target sequence number of any sub-gateway.

[0065] In the specific implementation process, the main gateway and multiple sub-gateways pre-set corresponding encryption algorithms and decryption algorithms, such as the Advanced Encryption Standard (AES) algorithm. The sub-gateway uses the AES algorithm to encrypt the option field containing the target serial number and then sends the DHCP discovery message to the network. After the main gateway receives the DHCP discovery message, it parses the message, obtains the option field first, and then uses the same key and AES algorithm to decrypt the option field to obtain the target serial number.

[0066] In the embodiment of the present application, the serial number is used as the sole basis for registration, and the serial number is encrypted and decrypted to ensure the security and confidentiality of the serial number and prevent unauthorized access and attacks.

[0067] S203: Read the target state and target data channel identifier of any sub-gateway from the pre-stored first information table according to the target sequence number.

[0068] In the specific implementation process, the first information table includes the serial numbers, states, optical network unit identifiers and data channel identifiers of multiple sub-gateways. The main gateway pre-establishes a first information table (also called an ONU information table) for storing the serial numbers, states, optical network unit identifiers and data channel identifiers of multiple sub-gateways. During the process of the main gateway registering multiple sub-gateways, the serial number, state, optical network unit identifier and data channel identifier of each sub-gateway can be stored in the first information table.

[0069] In a possible embodiment, after allocating a target data channel identifier and a target optical network unit identifier to any sub-gateway according to the target serial number in the first registration request, the target state, target serial number, target optical network unit identifier, and target data channel identifier can also be stored in the first information table.

[0070] The target state refers to the state of any sub-gateway, and the state includes an online state and an offline state. The online state indicates that the optical fiber between the sub-gateway and the main gateway is connected, and the offline state indicates that the optical fiber between the sub-gateway and the main gateway is disconnected.

[0071] In an embodiment of the present application, the main gateway stores information such as the target status, target serial number, target optical network unit identifier, and target data channel identifier of any sub-gateway in the first information table, so as to facilitate subsequent direct search for the information of the sub-gateway from the first information table.

[0072] S204: If the target state is an online state, close the channel corresponding to the target data channel identifier, and send a deactivation message to any sub-gateway through the PLOAM channel.

[0073] In the specific implementation process, if the status of any sub-gateway is online, it means that the optical fiber between the sub-gateway and the main gateway is still connected. At this time, the OLT of the main gateway closes the T-CONT channel corresponding to the target data channel identifier and sends a deactivation message (deactivate message) to any sub-gateway through the PLOAM channel. Among them, the PLOAM (Physical Layer OAM) channel is a message-based operation and management channel between the OLT and the ONU, supporting PON TC layer management functions, including ONU activation, ONU management and control channel establishment, encryption configuration, key management, etc. The deactivation message is used to instruct any sub-gateway to switch from the running state to the standby state. After receiving the deactivation message, any sub-gateway switches from the running state (05) to the standby state (02).

[0074] The main gateway may also modify the target state of any sub-gateway in the first information table from an online state to an offline state, so as to facilitate subsequent checking of the actual state of the sub-gateway.

[0075] S205. Establish wired mesh networking with any sub-gateway.

[0076] In the specific implementation process, the main gateway and the sub-gateway synchronize data via wired. The data that needs to be synchronized includes wireless account and password. After completing the data synchronization, the main gateway and the sub-gateway complete the wired mesh networking.

[0077] In a possible embodiment, after establishing wired mesh networking with any sub-gateway, the main gateway may further perform the following steps:

[0078] It is detected that the target interface is disconnected, and the name of the target interface is obtained; according to the name of the target interface, the target serial number is read from the second information table; according to the target serial number, the target optical network unit identifier of any sub-gateway is read from the first information table; according to the target optical network unit identifier, an activation command is sent to any sub-gateway through the PLOAM channel; the activation command is used to restart any sub-gateway.

[0079] In the specific implementation process, a NETLINK_ROUTE socket is created and the RTMGRP_LINK message is subscribed. The RTMGRP_LINK message indicates the message of link status change. The running program on the main gateway will always listen to the NETLINK_ROUTE socket and wait for the message sent by the kernel. When the target interface is disconnected, the system kernel will send an RTMGRP_LINK message. The main gateway receives the RTMGRP_LINK message, parses it, extracts the name of the target interface, and then reads the target serial number corresponding to the name of the target interface from the second information table according to the name of the target interface, and then reads the corresponding target optical network unit identifier from the first information table according to the target serial number, and sends an activation command to any sub-gateway corresponding to the target optical network unit identifier through the PLOAM channel.

[0080] The second information table is involved. The main gateway can pre-establish a second information table, also called a DHCP information table, for storing the correspondence between the serial numbers of multiple sub-gateways and the names of multiple interfaces. The multiple interfaces refer to the interfaces through which the main gateway receives the DHCP discovery message sent by each sub-gateway. The main gateway can store the serial number of each sub-gateway and the name of the corresponding interface in the second information table.

[0081] In a possible embodiment, after parsing the DHCP discovery message and obtaining the target serial number of any sub-gateway, the main gateway can also store the target serial number and the name of the target interface in the second information table; wherein the target interface is the interface through which the main gateway receives the DHCP discovery message sent by any sub-gateway.

[0082] In the embodiment of the present application, the serial number and the interface name are stored in the second information table, so that when the interface is subsequently disconnected, the serial number of the corresponding sub-gateway can be directly read from the second information table.

[0083] In a possible embodiment, after sending an activation command to any sub-gateway through the PLOAM channel, the main gateway may further perform the following steps:

[0084] A second registration request re-initiated by any sub-gateway is received; the second registration request is sent by any sub-gateway after receiving the activation command; according to the target serial number in the second registration request, the target optical network unit identifier and the target data channel identifier are read from the first information table, the target optical network unit identifier and the target data channel identifier are allocated to any sub-gateway, and the channel corresponding to the target data channel identifier is opened.

[0085] In the specific implementation process, after any sub-gateway receives the activation command through the PLOAM channel, it can resend a second registration request to the OLT of the main gateway, the second registration request is used to instruct the OLT of the main gateway to register the any sub-gateway, and the second registration request includes the target serial number of the any sub-gateway. The OLT of the main gateway parses the second registration request, obtains the target serial number, reads the target optical network unit identifier and the target data channel identifier corresponding to the target serial number from the first information table, and assigns them to the any sub-gateway.

[0086] Furthermore, after any sub-gateway receives the target data channel identifier and the target optical network unit identifier, it determines that it has successfully re-registered, will re-enter the running state, and can communicate with the main gateway OLT.

[0087] Based on the same inventive concept, as shown in the attached Figure 3 As shown, the embodiment of the present application also provides a FTTR-based networking device, which is arranged in a main gateway of a fiber-to-the-room FTTR network, and the FTTR network also includes a plurality of sub-gateways; the device includes:

[0088] A receiving module, used for receiving a DHCP discovery message broadcasted by any sub-gateway among the multiple sub-gateways after FTTR networking is performed with any sub-gateway among the multiple sub-gateways;

[0089] A parsing module, used to parse the DHCP discovery message and obtain the target serial number of any sub-gateway;

[0090] A reading module, used to read the target state and target data channel identifier of any sub-gateway from a pre-stored first information table according to the target sequence number; wherein the first information table includes the sequence number, state, optical network unit identifier and data channel identifier of multiple sub-gateways;

[0091] A processing module, used for closing the channel corresponding to the target data channel identifier if the target state is an online state, and sending a deactivation message to any sub-gateway through the PLOAM channel; wherein the deactivation message is used to instruct any sub-gateway to switch from a running state to a standby state;

[0092] Networking module, used to establish wired mesh networking with any sub-gateway.

[0093] Optionally, the networking module is also used for:

[0094] Receiving a first registration request initiated by any sub-gateway; wherein the first registration request is initiated when any sub-gateway is connected to the main gateway through an optical fiber;

[0095] Allocate a target data channel identifier and a target optical network unit identifier for any sub-gateway according to the target sequence number in the first registration request; wherein the target optical network unit identifier is used to uniquely identify any sub-gateway;

[0096] Data is synchronized with any sub-gateway through the channel corresponding to the target data channel identifier.

[0097] Optionally, the device further includes a storage module, and the storage module is used to:

[0098] After allocating a target data channel identifier and a target optical network unit identifier to any sub-gateway according to the target sequence number in the first registration request, the target state, the target sequence number, the target optical network unit identifier, and the target data channel identifier are stored in the first information table.

[0099] Optionally, the parsing module is specifically used to:

[0100] Parse the DHCP discovery message to obtain the option field in the DHCP discovery message;

[0101] The option field is decrypted using a preset decryption algorithm to obtain the target sequence number of any sub-gateway.

[0102] Optionally, the storage module is also used for:

[0103] After parsing the DHCP discover message and obtaining the target serial number of any sub-gateway, the target serial number and the name of the target interface are stored in the second information table; wherein the target interface is the interface through which the main gateway receives the DHCP discover message sent by any sub-gateway.

[0104] Optionally, the processing module is further configured to:

[0105] After establishing wired mesh networking with any sub-gateway, detect that the target interface is disconnected and obtain the name of the target interface;

[0106] Reading the target serial number from the second information table according to the name of the target interface;

[0107] Reading a target optical network unit identifier of any sub-gateway from the first information table according to the target sequence number;

[0108] According to the target optical network unit identifier, an activation command is sent to any sub-gateway through the PLOAM channel; the activation command is used to restart any sub-gateway.

[0109] Optionally, the processing module is further configured to:

[0110] After sending an activation command to any sub-gateway through the PLOAM channel, receiving a second registration request re-initiated by any sub-gateway; the second registration request is sent by any sub-gateway after receiving the activation command;

[0111] Reading a target optical network unit identifier and a target data channel identifier from the first information table according to the target sequence number in the second registration request;

[0112] Allocate a target optical network unit identifier and a target data channel identifier to any sub-gateway, and open a channel corresponding to the target data channel identifier.

[0113] It should be noted that each module in the FTTR-based networking device in this embodiment corresponds one-to-one to each step in the FTTR-based networking method in the aforementioned embodiment. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned FTTR-based networking method, which will not be repeated here.

[0114] Based on the same inventive concept, the present application also provides a computer device, which includes a processor, a memory, and a computer program stored in the memory. When the computer program is executed by the processor, the aforementioned FTTR-based networking method is implemented.

[0115] Based on the same inventive concept, the present application also provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the aforementioned FTTR-based networking method is implemented.

[0116] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.

[0117] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0118] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0119] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0120] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0121] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0123] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A networking method based on FTTR, characterized in that: Applied to a main gateway of a fiber-to-the-room FTTR network, the FTTR network also includes a plurality of sub-gateways; the method includes: After performing FTTR networking with any sub-gateway among the multiple sub-gateways, receiving a DHCP discovery message broadcasted by any sub-gateway; Parsing the DHCP discovery message to obtain a target serial number of any sub-gateway; According to the target sequence number, read the target state and target data channel identifier of any sub-gateway from a pre-stored first information table; wherein the first information table includes the sequence numbers, states, optical network unit identifiers and data channel identifiers of the multiple sub-gateways; If the target state is an online state, closing the channel corresponding to the target data channel identifier, and sending a deactivation message to any of the sub-gateways through the PLOAM channel; wherein the deactivation message is used to instruct any of the sub-gateways to switch from a running state to a standby state; Conduct wired mesh networking with any of the sub-gateways; The performing FTTR networking with any of the sub-gateways includes: Receiving a first registration request initiated by any of the sub-gateways; wherein the first registration request is initiated when any of the sub-gateways is connected to the main gateway via an optical fiber; Allocate the target data channel identifier and the target optical network unit identifier for any sub-gateway according to the target serial number in the first registration request; wherein the target optical network unit identifier is used to uniquely identify any sub-gateway; Performing data synchronization with any of the sub-gateways through a channel corresponding to the target data channel identifier; The parsing of the DHCP discovery message to obtain the target serial number of any sub-gateway includes: Parsing the DHCP discover message to obtain an option field in the DHCP discover message; The option field is decrypted using a preset decryption algorithm to obtain the target sequence number of any sub-gateway.

2. The FTTR-based networking method according to claim 1, characterized in that: After allocating the target data channel identifier and the target optical network unit identifier to any sub-gateway according to the target sequence number in the first registration request, the method further includes: The target state, the target sequence number, the target optical network unit identifier, and the target data channel identifier are stored in the first information table.

3. The FTTR-based networking method according to claim 1, characterized in that: After parsing the DHCP discovery message to obtain the target serial number of any sub-gateway, the method further includes: The target serial number and the name of the target interface are stored in a second information table; wherein the target interface is the interface through which the main gateway receives the DHCP discovery message sent by any sub-gateway.

4. The FTTR-based networking method according to claim 3, characterized in that: After performing wired mesh networking with any of the sub-gateways, the method further includes: Detecting that the target interface is disconnected, and obtaining the name of the target interface; Reading the target serial number from the second information table according to the name of the target interface; According to the target sequence number, reading the target optical network unit identifier of any sub-gateway from the first information table; According to the target optical network unit identifier, an activation command is sent to any of the sub-gateways through the PLOAM channel; the activation command is used to restart any of the sub-gateways.

5. The FTTR-based networking method according to claim 4, characterized in that: After sending the activation command to any of the sub-gateways through the PLOAM channel, the method further includes: receiving a second registration request re-initiated by any of the sub-gateways; the second registration request is sent by any of the sub-gateways after receiving the activation command; Reading the target optical network unit identifier and the target data channel identifier from the first information table according to the target sequence number in the second registration request; The target optical network unit identifier and the target data channel identifier are allocated to any of the sub-gateways, and a channel corresponding to the target data channel identifier is opened.

6. A networking device based on FTTR, characterized in that: The device is arranged in a main gateway of a fiber-to-the-room FTTR network, wherein the FTTR network further comprises a plurality of sub-gateways; the device comprises: A receiving module, configured to receive a DHCP discovery message broadcasted by any of the multiple sub-gateways after performing FTTR networking with the any of the multiple sub-gateways; the FTTR networking with the any of the sub-gateways comprises: receiving a first registration request initiated by the any of the sub-gateways; wherein the first registration request is initiated when the any of the sub-gateways is connected to the main gateway via an optical fiber; according to the target sequence number in the first registration request, allocating a target data channel identifier and a target optical network unit identifier to the any of the sub-gateways; wherein the target optical network unit identifier is used to uniquely identify the any of the sub-gateways; and performing data synchronization with the any of the sub-gateways through a channel corresponding to the target data channel identifier; A parsing module, configured to parse the DHCP discover message to obtain a target sequence number of any sub-gateway; the parsing of the DHCP discover message to obtain a target sequence number of any sub-gateway comprises: parsing the DHCP discover message to obtain an option field in the DHCP discover message; decrypting the option field using a preset decryption algorithm to obtain a target sequence number of any sub-gateway; A reading module, configured to read the target state and target data channel identifier of any sub-gateway from a pre-stored first information table according to the target sequence number; wherein the first information table includes the sequence numbers, states, optical network unit identifiers and data channel identifiers of the multiple sub-gateways; A processing module, configured to close the channel corresponding to the target data channel identifier if the target state is an online state, and send a deactivation message to any of the sub-gateways through a PLOAM channel; wherein the deactivation message is used to instruct any of the sub-gateways to switch from a running state to a standby state; The networking module is used to perform wired mesh networking with any of the sub-gateways.

7. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the FTTR-based networking method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the processor executes the computer program to implement the FTTR-based networking method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method for measuring optical power, optical line terminal and optical network unit

    CN101854208A

  • Optical network unit loop detection method and device

    CN107979412A