CN111444186B - 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
CN111444186B
CN111444186B CN202010236454.4A CN202010236454A CN111444186B CN 111444186 B CN111444186 B CN 111444186B CN 202010236454 A CN202010236454 A CN 202010236454A CN 111444186 B CN111444186 B CN 111444186B
Authority
CN
China
Prior art keywords
information
network
storage
interaction
management module
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.)
Active
Application number
CN202010236454.4A
Other languages
Chinese (zh)
Other versions
CN111444186A (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

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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses an information management method, a tester, a device and a computer readable storage medium, wherein the method comprises the following steps: after receiving 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 in the first storage mode and the learning information stored in the second storage mode can be reasonably stored, the configuration information and the learning information can be reasonably managed, and the occurrence of program collapse caused by large information quantity due to memory exhaustion can be effectively avoided.

Description

Information management method, tester, equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to an information management method, a tester, a device, and a computer readable storage medium.
Background
Currently, analog testing of networks is typically accomplished with a tester. The tester may include a front end portion and a background portion; furthermore, the background section may perform a simulation test of the network based on the configuration information transmitted from the front-end section. The quantity of configuration information sent by the front end part and the quantity of learning information generated in the network simulation test process are relatively large, so that the background part of the tester can not reasonably manage the information to cause the memory to be used up, and further the program is crashed.
Disclosure of Invention
In order to solve the above technical problems in the prior art, the 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, so that the problem that a memory program is crashed due to the fact that the background part of the tester cannot reasonably manage the information can be effectively avoided.
In order to achieve the above object, the technical solution provided in the embodiments of the present application is as follows:
an embodiment of the present application provides an information management method, which is applied to a network information management module, and includes:
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 the configuration information, the first information is stored according to a first storage mode, and the first storage mode meets the storage requirement of the configuration information;
when the first information is determined to be the learning information, the first information is stored according to a second storage mode, and the second storage mode meets the storage requirement of the learning information.
Optionally, the first information includes at least one piece of the interaction information; and/or, the interaction information is a link state broadcast LSA.
Optionally, the first storage mode is determined according to an information type of the first information.
Optionally, the storing the first information in the second storage manner specifically includes:
and storing the first information into a database when the residual capacity of the first storage space is determined to be lower than a first threshold value.
Optionally, when the remaining capacity of the first storage space is determined to be lower than the first threshold, storing the first information into a database, including:
storing the first information into a database 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; wherein the first threshold is higher than the second threshold;
Storing the first information into a first storage space 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 a central processing unit is determined to be not lower than a third threshold value;
and storing the first information into a database when the residual capacity of the first storage space is not higher than a second threshold value.
Optionally, the method further comprises:
and when the utilization rate of the central processing unit is determined to be lower than a third threshold value, the target interaction information stored in the first storage space according to a preset storage structure is restored to the database, and the target interaction information comprises the configuration information and/or the learning information.
Optionally, the method further comprises:
receiving a configuration information deletion request;
and deleting the configuration information to be deleted carried by the configuration information deleting request from the network information management module.
Optionally, the method further comprises:
receiving an information searching request sent by network equipment;
searching for the information identifier carried by the request according to the information to obtain interaction information corresponding to the information identifier;
and feeding back the interaction information corresponding to the information identifier to the network equipment.
Optionally, the method further comprises:
receiving an information updating request, wherein the information updating request carries target information;
searching interaction information corresponding to the information identification of the target information according to the information identification of the target information, and determining the interaction 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 one of the network information management modules provided by the embodiment of the application.
The embodiment of the application also provides equipment, which comprises a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to execute any implementation mode of the information management method provided in the embodiments of the present application according to the computer program.
The present embodiments also provide a computer readable storage medium for storing a computer program for executing any implementation of the information management method provided by the embodiments 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 the first information, if 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 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 in the first storage mode and the learning information stored in the second storage mode can be reasonably stored, reasonable management of the configuration information and the learning information is facilitated, and therefore the problem that a memory exhaustion program is collapsed due to the fact that the background part of the tester cannot reasonably manage the information 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 that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and 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 an information management method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a common header provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a linked list structure according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a tree structure according to an embodiment of the present application.
Detailed Description
Currently, testers typically include a front end portion and a back end portion; furthermore, the background section may perform a simulation test of the network based on the configuration information transmitted from the front-end section. The number of configuration information sent by the front end part and the number of learning information generated in the network simulation test process are relatively large, so that the background cannot reasonably manage the information to cause the memory program to crash. An example of an open shortest path first (Open Shortest Path First, OSPF) routing protocol is described below.
In testing the OSPF routing protocol using the tester, the user needs to place Link-state broadcasts (Link-State Advertisement, LSAs) of the OSPF routing protocol at the front-end so that the front-end can send configured LSAs to the back-end so that the back-end can test the OSPF routing protocol based on these LSAs. The background portion needs to store LSAs of each configuration one by one, and the data size of the LSAs of the configuration is large, so that the background portion needs to consume a large amount of memory space to store the LSAs of the configurations, which is easy to cause the memory program of the background portion to crash. In addition, the background part learns a large amount of LSAs in the process of testing the OSPF routing protocol, so that the background part needs to consume a large amount of memory space to store the learned LSAs, which easily causes the memory of the background part to be used up, and further causes program crash.
In order to solve the above technical problems, 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 network information management module determines that the first information is configuration information, the first information is stored according to a first storage mode, and the first storage mode meets the storage requirement of the configuration information; when the network information management module determines that the first information is learning information, the first information is stored according to a second storage mode, and 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 in the first storage mode and the learning information stored in the second storage mode can be reasonably stored, reasonable management of the configuration information and the learning information is facilitated, and memory program breakdown caused by the fact that the background part of the tester cannot reasonably manage the information can be effectively avoided. In addition, because 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 configuration information stored according to the first storage mode can occupy the minimum storage space, so that the memory consumption of the background part for storing the configuration information can be effectively reduced, and the memory program breakdown caused by large information data volume can be effectively avoided; in addition, because the storage requirement of the learning information is used for representing the requirement achieved when the learning information is stored by using the minimum storage space, the learning information stored according to the second storage mode can occupy the minimum storage space, so that the memory consumption of the background part when the learning information is stored can be effectively reduced, and the memory exhaustion program breakdown caused by large information data volume can be effectively avoided.
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Method embodiment one
Referring to fig. 1, the flowchart of an information management method according to an embodiment of the present application is shown.
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 configured to manage (e.g., add, delete, find, update, etc.) the configuration information and the learning information.
The first information is used for representing interaction information among different network devices in the network; moreover, embodiments of the present application are not limited to interaction information, such as LSA when the tester tests the OSPF routing protocol.
The first information includes at least one piece of interaction information. For example, when the tester tests the OSPF routing protocol, the first information may include at least one LSA.
The first information may be configuration information or learning information.
The configuration information refers to information configured by a user using a front end portion (e.g., a configuration interface) of the tester; furthermore, configuration information may be transmitted by the front end of the tester to the background portion of the tester so that a network management module located in the background portion of the tester may receive and store the configuration information. In addition, because the user can configure a plurality of pieces of interaction information at the same time, a certain rule exists between the interaction information, at this time, in order to reduce resource consumption of the plurality of pieces of interaction information in a transmission process or a 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 which are identical in type and change in address rule. For example, when the test meter tests the OSPF routing protocol, each piece of configuration information may include a plurality of LSAs, and in particular, may include a plurality of LSAs having the same information type and regularly changing addresses, so that each piece of configuration information is in LSA blocks including a plurality of LSAs.
It should be noted that the regular change of the address may refer to the same difference between different addresses, or may refer to a change that is regularly found (e.g., conforms to a certain function change rule) between different addresses. In addition, the information type refers to the type of the interaction information. For example, when the interaction information is LSA, the information types may include: router LSA (Router LSA), network LSA (Network LSA), network summary LSA (Network Summary LSA), ASBR summary LSA (ASBR Summary LSA), autonomous system outside LSA (Autonomous System External LSA), group member LSA (Group Membership LSA), NSSA outside LSA (NSSA External LSA), outside attribute LSA (External Attributes LSA), opaque LSA.
The learning information refers to network information generated during a network test. In addition, because the network information generated in the network test process is irregularly and searchable, 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 may include an LSA.
Based on the foregoing, in the embodiment of the present application, the network information management module may receive 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 application is not limited to a specific implementation manner in which the network information management module determines 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, the first information is stored 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 interaction information in the first information. The information type of the first information is determined according to the information type of the interaction information included in the first information, and specifically includes: if the first information is the configuration information, the information type of the first information is the same information type of all the interaction information in the configuration information; if the first information is learning information, the first information is the information type to which the piece of learning information belongs. The number of pieces of interaction information in the first information means the number of pieces of interaction information included in the first information.
In addition, the embodiment of the present application provides two implementations of the first storage mode, which are respectively described below.
As a first embodiment, 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 configuration information, specifically: one piece of configuration information corresponds to one common header; furthermore, a plurality of pieces of configuration information are stored in a linked list form.
Wherein the common header is used for recording information identifications of a plurality of interaction information (e.g., LSAs) in each configuration information; moreover, the common header is in one-to-one correspondence with the configuration information. In addition, the common header may include the number of interactions (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), and the length of the common header (i.e., prefix in fig. 2). In addition, the common header may also include a termination address (i.e., endAddress in fig. 2). For example, when one configuration information is stored using the common header shown in fig. 2, it can be known from the content shown in fig. 2: "count=10000" means that the configuration information includes 10000 pieces of interaction information (e.g., LSA); "first address=id R "the addresses indicating 10000 pieces of interaction information are expressed as ID R As a reference address, performing offset; "increment=s 1 "addresses representing 10000 pieces of interaction information are all expressed as s 1 The offset step length is obtained by offset; at this time, it is known that the address ID of the ith interaction information i Can be ID i =ID R +(i-1)×s 1 At this time endddressRefers to ID 10000
It should be noted that, the information identifier is used for uniquely marking an interaction information; moreover, embodiments of the present application are not limited to specific content of the information identifier, for example, the information identifier may include an address of the interaction information.
Based on the content of the first embodiment 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. The network information management module can directly store (or receive) the configuration information including the plurality of pieces of interaction information when storing (or receiving) the configuration information, and does not need to store (or receive) each piece of interaction information in a one-to-one unfolding manner, so that the storage space consumption of the configuration information is reduced (or the receiving time of the configuration information is reduced).
As a second embodiment, the first storage manner may be stored in a tree structure (for example, a binary tree structure (for example, a red-black tree structure in a map container)), which specifically is: and storing each piece of interaction information in the configuration information as one node on the tree structure. For example, when the interaction information is LSA, the first storage manner may be stored in the tree structure shown in fig. 4. Note that, address in fig. 4 refers to an address corresponding to LSA.
Based on the foregoing, in the embodiment of the present application, after determining that the first information is the configuration information, the network information management module may determine the storage mode corresponding to the information type of the first information and/or the number of interaction information in the first information as the first storage mode, and store the first information according to the first storage mode. Wherein different information types correspond to different storage modes, e.g. some information types correspond to a first embodiment of the first storage mode, and others correspond to a second embodiment of the first storage mode. The number of pieces of interaction information corresponds to a different storage system, for example, the number of pieces of interaction information=1 corresponds to the second embodiment of the first storage system, and the number of pieces of interaction information is equal to or greater than 1 corresponds to the first embodiment of the first storage system. 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 interaction information, S2 is stored using a common header (as shown in fig. 2) and a linked list structure (as shown in fig. 3).
S3: when the network information management module determines that the first information is learning information, the first information is stored according to a second storage mode, and 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 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 achieved when the learning information is stored by using the minimum storage space.
In addition, the second storage manner may adopt a tree structure (for example, a binary tree structure) for storage, which specifically includes: each piece of learning information is stored as one node on the tree structure.
In addition, because the amount of learning information generated in the network test process is large, and the storage space (for example, the buffer space of the tester) corresponding to the network information management module is limited, in order to avoid the storage space collapse, some learning information can be stored in the database. Based on this, the embodiment of the present application provides an implementation manner of S3, where S3 may specifically be: the network information management module stores the first information into a database when the first information is determined to be learning information and the residual capacity of the first storage space is lower than a first threshold value. The first storage space refers to 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 yes, the piece of learning information is stored in the 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 breakdown of the tester caused by overlarge storage pressure of the storage space corresponding to the network information management module is avoided.
In addition, the embodiment of the present application further provides another implementation manner of S3, where S3 may specifically include: (1) 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 the central processing unit is lower than a third threshold. (2) 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 value and higher than a second threshold value and determining that the utilization rate of the central processing unit is not lower than a third threshold value. (3) And the network information management module stores the first information into the database when determining that the residual capacity of the first storage space is not higher than a second threshold value. Wherein the first threshold is higher than the second threshold.
A central processing unit (central processing unit, CPU) is located in the tester.
The third threshold 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, indicating that 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 continuously determine whether the CPU is in an idle state when determining 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 into the database; if not, storing the first information into a first storage space; however, when the residual capacity of the storage space corresponding to the network information management module at the current moment is not higher than the second threshold value, the first information is stored in the database.
Note that, the execution order of S2 and S3 is not limited in the embodiment of the present application.
Based on the specific implementation manner of the information management method provided by the above method embodiment, in the information management method provided by the embodiment of the present application, after receiving 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 the first storage manner; and when the network information management module determines that the first information is 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 in the first storage mode and the learning information stored in the second storage mode can be reasonably stored, reasonable management of the configuration information and the learning information is facilitated, and memory program breakdown caused by the fact that the background part of the tester cannot reasonably manage the information can be effectively avoided. In addition, because 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 configuration information stored according to the first storage mode can occupy the minimum storage space, so that the memory consumption of the background part for storing the configuration information can be effectively reduced, and the memory program breakdown caused by large information data volume can be effectively avoided; in addition, because the storage requirement of the learning information is used for representing the requirement achieved when the learning information is stored by using the minimum storage space, the learning information stored according to the second storage mode can occupy the minimum storage space, so that the memory consumption of the background part when the learning information is stored can be effectively reduced, and the memory program breakdown caused by large information data volume can be effectively avoided.
Method embodiment II
In some cases, the network information management module may also delete the configuration information. Based on this, the embodiment of the present application also provides another implementation manner of the information management method, in this implementation manner, the information management method may further include S4-S5 in addition to the above steps:
s4: the network information management module receives the configuration information deletion request.
The configuration information deletion request refers to a request indicating deletion of configuration information; moreover, the configuration information deletion request carries 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 foregoing, in the embodiment of the present application, the user may delete the stored configuration information by using the front end portion of the tester, so that the front end portion of the tester generates a configuration information deletion request based on the deletion operation of the user, and sends the configuration information deletion request to the background portion of the tester, so that before the background portion of the tester performs the network test (for example, running the OSPF routing protocol) next time, 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.
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 deleting the configuration information by expanding the configuration information, which is beneficial to improving the deletion efficiency of the configuration information.
Based on the above-mentioned content related to 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 of the configuration information to be deleted carried by the configuration information deletion request from the network information management module. Thus, the deletion efficiency of the configuration information is improved.
In some cases, the network information management module may also look up configuration information or learning information. Based on this, the embodiment of the present application further provides another implementation manner of the information management method, where the information management method may further include S6-S8 in addition to all or part of the steps described above:
S6: the network information management module receives an information search request sent by the network equipment.
The information search request refers to a request indicating to search for configuration information or learning information; moreover, the information search request carries an information identifier of the interactive information to be searched.
In addition, the information search request is generated by the network device in the network test process; moreover, when the interaction information is LSA, the generation scenario of the information search request is:
when the first network device displays the corresponding LSA information to the second network device, the second network device compares the LSA information corresponding to the second network device with the LSA information corresponding to the first network device, when the second network device determines that the LSA information corresponding to the second network device lacks the first LSA information, the second network device can send an acquisition request of the first LSA information to the first network device, so that after receiving the acquisition request of the first LSA information, the first network device can generate an information search request based on the acquisition request of the first LSA information, so that the information search request carries an information identifier of the first LSA information, and then sends the information search request to the network information management module, so that the network information management module searches the first LSA information based on the information identifier of the first LSA information carried by the information search request, and feeds the searched first LSA information back to the first network device, so that the first network device feeds the received first LSA information back to the second network device, and the first network device can utilize the first LSA information to perfect the corresponding LSA information of the first network device. The first network device is any network device in the network, and the second network device is other network devices except the first network device in the network.
It should be noted that, in different application scenarios, the LSA information may be replaced by other interaction information. In addition, the embodiments of the present application are not limited to network devices, and for example, the network devices may be routers or switches, and the like.
S7: and the network information management module searches and obtains interaction information corresponding to the information identification according to the information identification carried by the information search request.
In this embodiment of the present application, after receiving an information search request, a network information management module may search for, according to an information identifier carried by the information search request, interaction information corresponding to the information identifier, where the interaction information may specifically be: the network information management module respectively matches the information identifier with the stored learning information and/or configuration information so as to determine interaction information in the learning information and/or configuration information successfully matched with the information identifier, and the interaction information is used as interaction 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 can match the information identifier with the public header of the stored configuration information, and if the information identifier is successfully matched with the public header of the configuration information, the information identifier is successfully matched with the configuration information, so that interaction information corresponding to the information identifier is determined from the successfully matched configuration information; if the matching of the information identification and the common header of the configuration information fails, determining that the matching of the information identification and the configuration information fails, and continuing to match the information identification with other configuration information which is not matched. For example, when the information identification includes an interactive information address ID Identification mark When the information is received, the network information management module judges the information identification ID Identification mark The process of whether the configuration information is matched with the configuration information can be as follows: the network information management module can identify ID according to the information Identification mark and Start address ID in common header of the configuration information R Step value s of address offset 1 Determining and utilizing N Identification mark =(ID Identification mark -ID R )÷s 1 Determining the number N of step sizes corresponding to the information identification Identification mark If the number N of step sizes corresponding to the information mark Identification mark Number of interaction information N in common header lower than the configuration information all Determining that the information identifier is successfully matched with the configuration information; if the number N of step sizes corresponding to the information mark Identification mark The number N of the interaction information in the common header not lower than the configuration information all And determining that the information identification fails to match the configuration information.
It should be noted that, the network information management module may search the storage space and/or the database corresponding to the network information management module for learning information.
S8: and the network information management module feeds back the interaction information corresponding to the information identifier to the network equipment.
Based on the above-mentioned content of S6 to S8, after receiving an information search request sent by a network device, the network information management module may search, based on an information identifier carried by the information search request, for 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 beneficial to implementing reasonable 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 embodiment of the present application also provides another implementation manner of the information management method, in this implementation manner, the information management method may further include S9-S11 in addition to all or part of the steps described above:
s9: the network information management module receives the information update request.
The information update request refers to a request indicating update of the interactive information; moreover, the information update request carries the target information.
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 with the front-end portion of the tester such that the front-end portion of the tester generates an information update request based on the user's update operation and sends the information update request to the background 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 background portion of the tester next performs the network test (e.g., runs the OSPF routing protocol).
As a second example, S9 may specifically be: in the network test process, when the network device needs to replace the stored interaction information with the target information, the network device generates an information update request based on the target information and sends the information update 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 update request before the background part of the tester performs the network test (for example, running the OSPF routing protocol) next time.
S10: and the network information management module searches and obtains interaction information corresponding to the information identification of the target information according to the information identification of the target information, and determines the interaction information as information to be replaced.
It should be noted that the search process in S10 is similar to the search process in S7, and technical details are referred to above.
S11: and the network information management module replaces the information to be replaced by the target information.
Based on the above-mentioned related content 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 achieving 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 embodiment of the present application further provides another implementation manner of the information management method, where the information management method may further include S12 in addition to all or part of the steps described above:
s12: and when the network information management module determines that the utilization rate of the central processing unit is lower than a third threshold value, the network information management module restores the 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 interaction information refers to interaction information which needs to be transferred to a database; moreover, the embodiment of the application does not limit the target interaction information, 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 an idle state, the network information management module restores 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 acquire the restored target interaction information from the database. This is advantageous for achieving rational management of configuration information and learning information.
Based on the information management method provided by the above method embodiment, the present application embodiment further provides a tester, where the tester includes a network information management module, and the network information management module may perform any implementation of the above provided information management method, that is, the network information management module may perform 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 the configuration information, the first information is stored according to a first storage mode, and the first storage mode meets the storage requirement of the configuration information;
when the first information is determined to be the learning information, the first information is stored according to a second storage mode, and the second storage mode meets the storage requirement of the learning information.
Optionally, the first information includes at least one piece of the interaction information; and/or, the interaction information is a link state broadcast LSA.
Optionally, the first storage mode is determined according to an information type of the first information.
Optionally, the storing the first information in the second storage manner specifically includes:
And storing the first information into a database when the residual capacity of the first storage space is determined to be lower than a first threshold value.
Optionally, when the remaining capacity of the first storage space is determined to be lower than the first threshold, storing the first information into a database, including:
storing the first information into a database 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; wherein the first threshold is higher than the second threshold;
storing the first information into a first storage space 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 a central processing unit is determined to be not lower than a third threshold value;
and storing the first information into a database when the residual capacity of the first storage space is not higher than a second threshold value.
Optionally, the method further comprises:
and when the utilization rate of the central processing unit is determined to be lower than a third threshold value, the target interaction information stored in the first storage space according to a preset storage structure is restored to the database, and the target interaction information comprises the configuration information and/or the learning information.
Optionally, the method further comprises:
receiving a configuration information deleting request;
and deleting the configuration information to be deleted carried by the configuration information deleting request from the network information management module.
Optionally, the method further comprises:
receiving an information searching request sent by network equipment;
searching for the information identifier carried by the request according to the information to obtain interaction information corresponding to the information identifier;
and feeding back the interaction information corresponding to the information identifier to the network equipment.
Optionally, the method further comprises:
receiving an information updating request, wherein the information updating request carries target information;
searching interaction information corresponding to the information identification of the target information according to the information identification of the target information, and determining the interaction 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 method embodiment, the embodiment of the application also provides equipment, which comprises a processor and a memory. Wherein the memory is used 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 the configuration information, the first information is stored according to a first storage mode, and the first storage mode meets the storage requirement of the configuration information;
when the first information is determined to be the learning information, the first information is stored according to a second storage mode, and the second storage mode meets the storage requirement of the learning information.
Optionally, the first information includes at least one piece of the interaction information; and/or, the interaction information is a link state broadcast LSA.
Optionally, the first storage mode is determined according to an information type of the first information.
Optionally, the storing the first information in the second storage manner specifically includes:
and storing the first information into a database when the residual capacity of the first storage space is determined to be lower than a first threshold value.
Optionally, when the remaining capacity of the first storage space is determined to be lower than the first threshold, storing the first information into a database, including:
storing the first information into a database 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; wherein the first threshold is higher than the second threshold;
Storing the first information into a first storage space 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 a central processing unit is determined to be not lower than a third threshold value;
and storing the first information into a database when the residual capacity of the first storage space is not higher than a second threshold value.
Optionally, the method further comprises:
and when the utilization rate of the central processing unit is determined to be lower than a third threshold value, the target interaction information stored in the first storage space according to a preset storage structure is restored to the database, and the target interaction information comprises the configuration information and/or the learning information.
Optionally, the method further comprises:
receiving a configuration information deleting request;
and deleting the configuration information to be deleted carried by the configuration information deleting request from the network information management module.
Optionally, the method further comprises:
receiving an information searching request sent by network equipment;
searching for the information identifier carried by the request according to the information to obtain interaction information corresponding to the information identifier;
and feeding back the interaction information corresponding to the information identifier to the network equipment.
Optionally, the method further comprises:
Receiving an information updating request, wherein the information updating request carries target information;
searching interaction information corresponding to the information identification of the target information according to the information identification of the target information, and determining the interaction 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, the present application embodiment further provides a computer readable storage medium for storing a computer program for executing any one of the embodiments of the information management method provided above, that is, for executing 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 the configuration information, the first information is stored according to a first storage mode, and the first storage mode meets the storage requirement of the configuration information;
when the first information is determined to be the learning information, the first information is stored according to a second storage mode, and the second storage mode meets the storage requirement of the learning information.
Optionally, the first information includes at least one piece of the interaction information; and/or, the interaction information is a link state broadcast LSA.
Optionally, the first storage mode is determined according to an information type of the first information.
Optionally, the storing the first information in the second storage manner specifically includes:
and storing the first information into a database when the residual capacity of the first storage space is determined to be lower than a first threshold value.
Optionally, when the remaining capacity of the first storage space is determined to be lower than the first threshold, storing the first information into a database, including:
storing the first information into a database 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; wherein the first threshold is higher than the second threshold;
storing the first information into a first storage space 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 a central processing unit is determined to be not lower than a third threshold value;
and storing the first information into a database when the residual capacity of the first storage space is not higher than a second threshold value.
Optionally, the method further comprises:
and when the utilization rate of the central processing unit is determined to be lower than a third threshold value, the target interaction information stored in the first storage space according to a preset storage structure is restored to the database, and the target interaction information comprises the configuration information and/or the learning information.
Optionally, the method further comprises:
receiving a configuration information deleting request;
and deleting the configuration information to be deleted carried by the configuration information deleting request from the network information management module.
Optionally, the method further comprises:
receiving an information searching request sent by network equipment;
searching for the information identifier carried by the request according to the information to obtain interaction information corresponding to the information identifier;
and feeding back the interaction information corresponding to the information identifier to the network equipment.
Optionally, the method further comprises:
receiving an information updating request, wherein the information updating request carries target information;
searching interaction information corresponding to the information identification of the target information according to the information identification of the target information, and determining the interaction information as information to be replaced;
and replacing the information to be replaced by the target information.
It should be understood that in this application, "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). 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 above description is only of the preferred embodiment of the present invention, and is not intended to limit the present invention in any way. While the invention has been described with reference to preferred embodiments, it is not intended to be limiting. Any person skilled in the art can make many possible variations and modifications to the technical solution of the present invention or modifications to equivalent embodiments using the methods and technical contents disclosed above, without departing from the scope of the technical solution of the present invention. Therefore, any simple modification, equivalent variation and modification of the above embodiments according to the technical substance of the present invention still fall within the scope of the technical solution of the present invention.

Claims (10)

1. An information management method, applied to a network information management module, comprising:
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 the configuration information, the first information is stored according to a first storage mode, and the first storage mode meets the storage requirement of the configuration information;
When the first information is determined to be the learning information, the first information is stored according to a second storage mode, and the second storage mode meets the storage requirement of the learning information;
the storing the first information according to the second storage mode specifically includes:
storing the first information to the database when the residual capacity of the first storage space is determined to be lower than a first threshold and higher than a second threshold and the utilization rate of the central processing unit is determined to be lower than a third threshold; wherein the first threshold is higher than the second threshold;
storing the first information to the first storage space 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;
and storing the first information to the database when the residual capacity of the first storage space is not higher than a second threshold value.
2. The method of claim 1, wherein the first information comprises at least one piece of the interaction information; and/or, the interaction information is a link state broadcast LSA.
3. The method of claim 1, wherein the first storage means is determined based on an information type of the first information.
4. The method according to claim 1, wherein the method further comprises:
and when the utilization rate of the central processing unit is determined to be lower than a third threshold value, the target interaction information stored in the first storage space according to a preset storage structure is restored to the database, and the target interaction information comprises the configuration information and/or the learning information.
5. The method according to claim 1, wherein the method further comprises:
receiving a configuration information deletion request;
and deleting the configuration information to be deleted carried by the configuration information deleting request from the network information management module.
6. The method according to claim 1, wherein the method further comprises:
receiving an information searching request sent by network equipment;
searching for the information identifier carried by the request according to the information to obtain interaction information corresponding to the information identifier;
and feeding back the interaction information corresponding to the information identifier to the network equipment.
7. The method according to claim 1, wherein the method further comprises:
receiving an information updating request, wherein the information updating request carries target information;
Searching interaction information corresponding to the information identification of the target information according to the information identification of the target information, and determining the interaction information as information to be replaced;
and replacing the information to be replaced by the target information.
8. A tester comprising a network information management module as claimed in any one of claims 1 to 7.
9. 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 of claims 1-7 according to the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium is for storing a computer program for executing the method of any one of claims 1-7.
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 CN111444186A (en) 2020-07-24
CN111444186B true 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 (7)

* 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
CN101425938A (en) * 2008-12-17 2009-05-06 福建星网锐捷网络有限公司 Method and apparatus for network apparatus test
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8194555B2 (en) * 2006-08-22 2012-06-05 Embarq Holdings Company, Llc System and method for using distributed network performance information tables to manage network communications
US8797913B2 (en) * 2010-11-12 2014-08-05 Alcatel Lucent Reduction of message and computational overhead in networks
CN105376162B (en) * 2014-08-30 2019-05-10 华为技术有限公司 A kind of link-state information notifying method and equipment

Patent Citations (7)

* 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
CN101425938A (en) * 2008-12-17 2009-05-06 福建星网锐捷网络有限公司 Method and apparatus for network apparatus test
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 (1)

* Cited by examiner, † Cited by third party
Title
杜克锋.便携式LTE分组传送网测试仪的软件设计与实现.《中国优秀硕士学位论文全文数据库 信息科技辑》.2018,I138-1783页. *

Also Published As

Publication number Publication date
CN111444186A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
WO2016050158A1 (en) Learning a mac address in vxlan
CN103731355A (en) Method and system for avoiding Hash collision during MAC address learning
CN110430116B (en) Data forwarding method and device, edge device and readable storage medium
CN109495383B (en) Data processing method, device, communication system and network equipment
KR101411321B1 (en) Method and apparatus for managing neighbor node having similar characteristic with active node and computer readable medium thereof
WO2023115978A1 (en) Packet processing method and apparatus, and electronic device
CN107749826B (en) Data packet forwarding method and system
CN112532408B (en) Method, device and storage medium for extracting fault propagation condition
CN107094085B (en) Signaling transmission method and device
CN111083204A (en) File transmission method, device and storage medium
CN111444186B (en) Information management method, tester, equipment and computer readable storage medium
CN111200640B (en) Uploading method based on client and client
CN109818948B (en) Application deployment method, device, system, equipment and medium
CN109101595B (en) Information query method, device, equipment and computer readable storage medium
CN109474696B (en) Network service method, device, electronic equipment and readable storage medium
CN110798492B (en) Data storage method and device and data processing system
US9294399B2 (en) Method for learning media access control address, network device, and system
CN110636005B (en) Knowledge routing method and device of knowledge center network
CN113596098A (en) Session retrieval method, device, equipment and computer-readable storage medium
CN114024844A (en) Data scheduling method, data scheduling device and electronic equipment
CN108418709B (en) Port aggregation method and device
CN113642594A (en) Message classification method and device, electronic equipment and readable medium
CN113132233B (en) Data processing method, software defined network controller and data processing system
CN107547406B (en) Method and device for establishing FIB table in distributed EVPN gateway networking
CN112367210B (en) Method for rapidly checking configuration change

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