Service configuration method for ipv6 network, electronic device and readable storage medium

By identifying the service type of the terminal device in an IPv6 network environment and establishing a mapping relationship between WAN connection and IPv6 address, the problem of improper service configuration of the terminal device is solved, and the reliability and security of the terminal device is achieved safe and efficient Internet access and network reliability and security.

WO2025119018A1PCT designated stage expired Publication Date: 2025-06-12ZTE CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/134181
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-04
Filing Date
2024-11-25
Publication Date
2025-06-12

AI Technical Summary

Technical Problem

In the IPv6 network environment, the service types of terminal devices are diverse, and it is difficult for the existing technology to dynamically identify terminal service needs, resulting in improper business configuration, resulting in problems such as terminal service blockage and network congestion.

Method used

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 to realize adaptive forwarding of the service message.

Benefits of technology

It realizes intelligent identification and adaptive service configuration of terminal devices of different service types in the IPv6 network environment, ensures network security, service reliability and user experience, and reduces network congestion and transmission delay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024134181_12062025_PF_FP_ABST
    Figure CN2024134181_12062025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications, and discloses a service configuration method for an IPv6 network, an electronic device and a readable storage medium. The method comprises: receiving an IPv6 address request message from a terminal device, wherein the IPv6 address request message comprises service type information; on the basis of the service type information, determining WAN connection information corresponding to the service type information, and obtaining 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; and on the basis of the first mapping relationship, determining the WAN connection information mapped to the target IPv6 address information for forwarding a service message.
Need to check novelty before this filing date? Find Prior Art

Description

IPv6 network service configuration method, electronic device, and readable storage medium

[0001] Cross-references

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on December 4, 2023, with application number 202311656724.7 and invention name “Service configuration method, electronic device and readable storage medium for IPv6 network”. The entire contents of the application are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of communication technology, and in particular to a service configuration method, electronic device, and readable storage medium for an IPv6 network. Background Art

[0004] With the rapid development of the Internet, Internet Protocol version 6 (IPv6) technology is becoming increasingly mature, and an increasing number of access networks and devices support IPv6. Leveraging computer networking, various household appliances can be connected to the Internet, enriching family life through the Internet, making it more diverse, intelligent, and personalized, while also ensuring secure and reliable services. Entertainment devices such as interactive Internet Protocol Television (IPTV), digital set-top boxes (STBs), and XBOX (a home video game console) have become essential in most households. Currently, most networks use Internet Protocol version 4 (IPv4), but IPv6's enormous address capacity makes it particularly important for network management, making the use of IPv6 networks an inevitable trend.

[0005] In an IPv6 network environment, home gateway access devices have different service requirements. Failure to configure rules to differentiate terminal services can lead to service interruptions and network congestion. For example, non-IPTV devices access a vast array of on-demand resources and video services, but this is not desirable for operators of websites carrying IPTV services. Furthermore, having non-IPTV service traffic flow through the IPTV network can increase network congestion and transmission delays, resulting in a poor user experience.

[0006] In the IPv6 network environment, terminal device types are diverse, and the corresponding business scenario requirements are also diverse. How to dynamically identify terminal business requirements and perform adaptive business configuration so that terminals with different business requirements can access the Internet safely and efficiently has become an urgent problem to be solved. Summary of the Invention

[0007] The main purpose of this application is to provide a service configuration method for an IPv6 network, an electronic device, and a readable storage medium.

[0008] To achieve the above-mentioned objectives, the present application provides a service configuration method for an IPv6 network, comprising: receiving an IPv6 address request message from a terminal device, the IPv6 address request message including service type information; determining, based on the service type information, WAN connection information corresponding to the service type information, and obtaining 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 a service message returned by the terminal device and carrying the target IPv6 address information, determining, based on the first mapping relationship, the WAN connection information mapped to the target IPv6 address information to forward the service message.

[0009] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes: a memory, a processor, and an IPv6 network service configuration program stored on the memory and runnable on the processor. When the IPv6 network service configuration program is executed by the processor, the IPv6 network service configuration method as described above is implemented.

[0010] 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 the computer-readable storage medium stores a service configuration program for the IPv6 network. When the service configuration program for the IPv6 network is executed by the processor, the service configuration method for the IPv6 network as described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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.

