CN116881294A - Network resource information searching method, device and storage medium - Google Patents
Network resource information searching method, device and storage medium Download PDFInfo
- Publication number
- CN116881294A CN116881294A CN202310782900.5A CN202310782900A CN116881294A CN 116881294 A CN116881294 A CN 116881294A CN 202310782900 A CN202310782900 A CN 202310782900A CN 116881294 A CN116881294 A CN 116881294A
- Authority
- CN
- China
- Prior art keywords
- relation table
- network resource
- resource information
- mac address
- relation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000003287 optical effect Effects 0.000 claims abstract description 51
- 241000282326 Felis catus Species 0.000 claims description 50
- 230000008859 change Effects 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 13
- 238000013507 mapping Methods 0.000 claims description 13
- 230000004044 response Effects 0.000 claims description 6
- 238000012544 monitoring process Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 8
- 238000012423 maintenance Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24553—Query execution of query operations
- G06F16/24558—Binary matching operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a network resource information searching method, a device and a storage medium, and belongs to the technical field of communication. Responding to query operation aiming at network resource information, and acquiring information to be queried; matching is carried out in a pre-constructed relation table according to the information to be queried, wherein the relation table comprises a first relation table, a second relation table and a third relation table which have association relations, the first relation table comprises all network resource information corresponding to each broadband access server, the second relation table comprises all network resource information corresponding to each switch, and the third relation table comprises all network resource information corresponding to each optical line terminal; and extracting all network resource information with association relation with the information to be queried from the first relationship table, the second relationship table and the third relationship table respectively, and outputting a topology path formed by all network resource information corresponding to the information to be queried. The application aims to improve the searching efficiency.
Description
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a network resource information searching method, a device and a storage medium.
Background
The IP protocol (Internet Protocol, internetworking protocol) is a protocol designed for computer network interconnections to communicate with each other, and in the internet, it is a set of rules that enable all computer networks connected to the network to communicate with each other, and any manufacturer's computer system can interwork with the internet while adhering to the IP protocol.
The IP address is a unified address format provided by the IP protocol, which specifies a unique address for each computer and other devices on the internet, so as to mask the difference of physical addresses, and because of the unique address, it is ensured that a user can efficiently and conveniently select a desired object from millions of computers when operating on the networked computer.
In the process of daily maintenance work, operation and maintenance personnel of an operator providing network service need to inquire network resource information, for example, the condition of positioning cat information according to an IP address, but in the existing network resource searching process, a plurality of network devices need to be logged in each searching process, the searching process is very complicated, and the searching efficiency is very low.
Disclosure of Invention
The embodiment of the application provides a network resource information searching method, a network resource information searching device and a storage medium, aiming at improving searching efficiency.
In a first aspect, an embodiment of the present application provides a method for searching network resource information in an optical access network, where the method includes:
responding to the query operation aiming at the network resource information, and acquiring the information to be queried;
matching is carried out in a pre-constructed relation table according to the information to be queried, wherein the relation table comprises a first relation table, a second relation table and a third relation table which have association relations, the first relation table comprises all network resource information corresponding to each broadband access server, the second relation table comprises all network resource information corresponding to each switch, and the third relation table comprises all network resource information corresponding to each optical line terminal;
and extracting all network resource information with association relation with the information to be queried from the first relationship table, the second relationship table and the third relationship table respectively, and outputting a topology path formed by all network resource information corresponding to the information to be queried.
Optionally, the process of constructing the relationship table includes:
acquiring all network resource information corresponding to each broadband access server, including MAC address, IP address, VLAN and ETH port information, and constructing the first relation table;
acquiring all network resource information corresponding to each switch, including MAC address, VLAN and ETH port information, and constructing the second relation table;
acquiring all network resource information corresponding to each optical line terminal, including an MAC address, a VLAN, a PON port and a cat SN code, and constructing the third relation table;
and mapping association relations among the first relation table, the second relation table and the third relation table to generate the relation table.
Optionally, mapping the association relationship of the first relationship table, the second relationship table and the third relationship table to generate the relationship table includes:
the first relation table and the second relation table are mapped based on the MAC address;
and the second relation table and the third relation table are used for mapping association relation based on an ETH port and an MAC address.
Optionally, the method further comprises:
monitoring MAC addresses of all optical cats corresponding to each optical line terminal in real time;
recording failure time when the MAC address of any light cat fails;
and when the failure time of the MAC address of the photo cat is greater than the failure threshold value, clearing the MAC address of the photo cat and associated data corresponding to the MAC address of the photo cat in the relation table.
Optionally, when the MAC address of any photo cat fails, after recording the failure time, the method further includes:
when the failure time of the MAC address of the light cat is smaller than the failure threshold value, determining whether the associated data of the MAC address which is on line again accords with the data in the relation table or not under the condition that the MAC address of the light cat is on line again;
if the associated data of the re-online MAC address accords with the data in the relation table, keeping the relation table unchanged;
and if the associated data of the re-online MAC address does not accord with the data in the relation table, covering the original associated data of the MAC address in the relation table.
Optionally, the method further comprises:
dividing the relation table into a plurality of areas according to the service range of the network resource, and recording the data change times of each area in the plurality of areas in a calibration time period;
and when the data change times of any area in the calibration time period are larger than a change threshold value, acquiring all data in the area again and correlating.
Optionally, the method further comprises:
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 a plurality of regions divided by the relation table;
when the priority level of any area is greater than the priority threshold value and the priority level of the area is arranged in the first n bits in a plurality of areas, storing all data corresponding to the area in the first relation table, the second relation table and the third relation table in a high-priority query database;
in response to a current query operation for network resource information, a match is preferentially made at the high priority query database.
Optionally, in response to a current query operation of the network resource information, preferably after the high priority query database is matched, the method further comprises:
and if the information to be queried corresponding to the current query operation is not matched in the high-priority query database, matching is performed in a plurality of areas which are not added in the high-priority query database in the relation table, and a topology path formed by all network resource information corresponding to the information to be queried is generated.
In a second aspect, an embodiment of the present application provides a device for searching network resource information in an optical access network, where the device includes:
the acquisition module is used for responding to the query operation aiming at the network resource information and acquiring the information to be queried;
the matching module is used for matching in a pre-constructed relation table according to the information to be queried, wherein the relation table comprises a first relation table, a second relation table and a third relation table which have association relations, the first relation table comprises all network resource information corresponding to each broadband access server, the second relation table comprises all network resource information corresponding to each switch, and the third relation table comprises all network resource information corresponding to each optical line terminal;
and the output module is used for respectively extracting all network resource information with an association relation with the information to be queried from the first relationship table, the second relationship table and the third relationship table and outputting a topology path formed by all network resource information corresponding to the information to be queried.
In a third aspect, an embodiment of the present application provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements a method for searching network resource information in an optical access network according to the first aspect of the embodiment.
The beneficial effects are that:
responding to the query operation aiming at the network resource information, and acquiring the information to be queried; matching is carried out in a pre-constructed relation table according to the information to be queried, wherein the relation table comprises a first relation table, a second relation table and a third relation table which have association relations, the first relation table comprises all network resource information corresponding to each broadband access server, the second relation table comprises all network resource information corresponding to each switch, and the third relation table comprises all network resource information corresponding to each optical line terminal; and extracting all network resource information with association relation with the information to be queried from the first relationship table, the second relationship table and the third relationship table respectively, and outputting a topology path formed by all network resource information corresponding to the information to be queried.
According to the method, network resource information of a plurality of network devices is integrated to generate a relation table with an association relation, when the network resource information is required to be queried, the relation table can be matched, all network resource information associated with the information to be queried is extracted, and finally a topology path formed by all network resource information corresponding to the information to be queried can be output.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of steps of a method for searching network resource information in an optical access network according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating the steps for priority adjustment according to an embodiment of the present application;
fig. 3 is a functional block diagram of a network resource information searching device in an optical access network according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
BRAS: broadband Remote Access Server broadband access server
MAC address: media Access Control Address local area network address
And (3) an OLT: optical Line Terminal optical line terminal
IP address: internet Protocol Address Internet protocol Address
The ETH port: ethernet interface, i.e. Ethernet interface
PON port: passive Optical Network interface, passive optical network interface
VLAN: virtual Local Area Network virtual local area network
In the process of daily maintenance work, operator operation and maintenance personnel need to inquire network resource information, for example, when cat information needs to be positioned according to an IP address, and when PON ports of OLT corresponding to the resource are positioned according to the IP address, the inquiry process generally needs to be executed by the maintenance personnel includes: logging in SR (Service Router) in a remote logging mode, and searching the BRAS where the IP address is located; 2. logging in the BRAS in a remote login mode, and searching the MAC address corresponding to the IP and the switch where the IP is located; 3. logging in the exchanger in a remote logging mode, and searching the OLT where the MAC address is located; 4. logging in the OLT in a remote logging mode, and searching a PON port corresponding to the MAC address, wherein the PON port is a PON port corresponding to the IP address to be searched; the whole searching process is very complicated, a plurality of network devices are required to be logged in each inquiring process, the searching efficiency is very low, and in order to improve the inquiring process, the embodiment of the application provides a network resource information searching method in an optical access network.
Referring to fig. 1, a step flow chart of a method for searching network resource information in an optical access network in an embodiment of the present application is shown, where the method specifically may include the following steps:
s101: and responding to the query operation aiming at the network resource information, and acquiring the information to be queried.
In practical implementation, the information to be queried may be any network resource information of a network service, for example, including an IP address, a BRAS, a MAC address, an ETH port, an OLT, or a PON port, where the ETH port refers to a port on a switch, including a physical port on the switch and a custom port, and in general, the physical port on the switch is limited, and in order to expand an interface, a plurality of ports may be divided under one physical port; and PON port refers to a physical port on the OLT side.
S102: and according to the information to be queried, matching is carried out in a pre-constructed relation table.
The relationship table includes a first relationship table T1, a second relationship table T2, and a third relationship table T3, where 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 OLT.
In a possible embodiment, the process of constructing the relationship table includes:
a1: and acquiring all network resource information corresponding to each broadband access server, including MAC address, IP address, VLAN and ETH port information, and constructing the first relation table.
Specifically, after a BRAS is logged in through Telnet/ssh and other Telnet modes, all network resource information in the BRAS, such as an IP address, a MAC address, a VLAN (Virtual Local Area Network ) and an ETH port, in one BRAS can be checked by using a command line built in the system, such as a display arm and other commands, and the information is stored in a first relational table.
A2: and acquiring all network resource information corresponding to each switch, including MAC address, VLAN and ETH port information, and constructing the second relation table.
After logging in the switch in Telnet/ssh and other remote logging modes, all network resource information in the switch, such as information of an MAC address, a VLAN, an ETH port and the like, can be checked by utilizing a built-in command line of the system, such as a display arm all and other commands, and the information is stored in a second relation table.
A3: and acquiring all network resource information corresponding to each optical line terminal, including an MAC address, a VLAN, a PON port and a cat SN code, and constructing the third relation table.
After logging in the OLT through Telnet/ssh and other remote logging modes, all network resource information in the OLT, such as information of a MAC address, a VLAN, a PON port, an optical cat SN code and the like, can be checked by using a command line built in the system, such as a display arm all and the like, and stored in a third relationship table.
A4: and mapping association relations among the first relation table, the second relation table and the third relation table to generate the relation table.
According to the connection relation between the network devices, the association relation of the first relation table, the second relation table and the third relation table can be mapped, for example, the first relation table and the second relation table are mapped based on the MAC address, the second relation table and the third relation table are corresponding through the ETH port first and then are associated through the MAC address, and therefore the three relations are associated to generate a final relation table.
The data in the first relation table is the full-quantity data acquired from the BRAS side, the second relation table is the full-quantity data acquired from the exchanger side, the third relation table is the full-quantity data acquired from the OLT side, and when the data is acquired, the data on the OLT side is acquired in real time because the data on the OLT side is the network using equipment, so that the accuracy of the data is ensured, the data on the BRAS side and the exchanger side can be acquired in real time, but the amplitude of the fluctuation of the upper network is not too frequent, the data on the BRAS side and the exchanger side can be acquired at intervals, and particularly, the data acquisition mode can be customized according to the current situation of network service in the actual implementation process.
Meanwhile, in order to ensure the comprehensiveness of the data, the full data are acquired, but redundant data still exist, and when the three relationship tables establish the association relationship, the data which cannot establish the association relationship can be cleared.
In some application environments, the data of the exchange side is not necessary, and the second relationship table is not required to be constructed, and only the first relationship table and the third relationship table are required to be constructed, and the association relationship between the first relationship table and the third relationship table is required to be established.
When the information to be queried is matched with the relation table, searching the relation table for the information to be queried, and when the information to be queried is the MAC address 1, searching the relation table for the MAC address 1.
S103: and extracting all network resource information with association relation with the information to be queried from the first relationship table, the second relationship table and the third relationship table respectively, and outputting a topology path formed by all network resource information corresponding to the information to be queried.
When the information to be queried searches in the relation table, the information to be queried can be positioned to at least one of the first relation table, the second relation table and the third relation table, and then all network resource information with the relation with the information to be queried is extracted from the three relation tables according to the relation.
For example, when the information to be queried is the MAC address 1, a BRAS corresponding to the MAC address 1 is determined from the first relationship table, a switch corresponding to the MAC address 1 is determined in the second relationship table, all OLTs corresponding to the MAC address 1 are determined in the third relationship table, interface information between the BRAS and the switch, interface information between the switch and each OLT, and all network resource information corresponding to each OLT are extracted, and a topology path formed by all network resource information corresponding to the MAC address 1 is generated.
For example, when the information to be queried is PON port 1, the method locates in a third relationship table, determines a corresponding OLT, traces back to a corresponding switch in the second relationship table according to network resource information of the OLT, such as a MAC address and an ETH port, and traces back to a corresponding BRAS in the first relationship table according to the MAC address of the switch, thereby completing trace back of a network resource path.
In a possible implementation manner, considering that the data amount in the relationship table is large, not only is the maintenance of the relationship table required to be high in cost, but also the task amount of the process of inquiring and matching is high, therefore, for the relationship table with large data amount, the relationship table can be divided into a plurality of areas, for example, the relationship table can be divided according to the service range of network resources, for example, the relationship table can be divided according to the OLT unit, the OLT can generally provide network services for a plurality of cells, the service range of the switch in the second relationship table can be divided according to the unit, and the specific area dividing method can be set in a self-defining manner according to the actual requirement.
Referring to fig. 2, a flow chart of a step of adjusting priority provided in an embodiment of the present application is shown, in each query, at least one of a plurality of areas divided in a relational table becomes a query area corresponding to a query operation, the priority level of the query area corresponding to the query operation is increased by one level, when the priority level of any area is greater than a priority threshold, and the priority level of the area is ranked in the first n bits in the plurality of areas, all data corresponding to the area in the first relational table, the second relational table, and the third relational table are stored in a high-priority query database, and in response to a current query operation for network resource information, matching is performed preferentially in the high-priority query database.
The priority level of other multiple regions in the relation table that are not query regions may be reduced by one step each time a query is made, and for data whose priority level is lower than the priority threshold or whose priority level is in a region of the multiple regions that is n-th behind the first, the data may be purged in the high priority query database.
And if the information to be queried corresponding to the current query operation is not matched in the high-priority query database, matching is performed in a plurality of areas which are not added in the high-priority query database in the relation table, and a topology path formed by all network resource information corresponding to the information to be queried is generated.
By the method for carrying out the preferential query on the divided areas of the relational table, the scope of the query can be reduced, the data which is most likely to be queried in the current period is placed in the high-priority query database to carry out the preferential search, and when a certain area of a county is queried continuously, the current query is characterized to be mainly the query of the area, so that the data of the area is placed in the high-priority query database to carry out the preferential search, and the query efficiency can be further improved; if the query of the high-priority query database is not successful, the secondary query can be performed in the complete relation table, and the query is not performed in the currently stored area of the high-priority query database during the secondary query.
In a possible implementation manner, after the relationship table is built, maintenance of the relationship table is required, and the relationship table can be maintained according to the data of the OLT side in consideration of the fact that the OLT side is connected with the network using device.
Specifically, after all information of the corresponding optical cat is recorded in the OLT, the OLT identifies the unique optical cat through the MAC address after the optical cat successfully registers for online, if the optical cat drops, the OLT side learns that the MAC address cannot be learned, and considers that the MAC address recorded in the third relationship table has failed, but there are multiple situations of the optical cat going offline, for example, power failure, optical path failure, etc., and the condition of going offline needs to be judged.
For example, the MAC addresses of all the optical cats corresponding to each optical line terminal are monitored in real time, and when the MAC address of any optical cat fails, a timer is used to start recording the failure time; when the failure time of the MAC address of the photo cat is greater than the failure threshold, the offline condition of the photo cat is serious, and the photo cat cannot be recovered in a short time, so that the MAC address of the photo cat and associated data corresponding to the MAC address of the photo cat are cleared in the relation table.
When the failure time of the MAC address of the optical cat is smaller than the failure threshold, the MAC address of the optical cat is on line again, possibly because the optical cat is powered off briefly or the optical cat is manually removed from the optical cat, the timer is cleared, and whether the associated data of the MAC address on line again matches with the data in the relation table is also required to be determined; if the associated data of the re-online MAC address accords with the data in the relation table, keeping the corresponding data in the relation table unchanged; if the associated data of the re-online MAC address does not coincide with the data in the relation table, the use point position before the photo cat can be considered to be canceled, the photo cat is recycled and then reused at other positions, the original associated data of the MAC address in the relation table is covered, and the situation that the data conflict to cause inaccurate query results is prevented.
In another possible implementation manner, the relation table is divided into a plurality of areas according to the service range of the network resource, and when the data in the relation table is changed, the data change times of each area in the plurality of areas in the calibration time period are recorded; and when the data change times of any area in the calibration time period are greater than the change threshold value, all the data in the area are acquired again and are associated.
The setting of the change threshold value can be performed according to actual conditions, when the number of data change times of a certain area in a calibration period is larger than the change threshold value, the data change range in the area is excessively large, for example, the change is large in 1 week in the calibration period, when the condition occurs, the area is indicated to have larger change, and most common equipment is off-line, new equipment is on line and the like, so that all data in the area can be recalculated, and the value of the change threshold value can be customized according to the requirements of actual application.
The method provided by the application has at least the following beneficial effects:
1. integrating and associating network resource information of the BRAS side, the exchanger side and the OLT side, and automatically establishing an association table with association relation;
2. when the scenes of the loss of the MAC address, the abnormal disconnection of the light cat, the failure of the MAC address and the like of any equipment occur, the relation table is updated and maintained, and the accuracy of the relation table is improved;
3. when inquiring, the information to be inquired searches and matches in the association table, namely, a topology path formed by all network resource information corresponding to the information to be inquired can be generated, and the inquiry result is obtained without respectively intervening in different systems for each inquiry, so that the complicated steps of the inquiry process are reduced, the inquiry efficiency is improved, and the waste of human resources is reduced;
4. the high-priority query database is established, and the areas with frequent query in the association table are added in the high-priority query database for priority query, so that the query range is reduced, and the query speed is improved.
Referring to fig. 3, a functional block diagram of a network resource information searching device in an optical access network according to an embodiment of the present application is shown, where the device includes:
an obtaining module 100, configured to obtain information to be queried in response to a query operation for network resource information;
the matching module 200 is configured to perform matching in a pre-constructed relationship table according to the information to be queried, where the relationship table includes a first relationship table, a second relationship table and a third relationship table that have an association relationship, the first relationship table includes all network resource information corresponding to each broadband access server, the second relationship table includes all network resource information corresponding to each switch, and the third relationship table includes all network resource information corresponding to each optical line terminal;
and the output module 300 is configured to extract all network resource information having an association relationship with the information to be queried from the first relationship table, the second relationship table and the third relationship table, and output a topology path formed by all network resource information corresponding to the information to be queried.
Optionally, the apparatus further comprises:
the first relation table generation module is used for acquiring all network resource information corresponding to each broadband access server, including MAC address, IP address, VLAN and ETH port information, and constructing the first relation table;
a second relation table generating module, configured to obtain all network resource information corresponding to each switch, including MAC address, VLAN and ETH port information, and construct the second relation table;
a third relation table generating module, configured to obtain all network resource information corresponding to each optical line terminal, including a MAC address, a VLAN, a PON port, and a cat SN code, and construct the third relation table;
and the association relation mapping module is used for mapping association relation among the first relation table, the second relation table and the third relation table to generate the relation table.
Optionally, the association mapping module includes:
a first mapping unit, configured to map an association relationship between the first relationship table and the second relationship table based on a MAC address;
and the second mapping unit is used for mapping the association relation between the second relation table and the third relation table based on the ETH port and the MAC address.
Optionally, the apparatus further comprises:
the monitoring module monitors the MAC addresses of all the optical cats corresponding to each optical line terminal in real time;
the timing module is used for recording the failure time when the MAC address of any light cat fails;
and the clearing module is used for clearing the MAC address of the photo cat and associated data corresponding to the MAC address of the photo cat in the relation table when the failure time of the MAC address of the photo cat is greater than the failure threshold value.
Optionally, the apparatus further comprises:
the judging module is used for determining whether the associated data of the MAC address which is on line again accords with the data in the relation table or not under the condition that the MAC address of the optical cat is on line again when the failure time of the MAC address of the optical cat is smaller than the failure threshold value;
the changing module is used for keeping the relation table unchanged when the associated data of the re-online MAC address is consistent with the data in the relation table; and the associated data of the MAC address which is on line again does not accord with the data in the relation table, and the original associated data of the MAC address in the relation table is covered.
Optionally, the apparatus further comprises:
the change times determining module is used for dividing the relation table into a plurality of areas according to the range of network resource service and recording the data change times of each area in the plurality of areas in a calibration time period;
and the updating module is used for re-acquiring and correlating all data in any area when the data change times of the area in the calibration time period are greater than a change threshold value.
Optionally, the apparatus further comprises:
the priority lifting module is used for lifting the priority level of the query area corresponding to the query operation by one level, wherein the query area is at least one of a plurality of areas divided by the relation table;
the data migration module is used for storing all data corresponding to the region in the first relation table, the second relation table and the third relation table in the high-priority query database when the priority level of any region is greater than the priority threshold value and the priority level of the region is arranged in the first n bits in the plurality of regions;
and the priority matching module is used for responding to the current query operation aiming at the network resource information and preferentially matching the high-priority query database.
Optionally, the apparatus further comprises:
and the secondary query module is used for generating a topology path formed by all network resource information corresponding to the information to be queried if the information to be queried corresponding to the current query operation is not matched in the high-priority query database, and the matching is performed in a plurality of areas of the high-priority query database which are not added in the relation table.
The embodiment of the application also provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the method for searching network resource information in the optical access network is realized.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may 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, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the application.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The principles and embodiments of the present application have been described herein with reference to specific examples, the description of which is intended only to assist in understanding the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.
Claims (10)
1. A method for searching network resource information in an optical access network, the method comprising:
responding to the query operation aiming at the network resource information, and acquiring the information to be queried;
matching is carried out in a pre-constructed relation table according to the information to be queried, wherein the relation table comprises a first relation table, a second relation table and a third relation table which have association relations, the first relation table comprises all network resource information corresponding to each broadband access server, the second relation table comprises all network resource information corresponding to each switch, and the third relation table comprises all network resource information corresponding to each optical line terminal;
and extracting all network resource information with association relation with the information to be queried from the first relationship table, the second relationship table and the third relationship table respectively, and outputting a topology path formed by all network resource information corresponding to the information to be queried.
2. The method of claim 1, wherein constructing the relationship table comprises:
acquiring all network resource information corresponding to each broadband access server, including MAC address, IP address, VLAN and ETH port information, and constructing the first relation table;
acquiring all network resource information corresponding to each switch, including MAC address, VLAN and ETH port information, and constructing the second relation table;
acquiring all network resource information corresponding to each optical line terminal, including an MAC address, a VLAN, a PON port and a cat SN code, and constructing the third relation table;
and mapping association relations among the first relation table, the second relation table and the third relation table to generate the relation table.
3. The method of claim 2, wherein mapping the association relationship of the first relationship table, the second relationship table, and the third relationship table, generating the relationship table, comprises:
the first relation table and the second relation table are mapped based on the MAC address;
and the second relation table and the third relation table are used for mapping association relation based on an ETH port and an MAC address.
4. The method according to claim 2, wherein the method further comprises:
monitoring MAC addresses of all optical cats corresponding to each optical line terminal in real time;
recording failure time when the MAC address of any light cat fails;
and when the failure time of the MAC address of the photo cat is greater than the failure threshold value, clearing the MAC address of the photo cat and associated data corresponding to the MAC address of the photo cat in the relation table.
5. The method of claim 4, wherein when the MAC address of any one of the light cats fails, after recording the failure time, further comprising:
when the failure time of the MAC address of the light cat is smaller than the failure threshold value, determining whether the associated data of the MAC address which is on line again accords with the data in the relation table or not under the condition that the MAC address of the light cat is on line again;
if the associated data of the re-online MAC address accords with the data in the relation table, keeping the relation table unchanged;
and if the associated data of the re-online MAC address does not accord with the data in the relation table, covering the original associated data of the MAC address in the relation table.
6. The method according to claim 1, wherein the method further comprises:
dividing the relation table into a plurality of areas according to the service range of the network resource, and recording the data change times of each area in the plurality of areas in a calibration time period;
and when the data change times of any area in the calibration time period are larger than a change threshold value, acquiring all data in the area again and correlating.
7. The method of claim 6, wherein the method further comprises:
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 a plurality of regions divided by the relation table;
when the priority level of any area is greater than the priority threshold value and the priority level of the area is arranged in the first n bits in a plurality of areas, storing all data corresponding to the area in the first relation table, the second relation table and the third relation table in a high-priority query database;
in response to a current query operation for network resource information, a match is preferentially made at the high priority query database.
8. The method of claim 7, wherein, in response to a current query operation of network resource information, prior to matching the high priority query database, the method further comprises:
and if the information to be queried corresponding to the current query operation is not matched in the high-priority query database, matching is performed in a plurality of areas which are not added in the high-priority query database in the relation table, and a topology path formed by all network resource information corresponding to the information to be queried is generated.
9. A network resource information searching device in an optical access network, the device comprising:
the acquisition module is used for responding to the query operation aiming at the network resource information and acquiring the information to be queried;
the matching module is used for matching in a pre-constructed relation table according to the information to be queried, wherein the relation table comprises a first relation table, a second relation table and a third relation table which have association relations, the first relation table comprises all network resource information corresponding to each broadband access server, the second relation table comprises all network resource information corresponding to each switch, and the third relation table comprises all network resource information corresponding to each optical line terminal;
and the output module is used for respectively extracting all network resource information with an association relation with the information to be queried from the first relationship table, the second relationship table and the third relationship table and outputting a topology path formed by all network resource information corresponding to the information to be queried.
10. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, the computer program, when executed by a processor, implementing a method for searching network resource information in an optical access network according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310782900.5A CN116881294A (en) | 2023-06-28 | 2023-06-28 | Network resource information searching method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310782900.5A CN116881294A (en) | 2023-06-28 | 2023-06-28 | Network resource information searching method, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116881294A true CN116881294A (en) | 2023-10-13 |
Family
ID=88261381
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310782900.5A Pending CN116881294A (en) | 2023-06-28 | 2023-06-28 | Network resource information searching method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116881294A (en) |
-
2023
- 2023-06-28 CN CN202310782900.5A patent/CN116881294A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104394008B (en) | A kind of method and its system of unified configuration different type interchanger | |
EP3780498A1 (en) | Network deployment method and apparatus | |
CN108259215B (en) | Equipment management method and device | |
CN104753697B (en) | A kind of method, equipment and system controlling the automatic beginning of the network equipment | |
CN101459534B (en) | Network topology collecting method for tree shaped network and network equipment | |
CN106576054A (en) | Network device configuration framework | |
CN105577420A (en) | Method and system for automatic generation of server network topology | |
CN112840601B (en) | Method, apparatus and computer readable medium for configuring an apparatus to be named | |
US10411911B2 (en) | Network as service service cross-domain orchestration method, orchestration device, and control device | |
CN105376101A (en) | Method and system for enabling physical device to be connected into virtual network | |
CN113852476A (en) | Method, device and system for determining abnormal event associated object | |
CN113868367A (en) | Method, device and system for constructing knowledge graph and computer storage medium | |
CN107221939A (en) | The control of reactive power compensating group network system and its capacity diffused integration compensation method | |
CN116881294A (en) | Network resource information searching method, device and storage medium | |
EP3160089B1 (en) | Method and apparatus for generating network dependencies | |
CN114285692B (en) | Communication control system, identity determination method, distribution method and equipment | |
CN109687985B (en) | Automatic configuration method and system for process level network of transformer substation | |
CN106656779B (en) | A kind of aggregation gateway and its cut-in method | |
CN112543120B (en) | OLT (optical line terminal) opening automation configuration method and device | |
CN113824584A (en) | Network equipment management method and device | |
CN114244763A (en) | Dynamic network topology management method and system based on rule engine | |
CN112822054A (en) | Remote management method and system for multiple related devices by using same network element | |
CN112350905A (en) | Method and device for quickly confirming service after operation business router is changed | |
CN115883456B (en) | Uplink outlet identification method, device and equipment, medium and product | |
Ohmori et al. | The equal deepest vertex first reboot: Rebooting network edge switches in a campus network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |