[go: up one dir, main page]

CN1809076B - Generation and Analysis Method of Terminal IPv6 Address in Communication Network - Google Patents

Generation and Analysis Method of Terminal IPv6 Address in Communication Network Download PDF

Info

Publication number
CN1809076B
CN1809076B CN200610003035.6A CN200610003035A CN1809076B CN 1809076 B CN1809076 B CN 1809076B CN 200610003035 A CN200610003035 A CN 200610003035A CN 1809076 B CN1809076 B CN 1809076B
Authority
CN
China
Prior art keywords
ipv6 address
user terminal
bits
last
terminal
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN200610003035.6A
Other languages
Chinese (zh)
Other versions
CN1809076A (en
Inventor
刘鸿
黄宇红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN200610003035.6A priority Critical patent/CN1809076B/en
Publication of CN1809076A publication Critical patent/CN1809076A/en
Priority to PCT/CN2007/000289 priority patent/WO2007087747A1/en
Application granted granted Critical
Publication of CN1809076B publication Critical patent/CN1809076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/604Address structures or formats
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Landscapes

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

Abstract

本发明涉及一种通信网络中终端IPv6地址的生成及解析方法,生成方法包括:用于分配IPv6地址的网络节点向用户终端发送包含IPv6地址前级的消息;用户终端收到消息后,将能唯一确定所述用户终端身份的标识号码配置在IPv6地址的后64位中。解析方法包括:网络节点在收到用户终端的报文后,获取报文中的IPv6地址;网络节点提取IPv6地址的后64位作为唯一确定其用户终端的标识号码。通过本发明提供的方法,充分利用了IPv6地址的资源,减少了获取IP地址的时延和由于网络节点的故障造成的用户终端访问IP网络失败的可能,并且网络节点可以直接从IPv6地址中获得终端的号码信息,方便网络节点进行鉴权、认证、计费等。

Figure 200610003035

The present invention relates to a method for generating and analyzing a terminal IPv6 address in a communication network. The generating method includes: a network node for allocating an IPv6 address sends a message containing the preceding stage of the IPv6 address to a user terminal; after receiving the message, the user terminal can The identification number uniquely determining the identity of the user terminal is configured in the last 64 bits of the IPv6 address. The parsing method includes: the network node acquires the IPv6 address in the message after receiving the message from the user terminal; the network node extracts the last 64 bits of the IPv6 address as a unique identification number for determining its user terminal. Through the method provided by the present invention, the resources of IPv6 addresses are fully utilized, the delay in obtaining IP addresses and the possibility of failure of user terminals to access IP networks caused by network node failures are reduced, and network nodes can be obtained directly from IPv6 addresses. The number information of the terminal is convenient for network nodes to perform authentication, authentication, billing, etc.

Figure 200610003035

Description

通信网络中终端IPv6地址的生成及解析方法 Generation and Analysis Method of Terminal IPv6 Address in Communication Network

技术领域technical field

本发明涉及一种通信网络中终端IPv6地址的生成及解析方法,尤其是一种在IPv6地址的后64位中配置终端的标识号码的IPv6地址的生成方法,以及基于该生成方法的IPv6地址的解析方法。The present invention relates to a method for generating and analyzing an IPv6 address of a terminal in a communication network, in particular to a method for generating an IPv6 address in which an identification number of a terminal is configured in the last 64 bits of the IPv6 address, and an IPv6 address based on the generating method parsing method.

背景技术Background technique

在移动通信网络中,当用户终端(UE)要访问IP网络时,需要网络侧的节点向UE分配IP地址,UE获得IP地址后才能访问IP网络。在目前使用的移动通信网络中,向UE分配IP地址是由GGSN(Gateway GPRS SupportingNode,网关GPRS支持节点)负责的,对于IPv4网络,当UE在要访问IP网络时,向GGSN发起请求,GGSN在返回的确认消息中携带为该UE分配的IPv4地址。为了避免UE地址重叠,GGSN向不同的UE分配不同的IPv4地址。In a mobile communication network, when a user terminal (UE) wants to access an IP network, a node on the network side needs to assign an IP address to the UE, and the UE can access the IP network only after obtaining the IP address. In the currently used mobile communication network, GGSN (Gateway GPRS Supporting Node, Gateway GPRS Supporting Node) is responsible for assigning IP addresses to UEs. For IPv4 networks, when UE wants to access the IP network, it initiates a request to GGSN. The returned confirmation message carries the IPv4 address allocated for the UE. In order to avoid overlapping of UE addresses, the GGSN allocates different IPv4 addresses to different UEs.

随着网络技术的发展,IETF提出了IPv6地址,IPv6地址是128位的二进制数,理论上可以支持2128个终端。IPv6前64位为地址前缀,用来标识终端所在的子网;后64位用于在子网内终端标识。不同的子网具有不同的地址前缀;相同子网内不同终端具有不同的子网内标识。这样,不同的终端要么具有不同的地址前缀(处于不同子网),要么具有不同的子网内标识(处于相同子网),因此不同终端具有不同的IPv6地址。目前IETF和3GPP建议在移动通信网络中由GGSN完成IPv6路由器的功能,向不同的UE分配不同的IPv6地址前缀(IPv6地址的前64位),以保证UE的IPv6地址都互不相同。由于不同UE具有不同的IPv6地址前缀,因此IPv6地址的后64位(子网内标识)并没有实际的作用,理论上UE可以随意配置。With the development of network technology, IETF has proposed the IPv6 address, which is a 128-bit binary number and can support 2 128 terminals in theory. The first 64 bits of IPv6 are the address prefix, which is used to identify the subnet where the terminal is located; the last 64 bits are used to identify the terminal in the subnet. Different subnets have different address prefixes; different terminals in the same subnet have different identifiers in the subnet. In this way, different terminals either have different address prefixes (in different subnets), or have different intra-subnet identifiers (in the same subnet), so different terminals have different IPv6 addresses. At present, IETF and 3GPP suggest that the GGSN implement the function of IPv6 router in the mobile communication network, and assign different IPv6 address prefixes (the first 64 bits of IPv6 addresses) to different UEs to ensure that the IPv6 addresses of UEs are different from each other. Since different UEs have different IPv6 address prefixes, the last 64 bits of the IPv6 address (identification within the subnet) have no practical effect, and theoretically, the UE can be configured arbitrarily.

3GPP给出的UE获取IPv6地址的流程如下:GGSN在接收到UE的请求时,向UE回复带有IPv6地址前缀(Prefix)的确认消息,UE根据该消息中的IPv6地址前缀加上任意的64位二进制数可以生成IPv6地址。GGSN应确保向不同的UE发送不同的IPv6地址前缀,以确保不同的UE生成的IPv6地址互不相同。The procedure for UE to obtain an IPv6 address given by 3GPP is as follows: When GGSN receives a request from UE, it replies to UE with a confirmation message with an IPv6 address prefix (Prefix), and UE adds any 64 address prefix to the IPv6 address prefix in the message. Bit binary numbers can generate IPv6 addresses. The GGSN should ensure that different IPv6 address prefixes are sent to different UEs, so as to ensure that the IPv6 addresses generated by different UEs are different from each other.

另外,在移动通信网络中,对用户进行鉴权、认证、计费都是基于UE的号码(手机号(MSISDN)或者国际移动用户识别号(IMSI)),因此在UE访问IP网络时,IP网络节点也需要获得UE的号码。这具有一定的难度,因为在UE访问IP网络时,IP报文中并不会携带MSISDN或者IMSI。目前采用的获取UE的号码的方法为GGSN在向UE回复IPv6地址前缀或IPv4地址之前,先向Radius服务器报告MSISDN或IMSI与IPv6地址前缀或IPv4地址之间的对应关系,而Radius服务器会进一步向WAP网关(WAP GW)报告这种对应关系。WAP网关记录下这种对应关系以后向Radius服务器回复确认,Radius服务器向GGSN回复确认。此时,GGSN才向UE发送含有IPv6地址前缀或IPv4地址的回复消息,使UE能够生成IPv6地址或者配置IPv4地址。在UE访问IP网络时,WAP网关在收到的IP报文中插入移动终端的MSISDN或IMSI,以使各种网络节点能够从IP报文中提取移动终端的MSISDN或IMSI进行鉴权、认证、计费等操作。In addition, in the mobile communication network, user authentication, authentication, and billing are all based on the UE's number (mobile phone number (MSISDN) or International Mobile Subscriber Identity (IMSI)), so when the UE accesses the IP network, the IP The network node also needs to obtain the number of the UE. This is difficult because when the UE accesses the IP network, the IP packet does not carry the MSISDN or IMSI. The method currently used to obtain the number of the UE is that the GGSN reports the correspondence between the MSISDN or IMSI and the IPv6 address prefix or IPv4 address to the Radius server before replying to the UE with the IPv6 address prefix or IPv4 address, and the Radius server will further report to the Radius server The WAP Gateway (WAP GW) reports this correspondence. After recording the corresponding relationship, the WAP gateway replies to the Radius server for confirmation, and the Radius server replies for confirmation to the GGSN. At this time, the GGSN sends a reply message containing the IPv6 address prefix or IPv4 address to the UE, so that the UE can generate an IPv6 address or configure an IPv4 address. When the UE accesses the IP network, the WAP gateway inserts the MSISDN or IMSI of the mobile terminal into the received IP message, so that various network nodes can extract the MSISDN or IMSI of the mobile terminal from the IP message for authentication, authentication, Billing and other operations.

上述现有技术存在着如下不足:There are following deficiencies in the above-mentioned prior art:

1、UE获得IPv6地址前缀或者IPv4地址的时延较大。由于需要GGSN与Radius服务器、WAP网关的信息交互,并且GGSN、Radius服务器、WAP网关可能具有较大的空间距离(可能是不同省份的机房),UE需要等待较长时间才能获得IPv6地址前缀或者IPv4地址。1. It takes a long time for the UE to obtain the IPv6 address prefix or the IPv4 address. Due to the need for information interaction between the GGSN, the Radius server, and the WAP gateway, and the GGSN, the Radius server, and the WAP gateway may have a large spatial distance (maybe computer rooms in different provinces), the UE needs to wait for a long time to obtain the IPv6 address prefix or IPv4 address prefix. address.

2、UE获得IPv6地址前缀或者IPv4地址的故障点较多。如果Radius服务器和WAP网关其中之一发生故障,UE将无法获得IPv6地址前缀或者IPv4地址。2. There are many failure points for the UE to obtain the IPv6 address prefix or the IPv4 address. If one of the Radius server and the WAP gateway fails, the UE will not be able to obtain the IPv6 address prefix or IPv4 address.

3、WAP网关需要维护MSISDN或者IMSI与IPv6地址前缀或者IPv4地址之间的对应关系;并且需要对UE访问IP网络的IP报丈进行解封装,插入正确的手机号MSISDN再重新封装后发送给IP网络中的服务器。一方面WAP网关会成为UE访问IP网络性能的瓶颈,另一方面也增加了UE访问IP网络的时延和故障点。3. The WAP gateway needs to maintain the correspondence between the MSISDN or IMSI and the IPv6 address prefix or IPv4 address; and it needs to decapsulate the IP report of the UE accessing the IP network, insert the correct mobile phone number MSISDN and then re-encapsulate it and send it to the IP server in the network. On the one hand, the WAP gateway will become the bottleneck of the UE's access to the IP network performance; on the other hand, it will also increase the delay and failure points of the UE's access to the IP network.

4、网络节点需要能够从WAP网关封装的IP报文中读取手机号MSISDN,对网络节点的功能和性能都有很高的要求。4. The network node needs to be able to read the mobile phone number MSISDN from the IP message encapsulated by the WAP gateway, which has high requirements on the function and performance of the network node.

5、UE访问IP网络的IP报文都必须经过WAP网关,这限制了业务的组网。随着越来越多不再基于WAP协议、与WAP网关没有任何关系的业务出现,这种限制变得越来越不合情理。这种限制也使得WAP网关成为网络业务拓展的瓶颈。5. The IP packets for the UE to access the IP network must pass through the WAP gateway, which limits the networking of services. As more and more services are no longer based on the WAP protocol and have no relationship with the WAP gateway, this limitation becomes more and more unreasonable. This limitation also makes the WAP gateway a bottleneck for network service expansion.

6、对于现有技术中的IPv6地址的生成方式,IPv6地址的后64位没有被充分的利用,造成了IPv6地址自身资源的巨大浪费。6. Regarding the generation method of the IPv6 address in the prior art, the last 64 bits of the IPv6 address are not fully utilized, resulting in a huge waste of resources of the IPv6 address itself.

7、在现有技术中,GGSN需要对不同的移动终端分配不同的IPv6地址前缀,每个移动终端将消耗掉264的地址空间,地址资源浪费十分严重。虽然IPv6地址空间巨大,但是目前移动通信运营商仍然难以从地址分配机构获得较大的IPv6地址空间,满足目前的移动终端地址需求已经相当困难,随着未来机器到机器通信、车载终端、传感器网络等新技术的发展和商用,地址不足仍然会成为困扰移动通信运营商的一个重要问题。7. In the prior art, the GGSN needs to allocate different IPv6 address prefixes to different mobile terminals, and each mobile terminal will consume 264 address spaces, which is a serious waste of address resources. Although the IPv6 address space is huge, it is still difficult for mobile communication operators to obtain a large IPv6 address space from the address allocation agency. It is already quite difficult to meet the current mobile terminal address requirements. With the future machine-to-machine communication, vehicle terminals, and sensor networks With the development and commercialization of new technologies, insufficient addresses will still become an important problem that plagues mobile communication operators.

8、GGSN需要记录哪些地址前缀已经分配以确保对不同的移动终端分配不同的IPv6地址前缀,对GGSN有一定的性能和容量要求。8. The GGSN needs to record which address prefixes have been allocated to ensure that different IPv6 address prefixes are allocated to different mobile terminals, which has certain performance and capacity requirements for the GGSN.

发明内容Contents of the invention

本发明的目的是针对上述现有技术的不足,提供一种通信网络中终端IPv6地址的生成方法,通过该方法将IPv6地址的后64位中填入UE的号码,充分利用IPv6地址的资源,由于减少了网络节点间的信息交互,从而缩短了UE获取IP地址的时间,同时也减少了由于网络节点的故障造成的UE访问IP网络失败的可能。The purpose of the present invention is to address the deficiencies in the prior art above, and provide a method for generating a terminal IPv6 address in a communication network. By this method, the last 64 bits of the IPv6 address are filled with the number of the UE, and the resources of the IPv6 address are fully utilized. Since the information exchange between network nodes is reduced, the time for the UE to obtain the IP address is shortened, and the possibility of failure of the UE to access the IP network due to failure of the network nodes is also reduced.

本发明的另一目的是针对上述现有技术的不足,提供一种通信网络中终端IPv6地址的生成及解析方法,通过该方法使得IPv6地址中包含了UE号码信息,使UE在访问IP网络时,网络节点可以直接从IPv6地址中的获取到UE的号码,从而方便网络节点对UE进行鉴权、认证、计费等操作。Another object of the present invention is to provide a method for generating and analyzing terminal IPv6 addresses in a communication network in view of the deficiencies of the above-mentioned prior art. By this method, the IPv6 address includes UE number information, so that when the UE accesses the IP network, it can , the network node can directly obtain the number of the UE from the IPv6 address, so that it is convenient for the network node to perform operations such as authentication, authentication, and accounting on the UE.

为了实现上述目的,本发明提供了一种通信网络中终端IPv6地址的生成方法,包括如下步骤:In order to achieve the above object, the invention provides a method for generating a terminal IPv6 address in a communication network, comprising the steps of:

步骤11、用于分配IPv6地址的网络节点向用户终端发送包含IPv6地址前缀的消息,所述IPv6地址前缀中包含标识字段,所述标识字段用于标识用户终端需要配置的IPv6地址的后64位的内容;Step 11, the network node for allocating the IPv6 address sends a message containing the IPv6 address prefix to the user terminal, the IPv6 address prefix includes an identification field, and the identification field is used to identify the last 64 bits of the IPv6 address that the user terminal needs to configure Content;

步骤12、所述用户终端收到消息后,根据所述标识字段将手机号码或国际移动用户识别号配置在IPv6地址的后64位中。Step 12. After receiving the message, the user terminal configures the mobile phone number or the International Mobile Subscriber Identification Number in the last 64 bits of the IPv6 address according to the identification field.

由于MSISDN和IMSI都是16位的十进制数字,可以用64位二进制数来表示。因此在所述步骤12中,所述用户终端可以将手机号码或国际移动用户识别号配置IPv6地址的后64位中。Since both MSISDN and IMSI are 16-bit decimal numbers, they can be represented by 64-bit binary numbers. Therefore, in the step 12, the user terminal may configure the mobile phone number or the International Mobile Subscriber Identification Number in the last 64 bits of the IPv6 address.

本发明还提供了一种通信网络中终端IPv6地址的解析方法,包括如下步骤:The present invention also provides a method for analyzing the IPv6 address of a terminal in a communication network, comprising the following steps:

步骤21、网络节点在收到用户终端的报文后,获取报文中的IPv6地址;Step 21, after receiving the message from the user terminal, the network node obtains the IPv6 address in the message;

步骤22、获取所述IPv6地址前缀中的标识字段,并分析该标识字段所包含的信息,确定IPv6地址的后64位中的信息内容,网络节点根据所述标识字段提取所述IPv6地址的后64位作为用户终端的手机号码或国际移动用户识别号。Step 22, obtain the identification field in the IPv6 address prefix, and analyze the information contained in the identification field, determine the information content in the last 64 bits of the IPv6 address, and the network node extracts the last part of the IPv6 address according to the identification field 64 bits are used as the mobile phone number or International Mobile Subscriber Identification Number of the user terminal.

通过本发明提供的IPv6地址的生成方法,将IPv6地址的后64位中填入UE的号码,充分利用了IPv6地址的资源,由于减少了网络节点间的信息交互,从而缩短了UE获取IP地址的时间,同时也减少了由于网络节点的故障造成的UE访问IP网络失败的可能,进而通过本发明提供的通信网络中终端IPv6地址的解析方法,使得网络节点可以直接从IPv6地址中获取到UE的号码信息,方便网络节点对UE进行鉴权、认证、计费等操作。Through the generation method of the IPv6 address provided by the present invention, the last 64 bits of the IPv6 address are filled with the number of the UE, which fully utilizes the resource of the IPv6 address, and shortens the time for the UE to obtain the IP address due to the reduction of information interaction between network nodes. At the same time, it also reduces the possibility of failure of the UE to access the IP network due to the failure of the network node, and then through the analysis method of the terminal IPv6 address in the communication network provided by the present invention, the network node can directly obtain the UE from the IPv6 address. The number information of the network node is convenient for the network node to perform operations such as authentication, authentication, and charging on the UE.

下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

附图说明Description of drawings

图1为本发明的通信网络中终端IPv6地址的生成方法具体实施例的流程图;Fig. 1 is the flowchart of the specific embodiment of the generating method of terminal IPv6 address in the communication network of the present invention;

图2为本发明的通信网络中终端IPv6地址的解析方法具体实施例的流程图。FIG. 2 is a flowchart of a specific embodiment of a method for resolving an IPv6 address of a terminal in a communication network according to the present invention.

具体实施方式Detailed ways

参见图1、其为本发明的通信网络中终端IPv6地址的生成方法具体实施例的流程图,包括如下步骤:Referring to Fig. 1, it is the flow chart of the specific embodiment of the generating method of terminal IPv6 address in the communication network of the present invention, comprises the following steps:

步骤101、GGSN收到UE访问IP网络的请求后向UE发送包含IPv6地址前缀的确认消息;Step 101, after the GGSN receives the UE's request to access the IP network, it sends an acknowledgment message including the IPv6 address prefix to the UE;

步骤102、所述UE收到确认消息后,将MSISDN或IMSI配置在IPv6地址的后64位中。Step 102. After receiving the confirmation message, the UE configures the MSISDN or IMSI in the last 64 bits of the IPv6 address.

MSISDN和IMSI都是可以唯一确定用户终端身份的号码,3GPP关于MSISDN和IMSI的定义如下:Both MSISDN and IMSI are numbers that can uniquely determine the identity of a user terminal. 3GPP defines MSISDN and IMSI as follows:

IMSI::=TBCD-STRING(SIZE(3..8))IMSI::=TBCD-STRING(SIZE(3..8))

--digits of MCC,MNC,MSIN arc concatenated in this order.--digits of MCC,MNC,MSIN arc concatenated in this order.

TBCD-STRING::=OCTET STRINGTBCD-STRING::=OCTET STRING

--This type(Telephony Binary Coded Decimal String)is used to--This type(Telephony Binary Coded Decimal String) is used to

--represent several digits from 0 through 9,*,#,a,b,c,two--represent several digits from 0 through 9, *, #, a, b, c, two

--digits per octet,each digit encoded 0000 to 1001(0 to 9),--digits per octet, each digit encoded 0000 to 1001(0 to 9),

--1010(*),1011(#),1100(a),1101(b)or 1110(c);1111 used--1010(*), 1011(#), 1100(a), 1101(b) or 1110(c); 1111 used

--as filler when there is an odd number of digits.--as filler when there is an odd number of digits.

--bits 8765 of octet n encoding digit 2n--bits 8765 of octet n encoding digit 2n

--bits 4321 of octet n encoding digit 2(n-1)+1--bits 4321 of octet n encoding digit 2(n-1)+1

ISDN-AddressString::=ISDN-AddressString::=

AddressString(SIZE(1..maxISDN-AddressLength))AddressString(SIZE(1..maxISDN-AddressLength))

--This type is used to represent ISDN numbers.--This type is used to represent ISDN numbers.

maxISDN-AddressLength INTEGER::=9maxISDN-AddressLength INTEGER::=9

AddressString::=OCTET STRING(StZE(1..maxAddressLength))AddressString::=OCTET STRING(StZE(1..maxAddressLength))

--This type is used to represent a number for addressing--This type is used to represent a number for addressing

--purposes.It is composed of--purposes. It is composed of

--a)one octet for nature of address,and numbering plan--a) one octet for nature of address, and numbering plan

