CN110109933B - Information maintenance method, configuration management database system and storage medium - Google Patents

Information maintenance method, configuration management database system and storage medium Download PDF

Info

Publication number
CN110109933B
CN110109933B CN201910349012.8A CN201910349012A CN110109933B CN 110109933 B CN110109933 B CN 110109933B CN 201910349012 A CN201910349012 A CN 201910349012A CN 110109933 B CN110109933 B CN 110109933B
Authority
CN
China
Prior art keywords
network information
servers
server
target
switch
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
CN201910349012.8A
Other languages
Chinese (zh)
Other versions
CN110109933A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910349012.8A priority Critical patent/CN110109933B/en
Publication of CN110109933A publication Critical patent/CN110109933A/en
Application granted granted Critical
Publication of CN110109933B publication Critical patent/CN110109933B/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/23Updating

Abstract

The embodiment of the application discloses an information maintenance method, which comprises the following steps: the memory stores a plurality of second network information corresponding to the switch; the switch acquires network information of each first server in the plurality of first servers to obtain a plurality of first network information; when the preset duration is reached, the plurality of first network information are sent to the controller; the controller matches the plurality of first network information with the plurality of second network information; and if the matching of the target first network information in the plurality of first network information and each second network information in the plurality of second network information fails, or the matching of the target second network information in the plurality of second network information and each first network information in the plurality of first network information fails, controlling the memory to update the plurality of second network information into the plurality of first network information. By adopting the method and the device, the instantaneity of information maintenance can be improved.

Description

