CN112165659B - ONU (optical network Unit) identification allocation method, device and equipment and readable storage medium - Google Patents

ONU (optical network Unit) identification allocation method, device and equipment and readable storage medium Download PDF

Info

Publication number
CN112165659B
CN112165659B CN202010996028.0A CN202010996028A CN112165659B CN 112165659 B CN112165659 B CN 112165659B CN 202010996028 A CN202010996028 A CN 202010996028A CN 112165659 B CN112165659 B CN 112165659B
Authority
CN
China
Prior art keywords
onu
identification
target
state
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010996028.0A
Other languages
Chinese (zh)
Other versions
CN112165659A (en
Inventor
刘桂兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202010996028.0A priority Critical patent/CN112165659B/en
Publication of CN112165659A publication Critical patent/CN112165659A/en
Application granted granted Critical
Publication of CN112165659B publication Critical patent/CN112165659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0083Testing; Monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides an ONU (optical network unit) identification distribution method, device and equipment and a readable storage medium. The method comprises the following steps: when an ONU requests to be online, if the ONU identification of the ONU is an illegal value, detecting whether the ONU is authorized; if the ONU is not authorized, detecting whether an idle ONU mark exists; and if the idle ONU identification does not exist, searching a target ONU, and distributing the original ONU identification of the target ONU to the ONU, wherein the target ONU is in an off-line state and is an authorized ONU. According to the invention, when the ONU requesting to be online is in an unauthorized state, the ONU identification thereof is an illegal value and no idle ONU identification exists, the ONU identification of the ONU in an offline state and an authorized state is distributed to the ONU requesting to be online so as to enable the ONU to be online normally, and the utilization rate of the ONU identification is improved. The ONU identification can be allocated to the newly accessed ONU even after all the allocable ONU identifications are allocated.

Description

ONU identification distribution method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of optical communication technologies, and in particular, to an ONU identifier allocation method, apparatus, device, and readable storage medium.
Background
In a point-to-multipoint passive optical network, the maximum splitting ratio of a PON port is specified to be 1: N, which means that the total number of ONUs (optical network units) hanging under one PON port is N. For example, the maximum splitting ratio is 1:128, which means that the total number of ONUs hanging down on a PON port is 128 at most, i.e. 128 ONU identities can be allocated.
Due to the fact that the number of the allocable ONU identifications is limited, when all the allocable ONU identifications are completely allocated, the newly accessed ONU cannot be allocated with the ONU identifications, and therefore the newly accessed ONU cannot be found, and the newly accessed ONU cannot be used.
Disclosure of Invention
The invention mainly aims to provide an ONU identifier allocation method, an ONU identifier allocation device, ONU identifier allocation equipment and a readable storage medium, and aims to solve the technical problem that in the prior art, after all allocable ONU identifiers are allocated, ONU identifiers cannot be allocated to newly accessed ONUs.
In a first aspect, the present invention provides an ONU identifier allocation method, where the ONU identifier allocation method includes:
when an ONU requests to be online, if the ONU identification of the ONU is an illegal value, detecting whether the ONU is authorized;
if the ONU is not authorized, detecting whether an idle ONU mark exists;
and if the idle ONU identification does not exist, searching a target ONU, and distributing the original ONU identification of the target ONU to the ONU, wherein the target ONU is in an off-line state and is an authorized ONU.
Optionally, after the step of assigning the original ONU identifier of the target ONU to the ONU, the method further includes:
setting the state of the original ONU mark of the target ONU as a borrowing state;
and setting the new ONU identification of the target ONU as an illegal value.
Optionally, after the step of setting the new ONU identifier of the target ONU to an illegal value, the method further includes:
when the target ONU requests to be online, detecting that a new ONU mark of the target ONU is an illegal value and the target ONU is an authorized ONU;
acquiring an authorization number of the target ONU, and acquiring an original ONU identifier corresponding to the authorization number according to a conversion rule of the authorization number and the ONU identifier;
and when the state of the original ONU identification corresponding to the authorization number is a borrowing state, generating a log of the borrowed original ONU identification of the target ONU, and recording the log.
Optionally, after the step of setting the new ONU identifier of the target ONU to an illegal value, the method further includes:
and when the ONU is off-line, executing deactivation processing, and setting the state of the original ONU identification of the target ONU to be a returned state.
Optionally, after the step of setting the state of the original ONU identifier of the target ONU to the returned state, the method further includes:
when the target ONU requests to be online, detecting that the new ONU identification of the target ONU is an illegal value and the target ONU is an authorized ONU;
acquiring an authorization number of the target ONU, and acquiring an original ONU identifier corresponding to the authorization number according to a conversion rule of the authorization number and the ONU identifier;
and when the state of the original ONU identification corresponding to the authorization number is the returned state, distributing the original ONU identification corresponding to the authorization number to the target ONU.
Optionally, after the step of detecting whether there is an idle ONU identifier if the ONU is not authorized, the method further includes:
and if the idle ONU identification exists, distributing the idle ONU identification to the ONU.
Optionally, the offline duration of the target ONU exceeds a preset duration.
In a second aspect, the present invention further provides an ONU identifier allocating apparatus, where the ONU identifier allocating apparatus includes:
the first detection module is used for detecting whether the ONU is authorized or not if the ONU identification of the ONU is an illegal value when the ONU requests to be on-line;
the second detection module is used for detecting whether an idle ONU mark exists or not if the ONU is not authorized;
and the distribution module is used for searching a target ONU if no idle ONU identification exists, and distributing the original ONU identification of the target ONU to the ONU, wherein the target ONU is in an off-line state and is an authorized ONU.
In a third aspect, the present invention further provides an ONU identification allocation apparatus, where the ONU identification allocation apparatus includes a processor, a memory, and an ONU identification allocation program stored on the memory and executable by the processor, where the ONU identification allocation program, when executed by the processor, implements the steps of the ONU identification allocation method as described above.
In a fourth aspect, the present invention further provides a readable storage medium, where an ONU identification allocation program is stored, where the ONU identification allocation program, when executed by a processor, implements the steps of the ONU identification allocation method as described above.
In the invention, when an ONU requests to be online, if the ONU identification of the ONU is an illegal value, whether the ONU is authorized is detected; if the ONU is not authorized, detecting whether an idle ONU mark exists; and if no free ONU identification exists, searching a target ONU, and distributing the original ONU identification of the target ONU to the ONU, wherein the target ONU is in an off-line state and is an authorized ONU. According to the invention, when the ONU which requests to be online is in an unauthorized state, the ONU identification thereof is an illegal value and no idle ONU identification exists, the ONU identification which is in an offline state and is the ONU identification in an authorized state is distributed to the ONU which requests to be online so as to enable the ONU to be online normally, and the utilization rate of the ONU identification is improved. The ONU identification can be allocated to the newly accessed ONU even after all the allocable ONU identifications are allocated.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an ONU identifier allocating apparatus according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an embodiment of an ONU identifier allocation method according to the present invention;
fig. 3 is a schematic diagram of functional modules of an ONU identifier allocating apparatus according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first aspect, an embodiment of the present invention provides an ONU identifier allocating apparatus.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of an ONU identifier allocating apparatus according to an embodiment of the present invention. In this embodiment of the present invention, the ONU identifier allocating apparatus may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WI-FI interface, WIreless FIdelity, WI-FI interface); the memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, a memory 1005, which is one type of computer storage medium in fig. 1, may include an operating system, a network communication module, a user interface module, and an ONU-identification assignment program. The processor 1001 may call an ONU identifier allocation program stored in the memory 1005, and execute the ONU identifier allocation method provided in the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides an ONU identifier allocation method.
Referring to fig. 2, fig. 2 is a flowchart illustrating an ONU identifier allocation method according to an embodiment of the present invention. As shown in fig. 2, the ONU identification allocation method includes:
step S10, when an ONU requests to be online, if the ONU mark of the ONU is an illegal value, detecting whether the ONU is authorized;
in this embodiment, the ONU requests to go online, that is, the execution main body of this embodiment receives the request of going online from the ONU. The execution body may be an OLT (Optical Line Terminal). At this moment, first, the ONU identifier of the ONU is obtained according to the serial number of the ONU, and when the ONU identifier of the ONU is an illegal value, it is detected whether the ONU is authorized. Specifically, an ONU discovery table may be defined under each PON port of the OLT side card, where the number of nodes in the ONU discovery table is determined by the maximum splitting ratio and the preset additional allocation number of ONU state objects, and the ONU discovery table includes a serial number (MAC/SN) of an ONU, an ONU authorization number, an ONU identifier, and the like. Predefining the range of legal ONU identification, and when the ONU identification is not in the range, determining the ONU identification as an illegal value; when the ONU identification is in the range, the ONU identification is considered as a legal value. The receiving of the on-line request of the ONU specifically means that an SN discovery event reported by a bottom driver is received, and the on-line processing is carried out by analyzing SN/MAC and ONUID in the discovery event. After the ONU is successfully on-line, the ONU is in an online state (i.e. online state).
In another embodiment, if the ONU identifier of the ONU is a legal value, processing is performed according to the existing ONU online flow.
Step S20, if the ONU is not authorized, detecting whether there is an idle ONU mark;
in this embodiment, whether the ONU is authorized is detected according to the authorization number of the ONU. Wherein, the authorization number is issued by the network manager, and the ONU authorization number range is 1-maximum shunt ratio. For the authorized ONU, the authorization number of the authorized ONU must be within the range of 1-the maximum splitting ratio; for an unauthorized ONU, there is no grant number or the grant number is not in the range of 1 to the maximum splitting ratio.
When the ONU is detected to have no authorization number or the authorization number is not in the range of 1-the maximum splitting ratio, the ONU can be determined to be unauthorized. At this time, whether an idle ONU identity exists is further detected. The idle ONU identification refers to an ONU identification which is not allocated, and is in an idle allocable state. Specifically, a state table may be defined under each PON port of the OLT side card, and is used to record the state of each ONU identifier. When the ONU identification is distributed to the ONU, the state of the ONU identification is an occupied state; when the ONU borrows the ONU identification of other ONUs, the state of the ONU identification is a borrowing state; when the ONU mark is borrowed and returned, the state of the ONU mark is a returned state; the ONU identification is not allocated, and the state of the ONU identification is an idle allocable state. And searching the ONU identification in the idle allocable state in the state table, and taking the searched ONU identification in the idle allocable state as the idle ONU identification. During searching, the ONU identifier with the largest serial number can be sequentially decreased progressively, and the found ONU identifier with the first state being an idle allocable state is taken as an idle ONU identifier; the number of the ONU identifications is the smallest, and the ONU identifications which are found to be in the first state and in the idle allocable state are sequentially increased in sequence to be the idle ONU identifications.
Step S30, if there is no free ONU mark, searching the target ONU and distributing the original ONU mark of the target ONU to the ONU, wherein the target ONU is in off-line state and is an authorized ONU.
In this embodiment, when there is no ONU identifier in an idle allocable state, that is, it is determined that there is no idle ONU identifier, the ONU in an offline state and in an authorized state is searched for as a target ONU, and an original ONU identifier of the target ONU is allocated to the ONU.
Further, in an embodiment, the offline duration of the target ONU exceeds a preset duration.
In this embodiment, when there are multiple ONUs in the offline state and in the authorized state, one ONU with an offline duration exceeding the preset duration is selected as the target ONU. Of course, the ONU with the longest offline time duration may be selected as the target ONU. It is easy to understand that, currently, the ONU identifier of the target ONU is borrowed to the ONU currently requesting to go online, the longer the offline duration of the target ONU is, the lower the possibility that the target ONU goes online during the period when the ONU identifier is borrowed, and the situation that the ONU cannot go online normally due to the borrowed ONU identifier is avoided to the greatest extent possible.
In this embodiment, when an ONU requests to go online, if an ONU identifier of the ONU is an illegal value, it is detected whether the ONU is authorized; if the ONU is not authorized, detecting whether an idle ONU mark exists; and if the idle ONU identification does not exist, searching a target ONU, and distributing the original ONU identification of the target ONU to the ONU, wherein the target ONU is in an off-line state and is an authorized ONU. By the embodiment, when the ONU requesting to be online is in an unauthorized state, the ONU identification thereof is an illegal value and no idle ONU identification exists, the ONU identification of the ONU in an offline state and an authorized state is allocated to the ONU requesting to be online so as to enable the ONU to be online normally, and the utilization rate of the ONU identification is improved. The ONU identification can be allocated to the newly accessed ONU even after all the allocable ONU identifications are allocated.
Further, in an embodiment, after step S30, the method further includes:
step S40, setting the state of the original ONU mark of the target ONU as a borrowing state;
and step S50, setting the new ONU identification of the target ONU as an illegal value.
In this embodiment, the state of the original ONU identifier of the target ONU is set to the borrowed state, and it is easily understood that the state of the ONU identifier is originally in the occupied state and is borrowed to another ONU at present, so that the state of the ONU identifier is set to the borrowed state. And setting the new ONU identification of the target ONU as an illegal value so as to redistribute the usable ONU identification for the target ONU when the target ONU is subsequently on-line.
Further, in an embodiment, after step S50, the method further includes:
step S601, when the target ONU requests to be on-line, detecting that the new ONU mark of the target ONU is an illegal value and the target ONU is an authorized ONU;
in this embodiment, since the target ONU is an authorized ONU and the new ONU identifier thereof is set to the illegal value in step S50, when the target ONU requests to go online, it is detected that the new ONU identifier of the target ONU is the illegal value and the target ONU is an authorized ONU.
Step S602, obtaining the authorization number of the target ONU, and obtaining the original ONU identification corresponding to the authorization number according to the conversion rule of the authorization number and the ONU identification;
in this embodiment, for a target ONU whose new ONU identifier is an illegal value and is in an authorized state, a corresponding authorization number is first obtained according to a serial number of the target ONU. For example, the authorization number corresponding to the serial number of the target ONU is found based on the information recorded in the ONU discovery table. And then, obtaining the original ONU identification corresponding to the authorization number according to the conversion rule of the authorization number and the ONU identification. The range of the authorization number is 1 to the maximum splitting ratio, and the range of the ONU identification is 0 to (the maximum splitting ratio is-1). It should be pointed out that the authorization number is issued by the network manager, the authorization number of the authorized ONU is a legal authorization number, the range of the legal authorization number is 1-maximum shunt ratio, and the upper layer table entry of the line card is maintained; the authorization number of an unauthorized ONU is illegal or non-existent. The ONU mark is a drive internal mark and maintains a bottom drive table item. The conversion rule between the authorization number and the ONU identification is as follows: the authorization number in the range (1-127) is equal to the ONU identity; if the authorization number is 128, the ONU identification is 0.
Step S603, when the state of the original ONU identifier corresponding to the authorization number is the borrowing state, generating a log in which the original ONU identifier of the target ONU is borrowed, and recording the log.
In this embodiment, the ONU identifier obtained from the grant number, that is, the original ONU identifier assigned to the ONU requesting the online operation in step S30, and if the state of the original ONU identifier is set to the borrowed state in step S40, it is detected that the state of the original ONU identifier corresponding to the grant number is the borrowed state. At this time, the original ONU identifier cannot be allocated to the target ONU, so that the target ONU cannot complete the on-line process. However, this is because the original ONU identifier of the target ONU is borrowed, and therefore, a log is created in which the original ONU identifier of the target ONU is borrowed, and the log is recorded. Subsequently, by checking the log, the specific reason why the target ONU cannot complete the online process can be determined.
Further, in an embodiment, after step S50, the method further includes:
step S70, when the ONU is offline, executing deactivation processing, and setting the state of the original ONU identifier of the target ONU to a returned state.
In this embodiment, when the ONU goes offline, the ONU is driven to deactivate the ONU, disable the ONU channel, and set the state of the borrowed original ONU identifier to the returned state, that is, the state of the original ONU identifier of the target ONU is set to the returned state. And the ONU offline means that the LOSi event or the DGI event reported by the bottom-layer driver is received to perform ONU offline processing. And after the ONU is successfully offline, the ONU is in an offline state, namely an offline state.
Further, in an embodiment, after step S70, the method further includes:
step S801, when the target ONU requests to be on-line, detecting that the new ONU mark of the target ONU is an illegal value and the target ONU is an authorized ONU;
step S802, obtaining the authorization number of the target ONU, and obtaining the original ONU identification corresponding to the authorization number according to the conversion rule of the authorization number and the ONU identification;
in this embodiment, the specific embodiments of step S801 and step S802 are substantially the same as the embodiments of step S601 and step S602, and are not repeated herein.
Step S803, when the state of the original ONU identifier corresponding to the authorization number is the returned state, allocating the original ONU identifier corresponding to the authorization number to the target ONU.
In this embodiment, the ONU identifier obtained according to the authorization number is the original ONU identifier allocated to the ONU requesting to go online in step S30. In step S70, if the original ONU identifier corresponding to the authorization number is set to the returned state, it is detected that the state of the original ONU identifier corresponding to the authorization number is the returned state. At this time, the original ONU identification corresponding to the authorization number is directly distributed to the target ONU, and the subsequent online process is executed. Specifically, after detecting that the state of the original ONU identifier corresponding to the authorization number is a returned state, deleting the PON driving ONU object; and after the original ONU identification corresponding to the authorization number is distributed to the target ONU, setting the state of the original ONU identification as an occupied state.
Further, in an embodiment, after step S20, the method further includes:
and if the idle ONU identification exists, distributing the idle ONU identification to the ONU.
In this embodiment, if there is an idle ONU identifier, the idle ONU identifier is directly allocated to the ONU, and the processing is performed according to the existing ONU online flow. And after the idle ONU identification is distributed to the ONU, the state of the idle ONU identification is updated to be an occupied state, and after the subsequent ONU is off-line, the state of the idle ONU identification is updated to be an idle distributable state.
In a third aspect, an embodiment of the present invention further provides an ONU identifier allocating apparatus.
Referring to fig. 3, fig. 3 is a schematic diagram of functional modules of an embodiment of an ONU identifier allocating apparatus according to the present invention. As shown in fig. 3, the ONU-identification allocating apparatus comprises:
a first detection module 10, configured to detect whether an ONU is authorized when the ONU requests to go online, if an ONU identifier of the ONU is an illegal value;
a second detection module 20, configured to detect whether there is an idle ONU identifier if the ONU is not authorized;
and the allocating module 30 is configured to search for a target ONU if no idle ONU identifier exists, and allocate an original ONU identifier of the target ONU to the ONU, where the target ONU is in an offline state and is an authorized ONU.
Further, in an embodiment, the ONU identification allocating apparatus further includes a setting module, configured to:
setting the state of the original ONU identification of the target ONU as a borrowing state;
and setting the new ONU identification of the target ONU as an illegal value.
Further, in an embodiment, the ONU identification allocating apparatus further includes a logging module, configured to:
when the target ONU requests to be online, detecting that a new ONU mark of the target ONU is an illegal value and the target ONU is an authorized ONU; acquiring an authorization number of the target ONU, and acquiring an original ONU identifier corresponding to the authorization number according to a conversion rule of the authorization number and the ONU identifier; and when the state of the original ONU identification corresponding to the authorization number is the borrowing state, generating a log in which the original ONU identification of the target ONU is borrowed, and recording the log.
Further, in an embodiment, the setting module is further configured to:
and when the ONU is off line, executing deactivation processing, and setting the state of the original ONU identification of the target ONU to be a returned state.
Further, in an embodiment, the allocating module 30 is further configured to:
when the target ONU requests to be online, detecting that a new ONU mark of the target ONU is an illegal value and the target ONU is an authorized ONU; acquiring an authorization number of the target ONU, and acquiring an original ONU identifier corresponding to the authorization number according to a conversion rule of the authorization number and the ONU identifier; and when the state of the original ONU identification corresponding to the authorization number is the returned state, distributing the original ONU identification corresponding to the authorization number to the target ONU.
Further, in an embodiment, the allocating module 30 is further configured to:
and if the idle ONU identification exists, distributing the idle ONU identification to the ONU.
Further, in an embodiment, the offline duration of the target ONU exceeds a preset duration.
The function implementation of each module in the ONU identifier allocating apparatus corresponds to each step in the ONU identifier allocating method embodiment, and the function and implementation process are not described in detail herein.
In a fourth aspect, the embodiment of the present invention further provides a readable storage medium.
The readable storage medium of the present invention stores an ONU identification allocation program, wherein the ONU identification allocation program, when executed by a processor, implements the steps of the ONU identification allocation method as described above.
The method implemented when the ONU identifier allocation program is executed may refer to each embodiment of the ONU identifier allocation method of the present invention, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or the portions contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An ONU identification allocation method, characterized in that the ONU identification allocation method comprises:
when an ONU requests to be online, if the ONU identification of the ONU is an illegal value, detecting whether the ONU is authorized;
if the ONU is not authorized, detecting whether an idle ONU mark exists;
and if no free ONU identification exists, searching a target ONU, distributing the original ONU identification of the target ONU to the ONU, and setting the new ONU identification of the target ONU as an illegal value, wherein the target ONU is in an off-line state and is an authorized ONU.
2. The ONU identification allocation method according to claim 1, wherein after the step of allocating the original ONU identification of the target ONU to the ONU, further comprising:
and setting the state of the original ONU identification of the target ONU as a borrowing state.
3. The ONU identification allocation method according to claim 2, wherein after the step of setting the new ONU identification of the target ONU to an illegal value, further comprising:
when the target ONU requests to be online, detecting that a new ONU mark of the target ONU is an illegal value and the target ONU is an authorized ONU;
acquiring the authorization number of the target ONU, and acquiring the original ONU identification corresponding to the authorization number according to the conversion rule of the authorization number and the ONU identification;
and when the state of the original ONU identification corresponding to the authorization number is a borrowing state, generating a log of the borrowed original ONU identification of the target ONU, and recording the log.
4. The ONU identification allocation method according to claim 2, wherein after the step of setting the new ONU identification of the target ONU to an illegal value, further comprising:
and when the ONU is off-line, executing deactivation processing, and setting the state of the original ONU identification of the target ONU to be a returned state.
5. The ONU identification allocation method according to claim 4, wherein after the step of setting the state of the original ONU identification of the target ONU to a returned state, further comprising:
when the target ONU requests to be online, detecting that a new ONU mark of the target ONU is an illegal value and the target ONU is an authorized ONU;
acquiring the authorization number of the target ONU, and acquiring the original ONU identification corresponding to the authorization number according to the conversion rule of the authorization number and the ONU identification;
and when the state of the original ONU identification corresponding to the authorization number is the returned state, distributing the original ONU identification corresponding to the authorization number to the target ONU.
6. The ONU identification allocation method according to claim 1, wherein after the step of detecting whether there is a free ONU identification if the ONU is not authorized, further comprising:
and if the idle ONU identification exists, distributing the idle ONU identification to the ONU.
7. The ONU identity assignment method of any of claims 1-6, wherein an offline duration of the target ONU exceeds a preset duration.
8. An ONU identification allocation apparatus, comprising:
the first detection module is used for detecting whether the ONU is authorized or not if the ONU identification of the ONU is an illegal value when the ONU requests to be on-line;
the second detection module is used for detecting whether an idle ONU mark exists or not if the ONU is not authorized;
and the distribution module is used for searching a target ONU if no idle ONU identification exists, distributing the original ONU identification of the target ONU to the ONU, and setting the new ONU identification of the target ONU as an illegal value, wherein the target ONU is in an off-line state and is an authorized ONU.
9. An ONU identification allocation device comprising a processor, a memory, and an ONU identification allocation program stored on said memory and executable by said processor, wherein said ONU identification allocation program, when executed by said processor, implements the steps of the ONU identification allocation method according to any one of claims 1 to 7.
10. A readable storage medium having stored thereon an ONU identification assignment program, wherein the ONU identification assignment program when executed by a processor implements the steps of the ONU identification assignment method according to any one of claims 1 to 7.
CN202010996028.0A 2020-09-21 2020-09-21 ONU (optical network Unit) identification allocation method, device and equipment and readable storage medium Active CN112165659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010996028.0A CN112165659B (en) 2020-09-21 2020-09-21 ONU (optical network Unit) identification allocation method, device and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010996028.0A CN112165659B (en) 2020-09-21 2020-09-21 ONU (optical network Unit) identification allocation method, device and equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112165659A CN112165659A (en) 2021-01-01
CN112165659B true CN112165659B (en) 2022-06-24