[0012] FIG1 is a schematic diagram of a communication system structure provided in an embodiment of the present application;

[0013] FIG2 is a flow chart of a first embodiment of a method for configuring services in an IPv6 network according to the present invention;

[0014] FIG3 is a schematic diagram of a service configuration framework according to an embodiment of the present application;

[0015] FIG4 is a timing diagram of service configuration according to an embodiment of the present application;

[0016] FIG5 is a schematic diagram of a process flow of a terminal identification module according to an embodiment of the present application;

[0017] FIG6 is a flow chart of a WAN port control module according to an embodiment of the present application;

[0018] FIG7 is a flow chart of a service configuration control module according to an embodiment of the present application;

[0019] FIG8 is a schematic diagram of service control forwarding according to an embodiment of the present application;

[0020] FIG9 is a schematic diagram of the hardware structure of the electronic device involved in the embodiment of the present application.

[0021] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0022] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.

[0023] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0024] 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 various components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0025] In this application, unless otherwise specified or limited, the terms "connection" and "fixation" should be understood in a broad sense. For example, "fixation" can mean fixed connection, detachable connection, or integration; mechanical connection or electrical connection; direct connection or indirect connection through an intermediate medium; internal communication between two elements or interaction between two elements, unless otherwise specified. For those skilled in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0026] In addition, the descriptions of "first", "second", etc. in this application are for descriptive purposes only and should not be understood as indicating or implying their relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but this must be based on the fact that they can be implemented by ordinary technicians in this field. 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.

[0027] Referring to FIG. 1 , the communication system includes a terminal device 100 and an access network device 200 .

[0028] 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, or other household devices. The terminal device can be connected to the routing device via a wired or wireless method, and then communicate with the IPv6 public network. In the embodiment of the present application, the terminal devices can be divided into multiple types according to the different operating systems installed in the terminal devices. For example, a terminal device with an Android operating system can be a type of terminal device, a terminal device with a window7 type can be a type of terminal device, and a terminal device with an iOS type 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 Windows 10 operating system, or may also be installed with other operating systems such as an operating system derived from native Android. However, regardless of the type of operating system installed on the terminal device, the degree of IPv6 support of the terminal device can be roughly divided into three types: one is to support obtaining IPv6 addresses through the Dynamic Host Configuration Protocol for IPv6 (DHCPv6); the second is to support obtaining IPv6 addresses through IPv6 stateless automatic configuration, that is, through Router Advertisement (RA); the third is to support obtaining IPv6 addresses through both DHCPv6 and IPv6 stateless automatic configuration.

[0029] Access network device 200, the execution subject of the service configuration method for the IPv6 network in the embodiment of the present application, is a routing device or 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 accordingly 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 to centrally manage terminal devices, and it has DHCPv6 functionality. For example, when a 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 to the terminal device through an RA message, so that the terminal device can generate a unicast IPv6 address using a random algorithm based on the prefix information and its own interface information. Generally speaking, the terminal device's own interface information can be determined based on the terminal device's media access control address (MAC) address.

[0030] It should be noted that although only one terminal device 100 is shown in FIG1 , 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, and this application does not specifically limit this. 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 customer premises equipment (CPE) or a wireless access point (AP), which is used to enable various types of terminal devices to access the network.

[0031] In an IPv6 network environment, home gateway access devices have different service requirements. Failure to configure rules to differentiate terminal services can lead to service interruptions and network congestion. For example, non-IPTV devices access a vast array of on-demand resources and video services, but this is not desirable for operators of websites carrying IPTV services. Furthermore, having non-IPTV service traffic flow through the IPTV network can increase network congestion and transmission delays, resulting in a poor user experience.

[0032] Currently, there are technologies for allocating IPv6 addresses to different types of devices. However, it is crucial to integrate the service requirements of these devices with the service types of routing gateways, enabling intelligent identification of these requirements and adaptive configuration of IPv6 network services to ensure network security, service reliability, and a better user experience and transmission efficiency. Security issues related to configuring various service scenarios in IPv6 networks, including but not limited to forwarding domain name query requests and traffic data, have yet to be effectively addressed.

[0033] 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.

[0034] In the IPv6 network environment, terminal device types are diverse, and the corresponding business scenario requirements are also diverse. How to dynamically identify terminal business needs and perform adaptive business configuration so that terminals with different business needs can access the Internet safely and efficiently has become an urgent problem to be solved.

[0035] Based on this, the embodiments of the present application can provide a method for adaptively configuring services on an IPv6 network for devices of different service types. Based on this, the embodiments of the present application provide a method for configuring services on an IPv6 network. Referring to FIG2 , FIG2 is a flow chart of a first embodiment of the method for configuring services on an IPv6 network of the present application. In this embodiment, the method for configuring services on an IPv6 network includes the following steps.

[0036] Step S10: Receive an IPv6 address request message from a terminal device, wherein the IPv6 address request message includes service type information.

[0037] 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 (RS message). Here, the device type indication information included in the RS message can be the media access control (MAC) address (also known as the 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.

[0038] The service type information is used to represent the service type of the terminal device.

[0039] Step S20: Determine WAN (Wide Area Network) connection information corresponding to the service type information according to the service type information, and obtain target IPv6 address information.

[0040] The WAN connection information may include information such as the IPv6 DNS (Domain Name System) address of the WAN connection, for example, an LLA (Link-Local Address) address or a GUA (Global Unicast Address) address, which is not specifically limited in this embodiment.

[0041] 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 to different WAN connection information. For example, if the service type information reflected by the service type identifier is "IPTV", it means that the terminal device may be a STB (Set Top Box) device and needs to use the service network related to IPTV (Internet Protocol Television). In this case, 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 a smart device that has both IPTV and Internet access service needs. In this case, the mapped WAN connection information is the second WAN connection information. By dynamically identifying the service type of the terminal device, adaptive service configuration is performed to enable terminals with different service needs to access the Internet safely and efficiently.

[0042] The mapping relationship may be pre-stored in the system of the access network device, and the mapping relationship may be dynamically configured or 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.

[0043] Those skilled in the art will appreciate that the target IPv6 address information may be obtained in one of the following ways: obtaining the target IPv6 address information through DHCPv6; or obtaining the target IPv6 address information through IPv6 stateless autoconfiguration.

[0044] In some feasible implementations, the access network device may obtain the service type information included in the IPv6 address request message by receiving an IPv6 address request message from a terminal device. Specifically, the IPv6 address request message sent by the terminal device may be a Dynamic Host Configuration Protocol for IPv6 (DHCPv6) request message, i.e., a DHCPv6 solicit message. When generating the DHCPv6 solicit message, the terminal device may obtain the service type information of the terminal device and write the service type information into a designated field, such as the second field or the third field, of the DHCPv6 solicit message. It should be understood that the second field herein may be the Option 16 option field in the DHCPv6 solicit message, the third field may be the RS Option option field, and the service type information may be a type identifier entered in the Option 16 option field or the RS Option (i.e., the router solicitation option field) to identify the service type of the terminal device sending the DHCPv6 solicit message. For example, the type identifier may be a first type identifier, a second type identifier, etc., without limitation herein. Here, each type identifier can be a string consisting 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 can be 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, and so on. There is no limitation here.

[0045] In some feasible implementations, after the access network device determines the service type of the terminal device, it can determine the target IPv6 address information of the terminal device based on 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, then 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.

[0046] It should be noted that the address length of a complete IPv6 address is 128 bits, which includes 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. If the access network device adopts stateful address autoconfiguration, the target IPv6 address information is the target IPv6 address.

[0047] Specifically, when stateless address auto-configuration 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 may generate 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 auto-configuration 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 based on 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 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 unassigned IPv6 address) can be found from the address pool and used as the target IPv6 address and sent to the corresponding terminal device. Alternatively, the address allocation method can be determined based on the actual application scenario and is not limited here. In actual applications, if the access network device is CPE (Customer Premise Equipment), the CPE's stateless address autoconfiguration can be implemented by the RA daemon in the CPE, while the CPE's stateful address autoconfiguration can be implemented by DHCPv6 in the CPE.

[0048] Step S30: 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.

[0049] 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 subsequently 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, 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.

[0050] 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.

[0051] 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.

[0052] It should be noted that although there are currently 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 gateway and realize intelligent identification of the business needs of the devices needs to be solved urgently.

