CN115002071A - Information updating method, device, equipment and readable storage medium - Google Patents

Information updating method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN115002071A
CN115002071A CN202210577343.9A CN202210577343A CN115002071A CN 115002071 A CN115002071 A CN 115002071A CN 202210577343 A CN202210577343 A CN 202210577343A CN 115002071 A CN115002071 A CN 115002071A
Authority
CN
China
Prior art keywords
server
dhcp server
log
mac
information updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210577343.9A
Other languages
Chinese (zh)
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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202210577343.9A priority Critical patent/CN115002071A/en
Publication of CN115002071A publication Critical patent/CN115002071A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2596Translation of addresses of the same type other than IP, e.g. translation from MAC to MAC addresses

Abstract

The application discloses an information updating method, an information updating device, information updating equipment and a readable storage medium. The method and the device can obtain the latest corresponding relation between the IP and the MAC from the working log in the DHCP server. The DHCP server is a recording source of the corresponding relation between the IP and the MAC, so that when the DHCP server meets the preset condition, the DHCP server sends the log related content of the current working log to the server, and the server can acquire a hand of data of the corresponding relation between the IP and the MAC, so that the accuracy of the corresponding relation between the IP and the MAC determined by the server is guaranteed. Therefore, the proposal does not need to request the ARP table from the switch and disassemble the message, and can improve the information updating accuracy of the corresponding relation between the IP and the MAC without increasing the pressure of the switch. Accordingly, the information updating device, the equipment and the readable storage medium provided by the application also have the technical effects.

Description