Information maintenance method, configuration management database system and storage medium
Technical Field
The application relates to the technical field of computers, and mainly relates to an information maintenance method, a configuration management database system and a storage medium.
Background
With the increasing emphasis of internet technology by a plurality of large enterprises, the established data center is not only in a certain city, but also possibly has a plurality of distributed data centers in a plurality of cities and even a plurality of countries. Each data center may further include tens of thousands of physical resources and virtual resources, and in particular, each physical server carries a large number of important virtual machines and other applications. For this increasingly complex situation, allocation and association is made for "idle resources" and "business applications" by a configuration management database (Configuration Management Database, CMDB) system.
At present, the information maintenance of the CMDB system is mainly performed manually, and the corresponding relation between a server and a switch is recorded in the initial stage of server online. However, as the service life of the server increases, the server may be moved or changed, and if the position of the server changes, but the corresponding access position information is not updated, the operation and maintenance work is bothered.
Disclosure of Invention
The embodiment of the application provides an information maintenance method, a configuration management database system and a storage medium, which can improve the instantaneity of information maintenance.
In a first aspect, an embodiment of the present application provides an information maintenance method applied to a configuration management database system, where the configuration management database system includes a controller, a switch, a memory, and a plurality of first servers, the method includes:
the memory stores a plurality of second network information corresponding to the switch, and each second network information corresponds to a second server;
the switch acquires network information of each first server in the plurality of first servers to obtain a plurality of first network information; when the preset duration is reached, the plurality of first network information are sent to the controller;
the controller matches the plurality of first network information with the plurality of second network information; and if the matching of the target first network information in the plurality of first network information and each second network information in the plurality of second network information fails, or the matching of the target second network information in the plurality of second network information and each first network information in the plurality of first network information fails, controlling the memory to update the plurality of second network information into the plurality of first network information.
In a second aspect, an embodiment of the present application provides a configuration management database system, the system including a controller, a memory and a switch connected to the controller, and a plurality of first servers connected to the switch, wherein:
the memory is used for storing a plurality of second network information corresponding to the switch, and each second network information corresponds to one second server;
the switch is configured to obtain network information of each first server in the plurality of first servers, so as to obtain a plurality of first network information; when the preset duration is reached, the plurality of first network information are sent to the controller;
the controller is used for matching the plurality of first network information and the plurality of second network information; and if the matching of the target first network information in the plurality of first network information and each second network information in the plurality of second network information fails, or the matching of the target second network information in the plurality of second network information and each first network information in the plurality of first network information fails, controlling the memory to update the plurality of second network information into the plurality of first network information.
In a third aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to perform some or all of the steps as described in the first aspect.
Implementation of the embodiment of the application has the following beneficial effects:
after the information maintenance method, the configuration management database system and the storage medium are adopted, the second network information of each second server corresponding to the switch is stored in advance through the memory to obtain a plurality of second network information, the network information of each first server connected with the switch is obtained through the switch to obtain a plurality of first network information, and when the preset duration arrives, the plurality of second network information is sent to the controller. And then, the controller matches the plurality of first network information with the plurality of second network information, if the matching of the target first network information in the plurality of first network information with each second network information in the plurality of second network information fails, or if the matching of the target second network information in the plurality of second network information with each first network information in the plurality of first network information fails, the server connected with the switch is changed, so that the controller controls the memory to update the plurality of second network information into the plurality of first network information. Thus, the access information of the server is updated, and the instantaneity of information maintenance is improved.
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 in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
fig. 1 is a schematic structural diagram of a configuration management database system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of another configuration management database system according to an embodiment of the present disclosure;
fig. 3 is a flow chart of an information maintenance method according to an embodiment of the present application.
Detailed Description
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.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The embodiments of the present application are described in detail below.
The computer according to the embodiments of the present application may include various handheld devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), mobile Station (MS), terminal devices (terminal devices), etc. For convenience of description, the above-mentioned devices are collectively referred to as a computer.
In this application, a server is a device that provides computing services. The server includes a processor, a hard disk, a memory, a system bus, and the like, and is similar to a general-purpose computer architecture, but is required to provide highly reliable services, and thus has high demands in terms of processing capacity, stability, reliability, security, scalability, manageability, and the like.
In this application, a configuration management database (Configuration Management Database, CMDB) is provided to efficiently control and manage changing IT infrastructure and IT services by identifying, controlling, maintaining and checking enterprise information technology (Information Technology, IT) resources, and for other processes, such as: the processes of accident management, problem management, change management, release management and the like provide accurate configuration information.
Referring to fig. 1, an embodiment of the present application provides a schematic configuration diagram of a configuration management database system. The configuration management database system 100 includes a controller 102, a switch 104 connected to the controller 102, and a memory 106, and a plurality of first servers 108 connected to the switch 104, each of which provides a data service, where the connection of the devices may be through the Internet or an Intranet, which is not limited herein.
In this application, the controller 102 and the switch 104 may be understood as servers, or any computers.
It should be noted that, the configuration management database system 100 according to the present application may include a plurality of switches 104, and each switch 104 is connected to a different server, and any switch is described in the present application.
In one possible embodiment, the controller 102 is a software defined network (Software Defined Network, SDN) controller.
Wherein, the SDN controller is an application in the SDN and is responsible for flow control to ensure the intelligent network. SDN controllers are data link layer based network communication protocols such as: openFlow et al protocols allow a server to tell a switch where to send a packet. It can be understood that the SDN controller can centrally manage the data acquired by each switch of the CMDB system, thereby improving the centralized management efficiency of the data.
In this application, the memory 106 is configured to store a plurality of second network information corresponding to the switch 104, where each second network information corresponds to one second server; the switch 104 is configured to obtain network information of each of the plurality of first servers 108, so as to obtain a plurality of first network information; when the preset duration is reached, sending the plurality of first network information to the controller 102; the controller 102 is configured to match the plurality of first network information and the plurality of second network information; and if the matching of the target first network information in the plurality of first network information and each second network information in the plurality of second network information fails, or the matching of the target second network information in the plurality of second network information and each first network information in the plurality of first network information fails, controlling the memory 106 to update the plurality of second network information into the plurality of first network information.
Wherein the network information includes at least a media access control address (Media Access Control, MAC) address, an internet protocol address (Internet Protocol, IP) or a port number of the server, etc. for describing an access address of the server; the network information can also comprise identification information such as the name of a server, and has uniqueness; the network information may further include network status information such as access duration and network rate of the server, which may be used to obtain computing power of the server, so as to facilitate resource allocation, which is not limited herein.
In this application, the first server is a server currently connected to the switch, and the second server is a server connected to the switch when the memory is updated last time. The first network information is the network information of the first server, and the second network information is the network information of the second server.
The method for the switch 104 to obtain the network information of each server is not limited in this application, and in one possible embodiment, the switch and the plurality of servers each employ a link layer discovery protocol (Link Layer Discovery Protocol, LLDP).
Among them, LLDP is simply a proximity discovery protocol. It defines a standard method for ethernet network devices, such as switches, routers and wireless lan access points, to announce its presence to other nodes in the network and to save discovery information for each neighboring device. Details such as device configuration and device identification may be advertised using the protocol.
Specifically, LLDP defines a general bulletin information set, a protocol for transmitting bulletins, and a method for storing received bulletin information. Devices that advertise their own information may transmit multiple pieces of advertising information in a local area network packet in the form of a Type Length Value (TLV) field.
It can be understood that when both the switch and the server adopt the LLDP protocol, the switch can discover the server connected thereto in real time, thereby rapidly acquiring network information of the accessed server.
The present application does not limit the preset duration, it can be understood that when the preset duration arrives, the switch 104 sends a plurality of second network information to the controller 102, so that the controller 102 can combine a plurality of first network information stored in the memory to determine whether to update the network resource or the physical device, thereby performing information maintenance at regular time, and improving the instantaneity of information maintenance.
In a possible embodiment, the controller 102 is further configured to obtain a first response frequency of the switch 104; acquiring the number of second servers corresponding to the plurality of second network information; and acquiring the preset duration according to the first response frequency and the number.
Wherein the first response frequency refers to a frequency of the switch 104 responding to the task assigned by the controller 102; the number refers to a number value of the plurality of second servers stored in advance in the memory 106; in the present application, a preset time period corresponding to the first response frequency and the number may be stored in advance.
The method for acquiring the preset duration by the first response frequency and the number is not limited, the first duration corresponding to the first response frequency and the second duration corresponding to the number can be acquired, and then the minimum value, the maximum value or the weighted value between the first duration and the second duration is acquired to obtain the preset duration.
It can be appreciated that the controller 102 obtains the first response frequency of the switch 104 and the number of second servers corresponding to the plurality of second network information, and then obtains the preset duration according to the first response frequency and the number. In this way, the response frequency of the current switch 104 is considered, and the number of servers previously connected to the switch 104 is considered, so that accuracy of acquiring the preset duration is improved.
In a possible embodiment, the controller 102 is specifically configured to obtain the current time in terms of obtaining the preset duration according to the first response frequency and the number; determining a second response frequency based on the number and the current time; acquiring a ratio between the first response frequency and the second response frequency; and acquiring the preset duration according to the ratio.
In the application, the running conditions corresponding to the time periods can be counted in advance, so that response frequencies corresponding to different numbers of servers in the time periods can be generated. Thus, in this embodiment, the second response frequency may be determined based on the number and the current time.
It will be appreciated that the controller 102 obtains the current time, determines the second response frequency according to the current time and the number, obtains the ratio between the first response frequency and the second response frequency, and obtains the preset duration according to the ratio. Therefore, the preset duration is acquired based on the second response frequency corresponding to the preset condition and the first response frequency corresponding to the current condition, and the accuracy of acquiring the preset duration can be further improved.
In this application, the matching between the target first network information and each of the plurality of second network information fails, and if the target first network information exists, the controller 102 may determine that the first server corresponding to the target first network information is a server newly accessed to or having an address changed from the switch. The matching of the target second network information and each of the plurality of first network information fails, and if the target second network information exists, the controller 102 may determine that the second server corresponding to the target second network information is disconnected from the switch or the address of the server is replaced.
In one possible embodiment, in the aspect of matching the plurality of first network information and the plurality of second network information, the controller 120 is specifically configured to obtain, from the plurality of first network information, an identifier and an access address corresponding to each of the plurality of first servers, so as to obtain a plurality of first identifiers and a plurality of first access addresses; acquiring an identifier and an access address corresponding to each second server in the plurality of second servers from the plurality of second network information to obtain a plurality of second identifiers and a plurality of second access addresses; matching the plurality of first identifications and the plurality of second identifications; if the target first identifier in the plurality of first identifiers is successfully matched with the target second identifier in the plurality of second identifiers, matching a first access address corresponding to the target first identifier with a second access address corresponding to the target second identifier; if the matching of the first access address corresponding to the target first identifier and the second access address corresponding to the target second identifier fails, determining that the first network information corresponding to the target first identifier is the target first network information, and determining that the second network information corresponding to the target second identifier is the target second network information; if the matching of the target first identifier and each of the plurality of second identifiers fails, determining that the first network information corresponding to the target first identifier is the target first network information; and if the matching of the target second identifier and each first identifier in the plurality of first identifiers fails, determining that the second network information corresponding to the target second identifier is the target second network information.
As mentioned above, the network information may include identifiers of servers, and the first identifier is an identifier corresponding to the first server, and the second identifier is an identifier corresponding to the second server. The network information also comprises an access address of the server, and the first access address is an access address corresponding to the first server, and the second access address is an access address corresponding to the second server.
It can be appreciated that the controller 102 obtains the corresponding identification information and the access address from the network information corresponding to the server, so as to obtain a plurality of first identifications, a plurality of first access addresses, a plurality of second identifications and a plurality of second access addresses. And matching the plurality of first identifiers with the plurality of second identifiers, if the matching of the target first identifier in the plurality of first identifiers and the target second identifier in the plurality of second identifiers is successful, the server corresponding to the target first identifier and the target second identifier is still connected with the switch, further, identifying whether the first access address corresponding to the target first identifier and the second access address corresponding to the target second identifier are matched, if the matching is successful, the access address between the server and the switch is unchanged, and if the matching is failed, the access address between the server and the switch is changed. On the other hand, if the matching of the target first identifier and each of the plurality of second identifiers fails, the server is a server of the new access switch; if the target second identifier fails to be matched with each first identifier in the plurality of first identifiers, the server is disconnected with the switch, so that whether the server corresponding to the switch changes or not is judged according to the identifier information and the access address of the server, and the judgment accuracy is improved.
In this application, the memory may directly replace the plurality of second network information with the plurality of first network information, or may simply add the target first network information or delete the target second network information, so that the plurality of second network information is updated to the plurality of first network information, which is not limited herein.
It can be understood that, in the present application, the second network information of each second server corresponding to the switch is stored in advance through the memory to obtain a plurality of second network information, and then the switch obtains the network information of each first server connected to the second server to obtain a plurality of first network information, and when the preset duration arrives, the plurality of second network information is sent to the controller. And then, the controller matches the plurality of first network information with the plurality of second network information, if the matching of the target first network information in the plurality of first network information with each second network information in the plurality of second network information fails, or if the matching of the target second network information in the plurality of second network information with each first network information in the plurality of first network information fails, the server connected with the switch is changed, so that the controller controls the memory to update the plurality of second network information into the plurality of first network information. Thus, the access information of the server is updated, and the instantaneity of information maintenance is improved.
In a possible embodiment, referring to fig. 2, the configuration management database system shown in fig. 2 further includes a proxy server 105 connected to the switch 104, for acquiring the plurality of second network information and the plurality of first network information; matching the plurality of first network information and the plurality of second network information; if the target first network information exists, the target first network information is sent to the controller 102; if the target second network information exists, the target second network information is sent to the controller 102.
Wherein the proxy server 105 is configured to determine whether a server to be updated exists. The matching method may refer to the matching method of the controller 102, and will not be described herein.
It may be appreciated that the proxy server 105 obtains a plurality of second network information, a plurality of second identifiers, a plurality of first network information, and a plurality of first identifiers, and matches the plurality of second network information and the plurality of first network information according to the plurality of first identifiers and the plurality of second identifiers to determine whether a server connected to the switch changes, and if the target first network information is determined, sends the target first network information to the controller; if the target second network information is determined, the target second network information is transmitted to the controller, so that the controller 102 controls the memory 106 to update the plurality of second network information to the plurality of first network information. Therefore, the waiting for the preset time is not needed, and the timeliness of information maintenance is further improved. And only the network information needing to be updated is sent, so that the efficiency of updating the network information can be improved.
In a possible embodiment, the switch 104 is further configured to obtain attribute information of a processing request if the processing request is received; generating a plurality of serial processing instructions and a plurality of parallel processing instructions according to the attribute information; determining a server corresponding to each of the plurality of serial processing instructions and the plurality of parallel processing instructions according to the plurality of first network information so as to obtain a plurality of serial servers and a plurality of parallel servers; transmitting a corresponding serial processing instruction to each serial server in the plurality of serial servers, and transmitting a corresponding parallel processing instruction to each parallel server in the plurality of parallel servers; and each server of the plurality of serial servers and the plurality of parallel servers is used for executing corresponding processing instructions.
The attribute information may include an operation capacity, an operation requirement, an operation step, and the like.
The present application is not limited to a method of determining a serial server and a parallel server,
it can be understood that if the switch 104 receives the processing request, attribute information corresponding to the processing request is obtained, and then a plurality of serial processing instructions and a plurality of parallel processing instructions are generated according to the attribute information, and servers corresponding to each of the plurality of serial processing instructions and the plurality of parallel processing instructions are respectively obtained, so that corresponding instructions are sent to corresponding servers, so that the servers execute the corresponding instructions, and thus, data processing efficiency is improved.
In a possible embodiment, in the aspect that the switch 104 determines, according to the plurality of first network information, to execute the plurality of serial processing instructions and a server corresponding to each instruction in the plurality of parallel processing instructions, so as to obtain a plurality of serial servers and a plurality of parallel servers, the switch 104 is specifically configured to obtain, from the plurality of first network information, network state information corresponding to each first server in the plurality of first servers, so as to obtain a plurality of network state information; selecting a plurality of fourth servers according to the network state information; obtaining corresponding access addresses according to the identifiers corresponding to each fourth server in the plurality of fourth servers to obtain a plurality of third access addresses; acquiring the plurality of parallel servers from the plurality of fourth servers according to the plurality of third access addresses; and selecting the serial servers from fourth servers except the parallel servers.
As described above, the network information further includes network status information of access time, network rate, and the like, so in this embodiment, the fourth server is selected according to the network status information, the selection method is not limited in this application, the evaluation value may be obtained according to the network status information, and then the server corresponding to the evaluation value greater than the threshold may be selected as the fourth server.
As described above, the network information further includes the identifier and the access address, and thus, in this embodiment, the corresponding access address may be obtained as the third access address according to the identifier of the fourth server.
According to the method and the device, a plurality of parallel servers are acquired according to the plurality of third access addresses without limitation, the distance between the access addresses can be acquired, and the servers with the closer distances are preferentially selected as the parallel servers, so that the data transmission efficiency is improved.
The method for acquiring the plurality of serial servers from the servers except the plurality of parallel servers in the plurality of fourth servers is not limited, the evaluation values of the servers can be acquired, and then the evaluation values are selected according to the sizes of the evaluation values, so that the data processing efficiency is improved.
It may be appreciated that the switch 104 obtains the network state information of each first server to obtain a plurality of network state information, then selects a plurality of fourth servers according to the plurality of network state information, and then obtains the corresponding access address according to the identifier of each fourth server to obtain a plurality of third access addresses, so that the switch 104 selects a plurality of parallel servers from the plurality of fourth servers according to the plurality of third access addresses, and then selects a plurality of serial servers from servers other than the plurality of parallel servers from the plurality of fourth servers. Therefore, the accuracy of acquiring the parallel server and the serial server is improved, and the data processing efficiency is improved conveniently.
Referring to fig. 3, as shown in fig. 3, an information maintenance method is applied to the configuration management database system shown in fig. 1 or fig. 2, wherein:
s302: the memory stores a plurality of second network information corresponding to the switch, each of the second network information corresponding to one of the second servers.
S304: the switch acquires network information of each first server in the plurality of first servers to obtain the plurality of first network information.
S306: and when the preset time length is reached, the switch sends the plurality of first network information to the controller.
S308: the controller matches the plurality of first network information with the plurality of second network information.
S310: and if the matching of the target first network information in the plurality of first network information and each second network information in the plurality of second network information fails, or the matching of the target second network information in the plurality of second network information and each first network information in the plurality of first network information fails, the controller controls the memory to update the plurality of second network information into the plurality of first network information.
In the information maintenance method shown in fig. 3, the second network information of each second server corresponding to the switch is stored in advance through the memory to obtain a plurality of second network information, then the switch is used for obtaining the network information of each first server connected with the second server to obtain a plurality of first network information, and when the preset duration arrives, the plurality of second network information is sent to the controller. And then, the controller matches the plurality of first network information with the plurality of second network information, if the matching of the target first network information in the plurality of first network information with each second network information in the plurality of second network information fails, or if the matching of the target second network information in the plurality of second network information with each first network information in the plurality of first network information fails, the server connected with the switch is changed, so that the controller controls the memory to update the plurality of second network information into the plurality of first network information. Thus, the access information of the server is updated, and the instantaneity of information maintenance is improved.
In one possible example, the controller matches the plurality of first network information and the plurality of second network information, including:
the controller acquires the identifier and the access address corresponding to each first server in the plurality of first servers from the plurality of first network information so as to obtain a plurality of first identifiers and a plurality of first access addresses;
the controller acquires the identifier and the access address corresponding to each second server in the plurality of second servers from the plurality of second network information so as to obtain a plurality of second identifiers and a plurality of second access addresses;
the controller matches the plurality of first identifications with the plurality of second identifications;
if the target first identifier in the plurality of first identifiers is successfully matched with the target second identifier in the plurality of second identifiers, the controller matches a first access address corresponding to the target first identifier with a second access address corresponding to the target second identifier;
if the matching of the first access address corresponding to the target first identifier and the second access address corresponding to the target second identifier fails, the controller determines that the first network information corresponding to the target first identifier is the target first network information, and the second network information corresponding to the target second identifier is the target second network information;
If the matching of the target first identifier and each of the plurality of second identifiers fails, the controller determines that the first network information corresponding to the target first identifier is the target first network information;
and if the matching of the target second identifier and each first identifier in the plurality of first identifiers fails, the controller determines that the second network information corresponding to the target second identifier is the target second network information.
In one possible example, the method further comprises:
the controller obtains a first response frequency of the switch;
the controller acquires the number of second servers corresponding to the plurality of second network information;
the controller obtains the preset duration according to the first response frequency and the number.
In one possible example, the controller obtaining the preset duration according to the first response frequency and the number includes:
the controller obtains the current time;
the controller determining a second response frequency based on the number and the current time;
the controller obtains the ratio between the first response frequency and the second response frequency;
And the controller acquires the preset duration according to the ratio.
In one possible example, the method further comprises:
if the switch receives a processing request, acquiring attribute information of the processing request;
the switch generates a plurality of serial processing instructions and a plurality of parallel processing instructions according to the attribute information;
the switch determines a server corresponding to each of the serial processing instructions and the parallel processing instructions according to the first network information so as to obtain a plurality of serial servers and a plurality of parallel servers;
the switch sends a corresponding serial processing instruction to each serial server in the plurality of serial servers and sends a corresponding parallel processing instruction to each parallel server in the plurality of parallel servers;
each of the plurality of serial servers and the plurality of parallel servers execute corresponding processing instructions.
In one possible example, the switch determines, according to the plurality of first network information, a server corresponding to each of the plurality of serial processing instructions and the plurality of parallel processing instructions to obtain a plurality of serial servers and a plurality of parallel servers, including:
The switch acquires network state information corresponding to each first server in the plurality of first servers from the plurality of first network information to obtain a plurality of network state information;
the switch selects a plurality of fourth servers according to the network state information;
the switch acquires corresponding access addresses according to the identification corresponding to each fourth server in the plurality of fourth servers to obtain a plurality of third access addresses;
the switch acquires the plurality of parallel servers from the plurality of fourth servers according to the plurality of third access addresses;
the switch selects the plurality of serial servers from among the plurality of fourth servers other than the plurality of parallel servers.
In one possible example, the system further includes a proxy server, and after the switch obtains the network information of each of the plurality of first servers to obtain the plurality of first network information, the method further includes:
the proxy server acquires the plurality of second network information and the plurality of first network information;
the proxy server matches the plurality of first network information with the plurality of second network information;
If the target first network information exists, the proxy server sends the target first network information to the controller;
and if the target second network information exists, the proxy server sends the target second network information to the controller.
In one possible example, the switch and the plurality of servers each employ a link layer discovery protocol; the controller is a software defined network controller.
The embodiment of the invention also provides a computer readable storage medium.
In the present application, the computer readable storage medium may be a high speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory; but also at least one computer storage medium located remotely from the foregoing processor.
In this application, the computer-readable storage medium is used to store a computer program; in a specific implementation, the computer program causes a computer to perform the steps of:
the memory stores a plurality of second network information corresponding to the switch, and each second network information corresponds to a second server;
the switch acquires network information of each first server in the plurality of first servers to obtain a plurality of first network information; when the preset duration is reached, the plurality of first network information are sent to the controller;
The controller matches the plurality of first network information with the plurality of second network information; and if the matching of the target first network information in the plurality of first network information and each second network information in the plurality of second network information fails, or the matching of the target second network information in the plurality of second network information and each first network information in the plurality of first network information fails, controlling the memory to update the plurality of second network information into the plurality of first network information.
It can be understood that the second network information of each second server corresponding to the switch is stored in advance through the memory to obtain a plurality of second network information, then the switch is used for obtaining the network information of each first server connected with the second server to obtain a plurality of first network information, and when the preset duration arrives, the plurality of second network information is sent to the controller. And then, the controller matches the plurality of first network information with the plurality of second network information, if the matching of the target first network information in the plurality of first network information with each second network information in the plurality of second network information fails, or if the matching of the target second network information in the plurality of second network information with each first network information in the plurality of first network information fails, the server connected with the switch is changed, so that the controller controls the memory to update the plurality of second network information into the plurality of first network information. Thus, the access information of the server is updated, and the instantaneity of information maintenance is improved.
In one possible example, in terms of the controller matching the plurality of first network information and the plurality of second network information, the computer program causes the computer to embody instructions for:
the controller acquires the identifier and the access address corresponding to each first server in the plurality of first servers from the plurality of first network information so as to obtain a plurality of first identifiers and a plurality of first access addresses;
the controller acquires the identifier and the access address corresponding to each second server in the plurality of second servers from the plurality of second network information so as to obtain a plurality of second identifiers and a plurality of second access addresses;
the controller matches the plurality of first identifications with the plurality of second identifications;
if the target first identifier in the plurality of first identifiers is successfully matched with the target second identifier in the plurality of second identifiers, the controller matches a first access address corresponding to the target first identifier with a second access address corresponding to the target second identifier;
if the matching of the first access address corresponding to the target first identifier and the second access address corresponding to the target second identifier fails, the controller determines that the first network information corresponding to the target first identifier is the target first network information, and the second network information corresponding to the target second identifier is the target second network information;
If the matching of the target first identifier and each of the plurality of second identifiers fails, the controller determines that the first network information corresponding to the target first identifier is the target first network information;
and if the matching of the target second identifier and each first identifier in the plurality of first identifiers fails, the controller determines that the second network information corresponding to the target second identifier is the target second network information.
In one possible example, the computer program causes the computer to also be operative to execute the instructions of:
the controller obtains a first response frequency of the switch;
the controller acquires the number of second servers corresponding to the plurality of second network information;
the controller obtains the preset duration according to the first response frequency and the number.
In one possible example, in terms of the controller obtaining the preset duration according to the first response frequency and the number, the computer program causes the computer to specifically execute instructions for:
the controller obtains the current time;
the controller determining a second response frequency based on the number and the current time;
The controller obtains the ratio between the first response frequency and the second response frequency;
and the controller acquires the preset duration according to the ratio.
In one possible example, the computer program causes the computer to also be operative to execute the instructions of:
if the switch receives a processing request, acquiring attribute information of the processing request;
the switch generates a plurality of serial processing instructions and a plurality of parallel processing instructions according to the attribute information;
the switch determines a server corresponding to each of the serial processing instructions and the parallel processing instructions according to the first network information so as to obtain a plurality of serial servers and a plurality of parallel servers;
the switch sends a corresponding serial processing instruction to each serial server in the plurality of serial servers and sends a corresponding parallel processing instruction to each parallel server in the plurality of parallel servers;
each of the plurality of serial servers and the plurality of parallel servers execute corresponding processing instructions.
In one possible example, in the aspect that the switch determines, according to the plurality of first network information, a server corresponding to each of the plurality of serial processing instructions and the plurality of parallel processing instructions to obtain a plurality of serial servers and a plurality of parallel servers, the computer program makes the computer specifically configured to execute the instructions of:
The switch acquires network state information corresponding to each first server in the plurality of first servers from the plurality of first network information to obtain a plurality of network state information;
the switch selects a plurality of fourth servers according to the network state information;
the switch acquires corresponding access addresses according to the identification corresponding to each fourth server in the plurality of fourth servers to obtain a plurality of third access addresses;
the switch acquires the plurality of parallel servers from the plurality of fourth servers according to the plurality of third access addresses;
the switch selects the plurality of serial servers from among the plurality of fourth servers other than the plurality of parallel servers.
In one possible example, the switch and the plurality of servers each employ a link layer discovery protocol; the controller is a software defined network controller.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modes referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, such as a division of units, merely a division of logic functions, and there may be additional divisions in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units described above may be implemented either in hardware or in software program mode.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. In light of such understanding, the technical solutions of the present application, or portions thereof, that are in essence or contribute to the prior art, or all or part of the technical solutions, may be embodied in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the methods of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, ROM, RAM, magnetic or optical disk, etc.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the contents of the present specification should not be construed as limiting the present application in summary.