[0053] Based on this, the present application proposes a service configuration method, electronic device and readable storage medium of an IPv6 network. In the service configuration method of an IPv6 network, a service adaptive configuration method of 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. After receiving the IPv6 address information returned by the terminal device, the target IPv6 address information is sent to the terminal device. 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, thereby realizing 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 types of different devices in the IPv6 network environment, and realizing the 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, and thus solving the technical problem of how to dynamically identify terminal service needs and perform adaptive service configuration, so that terminals with different service needs can access the Internet safely and efficiently.

[0054] In an IPv6 network environment, the embodiments of the present application aim to provide a method for adaptively configuring services based on different service requirements of home gateway access devices, which may result in the inability to intelligently and securely configure services. The method is applicable to IPv6 network devices.

[0055] Furthermore, in order to help understand the technical concept of the embodiment of the present application, a specific embodiment is listed, with reference to Figure 3, which is a framework diagram of the service configuration of the embodiment of the present application. In this embodiment, the access network device is a home gateway, and the embodiment of the present application includes the following components or modules: 1. Terminal identification module, mainly used to identify the service type of the access terminal device; 2. Service configuration control module, mainly used to configure relevant services for the terminal device, and control the service data of the LAN (Local Area Network) port device and the WAN (Wide Area Network) port message; 3. WAN port control module, mainly used to maintain the relevant service index of the gateway's WAN port.

[0056] This embodiment ensures network security by separately identifying the terminal service types in the IPv6 network environment and implementing the services of its specific query messages. 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 of different devices in the IPv6 network environment and the implementation of service adaptive configuration.

[0057] It should be noted that the above specific embodiments are only used to help understand the technical concept of the embodiments of this application and do not constitute a limitation of this application. More simple transformations based on the technical concept should all be within the scope of protection of this application.

[0058] In one possible implementation, 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: step A10, generating a target forwarding routing entry based on the identification value of the target WAN port mapped to the target IPv6 address information; and step A20, forwarding the service message to the target GUA address corresponding to the target WAN port through the target forwarding routing entry.

[0059] 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. Among them, 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.

[0060] This embodiment generates a target forwarding routing entry based on 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 implementing 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.

[0061] In a possible implementation, the method further includes: step B10, dynamically detecting the online status of the terminal device, wherein the online status includes an online status and an offline status; step B20, dynamically maintaining the first mapping relationship according to the dynamically detected online status.

[0062] In this embodiment, specifically, when the online status 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 status of the terminal device is online, the information of the terminal device is restored or enabled from the first mapping relationship.

[0063] This embodiment dynamically detects the online status of the terminal device, where the online status includes the online status and the 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 business types or multiple business types in the IPv6 network environment.

[0064] In a possible implementation, the method further includes: step C10, dynamically detecting the communication status of the target WAN port, wherein the communication status includes a connected state and a disconnected state; and step C20, dynamically maintaining the first mapping relationship according to the dynamically detected communication status.

[0065] In this embodiment, specifically, when the communication status 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 status of the target WAN port is connected, the information of the target WAN port is restored or enabled from the first mapping relationship.

[0066] 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 business types or multiple business types in the IPv6 network environment.

[0067] Furthermore, to help understand the technical principles of the embodiments of the present application, a specific embodiment is listed, including: This embodiment adopts the following technical solution: 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 an IPv6 address, it searches the home gateway for the WAN port information corresponding to the service type according to its different service types, and replies the requested globally unique address and / or proxy prefix 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 forwarding rule file based on 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; the forwarding rule entry corresponding to the IPv6 address of the terminal device and the WAN port is configured in the kernel to implement the forwarding binding of data service messages. When IPv6 terminal access devices go online or offline, or when the WAN port of the home gateway is disconnected, dynamic maintenance will be performed and the relationship table will be updated to ensure network security and reliable services for terminal devices with different or multiple business types in the IPv6 network environment.

[0068] This embodiment provides a service adaptive configuration method in an IPv6 network environment to address the issues of different IPv6 addresses allocated to different access devices, network security, transmission efficiency, and diversity of service requirements.

[0069] It should be noted that the above specific embodiments are only used to help understand the technical concept of the embodiments of this application and do not constitute a limitation of this application. More simple transformations based on the technical concept should all be within the scope of protection of this application.

[0070] In one practicable manner, the method further includes the following steps.

[0071] Step D10: Determine the local link address of the terminal device according to the IPv6 address request message.

[0072] In this embodiment, the link-local address is the LLA address. The IPv6 address request message carries information about the LLA address.

[0073] Step D20: Establish a second mapping relationship between the local link address and the WAN connection information.

[0074] This embodiment establishes a second mapping relationship between the local link address and the WAN connection information, thereby facilitating, after subsequently receiving a service message carrying the local link address returned by the terminal device, determining, according to the second mapping relationship, the WAN connection information mapped to the local link address, and forwarding the service message based on 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 device with the service type of the routing gateway to achieve intelligent identification of the device service requirements and adaptive configuration of IPv6 network services, thereby ensuring network security, ensuring service reliability, and providing a better user experience.

[0075] Step D30: After receiving the service message carrying the local link address returned by the terminal device, determine the WAN connection information mapped to the local link address according to the second mapping relationship.

[0076] Step D40: forwarding the service message based on the WAN connection information mapped to the local link address.

[0077] 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, the embodiment of the present application determines the WAN connection information mapped to the local link address according to the second mapping relationship, and then forwards the service message based on the WAN connection information mapped to 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 type for different devices in the IPv6 network environment, and realizing service adaptive configuration, ensuring the network security and service reliability of 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 and perform adaptive service configuration.

[0078] In an IPv6 network environment, the embodiments of the present application aim to provide a method for adaptively configuring services based on different service requirements of home gateway access devices, which may result in the inability to intelligently and securely configure services. The method is applicable to IPv6 network devices.

[0079] Furthermore, as an implementable method, 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: step E10, generating a target domain name forwarding rule based on the IPv6 DNS service information of the target WAN port mapped by the target IPv6 address information; step E20, forwarding the service message to the target GUA address corresponding to the target WAN port through the target domain name forwarding rule.

[0080] 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 IPv6 DNS service information, wherein the IPv6 DNS service information can be, for example, a GUA (Global Unicast Address) address.

[0081] This embodiment generates a target domain name forwarding rule by mapping the target IPv6 address information to the IPv6 DNS service information of the target WAN port, 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 type of different devices in the IPv6 network environment, and realizing service adaptive configuration, ensuring the network security and service reliability of terminal devices with different service types or multiple service types in the IPv6 network environment.

[0082] As an implementable manner, the method further includes: step F10, dynamically detecting the online status of the terminal device, wherein the online status includes an online status and an offline status; step F20, dynamically maintaining the second mapping relationship according to the dynamically detected online status.

[0083] In this embodiment, specifically, when the online status 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 status of the terminal device is online, the relevant information of the terminal device is restored or enabled from the second mapping relationship.

[0084] This embodiment dynamically detects the online status of the terminal device, where the online status includes the online status and the offline status, and dynamically maintains the second mapping relationship based on the dynamically detected online status, thereby ensuring the network security and service reliability of the terminal devices with different business types or multiple business types in the IPv6 network environment.

[0085] As an implementable manner, the method further includes: step G10, dynamically detecting the communication status of the target WAN port, wherein the communication status includes a connected state and a disconnected state; step G20, dynamically maintaining the second mapping relationship according to the dynamically detected communication status.

[0086] 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.

[0087] 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 business types or multiple business types in the IPv6 network environment.

[0088] Furthermore, in order to help understand the technical concept of the embodiment of the present application, a specific embodiment is listed, with reference to FIG4 , which is a timing diagram of the service configuration of the embodiment of the present application, which includes the following steps.

[0089] Step 201: The terminal device accesses the IPv6 network environment and starts a stateless or stateful address acquisition method. The message carries the service type information required by the terminal device. 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.

[0090] 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).

[0091] Step 203: The service configuration control module starts processing the interactive message for obtaining the IPv6 address sent by the terminal device, and obtains the WAN connection information of the corresponding service type according to the relationship table of step 202.

[0092] Step 204: After receiving the query, the WAN port control module queries the WAN connection configuration information corresponding to the service type (ie, the aforementioned WAN connection information), and generates a globally unique address GUA and / or proxy prefix requested by the access terminal device.

[0093] Step 205: The service configuration control module maps the relationship tables generated in steps 201 and 202, configures the IPv6 DNS domain name forwarding rule file of the terminal device, and generates corresponding forwarding configuration rules based on the terminal IPv6 local link address and the WAN port of the corresponding service type.

[0094] Step 206: The terminal device receives the IPv6 globally unique address GUA and / or proxy prefix through the reply message from the home gateway, and the address configuration is completed.

[0095] Step 207: The terminal device starts to perform corresponding services in the IPv6 network, and sends a message to the service configuration control module.

[0096] Step 208: The service configuration control module searches for the forwarding routing entry or DNS domain name forwarding rule file for a specific service based on the IPv6 address of the terminal device, and sends the information from the corresponding IPv6 type WAN port to the corresponding service network.

[0097] Step 209: Downlink service packets are connected to the service configuration control module via the IPv6 WAN.

[0098] 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.

[0099] It should be noted that the above specific embodiments are only used to help understand the technical concept of the embodiments of this application and do not constitute a limitation of this application. More simple transformations based on the technical concept should all be within the scope of protection of this application.

[0100] In a possible implementation, the method further includes the following steps.

[0101] Step H10: Determine the LAN (Local Area Network) side port number to which the terminal device is connected based on the IPv6 address request message.

[0102] The IPv6 address request message carries information about the LAN side port number.

[0103] Step H20: Establish a third mapping relationship between the LAN side port number and the WAN connection information.

[0104] 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. As a result, even in an IPv6 network environment, the service types of terminal devices 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 to realize intelligent identification of device service requirements and adaptive configuration of IPv6 network services, thereby ensuring network security, ensuring service reliability, and providing a better user experience.

[0105] 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.

[0106] Step H40: forwarding the service message based on the WAN connection information mapped to the LAN side port number.

[0107] Exemplarily, the WAN connection information includes the port number of the target WAN port corresponding to the business type information, and the step of forwarding the business message based on the WAN connection information mapped by the LAN side port number includes: step I10, forwarding the business message to the business network corresponding to the target WAN port according to the port number of the target WAN port mapped by the LAN side port number.

[0108] The embodiment of the present application determines the LAN side port number to which the terminal device is connected based on 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, the embodiment of the present application determines the WAN connection information mapped to the LAN side port number based on the third mapping relationship, and then forwards the service message based on the WAN connection information mapped to the LAN side port number. This allows the embodiment of the present application to not only perform service binding based on the IPv6 address of the terminal device, but also to perform service binding by identifying the LAN side port number corresponding to the terminal device, that is, after identifying the device type under the port, perform specific port service binding on the port, so that all devices under the port can go out from the designated service WAN port to realize service configuration, thereby making up for the implementation of service adaptive configuration for service types of different devices in the IPv6 network environment.

[0109] In an IPv6 network environment, the embodiments of the present application aim to provide a method for adaptively configuring services based on different service requirements of home gateway access devices, which may result in the inability to intelligently and securely configure services. The method is applicable to IPv6 network devices.

[0110] In order to help understand the technical principles of the embodiments of the present application, a service configuration method for an IPv6 network in a specific embodiment is listed, with reference to Figure 6, which is a flow chart of the WAN port control module in the embodiment of the present application. The following specific implementation steps are explained in conjunction with Figure 6.

[0111] Step 401: The home gateway device starts a WAN connection and requests an IPv6 globally unique address and (or) proxy prefix. Only with the proxy prefix can the corresponding IPv6 address be allocated to the access terminal device.

[0112] Step 402: The service network responds to the gateway according to the request, and the WAN connection IPv6 address interaction is completed. The globally unique address, IPv6 DNS server, prefix, and other related information of the corresponding service network are obtained.

[0113] Step 403: The WAN port control module generates a relationship table based on the WAN connection ID and its service type. The control module is notified of the WAN connection's online and offline status, and the relationship table is updated and maintained. The WAN port number can be used to find the corresponding routing rules, domain name information, and IPv6 GUA address.

[0114] 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 control module.

[0115] It should be noted that the above specific embodiments are only used to help understand the technical concept of the embodiments of this application and do not constitute a limitation of this application. More simple transformations based on the technical concept should all be within the scope of protection of this application.

[0116] In some embodiments, the method further includes: step J10, dynamically detecting the online status of the terminal device, wherein the online status includes an online status and an offline status; step J20, dynamically maintaining the third mapping relationship according to the dynamically detected online status.

