MAC drift detection method and device, medium, equipment and program product

By listening to MAC migration events and recording virtual port numbers, confirming MAC drift and querying anuid, the problem of poor MAC drift detection effect in the prior art is solved, and accurate positioning and deactivation operations of optical network units are realized, avoiding interruptions in the lower-link service.

CN120091241AInactive Publication Date: 2025-06-03SICHUAN TIANYI COMHEART TELECOM
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510089107.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-06-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing MAC drift detection method at the lower OLT link port causes service interruption of all ONU optical network units in the lower OLT link port, and problems occur inability to accurately locate specific ONUs, resulting in poor detection results.

Method used

By listening to MAC migration events, recording virtual port numbers, confirming MAC drift, querying virtual port numbers to obtain anuid, determining the target optical network unit, and performing a deactivation operation to remove it from the network.

Benefits of technology

It realizes the accurate positioning and processing of optical network units that occur MAC drift without interrupting the connection service, which improves the effect of MAC drift detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120091241A_ABST
    Figure CN120091241A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an MAC drift detection method and device, a medium, equipment and a program product, and relates to the technical field of network management.The method comprises the steps that a reported migration event is obtained by monitoring the MAC migration event, a reported virtual port number is recorded, and after it is confirmed that MAC drift occurs, query is conducted according to the recorded virtual port number, so that the MAC drift detection efficiency is improved; the method comprises the following steps: acquiring onui d of an optical network unit with MAC drift according to onuid before and after migration, confirming the optical network unit with MAC drift according to onuid before and after migration, accurately positioning the optical network unit with MAC drift through drift detection and virtual port technology, and finally accurately removing the optical network unit with MAC drift from a network through deactivation operation. Therefore, the processing action of blocking the downlink port does not exist any more, the problem of service interruption of all ONU optical network units of the downlink port does not exist, and the effect of MAC drift detection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network management technology, and particularly to a MAC drift detection method, device, medium, equipment and program product. Background Art

[0002] MAC drift detection is an important function in network management, which is used to monitor the MAC address changes of devices in the network to ensure network stability and security, and is applied to switches and routers. After detecting MAC drift in the existing MAC address drift detection methods, the effective processing method is to block the port. However, when the port is the downlink port of the OLT optical line terminal, blocking the downlink port will cause the services of all ONU optical network units of the downlink port to be interrupted, and it is also impossible to find out which ONU has a problem, resulting in a poor effect of the existing MAC drift detection. Summary of the Invention

[0003] The main purpose of this application is to provide a MAC drift detection method, device, medium, equipment and program product, aiming to solve the problem of poor effect of MAC drift detection in the existing technology.

[0004] To achieve the above object, the technical solutions adopted in the embodiments of this application are as follows:

[0005] In a first aspect, an embodiment of this application provides a MAC drift detection method, which is applied to the downlink port of a GPON OLT, and includes the following steps:

[0006] Record the virtual port number according to the reported MAC migration event; wherein, the virtual port number includes the original virtual port number before migration and the new virtual port number after migration;

[0007] Confirm that MAC drift occurs according to the migration situation of the MAC;

[0008] Query according to the virtual port number to obtain the onuid of the optical network unit where MAC drift occurs; wherein, the onuid includes the onuid before migration and the onuid after migration;

[0009] Determine the target optical network unit where MAC drift occurs according to the onuid before migration and the onuid after migration;

[0010] Perform a deactivation operation on the target optical network unit.

[0011] In a possible implementation manner of the first aspect, confirming that MAC drift occurs according to the migration situation of the MAC includes:

[0012] Confirm that MAC drift occurs according to the number of migrations of the same MAC within a unit time exceeding the threshold.

[0013] In a possible implementation of the first aspect, a migration event occurs according to the reported MAC, and a virtual port number is recorded; wherein the virtual port number includes an original virtual port number before the migration and a new virtual port number after the migration, and the method further includes:

[0014] Monitor MAC migration events and report MAC migration events.

[0015] In a possible implementation of the first aspect, a migration event occurs according to the reported MAC, and a virtual port number is recorded; wherein the virtual port number includes an original virtual port number before the migration and a new virtual port number after the migration, and the method further includes:

