WO2014015775A1 - 一种IPv6地址无状态自动配置的系统、数据卡及其实现方法 - Google Patents

一种IPv6地址无状态自动配置的系统、数据卡及其实现方法 Download PDF

Info

Publication number
WO2014015775A1
WO2014015775A1 PCT/CN2013/079803 CN2013079803W WO2014015775A1 WO 2014015775 A1 WO2014015775 A1 WO 2014015775A1 CN 2013079803 W CN2013079803 W CN 2013079803W WO 2014015775 A1 WO2014015775 A1 WO 2014015775A1
Authority
WO
WIPO (PCT)
Prior art keywords
ipv6
address
data card
ipv6 address
terminal
Prior art date
Application number
PCT/CN2013/079803
Other languages
English (en)
French (fr)
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 中兴通讯股份有限公司
Priority to US14/416,250 priority Critical patent/US9729501B2/en
Priority to EP13822259.1A priority patent/EP2879419B1/en
Publication of WO2014015775A1 publication Critical patent/WO2014015775A1/zh

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/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Definitions

  • the present invention relates to the field of mobile communication technologies, and in particular, to a system, a data card, and a method for implementing the sixth state version Internet Protocol Version 6, IPv6 address stateless automatic configuration. Background technique
  • IPv6 has the advantages of large address space, address structure for address aggregation, automatic address configuration, and host mobility. IPv6 security and quality of service are better than IPv4. Both the Universal Mobile Telecommunications System (UMTS) of the 3rd Generation Partnership Project (3GPP) and the Code Division Multiple Access (CDMA) 2000 system of 3GPP2 have determined that IPv6 is the development direction of network bearers and service applications. Especially in the 3G IP Multimedia System (IMS) phase, the network system will be fully based or compatible with IPv6. IPv6 has become a common basic protocol for the Internet and mobile communication networks. The global Internet's IPv4 address resources are depleting, which will further accelerate the adoption of IPv6 technology in 3G networks and terminals.
  • UMTS Universal Mobile Telecommunications System
  • CDMA Code Division Multiple Access 2000 system of 3GPP2
  • IMS IP Multimedia System
  • An IPv6 address is composed of a prefix address and an interface identifier.
  • the upper 64 bits of the IPv6 address 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: In the first phase, the data card obtains the interface identifier from the gateway GPRS support node (GGSN), and this phase passes the packet data protocol ( The PDP) context activation process is completed; in the second signaling phase, the data card obtains the prefix address required for the global IPv6 address from the GGSN by using a Route Request (RS) message and a Route Advertisement (RA) message.
  • RS Route Request
  • RA Route Advertisement
  • link-local address is a link-local unicast address generated by the link-local prefix address 1111111010 and the interface identifier.
  • link-local address is a link-local unicast address generated by the link-local prefix address 1111111010 and the interface identifier.
  • IPv6 packets with link-local addresses are not routed Forward to the external network.
  • the other is a global unicast address.
  • the terminal can only use the global IPv6 address and other terminals in the external data network, that is, communicate with the hosts of other terminals.
  • There are two automatic configuration methods for global unicast addresses one is stateless automatic configuration (SLAAC) mode, and the other is stateful IPv6 dynamic host configuration protocol (DHCPv6) configuration mode.
  • SLAAC stateless automatic configuration
  • DHCPv6 stateful IPv6 dynamic host configuration protocol
  • Data card support is required for automatic configuration of stateful addresses using DHCPv6.
  • the DHCPv6 Server function therefore, the current data cards that support IPv6 are all configured with stateless autoconfiguration for IPv6 address allocation.
  • the network has two IPv6 address assignment methods: one is to assign a unique prefix address (Prefix Address), and the other is to assign a unique network interface identifier address (IID Address).
  • Prefix Address a unique prefix address
  • IID Address a unique network interface identifier address
  • the network allocates a prefix address, it indicates that the network receives any IPv6 address containing the prefix address, that is, the host can use any IPv6 address containing the prefix address for data transmission.
  • the host only needs to obtain the prefix of the router through the router advertisement message and obtain the prefix address from the data card. Then, the host can randomly generate the interface identifier and form a 128-bit IPv6 address with the prefix address.
  • the network assigns an interface identifier, it indicates that the network only receives an IPv6 address that includes the interface identifier and the prefix address obtained through the router advertisement message.
  • the address is a unique global unicast address.
  • the host can only use the IPv6 address.
  • the address is used for data transmission, and the IPv6 address formed by the randomly generated interface identifier cannot be used.
  • the IPv6 dialing process in the point-to-point protocol (PPP) link mode can successfully assign the interface identifier of the network to the host. Therefore, the PPP link mode
  • the IPv6 address generated by the dial-up host through stateless auto-configuration is the only global unicast address delivered by the network.
  • the host can only obtain the prefix address from the data card through the router advertisement message, but cannot obtain the assigned interface identifier. Therefore, the host generates the stateless automatic configuration.
  • the IPv6 address used in the IPv6 address is a randomly generated interface identifier.
  • the IPv6 address formed by the randomly generated interface identifier and the prefix address is inconsistent with the unique global unicast address allocated by the network. Therefore, the network side cannot properly route the host to use the IPv6 address.
  • the data packet sent by the address causes the IPv6 connection to fail to perform data transmission. Summary of the invention
  • the main purpose of the embodiments of the present invention is to provide a system, a data card, and a method for implementing the stateless automatic configuration of an IPv6 address, which can solve the problem that the data card of the existing Ethernet link dialing mode is in the network allocation interface identifier. , the problem of data transfer cannot be performed normally.
  • An embodiment of the present invention provides a system for stateless automatic configuration of an IPv6 address, where the system includes: a data card and a terminal;
  • the data card is configured to set its own IPv6 address configuration mode according to the IPv6 address allocation policy of the current network, and the IPv6 dial-up connection is successfully established, and after receiving the router advertisement request message sent by the terminal for obtaining the prefix address, If the IPv6 address allocation mode is set, the router advertisement response message is discarded, and the valid IPv6 global unicast address is reported to the terminal.
  • the terminal After the IPv6 dialup connection is successfully established, the terminal sends a router advertisement request message for obtaining the prefix address to the data card; and receives a valid IPv6 global unicast address reported by the data card.
  • the data card is further configured to: when the IPv6 address allocation mode is determined to be a stateless automatic configuration mode, return a router advertisement response message carrying the prefix address to the terminal; correspondingly, the terminal is further configured to send according to the data card
  • the interface address carried in the router advertisement response message randomly generates an interface identifier, and forms an IPv6 global unicast address with the prefix address.
  • the embodiment of the present invention further provides a data card for stateless automatic configuration of an IPv6 address, where the data card is configured to set and store an IPv6 address according to an IPv6 address allocation policy of the current network; And after receiving the router advertisement request message sent by the terminal for obtaining the prefix address, determining the set IPv6 address allocation mode, and determining the static configuration mode, discarding the router advertisement response message, and validating the IPv6 global unicast Ground The address is reported to the terminal.
  • the data card is further configured to: when the IPv6 address allocation mode is determined to be a stateless automatic configuration mode, return a router advertisement response message carrying the prefix address to the terminal.
  • the data card includes: a control instruction module, a router message processing module, an IPv6 address processing module, and a dialing module;
  • the router message processing module is configured to be configured according to the current network before the dial-up connection is established.
  • the IPv6 address allocation policy sets the IPv6 address configuration mode of the data card and stores it. After the IPv6 dialup connection is established, the IPv6 address allocation mode is determined. If the static configuration mode is determined, the router advertisement response message is discarded, and the IPv6 address processing is notified.
  • the IPv6 address processing module is configured to: after receiving the notification from the router message processing module, obtain a valid IPv6 global unicast address from the packet data protocol PDP activation message, and provide the IPv6 global unicast address to the control instruction module;
  • the control instruction module is configured to send a control command carrying an IPv6 address to the PC side software
  • the dialing module is configured to initiate a PDP activation process when the data card receives the dialing request, and obtain a valid IPv6 global unicast address from the network side.
  • the router message processing module is further configured to: when determining that the set IPv6 address allocation mode is the stateless automatic configuration mode, receive the prefix address sent by the IPv6 address processing module, and return a router advertisement response message carrying the prefix address to Terminal; corresponding,
  • the IPv6 address processing module is further configured to return the prefix address to the router message processing module.
  • the embodiment of the present invention further provides a method for implementing stateless automatic configuration of an IPv6 address, and setting an IPv6 address configuration mode of the data card according to an IPv6 address allocation policy of the current network, and storing the method; the method further includes:
  • IPv6 dialup connection is established successfully, and the route sent by the terminal to obtain the prefix address is received.
  • the data card determines the IPv6 address allocation mode. If it is in the static configuration mode, the router advertisement response message is discarded, and the valid IPv6 global unicast address is reported to the terminal.
  • the method also includes:
  • the device sends a router advertisement response message carrying the prefix address to the terminal.
  • the terminal randomly generates an interface identifier and forms an IPv6 global unicast address with the prefix address.
  • the setting of the IPv6 address of the data card according to the current network IPv6 address allocation policy is:
  • IPv6 address allocation policy of the current network before dialing. If the current network is assigned a prefix address, set the IPv6 address configuration mode of the data card to stateless autoconfiguration mode. If the current network is assigned an interface identifier, the data card will be configured. The IPv6 address configuration mode is set to static configuration mode; the above setting process is implemented by the AT command.
  • the device discards the response message of the router, and reports the valid IPv6 global unicast address to the terminal, as follows:
  • the data card discards the router advertisement response message, and notifies its internal IPv6 address processing module to obtain a valid IPv6 global unicast address from the PDP activation message, and provides the IPv6 address to the control instruction module; the control instruction module will carry the valid
  • the control command of the IPv6 global unicast address is sent to the PC side software of the terminal. After receiving the control command carrying the valid IPv6 global unicast address, the PC side software will invoke the operating system interface to set the IPv6 address to the host in the terminal.
  • the IPv6 address stateless automatic configuration system, the data card, and the implementation method thereof are provided according to the current network IPv6 address allocation policy, and the IPv6 address configuration mode of the data card is set and stored; the IPv6 dialup connection is successfully established, and is received.
  • the data card determines the set IPv6 address allocation mode, if In the static configuration mode, the router advertisement response message is discarded, and a valid IPv6 global unicast address is reported to the terminal.
  • the embodiment of the present invention disables the stateless automatic configuration of the terminal host side by modifying the processing flow of the existing router through the message, and in the case of the network allocation interface identifier, by discarding the manner in which the data card responds to the router of the terminal to advertise the response message. Function, then the data card transmits the valid IPv6 address assigned by the network to the terminal from the PDP activation response message. It can be seen that the embodiment of the present invention can solve the problem that the data card of the existing Ethernet link dialing mode cannot be normally transmitted due to the inconsistency between the IPv6 address automatically generated by the terminal and the IPv6 address allocated by the network. A data card with IPv6 data transmission capability can be compatible with two IPv6 networks with different address allocation methods.
  • FIG. 1 is a schematic structural diagram of a system embodiment for automatic stateless configuration of an IPv6 address according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for implementing a data card for stateless automatic configuration of an IPv6 address according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a stateless automatic configuration of a data card IPv6 address according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a static configuration of a data card IPv6 address according to an embodiment of the present invention.
  • the IPv6 address configuration mode of the data card is set and stored according to the IPv6 address allocation policy of the current network; the IPv6 dialup connection is successfully established, and the router advertisement sent by the terminal for configuring the prefix address is received.
  • the data card determines the IPv6 address allocation mode. If the configuration is static, the router advertisement response message is discarded, and the valid IPv6 global unicast address is reported to the terminal.
  • the router sends a notification message with the prefix address to the terminal, and the terminal randomly generates an interface identifier, which is combined with the prefix address. IPv6 global unicast address.
  • the IPv6 address configuration manner of the data card includes: a stateless automatic configuration mode and a static configuration mode.
  • the embodiment of the present invention is mainly directed to the IPv6 dialing in the Ethernet link mode, and the IPv6 dialing in the PPP link mode is not required to adopt the solution of the embodiment of the present invention.
  • An embodiment of the present invention provides a system for stateless automatic configuration of an IPv6 address, where the system includes: a data card and a terminal;
  • the data card is configured to set its own IPv6 address configuration mode according to the IPv6 address allocation policy of the current network, and the IPv6 dial-up connection is successfully established, and after receiving the router advertisement request message sent by the terminal for obtaining the prefix address, If the IPv6 address allocation mode is set, the router advertisement response message is discarded, and the valid IPv6 global unicast address is reported to the terminal.
  • the terminal After the IPv6 dialup connection is successfully established, the terminal sends a router advertisement request message for obtaining the prefix address to the data card; and receives a valid IPv6 global unicast address reported by the data card.
  • the data card is further configured to: when the IPv6 address allocation mode is determined to be a stateless autoconfiguration mode, return a router advertisement response message carrying the prefix address to the terminal;
  • the terminal is further configured to randomly generate an interface identifier according to a prefix address carried in a router advertisement response message sent by the data card, and form an IPv6 global unicast address with the prefix address.
  • the data card includes: a control instruction module, a router message processing module, an IPv6 address processing module, and a dialing module;
  • the terminal includes: a host and PC side software; wherein The host, when configured to establish an IPv6 dialup connection, sends a dialing request to the data card; after the connection is successfully established, sending a router advertisement request message to the data card; receiving a router advertisement response message sent by the router message processing module, and according to the The interface identifier is randomly generated by the prefix address carried in the router advertisement response message, and forms an IPv6 address with the prefix address.
  • the PC side software is configured to: after receiving the control instruction that carries the IPv6 address, invoke the operating system interface to set the IPv6 address to the host;
  • the router message processing module is configured to set an IPv6 address configuration mode of the data card according to an IPv6 address allocation policy of the current network before the establishment of the dial-up connection, and store the IPv6 address allocation mode after the IPv6 dial-up connection is successfully established.
  • the router advertisement response message is discarded, and the IPv6 address processing module is notified;
  • the prefix address sent by the IPv6 address processing module is received, and the router advertisement response message carrying the prefix address is returned to the host;
  • the IPv6 address processing module is configured to: after receiving the notification from the router message processing module, obtain a valid IPv6 global unicast address from the PDP activation message, and set the IPv6 global unicast address or the prefix address according to the current IPv6 address allocation manner. Reported to the control instruction module or router message processing module; specifically,
  • IPv6 address configuration mode of the current data is static, the IPv6 address is provided to the control instruction module. If the current data IPv6 address configuration mode is stateless auto configuration, the prefix address is returned to the router message processing module.
  • the control instruction module is configured to send a control command carrying an IPv6 address to the PC side software
  • the dialing module is configured to initiate a packet data protocol (PDP) activation process when the data card receives the dialing request, and obtain a valid IPv6 global unicast address from the network side.
  • PDP packet data protocol
  • FIG. 2 is a flowchart of a method for implementing a data card for stateless automatic configuration of an IPv6 address according to an embodiment of the present invention
  • Step 201 Set an IPv6 address configuration mode of the data card according to an IPv6 address allocation policy of the current network, and store the data.
  • the IPv6 address allocation policy of the current network is determined before dialing. If the current network is assigned a prefix address, the IPv6 address configuration mode of the data card is set to a stateless automatic configuration mode, and is stored in the data card itself, so that The data card and terminal will use the default stateless autoconfiguration method to generate an IPv6 global unicast address and perform data transmission. If the current network is assigned an interface identifier, the IPv6 address configuration mode of the data card is set to the static configuration mode and stored in the data card itself. Thus, the method for discarding the router advertisement response message by the data card prevents the terminal from being abnormal.
  • the data card After the IPv6 global unicast address is generated by the stateless automatic configuration, the data card reports the prefix address and the interface identifier of the network to the terminal from the PDP activation response message, that is, the valid IPv6 global unicast address is reported to the terminal, and then the terminal The IPv6 address can be used for normal data transmission.
  • the AT command when setting the IPv6 address configuration mode of the data card, the AT command can be used.
  • This operation can be implemented by the PC side software according to the specific needs of the operator.
  • the IPv6 Domain Name System (DNS) address is statically set to the terminal host by the PC side software regardless of the address stateless automatic configuration mode. Therefore, after the connection between the data card and the terminal is established, the data card reports the IPv6 address and the DNS address together.
  • the IPv6 global data reported by the data card is specified when the stateless automatic configuration mode is used.
  • the unicast address is all zeros, that is, the PC-side software is notified that the current data card uses the stateless auto-configuration mode; when the static configuration mode is used, the reported control command carries the valid IPv6 global unicast address, and the PC side After the software detects a valid IPv6 global unicast address, it calls the operating system interface to set the address to the host in the terminal.
  • Step 202 The IPv6 dialup connection is successfully established, and the terminal sends a prefix for obtaining the prefix.
  • the data card determines the set IPv6 address allocation mode, if it is a static configuration mode, step 203 is performed; if it is a stateless automatic configuration mode, step 204 is performed;
  • the terminal when an IPv6 dialup connection is established, the terminal sends a dialing request to the data card, and the data card initiates a PDP activation process, and obtains a valid IPv6 address from the network side.
  • the host in the terminal After the IPv6 dialup connection is established successfully, the host in the terminal sends a router advertisement request message to the data card to obtain the prefix address from the data card.
  • the data card After receiving the router advertisement request message, the data card determines the configured IPv6 address allocation mode. If the allocation mode is the static configuration mode, step 203 is performed. If the allocation mode is the stateless automatic configuration mode, step 204 is performed. .
  • Step 203 Discard the router advertisement response message, and report the valid IPv6 global unicast address to the terminal.
  • the data card will not return the router advertisement response message, that is, the router advertisement response message is discarded, and the internal IPv6 address processing module is notified from the PDP activation message.
  • the operating system interface sets the IPv6 address to the host in the terminal to complete the negotiation process of the IPv6 address.
  • the embodiment of the present invention can only be implemented by discarding the router advertisement response message on the data card side.
  • the host sends a router advertisement request message to the data card.
  • the data card will discard the response message sent to the host by the router. If the host cannot obtain the prefix address through the router advertisement response message, the stateless autoconfiguration cannot be used.
  • the method randomly generates an IPv6 address including a randomly generated interface identifier, that is, the host cannot generate a valid global unicast address for data transmission.
  • Step 204 Return a router advertisement response message carrying a prefix address to the terminal, and the terminal randomly generates an interface identifier, and forms a global unicast address with the prefix address.
  • the router message processing module in the data card returns a router advertisement response message to the host in the terminal, and the message carries the prefix address, and then the router message processing module The IPv6 address processing module is notified that the IPv6 address processing module does not provide an IPv6 address to the control instruction module, and the IPv6 address processing module needs to return the prefix address to the router message processing module. In this way, the control message reported by the control instruction module to the host does not carry a valid IPv6 address.
  • the host randomly generates an interface identifier by means of stateless auto-configuration, and forms a 128-bit global unicast address together with the prefix address to complete the IPv6 address negotiation process.
  • FIG. 3 is a flowchart of a stateless automatic configuration of an IPv6 address of a data card according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
  • Step 301 After receiving the IPv6 dialing request, the data card initiates a PDP activation process on the air interface; specifically: sending an activation PDP context (PDP Context) request message to the GPRS service support node (SGSN), where the request information includes the following Information: Access point (APN), PDP type, PDP address, Challenge Handshake Authentication Protocol (CHAP) or Password Authentication Protocol (PAP) information, IPv6 DNS, etc.
  • PDP type is IPv6, and the PDP address is empty, and the request is to dynamically allocate an IP address.
  • the Gateway GPRS Support Node After receiving the request, the Gateway GPRS Support Node (GGSN) authenticates the terminal through the Local/Dynamic Host Configuration Protocol (DHCP)/Remote User Dialing Authentication System (RADIUS), and assigns an IPv6 address or prefix address, and other parameters, such as The quality of service (QoS) parameter, the IPv6 DNS server address, and the authentication result and various parameter information are encapsulated in the active PDP context accept message and sent back to the data card, and the PDP activation process is completed.
  • DHCP Local/Dynamic Host Configuration Protocol
  • RADIUS Remote User Dialing Authentication System
  • Step 302 The host sends a router request message to the data card. Specifically, after the host in the terminal detects that the Ethernet device port status is UP, the address conflict detection process is started. The host sends a neighbor solicitation message to the data card to try to verify whether its own interface identifier is unique. If the data card determines that the interface identifier address requested by the host conflicts with an interface identifier address being used, the data card sends a neighbor advertisement indication to the host. The address detection fails. At this point, the host generates a new interface identifier to resend the neighbor request message. If the address conflict detection is normal, the host sends a Router Request (RS) message to the data card.
  • RS Router Request
  • Step 303 The data card determines that the IPv6 address configuration mode is stateless automatic configuration mode, and returns a router advertisement response message.
  • the data card when it determines that its IPv6 address configuration mode is stateless autoconfiguration mode, it will return a router advertisement response message, and the message carries the prefix address.
  • the implementation of this step is the same as step 204 and will not be described in detail herein.
  • Step 304 The host obtains the prefix address in the route advertisement response message, and forms an IPv6 global unicast address by randomly generating the interface identifier by the stateless automatic configuration.
  • the data card sends the IPv6 prefix address allocated by the GGSN to the host in the terminal by using the route advertisement response message.
  • the interface randomly generates the interface identifier by means of stateless automatic configuration.
  • the prefix addresses together form a 128-bit global unicast address, and the IPv6 address negotiation process is completed.
  • FIG. 4 is a flowchart of a static configuration of an IPv6 address of a data card according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps:
  • Step 401 After receiving the IPv6 dialing request, the data card initiates a PDP activation process on the air interface; specifically: sending an activation PDP context (PDP Context) request message to the GPRS service support node (SGSN), where the request information includes the following Information: Access point (APN), PDP type, PDP address, Challenge Handshake Authentication Protocol (CHAP) or Password Authentication Protocol (PAP) information, IPv6 DNS, etc.
  • PDP type is IPv6, and the PDP address is empty, indicating that the request is dynamically assigned an IP address.
  • the gateway GPRS support node After the gateway GPRS support node (GGSN) receives the request, it passes the local/ Dynamic Host Configuration Protocol (DHCP) / Remote User Dial-Up Authentication System (RADIUS) authenticates the endpoint and assigns an IPv6 address or prefix address, as well as other parameters such as Quality of Service (QoS) parameters, IPv6 DNS server address, and The weight result and the parameter information are encapsulated and sent back to the data card in the Activate PDP Context Accept message, and the PDP activation process is completed.
  • DHCP Dynamic Host Configuration Protocol
  • RADIUS Remote User Dial-Up Authentication System
  • Step 402 The host sends a router request message to the data card.
  • the address conflict detection process is started.
  • the host sends a neighbor solicitation message to the data card to try to verify whether its own interface identifier is unique. If the data card determines that the interface identifier address requested by the host conflicts with an interface identifier address being used, the data card sends a neighbor advertisement indication to the host. The address detection fails. At this point, the host generates a new interface identifier to resend the neighbor request message. If the address conflict detection is normal, the host sends a Router Request (RS) message to the data card.
  • RS Router Request
  • Step 403 The data card determines that the IPv6 address configuration mode is static configuration mode, and does not return a router advertisement response message.
  • the router advertisement response message will not be returned, that is, the data card discards the router advertisement response message returned to the host in the terminal. Because the host cannot receive the router advertisement response message, and thus the prefix address cannot be obtained from the router advertisement response message, the host does not automatically generate an IPv6 global unicast address.
  • Step 404 The host obtains an IPv6 global unicast address from the data card.
  • the host in the terminal when the host in the terminal fails to generate an IPv6 address, the host can obtain an IPv6 address by issuing a control command to the data card.
  • the data card notifies its internal IPv6 address processing module to obtain a valid IPv6 address from the PDP activation message and provides it to the control instruction module.
  • the control instruction module sends a control command carrying the valid IPv6 global unicast address to the PC side software.
  • IPv6 global unicast address is set to the host in the terminal by calling the NetSH network command provided by the operating system or modifying the IPv6 address information in the operating system registry, and the IPv6 address allocation is completed.
  • the embodiment of the present invention disables the stateless automatic configuration of the terminal host side by modifying the processing flow of the existing router through the message, and in the case of the network allocation interface identifier, by discarding the manner in which the data card responds to the router of the terminal to advertise the response message. Function, then the data card transmits the valid IPv6 address assigned by the network to the terminal from the PDP activation response message. Therefore, the problem that the data card of the existing Ethernet link dialing mode cannot be normally transmitted when the network card assigns the interface identifier is solved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种IPv6地址无状态自动配置的系统、数据卡及其实现方法,方法包括:根据当前网络的IPv6地址分配策略设置数据卡的IPv6地址配置方式并存储;IPv6拨号连接建立成功,且收到终端所发的用于获取前缀地址的路由器通告请求消息后,数据卡判断已设置的IPv6地址分配方式,如果为静态配置方式,则丢弃路由器通告响应消息,并将有效的IPv6全球单播地址上报给终端。运用本发明所述的系统、数据卡和方法可解决现有以太网链路拨号方式的数据卡在网络分配接口标识时,无法正常进行数据传输的问题。