[0117] In this embodiment, specifically, when the online status 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 status of the terminal device is online, the relevant information of the terminal device is restored or enabled from the third mapping relationship.

[0118] This embodiment dynamically detects the online status of the terminal device, where the online status includes the online status and the offline status, and dynamically maintains the third mapping relationship based on the dynamically detected online status, thereby ensuring the network security and service reliability of the terminal devices with different business types or multiple business types in the IPv6 network environment.

[0119] In some embodiments, the method further includes: step K10, dynamically detecting the communication status of the target WAN port, wherein the communication status includes a connected state and a disconnected state; step K20, dynamically maintaining the third mapping relationship according to the dynamically detected communication status.

[0120] 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 third 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 third mapping relationship.

[0121] 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 business types or multiple business types in the IPv6 network environment.

[0122] Furthermore, after the step of forwarding the business message to the business network corresponding to the target WAN port, it also includes: step L10, receiving the business response message returned by the business network in response to the business message; step L20, forwarding the business response message to the terminal device.

[0123] 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.

[0124] In order to help understand the technical principles of the embodiments of the present application, a service configuration method of an IPv6 network in a specific embodiment is listed, with reference to Figure 5. Figure 5 is a flow chart of the terminal identification module in the embodiment of the present application. The terminal device takes the stateful address acquisition method as an example and obtains an IPv6 address (globally unique address) through DHCPv6. The following specific implementation steps are explained in conjunction with Figure 5.

[0125] Step 301: The terminal device initiates DHCPv6 interaction to obtain an IPv6 address. It sends a DHCPv6 Solicit message with Option 16 to the home gateway, requesting a globally unique address and / or a proxy prefix. As shown in Figure 5, the Vendor Class is the hexadecimal representation of the Option 16 message. The hexadecimal value "49 50 5456" of the Value is parsed and converted into the corresponding string "IPTV," thereby identifying the service type of the terminal device. This Option value is typically agreed upon with the vendor.

[0126] Among them, if the terminal device obtains a stateless address through RS message interaction, the RS Option 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.

[0127] Step 302: The terminal identification module parses the service requirement flag carried in Option 16 to determine the service type required by the terminal device. For example, if the flag is "IPTV," it indicates 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 indicates that the terminal device is a smart device and has both IPTV and Internet service requirements.

[0128] 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 device is connected.

[0129] Step 303: Send the relationship table generated in step 302 to the service configuration control module.

[0130] Step 304: The service configuration control module searches for the WAN port information of the corresponding service and replies with an Advertise message to the terminal device. The message carries the requested IPv6 globally unique address GUA and / or proxy prefix. The proxy prefix and GUA address are obtained or generated by searching for the WAN port information of the corresponding service.

[0131] The above specific embodiments are only used to help understand the technical concept of the embodiments of this application and do not constitute a limitation of this application. More simple transformations based on the technical concept should all be within the scope of protection of this application.

[0132] In order to help understand the technical concept of the embodiment of the present application, a service configuration method of an IPv6 network in a specific embodiment is listed, with reference to Figure 7, which is a flow chart of the service configuration control module in the embodiment of the present application. The following specific implementation steps are explained in conjunction with Figure 7.

[0133] Step 501: The service configuration control module generates a new relationship mapping table based on the relationship table of step 303 and step 403, and matches the LAN side terminal device with the WAN port connection.

[0134] Step 502: The service configuration control module establishes a firewall rule chain based on the new relationship mapping table generated in step 501, combining the IPv6 globally unique address GUA requested by the terminal device and the mark value of the WAN port of the corresponding service. Messages that match the rule chain can normally go out of the WAN port of the corresponding service, which is more secure and reliable.

[0135] Step 503: Based on the new relationship mapping table generated 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 device to ensure that the terminal's IPv6 domain name query message goes out through a specific service channel.

[0136] Step 504: The service configuration is completed, and the globally unique address or proxy prefix requested by the terminal device is replied to the terminal device.

[0137] It should be noted that the above specific embodiments are only used to help understand the technical concept of the embodiments of this application and do not constitute a limitation of this application. More simple transformations based on the technical concept should all be within the scope of protection of this application.