--indicator.--indicator.

--b)digits of an address encoded as TBCD-String.--b) digits of an address encoded as TBCD-String.

--a)The first octet includes a one bit extension indicator,a--a) The first octet includes a one bit extension indicator, a

--3bits nature of address indicator and a 4bits numbering--3bits nature of address indicator and a 4bits numbering

--plan indicator,encoded as follows:--plan indicator, encoded as follows:

--bit 8:1(no extension)--bit 8:1 (no extension)

--bits 765:nature of address indicator--bits 765: nature of address indicator

--000 unknown--000 unknown

--001 international number--001 international number

--010 national significant number--010 national significant number

--011 network specific number--011 network specific number

--100 subscriber number--100 subscriber number

--101 reserved--101 reserved

--110 abbreviated number--110 abbreviated number

--111 reserved for extension--111 reserved for extension

--all other values are reserved.--all other values are reserved.

--b)The following octets representing digits of an address--b) The following octets representing digits of an address

--encoded as a TBCD-STRING.--encoded as a TBCD-STRING.

maxAddressLength INTEGER::=20maxAddressLength INTEGER::=20

SubscriberIdentity::=CHOICE{SubscriberIdentity::=CHOICE{

imsi[0]IMSI,imsi[0] IMSI,

msisdn[1]ISDN-AddressStringmsisdn[1]ISDN-AddressString

}}

其中手机号(MSISDN)是最长16位的十进制数字(包括国家代码和国内手机号在内),其格式为ISDN-AddressString,即最大长度为9的AddressString;AddressString的第一个字节为类型标识,后面是TBCD-STRING;TBCD-STRING的每个字节可以表示两个数字(用四位二进制数表示一个数字);因此,MSISDN可以用64位二进制数来表示。国际移动用户识别号(IMSI)也是最长16位的十进制数字,其格式为IMSI(上述3GPP关于MSISDN和IMSI的定义的代码中的第一行所述),即最大长度为8的TBCD-STRING,TBCD-STRING的每个字节可以表示两个数字(用四位二进制数表示一个数字);因此IMSI也可以用64位二进制数来表示。因此,MSISDN或IMS I都可以配置在IPv6地址的后64为中。Among them, the mobile phone number (MSISDN) is a decimal number with the longest 16 digits (including country code and domestic mobile phone number), and its format is ISDN-AddressString, that is, an AddressString with a maximum length of 9; the first byte of AddressString is the type Logo, followed by TBCD-STRING; each byte of TBCD-STRING can represent two numbers (one number is represented by four-bit binary numbers); therefore, MSISDN can be represented by 64-bit binary numbers. The International Mobile Subscriber Identity (IMSI) is also a decimal number with a maximum length of 16 digits, and its format is IMSI (described in the first line of the above-mentioned 3GPP definition code on MSISDN and IMSI), that is, TBCD-STRING with a maximum length of 8 , each byte of TBCD-STRING can represent two numbers (a number is represented by four binary numbers); therefore, IMSI can also be represented by 64-bit binary numbers. Therefore, both MSISDN and IMSI can be configured in the last 64 bits of the IPv6 address.

由于MSISDN或IMSI都有唯一标识UE身份的特性,所以GGSN给UE分配的IPv6地址前缀可以重复,通过IPv6地址的后64位来区分不同的UE。GGSN向UE分配IPv6地址前缀的具体方式可以为,当UE需要访问IP网络时,便向GGSN发送访问IP网络的请求,GGSN收到请求后,向UE返回带有IPv6地址前缀的确认消息。如果GGSN要对其覆盖的范围内的UE配置完全相同的IPv6地址前缀,则可以采用广播的方式向其覆盖的范围内的UE发送包含IPv6地址前缀的宣告消息,这样做可以使UE更加容易的获取IPv6地址前缀。同时也节约地址空间。由于可以向不同移动终端发送相同的IPv6地址前缀,每个终端占用的IPv6前缀的地址空间为1,大大节约了地址空间。并且GGSN无须记录IPv6地址前缀的使用情况。Since both MSISDN and IMSI have the characteristic of uniquely identifying the UE identity, the IPv6 address prefix assigned by the GGSN to the UE can be repeated, and different UEs can be distinguished by the last 64 bits of the IPv6 address. The specific method for GGSN to assign an IPv6 address prefix to UE may be that when UE needs to access an IP network, it sends a request to GGSN to access an IP network, and after receiving the request, GGSN returns a confirmation message with an IPv6 address prefix to UE. If the GGSN wants to configure exactly the same IPv6 address prefix for the UEs within its coverage, it can broadcast an announcement message containing the IPv6 address prefix to the UEs within its coverage, which can make it easier for the UE to Get IPv6 address prefix. It also saves address space. Since the same IPv6 address prefix can be sent to different mobile terminals, the address space of the IPv6 prefix occupied by each terminal is 1, which greatly saves the address space. And GGSN does not need to record the use of IPv6 address prefixes.

