[go: up one dir, main page]

CN113840017A - IP address automatic allocation method, apparatus, electronic device and computer readable medium - Google Patents

IP address automatic allocation method, apparatus, electronic device and computer readable medium Download PDF

Info

Publication number
CN113840017A
CN113840017A CN202111013781.4A CN202111013781A CN113840017A CN 113840017 A CN113840017 A CN 113840017A CN 202111013781 A CN202111013781 A CN 202111013781A CN 113840017 A CN113840017 A CN 113840017A
Authority
CN
China
Prior art keywords
address
plane
byte
level
station address
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.)
Granted
Application number
CN202111013781.4A
Other languages
Chinese (zh)
Other versions
CN113840017B (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.)
UNIT 63620 OF PLA
Original Assignee
UNIT 63620 OF PLA
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 UNIT 63620 OF PLA filed Critical UNIT 63620 OF PLA
Priority to CN202111013781.4A priority Critical patent/CN113840017B/en
Publication of CN113840017A publication Critical patent/CN113840017A/en
Application granted granted Critical
Publication of CN113840017B publication Critical patent/CN113840017B/en
Expired - Fee Related 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/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3005Mechanisms for avoiding name conflicts

Landscapes

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

Abstract

本发明公开了IP地址自动分配方法,具体包括:获取待分配设备的IP分配相关信息,IP分配相关信息包括站址信息;获取与所述站址信息对应的三级站址编号,三级站址编号包括第一级站址编号、第二级站址编号和第三级站址编号;根据第一级站址编号以及平面号确定一平面IP地址和二平面IP地址的第一字节;将第二级站址编号和第三级站址编号分别作为一平面IP地址和二平面IP地址的第二字节和第三字节;为一平面IP地址和二平面IP地址分配不与现有设备冲突的第四字节。本发明还公开了IP地址自动分配装置、电子设备和计算机可读介质。本发明可有效避免IP地址冲突、子网划分错误的现象,提高IP地址分配的准确性和合理性,提高工作效率。

Figure 202111013781

The invention discloses an IP address automatic allocation method, which specifically includes: acquiring IP allocation related information of equipment to be allocated, the IP allocation related information including site address information; The address number includes the first-level site number, the second-level site number and the third-level site number; the first byte of the first-level IP address and the second-level IP address is determined according to the first-level site number and the plane number; Use the second-level site number and the third-level site number as the second byte and third byte of the first-level IP address and the second-level IP address, respectively; the allocation of the first-level IP address and the second-level IP address is not the same as the current one. Fourth byte with device collision. The invention also discloses an IP address automatic allocation device, an electronic device and a computer-readable medium. The invention can effectively avoid the phenomenon of IP address conflict and wrong subnet division, improve the accuracy and rationality of IP address allocation, and improve work efficiency.

Figure 202111013781

Description

Automatic IP address allocation method and device, electronic equipment and computer readable medium
Technical Field
The invention belongs to the field of digital information transmission, and particularly relates to an automatic IP address allocation method, an automatic IP address allocation device, electronic equipment and a computer readable medium.
Background
Due to the characteristics of the work types, part of equipment needs to carry out related business work in different places. The IP address allocation is one of important preparation items for the equipment to access an office network to carry out related work, the traditional IP address allocation is mainly realized manually, and the IP address of the office network is manually allocated to the equipment by referring to the IP address allocation rule of the office network and combining the characteristics of equipment type, office location and the like. However, due to the increasing workload and the objective need of simplifying the workflow, there is a need for an automatic IP address allocation system to improve the efficiency and quality of the address allocation work, avoid IP address conflicts, subnet partition errors, etc., improve the accuracy and rationality of IP address allocation, and simplify the preparation work before the development of business.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides an automatic IP address allocation method, an automatic IP address allocation device, electronic equipment and a computer readable medium, which can effectively avoid the phenomena of IP address conflict and subnet partition error and improve the accuracy and rationality of IP address allocation.
An automatic IP address allocation method is provided, wherein the IP address comprises a plane IP address and a two-plane IP address, and the method specifically comprises the following steps:
acquiring IP distribution related information of equipment to be distributed, wherein the IP distribution related information comprises station address information;
acquiring a third-level station address number corresponding to the station address information, wherein the third-level station address number comprises a first-level station address number, a second-level station address number and a third-level station address number;
determining a first byte of the first plane IP address and a first byte of the second plane IP address according to the first-level station address number and the plane number;
the second level station address number and the third level station address number are respectively used as a second byte and a third byte of the first plane IP address and the second plane IP address;
allocating a fourth byte for the one-plane IP address and the two-plane IP address that does not conflict with existing devices.
An optimization scheme, wherein the first bytes of the first plane IP address and the second plane IP address are determined according to the first level station address number and the plane number, the optimization scheme comprises the following steps:
acquiring the plane numbers of the first plane and the second plane;
obtaining a first byte of the plane IP address according to the plane number of the plane and the first-stage station address number;
and obtaining a first byte of the IP address of the second plane according to the plane number of the second plane and the serial number of the first-level station address.
An optimization scheme, when the site information corresponds to a local area network site:
and the first-stage station address number is determined as a number which independently represents a local area network.
An optimization scheme, when the site information corresponds to a local area network site:
if the local area network address is provided with a mobile satellite communication device, the second level address number used as the second byte of the two-plane IP address adopts one of a number representing mobile satellite communication and a corresponding number of the mobile satellite communication device, and the third level address number used as the third byte of the two-plane IP address adopts the other one of the number representing mobile satellite communication and the corresponding number of the mobile satellite communication device.
An advantageous solution is that if the device to be allocated is connected only to the mobile satellite communication means, the second level site number used as the second byte of the one-plane IP address uses one of the numbers representing mobile satellite communications and the corresponding number of the mobile satellite communication means, and the third level site number used as the third byte of the one-plane IP address uses the other of the numbers.
An optimization scheme, wherein the IP distribution related information further comprises a device type;
the allocating a fourth byte that does not conflict with existing devices to the first plane IP address and the second plane IP address includes the following steps:
determining a preset integer interval corresponding to the device type;
and selecting an integer which does not conflict with the existing equipment in the integer interval as a fourth byte of the first plane IP address and the second plane IP address.
An optimization scheme, wherein the obtaining of a tertiary site number corresponding to the site information includes:
and carrying out corresponding number matching on the station address information in a preset third-level station address library, and finding out a first-level station address number, a second-level station address number and a third-level station address number corresponding to the station address information.
An IP address automatic allocation apparatus comprising:
the device information acquisition module is used for acquiring IP distribution related information of the device to be distributed, wherein the IP distribution related information comprises station address information;
a third-level station address number obtaining module, configured to obtain a third-level station address number corresponding to the station address information, where the third-level station address number includes a first-level station address number, a second-level station address number, and a third-level station address number;
a first byte allocation module, configured to determine a first byte of the first plane IP address and a first byte of the second plane IP address according to the first-level station address number and the plane number;
a second third byte allocation module, configured to use the second-level site address number and the third-level site address number as a second byte and a third byte of the first plane IP address and the second plane IP address, respectively;
a fourth byte allocation module, configured to allocate a fourth byte that does not conflict with existing devices for the first plane IP address and the second plane IP address.
An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement an automatic IP address assignment method as in any of the preceding.
A computer-readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements an IP address automatic allocation method as in any one of the preceding.
Compared with the prior art, the invention has the following beneficial effects:
the invention automatically allocates IP addresses based on preset three-level station address numbers, namely, according to the user IP address allocation rules of the metropolitan area network and the local area network of the office network, and in combination with the type characteristics and the station arrangement condition of equipment to be allocated, a model of three-level two types of station addresses and equipment types is constructed, and the IP addresses are automatically allocated to newly added facility equipment. The invention can reduce the workload of artificially allocating the IP address, improve the working efficiency, reduce the error rate, effectively avoid the phenomena of IP address conflict and subnet division error, and is more accurate and more reasonable than the existing IP address allocation mode; the network state of the device can be directly known through the biplane IP address of the device.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of an automatic IP address allocation method according to the present invention;
FIG. 2 is a schematic flow chart illustrating the first byte allocation in the automatic IP address allocation method of the present invention;
FIG. 3 is a schematic diagram of an IP address in the automatic IP address allocation method of the present invention;
FIG. 4 is a schematic flow chart illustrating a fourth byte allocation in the automatic IP address allocation method according to the present invention;
fig. 5 is a schematic structural diagram of an automatic IP address allocation apparatus according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. 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, an IP address automatic allocation method, where the IP address includes a planar IP address and a planar IP address, specifically includes:
acquiring IP distribution related information of equipment to be distributed, wherein the IP distribution related information comprises station address information;
acquiring a third-level station address number corresponding to the station address information, wherein the third-level station address number comprises a first-level station address number, a second-level station address number and a third-level station address number;
determining a first byte of the first plane IP address and a first byte of the second plane IP address according to the first-level station address number and the plane number;
the second level station address number and the third level station address number are respectively used as a second byte and a third byte of the first plane IP address and the second plane IP address;
allocating a fourth byte for the one-plane IP address and the two-plane IP address that does not conflict with existing devices.
The site can be divided into two types according to the network scale, one is a metropolitan area network site, and the other is a local area network site, which respectively correspond to a metropolitan area network and a remote station local area network of an office network. The metropolitan area network site is generally located in the home and other large-scale areas, and the local area network site is generally located in a middle and small area far away from the home. The station addresses can be divided into three stages according to the membership, and the first stage station address corresponds to a large area in the geography; the second level station address corresponds to the middle area in the large area in the geographic information; the third level of site addresses corresponds to a small area in the middle area of the geographical area. In the third-level station address library, a group of numbers are respectively allocated to the area corresponding to each station address in advance (each station address has the corresponding first, second and third-level station address numbers, and the nonexistence can be replaced by 0); the first-stage site address number, the second-stage site address number and the third-stage site address number of the equipment to be allocated have different purposes and are respectively used for generating a first byte, a second byte and a third byte of an IP address. The fourth byte selects a number that does not conflict with existing devices. In addition, the local area network site includes, in addition to the corresponding geographical area, mobile equipment, such as a mobile satellite communicator (e.g., a satellite vehicle); when the device to be allocated is accessed to the network through the mobile satellite communication device, the local area network number can be used as a first byte, and the number corresponding to the mobile satellite communication and the device thereof can be used as a second byte and a third byte.
In this embodiment, a bi-plane structure is adopted, and IP addresses of different planes are distinguished according to the first byte. For the second byte and the third byte, corresponding second level site number and third level site number can be directly adopted, and the number does not exceed 8-bit binary number. In the method, on one hand, the geographic area division of the site is effectively utilized to carry out numbering and IP allocation, and on the other hand, reasonable IP allocation processing is carried out on various conditions which may occur to the site of the local area network.
As shown in fig. 2, in an embodiment, the determining the first bytes of the first plane IP address and the second plane IP address according to the first-level site number and the plane number includes the following steps:
acquiring the plane numbers of the first plane and the second plane;
obtaining a first byte of the plane IP address according to the plane number of the plane and the first-stage station address number;
and obtaining a first byte of the IP address of the second plane according to the plane number of the second plane and the serial number of the first-level station address.
As shown in fig. 3, the first byte may be divided into a plane number segment for identifying a plane and a first-level site number segment for identifying an area where the first byte is located, and lengths of the plane number segment and the first-level site number segment may be adjusted according to actual requirements (the plane number shown in fig. 3 is 3 bits, and the first-level site number is 5 bits).
In one embodiment, when the station address information corresponds to a local area network station address, the first-stage station address number is determined as a number which solely represents a local area network.
In the invention, the local area network station address and the metropolitan area network station address can be uniformly numbered as the first stage station address number; as described in this embodiment, a single number may also be allocated to the local area network site, and all the local area network sites adopt the number. Considering that the number of the local area network sites is usually much smaller than that of the metropolitan area network sites, the number of the first site numbers corresponding to the local area network sites can be reduced according to the actual situation, for example, in this embodiment, the number of the first site numbers of the local area network sites is adjusted to 1, and the first site numbers of all the local area network sites are unified, so that the management of the IP addresses is facilitated to a certain extent, and a larger number space can be reserved for the metropolitan area network sites.
In one embodiment, when the station address information corresponds to a local area network station address, if a mobile satellite communication device is disposed in the local area network station address, the second-level station address number used as the second byte of the two-plane IP address adopts a number representing mobile satellite communication/a corresponding number of the mobile satellite communication device, and the third-level station address number used as the third byte of the two-plane IP address adopts a corresponding number representing mobile satellite communication/a number representing mobile satellite communication.
For the local area network site, if a mobile satellite communication device is arranged, the distribution strategy of a plane can be kept unchanged (namely, the second byte and the third byte are set according to the second-level site number and the third-level site number of a corresponding geographic area), and the IP address is distributed according to the mobile satellite communication device by the plane, namely, the number of the mobile satellite communication device is set as the second-level site number, and a number representing mobile satellite communication is set as the third-level site number; the reverse arrangement is also possible, such as the number representing the mobile satellite communication being the second level site number and the number of the mobile satellite communication device being the third level site number.
On the basis of the previous embodiment, if the device to be allocated is connected only to the mobile satellite communication device, the second level site number used as the second byte of the one-plane IP address adopts the number representing mobile satellite communication/the corresponding number of the mobile satellite communication device, and the third level site number used as the third byte of the one-plane IP address adopts the corresponding number representing mobile satellite communication/the number representing mobile satellite communication.
For the local area network site, if only the mobile satellite communication device is provided, that is, the suitable second site number cannot be found in the third-level site library for representation (for example, the area is not numbered), or the device to be allocated is only connected to the mobile satellite communication device and does not access the local area network, the second-level site number therein may be set to 0 (other numbers are also possible) when the third-level site number is obtained. When the second-level station address number is 0, the present embodiment may allocate an IP address to a plane according to the mobile communication device based on the previous embodiment. Thus, the network state of the corresponding device can be known only through the information provided by different plane IP addresses.
As shown in fig. 4, in an embodiment, the IP allocation related information further includes a device type;
the allocating a fourth byte that does not conflict with existing devices to the first plane IP address and the second plane IP address includes the following steps:
determining a preset integer interval corresponding to the device type;
and selecting an integer which does not conflict with the existing equipment in the integer interval as a fourth byte of the first plane IP address and the second plane IP address.
Wherein, for the fourth byte, the most basic requirement is no conflict with the existing devices. However, if the fourth byte allocation is performed at will, it causes some trouble in subsequent management. In this embodiment, the device library is set to classify and number different devices, the device address library is also set to divide integer intervals for different types of devices, and the device to be allocated searches for an integer that does not conflict with the existing device from the integer interval corresponding to the device type after acquiring the device type, so that it is ensured that the devices in one integer interval are all of the same type, and subsequent management and identification and further information processing are facilitated.
In one embodiment, the obtaining of the third-level station address number corresponding to the station address information includes:
and carrying out corresponding number matching on the station address information in a preset third-level station address library, and finding out a first-level station address number, a second-level station address number and a third-level station address number corresponding to the station address information.
For convenience of understanding, the following embodiments are specifically enumerated (as shown in fig. 3, the following scheme is default to have a plane number of three-bit binary, where the first plane is "000", the second plane is "010"; in practical applications, the number of bits of the plane number is variable, and can be changed to another binary representation, and can also be adapted to the case where there are more planes):
example 1, scenario for metropolitan area network:
in the station address information of the device to be allocated, if the number of the station address a of the primary metropolitan area network is 1, the first byte of the IP address corresponding to the first plane is 1, and the 1 st byte of the IP address of the second plane is 65. The number of the second level metropolitan area network corresponding to the station address A is 11, and the second byte corresponding to the first and second plane IP addresses is 11. If the number of the third-level metropolitan area network station address corresponding to the station address A is 4, the 3 rd byte corresponding to the first and second plane IP addresses is 4. The integral interval of the station address A corresponding to the device type of the device to be allocated is 101-150, and the station address A is allocated to the integral 150 through collision detection. The first plane IP address of the device to be allocated in site a is 1.11.4.150; the second planar IP address is 65.11.4.150.
Embodiment 2, scheme for no mobile satellite communication device in local area network:
in the station address information of the device to be allocated, if the number of the station address B of the primary local area network is 21 (the local area network number may be a fixed number), the first byte of the IP address corresponding to the first plane is 21, and the first byte of the IP address of the second plane is 85. If the serial number of the second-level local area network station address B of the station address B is 11, the second byte of the IP address corresponding to the first plane and the second plane is 11. The number of the third-level metropolitan area network site corresponding to the site B is 15, and the 3 rd byte corresponding to the first and second plane IP addresses is 15. And the integral interval of the station address B corresponding to the equipment type of the equipment to be allocated is 81-100, and the station address B is allocated to an integer 90 through collision detection. The first plane IP address of the device to be allocated in site B is 21.11.15.90; the second planar IP address is 85.11.15.90.
Embodiment 3, regarding the scheme of the local area network with mobile satellite communication devices:
in the station address information of the equipment to be allocated, the serial number of a plane of a secondary local area network station address C is 50, and a satellite communication vehicle No. 61 is configured in the station address C, so that the first byte of the IP address corresponding to the first plane is 20 (the serial number of the local area network can be fixed), and the first byte of the IP address of the second plane is 84; the second byte of the IP address corresponding to the first plane is 50 (second level station address number) and the second byte of the IP address corresponding to the second plane is 61 (satellite vehicle number). If the network number of one plane of the third-level lan address of the address C is 22, the 3 rd byte of the IP address corresponding to the first plane is 22 (the third-level address number of the lan), and the 3 rd byte of the IP address corresponding to the second plane is 21 (the mobile satellite communication number). The integer interval of the station address C corresponding to the equipment type of the equipment to be allocated is 26-30, and the integer allocated by the collision detection is 27. The first plane IP address of the data interface of the device to be detected in the station address C is 20.50.22.27; the second planar IP address is 84.61.21.27.
Embodiment 4, scheme for local area network with mobile satellite communication device only:
in the station address information of the equipment to be allocated, the station address D of the secondary local area network does not have a serial number corresponding to the first plane, and a 62 # satellite vehicle is configured in the station address D, so that the first byte of the IP address corresponding to the first plane is 20 (the serial number of the local area network can be fixed), and the first byte of the IP address of the second plane is 84; the second byte of the IP address corresponding to the first plane is 62 (satellite vehicle number), and the second byte of the IP address of the second plane is 62 (satellite vehicle number). The station address D corresponds to 21 (mobile satellite communication number) for the third byte of the IP address of the first plane, and 21 (mobile satellite communication number) for the third byte of the IP address of the second plane. And the integral interval of the station address D corresponding to the equipment type of the equipment to be allocated is 50-80, and the integral allocated by collision detection is 58. The station address D is 20.62.21.58 for the first plane IP address of the data interface of the equipment to be detected; the second planar IP address is 84.62.21.58.
As shown in fig. 5, an embodiment of the present invention further provides an IP address automatic allocation apparatus, including:
the device information acquisition module is used for acquiring IP distribution related information of the device to be distributed, wherein the IP distribution related information comprises station address information;
a third-level station address number obtaining module, configured to obtain a third-level station address number corresponding to the station address information, where the third-level station address number includes a first-level station address number, a second-level station address number, and a third-level station address number;
a first byte allocation module, configured to determine a first byte of the first plane IP address and a first byte of the second plane IP address according to the first-level station address number and the plane number;
a second third byte allocation module, configured to use the second-level site address number and the third-level site address number as a second byte and a third byte of the first plane IP address and the second plane IP address, respectively;
a fourth byte allocation module, configured to allocate a fourth byte that does not conflict with existing devices for the first plane IP address and the second plane IP address.
An embodiment of the present invention further provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon; when executed by the one or more processors, cause the one or more processors to implement an automatic IP address assignment method as described above.
The electronic device may be a computer system, and the computer system may include a server and a terminal in communication with the server in a server/client or server/browser mode, where the server provides database creation and maintenance of an IP address atomic model and a business model, determination and maintenance of an IP address pool, and receives IP address application requests, and the client presents a UI interface interacting with a user.
An embodiment of the present invention further provides a computer readable medium, on which a computer program is stored, where the program, when executed by a processor, implements the above-mentioned method for automatically allocating an IP address.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples are merely illustrative of several embodiments of the present invention, and the description thereof is more specific and detailed, but not to be construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the appended claims.