[0016] According to the port change of the MAC learned in the same virtual LAN, the registered MAC migration event occurs.

[0017] In a possible implementation of the first aspect, recording the virtual port number according to a migration event occurring in the reported MAC includes:

[0018] According to the reported MAC migration event, the virtual port migration status of the MAC is obtained;

[0019] According to the virtual port migration situation, the original virtual port number before the migration and the new virtual port number after the migration are recorded.

[0020] In a possible implementation manner of the first aspect, after performing a deactivation operation on the target optical network unit, the method further includes:

[0021] Report an alarm if MAC drift occurs in the target optical network unit of the downlink port.

[0022] In a second aspect, an embodiment of the present application provides a MAC drift detection device, which is applied to a GPON OLT downlink port, including:

[0023] A recording module, the recording module is used to record the virtual port number according to the migration event of the reported MAC; wherein the virtual port number includes the original virtual port number before the migration and the new virtual port number after the migration;

[0024] A confirmation module is used to confirm that MAC drift occurs according to the migration status of MAC;

[0025] A query module, the query module is used to query according to the virtual port number to obtain the onuid of the optical network unit where the MAC drift occurs; wherein the onuid includes the onuid before the migration and the onuid after the migration;

[0026] A target module, which is configured to determine a target optical network unit with MAC drift according to the onuid before migration and the onuid after migration;

[0027] A deactivation module, which is configured to perform a deactivation operation on the target optical network unit.

[0028] In a third aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when loaded and executed by a processor, implements the MAC drift detection method provided in any one of the first aspects above.

[0029] In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein

[0030] the memory is configured to store a computer program;

[0031] the processor is configured to load and execute the computer program so that the electronic device executes the MAC drift detection method provided in any one of the first aspects above.

[0032] In a fifth aspect, an embodiment of the present application provides a computer program product including a computer program, which, when executed, is configured to execute the MAC drift detection method provided in any one of the first aspects above.

[0033] Compared with the prior art, the beneficial effects of the present application are:

[0034] The embodiments of the present application propose a MAC drift detection method, apparatus, medium, equipment and program product, the method comprising: recording a virtual port number according to a reported MAC migration event; wherein the virtual port number comprises an original virtual port number before the migration and a new virtual port number after the migration; confirming that the MAC has drifted according to the migration status of the MAC; querying according to the virtual port number to obtain the onuid of the optical network unit where the MAC drift has occurred; wherein the onuid comprises an onuid before the migration and an onuid after the migration; determining a target optical network unit where the MAC drift has occurred according to the onuid before the migration and the onuid after the migration; and performing a deactivation operation on the target optical network unit. The present application obtains reported migration events and records reported virtual port numbers by monitoring MAC migration events, determines whether MAC drift occurs according to the migration situation, and after confirming that MAC drift occurs, queries are made according to the recorded virtual port number to obtain the onuid of the optical network unit where MAC drift occurs. Since MAC drift occurs due to a loop between optical network units, the optical network unit where MAC drift occurs can be confirmed according to the onuid before and after migration, and the optical network unit where MAC drift occurs can be accurately located through drift detection and virtual port technology. Finally, the optical network unit where MAC drift occurs can be accurately removed from the network through a deactivation operation, and there is no longer a processing action to block the downlink port, and there will be no problem of service interruption of all ONU optical network units at the downlink port, thereby improving the effect of MAC drift detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of the structure of an electronic device of a hardware operating environment involved in an embodiment of the present application;

[0036] Figure 2 A flowchart of a MAC drift detection method provided in an embodiment of the present application;

[0037] Figure 3 This is a schematic diagram of MAC drift;

[0038] Figure 4 A schematic diagram of a flow chart of a MAC drift detection method provided in an embodiment of the present application in one implementation manner;

[0039] Figure 5 A schematic diagram of a module of a MAC drift detection device provided in an embodiment of the present application;