为了灵活的配置IPv6地址的后64位,可以在IPv6地址的前缀中设定一个标识字段,用于标识UE需要配置的IPv6地址的后64位的内容,UE在获取到IPv6地址的前缀后,根据标识字段的信息来确定向后64位中填入的相应的内容。例如,可以将IPv6地址的前缀中的最后两位设定为标识字段,如果希望移动终端填写MSISDN,则GGSN应确保所向UE宣告的IPv6地址前缀的最后两位应为01;如果希望UE填写IMSI号,则GGSN应确保所宣告的IPv6地址前缀的最后两位应为10;而IPv6地址前62位则可以考虑向不同的UE宣告相同的IPv6地址前62位(当然也可以考虑向不同的UE宣告不同的IPv6地址前62位,不过没有必要向所有UE宣告的IPv6地址前62位都互不相同)。这样UE无须进行IPv6地址是否重复的检测,可以减少移动终端获取IPv6地址的时延。因为ID=01或10的IPv6地址前缀,后64位必须填写MSISDN或IMSI,虽然GGSN向不同终端发送的IPv6地址前缀可能相同,但是不同终端的MSISDN或IMSI是互不相同的,因此根据本方案生成的IPv6地址具有唯一性。In order to flexibly configure the last 64 bits of the IPv6 address, an identification field can be set in the prefix of the IPv6 address to identify the content of the last 64 bits of the IPv6 address that the UE needs to configure. After the UE obtains the prefix of the IPv6 address, Determine the corresponding content filled in the last 64 bits according to the information in the identification field. For example, the last two digits of the prefix of the IPv6 address can be set as the identification field. If the mobile terminal is expected to fill in the MSISDN, the GGSN should ensure that the last two digits of the prefix of the IPv6 address announced to the UE should be 01; if the UE is expected to fill in IMSI number, the GGSN should ensure that the last two digits of the announced IPv6 address prefix should be 10; and the first 62 digits of the IPv6 address can be considered to announce the same IPv6 address to different UEs (of course, it can also be considered to different UEs) The UE announces the first 62 bits of different IPv6 addresses, but it is not necessary that the first 62 bits of the IPv6 addresses announced to all UEs are different from each other). In this way, the UE does not need to detect whether the IPv6 address is duplicated, which can reduce the time delay for the mobile terminal to obtain the IPv6 address. Because of the IPv6 address prefix with ID=01 or 10, the last 64 bits must be filled with MSISDN or IMSI. Although the IPv6 address prefix sent by GGSN to different terminals may be the same, the MSISDN or IMSI of different terminals are different, so according to this scheme The generated IPv6 address is unique.

为了和现有的技术方案兼容,也可以允许UE随意配置其后64位,如果希望移动终端随意配置后64位,则应确保所宣告的IPv6地址前缀的最后两位应为00,并且在后两位为00的情况下,要求GGSN向不同UE宣告的IPv6地址前缀的前62位不能重复。In order to be compatible with the existing technical solutions, the UE can also be allowed to configure the last 64 bits at will. If you want the mobile terminal to configure the last 64 bits at will, you should ensure that the last two bits of the IPv6 address prefix announced should be 00, and after When the two bits are 00, it is required that the first 62 bits of the IPv6 address prefix announced by the GGSN to different UEs cannot be repeated.

在上述实施例中,向UE分配IPv6地址前缀的节点不限于GGSN,随着网络技术的发展,3GPP开始提出简化网络结构的设想,将目前UE与IP网络之间的四个节点(GGSN、SGSN(服务GRPS支持节点)、RNC(无线网络控制器)和基站)被简化成两个节点(GSN(GRPS服务节点)和AN(接入节点)),GSN承担原来GGSN的功能,AN承担原来基站的功能,SGSN和RNC的功能由GSN和AN共同承担,上述实施例中的GGSN可以由GSN取代。In the above-mentioned embodiments, the node that assigns the IPv6 address prefix to the UE is not limited to the GGSN. With the development of network technology, 3GPP began to propose the idea of simplifying the network structure. The current four nodes (GGSN, SGSN) between the UE and the IP network (Serving GRPS support node), RNC (radio network controller) and base station) are simplified into two nodes (GSN (GRPS service node) and AN (access node)), GSN assumes the function of the original GGSN, and AN assumes the original base station The functions of the SGSN and the RNC are shared by the GSN and the AN, and the GGSN in the above embodiment can be replaced by the GSN.

基于本发明的通信网络中终端I Pv6地址的生成方法,本发明还提供了一种通信网络中终端IPv6地址的解析方法,下面通过具体实施例来进一步说明本发明的IPv6地址的解析方法,参加图2,其为本发明的通信网络中终端IPv6地址的解析方法具体实施例的流程图,包括如下步骤:Based on the method for generating the IPv6 address of the terminal in the communication network of the present invention, the present invention also provides a method for analyzing the IPv6 address of the terminal in the communication network. The following specific examples will further illustrate the method for analyzing the IPv6 address of the present invention. Fig. 2, it is the flow chart of the specific embodiment of the analysis method of terminal IPv6 address in the communication network of the present invention, comprises the following steps:

步骤201、IP网络中的网络服务器在收到UE的报丈后,获取报文中的IPv6地址;Step 201, the network server in the IP network obtains the IPv6 address in the message after receiving the report from the UE;

步骤202、IP网络中的网络服务器提取所述IPv6地址的后64位中的内容作为该UE的MSISDN或IMSI,网络服务器获取到MSISDN或IMSI后,就可以进行鉴权、认证、计费等各种操作。Step 202, the network server in the IP network extracts the content in the last 64 bits of the IPv6 address as the MSISDN or IMSI of the UE. After the network server obtains the MSISDN or IMSI, it can perform authentication, authentication, billing, etc. kind of operation.

如果在IPv6地址的生成的过程中,采用的是在IPv6地址前缀中设置标识字段的方法,则相应的解析方法中,在所述步骤201与202之间还包括:网络服务器获取所述IPv6地址前缀中的标识字段,并分析该标识字段所包含的信息,确定IPv6地址的后64位中的信息内容。例如:按上述IPv6地址的生成方法的实施例中提到的标识字段的设定,如果IPv6地址前缀中的最后两位为01,则网络服务器提取IPv6地址的后64位作为UE的MSISDN。如果IPv6地址前缀中的最后两位10,则网络服务器提取所述IPv6地址的后64位作为UE的IMSI。If in the process of generating the IPv6 address, the method of setting the identification field in the IPv6 address prefix is adopted, then in the corresponding parsing method, between the steps 201 and 202, it also includes: the network server obtains the IPv6 address The identification field in the prefix, and analyze the information contained in the identification field to determine the information content in the last 64 bits of the IPv6 address. For example: according to the setting of the identification field mentioned in the embodiment of the method for generating an IPv6 address above, if the last two bits in the prefix of the IPv6 address are 01, the network server extracts the last 64 bits of the IPv6 address as the MSISDN of the UE. If the last two digits in the prefix of the IPv6 address are 10, the network server extracts the last 64 digits of the IPv6 address as the IMSI of the UE.