Description

一种 IPv6地址无状态自动配置的系统、 数据卡及其实现方法 技术领域
本发明涉及移动通信技术领域, 尤其涉及一种第六版本互联网协议 ( Internet Protocol Version 6, IPv6 )地址无状态自动配置的系统、 数据卡及 其实现方法。 背景技术
IPv6 具有地址空间大、 地址结构便于实现地址聚合、 支持地址自动配 置以及支持主机移动等特点, IPv6的安全性和服务质量均优于 IPv4。 无论 是第三代合作伙伴计划( 3GPP )的通用移动通信系统( UMTS ),还是 3GPP2 的码分多址( CDMA ) 2000系统, 都已确定 IPv6是网络承载、 业务应用的 发展方向。 特别是在 3G的 IP多媒体系统( IMS )阶段, 网络系统将全面基 于或兼容 IPv6。 IPv6已成为互联网和移动通信网的共用基本协议。 全球互 联网的 IPv4地址资源正在日渐枯竭, 这将进一步加速 IPv6技术在 3G网络 和终端中的应用。
IPv6地址是由前缀地址和接口标识组成, IPv6地址的高 64位是前缀地 址, 低 64位为接口标识。 在 3 GPP规范中, 接口标识和前缀地址都是由网 络分两个阶段完成分配的: 第一个阶段, 数据卡从网关 GPRS 支持节点 ( GGSN )获得接口标识, 这一阶段通过分组数据协议(PDP )上下文激活 的过程来完成; 第二个信令阶段, 数据卡通过使用路由请求(RS ) 消息和 路由通告 (RA ) 消息从 GGSN获取全球 IPv6地址所需的前缀地址。 与数 据卡进行通信的主机的 IPv6地址有两种, 一种是链路本地地址, 它是由链 路本地前缀地址 1111111010和接口标识生成的一个链路本地单播地址, 用 于局域网范围内的主机通信, 带有链路本地地址的 IPv6数据包不会被路由 器转发到外部网络。 另一种是全球单播地址, 终端只能使用全球 IPv6地址 和外部数据网中的其他终端, 也就是和其他终端的主机进行通信。 全球单 播地址有两种自动配置方式, 一种是无状态自动配置 (SLAAC )方式, 另 一种是有状态的 IPv6的动态主机配置协议(DHCPv6 ) 配置方式。
其中, 因采用 DHCPv6 的有状态地址自动配置时, 需要数据卡支持
DHCPv6 Server功能, 因此, 目前支持 IPv6的数据卡均采用无状态自动配 置的方式进行 IPv6地址分配。 当采用无状态自动配置方式时, 网络有两种 IPv6地址分配方式: 一种是分配唯一的前缀地址(Prefix Address ), 另一种 是分配唯一的网络接口标识地址( IID Address )。 当网络分配的是前缀地址 时, 表明网络接收任何包含该前缀地址的 IPv6地址, 即主机可以使用任何 包含该前缀地址的 IPv6地址进行数据传输。在 IPv6地址协商时, 主机只需 通过路由器通告消息、 从数据卡侧获取到前缀地址后, 再随机生成接口标 识, 与前缀地址组成 128位的 IPv6地址即可。
但是, 如果网络分配的是接口标识时, 表明网络只接收包含该接口标 识和通过路由器通告消息获取的前缀地址组成的 IPv6地址, 该地址是一个 唯一的全球单播地址, 主机只能使用该 IPv6地址进行数据传输, 而不能使 用随机生成的接口标识组成的 IPv6地址。在这种 IPv6地址分配方式下, 点 到点协议 ( Point-to-Point Protocol, PPP )链路方式的 IPv6拨号过程能够成 功的将网络分配的接口标识分配给主机, 因此, PPP 链路方式的拨号主机 通过无状态自动配置生成的 IPv6地址, 就是网络下发的唯一的全球单播地 址。 但是, 在以太网链路方式的 IPv6拨号过程中, 主机只能通过路由器通 告消息从数据卡获取到前缀地址, 却无法获取到被分配的接口标识, 因此, 主机使用无状态自动配置的方式生成的 IPv6地址中使用的是随机生成的接 口标识, 该随机生成的接口标识与前缀地址组成的 IPv6地址与网络分配的 唯一的全球单播地址不一致, 所以网络侧无法正常路由主机使用该 IPv6地 址发送的数据包, 导致 IPv6连接无法正常进行数据传输。 发明内容
有鉴于此, 本发明实施例的主要目的在于提供一种 IPv6地址无状态自 动配置的系统、 数据卡及其实现方法, 可解决现有以太网链路拨号方式的 数据卡在网络分配接口标识时, 无法正常进行数据传输的问题。
为达到上述目的, 本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种 IPv6地址无状态自动配置的系统, 所述系统 包括: 数据卡和终端; 其中,
所述数据卡, 配置为根据当前网络的 IPv6 地址分配策略设置自身的 IPv6地址配置方式并存储; IPv6拨号连接建立成功, 且收到终端所发的用 于获取前缀地址的路由器通告请求消息后, 判断已设置的 IPv6地址分配方 式, 确定为静态配置方式时, 丟弃路由器通告响应消息, 并将有效的 IPv6 全球单播地址上报给终端;
所述终端, 配置为 IPv6拨号连接建立成功后, 向数据卡发送用于获取 前缀地址的路由器通告请求消息; 接收数据卡上报的有效的 IPv6全球单播 地址。
其中, 所述数据卡, 还配置为确定 IPv6地址分配方式为无状态自动配 置方式时, 返回携带前缀地址的路由器通告响应消息到终端; 相应的, 所述终端, 还配置为根据数据卡所发的路由器通告响应消息中携带的 前缀地址随机生成接口标识, 并与前缀地址组成 IPv6全球单播地址。
本发明实施例还提供了一种 IPv6地址无状态自动配置的数据卡, 所述 数据卡,配置为根据当前网络的 IPv6地址分配策略设置自身的 IPv6地址配 置方式并存储; IPv6拨号连接建立成功, 且收到终端所发的用于获取前缀 地址的路由器通告请求消息后, 判断已设置的 IPv6地址分配方式, 确定为 静态配置方式时, 丟弃路由器通告响应消息, 并将有效的 IPv6全球单播地 址上报给终端。
所述数据卡, 还配置为确定 IPv6地址分配方式为无状态自动配置方式 时, 返回携带前缀地址的路由器通告响应消息到终端。
所述数据卡包括: 控制指令模块、 路由器消息处理模块、 IPv6地址处 理模块和拨号模块; 其中,
所述路由器消息处理模块, 配置为拨号连接建立前, 根据当前网络的
IPv6地址分配策略设置数据卡的 IPv6地址配置方式并存储; IPv6拨号连接 建立成功后, 判断已设置的 IPv6地址分配方式, 确定为静态配置方式时, 丟弃路由器通告响应消息, 并通知 IPv6地址处理模块;
所述 IPv6地址处理模块, 配置为收到路由器消息处理模块的通知后, 从分组数据协议 PDP激活消息中获取有效的 IPv6全球单播地址, 并将该 IPv6全球单播地址提供给控制指令模块;
所述控制指令模块, 配置为将携带 IPv6地址的控制指令发送给 PC侧 软件;
所述拨号模块, 配置为数据卡收到拨号请求时, 发起 PDP激活过程, 从网络侧获取到有效的 IPv6全球单播地址。
其中, 所述路由器消息处理模块, 还配置为确定设置的 IPv6地址分配 方式为无状态自动配置方式时, 接收 IPv6地址处理模块所发的前缀地址, 并将携带前缀地址的路由器通告响应消息返回给终端; 相应的,
所述 IPv6地址处理模块, 还配置为将前缀地址返回给路由器消息处理 模块。
本发明实施例还提供了一种 IPv6地址无状态自动配置的实现方法, 根 据当前网络的 IPv6地址分配策略设置数据卡的 IPv6地址配置方式并存储; 该方法还包括:
IPv6拨号连接建立成功, 且收到终端所发的用于获取前缀地址的路由 器通告请求消息后, 数据卡判断已设置的 IPv6地址分配方式, 如果为静态 配置方式, 则丟弃路由器通告响应消息, 并将有效的 IPv6全球单播地址上 报给终端。
该方法还包括:
如果 IPv6地址分配方式为无状态自动配置方式, 则返回携带前缀地址 的路由器通告响应消息到终端, 终端随机生成接口标识, 并与前缀地址组 成 IPv6全球单播地址。
其中,所述根据当前网络的 IPv6地址分配策略设置数据卡的 IPv6地址 配置方式, 为:
拨号前判断当前网络的 IPv6地址分配策略, 如果当前网络分配的是前 缀地址, 则将数据卡的 IPv6地址配置方式设置为无状态自动配置方式; 如 果当前网络分配的是接口标识, 则将数据卡的 IPv6地址配置方式设置为静 态配置方式; 上述设置过程通过 AT命令实现。
其中, 所述丟弃路由器通告响应消息, 并将有效的 IPv6全球单播地址 上报给终端, 为:
数据卡将路由器通告响应消息丟弃, 并通知自身内部的 IPv6地址处理 模块从 PDP激活消息中获取有效的 IPv6全球单播地址, 并将该 IPv6地址 提供给控制指令模块; 控制指令模块将携带有效 IPv6全球单播地址的控制 指令发送给终端的 PC侧软件, PC侧软件收到携带有效 IPv6全球单播地址 的控制指令之后, 将调用操作系统接口将所述 IPv6地址设置给终端中的主 机。
本发明实施例提供的 IPv6地址无状态自动配置的系统、 数据卡及其实 现方法,根据当前网络的 IPv6地址分配策略设置数据卡的 IPv6地址配置方 式并存储; IPv6拨号连接建立成功, 且收到终端所发的用于获取前缀地址 的路由器通告请求消息后, 数据卡判断已设置的 IPv6地址分配方式, 如果 为静态配置方式, 则丟弃路由器通告响应消息, 并将有效的 IPv6全球单播 地址上报给终端。 本发明实施例通过修改现有路由器通过消息的处理流程, 在网络分配接口标识的情况下, 通过丟弃数据卡回应给终端的路由器通告 响应消息的方式, 禁用了终端主机侧的无状态自动配置功能, 之后数据卡 再从 PDP激活响应消息中将网络分配的有效 IPv6地址传送给终端。 可见, 本发明实施例可解决现有以太网链路拨号方式的数据卡在网络分配接口标 识时,因终端自动生成的 IPv6地址与网络分配的 IPv6地址不一致而无法正 常进行数据传输的问题, 使具有 IPv6数据传输功能的数据卡能同时兼容两 种不同地址分配方式的 IPv6网络。 附图说明
图 1为本发明实施例 IPv6地址无状态自动配置的系统实施例的结构示 意图;
图 2为本发明实施例 IPv6地址无状态自动配置的数据卡实现方法流程 示意图;
图 3为本发明实施例数据卡 IPv6地址无状态自动配置实施例的流程图; 图 4为本发明实施例数据卡 IPv6地址静态配置实施例的流程图。 具体实施方式
在本发明的实施例中: 根据当前网络的 IPv6地址分配策略设置数据卡 的 IPv6地址配置方式并存储; IPv6拨号连接建立成功, 且收到终端所发的 用于配置为获取前缀地址的路由器通告请求消息后, 数据卡判断已设置的 IPv6 地址分配方式, 如果为静态配置方式, 则丟弃路由器通告响应消息, 并将有效的 IPv6全球单播地址上报给终端。
其中, 如果配置方式为无状态自动配置方式, 则返回携带前缀地址的 路由器通告响应消息到终端, 终端随机生成接口标识, 并与前缀地址组成 IPv6全球单播地址。
这里, 所述数据卡的 IPv6地址配置方式包括: 无状态自动配置方式和 静态配置方式。
需要说明的是, 本发明实施例主要针对以太网链路方式的 IPv6拨号, 对于 PPP链路方式的 IPv6拨号则无需采用本发明实施例的方案。
下面结合附图及具体实施例对本发明作进一步详细说明。
本发明实施例提供了一种 IPv6地址无状态自动配置的系统, 该系统包 括: 数据卡和终端; 其中,
所述数据卡, 配置为根据当前网络的 IPv6 地址分配策略设置自身的 IPv6地址配置方式并存储; IPv6拨号连接建立成功, 且收到终端所发的用 于获取前缀地址的路由器通告请求消息后, 判断已设置的 IPv6地址分配方 式, 确定为静态配置方式时, 丟弃路由器通告响应消息, 并将有效的 IPv6 全球单播地址上报给终端;
所述终端, 配置为 IPv6拨号连接建立成功后, 向数据卡发送用于获取 前缀地址的路由器通告请求消息; 接收数据卡上报的有效的 IPv6全球单播 地址。
所述数据卡, 还配置为确定 IPv6地址分配方式为无状态自动配置方式 时, 返回携带前缀地址的路由器通告响应消息到终端;
相应的, 所述终端, 还配置为根据数据卡所发的路由器通告响应消息 中携带的前缀地址随机生成接口标识, 并与前缀地址组成 IPv6全球单播地 址。
图 1为本发明实施例 IPv6地址无状态自动配置的系统实施例的结构示 意图, 如图 1 所示, 所述数据卡包括: 控制指令模块、 路由器消息处理模 块、 IPv6地址处理模块和拨号模块; 所述终端包括: 主机和 PC侧软件; 其 中, 所述主机, 配置为 IPv6拨号连接建立时, 向数据卡发送拨号请求; 连 接建立成功后, 向数据卡发送路由器通告请求消息; 接收路由器消息处理 模块所发的路由器通告响应消息, 并根据所述路由器通告响应消息中携带 的前缀地址随机生成接口标识, 并与前缀地址组成 IPv6地址;
所述 PC侧软件, 配置为收到携带 IPv6地址的控制指令后, 调用操作 系统接口将所述 IPv6地址设置给主机;
所述路由器消息处理模块, 配置为拨号连接建立前, 根据当前网络的 IPv6地址分配策略设置数据卡的 IPv6地址配置方式, 并存储; IPv6拨号连 接建立成功后,判断已设置的 IPv6地址分配方式,确定为静态配置方式时, 丟弃路由器通告响应消息, 并通知 IPv6地址处理模块;
还配置为确定设置的 IPv6地址分配方式为无状态自动配置方式时, 接 收 IPv6地址处理模块所发的前缀地址, 并将携带前缀地址的路由器通告响 应消息返回给主机;
所述 IPv6地址处理模块, 配置为收到路由器消息处理模块的通知后, 从 PDP激活消息中获取有效的 IPv6全球单播地址, 并根据当前的 IPv6地 址分配方式将 IPv6全球单播地址或前缀地址上报给控制指令模块或路由器 消息处理模块; 具体的,
如果当前数据的 IPv6地址配置方式为静态配置,则将该 IPv6地址提供 给控制指令模块; 如果当前数据的 IPv6地址配置方式为无状态自动配置, 则将前缀地址返回给路由器消息处理模块。
所述控制指令模块, 配置为将携带 IPv6地址的控制指令发送给 PC侧 软件;
所述拨号模块, 配置为数据卡收到拨号请求时, 发起分组数据协议 ( PDP )激活过程, 从网络侧获取到有效的 IPv6全球单播地址。
图 2为本发明实施例 IPv6地址无状态自动配置的数据卡实现方法流程 示意图, 如图 2所示, 该方法包括如下步骤:
步骤 201 : 根据当前网络的 IPv6地址分配策略设置数据卡的 IPv6地址 配置方式并存储;
具体为: 拨号前判断当前网络的 IPv6地址分配策略, 如果当前网络分 配的是前缀地址, 则将数据卡的 IPv6地址配置方式设置为无状态自动配置 方式, 并存储在数据卡自身内部, 这样, 数据卡和终端将使用默认的无状 态自动配置方式生成 IPv6全球单播地址, 并进行数据传输。 如果当前网络 分配的是接口标识,则将数据卡的 IPv6地址配置方式设置为静态配置方式, 并存储在数据卡自身内部, 这样, 通过数据卡丟弃路由器通告响应消息的 方法, 使终端无法正常使用无状态自动配置生成 IPv6全球单播地址, 之后 数据卡从 PDP激活响应消息中将网络分配的前缀地址及接口标识上报给终 端, 即: 将有效的 IPv6全球单播地址上报给终端, 之后终端就可以使用该 IPv6地址正常进行数据传输。
这里, 在设置数据卡的 IPv6地址配置方式时, 可通过 AT命令来实现, 该操作在实现时可以根据运营商的具体需求通过 PC侧软件来实现。 同时, 在实现时, 由于 IPv6的域名系统 ( Domain Name System, DNS )地址无 论采用何种地址无状态自动配置方式,均需要通过 PC侧软件静态设置给终 端的主机。 因此, 在数据卡与终端的连接建立之后, 数据卡会将 IPv6地址 和 DNS地址一起上报, 为了便于 PC侧软件进行区分, 规定在使用无状态 自动配置方式的情况下, 数据卡上报的 IPv6全球单播地址为全零, 即: 通 知 PC侧软件当前数据卡使用的是无状态自动配置方式;而在使用静态配置 方式时,在上报的控制指令中携带有效的 IPv6全球单播地址, PC侧软件检 测到有效的 IPv6全球单播地址之后, 再调用操作系统接口将该地址设置给 终端中的主机。
步骤 202: IPv6拨号连接建立成功,且收到终端所发的用于获取前缀地 址的路由器通告请求消息后, 数据卡判断已设置的 IPv6地址分配方式, 如 果为静态配置方式, 则执行步骤 203; 如果为无状态自动配置方式, 则执行 步骤 204;
具体为: IPv6拨号连接建立时, 终端发送拨号请求到数据卡, 数据卡 发起 PDP激活过程,并从网络侧获取有效的 IPv6地址。 IPv6拨号连接建立 成功之后, 终端中的主机发送路由器通告请求消息到数据卡, 以从数据卡 获取前缀地址。 数据卡收到所述路由器通告请求消息后, 判断已设置的自 身的 IPv6地址分配方式, 如果分配方式为静态配置方式, 则执行步骤 203; 如果分配方式为无状态自动配置方式, 则执行步骤 204。
步骤 203: 丟弃路由器通告响应消息, 并将有效的 IPv6全球单播地址 上报给终端;
具体为: 数据卡的 IPv6地址配置方式为静态配置方式时, 数据卡将不 返回路由器通告响应消息, 即: 将路由器通告响应消息丟弃, 并通知自身 内部的 IPv6地址处理模块从 PDP激活消息中获取有效的 IPv6地址, 并将 该 IPv6地址提供给控制指令模块;控制指令模块将携带有效 IPv6地址的控 制指令发送给 PC侧软件, PC侧软件收到携带有效 IPv6地址的控制指令之 后, 将调用操作系统接口将所述 IPv6地址设置给终端中的主机, 完成 IPv6 地址的协商过程。
这里,由于终端主机侧的无状态自动配置功能是由 IPv6协议栈控制的, 无法禁用, 因此, 本发明实施例只能在数据卡侧通过丟弃路由器通告响应 消息来实现。 拨号成功之后, 主机将发送路由器通告请求消息给数据卡, 数据卡将回应给主机的路由器通告响应消息丟弃, 主机由于无法通过路由 器通告响应消息获取到前缀地址, 也就无法使用无状态自动配置的方式随 机生成包括随机生成的接口标识的 IPv6地址, 即: 主机无法生成有效的全 球单播地址用于数据传输。 步骤 204: 返回携带前缀地址的路由器通告响应消息到终端, 终端随机 生成接口标识, 并与前缀地址组成全球单播地址;
具体为: 数据卡的 IPv6地址配置方式为无状态自动配置方式时, 数据 卡内的路由器消息处理模块将返回路由器通告响应消息给终端中的主机, 消息中携带前缀地址, 之后, 路由器消息处理模块通知 IPv6地址处理模块 不提供 IPv6地址给控制指令模块, IPv6地址处理模块需将前缀地址返回给 路由器消息处理模块。 这样, 控制指令模块上报给主机的控制消息中不携 带有效的 IPv6地址。 主机收到路由器通告响应消息之后, 通过无状态自动 配置的方式随机生成接口标识, 与前缀地址共同组成 128位的全球单播地 址, 完成 IPv6地址协商过程。
下面分别对本发明实施例数据卡两种不同配置方式实施例的实现流程 进行描述。
图 3为本发明实施例数据卡 IPv6地址无状态自动配置实施例的流程图, 如图 3所示, 包括如下步骤:
步骤 301 :数据卡收到 IPv6拨号请求后,在空口上发起 PDP激活过程; 具体为:将向 GPRS服务支持节点(SGSN )发送激活 PDP上下文(PDP Context )请求信息, 所述请求信息中包含如下信息: 接入点 (APN )、 PDP 类型、 PDP地址、 询问握手认证协议(CHAP )或密码认证协议 ( PAP )信 息、 IPv6 DNS等信息。 其中, 所述 PDP类型为 IPv6, 所述 PDP地址为空, 代表请求动态分配 IP地址。 网关 GPRS支持节点 (GGSN )收到请求后, 通过本地 /动态主机配置协议( DHCP ) /远程用户拨号认证系统( RADIUS ) 对终端进行鉴权, 并分配 IPv6地址或者前缀地址, 以及其他参数, 如服务 质量(QoS )参数、 IPv6 DNS服务器地址, 并将鉴权结果以及各项参数信 息封装在激活 PDP上下文接受消息里发回给数据卡, PDP激活过程完成。
步骤 302: 主机向数据卡发送路由器请求消息; 具体为: 终端中的主机检测到以太网设备端口状态为 UP后, 就会启动 地址冲突检测过程。 主机发送邻居请求消息到数据卡尝试验证自身的接口 标识是否唯一, 如果数据卡确定主机请求的接口标识地址与一个正在使用 的接口标识地址存在冲突, 那么数据卡就会给主机发送邻居通告指示重复 地址检测失败, 此时主机会生成一个新的接口标识重新发送邻居请求消息。 如果地址冲突检测正常, 主机会发送路由器请求(RS ) 消息到数据卡。
步骤 303: 数据卡确定 IPv6地址配置方式为无状态自动配置方式, 则 将返回路由器通告响应消息;
具体为: 数据卡确定自身的 IPv6地址配置方式为无状态自动配置方式 时, 将返回路由器通告响应消息, 消息中携带前缀地址。 该步骤的实现方 法与步骤 204相同, 此处不再详述。
步骤 304: 主机获取路由通告响应消息中的前缀地址, 并通过无状态自 动配置随机生成接口标识组成 IPv6全球单播地址;
具体为:数据卡将 GGSN分配的 IPv6前缀地址通过路由通告响应消息 响应给终端中的主机, 主机从路由通告响应消息中获取到前缀地址之后, 通过无状态自动配置方式随机生成接口标识,与所述前缀地址共同组成 128 位的全球单播地址, IPv6地址协商过程完成。
图 4为本发明实施例数据卡 IPv6地址静态配置实施例的流程图, 如图 4所示, 包括如下步骤:
步骤 401 :数据卡收到 IPv6拨号请求后,在空口上发起 PDP激活过程; 具体为:将向 GPRS服务支持节点(SGSN )发送激活 PDP上下文(PDP Context )请求信息, 所述请求信息中包含如下信息: 接入点 (APN )、 PDP 类型、 PDP地址、 询问握手认证协议(CHAP )或密码认证协议 ( PAP )信 息、 IPv6 DNS等信息。 所述 PDP类型为 IPv6, PDP地址为空, 代表请求 动态分配 IP地址。 网关 GPRS支持节点 (GGSN ) 收到请求后, 通过本地 / 动态主机配置协议( DHCP ) /远程用户拨号认证系统( RADIUS )对终端进 行鉴权,并分配 IPv6地址或者前缀地址,以及其他参数,如服务质量( QoS ) 参数、 IPv6 DNS服务器地址, 并将鉴权结果以及各项参数信息封装在激活 PDP上下文接受消息里发回给数据卡, PDP激活过程完成。
步骤 402: 主机向数据卡发送路由器请求消息;
具体为: 终端中的主机检测到以太网设备端口状态为 UP后, 就会启动 地址冲突检测过程。 主机发送邻居请求消息到数据卡尝试验证自身的接口 标识是否唯一, 如果数据卡确定主机请求的接口标识地址与一个正在使用 的接口标识地址存在冲突, 那么数据卡就会给主机发送邻居通告指示重复 地址检测失败, 此时主机会生成一个新的接口标识重新发送邻居请求消息。 如果地址冲突检测正常, 主机会发送路由器请求(RS ) 消息到数据卡。
步骤 403: 数据卡确定 IPv6地址配置方式为静态配置方式, 则不返回 路由器通告响应消息;
具体为: 数据卡确定自身的 IPv6地址配置方式为静态配置方式时, 将 不返回路由器通告响应消息, 即: 数据卡丟弃返回给终端中的主机的路由 器通告响应消息。 由于主机无法收到路由器通告响应消息, 进而不能从路 由器通告响应消息中获取到前缀地址, 因此, 主机不会自动生成 IPv6全球 单播地址。
步骤 404: 主机从数据卡获取 IPv6全球单播地址;
具体为: 在应用过程中, 终端中的主机在生成 IPv6地址失败时, 可通 过下发控制指令给数据卡来获得 IPv6地址。 数据卡则通知自身内部的 IPv6 地址处理模块从 PDP激活消息中获取有效的 IPv6地址并提供给控制指令模 块, 控制指令模块将携带有效 IPv6全球单播地址的控制指令发送给 PC侧 软件。
PC侧软件从数据卡返回的控制指令中获取到 IPv6全球单播地址之后, 通过调用操作系统提供的 NetSH 网络命令、 或者修改操作系统注册表中 IPv6地址信息的方式, 将该 IPv6全球单播地址设置给终端中的主机, IPv6 地址分配完成。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 工业实用性
本发明实施例通过修改现有路由器通过消息的处理流程, 在网络分配 接口标识的情况下, 通过丟弃数据卡回应给终端的路由器通告响应消息的 方式, 禁用了终端主机侧的无状态自动配置功能, 之后数据卡再从 PDP激 活响应消息中将网络分配的有效 IPv6地址传送给终端。 因此, 可解决现有 以太网链路拨号方式的数据卡在网络分配接口标识时, 无法正常进行数据 传输的问题。

Claims

权利要求书
1、一种 IPv6地址无状态自动配置的系统, 所述系统包括: 数据卡和终 端; 其中,
所述数据卡, 配置为根据当前网络的 IPv6 地址分配策略设置自身的 IPv6地址配置方式并存储; IPv6拨号连接建立成功, 且收到终端所发的用 于获取前缀地址的路由器通告请求消息后, 判断已设置的 IPv6地址分配方 式, 确定为静态配置方式时, 丟弃路由器通告响应消息, 并将有效的 IPv6 全球单播地址上报给终端;
所述终端, 配置为 IPv6拨号连接建立成功后, 向所述数据卡发送用于 获取前缀地址的路由器通告请求消息; 接收数据卡上报的有效的 IPv6全球 单播地址。
2、根据权利要求 1所述的 IPv6地址无状态自动配置的系统, 其中, 所 述数据卡, 还配置为确定 IPv6地址分配方式为无状态自动配置方式时, 返 回携带前缀地址的路由器通告响应消息到所述终端;
相应的, 所述终端, 还配置为根据所述数据卡所发的路由器通告响应 消息中携带的前缀地址随机生成接口标识, 并与前缀地址组成 IPv6全球单 播地址。
3、一种 IPv6地址无状态自动配置的数据卡, 所述数据卡, 配置为根据 当前网络的 IPv6地址分配策略设置自身的 IPv6地址配置方式并存储; IPv6 拨号连接建立成功, 且收到终端所发的用于获取前缀地址的路由器通告请 求消息后, 判断已设置的 IPv6地址分配方式, 确定为静态配置方式时, 丟 弃路由器通告响应消息, 并将有效的 IPv6全球单播地址上报给终端。
4、 根据权利要求 3所述的 IPv6地址无状态自动配置的数据卡, 其中, 所述数据卡, 还配置为确定 IPv6地址分配方式为无状态自动配置方式时, 返回携带前缀地址的路由器通告响应消息到所述终端。
5、 根据权利要求 4所述的 IPv6地址无状态自动配置的数据卡, 其中, 所述数据卡包括: 控制指令模块、 路由器消息处理模块、 IPv6地址处理模 块和拨号模块; 其中,
所述路由器消息处理模块, 配置为拨号连接建立前, 根据当前网络的 IPv6地址分配策略设置数据卡的 IPv6地址配置方式并存储; IPv6拨号连接 建立成功后, 判断已设置的 IPv6地址分配方式, 确定为静态配置方式时, 丟弃路由器通告响应消息, 并通知 IPv6地址处理模块;
所述 IPv6地址处理模块, 配置为收到路由器消息处理模块的通知后, 从分组数据协议 PDP激活消息中获取有效的 IPv6全球单播地址, 并将该 IPv6全球单播地址提供给控制指令模块;
所述控制指令模块, 配置为将携带 IPv6地址的控制指令发送给 PC侧 软件;
所述拨号模块, 配置为数据卡收到拨号请求时, 发起 PDP激活过程, 从网络侧获取到有效的 IPv6全球单播地址。
6、 根据权利要求 5所述的 IPv6地址无状态自动配置的数据卡, 其中, 所述路由器消息处理模块, 还配置为确定设置的 IPv6地址分配方式为无状 态自动配置方式时, 接收 IPv6地址处理模块所发的前缀地址, 并将携带前 缀地址的路由器通告响应消息返回给终端;
相应的, 所述 IPv6地址处理模块, 还配置为将前缀地址返回给路由器 消息处理模块。
7、 一种 IPv6地址无状态自动配置的实现方法, 才艮据当前网络的 IPv6 地址分配策略设置数据卡的 IPv6地址配置方式并存储; 该方法还包括:
IPv6拨号连接建立成功, 且收到终端所发的用于获取前缀地址的路由 器通告请求消息后, 所述数据卡判断已设置的 IPv6地址分配方式, 如果为 静态配置方式, 则丟弃路由器通告响应消息, 并将有效的 IPv6全球单播地 址上报给终端。
8、根据权利要求 7所述的 IPv6地址无状态自动配置的实现方法,其中, 该方法还包括:
如果 IPv6地址分配方式为无状态自动配置方式, 则返回携带前缀地址 的路由器通告响应消息到所述终端, 终端随机生成接口标识, 并与所述前 缀地址组成 IPv6全球单播地址。
9、 根据权利要求 7或 8所述的 IPv6地址无状态自动配置的实现方法, 其中,所述才艮据当前网络的 IPv6地址分配策略设置数据卡的 IPv6地址配置 方式, 为:
拨号前判断当前网络的 IPv6地址分配策略, 如果当前网络分配的是前 缀地址,则将所述数据卡的 IPv6地址配置方式设置为无状态自动配置方式; 如果当前网络分配的是接口标识, 则将所述数据卡的 IPv6地址配置方式设 置为静态配置方式; 上述设置过程通过 AT命令实现。
10、根据权利要求 7或 8所述的 IPv6地址无状态自动配置的实现方法, 其中, 所述丟弃路由器通告响应消息, 并将有效的 IPv6全球单播地址上报 给终端, 为:
数据卡将路由器通告响应消息丟弃, 并通知自身内部的 IPv6地址处理 模块从 PDP激活消息中获取有效的 IPv6全球单播地址, 并将该 IPv6地址 提供给控制指令模块; 控制指令模块将携带有效 IPv6全球单播地址的控制 指令发送给终端的 PC侧软件, PC侧软件收到携带有效 IPv6全球单播地址 的控制指令之后, 将调用操作系统接口将所述 IPv6地址设置给终端中的主 机。
PCT/CN2013/079803 2012-07-25 2013-07-22 一种IPv6地址无状态自动配置的系统、数据卡及其实现方法 WO2014015775A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US14/416,250 US9729501B2 (en) 2012-07-25 2013-07-22 System and data card for stateless automatic configuration of IPv6 address and method for implementing the same
EP13822259.1A EP2879419B1 (en) 2012-07-25 2013-07-22 Ipv6 address stateless auto-configuration system, data card, and implementation method thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210259502.7A CN102833732B (zh) 2012-07-25 2012-07-25 一种IPv6地址无状态自动配置的系统、数据卡及其实现方法
CN201210259502.7 2012-07-25

