CN110311994B - IP address allocation request method, device and readable storage medium - Google Patents

IP address allocation request method, device and readable storage medium Download PDF

Info

Publication number
CN110311994B
CN110311994B CN201910720421.4A CN201910720421A CN110311994B CN 110311994 B CN110311994 B CN 110311994B CN 201910720421 A CN201910720421 A CN 201910720421A CN 110311994 B CN110311994 B CN 110311994B
Authority
CN
China
Prior art keywords
address
request
allocation request
allocation
server
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
CN201910720421.4A
Other languages
Chinese (zh)
Other versions
CN110311994A (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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201910720421.4A priority Critical patent/CN110311994B/en
Publication of CN110311994A publication Critical patent/CN110311994A/en
Application granted granted Critical
Publication of CN110311994B publication Critical patent/CN110311994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses

Abstract

The invention discloses a method for requesting IP address allocation. The method comprises the following steps: acquiring an IP address allocation request to be sent to a server; judging whether the allocation request is an abnormal repeated initiation request; and if the allocation request is an abnormal repeated initiation request, sending IP address conflict information to the server, and updating a new IP address allocation request so that the server allocates a new IP address according to the new IP address allocation request. The invention also discloses an IP address allocation request device and a computer readable storage medium. The invention can solve the problem of continuous requests of IP address allocation conflict.

Description

IP address allocation request method, device and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for requesting allocation of an IP address, and a computer-readable storage medium.
Background
DHCP is a network protocol for local area networks, and DHCP servers operate using UDP protocol, and automatically assign IP addresses to electronic devices or network service providers of internal network LANs. The DHCP client side obtains the IP address through the DHCP protocol, if the client side obtains the occupied IP through the DHCP mode, IP conflict is generated, the network of the client side is not communicated, and network faults are caused.
At present, according to the existing setting, when a client allocates a conflicting IP address, the address is not automatically changed, but a request for allocating the IP address is re-initiated to the DHCP server, and after the DHCP server receives the request, if the conflicting IP address is not found in the conflict list of the server, the conflicting IP address is re-allocated to the client, so that the client and the DHCP server continuously repeat the above actions, and the client cannot allocate a proper IP address, and the problem can be solved only by a manual intervention mode.
Disclosure of Invention
The invention mainly aims to provide a method, a device and a computer readable storage medium for requesting IP address allocation, aiming at solving the problem of continuous requests of IP address allocation conflict.
In order to achieve the above object, the present invention provides an IP address allocation request method, including the following steps:
acquiring an IP address allocation request to be sent to a server;
judging whether the allocation request is an abnormal repeated initiation request;
and if the allocation request is an abnormal repeated initiation request, sending IP address conflict information to the server, and updating a new IP address allocation request so that the server allocates a new IP address according to the new IP address allocation request.
Optionally, the method for requesting allocation of an IP address includes the following steps:
and if the allocation request is not an abnormal repeated initiation request, sending the IP address allocation request to a server.
Optionally, the step of determining whether the allocation request is an abnormal repeat request includes:
acquiring the number of times of initiating the distribution request in the preset time before the distribution request;
and comparing the times with a preset first threshold value, and judging whether the distribution request is an abnormal repeated initiation request.
Optionally, the step of comparing the number of times with a preset first threshold and determining whether the allocation request is an abnormal repeated initiation request includes:
if the times are larger than a preset first threshold value, judging that the allocation request is an abnormal repeated initiation request;
and if the times are smaller than a preset first threshold value, judging that the allocation request is not an abnormal repeated initiation request.
Optionally, if the allocation request is an abnormally repeated initiation request, the step of sending IP address conflict information to the server and replacing a new IP address allocation request includes:
if the allocation request is an abnormal repeated initiation request, judging whether the current IP address carried by the allocation request is the same as the historical IP address carried by the allocation request in the preset time before the allocation request;
and if the current IP address carried by the allocation request is the same as the historical IP address carried by the allocation request in the preset time before the allocation request, sending conflict information of the current IP address to a server, and replacing the new IP address allocation request.
Optionally, the IP address allocation method further includes the following steps:
if the current IP address carried by the allocation request is different from the historical IP address carried by the allocation request in the preset time before the allocation request, acquiring the request times of the current IP address in the preset time, and judging whether the request times exceed a preset second threshold value.
Optionally, the IP address allocation method further includes the following steps:
and if the request times exceed a preset second threshold value, sending the conflict information of the current IP address to a server, and replacing a new IP address allocation request.
Optionally, the IP address allocation method further includes the following steps:
and if the request times do not exceed a preset second threshold value, sending the allocation request of the current IP address to a server.
In addition, to achieve the above object, the present invention provides an IP address allocation request device, including: the system comprises a memory, a processor and an IP address allocation request program which is stored on the memory and can run on the processor, wherein the IP address allocation request program realizes the steps of the IP address allocation request method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium having stored thereon an allocation requesting program of an IP address, which when executed by a processor, implements the steps of the allocation requesting method of an IP address described above.
The invention provides a method and a device for requesting IP address allocation and a computer storage medium. In the method, an IP address allocation request to be sent to a server is obtained; judging whether the allocation request is an abnormal repeated initiation request; and if the allocation request is an abnormal repeated initiation request, sending IP address conflict information to the server, and updating a new IP address allocation request so that the server allocates a new IP address according to the new IP address allocation request. Through the mode, the invention can determine whether the allocation request is an abnormal repeated request before sending the allocation request of the IP address to the server, if so, the server is informed of the IP address allocation conflict, and a new IP address allocation request is automatically initiated, so that the client does not always repeatedly initiate the repeated IP address allocation request but informs the server of the IP address conflict and requests a new IP address under the condition of the IP address allocation conflict, and the problem of continuous requests when the client IP address allocation conflicts is solved.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for requesting IP address allocation according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for requesting IP address allocation according to the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of a method for requesting IP address allocation according to the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of a method for requesting IP address allocation according to the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of a method for requesting IP address assignment according to the present invention;
FIG. 7 is a flowchart illustrating a method for requesting IP address allocation according to a sixth embodiment of the present invention;
FIG. 8 is a flowchart illustrating a seventh embodiment of a method for requesting IP address assignment according to the present invention;
fig. 9 is a flowchart illustrating an IP address allocation request method according to an eighth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, and can also be a terminal device with a data processing function, such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an allocation requesting program of an IP address.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the allocation request program of the IP address stored in the memory 1005 and perform the following operations:
acquiring an IP address allocation request to be sent to a server;
judging whether the allocation request is an abnormal repeated initiation request;
and if the allocation request is an abnormal repeated initiation request, sending IP address conflict information to the server, and updating a new IP address allocation request so that the server allocates a new IP address according to the new IP address allocation request.
Further, the processor 1001 may call the allocation requesting program of the IP address stored in the memory 1005, and also perform the following operations:
and if the allocation request is not an abnormal repeated initiation request, sending the IP address allocation request to a server.
Further, the processor 1001 may call the allocation requesting program of the IP address stored in the memory 1005, and also perform the following operations:
acquiring the number of times of initiating the distribution request in the preset time before the distribution request;
and comparing the times with a preset first threshold value, and judging whether the distribution request is an abnormal repeated initiation request.
Further, the processor 1001 may call the allocation requesting program of the IP address stored in the memory 1005, and also perform the following operations:
if the times are larger than a preset first threshold value, judging that the allocation request is an abnormal repeated initiation request;
and if the times are smaller than a preset first threshold value, judging that the allocation request is not an abnormal repeated initiation request.
Further, the processor 1001 may call the allocation requesting program of the IP address stored in the memory 1005, and also perform the following operations:
if the allocation request is an abnormal repeated initiation request, judging whether the current IP address carried by the allocation request is the same as the historical IP address carried by the allocation request in the preset time before the allocation request;
and if the current IP address carried by the allocation request is the same as the historical IP address carried by the allocation request in the preset time before the allocation request, sending conflict information of the current IP address to a server, and replacing the new IP address allocation request.
Further, the processor 1001 may call the allocation requesting program of the IP address stored in the memory 1005, and also perform the following operations:
if the current IP address carried by the allocation request is different from the historical IP address carried by the allocation request in the preset time before the allocation request, acquiring the request times of the current IP address in the preset time, and judging whether the request times exceed a preset second threshold value.
Further, the processor 1001 may call the allocation requesting program of the IP address stored in the memory 1005, and also perform the following operations:
and if the request times exceed a preset second threshold value, sending the conflict information of the current IP address to a server, and replacing a new IP address allocation request.
Further, the processor 1001 may call the allocation requesting program of the IP address stored in the memory 1005, and also perform the following operations:
and if the request times do not exceed a preset second threshold value, sending the allocation request of the current IP address to a server.
The specific embodiment of the IP address allocation request device of the present invention is substantially the same as the following embodiments of the IP address allocation request method, and will not be described herein again.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of an IP address allocation request method according to the present invention, where the IP address allocation request method includes:
step S100, obtaining an IP address allocation request to be sent to a server;
in the existing setting, when a client allocates a conflicting IP address, the client does not automatically replace the address, but re-issues a request for allocating the IP address to a DHCP server, and after the DHCP server receives the request, if the conflicting IP address is not found in a conflict list of the server, the DHCP server re-allocates the conflicting IP address to the client, so that the client and the DHCP server continuously repeat the above actions, and the client cannot allocate a proper IP address, and the problem can be solved only by a manual intervention mode. The embodiment of the invention is a solution provided for solving the problem.
The IP address distribution conflict can be the following two situations, one is that the client end initiates a request in an infinite loop, and the server returns the conflicting IP address in an infinite loop; one is the situation that the client is in a dual network card mode, two cards initiate two IP address requests, and the two IP address requests conflict. Of course, other scenarios are also possible.
In this embodiment, the client obtains an IP address allocation request to be sent to the server, and the client in this embodiment may be an electronic terminal device such as a computer, a mobile phone, a tablet and the like that can perform networking communication, and the electronic terminal device may be in a single card mode or a dual card mode. The IP address allocation request to be sent to the server by the client may be a request carrying an IP address or a request not carrying an IP address. The server in this embodiment may be a DHCP server. A DHCP server (Dynamic Host Configuration Protocol) is generally applied in a large-scale local area network environment, and mainly functions to centrally manage and allocate IP addresses, so that a Host in the network environment dynamically obtains information such as IP addresses, Gateway addresses, DNS server addresses, and the like, and can improve the utilization rate of the addresses. The DHCP protocol adopts a client/server model, and the dynamic allocation task of the host address is driven by a network host, namely, the client initiates the driving. When the DHCP server receives the information of applying address from the network host, namely the client, the DHCP server sends the information of relevant address configuration and the like to the network host so as to realize the dynamic configuration of the address information of the network host, namely the client.
Step S200, judging whether the allocation request is an abnormal repeated initiation request;
after the IP address allocation request is obtained, whether the allocation request is an abnormal repeated initiation request is judged. For example, the number of times that the client initiates a request within a preset period of time before the allocation request may be counted to determine whether the request is an abnormal repeat initiation request, or the total number of times that the client initiates a request within a certain set preset period of time including the request may be counted to determine whether the request is an abnormal repeat initiation request, or the number of times that the client initiates a request within a preset period of time may be counted to determine whether the request is an abnormal repeat initiation request. In the embodiment of the present invention, the method for determining the abnormal repeated initiation request may be a plurality of determination methods.
If the allocation request is an abnormal repeat initiation request, step S300 is executed: and sending IP address conflict information to the server, and updating a new IP address allocation request so that the server allocates a new IP address according to the new IP address allocation request.
And if the allocation request is judged to be an abnormal repeated initiation request, sending IP address conflict information to the server, and updating a new IP address allocation request so that the server allocates a new IP address according to the new IP address allocation request. And sending IP address conflict information to the server to inform the server that the previously allocated IP addresses are conflicting, replacing a new IP address allocation request, and sending the new IP address allocation request to the server so that the server allocates a new IP address according to the new IP address allocation request. The new IP address allocation request may be an allocation request without an IP address or an allocation request with a new IP address.
The invention provides a method and a device for requesting IP address allocation and a computer storage medium. In the method, an IP address allocation request to be sent to a server is obtained; judging whether the allocation request is an abnormal repeated initiation request; and if the allocation request is an abnormal repeated initiation request, sending IP address conflict information to the server, and updating a new IP address allocation request so that the server allocates a new IP address according to the new IP address allocation request. Through the mode, the invention can determine whether the allocation request is an abnormal repeated request before sending the allocation request of the IP address to the server, if so, the server is informed of the IP address allocation conflict, and a new IP address allocation request is automatically initiated, so that the client does not always repeatedly initiate the repeated IP address allocation request but informs the server of the IP address conflict and requests a new IP address under the condition of the IP address allocation conflict, and the problem of continuous requests when the client IP address allocation conflicts is solved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of a method for requesting allocation of an IP address according to the present invention.
Based on the foregoing embodiment, in this embodiment, step S200 includes:
if the allocation request is not an abnormal repeat initiation request, executing step S400: and sending the IP address allocation request to a server.
In this embodiment, if the allocation request is not an abnormal repeat request, the IP address allocation request is sent to the server. When the allocation request is determined not to be an abnormal repeated initiation request, that is, the allocation request is normal, the allocation request may be sent to the server.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of a method for requesting allocation of an IP address according to the present invention.
Based on the foregoing embodiment, in this embodiment, step S200 includes:
step S210, obtaining the times of initiating the distribution request in the preset time before the distribution request;
in this embodiment, the number of times of the allocation request initiated by the client before the preset time of the allocation request is obtained. Within 1 minute before such a distribution request, the number of times the client initiates a distribution request is 10.
Step S220, comparing the number of times with a preset first threshold, and determining whether the allocation request is an abnormal repeat request.
And comparing the times with a preset first threshold value, and judging whether the distribution request is an abnormal repeated initiation request, wherein the times of initiating the distribution request by the client is 10 times within 1 minute before the distribution request, the preset first threshold value is 5 times, and comparing the 10 times with the 5 times to judge whether the distribution request is the abnormal repeated initiation request.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of a method for requesting allocation of an IP address according to the present invention.
Based on the foregoing embodiment, in this embodiment, step S220 includes:
if the number of times is greater than the preset first threshold, step S221: determining that the allocation request is an abnormal repeat initiation request;
in this embodiment, if the number of times that the client initiates the allocation request before the allocation request preset time is greater than a preset first threshold, it is determined that the allocation request is an abnormal repeated initiation request. If the number of times of initiating the allocation request by the client is 10 within 1 minute before the allocation request, the preset first threshold is 5 times, and the number of times of 10 is greater than 5 times, the allocation request is an abnormally repeated initiation request.
If the number of times is smaller than the preset first threshold, step S222: determining that the allocation request is not an anomalous repeat initiation request.
And if the number of times of initiating the distribution request by the client before the preset time of the distribution request is less than a preset first threshold, judging that the distribution request is not an abnormal repeated initiation request. In this way, the repeated request which is abnormal and exceeds a certain number of times can be judged. If the number of times that the client initiates the allocation request is 10 within 1 minute before the allocation request, the preset first threshold is 15 times, and the 10 times are less than 15 times, the allocation request is not an abnormal repeated initiation request.
Referring to fig. 6, fig. 6 is a flowchart illustrating a fifth embodiment of a method for requesting allocation of an IP address according to the present invention.
Based on the foregoing embodiment, in this embodiment, step S300 includes:
if the allocation request is an abnormal repeat request, step S310 is executed: judging whether the current IP address carried by the allocation request is the same as the historical IP address carried by the allocation request in the preset time before the allocation request;
in this embodiment, if the allocation request is an abnormally repeated request, the IP address carried by the allocation request, that is, the current IP address, is obtained, and the IP address carried by a plurality of allocation requests initiated by a client within a preset time before the allocation request, that is, the historical IP address, is also obtained. Within 1 minute before the allocation request, the number of times the client initiates the allocation request is 10. The IP address carried in the 10 allocation requests, i.e. the historical IP address, is obtained. And judging whether the current IP address of the allocation request is the same as the historical IP address.
If the current IP address carried by the allocation request is the same as the historical IP address carried by the allocation request within the preset time before the allocation request, step S320 is executed: and sending the conflict information of the current IP address to a server, and updating a new IP address allocation request.
If the current IP address of the allocation request is the same as the historical IP address, determining that the current IP address of the allocation request is in conflict, repeatedly initiating for many times, sending conflict information of the current IP address to the server, updating a new IP address allocation request, namely informing the server that the current IP address is in conflict, and applying for a new IP address to the server.
Referring to fig. 7, fig. 7 is a flowchart illustrating a method for requesting allocation of an IP address according to a sixth embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, step S300 includes:
if the current IP address carried by the allocation request is not the same as the historical IP address carried by the allocation request within the preset time before the allocation request, step S330 is executed: and acquiring the request times of the current IP address within preset time, and judging whether the request times exceed a preset second threshold value.
In this embodiment, if the current IP address of the allocation request is not the same as the historical IP address, it is further determined that the number of times of the allocation request that is carried by the allocation request of this time is the same as the number of times of the allocation request that is initiated by the client before the preset time of the allocation request of this time. Within 1 minute before such a distribution request, the number of times the client initiates a distribution request is 10. And if the number of times of the distribution request which is the same as the current IP address carried by the distribution request is only 2 times, judging whether the 2 times exceeds a preset second threshold value.
Referring to fig. 8, fig. 8 is a flowchart illustrating a method for requesting allocation of an IP address according to a seventh embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, step S330 includes:
if the number of times of request exceeds a preset second threshold, step S331 is executed: and sending the conflict information of the current IP address to a server, and updating a new IP address allocation request.
In this embodiment, if the number of requests exceeds a preset second threshold, the conflict information of the current IP address is sent to the server, and a new IP address allocation request is updated. The number of times the client initiates the allocation request is 10 times within 1 minute before such allocation request. And if the number of times of the distribution request which is the same as the current IP address carried by the distribution request is only 8, and the preset second threshold value is 5 times, and if the number of times of the distribution request is more than 5 times, the conflict information of the current IP address is sent to the server, and the new IP address distribution request is replaced.
Referring to fig. 9, fig. 9 is a flowchart illustrating an IP address allocation request method according to an eighth embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, step S330 includes:
if the number of requests does not exceed a preset second threshold, step S332 is executed: and sending the allocation request of the current IP address to a server.
In this embodiment, if the number of requests does not exceed a preset second threshold, the allocation request of the current IP address is sent to a server. The number of times the client initiates the allocation request is 10 times within 1 minute before such allocation request. And the number of times of the distribution request which is the same as the current IP address carried by the distribution request is only 2, the preset second threshold value is 5 times, and the number of 2 times is less than 5 times, so that the distribution request of the current IP address is sent to the server.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention stores thereon an allocation requesting program of an IP address, which when executed by a processor, implements the steps of the allocation requesting method of an IP address as described above.
The method implemented when the allocation request program of the IP address running on the processor is executed may refer to each embodiment of the allocation request method of the IP address of the present invention, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. An IP address allocation request method, comprising:
acquiring an IP address allocation request to be sent to a server;
judging whether the allocation request is an abnormal repeated initiation request;
if the allocation request is an abnormal repeated initiation request, sending IP address conflict information to the server, and updating a new IP address allocation request so that the server allocates a new IP address according to the new IP address allocation request;
if the allocation request is an abnormal repeated initiation request, the step of sending IP address conflict information to the server and replacing a new IP address allocation request comprises the following steps:
if the allocation request is an abnormal repeated initiation request, judging whether the current IP address carried by the allocation request is the same as the historical IP address carried by the allocation request in the preset time before the allocation request;
and if the current IP address carried by the allocation request is the same as the historical IP address carried by the allocation request in the preset time before the allocation request, sending conflict information of the current IP address to a server, and replacing the new IP address allocation request.
2. The IP address allocation request method according to claim 1, wherein the IP address allocation request method comprises the steps of:
and if the allocation request is not an abnormal repeated initiation request, sending the IP address allocation request to a server.
3. The method of claim 1, wherein the step of determining whether the allocation request is an abnormal repeat request comprises:
acquiring the number of times of initiating the distribution request in the preset time before the distribution request;
and comparing the times with a preset first threshold value, and judging whether the distribution request is an abnormal repeated initiation request.
4. The method according to claim 3, wherein the step of comparing the number of times with a preset first threshold to determine whether the allocation request is an abnormal repeat request comprises:
if the times are larger than a preset first threshold value, judging that the allocation request is an abnormal repeated initiation request;
and if the times are smaller than a preset first threshold value, judging that the allocation request is not an abnormal repeated initiation request.
5. The method of claim 1, wherein the method of allocating an IP address further comprises the steps of:
if the current IP address carried by the allocation request is different from the historical IP address carried by the allocation request in the preset time before the allocation request, acquiring the request times of the current IP address in the preset time, and judging whether the request times exceed a preset second threshold value.
6. The method of claim 5, wherein the method of allocating an IP address further comprises the steps of:
and if the request times exceed a preset second threshold value, sending the conflict information of the current IP address to a server, and replacing a new IP address allocation request.
7. The method of claim 5, wherein the method of allocating an IP address further comprises the steps of:
and if the request times do not exceed a preset second threshold value, sending the allocation request of the current IP address to a server.
8. An IP address allocation request device, comprising: a memory, a processor and an allocation requesting program of an IP address stored on the memory and operable on the processor, the allocation requesting program of the IP address implementing the steps of the allocation requesting method of the IP address according to any one of claims 1 to 7 when executed by the processor.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an allocation request program of an IP address, which when executed by a processor implements the steps of the allocation request method of an IP address according to any one of claims 1 to 7.
CN201910720421.4A 2019-08-05 2019-08-05 IP address allocation request method, device and readable storage medium Active CN110311994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910720421.4A CN110311994B (en) 2019-08-05 2019-08-05 IP address allocation request method, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910720421.4A CN110311994B (en) 2019-08-05 2019-08-05 IP address allocation request method, device and readable storage medium

Publications (2)

Publication Number Publication Date
CN110311994A CN110311994A (en) 2019-10-08
CN110311994B true CN110311994B (en) 2022-04-29

Family

ID=68083146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910720421.4A Active CN110311994B (en) 2019-08-05 2019-08-05 IP address allocation request method, device and readable storage medium

Country Status (1)

Country Link
CN (1) CN110311994B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301876B (en) * 2021-12-23 2023-11-21 深圳创维数字技术有限公司 Address allocation method, system, device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683188A (en) * 2015-03-23 2015-06-03 太仓市同维电子有限公司 Method for quickly detecting communication of IP channel of household router
CN106254571A (en) * 2016-08-05 2016-12-21 杭州华三通信技术有限公司 A kind of client ip address distribution method and device
CN106453690A (en) * 2016-11-24 2017-02-22 浙江宇视科技有限公司 IP address allocation method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9736005B2 (en) * 2011-12-22 2017-08-15 International Business Machines Corporation Duplicate IP address detection by a DHCP relay agent

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683188A (en) * 2015-03-23 2015-06-03 太仓市同维电子有限公司 Method for quickly detecting communication of IP channel of household router
CN106254571A (en) * 2016-08-05 2016-12-21 杭州华三通信技术有限公司 A kind of client ip address distribution method and device
CN106453690A (en) * 2016-11-24 2017-02-22 浙江宇视科技有限公司 IP address allocation method and apparatus

Also Published As

Publication number Publication date
CN110311994A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
US10743252B2 (en) Method for identifying access point and hotspot and terminal
EP3125110A1 (en) Software upgrade method and terminal
CN108595203B (en) Application function execution method, mobile terminal and computer readable storage medium
EP2955946A1 (en) Electronic device and network connection method of electronic device
EP3177041A1 (en) Method for transmitting content between terminals through service control device link
CN107896249B (en) Cross-network area data access method, device, equipment and storage medium
EP3553672A1 (en) Information interaction method and device and computer readable storage medium thereof
CN107908487B (en) Task control management method, device and equipment and computer readable storage medium
CN110311994B (en) IP address allocation request method, device and readable storage medium
CN110311995B (en) IP address allocation method, device and computer readable storage medium
CN109219140B (en) Frequency domain bandwidth resource allocation method, terminal and computer readable storage medium
CN108712513B (en) Network address setting method and device, terminal equipment and storage medium
CN112148320A (en) Application program upgrading method, device, equipment and storage medium
EP2928158A1 (en) Distribution apparatus and distribution method
CN113590141B (en) Method, device, medium and program product for distributing cloud mobile phone
CN107463395B (en) Component calling method and device
CN113784448A (en) Networking communication method, device and computer readable storage medium
CN109032651B (en) Application updating method, intelligent terminal and computer readable storage medium
WO2017166662A1 (en) Method and apparatus for allocating space of external memory card of mobile terminal for caching images, and electronic device
KR100677492B1 (en) Apparatus for preventing conflict of client provisioning data in a mobile terminal and method therefore
CN114301876B (en) Address allocation method, system, device and computer readable storage medium
CN113050958A (en) Terminal upgrading method, terminal and server
CN110704183B (en) Data processing method, system and computer readable storage medium
EP3843343B1 (en) Managing an application program priority
CN112532664A (en) Data upgrading method and device

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