从上述的实施例可以看出网络服务器从IPv6地址中解析UE的号码非常容易,并且IP报文到达或者经过的任何网络节点都可以非常方便的解析UE的MSISDN或IMSI,只需要解析IPv6报文头部中的源地址而不必解析IPv6报文的其他部分,因此对网络节点的要求不高。同时也去除了IP报文必须经过WAP网关的限制,由于IP报文到达或者经过的任何网络节点都可以解析UE的MSISDN或IMSI以便进行鉴权、认证、计费等操作,避免了对WAP网关的依赖。It can be seen from the above embodiments that the network server resolves the UE number from the IPv6 address very easily, and any network node that the IP message arrives at or passes through can easily resolve the MSISDN or IMSI of the UE, only the IPv6 message needs to be parsed The source address in the header does not need to parse other parts of the IPv6 message, so the requirements for network nodes are not high. At the same time, it also removes the restriction that IP packets must pass through the WAP gateway. Since any network node that the IP packet arrives at or passes through can resolve the MSISDN or IMSI of the UE for authentication, authentication, accounting, etc., it avoids the need for WAP gateway dependency.

最后所应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be The scheme shall be modified or equivalently replaced without departing from the spirit and scope of the technical scheme of the present invention.

Claims (7)

1.一种通信网络中终端IPv6地址的生成方法,其特征在于包括如下步骤:1. a generation method of terminal IPv6 address in a communication network, it is characterized in that comprising the steps: 步骤11、用于分配IPv6地址的网络节点向用户终端发送包含IPv6地址前缀的消息,所述IPv6地址前缀中包含标识字段,所述标识字段用于标识用户终端需要配置的IPv6地址的后64位的内容;Step 11, the network node for allocating the IPv6 address sends a message containing the IPv6 address prefix to the user terminal, the IPv6 address prefix includes an identification field, and the identification field is used to identify the last 64 bits of the IPv6 address that the user terminal needs to configure Content; 步骤12、所述用户终端收到消息后,根据所述标识字段,将手机号码或国际移动用户识别号配置在IPv6地址的后64位中。Step 12. After receiving the message, the user terminal configures the mobile phone number or the International Mobile Subscriber Identification Number in the last 64 bits of the IPv6 address according to the identification field. 2.根据权利要求1所述的通信网络中终端IPv6地址的生成方法,其特征在于在所述步骤12中,如果所述的标识字段包含的信息为要求所述用户终端将手机号码配置在IPv6地址的后64位中的信息,则所述用户终端将手机号码配置在IPv6地址的后64位中。2. The generation method of terminal IPv6 address in the communication network according to claim 1, it is characterized in that in said step 12, if the information that said identification field contains is to require said user terminal to configure the mobile phone number in IPv6 information in the last 64 bits of the address, then the user terminal configures the mobile phone number in the last 64 bits of the IPv6 address. 3.根据权利要求1所述的通信网络中终端IPv6地址的生成方法,其特征在于在所述步骤12中,如果所述的标识字段包含的信息为要求所述用户终端将国际移动用户识别号配置在IPv6地址的后64位中的信息,则所述用户终端将国际移动用户识别号配置在IPv6地址的后64位中。3. the generation method of terminal IPv6 address in the communication network according to claim 1, it is characterized in that in described step 12, if the information that described identification field comprises is to require described user terminal to send International Mobile Subscriber Identification Number information configured in the last 64 bits of the IPv6 address, then the user terminal configures the International Mobile Subscriber Identification Number in the last 64 bits of the IPv6 address. 4.根据权利要求1所述的通信网络中终端IPv6地址的生成方法,其特征在于在所述步骤12中,如果所述的标识字段包含的信息为要求所述用户终端随意配置IPv6地址的后64位的信息,则所述用户终端随意配置IPv6地址的后64位。4. The generation method of terminal IPv6 address in the communication network according to claim 1, it is characterized in that in said step 12, if the information that described identification field comprises is to require described user terminal to arbitrarily configure IPv6 address 64-bit information, the user terminal can freely configure the last 64 bits of the IPv6 address. 5.根据权利要求1所述的通信网络中终端IPv6地址的生成方法,其特征在于在所述步骤11中,所述用于分配IPv6地址的网络节点收到用户终端发送的访问IP网络的请求后,向所述用户终端返回带有IPv6地址前缀的确认消息。5. the generation method of terminal IPv6 address in communication network according to claim 1 is characterized in that in described step 11, described network node for assigning IPv6 address receives the request of the visit IP network that user terminal sends Afterwards, return a confirmation message with the IPv6 address prefix to the user terminal. 6.根据权利要求1所述的通信网络中终端IPv6地址的生成方法,其特征在于在所述步骤11中,所述用于分配IPv6地址的网络节点以广播的方式向其覆盖的范围内的用户终端发送包含IPv6地址前缀的宣告消息。6. the generating method of terminal IPv6 address in the communication network according to claim 1 is characterized in that in described step 11, described network node that is used to distribute IPv6 address broadcasts to its covered range The user terminal sends an announcement message including the prefix of the IPv6 address. 7.一种通信网络中终端IPv6地址的解析方法,其特征在于包括如下步骤:7. A method for analyzing terminal IPv6 addresses in a communication network, characterized in that it comprises the steps: 步骤21、网络节点在收到用户终端的报文后,获取报文中的IPv6地址;步骤22、获取所述IPv6地址前缀中的标识字段,并分析该标识字段所包含的信息,确定IPv6地址的后64位中的信息内容,网络节点根据所述标识字段提取所述IPv6地址的后64位作为用户终端的手机号码或国际移动用户识别号。Step 21, the network node obtains the IPv6 address in the message after receiving the message from the user terminal; Step 22, obtains the identification field in the IPv6 address prefix, and analyzes the information contained in the identification field to determine the IPv6 address The network node extracts the last 64 bits of the IPv6 address as the mobile phone number or international mobile subscriber identification number of the user terminal according to the identification field.
CN200610003035.6A 2006-01-26 2006-01-26 Generation and Analysis Method of Terminal IPv6 Address in Communication Network Active CN1809076B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200610003035.6A CN1809076B (en) 2006-01-26 2006-01-26 Generation and Analysis Method of Terminal IPv6 Address in Communication Network
PCT/CN2007/000289 WO2007087747A1 (en) 2006-01-26 2007-01-25 Generation and extraction method of ipv6 address of a terminal in communication network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610003035.6A CN1809076B (en) 2006-01-26 2006-01-26 Generation and Analysis Method of Terminal IPv6 Address in Communication Network