Publications (1)

Publication Number Publication Date
WO2014015775A1 true WO2014015775A1 (zh) 2014-01-30

Family

ID=47336641

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/079803 WO2014015775A1 (zh) 2012-07-25 2013-07-22 一种IPv6地址无状态自动配置的系统、数据卡及其实现方法

Country Status (4)

Country Link
US (1) US9729501B2 (zh)
EP (1) EP2879419B1 (zh)
CN (1) CN102833732B (zh)
WO (1) WO2014015775A1 (zh)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833732B (zh) 2012-07-25 2017-03-29 中兴通讯股份有限公司 一种IPv6地址无状态自动配置的系统、数据卡及其实现方法
CN103916484B (zh) * 2012-12-31 2017-07-21 华为技术有限公司 配置ip地址的方法和设备
CN104639439B (zh) * 2015-01-27 2018-04-06 新华三技术有限公司 一种业务报文的处理方法和设备
CN106303978A (zh) * 2015-06-07 2017-01-04 联芯科技有限公司 android系统上无状态方式获取IPV6地址的方法
CN107231448A (zh) * 2016-03-25 2017-10-03 中兴通讯股份有限公司 一种链路建立方法、设备和系统
CN106936944A (zh) * 2017-03-31 2017-07-07 苏州科达科技股份有限公司 一种检测及处理网络地址冲突的方法及装置
CN107911494B (zh) * 2017-11-06 2020-11-27 深圳市共进电子股份有限公司 接入IPv6网络的方法、装置、计算机设备以及存储介质
US10673695B2 (en) * 2018-03-06 2020-06-02 Kaloom Inc. Computing device and method for performing a fabric deployment in a data center
CN108769290B (zh) * 2018-06-06 2021-03-02 浙江农林大学暨阳学院 一种IPv6多地址生成与重复地址检测方法
JP7188046B2 (ja) * 2018-12-14 2022-12-13 富士フイルムビジネスイノベーション株式会社 通信システム、通信装置、通信システムプログラム及び通信プログラム
CN109921898A (zh) * 2019-03-28 2019-06-21 新华三技术有限公司 IPv6无状态地址生成方法及装置
CN110290234B (zh) * 2019-07-16 2021-10-01 广东热点软件技术服务有限公司 节点地址溯源的方法、装置、系统、设备和存储介质
CN111131548B (zh) * 2019-12-30 2022-06-28 奇安信科技集团股份有限公司 信息处理方法、装置和计算机可读存储介质
CN111541797A (zh) * 2020-04-23 2020-08-14 深圳市吉祥腾达科技有限公司 一种基于ecos的IPV6实现方法
CN112153173B (zh) * 2020-11-25 2021-02-26 深圳市乙辰科技股份有限公司 一种IPv6地址快速部署和分发方法及装置
CN112491657B (zh) * 2020-11-27 2022-07-15 珠海格力电器股份有限公司 一种基于串口通讯的通讯连接方法、装置和存储介质
CN113709267A (zh) * 2020-12-11 2021-11-26 浙江十进制网络有限公司 一种网络单播寻址方法及其互联网络
CN112637069B (zh) * 2020-12-18 2022-05-06 支付宝(杭州)信息技术有限公司 数据报文的传输方法和装置
CN113660357B (zh) * 2021-08-17 2023-10-27 烽火通信科技股份有限公司 一种IPv6双栈系统自动获取IP地址的方法和装置
CN114051019A (zh) * 2021-10-14 2022-02-15 深圳市联洲国际技术有限公司 自动检测IPv6网络支持的地址配置方式的网络设备和方法
CN114500258B (zh) * 2021-12-14 2023-08-15 四川天邑康和通信股份有限公司 家庭智能网关下wifi6路由器下ipv6自动上网配置方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753635A (zh) * 2008-12-17 2010-06-23 华为技术有限公司 Ipv6地址配置方法和系统
CN102137170A (zh) * 2010-01-26 2011-07-27 中兴通讯股份有限公司 IPv6地址的分配方法和装置
CN102594940A (zh) * 2012-02-20 2012-07-18 烽火通信科技股份有限公司 家庭网关动态配置ipv6的方法
CN102833732A (zh) * 2012-07-25 2012-12-19 中兴通讯股份有限公司 一种IPv6地址无状态自动配置的系统、数据卡及其实现方法

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI109950B (fi) * 2000-01-20 2002-10-31 Nokia Corp Osoitteen saanti
US7457253B2 (en) * 2002-03-26 2008-11-25 Telefonaktiebolaget Lm Ericsson (Publ) System, an arrangement and a method relating to IP-addressing
US8625609B2 (en) * 2006-05-19 2014-01-07 Futurewei Technologies Inc. Using DHCPv6 and AAA for mobile station prefix delegation and enhanced neighbor discovery
US8107417B2 (en) * 2006-08-04 2012-01-31 Samsung Electronics Co., Ltd. Method and mobile terminal for allocating IP address in wireless network
US7873003B2 (en) 2006-11-08 2011-01-18 Electronics And Telecommunications Research Institute Method for allocating IP address to mobile station in mobile communication system
US8238315B2 (en) 2008-09-16 2012-08-07 Marvell World Trade Ltd. Rapid local address assignment for wireless communication networks
US9491036B2 (en) * 2010-03-18 2016-11-08 Qualcomm Incorporated Method and apparatus for facilitating prefix allocation and advertisement or delegation
CN102340452B (zh) * 2011-10-14 2018-03-02 中兴通讯股份有限公司 一种基于单个IPv6地址前缀实现路由传输的方法和无线设备
CN102710806B (zh) * 2012-05-18 2015-08-12 中兴通讯股份有限公司 一种自动选择IPv6地址传输方式的方法、设备和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753635A (zh) * 2008-12-17 2010-06-23 华为技术有限公司 Ipv6地址配置方法和系统
CN102137170A (zh) * 2010-01-26 2011-07-27 中兴通讯股份有限公司 IPv6地址的分配方法和装置
CN102594940A (zh) * 2012-02-20 2012-07-18 烽火通信科技股份有限公司 家庭网关动态配置ipv6的方法
CN102833732A (zh) * 2012-07-25 2012-12-19 中兴通讯股份有限公司 一种IPv6地址无状态自动配置的系统、数据卡及其实现方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2879419A4 *

