MAC Address Obtaining Method, Method for Restoring Service Path According to MAC Address
By collecting the MAC addresses in the current time and preset time period, forming a static table and incremental table, and sending it to the server, the problem of not being able to fully collect MAC addresses in the existing technology is solved, and the accurate restoration of the service path of the terminal equipment is achieved.
Patent Information
- Application Number
- CN202010609981.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-29
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2040-06-29
AI Technical Summary
The prior art cannot fully collect the MAC address information of all terminal devices on the network element device, resulting in the inability to accurately locate and restore the service path of the terminal device.
By collecting the MAC address on the network element device at the current time and writing it to the MAC address static table, collecting the MAC address learned in the preset time period as the accumulated sum and writing it to the MAC address increment table, and sending both to the server.
It realizes complete collection of all MAC addresses in the current time and preset time period, avoids the omission of short-term online terminal devices, improves the efficiency and integrity of MAC address acquisition, and ensures accurate service path restoration.
Smart Images

Figure CN113949688B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to, but are not limited to, the field of communication technologies. Specifically, they relate to, but are not limited to, methods for obtaining MAC addresses, methods for restoring service paths based on MAC addresses, network element devices, network management devices, and computer-readable storage media. Background Art
[0002] When the experience of terminal services degrades, how to quickly locate and demarcate faults in terminal services is one of the research topics of current telecommunications operators; service path restoration is the core part of realizing intelligent fault diagnosis in the end-to-end fault location system from the fixed network to the bearer network. When the experience of a certain terminal service degrades and fault location and demarcation of the terminal service are required, first, the complete path passed by the terminal service needs to be described, and then faults are checked segment by segment or one by one on the path, so as to ensure the effective development of the fault diagnosis process. In related technologies, the path of the terminal service is restored by collecting all MAC (Media Access Control) address information from network element devices, so as to realize fault location and demarcation of the terminal service.
[0003] For example, in related technologies, when performing large video service function monitoring, operation and maintenance personnel perform performance monitoring, collection, testing, etc. on the functions of video services involved in each IPTV (Internet Protocol Television) device in the network, including performance monitoring, collection, testing, etc. of OLT (optical line terminal) and ONU (Optical Network Unit). ONUs are divided into active optical network units and passive optical network units; passive optical networks use a single optical fiber to connect to the OLT, and then the OLT connects to the ONU. The ONU provides services such as data, digital TV, and voice to the IPTV device. The upper-layer system restores the service path of the IPTV device by collecting MAC addresses and VLAN (Virtual Local Area Network) information on the network element device, so as to realize functions such as MDI (Media Delivery Index) monitoring and 2544 (access network performance monitoring) monitoring of the IPTV device, and thus realize fault location and demarcation of the IPTV device service.
[0004] Therefore, how to completely collect the MAC address information of all terminal devices on the network element device has become an urgent problem to be solved. Summary of the Invention
[0005] The MAC address acquisition method, the method for restoring a service path according to a MAC address, a network element device, a network management device, and a computer-readable storage medium provided by the embodiments of the present invention mainly solve the technical problem that in the related art, the MAC address information of all terminal devices on the network element device cannot be completely collected, resulting in the inability to accurately locate and restore the service path of the terminal device based on the MAC address information;
[0006] To solve the above technical problem, an embodiment of the present invention provides a MAC address acquisition method, including:
[0007] Collect the MAC addresses on the network element device at the current moment, and write the MAC addresses into the MAC address static table;
[0008] After collecting the current moment, collect the MAC addresses learned by the network element device within a preset time period as the cumulative sum of the MAC addresses within the preset time period, and write the cumulative sum of the MAC addresses into the MAC address increment table;
[0009] Send the MAC address static table and the MAC address increment table to the server.
[0010] An embodiment of the present invention also provides a method for restoring a service path according to a MAC address, including:
[0011] Obtain the MAC address according to the received MAC address static table and MAC address increment table;
[0012] Restore the corresponding service path according to the MAC address.
[0013] An embodiment of the present invention also provides a network element device, which includes a first processor, a first memory, and a first communication bus;
[0014] The first communication bus is used to realize the connection and communication between the first processor and the first memory;
[0015] The first processor is used to execute one or more computer programs stored in the first memory to implement the steps of the MAC address acquisition method as described above
[0016] An embodiment of the present invention also provides a network management device, which includes a second processor, a second memory, and a second communication bus;
[0017] The second communication bus is used to realize the connection and communication between the second processor and the second memory;
[0018] The second processor is used to execute one or more computer programs stored in the second memory to implement the steps of the method for restoring a service path according to a MAC address as described above;
[0019] An embodiment of the present invention further provides a computer storage medium. The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the MAC address acquisition method or the method for restoring a service path according to the MAC address as described above.
[0020] According to the MAC address acquisition method, network element device, and computer-readable storage medium provided by the embodiments of the present invention, by collecting the MAC addresses on the network element device at the current moment and writing the MAC addresses into the MAC address static table; after collecting the MAC addresses at the current moment, collecting the MAC addresses learned by the network element device within a preset time period as the cumulative sum of the MAC addresses within the preset time period, and writing the cumulative sum of the MAC addresses into the MAC address increment table; sending the MAC address static table and the MAC address increment table to the server; by combining the method of collecting MAC addresses at the current moment and within the preset time period, all MAC addresses at the current moment and within the preset time are completely collected, avoiding the situation of missing short-term online terminal devices in some implementation processes, and improving the efficiency of collecting MAC addresses. At the same time, according to the method for restoring a service path and network management device provided by the embodiments of the present invention, obtaining the MAC addresses according to the received MAC address static table and MAC address increment table; restoring the corresponding service path according to the MAC addresses; restoring the service path by using the MAC addresses at the current moment and within the preset time period obtained by the network element device, ensuring the accurate and complete restoration of the service path of the terminal device.
[0021] Other features and corresponding beneficial effects of the embodiments of the present invention are described in the following part of the specification, and it should be understood that at least some of the beneficial effects are obvious from the records in the embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a schematic diagram of the basic process of a MAC address acquisition method according to Embodiment 1 of the present invention;
[0023] Figure 2 It is a schematic diagram of the basic process of a method for restoring a service path according to a MAC address according to Embodiment 1 of the present invention;
[0024] Figure 3 It is a schematic diagram of the detailed process of a method for restoring a service path according to a MAC address according to Embodiment 2 of the present invention;
[0025] Figure 4 It is a schematic diagram of the basic structure of a network element device according to Embodiment 3 of the present invention;
[0026] Figure 5 It is a schematic diagram of the basic structure of a network management device according to Embodiment 3 of the present invention. Detailed implementation manners
[0027] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings through specific implementation manners. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0028] Embodiment 1:
[0029] In the related art, the MAC addresses are collected by means of SNMP (Simple Network Management Protocol) at regular intervals from network element devices for all MAC address information. However, with the substantial increase in the number of terminal devices, the collection efficiency of this method is low. At the same time, due to the problem of MAC address aging of terminal devices on network element devices, within the interval time for the network element device to collect MAC addresses, if the MAC address of a terminal device ages, the network element device cannot collect the MAC address of this terminal device, resulting in the inability to accurately locate and restore the service path of this terminal device based on the collected MAC addresses in the end. To solve the problems in the related art of low efficiency in collecting MAC addresses and the inability to completely collect all MAC address information on network element devices, the embodiments of the present invention provide a method for obtaining MAC addresses. Please refer to Figure 1 , Figure 1 As shown in the basic flowchart of the method for obtaining MAC addresses, the method includes:
[0030] S101. Collect the MAC addresses on the network element device at the current moment and write the MAC addresses into the MAC address static table;
[0031] In some embodiments, an upper-layer system, such as a network management device, configures MAC address collection parameters and sends the configured parameters to the network element device, where the MAC address collection parameters include: the method of enabling MAC address collection at the current moment and the method of enabling MAC address collection within a preset time period; each MAC address includes: port information, VLAN information, MAC address type, and MAC physical address.
[0032] In some embodiments, the method for enabling the collection of MAC addresses at the current moment includes: collecting the MAC addresses on the network element device at the current moment through snapshot. For example, if the current moment is 10:00, the MAC addresses on the network element device at 10:00 are collected through SNAP (SubNetwork Access Protocol). After the network element device collects the MAC addresses on the network element device at 10:00 through SNAP, the collected MAC addresses are written into the MAC address static table at one time, so as to obtain a copy of all the MAC addresses on the network element device at 10:00, thereby collecting the MAC addresses of the long-term online terminal devices and the dynamic MAC addresses that have not aged at the current moment. It should be understood that the MAC address static table can be generated immediately after the network element device collects the MAC addresses at the current moment; the MAC address static table can also be stored on the network element device in advance; the MAC address information collected in this way is all the MAC address information on the network element device at the current moment, which is a complete copy of all the MAC address information on the network element device at the collection time point (the current moment), including the mapping of the time point (the current moment) when the MAC address information copy starts.
[0033] S102. After collecting the current moment, collect the MAC addresses learned by the network element device within a preset time period as the cumulative sum of the MAC addresses within the preset time period, and write the cumulative sum of the MAC addresses into the MAC address increment table.
[0034] It should be understood that the preset time period is the interval time from the current moment to the next current moment, and the next current moment is the time after adding the preset time period to the current moment. For example, if the current moment is 10:00 and the preset time period is two hours, the next current moment is 12:00. It should be understood that the length of the preset time period is not limited and can be any time period, as long as it meets the minimum interval time for enabling the collection of MAC addresses at two current moments, such as two hours or three hours.
[0035] In some embodiments, the method for enabling the collection of MAC addresses within a preset time period includes: collecting all the MAC addresses flowing through the network element device within the preset time period through accumulation, obtaining the cumulative sum of all the MAC addresses on the network element device during this time period, and writing the cumulative sum into the MAC address increment table. For example, accumulate all the MAC address information learned by the network element device within two hours through ACC (accumulation) to obtain the long-term online terminal devices and short-term online terminal devices within these two hours, and write all the collected MAC address information into the MAC address increment table.
[0036] In some embodiments, writing the cumulative sum of MAC addresses to the MAC address increment table includes: writing the MAC addresses learned by the network element device to a memory table; when the configured time is reached, writing the MAC addresses learned by the network element device stored in the memory table to the MAC address increment table as the cumulative sum of MAC addresses; it should be understood that when the network element device learns any MAC address within a preset time period, it will not immediately write the MAC address to the MAC address increment table, but first put it into the memory table. After the configured time arrives, all the MAC addresses in the memory table will be written to the MAC address increment table, and the memory table will be cleared, and then the MAC addresses learned within the remaining preset time period will be written to the cleared memory table until the preset time period ends; the preset time period can be composed of multiple configured times. For example, if the preset time period is two hours and the configured time is half an hour, then every half an hour, all the MAC addresses in the memory table will be written to the MAC address increment table, the memory table will be cleared, and the MAC addresses learned within the remaining preset time period will be written to the cleared memory table, and the loop will continue until the preset time period ends; preferably, the configured time is the same as the preset time period. For example, if the preset time period is two hours, the configured time is correspondingly set to two hours.
[0037] In some embodiments, after writing the MAC addresses learned by the network element device to the memory table and before writing the MAC addresses learned by the network element device stored in the memory table to the MAC address increment table when the configured time is reached, it further includes: determining whether the capacity of the memory table reaches a threshold; when the capacity of the memory table reaches the threshold, writing the MAC addresses learned by the network element device stored in the memory table to the MAC address increment table and clearing the MAC addresses in the memory table; it should be understood that before the configured time is reached, if the MAC addresses collected by the network element device reach the memory table threshold, all the MAC addresses in the current memory table will be written to the MAC address increment table. After clearing the memory table, the MAC addresses learned within the remaining preset time period will be written to the cleared memory table until the preset time period ends; it should be understood that in some embodiments, after the network element device learns a MAC address within the preset time period, it can also directly write the learned MAC address to the MAC address increment table without first putting it into the memory table.
[0038] S103. Send the MAC address static table and the MAC address increment table to the server.
[0039] In some embodiments, the network element device sends the collected MAC address static table and MAC address increment table as the total MAC file at the current moment and within the preset time period to the server.
[0040] In this embodiment, a method for restoring the service path according to the MAC address executed by the server side is further provided, such asFigure 2 As shown Figure 2 It is a schematic diagram of the basic process of a method for restoring a service path according to a MAC address. The method includes:
[0041] S201. Obtain a MAC address according to the received MAC address static table and MAC address increment table;
[0042] In some embodiments, the network element device sends the MAC address static table at the current moment and the MAC address increment table in a preset time period to the server together as a complete MAC file; when the network management device determines that the network element device has generated a complete MAC file and transmitted the complete MAC file to the server, at this time, the network management device obtains the MAC address according to the received MAC address static table and MAC address increment table; wherein, obtaining the MAC address according to the received MAC address static table and MAC address increment table includes: parsing the MAC address static table and the MAC address increment table to obtain the original MAC address collected by the network element device; screening the original MAC address to remove redundant data to obtain the MAC address; it should be understood that there may be MAC addresses with the same timestamp among the multiple MAC addresses parsed from the MAC address static table and the MAC address increment table. At this time, the redundant MAC addresses with the same timestamp need to be deleted, and only one MAC address with the same timestamp needs to be retained, so as to ensure that the timestamps of each parsed MAC address are not repeated, thereby removing redundant data.
[0043] S202. Restore the corresponding service path according to the MAC address.
[0044] In some embodiments, before restoring the corresponding service path according to the MAC address, it further includes: classifying the MAC address; optionally, classifying the parsed MAC address according to the MAC physical address and VLAN information, that is, data with the same MAC physical address and the same VLAN information belongs to the same piece of data, and one piece of data corresponds to one terminal device.
[0045] In some embodiments, the network management device restores the corresponding service path according to the MAC address, that is, the network management device restores the corresponding service path according to the classified data. Among them, one piece of data corresponds to one terminal device, that is, the network management device restores the service path corresponding to the terminal device according to the classified data. Optionally, before the network management device restores the service path of the terminal device according to the obtained MAC address, it further includes: storing the classified MAC address in the database. If there is data with the same MAC physical address and the same VLAN information in the database, the database is updated, and the data with the same MAC physical address and the same VLAN information in the database is updated to the currently classified data. After the data is successfully stored, the network management device can restore the service path corresponding to the MAC address according to the MAC address stored in the database, that is, restore the service path of the terminal device corresponding to the MAC address.
[0046] The MAC address acquisition method provided by the embodiments of the present invention collects the MAC addresses on the network element device at the current moment and writes the MAC addresses into the MAC address static table; after collecting the current moment, the MAC addresses learned by the network element device within a preset time period are used as the cumulative sum of the MAC addresses within the preset time period, and the cumulative sum of the MAC addresses is written into the MAC address increment table; the MAC address static table and the MAC address increment table are sent to the server; by combining the method of collecting MACs at the current moment and within the preset time period, all MAC addresses at the current moment and within the preset time are completely collected, avoiding the situation of missing short-term online terminal devices, improving the efficiency of collecting MAC addresses, as well as the integrity and reliability of the collected MAC addresses; at the same time, in some embodiments, a method for restoring the service path according to the MAC address is also provided, obtaining the MAC address according to the received MAC address static table and MAC address increment table; restoring the corresponding service path according to the MAC address; restoring the service path through the MAC addresses at the current moment and within the preset time period obtained by the network element device, ensuring the accurate and complete restoration of the service path of the terminal device.
[0047] Embodiment 2:
[0048] To better understand the present invention, this embodiment provides a more specific method for restoring the service path according to the MAC address. Please refer to FIG. 3, as Figure 3 shown in the detailed flowchart of the method for restoring the service path according to the MAC address, the method includes:
[0049] S301. The network management device issues MAC address acquisition parameters to the network element device;
[0050] In some embodiments, the network management device configures MAC address collection parameters and sends the configured parameters to the network element device. The MAC address collection parameters include: the method of enabling MAC address collection at the current moment and the method of enabling MAC address collection within a preset time period. Each MAC address includes: port information, VLAN information, MAC address type, and MAC physical address. It should be understood that before the network management device sends the MAC address collection parameters, it also includes determining whether the MAC address collection parameters on the network element device are consistent with the MAC address collection parameters currently configured by the network management device. If they are inconsistent, the MAC address collection parameters are sent to the network element device to ensure that the MAC address collection parameters of the network element device and the network management device are consistent. If they are consistent, the network management device can send the MAC address collection parameters or not send the MAC address collection parameters.
[0051] S302. The network element device generates a MAC file according to the received MAC address collection parameters.
[0052] In some embodiments, the network element device generates a MAC file according to the received MAC address collection parameters. The MAC file includes: a SNAP file and an ACC file. The SNAP file is a MAC address static table generated from the MAC addresses collected by the network element device at the current moment. The ACC file is a MAC address increment table generated from all the MAC addresses learned by the network element device within a preset time period.
[0053] S303. After the FTP task in the network element device waits for the MAC file to be generated, it transfers the MAC file to the FTP server and provides the transfer result.
[0054] In some embodiments, the network element device sends the MAC address static table at the current moment and the MAC address increment table within a preset time period to the FPT server as a complete MAC file, and transfers the result of the transfer completion to the network management device. The network management device determines whether the network element device has successfully generated the MAC file and whether the transfer is successfully completed according to the result output by the network element device.
[0055] S304. The network management device parses the MAC file uploaded by the network element device and saves it to the database.
[0056] In some embodiments, the network management device parses the received MAC file to obtain the MAC address; optionally, the network management device parses the MAC address static table and the MAC address increment table to obtain the original MAC addresses collected by the network element device; the original MAC addresses are screened to remove redundant data to obtain the MAC address; it should be understood that there may be MAC addresses with the same timestamp among the MAC addresses obtained by parsing the MAC address static table and the MAC address increment table. In this case, the redundant MAC addresses with the same timestamp need to be deleted, and only one MAC address with the same timestamp needs to be retained, so as to ensure that the timestamps of the parsed MAC addresses are not repeated, that is, redundant data is removed, and then the parsed MAC addresses are classified; optionally, each parsed MAC address is classified according to the MAC physical address and the VLAN information, that is, the data with the same MAC physical address and the same VLAN information belongs to the same piece of data, and one piece of data corresponds to one terminal device.
[0057] In some embodiments, the network management device stores each classified MAC address in the database. If there is data with the same MAC physical address and the same VLAN information in the database, the database is updated, and the data with the same MAC physical address and the same VLAN information in the database is updated to the currently classified data.
[0058] S305. The network management device restores the service path of the terminal device according to the MAC address.
[0059] In some embodiments, after the data is stored in the database, the network management device can restore the service path corresponding to the MAC address according to the MAC address stored in the database, that is, restore the service path of the terminal device corresponding to the MAC address.
[0060] In the method for restoring the service path according to the MAC address provided by the embodiments of the present invention, the network management device issues MAC address collection parameters to the network element device, the network element device generates a MAC file according to the received MAC address collection parameters, after the FTP task in the network element device waits for the MAC file to be generated, the MAC file is transmitted to the FTP server and the transmission result is provided, the network management device parses the MAC file uploaded by the network element device and saves it to the database, and the network management device restores the service path of the terminal device according to the MAC address; in some implementation processes, by combining the current moment with the method of collecting MACs within a preset time period, all MAC addresses at the current moment and within the preset time are completely collected, avoiding the situation of missing short-term online terminal devices, improving the efficiency of collecting MAC addresses, as well as the integrity and reliability of the collected MAC addresses; the service path is restored through the MAC addresses at the current moment and within the preset time period obtained by the network element device, ensuring an accurate and complete restoration of the service path of the terminal device.
[0061] Embodiment 3:
[0062] This embodiment also provides a network element device. As shown in Figure 4 Figure, it includes a first processor 401, a first memory 402, and a first communication bus 403, where:
[0063] The first communication bus 403 is used to implement the connection and communication between the first processor 401 and the first memory 402;
[0064] The first processor 401 is configured to execute one or more computer programs stored in the first memory 402 to implement at least one step in the MAC address acquisition method in the above-mentioned Embodiment 1 and Embodiment 2.
[0065] This embodiment also provides a network management device. As shown in Figure 5 Figure, it includes a second processor 501, a second memory 502, and a second communication bus 503, where:
[0066] The second communication bus 503 is used to implement the connection and communication between the second processor 501 and the second memory 502;
[0067] The second processor 501 is configured to execute one or more computer programs stored in the second memory 502 to implement at least one step in the method of restoring the service path according to the MAC address in the above-mentioned Embodiment 1 and Embodiment 2.
[0068] This embodiment also provides a computer-readable storage medium. The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules, or other data). The computer-readable storage medium includes, but is not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory, or other memory technologies, CD-ROM (Compact Disc Read-Only Memory), digital versatile disc (DVD), or other optical disc storage, magnetic cassette, tape, magnetic disk storage, or any other medium that can be used to store the desired information and can be accessed by a computer.
[0069] The computer-readable storage medium in this embodiment can be used to store one or more computer programs, and the one or more computer programs stored therein can be executed by a processor to implement at least one step of the MAC address acquisition method or the method for restoring a service path according to a MAC address in the above-mentioned first and second embodiments.
[0070] It can be seen that those skilled in the art should understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software (which can be realized by computer program codes executable by a computing device), firmware, hardware, and their appropriate combinations. In the hardware implementation, the division of the functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component can have multiple functions, or a function or step can be executed by several physical components in cooperation. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit.
[0071] In addition, as is well known to those of ordinary skill in the art, a communication medium generally includes computer-readable instructions, data structures, computer program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanisms, and can include any information delivery medium. Therefore, the present invention is not limited to any specific combination of hardware and software.
[0072] The above content is a further detailed description of the embodiments of the present invention in combination with specific implementation manners, and it cannot be determined that the specific implementation of the present invention is only limited to these descriptions. For those of ordinary skill in the technical field to which the present invention belongs, without departing from the concept of the present invention, several simple deductions or substitutions can be made, and all should be regarded as belonging to the protection scope of the present invention.
Claims
1. A method for obtaining a MAC address, including: Collecting the MAC address on the network element device at the current moment and writing the MAC address into the MAC address static table; After collecting the current moment, collecting the MAC addresses learned by the network element device within a preset time period as the cumulative sum of MAC addresses within the preset time period, and writing the cumulative sum of the MAC addresses into the MAC address increment table; Sending the MAC address static table and the MAC address increment table to the server.
2. The MAC address obtaining method according to claim 1, characterized in that the writing the cumulative sum of the MAC addresses into the MAC address increment table includes: Writing the MAC addresses learned by the network element device into the memory table; When the configured time is reached, writing the MAC addresses learned by the network element device stored in the memory table as the cumulative sum of the MAC addresses into the MAC address increment table.
3. The MAC address obtaining method according to claim 1, characterized in that after writing the MAC addresses learned by the network element device into the memory table, when the configured time is reached, before writing the MAC addresses learned by the network element device stored in the memory table as the cumulative sum of the MAC addresses into the MAC address increment table, the method further includes: Judging whether the capacity of the memory table reaches a threshold; When the capacity of the memory table reaches the threshold, writing the MAC addresses learned by the network element device stored in the memory table into the MAC address increment table and clearing the MAC addresses in the memory table.
4. A method for restoring a service path according to a MAC address, including: Obtaining a MAC address according to the received MAC address static table and MAC address increment table, where the MAC address static table includes the MAC address on the network element device at the current moment, and the MAC address increment table includes the MAC addresses learned by the network element device within a preset time period after the current moment; Restoring the corresponding service path according to the MAC address, where the MAC address is the MAC address obtained according to the received MAC address static table and MAC address increment table.
5. The method for restoring a service path according to a MAC address according to claim 4, characterized in that the obtaining a MAC address according to the received MAC address static table and MAC address increment table includes: Parsing the MAC address static table and the MAC address increment table to obtain the original MAC addresses collected by the network element device; Filtering the original MAC addresses to remove redundant data to obtain the MAC address.
6. The method for restoring a service path according to a MAC address according to claim 5, characterized in that before the restoring the corresponding service path according to the MAC address, the method further includes: Classifying the MAC address.
7. The method for restoring a service path according to a MAC address according to any one of claims 4-6, characterized in that each MAC address includes: port information, VLAN information, MAC address type, MAC physical address.
8. A network element device, the network element device includes a first processor, a first memory, and a first communication bus; The first communication bus is used to realize the connection communication between the first processor and the first memory; The first processor is configured to execute one or more computer programs stored in the first memory to implement the steps of the MAC address acquisition method according to any one of claims 1 to 3.
9. A network management device, the network management device includes a second processor, a second memory, and a second communication bus; The second communication bus is used to realize the connection communication between the second processor and the second memory; The second processor is configured to execute one or more computer programs stored in the second memory to implement the steps of the method for restoring a service path according to the MAC address according to any one of claims 4 to 7.
10. A computer-readable storage medium, characterized in that, the computer-readable storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement the steps of the MAC address acquisition method according to any one of claims 1 to 3 or the method for restoring a service path according to the MAC address according to any one of claims 4 to 7.
Citation Information
Patent Citations
Service path restoration method and device
CN109150566A