Network management method, communication apparatus, and storage medium
By assigning target ports to terminals in the FTTR system and establishing a correspondence between port identifiers and device identifiers, the problems of high bandwidth consumption and high latency during terminal roaming in the FTTR system are solved, thus improving the user experience.
Patent Information
- Application Number
- PCT/CN2024/093323
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-16
- Filing Date
- 2024-05-15
- Publication Date
- 2024-11-21
AI Technical Summary
In a Fiber to the Room (FTTR) system, when a terminal roams between different slave ONUs, there are issues such as high bandwidth consumption and high latency for both master and slave ONUs, which affect the user experience.
The master ONU assigns target ports to terminals and establishes a correspondence between port identifiers and device identifiers, which is then broadcast to all slave ONUs to reduce downlink bandwidth waste and lower latency when terminals roam.
This effectively reduces data service latency and downlink bandwidth waste when the terminal roams between ONUs, thus improving the user experience.
Smart Images

Figure CN2024093323_21112024_PF_FP_ABST
Abstract
Description
Network management method, communication device, and storage medium
[0001] This disclosure claims priority to Chinese patent application No. 202310558327.X, filed on May 16, 2023, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present disclosure relates to the field of communication technology, and in particular to a network management method, a communication device, and a storage medium. Background Art
[0003] The communications industry has been continuously accelerating fiber bandwidth upgrades. Currently, most home networks have fiber access. The continuous improvement of fiber access and other network infrastructure has provided a solid information foundation for the prosperity of internet services. Simultaneously, innovative business applications are emerging one after another, such as ultra-high-definition video, cloud virtual reality (VR), cloud gaming, online education, and remote work, placing increasingly stringent demands on network bandwidth, latency, and jitter.
[0004] Summary of the Invention
[0005] In one aspect, a network management method is provided. The network management method is applied to a master optical network unit (ONU), wherein the master ONU is connected to a plurality of slave ONUs. The network management method includes:
[0006] receiving port request information sent by a first slave ONU, where the port request information includes a device identifier of a first terminal connected to the first slave ONU, and the port request information is used to request allocation of a port for the first terminal, where the first slave ONU is one of the plurality of slave ONUs;
[0007] In response to the port request information, first indication information is sent to multiple slave ONUs, where the first indication information is used to indicate the correspondence between the device identifier of the first terminal and the port identifier of the target port, where the target port is the port allocated by the master ONU to the first terminal.
[0008] On the other hand, a network management method is provided. The network management method is applied to a first slave optical network unit (ONU), the first slave ONU is connected to a master ONU, the master ONU is connected to multiple slave ONUs, and the first slave ONU is one of the multiple slave ONUs. The network management method includes:
[0009] When detecting access of the first terminal, obtaining a device identifier of the first terminal;
[0010] In the case that the corresponding relationship related to the device identifier of the first terminal is not stored in the master ONU, the port request information is sent to the master ONU, where the port request information includes the device identifier of the first terminal, and the port request information is used to request allocation of a port for the first terminal;
[0011] Receive first indication information sent by the master ONU, where the first indication information is used to indicate a correspondence between a device identifier of the first terminal and a port identifier of a target port, where the target port is a port allocated by the master ONU to the first terminal;
[0012] The correspondence between the device identifier of the first terminal and the port identifier of the target port is stored, and the target port is enabled.
[0013] In another aspect, a network management method is provided. The network management method is applied to a second slave optical network unit (ONU), wherein the second slave ONU is connected to a master ONU, the master ONU is connected to multiple slave ONUs, and the second slave ONU is one of the multiple slave ONUs. The network management method includes:
[0014] Receive first indication information sent by the master ONU, where the first indication information is used to indicate a correspondence between a device identifier of the first terminal and a port identifier of a target port, where the target port is a port allocated by the master ONU to the first terminal, the first terminal is a terminal connected to a first slave ONU, and the first slave ONU is one of the multiple slave ONUs except the second slave ONU;
[0015] The correspondence between the device identifier of the first terminal and the port identifier of the target port is stored.
[0016] In another aspect, a communication device is provided. The communication device includes:
[0017] a receiving unit, configured to receive port request information sent by a first slave ONU, the port request information including a device identifier of a first terminal connected to the first slave ONU, the port request information being used to request allocation of a port for the first terminal, the first slave ONU being one of the plurality of slave ONUs;
[0018] A sending unit is used to send first indication information to the multiple slave ONUs in response to the port request information, wherein the first indication information is used to indicate the correspondence between the device identifier of the first terminal and the port identifier of the target port, and the target port is the port allocated by the master ONU to the first terminal.
[0019] In another aspect, a communication device is provided. The communication device includes:
[0020] an acquiring unit, configured to acquire a device identification of the first terminal when detecting access of the first terminal;
[0021] a sending unit, configured to send port request information to the master ONU when the sending unit does not store a corresponding relationship related to the device identifier of the first terminal, the port request information including the device identifier of the first terminal, and the port request information being used to request allocation of a port for the first terminal;
[0022] The acquiring unit is further configured to receive first indication information sent by the master ONU, where the first indication information is used to indicate a correspondence between a device identifier of the first terminal and a port identifier of a target port, where the target port is a port allocated by the master ONU to the first terminal;
[0023] The storage unit is configured to store a correspondence between the device identifier of the first terminal and the port identifier of the target port, and enable the target port.
[0024] In another aspect, a communication device is provided. The communication device includes:
[0025] A receiving unit, configured to receive first indication information sent by the master ONU, where the first indication information is used to indicate a correspondence between a device identifier of a first terminal and a port identifier of a target port, where the target port is a port allocated by the master ONU to the first terminal, the first terminal is a terminal connected to a first slave ONU, and the first slave ONU is one of the multiple slave ONUs except the second slave ONU;
[0026] The storage unit is configured to store a correspondence between the device identifier of the first terminal and the port identifier of the target port.
[0027] In another aspect, a communication device is provided, comprising: a processor and a memory, wherein the memory stores instructions executable by the processor; and when the processor is configured to execute the instructions, the communication device implements the method provided in any of the above aspects.
[0028] In yet another aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer executes the method provided in any one of the above aspects.
[0029] In another aspect, a computer program product comprising computer instructions is provided. When the computer instructions are executed on a computer, the computer is caused to perform the method provided in any one of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are used to provide a further understanding of the technical solution of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the technical solution of the present disclosure and do not constitute a limitation to the technical solution of the present disclosure.
[0031] FIG1 is a schematic diagram of a current terminal roaming in a FTTR (fiber to the room) system according to some embodiments of the present disclosure.
[0032] FIG2 is a schematic structural diagram of an FTTR system according to some embodiments of the present disclosure.
[0033] FIG3 is a flow chart of a network management method according to some embodiments of the present disclosure.
[0034] FIG4 is a flow chart of another network management method according to some embodiments of the present disclosure.
[0035] FIG5 is a flowchart of another network management method according to some embodiments of the present disclosure.
[0036] FIG6 is a flowchart of another network management method according to some embodiments of the present disclosure.
[0037] FIG7 is a flowchart of another network management method according to some embodiments of the present disclosure.
[0038] FIG8 is a flow chart of another network management method according to some embodiments of the present disclosure.
[0039] FIG9 is a schematic diagram of a terminal roaming to another slave ONU according to some embodiments of the present disclosure.
[0040] FIG10 is a flowchart of another network management method according to some embodiments of the present disclosure.
[0041] FIG11 is a schematic diagram of an interactive process of a network management method according to some embodiments of the present disclosure.
[0042] FIG12 is a schematic diagram showing the composition of a communication device according to some embodiments of the present disclosure.
[0043] FIG13 is a schematic diagram showing the composition of another communication device according to some embodiments of the present disclosure.
[0044] FIG14 is a schematic diagram showing the composition of yet another communication device according to some embodiments of the present disclosure.
[0045] FIG15 is a schematic structural diagram of a communication device according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0046] To enable those skilled in the art to better understand the technical solutions of the embodiments of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0047] The terms "first," "second," and the like are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature qualified by the terms "first," "second," and the like may explicitly or implicitly include one or more of such features. Throughout this disclosure, unless otherwise specified, "plurality" means two or more.
[0048] In the embodiments of the present disclosure, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present disclosure should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0049] Gigabit-capable passive optical networks (GPON) technology is a passive optical network access technology based on the ITU-T G.988 standard. The GPON system includes an optical line terminal (OLT) and an optical network unit (ONU). In the GPON system, data is transmitted between the OLT and the ONU at the link layer using time division in the upstream and broadcast in the downstream. In other words, each ONU can receive data from other ONUs in the downstream direction. In order to distinguish data belonging to different ONUs / different stream categories, the GPON system adds a GPON encapsulation method port (Gemport) identifier (identity document, ID) to the link layer message to distinguish them. Only when the ONU has enabled the Gemport corresponding to the Gemport ID can it send and receive data from the specified Gemport.
[0050] In FTTR scenarios, terminals roam between different slave ONUs. The latency and network resource consumption required during roaming significantly impact the user experience. However, GPON networks, previously widely used in fiber-to-the-home (FTTH) scenarios, do not allow terminals to roam between ONUs. GPON networks lack optimization considerations for FTTR scenarios, leading to excessive bandwidth usage and high latency at the GPON layer for both the master and slave ONUs when terminals roam between different slave ONUs.
[0051] Currently, the Gemport between the master and slave ONUs in the FTTR system is configured and enabled when the slave ONU accesses the network. The terminal connected to the slave ONU needs to use the allocated Gemport to send and receive information with the master ONU. In the upstream direction, the slave ONU forwards the upstream message of the terminal to the Gemport specified by the master ONU according to the forwarding rules issued by the master ONU. In the downstream direction, the forwarder of the master ONU learns the device identifier of the terminal in the Gemport, such as the physical address (media access control, MAC) of the terminal, to correctly forward the downstream message belonging to the terminal to the Gemport used when the slave ONU forwards the upstream message of the terminal, so that the terminal can receive the downstream message belonging to the terminal.
[0052] Figure 1 is a schematic diagram of a current terminal roaming in an FTTR system, as provided by an embodiment of the present disclosure. When a terminal accesses slave ONU 1, packets are forwarded between the master ONU and slave ONU 1 via Gemport 1. When the terminal roams from slave ONU 1 to slave ONU 2, it accesses slave ONU 2, and packets are forwarded between the master ONU and slave ONU 2 via Gemport 2.
[0053] This roaming method has the following disadvantages: After the terminal roams to slave ONU2, it needs to send an uplink message so that the master ONU's forwarder can learn the terminal's device identifier on Gemport2, generate a new forwarding rule, and correctly forward the terminal's downlink message to Gemport2. Therefore, the delay required for the terminal to successfully roam and for data services to be forwarded normally is: the duration of the terminal sending the uplink message for the first time after roaming + the time it takes for the master ONU to learn the terminal's device identifier and generate a new forwarding rule. This results in a longer delay for the terminal to perform data services after roaming between slave ONUs, thus affecting the user experience. Moreover, the terminal's device identifier will not age on Gemport1 until a period of time after the terminal roams to slave ONU2. As a result, during this period of time, the terminal's downlink message will still be forwarded to Gemport1, resulting in a waste of downlink bandwidth.
[0054] Based on this, an embodiment of the present disclosure provides a network management method, wherein after a terminal accesses a slave ONU, the slave ONU sends a port request message to the master ONU to request the master ONU to allocate a port for the terminal, that is, to allocate a Gemport for the terminal. After the master ONU allocates a target port to the terminal, it establishes a correspondence between the port identifier of the target port and the device identifier of the terminal, generates a forwarding rule for the data service belonging to the terminal for the terminal, and then broadcasts the correspondence between the port identifier of the target port and the device identifier of the terminal to all slave ONUs, so that when the terminal roams from the currently connected slave ONU to other slave ONUs, the other slave ONUs can enable the corresponding target port based on the correspondence between the port identifier of the received target port and the device identifier of the terminal, and can correctly forward the downlink message belonging to the terminal, thereby reducing the waste of downlink bandwidth. The terminal does not need to send an uplink message again to enable the master ONU to learn the device identifier of the terminal to generate a new forwarding rule, thereby reducing the delay of the terminal sending the uplink message again and the time consumed by the master ONU to learn the device identifier of the terminal to generate a new forwarding rule, thereby reducing the delay required for the terminal to perform data services after roaming between slave ONUs.
[0055] The following describes the solutions of the embodiments of the present disclosure in conjunction with the accompanying drawings.
[0056] FIG2 is a schematic diagram of the structure of an FTTR system provided by an embodiment of the present disclosure. As shown in FIG2 , the FTTR system includes a master ONU 11 , an optical splitter 21 , multiple slave ONUs (eg, slave ONU 31 , slave ONU 32 , and slave ONU 33 ), and a terminal 41 .
[0057] The master ONU 11 is a home device, which is connected to multiple slave ONUs through an optical splitter 21 and is the main gateway of the FTTR system.
[0058] In some embodiments, the master ONU 11 includes a device management module (master). The device management module (master) is a logical / software node within the master ONU 11 and is responsible for allocating ports (i.e., allocating Gemports) to each terminal connected to the FTTR network, generating a dedicated port identifier (i.e., Gemport ID), establishing a correspondence (also known as a mapping relationship) between the terminal's device identifier and the port identifier, and synchronously sending this correspondence to each slave ONU. Simultaneously, it establishes forwarding rules between the terminal's messages and the port identifier, including forwarding rules between downstream messages belonging to the terminal and the port identifier.
[0059] In some embodiments, the optical splitter 21 is a passive optical transmission device that connects the master ONU 11 and multiple slave ONUs.
[0060] In some embodiments, each slave ONU among the multiple slave ONUs is arranged in a respective room, connected to the master ONU 11 via an optical splitter 21 , and serves as an access point of the terminal 41 in the FTTR system.
[0061] In some embodiments, the slave ONU includes a device management module (slave), which is a logic / software node inside the slave ONU. It is responsible for sending the device identification of the terminal to the device management module (master) of the master ONU when a terminal accesses the slave ONU, and constructing a forwarding rule between the terminal's uplink message and the port identification of the port based on the correspondence between the terminal's device identification and the port identification issued by the device management module (master) of the master ONU.
[0062] In some embodiments, the device management module (master) and the device management module (slave) exchange information through protocols including but not limited to the optical network unit management and control interface (ONU management and control interface, OMCI) and the transmission control protocol (transmission control protocol, TCP), thereby achieving synchronization of the correspondence between the terminal's device identifier and the port identifier of the port within the GPON system.
[0063] In some embodiments, the terminal 41 may access the slave ONU in a wireless manner. In the case of wireless access to the slave ONU, the terminal 41 may access the slave ONU through a wireless local area network (WLAN).
[0064] In some embodiments, the terminal 41 can be a device with wireless transceiver capabilities that can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted. The terminal 41 can be a mobile phone, a tablet computer, a computer with wireless transceiver capabilities, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The embodiments of the present disclosure do not limit the application scenarios. The terminal can sometimes also be referred to as a user, user equipment (UE), an access terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a UE terminal, a wireless communication device, a UE agent or a UE device, etc., and the embodiments of the present disclosure do not limit this.
[0065] It should be understood that Figure 2 is an exemplary structural diagram, and the number of devices included in the FTTR system shown in Figure 2 is not limited, for example, the number of terminals is not limited. Furthermore, in addition to the devices shown in Figure 1, the FTTR system shown in Figure 2 may also include other devices, which is not limited.
[0066] Next, as shown in FIG3 , an embodiment of the present disclosure provides a network management method, which is applied to a master ONU. The master ONU may be the master ONU 11 shown in FIG2 . The method includes the following S101 - S102 .
[0067] S101: Receive port request information sent by a first slave ONU.
[0068] The port request information includes a device identifier of a first terminal connected to a first slave ONU, and the port request information is used to request allocation of a port to the first terminal, where the first slave ONU is one of a plurality of slave ONUs connected to the master ONU. Exemplarily, the port may be a Gemport, i.e., the port request information is used to request allocation of a Gemport to the first terminal.
[0069] In some embodiments, when a first slave ONU detects access to a first terminal, the first slave ONU obtains the device identifier of the first terminal and, based on the device identifier of the first terminal, queries whether it has stored a corresponding relationship related to the device identifier of the first terminal. If the first slave ONU does not have stored a corresponding relationship related to the device identifier of the first terminal, the first slave ONU sends a port request message to the master ONU, requesting that the master ONU allocate a port for the first terminal, indicating that the first terminal is newly connected to the FTTR system. The device identifier of the first terminal uniquely identifies the first terminal and may be, for example, the MAC address of the first terminal. The master ONU then receives the port request message from the first ONU.
[0070] S102: In response to the port request information, send first indication information to multiple slave ONUs.
[0071] The first indication information is used to indicate the correspondence between the device identifier of the first port and the port identifier of the target port, where the target port is a port allocated by the master ONU to the first terminal.
[0072] In some embodiments, the master ONU may allocate a port to the first terminal in the following situations.
[0073] Case 1: The master ONU has at least one unassigned port.
[0074] In some embodiments, the master ONU may include multiple ports. After receiving the port request information, the master ONU may query whether there is at least one unallocated port among its multiple ports. If there is at least one unallocated port among its multiple ports, the master ONU may allocate a port from the at least one unallocated port to the first terminal.
[0075] As an example, the master ONU may randomly select a port from at least one unassigned port and assign it to the first terminal, that is, the target port is one of the at least one unassigned port.
[0076] Case 2: The master ONU does not have at least one unassigned port.
[0077] It should be understood that the master ONU does not have at least one unassigned port, which means that multiple ports of the master ONU have been assigned. The master ONU can assign a port to the first port from the assigned ports.
[0078] As an example, the master ONU may allocate the earliest allocated port among the allocated ports to the first terminal, that is, the target port is the earliest allocated port among the allocated ports.
[0079] As another example, the master ONU may also randomly select a port from the allocated ports and allocate it to the first terminal, that is, the target port is one of the allocated ports.
[0080] After determining the target port, the master ONU sends first indication information to the multiple slave ONUs.
[0081] In some embodiments, when the master ONU does not have at least one unallocated port, the master ONU may also send a prompt message to the first slave ONU, prompting the master ONU that the master ONU does not have at least one unallocated port and cannot allocate a port to the first terminal. After receiving the prompt message, the first slave ONU learns that all ports of the master ONU have been allocated, and the first slave ONU actively disconnects from the first terminal.
[0082] It should be understood that when the master ONU does not have at least one unassigned port, the master ONU sends a prompt message to the first slave ONU, which can ensure that when a terminal exceeding the access capacity of the FTTR system accesses the FTTR system, it will not affect the normal use of the terminal that has already accessed the FTTR system.
[0083] Based on the embodiment shown in FIG3 , after a terminal accesses a slave ONU, the slave ONU sends a port request message to the master ONU to request the master ONU to allocate a port for the terminal, that is, to allocate a Gemport for the terminal. After allocating a target port to the terminal, the master ONU establishes a correspondence between the port identifier of the target port and the device identifier of the terminal, that is, generates a forwarding rule for the terminal's data service. The correspondence between the port identifier of the target port and the device identifier of the terminal is then broadcast to all slave ONUs. This allows the terminal to roam from the currently connected slave ONU to other slave ONUs. The other slave ONUs can enable the corresponding target port based on the correspondence between the received port identifier of the target port and the device identifier of the terminal, thereby correctly forwarding the terminal's downstream messages. This reduces waste of downstream bandwidth and eliminates the need for the terminal to resend upstream messages so that the master ONU can learn the terminal's device identifier and generate a new forwarding rule. This reduces the delay in the terminal resending upstream messages and the time it takes the master ONU to learn the terminal's device identifier and generate a new forwarding rule, thereby reducing the delay required for the terminal to carry out data services after roaming between slave ONUs.
[0084] In some embodiments, as shown in FIG4 , the method further includes the following S201 .
[0085] S201: If no message from a first terminal is received within a preset time period, a corresponding relationship related to a device identifier of the first terminal is deleted, and second indication information is sent to multiple slave ONUs.
[0086] The second indication information is used to instruct to delete the corresponding relationship related to the device identifier of the first terminal from the ONU. The preset time length may be preset by a network administrator, for example, the preset time length is 10 minutes.
[0087] In some embodiments, the preset duration may also be called by other names, for example, the preset duration may also be called aging duration.
[0088] It should be understood that if no message is received from the first terminal within the preset time period, it means that the first terminal may have left the coverage of the FTTR system. In order to release the port allocated to the first terminal, the correspondence related to the device identifier of the first terminal can be deleted, and a second indication message can be sent to multiple slave ONUs to instruct the multiple slave ONUs to delete the correspondence related to the device identifier of the first terminal. In this way, the correspondence between the device identifier of the terminal stored in the master ONU and the multiple slave ONUs and the port identifier of the port is consistent.
[0089] It should be noted that the message of the first terminal may be uplink traffic sent by the first terminal.
[0090] In some embodiments, after the master ONU deletes the corresponding relationship with the device identifier of the first terminal, it can disable the port corresponding to the device identifier of the first terminal and delete the downlink forwarding rule of the port corresponding to the device identifier of the first terminal, so that the state of the port corresponding to the device identifier of the first terminal is converted from an allocated state to an unallocated state. At this point, the resources of the port corresponding to the device identifier of the first terminal are released and can be allocated to a terminal newly connected to the FTTR system.
[0091] In some embodiments, as shown in Figure 5, an embodiment of the present disclosure provides a network management method, which is applied to a first slave ONU. The first slave ONU can be one of the multiple slave ONUs shown in Figure 2 above. For example, the first slave ONU can be slave ONU31. The method includes the following S301-S304.
[0092] S301: When detecting access of a first terminal, obtain a device identification of the first terminal.
[0093] In some embodiments, when the first terminal accesses the first slave ONU via a wireless manner (eg, WLAN), the first slave ONU detects the access of the first terminal. Upon detecting the access of the first terminal, the first slave ONU may obtain a device identification of the first terminal.
[0094] In some embodiments, when the first terminal accesses the first slave ONU, the first terminal actively reports its own device identification, and then the first slave ONU obtains the device identification of the first terminal.
[0095] S302: If the corresponding relationship related to the device identification of the first terminal is not stored in the master ONU, send port request information to the master ONU.
[0096] After the first slave ONU obtains the device identification of the first terminal, it may use the device identification of the first terminal as an index to query whether it has stored a corresponding relationship related to the device identification of the first terminal.
[0097] As an example, if the first slave ONU does not store a corresponding relationship related to the device identifier of the first terminal, representing that the first terminal is a terminal newly connected to the FTTR system, in order to enable the forwarding of the first terminal's messages in the FTTR system, the first slave ONU sends a port request message to the master ONU to request the master ONU to allocate a port for the first terminal. The port request message includes the device identifier of the first terminal.
[0098] As another example, when the first slave ONU stores the corresponding relationship related to the device identification of the first terminal, representing that the first terminal is a terminal that has been connected to the FTTR system, the first slave ONU can enable the port corresponding to the device identification of the first terminal based on the corresponding relationship related to the device identification of the first terminal, so that the message of the first terminal can be forwarded in the FTTR system.
[0099] S303: Receive first indication information sent by the master ONU.
[0100] For the description of the first indication information, reference may be made to the above description of the first indication information in S102 , which will not be repeated here.
[0101] S304: Store the correspondence between the device identifier of the first terminal and the port identifier of the target port, and enable the target port.
[0102] As an example, storing the correspondence between the device identifier of the first terminal and the port identifier of the target port may include the following situations.
[0103] Scenario 1: The corresponding relationship related to the port identifier of the target port is not stored.
[0104] It should be understood that if the corresponding relationship between the port identifier of the target port is not stored, it means that the target port has not been allocated and can be directly allocated to the first terminal. Therefore, if the corresponding relationship between the target port is not stored, the corresponding relationship between the device identifier of the first terminal and the port identifier of the target port is stored.
[0105] Scenario 2: The corresponding relationship between the port identifier of the target port is stored in the device.
[0106] It should be understood that if the corresponding relationship related to the port identifier of the target port is stored, it means that the target port has been previously assigned to another terminal. In order to avoid the situation where the port identifier of the target port has a corresponding relationship with the device identifiers of multiple terminals at the same time, causing subsequent message forwarding disorder, if the corresponding relationship related to the port identifier of the target port is stored, the corresponding relationship related to the port identifier of the target port is updated to the corresponding relationship between the device identifier of the first terminal and the port identifier of the target port, so that the corresponding relationship between the device identifier of the first terminal and the port identifier of the target port is unique, thereby avoiding the situation of message forwarding disorder.
[0107] When the first slave ONU stores the correspondence between the device identifier of the first terminal and the port identifier of the target port, the first slave ONU may further enable the target port so that the message of the first terminal can be forwarded through the target port.
[0108] In some embodiments, if no message from the first terminal is received within a preset time period, the first slave ONU disables the target port.
[0109] It should be understood that if no message from the first terminal is received within the preset time period, it means that the first terminal may have left the coverage of the first slave ONU. The first slave ONU may disable the target port to release its own bandwidth resources.
[0110] In some embodiments, when the first slave ONU detects that the first terminal is connected to the first slave ONU, the first slave ONU disables the target port according to the correspondence between the device identifier of the first terminal and the port identifier of the target port.
[0111] In some embodiments, as shown in FIG6 , the method further includes the following S401 - S402 .
[0112] S401: Receive second indication information sent by a master ONU.
[0113] The second indication information is used to instruct to delete the corresponding relationship related to the device identifier of the first terminal from the ONU.
[0114] S402: In response to the second instruction information, delete the corresponding relationship related to the device identifier of the first terminal.
[0115] As an example, after the first slave ONU receives the second indication information sent by the master ONU, in response to the second indication information, the first slave ONU uses the device identifier of the first terminal as an index to determine the corresponding relationship related to the device identifier of the first terminal, and then deletes the corresponding relationship related to the device identifier of the first terminal.
[0116] In some embodiments, after the first slave ONU deletes the correspondence related to the device identifier of the first terminal, it deletes the uplink forwarding rule of the port corresponding to the device identifier of the first terminal. At this point, the resources of the port corresponding to the device identifier of the first terminal are released, that is, the state of the port corresponding to the device identifier of the first terminal is switched from the allocated state to the unallocated state, and can be allocated as a newly accessed terminal.
[0117] In some embodiments, as shown in Figure 7, an embodiment of the present disclosure provides a network management method, which is applied to a second slave ONU. The second slave ONU can be one of the multiple slave ONUs shown in Figure 2 above except the first slave ONU. For example, the first slave ONU can be slave ONU31, and the second slave ONU can be slave ONU32. The method includes the following S501-S502.
[0118] S501: Receive first indication information sent by a master ONU.
[0119] The first indication information is used to indicate the correspondence between the device identifier of the first terminal and the port identifier of the target port, where the target port is the port allocated by the master ONU to the first terminal, the first terminal is the terminal connected to the first slave ONU, and the first slave ONU is one of the multiple slave ONUs except the second slave ONU.
[0120] S502: Store the correspondence between the device identifier of the first terminal and the port identifier of the target port.
[0121] Regarding the description of the correspondence between the device identifier of the first terminal stored in the second slave ONU and the port identifier of the target port, reference can be made to the description of the correspondence between the device identifier of the first terminal stored in the first slave ONU and the port identifier of the target port in S304 above, which will not be repeated here.
[0122] In some embodiments, after S502 , as shown in FIG8 , the method further includes the following S503 .
[0123] S503 : When the first terminal moves from the coverage of the first slave ONU to the coverage of the second slave ONU, enable the target port according to the correspondence between the device identifier of the first terminal and the port identifier of the target port.
[0124] It should be understood that one slave ONU corresponds to one room. When a first terminal moves from the room where the first slave ONU is located to the room where the second slave ONU is located, it means that the first terminal has moved from the coverage area of the first slave ONU to the coverage area of the second slave ONU. The first terminal disconnects from the first slave ONU and connects to the second slave ONU. When the second slave ONU detects the access of the first terminal, it determines that the port corresponding to the first terminal is the target port based on the correspondence between the device identifier of the first terminal and the port identifier of the target port stored in its own storage. The target port is then enabled, allowing the first terminal's uplink messages to continue to be sent from the target port, allowing the master ONU to continue forwarding the first terminal's downlink messages to the target port. The target port then forwards the first terminal's downlink messages to the first terminal. This ensures that the first terminal's uplink and downlink messages can be forwarded normally in the FTTR system even if the port corresponding to the first terminal is not switched.
[0125] For example, as shown in FIG9 , a schematic diagram of a terminal roaming to another slave ONU provided by an embodiment of the present disclosure is provided. Referring to FIG9 , terminal 41 moves from the coverage of slave ONU 31 to the coverage of slave ONU 32. When slave ONU 32 detects the access of terminal 41, it obtains the device identification of terminal 41, and then determines that the port corresponding to terminal 41 is Gem1 based on the correspondence between the device identification of the terminal and the port identification stored in itself. Slave ONU 32 then enables its own Gem1, so that the messages of terminal 41 can continue to be sent by Gem1, so that the messages belonging to terminal 41 can still be forwarded by master ONU 11 to Gem1, and Gem1 forwards the messages belonging to terminal 41 to terminal 41.
[0126] In some embodiments, when the second slave ONU enables the target port, if no message from the first terminal is received within a preset time period, it means that the first terminal may have left the coverage of the second slave ONU, then the second slave ONU disables the target port to release its own bandwidth resources.
[0127] In some embodiments, as shown in FIG10 , the method further includes the following S601 - S602 .
[0128] S601: Receive second indication information sent by a master ONU.
[0129] S602: In response to the second instruction information, delete the corresponding relationship related to the device identifier of the first terminal.
[0130] For the description of S601-S602, please refer to the above description of S401-S402, which will not be repeated here.
[0131] The following describes a network management method provided by an embodiment of the present disclosure from the perspective of the interaction between the master ONU, the first slave ONU, and the second slave ONU. FIG11 shows a schematic diagram of the interaction flow of a network management method provided by an embodiment of the present disclosure, as shown in FIG11 , including the following S701 - S712.
[0132] S701. A first terminal accesses an FTTR network and connects to a first slave ONU.
[0133] S702: The first slave ONU senses access of the first terminal and queries whether it has stored a corresponding relationship related to the device identifier of the first terminal.
[0134] It should be understood that when the device management module (slave) 1 of the first slave ONU senses the access of the first terminal, the device management module (slave) 1 queries whether it has stored a corresponding relationship related to the device identifier of the first terminal. If the query fails, the following S703 is executed. If the query is successful, the target port corresponding to the device identifier of the first terminal is enabled.
[0135] S703: The first slave ONU sends port request information to the master ONU.
[0136] As an example, the device management module (slave) 1 of the first slave ONU sends port request information to the device management module (master) of the master ONU, where the port request information includes the device identifier of the first terminal.
[0137] Exemplarily, the device management module (slave) 1 sends a message with sequence number ① to the device management module (master), the content of which is “new Device (new device) device identification 1”.
[0138] S704: The master ONU allocates a target port to the first terminal, and generates a correspondence between the port identifier of the target port and the device identifier of the first terminal.
[0139] The device management module (master) receives message ①, takes device ID 1 as input parameter, calls the mapping algorithm, obtains the port ID Gemport ID1 of an unassigned port, and then generates a corresponding relationship between device ID 1 and Gemport ID1.
[0140] S705: The master ONU sends the correspondence between the port identifier of the target port and the device identifier of the first terminal to the first slave ONU and the second slave ONU.
[0141] The device management module (master) sends message number ② to device management modules (slave) 1 and 2. The message contains "map device ID 1 to Gemport ID 1." It also configures a downstream forwarding rule: packets with device ID 1 -> Gemport ID 1. Accordingly, the first and second slave ONUs receive a mapping between the port ID of the target port and the device ID of the first terminal.
[0142] S706: The first slave ONU enables the target port and configures forwarding rules.
[0143] Device management modules (slave) 1 and 2 receive message ②. Device management module (slave) 1 enables Gemport ID1, caches the mapping between device ID 1 and Gemport ID1, and configures the upstream forwarding rule: packets with device ID 1 -> Gemport ID1. Device management module (slave) 2 does not need to enable Gemport ID1. At this point, packets from the first terminal can be forwarded normally in the FTTR system via slave ONU 1.
[0144] S707: The first terminal roams to the second slave ONU.
[0145] After the first terminal enters the coverage of the second slave ONU from the coverage of the first slave ONU, the first terminal roams to the second slave ONU.
[0146] S708: The second slave ONU determines the target port according to the correspondence between the device identifier of the first terminal and the port identifier of the target port.
[0147] The second slave ONU senses the access of the first terminal and queries the cache of the device management module (slave) 2 with the device identification 1 of the first terminal. The device management module (slave) 2 receives the corresponding relationship of device identification 1<->Gemport ID1 issued by the device management module (master) in S705, so it is found that the device identification 1 corresponds to Gemport ID1, that is, the target port is determined to be Gemport 1.
[0148] S709: The second slave ONU enables the target port.
[0149] After the second slave ONU enables the target port Gemport1, the messages sent by the first terminal to the master ONU are sent out through Gemport1. The master ONU continues to forward the messages belonging to the first terminal to Gemport1. At this point, the messages from the first terminal continue to be forwarded normally in the FTTR system without Gemport ID switching.
[0150] S710: The first slave ONU senses that the first terminal is disconnected, and disables the target port.
[0151] The first slave ONU senses that the first terminal has been disconnected from itself, and according to the correspondence relationship of device identifier 1<->Gemport ID1 of the first terminal, disables Gemport 1 corresponding to Gemport ID1, thereby releasing its own bandwidth resources.
[0152] In some embodiments, if the first terminal is disconnected from the FTTR system, all ONUs disable the target port.
[0153] For example, when power is off, the network is shut down, or the first terminal leaves the coverage of the FTTR system network, the first terminal is disconnected from the FTTR system, and all ONUs disable the target port Gemport1.
[0154] S711. If no message from the first terminal is received within a preset time, the master ONU disables the target port and sends instruction information to the first slave ONU and the second slave ONU to instruct the first slave ONU and the second slave ONU to delete the correspondence between the device identifier of the first terminal and the port identifier of the target port.
[0155] In some embodiments, after a preset period of time, if the device management module (master) does not detect any messages from the first terminal, it immediately deletes the mapping between device ID 1 and Gemport ID 1 from its cache, disables Gemport 1, and deletes the downlink forwarding rule for Gemport ID 1. It then sends a message (sequence number ③) to device management modules (slave) 1 and 2, containing "del map device ID 1 Gemport ID 1."
[0156] S712: The first slave ONU and the second slave ONU delete the correspondence between the device identifier of the first terminal and the port identifier of the target port.
[0157] Device management modules (slaves) 1 and 2 receive message number ③, delete the correspondence between device identifier 1 and Gemport ID 1, and delete the uplink forwarding rule of Gemport ID 1. At this point, the resources of Gemport 1 are released and can be allocated to new terminals.
[0158] The functions of the device management module (master) and the device management module (slave) are introduced below.
[0159] The following example illustrates the message list between device management modules. Message content can be transmitted using multiple protocols.
[0160] The following describes a network management method provided by an embodiment of the present disclosure by taking message transmission between device management modules through the TCP protocol and the device identifier of a terminal as the MAC address of the terminal as an example.
[0161] Assume that an FTTR network is deployed in a three-room house. In addition to the master ONU at the entrance to the house, each room is deployed with a slave ONU. The rooms are numbered 1-3, and the corresponding slave ONUs are also numbered 1-3.
[0162] S1. The master / slave ONU starts, and the device management module inserts a hook into the MAC learning module of the ONU. When the WLAN port learns a new MAC address or a MAC address ages, the device management module can receive a notification.
[0163] S2. After the device management module (master) starts, it listens to TCP port 18992, the pre-agreed communication port for the device management module. Gemport IDs 1000-3999 are designated as dedicated Gemport IDs for terminal wireless access. A bit map is assigned to these 3000 Gemport IDs, with each bit representing Gemport ID usage. If bit x is set, it indicates that Gemport ID x is already in use by a terminal. During the initialization phase, all bits are set.
[0164] S3. After the slave ONU default gateway is UP, the device management module (slave) connects to the TCP 18992 port of the gateway and establishes a link with the device management module (master) to prepare for subsequent message sending and receiving.
[0165] S4. Some time later, a user in room 1 connects a terminal to the FTTR network via WLAN, connecting to slave ONU 1. The MAC address of the terminal's network card is dc:6a:e7:0d:7f:30. This MAC address is learned by the MAC learning module of ONU 1 and notified to the device management module (slave) 1.
[0166] S5. The device management module (slave) 1 checks whether it has stored a corresponding relationship related to the terminal's MAC address, and sends a message "new Device dc:6a:e7:0d:7f:30" to the device management module (master).
[0167] S6. The device management module (master) receives the message, searches the Gemport ID bit map, and finds that bit 100 is not set. It then sets bit 100 and creates a mapping: dc:6a:e7:0d:7f:30 <-> Gemport ID 100. It then adds this mapping to its own mapping cache and configures a MAC-based downlink forwarding rule: dc:6a:e7:0d:7f:30 -> Gemport ID 100.
[0168] S7. The device management module (master) sends a message to each device management module (slave) connected to itself: "map dc:6a:e7:0d:7f:30 100".
[0169] S8. Device management modules (from) 1, 2, and 3 receive the message, cache the mapping relationship, and configure the uplink forwarding rule dc:6a:e7:0d:7f:30->Gemport ID100.
[0170] S9. The device management module (slave) 1 enables Gemport ID100. At this point, the terminal's message can be forwarded through Gemport ID100.
[0171] S10. The user moves to room 2, and the user's terminal also roams to slave ONU 2.
[0172] S11. The MAC learning module of ONU 2 learns this MAC and notifies the device management module (slave) 2.
[0173] S12. The device management module (slave) 2 queries its own mapping cache and finds the mapping entry: dc:6a:e7:0d:7f:30<->Gemport ID100. Then, Gemport ID100 is enabled and the terminal's message is forwarded normally.
[0174] S13. Slave ONU 1 does not receive an uplink message with dc:6a:e7:0d:7f:30 within an aging period, and the MAC address ages. The MAC address is notified to device management module (slave) 1, which then disables Gemport ID 100.
[0175] S14. The user leaves the house and the random terminal is disconnected from slave ONU 2. Slave ONU 2 does not receive an uplink message with dc:6a:e7:0d:7f:30 for an aging period. The MAC address ages and the device management module (slave) 2 is notified. Then the device management module (slave) 2 disables Gemport ID 100.
[0176] S15: The master ONU fails to receive upstream packets from dc:6a:e7:0d:7f:30 within the aging time for Gemport ID 100. The MAC address ages, and the master notifies the device management module (master). The master then deletes the mapping from its cache: dc:6a:e7:0d:7f:30 <-> Gemport ID 100. It then sends a message to each connected device management module (slave), "del map dc:6a:e7:0d:7f:30 100," setting bit 100 in its internal bit map to 0. This deletes the downstream rule: dc:6a:e7:0d:7f:30 -> Gemport ID 100.
[0177] S16. The device management module (slave) 1-3 receives the message from the master ONU and deletes the upstream forwarding rule dc:6a:e7:0d:7f:30->Gemport ID100.
[0178] In some embodiments, after S5, the following S17-S20 may also be included.
[0179] S17. The device management module (master) receives the message and traverses the Gemport ID bit map. It finds that bits 1-3000 are all set, indicating that the terminal has used up all the Gemport IDs assigned by the FTTR system. The device management module (master) then traverses the MAC addresses in the MAC learning table, finds the entry with the earliest timestamp, and discovers that its MAC address and mapping relationship are 00:0d:b6:0d:7f:00 <-> Gemport ID1.
[0180] S18. The device management module (master) updates the mapping relationship to dc:6a:e7:0d:7f:30 <-> Gemport ID1, and sends a message to each device management module (slave) connected to itself: "update map 00:0d:b6:0d:7f:00dc:6a:e7:0d:7f:30 1", and updates the downstream forwarding rule: 00:0d:b6:0d:7f:00->Gemport ID1 is dc:6a:e7:0d:7f:30->Gemport ID1.
[0181] S19: Device management module (slave) 1-3 receives the message from the master ONU and updates the mapping in its cache: dc:6a:e7:0d:7f:30 <-> Gemport ID 1. It also updates the upstream forwarding rule: 00:0d:b6:0d:7f:00 -> Gemport ID 1 to dc:6a:e7:0d:7f:30 -> Gemport ID 1. At this point, packets from the terminal with MAC address dc:6a:e7:0d:7f:30 can be forwarded normally.
[0182] S20. The device management module (slave) 1-3 checks its own MAC learning table. If there is still an entry of 00:0d:b6:0d:7f:00, it deletes this entry so that 00:0d:b6:0d:7f:00 can re-trigger the process of joining the FTTR network.
[0183] This process ensures that the latest terminals joining the FTTR network can be assigned Gemport IDs.
[0184] In some embodiments, after S5, the following S21-S23 may also be included.
[0185] S21. The device management module (master) receives the message and traverses the Gemport ID bit map. It finds that bits 1-3000 are all set, indicating that the terminal has exhausted all the Gemport IDs in the FTTR system. The device management module (master) then sends a message to device management module (slave) 1: "mapdc:6a:e7:0d:7f:30NULL," indicating that no Gemport ID can be assigned to this terminal.
[0186] S22. The device management module (slave) 1 receives a message from the master ONU and proactively disconnects from the terminal.
[0187] S23: The terminal is disconnected and reconnected, and the process is repeated until the device management module (master) has an idle Gemport ID available.
[0188] This process ensures that the access of terminals exceeding the system access capacity will not affect the normal use of the connected terminals.
[0189] The above-described embodiment is to illustrate by the example that message transmission is carried out between the device management module by the TCP protocol, it should be understood that, because the communication between the device management module is inside the primary PON system, is end-to-end communication, so message transmission can also be carried out by OMCI bearer message between the device management module.When using the message of communication between the OMCI bearer device management module, it is necessary to redefine entity.
[0190] When defining an entity, you need to create a device mapping table, which includes attributes and actions.
[0191] Attributes include the management entity identity, the MAC address of the new device, and the device mapping table. The management entity identity indicates that this attribute uniquely identifies each instance of this management entity. The device mapping table indicates the Gemport ID bound to the MAC. Each row in the table contains the following fields: Gemport ID, action, and the device's MAC address (Device MAC). The Gemport ID is also the key part of each row. Device MAC indicates that the terminal's MAC address is bound to the Gemport ID.
[0192] The specific English includes are as follows:
[0193] Device map table
[0194] Attributes
[0195] Managed entity id:This attribute uniquely identifies each instance of this managed entity.(R,Set-by-create)(mandatory)(2bytes)
[0196] (1)New Device MAC:This attribute specifies the device MAC need to be mapped to a Gemport ID(6bytes)
[0197] (2)Device Map table:The table is the device map that indicates the Gemport IDbind to a MAC
[0198] Each row of the table comprises the following fields:
[0199] Gemport ID:The Gemport ID,Also as key part of each row(2byte).
[0200] Action:Remove(0)or add(1)this Map(set action)(1byte).
[0201] Device MAC:The device bind to Gemport ID.(6bytes)
[0202] (R,W)(mandatory)(9*N bytes,where N is the number of device map)
[0203] Actions
[0204] Create,delete,get,get next,set
[0205] Set table;
[0206] Among them, Device map table means device mapping table, Attributes means attributes, and Managed entity id means identity document (id) of managed entity. “This attribute uniquely identifies each instance of this managed entity. (R, Set by create) (mandatory) (2 bytes)” means “This attribute uniquely identifies each instance of this managed entity. (R, Set by create) (mandatory) (2 bytes)”. New Device MAC means the MAC address of the new device. “The table is the device map that indicates the Gemport ID bind to a MAC” means “The table is the device mapping table, indicating the Gemport ID bound to the MAC”. “Each row of the table comprises the following fields” means “Each row of the table comprises the following fields”. “Gemport ID: The Gemport ID, Also as key part of each row (2 bytes)” means “Gemport ID is also the key part of each row (2 bytes)”. "Action: Remove(0) or add(1) this Map(set action)(1byte)" means "Action: Delete(0) or add(1) this Map(set action)(1byte)". "Device MAC: The device bind to Gemport ID.(6bytes)" means "MAC address of the terminal: the device bound to the Gemport ID, (6 bytes)". "(R,W)(mandatory)(9*N bytes, where N is the number of device map)" means "(R,W)(mandatory)(9*N bytes, where N is the number of device map)". Actions means action, Create means create, delete means delete, get means get, get next means get the next, set means set, and Set table means set table.
[0207] When OMCI is used to carry messages communicated between device management modules, the following A1-A5 may be included.
[0208] A1. When a slave ONU is connected to a master ONU, the master ONU creates an OMCI ME Device map table for the slave ONU.
[0209] A2. When the device management module (slave) needs to send a sequence ① message, the terminal's MAC address is written into the New Device MAC attribute of the Device map table, and the master ONU is notified via an OMCI attribute value change (AVC) message; after the master ONU receives the OMCI AVC message, it sends an OMCI GET message to obtain this MAC and notifies the device management module (master).
[0210] A3. When the device management module (master) needs to send sequence ② messages, it sends the OMCI Set Table message to set the Device map table attributes of the Device map table entity, set the Gemport ID field to the Gemport ID mapped by the device, set the Action field to 1, and set the Device MAC field to the MAC address of the terminal. The OMCI of the ONU notifies the device management module (slave) of this mapping relationship.
[0211] A4. When the device management module (master) needs to send sequence ③ messages, it issues the OMCI Set Table message to set the Device map table attributes of the Device map table entity, sets the Gemport ID field to the Gemport ID of the device mapping, sets the Action field to 0, and sets the Device MAC field to the MAC address of the terminal. The OMCI of the ONU notifies the device management module (slave) of this mapping relationship.
[0212] A5. When the device management module (master) needs to send sequence ④ messages, it sends the OMCI Set Table message to set the Device map table attributes of the Device map table entity, set the Gemport ID field to the Gemport ID mapped by the device, set the Action to 1, and set the Device MAC to the MAC address of the terminal. The OMCI of the ONU finds that the Row key sent is repeated, performs an overwrite operation, and notifies the new and old entries to the device management module (slave).
[0213] The above mainly introduces the solution provided by the present disclosure from the perspective of the interaction between each node. It is understandable that each node, such as a terminal, includes a hardware structure and / or software module corresponding to the execution of each function in order to realize the above functions. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can 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 the present invention.
[0214] FIG12 is a schematic diagram showing the composition of a communication device provided by an embodiment of the present disclosure. As shown in FIG12 , the communication device 30 includes a receiving unit 301 and a sending unit 302 .
[0215] The communication device 30 may be the master ONU. When the communication device 30 is used to implement the functions of the master ONU in the above embodiment, each unit is specifically used to implement the following functions.
[0216] The receiving unit 301 is used to receive port request information sent by a first slave ONU, where the port request information includes a device identifier of a first terminal connected to the first slave ONU and is used to request allocation of a port for the first terminal. The first slave ONU is one of multiple slave ONUs.
[0217] The sending unit is used to send first indication information to multiple slave ONUs in response to the port request information, where the first indication information is used to indicate the correspondence between the device identifier of the first terminal and the port identifier of the target port, where the target port is the port allocated by the master ONU to the first terminal.
[0218] In some embodiments, when the master ONU has at least one unassigned port, the target port is one of the at least one unassigned port.
[0219] In some embodiments, when the master ONU does not have at least one unassigned port, the target port is the earliest assigned port among the assigned ports of the master ONU.
[0220] In some embodiments, the sending unit 302 is further used to delete the corresponding relationship related to the device identifier of the first terminal if no message is received from the first terminal within a preset time period, and send a second indication message to multiple slave ONUs, where the second indication message is used to instruct the slave ONU to delete the corresponding relationship related to the device identifier of the first terminal.
[0221] FIG13 is a schematic diagram showing the composition of another communication device provided by an embodiment of the present disclosure. As shown in FIG13 , the communication device 40 includes an acquisition unit 401, a storage unit 402, and a sending unit 403. As an example, the communication device 40 may further include a processing unit 404.
[0222] The communication device 40 may be the first slave ONU. When the communication device 40 is used to implement the function of the first slave ONU in the above embodiment, each unit is specifically used to implement the following functions.
[0223] The acquiring unit 401 is configured to acquire a device identification of the first terminal when detecting access of the first terminal.
[0224] The sending unit 403 is configured to send port request information to the master ONU when the sending unit does not store the corresponding relationship related to the device identification of the first terminal. The port request information includes the device identification of the first terminal and is used to request allocation of a port for the first terminal.
[0225] The acquiring unit 401 is further configured to receive first indication information sent by the master ONU, where the first indication information is configured to indicate a correspondence between a device identifier of the first terminal and a port identifier of a target port, where the target port is a port allocated by the master ONU to the first terminal.
[0226] The storage unit 402 is configured to store a correspondence between the device identifier of the first terminal and the port identifier of the target port, and enable the target port.
[0227] In some embodiments, the storage unit 402 is specifically configured to store the correspondence between the device identifier of the first terminal and the port identifier of the target port when the storage unit 402 does not store the correspondence related to the port identifier of the target port.
[0228] In some embodiments, the storage unit 402 is specifically configured to update the corresponding relationship related to the port identifier of the target port to the corresponding relationship between the device identifier of the first terminal and the port identifier of the target port when the corresponding relationship related to the port identifier of the target port is stored in the storage unit 402.
[0229] In some embodiments, the processing unit 404 is configured to disable the target port if no message from the first terminal is received within a preset time period.
[0230] In some embodiments, the acquiring unit 401 is further configured to receive second indication information sent by the master ONU, where the second indication information is configured to instruct the slave ONU to delete the corresponding relationship associated with the device identifier of the first terminal;
[0231] The processing unit is further configured to delete the corresponding relationship related to the device identifier of the first terminal in response to the second indication information.
[0232] FIG14 is a schematic diagram showing the composition of another communication device provided by an embodiment of the present disclosure. As shown in FIG14 , the communication device 50 includes a receiving unit 501 , a storage unit 502 , and a processing unit 503 .
[0233] The communication device 50 may be the second slave ONU. When the communication device 50 is used to implement the function of the second slave ONU in the above embodiment, each unit is specifically used to implement the following functions.
[0234] The receiving unit 501 is used to receive first indication information sent by the master ONU, where the first indication information is used to indicate a correspondence between a device identifier of a first terminal and a port identifier of a target port, where the target port is a port allocated by the master ONU to the first terminal, where the first terminal is a terminal connected to a first slave ONU, and where the first slave ONU is one of multiple slave ONUs except the second slave ONU.
[0235] The storage unit 502 is configured to store a correspondence between the device identifier of the first terminal and the port identifier of the target port.
[0236] In some embodiments, the storage unit 502 is specifically configured to store the correspondence between the device identifier of the first terminal and the port identifier of the target port when the storage unit 502 does not store the correspondence related to the port identifier of the target port.
[0237] In some embodiments, the storage unit 502 is specifically configured to update the corresponding relationship related to the port identifier of the target port to the corresponding relationship between the device identifier of the first terminal and the port identifier of the target port when the corresponding relationship related to the port identifier of the target port is stored in the storage unit 502.
[0238] In some embodiments, the processing unit 503 is further configured to enable the target port according to the correspondence between the device identifier of the first terminal and the port identifier of the target port when the first terminal moves from the coverage of the first slave ONU to the coverage of the second slave ONU.
[0239] In some embodiments, the processing unit 503 is further configured to disable the target port if no message from the first terminal is received within a preset time period.
[0240] In some embodiments, the receiving unit 501 is further configured to receive second indication information sent by the master ONU, where the second indication information is configured to instruct the slave ONU to delete the corresponding relationship associated with the device identifier of the first terminal.
[0241] The processing unit 503 is further configured to delete the corresponding relationship related to the device identifier of the first terminal in response to the second indication information.
[0242] It should be noted that the units in Figures 12, 13, and 14 may also be referred to as modules. For example, the sending unit may be referred to as a sending module. In addition, in the embodiments shown in Figures 12, 13, and 14, the names of the units may not be those shown in the figures. For example, the sending unit may be referred to as a communication unit, and the receiving unit may be referred to as a communication unit.
[0243] If the various units in Figures 12, 13 and 14 are implemented in the form of software function modules 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 embodiment of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present disclosure. The storage medium for storing computer software products includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0244] When the communication device 30, 40, or 50 implements the functions of the integrated modules in hardware, the present disclosure provides a schematic structural diagram of a communication device. As shown in FIG15 , the communication device 60 includes a memory 601, a processor 602, a communication interface 603, and a bus 604.
[0245] The memory 601 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store dynamic information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0246] Processor 602 may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein. Processor 602 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Processor 602 may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein. Processor 602 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, or a combination of a DSP and a microprocessor.
[0247] The communication interface 603 is used to connect to other devices via a communication network, such as Ethernet, wireless access network, or wireless local area network (WLAN).
[0248] In some embodiments, the memory 601 may exist independently of the processor 602. The memory 601 may be connected to the processor 602 via a bus 604 and used to store instructions or program codes. When the processor 602 calls and executes the instructions or program codes stored in the memory 601, the network management method provided in the embodiment of the present disclosure can be implemented.
[0249] In some embodiments, the memory 601 may also be integrated with the processor 602 .
[0250] Bus 604 can be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 604 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, FIG15 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.
[0251] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and conciseness of the description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the base station or terminal is divided into different functional modules to complete all or part of the functions described above.
[0252] The embodiments of the present disclosure also provide a computer-readable storage medium. All or part of the processes in the above-mentioned method embodiments can be completed by computer instructions to instruct the relevant hardware, and the program can be stored in the above-mentioned computer-readable storage medium. When the program is executed, it may include the processes of the above-mentioned method embodiments. The computer-readable storage medium can be an internal storage unit of the communication device of any of the above-mentioned embodiments, such as a hard disk or memory of a computer device. The above-mentioned computer-readable storage medium can also be an external storage device of the above-mentioned communication device, such as a plug-in hard disk equipped on the above-mentioned communication device, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. Further, the above-mentioned computer-readable storage medium can also include both the internal storage unit of the above-mentioned base station or terminal and an external storage device. The above-mentioned computer-readable storage medium is used to store the above-mentioned computer program and other programs and data required by the above-mentioned communication device. The above-mentioned computer-readable storage medium can also be used to temporarily store data that has been output or is to be output. The above-mentioned computer-readable storage medium includes a non-transitory computer-readable storage medium.
[0253] An embodiment of the present disclosure further provides a computer program product, which includes a computer program. When the computer program product is run on a computer, the computer is enabled to execute any one of the network management methods provided in the above embodiments.
[0254] Although the present disclosure is described herein in conjunction with various embodiments, in the process of implementing the disclosure for which protection is sought, those skilled in the art may understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple components. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0255] Although the present disclosure has been described with reference to specific features and embodiments thereof, it will be apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present disclosure. Accordingly, this specification and the drawings are merely illustrative of the present disclosure as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present disclosure. Obviously, those skilled in the art may make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, the present disclosure is intended to encompass such modifications and variations if they fall within the scope of the claims of the present disclosure and their equivalents.
[0256] The above are only specific implementation methods of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or replacements within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A network management method, applied to a master optical network unit (ONU), wherein the master ONU is connected to a plurality of slave ONUs, wherein: The method comprises: Receiving port request information sent by a first slave ONU, the port request information including a device identifier of a first terminal connected to the first slave ONU, the port request information being used to request allocation of a port for the first terminal, the first slave ONU being one of the multiple slave ONUs; In response to the port request information, first indication information is sent to the multiple slave ONUs, wherein the first indication information is used to indicate the correspondence between the device identifier of the first terminal and the port identifier of the target port, and the target port is the port allocated by the master ONU to the first terminal.
2. The method according to claim 1, wherein: In the case that the master ONU has at least one unallocated port, the target port is one of the at least one unallocated port.
3. The method according to claim 1, wherein: In the case that the master ONU does not have at least one unallocated port, the target port is the earliest allocated port among the allocated ports of the master ONU.
4. The method according to any one of claims 1 to 3, further comprising: If no message from the first terminal is received within a preset time period, the corresponding relationship related to the device identifier of the first terminal is deleted, and second indication information is sent to the multiple slave ONUs, where the second indication information is used to instruct the slave ONU to delete the corresponding relationship related to the device identifier of the first terminal.
5. A network management method, applied to a first slave optical network unit (ONU), wherein the first slave ONU is connected to a master ONU, the master ONU is connected to a plurality of slave ONUs, the first slave ONU is one of the plurality of slave ONUs, wherein: The method comprises: When detecting that a first terminal is connected, obtaining a device identification of the first terminal; In the case where the corresponding relationship related to the device identification of the first terminal is not stored in the master ONU, sending port request information to the master ONU, where the port request information includes the device identification of the first terminal, and the port request information is used to request allocation of a port for the first terminal; Receive first indication information sent by the master ONU, where the first indication information is used to indicate a correspondence between a device identifier of the first terminal and a port identifier of a target port, where the target port is a port allocated by the master ONU to the first terminal; The correspondence between the device identifier of the first terminal and the port identifier of the target port is stored, and the target port is enabled.
6. The method according to claim 5, wherein: Storing a correspondence between the device identifier of the first terminal and the port identifier of the target port includes: In the case that the corresponding relationship related to the port identifier of the target port is not stored in the device, the corresponding relationship between the device identifier of the first terminal and the port identifier of the target port is stored.
7. The method according to claim 5, wherein: Storing a correspondence between the device identifier of the first terminal and the port identifier of the target port includes: In the case where the corresponding relationship related to the port identifier of the target port is stored in the device, the corresponding relationship related to the port identifier of the target port is updated to the corresponding relationship between the device identifier of the first terminal and the port identifier of the target port.
8. The method according to any one of claims 5 to 7, further comprising: If no message from the first terminal is received within a preset time period, the target port is disabled.
9. The method according to any one of claims 5 to 7, further comprising: Receiving second indication information sent by the master ONU, where the second indication information is used to instruct the slave ONU to delete a corresponding relationship related to a device identifier of the first terminal; In response to the second indication information, the corresponding relationship related to the device identification of the first terminal is deleted.
10. A network management method, applied to a second slave optical network unit (ONU), wherein the second slave ONU is connected to a master ONU, the master ONU is connected to a plurality of slave ONUs, and the second slave ONU is one of the plurality of slave ONUs, wherein: The method comprises: Receive first indication information sent by the master ONU, where the first indication information is used to indicate a correspondence between a device identifier of a first terminal and a port identifier of a target port, where the target port is a port allocated by the master ONU to the first terminal, where the first terminal is a terminal connected to a first slave ONU, and where the first slave ONU is one of the multiple slave ONUs except the second slave ONU; The correspondence between the device identifier of the first terminal and the port identifier of the target port is stored.
11. The method according to claim 10, wherein: Storing a correspondence between the device identifier of the first terminal and the port identifier of the target port includes: In the case that the corresponding relationship related to the port identifier of the target port is not stored in the device, the corresponding relationship between the device identifier of the first terminal and the port identifier of the target port is stored.
12. The method according to claim 10, wherein: Storing a correspondence between the device identifier of the first terminal and the port identifier of the target port includes: In the case where the corresponding relationship related to the port identifier of the target port is stored in the device, the corresponding relationship related to the port identifier of the target port is updated to the corresponding relationship between the device identifier of the first terminal and the port identifier of the target port.
13. The method according to any one of claims 10 to 12, further comprising: When the first terminal moves from the coverage of the first slave ONU to the coverage of the second slave ONU, the target port is enabled according to the correspondence between the device identifier of the first terminal and the port identifier of the target port.
14. The method according to claim 13, further comprising: If no message from the first terminal is received within a preset time period, the target port is disabled.
15. The method according to any one of claims 10 to 12, further comprising: Receiving second indication information sent by the master ONU, where the second indication information is used to instruct the slave ONU to delete a corresponding relationship related to a device identifier of the first terminal; In response to the second indication information, the corresponding relationship related to the device identification of the first terminal is deleted.
16. A communication device, comprising: Processor and memory; in The memory stores instructions executable by the processor; When the processor is configured to execute the instructions, the communication device implements the method according to any one of claims 1 to 15.
17. A computer-readable storage medium, wherein: The computer-readable storage medium comprises computer instructions, which, when executed on a computer, cause the computer to perform the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Terminal roaming method and system in passive optical network system
CN116055925A
Network management method and device and storage medium
CN117177330A
Method and apparatus for ONU grouping
US20230010009A1
Network configuration method and related device
WO2022042217A1
