WO2013178164A1 - Ipv6 domain name server (dns) address allocation and obtaining method and device - Google Patents

Ipv6 domain name server (dns) address allocation and obtaining method and device Download PDF

Info

Publication number
WO2013178164A1
WO2013178164A1 PCT/CN2013/079980 CN2013079980W WO2013178164A1 WO 2013178164 A1 WO2013178164 A1 WO 2013178164A1 CN 2013079980 W CN2013079980 W CN 2013079980W WO 2013178164 A1 WO2013178164 A1 WO 2013178164A1
Authority
WO
WIPO (PCT)
Prior art keywords
host
ipv6
data card
wireless data
dns address
Prior art date
Application number
PCT/CN2013/079980
Other languages
French (fr)
Chinese (zh)
Inventor
郑巍
胡乐申
温海龙
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013178164A1 publication Critical patent/WO2013178164A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Definitions

  • IPv6 has a large address space, its address structure facilitates address aggregation, supports automatic address configuration, and supports host mobility. Its security and quality of service are superior to Internet Protocol version 4 (IPv4). . Whether it is the 3rd Generation Partnership Project (3GPP) Universal Mobile Telecommunications System (UMTS), or 3GPP2 Code Division Multiple Access (Code Division Multiple Access) For the CDMA) 2000 system, it has been determined that the Internet Protocol version 6 (IPv6) is the development direction of network bearers and service applications. Especially in the IP Multimedia Subsystem (IMS) stage of The Third Generation Mobile Communications (3G), the network system will be fully based or compatible with IPv6. IPv6 has become the shared basic protocol for the Internet and mobile communication networks.
  • 3GPP 3rd Generation Partnership Project
  • UMTS Universal Mobile Telecommunications System
  • 3GPP2 Code Division Multiple Access Code Division Multiple Access 2000 system
  • An IPv6 address consists of a prefix and an interface identifier.
  • the upper 64 bits are prefix addresses and the lower 64 bits are interface identifiers.
  • the interface identifier and the prefix address are all allocated by the network in two phases.
  • the first phase of the data card is from the Gateway General-Packet-Radio-Service Support Node (Gateway General-Packet-Radio-Service Support Node, referred to as GGSN) Obtains its interface identifier. This phase is completed by the Packet Data Protocol (PDP) context activation process.
  • PDP Packet Data Protocol
  • the data card obtains the prefix address required for the global IPv6 address from the GGSN by using a message such as a Router Solicitation (RS) and a Router Advertisement (RA).
  • RS Router Solicitation
  • RA Router Advertisement
  • the IPv6 packet of the address is not forwarded by the router to the external network.
  • the other is a global unicast address where the mobile terminal can only communicate with other hosts in the external data network using global IPv6 addresses.
  • IPv6 IPv6 Domain Name Server
  • PDP context PDP context
  • IPv6CP IPv6 Control Protocol
  • PDP point-to-point protocol
  • the route advertisement option mechanism only extends the Neighbor Discovery (ND) protocol automatic configuration mechanism extension parameter, Need to add new messages, can save transmission delay and wireless bandwidth resources, however, the ND protocol is mostly implemented in the operating system, the synchronization between the ND buffers is in the kernel space, and the DNS configuration file is in the user space, so the current The ND framework needs to be changed. Therefore, in the related art, the host side of the IPv6 device cannot obtain an IPv6 DNS address, or obtaining an IPv6 DNS address requires a major change to the service system architecture.
  • ND Neighbor Discovery
  • the present invention provides an IPv6 domain name server DNS address allocation and acquisition method and device, so as to at least solve the problem that the host side of the IPv6 device in the related art cannot obtain an IPv6 DNS address, or obtain an IPv6 DNS address needs to compare the service system architecture. Big change problem.
  • a method for allocating a DNS address of an IPv6 domain name server including: receiving, by a wireless data card, request information from a host, where the request information is used to request acquisition of the IPv6 DNS address; The data card assigns the IPv6 DNS address to the host through an application interface between the host and the wireless data card.
  • the method further includes: the wireless data card acquiring the IPv6 DNS address from a packet data protocol PDP response message; the wireless data card An IPv6 DNS address is provided to an application interface between the host and the wireless data card.
  • the wireless data card allocates the IPv6 DNS address to the host by using an application interface between the host and the wireless data card, and includes at least one of the following: the wireless data card passes the host and the wireless number Assigning the IPv6 DNS address to the host according to a network configuration command line tool command interface provided by an operating system of the host by an application interface between the cards; the wireless data card passes the host and the wireless data card The manner in which the application interface modifies the IPv6 DNS address information in the operating system registry of the host assigns the IPv6 DNS address to the host.
  • the application interface comprises at least one of the following: a user interface UI, a driver on the host for driving the wireless data card.
  • the request information is carried by a network driver interface specification NDIS command and/or an asynchronous transmission AT command.
  • a method for obtaining an IPv6 domain name server DNS address including: a host sending request information to a wireless data card, wherein the request information is used to request to obtain the IPv6 DNS address; Obtaining the IPv6 DNS address by using an application interface between the host and the wireless data card.
  • the acquiring, by the host, the IPv6 DNS address by using an application interface between the host and the wireless data card comprises at least one of: the host invokes an operating system through an application interface between the host and the wireless data card Obtaining the IPv6 DNS address by means of the provided NSTH command interface; the host acquires the IPv6 DNS address by modifying an IPv6 DNS address information in an operating system registry by using an application interface between the wireless data card and the wireless data card.
  • an IPv6 domain name server DNS address allocation apparatus including: a receiving module, configured to receive request information from a host, where the request information is used to request to acquire the HV6 DNS address; And an allocation module configured to allocate the IPv6 DNS address to the host through an application interface between the host and the wireless data card.
  • the apparatus further includes: an obtaining module, configured to obtain the HV6 DNS address from a packet data protocol PDP response message; and a providing module, configured to provide the obtained IPv6 DNS address to the host and the wireless Application interface between data cards.
  • the DNS address is assigned to the host, which solves the problem that the host side of the IPv6 device in the related technology cannot obtain the IPv6 DNS address, or obtains the IPv6 DNS address, and needs to make major changes to the service system architecture, thereby realizing the situation without changing the system architecture. Under the same, it is easy and automatic to assign a DNS address to an IPv6 device, which not only has a low cost, but also improves the IPv6 networking and data transmission function of the mobile wireless data communication device to a certain extent.
  • FIG. 1 is a flowchart of a method for allocating a DNS address of an IPv6 domain name server according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for acquiring a DNS address of an IPv6 domain name server according to an embodiment of the present invention
  • FIG. 1 is a flowchart of a method for allocating a DNS address of an IPv6 domain name server according to an embodiment of the present invention.
  • Step S102 The wireless data card receives the request information from the host, where the request information is used to request to obtain an IPv6 DNS address.
  • the request information may be carried in a Network Driver Interface (NDIS) command and/or Asynchronous transmission (AT) command;
  • Step S104 the wireless data card allocates an IPv6 DNS address to the host through an application interface between the host and the wireless data card.
  • the wireless data card After receiving the request information for requesting acquisition of the IPv6 DNS address from the host by using the wireless data card, the wireless data card allocates the IPv6 DNS address to the host through the application interface between the host and the wireless data card, as compared with the existing
  • the technology cannot assign an IPv6 DNS address to the host, or the service system architecture needs to be modified to assign an IPv6 DNS address to the host.
  • the above steps do not need to change the architecture of the service system, and IPv6 is implemented by an application carried between the host and the wireless data card.
  • the allocation of the DNS address not only solves the problem that the host side of the IPv6 device in the related technology cannot obtain the IPv6 DNS address, or obtains the IPv6 DNS address, and needs to make major changes to the service system architecture, thereby implementing the system architecture without changing the system architecture.
  • it is easy and automatic to assign a DNS address to an IPv6 device which not only has a low cost, but also improves the IPv6 networking and data transmission functions of the mobile wireless data communication device to a certain extent.
  • the wireless data card allocates an IPv6 DNS address to the host through an application interface between the host and the wireless data card, the application interface can obtain the IPv6 DNS address in multiple ways, for example, receiving a request from the host on the wireless data card.
  • the wireless data card completes the IPv6 address negotiation process with the host; the wireless data card assigns the network prefix address to the host through route advertisement negotiation.
  • the address negotiation process includes: determining, by the IPCPv6 negotiation process, whether the interface identifier is consistent with the interface identifier in the host IPv6 configuration request, or determining whether the interface identifier requested by the host is unique through the address conflict detection process.
  • the method provides an IPv6 address negotiation mode, which enables the system to be compatible with the PPP link dialing mode or the Ethernet link dialing mode, and can be flexibly selected according to specific requirements, thereby improving system compatibility.
  • the IPv6 DNS address can be assigned to the host by using an application interface between the host and the wireless data card.
  • the wireless data card can invoke the host through an application interface between the host and the wireless data card.
  • the nesth command interface provided by the operating system assigns an IPv6 DNS address to the host.
  • the wireless data card can modify the IPv6 DNS address information in the operating system registry of the host through the application interface between the host and the wireless data card.
  • the IPv6 DNS address is assigned to the host.
  • the method adopts the method of calling the nest script or modifying the registry. Compared with the related technology, the method of assigning the IPv6 DNS address is simpler and easier to implement.
  • the foregoing application interface may include at least one of the following: a User Interface (UI), and a driver for driving a wireless data card on the host.
  • UI User Interface
  • driver for driving a wireless data card on the host.
  • the dialing mode assigned according to the request address may be different, and different application interfaces are selected to implement IPv6 DNS address allocation.
  • the user interface UI may be used to provide user and data card, user and host, and control signaling interaction between the data card and the host.
  • the driver may be various drivers on the host for implementing the data card and the host. The interaction between.
  • the above two preferred application interface forms improve the operability of the system. It should be noted that, in this embodiment, the specific content of the control signaling is not limited, because any control signaling that can be applied in the foregoing method is capable of implementing the function of the control signaling in the foregoing method, It should be within the scope of protection of this application.
  • FIG. 2 is a flowchart of a method for obtaining a DNS address of an IPv6 domain name server according to an embodiment of the present invention.
  • the process includes the following steps: Step S202: The host sends request information to the wireless data card, where the request information is used to request to obtain an IPv6 DNS address.
  • the host After the host sends the request information for requesting the acquisition of the IPv6 DNS address to the wireless data card, the host obtains the IPv6 DNS address through the application interface between the host and the wireless data card, and uses the above steps. It also realizes that the IPv6 DNS address is allocated by the application between the host and the wireless data card without changing the architecture of the service system, which not only solves the problem that the host side of the IPv6 device existing in the related art cannot be obtained.
  • An IPv6 DNS address or an IPv6 DNS address requires a major change to the service system architecture. In this way, the DNS address can be easily and automatically assigned to the IPv6 device without changing the system architecture. Moreover, the IPv6 networking and data transmission functions of the mobile wireless data communication device are improved to some extent.
  • the host obtains an IPv6 DNS address through an application interface between the host and the wireless data card, and may also adopt the following processing manner: (1) The host invokes an operating system through an application interface between the host and the wireless data card. The nesth command interface is used to obtain the IPv6 DNS address. (2) The host obtains the IPv6 DNS address by modifying the IPv6 DNS address information in the operating system registry through the application interface between the host and the wireless data card.
  • an IPv6 domain name server DNS address allocation device is also provided. The device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module" may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 3 is a structural block diagram of an IPv6 domain name server DNS address allocation apparatus according to an embodiment of the present invention.
  • the apparatus includes: a receiving module 32 and an allocating module 34.
  • the receiving module 32 is configured to receive request information from the host, where the request information is used to request to obtain an HV6 DNS address;
  • the assigning module 34 is coupled to the receiving module 32, and configured to pass the application interface between the host and the wireless data card. Assign an IPv6 DNS address to the host.
  • FIG. 32 is configured to receive request information from the host, where the request information is used to request to obtain an HV6 DNS address
  • the assigning module 34 is coupled to the receiving module 32, and configured to pass the application interface between the host and the wireless data card. Assign an IPv6 DNS address to the host.
  • FIG. 32 is configured to receive request information from the host, where the request information is used to request to obtain an HV6 DNS address
  • the assigning module 34 is coupled to the receiving module 32, and configured to pass the application interface between the host
  • FIG. 4 is a block diagram of a preferred structure of an IPv6 domain name server DNS address allocation apparatus according to an embodiment of the present invention.
  • the apparatus includes: an acquisition module 36 and a providing module 38, in addition to all the modules of FIG.
  • the acquisition module 36 and the provision module 38 are described.
  • the obtaining module 36 is coupled to the receiving module 32 and configured to obtain from the packet data protocol PDP response message.
  • FIG. 5 is a structural block diagram of an apparatus for acquiring an IPv6 domain name server DNS address according to an embodiment of the present invention.
  • the apparatus includes: a sending module 52 and an obtaining module 54, wherein the sending module 52 is configured to transmit wireless data.
  • the card sends request information, where the request information is used to request to obtain an IPv6 DNS address; the obtaining module 54 is coupled to the sending module 52, and configured to obtain an IPv6 DNS address by using an application between the host and the wireless data card.
  • a preferred embodiment of the present invention provides a method for automatically allocating an IPv6 DNS address of a wireless data card, the method comprising: Step 1. When IPv6 dials, the data card requests IPv6 DNS information from the network during the PDP activation process through the PCO-IE method. Step 2: After the connection is successfully established, the IPv6 address negotiation is performed between the data card and the host, and the PC side software (UI or driver) issues a control command to the data card to obtain the DNS address.
  • the IPv6 address negotiation process in step 2 refers to the process of assigning parameter information such as an IPv6 address and a DNS address obtained from the network to the host after the data card successfully establishes a wireless connection link with the network side.
  • IPv6 address negotiation uses stateless address autoconfiguration (SLAAC). Dialing in the PPP link mode obtains the interface identifier address through IPCPv6 negotiation, and then obtains the prefix address through the router advertisement message (for example, RS/RA) to generate a global IPv6 address.
  • the IPv6 address allocation method is adopted.
  • the router advertisement message (for example, RS/RA) is used to obtain the prefix address, and then the MAC address or the interface identifier is randomly generated to form a global IPv6 address.
  • the DNS address can be reported to the UI or the driver through the control command.
  • the data card can report the DNS to the UI through the asynchronous transfer command.
  • the UI calls the operating system's netsh configuration script to set the DNS to the PC.
  • the data card can report the DNS address to the UI or driver through the AT command or other control commands.
  • the processing module 62, the control instruction processing module 64 (the sum of the IP address information processing module 62 and the control instruction processing module 64 is equivalent to the function performed by the providing module 38), the PC side software module 66 (corresponding to the above application interface module), and the host 68.
  • the module of the device will be described below.
  • the dialing module 60 is located in the data card, and is configured to initiate a PDP activation process and obtain an IPv6 DNS address from the network side through the PCO-IE method after the IPv6 dialup connection is established, and after the data card receives the dialing request sent by the host.
  • the PC side software module 66 is configured to set an IPv6 DNS address to the host by calling the netsh command interface provided by the operating system or modifying the IPv6 DNS information in the operating system registry after obtaining the IPv6 DNS address.
  • FIG. 7 is a flowchart of a method for automatically allocating an IPv6 dialing DNS address of a PPP link of a wireless data card according to an embodiment of the present invention. As shown in FIG. 7, the method includes: Step S702: A data card completes a PDP activation process. After the data card receives the IPv6 dialing command, the dialing module initiates a PDP activation process on the air interface.
  • the request information for activating the PDP context (that is, the PDP Context) is sent to the SGSN, and the information includes the following information: Access Point Name (APN), PDP Type, PDP Address, and Challenge Handshake Authentication Protocol (Challenge Handshake Authentication) Protocol, referred to as CHAP, or Password Authentication Protocol (PAP) authentication information, IPv6 DNS, and other information.
  • the PDP type is IPv6, and the PDP address is empty, indicating that the IP address is dynamically allocated on behalf of the request.
  • the GGSN signs and assigns the mobile terminal through the Remote Hosting Protocol (DHCP)/Remote Authentication Dial-In User Service (RADIUS).
  • DHCP Remote Hosting Protocol
  • RADIUS Remote Management Dial-In User Service
  • the IPv6 address or address prefix, and other parameters, such as QoS parameters, IPv6 DNS server address, etc., and the authentication result and each parameter information are encapsulated in the activated PDP context accept message and sent back to the data card.
  • the PDP activation process is complete.
  • Step S704 after the PDP activation is completed, the data card completes the IPCPv6 negotiation.
  • the data card extracts the interface identifier from the received PDP IPv6 address but ignores the address prefix. If the extracted interface identifier is the same as that carried by the host in the HV6CP configuration request, the data card will send an IPv6 control protocol configuration confirmation (HV6CP Configure-Ack) message to the host.
  • HV6CP Configure-Ack IPv6 control protocol configuration confirmation
  • the data card will send the host an IPv6 control protocol configuration negative acknowledgement (HV6CP Configure-Nak) message carrying the interface identifier, and the host will retrieve the newly assigned interface identifier from the IPv6CP Configure-Nak message, and then forward the data to the data.
  • the card sends an IPv6CP Configure-Request message requesting the newly assigned interface identifier.
  • the data card sends an IPv6CP Configure-Ack message to the host, agreeing to use the newly assigned interface identifier.
  • Step S706 the router advertisement negotiation is completed, and the host generates an IPv6 address.
  • the host After the host accepts the interface identifier from the data card, establish a user plane link from the host to the GGSN and an external Internet Service Provider (ISP)/Intranet. The host is on the link. Use the Router Request (ie RS) and Router Advertisement (ie RA) messages to get the address prefix required for the global IPv6 address from the GGSN. After the network prefix address is obtained, the host generates a global IPv6 address through stateless autoconfiguration. The IPv6 address negotiation is complete. Step S708, the UI sends an AT command to obtain a DNS address. After the IPv6 address negotiation is complete, the UI sends an AT command to the data card to obtain the IPv6 DNS address assigned by the network.
  • ISP Internet Service Provider
  • Step S710 the data card reports the DNS address.
  • the IPv6 DNS information processing module extracts the IPv6 DNS address from the PDP activation message and provides the address to the AT command processing module.
  • the AT command processing module sets the IPv6 DNS address.
  • the host sets the DNS address.
  • the UI invokes the netsh network command provided by the operating system to set the IPv6 DNS address to the host, and the IPv6 DNS address assignment is completed.
  • Step S802 A data card completes a PDP activation process.
  • the dialing module After receiving the IPv6 dialing command, the dialing module initiates a PDP activation process on the air interface, and sends a request message to the SGSN to activate the PDP context (PDP Context).
  • the information includes the following information: APN, PDP type, PDP address, CHAP Or PAP authentication information, IPv6 DNS, etc. (for example, using the PCO-IE method).
  • the PDP type is IPv6, and the PDP address is empty, indicating that the IP address is dynamically allocated on behalf of the request.
  • the GGSN signs the mobile terminal through local/DHCP/RADIUS and assigns an IPv6 address or address prefix, and other parameters, such as QoS parameters, IPv6.
  • the DNS server address and the like are encapsulated in the activation PDP context accept message and sent back to the data card.
  • the PDP activation process is complete.
  • Step S804 sending a router advertisement and an address conflict detection.
  • the host detects that the Ethernet device port is UP (that is, data can be transferred normally), address collision detection is initiated.
  • the host sends a neighbor request message to the data card to try to verify whether the interface identifier is unique.
  • the data card finds that the interface identifier requested by the address host conflicts with a used one, the data card sends a neighbor advertisement to the host to indicate that the duplicate address detection fails. At this point, the host will generate a new interface identifier to resend the neighbor request message. If the address conflict detection is normal, the host sends a Router Request (ie RS) message to the data card. Step S806, the router advertisement negotiation is completed, and the host generates an IPv6 address. After receiving the routing request, the data card responds with the IPv6 prefix assigned by the GGSN through the route advertisement message. After the network prefix address is obtained, the host generates a global IPv6 address by randomly generating the interface identifier address. The IPv6 address negotiation is complete.
  • RS Router Request
  • Step S808 the host sends a control command to obtain a DNS address.
  • the PC side software for example, the UI or the driver
  • the data card reports the DNS address.
  • the IPv6 DNS information processing module extracts the IPv6 DNS address from the PDP activation message, and provides the address to the control instruction processing module, and the control instruction module returns the IPv6 DNS address.
  • the host sets a DNS address.
  • the PC side software After obtaining the IPv6 DNS address from the control command returned by the data card, the PC side software sets the IPv6 DNS address to the host by calling the netsh command interface provided by the operating system or modifying the IPv6 DNS information in the operating system registry. IPv6 DNS address The assignment is complete. It should be noted that the steps shown in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and, although the logical order is shown in the flowchart, in some cases, The steps shown or described may be performed in an order different than that herein. Embodiments of the present invention provide a method for automatically allocating a wireless data card IPv6 domain name server (i.e., DNS) address.
  • DNS IPv6 domain name server
  • the IPv6 address allocation methods mainly include stateful address autoconfiguration (DHCPv6) and stateless address autoconfiguration (SLAAC).
  • DHCPv6 stateful address autoconfiguration
  • SLAAC stateless address autoconfiguration
  • the host side can only dynamically generate IPv6 and gateway addresses, and cannot automatically obtain the DNS address from the terminal side.
  • the DNS obtained by the wireless data card is reported to the PC side software, and then the PC side software is set by calling the operating system interface, and the related technology is solved.
  • the problem that the host cannot obtain the IPv6 DNS address from the terminal side can realize the simple and automatic assignment of the DNS address to the IPv6 device without changing the system architecture, which not only lowers the cost, but also improves the mobility to some extent.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Abstract

