CN116647537A - Determination method and device of address to be allocated, electronic equipment and storage medium - Google Patents

Determination method and device of address to be allocated, electronic equipment and storage medium Download PDF

Info

Publication number
CN116647537A
CN116647537A CN202310749584.1A CN202310749584A CN116647537A CN 116647537 A CN116647537 A CN 116647537A CN 202310749584 A CN202310749584 A CN 202310749584A CN 116647537 A CN116647537 A CN 116647537A
Authority
CN
China
Prior art keywords
address
preset
target
vpn
unassigned
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
CN202310749584.1A
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202310749584.1A priority Critical patent/CN116647537A/en
Publication of CN116647537A publication Critical patent/CN116647537A/en
Pending legal-status Critical Current

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/50Address allocation
    • H04L61/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/695Types of network addresses using masks or ranges of addresses

Abstract

The application provides a method, a device, electronic equipment and a storage medium for determining an address to be allocated, relates to the technical field of computers, and solves the technical problem that the accuracy of determining the state of an IP address is possibly affected due to the fact that the number of the IP addresses is large and different staff calculate and check modes are different. The method comprises the following steps: responding to a preset VPN input by a user, and acquiring an unassigned IP address field corresponding to the preset VPN; sending a route information acquisition request to a target digital communication device, wherein the route information acquisition request is used for requesting to acquire the route information of the target digital communication device, and the route information of the target digital communication device comprises a target IP address of the target digital communication device; and under the condition that the target IP address is not one of at least one IP address included in the unassigned IP address field corresponding to the preset VPN, determining the at least one IP address in the unassigned IP address field as the address to be assigned.

Description