[0138] In order to further help understand the technical concept of the embodiment of the present application, a service configuration method of an IPv6 network in a specific embodiment is listed, with reference to Figure 8, which is a schematic diagram of service control forwarding in the embodiment of the present application. The following specific implementation steps are explained in conjunction with Figure 8.

[0139] If the terminal device is an STB device, the STB device will access the domain name related to the IPTV service, and the query message will be forwarded to the home gateway (an instance of the access network device). The original IPv6 local link address LLA of the terminal device has been bound in the DNS domain name forwarding rule file, so it is easy to find the IPv6 DNS Server address of the corresponding WAN port and forward it. You can also add a specific domain name query relationship to the domain name forwarding rule file, such as adding a matching rule for the domain name prefix. When the domain name prefix queried by the terminal device is not in the pre-configured DNS domain name forwarding rule file, it will go out from the default WAN port IPv6 DNS Server address. If it is, it will go out from the specified WAN port IPv6 DNS Server address.

[0140] If the data message of the STB 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. The GUA address of the LAN port terminal and the GUA address of the WAN port are mapped into a rule to forward the corresponding service message.

[0141] The above example uses the IPv6 address of the terminal device as the binding service. Alternatively, we can record the LAN port number of the terminal device and use the terminal identification module to identify the terminal device type associated with that port. By binding the terminal's LAN port to the WAN connection of the corresponding service, all services on this port can be sent out through the specific WAN connection.

[0142] It should be noted that what is disclosed above is only a preferred embodiment of the present application, and it is certainly not intended to limit the scope of protection of the present application. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made in accordance with the claims of the present invention are still within the scope covered by the present application.

[0143] That is to say, the above specific embodiments are only used to help understand the technical concept of the embodiments of this application, and do not constitute a limitation of this application. More simple transformations based on the technical concept should all be within the scope of protection of this application.

[0144] 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 (BRAS), a broadband network gateway (Broadband Network Gateway), a serving GPRS support node (SGSN), a gateway GPRS support node (Gateway GPRS Support Node, GGSN), a mobility management entity (MME) or a serving gateway (S-GW), etc.

[0145] 9, FIG9 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. As shown in FIG9, 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 (WI-FI) interface). The memory 1005 may be a high-speed random access memory (RAM) memory, or a stable non-volatile memory (NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0146] Those skilled in the art will appreciate that the structure shown in FIG9 does not limit the electronic device and may include more or fewer components than shown, or combine certain components, or arrange the components differently. As shown in FIG9 , 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 an IPv6 network service configuration program.

[0147] In the electronic device shown in Figure 9, 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 IPv6 network service configuration program 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.

[0148] 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 fully described 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.

[0149] In addition, an embodiment of the present application also proposes a storage medium, which is a computer storage medium. The computer-readable storage medium can be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a service configuration program for the IPv6 network. When the service configuration program for the IPv6 network is executed by the processor, the service configuration method for the IPv6 network of the present application as described above is implemented.

[0150] The various embodiments of the electronic device and computer-readable storage medium of the present application can refer to the various embodiments of the service configuration method of the IPv6 network of the present application, and will not be repeated here.

[0151] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

[0152] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0153] 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 the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, 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.

[0154] The above are only preferred embodiments of the present application and do not 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, comprising: 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, wherein: 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 an IPv6 network according to claim 1, wherein: 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 as claimed in claim 2, wherein: 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 an IPv6 network according to claim 1, wherein: 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 an IPv6 network according to claim 5, wherein: 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 an IPv6 network according to claim 5, wherein: 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 according to claim 6, wherein: 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, wherein: 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 IPv6 network according to claim 9, wherein: 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, wherein: 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 an IPv6 network according to claim 10, wherein: 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 for an IPv6 network according to any one of claims 1 to 12, wherein: 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 comprising: 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, wherein the readable storage medium is a computer-readable storage medium, wherein a service configuration program for an IPv6 network is stored on the computer-readable storage medium, and when the service configuration program for the IPv6 network is executed by a processor, the service configuration method for the IPv6 network as described in any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Method for allocating IPv6 address and home gateway

    CN101867625A

  • Method, system and terminal for transmitting business data and user data processing entity

    CN101931936A

  • IPv6 address allocation method and device

    CN104333610A

  • Communication method and device

    CN115955671A

  • Apparatus and Method For Managing Addresses of Network Elements

    US20080307079A1