[0040] Markings in the figure: 101 - processor, 102 - communication bus, 103 - network interface, 104 - user interface, 105 - memory. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] Refer to the attached Figure 1 , the attached Figure 1 is a schematic diagram of the electronic device structure of the hardware operating environment involved in the solution of the embodiment of the present application. The electronic device may include: a processor 101, such as a Central Processing Unit (CPU), a communication bus 102, a user interface 104, a network interface 103, and a memory 105. Among them, the communication bus 102 is used to realize the connection and communication between these components. The user interface 104 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). Optionally, the user interface 104 may also include a standard wired interface and a wireless interface. The network interface 103 may optionally include a standard wired interface and a wireless interface (such as a Wireless-Fidelity (WI-FI) interface). The memory 105 may optionally be a storage device independent of the aforementioned processor 101. The memory 105 may be a high-speed Random Access Memory (RAM) memory or a stable Non-Volatile Memory (NVM), such as at least one disk memory; the processor 101 may be a general-purpose processor, including a central processor, a network processor, etc., or may also be a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0043] Those skilled in the art can understand that the structure shown in the attached Figure 1 does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0044] As shown in the attached Figure 1 , the memory 105, as a storage medium, may include an operating system, a network communication module, a user interface module, and a MAC drift detection device.

[0045] In the electronic device shown in the attached Figure 1 , the network interface 103 is mainly used for data communication with a network server; the user interface 104 is mainly used for data interaction with a user; the processor 101 and the memory 105 in the present application may be set in the electronic device. The electronic device calls the MAC drift detection device stored in the memory 105 through the processor 101 and executes the MAC drift detection method provided by the embodiment of the present application.

[0046] MAC drift detection is an important function in network management, which is used to monitor the changes of MAC addresses of devices in the network to ensure network stability and security, and is applied to switches and routers. Existing MAC address drift detections include MAC address drift detection based on VLAN (Virtual Local Area Network) and global MAC address drift detection; MAC address drift detection based on VLAN can detect whether all MAC addresses under a specified VLAN have drifted. After the MAC address drifts, specified actions can be configured, such as alarming, blocking an interface or blocking a MAC address; global MAC address drift detection can detect whether all MAC addresses on a device have drifted. If a drift occurs, the device will report an alarm to the gateway system, and the user can also specify the processing action after the drift occurs, such as closing an interface or exiting a VLAN.

[0047] After detecting MAC drift by the above methods, the effective processing method is to block the port. However, when the port is the downlink port of an OLT (Optical Line Terminal), blocking the downlink port will cause the services of all ONUs (Optical Network Units) connected to the downlink port to be interrupted, and it is also impossible to find out which specific ONU has a problem, resulting in a poor effect of the existing MAC drift detection.

[0048] To solve the above problems, referring to the attached Figure 2 , based on the hardware device of the foregoing embodiment, an embodiment of the present application provides a MAC drift detection method, which is applied to the downlink port of a GPON OLT, and includes the following steps:

[0049] S10: According to the reported MAC migration event, record the virtual port number; wherein, the virtual port number includes the original virtual port number before migration and the new virtual port number after migration.

[0050] In the specific implementation process, the downlink port of a GPON OLT refers to the connection interface between an OLT (Optical Line Terminal) device and an ONU (Optical Network Unit). In a GPON (Gigabit Passive Optical Network) system, the OLT acts as the central node and is connected to multiple ONUs through the downlink port to provide users with high-speed and stable network access services. The MAC (Media Access Control or Medium Access Control) address, literally translated as media access control, is also called the physical address or hardware address, which is used to define the location of network devices. The virtual port is not an interface in the physical sense, but a logical connection point created at the software or system level for data transmission and reception.

[0051] MAC drift can be interpreted as the migration of a MAC from one virtual port to another. The virtual port before migration is denoted as the original virtual port, and the virtual port after migration is denoted as the new virtual port. That is: according to the reported MAC migration event, record the virtual port number, including:

[0052] According to the reported MAC migration event, obtain the virtual port migration situation of the MAC;

[0053] According to the virtual port migration situation, record the original virtual port number before migration and the new virtual port number after migration.

[0054] The reporting of the MAC migration event can be achieved by listening to the event to obtain it in real time. That is: according to the reported MAC migration event, record the virtual port number; among them, before the virtual port number includes the original virtual port number before migration and the new virtual port number after migration, the method further includes:

[0055] Listen to the MAC migration event to report the MAC migration event.

