CN111444186A - Information management method, tester, equipment and computer readable storage medium - Google Patents

Information management method, tester, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111444186A
CN111444186A CN202010236454.4A CN202010236454A CN111444186A CN 111444186 A CN111444186 A CN 111444186A CN 202010236454 A CN202010236454 A CN 202010236454A CN 111444186 A CN111444186 A CN 111444186A
Authority
CN
China
Prior art keywords
information
network
storage
management module
storing
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.)
Granted
Application number
CN202010236454.4A
Other languages
Chinese (zh)
Other versions
CN111444186B (en
Inventor
陈文博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Teletest Technology Co ltd
Original Assignee
Beijing Teletest Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Teletest Technology Co ltd filed Critical Beijing Teletest Technology Co ltd
Priority to CN202010236454.4A priority Critical patent/CN111444186B/en
Publication of CN111444186A publication Critical patent/CN111444186A/en
Application granted granted Critical
Publication of CN111444186B publication Critical patent/CN111444186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Abstract

The application discloses an information management method, a tester, equipment and a computer readable storage medium, wherein the method comprises the following steps: after the network information management module receives the first information, if the network information management module determines that the first information is configuration information, the network information management module stores the first information according to a first storage mode; and if the network information management module determines that the first information is the learning information, the network information management module stores the first information according to a second storage mode. The first storage mode can meet the storage requirement of the configuration information and the second storage mode can meet the storage requirement of the learning information, so that the configuration information stored according to the first storage mode and the learning information stored according to the second storage mode can be reasonably stored, reasonable management of the configuration information and the learning information is facilitated, and the occurrence of crash of a memory use-up program caused by large amount of information can be effectively avoided.

Description

Information management method, tester, equipment and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to an information management method, a tester, an apparatus, and a computer-readable storage medium.
Background
Currently, analog testing of networks is typically accomplished with the aid of a tester. The tester may include a front-end portion and a back-end portion; furthermore, the background part can perform simulation test of the network according to the configuration information sent by the front-end part. Because the quantity of the configuration information sent by the front end part and the quantity of the learning information generated in the network simulation test process are both larger, the background part of the tester cannot reasonably manage the information, so that the memory is used up, and the program is crashed.
Disclosure of Invention
In order to solve the above technical problems in the prior art, the present application provides an information management method, a tester, a device, and a computer-readable storage medium, which can reasonably manage configuration information and learning information, and thus can effectively prevent a background part of the tester from crashing a memory program due to the fact that the information cannot be reasonably managed.
In order to achieve the above purpose, the technical solutions provided in the embodiments of the present application are as follows:
the embodiment of the application provides an information management method, which is characterized in that the information management method is applied to a network information management module, and the method comprises the following steps:
receiving first information, wherein the first information is used for representing interaction information among different network devices in a network;
when the first information is determined to be configuration information, storing the first information according to a first storage mode, wherein the first storage mode meets the storage requirement of the configuration information;
and when the first information is determined to be learning information, storing the first information according to a second storage mode, wherein the second storage mode meets the storage requirement of the learning information.
Optionally, the first information includes at least one piece of the mutual information, and/or the mutual information is a link status broadcast L SA.
Optionally, the first storage manner is determined according to an information type of the first information.
Optionally, the storing the first information according to a second storage manner specifically includes:
storing the first information to a database upon determining that the remaining capacity of the first storage space is below a first threshold.
Optionally, when it is determined that the remaining capacity of the first storage space is lower than the first threshold, storing the first information in the database specifically includes:
when the residual capacity of the first storage space is determined to be lower than a first threshold value and higher than a second threshold value, and the utilization rate of the central processing unit is determined to be lower than a third threshold value, storing the first information to a database; wherein the first threshold is higher than the second threshold;
when the residual capacity of a first storage space is determined to be lower than a first threshold value and higher than a second threshold value and the utilization rate of a central processing unit is determined to be not lower than a third threshold value, storing the first information into the first storage space;
storing the first information to a database upon determining that the remaining capacity of the first storage space is not above a second threshold.
Optionally, the method further includes:
and when the utilization rate of the central processing unit is lower than a third threshold value, transferring target interaction information stored in the first storage space according to a preset storage structure to the database, wherein the target interaction information comprises the configuration information and/or the learning information.
Optionally, the method further includes:
receiving a configuration information deleting request;
and deleting the configuration information to be deleted carried by the configuration information deletion request from the network information management module.
Optionally, the method further includes:
receiving an information searching request sent by network equipment;
searching for interactive information corresponding to the information identification according to the information identification carried by the information searching request;
and feeding back the interactive information corresponding to the information identification to the network equipment.
Optionally, the method further includes:
receiving an information updating request, wherein the information updating request carries target information;
searching for interactive information corresponding to the information identifier of the target information according to the information identifier of the target information, and determining the interactive information as information to be replaced;
and replacing the information to be replaced by the target information.
The embodiment of the application also provides a tester which comprises any network information management module provided by the embodiment of the application.
An embodiment of the present application further provides an apparatus, where the apparatus includes a processor and a memory:
the memory is used for storing a computer program;
the processor is used for executing any implementation mode of the information management method provided by the embodiment of the application according to the computer program.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used for storing a computer program, and the computer program is used for executing any implementation manner of the information management method provided in the embodiment of the present application.
Compared with the prior art, the embodiment of the application has at least the following advantages:
in the information management method provided by the embodiment of the application, after receiving first information, if the network information management module determines that the first information is configuration information, the network information management module stores the first information according to a first storage mode; and if the network information management module determines that the first information is the learning information, the network information management module stores the first information according to a second storage mode. The first storage mode can meet the storage requirement of the configuration information and the second storage mode can meet the storage requirement of the learning information, so that the configuration information stored according to the first storage mode and the learning information stored according to the second storage mode can be reasonably stored, reasonable management of the configuration information and the learning information is facilitated, and the problem that the background part of the tester crashes due to the fact that the information cannot be reasonably managed to cause the memory exhaustion program can be effectively avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an information management method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a common header provided by an embodiment of the present application;
FIG. 3 is a structural diagram of a linked list provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a tree structure provided in the embodiment of the present application.
Detailed Description
Currently, a tester typically includes a front-end portion and a back-end portion; furthermore, the background part can perform simulation test of the network according to the configuration information sent by the front-end part. The amount of configuration information sent by the front end part and the amount of learning information generated in the network simulation test process are both large, so that the background can not reasonably manage the information, and the memory program is crashed. An Open Shortest Path First (OSPF) routing protocol is taken as an example to be described below.
When the OSPF routing protocol is tested by using the tester, a user needs to configure a link State broadcast (L ink-State Advertisement, L SA) of the OSPF routing protocol at a front-end part, so that the front-end part can send the configured L SA to a background part, so that the back-end part can test the OSPF routing protocol based on the L SAs, wherein, because the background part needs to store L SAs of each configuration one by one, and the data volume of the configured L SAs is large, the background part needs to consume a large amount of memory space to store L SAs for storing the configurations, which easily causes the memory program of the background part to crash.
In order to solve the above technical problem, an embodiment of the present application provides an information management method, including: the network information management module receives first information, wherein the first information is used for representing interaction information among different network devices in a network; when the first information is determined to be configuration information, the network information management module stores the first information according to a first storage mode, wherein the first storage mode meets the storage requirement of the configuration information; and when the first information is determined to be the learning information, the network information management module stores the first information according to a second storage mode, wherein the second storage mode meets the storage requirement of the learning information.
The first storage mode can meet the storage requirement of the configuration information and the second storage mode can meet the storage requirement of the learning information, so that the configuration information stored according to the first storage mode and the learning information stored according to the second storage mode can be reasonably stored, reasonable management of the configuration information and the learning information is facilitated, and the situation that the background part of the tester crashes the memory program due to the fact that the information cannot be reasonably managed can be effectively avoided. In addition, the storage requirement of the configuration information is used for representing the requirement which is met when the configuration information is stored by using the minimum storage space, so that the configuration information stored according to the first storage mode can occupy the minimum storage space, the memory consumption when the configuration information is stored in the background part can be effectively reduced, and the memory program crash caused by large information data volume can be effectively avoided; in addition, the storage requirement of the learning information is used for representing the requirement when the learning information is stored by using the minimum storage space, so that the learning information stored according to the second storage mode can occupy the minimum storage space, the memory consumption when the learning information is stored in the background part can be effectively reduced, and the memory use-up program crash caused by large information data volume can be effectively avoided.
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Method embodiment one
Referring to fig. 1, the figure is a flowchart of an information management method according to an embodiment of the present application.
The information management method provided by the embodiment of the application comprises the following steps of S1-S3:
s1: the network information management module receives the first information.
The network information management module is positioned at the background part of the tester; also, the network information management module is used to manage (e.g., add, delete, find, or update, etc.) configuration information as well as learning information.
The first information is used for representing interaction information between different network devices in the network, and the embodiment of the application does not limit the interaction information, for example, when the tester tests the OSPF routing protocol, the interaction information is L SA.
For example, when the tester tests the OSPF routing protocol, the first information may include at least one L SA.
The first information may be configuration information or learning information.
In addition, because a user can configure a plurality of pieces of interaction information simultaneously, so that a certain rule exists between the interaction information, at this time, in order to reduce the resource consumption of the plurality of pieces of interaction information in the transmission process or the storage process, each piece of configuration information can be set to comprise a plurality of pieces of interaction information, and particularly, each piece of configuration information can be set to comprise a plurality of pieces of interaction information with the same information type and changed address rule.
For example, when the interaction information is L SA, the information types may include Router L SA (Router L0 SA), Network L1 SA (Network L2 SA), Network Summary L3 SA (Network Summary L4 SA), ASBR Summary L5 SA (ASBR Summary L6 SA), Autonomous System External L7 SA (Autonomous System External L SA), group member L SA (GroupMembership L SA), NSSA External L SA (NSSA External L SA), External attribute L SA (External attributes L SA), and opaques L SA.
In addition, the network information generated during the network test is irregularly addressable, so that each piece of learning information only comprises one piece of interaction information, for example, when the tester tests the OSPF routing protocol, each piece of learning information can comprise one L SA.
Based on the above, in the embodiment of the present application, the network information management module may receive the first information, which specifically is: the network information management module may receive first information (i.e., configuration information) transmitted from a front-end portion of the tester and may also receive first information (i.e., learning information) generated during a network test.
In addition, the embodiment of the present application does not limit the specific implementation of the network information management module determining that the first information belongs to the configuration information or the learning information. For example, since the configuration information is received before the network test but the learning information is received during the network test, the network information management module may determine whether the first information is the configuration information or the learning information according to the reception time of the first information.
S2: and when the network information management module determines that the first information is the configuration information, storing the first information according to a first storage mode.
The first storage mode is used for representing a storage mode suitable for storing configuration information; moreover, the first storage mode meets the storage requirement of the configuration information. The storage requirement of the configuration information is used for representing the requirement achieved when the configuration information is stored by using the minimum storage space.
The first storage mode is determined according to the information type of the first information and/or the number of the interactive information in the first information. The information type of the first information is determined according to the information type of the interactive information included in the first information, and specifically includes: if the first information is configuration information, the information type of the first information is the same information type to which all the interactive information in the configuration information belongs; if the first information is the learning information, the first information is the information type to which the piece of learning information belongs. The number of pieces of mutual information in the first information is the number of pieces of mutual information included in the first information.
In addition, the present application provides two implementation manners of the first storage manner, which are described below separately.
As a first implementation manner, the first storage manner may use a common header (as shown in fig. 2) and a linked list structure (as shown in fig. 3) to store the configuration information, specifically: one piece of configuration information corresponds to one common header; and, a plurality of pieces of configuration information are stored in a linked list form.
In addition, the common header can include the number of the mutual information (i.e. count in fig. 2), the start address (i.e. first address in fig. 2), the step value of the address offset (i.e. increment in fig. 2), the length of the common header (i.e. prefix in fig. 2), and the common header can further includeIncluding the end address (i.e., endAddress in fig. 2), for example, when a piece of configuration information is stored using the common header shown in fig. 2, it can be known from fig. 2 that "count 10000" indicates that the configuration information includes 10000 pieces of interaction information (e.g., L SA), and "first address IDR"the addresses representing the 10000 mutual information are IDRThe offset is obtained by taking the reference address as a reference address; "increment ═ s1"the 10000 addresses of the mutual information are all in s1The offset is obtained as an offset step length; at this time, the address ID of the ith mutual information is knowniCan be IDi=IDR+(i-1)×s1Here, endAddress is ID10000
It should be noted that the information identifier is used for uniquely marking a piece of interactive information; moreover, the embodiment of the present application does not limit the specific content of the information identifier, for example, the information identifier may include an address of the interactive information.
Based on the content of the first implementation manner of the first storage manner, in the embodiment of the present application, the first storage manner may use a common header and a linked list structure to store the configuration information. Because one public head can represent the information identification of a plurality of pieces of mutual information, when the network information management module stores (or receives) the configuration information comprising a plurality of pieces of mutual information, the network information management module can directly store (or receive) the configuration information as a whole, and does not need to expand each piece of mutual information one by one for storage (or reception), thereby being beneficial to reducing the storage space consumption of the configuration information (or being beneficial to reducing the receiving time of the configuration information).
As a second embodiment, the first storage manner may employ a tree structure (e.g., a binary tree structure (e.g., a red-black tree structure in a map container)) to store, which is specifically to store each piece of interaction information in the configuration information as one node on the tree structure. for example, when the interaction information is L SA, the first storage manner may employ the tree structure shown in FIG. 4 to store.
Based on the above, in the embodiment of the present application, after determining that the first information is the configuration information, the network information management module may determine, as the first storage manner, a storage manner corresponding to the information type of the first information and/or the number of the interactive information in the first information, and store the first information according to the first storage manner. Different information types correspond to different storage manners, for example, some information types correspond to the first implementation manner of the first storage manner, and other information types correspond to the second implementation manner of the first storage manner. The different number of pieces of mutual information corresponds to the different storage methods, and for example, the second embodiment of the first storage method corresponds to the case where the number of pieces of mutual information is 1, and the first embodiment of the first storage method corresponds to the case where the number of pieces of mutual information is equal to or greater than 1. That is, when the first information includes 1 piece of interaction information, S2 is stored in a tree structure; however, when the first information includes at least 2 pieces of mutual information, S2 is stored using a common header (as shown in fig. 2) and a linked list structure (as shown in fig. 3).
S3: and when the first information is determined to be the learning information, the network information management module stores the first information according to a second storage mode, wherein the second storage mode meets the storage requirement of the learning information.
The second storage mode is used for representing a storage mode suitable for storing the learning information; moreover, the second storage mode meets the storage requirement of the learning information. The storage requirement of the learning information is used for representing the requirement when the learning information is stored by using the minimum storage space.
In addition, the second storage manner may use a tree structure (for example, a binary tree structure) for storage, which specifically includes: and storing each piece of learning information as a node on the tree structure.
In addition, because the amount of the learning information generated in the network test process is large, and the storage space (for example, the cache space of the tester) corresponding to the network information management module is limited, some learning information can be stored in the database in order to avoid the storage space from being collapsed. Based on this, the present application provides an implementation manner of S3, in which S3 may specifically be: the network information management module stores the first information to a database when the first information is determined to be learning information and the remaining capacity of the first storage space is lower than a first threshold. The first storage space is a storage space corresponding to the network information management module.
In this embodiment, after the network information management module receives a piece of learning information, the network information management module first determines whether the remaining capacity of the storage space corresponding to the network information management module at the current time is lower than a first threshold, and if so, stores the piece of learning information in a database so as to relieve the storage pressure of the storage space corresponding to the network information management module; if not, the piece of learning information is stored in a storage space corresponding to the network information management module. Therefore, the storage pressure of the storage space corresponding to the network information management module can be effectively relieved by means of the database, and the memory crash of the tester caused by overlarge storage pressure of the storage space corresponding to the network information management module is avoided.
In addition, another implementation manner of S3 is also provided in the examples of this application, where in this implementation manner, S3 may specifically include: (1) and the network information management module stores the first information to the database when determining that the residual capacity of the first storage space is lower than a first threshold and higher than a second threshold and determining that the utilization rate of a central processing unit is lower than a third threshold. (2) And the network information management module stores the first information into the first storage space when determining that the residual capacity of the first storage space is lower than a first threshold and higher than a second threshold and determining that the utilization rate of the central processing unit is not lower than a third threshold. (3) And the network information management module stores the first information to the database when determining that the residual capacity of the first storage space is not higher than a second threshold. Wherein the first threshold is higher than the second threshold.
The Central Processing Unit (CPU) is located in the tester.
The third threshold value is used to characterize the boundary between the idle state and the busy-green state of the CPU. If the utilization rate of the CPU is lower than a third threshold value, the CPU is in an idle state; and if the utilization rate of the CPU is not lower than the third threshold value, the CPU is in a busy green state. In addition, the third threshold value may be set in advance.
In this embodiment, after the network information management module receives a piece of learning information, the network information management module first determines whether the remaining capacity of the storage space corresponding to the network information management module at the current time is between a first threshold and a second threshold, so as to determine whether the CPU is in an idle state when it is determined that the remaining capacity of the storage space corresponding to the network information management module at the current time is between the first threshold and the second threshold, and if so, stores the first information in the database; if not, storing the first information into a first storage space; however, when it is determined that the remaining capacity of the storage space corresponding to the network information management module at the current time is not higher than the second threshold, the first information is stored in the database.
Note that the present embodiment does not limit the execution order of S2 and S3.
Based on the specific implementation manner of the information management method provided by the method embodiment, it can be seen that in the information management method provided by the embodiment of the present application, after the network information management module receives the first information, when the network information management module determines that the first information is the configuration information, the network information management module stores the first information according to a first storage manner; and when the network information management module determines that the first information is the learning information, the network information management module stores the first information according to a second storage mode.
The first storage mode can meet the storage requirement of the configuration information and the second storage mode can meet the storage requirement of the learning information, so that the configuration information stored according to the first storage mode and the learning information stored according to the second storage mode can be reasonably stored, reasonable management of the configuration information and the learning information is facilitated, and the situation that the background part of the tester crashes the memory program due to the fact that the information cannot be reasonably managed can be effectively avoided. In addition, the storage requirement of the configuration information is used for representing the requirement which is met when the configuration information is stored by using the minimum storage space, so that the configuration information stored according to the first storage mode can occupy the minimum storage space, the memory consumption when the configuration information is stored in the background part can be effectively reduced, and the memory program crash caused by large information data volume can be effectively avoided; in addition, the storage requirement of the learning information is used for representing the requirement when the learning information is stored by using the minimum storage space, so that the learning information stored according to the second storage mode can occupy the minimum storage space, the memory consumption when the learning information is stored in the background part can be effectively reduced, and the memory program collapse caused by large information data volume can be effectively avoided.
Method embodiment two
In some cases, the network information management module may also delete the configuration information. Based on this, the present application provides another implementation of the information management method, in which the information management method may further include, in addition to the above steps, S4-S5:
s4: the network information management module receives the configuration information deleting request.
The configuration information deletion request is a request for indicating deletion of configuration information; and the configuration information deleting request carries the configuration information to be deleted.
In addition, the configuration information deletion request is sent from the front end portion to the rear end portion of the tester.
Based on the above, in the embodiment of the present application, a user may delete stored configuration information by using a front end portion of a tester, so that the front end portion of the tester generates a configuration information deletion request based on a deletion operation of the user, and sends the configuration information deletion request to a background portion of the tester, so that before the background portion of the tester performs a next network test (for example, runs an OSPF routing protocol), a network information management module deletes configuration information to be deleted, which is carried in the configuration information deletion request, from the network information management module.
S5: and the network information management module deletes the configuration information to be deleted carried by the configuration information deletion request from the network information management module.
It should be noted that, in the embodiment of the present application, the network information management module directly deletes the whole configuration information (for example, deletes all configuration information 1 from the storage structure shown in fig. 3), instead of expanding the configuration information for deletion, which is favorable for improving the deletion efficiency of the configuration information.
Based on the above-mentioned relevant contents of S4 to S5, in the embodiment of the present application, after receiving the configuration information request sent by the front end portion of the tester, the network information management module may directly delete the whole configuration information to be deleted carried by the configuration information deletion request from the network information management module. This is advantageous for improving the efficiency of deleting the configuration information.
In some cases, the network information management module may also look up configuration information or learning information. Based on this, the present application provides another implementation manner of the information management method, in which the information management method may further include, in addition to all or part of the above steps, S6 to S8:
s6: the network information management module receives an information search request sent by the network equipment.
The information searching request is a request for indicating to search configuration information or learning information; moreover, the information searching request carries the information identifier of the interactive information to be searched.
In addition, the information search request is generated by the network equipment in the network test process, and when the interactive information is L SA, the generation scene of the information search request is as follows:
when the first network device shows the corresponding L SA information to the second network device, the second network device compares L SA information corresponding to the second network device with L SA information corresponding to the first network device, and when the second network device determines that the L SA information corresponding to the second network device lacks the first L SA information, the second network device may send an acquisition request of the first L SA information to the first network device, so that after the first network device receives the acquisition request of the first L SA information, the first network device may first generate an information search request based on the acquisition request of the first L SA information, so that the information search request carries an information identifier of the first L SA information, and then send the information search request to the network information management module, so that the network information management module searches for the first L SA information based on the information identifier of the first L SA information carried by the information search request, and feeds back the first information L SA information to the first network device to improve the reception of the information of the first network device corresponding second network devices 3884, where the information is any one of the first 464 SA information corresponding network device.
In addition, the embodiment of the present application is not limited to a network device, and for example, the network device may be a router, a switch, or the like.
S7: and the network information management module searches for the interactive information corresponding to the information identification according to the information identification carried by the information search request.
In this embodiment of the application, after the network information management module receives the information search request, the network information management module may search for the interactive information corresponding to the information identifier according to the information identifier carried in the information search request, and the interactive information may specifically be: the network information management module matches the information identifier with the stored learning information and/or configuration information respectively so as to determine the interactive information in the learning information and/or configuration information successfully matched with the information identifier as the interactive information corresponding to the information identifier.
The process of the network information management module judging whether the information identifier is matched with the configuration information may be: the network information management module may match the information identifier with a common header of the stored configuration information if the information identifier matches the configurationIf the matching of the public header of the information is successful, the information identifier is determined to be successfully matched with the configuration information, so that the interactive information corresponding to the information identifier is determined from the successfully matched configuration information; and if the matching of the information identifier and the public head of the configuration information fails, determining that the matching of the information identifier and the configuration information fails, and continuously matching the information identifier with other unmatched configuration information. For example, when the information identifier includes an interactive information address IDIdentificationThen, the network information management module judges the information identification IDIdentificationThe process of matching with the configuration information may be: the network information management module can identify the ID according to the informationIdentificationAnd a start address ID in a common header of the configuration informationRStep value s of address offset1Determining and using NIdentification=(IDIdentification-IDR)÷s1Determining the number N of step sizes corresponding to the information identifierIdentificationIf the step size number N corresponding to the information identifierIdentificationThe number N of interactive information in the common header lower than the configuration informationallIf yes, the information identifier is successfully matched with the configuration information; if the step size number N corresponding to the information identifierIdentificationThe number N of interactive information in the common header is not less than the configuration informationallThen it is determined that the information identifier fails to match the configuration information.
It should be noted that the network information management module may search the learning information in a storage space and/or a database corresponding to the network information management module.
S8: and the network information management module feeds back the interactive information corresponding to the information identification to the network equipment.
Based on the contents of S6 to S8, after the network information management module receives an information search request sent by a network device, the network information management module may search, based on an information identifier carried in the information search request, interaction information corresponding to the information identifier from stored configuration information and/or learning information, so as to feed back the interaction information corresponding to the information identifier to the network device, which is favorable for implementing rationalized management of the configuration information and the learning information.
In some cases, the network information management module may also update configuration information or learning information. Based on this, the present application provides another implementation manner of the information management method, in which the information management method may further include, in addition to all or part of the above steps, S9 to S11:
s9: the network information management module receives an information update request.
The information updating request refers to a request for indicating the updating of the interactive information; moreover, the information update request carries the target information.
In addition, the information update request may be transmitted from the front end portion to the back end portion of the tester, or may be transmitted from the network device to the back end portion.
As a first example, S9 may specifically be: the user may update the stored configuration information using the front-end portion of the tester, so that the front-end portion of the tester generates an information update request based on the update operation of the user, and sends the information update request to the back-end portion of the tester, so that the network information management module replaces the stored configuration information with the target information carried by the information update request before the back-end portion of the tester performs the next network test (e.g., runs the OSPF routing protocol).
As a second example, S9 may specifically be: in the network testing process, when the network device needs to replace the stored interaction information with the target information, the network device generates an information updating request based on the target information and sends the information updating request to the network information management module, so that the network information management module replaces the stored interaction information with the target information carried by the information updating request before the background part of the tester performs the network test (for example, runs the OSPF routing protocol) next time.
S10: and the network information management module searches for the interactive information corresponding to the information identifier of the target information according to the information identifier of the target information, and determines the interactive information as the information to be replaced.
It should be noted that the search process in S10 is similar to the search process in S7, and please refer to the above for technical details.
S11: and the network information management module replaces the information to be replaced by the target information.
Based on the above-mentioned relevant contents of S9 to S11, in the embodiment of the present application, the network information management module may replace the stored interaction information with the target information carried by the information update request. This is advantageous for realizing rational management of configuration information and learning information.
In some cases, the network information management module may further migrate the interaction information stored in the first storage space according to the tree structure to the database for storage. Based on this, the present application provides another implementation of the information management method, in which the information management method may further include, in addition to all or part of the above steps, S12:
s12: and when determining that the utilization rate of the central processing unit is lower than a third threshold value, the network information management module forwards target interaction information stored in the first storage space according to a preset storage structure to the database, wherein the target interaction information comprises the configuration information and/or the learning information.
The preset storage structure may be preset, for example, the preset storage structure may be a tree structure.
The target interactive information refers to interactive information which needs to be transferred to a database; moreover, the target interaction information is not limited in the embodiments of the present application, for example, the target interaction information may include configuration information, learning information, configuration information, and learning information.
Based on the above, when the network information management module determines that the CPU is in the idle state, the network information management module uploads the target interaction information stored in the first storage space according to a preset storage structure (e.g., a tree structure) to the database, so that the subsequent network information management module can obtain the uploaded target interaction information from the database. This is advantageous for realizing rational management of configuration information and learning information.
Based on the information management method provided by the foregoing method embodiment, an embodiment of the present application further provides a tester, where the tester includes a network information management module, and the network information management module may execute any implementation of the information management method provided above, that is, the network information management module may execute the following steps:
receiving first information, wherein the first information is used for representing interaction information among different network devices in a network;
when the first information is determined to be configuration information, storing the first information according to a first storage mode, wherein the first storage mode meets the storage requirement of the configuration information;
and when the first information is determined to be learning information, storing the first information according to a second storage mode, wherein the second storage mode meets the storage requirement of the learning information.
Optionally, the first information includes at least one piece of the mutual information, and/or the mutual information is a link status broadcast L SA.
Optionally, the first storage manner is determined according to an information type of the first information.
Optionally, the storing the first information according to a second storage manner specifically includes:
storing the first information to a database upon determining that the remaining capacity of the first storage space is below a first threshold.
Optionally, when it is determined that the remaining capacity of the first storage space is lower than the first threshold, storing the first information in the database specifically includes:
when the residual capacity of the first storage space is determined to be lower than a first threshold value and higher than a second threshold value, and the utilization rate of the central processing unit is determined to be lower than a third threshold value, storing the first information to a database; wherein the first threshold is higher than the second threshold;
when the residual capacity of a first storage space is determined to be lower than a first threshold value and higher than a second threshold value and the utilization rate of a central processing unit is determined to be not lower than a third threshold value, storing the first information into the first storage space;
storing the first information to a database upon determining that the remaining capacity of the first storage space is not above a second threshold.
Optionally, the method further includes:
and when the utilization rate of the central processing unit is lower than a third threshold value, transferring target interaction information stored in the first storage space according to a preset storage structure to the database, wherein the target interaction information comprises the configuration information and/or the learning information.
Optionally, the method further includes:
receiving a configuration information deleting request;
and deleting the configuration information to be deleted carried by the configuration information deletion request from the network information management module.
Optionally, the method further includes:
receiving an information searching request sent by network equipment;
searching for interactive information corresponding to the information identification according to the information identification carried by the information searching request;
and feeding back the interactive information corresponding to the information identification to the network equipment.
Optionally, the method further includes:
receiving an information updating request, wherein the information updating request carries target information;
searching for interactive information corresponding to the information identifier of the target information according to the information identifier of the target information, and determining the interactive information as information to be replaced;
and replacing the information to be replaced by the target information.
Based on the information management method provided by the above method embodiment, an embodiment of the present application further provides a device, which includes a processor and a memory. Wherein the memory is for storing a computer program; the processor is configured to execute any embodiment of the information management method provided above according to the computer program, that is, the processor may execute the following steps:
receiving first information, wherein the first information is used for representing interaction information among different network devices in a network;
when the first information is determined to be configuration information, storing the first information according to a first storage mode, wherein the first storage mode meets the storage requirement of the configuration information;
and when the first information is determined to be learning information, storing the first information according to a second storage mode, wherein the second storage mode meets the storage requirement of the learning information.
Optionally, the first information includes at least one piece of the mutual information, and/or the mutual information is a link status broadcast L SA.
Optionally, the first storage manner is determined according to an information type of the first information.
Optionally, the storing the first information according to a second storage manner specifically includes:
storing the first information to a database upon determining that the remaining capacity of the first storage space is below a first threshold.
Optionally, when it is determined that the remaining capacity of the first storage space is lower than the first threshold, storing the first information in the database specifically includes:
when the residual capacity of the first storage space is determined to be lower than a first threshold value and higher than a second threshold value, and the utilization rate of the central processing unit is determined to be lower than a third threshold value, storing the first information to a database; wherein the first threshold is higher than the second threshold;
when the residual capacity of a first storage space is determined to be lower than a first threshold value and higher than a second threshold value and the utilization rate of a central processing unit is determined to be not lower than a third threshold value, storing the first information into the first storage space;
storing the first information to a database upon determining that the remaining capacity of the first storage space is not above a second threshold.
Optionally, the method further includes:
and when the utilization rate of the central processing unit is lower than a third threshold value, transferring target interaction information stored in the first storage space according to a preset storage structure to the database, wherein the target interaction information comprises the configuration information and/or the learning information.
Optionally, the method further includes:
receiving a configuration information deleting request;
and deleting the configuration information to be deleted carried by the configuration information deletion request from the network information management module.
Optionally, the method further includes:
receiving an information searching request sent by network equipment;
searching for interactive information corresponding to the information identification according to the information identification carried by the information searching request;
and feeding back the interactive information corresponding to the information identification to the network equipment.
Optionally, the method further includes:
receiving an information updating request, wherein the information updating request carries target information;
searching for interactive information corresponding to the information identifier of the target information according to the information identifier of the target information, and determining the interactive information as information to be replaced;
and replacing the information to be replaced by the target information.
Based on the information management method provided by the foregoing method embodiment, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is used to execute any implementation manner of the information management method provided above, that is, the computer program is used to execute the following steps:
receiving first information, wherein the first information is used for representing interaction information among different network devices in a network;
when the first information is determined to be configuration information, storing the first information according to a first storage mode, wherein the first storage mode meets the storage requirement of the configuration information;
and when the first information is determined to be learning information, storing the first information according to a second storage mode, wherein the second storage mode meets the storage requirement of the learning information.
Optionally, the first information includes at least one piece of the mutual information, and/or the mutual information is a link status broadcast L SA.
Optionally, the first storage manner is determined according to an information type of the first information.
Optionally, the storing the first information according to a second storage manner specifically includes:
storing the first information to a database upon determining that the remaining capacity of the first storage space is below a first threshold.
Optionally, when it is determined that the remaining capacity of the first storage space is lower than the first threshold, storing the first information in the database specifically includes:
when the residual capacity of the first storage space is determined to be lower than a first threshold value and higher than a second threshold value, and the utilization rate of the central processing unit is determined to be lower than a third threshold value, storing the first information to a database; wherein the first threshold is higher than the second threshold;
when the residual capacity of a first storage space is determined to be lower than a first threshold value and higher than a second threshold value and the utilization rate of a central processing unit is determined to be not lower than a third threshold value, storing the first information into the first storage space;
storing the first information to a database upon determining that the remaining capacity of the first storage space is not above a second threshold.
Optionally, the method further includes:
and when the utilization rate of the central processing unit is lower than a third threshold value, transferring target interaction information stored in the first storage space according to a preset storage structure to the database, wherein the target interaction information comprises the configuration information and/or the learning information.
Optionally, the method further includes:
receiving a configuration information deleting request;
and deleting the configuration information to be deleted carried by the configuration information deletion request from the network information management module.
Optionally, the method further includes:
receiving an information searching request sent by network equipment;
searching for interactive information corresponding to the information identification according to the information identification carried by the information searching request;
and feeding back the interactive information corresponding to the information identification to the network equipment.
Optionally, the method further includes:
receiving an information updating request, wherein the information updating request carries target information;
searching for interactive information corresponding to the information identifier of the target information according to the information identifier of the target information, and determining the interactive information as information to be replaced;
and replacing the information to be replaced by the target information.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The foregoing is merely a preferred embodiment of the invention and is not intended to limit the invention in any manner. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Those skilled in the art can make numerous possible variations and modifications to the present teachings, or modify equivalent embodiments to equivalent variations, without departing from the scope of the present teachings, using the methods and techniques disclosed above. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention, unless the contents of the technical solution of the present invention are departed.

Claims (12)

1. An information management method is applied to a network information management module, and comprises the following steps:
receiving first information, wherein the first information is used for representing interaction information among different network devices in a network;
when the first information is determined to be configuration information, storing the first information according to a first storage mode, wherein the first storage mode meets the storage requirement of the configuration information;
and when the first information is determined to be learning information, storing the first information according to a second storage mode, wherein the second storage mode meets the storage requirement of the learning information.
2. The method of claim 1, wherein the first information comprises at least one piece of the interaction information, and/or wherein the interaction information is a link state broadcast L SA.
3. The method of claim 1, wherein the first storage manner is determined according to an information type of the first information.
4. The method according to claim 1, wherein the storing the first information according to a second storage manner specifically comprises:
storing the first information to a database upon determining that the remaining capacity of the first storage space is below a first threshold.
5. The method according to claim 4, wherein storing the first information to a database upon determining that the remaining capacity of the first storage space is below a first threshold value specifically comprises:
storing the first information to the database when determining that the remaining capacity of the first storage space is lower than a first threshold and higher than a second threshold and determining that the utilization rate of a central processor is lower than a third threshold; wherein the first threshold is higher than the second threshold;
when the residual capacity of the first storage space is determined to be lower than a first threshold value and higher than a second threshold value, and the utilization rate of the central processing unit is determined to be not lower than a third threshold value, storing the first information into the first storage space;
storing the first information to the database upon determining that the remaining capacity of the first storage space is not above a second threshold.
6. The method according to claim 4 or 5, characterized in that the method further comprises:
and when the utilization rate of the central processing unit is lower than a third threshold value, transferring target interaction information stored in the first storage space according to a preset storage structure to the database, wherein the target interaction information comprises the configuration information and/or the learning information.
7. The method of claim 1, further comprising:
receiving a configuration information deleting request;
and deleting the configuration information to be deleted carried by the configuration information deletion request from the network information management module.
8. The method of claim 1, further comprising:
receiving an information searching request sent by network equipment;
searching for interactive information corresponding to the information identification according to the information identification carried by the information searching request;
and feeding back the interactive information corresponding to the information identification to the network equipment.
9. The method of claim 1, further comprising:
receiving an information updating request, wherein the information updating request carries target information;
searching for interactive information corresponding to the information identifier of the target information according to the information identifier of the target information, and determining the interactive information as information to be replaced;
and replacing the information to be replaced by the target information.
10. A tester comprising the network information management module of any one of claims 1 to 9.
11. An apparatus, comprising a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to perform the method of any one of claims 1-9 in accordance with the computer program.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program for performing the method of any of claims 1-9.
CN202010236454.4A 2020-03-30 2020-03-30 Information management method, tester, equipment and computer readable storage medium Active CN111444186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010236454.4A CN111444186B (en) 2020-03-30 2020-03-30 Information management method, tester, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010236454.4A CN111444186B (en) 2020-03-30 2020-03-30 Information management method, tester, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111444186A true CN111444186A (en) 2020-07-24
CN111444186B CN111444186B (en) 2023-08-04

Family

ID=71651587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010236454.4A Active CN111444186B (en) 2020-03-30 2020-03-30 Information management method, tester, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111444186B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080049777A1 (en) * 2006-08-22 2008-02-28 Morrill Robert J System and method for using distributed network performance information tables to manage network communications
US7363387B1 (en) * 2003-12-09 2008-04-22 Cisco Technology, Inc. System and method for reducing information being transmitted in a network environment
CN101425938A (en) * 2008-12-17 2009-05-06 福建星网锐捷网络有限公司 Method and apparatus for network apparatus test
US20120120808A1 (en) * 2010-11-12 2012-05-17 Alcatel-Lucent Bell N.V. Reduction of message and computational overhead in networks
CN105553844A (en) * 2015-12-31 2016-05-04 北京华为数字技术有限公司 Link state advertisements transmission methods and network devices
WO2017034922A1 (en) * 2015-08-25 2017-03-02 Volexity, Llc Systems methods and devices for memory analysis and visualization
CN106597947A (en) * 2016-12-23 2017-04-26 国网浙江宁波市鄞州区供电公司 Substation equipment test method and system, server and tester
US20170171058A1 (en) * 2014-08-30 2017-06-15 Huawei Technologies Co., Ltd. Link state information advertisement method and device
CN108920098A (en) * 2018-06-20 2018-11-30 郑州云海信息技术有限公司 A kind of storage management system collects method, system and the equipment of information
CN109542961A (en) * 2018-10-19 2019-03-29 中国平安财产保险股份有限公司 Date storage method, device, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7363387B1 (en) * 2003-12-09 2008-04-22 Cisco Technology, Inc. System and method for reducing information being transmitted in a network environment
US20080049777A1 (en) * 2006-08-22 2008-02-28 Morrill Robert J System and method for using distributed network performance information tables to manage network communications
CN101425938A (en) * 2008-12-17 2009-05-06 福建星网锐捷网络有限公司 Method and apparatus for network apparatus test
US20120120808A1 (en) * 2010-11-12 2012-05-17 Alcatel-Lucent Bell N.V. Reduction of message and computational overhead in networks
US20170171058A1 (en) * 2014-08-30 2017-06-15 Huawei Technologies Co., Ltd. Link state information advertisement method and device
WO2017034922A1 (en) * 2015-08-25 2017-03-02 Volexity, Llc Systems methods and devices for memory analysis and visualization
CN105553844A (en) * 2015-12-31 2016-05-04 北京华为数字技术有限公司 Link state advertisements transmission methods and network devices
CN106597947A (en) * 2016-12-23 2017-04-26 国网浙江宁波市鄞州区供电公司 Substation equipment test method and system, server and tester
CN108920098A (en) * 2018-06-20 2018-11-30 郑州云海信息技术有限公司 A kind of storage management system collects method, system and the equipment of information
CN109542961A (en) * 2018-10-19 2019-03-29 中国平安财产保险股份有限公司 Date storage method, device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WANG HUAHUA;ZHAO ZHONGXUAN: "Research and realization of RLC layer unacknowledged mode in LTE system" *
杜克锋: "便携式LTE分组传送网测试仪的软件设计与实现" *

Also Published As

Publication number Publication date
CN111444186B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
US10348827B2 (en) Distributed storage system, cluster node and range management method thereof
CN107025218B (en) Text duplicate removal method and device
WO2023115978A1 (en) Packet processing method and apparatus, and electronic device
CN111542075B (en) Method for maintaining associated data of signaling plane and user plane in 4G network environment
US11269843B2 (en) Object storage method and object storage gateway
CN111211990B (en) Data packet processing method and device
CN107094085B (en) Signaling transmission method and device
CN109710502B (en) Log transmission method, device and storage medium
CN112667636B (en) Index establishing method, device and storage medium
CN109361553B (en) Configuration rollback method and device
CN110825706B (en) Data compression method and related equipment
US11128622B2 (en) Method for processing data request and system therefor, access device, and storage device
CN111444186A (en) Information management method, tester, equipment and computer readable storage medium
CN109101595B (en) Information query method, device, equipment and computer readable storage medium
WO2023143595A1 (en) Method and system for communication between processors, storage medium, and processor
CN108521376B (en) Flow table design method based on attribute similarity in software defined network
CN109818948B (en) Application deployment method, device, system, equipment and medium
CN115277553B (en) Stream table storage method, device, equipment and computer readable storage medium
CN106302184B (en) Flow entry issuing method, flow entry storing method, related device and system
CN113849477A (en) Sign-in management method and device, electronic equipment and storage medium
CN113297164A (en) Database system, data query method and device
CN106506247B (en) Virtual network creating method and device
CN110096504B (en) Streaming event feature matching method and device
CN113220418B (en) Container-based resource management method and device
CN116644083B (en) Data updating method, device, equipment and storage medium

Legal Events

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