Publications (2)

Publication Number Publication Date
CN1809076A CN1809076A (en) 2006-07-26
CN1809076B true CN1809076B (en) 2010-05-26

Family

ID=36840758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610003035.6A Active CN1809076B (en) 2006-01-26 2006-01-26 Generation and Analysis Method of Terminal IPv6 Address in Communication Network

Country Status (2)

Country Link
CN (1) CN1809076B (en)
WO (1) WO2007087747A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656656B (en) * 2008-08-22 2011-12-14 中国移动通信集团公司 Method and device for sending and receiving isomerized mobile communication network-based message
CN102457548B (en) * 2010-10-20 2015-05-20 中兴通讯股份有限公司 Method and device for obtaining IPv6 (Internet Protocol version 6) interface identifier
CN102710806B (en) * 2012-05-18 2015-08-12 中兴通讯股份有限公司 A kind of method, apparatus and system of automatic selection IPv6 address transfer mode
CN102801821A (en) * 2012-08-10 2012-11-28 中国联合网络通信集团有限公司 Address generation and analysis method, user equipment and network node
CN102868778B (en) * 2012-09-19 2015-07-22 中国联合网络通信集团有限公司 IPv6 (Internet Protocol version 6) address generating method and device
CN105491558A (en) * 2014-09-18 2016-04-13 北京信威通信技术股份有限公司 Method for generating IPv6 multicast address of cluster group
CN106027697B (en) * 2016-08-01 2019-02-05 清华大学 An IPv6 address generation scheme management system
CN113542905B (en) * 2020-04-22 2024-05-03 中国移动通信集团有限公司 Address allocation method, gateway, set top box, equipment and storage medium
CN114301670B (en) * 2021-12-28 2023-12-05 天翼物联科技有限公司 Terminal authentication method, device, equipment and medium based on IPV6 address
CN114448936B (en) * 2022-01-28 2023-10-20 广州根链国际网络研究院有限公司 IPv 6-based network transmission rule verification method capable of encoding traceability
CN114531421B (en) * 2022-02-17 2024-10-22 周宏仁 Identification coding method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414751A (en) * 2001-10-22 2003-04-30 富士通株式会社 Service control network, server, network device, service information distribution method and service information allocator
CN1625275A (en) * 2000-01-20 2005-06-08 诺基亚有限公司 address acquisition
CN1697421A (en) * 2004-05-10 2005-11-16 华为技术有限公司 Method for implementing tunnel relay in network for carrying out conversion of network address

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002217950A (en) * 2001-01-15 2002-08-02 Sony Corp Information processing apparatus and method, recording medium, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625275A (en) * 2000-01-20 2005-06-08 诺基亚有限公司 address acquisition
CN1414751A (en) * 2001-10-22 2003-04-30 富士通株式会社 Service control network, server, network device, service information distribution method and service information allocator
CN1697421A (en) * 2004-05-10 2005-11-16 华为技术有限公司 Method for implementing tunnel relay in network for carrying out conversion of network address

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JP特开2002-217950A 2002.08.02
JP特开2004-282358A 2004.10.07

Also Published As

Publication number Publication date
CN1809076A (en) 2006-07-26
WO2007087747A1 (en) 2007-08-09

Similar Documents

Publication Publication Date Title
WO2007087747A1 (en) Generation and extraction method of ipv6 address of a terminal in communication network
CN101420762B (en) Access gateway selection method, system and gateway selection execution node
EP1119986B1 (en) Method and apparatus for communicating data packets from an external packet network to a mobile radio station
EP1210835B1 (en) Facilitating data transmission
CN101790150B (en) Method and device for updating contract allocation of access point name
JP3811064B2 (en) Authentication method and system
US7315519B2 (en) IPv4/v6 address acquisition techniques for mobile terminals operating within wireless LANs
JP2010074835A (en) Address acquisition
JP2009510858A (en) Policy control in an extended system architecture
CN102143559B (en) Realize method and access gateway, system that multi-packet data network connects
CN101330723A (en) Method and system for establishing tunnel in evolving network
CN101257702A (en) Method, system and gateway device for enabling roaming users to access home network
KR101191721B1 (en) METHOD FOR GENERATING AND MANAGING CONNECTION IDENTIFIERS FOR SUPPORTING GROUP MULTICASTING IN IPv6-BASED WIRELESS NETWORK AND NETWORK INTERFACE OF ENABLING THE METHOD
CN102065469A (en) Method and mobile network system for reducing IP address requirement
CN102651862A (en) IP (Internet Protocol) address configuration method of WAP (Wireless Application Protocol) gateway and equipment thereof
CN102469176B (en) Method and equipment for distributing IP (Internet protocol) addresses
JP4497555B2 (en) Efficient IP address assignment apparatus for IPv6 and method in dial-up network
KR20020096256A (en) Dynamic mobile address management apparatus and its method and wireless packet service method using them
CN100358391C (en) Method for accessing mobile station for general packet wireless business and domain name server
CN100464595C (en) Method and network element equipment for acquiring user's access home GGSN
FI107677B (en) Allocation of an IP address in a mobile telecommunications system
CN101394655B (en) IP packet routing method for roaming customer
CN110602802B (en) Data transmission method, system, device and computer readable storage medium
CN101179554B (en) Method and network side for notifying boot mode of mobile subscriber terminal
CN103369592B (en) Message transmitting method in packet domain and relevant device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant