Service configuration method of IPv6 network, electronic equipment and readable storage medium
By receiving IPv6 address request messages from terminal devices in an IPv6 network environment, identifying service type information and establishing mapping relationships, the improper business configuration problems caused by the diverse service types of terminal devices are solved, and the safe and efficient Internet access and network security guarantee of terminal devices is achieved.
Patent Information
- Application Number
- CN202311656724.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-04
- Publication Date
- 2025-06-06
AI Technical Summary
In the IPv6 network environment, the service types of terminal devices are diverse, and the existing technology is difficult to dynamically identify terminal service needs, resulting in improper business configuration, leading to problems such as terminal service blockage and network congestion.
By receiving the IPv6 address request message of the terminal device, identifying the service type information, determining the corresponding WAN connection information and the target IPv6 address information, establishing a mapping relationship, and sending the target IPv6 address information to the terminal device, realizing adaptive forwarding of the service message.
It realizes dynamic identification of terminal business needs in an IPv6 network environment and adaptive service configuration, so that terminal devices with different business needs can access the Internet safely and efficiently, ensuring network security and service reliability.
Smart Images

Figure CN120111031A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a service configuration method, an electronic device and a readable storage medium for an IPv6 network. Background Art
[0002] With the rapid development of the Internet, IPv6 technology is becoming more and more mature, and more and more access networks and devices support IPv6. With the help of the computer network environment, various household appliances in the home can be interconnected with the Internet, enriching the fun of family life through the network, making it diversified, intelligent and personalized, and ensuring safe and reliable services. Such as interactive network television (Internet Protocol Television, referred to as IPTV), digital video conversion box (Set Top Box, referred to as STB), XBOX (a home video game console), etc. have now become indispensable entertainment equipment for most families. At present, most of them use IPv4 network environment, while IPv6 has a huge address capacity, which is particularly important for network management. Using IPv6 network environment has become an inevitable trend.
[0003] In the IPv6 network environment, the service requirements of home gateway access devices are different. If the corresponding configuration rules are not made for terminal service differentiation, terminal services will not be available and network congestion will occur. For example, non-IPTV type devices access a large number of on-demand resources and video services, but this is not what the operators of various websites carrying IPTV services want to see. At the same time, the traffic data of non-IPTV services goes through the IPTV network, which will also increase network congestion and transmission delay, giving users a bad experience.
[0004] In the IPv6 network environment, there are many types of terminal devices and the corresponding business scenario requirements are also diverse. How to dynamically identify the terminal business requirements and perform adaptive business configuration so that terminals with different business requirements can access the Internet safely and efficiently has become a problem that needs to be solved urgently. Summary of the invention
[0005] The main purpose of this application is to provide a service configuration method, electronic device and readable storage medium for an IPv6 network, aiming to solve the technical problem of how to dynamically identify terminal service requirements to perform adaptive service configuration so that terminals with different service requirements can access the Internet safely and efficiently.
[0006] To achieve the above object, the present application provides a service configuration method for an IPv6 network, comprising:
[0007] Receiving an IPv6 address request message from a terminal device, wherein the IPv6 address request message includes service type information;
[0008] According to the service type information, determine the WAN connection information corresponding to the service type information, and obtain the target IPv6 address information;
[0009] Establishing a first mapping relationship between the target IPv6 address information and the WAN connection information, and sending the target IPv6 address information to the terminal device;
[0010] After receiving the service message carrying the target IPv6 address information returned by the terminal device, the WAN connection information mapped to the target IPv6 address information is determined according to the first mapping relationship to forward the service message.
[0011] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes: a memory, a processor, and a service configuration program for an IPv6 network stored in the memory and runnable on the processor, wherein the service configuration program for the IPv6 network, when executed by the processor, implements the service configuration method for the IPv6 network as described above.
[0012] In addition, to achieve the above-mentioned purpose, the present application also provides a readable storage medium, which is a computer-readable storage medium, and a service configuration program of the IPv6 network is stored on the computer-readable storage medium. When the service configuration program of the IPv6 network is executed by the processor, the service configuration method of the IPv6 network as described above is implemented.
[0013] The present application proposes a service configuration method for an IPv6 network, an electronic device, and a readable storage medium. In the service configuration method for an IPv6 network, the technical solution of an embodiment of the present application is to receive an IPv6 address request message from a terminal device, the IPv6 address request message including service type information, determine WAN connection information corresponding to the service type information according to the service type information, obtain target IPv6 address information, establish a first mapping relationship between the target IPv6 address information and the WAN connection information, and send the target IPv6 address information to the terminal device. After receiving the service message carrying the target IPv6 address information returned by the terminal device, based on According to the first mapping relationship, the WAN connection information mapped to the target IPv6 address information is determined to forward the service message, so that by identifying the terminal service type in the IPv6 network environment, the specific service of the query message is realized, thereby ensuring network security, making up for the service types for different devices in the IPv6 network environment, and realizing service adaptive configuration, ensuring the network security and reliable service of the terminal devices with different service types or multiple service types in the IPv6 network environment, and thus solving the technical problem of how to dynamically identify terminal service needs to perform adaptive service configuration, so that terminals with different service needs can access the Internet safely and efficiently. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0015] Figure 1 A schematic diagram of a communication system structure provided in an embodiment of the present application;
[0016] Figure 2 This is a flow chart of the first embodiment of the service configuration method for IPv6 network of the present application;
[0017] Figure 3 A schematic diagram of a framework for business configuration of an embodiment of the present application;
[0018] Figure 4 A timing diagram of the service configuration of an embodiment of the present application;
[0019] Figure 5 This is a flow chart of the terminal identification module according to an embodiment of the present application;
[0020] Figure 6 This is a flow chart of the WAN port control module of an embodiment of the present application;
[0021] Figure 7 A flowchart of a business configuration control module according to an embodiment of the present application;
[0022] Figure 8 A schematic diagram of service control forwarding in an embodiment of the present application;
[0023] Fig. 9 This is a schematic diagram of the hardware structure of the electronic device involved in the embodiment of the present application.
[0024] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0025] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0028] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0029] In addition, in this application, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0030] Please refer to Figure 1 , the communication system includes a terminal device 100 and an access network device 200.
[0031] The terminal device 100 refers to various electronic devices that need to access the Internet (referring to connecting to the IPv6 public network), such as computers, laptops, smart phones, tablet computers, smart wearable devices, etc., or other household devices. The terminal device can be connected to the routing device by wired or wireless means, and then communicate with the IPv6 public network. In the embodiment of the present application, the terminal device can be divided into multiple types according to the different operating systems installed in the terminal device, such as a terminal device with an Android operating system installed can be a type of terminal device, a terminal device with a window7 type installed can be a type of terminal device, and a terminal device with an iOS type installed can also be a type of terminal device. Of course, in the embodiment of the present application, the type of operating system installed in the terminal device is not specifically limited. The terminal device may also be installed with a windows10 operating system, or may also be installed with other operating systems such as an operating system derived from native Android. However, no matter what type of operating system is installed on the terminal device, in summary, the degree of support for IPv6 by the terminal device can be roughly divided into three types: one is to support obtaining IPv6 addresses through DHCPv6; the second is to support obtaining IPv6 addresses through IPv6 stateless automatic configuration, that is, through RA; the third is to support obtaining IPv6 addresses through both DHCPv6 and IPv6 stateless automatic configuration.
[0032] The access network device 200 is the execution subject of the service configuration method of the IPv6 network in the embodiment of the present application. The access network device 200 is a routing device or a home gateway that supports the IPv6 protocol stack. It includes a local area network port connected to the terminal device and a wide area network port connected to the gateway, and communicates with the terminal device through the local area network port and communicates with the IPv6 network through the wide area network port. In the embodiment of the present application, the access network device can be used for centralized management of terminal devices, and it has the function of DHCPv6. For example, when the terminal device obtains an IPv6 address through DHCPv6, the access network device can serve as a server of the DHCPv6 protocol, provide DHCPv6 services, and configure an IPv6 address for the terminal device. At this time, the terminal device exists as a client of the DHCPv6 protocol. For another example, when a terminal device obtains an IPv6 address through IPv6 stateless automatic configuration, the access network device can assign prefix information prefix to the terminal device through an RA message, so that the terminal device can generate a unicast IPv6 address based on the prefix information and its own interface information using a random algorithm. Generally speaking, the terminal device's own interface information can be determined based on the terminal device's media access control address (MAC) address.
[0033] It should be noted that although Figure 1 Only one terminal device 100 is shown, but it should be understood that the communication system may include one or more terminal devices, and the access network device 200 may be connected to each terminal device through different local area network ports, which is not specifically limited in this application. Similarly, the communication system may also include multiple access network devices, which is also not limited. In one possible implementation, the access network device may be a customer premises equipment (CPE) or a wireless access point (AP), which is used to enable various types of terminal devices to access the network.
[0034] In the IPv6 network environment, the service requirements of home gateway access devices are different. If the corresponding configuration rules are not made for terminal service differentiation, terminal services will not be available and network congestion will occur. For example, non-IPTV type devices access a large number of on-demand resources and video services, but this is not what the operators of various websites carrying IPTV services want to see. At the same time, the traffic data of non-IPTV services goes through the IPTV network, which will also increase network congestion and transmission delay, giving users a bad experience.
[0035] At present, there are related technologies for allocating IPv6 addresses for different types of devices, but it is particularly important to connect the business needs of devices with the business types of routing gateways, realize intelligent identification of device business needs, and adaptively configure IPv6 network services to ensure network security, service reliability, and provide better user experience and transmission efficiency. The configuration of different business scenarios in the IPv6 network environment, including but not limited to forwarding domain name query requests, traffic data and other security issues, has not been effectively resolved.
[0036] The configuration of different business scenarios in the IPv6 network environment, including but not limited to forwarding domain name query requests, traffic data and other security issues, has not been effectively resolved.
[0037] In the IPv6 network environment, there are many types of terminal devices and the corresponding business scenario requirements are also diverse. How to dynamically identify the terminal business requirements and perform adaptive business configuration so that terminals with different business requirements can access the Internet safely and efficiently has become a problem that needs to be solved urgently.
[0038] Based on this, the embodiment of the present application can provide a method for adaptively configuring services in an IPv6 network for devices of different service types that are accessed. Based on this, the embodiment of the present application provides a method for configuring services in an IPv6 network, referring to Figure 2 , Figure 2 The following is a flow chart of an embodiment of a method for configuring a service in an IPv6 network according to the present application. In this embodiment, the method for configuring a service in an IPv6 network includes:
[0039] Step S10, receiving an IPv6 address request message from a terminal device, wherein the IPv6 address request message includes service type information;
[0040] In this embodiment, the access network device can obtain the service type information included in the IPv6 address request message by receiving the IPv6 address request message from the terminal device. In addition, the IPv6 address request message sent by the above-mentioned terminal device can be a router solicitation message, that is, an RS message. Here, the device type indication information included in the RS message can be the media access control (MAC) address (also called LAN address, Ethernet address, physical address or hardware address) of the terminal device that sends the RS message. It should be understood that the MAC address can be used to uniquely identify a network card in the network, wherein, if a terminal device has one or more network cards, each network card needs and will have a unique MAC address.
[0041] The service type information is used to characterize the service type of the terminal device.
[0042] Step S20, determining WAN (Wide Area Network) connection information corresponding to the service type information according to the service type information, and acquiring target IPv6 address information;
[0043] The WAN connection information may include information such as an IPv6 DNS (Domain Name System) address of the WAN connection, such as an LLA (Link-Local Address) address or a GUA (Global Unicast Address) address, which is not specifically limited in this embodiment.
[0044] In this embodiment, there is a one-to-one mapping relationship between the service type information of the terminal device and the WAN connection information, and different service type information often maps different WAN connection information. For example, if the service type information embodied by the service type identifier is "IPTV", it means that the terminal device may be a STB (Set Top Box) device and needs to go through a service network related to IPTV (Internet Protocol Television). At this time, the mapped WAN connection information is the first WAN connection information. If the service type identifier is "IPTV+Internet", it means that the terminal is an intelligent device and has both IPTV and Internet surfing service needs. At this time, the mapped WAN connection information is the second WAN connection information, so that by dynamically identifying the service type of the terminal device, adaptive service configuration is performed to enable terminals with different service needs to surf the Internet safely and efficiently.
[0045] The mapping relationship may be pre-stored in the system of the access network device, and the mapping relationship may be dynamically configured or dynamically updated, which is not specifically limited in this embodiment. Therefore, this embodiment may determine the WAN connection information corresponding to the service type information based on the mapping relationship.
[0046] Those skilled in the art will appreciate that the target IPv6 address information may be obtained in one of the following ways:
[0047] Obtain the target IPv6 address information through DHCPv6;
[0048] The target IPv6 address information is obtained through IPv6 stateless automatic configuration.
[0049] In some feasible implementations, the access network device can obtain the service type information included in the IPv6 address request message by receiving the IPv6 address request message from the terminal device. Specifically, the IPv6 address request message sent by the above terminal device can be a dynamic host configuration protocol for IPv6 (DHCPv6) request message, i.e., a DHCPv6 solicit message. Wherein, when the terminal device generates the DHCPv6 solicit message, by obtaining the service type information of the terminal device, the service type information can be written into a specified field such as the second field or the third field of the DHCPv6 solicit message. It should be understood that the second field here can be the Option 16 option field in the DHCPv6 solicit message, the third field can be the RS Option option field, and the service type information can be a type identifier filled in the Option 16 option field or the RS Option (i.e., the router request option field) for identifying the service type of the terminal device sending the DHCPv6 solicit message. For example, the type identifier can be a first type identifier, a second type identifier, etc., which is not limited here. Here, each type identifier can be a string composed of numbers, letters or symbols, and one type identifier is used to uniquely mark a service type. In other words, the terminal device and the access network device can agree in advance on the meaning of the service type information written in the second field or the third field. For example, when the terminal device writes the first type identifier as service type information in the second field or the third field, the first type identifier can be set to correspond to the first service type, and when the terminal device writes the second type identifier as service type information in the second field or the third field, the second type identifier can be set to correspond to the second service type. Alternatively, it can also be set that when the terminal device writes the first type identifier as service type information in the second field or the third field, the first type identifier is set to correspond to the second service type, and when the terminal device writes the second type identifier as service type information in the second field or the third field, the second type identifier can be set to correspond to the first service type, etc., without limitation here.
[0050] In some feasible implementations, after the access network device determines the service type of the terminal device, the target IPv6 address information of the terminal device can be determined according to the service type. Here, the target IPv6 address information can be a target IPv6 proxy prefix or a target IPv6 address generated based on the above target IPv6 proxy prefix. It should be understood that the IPv6 proxy prefix included in the IPv6 address information corresponding to terminal devices of different device types is different. For example, assuming that the service type corresponding to terminal device 1 is service type 1, and the service type corresponding to terminal device 2 is service type 2, the IPv6 proxy prefix corresponding to service type 1 can be IPv6 proxy prefix 1, and the IPv6 proxy prefix corresponding to service type 2 can be IPv6 proxy prefix 2.
[0051] It should be noted that the address length of a complete IPv6 address is 128 bits, including a 64-bit proxy prefix and a 64-bit host address. In the embodiment of the present application, if the access network device adopts stateless address autoconfiguration, the target IPv6 address information is the target IPv6 proxy prefix, and if the access network device adopts stateful address autoconfiguration, the target IPv6 address information is the target IPv6 address.
[0052] Specifically, when stateless address autoconfiguration is adopted, the access network device may send the target IPv6 proxy prefix corresponding to the service type to the above-mentioned terminal device, and then the terminal device generates a complete target IPv6 address based on the received target IPv6 proxy prefix. For example, the terminal device may generate a target IPv6 address based on the received target IPv6 proxy prefix and its own MAC address. When stateful address autoconfiguration is adopted, the access network device may pre-set a corresponding address pool for each service type, wherein, when the service type of a terminal device is determined, it can be determined from which address pool the address should be allocated according to the service type. It is not difficult to understand that the above-mentioned address pool is a collection of multiple IPv6 addresses, or it can also be said to be an address range, wherein a certain address pool includes multiple addresses derived from a certain proxy prefix, that is, an address pool includes multiple complete addresses with the same proxy prefix. Specifically, when allocating an address to a terminal device from an address pool, an idle IPv6 address (i.e., an unallocated IPv6 address) can be found from the address pool as the target IPv6 address and sent to the corresponding terminal device, or the address allocation method can also be determined according to the actual application scenario, which is not limited here. In actual applications, if the access network device is CPE (Customer Premise Equipment), the stateless address automatic configuration of the CPE can be implemented by RAdaemon in the CPE, and the stateful address automatic configuration of the CPE can be implemented by DHCP6s in the CPE.
[0053] Step S30, establishing a first mapping relationship between the target IPv6 address information and the WAN connection information, and sending the target IPv6 address information to the terminal device;
[0054] This embodiment establishes a first mapping relationship between the target IPv6 address information and the WAN connection information, and sends the target IPv6 address information to the terminal device, so that after receiving the service message carrying the target IPv6 address information returned by the terminal device, the WAN connection information mapped by the target IPv6 address information is determined according to the first mapping relationship, and the service message is forwarded according to the mapped WAN connection information. As a result, even in an IPv6 network environment, the service types of the terminal are diverse and the corresponding service scenario requirements are also diverse. The embodiment of the present application further connects the service requirements of the terminal device with the service type of the routing gateway, realizes intelligent identification of device service requirements, and adaptively configures IPv6 network services, thereby ensuring network security, ensuring service reliability, and providing a better user experience.
[0055] Step S40: After receiving the service message carrying the target IPv6 address information returned by the terminal device, determine the WAN connection information mapped to the target IPv6 address information according to the first mapping relationship to forward the service message.
[0056] Exemplarily, the target IPv6 address information is a target IPv6 proxy prefix or an IPv6 global unicast address GUA generated based on the target IPv6 proxy prefix.
[0057] It should be noted that although there are relevant technologies for allocating IPv6 addresses to different types of terminal devices, the problem of how to connect the business needs of the devices with the business types of the routing gateways and realize intelligent identification of the business needs of the devices needs to be solved urgently.
[0058] Based on this, the present application proposes a service configuration method, an electronic device and a readable storage medium for an IPv6 network. In the service configuration method for an IPv6 network, a service adaptive configuration method for an IPv6 network is provided for devices of different service types connected thereto. The technical solution of an embodiment of the present application is to receive an IPv6 address request message from a terminal device, wherein the IPv6 address request message includes service type information, determine WAN connection information corresponding to the service type information according to the service type information, obtain target IPv6 address information, establish a first mapping relationship between the target IPv6 address information and the WAN connection information, and send the target IPv6 address information to the terminal device. Upon receiving a message returned by the terminal device carrying the service type information, After receiving the service message of the target IPv6 address information, the WAN connection information mapped to the target IPv6 address information is determined according to the first mapping relationship to forward the service message, so as to realize the specific service of the query message by identifying the terminal service type in the IPv6 network environment, thereby ensuring network security, making up for the service type for different devices in the IPv6 network environment, and realizing the service adaptive configuration, ensuring the network security and reliable service of the terminal devices with different service types or multiple service types in the IPv6 network environment, and then solving the technical problem of how to dynamically identify the terminal service needs to perform adaptive service configuration, so that terminals with different service needs can access the Internet safely and efficiently.
[0059] In an IPv6 network environment, according to the different service requirements of home gateway access devices, the services of the devices cannot be intelligently and securely configured. The embodiment of the present application proposes a method for adaptive service configuration for different service requirements in an IPv6 network environment, which is applicable to IPv6 network devices.
[0060] Further, in order to help understand the technical concept of the embodiment of the present application, a specific embodiment is listed, referring to Figure 3 , Figure 3 This is a schematic diagram of a framework of a service configuration of an embodiment of the present application. In this embodiment, the access network device is a home gateway. The embodiment of the present application includes the following components or modules:
[0061] 1. Terminal identification module, mainly used to identify the service type of the access terminal device;
[0062] 2. The service configuration control module is mainly used to configure relevant services for terminal devices and control the service data of LAN (Local Area Network) port devices and WAN (Wide Area Network) port messages;
[0063] 3. WAN port control module, mainly used to maintain the relevant business index of the gateway's WAN port.
[0064] This embodiment ensures network security by allocating and identifying the terminal service type in the IPv6 network environment and implementing the service of its specific query message. It also describes the configuration and control of terminal services in the IPv6 network environment and how to implement its services, making up for the service types for different devices in the IPv6 network environment and the implementation of service adaptive configuration.
[0065] It should be noted that the above specific embodiments are only used to help understand the technical concept of the embodiments of the present application, and do not constitute a limitation of the present application. More simple transformations based on the technical concept should all be within the scope of protection of the present application.
[0066] In a possible implementation manner, the WAN connection information includes an identification value of a target WAN port corresponding to the service type information, and the step of determining the WAN connection information mapped to the target IPv6 address information to forward the service message includes:
[0067] Step A10, generating a target forwarding routing entry according to the identification value of the target WAN port mapped to the target IPv6 address information;
[0068] Step A20: forwarding the service message to the target GUA address corresponding to the target WAN port through the target forwarding routing entry.
[0069] Among them, each different WAN port often corresponds to a different target GUA address. Therefore, specifically, the target WAN port can be located based on the identification value of the target WAN port (different identification values correspond to different WAN ports), and the connection configuration information corresponding to the target WAN port can be obtained according to the located target WAN port, so as to facilitate forwarding the service message to the target GUA address corresponding to the target WAN port according to the connection configuration information, wherein the connection configuration information may include IPv6 DNS service information, etc., for example, it may include an LLA (Link-Local Address) address or a GUA (Global Unicast Address) address, which is not limited in this embodiment.
[0070] This embodiment generates a target forwarding routing entry according to the identification value of the target WAN port mapped according to the target IPv6 address information, and forwards the service message to the target GUA address corresponding to the target WAN port through the target forwarding routing entry, thereby accurately performing adaptive service configuration based on the service type of the terminal device, making up for the service types of different devices in the IPv6 network environment, and realizing service adaptive configuration, ensuring the network security and reliable service of terminal devices with different service types or multiple service types in the IPv6 network environment.
[0071] In a possible implementation, the method further includes:
[0072] Step B10, dynamically detecting the online state of the terminal device, wherein the online state includes an online state and an offline state;
[0073] Step B20: dynamically maintain the first mapping relationship according to the dynamically detected online status.
[0074] In this embodiment, specifically, when the online state of the terminal device is offline, the information of the terminal device is deleted or disabled from the first mapping relationship, and when the online state of the terminal device is online, the information of the terminal device is restored or enabled from the first mapping relationship.
[0075] This embodiment dynamically detects the online status of the terminal device, where the online status includes an online status and an offline status, and dynamically maintains the first mapping relationship based on the dynamically detected online status, thereby ensuring the network security and reliable service of the terminal devices with different service types or multiple service types in the IPv6 network environment.
[0076] In a possible implementation, the method further includes:
[0077] Step C10, dynamically detecting the communication status of the target WAN port, wherein the communication status includes a connection status and a disconnection status;
[0078] Step C20: dynamically maintain the first mapping relationship according to the dynamically detected communication status.
[0079] In this embodiment, specifically, when the communication state of the target WAN port is disconnected, the information of the target WAN port is deleted or disabled from the first mapping relationship, and when the communication state of the target WAN port is connected, the information of the target WAN port is restored or enabled from the first mapping relationship.
[0080] This embodiment dynamically detects the communication status of the target WAN port, where the communication status includes a connection status and a disconnection status, and dynamically maintains the first mapping relationship based on the dynamically detected communication status, thereby further ensuring the network security and service reliability of terminal devices with different service types or multiple service types in the IPv6 network environment.
[0081] Furthermore, in order to help understand the technical principles of the embodiments of the present application, a specific embodiment is listed, including:
[0082] This embodiment adopts the following technical scheme: when an IPv6 terminal device accesses the network and obtains an IPv6 address from a home gateway device (the home gateway device is an example of an access network device), the terminal device carries the service type of the device through the Option 16 field in the DHCPV6 message or the RS Option field in the RS message. When the device requests to obtain an IPv6 address, it searches for the WAN port information of the corresponding service in the home gateway according to its different service types, and replies the requested global unique address and / or prefix proxy to the IPv6 terminal device. The home gateway device binds the IPv6 address of the terminal device to the WAN port of the corresponding service type, generates a corresponding domain name rule forwarding file with the IPv6 DNS Server information on the WAN port and the IPv6 address of the terminal device, and implements the binding of domain name specific services; configures the forwarding rule entry corresponding to the IPv6 address of the terminal device and the WAN port into the kernel, and implements the forwarding binding of data service messages. For the online and offline of the IPv6 terminal access device, the connection of the home gateway WAN port is disconnected, and dynamic maintenance will be performed to update the relationship table, thereby ensuring the network security and reliable service of the terminal devices with different service types or multiple service types in the IPv6 network environment.
[0083] This embodiment provides a service adaptive configuration method in an IPv6 network environment in view of the different IPv6 addresses allocated to different access devices, the network security, transmission efficiency, and diversity of service requirements of services, etc.
[0084] It should be noted that the above specific embodiments are only used to help understand the technical concept of the embodiments of the present application, and do not constitute a limitation of the present application. More simple transformations based on the technical concept should all be within the scope of protection of the present application.
[0085] In one practicable manner, the method further comprises:
[0086] Step D10, determining the local link address of the terminal device according to the IPv6 address request message;
[0087] In this embodiment, the local link address is the LLA address. The IPv6 address request message carries information of the LLA address.
[0088] Step D20, establishing a second mapping relationship between the local link address and the WAN connection information;
[0089] This embodiment establishes a second mapping relationship between the local link address and the WAN connection information, so that after receiving a service message carrying the local link address returned by the terminal device, the WAN connection information mapped by the local link address is determined according to the second mapping relationship, and the service message is forwarded according to the mapped WAN connection information, so that even in an IPv6 network environment, the service types of the terminal are diverse and the corresponding service scenario requirements are also diverse. The embodiment of the present application further connects the service requirements of the device with the service type of the routing gateway to realize intelligent identification of the service requirements of the device and adaptive configuration of the IPv6 network service, thereby ensuring network security, ensuring service reliability, and providing a better user experience.
[0090] Step D30, after receiving the service message carrying the local link address returned by the terminal device, determining the WAN connection information mapped by the local link address according to the second mapping relationship;
[0091] Step D40: forwarding the service message based on the WAN connection information mapped by the local link address.
[0092] The embodiment of the present application determines the local link address of the terminal device according to the IPv6 address request message after receiving the IPv6 address request message from the terminal device, and establishes a second mapping relationship between the local link address and the WAN connection information; after receiving the service message carrying the local link address returned by the terminal device, determines the WAN connection information mapped by the local link address according to the second mapping relationship, and then forwards the service message based on the WAN connection information mapped by the local link address, thereby identifying the terminal service type in the IPv6 network environment and realizing the specific service of its query message, thereby ensuring network security, making up for the service types for different devices in the IPv6 network environment, and realizing service adaptive configuration, ensuring the network security and reliable service of the terminal devices with different service types or multiple service types in the IPv6 network environment, and thus solving the technical problem of how to dynamically identify terminal service requirements to perform adaptive service configuration.
[0093] In an IPv6 network environment, according to the different service requirements of home gateway access devices, the services of the devices cannot be intelligently and securely configured. The embodiment of the present application proposes a method for adaptive service configuration for different service requirements in an IPv6 network environment, which is applicable to IPv6 network devices.
[0094] Further, as an implementable manner, the WAN connection information includes IPv6 DNS service information of the target WAN port corresponding to the service type information, and the step of forwarding the service message based on the WAN connection information mapped by the local link address includes:
[0095] Step E10, generating a target domain name forwarding rule according to the IPv6 DNS service information of the target WAN port mapped to the target IPv6 address information;
[0096] Step E20: forwarding the service message to the target GUA address corresponding to the target WAN port according to the target domain name forwarding rule.
[0097] In this embodiment, each different WAN port often corresponds to different IPv6 DNS service information. Therefore, specifically, the IPv6 DNS service information corresponding to the target WAN port can be obtained according to the target WAN port, so as to facilitate forwarding the service message to the target GUA address corresponding to the target WAN port according to the IPv6DNS service information, wherein the IPv6 DNS service information can be, for example, a GUA (Global Unicast Address) address.
[0098] This embodiment generates a target domain name forwarding rule by mapping the target WAN port's IPv6 DNS service information according to the target IPv6 address information, and forwards the service message to the target GUA address corresponding to the target WAN port through the target domain name forwarding rule, thereby accurately performing adaptive service configuration based on the service type of the terminal device, making up for the service types of different devices in the IPv6 network environment, and realizing service adaptive configuration, ensuring the network security and reliable service of terminal devices with different service types or multiple service types in the IPv6 network environment.
[0099] As an implementable manner, the method further includes:
[0100] Step F10, dynamically detecting the online state of the terminal device, wherein the online state includes an online state and an offline state;
[0101] Step F20: dynamically maintain the second mapping relationship according to the dynamically detected online status.
[0102] In this embodiment, specifically, when the online state of the terminal device is offline, the relevant information of the terminal device is deleted or disabled from the second mapping relationship, and when the online state of the terminal device is online, the relevant information of the terminal device is restored or enabled from the second mapping relationship.
[0103] This embodiment dynamically detects the online status of the terminal device, where the online status includes an online status and an offline status, and dynamically maintains the second mapping relationship based on the dynamically detected online status, thereby ensuring the network security and reliable service of the terminal devices with different service types or multiple service types in the IPv6 network environment.
[0104] As an implementable manner, the method further includes:
[0105] Step G10, dynamically detecting the communication status of the target WAN port, wherein the communication status includes a connected state and a disconnected state;
[0106] Step G20: dynamically maintain the second mapping relationship according to the dynamically detected communication status.
[0107] In this embodiment, specifically, when the communication status of the target WAN port is disconnected, the relevant information of the target WAN port is deleted or disabled from the second mapping relationship, and when the communication status of the target WAN port is connected, the relevant information of the target WAN port is restored or enabled from the second mapping relationship.
[0108] This embodiment dynamically detects the communication status of the target WAN port, where the communication status includes a connection status and a disconnection status, and dynamically maintains the second mapping relationship based on the dynamically detected communication status, thereby further ensuring the network security and service reliability of terminal devices with different service types or multiple service types in the IPv6 network environment.
[0109] Further, in order to help understand the technical concept of the embodiment of the present application, a specific embodiment is listed, referring to Figure 4 , Figure 4 A timing diagram of the service configuration of an embodiment of the present application, including:
[0110] Step 201: The terminal device accesses the IPv6 network environment, starts a stateless address acquisition mode or a stateful address acquisition mode, the message carries the service type information required by the terminal, and the terminal identification module identifies the current service type; a relationship table (i.e., a second mapping relationship) is generated between the local link address of the terminal device and the service type;
[0111] Step 202: The network services of each WAN port in the home gateway start to go online, and the WAN port control module generates a relationship table between WAN connection information and service type according to its service type (i.e., determines the WAN connection information corresponding to the service type information according to the service type information);
[0112] Step 203: The service configuration control module starts to process the IPv6 address acquisition interaction message sent by the terminal device, and obtains the WAN connection information of the corresponding service type according to the relationship table of step 202;
[0113] Step 204: after receiving the query, the WAN port control module queries the WAN connection configuration information corresponding to the service type (i.e. the above-mentioned WAN connection information), and generates a globally unique address GUA and / or prefix proxy requested by the access terminal device;
[0114] Step 205: The service configuration module maps the relationship tables generated in step 201 and step 202, configures the IPv6 DNS domain name rule forwarding file of the terminal device; generates corresponding forwarding configuration rules for the terminal IPv6 local link address and the WAN port of the corresponding service type;
[0115] Step 206: The terminal receives the IPv6 globally unique address GUA and / or prefix proxy through the reply message from the home gateway, and the address configuration is completed;
[0116] Step 207: The terminal starts to perform corresponding services in the IPv6 network, and sends a message to the service configuration control module;
[0117] Step 208: The service configuration control module queries the forwarding routing entry or DNS domain name forwarding rule file of the specific service according to the IPv6 address of the terminal, and sends it to the corresponding service network from the corresponding IPv6 type WAN port;
[0118] Step 209: Downlink service message is connected to the service configuration control module via the IPv6 type WAN;
[0119] Step 210: The service configuration control module queries the configured services, and then forwards the downlink service message to the corresponding terminal device to implement different services of the terminal IPv6 network.
[0120] It should be noted that the above specific embodiments are only used to help understand the technical concept of the embodiments of the present application, and do not constitute a limitation of the present application. More simple transformations based on the technical concept should all be within the scope of protection of the present application.
[0121] In a possible implementation, the method further includes:
[0122] Step H10, determining the LAN (Local Area Network) side port number to which the terminal device is connected according to the IPv6 address request message;
[0123] The IPv6 address request message carries information about the LAN side port number.
[0124] Step H20, establishing a third mapping relationship between the LAN side port number and the WAN connection information;
[0125] This embodiment establishes a third mapping relationship between the LAN side port number and the WAN connection information, so that after subsequently receiving the service message sent by the terminal device based on the LAN side port number, the WAN connection information mapped by the LAN side port number is determined according to the third mapping relationship, and the service message is forwarded according to the mapped WAN connection information, so that even in the IPv6 network environment, the service types of the terminal are diverse and the corresponding business scenario requirements are also diverse. The embodiment of the present application further connects the business requirements of the device with the business type of the routing gateway, realizes intelligent identification of the device business requirements, and adaptively configures IPv6 network services, thereby ensuring network security, ensuring service reliability, and providing a better user experience.
[0126] Step H30, after receiving the service message sent by the terminal device based on the LAN side port number, determine the WAN connection information mapped by the LAN side port number according to the third mapping relationship;
[0127] Step H40, forwarding the service message based on the WAN connection information mapped by the LAN side port number.
[0128] Exemplarily, the WAN connection information includes the port number of the target WAN port corresponding to the service type information, and the step of forwarding the service message based on the WAN connection information mapped by the LAN side port number includes:
[0129] Step I10, forwarding the service message to the service network corresponding to the target WAN port according to the port number of the target WAN port mapped by the LAN side port number.
[0130] The embodiment of the present application determines the LAN side port number to which the terminal device is connected according to the IPv6 address request message after receiving the IPv6 address request message from the terminal device, and establishes a third mapping relationship between the LAN side port number and the WAN connection information; after receiving the service message sent by the terminal device based on the LAN side port number, determines the WAN connection information mapped by the LAN side port number according to the third mapping relationship, and then forwards the service message based on the WAN connection information mapped by the LAN side port number, so that the embodiment of the present application can not only bind the service according to the IPv6 address of the terminal device, but also bind the service by identifying the LAN side port number corresponding to the terminal device, that is, after identifying the device type under the port, the port is bound to a specific port service, so that the devices under the port can all go out from the designated service WAN port to realize the configuration of the service, thereby making up for the implementation of service adaptive configuration for the service types of different devices in the IPv6 network environment.
[0131] In an IPv6 network environment, according to the different service requirements of home gateway access devices, the services of the devices cannot be intelligently and securely configured. The embodiment of the present application proposes a method for adaptive service configuration for different service requirements in an IPv6 network environment, which is applicable to IPv6 network devices.
[0132] In order to help understand the technical principles of the embodiments of the present application, a service configuration method for an IPv6 network of a specific embodiment is listed, referring to Figure 6 , Figure 6 This is a flow chart of the WAN port control module of the embodiment of the present application, combined with Figure 6 Explain the specific implementation steps:
[0133] Step 401: The home gateway device starts a WAN connection and requests an IPv6 globally unique address and (or) prefix proxy. Only with the prefix can the corresponding IPv6 address be allocated to the access terminal device.
[0134] Step 402: The service network replies to the gateway according to the request, and the WAN connection IPv6 address interaction is completed, and the globally unique address, IPv6 DNS Server, prefix proxy and other related information of the corresponding service network are obtained;
[0135] Step 403: The WAN port control module generates a relationship table with the WAN connection ID and its service type; the online and offline of the WAN connection will be notified to the control module to update and maintain the relationship table. The corresponding routing rules, domain name information, and IPv6 GUA address can be found through the WAN port number;
[0136] Step 404: The WAN port control module notifies the service configuration control module of the configuration information corresponding to its WAN connection, and waits for control by the service configuration module.
[0137] It should be noted that the above specific embodiments are only used to help understand the technical concept of the embodiments of the present application, and do not constitute a limitation of the present application. More simple transformations based on the technical concept should all be within the scope of protection of the present application.
[0138] In some embodiments, the method further comprises:
[0139] Step J10, dynamically detecting the online state of the terminal device, wherein the online state includes an online state and an offline state;
[0140] Step J20: dynamically maintain the third mapping relationship according to the dynamically detected online status.
[0141] In this embodiment, specifically, when the online state of the terminal device is offline, the relevant information of the terminal device is deleted or disabled from the third mapping relationship, and when the online state of the terminal device is online, the relevant information of the terminal device is restored or enabled from the third mapping relationship.
[0142] This embodiment dynamically detects the online status of the terminal device, where the online status includes an online status and an offline status, and dynamically maintains the third mapping relationship based on the dynamically detected online status, thereby ensuring the network security and reliable service of the terminal devices with different service types or multiple service types in the IPv6 network environment.
[0143] In some embodiments, the method further comprises:
[0144] Step K10, dynamically detecting the communication status of the target WAN port, wherein the communication status includes a connection status and a disconnection status;
[0145] Step K20: dynamically maintain the third mapping relationship according to the dynamically detected communication status.
[0146] In this embodiment, specifically, when the communication status of the target WAN port is a disconnected state, the relevant information of the target WAN port is deleted or disabled from the third mapping relationship, and when the communication status of the target WAN port is a connected state, the relevant information of the target WAN port is restored or enabled from the third mapping relationship.
[0147] This embodiment dynamically detects the communication status of the target WAN port, where the communication status includes a connection status and a disconnection status, and dynamically maintains the third mapping relationship based on the dynamically detected communication status, thereby further ensuring the network security and service reliability of terminal devices with different service types or multiple service types in the IPv6 network environment.
[0148] Further, after the step of forwarding the service message to the service network corresponding to the target WAN port, it also includes:
[0149] Step L10, receiving a service response message returned by the service network in response to the service message;
[0150] Step L20, forwarding the service response message to the terminal device.
[0151] This embodiment implements service response to the terminal device by receiving a service response message returned by the service network in response to the service message, and forwarding the service response message to the terminal device, thereby ensuring network security and reliable services for terminal devices with different service types or multiple service types in the IPv6 network environment.
[0152] In order to help understand the technical principles of the embodiments of the present application, a service configuration method for an IPv6 network of a specific embodiment is listed, referring to Figure 5 , Figure 5 This is a flow chart of the terminal identification module of the embodiment of the present application. The terminal device takes the stateful address acquisition method as an example, obtains the IPv6 address (globally unique address) through the DHCPV6 method, and combines Figure 5 Explain the specific implementation steps:
[0153] Step 301: The terminal device starts DHCPv6 interaction to obtain an IPv6 address, sends a DHCPv6 Solicit message to the home gateway and carries Option16 information, requesting a globally unique address and (or) prefix proxy; as shown in the figure, the Vendor Class is the hexadecimal of the specific Option16 message, and the hexadecimal value of the Value "49 50 5456" is converted into the corresponding string "IPTV" by parsing, thereby identifying the service type of the device. The Option value is generally agreed upon with the manufacturer;
[0154] If the terminal obtains a stateless address through RS message interaction, the RS Option field in the RS message can carry the service type identification flag agreed upon by the manufacturer, that is, the service is identified by parsing the hexadecimal value after Reserved in the RS message;
[0155] Step 302: The terminal identification module parses the service requirement flag carried in Option 16 to parse out the service type required by the terminal device. For example, if the flag is "IPTV", it means that the terminal device may be an STB device and needs to use an IPTV-related service network; if the flag is "IPTV+Internet", it means that the terminal is an intelligent device and has both IPTV and Internet service requirements.
[0156] The terminal identification module records the IPv6 local link address of the terminal device and generates a new relationship table. The IPv6 local link address here can also be the LAN side port number to which the terminal is connected;
[0157] Step 303: The relationship table generated in step 302 is sent to the service configuration control module;
[0158] Step 304: The service configuration control module searches for the corresponding WAN port information and replies to the device with an Advertise message, which carries the requested IPv6 globally unique address GUA and / or prefix proxy. The prefix and GUA address are obtained or generated by searching for the corresponding service's WAN port information.
[0159] The above-mentioned specific embodiments are only used to help understand the technical concept of the embodiments of the present application, and do not constitute a limitation of the present application. More simple transformations based on the technical concept should all be within the scope of protection of the present application.
[0160] In order to help understand the technical concept of the embodiment of the present application, a service configuration method of an IPv6 network of a specific embodiment is listed, referring to Figure 7 , Figure 7 This is a flow chart of the business configuration control module of the embodiment of the present application, combined with Figure 7 Explain the specific implementation steps:
[0161] Step 501: The service configuration control module generates a new relationship mapping table according to the relationship table of step 303 and step 403, and matches the LAN side terminal device with the WAN port connection;
[0162] Step 502: The service configuration module establishes a firewall rule chain with the IPv6 globally unique address GUA requested by the terminal and the mark value of the corresponding WAN port according to the new relationship table described in step 501. The message matching the rule chain can be normally sent out through the WAN port of the corresponding service, which is more secure and reliable.
[0163] Step 503: According to the new relationship table described in step 501, the DNS module queries the IPv6 DNS SERVER information corresponding to the corresponding WAN port, and generates a DNS domain name forwarding rule file with the IPv6 local link address of the terminal to ensure that the IPv6 domain name query message of the terminal goes out from the specific service channel.
[0164] Step 504: The service configuration is completed, and the globally unique address or prefix requested by the terminal is replied to the terminal device.
[0165] It should be noted that the above specific embodiments are only used to help understand the technical concept of the embodiments of the present application, and do not constitute a limitation of the present application. More simple transformations based on the technical concept should all be within the scope of protection of the present application.
[0166] In order to further help understand the technical concept of the embodiment of the present application, a service configuration method of an IPv6 network of a specific embodiment is listed, referring to Figure 8 , Figure 8 This is a schematic diagram of service control forwarding in an embodiment of the present application, combined with Figure 8 Explain the specific implementation steps:
[0167] If the terminal device is a set-top box (STB), STB will access the domain name related to the IPTV service, and forward the query message to the home gateway (an instance of an access network device). The original terminal's IPv6 local link address (LLA) has been bound in the DNS domain name forwarding file, so it is easy to find the corresponding WAN port's IPv6 DNS SERVER address and forward it. You can also add a specific domain name query relationship to the domain name forwarding rule file, such as adding a domain name prefix matching rule. When the prefix of the domain name queried by the terminal device is not in the pre-configured DNS forwarding rule file, it will go out from the default WAN port's IPv6 DNS Server address. If it is, it will go out from the specified WAN port's IPv6 DNS Server address.
[0168] If the data message of the set-top box device needs to go to the specified service, the routing iptables rule chain is matched through the terminal device's IPv6 globally unique address GUA, and the mark value of the rule chain corresponding to the terminal device is found. The mark value here is obtained by querying the WAN port of the corresponding service in the Wan port control module, and then the GUA address on the WAN port is found, and the GUA address of the LAN port terminal and the GUA address of the WAN port are mapped to form a mapping rule to forward the corresponding service message.
[0169] The above uses the IPv6 address of the terminal as the binding service. Alternatively, we can also record the LAN port number of the terminal device and identify the terminal device type under the port through the terminal identification module. Bind the LAN port of the terminal to the WAN connection of the corresponding service, that is, port binding, and all services on this port can be connected through a specific WAN.
[0170] It should be noted that what is disclosed above is only a preferred embodiment of the present application, and it certainly cannot be used to limit the protection scope of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiment and the equivalent changes made according to the claims of the present invention are still within the scope covered by the present application.
[0171] That is to say, the above specific embodiments are only used to help understand the technical concept of the embodiments of the present application, and do not constitute a limitation of the present application. More simple transformations based on the technical concept should all be within the scope of protection of the present application.
[0172] In addition, an embodiment of the present application also provides an electronic device, which may be, for example, an edge router, or a broadband remote access server (Broadband Remote Access Server, BRAS), a broadband network gateway (Broadband Network Gateway), a serving GPRS support node (Serving GPRS Support Node, SGSN), a gateway GPRS support node (Gateway GPRS Support Node, GGSN), a mobility management entity (Mobility Management Entity, MME) or a serving gateway (Serving GateWay, S-GW), etc.
[0173] Reference Fig. 9 , Fig. 9 The hardware structure diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Fig. 9As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0174] Those skilled in the art will understand that Fig. 9 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Fig. 9 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a service configuration program for an IPv6 network.
[0175] exist Fig. 9 In the electronic device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in this embodiment can be set in the communication device, and the communication device calls the service configuration program of the IPv6 network stored in the memory 1005 through the processor 1001, and executes the service configuration method applied to the IPv6 network provided in any of the above embodiments.
[0176] The terminal proposed in this embodiment and the service configuration method applied to the IPv6 network proposed in the above embodiment belong to the same inventive concept. The technical details not described in detail in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the service configuration method of the IPv6 network.
[0177] In addition, an embodiment of the present application also proposes a storage medium, which is a computer storage medium. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a service configuration program for an IPv6 network. When the service configuration program for the IPv6 network is executed by a processor, the service configuration method for the IPv6 network of the present application as described above is implemented.
[0178] The various embodiments of the electronic device and computer-readable storage medium of the present application can all refer to the various embodiments of the service configuration method of the IPv6 network of the present application, and will not be repeated here.
[0179] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0180] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0181] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling an electronic device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0182] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A service configuration method for an IPv6 network, It is characterized in that include: Receiving an IPv6 address request message from a terminal device, wherein the IPv6 address request message includes service type information; According to the service type information, determine the WAN connection information corresponding to the service type information, and obtain the target IPv6 address information; Establishing a first mapping relationship between the target IPv6 address information and the WAN connection information, and sending the target IPv6 address information to the terminal device; After receiving the service message carrying the target IPv6 address information returned by the terminal device, the WAN connection information mapped to the target IPv6 address information is determined according to the first mapping relationship to forward the service message.
2. The service configuration method of an IPv6 network according to claim 1, It is characterized in that The WAN connection information includes an identification value of a target WAN port corresponding to the service type information, and the step of determining the WAN connection information mapped to the target IPv6 address information to forward the service message includes: Generate a target forwarding routing entry according to the identification value of the target WAN port mapped to the target IPv6 address information; The service message is forwarded to the target GUA address corresponding to the target WAN port through the target forwarding routing entry.
3. The service configuration method of the IPv6 network according to claim 1, It is characterized in that The method further comprises: Dynamically detecting the online state of the terminal device, wherein the online state includes an online state and an offline state; The first mapping relationship is dynamically maintained according to the dynamically detected online status.
4. The service configuration method of an IPv6 network according to claim 1, It is characterized in that The method further comprises: Dynamically detecting the communication status of the target WAN port, wherein the communication status includes a connected state and a disconnected state; The first mapping relationship is dynamically maintained according to the dynamically detected communication status.
5. The service configuration method of the IPv6 network according to claim 1, It is characterized in that The method further comprises: Determine the local link address of the terminal device according to the IPv6 address request message; Establishing a second mapping relationship between the local link address and the WAN connection information; After receiving the service message carrying the local link address returned by the terminal device, determining the WAN connection information mapped by the local link address according to the second mapping relationship; The service message is forwarded based on the WAN connection information mapped by the local link address.
6. The service configuration method of the IPv6 network as claimed in claim 5, It is characterized in that The WAN connection information includes the IPv6 DNS service information of the target WAN port corresponding to the service type information, and the step of forwarding the service message based on the WAN connection information mapped by the local link address includes: Generate a target domain name forwarding rule according to the IPv6 DNS service information of the target WAN port mapped by the target IPv6 address information; The service message is forwarded to the target GUA address corresponding to the target WAN port through the target domain name forwarding rule.
7. The service configuration method of the IPv6 network according to claim 5, It is characterized in that The method further comprises: Dynamically detecting the online state of the terminal device, wherein the online state includes an online state and an offline state; The second mapping relationship is dynamically maintained according to the dynamically detected online state.
8. The service configuration method of an IPv6 network as claimed in claim 5, It is characterized in that The method further comprises: Dynamically detecting the communication status of the target WAN port, wherein the communication status includes a connected state and a disconnected state; The second mapping relationship is dynamically maintained according to the dynamically detected communication status.
9. The service configuration method of an IPv6 network according to claim 1, It is characterized in that The method further comprises: Determine the LAN side port number to which the terminal device is accessed according to the IPv6 address request message; Establishing a third mapping relationship between the LAN side port number and the WAN connection information; After receiving the service message sent by the terminal device based on the LAN side port number, determining the WAN connection information mapped by the LAN side port number according to the third mapping relationship; The service message is forwarded based on the WAN connection information mapped by the LAN side port number.
10. The service configuration method of the IPv6 network according to claim 9, It is characterized in that The WAN connection information includes the port number of the target WAN port corresponding to the service type information, and the step of forwarding the service message based on the WAN connection information mapped by the LAN side port number includes: According to the port number of the target WAN port mapped by the LAN side port number, the service message is forwarded to the service network corresponding to the target WAN port.
11. The service configuration method of an IPv6 network according to claim 9, It is characterized in that The method further comprises: Dynamically detecting the online state of the terminal device, wherein the online state includes an online state and an offline state; The third mapping relationship is dynamically maintained according to the dynamically detected online status.
12. The service configuration method of the IPv6 network according to claim 10, It is characterized in that After the step of forwarding the service message to the service network corresponding to the target WAN port, the method further includes: receiving a service response message returned by the service network in response to the service message; The service response message is forwarded to the terminal device.
13. The service configuration method of an IPv6 network according to any one of claims 1 to 12, It is characterized in that The target IPv6 address information is a target IPv6 proxy prefix or an IPv6 global unicast address GUA generated based on the target IPv6 proxy prefix.
14. An electronic device, It is characterized in that include: A memory, a processor, and an IPv6 network service configuration program stored in the memory and executable on the processor, wherein the IPv6 network service configuration program, when executed by the processor, implements the IPv6 network service configuration method according to any one of claims 1 to 13.
15. A readable storage medium, It is characterized in that The readable storage medium is a computer-readable storage medium, on which a service configuration program for an IPv6 network is stored. When the service configuration program for an IPv6 network is executed by a processor, the service configuration method for an IPv6 network as described in any one of claims 1 to 13 is implemented.
Citation Information
Cited By
IPv6 address generation method and apparatus, and electronic device
CN120567833A