[0056] Event listening means that when a certain event (such as click, input, etc.) of a certain source object of a thing (such as a button, input box, etc.) occurs, the event object is transmitted to the listener. The listener encapsulates the event information and performs corresponding processing after receiving the event object. According to the reported event, record the table entry of the original MAC and the table entry of the latest MAC after migration, and save the virtual port numbers before and after migration. Register the MAC migration event. In the same VLAN (Virtual Local Area Network), the port where the MAC is learned has changed, which is a MAC migration. By listening to this event and reporting it, that is: before the virtual port number includes the original virtual port number before migration and the new virtual port number after migration according to the reported MAC migration event, the method further includes:

[0057] According to the port change of the MAC learned in the same virtual local area network, register the MAC migration event.

[0058] S20: According to the migration situation of the MAC, confirm that the MAC drifts.

[0059] In the specific implementation process, reporting the MAC migration event indicates that a MAC migration has occurred, that is, a MAC migrates from one virtual port to another virtual port. However, whether this migration can be determined as a MAC drift needs to be judged according to the migration situation. Specifically: according to the migration situation of the MAC, confirm that the MAC drifts, including:

[0060] According to the number of migrations of the same MAC within a unit time exceeding the threshold, confirm that the MAC drifts.

[0061] The same MAC frequently migrates within a unit time. A threshold is set. When the number of migrations exceeds the threshold, it is considered that the MAC of the downlink port has drifted.

[0062] S30: query according to the virtual port number to obtain the onuid of the optical network unit where the MAC drift occurs; wherein the onuid includes the onuid before migration and the onuid after migration.

[0063] In the specific implementation process, according to the virtual port number recorded in the previous step, the virtual port table is queried to obtain the onuid where MAC drift occurs. The application scenario of this application is that the ONU of the GPON OLT downlink port has MAC drift due to the loop. Specifically, the schematic diagram of MAC drift occurs as shown in the attached Figure 3 As shown, when a loop occurs between optical modem 1 and optical modem 2 in the network environment, MAC drift occurs. The MAC address, onuid before migration, and onuid after migration can be recorded in the MAC drift table.

[0064] S40: Determine the target optical network unit where MAC drift occurs according to the onuid before migration and the onuid after migration.

[0065] In the specific implementation process, since the loop occurs between two ONUs, there is one ONU device before and after the migration. The onuid before and after the migration can be used to determine which ONU optical network unit actually has MAC drift. Through MAC drift detection and virtual port technology, the device where the drift occurs can be accurately located at the downlink port, and then step S50 can be executed: deactivate the target optical network unit. The deactivation operation accurately removes the device where the MAC drift occurs from the network, avoiding the complete interruption of the downlink port service caused by the processing action of the blocked port.

[0066] The deactivation process usually includes the following steps:

[0067] ① Log in to the OLT management interface: First, you need to log in to the management interface of the OLT (Optical Line Terminal), which can usually be done through the network management system (NMS) or command line interface (CLI). ② Find ONU information: In the OLT management interface, find the relevant information of the ONU that needs to be deactivated, which may include the serial number, IP address, MAC address, etc. of the ONU. ③ Execute the deactivation command: Use the appropriate command or option to perform the ONU deactivation operation. The specific command may vary depending on the manufacturer and model of the OLT; for example, in some systems, the "ontdeactivate" command may be used to deactivate the ONU. ④ Confirm the deactivation status: After performing the deactivation operation, you should confirm that the ONU has been successfully deactivated. This can usually be done by viewing the status or log of the ONU. In the OLT management interface, the "Control flag" of the deactivated ONU will usually be displayed as "deactivated.

[0068] In this embodiment, the MAC migration event is monitored to obtain the reported migration event and record the reported virtual port number, and whether MAC drift occurs is determined according to the migration situation. After confirming that MAC drift occurs, a query is performed according to the recorded virtual port number to obtain the onuid of the optical network unit where MAC drift occurs. Since MAC drift occurs due to a loop between optical network units, the optical network unit where MAC drift occurs can be confirmed according to the onuid before and after migration. The optical network unit where MAC drift occurs can be accurately located through drift detection and virtual port technology, and finally the optical network unit where MAC drift occurs can be accurately removed from the network through a deactivation operation. There is no longer any processing action to block the downlink port, and there will be no problem of service interruption of all ONU optical network units at the downlink port, thereby improving the effect of MAC drift detection.