Claims (10)

1. An automatic IP address allocation method is characterized in that the IP address comprises a plane IP address and a two-plane IP address, and specifically comprises the following steps:
acquiring IP distribution related information of equipment to be distributed, wherein the IP distribution related information comprises station address information;
acquiring a third-level station address number corresponding to the station address information, wherein the third-level station address number comprises a first-level station address number, a second-level station address number and a third-level station address number;
determining a first byte of the first plane IP address and a first byte of the second plane IP address according to the first-level station address number and the plane number;
the second level station address number and the third level station address number are respectively used as a second byte and a third byte of the first plane IP address and the second plane IP address;
allocating a fourth byte for the one-plane IP address and the two-plane IP address that does not conflict with existing devices.
2. The method according to claim 1, wherein the method comprises:
the determining the first bytes of the first plane IP address and the second plane IP address according to the first-level station address number and the plane number comprises the following steps:
acquiring the plane numbers of the first plane and the second plane;
obtaining a first byte of the plane IP address according to the plane number of the plane and the first-stage station address number;
and obtaining a first byte of the IP address of the second plane according to the plane number of the second plane and the serial number of the first-level station address.
3. The method according to claim 1, wherein the method comprises:
when the station address information corresponds to a local area network station address:
and the first-stage station address number is determined as a number which independently represents a local area network.
4. A method for automatic allocation of IP addresses according to any of claims 1-3, characterized in that:
when the station address information corresponds to a local area network station address:
if the local area network address is provided with a mobile satellite communication device, the second level address number used as the second byte of the two-plane IP address adopts one of a number representing mobile satellite communication and a corresponding number of the mobile satellite communication device, and the third level address number used as the third byte of the two-plane IP address adopts the other one of the number representing mobile satellite communication and the corresponding number of the mobile satellite communication device.
5. The method of claim 4, wherein the IP address is automatically allocated according to the following steps:
if the device to be allocated is connected only to the mobile satellite communication means, the second level site number used as the second byte of the one-plane IP address adopts one of a number representing mobile satellite communication and a corresponding number of the mobile satellite communication means, and the third level site number used as the third byte of the one-plane IP address adopts the other of the two.
6. The method according to claim 1, wherein the method comprises:
the IP allocation related information also comprises a device type;
the allocating a fourth byte that does not conflict with existing devices to the first plane IP address and the second plane IP address includes the following steps:
determining a preset integer interval corresponding to the device type;
and selecting an integer which does not conflict with the existing equipment in the integer interval as a fourth byte of the first plane IP address and the second plane IP address.
7. The method according to claim 1, wherein the method comprises:
the acquiring of the third-level station address number corresponding to the station address information includes:
and carrying out corresponding number matching on the station address information in a preset third-level station address library, and finding out a first-level station address number, a second-level station address number and a third-level station address number corresponding to the station address information.
8. An automatic IP address allocation apparatus, comprising:
the device information acquisition module is used for acquiring IP distribution related information of the device to be distributed, wherein the IP distribution related information comprises station address information;
a third-level station address number obtaining module, configured to obtain a third-level station address number corresponding to the station address information, where the third-level station address number includes a first-level station address number, a second-level station address number, and a third-level station address number;
a first byte allocation module, configured to determine a first byte of the first plane IP address and a first byte of the second plane IP address according to the first-level station address number and the plane number;
a second third byte allocation module, configured to use the second-level site address number and the third-level site address number as a second byte and a third byte of the first plane IP address and the second plane IP address, respectively;
a fourth byte allocation module, configured to allocate a fourth byte that does not conflict with existing devices for the first plane IP address and the second plane IP address.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement an automatic IP address assignment method as recited in any of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements an IP address automatic allocation method according to any one of claims 1 to 7.
CN202111013781.4A 2021-08-31 2021-08-31 Method, device, electronic device and computer-readable medium for automatic IP address allocation Expired - Fee Related CN113840017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111013781.4A CN113840017B (en) 2021-08-31 2021-08-31 Method, device, electronic device and computer-readable medium for automatic IP address allocation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111013781.4A CN113840017B (en) 2021-08-31 2021-08-31 Method, device, electronic device and computer-readable medium for automatic IP address allocation

Publications (2)

Publication Number Publication Date
CN113840017A true CN113840017A (en) 2021-12-24
CN113840017B CN113840017B (en) 2024-04-19

Family

ID=78961852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111013781.4A Expired - Fee Related CN113840017B (en) 2021-08-31 2021-08-31 Method, device, electronic device and computer-readable medium for automatic IP address allocation

Country Status (1)

Country Link
CN (1) CN113840017B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037722A (en) * 2022-06-06 2022-09-09 无锡锐格思信息技术有限公司 Method and system for automatically configuring and managing network IP address

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000010210A (en) * 1998-07-31 2000-02-15 강병호 Ip address management device for multimedia satellite communication system
CN1504038A (en) * 2001-05-22 2004-06-09 Utilizing geographical location information in IP addressing
CN101764856A (en) * 2009-12-17 2010-06-30 华为技术有限公司 IP address allocation method and gateway
CN102118456A (en) * 2011-01-19 2011-07-06 中国科学技术大学 Mixed addressing method for heaven and earth networks based on geographical position information
CN104202441A (en) * 2014-09-10 2014-12-10 北京国双科技有限公司 IP (internal protocol) address data processing method and device
CN104767840A (en) * 2015-04-08 2015-07-08 北方信息控制集团有限公司 IP address distribution method based on area codes and data center server
JP6074829B1 (en) * 2016-09-28 2017-02-08 学校法人福岡工業大学 Program, apparatus and method for determining IP address based on location information
KR101709874B1 (en) * 2015-11-26 2017-02-23 한국산업기술대학교산학협력단 Ip address allocation method and ip address allocation server for performing the method
WO2017124308A1 (en) * 2016-01-19 2017-07-27 华为技术有限公司 Method and device for allocating ip address
CN108881029A (en) * 2018-06-07 2018-11-23 北京邮电大学 The low-track satellite network addressing based on star decoupled and method for routing and system
RU2679962C1 (en) * 2018-02-20 2019-02-14 Акционерное общество "Российская корпорация ракетно-космического приборостроения и информационных систем" (АО "Российские космические системы") Method of assigning ip addresses in a personal satellite communication network on low-orbit satellites repeaters with zone registration of subscriber terminals
CN110505321A (en) * 2019-08-26 2019-11-26 北京泰和纬度网络技术有限公司 It is a kind of for accessing the method and system of IP address
CN111416880A (en) * 2019-01-08 2020-07-14 阿里巴巴集团控股有限公司 IP address addressing method and device, computer storage medium and electronic equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000010210A (en) * 1998-07-31 2000-02-15 강병호 Ip address management device for multimedia satellite communication system
CN1504038A (en) * 2001-05-22 2004-06-09 Utilizing geographical location information in IP addressing
CN101764856A (en) * 2009-12-17 2010-06-30 华为技术有限公司 IP address allocation method and gateway
CN102118456A (en) * 2011-01-19 2011-07-06 中国科学技术大学 Mixed addressing method for heaven and earth networks based on geographical position information
CN104202441A (en) * 2014-09-10 2014-12-10 北京国双科技有限公司 IP (internal protocol) address data processing method and device
CN104767840A (en) * 2015-04-08 2015-07-08 北方信息控制集团有限公司 IP address distribution method based on area codes and data center server
KR101709874B1 (en) * 2015-11-26 2017-02-23 한국산업기술대학교산학협력단 Ip address allocation method and ip address allocation server for performing the method
WO2017124308A1 (en) * 2016-01-19 2017-07-27 华为技术有限公司 Method and device for allocating ip address
JP6074829B1 (en) * 2016-09-28 2017-02-08 学校法人福岡工業大学 Program, apparatus and method for determining IP address based on location information
RU2679962C1 (en) * 2018-02-20 2019-02-14 Акционерное общество "Российская корпорация ракетно-космического приборостроения и информационных систем" (АО "Российские космические системы") Method of assigning ip addresses in a personal satellite communication network on low-orbit satellites repeaters with zone registration of subscriber terminals
CN108881029A (en) * 2018-06-07 2018-11-23 北京邮电大学 The low-track satellite network addressing based on star decoupled and method for routing and system
CN111416880A (en) * 2019-01-08 2020-07-14 阿里巴巴集团控股有限公司 IP address addressing method and device, computer storage medium and electronic equipment
CN110505321A (en) * 2019-08-26 2019-11-26 北京泰和纬度网络技术有限公司 It is a kind of for accessing the method and system of IP address

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
闫国栋;王鹏;: "基于IPV4的IP子网划分", 赤峰学院学报(自然科学版), no. 07 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037722A (en) * 2022-06-06 2022-09-09 无锡锐格思信息技术有限公司 Method and system for automatically configuring and managing network IP address

