[go: up one dir, main page]

CN115002071B - 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
CN115002071B
CN115002071B CN202210577343.9A CN202210577343A CN115002071B CN 115002071 B CN115002071 B CN 115002071B CN 202210577343 A CN202210577343 A CN 202210577343A CN 115002071 B CN115002071 B CN 115002071B
Authority
CN
China
Prior art keywords
server
log
dhcp server
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.)
Active
Application number
CN202210577343.9A
Other languages
Chinese (zh)
Other versions
CN115002071A (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.)
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/CN115002071B/en
Publication of CN115002071A publication Critical patent/CN115002071A/en
Application granted granted Critical
Publication of CN115002071B publication Critical patent/CN115002071B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application discloses an information updating method, an information updating device, information updating equipment and a readable storage medium. The application can obtain the latest corresponding relation between the IP and the MAC by means of the work 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 relative log content of the current work log is sent to the server, the server can acquire the first-hand data of the corresponding relation between the IP and the MAC, and the accuracy of the corresponding relation between the IP and the MAC determined by the server is ensured. Therefore, the scheme does not need to request an ARP table from the switch or disassemble a message, and can improve the information updating accuracy of the corresponding relationship between the IP and the MAC on the premise of not increasing the pressure of the switch. Correspondingly, the information updating device, the information updating equipment and the readable storage medium 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 the three-layer switch, the MAC address of the network access terminal may be obtained from the DHCP broadcast message or from the ARP table of the switch. The method for acquiring the MAC address from the DHCP broadcast message can have inaccurate technical problems, namely, when a plurality of DHCP servers exist in a network, the method for acquiring the MAC address through the DHCP broadcast message also has inaccurate technical problems. The MAC address is obtained from the ARP table, and the ARP table needs to be requested to the switch in time, which may cause the switch to have a high pressure, and affect the normal transmission of the switch to the network data.
Therefore, how to improve the accuracy of obtaining the IP and MAC information while avoiding the pressure of the switch is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
Accordingly, 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 obtaining IP and MAC information while avoiding the pressure of the switch. The specific scheme is as follows:
in a first aspect, the present application provides an information updating method, applied to a DHCP server, where the method includes:
establishing communication connection with a server;
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.
Optionally, the preset condition is: the job log in the DHCP server changes.
Optionally, the method further comprises:
and actively monitoring the change of the work log in the DHCP server to determine whether a preset condition is met.
Optionally, the method further comprises:
And passively receiving notification information sent by the DHCP server and used for indicating the change of the work log so as to determine whether a preset condition is met.
Optionally, the method is realized by a component with a log acquisition function, which is deployed in the DHCP server.
In a second aspect, the present application provides an information updating method, applied to a server, where 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 comprising:
the first connection module is used for establishing communication connection with the server;
And the sending module is used for sending log related content to the server based on the current working log in the DHCP server when the 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, applied to a server, the apparatus including:
the second connection module is used for establishing communication connection with the DHCP server;
The acquisition module is used for acquiring 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;
and a processor for executing the computer program to implement the previously disclosed information updating method.
In a sixth aspect, the present application provides a readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the previously disclosed information updating method.
As can be seen from 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; 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.
Therefore, the application can acquire the latest corresponding relation between the IP and the MAC by means of the work log in the DHCP server. The DHCP server, which is an IP resource allocation and manager, generally performs only DHCP related services, so it has sufficient resources to send its own work log to a server (the "server" in the present application may be a three-layer network switching device, such as 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 relative log content of the current work log is sent to the server, and the server can timely acquire the first-hand 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 ensured. Therefore, the scheme does not need to request an ARP table from the switch, does not need to broadcast a disassembly message by a complex DHCP, can avoid the problem of inaccurate IP-MAC correspondence caused by a plurality of DHCP servers, and can improve the information updating accuracy of the IP-MAC correspondence on the premise of not increasing the pressure of the switch.
Correspondingly, the information updating device, the information updating equipment and the readable storage medium 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 that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an information updating method disclosed by the application;
FIG. 2 is a schematic diagram of an inter-device connection according to the present disclosure;
FIG. 3 is a flowchart of another information updating method disclosed in the present application;
FIG. 4 is a schematic diagram of an information update according to the present disclosure;
FIG. 5 is a schematic diagram of an information updating apparatus according to the present application;
FIG. 6 is a schematic diagram of another information updating apparatus according to the present disclosure;
FIG. 7 is a schematic diagram of an electronic device according to the present disclosure;
Fig. 8 is a schematic diagram of another electronic device according to the present disclosure.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
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 complicated, the mirror image flow operation is needed, and the overall efficiency is low. And when a plurality of DHCP servers exist in the network, the MAC address is obtained through the DHCP broadcast message, and the inaccurate technical problem exists. The MAC address is obtained from the ARP table, and the ARP table needs to be requested to the switch in time, which may cause the switch to have a high pressure, and affect the normal transmission of the switch to the network data. Therefore, the application provides an information updating scheme which can improve the acquisition efficiency and accuracy of IP and MAC information.
Referring to fig. 1, the embodiment of the application discloses an information updating method, which is applied to a DHCP server and comprises the following steps:
S101, establishing communication connection with a server.
Wherein, the service end can be: the server 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.
And S102, when the 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.
The log related content sent to the server by the DHCP server may be: the total content of the current work log in the DHCP server may be the log change content generated between the current time and the previous sending time, or the content showing the latest correspondence between IP and MAC obtained after the analysis of the current work log. Similarly, the content of the correspondence between the IP and the MAC may be the content of the correspondence between the latest IP and the MAC in full quantity, or may be the content of the correspondence between the IP and the MAC changed in the last time compared with 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 of course further include: the IP address is assigned with a content such as a time stamp. In order to facilitate the subsequent utilization of the correspondence between IP and MAC, the present embodiment uses a server (any computer device) to collect the latest correspondence between IP and MAC.
The DHCP server is connected with the three-layer network switching 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 also obtains a work log of the DHCP server. The DHCP server records an IP assignment message corresponding to a network access device every time it assigns an IP address to the device. That is, the DHCP server is responsible for assigning IP addresses to each of the network access devices to which the three-layer network switching device is connected. Specifically, a connection schematic diagram among the DHCP server, the three-layer network switching device and each network access device may refer to fig. 2. In fig. 2, a three-layer switch is a three-layer network switching device.
The IP allocation information recorded for an access device may specifically include: the identifier of the network access device, the device name of the network access device, the IP address allocated to the network access device, the MAC address of the network access device, the IP address allocation timestamp, and the like. The identification information of the network access device may be: an identifier of the network access device, a device name of the network access device, or an IP address assigned to the network access 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 a preset storage path of the DHCP server.
It should be noted that, the process of allocating an IP address to an access device by the DHCP server may refer to the related art. In one embodiment, assigning an IP address to an access device includes: receiving a DHCP request packet sent by 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 thus use the destination IP address for networking.
In one embodiment, the preset conditions are: the job log in the DHCP server changes. When the work log in the DHCP server changes, the preset condition is considered to be met, so that the current work log in the DHCP server is based on the fact that the log related content is sent to the server, and the server updates the corresponding relation between the IP and the MAC based on the log related content. Otherwise, if the work log in the DHCP server is not changed, the preset condition is not satisfied, so that no step is executed, and the process continues to wait for the change of the work log in the DHCP server. The method can enable the server to update the corresponding relation between the IP and the MAC in time once the work log changes, and further improves the accuracy of the stored corresponding relation between the IP and the MAC.
In addition, specifically determining whether a change occurs in a work log in a DHCP server, there are two ways, one is to actively monitor the change in the work log in the DHCP server; and the other is to passively receive notification information sent by the DHCP server and used for indicating the change of the work log. How this is achieved may depend on the actual scenario.
In particular, the present 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 through a component with a log collection function deployed in a DHCP server. The components with the log collection function can be specifically realized through logstash, nxlog, filebeat and the like. Accordingly, the component deployed in the DHCP server may actively monitor the change of the work log in the DHCP server to determine whether the preset condition is satisfied, and may also passively receive notification information sent by the DHCP server and used for indicating the change of the work log to determine whether the preset condition is satisfied.
Therefore, the present embodiment can obtain the latest correspondence between IP and MAC from the work log in the DHCP server. The DHCP server, which is an IP resource allocation and manager, generally performs only DHCP related services, and therefore has sufficient resources to send 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 the DHCP server meets the preset condition, the relative log content of the current work log is sent to the server, and the server can timely acquire the first-hand 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 ensured. Therefore, the scheme does not need to request an ARP table from the switch or disassemble a message, and can improve the information updating accuracy of the corresponding relationship between the IP and the MAC on the premise of not increasing the pressure of the switch.
Referring to fig. 3, the embodiment of the application discloses another information updating method, which is applied to a server, and comprises the following steps:
S301, establishing communication connection with a DHCP server.
S302, acquiring log related content sent by the DHCP server.
And 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 IP and MAC based on log related content includes: acquiring log information recorded with the corresponding relation between IP and 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 recorded corresponding relation between the IP and the MAC based on the latest corresponding relation. Wherein, the log related content records the MAC field, the MAC address, the IP field and the IP address. MAC fields such as: HARDWARE ETHERNET, the information after this field is the MAC address. For example, the MAC address of a certain network access device may be recorded as: HARDWARE ETHERNET 00:0c:29:51:b3:d9.
In order to save computer resources of the DHCP server, the embodiment does not increase the pressure of the DHCP server, but only obtains log related contents which are originally recorded in the DHCP server, and then the server obtains the latest corresponding relationship between the IP and the MAC from the log related contents to update information.
In a specific embodiment, the server may monitor a storage path storing log related content in the DHCP server, so as to obtain the log related content, and ensure the accuracy of obtaining. Meanwhile, the scheme does not need to request an ARP table from the switch or disassemble a 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 reference to specific scenarios for the solution provided by the present application. As shown in fig. 2, in the scenario of dynamic IP allocation, each network access device carries its own MAC address to apply for an IP address to a DHCP server through a DHCP protocol, so that the DHCP server may sense and record the MAC address and the used IP address of the network access device in the current network at the first time, and the DHCP server may collect the IP allocation information as its own work log, so as to obtain the work log in the DHCP server to determine the corresponding relationship between the IP and the MAC, which may timely and accurately obtain the MAC address of the network access device in a three-layer network environment.
For this purpose, the present embodiment deploys a log collection component in the DHCP server to acquire a work log in the DHCP server. Meanwhile, the DHCP server is in communication connection with the server, so that the server can timely acquire the working log of the DHCP server, and the server can acquire information such as the MAC address, the IP and the MAC corresponding relation of the network access equipment from the log.
Referring to fig. 4, the process of applying an IP address from a DHCP server by an access device 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, then places an available IP address in a return packet and sends the return packet 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 so as to indicate that the DHCP server agrees to use the IP address by the network access equipment. The network access device can use the IP address to access the network, the IP address allocated to the network access device by the DHCP server, the MAC address of the network access device and other information are recorded in the working log of the network access device by the DHCP server, and once the log collection component in the DHCP server detects the log change, the working log of the DHCP server can be sent to other functional components in the server, and the server can acquire IP-MAC data from the logs. The server can actively establish communication connection with the DHCP server, and then waits for a log collecting 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 work log of the DHCP server is stored under a specified 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 following information can be stored in the path of/var/lib/dhcp/db/dhcpd. Various timestamps of IP assignments, device MAC addresses (00:0 c:29:51:b3:d9), device identifiers (001/000/014) Q/263/331), device names (linux-5 jlv), etc., which are embodied in the log:
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: configuration of storage path, transmission path, event management, regular matching, log filtering, rewriting, alarm and other functions.
Wherein the storage path is configured as follows:
the transmission path is configured as follows:
Therefore, the embodiment can acquire the device 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, and the MAC address is acquired by collecting logs on the DHCP server, so that timeliness and accuracy of acquisition can be improved.
An information updating apparatus provided in the embodiment of the present application is described 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, applied to a DHCP server, the apparatus includes:
A first connection module 501, configured to establish a communication connection with a server;
and 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 the preset condition is met, so that the server updates the corresponding relationship between IP and MAC based on the log related content.
In one embodiment, the preset conditions are: the job log in the DHCP server changes.
In one specific embodiment, the method further comprises:
And the active monitoring module is used for actively monitoring the change of the work log in the DHCP server so as to determine whether the preset condition is met.
In one specific embodiment, the method further comprises:
And the passive receiving module is used for passively receiving notification information which is sent by the DHCP server and is used for indicating the change of the work log so as to determine whether a preset condition is met.
In a specific embodiment, the method is realized by a component with a log acquisition function, which is deployed in a DHCP server.
The more specific working process of each module and unit in this embodiment may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
It can be seen that the present embodiment provides an information updating apparatus that can improve the accuracy of information updating without increasing the pressure of the switch. The device may be any type of software program, such as a software program deployed in a cloud computing platform.
Another information updating apparatus provided in the embodiment of the present application is described below, 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, applied to a server, where the apparatus 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;
and the updating module 603 is configured to update the correspondence between IP and MAC based on the log related content.
In one embodiment, the update module is specifically configured to:
acquiring log information recorded with the corresponding relation between IP and 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 recorded corresponding relation between the IP and the MAC based on the latest corresponding relation.
The more specific working process of each module and unit in this embodiment may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
It can be seen that the present embodiment provides an information updating apparatus that can improve the accuracy of information updating without increasing the pressure of the switch. The device may be any type of software program, such as a software program deployed in a cloud computing platform.
The following describes an electronic device provided by an embodiment of the present application, and the electronic device described below and the method and apparatus for updating information described above may refer 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, where the electronic device may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 322 (e.g., one or more processors) and a memory 332, one or more storage mediums 330 (e.g., one or more mass storage devices) storing applications 342 or data 344. Wherein the memory 332 and the storage medium 330 may be transitory or persistent. The program stored on the storage medium 330 may include one or more modules (not shown), each of which may include a series of instruction operations in the data processing apparatus. Still further, the central processor 322 may be configured to communicate with the storage medium 330 and 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 supplies 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. For example, windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
In fig. 8, the application 342 may be a program for performing an information updating method, and the data 344 may be data required or generated for performing 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 cluster of multiple hardware entities, such as multiple computers, for example, may be a cloud computing platform, in addition to a conventional single hardware entity.
The following describes a readable storage medium according to an embodiment of the present application, and the readable storage medium described below and the method, apparatus and device for updating information described above may be referred to with each other.
A readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the information updating method disclosed in the foregoing embodiments. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
The references to "first," "second," "third," "fourth," etc. (if present) are used to distinguish similar objects from each other and are not necessarily used to describe a particular order or sequence. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," 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 or inherent to such process, method, or apparatus.
It should be noted that the description of "first", "second", etc. in this disclosure is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implying an indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present application.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that 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. The software modules may be disposed 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 principles and embodiments of the present application have been described herein with reference to specific examples, the description of which is intended only to assist in understanding the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (9)

1. The information updating method is characterized by being applied to a DHCP server, and is realized by a component with a log acquisition function deployed in the DHCP server, and comprises the following steps:
Establishing communication connection with a server; the server is three-layer network switching equipment;
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 conditions are: the job log in the DHCP server changes.
3. The method as recited in claim 2, further comprising:
and actively monitoring the change of the work log in the DHCP server to determine whether a preset condition is met.
4. The method as recited in claim 2, further comprising:
And passively receiving notification information sent by the DHCP server and used for indicating the change of the work log so as to determine whether a preset condition is met.
5. The information updating method is characterized by being applied to a server, wherein the server is three-layer network switching equipment; the method comprises the following steps:
Establishing communication connection with a DHCP server; the DHCP server is internally provided with a component with a log acquisition function;
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.
6. An information updating apparatus, which is applied to a DHCP server, is implemented by a component having a log collection function deployed in the DHCP server, and includes:
The first connection module is used for establishing communication connection with the server; the server is three-layer network switching equipment;
And the sending module is used for sending log related content to the server based on the current working log in the DHCP server when the preset condition is met, so that the server updates the corresponding relation between the IP and the MAC based on the log related content.
7. The information updating device is characterized by being applied to a server, wherein the server is three-layer network switching equipment; the device comprises:
The second connection module is used for establishing communication connection with the DHCP server; the DHCP server is internally provided with a component with a log acquisition function;
The acquisition module is used for acquiring 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.
8. 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 5.
9. 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 5.
CN202210577343.9A 2022-05-25 2022-05-25 Information updating method, device, equipment and readable storage medium Active CN115002071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210577343.9A CN115002071B (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 CN115002071B (en) 2022-05-25 2022-05-25 Information updating method, device, equipment and readable storage medium

Publications (2)

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

Family

ID=83028850

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN115002071B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856469A (en) * 2012-12-06 2014-06-11 中国电信股份有限公司 Method and system supporting DHCP authentication and provenance, and DHCP server
CN108123955A (en) * 2017-12-27 2018-06-05 新华三技术有限公司 Management method, device, equipment and the machine readable storage medium of safe list item

Family Cites Families (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
CN103516821B (en) * 2012-06-25 2017-05-03 中国移动通信集团公司 Address resolution method, corresponding system, switch, and server
JP2014230046A (en) * 2013-05-22 2014-12-08 株式会社ナカヨ Ip address allocation server having control function by hub
CN104601737B (en) * 2013-10-31 2018-05-01 上海斐讯数据通信技术有限公司 The method that AP obtains client ip address
CN106331203B (en) * 2015-07-01 2021-01-01 中兴通讯股份有限公司 User access control method and device, relay equipment and server
CN106487742B (en) * 2015-08-24 2020-01-03 阿里巴巴集团控股有限公司 Method and device for verifying source address validity
CN105245629B (en) * 2015-09-25 2018-10-16 互联网域名系统北京市工程研究中心有限公司 Host communication method based on DHCP and device
CN107404544B (en) * 2016-05-19 2020-10-30 联想企业解决方案(新加坡)有限公司 Method and apparatus for IP address assignment
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
CN109347994B (en) * 2018-10-19 2021-02-09 Oppo广东移动通信有限公司 Internet protocol IP address obtaining method and device, storage medium and electronic equipment
CN113938919B (en) * 2021-09-03 2023-07-07 中国联合网络通信集团有限公司 Data analysis method and device
CN114244801B (en) * 2021-12-31 2023-05-05 四川天邑康和通信股份有限公司 ARP spoofing prevention method and system based on government enterprise gateway

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856469A (en) * 2012-12-06 2014-06-11 中国电信股份有限公司 Method and system supporting DHCP authentication and provenance, and DHCP server
CN108123955A (en) * 2017-12-27 2018-06-05 新华三技术有限公司 Management method, device, equipment and the machine readable storage medium of safe list item

Also Published As

Publication number Publication date
CN115002071A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
CN111464592B (en) Load balancing method, device, equipment and storage medium based on micro-service
US11646939B2 (en) Network function NF management method and NF management device
US20080028071A1 (en) Communication load reducing method and computer system
CN112637332B (en) Service registration discovery method and system
CN111901386B (en) Method, system, equipment and readable storage medium for processing remote files
CN114827248A (en) Micro-service resource allocation method and device, electronic equipment and storage medium
WO2022116849A1 (en) Service allocation method, apparatus, electronic device, 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
CN111431912A (en) Method and device for detecting DHCP hijacking
CN112702441B (en) Container-based access data processing method, device, system and storage medium
CN112104680B (en) Method, device and equipment for determining edge application and storage medium
CN115002071B (en) Information updating method, device, equipment and readable storage medium
CN106685708B (en) Method, device and system for determining service relationship
CN109005071B (en) A decision-making deployment method and scheduling device
CN109104506B (en) Method and device for determining domain name resolution rule and computer readable storage medium
CN114466011B (en) Metadata service request method, device, equipment and 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
WO2023221451A1 (en) Network slice association method, device body, communication module and terminal device
CN114338279A (en) Terminal access method and device and server
CN117579598B (en) Method, device, equipment and medium for distributing IP address based on physical network card
CN112291340B (en) Service allocation method, controller and virtual network element
CN114710564B (en) Service access method, device, electronic equipment and storage medium
CN111586153B (en) Communication method and device for cloud platform

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