Method and device for notifying SRv6 address resource, service and client device
By extending the DNS protocol and defining new DNS query and response types, dynamic notification of SRv6 address resources is realized, which solves the problem in the existing technology that the operator network and customer-side equipment cannot advertise SRv6 address resources to each other, and expands the SRv6 protocol system. coverage.
Patent Information
- Application Number
- CN202310197495.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-03
AI Technical Summary
The existing DHCPv4/DHCPv6 protocol cannot automatically allocate and advertise address information under the SRv6 system. As a result, edge devices and customer-side devices on the operator's network cannot dynamically advertise SRv6 address resources to each other.
By extending the DNS protocol, new DNS query types and response resource types are defined to realize dynamic notification of address information under the SRv6 system. The client device sends a query message carrying a specific query type to the DNS server, and the server selects from the address resource pool. The target address information is carried in the response message to ensure that the client device can dynamically obtain SRv6 address resources.
Without adding new dynamic protocols, it realizes the dynamic allocation and notification of address resources under the SRv6 system, solves the problem of address resource notification between the operator network and client equipment, and expands the coverage of the SRv6 protocol system to the backbone network equipment and client-side equipment.
Smart Images

Figure CN118590465A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, device, service and client equipment for announcing SRv6 address resources. Background Art
[0002] SRv6 (English full name: Segment Routing IPv6, Chinese full name: Segment Routing based on IPv6 forwarding plane) is a combination of the two most popular network technologies, Segment Routing (Chinese full name: Segment Routing) and IPv6 (English full name: Internet Protocol version 6, Chinese full name: Internet Protocol version 6). It has the flexible routing capability of the former and the affinity of the latter, as well as the unique device-level programmability of SRv6, making it the most promising networking technology in the IPv6 network era.
[0003] like Figure 2 As shown, in the IPv4 (English full name: Internet Protocol version 4, Chinese full name: Internet Interconnection Protocol Version 4) / IPv6 system, the DNS client Client, the client-side optical modem ONU (English full name: Optical Network Unit, Chinese full name: Optical Network Unit) / client-side router, and the edge equipment BRAS (English full name: Broadband Remote Access Server, Chinese full name: Broadband Access Server) / SR (English full name: Service Router, Chinese full name: Service Router) / PGW (English full name: Power Distribution Network Gate Way, Chinese full name: Power Distribution Network Gateway) / UPF (English full name: User Plane Function) of the operator network cooperate, through DHCP (English full name: Dynamic Host Configuration Protocol, Chinese full name: Dynamic Host Configuration Protocol), the automatic DNS server server obtains the IPv4 / IPv6 address from BRAS / SR / PGW / UPF.
[0004] BRAS / SR directly has the host route / direct route of the downstream device, and publishes the aggregate route of the host route / direct route to the WAN to receive the traffic sent from the Internet side (WAN side). Downstream customer-side ONU / customer-side router uses the default route to point to BRAS / SR to send traffic to the Internet side (WAN side).
[0005] However, with the existing DHCPv4 / DHCPv6 protocol, the edge devices of the operator network can only automatically allocate IPv4 / IPv6 address information, and cannot allocate and announce address information under the SRv6 system. Moreover, the address resources of the SRv6 system are completely different from IPv4 and IPv6 addresses. Currently, there is no solution or protocol for the client-side device to request the allocation of SRv6 address resources from the upstream device (BRAS / SR / PGW / UPF). Summary of the invention
[0006] The purpose of the present invention is to provide a method, device, service and client device for announcing SRv6 address resources to solve the problem in the existing SRv6 protocol system that the edge device of the operator network and the client-side device cannot dynamically announce SRv6 address resources to each other.
[0007] In order to solve the above technical problems, in a first aspect, an embodiment of the present invention provides a method for announcing an SRv6 address resource, including:
[0008] Receiving a query message sent by a domain name system DNS client, the query message carrying a first query type, the first query type being used to indicate a request for address information in a segment routing SRv6 system based on an IPv6 forwarding plane;
[0009] According to the first query type, select target address information from an address resource pool under the SRv6 system;
[0010] The target address information and the first response resource type are carried in a response message sent to the DNS client, where the first response resource type is used to indicate the allocation of address information under the SRv6 system.
[0011] Optionally, the query type field in the query question area of the query message carries the first query type;
[0012] The response type field in the answer area of the response message carries the first response resource type.
[0013] Optionally, the first query type is used to indicate requesting address information under the SRv6 system for a target functional requirement;
[0014] The first response resource type is used to indicate that address information under the SRv6 system is allocated according to the target functional requirement.
[0015] Optionally, the target function requirement includes: a virtual private network address requirement, an interface address requirement and / or a link address requirement.
[0016] Optionally, the mnemonic of the first query type is AAA.
[0017] Optionally, the mnemonic of the first response resource type is BBB.
[0018] Optionally, the address information under the SRv6 system includes segment identification and / or positioning information.
[0019] In a second aspect, an embodiment of the present invention provides a device for announcing an SRv6 address resource, including:
[0020] A first receiving module, configured to receive a query message sent by a DNS client, wherein the query message carries a first query type, and the first query type is used to indicate a request for address information under an SRv6 system;
[0021] A selection module, configured to select target address information from an address resource pool under the SRv6 system according to the first query type;
[0022] A carrying module is used to carry the target address information and a first response resource type in a response message sent to the DNS client, wherein the first response resource type is used to indicate the address information allocated under the SRv6 system.
[0023] In a third aspect, an embodiment of the present invention provides a DNS server device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the method for announcing SRv6 address resources as described above is implemented.
[0024] In a fourth aspect, an embodiment of the present invention provides a readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in the method for announcing SRv6 address resources as described above.
[0025] In a fifth aspect, an embodiment of the present invention provides a method for announcing an SRv6 address resource, including:
[0026] Sending a query message to a domain name system DNS server, wherein the query message carries a first query type, and the first query type is used to indicate a request for address information in a segment routing SRv6 system based on an IPv6 forwarding plane;
[0027] Receive a response message sent by the DNS server, the response message carrying target address information and a first response resource type, wherein the target address information is the target address information selected by the DNS server from the address resource pool under the SRv6 system according to the first query type, and the first response resource type is used to indicate the allocation of address information under the SRv6 system.
[0028] Optionally, after receiving the response message sent by the DNS server, the method further includes:
[0029] The target address information is parsed according to the response message, and the target address information is encapsulated in an SRv6 message.
[0030] Optionally, the query type field in the query question area of the query message carries the first query type;
[0031] The response type field in the answer area of the response message carries the first response resource type.
[0032] Optionally, the first query type is used to indicate requesting address information under the SRv6 system for a target functional requirement;
[0033] The first response resource type is used to indicate that address information under the SRv6 system is allocated according to the target functional requirement.
[0034] Optionally, the target function requirement includes: a virtual private network address requirement, an interface address requirement and / or a link address requirement.
[0035] Optionally, the mnemonic of the first query type is AAA.
[0036] Optionally, the mnemonic of the first response resource type is BBB.
[0037] Optionally, the address information under the SRv6 system includes segment identification and / or positioning information.
[0038] In a sixth aspect, an embodiment of the present invention provides a device for announcing an SRv6 address resource, including:
[0039] A first sending module, configured to send a query message to a domain name system DNS server, wherein the query message carries a first query type, and the first query type is used to indicate a request for address information in a segment routing SRv6 system based on an IPv6 forwarding plane;
[0040] A second receiving module is used to receive a response message sent by the DNS server, the response message carrying target address information and a first response resource type, wherein the target address information is the target address information selected by the DNS server from the address resource pool under the SRv6 system according to the first query type, and the first response resource type is used to indicate the allocation of address information under the SRv6 system.
[0041] In a seventh aspect, an embodiment of the present invention provides a DNS client device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the method for announcing SRv6 address resources as described above is implemented.
[0042] In an eighth aspect, an embodiment of the present invention provides a readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in the method for announcing SRv6 address resources as described above.
[0043] The beneficial effects of the above technical solution of the present invention are as follows:
[0044] In the above scheme, a new DNS query type, namely the first query type, and a new response resource type, namely the first response resource type, are defined. During the interaction between the DNS server and the DNS client protocols, the dynamic notification of address information under the SRv6 system is realized by carrying the new DNS query type and response resource type. In this way, by extending the DNS protocol, the dynamic allocation and notification of address resources under the SRv6 system can be realized without adding new dynamic protocols, which solves the key problem that the edge devices and client-side devices of the operator network cannot dynamically notify each other of address resources during the operation of the existing SRv6 protocol system, and provides a significant solution for solving the problem that the SRv6 protocol system not only covers the operator backbone network equipment (core equipment + edge equipment), but also covers the backbone network equipment + client-side equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flowchart of a method for notifying SRv6 address resources of a DNS server device provided in an embodiment of the present invention;
[0046] Figure 2 Schematic diagram of the network architecture for allocating existing IPv4 / IPv6 addresses;
[0047] Figure 3 A schematic diagram of the structure of a DNS message provided in an embodiment of the present invention;
[0048] Figure 4 A schematic diagram of the query question area format provided by an embodiment of the present invention;
[0049] Figure 5 A schematic diagram of a resource record format provided by an embodiment of the present invention;
[0050] Figure 6 A schematic diagram of the SRH structure provided by an embodiment of the present invention;
[0051] Figure 7 A schematic diagram of the SRv6 SID format provided in an embodiment of the present invention;
[0052] Figure 8 A schematic diagram of query types provided by an embodiment of the present invention;
[0053] Fig. 9A schematic diagram of the structure of an apparatus for notifying SRv6 address resources applied to a DNS server device provided in an embodiment of the present invention;
[0054] Fig.10 A flowchart of a method for notifying SRv6 address resources of a DNS client device provided in an embodiment of the present invention;
[0055] Fig.11 A schematic diagram of the structure of an apparatus for notifying SRv6 address resources applied to a DNS client device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0057] In order to better understand the present invention, the DNS protocol and Srv6 are briefly introduced first.
[0058] The Domain Name System (DNS) is a service of the Internet. As a distributed database that maps domain names and IP addresses, it makes it easier to access the Internet. DNS has only two types of messages: query messages and response messages, both of which have the same format. DNS messages are carried on UDP (User Datagram Protocol), and the port number is 53. The structure of the DNS message is as follows: Figure 3 shown.
[0059] SRv6 is the abbreviation of SR-IPv6, which refers to the application of segment routing to the IPv6 forwarding plane. That is, the instruction list of segment routing is encapsulated in the IPv6 packet header to guide the forwarding of packets according to the source route.
[0060] The most popular SRv6 data plane currently uses SRH (Segment Routing Header) encapsulation. The SRH structure is as follows: Figure 6As shown, the SRH encapsulates the segment list information, and each segment is a 128-bit IPv6 address. The SRH includes the following fields: Version Number Version, Traffic Class, Flow Label, Payload Length, Next Header, Hop Limit, Source Address Source Address, Destination Address Destination Address, Next Header, SRH basic header length Hdr Ext Len, Routing Type Routing Type, the number of remaining segments Segments Left, Last Entry Last Entry, Flags, a tag indicating the type or group to which the data packet belongs, Segment List [0], Segment List [n], Optional TLVs, and Payload. The SRv6 tunnel is the management entity of the corresponding instruction list, and is presented to the service like other tunnels. SRv6 tunnel can carry all known types of payloads, including Layer 2, Layer 3, MPLS (Multiprotocol Label Switching), TCP (Transmission Control Protocol), and UDP (User Data Protocol).
[0061] As described in the background technology, the existing DHCPv4 / DHCPv6 protocol can only automatically allocate IPv4 / IPv6 address information. The address resources of the SRv6 system are completely different from IPv4 and IPv6 addresses. Currently, there is no solution or protocol for client devices to request the allocation of SRv6 address resources from upstream devices (BRAS / SR / PGW / UPF).
[0062] Client devices are mostly devices that users go online by themselves, usually dynamically, and the online and offline times are random events, and the Srv6 address cannot be pre-configured. The client devices referred to in the present invention include but are not limited to optical modems, client desktop routers, client 4G or 5G CPE (Customer Premise Equipment) routers, etc.
[0063] Client devices are mostly devices that users go online by themselves, and may go online at any location. The online location is unknown, and it is impossible to specify a dedicated person to pre-configure the Srv6 address. The client devices referred to in the present invention include but are not limited to PCs, 4G / 5G devices, small switches, routers, etc.
[0064] The embodiment of the present invention extends the DNS protocol, and the edge device of the operator network (BRAS / SR, etc.) dynamically notifies the address information under the SRv6 system to the client device (including optical modems, client-side desktop routers, client-side 4G or 5G CPE routers, and other devices).
[0065] like Figure 1 As shown, an embodiment of the present invention provides a method for announcing SRv6 address resources, which is applied to a DNS server device, including:
[0066] Step 101: Receive a query message sent by a domain name system DNS client, wherein the query message carries a first query type, and the first query type is used to indicate a request for address information in a segment routing SRv6 system based on an IPv6 forwarding plane.
[0067] Here, a new query type is defined for DNS, namely the first query type, which is used to request address information under an SRv6 system. The DNS client (such as a client router) sends a query message carrying the first query type to request the DNS server (such as an edge device of the operator network) to notify it of the address information under the SRv6 system.
[0068] The address information under the SRv6 system may include a segment identifier (full name in English: Segment ID, abbreviation: SID) and / or locator information.
[0069] The SRv6 SID format is as follows: Figure 7As shown in the figure, Locator is an identifier assigned to a network node in the network topology, which is used to forward data packets to the node. The route corresponding to the Locator will be published to the network by the node through IGP (English full name: Interior Gateway Protocol, Chinese full name: Internal Gateway Protocol) to help other devices forward data packets to the node that publishes the Locator. In SRv6 SID, the length of Locator is variable and is used to adapt to networks of different sizes. Function Function is used to express the forwarding action to be performed by the instruction, which is equivalent to the operation code of the computer instruction. In SRv6 network programming, different forwarding behaviors are described by the Function part, such as forwarding data packets to a specified link, or forwarding by looking up a table in a specified table. Object Arguments (abbreviation: Args) is an optional field. It is the parameter corresponding to the instruction when it is executed. These parameters may contain streams, services or any other related information.
[0070] Step 102: According to the first query type, select target address information from an address resource pool under the SRv6 system.
[0071] Here, after receiving the request message, the DNS server (such as the edge device of the operator network) selects the target address information from the address resource pool under the SRv6 system to dynamically allocate the address information under the SRv6 system to the client device.
[0072] Taking the address information under the SRv6 system including SID as an example, the DNS client (such as the client router) sends a query message carrying the first query type to request the DNS server to notify it of the SID. After receiving the request message, the DNS server (such as the edge device of the operator network) selects the available SID information from the SID resource pool to dynamically allocate the address information under the SRv6 system to the client device.
[0073] Among them, the address resource pool (such as SID resource pool) under the SRv6 system can be stored locally on the DNS server or on other network nodes, as long as the DNS server can query it. Of course, the address resource pool under the SRv6 system is stored locally on the DNS server, which makes query more convenient and the response speed faster.
[0074] Step 103: Carry the target address information and a first response resource type in a response message sent to the DNS client, where the first response resource type is used to indicate the address information allocated under the SRv6 system.
[0075] Here, a new response resource type is defined for DNS, namely the first response resource type, which is used to allocate address information under an SRv6 system. After the DNS server (such as the edge device of the operator network) selects the target address information, it carries the target address information and the first response resource type in the response message to realize the dynamic notification of address resources under the SRv6 system.
[0076] After receiving the response message, the DNS client (such as a client router) parses the target address information contained in the message, and in various subsequent SRv6 messages, the target address information can be encapsulated in the instruction list of the SRv6 message.
[0077] Taking the address information including SID under the SRv6 system as an example, the DNS server (such as the edge device of the operator network) carries the target SID information and the first response resource type in the response message. After receiving the response message, the DNS client (such as the client router) parses the target SID information contained in the message. In various subsequent SRv6 messages, the target address information can be encapsulated in the instruction list of the SRv6 message.
[0078] The method for announcing SRv6 address resources provided in an embodiment of the present invention defines a new DNS query type, namely the first query type, and a new response resource type, namely the first response resource type. During the interaction between the DNS server and the DNS client protocol, dynamic notification of address information under the SRv6 system is achieved by carrying the new DNS query type and the response resource type. In this way, by extending the DNS protocol, the dynamic allocation and notification of address resources under the SRv6 system are achieved without adding new dynamic protocols, which solves the key problem that the edge devices and client-side devices of the operator network cannot dynamically notify each other of address resources during the operation of the existing SRv6 protocol system, and provides a significant solution for solving the problem that the SRv6 protocol system not only covers the operator backbone network equipment (core equipment + edge equipment), but also covers the backbone network equipment + client-side equipment.
[0079] The structure of the DNS message is as follows Figure 3 As shown. The query area Queries contains the following content: query name Name, query type Type, query class Class, such as Figure 4 As shown in the figure. The resource record part refers to the last three fields in the DNS message format, including the answer zone Answers, the authoritative name server Authoritative name servers, and the additional zone Additional recorded fields. These three fields all use a format called resource records, as shown in the following figure. Figure 5As shown in the figure, it includes domain name, type, class, lifetime, resource data length, and resource data. The resource record part only appears in the DNS response packet.
[0080] In the embodiment of the present invention, the query type field in the query question area of the query message carries the first query type; and the response type field in the answer area of the response message carries the first response resource type.
[0081] At this time, the query type field in the query question area of the query message can carry the first query type, which is used to request address information (such as SID) under the SRv6 system; the type field in the answer area of the resource record part can carry the first answer resource type, which is used to allocate address information (such as SID) under the SRv6 system. Therefore, by extending the DNS protocol, the address information (such as SID) under the SRv6 system can be dynamically allocated and announced without adding new dynamic protocols to the client optical modem and other devices.
[0082] Optionally, the first query type is used to indicate a request for address information under the SRv6 system for a target functional requirement; the first response resource type is used to indicate an allocation of address information under the SRv6 system for the target functional requirement.
[0083] At this time, the DNS client (such as the client-side router) sends a query message that can carry the first query type and request address information (such as SID) under the SRv6 system for specific target functional requirements; after receiving the query message, the DNS server (such as the edge device of the operator network) selects the target address information that meets the target functional requirements of the DNS client from the address resource pool (such as the SID resource pool) under the SRv6 system, and uses a response message to carry the first response resource type (including the selected target address information) to notify the DNS client of the address information (such as SID) under the SRv6 system that can be used for specific target functional requirements. Dynamic notification of address information under the SRv6 system is realized.
[0084] The target function requirement includes, but is not limited to, a virtual private network (English full name: Virtual Private Network, abbreviation: VPN) address requirement, an interface address requirement and / or a link address requirement. For example, when the address information under the SRv6 system includes a SID, the first query type is used to indicate a request for a SID for a specific target function requirement (VPN SID, interface SID, or link SID, etc.); the first response resource type is used to indicate an allocation of a SID for a specific target function requirement (VPN SID, interface SID, or link SID, etc.).
[0085] In existing DNS messages, common query types are shown in Figure 8 shown.
[0086] Optionally, in an embodiment of the present invention, the mnemonic of the first query type is AAA; the mnemonic of the first response resource type is BBB.
[0087] The following is an example of a specific application process of an embodiment of the present invention:
[0088] Assume that the address information under the SRv6 system includes a SID, the mnemonic of the first query type is AAA, and the mnemonic of the first response resource type is BBB.
[0089] The DNS client (e.g., client router) sends a query message carrying the first query type AAA, requesting a SID for a specific functional requirement (e.g., VPN SID, interface SID, or link SID): requesting a DNS server (e.g., edge device of the operator network) to notify it of the SID of a specific path / service;
[0090] After receiving the query message, the DNS server (such as the edge device of the operator's network) selects a SID that meets the needs of the DNS client (such as the client router) from the local SID resource pool, and uses a reply message to carry the first reply resource type BBB (including the selected SID information): to notify the DNS client (such as the client-side device) of the SID information that can be used for specific functional requirements (VPNSID, interface SID or link SID, etc.).
[0091] After receiving the reply message, the DNS client (such as the client-side router) parses the SID information contained in the message, and encapsulates the SID in the SID List in various SRv6 messages on the local machine according to the auxiliary information carried in the reply message to indicate a specific function (VPN SID, interface SID or link SID, etc.).
[0092] The method for announcing SRv6 address resources provided by the embodiment of the present invention defines new DNS query types and response resource types, and defines the DNS protocol interaction process to realize the dynamic announcement of SRv6 SID information by carrying new DNS query types and response resource types. It solves the key problem that the edge devices and client-side devices of the operator network cannot dynamically announce SIDs to each other during the operation of the existing SRv6 protocol system, and provides a significant solution to solve the problem that the SRv6 protocol system not only covers the operator backbone network equipment (core equipment + edge equipment), but also covers the backbone network equipment + client-side equipment.
[0093] See also Fig. 9As shown, an embodiment of the present invention further provides a device for announcing SRv6 address resources, which is applied to a DNS network terminal device, including:
[0094] A first receiving module 901 is configured to receive a query message sent by a DNS client, wherein the query message carries a first query type, and the first query type is used to indicate a request for address information under an SRv6 system;
[0095] A selection module 902 is used to select target address information from an address resource pool under the SRv6 system according to the first query type;
[0096] The carrying module 903 is used to carry the target address information and the first response resource type in the response message sent to the DNS client, where the first response resource type is used to indicate the address information allocated under the SRv6 system.
[0097] The device for announcing SRv6 address resources provided by the embodiment of the present invention defines a new DNS query type, namely the first query type, and a new response resource type, namely the first response resource type. During the interaction between the DNS server and the DNS client protocol, the dynamic notification of address information under the SRv6 system is achieved by carrying the new DNS query type and the response resource type. In this way, by extending the DNS protocol, the dynamic allocation and notification of address resources under the SRv6 system are achieved without adding new dynamic protocols, which solves the key problem that the edge devices and client-side devices of the operator network cannot dynamically notify each other of address resources during the operation of the existing SRv6 protocol system, and provides a significant solution for solving the problem that the SRv6 protocol system not only covers the operator backbone network equipment (core equipment + edge equipment), but also covers the backbone network equipment + client-side equipment.
[0098] Optionally, the query type field in the query question area of the query message carries the first query type;
[0099] The response type field in the answer area of the response message carries the first response resource type.
[0100] Optionally, the first query type is used to indicate requesting address information under the SRv6 system for a target functional requirement;
[0101] The first response resource type is used to indicate that address information under the SRv6 system is allocated according to the target functional requirement.
[0102] Optionally, the target function requirement includes: a virtual private network address requirement, an interface address requirement and / or a link address requirement.
[0103] Optionally, the mnemonic of the first query type is AAA.
[0104] Optionally, the mnemonic of the first response resource type is BBB.
[0105] Optionally, the address information under the SRv6 system includes segment identification and / or positioning information.
[0106] The device for announcing SRv6 address resources provided by the embodiment of the present invention defines new DNS query types and response resource types, and defines the DNS protocol interaction process to realize the dynamic announcement of SRv6 SID information by carrying new DNS query types and response resource types. It solves the key problem that the edge devices and client-side devices of the operator network cannot dynamically announce SIDs to each other during the operation of the existing SRv6 protocol system, and provides a significant solution to solve the problem that the SRv6 protocol system not only covers the operator backbone network equipment (core equipment + edge equipment), but also covers the backbone network equipment + client-side equipment.
[0107] Among them, the implementation embodiments of the above-mentioned method for announcing SRv6 address resources are all applicable to the embodiments of the device for announcing SRv6 address resources, and can also achieve the same technical effect.
[0108] An embodiment of the present invention also provides a DNS server device, including a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the method for announcing SRv6 address resources as described in the above embodiment is implemented.
[0109] Among them, the implementation embodiments of the above-mentioned method for notifying SRv6 address resources are all applicable to the embodiments of the DNS server device and can achieve the same technical effect.
[0110] An embodiment of the present invention further provides a readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in the method for announcing SRv6 address resources as described in the above embodiment.
[0111] Among them, the implementation embodiments of the above-mentioned method for notifying SRv6 address resources are all applicable to the embodiments of the readable storage medium and can achieve the same technical effect.
[0112] See also Fig.10 As shown, an embodiment of the present invention further provides a method for announcing SRv6 address resources, which is applied to a DNS client device, including:
[0113] Step 1001: Send a query message to a domain name system DNS server, wherein the query message carries a first query type, and the first query type is used to indicate a request for address information in a segment routing SRv6 system based on an IPv6 forwarding plane.
[0114] Here, a new query type is defined for DNS, namely the first query type, which is used to request address information under an SRv6 system. The DNS client (such as a client router) sends a query message carrying the first query type to request the DNS server (such as an edge device of the operator network) to notify it of the address information under the SRv6 system.
[0115] The address information under the SRv6 system may include a segment identifier (full name in English: Segment ID, abbreviation: SID) and / or locator information.
[0116] The SRv6 SID format is as follows: Figure 7 As shown in the figure, Locator is an identifier assigned to a network node in the network topology, which is used to forward data packets to the node. The route corresponding to the Locator will be published to the network by the node through IGP (English full name: Interior Gateway Protocol, Chinese full name: Internal Gateway Protocol) to help other devices forward data packets to the node that publishes the Locator. In SRv6 SID, the length of Locator is variable and is used to adapt to networks of different sizes. Function Function is used to express the forwarding action to be performed by the instruction, which is equivalent to the operation code of the computer instruction. In SRv6 network programming, different forwarding behaviors are described by the Function part, such as forwarding data packets to a specified link, or forwarding by looking up a table in a specified table. Object Arguments (abbreviation: Args) is an optional field. It is the parameter corresponding to the instruction when it is executed. These parameters may contain streams, services or any other related information.
[0117] Step 1002: Receive a response message sent by the DNS server, the response message carrying target address information and a first response resource type, wherein the target address information is the target address information selected by the DNS server from the address resource pool under the SRv6 system according to the first query type, and the first response resource type is used to indicate the allocation of address information under the SRv6 system.
[0118] Here, a new response resource type is defined for DNS, namely the first response resource type, which is used to allocate address information under an SRv6 system. After receiving the request message, the DNS server (such as the edge device of the operator's network) selects the target address information from the address resource pool under the SRv6 system to dynamically allocate the address information under the SRv6 system to the client device. After the DNS server (such as the edge device of the operator's network) selects the target address information, it carries the target address information and the first response resource type in the response message to realize the dynamic notification of address resources under the SRv6 system.
[0119] Taking the address information under the SRv6 system including SID as an example, the DNS client (such as the client router) sends a query message, carrying the first query type to request the DNS server to announce the SID for it. After receiving the request message, the DNS server (such as the edge device of the operator's network) selects the available SID information from the SID resource pool. The DNS server (such as the edge device of the operator's network) carries the target SID information and the first response resource type in the response message. After receiving the response message, the DNS client (such as the client router) parses the target SID information contained in the message. In various subsequent SRv6 messages, the target address information can be encapsulated in the instruction list of the SRv6 message.
[0120] The method for announcing SRv6 address resources provided in an embodiment of the present invention defines a new DNS query type, namely the first query type, and a new response resource type, namely the first response resource type. During the interaction between the DNS server and the DNS client protocol, dynamic notification of address information under the SRv6 system is achieved by carrying the new DNS query type and the response resource type. In this way, by extending the DNS protocol, the dynamic allocation and notification of address resources under the SRv6 system are achieved without adding new dynamic protocols, which solves the key problem that the edge devices and client-side devices of the operator network cannot dynamically notify each other of address resources during the operation of the existing SRv6 protocol system, and provides a significant solution for solving the problem that the SRv6 protocol system not only covers the operator backbone network equipment (core equipment + edge equipment), but also covers the backbone network equipment + client-side equipment.
[0121] Optionally, after the above step 1002, the method further includes:
[0122] Step 1003: According to the response message, parse out the target address information, and encapsulate the target address information in an SRv6 message.
[0123] At this time, after receiving the reply message, the DNS client (such as the client-side router) parses the target address information contained in the message, and encapsulates the target address information in the instruction list in various SRv6 messages on the local machine according to the auxiliary information carried in the reply message.
[0124] The structure of the DNS message is as follows Figure 3 As shown. The query area Queries contains the following content: query name Name, query type Type, query class Class, such as Figure 4As shown in the figure. The resource record part refers to the last three fields in the DNS message format, including the answer area Answers, the authoritative nameserver area Authoritative nameservers, and the additional information area Additional recordeds field. These three fields all use a format called resource records, as shown in the following figure. Figure 5 As shown in the figure, it includes domain name, type, class, lifetime, resource data length, and resource data. The resource record part only appears in the DNS response packet.
[0125] In the embodiment of the present invention, the query type field in the query question area of the query message carries the first query type; and the response type field in the answer area of the response message carries the first response resource type.
[0126] At this time, the query type field in the query question area of the query message can carry the first query type, which is used to request address information (such as SID) under the SRv6 system; the type field in the answer area of the resource record part can carry the first answer resource type, which is used to allocate address information (such as SID) under the SRv6 system. Therefore, by extending the DNS protocol, the address information (such as SID) under the SRv6 system can be dynamically allocated and announced without adding new dynamic protocols to the client optical modem and other devices.
[0127] Optionally, the first query type is used to indicate a request for address information under the SRv6 system for a target functional requirement; the first response resource type is used to indicate an allocation of address information under the SRv6 system for the target functional requirement.
[0128] At this time, the DNS client (such as the client-side router) sends a query message that can carry the first query type and request address information (such as SID) under the SRv6 system for specific target functional requirements; after receiving the query message, the DNS server (such as the edge device of the operator network) selects the target address information that meets the target functional requirements of the DNS client from the address resource pool (such as the SID resource pool) under the SRv6 system, and uses a response message to carry the first response resource type (including the selected target address information) to notify the DNS client of the address information (such as SID) under the SRv6 system that can be used for specific target functional requirements. Dynamic notification of address information under the SRv6 system is realized.
[0129] The target function requirement includes, but is not limited to, a virtual private network (English full name: Virtual Private Network, abbreviation: VPN) address requirement, an interface address requirement and / or a link address requirement. For example, when the address information under the SRv6 system includes a SID, the first query type is used to indicate a request for a SID for a specific target function requirement (VPN SID, interface SID, or link SID, etc.); the first response resource type is used to indicate an allocation of a SID for a specific target function requirement (VPN SID, interface SID, or link SID, etc.).
[0130] In existing DNS messages, common query types are shown in Figure 8 shown.
[0131] Optionally, in an embodiment of the present invention, the mnemonic of the first query type is AAA; the mnemonic of the first response resource type is BBB.
[0132] The following is an example of a specific application process of an embodiment of the present invention:
[0133] Assume that the address information under the SRv6 system includes a SID, the mnemonic of the first query type is AAA, and the mnemonic of the first response resource type is BBB.
[0134] The DNS client (e.g., client router) sends a query message carrying the first query type AAA, requesting a SID for a specific functional requirement (e.g., VPN SID, interface SID, or link SID): requesting a DNS server (e.g., edge device of the operator network) to notify it of the SID of a specific path / service;
[0135] After receiving the query message, the DNS server (such as the edge device of the operator's network) selects a SID that meets the needs of the DNS client (such as the client router) from the local SID resource pool, and uses a reply message to carry the first reply resource type BBB (including the selected SID information): to notify the DNS client (such as the client-side device) of the SID information that can be used for specific functional requirements (VPNSID, interface SID or link SID, etc.).
[0136] After receiving the reply message, the DNS client (such as the client-side router) parses the SID information contained in the message, and encapsulates the SID in the SID List in various SRv6 messages on the local machine according to the auxiliary information carried in the reply message to indicate a specific function (VPN SID, interface SID or link SID, etc.).
[0137] The method for announcing SRv6 address resources provided by the embodiment of the present invention defines new DNS query types and response resource types, and defines the DNS protocol interaction process to realize the dynamic announcement of SRv6 SID information by carrying new DNS query types and response resource types. It solves the key problem that the edge devices and client-side devices of the operator network cannot dynamically announce SIDs to each other during the operation of the existing SRv6 protocol system, and provides a significant solution to solve the problem that the SRv6 protocol system not only covers the operator backbone network equipment (core equipment + edge equipment), but also covers the backbone network equipment + client-side equipment.
[0138] See also Fig.11 As shown, an embodiment of the present invention further provides a device for announcing SRv6 address resources, which is applied to a DNS client device, including:
[0139] A first sending module 111 is used to send a query message to a domain name system DNS server, wherein the query message carries a first query type, and the first query type is used to indicate a request for address information in a segment routing SRv6 system based on an IPv6 forwarding plane;
[0140] The second receiving module 112 is used to receive a response message sent by the DNS server, the response message carrying target address information and a first response resource type, wherein the target address information is the target address information selected by the DNS server from the address resource pool under the SRv6 system according to the first query type, and the first response resource type is used to indicate the allocation of address information under the SRv6 system.
[0141] The device for announcing SRv6 address resources provided by the embodiment of the present invention defines a new DNS query type, namely the first query type, and a new response resource type, namely the first response resource type. During the interaction between the DNS server and the DNS client protocol, the dynamic notification of address information under the SRv6 system is achieved by carrying the new DNS query type and the response resource type. In this way, by extending the DNS protocol, the dynamic allocation and notification of address resources under the SRv6 system are achieved without adding new dynamic protocols, which solves the key problem that the edge devices and client-side devices of the operator network cannot dynamically notify each other of address resources during the operation of the existing SRv6 protocol system, and provides a significant solution for solving the problem that the SRv6 protocol system not only covers the operator backbone network equipment (core equipment + edge equipment), but also covers the backbone network equipment + client-side equipment.
[0142] Optionally, the device further comprises:
[0143] The parsing module is used to parse the target address information according to the response message, and encapsulate the target address information in an SRv6 message.
[0144] Optionally, the query type field in the query question area of the query message carries the first query type;
[0145] The response type field in the answer area of the response message carries the first response resource type.
[0146] Optionally, the first query type is used to indicate requesting address information under the SRv6 system for a target functional requirement;
[0147] The first response resource type is used to indicate that address information under the SRv6 system is allocated according to the target functional requirement.
[0148] Optionally, the target function requirement includes: a virtual private network address requirement, an interface address requirement and / or a link address requirement.
[0149] Optionally, the mnemonic of the first query type is AAA.
[0150] Optionally, the mnemonic of the first response resource type is BBB.
[0151] Optionally, the address information under the SRv6 system includes segment identification and / or positioning information.
[0152] The device for announcing SRv6 address resources provided by the embodiment of the present invention defines new DNS query types and response resource types, and defines the DNS protocol interaction process to realize the dynamic announcement of SRv6 SID information by carrying new DNS query types and response resource types. It solves the key problem that the edge devices and client-side devices of the operator network cannot dynamically announce SIDs to each other during the operation of the existing SRv6 protocol system, and provides a significant solution to solve the problem that the SRv6 protocol system not only covers the operator backbone network equipment (core equipment + edge equipment), but also covers the backbone network equipment + client-side equipment.
[0153] Among them, the implementation embodiments of the above-mentioned method for announcing SRv6 address resources are all applicable to the embodiments of the device for announcing SRv6 address resources, and can also achieve the same technical effect.
[0154] An embodiment of the present invention also provides a DNS server device, including a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the method for announcing SRv6 address resources as described in the above embodiment is implemented.
[0155] Among them, the implementation embodiments of the above-mentioned method for notifying SRv6 address resources are all applicable to the embodiments of the DNS server device and can achieve the same technical effect.
[0156] An embodiment of the present invention further provides a readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in the method for announcing SRv6 address resources as described in the above embodiment.
[0157] Among them, the implementation embodiments of the above-mentioned method for notifying SRv6 address resources are all applicable to the embodiments of the readable storage medium and can achieve the same technical effect.
[0158] It should be noted that many functional components described in this specification are referred to as modules in order to more particularly emphasize the independence of their implementation methods.
[0159] In the embodiment of the present invention, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.
[0160] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.
[0161] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.
[0162] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary personnel in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for announcing SRv6 address resources, characterized in that: include: Receiving a query message sent by a domain name system DNS client, the query message carrying a first query type, the first query type being used to indicate a request for address information in a segment routing SRv6 system based on an IPv6 forwarding plane; According to the first query type, select target address information from an address resource pool under the SRv6 system; The target address information and the first response resource type are carried in a response message sent to the DNS client, where the first response resource type is used to indicate the allocation of address information under the SRv6 system.
2. The method according to claim 1, characterized in that The query type field in the query question area of the query message carries the first query type; The response type field in the answer area of the response message carries the first response resource type.
3. The method according to claim 1, characterized in that The first query type is used to indicate a request for address information under the SRv6 system for a target functional requirement; The first response resource type is used to indicate that address information under the SRv6 system is allocated according to the target functional requirement.
4. The method according to claim 3, characterized in that The target function requirements include: virtual private network address requirements, interface address requirements and / or link address requirements.
5. The method according to claim 1, characterized in that The mnemonic for the first query type is AAA.
6. The method according to claim 1, characterized in that The mnemonic of the first response resource type is BBB.
7. The method according to any one of claims 1 to 5, characterized in that The address information under the SRv6 system includes segment identification and / or positioning information.
8. A device for announcing SRv6 address resources, characterized in that: include: A first receiving module, configured to receive a query message sent by a DNS client, wherein the query message carries a first query type, and the first query type is used to indicate a request for address information under an SRv6 system; A selection module, configured to select target address information from an address resource pool under the SRv6 system according to the first query type; A carrying module is used to carry the target address information and a first response resource type in a response message sent to the DNS client, wherein the first response resource type is used to indicate the address information allocated under the SRv6 system.
9. A DNS server device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: When the processor executes the program, the method for announcing SRv6 address resources according to any one of claims 1 to 7 is implemented.
10. A readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the method for announcing SRv6 address resources as claimed in any one of claims 1 to 7 are implemented.
11. A method for announcing SRv6 address resources, characterized in that: include: Sending a query message to a domain name system DNS server, wherein the query message carries a first query type, and the first query type is used to indicate a request for address information in a segment routing SRv6 system based on an IPv6 forwarding plane; Receive a response message sent by the DNS server, the response message carrying target address information and a first response resource type, wherein the target address information is the target address information selected by the DNS server from the address resource pool under the SRv6 system according to the first query type, and the first response resource type is used to indicate the allocation of address information under the SRv6 system.
12. The method according to claim 11, characterized in that After receiving the response message sent by the DNS server, the method further includes: The target address information is parsed according to the response message, and the target address information is encapsulated in an SRv6 message.
13. The method according to claim 11, characterized in that The query type field in the query question area of the query message carries the first query type; The response type field in the answer area of the response message carries the first response resource type.
14. The method according to claim 11, characterized in that The first query type is used to indicate a request for address information under the SRv6 system for a target functional requirement; The first response resource type is used to indicate that address information under the SRv6 system is allocated according to the target functional requirement.
15. The method according to claim 14, characterized in that The target function requirements include: virtual private network address requirements, interface address requirements and / or link address requirements.
16. The method according to claim 11, characterized in that The mnemonic for the first query type is AAA.
17. The method according to claim 11, characterized in that The mnemonic of the first response resource type is BBB.
18. The method according to any one of claims 11 to 17, characterized in that The address information under the SRv6 system includes segment identification and / or positioning information.
19. A device for announcing SRv6 address resources, characterized in that: include: A first sending module, configured to send a query message to a domain name system DNS server, wherein the query message carries a first query type, and the first query type is used to indicate a request for address information in a segment routing SRv6 system based on an IPv6 forwarding plane; A second receiving module is used to receive a response message sent by the DNS server, the response message carrying target address information and a first response resource type, wherein the target address information is the target address information selected by the DNS server from the address resource pool under the SRv6 system according to the first query type, and the first response resource type is used to indicate the allocation of address information under the SRv6 system.
20. A DNS client device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: When the processor executes the program, the method for announcing SRv6 address resources according to any one of claims 11 to 18 is implemented.
21. A readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the method for announcing SRv6 address resources as claimed in any one of claims 11 to 18 are implemented.