Information updating method, device, equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information updating method, apparatus, device, and readable storage medium.
Background
Currently, for each terminal under a three-layer switch, the MAC address of the network-accessing terminal can be obtained from a DHCP broadcast message or from an ARP table of the switch. The method for acquiring the MAC address from the DHCP broadcast message has the technical problem of inaccuracy, namely, when a plurality of DHCP servers exist in a network, the MAC address is acquired through the DHCP broadcast message. The MAC address is obtained from the ARP table, and the ARP table needs to be requested from the switch in time, which may cause the switch to have a large pressure and affect the normal transmission of the network data by the switch.
Therefore, how to improve the accuracy of acquiring IP and MAC information while avoiding the switch stress is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide an information updating method, apparatus, device and readable storage medium, so as to improve the efficiency and accuracy of acquiring IP and MAC information while avoiding the switch pressure. The specific scheme is as follows:
in a first aspect, the present application provides an information updating method, applied to a DHCP server, the method including:
establishing communication connection with a server;
and when a preset condition is met, based on the current working log in the DHCP server, sending the log related content to the server, so that the server updates the corresponding relation between the IP and the MAC based on the log related content.
Optionally, the preset conditions are: the working log in the DHCP server changes.
Optionally, the method further comprises:
and actively monitoring the change of the working log in the DHCP server to determine whether a preset condition is met.
Optionally, the method further comprises:
and passively receiving notification information which is sent by the DHCP server and used for indicating the change of the working log so as to determine whether a preset condition is met.
Optionally, the method is implemented by a component with a log collection function deployed in the DHCP server.
In a second aspect, the present application provides an information updating method, which is applied to a server, and the method includes:
establishing communication connection with a DHCP server;
acquiring log related content sent by the DHCP server;
and updating the corresponding relation between the IP and the MAC based on the log related content.
In a third aspect, the present application provides an information updating apparatus, applied to a DHCP server, the apparatus including:
the first connection module is used for establishing communication connection with the server;
and the sending module is used for sending the log related content to the server based on the current working log in the DHCP server when a preset condition is met, so that the server updates the corresponding relation between the IP and the MAC based on the log related content.
In a fourth aspect, the present application provides an information updating apparatus, which is applied to a server, and the apparatus includes:
the second connection module is used for establishing communication connection with the DHCP server;
the acquisition module is used for acquiring the log related content sent by the DHCP server;
and the updating module is used for updating the corresponding relation between the IP and the MAC based on the log related content.
In a fifth aspect, the present application provides an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the information updating method disclosed in the foregoing.
In a sixth aspect, the present application provides a readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the information updating method disclosed in the foregoing.
According to the above scheme, the present application provides an information updating method, which is applied to a DHCP server, and the method includes: establishing communication connection with a server; and when a preset condition is met, based on the current working log in the DHCP server, sending the log related content to the server, so that the server updates the corresponding relation between the IP and the MAC based on the log related content.
Therefore, the latest corresponding relation between the IP and the MAC can be obtained from the working log in the DHCP server. The DHCP server, as an IP resource allocation and manager, generally only performs DHCP-related services, and therefore has sufficient resources to send its working log to the server (the "server" in this application may be a three-layer network switch device, for example, a three-layer gateway device that implements a "secondary access authentication-free function" through a MAC address). Meanwhile, the DHCP server is a recording source of the corresponding relation between the IP and the MAC, so that when the DHCP server meets the preset condition, the DHCP server sends the log related content of the current working log to the server, and the server can timely acquire a hand of data of the corresponding relation between the IP and the MAC, so that the accuracy of the corresponding relation between the IP and the MAC determined by the server is guaranteed. Therefore, the proposal does not need to request an ARP table to the switch, does not need to disassemble messages through complex DHCP broadcasting, can avoid the problem of inaccurate IP-MAC corresponding relation caused by a plurality of DHCP servers, and can improve the information updating accuracy of the corresponding relation of IP and MAC on the premise of not increasing the pressure of the switch.
Accordingly, the information updating device, the equipment and the readable storage medium provided by the application also have the technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of an information updating method disclosed herein;
FIG. 2 is a schematic diagram of a connection between devices disclosed herein;
FIG. 3 is a flow chart of another information updating method disclosed herein;
FIG. 4 is a schematic diagram of an information update disclosed herein;
FIG. 5 is a schematic diagram of an information updating apparatus disclosed herein;
FIG. 6 is a schematic view of another information updating apparatus disclosed herein;
FIG. 7 is a schematic view of an electronic device disclosed herein;
fig. 8 is a schematic view of another electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, the MAC address is acquired from the DHCP broadcast message, the DHCP request message needs to be analyzed, the data packet needs to be disassembled according to the DHCP protocol format for analyzing the DHCP broadcast message, the unpacking process is complex, mirror image flow operation is needed, and the overall efficiency is low. And when a plurality of DHCP servers exist in the network, the technical problem of inaccuracy exists in obtaining the MAC address through the DHCP broadcast message. The MAC address is obtained from the ARP table, and the ARP table needs to be requested from the switch in time, which may cause the switch to have a large pressure and affect the normal transmission of the network data by the switch. Therefore, the information updating scheme is provided, and the obtaining efficiency and accuracy of the IP and MAC information can be improved.
Referring to fig. 1, an embodiment of the present application discloses an information updating method, which is applied to a DHCP server, and the method includes:
s101, communication connection is established with a server.
Wherein, the server may be: the server side can count the latest corresponding relation between the IP and the MAC so as to inquire and call other functions or services. The server may be a three-layer network switching device.
S102, when the preset condition is met, based on the current working log in the DHCP server, the log related content is sent to the server, so that the server updates the corresponding relation between the IP and the MAC based on the log related content.
The log related content sent by the DHCP server to the server may be: the total content of the current working log in the DHCP server may also be a log change content generated between the current time and the previous sending time, or a content obtained after analyzing the current working log and representing the latest correspondence between the IP and the MAC. Similarly, the content of the correspondence between IP and MAC may be the content of the latest correspondence between IP and MAC in the whole amount, or the content of the correspondence between IP and MAC changed from the last time. The specific information in the work log recorded by the DHCP server may include: the identification information of the network access device and the MAC address of the network access device may also include: IP addresses are assigned time stamps, etc. To facilitate subsequent utilization of the IP-MAC correspondence, the present embodiment collects the latest IP-MAC correspondence using the server (any computer device).
It should be noted that, the DHCP server is connected to the three-layer network switch device, and after the DHCP server allocates an IP address to the network access device, the DHCP server records the IP allocation information of the network access device, and then obtains a working log of the DHCP server. When a DHCP server allocates an IP address to a network access device, the DHCP server records IP allocation information corresponding to the device. That is, the DHCP server is responsible for allocating IP addresses to the respective network-accessing devices connected to the three-layer network switching device. Specifically, fig. 2 is a schematic diagram of a DHCP server, a three-layer network switch device, and connections among network access devices. In fig. 2, a three-layer switch is a three-layer network switching device.
The IP allocation information recorded for one network access device may specifically include: the identifier of the network access device, the device name of the network access device, the IP address assigned to the network access device, the MAC address of the network access device, the IP address assignment timestamp, and the like. The identification information of the network access device may be: an identifier of the network-accessing device, a device name of the network-accessing device, or an IP address assigned to the network-accessing device. In a specific embodiment, the IP allocation information of the network access device may be stored in a preset storage path. That is, the work log of the DHCP server is fixedly stored in the preset storage path of the DHCP server.
It should be noted that, the process of allocating an IP address to a network access device by the DHCP server may refer to the related art. In a specific embodiment, allocating an IP address to a network access device includes: receiving a DHCP request packet sent by the network access equipment, and returning an allocable target IP address to the network access equipment based on the DHCP request packet; and receiving an IP address use request sent by the network access equipment, and returning a confirmation message to the network access equipment based on the IP address use request so as to distribute the target IP address to the network access equipment. The network access device can use the target IP address to carry out networking.
In one embodiment, the preset conditions are: the working log in the DHCP server changes. When the working log in the DHCP server changes, the preset condition is considered to be met, and therefore log related content is sent to the server based on the current working log in the DHCP server, so that the server updates the corresponding relation between the IP and the MAC based on the log related content. On the contrary, if the working log in the DHCP server is not changed, the preset condition is considered not to be met, so that no step is executed, and the working log in the DHCP server is continuously waited for changing. The mode that once the working log changes can lead the service end to update the corresponding relation between the IP and the MAC in time, and further improve the accuracy of the corresponding relation between the stored IP and the MAC.
In addition, specifically, whether the work log in the DHCP server changes or not is determined, and there are two ways, one is to actively monitor the change of the work log in the DHCP server; and the other is to passively receive the notification information sent by the DHCP server for indicating the change of the work log. How to implement the method can be determined according to actual scenes.
In particular, the embodiment may be implemented by deploying relevant components (such as the log collection component in fig. 2) in the DHCP server. In a specific implementation manner, the embodiment is implemented by a component with a log collection function deployed in a DHCP server. The components with the log collection function can be realized through logstack, nxlog, filebeat and the like. Accordingly, the component deployed in the DHCP server may actively monitor changes of the working log in the DHCP server to determine whether the preset condition is met, and may also passively receive notification information sent by the DHCP server to indicate the change of the working log to determine whether the preset condition is met.
It can be seen that, in this embodiment, the latest correspondence between the IP and the MAC can be obtained from the working log in the DHCP server. Since the DHCP server generally performs only DHCP-related services as an IP resource allocation and management master, it has sufficient resources to transmit its own work log to the server. Meanwhile, the DHCP server is a recording source of the corresponding relation between the IP and the MAC, so that when meeting the preset condition, the DHCP server sends the log related content of the current working log of the DHCP server to the server, and the server can acquire one hand of data of the corresponding relation between the IP and the MAC in time, so that the accuracy of the corresponding relation between the IP and the MAC determined by the server is guaranteed. Therefore, the proposal does not need to request the ARP table from the switch and disassemble the message, and can improve the information updating accuracy of the corresponding relation between the IP and the MAC without increasing the pressure of the switch.
Referring to fig. 3, an embodiment of the present application discloses another information updating method, which is applied to a server, and the method includes:
s301, communication connection is established with the DHCP server.
S302, the log related content sent by the DHCP server is obtained.
S303, updating the corresponding relation between the IP and the MAC based on the log related content.
In a specific embodiment, updating the correspondence between the IP and the MAC based on the log-related content includes: acquiring log information recorded with the corresponding relation between the IP and the MAC from the log related content; determining the latest corresponding relation between the IP and the MAC based on the log information; and updating the corresponding relation between the IP and the MAC recorded by the self based on the latest corresponding relation. The log related content records a MAC field, a MAC address, an IP field and an IP address. The MAC field is as follows: hardware Ethernet, the information behind this field is the MAC address. For example, the MAC address of a certain network access device can be recorded as: hardware southern 00:0c 29:51: b3: d 9.
In order to save computer resources of the DHCP server and not increase the pressure of the DHCP server, in this embodiment, a function is not added to the DHCP server, but only log-related contents that are originally recorded in the DHCP server are obtained, and then the server obtains the latest IP and MAC correspondence from the log-related contents to update information.
In a specific embodiment, the server may monitor a storage path in the DHCP server for storing the log-related content, so as to obtain the log-related content and ensure the obtaining accuracy. Meanwhile, the scheme does not need to request an ARP table to the switch and disassemble the message, and can improve the information updating accuracy rate on the premise of not increasing the pressure of the switch.
The following embodiments are described in detail with respect to the schemes provided in the present application in conjunction with specific scenarios. As shown in fig. 2, in a scenario of dynamic IP allocation, each network access device carries its own MAC address and applies for an IP address from a DHCP server through a DHCP protocol, so that the DHCP server can sense and record the MAC address of the network access device in the current network and the used IP address at the first time, and the DHCP server collects IP allocation information as its own work log, thereby obtaining the work log in the DHCP server to determine the correspondence between IP and MAC, and being capable of timely and accurately obtaining the MAC address of the network access device in a three-layer network environment.
For this reason, the embodiment deploys a log collection component in the DHCP server to obtain the working log in the DHCP server. Meanwhile, the DHCP server is in communication connection with the server side, so that the server side can timely obtain a working log of the DHCP server, and the server side can obtain information such as an MAC address, an IP and MAC corresponding relation and the like of the network access equipment from the log.
Referring to fig. 4, the process of the network access device applying for the IP address from the DHCP server includes: the network access equipment sends a DHCP request message to search a DHCP server existing in the current network environment, the DHCP server receives the DHCP request message and then puts an IP address available for use in a repackage and sends the repackage to the network access equipment, the network access equipment requests to use the IP address, and after receiving the request of the network access equipment requesting to use the IP address, the DHCP server replies an ack confirmation message to the network access equipment to indicate that the DHCP server agrees to the network access equipment to use the IP address. Then, the network access device can use the IP address to access the network, and the IP address allocated by the DHCP server to the network access device, the MAC address of the network access device, and other information are recorded in its working log by the DHCP server, so that once the log collection component in the DHCP server detects a log change, the working log of the DHCP server can be sent to other functional components in the server, and the server can obtain IP-MAC data from the logs. The server side can actively establish communication connection with the DHCP server and then wait for a log collection component in the DHCP server to send IP-MAC data, so that the acquisition of the MAC address of the network access equipment in a cross-three-layer environment is completed.
Wherein, the working log of the DHCP server is stored under the appointed path in the DHCP server. In this embodiment, taking the RHEL 5 system as an example, the log storage path is set as follows: the paths can store the following information: various timestamps of IP assignment, device MAC addresses (00:0c:29:51: b3: d9), device identifiers (\001\000\014) Q \263\331), device names (linux-5jlv), etc., which are embodied in the log as:
Lease 192.168.150.207{
Starts 1 2021/12/25 11:23:32
End 1 2021/12/2511:25:32;
Tstp 1 202112/25 11:25:32;
Cltt 1 2021/12/25 11:25:32;
Binding state free;
Hardware ethernet 00:0c:29:51:b3:d9;
Uid"\001\000\014)Q\263\331";
Client-hostname"linux-5jlv";
}
specifically, the log collection component may be configured individually, such as: configuring storage path, sending path, event management, regular matching, log filtering, rewriting, alarming and other functions.
The storage path is configured as follows:
Figure BDA0003662695990000061
the transmission path configuration is as follows:
Figure BDA0003662695990000062
therefore, the embodiment can acquire the equipment MAC address from the log recorded by the DHCP server, and can realize quick and accurate acquisition. The DHCP server is generally good in performance, performance pressure cannot exist, log collection is carried out on the DHCP server to obtain the MAC address, and obtaining timeliness and accuracy can be improved.
An information updating apparatus provided in an embodiment of the present application is introduced below, and an information updating apparatus described below and an information updating method described above may be referred to each other.
Referring to fig. 5, an embodiment of the present application discloses an information updating apparatus, which is applied to a DHCP server, and includes:
a first connection module 501, configured to establish a communication connection with a server;
the sending module 502 is configured to send log related content to the server based on the current working log in the DHCP server when a preset condition is met, so that the server updates the corresponding relationship between the IP and the MAC based on the log related content.
In one embodiment, the preset conditions are: the working log in the DHCP server changes.
In a specific embodiment, the method further comprises the following steps:
and the active monitoring module is used for actively monitoring the change of the working log in the DHCP server so as to determine whether the preset condition is met.
In a specific embodiment, the method further comprises the following steps:
and the passive receiving module is used for passively receiving notification information which is sent by the DHCP server and used for indicating the change of the working log so as to determine whether a preset condition is met.
In one embodiment, the method is implemented by a component with a log collection function deployed in a DHCP server.
For more specific working processes of each module and unit in this embodiment, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here again.
Therefore, the embodiment provides an information updating device, which can improve the accuracy of information updating on the premise of not increasing the pressure of the switch. The apparatus may be any type of software program, such as a software program deployed in a cloud computing platform.
In the following, another information updating apparatus provided by the embodiment of the present application is introduced, and an information updating apparatus described below and another information updating method described above may be referred to each other.
Referring to fig. 6, an embodiment of the present application discloses an information updating apparatus, which is applied to a server, and includes:
a second connection module 601, configured to establish a communication connection with a DHCP server;
an obtaining module 602, configured to obtain log-related content sent by a DHCP server;
an updating module 603, configured to update the correspondence between the IP and the MAC based on the log-related content.
In a specific embodiment, the update module is specifically configured to:
acquiring log information recorded with the corresponding relation between the IP and the MAC from the log related content;
determining the latest corresponding relation between the IP and the MAC based on the log information;
and updating the corresponding relation between the IP and the MAC recorded by the self based on the latest corresponding relation.
For more specific working processes of each module and unit in this embodiment, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here again.
It can be seen that the present embodiment provides an information updating apparatus, which can improve the accuracy of information updating without increasing the pressure on the switch. The apparatus may be any type of software program, such as a software program deployed in a cloud computing platform.
In the following, an electronic device provided by an embodiment of the present application is introduced, and an electronic device described below and an information updating method and apparatus described above may be referred to each other.
Referring to fig. 7, an embodiment of the present application discloses an electronic device, including:
a memory 701 for storing a computer program;
a processor 702 for executing the computer program to implement the method disclosed in any of the embodiments above.
Referring to fig. 8, fig. 8 is a schematic diagram of another electronic device provided in this embodiment, which may have a larger difference due to different configurations or performances, and may include one or more processors (CPUs) 322 (e.g., one or more processors) and a memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) storing an application 342 or data 344. Memory 332 and storage media 330 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 330 may include one or more modules (not shown), each of which may include a series of instructions operating on a data processing device. Still further, the central processor 322 may be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the electronic device 301.
The electronic device 301 may also include one or more power sources 326, one or more wired or wireless network interfaces 350, one or more input-output interfaces 358, and/or one or more operating systems 341. Such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
In fig. 8, the application 342 may be a program that performs an information updating method, and the data 344 may be data that is required or generated to perform the information updating method.
The steps in the information updating method described above may be implemented by the structure of the electronic device. In addition, the electronic device may be a multi-hardware entity besides a traditional single hardware entity, such as a cluster formed by a plurality of computers, for example, a cloud computing platform.
In the following, a readable storage medium provided by an embodiment of the present application is introduced, and a readable storage medium described below and an information updating method, apparatus, and device described above may be referred to with each other.
A readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the information updating method disclosed in the foregoing embodiments. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
References in this application to "first," "second," "third," "fourth," etc., if any, are intended to distinguish between similar elements and not necessarily to describe a particular order or sequence. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be implemented in other sequences than those illustrated or described herein. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, or apparatus.
It should be noted that the descriptions relating to "first", "second", etc. in this application are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between the embodiments may be combined with each other, but must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory to each other or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope claimed in the present application.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts between the embodiments are referred to each other.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of readable storage medium known in the art.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An information updating method, applied to a DHCP server, the method comprising:
establishing communication connection with a server;
and when a preset condition is met, based on the current working log in the DHCP server, sending log related content to the server, so that the server updates the corresponding relation between the IP and the MAC based on the log related content.
2. The method according to claim 1, wherein the preset condition is: the working log in the DHCP server changes.
3. The method of claim 2, further comprising:
and actively monitoring the change of the working log in the DHCP server to determine whether a preset condition is met.
4. The method of claim 2, further comprising:
and passively receiving notification information which is sent by the DHCP server and used for indicating the change of the working log so as to determine whether a preset condition is met.
5. The method according to any of claims 1 to 4, implemented by a log collection-enabled component deployed in the DHCP server.
6. An information updating method applied to a server side, the method comprising:
establishing communication connection with a DHCP server;
acquiring log related content sent by the DHCP server;
and updating the corresponding relation between the IP and the MAC based on the log related content.
7. An information updating apparatus, applied to a DHCP server, the apparatus comprising:
the first connection module is used for establishing communication connection with the server;
and the sending module is used for sending the log related content to the server based on the current working log in the DHCP server when a preset condition is met, so that the server updates the corresponding relation between the IP and the MAC based on the log related content.
8. An information updating apparatus, applied to a server, the apparatus comprising:
the second connection module is used for establishing communication connection with the DHCP server;
the acquisition module is used for acquiring the log related content sent by the DHCP server;
and the updating module is used for updating the corresponding relation between the IP and the MAC based on the log related content.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method of any one of claims 1 to 6.
10. A readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the method of any one of claims 1 to 6.
CN202210577343.9A 2022-05-25 2022-05-25 Information updating method, device, equipment and readable storage medium Pending CN115002071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210577343.9A CN115002071A (en) 2022-05-25 2022-05-25 Information updating method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210577343.9A CN115002071A (en) 2022-05-25 2022-05-25 Information updating method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115002071A true CN115002071A (en) 2022-09-02