Family

ID=73863230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010996028.0A Active CN112165659B (en) 2020-09-21 2020-09-21 ONU (optical network Unit) identification allocation method, device and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112165659B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291181A (en) * 2007-04-19 2008-10-22 株式会社日立制作所 Expandable passive optical network equipment having optical network unit with changeable mode
CN105721963A (en) * 2016-01-28 2016-06-29 深圳市飞鸿光电子有限公司 Method for connecting out-of-limit number of ONUs (Optical Network Units) with EPON-OLT (Ethernet Passive Optical Network-Optical Line Terminal)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4168059B2 (en) * 2006-04-10 2008-10-22 株式会社日立コミュニケーションテクノロジー PON system and station side device
US7936765B2 (en) * 2006-12-01 2011-05-03 Eletronics And Telecommunications Research Institute Method and apparatus for dynamically allocating bandwidth by hierarchical weight round robin

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291181A (en) * 2007-04-19 2008-10-22 株式会社日立制作所 Expandable passive optical network equipment having optical network unit with changeable mode
CN105721963A (en) * 2016-01-28 2016-06-29 深圳市飞鸿光电子有限公司 Method for connecting out-of-limit number of ONUs (Optical Network Units) with EPON-OLT (Ethernet Passive Optical Network-Optical Line Terminal)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
消除闲置时间的EPON动态带宽分配算法;王汝言;《重庆邮电大学学报》;20130630;全文 *

Also Published As

Publication number Publication date
CN112165659A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
CN109889503B (en) Identity management method based on block chain, electronic device and storage medium
CN109656879B (en) Big data resource management method, device, equipment and storage medium
CN107948203A (en) A kind of container login method, application server, system and storage medium
RU2710860C1 (en) Method for limiting the scope of automatic selection of a virtual protection machine
CN106407002B (en) Data processing task executes method and apparatus
CN110113369A (en) A kind of method for authenticating of based role permission control
CN110909379A (en) Storage cluster permission determination method, device, equipment and storage medium
US20130024944A1 (en) Confidential information leakage prevention system, confidential information leakage prevention method and confidential information leakage prevention program
CN102256337A (en) Message processing method and equipment in wireless local area network (WLAN)
CN105959309A (en) User permission management method and system
CN113162923A (en) User reliability evaluation method and device based on user behaviors and storage medium
CN111737232A (en) Database management method, system, device, equipment and computer storage medium
CN112149172A (en) Business data management method, device, equipment and computer readable storage medium
CN102750472B (en) A kind of method for authenticating, Apparatus and system
CN112165659B (en) ONU (optical network Unit) identification allocation method, device and equipment and readable storage medium
CN114969834B (en) Page authority control method, device, storage medium and equipment
CN113992515B (en) System configuration method, device, equipment and storage medium
CN106357549B (en) Method, apparatus, system and the load balancer that high concurrent shunts in clustered deploy(ment)
CN111367647B (en) Task assignment method and device
US20120167096A1 (en) Managing the Processing of Processing Requests in a Data Processing System Comprising a Plurality of Processing Environments
CN112631730A (en) Model processing method and device, equipment and computer readable storage medium
CN111666155A (en) Resource configuration file management method, device, equipment and medium
CN114338060A (en) Authority verification method, device, system, equipment and storage medium
CN108076009B (en) Resource sharing method, device and system
KR101910604B1 (en) System and method for Controlling Network Access

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant