CN110650219B - IPv6 address allocation method and device, electronic equipment and storage medium - Google Patents
IPv6 address allocation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110650219B CN110650219B CN201910839952.5A CN201910839952A CN110650219B CN 110650219 B CN110650219 B CN 110650219B CN 201910839952 A CN201910839952 A CN 201910839952A CN 110650219 B CN110650219 B CN 110650219B
- Authority
- CN
- China
- Prior art keywords
- tag
- label
- information
- ipv6 address
- custom
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5092—Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/35—Network arrangements, protocols or services for addressing or naming involving non-standard use of addresses for implementing network functionalities, e.g. coding subscription information within the address or functional addressing, i.e. assigning an address to a function
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/659—Internet protocol version 6 [IPv6] addresses
Abstract
The embodiment of the invention provides an IPv6 address allocation method, an IPv6 address allocation device, electronic equipment and a storage medium, wherein the IPv6 address allocation method comprises the following steps: acquiring a plurality of self-defined labels; determining a tag code and a tag code value for each custom tag; determining planning rule information based on the self-defined label, the label code and the label code value; and allocating the IPv6 address for the access equipment based on the planning rule information and a preset allocation principle. The user can define the label, the label code and the label value according to the requirement, and the visualization of the IPv6 address management distribution is realized; the IPv6 address is distributed to the access equipment through the label, the label code, the label value determination planning rule information and the preset distribution principle, the IPv6 address management distribution requirements of different users and different services are met, and the flexibility and the diversity of IPv6 address distribution are improved.
Description
Technical Field
The embodiment of the invention relates to the field of communication identification, in particular to an IPv6 address allocation method and device, electronic equipment and a storage medium.
Background
The IPv6 protocol is a next generation IP protocol designed by IETF and used for replacing an IPv4 protocol, and the problem of insufficient IPv4 addresses can be effectively solved by expanding the address length to 128 bits; IPv6 has more space bits to identify address attributes such as region, hierarchy, traffic, number, etc. Different operators and enterprises have different IPv6 address planning schemes, such as that the operators need to plan attributes such as business category, service level, large area, province, city, hierarchy and the like, and enterprise users need to plan attributes such as areas, office places, departments and the like; different departments of operators, such as a network department, an IDC department, a government and enterprise department, have great difference in implementation rules due to the difference of the business of the departments.
The inventor discovers that in the process of implementing the invention: the existing IPv6 address allocation system mostly adopts a static fixed implementation method, has poor system flexibility and cannot meet the requirements of difference and diversity of IPv6 address allocation.
Disclosure of Invention
In order to solve at least one of the problems of the prior art,
in a first aspect, at least one embodiment of the present invention provides an IPv6 address allocation method: the method comprises the following steps:
acquiring a plurality of self-defined labels;
determining a tag code and a tag code value for each custom tag;
determining planning rule information based on the self-defined label, the label code and the label code value;
and allocating the IPv6 address for the access equipment based on the planning rule information and a preset allocation principle.
In some embodiments, each custom tab includes at least: tag name and bit length;
each custom label is used for identifying attribute information, and the attribute information at least comprises area information, department information, type information and service information.
In some embodiments, if the obtained multiple custom tags include at least one level of correspondence between a parent tag and a child tag, the custom child tag further includes a parent tag name.
In some embodiments, further comprising:
a parent tag code and a parent tag code value are determined for each child tag.
In some embodiments, further comprising:
and determining the number of the planning levels in the planning rule information according to the corresponding relation between the at least one level of parent tags and the at least one level of child tags.
In some embodiments, if the correspondence relationship between the three-level parent tag and the child tag is included, the planning rule information includes first-level planning rule information, second-level planning rule information, and third-level planning rule information.
In a second aspect, at least one embodiment of the present invention provides an apparatus for allocating an IPv6 address, including:
an acquisition module: the system is used for acquiring a plurality of custom tags;
a first determination module: the tag code and the tag code value are determined for each custom tag;
a second determination module: determining planning rule information based on the custom tag, the tag code, and the tag code value;
a distribution module: the method is used for allocating the IPv6 address to the access device based on the planning rule information and the preset allocation principle.
In some embodiments, each custom tab of the dispensing device includes at least: tag name and bit length;
each custom label is used for identifying attribute information, and the attribute information at least comprises area information, department information, type information and service information.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory;
the processor is operable to perform the steps of the above-described method of assigning IPv6 addresses by calling a program or instructions stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a program or instructions for causing a computer to perform the steps of the above-described method for assigning IPv6 addresses.
The embodiment of the invention has the advantages that: obtaining a plurality of self-defined labels; determining a tag code and a tag code value for each custom tag; a user can define a label, a label code and a label value according to the requirement, and the visualization of the distribution of the address IPv6 is realized; the IPv6 address is distributed to the access equipment through the label, the label code, the label value determination planning rule information and the preset distribution principle, the IPv6 address distribution requirements of different users and different services are met, and the flexibility and the diversity of IPv6 address distribution are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic flowchart of an IPv6 address allocation method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an IPv6 address allocation apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, the present invention will be further described in detail with reference to the accompanying drawings and examples. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. The specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention, are within the scope of the invention.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
IP addresses are an important fundamental resource for the construction of communication networks. The global and asia-pacific IPv4 address pools have been exhausted in 2011.
The IPv6 protocol is a next generation IP protocol designed by IETF and used for replacing an IPv4 protocol, and the problem of insufficient IPv4 addresses can be effectively solved by expanding the address length to 128 bits; the address space is about 8x1028, and IPv6 has more space bits for identifying address attributes such as region, hierarchy, service, number, etc.
The IPv6 is divided into two parts, namely a subnet prefix and an interface ID, the subnet prefix is distributed by IANA, ISP and various organizations, the interface identifier is 64 bits, and the subnet prefix can be self-planned and distributed, generated by a local link identifier or generated by adopting a random algorithm to ensure uniqueness.
IPv6 uses hexadecimal representation, where each 4 hexadecimal numbers form a group, and the middle is: and 8 groups are separated. Such as 2001:0410:0000:0001:0000:0000:0000:45 FF. The group starting with zero may omit the preceding 0, and groups of consecutive all 0's may be used ": wherein" means, for example: 2001:410:0:1: 45 FF.
Different operators and enterprises have different IPv6 address planning schemes, such as that the operators need to plan attributes such as business category, service level, large area, province, city, hierarchy and the like, and enterprise users need to plan attributes such as areas, office places, departments and the like; different departments of operators, such as a network department, an IDC department, a government and enterprise department, have great difference in implementation rules due to the difference of the business of the departments. For example:
1. operator 1 planning the overall scheme
2. Operator 2 plans the overall scheme:
operator equipment addresses (management addresses and interconnection addresses), user addresses (IDC, private line, home wide, 4G and the like), platform addresses (domain name system, network management system, core network and the like) and the like, and finally detailed distribution schemes are different due to different service requirements. The difference between the operators 1 and 2 is also large
3. Enterprise 1 planning general scheme:
4. enterprise 2 planning general scheme
The device address (management address, interconnection address), platform address (generation, OA, finance, etc.), etc. of the enterprise are different in the final detailed allocation scheme due to different business requirements. There may be a large difference between enterprise 1 and enterprise 2.
Therefore, the existing IPv6 address allocation system mostly adopts a static fixed implementation method, and the system flexibility is poor, so that the requirements for the difference and diversity of IPv6 address management allocation cannot be met.
Fig. 1 is a flowchart illustrating an IPv6 address allocation method according to an embodiment of the present invention.
In a first aspect, in conjunction with fig. 1, at least one embodiment of the present invention provides a method for allocating an IPv6 address: the requirement of difference, diversity and complexity of IPv6 management distribution of different operators and enterprises is met. The method comprises four steps of S101, S102, S103 and S104:
s101, obtaining a plurality of self-defined labels.
Specifically, the self-defined label in the embodiment of the invention is a section of continuous IPv6 address bit, and the user self-defines the label to identify the attribute information such as department, area, service, type and the like according to the requirement.
And S102, determining a label code and a label code value for each custom label.
Specifically, the tag code value in the embodiment of the present invention is an actual value of a user-defined tag, such as a 4-bit tag, and the hexadecimal value is 0 to F; the actual values of the tags are encoded and named to determine the tag code, and one tag code may have one or more tag values.
And S103, determining planning rule information based on the self-defined label, the label code and the label code value.
Specifically, in the embodiment of the invention, the planning rule information is combined by the label, the label code and the label code value. The planning rule information can have multiple levels, and according to actual requirements, on the basis of an IPv6 network segment generated by a previous-level planning rule or a previous-level rule, labels, label codes and label code values are continuously selected to generate a next-level planning rule.
And S104, allocating the IPv6 address to the access equipment based on the planning rule information and the preset allocation principle.
Specifically, the allocation principle in the embodiment of the present invention refers to further allocating addresses based on the planning rule, and the allocated addresses may be configured on the device or used by the user. The embodiment of the invention realizes the visualization of address management allocation by self-defining the label, the label code and the label value.
In some embodiments, each custom tab includes at least: tag name and bit length; each custom label is used for identifying attribute information, and the attribute information at least comprises area information, type information, department information and service information.
The following describes an embodiment of the present invention in detail with reference to a table, S101: custom tags, as shown in the following table, at least include: the tag name and the bit length.
Label name | Parent tag name | Bit length | Remarks for note | |
1 | Prefix identification | Is free of | 16bit | |
2 | Type identification | Is free of | 4bit | |
3 | Province mark | Is free of | 8bit | |
5 | County mark | Province mark | 8bit | |
6 | Device numbering | Is free of | 4bit | |
7 | Home wide address | Is free of | 4bit | |
8 | Passenger collecting address | Is free of | 12bit |
S102: a tag code and tag code value are determined for each custom tag.
(1) The tag code and tag code values for the prefix tag are as follows:
label name | Label coding | Tag encoded value | Parent tag name | Parent tag encoded value | Description of the invention |
Prefix identification | Fixed prefix 1 | 2408 |
Specifically, it can be seen from the above table that the tag code of the prefix tag is fixed prefix 1, and the tag code value is 2408.
(2) The tag code and tag code values for the type identifier are as follows:
label name | Label coding | Tag encoded value | Parent tag name | Parent tag encoding | Description of the invention |
Type identification | Home subscriber | 0 | |||
Type identification | Group users | 1 |
Specifically, it can be seen from the table that there are two label codes of the type identifier, i.e., a home user and a group user, where the label code value of the home user is 0 and the label code value of the group user is 1.
(3) The label code and the label code value of the province company logo are as follows:
label name | Label coding | Tag encoded value | Parent tag name | Parent tag encoding | Description of the invention |
Province company mark | Province 1 | 00,01 | Is free of | Is free of |
Specifically, it can be seen from the above table that the label code of the province company logo is province 1, and the label code value is 00, 01.
In some embodiments, if the obtained multiple custom tags include at least one level of correspondence between a parent tag and a child tag, the custom child tag further includes a parent tag name.
In some embodiments, further comprising:
a parent tag code and a parent tag code value are determined for each child tag.
(4) The label code and label code values for the county logo are as follows:
label name | Label coding | Tag encoded value | Parent tag name | Parent tag encoding | Description of the invention |
Region-county coding | Prefecture 1-prefecture 1 | 00,01 | Province company mark | Province 1 | |
Region-county coding | Prefecture 1-prefecture 2 | 02,03 | Province company mark | Province 1 | |
Region-county coding | Prefecture 1-prefecture 3 | 04,05 | Province company mark | Province 1 | |
Region-county coding | Prefecture 1-prefecture 4 | 06,07 | Province company mark | Province 1 | |
Region-county coding | Prefecture 1-prefecture 5 | 08,09 | Province company mark | Province 1 | |
Region-county coding | Prefecture 1-prefecture 6 | 0A,0B | Province company mark | Province 1 | |
Region-county coding | Prefecture 1-prefecture 7 | 0C,0D | Province company mark | Province 1 | |
Region-county coding | 1-prefecture 8 prefecture and city | 0E,0F | Province company mark | Province 1 | |
Region-county coding | Prefecture 2-prefecture 1 | 10,11 | Province company mark | Province 1 | |
Region-county coding | Prefecture 2-prefecture 2 | 12,13 | Province company mark | Province 1 | |
Region-county coding | Prefecture 2-prefecture 3 | 14,15 | Province company mark | Province 1 | |
Region-county coding | Prefecture 2-prefecture 4 | 16,17 | Province company mark | Province 1 | |
Region-county coding | Prefecture 2-prefecture 5 | 18,19 | Province company mark | Province 1 | |
Region-county coding | Prefecture 2-prefecture 6 | 1A,1B | Province company mark | Province 1 | |
Region-county coding | Prefecture 2-prefecture 7 | 1C,1D | Province company mark | Province 1 | |
Region-county coding | 2-prefecture 8 prefecture and city | 1E,1F | Province company mark | Province 1 |
The corresponding relation between the parent label and the word label exists between the province label and the district label, and the child definition label comprises the name of the parent label, namely the province label.
(5) The tag code and tag code values for the device number are as follows:
specifically, it can be seen from the table that there are a plurality of device numbers, corresponding to a plurality of tag codes and a plurality of tag code values.
(6) The tag code and tag code values for the home wide address are as follows:
label name | Label coding | Tag encoded value | Parent tag name | Parent tag encoding | Description of the invention |
Home wide address | Home wide address | 1-F |
Specifically, the home-wide address can be seen through the table, the corresponding tag code is the home-wide address, and the tag code value is 1-F.
(7) The tag code and tag code value of the guest collection address are as follows
Label name | Label coding | Tag encoded value | Parent tag name | Parent tag encoding | Description of the invention |
Passenger collecting address | Passenger collecting address | 000-FFF |
Specifically, the home wide address can be seen through the table, the corresponding tag code is the guest address, and the tag code value is 000-FFF.
In some embodiments, further comprising:
and determining the number of the planning levels in the planning rule information according to the corresponding relation between the at least one level of parent tags and the at least one level of child tags.
The number of planning levels in the embodiment of the present invention is determined according to actual requirements, and is not limited uniquely, and the number is 3 in this embodiment.
In some embodiments, if the correspondence relationship between the three-level parent tag and the child tag is included, the planning rule information includes first-level planning rule information, second-level planning rule information, and third-level planning rule information.
In the embodiment of the invention, the planning rule information is combined by the label, the label code and the label code value. The planning rule information can have multiple levels, and according to actual requirements, on the basis of an IPv6 network segment generated by a previous-level planning rule or a previous-level rule, labels, label codes and label code values are continuously selected to generate a next-level planning rule.
The following describes the planning rule information of the embodiment of the present invention in detail with reference to the table:
in the third-level planning rule information in this embodiment, the first-level planning rule information corresponds to a province company identifier, the second-level planning rule information corresponds to a city-county identifier, and the third-level planning rule information corresponds to a family and a collector.
1. First level planning rule information
(1) Home subscriber address level one planning
(2) Group user address first-level planning
2. Second level planning rule information
And continuously acquiring the label, the label code and the label code value on the basis of the primary planning rule to generate secondary planning rule information.
(1) Secondary planning rule information of local 1 family user address
(2) Secondary planning rule information of local city 2 family user address
(3) Secondary planning rule information of local 1 group user address
(4) Secondary planning information of local 2 group user address
3. Third level planning rule information
And continuously selecting the label, the label code and the label code value on the basis of the secondary planning rule to generate the information of the tertiary planning rule.
Three-level planning rule information of local 1 family user address
(2) Three-level planning rule information of local 2 family user address
(3) Three-level planning rule information of local 1 group user address
(4) Three-level planning rule information of local 2 group user address
Thereby realizing the distribution of the IPv6 address to the access device.
Fig. 2 is a schematic structural diagram of an IPv6 address allocation apparatus according to an embodiment of the present invention.
In a second aspect, in conjunction with fig. 2, at least one embodiment of the present invention provides an apparatus for allocating an IPv6 address, including:
the acquisition module 201: the system is used for acquiring a plurality of custom tags;
specifically, the self-defined tag obtained by the obtaining module 201 in the embodiment of the present invention is a continuous segment of IPv6 address bit, and the user self-defines attribute information such as tag identification departments, areas, services, and the like according to needs.
The first determination module 202: for determining a tag code and tag code value for each custom tag.
Specifically, the tag code value determined by the first determining module 202 in the embodiment of the present invention is an actual value of a user-defined tag, such as a 4-bit tag, and the hexadecimal value is 0 to F; the first determining module 202 encodes and names actual values of tags to determine tag codes, and a tag code may have one or more tag values.
The second determination module 203: and the method is used for determining the planning rule information based on the self-defined label, the label code and the label code value.
Specifically, the second determining module 203 in the embodiment of the present invention combines the label, the label code, and the label code value into the planning rule information. The planning rule information can have multiple levels, and according to actual requirements, on the basis of an IPv6 network segment generated by a previous-level planning rule or a previous-level rule, labels, label codes and label code values are continuously selected to generate a next-level planning rule.
The distribution module 204: the method is used for allocating the IPv6 address to the access device based on the planning rule information and the preset allocation principle.
Specifically, the preset allocation principle of the allocation module 204 in the embodiment of the present invention refers to further allocating addresses based on the planning rule, and the allocated addresses may be configured on the device or used by the user. The embodiment of the invention realizes the visualization of address management allocation by self-defining the label, the label code and the label value.
In some embodiments, each custom tab of the dispensing device includes at least: tag name and bit length;
each custom label is used for identifying attribute information, and the attribute information at least comprises area information, department information and service information.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory; the processor is operative to perform the steps of the methods described above by calling programs or instructions stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores a program or instructions, and the program or instructions make a computer execute the steps of the above method.
Fig. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, as shown in fig. 3, the electronic device may include a mobile phone and a PAD intelligent terminal, and the electronic device includes:
one or more processors 301, one processor 301 being illustrated in FIG. 3; a memory 302; the electronic device may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 804 in the electronic apparatus may be connected by a bus or other means, and fig. 3 illustrates the example of connection by a bus.
The memory 302 is a non-transitory computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the interface display method of the application program in the embodiment of the present invention (for example, the obtaining module 201, the first determining module 202, the second determining module 203, and the allocating module 204 shown in fig. 2). The processor 301 executes various functional applications of the server and data processing by running software programs, instructions and modules stored in the memory 302, that is, implements the interface display method of the above-described method embodiment.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. The output means 304 may comprise a display device such as a display screen.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a program or an instruction, and the program or the instruction is used to cause a computer to execute the above-mentioned IPv6 address allocation method, where the method includes:
and acquiring a plurality of custom tags.
And determining a label code and a label code value for each custom label.
Determining planning rule information based on the custom tag, the tag code, and the tag code value.
And distributing the IPv6 address for the access equipment based on the planning rule information and a preset distribution principle.
Optionally, the computer-executable instructions, when executed by a computer processor, may also be used to implement the technical solution of the IPv6 address allocation method provided in any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that although some embodiments described herein include some features included in other embodiments instead of others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.
Claims (8)
1. A method for allocating IPv6 addresses, the method comprising:
acquiring a plurality of self-defined labels;
determining a tag code and a tag code value for each of the custom tags;
determining planning rule information based on the custom tag, the tag code, and the tag code value;
distributing an IPv6 address for the access equipment based on the planning rule information and a preset distribution principle;
wherein, every self-defining label includes at least: tag name and bit length;
each custom label is used for identifying attribute information, and the attribute information at least comprises area information, department information, type information and service information; the tag code value is an actual value of the user-defined tag, the tag code is determined by the tag code value, and the preset allocation principle is allocation based on an address.
2. The method of claim 1, wherein if the obtained plurality of custom tags includes at least one level of correspondence between a parent tag and a child tag, the custom child tag further includes a parent tag name.
3. The method of claim 2, further comprising:
a parent tag code and a parent tag code value are determined for each child tag.
4. The method of claim 2, further comprising:
and determining the number of planning levels in the planning rule information according to the corresponding relation between at least one level of parent tags and at least one level of child tags.
5. The method of claim 4, wherein the planning rule information comprises first-level planning rule information, second-level planning rule information and third-level planning rule information if correspondence between three-level parent tags and child tags is included.
6. An apparatus for allocating an IPv6 address, the apparatus comprising:
an acquisition module: the system is used for acquiring a plurality of custom tags;
a first determination module: the tag code and the tag code value are determined for each custom tag;
a second determination module: determining planning rule information based on the custom tag, the tag code, and the tag code value;
a distribution module: the system is used for distributing an IPv6 address for the access equipment based on the planning rule information and a preset distribution principle;
wherein, every self-defining label includes at least: tag name and bit length;
each custom label is used for identifying attribute information, and the attribute information at least comprises area information, department information, type information and service information; the tag code value is an actual value of the user-defined tag, the tag code is determined by the tag code value, and the preset allocation principle is allocation based on an address.
7. An electronic device, comprising: a processor and a memory;
the processor is adapted to perform the steps of the method of any one of claims 1 to 5 by calling a program or instructions stored in the memory.
8. A computer-readable storage medium, characterized in that it stores a program or instructions for causing a computer to carry out the steps of the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910839952.5A CN110650219B (en) | 2019-09-06 | 2019-09-06 | IPv6 address allocation method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910839952.5A CN110650219B (en) | 2019-09-06 | 2019-09-06 | IPv6 address allocation method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110650219A CN110650219A (en) | 2020-01-03 |
CN110650219B true CN110650219B (en) | 2022-03-08 |
Family
ID=68991599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910839952.5A Active CN110650219B (en) | 2019-09-06 | 2019-09-06 | IPv6 address allocation method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110650219B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111447292B (en) * | 2020-02-24 | 2021-10-01 | 北京邮电大学 | IPv6 geographical position positioning method, device, equipment and storage medium |
CN114500463B (en) * | 2020-11-13 | 2023-08-08 | 中盈优创资讯科技有限公司 | Method and device for address allocation based on IPv6 coding visualization |
CN114615194B (en) * | 2020-11-23 | 2023-06-23 | 中盈优创资讯科技有限公司 | Diversified address allocation method and device |
CN114553819B (en) * | 2020-11-23 | 2023-07-25 | 中盈优创资讯科技有限公司 | IPv6 address identification method and device |
CN113691651B (en) * | 2021-10-22 | 2022-01-14 | 北京连星科技有限公司 | Top-level planning visualization management method, system and storage medium based on IPv6 network |
CN114827090A (en) * | 2022-03-28 | 2022-07-29 | 明阳产业技术研究院(沈阳)有限公司 | IP address management method and related equipment |
CN115361360B (en) * | 2022-10-21 | 2023-01-03 | 北京连星科技有限公司 | Method and system for realizing 64-bit refined address behind IPv6 address |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102299974A (en) * | 2010-06-25 | 2011-12-28 | 中兴通讯股份有限公司 | Method and device for realizing IPv6 (Internet Protocol Version 6) prefix distribution |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1835011A (en) * | 2006-04-17 | 2006-09-20 | 陈威钢 | Method of recognizing commodity's anti-fraud label based on IPv6 cell phone platform RFID |
KR101576411B1 (en) * | 2012-04-04 | 2015-12-09 | 알까뗄 루슨트 | System and method for data plane fate separation of label distribution protocol (ldp) label switched paths (lsps) |
US9876736B2 (en) * | 2014-10-29 | 2018-01-23 | Cisco Technology, Inc. | Dual stack root based mLDP tree merge |
CN107707552A (en) * | 2017-09-30 | 2018-02-16 | 新奥(中国)燃气投资有限公司 | A kind of encoding setting method and device |
-
2019
- 2019-09-06 CN CN201910839952.5A patent/CN110650219B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102299974A (en) * | 2010-06-25 | 2011-12-28 | 中兴通讯股份有限公司 | Method and device for realizing IPv6 (Internet Protocol Version 6) prefix distribution |
Also Published As
Publication number | Publication date |
---|---|
CN110650219A (en) | 2020-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110650219B (en) | IPv6 address allocation method and device, electronic equipment and storage medium | |
US9497159B2 (en) | System and method for IP network semantic label storage and management | |
US20070078997A1 (en) | Efficient endpoint matching using a header-to-bit conversion table | |
CN103139325B (en) | Network address design method and data resource scheduling method based on geographic SOT (GeoSOT) subdivision codes | |
US20030053441A1 (en) | Assigning IP addresses in an internet data center | |
CN113691651B (en) | Top-level planning visualization management method, system and storage medium based on IPv6 network | |
CN107040393B (en) | Route management method and equipment | |
CN1859392B (en) | Service addressing method, system and its application | |
CN104378270A (en) | Data center system and data center method for networks | |
CN113225407B (en) | Equipment identification information management method and device, electronic equipment and storage medium | |
CN111163008A (en) | IPv6 unicast address compression method, system and convergence and distribution equipment | |
CN102035899A (en) | Method and device for determining addresses in IPv6 (internet protocol version 6) based LAN (local area network) | |
CN110825919A (en) | ID data processing method and device | |
CN111711708B (en) | LoRaWAN terminal equipment address allocation method | |
CN103051480B (en) | The storage means of a kind of DN and DN storage device | |
CN111064664B (en) | IPV6 segmented routing coding method | |
Jo et al. | Distributed service discovery in mobile IoT environments using Hierarchical Bloom Filters | |
CN101789930B (en) | Route advertising method and network equipment | |
US20170289095A1 (en) | Methods And Systems For Determining An Optimal Subnet | |
Wang et al. | Towards variable length addressing for scalable Internet routing | |
CN114827090A (en) | IP address management method and related equipment | |
CN109862131B (en) | Server access address allocation method and device and computer readable storage medium | |
JP2004514385A (en) | Total addressing method for assigning computer addresses of networked computers using all decimal algorithms | |
US9369429B1 (en) | Associating text strings with numeric numbers for IP address management | |
CN111600749A (en) | Method and system for managing multiple servers and computer 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |