A network resource information searching method, device and storage medium
By constructing a relational table of network resource information, the process for operators to query network resource information is simplified, search efficiency is improved, and waste of human resources is reduced.
Patent Information
- Application Number
- CN202310782900.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2043-06-28
AI Technical Summary
In existing technologies, operators need to log in to multiple network devices when querying network resource information, resulting in low search efficiency.
A relationship table is constructed, which includes network resource information of broadband access servers, switches, and optical line terminals. The topology path is generated by matching IP addresses.
The simplified query process improved query efficiency and search efficiency, while reducing the waste of human resources.
Smart Images

Figure CN116881294B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and more specifically, to a method, apparatus, and storage medium for searching network resource information. Background Technology
[0002] The Internet Protocol (IP) is a protocol designed for communication between interconnected computer networks. In the Internet, it is a set of rules that enables all computer networks connected to the Internet to communicate with each other. Computer systems from any manufacturer can interconnect with the Internet as long as they comply with the IP protocol.
[0003] An IP address is a unified address format provided by the IP protocol. It assigns a unique address to every computer and other device on the Internet to mask the differences in physical addresses. Because of this unique address, users can efficiently and conveniently select the objects they need from millions of computers when operating on a networked computer.
[0004] In their daily maintenance work, network service providers' operations and maintenance personnel need to query network resource information, such as locating optical modem information based on IP address. However, in the existing network resource search process, it is necessary to log in to multiple network devices each time a search is conducted, which is very cumbersome and results in low search efficiency. Summary of the Invention
[0005] This application provides a method, apparatus, and storage medium for searching network resource information, aiming to improve search efficiency.
[0006] In a first aspect, embodiments of this application provide a method for searching network resource information in an optical access network, the method comprising:
[0007] In response to a query operation for network resource information, retrieve the information to be queried;
[0008] Based on the information to be queried, a matching is performed in a pre-constructed relation table, wherein the relation table includes a first relation table, a second relation table, and a third relation table with related relationships. The first relation table includes all network resource information corresponding to each broadband access server, the second relation table includes all network resource information corresponding to each switch, and the third relation table includes all network resource information corresponding to each optical line terminal.
[0009] Extract all network resource information that is related to the information to be queried from the first relationship table, the second relationship table, and the third relationship table respectively, and output the topology path composed of all network resource information corresponding to the information to be queried.
[0010] Optionally, the process of constructing the relation table includes:
[0011] Obtain all network resource information corresponding to each broadband access server, including MAC address, IP address, VLAN and ETH port information, and construct the first relationship table;
[0012] Obtain all network resource information corresponding to each switch, including MAC address, VLAN and ETH port information, and construct the second relationship table;
[0013] Obtain all network resource information corresponding to each optical line terminal, including MAC address, VLAN, PON port and optical modem SN code, and construct the third relationship table;
[0014] The first relation table, the second relation table, and the third relation table are mapped to generate the relation table.
[0015] Optionally, mapping the relationships between the first relation table, the second relation table, and the third relation table to generate the relation table includes:
[0016] The first relationship table and the second relationship table are mapped to each other based on MAC addresses;
[0017] The second relationship table and the third relationship table are mapped to each other based on the ETH port and MAC address.
[0018] Optionally, the method further includes:
[0019] Real-time monitoring of the MAC addresses of all optical modems corresponding to each optical line terminal;
[0020] When the MAC address of any optical modem becomes invalid, record the time of invalidation;
[0021] When the failure time of the MAC address of the optical modem exceeds the failure threshold, the MAC address of the optical modem and the associated data corresponding to the MAC address of the optical modem are cleared from the relationship table.
[0022] Optionally, when the MAC address of any optical modem becomes invalid, after recording the invalidation time, the following is also included:
[0023] When the failure time of the MAC address of the optical modem is less than the failure threshold, and the MAC address of the optical modem comes back online, determine whether the associated data of the MAC address that has come back online matches the data in the relationship table.
[0024] If the associated data of the reconnected MAC address matches the data in the relationship table, the relationship table remains unchanged;
[0025] If the associated data of the re-connected MAC address does not match the data in the relationship table, the original associated data of that MAC address in the relationship table will be overwritten.
[0026] Optionally, the method further includes:
[0027] Based on the scope of network resource services, the relationship table is divided into multiple regions, and the number of data changes in each region within a specified time period is recorded.
[0028] When the number of data changes in any region within the specified time period exceeds the change threshold, all data in that region are reacquired and correlated.
[0029] Optionally, the method further includes:
[0030] The priority level of the query region corresponding to the query operation is increased by one level, wherein the query region is at least one of the multiple regions divided by the relation table;
[0031] When the priority level of any region is greater than the priority threshold, and the priority level of that region ranks in the top n among multiple regions, all data corresponding to that region in the first relation table, the second relation table, and the third relation table are stored in the high-priority query database.
[0032] In response to the current query operation for network resource information, matching is prioritized in the high-priority query database.
[0033] Optionally, in response to the current query operation for network resource information, after prioritizing matching in the high-priority query database, the method further includes:
[0034] If no matching is found in the high-priority query database for the information to be queried corresponding to the current query operation, a matching is performed in multiple regions of the relation table that are not added to the high-priority query database to generate a topology path composed of all network resource information corresponding to the information to be queried.
[0035] Secondly, embodiments of this application provide a network resource information lookup device in an optical access network, the device comprising:
[0036] The acquisition module is used to respond to query operations for network resource information and obtain the information to be queried;
[0037] The matching module is used to perform matching in a pre-built relation table based on the information to be queried. The relation table includes a first relation table, a second relation table, and a third relation table with association relationships. The first relation table includes all network resource information corresponding to each broadband access server, the second relation table includes all network resource information corresponding to each switch, and the third relation table includes all network resource information corresponding to each optical line terminal.
[0038] The output module is used to extract all network resource information that is related to the information to be queried from the first relationship table, the second relationship table and the third relationship table respectively, and output the topology path composed of all network resource information corresponding to the information to be queried.
[0039] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the network resource information search method in the optical access network described in the first aspect of the embodiments.
[0040] Beneficial effects:
[0041] In response to a query operation targeting network resource information, the system obtains the information to be queried; based on the information to be queried, it performs matching in a pre-constructed relational table, wherein the relational table includes a first relational table, a second relational table, and a third relational table with related relationships. The first relational table includes all network resource information corresponding to each broadband access server, the second relational table includes all network resource information corresponding to each switch, and the third relational table includes all network resource information corresponding to each optical line terminal. The system extracts all network resource information that is related to the information to be queried from the first relational table, the second relational table, and the third relational table respectively, and outputs the topology path composed of all network resource information corresponding to the information to be queried.
[0042] This method integrates network resource information from multiple network devices to generate a relational table. When a network resource information query is needed, the table can be matched to extract all network resource information associated with the information to be queried. Finally, the topology path composed of all network resource information corresponding to the information to be queried can be output. Compared with the need to intervene in multiple network devices for each query, this method can simplify the query process and improve search efficiency. Attached Figure Description
[0043] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 This is a flowchart of the steps of a method for searching network resource information in an optical access network according to an embodiment of this application;
[0045] Figure 2 This is a flowchart illustrating the priority adjustment steps proposed in an embodiment of this application;
[0046] Figure 3 This is a functional block diagram of a network resource information lookup device in an optical access network provided in an embodiment of this application. Detailed Implementation
[0047] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0048] BRAS: Broadband Remote Access Server
[0049] MAC address: Media Access Control Address (LAN address)
[0050] OLT: Optical Line Terminal
[0051] IP address: Internet Protocol Address
[0052] ETH interface: Ethernet interface, also known as the Ethereum port.
[0053] PON port: Passive Optical Network interface
[0054] VLAN: Virtual Local Area Network
[0055] During routine maintenance, network operators often need to query network resource information, such as locating optical modem information based on IP address. When locating the PON port of the corresponding OLT based on the IP address, the typical query process involves: 1. Remotely logging into the Service Router (SR) to find the BRAS containing the IP address; 2. Remotely logging into the BRAS to find the MAC address corresponding to the IP and its associated switch; 3. Remotely logging into the switch to find the OLT containing the MAC address; 4. Remotely logging into the OLT to find the PON port corresponding to the MAC address, which is the PON port corresponding to the IP address being searched. This entire query process is cumbersome, requiring login to multiple network devices for each query, resulting in low efficiency. To improve the query process, this application provides a method for querying network resource information in an optical access network.
[0056] Reference Figure 1 This document illustrates a flowchart of a method for searching network resource information in an optical access network according to an embodiment of this application. The method may specifically include the following steps:
[0057] S101: In response to a query operation for network resource information, obtain the information to be queried.
[0058] In practice, the information to be queried can be any network resource information of the network service. For example, it can include IP address, BRAS, MAC address, ETH port, OLT or PON port. The ETH port refers to the port on the switch, including physical ports on the switch and custom ports. Generally, the number of physical ports on a switch is limited. In order to expand the interface, multiple ports can be divided under a physical port. The PON port refers to the physical port on the OLT side.
[0059] S102: Match the query information in the pre-built relational table.
[0060] The relationship tables include a first relationship table T1, a second relationship table T2, and a third relationship table T3 with associated relationships. The first relationship table T1 includes all network resource information corresponding to each Broadband Access Server (BRAS), the second relationship table T2 includes all network resource information corresponding to each switch, and the third relationship table T3 includes all network resource information corresponding to each Optical Line Terminal (OLT).
[0061] In one feasible implementation, the process of constructing the relation table includes:
[0062] A1: Obtain all network resource information corresponding to each broadband access server, including MAC address, IP address, VLAN and ETH port information, and construct the first relationship table.
[0063] Specifically, after logging into the BRAS via remote login methods such as Telnet / ssh, users can use the system's built-in command line, such as display arp all, to view all network resource information within the BRAS, such as IP addresses, MAC addresses, VLANs (Virtual Local Area Networks), and ETH ports, which are stored in the first relational table.
[0064] A2: Obtain all network resource information corresponding to each switch, including MAC address, VLAN and ETH port information, and construct the second relationship table.
[0065] After logging into the switch via remote login methods such as Telnet / ssh, you can use the system's built-in command line, such as displayarp all, to view all network resource information within the switch, such as MAC addresses, VLANs, and Ethernet ports, which are stored in a second relational table.
[0066] A3: Obtain all network resource information corresponding to each optical line terminal, including MAC address, VLAN, PON port and optical modem SN code, and construct the third relationship table.
[0067] After logging into the OLT via remote login methods such as Telnet / ssh, you can use the system's built-in command line, such as displayarp all, to view all network resource information within the OLT, such as MAC address, VLAN, PON port, and optical modem SN code, which are stored in a third relation table.
[0068] A4: Map the relationships between the first relation table, the second relation table, and the third relation table to generate the relation table.
[0069] Based on the connection relationships between network devices, the association relationships of the first relationship table, the second relationship table, and the third relationship table can be mapped. For example, the first relationship table and the second relationship table are mapped based on MAC addresses. The second relationship table and the third relationship table are first matched through the ETH interface and then associated through MAC addresses, thereby linking the three relationships together to generate the final relationship table.
[0070] The first relation table contains all data obtained from the BRAS side, the second relation table contains all data obtained from the switch side, and the third relation table contains all data obtained from the OLT side. When acquiring data, since the OLT side is connected to the network devices, the data from the OLT side is acquired in real time to ensure data accuracy. The data from the BRAS side and the switch side can also be acquired in real time. However, considering that the changes in the upper-layer network will not be too frequent, the data from the BRAS side and the switch side can be acquired at intervals. The specific data acquisition method can be customized according to the current status of network services during the actual implementation.
[0071] Meanwhile, in order to ensure the comprehensiveness of the data, the full amount of data is obtained, but there will still be some redundant data. When establishing relationships between the three relational tables, data that cannot be linked can be cleared.
[0072] In some application environments, the data on the switch side is not necessary. It is not necessary to build a second relation table. Only the first relation table and the third relation table need to be built, and the relationship between the first relation table and the third relation table needs to be established.
[0073] When matching the information to be queried with the relation table, the information to be queried is searched in the relation table. For example, if the information to be queried is MAC address 1, then MAC address 1 can be searched in the relation table.
[0074] S103: Extract all network resource information that is related to the information to be queried from the first relation table, the second relation table and the third relation table respectively, and output the topology path composed of all network resource information corresponding to the information to be queried.
[0075] When the information to be queried is searched in the relational tables, it can be located in at least one of the first relational table, the second relational table, and the third relational table. Then, based on the association, all network resource information that is associated with the information to be queried can be extracted from the three relational tables.
[0076] For example, when the information to be queried is MAC address 1, the BRAS corresponding to MAC address 1 is determined from the first relation table, the switch corresponding to MAC address 1 is determined from the second relation table, and all OLTs corresponding to MAC address 1 are determined from the third relation table. The interface information between the BRAS and the switch, the interface information between the switch and each OLT, and all network resource information corresponding to each OLT are extracted to generate a topology path composed of all network resource information corresponding to MAC address 1.
[0077] For example, when the information to be queried is PON port 1, the system locates the corresponding OLT in the third relation table, and traces back to the corresponding switch in the second relation table based on the network resource information of the OLT, such as the MAC address and ETH port. Then, it traces back to the corresponding BRAS in the first relation table based on the MAC address of the switch, thereby completing the backtracking of the network resource path.
[0078] In one feasible implementation, considering the large amount of data in the relational table, not only is the maintenance of the relational table very costly, but the query and matching process is also very demanding. Therefore, for relational tables with large amounts of data, the relational table can be divided into multiple regions. For example, it can be divided according to the scope of network resource services, such as dividing it according to the OLT. Generally, the OLT provides network services for several cells. It can also be divided according to the service scope of the switch in the second relational table. The specific regional division method can be customized according to actual needs.
[0079] Reference Figure 2 The flowchart of the priority adjustment steps provided in the embodiment of this application is shown. During each query, at least one of the multiple regions divided in the relation table becomes the query region corresponding to the query operation. The priority level of the query region corresponding to the query operation is increased by one level. When the priority level of any region is greater than the priority threshold and the priority level of the region ranks in the top n among multiple regions, all data corresponding to the region in the first relation table, the second relation table and the third relation table are stored in the high-priority query database. In response to the current query operation for network resource information, the matching is preferentially performed in the high-priority query database.
[0080] During each query, the priority level of multiple regions in the relation table that are not used as the query region can be reduced by one level. Data in regions with a priority level lower than the priority threshold or whose priority level ranks after the first n regions can be cleared in the high-priority query database.
[0081] If no matching is found in the high-priority query database for the information to be queried corresponding to the current query operation, a matching is performed in multiple regions of the relation table that are not added to the high-priority query database to generate a topology path composed of all network resource information corresponding to the information to be queried.
[0082] By dividing the relational table into regions for priority querying, the scope of the query can be reduced. The data most likely to be queried within the current time period is placed in the high-priority query database for priority searching. For example, when continuously querying a certain area of a county, it indicates that the current query is mainly targeting that area. Therefore, placing the data of that area in the high-priority query database for priority searching can further improve query efficiency. If the query in the high-priority query database is unsuccessful, a second query can be performed on the complete relational table. The second query does not need to search within the regions already stored in the high-priority query database.
[0083] In one feasible implementation, after the relationship table is built, it is also necessary to maintain the relationship table. Considering that the OLT side is connected to the network devices, the relationship table can be maintained based on the data from the OLT side.
[0084] Specifically, the OLT records all the information of the corresponding optical modem. After the optical modem is successfully registered and online, the OLT identifies the unique optical modem by its MAC address. If the optical modem goes offline, the OLT cannot learn the MAC address and considers that the MAC address recorded in the third relationship table has expired. However, there are many reasons for the optical modem to go offline, such as power failure, optical path failure, or optical modem failure. It is necessary to judge the offline situation.
[0085] For example, the MAC addresses of all optical modems corresponding to each optical line terminal are monitored in real time. When the MAC address of any optical modem fails, a timer is used to record the failure time. When the failure time of the MAC address of the optical modem is greater than the failure threshold, it indicates that the optical modem is seriously offline and cannot be restored in a short time. Therefore, the MAC address of the optical modem and the associated data corresponding to the MAC address of the optical modem are cleared in the relationship table.
[0086] When the expiration time of the optical modem's MAC address is less than the expiration threshold, the MAC address of the optical modem will come back online. This may be due to a brief power outage of the optical modem or because the fault of the optical modem has been manually resolved. After resetting the timer, it is necessary to determine whether the associated data of the re-online MAC address matches the data in the relationship table. If the associated data of the re-online MAC address matches the data in the relationship table, the corresponding data in the relationship table remains unchanged. If the associated data of the re-online MAC address does not match the data in the relationship table, it can be assumed that the previous usage location of the optical modem has been cancelled and the optical modem has been recycled and reused in another location. In this case, the original associated data of the MAC address in the relationship table will be overwritten to prevent data conflicts that could lead to inaccurate query results.
[0087] In another feasible implementation, the relationship table is divided into multiple regions according to the scope of network resource services. When the data in the relationship table is changed, the number of data changes in each of the multiple regions within a specified time period is recorded. When the number of data changes in any region within the specified time period exceeds the change threshold, all data in that region is retrieved again and associated.
[0088] The threshold for changes can be set according to the actual situation. When the number of data changes in a certain area within the specified time period exceeds the threshold, it indicates that the data change in this area is too large. For example, if the change is large within one week of the specified time period, it means that a large change has occurred in this area. The most common examples are equipment decommissioning or new equipment coming online. Therefore, all data in this area can be recalculated. The value of the threshold for changes can be customized according to the actual application requirements.
[0089] The method provided in this application has at least the following beneficial effects:
[0090] 1. Integrate and associate network resource information on the BRAS side, switch side, and OLT side, and automatically create association tables with related relationships;
[0091] 2. When a scenario occurs such as a missing MAC address of any device, abnormal offline status of the optical modem, or invalid MAC address, the relationship table is updated and maintained to improve the accuracy of the association table;
[0092] 3. During the query, the information to be queried is searched and matched in the association table, which generates a topology path composed of all network resource information corresponding to the information to be queried. It is not necessary to intervene in different systems for each query to obtain the query results, which reduces the cumbersome steps in the query process, improves query efficiency, and reduces the waste of human resources.
[0093] 4. Establish a high-priority query database. Add frequently queried areas from the related tables to the high-priority query database for priority querying, thereby narrowing the query scope and improving query speed.
[0094] Reference Figure 3 This diagram illustrates a functional block diagram of a network resource information lookup device in an optical access network according to an embodiment of this application. The device includes:
[0095] The acquisition module 100 is used to obtain the information to be queried in response to a query operation for network resource information;
[0096] The matching module 200 is used to perform matching in a pre-built relation table according to the information to be queried. The relation table includes a first relation table, a second relation table and a third relation table with association relationships. The first relation table includes all network resource information corresponding to each broadband access server. The second relation table includes all network resource information corresponding to each switch. The third relation table includes all network resource information corresponding to each optical line terminal.
[0097] The output module 300 is used to extract all network resource information that is related to the information to be queried from the first relation table, the second relation table and the third relation table respectively, and output the topology path composed of all network resource information corresponding to the information to be queried.
[0098] Optionally, the device further includes:
[0099] The first relation table generation module is used to obtain all network resource information corresponding to each broadband access server, including MAC address, IP address, VLAN and ETH port information, and construct the first relation table;
[0100] The second relationship table generation module is used to obtain all network resource information corresponding to each switch, including MAC address, VLAN and ETH port information, and construct the second relationship table;
[0101] The third relation table generation module is used to obtain all network resource information corresponding to each optical line terminal, including MAC address, VLAN, PON port and optical modem SN code, and construct the third relation table;
[0102] The association mapping module is used to map the association relationships between the first relationship table, the second relationship table, and the third relationship table to generate the relationship table.
[0103] Optionally, the association mapping module includes:
[0104] The first mapping unit is used to map the association relationship between the first relationship table and the second relationship table based on MAC addresses;
[0105] The second mapping unit is used to map the second relationship table and the third relationship table based on the ETH port and MAC address.
[0106] Optionally, the device further includes:
[0107] The monitoring module monitors the MAC addresses of all optical modems corresponding to each optical line terminal in real time.
[0108] The timing module is used to record the failure time when the MAC address of any optical modem fails.
[0109] The clearing module is used to clear the MAC address of the optical modem and the associated data corresponding to the MAC address in the relationship table when the failure time of the MAC address of the optical modem exceeds the failure threshold.
[0110] Optionally, the device further includes:
[0111] The judgment module is used to determine whether the associated data of the MAC address that has come back online matches the data in the relationship table when the failure time of the MAC address of the optical modem is less than the failure threshold.
[0112] The modification module is used to ensure that the associated data of the re-connected MAC address matches the data in the relationship table, keeping the relationship table unchanged; and to overwrite the original associated data of the MAC address in the relationship table if the associated data of the re-connected MAC address does not match the data in the relationship table.
[0113] Optionally, the device further includes:
[0114] The change count determination module is used to divide the relationship table into multiple regions according to the scope of network resource services, and record the number of data changes in each region within a specified time period.
[0115] The update module is used to reacquire all data in any region and correlate them when the number of data changes in any region within the specified time period exceeds the change threshold.
[0116] Optionally, the device further includes:
[0117] The priority enhancement module is used to increase the priority level of the query region corresponding to the query operation by one level, wherein the query region is at least one of the multiple regions divided by the relation table;
[0118] The data migration module is used to store all data corresponding to that region in the first, second, and third relation tables in a high-priority query database when the priority level of any region is greater than the priority threshold and the priority level of that region ranks in the top n among multiple regions.
[0119] The priority matching module is used to respond to the current query operation for network resource information and prioritize matching in the high-priority query database.
[0120] Optionally, the device further includes:
[0121] The secondary query module is used to perform matching in multiple regions of the relation table that are not added to the high-priority query database if the information to be queried corresponding to the current query operation is not matched in the high-priority query database, and to generate a topology path composed of all network resource information corresponding to the information to be queried.
[0122] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the network resource information lookup method in the optical access network as described in the embodiments.
[0123] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0124] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0125] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0126] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0128] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0129] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0130] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for searching network resource information in an optical access network, characterized in that, The method includes: In response to a query operation for network resource information, retrieve the information to be queried; Based on the information to be queried, matching is performed in a pre-constructed relation table. The relation table includes a first relation table, a second relation table, and a third relation table with associated relationships. The first relation table includes all network resource information corresponding to each broadband access server; the second relation table includes all network resource information corresponding to each switch; and the third relation table includes all network resource information corresponding to each optical line terminal (OLT). The process of constructing the relation tables includes: obtaining all network resource information corresponding to each broadband access server, including MAC address, IP address, VLAN, and Ethernet port information; constructing the first relation table; obtaining all network resource information corresponding to each switch... Network resource information, including MAC address, VLAN, and ETH port information, is used to construct the second relationship table; all network resource information corresponding to each optical line terminal, including MAC address, VLAN, PON port, and optical modem SN code, is obtained to construct the third relationship table; the first, second, and third relationship tables are mapped to generate the relationship table; according to the scope of network resource services, the relationship table is divided into multiple regions, and the number of data changes in each region within a specified time period is recorded. When the number of data changes in any region within the specified time period exceeds the change threshold, all data in that region is re-acquired and associated. Extract all network resource information that is related to the information to be queried from the first relation table, the second relation table and the third relation table respectively, and output the topology path composed of all network resource information corresponding to the information to be queried; The priority level of the query region corresponding to the query operation is increased by one level, wherein the query region is at least one of the multiple regions divided by the relation table; when the priority level of any region is greater than the priority threshold and the priority level of the region ranks in the top n of the multiple regions, all data corresponding to the region in the first relation table, the second relation table, and the third relation table are stored in the high-priority query database; in response to the current query operation for network resource information, the matching is first performed in the high-priority query database; if the information to be queried corresponding to the current query operation is not matched in the high-priority query database, the matching is performed in the multiple regions of the relation table that are not added to the high-priority query database, and a topology path composed of all network resource information corresponding to the information to be queried is generated.
2. The method according to claim 1, characterized in that, Mapping the relationships between the first relation table, the second relation table, and the third relation table to generate the relation table includes: The first relationship table and the second relationship table are mapped to each other based on MAC addresses; The second relationship table and the third relationship table are mapped to each other based on the ETH port and MAC address.
3. The method according to claim 1, characterized in that, The method further includes: Real-time monitoring of the MAC addresses of all optical modems corresponding to each optical line terminal; When the MAC address of any optical modem becomes invalid, record the time of invalidation; When the failure time of the MAC address of the optical modem exceeds the failure threshold, the MAC address of the optical modem and the associated data corresponding to the MAC address of the optical modem are cleared from the relationship table.
4. The method according to claim 3, characterized in that, When the MAC address of any optical modem becomes invalid, after recording the invalidation time, the following is also included: When the failure time of the MAC address of the optical modem is less than the failure threshold, and the MAC address of the optical modem comes back online, determine whether the associated data of the MAC address that has come back online matches the data in the relationship table. If the associated data of the reconnected MAC address matches the data in the relationship table, the relationship table remains unchanged; If the associated data of the re-connected MAC address does not match the data in the relationship table, the original associated data of that MAC address in the relationship table will be overwritten.
5. A network resource information retrieval device in an optical access network, characterized in that, The device includes: The acquisition module is used to respond to query operations for network resource information and obtain the information to be queried; A matching module is used to perform matching in a pre-built relation table based on the information to be queried. The relation table includes a first relation table, a second relation table, and a third relation table with associated relationships. The first relation table includes all network resource information corresponding to each broadband access server; the second relation table includes all network resource information corresponding to each switch; and the third relation table includes all network resource information corresponding to each optical line terminal (OLT). The process of constructing the relation table includes: obtaining all network resource information corresponding to each broadband access server, including MAC address, IP address, VLAN, and ETH port information; constructing the first relation table; obtaining all network resource information corresponding to each switch... The system acquires all network resource information, including MAC address, VLAN, and ETH port information, to construct the second relationship table; it acquires all network resource information corresponding to each optical line terminal, including MAC address, VLAN, PON port, and optical modem SN code, to construct the third relationship table; it maps the first, second, and third relationship tables to generate the relationship table; based on the scope of network resource services, it divides the relationship table into multiple regions, records the number of data changes in each region within a specified time period, and when the number of data changes in any region within the specified time period exceeds a change threshold, it reacquires all data in that region and re-associates it. The output module is used to extract all network resource information that is related to the information to be queried from the first relation table, the second relation table and the third relation table respectively, and output the topology path composed of all network resource information corresponding to the information to be queried; The priority enhancement module is used to increase the priority level of the query region corresponding to the query operation by one level, wherein the query region is at least one of the multiple regions divided by the relation table; The data migration module is used to store all data corresponding to that region in the first relation table, the second relation table, and the third relation table in a high-priority query database when the priority level of any region is greater than the priority threshold and the priority level of that region ranks in the top n among multiple regions. The priority matching module is used to respond to the current query operation for network resource information and prioritize matching in the high-priority query database; The secondary query module is used to perform matching in multiple regions of the relation table that are not added to the high-priority query database if the information to be queried corresponding to the current query operation is not matched in the high-priority query database, and to generate a topology path composed of all network resource information corresponding to the information to be queried.
6. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the method for finding network resource information in an optical access network as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Network access control method and system
CN102420731A
Ditributed edge switching system for voice-over-packet multiservice network
WO2002091692A1