Claims (9)

1. An information maintenance method, applied to a configuration management database system, the configuration management database system including a controller, a switch, a memory, and a plurality of first servers, the first servers being servers currently connected to the switch, the method comprising:
the memory stores a plurality of second network information corresponding to the switch, each second network information corresponds to a second server, and the second server is a server connected with the switch when the memory is updated last time;
The switch acquires network information of each first server in the plurality of first servers to obtain a plurality of first network information; when the preset duration is reached, the plurality of first network information are sent to the controller;
the controller matches the plurality of first network information with the plurality of second network information; if the matching of the target first network information in the plurality of first network information and each second network information in the plurality of second network information fails, or the matching of the target second network information in the plurality of second network information and each first network information in the plurality of first network information fails, controlling the memory to update the plurality of second network information into the plurality of first network information;
the method further comprises the steps of:
if the switch receives a processing request, acquiring attribute information of the processing request;
the switch generates a plurality of serial processing instructions and a plurality of parallel processing instructions according to the attribute information;
the switch determines a server corresponding to each of the serial processing instructions and the parallel processing instructions according to the first network information so as to obtain a plurality of serial servers and a plurality of parallel servers;
The switch sends a corresponding serial processing instruction to each serial server in the plurality of serial servers and sends a corresponding parallel processing instruction to each parallel server in the plurality of parallel servers;
each of the plurality of serial servers and the plurality of parallel servers execute corresponding processing instructions.
2. The method of claim 1, wherein the controller matching the plurality of first network information and the plurality of second network information comprises:
the controller acquires the identifier and the access address corresponding to each first server in the plurality of first servers from the plurality of first network information so as to obtain a plurality of first identifiers and a plurality of first access addresses;
the controller acquires the identifier and the access address corresponding to each second server in the plurality of second servers from the plurality of second network information so as to obtain a plurality of second identifiers and a plurality of second access addresses;
the controller matches the plurality of first identifications with the plurality of second identifications;
if the target first identifier in the plurality of first identifiers is successfully matched with the target second identifier in the plurality of second identifiers, the controller matches a first access address corresponding to the target first identifier with a second access address corresponding to the target second identifier;
If the matching of the first access address corresponding to the target first identifier and the second access address corresponding to the target second identifier fails, the controller determines that the first network information corresponding to the target first identifier is the target first network information, and the second network information corresponding to the target second identifier is the target second network information;
if the matching of the target first identifier and each of the plurality of second identifiers fails, the controller determines that the first network information corresponding to the target first identifier is the target first network information;
and if the matching of the target second identifier and each first identifier in the plurality of first identifiers fails, the controller determines that the second network information corresponding to the target second identifier is the target second network information.
3. The method according to claim 1, wherein the method further comprises:
the controller obtains a first response frequency of the switch;
the controller acquires the number of second servers corresponding to the plurality of second network information;
the controller obtains the preset duration according to the first response frequency and the number.
4. The method of claim 3, wherein the controller obtaining the preset time period from the first response frequency and the number comprises:
the controller obtains the current time;
the controller determining a second response frequency based on the number and the current time;
the controller obtains the ratio between the first response frequency and the second response frequency;
and the controller acquires the preset duration according to the ratio.
5. The method according to any one of claims 1-4, wherein the determining, by the switch according to the first network information, a server corresponding to each of the serial processing instructions and the parallel processing instructions to obtain a serial server and a parallel server includes:
the switch acquires network state information corresponding to each first server in the plurality of first servers from the plurality of first network information to obtain a plurality of network state information;
the switch selects a plurality of fourth servers according to the network state information;
the switch acquires corresponding access addresses according to the identification corresponding to each fourth server in the plurality of fourth servers to obtain a plurality of third access addresses;
The switch acquires the plurality of parallel servers from the plurality of fourth servers according to the plurality of third access addresses;
the switch selects the plurality of serial servers from among the plurality of fourth servers other than the plurality of parallel servers.
6. The method of any of claims 1-4, wherein the system further comprises a proxy server, and wherein after the switch obtains the network information for each of the plurality of first servers to obtain the plurality of first network information, the method further comprises:
the proxy server acquires the plurality of second network information and the plurality of first network information;
the proxy server matches the plurality of first network information with the plurality of second network information;
if the target first network information exists, the proxy server sends the target first network information to the controller;
and if the target second network information exists, the proxy server sends the target second network information to the controller.
7. The method of any of claims 1-4, wherein the switch and the plurality of first servers and the second server each employ a link layer discovery protocol; the controller is a software defined network controller.
8. A configuration management database system, the system comprising a controller, a memory and a switch connected to the controller, a plurality of first servers connected to the switch, the first servers being servers currently connected to the switch, wherein:
the memory is configured to store a plurality of second network information corresponding to the switch, where each second network information corresponds to a second server, and the second server is a server connected to the switch when the memory is updated last time;
the switch is configured to obtain network information of each first server in the plurality of first servers, so as to obtain a plurality of first network information; when the preset duration is reached, the plurality of first network information are sent to the controller;
the controller is used for matching the plurality of first network information and the plurality of second network information; if the matching of the target first network information in the plurality of first network information and each second network information in the plurality of second network information fails, or the matching of the target second network information in the plurality of second network information and each first network information in the plurality of first network information fails, controlling the memory to update the plurality of second network information into the plurality of first network information;
The switch is also used for acquiring attribute information of the processing request if the processing request is received; generating a plurality of serial processing instructions and a plurality of parallel processing instructions according to the attribute information; determining a server corresponding to each of the plurality of serial processing instructions and the plurality of parallel processing instructions according to the plurality of first network information so as to obtain a plurality of serial servers and a plurality of parallel servers; transmitting a corresponding serial processing instruction to each serial server in the plurality of serial servers, and transmitting a corresponding parallel processing instruction to each parallel server in the plurality of parallel servers; and each server of the plurality of serial servers and the plurality of parallel servers is used for executing corresponding processing instructions.
9. A computer readable storage medium for storing a computer program, wherein the computer program causes a computer to perform the method of any one of claims 1-7.
CN201910349012.8A 2019-04-28 2019-04-28 Information maintenance method, configuration management database system and storage medium Active CN110109933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910349012.8A CN110109933B (en) 2019-04-28 2019-04-28 Information maintenance method, configuration management database system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910349012.8A CN110109933B (en) 2019-04-28 2019-04-28 Information maintenance method, configuration management database system and storage medium

