IPv6 security policy control method, device, equipment and storage medium
By shading and encoding of service types and terminal types in IPv6 addresses, the problem that traditional ACLs are difficult to achieve refined service identification and security control is solved, and differentiated secure access control for different services and terminals is achieved.
Patent Information
- Application Number
- CN202411155498.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-08-22
AI Technical Summary
The ACL method in traditional IPv4 networks is difficult to meet the needs of refined service identification and security control under the level of network intelligence.
By obtaining the host bits of the IPv6 address, selecting a fixed bit space with a specified number of bits for color encoding of the service type and terminal type, and synchronizing the encoding information into the security control policy table of the network element device to achieve differentiated security policy control.
Differentiated secure access control for different business types and terminal types is realized to meet the needs of refined business identification and security control.
Smart Images

Figure CN118694605B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to an IPv6 security policy control method, device, equipment and storage medium. Background Art
[0002] In traditional IPv4 networks, network element devices check the source address, destination address, port number, protocol type and other information of data packets to decide whether to allow them to pass through, thereby achieving the purpose of security policy control. Commonly used packet filtering rules include allowing or denying access to a certain IP address or port. By combining one or more ACLs (Access Control Lists) into a rule set, configuring it on the interface of the network element device and matching the action of allowing or discarding, you can implement a network access control policy based on a certain network segment or IP address.
[0003] In recent years, as the level of network intelligence continues to improve, the network is required to be able to fine-tune the guarantee of business operations, but the traditional ACL method can no longer meet the needs of fine-tune business identification and security control. Summary of the invention
[0004] In view of this, the present invention provides an IPv6 security policy control method, apparatus, device and storage medium, which can meet the needs of refined service identification and security control.
[0005] The present invention provides the following technical solutions:
[0006] An IPv6 security policy control method, comprising:
[0007] Obtain the host bits of each IPv6 address to be encoded, and select a fixed bit space of a specified number of bits from the host bits of each IPv6 address;
[0008] For the fixed bit space selected from the host bits of each IPv6 address, color coding corresponding to the service type and terminal type is performed respectively, and the planning and allocation of IPv6 addresses are completed;
[0009] The color-coded information is synchronized to the security control policy table of the network element device, so that the network element device implements corresponding security policy control based on the security control policy table.
[0010] Preferably, before obtaining the host bits of each IPv6 address to be encoded, the method further includes:
[0011] Obtain the fixed prefix of the IPv6 address of each service, and use the obtained fixed prefix of the IPv6 address of each service and the color-coded host bit of the IPv6 address to form a complete IPv6 address bit.
[0012] Preferably, for the fixed bit space selected from the host bits of each IPv6 address, color coding corresponding to the service type and the terminal type is performed respectively, including:
[0013] Determine that a fixed bit space selected from any item of the host bit of the IPv6 address is the current space;
[0014] The current space is evenly divided into two parts, the code corresponding to the service type of the IPv6 address to which the current space belongs is set for the first part, and the code corresponding to the terminal type of the IPv6 address to which the current space belongs is set for the second part.
[0015] Preferably, after selecting a fixed bit space of a specified number of bits from the host bits of each IPv6 address, the method further includes:
[0016] The multiple bits following the fixed bit space in the host bit of each IPv6 address are set as reserved positions for custom extension of IPv6 address coloring encoding.
[0017] An IPv6 security policy control device, comprising:
[0018] A selection module is used to: obtain the host bits of each IPv6 address to be encoded, and select a fixed bit space of a specified number of bits from the host bits of each IPv6 address;
[0019] The coloring module is used to: perform coloring coding of the corresponding service type and terminal type for the fixed bit space selected from the host bits of each IPv6 address, and complete the planning and allocation of IPv6 addresses;
[0020] The synchronization module is used to synchronize the color-coded information to the security control policy table of the network element device, so that the network element device implements corresponding security policy control based on the security control policy table.
[0021] Preferably, it also includes:
[0022] The acquisition module is used to: before acquiring the host bits of each IPv6 address to be encoded, obtain the fixed prefix of the IPv6 address of each service, so as to use the obtained fixed prefix of the IPv6 address of each service and the IPv6 address host bits after color encoding to form a complete IPv6 address bit.
[0023] Preferably, the coloring module includes:
[0024] A coloring unit is used to: determine that a fixed bit space selected from the host bit of any IPv6 address is the current space; divide the current space into two parts equally, set the code corresponding to the business type of the IPv6 address to which the current space belongs for the first part, and set the code corresponding to the terminal type of the IPv6 address to which the current space belongs for the second part.
[0025] Preferably, it also includes:
[0026] The setting module is used to: after selecting a fixed bit space of a specified number of bits from the host bits of each IPv6 address, set multiple bits behind the fixed bit space in the host bits of each IPv6 address as reserved positions for custom expansion of IPv6 address coloring coding.
[0027] An IPv6 security policy control device comprises a memory and a processor. When a program stored in the memory is executed by the processor, the program can implement the steps of the above-mentioned IPv6 security policy control method.
[0028] A computer-readable storage medium, wherein when a program stored on the computer-readable storage medium is executed by a processor, the steps of the above-mentioned IPv6 security policy control method are implemented.
[0029] The present invention provides an IPv6 security policy control method, device, equipment and storage medium, the method comprising: obtaining the host bits of each IPv6 address to be encoded, and selecting a fixed bit space of a specified number of bits from the host bits of each IPv6 address; for the fixed bit space selected from the host bits of each IPv6 address, color coding corresponding to the service type and terminal type is performed, and the planning and allocation of IPv6 addresses are completed; the color coding information is synchronized to the security control policy table of the network element device, so that the network element device implements the corresponding security policy control based on the security control policy table. The present invention can identify the service type or terminal type based on marking the service type, terminal type and other information in the IPv6 address, thereby providing differentiated security access control for different service types and different terminal types, and meeting the needs of refined service identification and security control. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1This is a first flow chart of an IPv6 security policy control method provided according to an embodiment of the present invention;
[0032] Figure 2 is a second flow chart of an IPv6 security policy control method provided according to an embodiment of the present invention;
[0033] Figure 3 It is a structural diagram of an IPv6 security policy control device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0035] See also Figure 1 , which shows a flow chart of an IPv6 security policy control method provided by an embodiment of the present invention, which may specifically include the following steps:
[0036] S11: Obtain host bits of each IPv6 address to be encoded, and select a fixed bit space of a specified number of bits from the host bits of each IPv6 address.
[0037] The embodiment of the present invention provides a technical solution for controlling IPv6 security policies based on IPv6 (Internet Protocol Version 6) address coloring linkage network element devices. Specifically, the host bits of the IPv6 addresses of various services can be first obtained as the host bits of the various IPv6 addresses to be encoded, and then a fixed coding bit space (i.e., a fixed bit space) with a specified number of bits is selected from the host bits of the obtained IPv6 addresses to perform identification planning for service types and terminal types. Among them, the coding space size of the fixed bit space can be selected as 64 bits, so the coding bit length that can be selected is 1~64 bits, and the specified number of bits can be set according to actual needs, such as 16 bits; a continuous coding bit space is selected from any position of the host bit as the fixed bit space, such as the 65th-80th bit coding bits of the host bit of the IPv6 address.
[0038] S12: For the fixed bit space selected from the host bits of each IPv6 address, color coding corresponding to the service type and terminal type is performed respectively, and the planning and allocation of the IPv6 address is completed.
[0039] In the selected fixed bit space, a part is used for coloring the business type, that is, assigning this part with a code corresponding to the business type, and different business types have different corresponding codes; another part is used for coloring the terminal type, that is, assigning this part with a code corresponding to the terminal type, and different terminal types have different corresponding codes. Among them, the business type and terminal type are determined according to the actual scenario. For example, the business type can include "office", "simulation", "production", etc., and the terminal type can include HP terminal, ASUS terminal, Huawei terminal and Lenovo terminal, etc.
[0040] After the color coding of the service type and terminal type is completed, the planning and allocation of the IPv6 address can be completed, that is, the color coding is updated to the corresponding IPv6 address, so that by planning different types of coloring to the IPv6 address, the final allocated IPv6 address will include different terminal types under the same service.
[0041] S13: Synchronize the color-coded information into the security control policy table of the network element device, so that the network element device implements corresponding security policy control based on the security control policy table.
[0042] The embodiment of the present invention can synchronize the coloring coded information to the security control policy table of the network element device through the API based on the preset IPv6 address coloring system. For example, when the business types include "office", "simulation", "production", etc., and the terminal types include HP terminals, ASUS terminals, Huawei terminals, and Lenovo terminals, there are four types of terminals under the "office" business, four types of terminals under the "simulation" business, and four types of terminals under the "production" business. Each terminal under each business has unique coded coloring information, so that customized refined security policy control can be performed in the form of business type-based coloring, terminal type-based coloring, or business type-based coloring + terminal type-based coloring.
[0043] Before the network element device executes security policy control, it first reads the IPv6 address information in the IPv6 neighbor table, and then matches the policy items in the security policy control table based on the read IPv6 address information, and then implements the corresponding security policy control based on the matched policy items. It can realize security policy control of different terminals under the same service in an IPv6 address coloring environment or security policy control of the same terminal under different services.
[0044] The present invention can identify the service type or terminal type based on the information such as service type and terminal type by marking the service type and terminal type in the IPv6 address, thereby providing differentiated security access control for different service types and terminal types, and meeting the needs of refined service identification and security control.
[0045] An IPv6 security policy control method provided by an embodiment of the present invention may further include, before obtaining the host bits of each IPv6 address to be encoded:
[0046] Obtain the fixed prefix of the IPv6 address of each service, and use the obtained fixed prefix of the IPv6 address of each service and the IPv6 address host bit after color coding to form a complete IPv6 address bit.
[0047] The embodiment of the present invention can first obtain the IPv6 address fixed prefix ( / 64 format) of the service as the basis for the address host bit space service identification planning. This example is illustrated with three types of services: "office", "simulation" and "production". "FD00:0000:0000:0001:: / 64" can represent "office IPv6 address fixed prefix"; "FD00:0000:0000:0002:: / 64" can represent "simulation IPv6 address fixed prefix"; "FD00:0000:0000:0003:: / 64" can represent "production IPv6 address fixed prefix".
[0048] An IPv6 security policy control method provided by an embodiment of the present invention performs color coding of corresponding service types and terminal types for fixed bit spaces selected from host bits of each IPv6 address, and may include:
[0049] Determine that a fixed bit space selected from any item of the host bit of the IPv6 address is the current space;
[0050] The current space is evenly divided into two parts, the code corresponding to the service type of the IPv6 address to which the current space belongs is set for the first part, and the code corresponding to the terminal type of the IPv6 address to which the current space belongs is set for the second part.
[0051] After selecting a fixed bit space of a specified number of bits from the host bits of each IPv6 address, it can also include:
[0052] The multiple bits following the fixed bit space in the host bit of each IPv6 address are set as reserved positions for custom extension of IPv6 address coloring encoding.
[0053] It should be noted that the embodiment of the present invention can evenly divide the fixed bit space into two parts, the first half is used to set the code corresponding to the service type, and the second half is used to set the code corresponding to the terminal type, so as to achieve reasonable allocation of the coloring code space. The embodiment of the present invention takes the first 16 bits of the host bit of the IPv6 address as the bit space of the coloring code as an example to illustrate, first divide the 16-bit bit space into two fixed segments - service type coloring and terminal type coloring, as follows:
[0054] Service type: 8 bits in length, ranging from 00 to FF, describing the service type, such as office service, simulation service, production service, etc.
[0055] Terminal type: 8 bits in length, ranging from 00 to FF, describes the terminal type and defines the manufacturer information of the terminal, such as HP terminal, ASUS terminal, Lenovo terminal, etc.
[0056] Secondly, the color coding for business type and terminal type also supports custom extensions. Specifically, multiple bit spaces can be reserved after the fixed bit space, so that corresponding color coding operations can be performed when there are special needs.
[0057] In a specific implementation, Figure 2 As shown, an IPv6 security policy control method provided by an embodiment of the present invention may specifically include:
[0058]
[101] Obtain the fixed prefix of the IPv6 service address:
[0059] Obtain the fixed prefix ( / 64 format) of the IPv6 address of the service as the basis for planning the service identification of the address host bit space. This example uses three types of services: "office", "simulation", and "production", as shown in Table 1 below.
[0060]
[0061] Among them, "FD00:0000:0000:0001:: / 64" means "fixed prefix of office IPv6 address"; "FD00:0000:0000:0002:: / 64" means "fixed prefix of simulation IPv6 address"; "FD00:0000:0000:0003:: / 64" means "fixed prefix of production IPv6 address".
[0062]
[102] Get the bit space of the host bit of the IPv6 address:
[0063] According to the encoding method disclosed in the present invention, a 16-bit fixed bit space is selected from the host bits of the IPv6 address of three types of services to carry out identification planning of service types and terminal types, namely the 65th to 80th bit space of the IPv6 address bits.
[0064]
[103] Identification type planning--Add identification types, including business type and terminal type:
[0065] In the selected 16-bit space, the first 8 bits are selected as the "business type". In this example, the "business type" is "office", "simulation", and "production". Referring to the encoding scheme in Table 2 below, "office" is assigned a value of "1", "simulation" is assigned a value of "2", and "production" is assigned a value of 3.
[0066]
[0067]
[104] Add color coding, including business type coding and terminal type coding:
[0068] The coloring code planning is shown in Table 3 below. In the 16-bit space, the last 8 bits are selected as the "terminal type coloring code". In this example, the "terminal type coloring code" includes four terminal types: HP terminal, ASUS terminal, Huawei terminal and Lenovo terminal. Among them, the HP terminal coloring code is "01", the ASUS terminal coloring code is "02", the Huawei terminal coloring code is "03", and the Lenovo terminal coloring code is "04". In this way, different terminals under different business types can be coded one by one.
[0069]
[0070]
[105] Address coloring completed:
[0071] The type coloring coding is completed, and the IPv6 address planning and allocation are completed, as shown in Table 4. By planning different type colors into IPv6 addresses, the final allocated IPv6 service addresses will include different terminal types under the same service.
[0072]
[0073]
[106] Linking network element devices to synchronize IPv6 coloring information:
[0074] Based on the IPv6 address coloring system, the coloring information is synchronized to the security control policy table of the network element device through the API. As shown in Table 5 below. Among them, there are four types of terminals under the "office" service, four types of terminals under the "simulation" service, and four types of terminals under the "production" service. Each terminal under each service has unique coded coloring information. Customized refined security policy control can be performed in the form of coloring based on service type, coloring based on terminal type, or coloring based on service type + terminal type.
[0075]
[0076]
[107] Issue and execute IPv6 coloring-based security policies:
[0077] Before the network element device executes security policy control, it reads the IPv6 address information in the IPv6 neighbor table to match the policy items in the security policy control table, thereby realizing security policy control of different terminals under the same service in an IPv6 address coloring environment or security policy control of the same terminal under different services.
[0078]
[108] The process ends.
[0079] The present invention provides a method for IPv6 security policy control based on IPv6 address coloring and linkage network element equipment. By marking the service type and terminal type information, the service or terminal is identified according to the address coloring type, and differentiated security access control is provided for different service types and different terminal types. For any feature marking and scheduling of IPv6 network access, it is necessary to rely on IP address coloring and then linkage network element equipment to perform security policy control, so as to achieve the purpose of optimizing ACL defects of network element equipment, improving equipment performance, and enhancing network security.
[0080] The embodiment of the present invention also provides an IPv6 security policy control device, such as Figure 3 As shown, it may specifically include:
[0081] The selection module 11 is used to: obtain the host bits of each IPv6 address to be encoded, and select a fixed bit space of a specified number of bits from the host bits of each IPv6 address;
[0082] The coloring module 12 is used to: for the fixed bit space selected from the host bits of each IPv6 address, respectively perform coloring coding corresponding to the service type and the terminal type, and complete the planning and allocation of the IPv6 address;
[0083] The synchronization module 13 is used to synchronize the color-coded information to the security control policy table of the network element device, so that the network element device implements corresponding security policy control based on the security control policy table.
[0084] An IPv6 security policy control device provided by an embodiment of the present invention may further include:
[0085] The acquisition module is used to: before acquiring the host bits of each IPv6 address to be encoded, obtain the fixed prefix of the IPv6 address of each service, so as to use the obtained fixed prefix of the IPv6 address of each service and the IPv6 address host bits after color encoding to form a complete IPv6 address bit.
[0086] An IPv6 security policy control device provided by an embodiment of the present invention, wherein the coloring module may include:
[0087] A coloring unit is used to: determine that a fixed bit space selected from the host bit of any IPv6 address is the current space; divide the current space into two parts equally, set the code corresponding to the business type of the IPv6 address to which the current space belongs for the first part, and set the code corresponding to the terminal type of the IPv6 address to which the current space belongs for the second part.
[0088] An IPv6 security policy control device provided by an embodiment of the present invention may further include:
[0089] The setting module is used to: after selecting a fixed bit space of a specified number of bits from the host bits of each IPv6 address, set multiple bits behind the fixed bit space in the host bits of each IPv6 address as reserved positions for custom expansion of IPv6 address coloring coding.
[0090] An embodiment of the present invention further provides an IPv6 security policy control device, the device comprising a memory and a processor, and the program stored in the memory can implement the steps of the above-mentioned IPv6 security policy control method when executed by the processor.
[0091] An embodiment of the present invention further provides a computer-readable storage medium, and when a program stored on the computer-readable storage medium is executed by a processor, the steps of the above-mentioned IPv6 security policy control method are implemented.
[0092] For detailed description of the IPv6 security policy control device, equipment and storage medium provided by the embodiment of the present invention, please refer to the corresponding part of the above-mentioned IPv6 security policy control method embodiment. Although the embodiments of the present invention are described in conjunction with the drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the attached claims.
Claims
1. An IPv6 security policy control method, characterized in that: include: Obtaining the fixed prefix of the IPv6 address of each service, and using the obtained fixed prefix of the IPv6 address of each service and the IPv6 address host bit after color coding to form a complete IPv6 address bit; Obtain the host bits of each IPv6 address to be encoded, and select a fixed bit space of a specified number of bits from the host bits of each IPv6 address; Set the multiple bits behind the fixed bit space in the host bit of each IPv6 address as reserved positions for custom extension of IPv6 address coloring encoding; Determine a fixed bit space selected from any item of the host bit of the IPv6 address as the current space, divide the current space into two parts equally, set a code corresponding to the service type of the IPv6 address to which the current space belongs for the first part, set a code corresponding to the terminal type of the IPv6 address to which the current space belongs for the second part, and complete the planning and allocation of the IPv6 address; The color-coded information is synchronized to the security control policy table of the network element device, so that the network element device implements corresponding security policy control based on the security control policy table.
2. An IPv6 security policy control device, characterized in that: include: The acquisition module is used to: before acquiring the host bits of each IPv6 address to be encoded, acquire the fixed prefix of the IPv6 address of each service, so as to form a complete IPv6 address bit by using the acquired fixed prefix of the IPv6 address of each service and the IPv6 address host bits after color encoding; A selection module is used to: obtain the host bits of each IPv6 address to be encoded, and select a fixed bit space of a specified number of bits from the host bits of each IPv6 address; A setting module is used to: after selecting a fixed bit space of a specified number of bits from the host bits of each IPv6 address, set a plurality of bits behind the fixed bit space in the host bits of each IPv6 address as reserved positions for performing a custom extension of the IPv6 address coloring code; The coloring module includes a coloring unit, which is used to: determine a fixed bit space selected from any item of the IPv6 address host bit as the current space; The current space is evenly divided into two parts, a code corresponding to the service type of the IPv6 address to which the current space belongs is set for the first part, a code corresponding to the terminal type of the IPv6 address to which the current space belongs is set for the second part, and the planning and allocation of the IPv6 address are completed; The synchronization module is used to synchronize the color-coded information to the security control policy table of the network element device, so that the network element device implements corresponding security policy control based on the security control policy table.
3. An IPv6 security policy control device, characterized in that: The device includes a memory and a processor, and the program stored in the memory can implement the steps of the IPv6 security policy control method as claimed in claim 1 when executed by the processor.
4. A computer-readable storage medium, characterized in that: When the program stored on the computer-readable storage medium is executed by the processor, the steps of the IPv6 security policy control method according to claim 1 are implemented.