Also Published As

Publication number Publication date
US20150180823A1 (en) 2015-06-25
EP2879419B1 (en) 2018-12-19
EP2879419A4 (en) 2015-07-15
EP2879419A1 (en) 2015-06-03
US9729501B2 (en) 2017-08-08
CN102833732B (zh) 2017-03-29
CN102833732A (zh) 2012-12-19

Similar Documents

Publication Publication Date Title
WO2014015775A1 (zh) 一种IPv6地址无状态自动配置的系统、数据卡及其实现方法
US20210385154A1 (en) Multipath data transmission method and device
JP4938834B2 (ja) アドレス取得
KR100636186B1 (ko) 양방향 터널 설정 방법 및 시스템
EP2426885B9 (en) Method, device and system for mobile virtual private network communication
US9807603B2 (en) Method and system for WiBro network interworking in wireless terminal
WO2014086167A1 (zh) 一种移动终端及其地址分配方法和系统
EP2392162A2 (en) Method and nodes for registering a terminal
WO2009115054A1 (zh) 一种获取信息的方法、用户设备及网络设备
US20110202670A1 (en) Method, device and system for identifying ip session
WO2013123763A1 (zh) 家庭网关动态配置ipv6的方法
EP2916592A1 (en) Packet data network type management method, device, and system
TW201008203A (en) Network address assignment
WO2011000258A1 (zh) 基于动态主机分配协议的配置信息的获取方法和装置
WO2013167083A2 (zh) 一种域名服务器的选择方法和设备
WO2017088101A1 (zh) 一种网络连接信息获取方法及路由器
US20130311624A1 (en) Method, apparatus and system for configuring ip address
US9516681B2 (en) Method, device and system for accessing core network by means of non-3GPP access
WO2013167072A2 (zh) 网络终端及其配置网际协议地址方法
WO2013178164A1 (zh) IPv6域名服务器DNS地址分配、获取方法及装置
KR100773822B1 (ko) 효율적인 IPv6용 IP 주소 할당을 위한 전화 접속네트워킹 방법
WO2012155571A1 (zh) 一种基站自配置的方法及装置
JP4760963B2 (ja) IPv6アドレス割り当て方法
WO2014048248A1 (zh) Mac地址的控制方法及装置
WO2012155424A1 (zh) 一种多地址前缀分配方法和系统

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: 13822259

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14416250

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2013822259

Country of ref document: EP