Determination method and device of address to be allocated, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for determining an address to be allocated, an electronic device, and a storage medium.
Background
Currently, in the network construction and maintenance work of the core network, a worker is required to allocate, calculate and check whether a plurality of internet protocol addresses (internet protocol address, IP addresses) are available at random, so as to determine whether the IP addresses are addresses to be allocated.
However, in the above method, since the number of IP addresses is large, manual calculation, allocation, verification, and other works need to be performed for each allocation, and the accuracy of determining the IP address status may be affected due to different calculation and verification methods of different staff.
Disclosure of Invention
The application provides a method, a device, electronic equipment and a storage medium for determining an address to be allocated, which solve the technical problem that the accuracy of determining the state of an IP address is possibly affected due to the fact that the number of the IP addresses is large and the calculation and checking modes of different staff are different.
In a first aspect, the present application provides a method for determining an address to be allocated, including: responding to a preset virtual private network (virtual private network, VPN) input by a user, acquiring an unassigned IP address field corresponding to the preset VPN, wherein the unassigned IP address field comprises at least one IP address; sending a route information acquisition request to a target digital communication device, wherein the route information acquisition request comprises the preset VPN, the route information acquisition request is used for requesting to acquire route information of the target digital communication device, the target digital communication device is digital communication device corresponding to the preset VPN, and the route information of the target digital communication device comprises a target IP address of the target digital communication device; and under the condition that the target IP address is not one of at least one IP address included in the unassigned IP address field corresponding to the preset VPN, determining the at least one IP address in the unassigned IP address field as the address to be assigned.
Optionally, the method for determining the address to be allocated further includes: receiving a route information acquisition response sent by the target digital communication device, wherein the route information acquisition response comprises the route information of the target digital communication device; and analyzing the route information of the target data communication equipment based on a preset matching rule to obtain the target IP address.
In the application, the electronic equipment receives the route information of the target digital equipment, the route information of the target digital equipment comprises multiple types of information, the electronic equipment skillfully uses the preset matching rule to analyze the IP address in the route information of the target digital equipment, and at the moment, the target IP address of the target digital equipment can be rapidly and conveniently analyzed from the route information of the target digital equipment.
Optionally, the method for determining the address to be allocated further includes: storing an unassigned IP address field corresponding to the preset VPN to a target data table; and deleting the target IP address from the target data table under the condition that the target IP address is at least one IP address in an unassigned IP address field corresponding to the preset VPN.
In the application, the electronic equipment stores a plurality of IP addresses in the unassigned IP address field into the target data table, and when the state of the target IP address is a non-idle state, the target IP address is an assigned IP address, and because the unassigned IP address is stored in the target data table and the target IP address is the assigned IP address, the electronic equipment deletes the target IP address from the target data table, and at the moment, the electronic equipment can quickly and accurately check the idle IP address from the target data table.
Optionally, the acquiring the unassigned IP address field in response to the preset VPN input by the user specifically includes: based on the preset VPN, determining the unassigned IP address segment from a preset corresponding relation, wherein the preset corresponding relation comprises a plurality of VPNs and IP address segments corresponding to the VPNs respectively, and the IP address segment corresponding to one VPN comprises the unassigned IP address segment corresponding to the VPN and the assigned IP address segment corresponding to the VPN.
In the application, the electronic equipment can query the unassigned IP address segment corresponding to the preset VPN in the preset database (namely, the preset corresponding relation) based on the preset VPN, and at the moment, the electronic equipment can conveniently and rapidly determine the unassigned IP address segment corresponding to the preset VPN, namely, the electronic equipment can conveniently and rapidly determine the available IP address segment of the preset VPN.
Optionally, the method for determining the address to be allocated further includes: and deleting an abnormal IP address segment from the preset corresponding relation, wherein the abnormal IP address segment generates an IP address segment with the time length greater than or equal to the time length threshold value, and the generated time length is the time length for generating the IP address segment in the preset corresponding relation.
In the application, when the generation time length of the IP address segment is greater than or equal to the time length threshold value, the abnormal IP address segment is indicated, and the abnormal IP address segment is deleted from a preset database (namely a preset corresponding relation) at the moment, so that the idle IP address segment can be more accurately and effectively inquired from the preset database.
In a second aspect, the present application provides a device for determining an address to be allocated, including: the device comprises an acquisition module, a sending module and a determining module; the acquisition module is used for responding to a preset VPN input by a user and acquiring an unassigned IP address field corresponding to the preset VPN, wherein the unassigned IP address field comprises at least one IP address; the sending module is used for sending a route information obtaining request to target digital equipment, wherein the route information obtaining request comprises the preset VPN, the route information obtaining request is used for requesting to obtain route information of the target digital equipment, the target digital equipment is digital equipment corresponding to the preset VPN, and the route information of the target digital equipment comprises a target IP address of the target digital equipment; and the determining module is used for determining that at least one IP address in the unassigned IP address field is an address to be assigned under the condition that the target IP address is not one of the at least one IP address included in the unassigned IP address field corresponding to the preset VPN.
Optionally, the determining device of the address to be allocated further comprises a receiving module and a processing module; the receiving module is used for receiving a route information acquisition response sent by the target digital communication equipment, wherein the route information acquisition response comprises the route information of the target digital communication equipment; the processing module is used for analyzing and processing the route information of the target data communication equipment based on a preset matching rule so as to obtain the target IP address.
Optionally, the determining device of the address to be allocated further comprises a storage module and a processing module; the storage module is used for storing the unassigned IP address field corresponding to the preset VPN to a target data table; the processing module is configured to delete the target IP address from the target data table when the state of the target IP address is a non-idle state and is at least one IP address in an unassigned IP address segment corresponding to the preset VPN.
Optionally, the determining module is specifically configured to determine the unassigned IP address segment from a preset correspondence based on the preset VPN, where the preset correspondence includes a plurality of VPNs and IP address segments corresponding to the VPNs, and the IP address segment corresponding to one VPN includes the unassigned IP address segment corresponding to the VPN and the assigned IP address segment corresponding to the VPN.
Optionally, the processing module is further configured to delete an abnormal IP address segment from the preset correspondence, where the abnormal IP address segment generates an IP address segment with a time length greater than or equal to a time length threshold, and the time length of the generation is a time length of generating the IP address segment in the preset correspondence.
In a third aspect, the present application provides an electronic device comprising: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of determining an address to be optionally allocated of any of the above first aspects.
In a fourth aspect, the present application provides a computer readable storage medium having instructions stored thereon which, when executed by an electronic device, enable the electronic device to perform the method of determining any one of the above-mentioned first aspects, optionally an address to be allocated.
According to the method, the device, the electronic equipment and the storage medium for determining the address to be allocated, the electronic equipment can acquire the unallocated IP address field of the preset VPN based on the preset VPN input by the user, then the electronic equipment can send a route information acquisition request to the target data communication equipment, at the moment, the target IP address of the target data communication equipment corresponding to the preset VPN can be acquired, at the moment, the electronic equipment can judge whether the target IP address is at least one IP address included in the unallocated IP address field of the preset VPN, and at the moment, the target IP address is not one of the at least one IP addresses included in the unallocated IP address field corresponding to the preset VPN, and at least one IP address in the unallocated IP address field is the address to be allocated. In the embodiment of the application, the electronic device firstly acquires the unassigned IP address segment corresponding to the preset VPN based on the preset VPN, then the electronic device can send a route information acquisition request to the target digital communication device based on the preset VPN to check whether the unassigned IP address segment is really idle, at this time, the electronic device acquires the target IP address of the target digital communication device corresponding to the preset VPN, then the electronic device can determine whether the target IP address is the address in the unassigned IP address segment, and when the target IP address is not the address in the unassigned IP address segment, the electronic device can indicate that the target IP address does not exist in the unassigned IP address segment, namely the unassigned IP address does not exist, and at this time, the electronic device can accurately and effectively determine that at least one IP address included in the unassigned address segment is the address to be assigned.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flow chart of a method for determining an address to be allocated according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating another method for determining an address to be allocated according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another method for determining an address to be allocated according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating another method for determining an address to be allocated according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating another method for determining an address to be allocated according to an embodiment of the present application;
fig. 6 is a schematic diagram of a specific process of a method for determining an address to be allocated according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a device for determining an address to be allocated according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another apparatus for determining an address to be allocated according to an embodiment of the present application.
Detailed Description
The method, the device, the electronic equipment and the storage medium for determining the address to be allocated provided by the embodiment of the application are described in detail below with reference to the accompanying drawings.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment of the present application is not to be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more.
Based on the description in the background art, because the number of the IP addresses is large in the related art, and different staff calculate and check modes, the problem of accuracy of determining the IP address state may be affected. Based on this, the embodiment of the application provides a method, a device, an electronic device and a storage medium for determining an address to be allocated, in the embodiment of the application, the electronic device firstly obtains an unallocated IP address segment corresponding to a preset VPN based on the preset VPN, then the electronic device can send a route information obtaining request to a target data communication device based on the preset VPN, check whether the unallocated IP address segment is really free, at this time, the electronic device obtains a target IP address of the target data communication device corresponding to the preset VPN, then the electronic device can determine whether the target IP address is an address in the unallocated IP address segment, when the target IP address is not an address in the unallocated IP address segment, it is indicated that the target IP address does not exist in the unallocated IP address segment, that is, at least one IP address included in the unallocated address segment can be accurately and effectively determined as the address to be allocated.
The electronic device performing the method for determining an address to be allocated according to the embodiment of the present application may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, and the embodiment of the present application is not limited to a specific form of the electronic device. The system can perform man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment and the like.
In addition, the electronic device may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, network acceleration services (content delivery network, CDN), basic cloud computing services such as big data and artificial intelligence platforms, and the like.
As shown in fig. 1, the method for determining an address to be allocated according to the embodiment of the present application may include S101 to S103.
S101, the electronic equipment responds to a preset VPN input by a user to acquire an unassigned IP address field corresponding to the preset VPN.
Wherein the unassigned segment of IP addresses includes at least one IP address therein.
It should be understood that the user may input identification information of the preset VPN, for example, an identification of the preset VPN or a name of the preset VPN, and the electronic device may obtain, from a preset database, an unassigned IP address segment corresponding to the preset VPN based on the identification of the preset VPN or the name of the preset VPN.
In the embodiment of the application, the IP address segment is a network segment, and one IP address segment comprises a plurality of IP addresses.
Referring to fig. 1, as shown in fig. 2, in an implementation manner of the application embodiment, the electronic device obtains an unassigned IP address segment in response to a preset VPN input by a user, and may specifically further include S1011.
S1011, the electronic equipment determines unassigned IP address segments from the preset corresponding relation based on the preset VPN.
The preset corresponding relation comprises a plurality of VPNs and IP address segments corresponding to the VPNs respectively, wherein the IP address segment corresponding to one VPN comprises at least one unassigned IP address segment corresponding to the VPN and at least one assigned IP address segment corresponding to the VPN.
It can be understood that the preset database includes the preset correspondence, that is, at least one allocated IP address segment and at least one unallocated IP address segment corresponding to the preset VPN may be queried in the preset database through the preset correspondence.
In the embodiment of the application, the electronic equipment can query the unassigned IP address segment corresponding to the preset VPN in the preset database (namely, the preset corresponding relation) based on the preset VPN, and at the moment, the electronic equipment can conveniently and quickly determine the unassigned IP address segment corresponding to the preset VPN, namely, the electronic equipment can conveniently and quickly determine the available IP address segment of the preset VPN.
In an alternative implementation, multiple VPNs and IP address segments corresponding to the multiple VPNs may be entered into the preset database, and the unassigned IP address segments and the assigned IP address segments may be marked in the preset database, respectively.
S102, the electronic equipment sends a route information acquisition request to the target digital communication equipment.
The route information obtaining request includes the preset VPN, and the route information obtaining request is used for requesting to obtain route information of the target data access device, where the target data access device is a data access device corresponding to the preset VPN, and the route information of the target data access device includes a target IP address of the target data access device.
In the embodiment of the present application, the routing information obtaining request may further include a desired mask bit number and an address type, where the address type may be an IPv6 address or an IPv4 address.
It should be understood that a data communication device corresponds to an allocated IP address, where the allocated IP address is an IP address in at least one allocated IP address segment corresponding to the preset VPN in the preset correspondence. The target IP address of the target digital communication device is the allocated IP address.
S103, under the condition that the target IP address is not one of at least one IP address included in an unassigned IP address field corresponding to the preset VPN, the electronic device determines that the at least one IP address included in the unassigned IP address field is an address to be assigned.
It should be understood that the target IP address is an IP address of the target data communication device, that is, the target IP address is already occupied by the target data communication device, so that in a case where the target IP address is not at least one IP address included in an unassigned IP address segment corresponding to the preset VPN, it is indicated that the target IP address does not exist in the unassigned IP address segment, that is, there is no assigned IP address, and at this time, the electronic device may determine that at least one IP address included in the unassigned IP address segment is an address to be assigned. In an alternative implementation manner, the electronic device may send a route information obtaining request to a plurality of data communication devices, where the electronic device may determine whether an IP address of each of the plurality of data communication devices is one of at least one IP address included in an unassigned IP address field corresponding to the preset VPN, and if the IP address of each of the plurality of data communication devices is not one of at least one IP address included in the unassigned IP address field corresponding to the preset VPN, it indicates that there is no assigned IP address in the at least one IP address included in the unassigned IP address field, and at this time, the electronic device may determine that the at least one IP address included in the unassigned IP address field is an address to be assigned.
As shown in table 1, the following table 1 is an example of checking the IP address state, based on the received routing information of the data access device, the IP address of the data access device included in the routing information may be obtained, based on the IP address of the data access device, whether the IP address of the data access device is one of at least one IP address included in an unallocated IP address field corresponding to a preset VPN may be checked, based on the received routing information of the data access device A1, the IP address of the data access device A1 may be obtained, at this time, it may be determined that the IP address of the data access device A1 does not exist in at least one IP address included in an unallocated IP address field corresponding to the preset VPN, based on the routing information of the data access device A2, the IP address of the data access device A2 may be obtained, at this time, it may be determined that the IP address of the data access device A2 exists in at least one IP address included in an unallocated IP address field corresponding to the preset VPN.
TABLE 1
Digital device name Account number of digital communication equipment IP address of digital communication device Checking the result
A1 123 100.100.000 Is not present in
A2 456 100.100.001 Presence of
The technical scheme provided by the embodiment at least has the following beneficial effects: from S101 to S103, it is known that: the electronic device may acquire an IP address segment unassigned by the preset VPN based on the preset VPN input by the user, then the electronic device may send a route information acquisition request to the target data communication device, at this time, may acquire a target IP address of the target data communication device corresponding to the preset VPN, at this time, the electronic device may determine whether the target IP address is at least one IP address included in the IP address segment unassigned by the preset VPN, and in a case that the target IP address is not one of at least one IP address included in the IP address segment unassigned corresponding to the preset VPN, may use at least one IP address in the IP address segment unassigned as an address to be assigned. In the embodiment of the application, the electronic device firstly acquires the unassigned IP address segment corresponding to the preset VPN based on the preset VPN, then the electronic device can send a route information acquisition request to the target digital communication device based on the preset VPN to check whether the unassigned IP address segment is really idle, at this time, the electronic device acquires the target IP address of the target digital communication device corresponding to the preset VPN, then the electronic device can determine whether the target IP address is the address in the unassigned IP address segment, and when the target IP address is not the address in the unassigned IP address segment, the electronic device can indicate that the target IP address does not exist in the unassigned IP address segment, namely the unassigned IP address does not exist, and at this time, the electronic device can accurately and effectively determine that at least one IP address included in the unassigned address segment is the address to be assigned.
Referring to fig. 1, as shown in fig. 3, the method for determining an address to be allocated according to the embodiment of the present application may further include S104-105.
S104, the electronic equipment receives the route information acquisition response sent by the target digital communication equipment.
Wherein the routing information acquisition response includes routing information of the target data communication device.
Illustratively, the routing information of the target data communication device includes an IP address corresponding to the target data communication device, a next hop device of the target data communication device, port information of the target data communication device, link information of the target data communication device, and the like.
S105, the electronic equipment analyzes the route information of the target digital communication equipment based on a preset matching rule to obtain a target IP address.
It should be understood that the electronic device may parse text information in the route information of the target data communication device, which is the same as a preset format, based on the preset matching rule, where the preset format is a format specified in the preset matching rule, and determine the text information parsed from the target data communication device as a target IP address corresponding to the target data communication device. Illustratively, the preset matching rule is a regular matching rule.
In the embodiment of the application, the electronic equipment receives the route information of the target digital equipment, the route information of the target digital equipment comprises multiple types of information, the electronic equipment skillfully uses the preset matching rule to analyze the IP address in the route information of the target digital equipment, and at the moment, the target IP address of the target digital equipment can be rapidly and conveniently analyzed from the route information of the target digital equipment.
Referring to fig. 1, as shown in fig. 4, the method for determining an address to be allocated according to the embodiment of the present application may further include S106 to S107.
S106, the electronic equipment stores the unassigned IP address field corresponding to the preset VPN into a target data table.
It should be understood that the electronic device stores at least one IP address in the unassigned IP address field corresponding to the preset VPN into the target data table, and at this time, the electronic device may quickly and accurately view the idle condition of multiple IP addresses from the target data table.
And S107, deleting the target IP address from the target data table by the electronic equipment under the condition that the target IP address is at least one IP address included in an unassigned IP address field corresponding to the preset VPN.
It should be understood that the target IP address is the IP address of the target data communication device, that is, the target IP address is already occupied by the target data communication device, so that in the case that the target IP address is at least one IP address included in an unassigned IP address field corresponding to the preset VPN, it is indicated that the target IP address exists in the unassigned IP address field, that is, there is an assigned IP address, and since the target data table is used to store the unassigned IP address, and the target IP address is the assigned IP address, the electronic device may delete the target IP address from the target data table.
In the embodiment of the application, the electronic equipment stores a plurality of IP addresses in the unassigned IP address field into the target data table, and when the state of the target IP address is a non-idle state, the electronic equipment indicates that the target IP address is the assigned IP address, and because the unassigned IP address is stored in the target data table and the target IP address is the assigned IP address, the electronic equipment deletes the target IP address from the target data table, and at the moment, the electronic equipment can quickly and accurately check the idle IP address from the target data table.
Referring to fig. 2, as shown in fig. 5, the method for determining an address to be allocated according to the embodiment of the present application may further include S108.
S108, the electronic equipment deletes the abnormal IP address segment from the preset corresponding relation.
The abnormal IP address segment generates an IP address segment with the time length being greater than or equal to a time length threshold value, and the generated time length is the time length of generating the IP address segment in the preset corresponding relation.
It should be understood that when the time length of the generation of the IP address segment is greater than or equal to the time length threshold, the IP address segment is described as being abnormal, and the abnormal IP address segment is deleted from a preset database (i.e., a preset correspondence), so that the idle IP address segment can be more accurately and effectively queried from the preset database.
The following describes a specific procedure for determining an address to be allocated in the embodiment of the present application in an example.
For example, as shown in fig. 6, the address distribution system is logged in through the account, if the account is not verified, the login interface is returned, and if the account is verified, the login interface enters a preset database, and the electronic device may perform an IP address entry operation, an IP address query operation to be distributed, and an IP address deletion operation in the preset database. In the address query operation to be allocated, a target data table may be generated, where an unallocated IP address is stored in the target data table, and at this time, the electronic device issues an instruction for instructing to log in the data communication device and checking the plurality of unallocated IP addresses, where the checking result of the data communication device is incorrect, that is, where the IP address corresponding to the data communication device is an allocated IP address, the IP address corresponding to the data communication device is deleted from the target data table (that is, the target data table is updated), the updated target data table is displayed as a result, where the checking result of the data communication device is incorrect, the target data table is displayed as a result, and based on the displayed target data table, the IP address is allocated, after the IP address is allocated, the allocated IP address is marked as an allocated IP address in the preset database, and the preset database is updated based on the marked data.
The embodiment of the application can divide the functional modules of the electronic device according to the method example, for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
In the case of dividing each functional module with corresponding each function, fig. 7 shows a possible schematic configuration of the determination device for addresses to be allocated related to the above-described embodiment, and as shown in fig. 7, the determination device for addresses to be allocated 10 may include: an acquisition module 101, a transmission module 102 and a determination module 103.
The obtaining module 101 is configured to obtain, in response to a preset VPN input by a user, an unassigned IP address segment corresponding to the preset VPN, where the unassigned IP address segment includes at least one IP address.
A sending module 102, configured to send a route information obtaining request to a target data communication device, where the route information obtaining request includes the preset VPN, and the route information obtaining request is used to request to obtain route information of the target data communication device, where the target data communication device is a data communication device corresponding to the preset VPN, and the route information of the target data communication device includes a target IP address of the target data communication device.
And a determining module 103, configured to determine, when the target IP address is not one of at least one IP address included in the unassigned IP address field corresponding to the preset VPN, that the at least one IP address in the unassigned IP address field is an address to be assigned.
Optionally, the determining device of the address to be allocated further includes a receiving module 104 and a processing module 105.
And the receiving module 104 is configured to receive a routing information acquisition response sent by the target data communication device, where the routing information acquisition response includes routing information of the target data communication device.
And the processing module 105 is configured to perform parsing processing on the routing information of the target data communication device based on a preset matching rule, so as to obtain the target IP address.
Optionally, the determining device of the address to be allocated further includes a storage module 106 and a processing module 105;
and the storage module 106 is configured to store the unassigned IP address field corresponding to the preset VPN into a target data table.
And a processing module 105, configured to delete the target IP address from the target data table when the state of the target IP address is a non-idle state and is at least one IP address in an unassigned IP address segment corresponding to the preset VPN.
Optionally, the determining module 103 is specifically configured to determine the unassigned IP address segment from a preset correspondence based on the preset VPN, where the preset correspondence includes a plurality of VPNs and IP address segments corresponding to the VPNs, and the IP address segment corresponding to one VPN includes the unassigned IP address segment corresponding to the VPN and the assigned IP address segment corresponding to the VPN.
Optionally, the processing module 105 is further configured to delete an abnormal IP address segment from the preset correspondence, where the abnormal IP address segment generates an IP address segment with a time length greater than or equal to a time length threshold, and the time length of the generation is a time length of generating the IP address segment in the preset correspondence.
In the case of an integrated unit, fig. 8 shows a possible structural diagram of the determination device of the addresses to be allocated, which is referred to in the above-described embodiment. As shown in fig. 8, the determining device 20 for an address to be allocated may include: a processing module 201 and a communication module 202. The processing module 201 may be configured to control and manage the actions of the determining device 20 for the address to be allocated. The communication module 202 may be used to support communication of the determining means 20 to be assigned an address with other entities. Optionally, as shown in fig. 8, the determining device 20 for an address to be allocated may further include a storage module 203, configured to store program codes and data of the determining device 20 for an address to be allocated.
Wherein the processing module 201 may be a processor or a controller. The communication module 202 may be a transceiver, a transceiver circuit, a communication interface, or the like. The storage module 203 may be a memory.
When the processing module 201 is a processor, the communication module 202 is a transceiver, and the storage module 203 is a memory, the processor, the transceiver, and the memory may be connected through a bus. The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, or the like. The buses may be divided into address buses, data buses, control buses, etc.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber terminal line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for determining an address to be allocated, the method further comprising:
responding to a preset VPN input by a user, acquiring an unassigned IP address field corresponding to the preset VPN, wherein the unassigned IP address field comprises at least one IP address;
a route information acquisition request is sent to a target digital communication device, wherein the route information acquisition request comprises the preset VPN, the route information acquisition request is used for requesting to acquire route information of the target digital communication device, the target digital communication device is digital communication device corresponding to the preset VPN, and the route information of the target digital communication device comprises a target IP address of the target digital communication device;
and under the condition that the target IP address is not one of at least one IP address included in the unassigned IP address field corresponding to the preset VPN, determining the at least one IP address in the unassigned IP address field as an address to be assigned.
2. The method for determining an address to be allocated according to claim 1, further comprising:
receiving a route information acquisition response sent by the target digital communication device, wherein the route information acquisition response comprises the route information of the target digital communication device;
and analyzing the route information of the target digital communication equipment based on a preset matching rule to obtain the target IP address.
3. The method for determining an address to be allocated according to claim 1, further comprising:
storing an unassigned IP address field corresponding to the preset VPN to a target data table;
and deleting the target IP address from the target data table under the condition that the target IP address is at least one IP address in an unassigned IP address field corresponding to the preset VPN.
4. A method for determining an address to be allocated according to any one of claims 1 to 3, wherein said obtaining an unallocated IP address field in response to a preset VPN entered by a user comprises:
and determining the unassigned IP address segment from a preset corresponding relation based on the preset VPN, wherein the preset corresponding relation comprises a plurality of VPNs and IP address segments corresponding to the VPNs respectively, and one IP address segment corresponding to the VPN comprises the unassigned IP address segment corresponding to the VPN and the assigned IP address segment corresponding to the VPN.
5. The method for determining an address to be allocated according to claim 4, further comprising:
and deleting an abnormal IP address segment from the preset corresponding relation, wherein the abnormal IP address segment generates an IP address segment with the time length being greater than or equal to a time length threshold value, and the generated time length is the time length for generating the IP address segment in the preset corresponding relation.
6. A determination apparatus for an address to be allocated, comprising: the device comprises an acquisition module, a sending module and a determining module;
the acquisition module is used for responding to a preset VPN input by a user and acquiring an unassigned IP address field corresponding to the preset VPN, wherein the unassigned IP address field comprises at least one IP address;
the sending module is configured to send a route information obtaining request to a target digital device, where the route information obtaining request includes the preset VPN, and the route information obtaining request is used to request to obtain route information of the target digital device, where the target digital device is a digital device corresponding to the preset VPN, and the route information of the target digital device includes a target IP address of the target digital device;
and the determining module is used for determining that at least one IP address in the unassigned IP address field is an address to be assigned under the condition that the target IP address is not one of the at least one IP address included in the unassigned IP address field corresponding to the preset VPN.
7. The apparatus for determining an address to be allocated according to claim 6, wherein the apparatus for determining an address to be allocated further comprises a receiving module and a processing module;
the receiving module is used for receiving a route information acquisition response sent by the target digital communication device, wherein the route information acquisition response comprises route information of the target digital communication device;
and the processing module is used for analyzing and processing the route information of the target data communication equipment based on a preset matching rule so as to obtain the target IP address.
8. The apparatus for determining an address to be allocated according to claim 6, wherein the apparatus for determining an address to be allocated further comprises a storage module and a processing module;
the storage module is used for storing the unassigned IP address field corresponding to the preset VPN to a target data table;
the processing module is configured to delete the target IP address from the target data table when the state of the target IP address is a non-idle state and is at least one IP address in an unassigned IP address field corresponding to the preset VPN.
9. The apparatus for determining an address to be allocated according to any one of claims 6 to 8, characterized in that,
the determining module is specifically configured to determine the unassigned IP address segment from a preset correspondence based on the preset VPN, where the preset correspondence includes a plurality of VPNs and IP address segments corresponding to the VPNs, and the IP address segment corresponding to one VPN includes the unassigned IP address segment corresponding to the VPN and the assigned IP address segment corresponding to the VPN.
10. The apparatus for determining an address to be allocated according to claim 9, wherein,
the processing module is further configured to delete an abnormal IP address segment from the preset correspondence, where the abnormal IP address segment generates an IP address segment with a time length greater than or equal to a time length threshold, and the time length of generation is a time length of generating the IP address segment in the preset correspondence.
11. An electronic device, the electronic device comprising:
a processor;
a memory configured to store the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of determining an address to be allocated according to any of claims 1-5.
12. A computer readable storage medium having instructions stored thereon, which, when executed by an electronic device, cause the electronic device to perform the method of determining an address to be allocated according to any of claims 1-5.
CN202310749584.1A 2023-06-21 2023-06-21 Determination method and device of address to be allocated, electronic equipment and storage medium Pending CN116647537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310749584.1A CN116647537A (en) 2023-06-21 2023-06-21 Determination method and device of address to be allocated, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310749584.1A CN116647537A (en) 2023-06-21 2023-06-21 Determination method and device of address to be allocated, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116647537A true CN116647537A (en) 2023-08-25