Publications (2)

Publication Number Publication Date
CN110109933A CN110109933A (en) 2019-08-09
CN110109933B true CN110109933B (en) 2024-01-19

Family

ID=67487190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910349012.8A Active CN110109933B (en) 2019-04-28 2019-04-28 Information maintenance method, configuration management database system and storage medium

Country Status (1)

Country Link
CN (1) CN110109933B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115185759B (en) * 2022-09-05 2023-09-29 平安银行股份有限公司 Method, device and system for checking server wiring based on LLDP

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631955A (en) * 2013-12-12 2014-03-12 北京奇虎科技有限公司 Method and device for updating browser kernel switching matching bank data
KR101465691B1 (en) * 2013-05-27 2014-11-28 (주)이월리서치 An aggressive interception system by financial fraud Phising and Pharming
CN105228202A (en) * 2015-10-12 2016-01-06 小米科技有限责任公司 Method for connecting network and device
CN107689955A (en) * 2017-08-30 2018-02-13 平安科技(深圳)有限公司 SIP information analysis methods and server

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9742700B2 (en) * 2015-08-05 2017-08-22 Cisco Technology, Inc. Method and apparatus for enabling communications and features in storage area networks
US10437684B2 (en) * 2016-03-29 2019-10-08 International Business Machines Corporation Similarity based deduplication for secondary storage
US10331654B2 (en) * 2016-05-20 2019-06-25 Adobe Inc. Using an action registry to edit data across users and devices
US10397438B2 (en) * 2016-10-26 2019-08-27 Orcam Technologies Ltd. Systems and methods for causing execution of an action based on physical presence of a detected person

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101465691B1 (en) * 2013-05-27 2014-11-28 (주)이월리서치 An aggressive interception system by financial fraud Phising and Pharming
CN103631955A (en) * 2013-12-12 2014-03-12 北京奇虎科技有限公司 Method and device for updating browser kernel switching matching bank data
CN105228202A (en) * 2015-10-12 2016-01-06 小米科技有限责任公司 Method for connecting network and device
CN107689955A (en) * 2017-08-30 2018-02-13 平安科技(深圳)有限公司 SIP information analysis methods and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于信息空间模型的网络信息资源存储网格;纪利群;王恒山;;计算机工程与应用(第25期);全文 *