[0069] Refer to the attached Figure 4 , as attached Figure 4 The present application is further described below in the following embodiments:

[0070] First, register the MAC migration event, and determine whether the MAC migration occurs by monitoring and reporting the event. If it is determined to be no, return to the step of registering the MAC migration event and continue to monitor. If it is determined to be yes, report that the MAC migration occurs, that is, the MAC migrates from one virtual port to another virtual port. According to the reported information, query the virtual port table, query the onuid from the virtual port table, record the onuid, and obtain the corresponding optical network unit where the MAC drift occurs. Then, deactivate the ONU where the MAC drift occurs. Without interrupting the downlink port ONU service, accurately locate and process the optical network unit where the drift occurs. Finally, report the alarm that the ONU has MAC drift, which provides convenience for maintenance personnel. That is, after deactivating the target optical network unit, the method also includes:

[0071] Report an alarm if MAC drift occurs in the target optical network unit of the downlink port.

[0072] Refer to the attached Figure 5 Based on the same inventive concept as in the above-mentioned embodiment, the embodiment of the present application further provides a MAC drift detection device, which is applied to a GPON OLT downlink port, comprising:

[0073] A recording module, the recording module is used to record the virtual port number according to the migration event of the reported MAC; wherein the virtual port number includes the original virtual port number before the migration and the new virtual port number after the migration;

[0074] A confirmation module is used to confirm that MAC drift occurs according to the migration status of MAC;

[0075] A query module, the query module is used to query according to the virtual port number to obtain the onuid of the optical network unit where the MAC drift occurs; wherein the onuid includes the onuid before the migration and the onuid after the migration;

[0076] A target module, the target module is used to determine a target optical network unit where MAC drift occurs according to the onuid before migration and the onuid after migration;

[0077] A deactivation module is used to perform a deactivation operation on a target optical network unit.

[0078] Those skilled in the art should understand that the division of each module in the embodiments is only a division of logical functions. In actual applications, they can be fully or partially integrated into one or more actual carriers. And these modules can all be implemented in the form of software called by a processing unit, or all be implemented in the form of hardware, or be implemented in the form of a combination of software and hardware. It should be noted that each module in the MAC drift detection device in this embodiment corresponds one by one to each step in the MAC drift detection method in the foregoing embodiment. Therefore, the specific implementation manners of this embodiment can refer to the implementation manners of the foregoing MAC drift detection method, which will not be elaborated here.

[0079] Based on the same inventive concept as in the foregoing embodiment, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which when loaded and executed by a processor, implements the MAC drift detection method provided by the embodiment of the present application.

[0080] Based on the same inventive concept as in the foregoing embodiment, an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein,

[0081] The memory is used to store a computer program;

[0082] The processor is used to load and execute the computer program so that the electronic device executes the MAC drift detection method provided by the embodiment of the present application.

[0083] Based on the same inventive concept as in the foregoing embodiment, an embodiment of the present application further provides a computer program product, including a computer program, which when executed, is used to execute the MAC drift detection method provided by the embodiment of the present application.

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

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

[0086] By way of example, the executable instructions may or may not correspond to files in a file system, and may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program under discussion, or in multiple cooperating files (such as files that hold one or more modules, subroutines, or code portions).

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

[0088] It should be noted that, in this document, the terms "including", "comprising", or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that includes a series of elements includes not only those elements but also other elements not expressly listed, or elements that are inherent to such process, method, article, or system. Without further limitation, an element qualified by the phrase "including a..." does not exclude the presence of additional identical elements in the process, method, article, or system that includes the element.

[0089] The serial numbers of the embodiments of the present application above are merely for description and do not represent the superiority or inferiority of the embodiments.

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