Disclosed are an IPv6 domain name server (DNS) address allocation and obtaining method and device. The method comprises: using a wireless data card to receive request information from a host, the request information being used for requesting an IPv6 DNS address; and the wireless data card allocating the IPv6 DNS address to the host via an application interface between the host and the wireless data card. The present invention solves the problem existing in the related art that the host side of an IPv6 device cannot obtain an IPv6 DNS address or needs to make a significant change to the serving system architecture when obtaining the IPv6 DNS address, such that it can now simply and easily allocate the DNS address to the IPv6 device automatically without the system architecture being changed. Thus, not only is the cost lower, but also the IPv6 networking and data transmission functions of a mobile wireless data communication device are perfected to a certain extent.

Description

IPv6域名服务器 DNS地址分配、 获取方法及装 技术领域 本发明涉及通信领域, 具体而言, 涉及一种 IPv6域名服务器 DNS地址分配、 获 取方法及装置。 背景技术  The present invention relates to the field of communications, and in particular to an IPv6 domain name server DNS address allocation and acquisition method and apparatus. Background technique
IPv6协议具有地址空间大、 其地址结构便于实现地址聚合、 支持地址自动配置、 支持主机移动, 其安全性和服务质量优于网际协议第 4版(Internet Protocol version 4, 简称为 IPv4) 等众多优点。 无论是第三代合作伙伴计划 (3rd Generation Partnership Project, 简称为 3GPP) 的通用移动通信系统 (Universal Mobile Telecommunications System,简称为 UMTS),还是 3GPP2的码分多址接入(Code Division Multiple Access, 简称为 CDMA) 2000系统, 都早已确定了网际协议第 6版(Internet Protocol version 6, 简称为 IPv6)是网络承载、业务应用的发展方向。特别是在第 3代移动通信(The Third Generation Mobile Communications, 简称为 3G) 的 IP多媒体子系统 (IP Multimedia Subsystem, 简称为 IMS) 阶段, 网络系统将全面基于或兼容 IPv6。 IPv6 已成为互联 网和移动通信网的共用基本协议。 The IPv6 protocol has a large address space, its address structure facilitates address aggregation, supports automatic address configuration, and supports host mobility. Its security and quality of service are superior to Internet Protocol version 4 (IPv4). . Whether it is the 3rd Generation Partnership Project (3GPP) Universal Mobile Telecommunications System (UMTS), or 3GPP2 Code Division Multiple Access (Code Division Multiple Access) For the CDMA) 2000 system, it has been determined that the Internet Protocol version 6 (IPv6) is the development direction of network bearers and service applications. Especially in the IP Multimedia Subsystem (IMS) stage of The Third Generation Mobile Communications (3G), the network system will be fully based or compatible with IPv6. IPv6 has become the shared basic protocol for the Internet and mobile communication networks.
IPv6地址是由前缀和接口标识组成, 其中高 64位是前缀地址, 低 64位为接口标 识。 在 3GPP规范中, 接口标识和前缀地址都是由网络分两个阶段完成分配的, 第一 个 阶 段 数 据 卡 从 网 关 通 用 无 线 分 组 业 务 支 持 节 点 ( Gateway General-Packet-Radio-Service Support Node, 简称为 GGSN) 获得其接口标识, 这一阶 段通过分组数据协议 (Packet Data Protocol, 简称为 PDP) 上下文激活的过程来完成。 第二个信令阶段, 数据卡通过使用路由请求 (Router Solicitation, 简称为 RS) 和路由 通告 (Router Advertisement, 简称为 RA) 的消息来从 GGSN获取全球 IPv6地址所需 的前缀地址。 主机的 IPv6地址有两种, 一种是链路本地地址, 它是由链路本地地址前 缀 1111111010和接口标识生成的一个链路本地单播地址, 用于局域网范围主机通信, 带有链路本地地址的 IPv6数据包不会被路由器转发到外部网络。另一种是全球单播地 址, 移动终端只能使用全球 IPv6地址和外部数据网中的其他主机进行通信。全球单播 地址有两种 自动配置方式, 一种是无状态自动配置 ( Stateless Address Auto-Configuration, 简称为 SLAAC)方式, 另一种是有状态的动态主机配置协议第 6 版 (Dynamic Host Configure Protocol Version 6, 简称为 DHCPv6) 配置方式。 在 IPv6地址分配完成后,数据卡需要获取 IPv6 DNS地址并将其分配给主机。 3GPP 定义了协议配置选项-信息单元 (Protocol Configuration Options Information Element, 简称为 PCO-IE) 方法, 使用这种方法, IPv6域名服务器(Domain Name Server, 简称 为 DNS) 地址可以从 PDP上下文激活 (PDP context activation) 信息中获得。 这种方 法对于手机 IPv6拨号来说获取 IPv6 DNS没有问题, 但是对于采用无状态自动配置的 数据卡来说则会存在问题。 因为对于点对点协议(Point to Point Protocol, 简称为 PPP) 链路方式的拨号, IPv6控制协议(IPv6 Control Protocol, 简称为 IPv6CP) 中根本没有 DNS配置参数选项, 数据卡通过 PDP PCO-IE获取 IPv6 DNS后, 无法通过 IPv6CP协 商过程将该 DNS 分配给用户终端。 而对于以太网方式的拨号, 数据卡同样只能通过 RS和 RA消息生成 IPv6地址, 无法自动将 DNS地址分配给主机。 采用相关技术中路由通告选项机制 (RA Option) 来对主机分配 IPv6 DNS时, 虽 然该路由通告选项机制由于只是扩展了邻居发现 (Neighbor Discovery, 简称为 ND) 协议自动配置机制扩展项参数, 因而不需要新增消息, 可以节省传输时延和无线带宽 资源, 但是, ND协议大多是在操作系统内实现, ND缓冲之间的同步在内核空间中, 而 DNS配置文件在用户空间中, 所以目前的 ND框架要改。 因此, 在相关技术中存在 IPv6设备的主机侧无法获取 IPv6 DNS地址, 或者获取 IPv6 DNS地址需要对服务系统架构作较大更改的问题。 发明内容 本发明提供了一种 IPv6域名服务器 DNS地址分配、 获取方法及装置, 以至少解 决相关技术中存在 IPv6设备的主机侧无法获取 IPv6 DNS地址, 或者获取 IPv6 DNS 地址需要对服务系统架构作较大更改的问题。 根据本发明的一方面, 提供了一种 IPv6域名服务器 DNS地址分配方法, 包括: 无线数据卡接收来自主机的请求信息, 其中, 所述请求信息用于请求获取所述 IPv6 DNS 地址; 所述无线数据卡通过主机与所述无线数据卡之间的应用接口将所述 IPv6 DNS地址分配给所述主机。 优选地, 在无线数据卡接收来自主机的所述请求信息之后, 还包括: 所述无线数 据卡从分组数据协议 PDP响应消息中获取所述 IPv6 DNS地址; 所述无线数据卡将获 取的所述 IPv6 DNS地址提供给所述主机与所述无线数据卡之间的应用接口。 优选地, 所述无线数据卡通过主机与所述无线数据卡之间的应用接口将所述 IPv6 DNS地址分配给所述主机包括以下至少之一: 所述无线数据卡通过主机与所述无线数 据卡之间的应用接口调用所述主机的操作系统提供的网络配置命令行工具命令接口的 方式将所述 IPv6 DNS地址分配给所述主机; 所述无线数据卡通过主机与所述无线数 据卡之间的应用接口修改所述主机的操作系统注册表中 IPv6 DNS地址信息的方式将 所述 IPv6 DNS地址分配给所述主机。 优选地, 所述应用接口包括以下至少之一: 用户接口 UI、 所述主机上用于驱动所 述无线数据卡的驱动。 优选地, 所述请求信息承载于网络驱动接口规范 NDIS命令和 /或异步传输 AT命 令。 根据本发明的另一方面, 提供了一种 IPv6域名服务器 DNS地址获取方法, 包括: 主机向无线数据卡发送请求信息, 其中, 所述请求信息用于请求获取所述 IPv6 DNS 地址; 所述主机通过主机与所述无线数据卡之间的应用接口获取所述 IPv6 DNS地址。 优选地,所述主机通过主机与所述无线数据卡之间的应用接口获取所述 IPv6 DNS 地址包括以下至少之一: 所述主机通过其与所述无线数据卡之间的应用接口调用操作 系统提供的 nesth命令接口的方式获取所述 IPv6 DNS地址; 所述主机通过其与所述无 线数据卡之间的应用接口修改操作系统注册表中 IPv6 DNS地址信息的方式获取所述 IPv6 DNS地址。 根据本发明的又一方面, 提供了一种 IPv6域名服务器 DNS地址分配装置, 包括: 接收模块, 设置为接收来自主机的请求信息, 其中, 所述请求信息用于请求获取所述 HV6 DNS地址; 分配模块,设置为通过主机与无线数据卡之间的应用接口将所述 IPv6 DNS地址分配给所述主机。 优选地, 该装置还包括: 获取模块, 设置为从分组数据协议 PDP响应消息中获取 所述 HV6 DNS地址; 提供模块, 设置为将获取的所述 IPv6 DNS地址提供给所述主机 与所述无线数据卡之间的应用接口。 根据本发明的还一方面, 提供了一种 IPv6域名服务器 DNS地址获取装置, 包括: 发送模块, 设置为向无线数据卡发送请求信息, 其中, 所述请求信息用于请求获取所 述 HV6 DNS地址; 获取模块, 设置为通过主机与所述无线数据卡之间的应用接口获 取所述 HV6 DNS地址。 通过本发明, 采用无线数据卡接收来自主机的请求信息, 其中, 请求信息用于请 求获取 IPv6 DNS 地址; 无线数据卡通过主机与无线数据卡之间的应用接口将 IPv6 DNS地址分配给主机, 解决了相关技术中存在 IPv6设备的主机侧无法获取 IPv6 DNS 地址, 或者获取 IPv6 DNS地址需要对服务系统架构作较大更改的问题, 进而实现了 在不更改系统架构的情况下, 能够简单易行自动对 IPv6设备分配 DNS地址, 不仅成 本较低, 而且在一定程度上完善了移动无线数据通信设备的 IPv6 联网及数据传输功 An IPv6 address consists of a prefix and an interface identifier. The upper 64 bits are prefix addresses and the lower 64 bits are interface identifiers. In the 3GPP specifications, the interface identifier and the prefix address are all allocated by the network in two phases. The first phase of the data card is from the Gateway General-Packet-Radio-Service Support Node (Gateway General-Packet-Radio-Service Support Node, referred to as GGSN) Obtains its interface identifier. This phase is completed by the Packet Data Protocol (PDP) context activation process. In the second signaling phase, the data card obtains the prefix address required for the global IPv6 address from the GGSN by using a message such as a Router Solicitation (RS) and a Router Advertisement (RA). There are two types of IPv6 addresses of the host. One is the link-local address, which is a link-local unicast address generated by the link-local address prefix 1111111010 and the interface identifier. It is used for LAN-wide host communication with link-local. The IPv6 packet of the address is not forwarded by the router to the external network. The other is a global unicast address where the mobile terminal can only communicate with other hosts in the external data network using global IPv6 addresses. There are two automatic configuration methods for global unicast addresses. One is Stateless Address Auto-Configuration (SLAAC), and the other is Dynamic Host Configure Protocol (Real Host Host Protocol). Version 6, referred to as DHCPv6) configuration mode. After the IPv6 address assignment is completed, the data card needs to obtain an IPv6 DNS address and assign it to the host. 3GPP defines the Protocol Configuration Options Information Element (PCO-IE) method. With this method, the IPv6 Domain Name Server (DNS) address can be activated from the PDP context (PDP context). Activation) Obtained in the information. This method has no problem in obtaining IPv6 DNS for mobile IPv6 dialing, but there is a problem with data cards that use stateless autoconfiguration. Because there is no DNS configuration parameter option in the IPv6 Control Protocol (IPv6CP) for the point-to-point protocol (PPP) link mode, the data card obtains the IPv6 DNS through the PDP PCO-IE. After that, the DNS cannot be assigned to the user terminal through the IPv6CP negotiation process. For Ethernet dialing, the data card can only generate IPv6 addresses through RS and RA messages, and cannot automatically assign DNS addresses to hosts. When the IPv6 DNS is assigned to the host by using the RA Option protocol in the related art, although the route advertisement option mechanism only extends the Neighbor Discovery (ND) protocol automatic configuration mechanism extension parameter, Need to add new messages, can save transmission delay and wireless bandwidth resources, however, the ND protocol is mostly implemented in the operating system, the synchronization between the ND buffers is in the kernel space, and the DNS configuration file is in the user space, so the current The ND framework needs to be changed. Therefore, in the related art, the host side of the IPv6 device cannot obtain an IPv6 DNS address, or obtaining an IPv6 DNS address requires a major change to the service system architecture. SUMMARY OF THE INVENTION The present invention provides an IPv6 domain name server DNS address allocation and acquisition method and device, so as to at least solve the problem that the host side of the IPv6 device in the related art cannot obtain an IPv6 DNS address, or obtain an IPv6 DNS address needs to compare the service system architecture. Big change problem. According to an aspect of the present invention, a method for allocating a DNS address of an IPv6 domain name server is provided, including: receiving, by a wireless data card, request information from a host, where the request information is used to request acquisition of the IPv6 DNS address; The data card assigns the IPv6 DNS address to the host through an application interface between the host and the wireless data card. Preferably, after the wireless data card receives the request information from the host, the method further includes: the wireless data card acquiring the IPv6 DNS address from a packet data protocol PDP response message; the wireless data card An IPv6 DNS address is provided to an application interface between the host and the wireless data card. Preferably, the wireless data card allocates the IPv6 DNS address to the host by using an application interface between the host and the wireless data card, and includes at least one of the following: the wireless data card passes the host and the wireless number Assigning the IPv6 DNS address to the host according to a network configuration command line tool command interface provided by an operating system of the host by an application interface between the cards; the wireless data card passes the host and the wireless data card The manner in which the application interface modifies the IPv6 DNS address information in the operating system registry of the host assigns the IPv6 DNS address to the host. Preferably, the application interface comprises at least one of the following: a user interface UI, a driver on the host for driving the wireless data card. Preferably, the request information is carried by a network driver interface specification NDIS command and/or an asynchronous transmission AT command. According to another aspect of the present invention, a method for obtaining an IPv6 domain name server DNS address is provided, including: a host sending request information to a wireless data card, wherein the request information is used to request to obtain the IPv6 DNS address; Obtaining the IPv6 DNS address by using an application interface between the host and the wireless data card. Preferably, the acquiring, by the host, the IPv6 DNS address by using an application interface between the host and the wireless data card comprises at least one of: the host invokes an operating system through an application interface between the host and the wireless data card Obtaining the IPv6 DNS address by means of the provided NSTH command interface; the host acquires the IPv6 DNS address by modifying an IPv6 DNS address information in an operating system registry by using an application interface between the wireless data card and the wireless data card. According to still another aspect of the present invention, an IPv6 domain name server DNS address allocation apparatus is provided, including: a receiving module, configured to receive request information from a host, where the request information is used to request to acquire the HV6 DNS address; And an allocation module configured to allocate the IPv6 DNS address to the host through an application interface between the host and the wireless data card. Preferably, the apparatus further includes: an obtaining module, configured to obtain the HV6 DNS address from a packet data protocol PDP response message; and a providing module, configured to provide the obtained IPv6 DNS address to the host and the wireless Application interface between data cards. According to still another aspect of the present invention, an IPv6 domain name server DNS address obtaining apparatus is provided, including: a sending module, configured to send request information to a wireless data card, wherein the request information is used to request to acquire the HV6 DNS address And an obtaining module, configured to obtain the HV6 DNS address by using an application interface between the host and the wireless data card. According to the present invention, the request information from the host is received by the wireless data card, wherein the request information is used to request to obtain an IPv6 DNS address; and the wireless data card passes the IPv6 through an application interface between the host and the wireless data card. The DNS address is assigned to the host, which solves the problem that the host side of the IPv6 device in the related technology cannot obtain the IPv6 DNS address, or obtains the IPv6 DNS address, and needs to make major changes to the service system architecture, thereby realizing the situation without changing the system architecture. Under the same, it is easy and automatic to assign a DNS address to an IPv6 device, which not only has a low cost, but also improves the IPv6 networking and data transmission function of the mobile wireless data communication device to a certain extent.
附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中- 图 1是根据本发明实施例的 IPv6域名服务器 DNS地址分配方法的流程图; 图 2是根据本发明实施例的 IPv6域名服务器 DNS地址获取方法的流程图; 图 3是根据本发明实施例的 IPv6域名服务器 DNS地址分配装置的结构框图; 图 4是根据本发明实施例的 IPv6域名服务器 DNS地址分配装置的优选结构框图; 图 5是根据本发明实施例的 IPv6域名服务器 DNS地址的获取装置的结构框图; 图 6是根据本发明实施例的无线数据卡 IPv6拨号 DNS地址自动分配装置的结构 框图; 图 7是根据本发明实施例的无线数据卡 PPP链路 IPv6拨号 DNS地址自动分配方 法的流程图; 图 8是根据本发明实施例的无线数据卡以太网链路 IPv6拨号 DNS地址自动分配 方法的流程图。 具体实施方式 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相 互组合。 下面将参考附图并结合实施例来详细说明本发明。 在本发明实施例中提供了一种 IPv6域名服务器 DNS地址分配方法, 图 1是根据 本发明实施例的 IPv6域名服务器 DNS地址分配方法的流程图, 如图 1所示, 该方法 包括: 步骤 S102, 无线数据卡接收来自主机的请求信息, 其中, 请求信息用于请求获取 IPv6 DNS 地址, 例如, 该请求信息可以承载于网络驱动接口规范 (Network Driver Interface, 简称为 NDIS)命令和 /或异步传输 (Asynchronous Transmission, 简称为 AT) 命令; 步骤 S104, 无线数据卡通过主机与该无线数据卡之间的应用接口将 IPv6 DNS地 址分配给主机。 通过上述步骤, 采用无线数据卡接收来自主机的用于请求获取 IPv6 DNS地址的 请求信息后, 无线数据卡通过主机与无线数据卡之间的应用接口将 IPv6 DNS地址分 配给主机, 相对于现有技术不能为主机分配 IPv6 DNS地址, 或者需要修改服务系统 架构才能给主机分配 IPv6 DNS地址, 采用上述步骤, 不需要更改服务系统的架构, 通过承载于主机与无线数据卡之间的应用来实现 IPv6 DNS地址的分配, 不仅解决了 相关技术中存在的 IPv6设备的主机侧无法获取 IPv6 DNS地址, 或者获取 IPv6 DNS 地址需要对服务系统架构作较大更改的问题,进而实现了在不更改系统架构的情况下, 能够简单易行自动对 IPv6设备分配 DNS地址, 不仅成本较低, 而且在一定程度上完 善了移动无线数据通信设备的 IPv6联网及数据传输功能。 无线数据卡通过主机与该无线数据卡之间的应用接口将 IPv6 DNS地址分配给主 机时, 该应用接口获取到该 IPv6 DNS地址的方式可以多种, 例如, 在无线数据卡接 收来自主机的请求信息之后,该无线数据卡可以从分组数据协议 PDP响应消息中获取 IPv6 DNS地址; 无线数据卡将获取的 IPv6 DNS地址提供给主机与无线数据卡之间的 应用接口。 需要说明的是, 上述无线数据卡可以承载于多种网络设备, 例如, IPv6路 由器、 IPv6移动终端等, 在此并不限定。 较优地, 在无线数据卡接收来自主机的请求信息之前, 需要获取到 IPv6地址, 获 取 IPv6地址的方式也可以多种, 例如, 无线数据卡首先从 PDP激活响应消息中获取 IPv6地址接口标识;无线数据卡完成与主机之间的 IPv6地址协商过程;无线数据卡通 过路由通告协商将网络前缀地址分配给主机。其中,该地址协商过程包括:通过 IPCPv6 协商过程判断接口标识与主机 IPv6配置请求中的接口标识是否一致,或通过地址冲突 检测过程判断主机请求的接口标识是否唯一。该方法提供了 IPv6地址协商的方式, 使 得系统能够兼容 PPP链路拨号方式或者以太网链路拨号方式, 可以根据具体需求灵活 选择, 提高了系统的兼容性。 另外, 采用主机与该无线数据卡之间的应用接口将 IPv6 DNS地址分配给主机也 可以多种, 例如: 无线数据卡可以通过主机与无线数据卡之间的应用接口调用主机的 操作系统提供的 nesth命令接口的方式将 IPv6 DNS地址分配给主机; 又例如, 无线数 据卡可以通过主机与无线数据卡之间的应用接口修改主机的操作系统注册表中 IPv6 DNS地址信息的方式将 IPv6 DNS地址分配给主机。该方法采用调用 nesth脚本或者修 改注册表的方式, 相对于相关技术中更改服务系统架构, 该 IPv6 DNS地址分配的方 法更简便, 易于实现。 需要指出的是,上述的应用接口可以包括以下至少之一:用户接口(User Interface, 简称为 UI)、 主机上用于驱动无线数据卡的驱动。 可以根据请求地址分配的拨号方式 不同, 选用不同的应用接口来实现 IPv6 DNS地址的分配。 例如, 上述用户接口 UI可 以用于提供用户与数据卡, 用户与主机、 以及数据卡与主机之间控制信令的交互, 该 驱动可以是主机上的各种驱动, 用于实现数据卡与主机之间的交互。 上述两种较优的 应用接口形式, 提高了系统的可操作性。 需要说明的是, 在本实施例中, 控制信令的具体内容并不限定, 因为任何能够应 用在上述方法中的控制信令都是能够实现上述方法中控制信令所起的作用的, 都应当 在本申请的保护范围之内。 在本发明实施例还提供了一种 IPv6域名服务器 DNS地址获取方法, 图 2是根据 本发明实施例的 IPv6域名服务器 DNS地址获取方法的流程图, 如图 2所示, 该流程 包括如下步骤: 步骤 S202,主机向无线数据卡发送请求信息,其中,该请求信息用于请求获取 IPv6 DNS地址。 步骤 S204, 主机通过主机与该无线数据卡之间的应用接口获取 IPv6 DNS地址。 通过上述步骤, 采用主机向无线数据卡发送用于请求获取 IPv6 DNS地址的请求 信息后, 主机通过主机与无线数据卡之间的应用接口获取 IPv6 DNS地址, 采用上述 步骤, 对于主机侧来说, 也实现了在不需要更改服务系统的架构的情况下, 通过承载 于主机与无线数据卡之间的应用来实现 IPv6 DNS地址的分配, 不仅解决了相关技术 中存在的 IPv6设备的主机侧无法获取 IPv6 DNS地址, 或者获取 IPv6 DNS地址需要 对服务系统架构作较大更改的问题, 进而实现了在不更改系统架构的情况下, 能够简 单易行自动对 IPv6设备分配 DNS地址, 不仅成本较低, 而且在一定程度上完善了移 动无线数据通信设备的 IPv6联网及数据传输功能。 优选地, 主机通过主机与无线数据卡之间的应用接口获取 IPv6 DNS地址也可以 选择采用以下处理方式: (1 ) 主机通过其与无线数据卡之间的应用接口调用操作系统 提供的 nesth命令接口的方式获取 IPv6 DNS地址; (2)主机通过其与无线数据卡之间 的应用接口修改操作系统注册表中 IPv6 DNS地址信息的方式获取 IPv6 DNS地址。 在本实施例中还提供了一种 IPv6域名服务器 DNS地址分配装置, 该装置用于实 现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语"模 块"可以实现预定功能的软件和 /或硬件的组合。 尽管以下实施例所描述的装置较佳地 以软件来实现, 但是硬件, 或者软件和硬件的组合的实现也是可能并被构想的。 图 3是根据本发明实施例的 IPv6域名服务器 DNS地址分配装置的结构框图, 如 图 3所示, 该装置包括: 接收模块 32和分配模块 34, 下面对该装置进行说明。 接收模块 32, 设置为接收来自主机的请求信息, 其中, 该请求信息用于请求获取 HV6 DNS地址; 分配模块 34, 耦合至接收模块 32, 设置为通过主机与该无线数据卡 之间的应用接口将 IPv6 DNS地址分配给主机。 图 4是根据本发明实施例的 IPv6域名服务器 DNS地址分配装置的优选结构框图, 如图 4所示, 该装置除包括图 3的所有模块外, 还包括: 获取模块 36和提供模块 38, 下面对该获取模块 36和提供模块 38进行说明。 获取模块 36, 耦合至接收模块 32, 设置为从分组数据协议 PDP响应消息中获取BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a flowchart of a method for allocating a DNS address of an IPv6 domain name server according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for acquiring a DNS address of an IPv6 domain name server according to an embodiment of the present invention; FIG. 4 is a block diagram showing a preferred structure of an IPv6 domain name server DNS address allocating apparatus according to an embodiment of the present invention; FIG. 5 is a block diagram of an IPv6 domain name server DNS address according to an embodiment of the present invention; FIG. 6 is a structural block diagram of an apparatus for automatically assigning a wireless data card IPv6 dialing DNS address according to an embodiment of the present invention; FIG. 7 is an automatic IPv6 dialing DNS address of a wireless data card PPP link according to an embodiment of the present invention; Flowchart of the allocation method; FIG. 8 is a flowchart of a method for automatically allocating an IPv6 dialing DNS address of a wireless data card Ethernet link according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. In the embodiment of the present invention, a method for allocating a DNS address of an IPv6 domain name server is provided. FIG. 1 is a flowchart of a method for allocating a DNS address of an IPv6 domain name server according to an embodiment of the present invention. As shown in FIG. Step S102: The wireless data card receives the request information from the host, where the request information is used to request to obtain an IPv6 DNS address. For example, the request information may be carried in a Network Driver Interface (NDIS) command and/or Asynchronous transmission (AT) command; Step S104, the wireless data card allocates an IPv6 DNS address to the host through an application interface between the host and the wireless data card. After receiving the request information for requesting acquisition of the IPv6 DNS address from the host by using the wireless data card, the wireless data card allocates the IPv6 DNS address to the host through the application interface between the host and the wireless data card, as compared with the existing The technology cannot assign an IPv6 DNS address to the host, or the service system architecture needs to be modified to assign an IPv6 DNS address to the host. The above steps do not need to change the architecture of the service system, and IPv6 is implemented by an application carried between the host and the wireless data card. The allocation of the DNS address not only solves the problem that the host side of the IPv6 device in the related technology cannot obtain the IPv6 DNS address, or obtains the IPv6 DNS address, and needs to make major changes to the service system architecture, thereby implementing the system architecture without changing the system architecture. In this case, it is easy and automatic to assign a DNS address to an IPv6 device, which not only has a low cost, but also improves the IPv6 networking and data transmission functions of the mobile wireless data communication device to a certain extent. When the wireless data card allocates an IPv6 DNS address to the host through an application interface between the host and the wireless data card, the application interface can obtain the IPv6 DNS address in multiple ways, for example, receiving a request from the host on the wireless data card. After the information, the wireless data card can obtain an IPv6 DNS address from the packet data protocol PDP response message; the wireless data card provides the obtained IPv6 DNS address to the application interface between the host and the wireless data card. It should be noted that the foregoing wireless data card can be carried on multiple network devices, for example, an IPv6 router, an IPv6 mobile terminal, and the like, and is not limited herein. Preferably, before the wireless data card receives the request information from the host, the IPv6 address needs to be obtained, and the method for obtaining the IPv6 address may be multiple. For example, the wireless data card first obtains the IPv6 address interface identifier from the PDP activation response message. The wireless data card completes the IPv6 address negotiation process with the host; the wireless data card assigns the network prefix address to the host through route advertisement negotiation. The address negotiation process includes: determining, by the IPCPv6 negotiation process, whether the interface identifier is consistent with the interface identifier in the host IPv6 configuration request, or determining whether the interface identifier requested by the host is unique through the address conflict detection process. The method provides an IPv6 address negotiation mode, which enables the system to be compatible with the PPP link dialing mode or the Ethernet link dialing mode, and can be flexibly selected according to specific requirements, thereby improving system compatibility. In addition, the IPv6 DNS address can be assigned to the host by using an application interface between the host and the wireless data card. For example, the wireless data card can invoke the host through an application interface between the host and the wireless data card. The nesth command interface provided by the operating system assigns an IPv6 DNS address to the host. For example, the wireless data card can modify the IPv6 DNS address information in the operating system registry of the host through the application interface between the host and the wireless data card. The IPv6 DNS address is assigned to the host. The method adopts the method of calling the nest script or modifying the registry. Compared with the related technology, the method of assigning the IPv6 DNS address is simpler and easier to implement. It should be noted that the foregoing application interface may include at least one of the following: a User Interface (UI), and a driver for driving a wireless data card on the host. The dialing mode assigned according to the request address may be different, and different application interfaces are selected to implement IPv6 DNS address allocation. For example, the user interface UI may be used to provide user and data card, user and host, and control signaling interaction between the data card and the host. The driver may be various drivers on the host for implementing the data card and the host. The interaction between. The above two preferred application interface forms improve the operability of the system. It should be noted that, in this embodiment, the specific content of the control signaling is not limited, because any control signaling that can be applied in the foregoing method is capable of implementing the function of the control signaling in the foregoing method, It should be within the scope of protection of this application. The embodiment of the present invention further provides a method for obtaining a DNS address of an IPv6 domain name server. FIG. 2 is a flowchart of a method for obtaining a DNS address of an IPv6 domain name server according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps: Step S202: The host sends request information to the wireless data card, where the request information is used to request to obtain an IPv6 DNS address. Step S204: The host obtains an IPv6 DNS address by using an application interface between the host and the wireless data card. After the host sends the request information for requesting the acquisition of the IPv6 DNS address to the wireless data card, the host obtains the IPv6 DNS address through the application interface between the host and the wireless data card, and uses the above steps. It also realizes that the IPv6 DNS address is allocated by the application between the host and the wireless data card without changing the architecture of the service system, which not only solves the problem that the host side of the IPv6 device existing in the related art cannot be obtained. An IPv6 DNS address or an IPv6 DNS address requires a major change to the service system architecture. In this way, the DNS address can be easily and automatically assigned to the IPv6 device without changing the system architecture. Moreover, the IPv6 networking and data transmission functions of the mobile wireless data communication device are improved to some extent. Preferably, the host obtains an IPv6 DNS address through an application interface between the host and the wireless data card, and may also adopt the following processing manner: (1) The host invokes an operating system through an application interface between the host and the wireless data card. The nesth command interface is used to obtain the IPv6 DNS address. (2) The host obtains the IPv6 DNS address by modifying the IPv6 DNS address information in the operating system registry through the application interface between the host and the wireless data card. In this embodiment, an IPv6 domain name server DNS address allocation device is also provided. The device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and conceivable. FIG. 3 is a structural block diagram of an IPv6 domain name server DNS address allocation apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes: a receiving module 32 and an allocating module 34. The apparatus will be described below. The receiving module 32 is configured to receive request information from the host, where the request information is used to request to obtain an HV6 DNS address; the assigning module 34 is coupled to the receiving module 32, and configured to pass the application interface between the host and the wireless data card. Assign an IPv6 DNS address to the host. FIG. 4 is a block diagram of a preferred structure of an IPv6 domain name server DNS address allocation apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes: an acquisition module 36 and a providing module 38, in addition to all the modules of FIG. The acquisition module 36 and the provision module 38 are described. The obtaining module 36 is coupled to the receiving module 32 and configured to obtain from the packet data protocol PDP response message.
HV6 DNS地址; 提供模块 38, 耦合至获取模块 36与分配模块 34之间, 设置为将获 取的 IPv6 DNS地址提供给主机与无线数据卡之间的应用接口。 图 5是根据本发明实施例的 IPv6域名服务器 DNS地址的获取装置的结构框图, 如图 5所示, 该装置包括: 发送模块 52和获取模块 54, 其中, 发送模块 52, 设置为 向无线数据卡发送请求信息, 其中, 请求信息用于请求获取 IPv6 DNS地址; 获取模 块 54, 耦合至发送模块 52, 设置为通过主机与无线数据卡之间的应用获取 IPv6 DNS 地址。 通过上述实施例及优选实施方式, 提供了一种更为简单的实现方案是从终端侧获 取到 DNS信息之后, 通过 PC侧软件直接设置到主机侧, 从而完成 IPv6 DNS地址的 自动配置。 为了使本发明的技术方案和实现方法更加清楚, 下面将结合优选的实施例对其实 现过程进行详细描述。 本发明优选实施例提供了一种无线数据卡 IPv6 DNS地址自动分配方法, 该方法 包括: 步骤 1, IPv6拨号时,数据卡通过 PCO-IE方法在 PDP激活过程中向网络请求 IPv6 的 DNS信息。 步骤 2, 连接建立成功后数据卡和主机之间会进行 IPv6地址协商, 同时 PC侧软 件 (UI或驱动) 下发控制指令给数据卡获取 DNS地址。 步骤 3, 数据卡从网络下发的 PDP激活响应消息中获取到 DNS地址后上报给 PC 侧软件。 步骤 4, PC侧软件调用操作系统的接口将 DNS地址设置给主机。 步骤 1中的 PDP激活过程,是指无线数据卡收到主机发来的拨号请求和参数信息 后, 与移动通信网络之间建立的分组数据传输链路的过程。无线数据卡将 PDP连接的 参数信息发往网络侧进行协商, 网络侧在对参数信息确认后, 以 PDP激活响应消息发 给移动终端, 消息中携带协商成功的分组传输链路的服务质量 (Quality of Server, 简 称为 QoS ), IPv6地址以及 DNS地址等信息。 步骤 2中的 IPv6地址协商过程,是指数据卡在与网络侧成功建立无线连接链路后, 将从网络获取的 IPv6地址和 DNS地址等参数信息分配给主机的过程。对于 IPv6拨号, 由于无线数据卡不支持 DHCPv6 Server功能,因此 IPv6地址协商采用的是无状态地址 地自动配置 ( SLAAC )。 PPP链路方式的拨号是通过 IPCPv6协商获取接口标识地址, 之后再通过路由器通告消息(例如, RS/RA)获取前缀地址, 从而生成全局 IPv6地址。 以太网链路方式的拨号则直接采用以太网 IPv6地址的分配方式,通过路由器通告消息 (例如, RS/RA) 获取前缀地址, 然后使用 MAC地址或者随机生成接口标识之后组 成全局 IPv6地址。 在上述方法中, 数据卡通过 PCO-IE方法从网络侧获取到 DNS地址之后, 可以通 过控制指令将 DNS地址上报给 UI或者驱动。 对于 PPP链路方式的拨号, 数据卡可以 通过异步传输命令将 DNS上报给 UI, 之后 UI调用操作系统的 netsh配置脚本将 DNS 设置给 PC。 对于以太网方式的拨号, 数据卡可以通过 AT命令或者其他控制指令的方 式将 DNS地址上报给 UI或者驱动, UI或驱动可以通过调用操作系统的 netsh配置脚 本或者修改操作系统注册表中 IPv6 DNS信息的方式将 DNS地址设置给 PC。 通过上述技术方案, 可实现 IPv6 DNS地址的自动分配, 该方案简单易行, 适用 于所有采用 IPv6无状态自动地址分配方式的无线数据终端。 图 6是根据本发明实施例的无线数据卡 IPv6拨号 DNS地址自动分配装置的结构 框图, 如图 6所示, 该结构包括: 拨号模块 60 (与上述获取模块 36存在相同功能)、 IP地址信息处理模块 62、 控制指令处理模块 64 (IP地址信息处理模块 62与控制指令 处理模块 64之和与上述提供模块 38执行的功能相当)、 PC侧软件模块 66 (与上述应 用接口模块对应) 和主机 68, 下面对该装置的模块进行说明。 拨号模块 60, 位于数据卡中, 设置为在 IPv6拨号连接建立时, 并在数据卡接收 到主机发送的拨号请求之后, 发起 PDP激活过程并通过 PCO-IE方法从网络侧获取到 IPv6 DNS地址。 The HV6 DNS address is provided between the obtaining module 36 and the allocating module 34, and is configured to provide the obtained IPv6 DNS address to an application interface between the host and the wireless data card. FIG. 5 is a structural block diagram of an apparatus for acquiring an IPv6 domain name server DNS address according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes: a sending module 52 and an obtaining module 54, wherein the sending module 52 is configured to transmit wireless data. The card sends request information, where the request information is used to request to obtain an IPv6 DNS address; the obtaining module 54 is coupled to the sending module 52, and configured to obtain an IPv6 DNS address by using an application between the host and the wireless data card. The above-mentioned embodiment and the preferred embodiment provide a simpler implementation. After obtaining the DNS information from the terminal side, the PC side software is directly set to the host side, thereby completing the automatic configuration of the IPv6 DNS address. In order to make the technical solutions and implementation methods of the present invention clearer, the implementation process will be described in detail below in conjunction with the preferred embodiments. A preferred embodiment of the present invention provides a method for automatically allocating an IPv6 DNS address of a wireless data card, the method comprising: Step 1. When IPv6 dials, the data card requests IPv6 DNS information from the network during the PDP activation process through the PCO-IE method. Step 2: After the connection is successfully established, the IPv6 address negotiation is performed between the data card and the host, and the PC side software (UI or driver) issues a control command to the data card to obtain the DNS address. Step 3: After obtaining the DNS address from the PDP activation response message sent by the network, the data card is reported to the PC side software. Step 4: The PC side software calls the interface of the operating system to set the DNS address to the host. The PDP activation process in step 1 refers to the process of the packet data transmission link established between the wireless data card and the mobile communication network after receiving the dialing request and parameter information sent by the host. The wireless data card sends the parameter information of the PDP connection to the network side for negotiation. After confirming the parameter information, the network side sends the PDP activation response message to the mobile terminal, and the message carries the quality of service of the successfully negotiated packet transmission link (Quality). Of Server, referred to as QoS), IPv6 address, and DNS address. The IPv6 address negotiation process in step 2 refers to the process of assigning parameter information such as an IPv6 address and a DNS address obtained from the network to the host after the data card successfully establishes a wireless connection link with the network side. For IPv6 dialing, since the wireless data card does not support the DHCPv6 Server function, IPv6 address negotiation uses stateless address autoconfiguration (SLAAC). Dialing in the PPP link mode obtains the interface identifier address through IPCPv6 negotiation, and then obtains the prefix address through the router advertisement message (for example, RS/RA) to generate a global IPv6 address. In the Ethernet link mode, the IPv6 address allocation method is adopted. The router advertisement message (for example, RS/RA) is used to obtain the prefix address, and then the MAC address or the interface identifier is randomly generated to form a global IPv6 address. In the above method, after the data card obtains the DNS address from the network side through the PCO-IE method, the DNS address can be reported to the UI or the driver through the control command. For dialing in the PPP link mode, the data card can report the DNS to the UI through the asynchronous transfer command. Then the UI calls the operating system's netsh configuration script to set the DNS to the PC. For Ethernet dialing, the data card can report the DNS address to the UI or driver through the AT command or other control commands. The UI or driver can invoke the operating system's netsh configuration script or modify the IPv6 DNS information in the operating system registry. The way to set the DNS address to the PC. Through the above technical solution, the automatic allocation of the IPv6 DNS address can be realized, and the solution is simple and feasible, and is applicable to all wireless data terminals adopting the IPv6 stateless automatic address allocation mode. FIG. 6 is a structural block diagram of an apparatus for automatically allocating an IPv6 dialing DNS address of a wireless data card according to an embodiment of the present invention. As shown in FIG. 6, the structure includes: a dialing module 60 (having the same function as the obtaining module 36), and IP address information. The processing module 62, the control instruction processing module 64 (the sum of the IP address information processing module 62 and the control instruction processing module 64 is equivalent to the function performed by the providing module 38), the PC side software module 66 (corresponding to the above application interface module), and the host 68. The module of the device will be described below. The dialing module 60 is located in the data card, and is configured to initiate a PDP activation process and obtain an IPv6 DNS address from the network side through the PCO-IE method after the IPv6 dialup connection is established, and after the data card receives the dialing request sent by the host.
IP地址信息处理模块 62, 设置为在连接建立成功之后, 主机通过无状态自动配置 生成 IPv6地址, 并且, 在数据卡接收到主机发送的用于获取 IPv6 DNS地址的控制指 令之后, 从 PDP激活消息中取出 DNS地址并提供给控制指令处理模块 64。 控制指令处理模块 64,设置为在接收到 IP地址信息处理模块 62提供的 IPv6 DNS 地址之后, 将该 IPv6 DNS地址返回给 PC侧软件模块 66。 The IP address information processing module 62 is configured to: after the connection is successfully established, the host generates an IPv6 address by stateless automatic configuration, and after the data card receives the control instruction sent by the host for acquiring the IPv6 DNS address, the PDP activation message is sent. The DNS address is retrieved and provided to the control instruction processing module 64. The control instruction processing module 64 is configured to return the IPv6 DNS address to the PC side software module 66 after receiving the IPv6 DNS address provided by the IP address information processing module 62.
PC侧软件模块 66, 设置为在获取到 IPv6 DNS地址之后, 通过调用操作系统提供 的 netsh命令接口或者修改操作系统注册表中 IPv6 DNS信息的方式将 IPv6 DNS地址 设置给主机。 图 7是根据本发明实施例的无线数据卡 PPP链路 IPv6拨号 DNS地址自动分配方 法的流程图, 如图 7所示, 该方法包括: 步骤 S702, 数据卡完成 PDP激活过程。 数据卡收到 IPv6拨号的指令后, 拨号模 块在空口上发起 PDP激活过程。 将向 SGSN发送激活 PDP上下文 (即 PDP Context) 的请求信息, 信息中包含如下信息: 接入点名称 (Access Point Name, 简称为 APN)、 PDP类型、 PDP地址、竞争握手验证协议(Challenge Handshake Authentication Protocol, 简称为 CHAP)或密码认证协议(Password Authentication Protocol, 简称为 PAP)认证 信息、 IPv6 DNS等信息。 其中, PDP类型为 IPv6, PDP地址为空, 代表请求动态分 配 IP地址。 GGSN收到请求后,通过本地 /动态主机配置协议( Dynamic Host Configure Protocol, 简称为 DHCP) /远程认证拨号用户服务 ( Remote Authentication Dial-In User Service, 简称为 RADIUS )对移动终端进行签权并分配 IPv6地址或者地址前缀, 以及 其他参数, 如 QoS参数、 IPv6 DNS服务器地址等, 并将鉴权结果以及各项参数信息 封装在激活 PDP上下文接受消息里, 发回给数据卡。 PDP激活过程完成。 步骤 S704, PDP激活完成后,数据卡完成 IPCPv6协商。数据卡从接收到的 PDP IPv6 地址中取出接口标识但忽略该地址前缀。 如果取出的接口标识与主机在 HV6CP配置 请求中携带的相同, 数据卡将会给主机发送 IPv6 控制协议配置确认 (HV6CP Configure-Ack) 消息; 如果取出的接口标识与主机在 HV6CP配置请求中携带的不相 同, 数据卡将会给主机发送携带该接口标识的 IPv6 控制协议配置否定应答 (HV6CP Configure-Nak) 消息, 主机将会从 IPv6CP Configure-Nak消息中取出新分配的接口标 识, 然后再向数据卡发送 IPv6控制协议配置请求(IPv6CP Configure-Request)消息请 求新分配的接口标识, 最后数据卡会给主机发送 IPv6CP Configure-Ack消息, 同意使 用新分配的接口标识。 步骤 S706, 路由器通告协商完成, 主机生成 IPv6地址。 当主机接受了数据卡给 的接口标识后, 建立从主机到 GGSN 和外部 Internet服务提供商 (Internet Service Provider, 简称为 ISP) /内部网 (Intranet) 的用户面链路, 主机在该链路上使用路由器 请求 (即 RS) 和路由器通告 (即 RA) 的消息从 GGSN获取全球 IPv6地址所需的地 址前缀。 获取到网络前缀地址后, 主机通过无状态自动配置生成全球 IPv6地址, IPv6 地址协商完成。 步骤 S708, UI下发 AT命令获取 DNS地址。 IPv6地址协商完成之后, UI向数据 卡下发 AT命令以获取网络分配的 IPv6 DNS地址。 步骤 S710, 数据卡上报 DNS地址。 数据卡收到下发的获取 IPv6 DNS地址的 AT 命令后, IPv6 DNS信息处理模块从 PDP激活消息中取出 IPv6 DNS地址, 并将该地址 提供给 AT命令处理模块, AT命令处理模块将 IPv6 DNS地址返回给 UI; 步骤 S712, 主机设置 DNS地址。 UI从数据卡返回的 AT命令中获取到 IPv6 DNS 地址之后,调用操作系统提供的 netsh网络命令将 IPv6 DNS地址设置给主机, IPv6 DNS 地址分配完成。 图 8是根据本发明实施例的无线数据卡以太网链路 IPv6拨号 DNS地址自动分配 方法的流程图, 如图 8所示, 该方法包括: 步骤 S802, 数据卡完成 PDP激活过程。 数据卡收到 IPv6拨号的指令后, 拨号模 块在空口上发起 PDP激活过程, 向 SGSN发送激活 PDP上下文 (即 PDP Context) 的 请求信息, 信息中包含如下信息: APN、 PDP类型、 PDP地址、 CHAP或 PAP认证信 息、 IPv6 DNS等信息 (例如, 使用 PCO-IE方法)。 其中, PDP类型为 IPv6, PDP地 址为空, 代表请求动态分配 IP地址。 GGSN 收到请求后, 通过本地 /DHCP/RADIUS 对移动终端进行签权并分配 IPv6地址或者地址前缀,以及其他参数,如 QoS参数、 IPv6 DNS服务器地址等,并将鉴权结果以及各项参数信息封装在激活 PDP上下文接受消息 里, 发回给数据卡。 PDP激活过程完成。 步骤 S804,发送路由器通告及地址冲突检测。主机检测到以太网设备端口 UP (即, 可以正常传输数据) 后, 就会启动地址冲突检测。 主机发送邻居请求消息到数据卡尝 试验证其接口标识是否唯一, 如果数据卡发现地址主机请求的接口标识与一个正在使 用的存在冲突, 那么数据卡就会给主机发送邻居通告指示重复地址检测失败, 此时主 机会自己生成一个新的接口标识重新发送邻居请求消息。 如果地址冲突检测正常, 主 机会发送路由器请求 (即 RS) 消息到数据卡。 步骤 S806, 路由器通告协商完成, 主机生成 IPv6地址。 数据卡收到路由请求后 会将 GGSN分配的 IPv6前缀通过路由通告消息进行响应。 获取到网络前缀地址之后, 主机通过无状态自动配置随机生成接口标识地址组成全球 IPv6地址, IPv6地址协商完 成。 步骤 S808, 主机下发控制指令获取 DNS地址。 IPv6地址协商完成之后, PC侧软 件 (例如, UI或者驱动) 向数据卡下发控制指令以获取网络分配的 IPv6 DNS地址。 步骤 S810, 数据卡上报 DNS地址。数据卡收到下发的获取 IPv6 DNS地址的控制 指令后, IPv6 DNS信息处理模块从 PDP激活消息中取出 IPv6 DNS地址, 并将该地址 提供给控制指令处理模块, 控制指令模块将 IPv6 DNS 地址返回给微型个人电脑 (Personal Computer, 简称为 PC) 侧软件。 步骤 S812,主机设置 DNS地址。 PC侧软件从数据卡返回的控制指令中获取到 IPv6 DNS地址之后, 通过调用操作系统提供的 netsh命令接口或者修改操作系统注册表中 IPv6 DNS信息的方式将 IPv6 DNS地址设置给主机, IPv6 DNS地址分配完成。 需要说明的是, 在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的 计算机系统中执行, 并且, 虽然在流程图中示出了逻辑顺序, 但是在某些情况下, 可 以以不同于此处的顺序执行所示出或描述的步骤。 本发明的实施例提供了一种无线数据卡 IPv6域名服务器 (即 DNS) 地址的自动 分配方法。 对于支持 IPv6功能的无线数据卡, 其 IPv6地址分配方式主要有有状态地 址自动配置 (即 DHCPv6)和无状态地址地自动配置 (即 SLAAC)两种方式。 采用无 状态地址自动分配时, 主机侧只能动态的生成 IPv6和网关地址, 无法自动从终端侧获 取 DNS地址。 通过上述实施例及优选实施方式, 采用将无线数据卡获取到的 DNS上 报给 PC侧软件, 然后由 PC侧软件通过调用操作系统接口进行设置, 解决了相关技术 中主机无法从终端侧获取 IPv6 DNS地址的问题, 进而实现了在不更改系统架构的情 况下, 能够简单易行自动对 IPv6设备分配 DNS地址, 不仅成本较低, 而且在一定程 度上完善了移动无线数据通信设备的 IPv6联网及数据传输功能。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 或者将它们分别制作成各个集成电路模 块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明 不限制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 The PC side software module 66 is configured to set an IPv6 DNS address to the host by calling the netsh command interface provided by the operating system or modifying the IPv6 DNS information in the operating system registry after obtaining the IPv6 DNS address. FIG. 7 is a flowchart of a method for automatically allocating an IPv6 dialing DNS address of a PPP link of a wireless data card according to an embodiment of the present invention. As shown in FIG. 7, the method includes: Step S702: A data card completes a PDP activation process. After the data card receives the IPv6 dialing command, the dialing module initiates a PDP activation process on the air interface. The request information for activating the PDP context (that is, the PDP Context) is sent to the SGSN, and the information includes the following information: Access Point Name (APN), PDP Type, PDP Address, and Challenge Handshake Authentication Protocol (Challenge Handshake Authentication) Protocol, referred to as CHAP, or Password Authentication Protocol (PAP) authentication information, IPv6 DNS, and other information. The PDP type is IPv6, and the PDP address is empty, indicating that the IP address is dynamically allocated on behalf of the request. After receiving the request, the GGSN signs and assigns the mobile terminal through the Remote Hosting Protocol (DHCP)/Remote Authentication Dial-In User Service (RADIUS). The IPv6 address or address prefix, and other parameters, such as QoS parameters, IPv6 DNS server address, etc., and the authentication result and each parameter information are encapsulated in the activated PDP context accept message and sent back to the data card. The PDP activation process is complete. Step S704, after the PDP activation is completed, the data card completes the IPCPv6 negotiation. The data card extracts the interface identifier from the received PDP IPv6 address but ignores the address prefix. If the extracted interface identifier is the same as that carried by the host in the HV6CP configuration request, the data card will send an IPv6 control protocol configuration confirmation (HV6CP Configure-Ack) message to the host. If the extracted interface identifier is carried in the HV6CP configuration request. Differently, the data card will send the host an IPv6 control protocol configuration negative acknowledgement (HV6CP Configure-Nak) message carrying the interface identifier, and the host will retrieve the newly assigned interface identifier from the IPv6CP Configure-Nak message, and then forward the data to the data. The card sends an IPv6CP Configure-Request message requesting the newly assigned interface identifier. Finally, the data card sends an IPv6CP Configure-Ack message to the host, agreeing to use the newly assigned interface identifier. Step S706, the router advertisement negotiation is completed, and the host generates an IPv6 address. After the host accepts the interface identifier from the data card, establish a user plane link from the host to the GGSN and an external Internet Service Provider (ISP)/Intranet. The host is on the link. Use the Router Request (ie RS) and Router Advertisement (ie RA) messages to get the address prefix required for the global IPv6 address from the GGSN. After the network prefix address is obtained, the host generates a global IPv6 address through stateless autoconfiguration. The IPv6 address negotiation is complete. Step S708, the UI sends an AT command to obtain a DNS address. After the IPv6 address negotiation is complete, the UI sends an AT command to the data card to obtain the IPv6 DNS address assigned by the network. Step S710, the data card reports the DNS address. After receiving the AT command for obtaining the IPv6 DNS address, the IPv6 DNS information processing module extracts the IPv6 DNS address from the PDP activation message and provides the address to the AT command processing module. The AT command processing module sets the IPv6 DNS address. Returning to the UI; Step S712, the host sets the DNS address. After obtaining the IPv6 DNS address from the AT command returned by the data card, the UI invokes the netsh network command provided by the operating system to set the IPv6 DNS address to the host, and the IPv6 DNS address assignment is completed. FIG. 8 is a flowchart of a method for automatically allocating an IPv6 dialing DNS address of a wireless data card Ethernet link according to an embodiment of the present invention. As shown in FIG. 8, the method includes: Step S802: A data card completes a PDP activation process. After receiving the IPv6 dialing command, the dialing module initiates a PDP activation process on the air interface, and sends a request message to the SGSN to activate the PDP context (PDP Context). The information includes the following information: APN, PDP type, PDP address, CHAP Or PAP authentication information, IPv6 DNS, etc. (for example, using the PCO-IE method). The PDP type is IPv6, and the PDP address is empty, indicating that the IP address is dynamically allocated on behalf of the request. After receiving the request, the GGSN signs the mobile terminal through local/DHCP/RADIUS and assigns an IPv6 address or address prefix, and other parameters, such as QoS parameters, IPv6. The DNS server address and the like are encapsulated in the activation PDP context accept message and sent back to the data card. The PDP activation process is complete. Step S804, sending a router advertisement and an address conflict detection. After the host detects that the Ethernet device port is UP (that is, data can be transferred normally), address collision detection is initiated. The host sends a neighbor request message to the data card to try to verify whether the interface identifier is unique. If the data card finds that the interface identifier requested by the address host conflicts with a used one, the data card sends a neighbor advertisement to the host to indicate that the duplicate address detection fails. At this point, the host will generate a new interface identifier to resend the neighbor request message. If the address conflict detection is normal, the host sends a Router Request (ie RS) message to the data card. Step S806, the router advertisement negotiation is completed, and the host generates an IPv6 address. After receiving the routing request, the data card responds with the IPv6 prefix assigned by the GGSN through the route advertisement message. After the network prefix address is obtained, the host generates a global IPv6 address by randomly generating the interface identifier address. The IPv6 address negotiation is complete. Step S808, the host sends a control command to obtain a DNS address. After the IPv6 address negotiation is completed, the PC side software (for example, the UI or the driver) sends a control command to the data card to obtain the IPv6 DNS address assigned by the network. Step S810, the data card reports the DNS address. After receiving the control command for obtaining the IPv6 DNS address, the IPv6 DNS information processing module extracts the IPv6 DNS address from the PDP activation message, and provides the address to the control instruction processing module, and the control instruction module returns the IPv6 DNS address. For the personal computer (Personal Computer, PC for short) side software. In step S812, the host sets a DNS address. After obtaining the IPv6 DNS address from the control command returned by the data card, the PC side software sets the IPv6 DNS address to the host by calling the netsh command interface provided by the operating system or modifying the IPv6 DNS information in the operating system registry. IPv6 DNS address The assignment is complete. It should be noted that the steps shown in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and, although the logical order is shown in the flowchart, in some cases, The steps shown or described may be performed in an order different than that herein. Embodiments of the present invention provide a method for automatically allocating a wireless data card IPv6 domain name server (i.e., DNS) address. For wireless data cards that support IPv6, the IPv6 address allocation methods mainly include stateful address autoconfiguration (DHCPv6) and stateless address autoconfiguration (SLAAC). When the stateless address is automatically assigned, the host side can only dynamically generate IPv6 and gateway addresses, and cannot automatically obtain the DNS address from the terminal side. Through the foregoing embodiments and the preferred embodiments, the DNS obtained by the wireless data card is reported to the PC side software, and then the PC side software is set by calling the operating system interface, and the related technology is solved. The problem that the host cannot obtain the IPv6 DNS address from the terminal side can realize the simple and automatic assignment of the DNS address to the IPv6 device without changing the system architecture, which not only lowers the cost, but also improves the mobility to some extent. IPv6 networking and data transmission functions of wireless data communication equipment. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种 IPv6域名服务器 DNS地址分配方法, 包括: 无线数据卡接收来自主机的请求信息, 其中, 所述请求信息用于请求获取 所述 IPv6 DNS地址; A method for allocating a DNS address of an IPv6 domain name server, comprising: receiving, by a wireless data card, request information from a host, where the request information is used to request to acquire the IPv6 DNS address;
所述无线数据卡通过主机与所述无线数据卡之间的应用接口将所述 IPv6 DNS地址分配给所述主机。  The wireless data card allocates the IPv6 DNS address to the host through an application interface between the host and the wireless data card.
2. 根据权利要求 1所述的方法, 其中, 在无线数据卡接收来自主机的所述请求信 息之后, 还包括: 2. The method according to claim 1, wherein, after the wireless data card receives the request information from the host, the method further includes:
所述无线数据卡从分组数据协议 PDP响应消息中获取所述 IPv6 DNS地址; 所述无线数据卡将获取的所述 IPv6 DNS地址提供给所述主机与所述无线 数据卡之间的应用接口。  And the wireless data card obtains the IPv6 DNS address from a packet data protocol PDP response message; the wireless data card provides the obtained IPv6 DNS address to an application interface between the host and the wireless data card.
3. 根据权利要求 1所述的方法, 其中, 所述无线数据卡通过主机与所述无线数据 卡之间的应用接口将所述 IPv6 DNS地址分配给所述主机包括以下至少之一: 所述无线数据卡通过主机与所述无线数据卡之间的应用接口调用所述主机 的操作系统提供的网络配置命令行工具命令接口的方式将所述 IPv6 DNS地址 分配给所述主机; 3. The method according to claim 1, wherein the wireless data card assigns the IPv6 DNS address to the host through an application interface between a host and the wireless data card, and comprises at least one of the following: The wireless data card allocates the IPv6 DNS address to the host by means of an application interface between the host and the wireless data card to invoke a network configuration command line tool command interface provided by an operating system of the host;
所述无线数据卡通过主机与所述无线数据卡之间的应用接口修改所述主机 的操作系统注册表中 IPv6 DNS地址信息的方式将所述 IPv6 DNS地址分配给所 述主机。  The wireless data card allocates the IPv6 DNS address to the host by modifying an IPv6 DNS address information in an operating system registry of the host through an application interface between the host and the wireless data card.
4. 根据权利要求 1所述的方法, 其中, 所述应用接口包括以下至少之一: 4. The method according to claim 1, wherein the application interface comprises at least one of the following:
用户接口 UI、 所述主机上用于驱动所述无线数据卡的驱动。  a user interface UI, a driver on the host for driving the wireless data card.
5. 根据权利要求 1 所述的方法, 其中, 所述请求信息承载于网络驱动接口规范 NDIS命令和 /或异步传输 AT命令。 5. The method of claim 1, wherein the request information is carried by a network driver interface specification NDIS command and/or an asynchronous transmission AT command.
6. 一种 IPv6域名服务器 DNS地址获取方法, 包括: A method for obtaining a DNS address of an IPv6 domain name server, including:
主机向无线数据卡发送请求信息, 其中, 所述请求信息用于请求获取所述 HV6 DNS地址; 所述主机通过主机与所述无线数据卡之间的应用接口获取所述 IPv6 DNS 地址。 根据权利要求 6所述的方法, 其中, 所述主机通过主机与所述无线数据卡之间 的应用接口获取所述 IPv6 DNS地址包括以下至少之一: The host sends the request information to the wireless data card, where the request information is used to request to acquire the HV6 DNS address; The host acquires the IPv6 DNS address through an application interface between the host and the wireless data card. The method according to claim 6, wherein the acquiring, by the host, the IPv6 DNS address by using an application interface between the host and the wireless data card comprises at least one of the following:
所述主机通过其与所述无线数据卡之间的应用接口调用操作系统提供的 nesth命令接口的方式获取所述 IPv6 DNS地址;  Obtaining, by the host, the IPv6 DNS address by using an application interface provided by the operating system by using an application interface between the wireless data card;
所述主机通过其与所述无线数据卡之间的应用接口修改操作系统注册表中 IPv6 DNS地址信息的方式获取所述 IPv6 DNS地址。 一种 IPv6域名服务器 DNS地址分配装置, 包括: 接收模块, 设置为接收来自主机的请求信息, 其中, 所述请求信息用于请 求获取所述 IPv6 DNS地址;  The host obtains the IPv6 DNS address by modifying an IPv6 DNS address information in an operating system registry by using an application interface between the host and the wireless data card. An IPv6 domain name server DNS address allocation device, comprising: a receiving module, configured to receive request information from a host, where the request information is used to request to obtain the IPv6 DNS address;
分配模块,设置为通过主机与无线数据卡之间的应用接口将所述 IPv6 DNS 地址分配给所述主机。 根据权利要求 8所述的装置, 其中, 还包括:  And an allocation module configured to allocate the IPv6 DNS address to the host through an application interface between the host and the wireless data card. The device according to claim 8, further comprising:
获取模块, 设置为从分组数据协议 PDP响应消息中获取所述 IPv6 DNS地 址;  An obtaining module, configured to obtain the IPv6 DNS address from a packet data protocol PDP response message;
提供模块, 设置为将获取的所述 IPv6 DNS地址提供给所述主机与所述无 线数据卡之间的应用接口。 一种 IPv6域名服务器 DNS地址获取装置, 包括:  And providing a module, configured to provide the obtained IPv6 DNS address to an application interface between the host and the wireless data card. An IPv6 domain name server DNS address obtaining device includes:
发送模块, 设置为向无线数据卡发送请求信息, 其中, 所述请求信息用于 请求获取所述 IPv6 DNS地址;  a sending module, configured to send request information to the wireless data card, where the request information is used to request to acquire the IPv6 DNS address;
获取模块, 设置为通过主机与所述无线数据卡之间的应用接口获取所述 HV6 DNS地址。  And an obtaining module, configured to obtain the HV6 DNS address by using an application interface between the host and the wireless data card.
PCT/CN2013/079980 2012-12-07 2013-07-24 Ipv6 domain name server (dns) address allocation and obtaining method and device WO2013178164A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210524170.0 2012-12-07
CN2012105241700A CN102984294A (en) 2012-12-07 2012-12-07 IPv6 DNS address distribution and acquisition method and device