Also Published As

Publication number Publication date
CN110109933A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
CN103026660B (en) Network policy configuration method, management equipment and network management centre device
EP3905598B1 (en) Message processing method and apparatus, control plane device, and computer storage medium
CN107342925B (en) Message transmission method and device
CN104301141B (en) A kind of method, apparatus and system for preserving configuration information
EP3099032A1 (en) A load balancing method, device, system and computer storage medium
CN112953774B (en) Network topology generation method, system, equipment and computer storage medium
CN109548063B (en) Method, device, equipment and storage medium for processing message
CN108881354A (en) A kind of pushed information storage method, device, server and computer storage medium
US9094316B2 (en) Dynamic name generation
CN105721328B (en) VRRP load balancing method, device and router
US20140156820A1 (en) Configuration information selection based on extracted information
CN107465621B (en) Router discovery method, SDN controller, router and network system
CN107070719B (en) Equipment management method and device
EP3675465B1 (en) Faster duplicate address detection for ranges of link local addresses
CN110855464A (en) Network topology structure adjusting method and device
CN106411713B (en) State notification method and server
US20080065764A1 (en) Method and system for reduced distributed event handling in a network environment
CN110109933B (en) Information maintenance method, configuration management database system and storage medium
US10454884B2 (en) Terminal and multicast address distribution server
CN110851186B (en) Network equipment restarting method and device, electronic equipment and readable storage medium
CN108769118A (en) The choosing method and device of host node in a kind of distributed system
CN107528788B (en) Method and device for realizing automatic stacking between network devices
RU2693903C1 (en) Method, apparatus and processing system for expanded port
CN105122776B (en) Address acquiring method and network virtualization edge device
KR20210016802A (en) Method for optimizing flow table for network service based on server-client in software defined networking environment and sdn switch thereofor

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