Family

ID=83028850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210577343.9A Pending CN115002071A (en) 2022-05-25 2022-05-25 Information updating method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115002071A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8301753B1 (en) * 2006-06-27 2012-10-30 Nosadia Pass Nv, Limited Liability Company Endpoint activity logging
CN103516821A (en) * 2012-06-25 2014-01-15 中国移动通信集团公司 Address resolution method, corresponding system, switch, and server
CN103856469A (en) * 2012-12-06 2014-06-11 中国电信股份有限公司 Method and system supporting DHCP authentication and provenance, and DHCP server
JP2014230046A (en) * 2013-05-22 2014-12-08 株式会社ナカヨ Ip address allocation server having control function by hub
CN104601737A (en) * 2013-10-31 2015-05-06 上海斐讯数据通信技术有限公司 Method for AP (Access Point) to acquire IP (Internet Protocol) addresses of clients
CN105245629A (en) * 2015-09-25 2016-01-13 互联网域名系统北京市工程研究中心有限公司 DHCP-based host communication method and device
WO2017000565A1 (en) * 2015-07-01 2017-01-05 中兴通讯股份有限公司 User access control method and apparatus, relay device and server
US20170339102A1 (en) * 2016-05-19 2017-11-23 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Methods and apparatus for an ip address assignment
CN108123955A (en) * 2017-12-27 2018-06-05 新华三技术有限公司 Management method, device, equipment and the machine readable storage medium of safe list item
CN109347994A (en) * 2018-10-19 2019-02-15 Oppo广东移动通信有限公司 Internet protocol address acquisition methods, device, storage medium and electronic equipment
US10489090B1 (en) * 2018-08-01 2019-11-26 Palo Alto Research Center Incorporated System and method for detecting printer moves in a managed print environment
CN114244801A (en) * 2021-12-31 2022-03-25 四川天邑康和通信股份有限公司 ARP (Address resolution protocol) cheating preventing method and system based on government and enterprise gateway

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8301753B1 (en) * 2006-06-27 2012-10-30 Nosadia Pass Nv, Limited Liability Company Endpoint activity logging
CN103516821A (en) * 2012-06-25 2014-01-15 中国移动通信集团公司 Address resolution method, corresponding system, switch, and server
CN103856469A (en) * 2012-12-06 2014-06-11 中国电信股份有限公司 Method and system supporting DHCP authentication and provenance, and DHCP server
JP2014230046A (en) * 2013-05-22 2014-12-08 株式会社ナカヨ Ip address allocation server having control function by hub
CN104601737A (en) * 2013-10-31 2015-05-06 上海斐讯数据通信技术有限公司 Method for AP (Access Point) to acquire IP (Internet Protocol) addresses of clients
WO2017000565A1 (en) * 2015-07-01 2017-01-05 中兴通讯股份有限公司 User access control method and apparatus, relay device and server
CN105245629A (en) * 2015-09-25 2016-01-13 互联网域名系统北京市工程研究中心有限公司 DHCP-based host communication method and device
US20170339102A1 (en) * 2016-05-19 2017-11-23 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Methods and apparatus for an ip address assignment
CN108123955A (en) * 2017-12-27 2018-06-05 新华三技术有限公司 Management method, device, equipment and the machine readable storage medium of safe list item
US10489090B1 (en) * 2018-08-01 2019-11-26 Palo Alto Research Center Incorporated System and method for detecting printer moves in a managed print environment
CN109347994A (en) * 2018-10-19 2019-02-15 Oppo广东移动通信有限公司 Internet protocol address acquisition methods, device, storage medium and electronic equipment
CN114244801A (en) * 2021-12-31 2022-03-25 四川天邑康和通信股份有限公司 ARP (Address resolution protocol) cheating preventing method and system based on government and enterprise gateway

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
林宏伟: "基于SNMP协议的校园网用户监视系统模型", 《贵州师范大学学报(自然科学版)》 *

Similar Documents

Publication Publication Date Title
CN108449282B (en) Load balancing method and device
CN111464592B (en) Load balancing method, device, equipment and storage medium based on micro-service
CN109428749B (en) Network management method and related equipment
CN109417492B (en) Network function NF management method and NF management equipment
CN114095430B (en) Access message processing method, system and working node
CN112637332B (en) Service registration discovery method and system
CN112333017B (en) Service configuration method, device, equipment and storage medium
CN109639796A (en) A kind of implementation of load balancing, device, equipment and readable storage medium storing program for executing
CN112118151A (en) Network speed measuring method, device, system, electronic equipment and storage medium
CN112565018B (en) Flow statistical method, device, gateway equipment and storage medium
CN112040029B (en) NAT conversion method, device, computer equipment and storage medium
CN113498110B (en) Service message transmission method and related equipment
CN110636149B (en) Remote access method, device, router and storage medium
CN109862134B (en) Lease time configuration method and system of IP address and DHCP client
CN111901386A (en) Method, system, equipment and readable storage medium for remote file processing
CN115002071A (en) Information updating method, device, equipment and readable storage medium
CN109104506B (en) Method and device for determining domain name resolution rule and computer readable storage medium
CN112702441B (en) Container-based access data processing method, device, system and storage medium
JP2003099341A (en) Network device-managing device, managing system, managing method and network device
CN106657424B (en) Method, equipment and system for realizing domain name service in Internet of things
CN114356456A (en) Service processing method, device, storage medium and electronic equipment
CN114500341A (en) Terminal real-time control method and control server under wide area network
US11606274B1 (en) Method for operations of virtual machines in monitoring cloud activities, system, and device applying the method
WO2023221451A1 (en) Network slice association method, device body, communication module and terminal device
CN117579598A (en) Method, device, equipment and medium for distributing IP address based on physical network card

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