Publications (1)

Publication Number Publication Date
WO2013178164A1 true WO2013178164A1 (en) 2013-12-05

Family

ID=47858024

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/079980 WO2013178164A1 (en) 2012-12-07 2013-07-24 Ipv6 domain name server (dns) address allocation and obtaining method and device

Country Status (2)

Country Link
CN (1) CN102984294A (en)
WO (1) WO2013178164A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984294A (en) * 2012-12-07 2013-03-20 中兴通讯股份有限公司 IPv6 DNS address distribution and acquisition method and device
CN106303978A (en) * 2015-06-07 2017-01-04 联芯科技有限公司 The method that on Android system, stateless obtains IPV6 address
CN107231448A (en) * 2016-03-25 2017-10-03 中兴通讯股份有限公司 A kind of link establishing method, equipment and system
CN115396401B (en) * 2022-10-28 2023-01-31 北京连星科技有限公司 Method, system and medium for constructing flexible extension network based on IPv6 characteristic

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744596A (en) * 2004-09-01 2006-03-08 华为技术有限公司 Method for host obtaining network allocation parameterns in IPV6 network
CN101931663A (en) * 2010-08-28 2010-12-29 中兴通讯股份有限公司 Method capable of dynamically setting domain name server and wireless communication terminal
CN102137170A (en) * 2010-01-26 2011-07-27 中兴通讯股份有限公司 Method and device for distributing IPv6 (Internet Protocol version 6) addresses
CN102984294A (en) * 2012-12-07 2013-03-20 中兴通讯股份有限公司 IPv6 DNS address distribution and acquisition method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100518378C (en) * 2007-03-05 2009-07-22 中山大学 A communication method for switching the mobile node from IPv6 network to IPv4 network
CN102036422B (en) * 2009-09-27 2014-09-17 中国移动通信集团公司 Method, device and system for acquiring IP address

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744596A (en) * 2004-09-01 2006-03-08 华为技术有限公司 Method for host obtaining network allocation parameterns in IPV6 network
CN102137170A (en) * 2010-01-26 2011-07-27 中兴通讯股份有限公司 Method and device for distributing IPv6 (Internet Protocol version 6) addresses
CN101931663A (en) * 2010-08-28 2010-12-29 中兴通讯股份有限公司 Method capable of dynamically setting domain name server and wireless communication terminal
CN102984294A (en) * 2012-12-07 2013-03-20 中兴通讯股份有限公司 IPv6 DNS address distribution and acquisition method and device

Also Published As

Publication number Publication date
CN102984294A (en) 2013-03-20

Similar Documents

Publication Publication Date Title
EP2879419B1 (en) Ipv6 address stateless auto-configuration system, data card, and implementation method thereof
US11140071B2 (en) Multipath data transmission method and device
RU2602971C2 (en) Dynamic ipv6 configuration method for home gateway
WO2014086167A1 (en) Mobile terminal and address allocation method and system thereof
WO2013159641A1 (en) Address allocation method, device, and system
US20110202670A1 (en) Method, device and system for identifying ip session
US8392613B2 (en) Network address assignment
WO2012013133A1 (en) Method and device for network communications
EP2916592A1 (en) Packet data network type management method, device, and system
WO2017088101A1 (en) Network access information acquiring method, and router
WO2014056441A1 (en) Method and device for configuring ipv6 transition technique on cpe
KR20110060895A (en) A method and a gateway for providing multiple internet access
WO2008058453A1 (en) Method and system of transmitting dhcp message through ppp link and of obtaining configuration information
WO2013167083A2 (en) Method and device for selecting domain name server
WO2013178160A1 (en) Wireless data terminal and ipv4/ipv6 dual stack support method therefor
WO2013178164A1 (en) Ipv6 domain name server (dns) address allocation and obtaining method and device
US8705471B2 (en) Method and system for implementing ID/locator mapping
KR100773822B1 (en) Method for effective IPv6 address in dial-up networking
WO2011088703A1 (en) System and method for negotiating and configuring ipv6 network parameter
WO2011120365A1 (en) Method and system for establishing connection between multi-homed terminals
WO2015123947A1 (en) Method and apparatus for delivering local area network information
WO2011120276A1 (en) Method and system for establishing connection between terminals
CN102299860B (en) Acquisition method and equipment for path maximum transmission unit (Pathmtu)
WO2014169590A1 (en) Data service communication method, device, and system
WO2012155424A1 (en) Method and system for multiple address-prefixes assignment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13798083

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13798083

Country of ref document: EP

Kind code of ref document: A1