[0091] In summary, the present application provides a MAC drift detection method, device, medium, equipment and program product, the method comprising: recording a virtual port number according to a reported MAC migration event; wherein the virtual port number includes the original virtual port number before the migration and the new virtual port number after the migration; confirming that the MAC has drifted according to the migration status of the MAC; querying according to the virtual port number to obtain the onuid of the optical network unit where the MAC drift has occurred; wherein the onuid includes the onuid before the migration and the onuid after the migration; determining the target optical network unit where the MAC drift has occurred according to the onuid before the migration and the onuid after the migration; and performing a deactivation operation on the target optical network unit. The present application obtains reported migration events and records reported virtual port numbers by monitoring MAC migration events, determines whether MAC drift occurs according to the migration situation, and after confirming that MAC drift occurs, queries are made according to the recorded virtual port number to obtain the onuid of the optical network unit where MAC drift occurs. Since MAC drift occurs due to a loop between optical network units, the optical network unit where MAC drift occurs can be confirmed according to the onuid before and after migration, and the optical network unit where MAC drift occurs can be accurately located through drift detection and virtual port technology. Finally, the optical network unit where MAC drift occurs can be accurately removed from the network through a deactivation operation, and there is no longer a processing action to block the downlink port, and there will be no problem of service interruption of all ONU optical network units at the downlink port, thereby improving the effect of MAC drift detection.

[0092] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A MAC drift detection method, characterized in that: Applied to the GPON OLT downlink port, including the following steps: According to the migration event of the reported MAC, the virtual port number is recorded; wherein the virtual port number includes the original virtual port number before the migration and the new virtual port number after the migration; According to the migration of MAC, confirm that MAC drift occurs; Performing a query according to the virtual port number to obtain the onuid of the optical network unit where the MAC drift occurs; wherein the onuid includes the onuid before migration and the onuid after migration; Determine a target optical network unit where MAC drift occurs according to the onuid before migration and the onuid after migration; Perform a deactivation operation on the target optical network unit.

2. The MAC drift detection method according to claim 1, characterized in that: The step of confirming that MAC drift occurs according to the migration status of MAC includes: If the number of migrations of the same MAC address within a unit time exceeds the threshold, MAC address flapping is confirmed.

3. The MAC drift detection method according to claim 1, characterized in that: The migration event occurs according to the reported MAC, and the virtual port number is recorded; wherein the virtual port number includes the original virtual port number before the migration and the new virtual port number after the migration, and the method further includes: The MAC migration event is monitored to report the MAC migration event.

4. The MAC drift detection method according to claim 1, characterized in that: The migration event occurs according to the reported MAC, and the virtual port number is recorded; wherein the virtual port number includes the original virtual port number before the migration and the new virtual port number after the migration, and the method further includes: According to the port change of the MAC learned in the same virtual local area network, the migration event of the MAC is registered.

5. The MAC drift detection method according to claim 1, characterized in that: The process of recording the virtual port number according to the reported MAC migration event includes: According to the reported MAC migration event, the virtual port migration status of the MAC is obtained; According to the virtual port migration situation, the original virtual port number before the migration and the new virtual port number after the migration are recorded.

6. The MAC drift detection method according to claim 1, characterized in that: After performing the deactivation operation on the target optical network unit, the method further includes: An alarm is reported when MAC drift occurs in the target optical network unit at the downlink port.

7. A MAC drift detection device, characterized in that: Applicable to GPON OLT downlink port, including: A recording module, the recording module is used to record the virtual port number according to the migration event reported by the MAC; wherein the virtual port number includes the original virtual port number before the migration and the new virtual port number after the migration; A confirmation module, the confirmation module is used to confirm that MAC drift occurs according to the migration status of MAC; A query module, the query module is used to query according to the virtual port number to obtain the onuid of the optical network unit where MAC drift occurs; wherein the onuid includes the onuid before migration and the onuid after migration; A target module, the target module is used to determine a target optical network unit where MAC drift occurs according to the onuid before migration and the onuid after migration; A deactivation module is used to perform a deactivation operation on the target optical network unit.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is loaded and executed by a processor, the MAC drift detection method according to any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: comprising a processor and a memory, wherein: The memory is used to store computer programs; The processor is used to load and execute the computer program so that the electronic device executes the MAC drift detection method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The method comprises a computer program, which is used to execute the MAC drift detection method according to any one of claims 1 to 6 when the computer program is executed.

Citation Information

Patent Citations

  • Optical network unit loop detection method and device

    CN107979412A

  • L2VPN network-based MAC address authentication method

    CN109327462A

  • Network loop detection method and device, readable storage medium and network equipment

    CN117097685A

  • Method and system for realizing ONU loop detection based on GPON OLT, and storage medium

    CN118264942A

  • Port processing method and device

    WO2015154548A1