Family

ID=87643509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310749584.1A Pending CN116647537A (en) 2023-06-21 2023-06-21 Determination method and device of address to be allocated, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116647537A (en)

Similar Documents

Publication Publication Date Title
CN110677405B (en) Data processing method and device, electronic equipment and storage medium
CN109586969A (en) Content distributing network disaster recovery method, device, computer equipment and storage medium
CN109246078B (en) Data interaction method and server
CN113259428A (en) Data access request processing method and device, computer equipment and medium
CN109951562B (en) NAT traversal method and system, electronic device and storage medium
CN113890879B (en) Load balancing method and device for data access, computer equipment and medium
CN111224878B (en) Route forwarding method and device, electronic equipment and storage medium
CN110602234B (en) Block chain network node management method, device, equipment and storage medium
CN112579997B (en) User permission configuration method and device, computer equipment and storage medium
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN116647537A (en) Determination method and device of address to be allocated, electronic equipment and storage medium
CN109104506B (en) Method and device for determining domain name resolution rule and computer readable storage medium
CN114531279B (en) Private network access method, server and storage medium
CN116318911A (en) Domain name access method and device, electronic equipment and storage medium
CN113490249B (en) Transmission path determining method and device
CN109951473B (en) Function triggering method, system, electronic device and computer readable storage medium
CN114124404A (en) Data processing method, device, server and storage medium
CN110875831B (en) Method and device for monitoring network quality
CN111144771A (en) Method and device for determining wind evaluation strategy and computer storage medium
CN110677353A (en) Data access method and system
CN117527406A (en) Address allocation method and device, electronic equipment and storage medium
CN116739560A (en) Fault work order generation method and device, electronic equipment and storage medium
CN115396277B (en) Login state management method, device, equipment and storage medium
CN108173775A (en) For the method and system of server current limliting
CN116614178A (en) Method and device for determining cutting-over state, electronic equipment and storage medium

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