Also Published As

Publication number Publication date
CN113840017B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
CN109117275B (en) Account checking method and device based on data slicing, computer equipment and storage medium
CN103473334B (en) Data storage method, inquiry method and system
CN114090244B (en) Service arrangement method, device, system and storage medium
CN109451540B (en) A resource allocation method and device for network slicing
CN110519090B (en) An accelerator card allocation method, system and related components for an FPGA cloud platform
CN102388387A (en) Access-control-policy template generating device, and system, method and program thereof
CN109710406B (en) Data distribution and model training method and device thereof, and computing cluster
CN111182037B (en) A kind of mapping method and device of virtual network
CN110213365B (en) User access request processing method based on user partition and electronic equipment
CN110267288A (en) Mobile network complaint location method and device
CN109104506B (en) Method and device for determining domain name resolution rule and computer readable storage medium
CN111163186A (en) ID generation method, device, equipment and storage medium
CN110798507A (en) Method and system for DHCP address allocation memory
CN113840017A (en) IP address automatic allocation method, apparatus, electronic device and computer readable medium
CN115514818B (en) Resource configuration method and resource scheduling method for edge cloud
CN115794423A (en) Management method and device of intelligent machine room, electronic equipment and storage medium
CN116777127A (en) Resource allocation method, electronic equipment and storage medium
CN111414528A (en) Method and device for determining equipment identification, storage medium and electronic equipment
CN111008071A (en) Task scheduling system, method and server
CN115836511B (en) Device management method, device, computer equipment and storage medium in the Internet of Things
CN118784649A (en) A method and storage medium for nearby allocation based on cloud computing nodes
CN105493050A (en) Data processing device, data processing method and program
CN117216426A (en) Object information identification method, device, apparatus, storage medium and program product
CN111221847A (en) Monitoring data storage method and device and computer readable storage medium
CN112612784B (en) River basin calculation unit automatic dividing method and device and computer equipment

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20240419