Movatterモバイル変換


[0]ホーム

URL:


CN103179229B - A kind of data service communications method, equipment and system - Google Patents

A kind of data service communications method, equipment and system
Download PDF

Info

Publication number
CN103179229B
CN103179229BCN201310134490.XACN201310134490ACN103179229BCN 103179229 BCN103179229 BCN 103179229BCN 201310134490 ACN201310134490 ACN 201310134490ACN 103179229 BCN103179229 BCN 103179229B
Authority
CN
China
Prior art keywords
terminal
address
request
data
phone number
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
CN201310134490.XA
Other languages
Chinese (zh)
Other versions
CN103179229A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN201310134490.XApriorityCriticalpatent/CN103179229B/en
Publication of CN103179229ApublicationCriticalpatent/CN103179229A/en
Priority to PCT/CN2013/084818prioritypatent/WO2014169590A1/en
Application grantedgrantedCritical
Publication of CN103179229BpublicationCriticalpatent/CN103179229B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种数据业务通信方法、设备及系统,涉及移动通信领域。所述方法包括:接收第一终端发送的上线请求报文,上线请求报文中包含第一终端的手机号码,为第一终端分配第一IP地址,建立第一IP地址与第一终端的手机号码之间的第一映射;接收第二终端发送的数据请求报文,数据请求报文包含第一终端的手机号码,获得第一终端的手机号码,根据第一映射和所述第一终端的手机号码得到第一IP地址,将数据请求报文的请求目的地址替换为第一IP地址后,将数据请求报文转发至第一终端。所述方法、设备及系统,提高了移动终端之间的点对点数据业务通信的效率。

The invention discloses a data service communication method, equipment and system, and relates to the field of mobile communication. The method includes: receiving an online request message sent by the first terminal, wherein the online request message includes the mobile phone number of the first terminal, assigning a first IP address to the first terminal, and establishing a relationship between the first IP address and the mobile phone number of the first terminal. The first mapping between numbers; receiving the data request message sent by the second terminal, the data request message includes the mobile phone number of the first terminal, obtaining the mobile phone number of the first terminal, and according to the first mapping and the mobile phone number of the first terminal The mobile phone number obtains the first IP address, and after replacing the request destination address of the data request message with the first IP address, the data request message is forwarded to the first terminal. The method, device and system improve the efficiency of point-to-point data service communication between mobile terminals.

Description

Translated fromChinese
一种数据业务通信方法、设备及系统A data service communication method, device and system

技术领域technical field

本发明涉及移动通信技术领域,尤其涉及一种数据业务通信方法、设备及系统。The present invention relates to the technical field of mobile communication, in particular to a data service communication method, device and system.

背景技术Background technique

目前,在移动通信网络当中,两个归属于相同的策略及计费执行功能服务器(policyandchargingenforcementfunction,PCEF)的终端上线后,进行点对点数据业务通信过程如图1所示。At present, in a mobile communication network, after two terminals belonging to the same policy and charging enforcement function server (policy and charging enforcement function, PCEF) go online, the communication process of point-to-point data services is shown in FIG. 1 .

其中,首先终端1与PCEF通信,完成上线过程(步骤101、102、103、104),该过程中,PCEF为终端1分配第一IP地址(即IP1);终端2的上线过程(步骤105、106、107、108)与终端1相似,PCEF为终端2分配第二IP地址(即IP2)。然后,终端1登录点对点应用服务器(步骤109、110、111)上报所述第一IP地址,点对点应用服务器将保存终端1的第一IP地址;终端2登录点对点应用服务器(步骤112、113、114)上报所述第二IP地址,点对点应用服务器将保存终端2的第二IP地址。再之后,当终端1要向终端2发送通信数据,例如文件时,终端1先访问点对点应用服务器获得终端2的第二IP地址(步骤115、116);然后,终端1将通信数据发送至PCEF(步骤117),由PCEF再将文件转发至终端2(步骤118)。终端2的响应信息也通过PCEF被发送至终端1。Among them, first, terminal 1 communicates with PCEF to complete the online process (steps 101, 102, 103, 104). During this process, PCEF assigns the first IP address (ie IP1) to terminal 1; 106, 107, 108) are similar to Terminal 1, and the PCEF allocates a second IP address (namely IP2) for Terminal 2. Then, terminal 1 logs into the peer-to-peer application server (steps 109, 110, 111) and reports the first IP address, and the peer-to-peer application server will save the first IP address of terminal 1; terminal 2 logs into the peer-to-peer application server (steps 112, 113, 114 ) to report the second IP address, and the peer-to-peer application server will store the second IP address of the terminal 2. Afterwards, when terminal 1 wants to send communication data, such as files, to terminal 2, terminal 1 first accesses the peer-to-peer application server to obtain the second IP address of terminal 2 (steps 115 and 116); then, terminal 1 sends the communication data to PCEF (Step 117), and the PCEF forwards the file to Terminal 2 (Step 118). The response information of terminal 2 is also sent to terminal 1 through PCEF.

上述通信过程中,终端必须通过点对点应用服务器获得目标终端的IP地址,然后再完成通信数据的传输。即必须采用在点对点应用服务器上注册过的账号、密码登录点到点应用服务器获得终端B的IP地址后,才能进行数据通信,因此用户操作比较繁琐,导致终端之间的数据业务通信效率低下。In the above communication process, the terminal must obtain the IP address of the target terminal through the point-to-point application server, and then complete the transmission of communication data. That is, data communication can only be performed after the account and password registered on the point-to-point application server are used to log in to the point-to-point application server to obtain the IP address of terminal B. Therefore, user operations are cumbersome, resulting in low efficiency of data service communication between terminals.

发明内容Contents of the invention

本发明实施例提供一种数据业务通信方法、设备及系统,以解决现有移动终端之间点对点数据业务通信效率不高的问题。Embodiments of the present invention provide a data service communication method, device and system to solve the problem of low efficiency of point-to-point data service communication between existing mobile terminals.

为了解决上述技术问题,本发明实施例公开了如下技术方案:In order to solve the above technical problems, the embodiment of the present invention discloses the following technical solutions:

第一方面,提供一种数据业务通信方法,包括步骤:In the first aspect, a data service communication method is provided, including the steps of:

接收第一终端发送的上线请求报文,所述上线请求报文中包含所述第一终端的手机号码,为所述第一终端分配第一IP地址,向所述第一终端发送所述第一IP地址,建立所述第一IP地址与所述第一终端的手机号码之间的第一映射;receiving an online request message sent by the first terminal, the online request message including the mobile phone number of the first terminal, assigning a first IP address to the first terminal, and sending the first IP address to the first terminal; An IP address, establishing a first mapping between the first IP address and the mobile phone number of the first terminal;

接收第二终端发送的数据请求报文,所述数据请求报文包含所述第一终端的手机号码,解析所述数据请求报文,获得所述第一终端的手机号码,根据所述第一映射和所述第一终端的手机号码得到所述第一IP地址,将所述数据请求报文的请求目的地址替换为所述第一IP地址后,将所述数据请求报文转发至所述第一终端。receiving the data request message sent by the second terminal, the data request message including the mobile phone number of the first terminal, parsing the data request message to obtain the mobile phone number of the first terminal, according to the first Mapping and the mobile phone number of the first terminal to obtain the first IP address, after replacing the request destination address of the data request message with the first IP address, forwarding the data request message to the first terminal.

第一方面的第一种可选方式中,所述接收第二终端发送的数据请求报文之前,还包括:接收所述第二终端发送的上线请求报文,为所述第二终端分配第二IP地址,向所述第二终端发送所述第二IP地址;In the first optional manner of the first aspect, before receiving the data request message sent by the second terminal, it also includes: receiving the online request message sent by the second terminal, and assigning the second terminal to the second terminal. Two IP addresses, sending the second IP address to the second terminal;

所述数据请求报文的请求源地址为所述第二IP地址;The request source address of the data request message is the second IP address;

所述将所述数据请求报文转发至所述第一终端之后,还包括:接收所述第一终端发送的数据应答报文,所述数据应答报文的应答源地址为所述第一IP地址,所述数据应答报文的应答目的地址为所述第二IP地址,将所述数据应答报文的应答源地址替换为所述数据请求报文的请求目的地址后,根据所述第二IP地址将所述数据应答报文转发至所述第二终端。After the forwarding of the data request message to the first terminal, it also includes: receiving a data response message sent by the first terminal, where the response source address of the data response message is the first IP address, the response destination address of the data response message is the second IP address, after replacing the response source address of the data response message with the request destination address of the data request message, according to the second The IP address forwards the data response packet to the second terminal.

结合第一方面或第一方面的第一种可选方式,在第二种可选方式中,所述数据请求报文的请求目的地址包括所述第一终端的手机号码;In combination with the first aspect or the first optional manner of the first aspect, in the second optional manner, the request destination address of the data request message includes the mobile phone number of the first terminal;

所述解析所述数据请求报文,获得所述第一终端的手机号码包括:解析所述数据请求报文,从所述数据请求报文的请求目的地址获得所述第一终端的手机号码。The analyzing the data request message to obtain the mobile phone number of the first terminal includes: analyzing the data request message, and obtaining the mobile phone number of the first terminal from the request destination address of the data request message.

结合第一方面或第一方面的第一种可选方式,在第三种可选方式中,所述数据请求报文的扩展选项包括所述第一终端的手机号码,所述数据请求报文的请求目的地址包括虚拟网关的地址;In combination with the first aspect or the first optional manner of the first aspect, in the third optional manner, the extended option of the data request message includes the mobile phone number of the first terminal, and the data request message The destination address of the request includes the address of the virtual gateway;

所述解析所述数据请求报文,获得所述第一终端的手机号码包括:解析所述数据请求报文,确定所述数据请求报文的请求目的地址为所述虚拟网关的地址后,从所述数据请求报文的扩展选项中获得所述第一终端的手机号码。The analyzing the data request message and obtaining the mobile phone number of the first terminal includes: analyzing the data request message, determining that the request destination address of the data request message is the address of the virtual gateway, and then from The mobile phone number of the first terminal is obtained from the extended option of the data request message.

结合第一方面或第一方面的第一种可选方式,在第四种可选方式中,所述数据请求报文的路由选项包括所述第一终端的手机号码,所述数据请求报文的请求目的地址包括虚拟网关的地址;In combination with the first aspect or the first optional manner of the first aspect, in a fourth optional manner, the routing option of the data request message includes the mobile phone number of the first terminal, and the data request message The destination address of the request includes the address of the virtual gateway;

所述解析所述数据请求报文,获得所述第一终端的手机号码包括:解析所述数据请求报文,确定所述数据请求报文的请求目的地址为所述虚拟网关的地址后,从所述数据请求报文的路由选项中获得所述第一终端的手机号码。The analyzing the data request message and obtaining the mobile phone number of the first terminal includes: analyzing the data request message, determining that the request destination address of the data request message is the address of the virtual gateway, and then from The mobile phone number of the first terminal is obtained from the routing option of the data request message.

第二方面,提供一种数据业务通信服务器,包括:In the second aspect, a data service communication server is provided, including:

上线请求处理单元,用于接收第一终端发送的上线请求报文,所述上线请求报文中包含所述第一终端的手机号码,为所述第一终端分配第一IP地址,向所述第一终端发送所述第一IP地址,建立所述第一IP地址与所述第一终端的手机号码之间的第一映射,以及将所述第一映射发送给数据请求处理单元;An online request processing unit, configured to receive an online request message sent by a first terminal, wherein the online request message includes a mobile phone number of the first terminal, assign a first IP address to the first terminal, and send the online request message to the first terminal. The first terminal sends the first IP address, establishes a first mapping between the first IP address and the mobile phone number of the first terminal, and sends the first mapping to a data request processing unit;

所述数据请求处理单元,用于从所述上线请求处理单元接收所述第一映射,以及用于接收第二终端发送的数据请求报文,所述数据请求报文包含所述第一终端的手机号码,解析所述数据请求报文,获得所述第一终端的手机号码,根据所述第一映射和所述第一终端的手机号码得到所述第一IP地址,将所述数据请求报文的请求目的地址替换为所述第一IP地址后,将所述数据请求报文转发至所述第一终端。The data request processing unit is configured to receive the first mapping from the online request processing unit, and to receive a data request message sent by the second terminal, the data request message including the first terminal's mobile phone number, parsing the data request message to obtain the mobile phone number of the first terminal, obtaining the first IP address according to the first mapping and the mobile phone number of the first terminal, and reporting the data request to After replacing the request destination address of the message with the first IP address, the data request message is forwarded to the first terminal.

第二方面的第一种可选方式中,所述上线请求处理单元,还用于接收所述第二终端的发送的上线请求报文,为所述第二终端分配第二IP地址,向所述第二终端发送所述第二IP地址;In the first optional manner of the second aspect, the online request processing unit is further configured to receive an online request message sent by the second terminal, assign a second IP address to the second terminal, and send an IP address to the second terminal. The second terminal sends the second IP address;

所述数据请求报文的请求源地址为所述第二IP地址;The request source address of the data request message is the second IP address;

所述数据请求处理单元,还用于接收所述第一终端发送的数据应答报文,所述数据应答报文的应答源地址为所述第一IP地址,所述数据应答报文的应答目的地址为所述第二IP地址,将所述数据应答报文的应答源地址替换为所述数据请求报文的请求目的地址后,根据所述第二IP地址将所述数据应答报文转发至所述第二终端。The data request processing unit is further configured to receive a data response message sent by the first terminal, the response source address of the data response message is the first IP address, and the response purpose of the data response message is The address is the second IP address, and after replacing the response source address of the data response message with the request destination address of the data request message, forward the data response message to the second terminal.

结合第二方面或第二方面的第一种可选方式,在第二种可选方式中,所述数据请求报文的请求目的地址包括所述第一终端的手机号码;With reference to the second aspect or the first optional manner of the second aspect, in the second optional manner, the request destination address of the data request message includes the mobile phone number of the first terminal;

所述数据请求处理单元用于获得所述第一终端的手机号码具体包括:所述数据请求处理单元用于从所述数据请求报文的请求目的地址获得所述第一终端的手机号码。The data request processing unit being used to obtain the mobile phone number of the first terminal specifically includes: the data request processing unit being used to obtain the mobile phone number of the first terminal from the request destination address of the data request message.

结合第二方面或第二方面的第一种可选方式,在第三种可选方式中,所述数据请求报文的扩展选项包括所述第一终端的手机号码,所述数据请求报文的请求目的地址包括虚拟网关的地址;所述数据请求处理单元用于获得所述第一终端的手机号码具体包括:所述数据请求处理单元用于确定所述数据请求报文的请求目的地址为所述虚拟网关的地址后,从所述数据请求报文的扩展选项中获得所述第一终端的手机号码。In combination with the second aspect or the first optional manner of the second aspect, in the third optional manner, the extended option of the data request message includes the mobile phone number of the first terminal, and the data request message The request destination address includes the address of the virtual gateway; the data request processing unit is used to obtain the mobile phone number of the first terminal specifically includes: the data request processing unit is used to determine that the request destination address of the data request message is After the address of the virtual gateway, obtain the mobile phone number of the first terminal from the extended option of the data request message.

结合第二方面或第二方面的第一种可选方式,在第四种可选方式中,所述数据请求报文的路由选项包括所述第一终端的手机号码,所述数据请求报文的请求目的地址包括虚拟网关的地址;所述数据请求处理单元用于获得所述第一终端的手机号码具体包括:所述数据请求处理单元用于确定所述数据请求报文的请求目的地址为所述虚拟网关的地址后,从所述数据请求报文的路由选项中获得所述第一终端的手机号码。In combination with the second aspect or the first optional manner of the second aspect, in a fourth optional manner, the routing option of the data request message includes the mobile phone number of the first terminal, and the data request message The request destination address includes the address of the virtual gateway; the data request processing unit is used to obtain the mobile phone number of the first terminal specifically includes: the data request processing unit is used to determine that the request destination address of the data request message is After the address of the virtual gateway, obtain the mobile phone number of the first terminal from the routing option of the data request message.

第三方面,提供一种数据业务通信系统,其包括:所述第二方面或第二方面的任一种可选方式的数据业务通信服务器,以及多个终端;In a third aspect, a data service communication system is provided, which includes: the data service communication server in the second aspect or in any optional manner of the second aspect, and a plurality of terminals;

所述多个终端,用于向所述数据业务通信服务器发送上线请求报文,以及向所述数据业务通信服务器发送数据请求报文和/或数据应答报文。The multiple terminals are configured to send an online request message to the data service communication server, and send a data request message and/or a data response message to the data service communication server.

由以上技术方案可以看出,由于本发明实施例通过为第一终端分配第一IP地址,建立第一IP地址与第一终端的手机号码之间的第一映射,接收第二终端发送的包含所述第一终端的手机号码数据请求报文后,解析数据请求报文,获得第一终端的手机号码,根据第一映射和第一终端的手机号码得到第一IP地址,将请求目的地址替换为第一IP地址后,将数据请求报文转发至所述第二终端,从而使终端无需通过事先注册的账号、密码登录点对点应用服务器获取目的终端的IP地址,仅从手机通讯录选取目的终端的手机号码作为目的地址即可完成数据业务通信,减少了用户操作步骤,提高了通信效率。As can be seen from the above technical solutions, since the embodiment of the present invention assigns the first IP address to the first terminal, establishes the first mapping between the first IP address and the mobile phone number of the first terminal, and receives the information sent by the second terminal that includes After the mobile phone number data request message of the first terminal, analyze the data request message, obtain the mobile phone number of the first terminal, obtain the first IP address according to the first mapping and the mobile phone number of the first terminal, and replace the request destination address with After the first IP address is obtained, the data request message is forwarded to the second terminal, so that the terminal does not need to log in to the point-to-point application server through a pre-registered account and password to obtain the IP address of the destination terminal, and only select the destination terminal from the mobile phone address book The mobile phone number can be used as the destination address to complete data service communication, which reduces user operation steps and improves communication efficiency.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是现有移动通信网络当中点对点数据业务通信过程示意图;FIG. 1 is a schematic diagram of a point-to-point data service communication process in an existing mobile communication network;

图2是本发明实施例提供的一种数据业务通信方法的流程图;FIG. 2 is a flowchart of a data service communication method provided by an embodiment of the present invention;

图3是本发明实施例提供的数据业务通信方法的信令流程图;FIG. 3 is a signaling flowchart of a data service communication method provided by an embodiment of the present invention;

图4是本发明另一个实施例提供的数据业务通信方法的信令流程图;Fig. 4 is a signaling flowchart of a data service communication method provided by another embodiment of the present invention;

图5是本发明另一个实施例提供的数据业务通信方法的信令流程图;Fig. 5 is a signaling flowchart of a data service communication method provided by another embodiment of the present invention;

图6是本发明实施例提供的数据业务通信服务器的模块结构示意图;FIG. 6 is a schematic diagram of a module structure of a data service communication server provided by an embodiment of the present invention;

图7是本发明实施例提供的数据业务通信系统结构图;FIG. 7 is a structural diagram of a data service communication system provided by an embodiment of the present invention;

图8是本发明实施例提供的基于计算机系统的数据业务通信服务器的结构图。Fig. 8 is a structural diagram of a data service communication server based on a computer system provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are the Some, but not all, embodiments are invented. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

图2是本发明实施例提供的一种数据业务通信方法的流程图,如图2所示,所述方法包括步骤:Fig. 2 is a flowchart of a data service communication method provided by an embodiment of the present invention. As shown in Fig. 2, the method includes steps:

210:接收第一终端发送的上线请求报文,所述上线请求报文中包含所述第一终端的手机号码,为所述第一终端分配第一IP地址,向所述第一终端发送所述第一IP地址,建立所述第一IP地址与所述第一终端的手机号码之间的第一映射。210: Receive an online request message sent by the first terminal, where the online request message includes the mobile phone number of the first terminal, assign a first IP address to the first terminal, and send the online request message to the first terminal. The first IP address is used to establish a first mapping between the first IP address and the mobile phone number of the first terminal.

220:接收第二终端发送的数据请求报文,所述数据请求报文包含所述第一终端的手机号码,解析所述数据请求报文,获得所述第一终端的手机号码,根据所述第一映射和所述第一终端的手机号码得到所述第一IP地址,将所述数据请求报文的请求目的地址替换为所述第一IP地址后,将所述数据请求报文转发至所述第一终端。220: Receive a data request message sent by the second terminal, where the data request message includes the mobile phone number of the first terminal, parse the data request message, obtain the mobile phone number of the first terminal, and obtain the mobile phone number of the first terminal according to the The first mapping and the mobile phone number of the first terminal obtain the first IP address, and after replacing the request destination address of the data request message with the first IP address, forward the data request message to the first terminal.

所述步骤220之前,还可以包括:接收所述第二终端的发送的上线请求报文,为所述第二终端分配第二IP地址,向所述第二终端发送所述第二IP地址。所述数据请求报文的请求源地址为所述第二IP地址。Before the step 220, the method may further include: receiving an online request message sent by the second terminal, assigning a second IP address to the second terminal, and sending the second IP address to the second terminal. The request source address of the data request packet is the second IP address.

所述步骤220之后,还可以包括:接收所述第一终端发送的数据应答报文,所述数据应答报文的应答源地址为所述第一IP地址,所述数据应答报文的应答目的地址为所述第二IP地址,将所述数据应答报文的应答源地址替换为所述数据请求报文的请求目的地址后,根据所述第二IP地址将所述数据应答报文转发至所述第二终端。After the step 220, it may also include: receiving a data response message sent by the first terminal, the response source address of the data response message is the first IP address, and the response destination of the data response message is The address is the second IP address, and after replacing the response source address of the data response message with the request destination address of the data request message, forward the data response message to the second terminal.

可选的,所述数据请求报文的请求目的地址包括所述第一终端的手机号码;所述解析所述数据请求报文,获得所述第一终端的手机号码包括:解析所述数据请求报文,从所述数据请求报文的请求目的地址获得所述第一终端的手机号码。Optionally, the request destination address of the data request message includes the mobile phone number of the first terminal; the parsing the data request message to obtain the mobile phone number of the first terminal includes: parsing the data request message, obtaining the mobile phone number of the first terminal from the request destination address of the data request message.

可选的,所述数据请求报文的扩展选项包括所述第一终端的手机号码,所述数据请求报文的请求目的地址包括虚拟网关的地址;所述解析所述数据请求报文,获得所述第一终端的手机号码包括:解析所述数据请求报文,确定所述数据请求报文的请求目的地址为所述虚拟网关的地址后,从所述数据请求报文的扩展选项中获得所述第一终端的手机号码。Optionally, the extended option of the data request message includes the mobile phone number of the first terminal, and the request destination address of the data request message includes an address of a virtual gateway; the parsing of the data request message obtains The mobile phone number of the first terminal includes: parsing the data request message, determining that the request destination address of the data request message is the address of the virtual gateway, and obtaining it from the extended options of the data request message The mobile phone number of the first terminal.

可选的,所述数据请求报文的路由选项包括所述第一终端的手机号码,所述数据请求报文的请求目的地址包括虚拟网关的地址;所述解析所述数据请求报文,获得所述第一终端的手机号码包括:解析所述数据请求报文,确定所述数据请求报文的请求目的地址为所述虚拟网关的地址后,从所述数据请求报文的路由选项中获得所述第一终端的手机号码。Optionally, the routing option of the data request message includes the mobile phone number of the first terminal, and the request destination address of the data request message includes an address of a virtual gateway; the parsing of the data request message obtains The mobile phone number of the first terminal includes: parsing the data request message, determining that the request destination address of the data request message is the address of the virtual gateway, and obtaining it from the routing option of the data request message The mobile phone number of the first terminal.

通过采用本发明方法,同一个移动通信网络中的两个终端,能够以手机号码作为目的地址,发起数据业务访问,由通信网络中的服务器自动完成手机号码和IP地址的映射。这种映射对用户是透明的,通过本技术方案能够避免终端访问点对点应用服务器获得目的IP地址,减少了点对点通信经过的设备和时延,提高了通信效率。By adopting the method of the invention, two terminals in the same mobile communication network can use the mobile phone number as the destination address to initiate data service access, and the server in the communication network automatically completes the mapping between the mobile phone number and the IP address. This mapping is transparent to the user, and the technical solution can prevent the terminal from accessing the point-to-point application server to obtain the destination IP address, reduce the equipment and time delay of the point-to-point communication, and improve the communication efficiency.

下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

图3是本发明实施例提供的数据业务通信方法的信令流程图,如图3所示。其中,本实施例中的第一IP地址和第二IP地址均采用IPv6地址,IPv6地址有128位,其报文头结构如下表1所示。Fig. 3 is a signaling flowchart of the data service communication method provided by the embodiment of the present invention, as shown in Fig. 3 . Wherein, both the first IP address and the second IP address in this embodiment adopt IPv6 addresses, and the IPv6 addresses have 128 bits, and the structure of the packet header is shown in Table 1 below.

表1IPv6报文头结构示例Table 1 Example of IPv6 packet header structure

128位IP地址可以分成IPv6前缀Prefix和IPv6接口ID两部分,在移动通信网络第三代合作伙伴计划(The3rdGenerationPartnershipProject,3GPP)规范中,IPv6前缀和IPv6接口ID分别各占64位。本实施例中策略及计费执行功能服务器(policyandchargingenforcementfunction,PCEF)为终端分配IPv6前缀,根据终端的手机号码生成IPv6接口ID。IPv6前缀和IPv6接口ID组合成为128位的IPv6地址,用于IPv6通信。也就是说,本实施例利用IPv6地址中的接口ID字段能够携带终端的手机号码的能力,实现本发明如下方法。The 128-bit IP address can be divided into two parts, the IPv6 prefix and the IPv6 interface ID. In the mobile communication network 3rd Generation Partnership Project (The3rdGenerationPartnershipProject, 3GPP) specification, the IPv6 prefix and the IPv6 interface ID each occupy 64 bits. In this embodiment, the policy and charging enforcement function server (policyandchargingenforcementfunction, PCEF) assigns an IPv6 prefix to the terminal, and generates an IPv6 interface ID according to the mobile phone number of the terminal. The combination of the IPv6 prefix and the IPv6 interface ID becomes a 128-bit IPv6 address for IPv6 communication. That is to say, this embodiment utilizes the ability of the interface ID field in the IPv6 address to carry the mobile phone number of the terminal to implement the following method of the present invention.

301:第一终端(即终端1)向其所在通信网络中的PCEF发送上线请求报文,所述第一终端发送的上线请求报文中包含所述第一终端的手机号码。301: A first terminal (that is, terminal 1) sends an online request message to a PCEF in the communication network where it is located, and the online request message sent by the first terminal includes the mobile phone number of the first terminal.

具体的,可以是第一终端启动点对点通信的客户端时发送上线请求报文。Specifically, it may be that the first terminal sends an online request message when starting the client of the point-to-point communication.

302:所述PCEF接收第一终端发送的上线请求报文,根据第一终端的上线请求报文对所述第一终端进行鉴权和认证。鉴权和认证完毕后,为所述第一终端分配第一IP地址,所述第一IP地址包含第一IPv6前缀和第一IPv6接口ID,所述第一IPv6接口ID为所述第一终端的手机号码,建立所述第一IP地址与所述第一终端的手机号码之间的第一映射。302: The PCEF receives an online request message sent by the first terminal, and performs authentication and authentication on the first terminal according to the online request message of the first terminal. After authentication and authentication are completed, assign a first IP address to the first terminal, the first IP address includes a first IPv6 prefix and a first IPv6 interface ID, and the first IPv6 interface ID is the first IPv6 interface ID of the first terminal and establish a first mapping between the first IP address and the mobile phone number of the first terminal.

303:所述PCEF向所述第一终端发送第一响应信息,所述第一响应信息中包含所述第一IP地址。303: The PCEF sends first response information to the first terminal, where the first response information includes the first IP address.

304:所述第一终端保存所述第一IP地址。304: The first terminal saves the first IP address.

305:第二终端向PCEF发送上线请求报文,所述第二终端发送的上线请求报文中包含所述第二终端的手机号码。305: The second terminal sends an online request message to the PCEF, where the online request message sent by the second terminal includes the mobile phone number of the second terminal.

具体的,可以是第二终端启动点对点通信的客户端时发送上线请求报文。Specifically, the online request message may be sent when the second terminal starts the client of the point-to-point communication.

306:所述PCEF接收第二终端发送的上线请求报文,根据第二终端的上线请求报文对所述第二终端进行鉴权和认证。鉴权和认证完毕后,为所述第二终端分配第二IP地址,所述第二IP地址包含第二IPv6前缀和第二IPv6接口ID,所述第二IPv6接口ID为所述第二终端的手机号码,建立所述第二IP地址与所述第二终端的手机号码之间的第二映射。306: The PCEF receives the online request message sent by the second terminal, and performs authentication and authentication on the second terminal according to the online request message of the second terminal. After authentication and authentication are completed, assign a second IP address to the second terminal, the second IP address includes a second IPv6 prefix and a second IPv6 interface ID, and the second IPv6 interface ID is the second terminal ID and establish a second mapping between the second IP address and the mobile phone number of the second terminal.

307:所述PCEF向第二终端发送第二响应信息,所述第二响应信息中包含所述第二IP地址。307: The PCEF sends second response information to the second terminal, where the second response information includes the second IP address.

308:所述第二终端保存所述第二IP地址。308: The second terminal saves the second IP address.

其中,上述第一终端和第二终端向PCEF发送上线请求报文的过程,并不限于上述描述的先后顺序,即可以是第二终端先上线,也可以是第一终端先上线,或者同时上线。Wherein, the above-mentioned process of the first terminal and the second terminal sending the online request message to the PCEF is not limited to the sequence described above, that is, the second terminal may go online first, or the first terminal may go online first, or go online at the same time .

309:所述第二终端接收到用户的数据业务通信指令,所述数据业务通信指令包含第一终端的手机号码,根据所述数据业务通信指令发送数据请求报文至PCEF,所述数据请求报文包含请求源地址和请求目的地址,所述请求源地址是所述第二IP地址,所述请求目的地址包含所述第一终端的手机号码。309: The second terminal receives a data service communication command from the user, the data service communication command includes the mobile phone number of the first terminal, sends a data request message to the PCEF according to the data service communication command, and the data request message The file includes a request source address and a request destination address, the request source address is the second IP address, and the request destination address includes the mobile phone number of the first terminal.

具体的,可以是用户通过选择第一终端的手机号码作为点到点通信的目的手机号码从而发送的数据业务通信指令。Specifically, it may be a data service communication instruction sent by the user by selecting the mobile phone number of the first terminal as the destination mobile phone number of the point-to-point communication.

具体的,所述请求目的地址可以由所述第二IPv6前缀和所述第一终端的手机号码组成。Specifically, the request destination address may consist of the second IPv6 prefix and the mobile phone number of the first terminal.

310:所述PCEF接收所述第二终端发送的数据请求报文,解析所述数据请求报文,根据所述请求目的地址得到所述第一终端的手机号码,根据所述第一映射和所述第一终端的手机号码得到所述第一IP地址,将所述数据请求报文的请求目的地址替换为所述第一IP地址。310: The PCEF receives the data request packet sent by the second terminal, parses the data request packet, obtains the mobile phone number of the first terminal according to the request destination address, and obtains the mobile phone number of the first terminal according to the first mapping and the Obtaining the first IP address from the mobile phone number of the first terminal, and replacing the request destination address of the data request message with the first IP address.

311:所述PCEF将所述数据请求报文转发至所述第一终端。311: The PCEF forwards the data request packet to the first terminal.

312:所述第一终端接收所述PCEF转发的数据请求报文后,进行处理,解析得到其中的作为请求源地址的所述第二IP地址。312: After receiving the data request packet forwarded by the PCEF, the first terminal processes it, and parses it to obtain the second IP address serving as the request source address.

313:所述第一终端回复数据应答报文,所述数据应答报文包含应答源地址和应答目的地址,所述应答源地址为所述第一IP地址,所述应答目的地址为所述第二IP地址。313: The first terminal replies with a data response packet, the data response packet includes a response source address and a response destination address, the response source address is the first IP address, and the response destination address is the first IP address Two IP addresses.

314:所述PCEF接收所述第一终端发送的数据应答报文,解析所述数据应答报文,获得所述第一IP地址和所述第二IP地址,将所述作为应答源地址的所述第一IP地址中的第一IPv6前缀替换为所述第二IPv6前缀。其中,将所述第一IPv6前缀替换为所述第二IPv6前缀的目的是便于所述第二终端确定所述数据应答报文对应的数据请求报文。314: The PCEF receives the data response packet sent by the first terminal, parses the data response packet, obtains the first IP address and the second IP address, and uses the The first IPv6 prefix in the first IP address is replaced with the second IPv6 prefix. Wherein, the purpose of replacing the first IPv6 prefix with the second IPv6 prefix is to facilitate the second terminal to determine the data request message corresponding to the data response message.

315:所述PCEF根据所述第二IP地址将所述数据应答报文转发至所述第二终端。315: The PCEF forwards the data response packet to the second terminal according to the second IP address.

图4是本发明另一个实施例提供的数据业务通信方法的信令流程图,如图4所示,本实施例所述方法与上述实施例所述方法基本相同,其不同之处在于,目的终端的手机号码通过IPv6的扩展选项携带。其中,当RoutingType为0时,IPv6报文的扩展选项格式如下面表2所示,目的终端的手机号码可以存储在Address[1]的位置处。Fig. 4 is a signaling flowchart of a data service communication method provided by another embodiment of the present invention. As shown in Fig. 4, the method described in this embodiment is basically the same as the method described in the above embodiment, the difference lies in the purpose The mobile phone number of the terminal is carried through the extended option of IPv6. Wherein, when the RoutingType is 0, the extended option format of the IPv6 message is shown in Table 2 below, and the mobile phone number of the destination terminal can be stored in Address[1].

表2IPv6报文的扩展选项格式实施例Table 2Extended option format embodiment of IPv6 message

以下,结合图4对本实施例详细说明如下。Hereinafter, this embodiment will be described in detail with reference to FIG. 4 .

401:第一终端(即终端1)向其所在PCEF发送上线请求报文,所述第一终端发送的上线请求报文中包含所述第一终端的手机号码。401: A first terminal (that is, terminal 1) sends an online request message to the PCEF where it is located, and the online request message sent by the first terminal includes the mobile phone number of the first terminal.

具体的,可以是第一终端启动点对点通信的客户端时发送上线请求报文。Specifically, it may be that the first terminal sends an online request message when starting the client of the point-to-point communication.

402:所述PCEF接收第一终端发送的上线请求报文,根据第一终端发送的上线请求报文对所述第一终端进行鉴权和认证。鉴权和认证完毕后,为所述第一终端分配第一IP地址,所述第一IP地址包含第一IPv6前缀和第一IPv6接口ID,所述第一IPv6接口ID为所述第一终端的手机号码,建立所述第一IP地址与所述第一终端的手机号码之间的第一映射。402: The PCEF receives an online request message sent by the first terminal, and performs authentication and authentication on the first terminal according to the online request message sent by the first terminal. After authentication and authentication are completed, assign a first IP address to the first terminal, the first IP address includes a first IPv6 prefix and a first IPv6 interface ID, and the first IPv6 interface ID is the first IPv6 interface ID of the first terminal and establish a first mapping between the first IP address and the mobile phone number of the first terminal.

403:所述PCEF向所述第一终端发送第一响应信息,所述第一响应信息中包含所述第一IP地址。403: The PCEF sends first response information to the first terminal, where the first response information includes the first IP address.

404:所述第一终端保存所述第一IP地址。404: The first terminal saves the first IP address.

405:第二终端向PCEF发送上线请求报文,所述第二终端发送的上线请求报文中包含所述第二终端的手机号码。405: The second terminal sends an online request message to the PCEF, where the online request message sent by the second terminal includes the mobile phone number of the second terminal.

具体的,可以是第二终端启动点对点通信的客户端时发送上线请求报文。Specifically, the online request message may be sent when the second terminal starts the client of the point-to-point communication.

406:所述PCEF接收第二终端发送的上线请求报文,根据第二终端发送的上线请求报文对所述第二终端进行鉴权和认证。鉴权和认证完毕后,为所述第二终端分配第二IP地址,所述第二IP地址包含第二IPv6前缀和第二IPv6接口ID,所述第二IPv6接口ID为所述第二终端的手机号码,建立所述第二IP地址与所述第二终端的手机号码之间的第二映射。406: The PCEF receives the online request message sent by the second terminal, and performs authentication and authentication on the second terminal according to the online request message sent by the second terminal. After authentication and authentication are completed, assign a second IP address to the second terminal, the second IP address includes a second IPv6 prefix and a second IPv6 interface ID, and the second IPv6 interface ID is the second terminal ID and establish a second mapping between the second IP address and the mobile phone number of the second terminal.

407:所述PCEF向所述第二终端发送第二响应信息,所述第二响应信息中包含所述第二IP地址。407: The PCEF sends second response information to the second terminal, where the second response information includes the second IP address.

408:所述第二终端保存所述第二IP地址。408: The second terminal saves the second IP address.

409:所述第二终端接收到用户的数据业务通信指令,所述数据业务通信指令包含所述第一终端的手机号码,获取到预先配置的虚拟网关的地址后,根据所述数据业务通信指令发送数据请求报文至PCEF,所述数据请求报文包含请求源地址和请求目的地址,所述请求源地址是所述第二IP地址,所述请求目的地址为所述虚拟网关的地址,所述数据请求报文的扩展选项中包含所述第一终端的手机号码。409: The second terminal receives the user's data service communication instruction, the data service communication instruction includes the mobile phone number of the first terminal, and after obtaining the address of the pre-configured virtual gateway, according to the data service communication instruction Send a data request message to PCEF, the data request message includes a request source address and a request destination address, the request source address is the second IP address, and the request destination address is the address of the virtual gateway, so The extended option of the data request message includes the mobile phone number of the first terminal.

具体的,可以是用户通过选择第一终端的手机号码作为点到点通信的目的手机号码从而发送的数据业务通信指令。Specifically, it may be a data service communication instruction sent by the user by selecting the mobile phone number of the first terminal as the destination mobile phone number of the point-to-point communication.

具体的,所述虚拟网关的地址可以是2001::1/64。Specifically, the address of the virtual gateway may be 2001::1/64.

410:所述PCEF接收所述第二终端发送的数据请求报文,解析所述数据请求报文,得到所述请求目的地址,根据所述请求目的地址为虚拟网关的地址判断出这是一个点到点数据业务通信的数据请求报文,进而从所述数据请求报文的扩展选项中获得所述第一终端的手机号码,根据所述第一映射和所述第一终端的手机号码得到所述第一IP地址,将所述数据请求报文的请求目的地址替换为所述第一IP地址,并建立所述第一终端的手机号码与所述虚拟网关的地址之间的第三映射。410: The PCEF receives the data request message sent by the second terminal, parses the data request message, obtains the request destination address, and determines that this is a point according to the request destination address being the address of the virtual gateway A data request message for point-to-point data service communication, and then obtain the mobile phone number of the first terminal from the extended option of the data request message, and obtain the mobile phone number of the first terminal according to the first mapping and the mobile phone number of the first terminal. the first IP address, replace the request destination address of the data request message with the first IP address, and establish a third mapping between the mobile phone number of the first terminal and the address of the virtual gateway.

411:所述PCEF将所述数据请求报文转发至所述第一终端。411: The PCEF forwards the data request packet to the first terminal.

412:所述第一终端接收所述PCEF转发的数据请求报文后,进行处理,解析得到其中的作为请求源地址的所述第二IP地址。412: After receiving the data request packet forwarded by the PCEF, the first terminal processes it, and parses it to obtain the second IP address serving as the request source address.

413:所述第一终端回复数据应答报文,所述数据应答报文包含应答源地址和应答目的地址,所述应答源地址为所述第一IP地址,所述应答目的地址为所述第二IP地址。所述数据应答报文的扩展选项中包含所述第一终端的手机号码。413: The first terminal replies with a data response packet, the data response packet includes a response source address and a response destination address, the response source address is the first IP address, and the response destination address is the first IP address Two IP addresses. The extended option of the data response message includes the mobile phone number of the first terminal.

414:所述PCEF接收所述第一终端发送的数据应答报文,解析所述数据应答报文,获得所述第二IP地址,以及所述数据应答报文的扩展选项中的所述第一终端的手机号码,根据所述第三映射和所述第一终端的手机号码得到所述虚拟网关的地址,将所述应答源地址替换为所述虚拟网关的地址。其中,将所述应答源地址替换为所述虚拟网关的地址目的是便于所述第二终端确定所述数据应答报文对应的数据请求报文。414: The PCEF receives the data response message sent by the first terminal, parses the data response message, obtains the second IP address, and the first IP address in the extended options of the data response message. The mobile phone number of the terminal obtains the address of the virtual gateway according to the third mapping and the mobile phone number of the first terminal, and replaces the reply source address with the address of the virtual gateway. Wherein, the purpose of replacing the response source address with the address of the virtual gateway is to facilitate the second terminal to determine the data request message corresponding to the data response message.

415:所述PCEF根据所述第二IP地址将所述数据应答报文转发至所述第二终端。415: The PCEF forwards the data response packet to the second terminal according to the second IP address.

其中,所述虚拟网关的地址由运营商通过空中下载OTA(OverTheAir)、约定等方式提供。Wherein, the address of the virtual gateway is provided by the operator through over-the-air OTA (OverTheAir), agreement, and other means.

图5是本发明另一个实施例提供的数据业务通信方法的信令流程图,本实施例中所述第一IP地址和第二IP地址均为IPv4地址,在数据请求报文头中存在路由选项,通过把目的终端的手机号码存储在数据请求报文头的路由选项的数据域中,也可以实现本发明方法。参见图5,本实施例所述方法包括步骤:Fig. 5 is a signaling flowchart of a data service communication method provided by another embodiment of the present invention. In this embodiment, the first IP address and the second IP address are both IPv4 addresses, and there is a route in the data request header option, by storing the mobile phone number of the destination terminal in the data field of the routing option of the data request message header, the method of the present invention can also be realized. Referring to Fig. 5, the method described in this embodiment includes steps:

501:第一终端(即终端1)向其所在通信网络中的PCEF发送上线请求报文,所述第一终端发送的上线请求报文中包含所述第一终端的手机号码。501: A first terminal (that is, terminal 1) sends an online request message to a PCEF in the communication network where the first terminal is located, and the online request message sent by the first terminal includes the mobile phone number of the first terminal.

具体的,可以是第一终端启动点对点通信的客户端时发送上线请求报文。Specifically, it may be that the first terminal sends an online request message when starting the client of the point-to-point communication.

502:所述PCEF接收第一终端发送的上线请求报文,根据所述第一终端的上线请求报文对所述第一终端进行鉴权和认证。鉴权和认证完毕后,为所述第一终端分配第一IP地址,建立所述第一IP地址与所述第一终端的手机号码之间的第一映射。502: The PCEF receives an online request message sent by the first terminal, and performs authentication and authentication on the first terminal according to the online request message of the first terminal. After authentication and authentication are completed, a first IP address is assigned to the first terminal, and a first mapping between the first IP address and the mobile phone number of the first terminal is established.

503:所述PCEF向所述第一终端发送第一响应信息,所述第一响应信息中包含所述第一IP地址。503: The PCEF sends first response information to the first terminal, where the first response information includes the first IP address.

504:所述第一终端保存所述第一IP地址。504: The first terminal saves the first IP address.

505:第二终端向PCEF发送上线请求报文,所述第二终端发送的上线请求报文中包含所述第二终端的手机号码。505: The second terminal sends an online request message to the PCEF, where the online request message sent by the second terminal includes the mobile phone number of the second terminal.

具体的,可以是所述第二终端启动点对点通信的客户端时发送上线请求报文。Specifically, it may be that the second terminal sends an online request message when starting the client of the point-to-point communication.

506:所述PCEF接收第二终端发送的上线请求报文,根据第二终端发送的上线请求报文对所述第二终端进行鉴权和认证。鉴权和认证完毕后,为所述第二终端分配第二IP地址,建立所述第二IP地址与所述第二终端的手机号码之间的第二映射。506: The PCEF receives the online request message sent by the second terminal, and performs authentication and authentication on the second terminal according to the online request message sent by the second terminal. After authentication and authentication are completed, a second IP address is assigned to the second terminal, and a second mapping between the second IP address and the mobile phone number of the second terminal is established.

507:所述PCEF向所述第二终端发送第二响应信息,所述第二响应信息中包含所述第二IP地址。507: The PCEF sends second response information to the second terminal, where the second response information includes the second IP address.

508:所述第二终端保存所述第二IP地址。508: The second terminal saves the second IP address.

509:所述第二终端接收到用户的数据业务通信指令,所述数据业务通信指令包含第一终端的手机号码,获取到预先配置的虚拟网关的地址后,根据所述数据业务通信指令发送数据请求报文至PCEF,所述数据请求报文包含请求源地址和请求目的地址,所述请求源地址是所述第二IP地址,所述请求目的地址为所述虚拟网关的地址。所述数据请求报文的路由选项中包含所述第一终端的手机号码。509: The second terminal receives the user's data service communication instruction, the data service communication instruction includes the mobile phone number of the first terminal, and after obtaining the address of the pre-configured virtual gateway, sends data according to the data service communication instruction A request message is sent to the PCEF, the data request message includes a request source address and a request destination address, the request source address is the second IP address, and the request destination address is the address of the virtual gateway. The routing option of the data request message includes the mobile phone number of the first terminal.

具体的,可以是用户通过选择第一终端的手机号码作为点到点通信的目的手机号码从而发送的数据业务通信指令。Specifically, it may be a data service communication instruction sent by the user by selecting the mobile phone number of the first terminal as the destination mobile phone number of the point-to-point communication.

其中,所述虚拟网关地址由运营商通过空中下载OTA(OverTheAir)、约定等方式提供。具体的,所述虚拟网关地址可以是10.10.10.10。Wherein, the address of the virtual gateway is provided by the operator through OTA (OverTheAir), agreement, and other means. Specifically, the virtual gateway address may be 10.10.10.10.

510:所述PCEF接收所述第二终端发送的数据请求报文,解析所述数据请求报文,得到所述请求目的地址,根据所述请求目的地址为虚拟网关的地址判断出这是一个点到点数据业务通信的数据请求报文,进而从所述路由选项中获得所述第一终端的手机号码,根据所述第一映射和所述第一终端的手机号码得到所述第一IP地址,将所述数据请求报文的请求目的地址替换为所述第一IP地址,并建立所述第一终端的手机号码与所述虚拟网关的地址之间的第三映射。510: The PCEF receives the data request message sent by the second terminal, parses the data request message, obtains the request destination address, and determines that this is a point according to the request destination address being the address of the virtual gateway A data request message for point-to-point data service communication, and then obtain the mobile phone number of the first terminal from the routing option, and obtain the first IP address according to the first mapping and the mobile phone number of the first terminal , replacing the request destination address of the data request message with the first IP address, and establishing a third mapping between the mobile phone number of the first terminal and the address of the virtual gateway.

511:所述PCEF将所述数据请求报文转发至所述第一终端。511: The PCEF forwards the data request packet to the first terminal.

512:所述第一终端接收所述PCEF转发的数据请求报文后,进行处理,解析得到其中的作为请求源地址的所述第二IP地址。512: After receiving the data request packet forwarded by the PCEF, the first terminal processes it, and parses it to obtain the second IP address serving as the request source address.

513:所述第一终端回复数据应答报文,所述数据应答报文包含应答源地址和应答目的地址,所述应答源地址为所述第一IP地址,所述应答目的地址为所述第二IP地址。所述数据应答报文的路由选项中包含所述第一终端的手机号码。513: The first terminal replies with a data response packet, the data response packet includes a response source address and a response destination address, the response source address is the first IP address, and the response destination address is the first IP address Two IP addresses. The routing option of the data response message includes the mobile phone number of the first terminal.

514:所述PCEF接收所述第一终端发送的数据应答报文,解析所述数据应答报文,获得所述第二IP地址,以及所述数据应答报文的路由选项中的所述第一终端的手机号码,根据所述第三映射和所述第一终端的手机号码得到所述虚拟网关的地址,将所述应答源地址替换为所述虚拟网关的地址。其中,将所述应答源地址替换为所述虚拟网关的地址目的是便于所述第二终端确定所述数据应答报文对应的数据请求报文。514: The PCEF receives the data response packet sent by the first terminal, parses the data response packet, obtains the second IP address, and the first IP address in the routing options of the data response packet. The mobile phone number of the terminal obtains the address of the virtual gateway according to the third mapping and the mobile phone number of the first terminal, and replaces the reply source address with the address of the virtual gateway. Wherein, the purpose of replacing the response source address with the address of the virtual gateway is to facilitate the second terminal to determine the data request message corresponding to the data response message.

515:所述PCEF根据所述第二IP地址将所述数据应答报文转发至所述第二终端。515: The PCEF forwards the data response packet to the second terminal according to the second IP address.

图6是本发明所述数据业务通信服务器的模块结构示意图,如图6所示,所述数据业务通信服务器600包括:FIG. 6 is a schematic diagram of the module structure of the data service communication server of the present invention. As shown in FIG. 6, the data service communication server 600 includes:

上线请求处理单元610,用于接收第一终端发送的上线请求报文,所述上线请求报文中包含所述第一终端的手机号码,为所述第一终端分配第一IP地址,向所述第一终端发送所述第一IP地址,建立所述第一IP地址与所述第一终端的手机号码之间的第一映射,以及将所述第一映射发送给数据请求处理单元。The online request processing unit 610 is configured to receive an online request message sent by the first terminal, the online request message includes the mobile phone number of the first terminal, assign a first IP address to the first terminal, and send the online request message to the first terminal. The first terminal sends the first IP address, establishes a first mapping between the first IP address and the mobile phone number of the first terminal, and sends the first mapping to a data request processing unit.

数据请求处理单元620,用于从上线请求处理单元610接收所述第一映射,以及用于接收第二终端发送的数据请求报文,所述数据请求报文包含所述第一终端的手机号码,解析所述数据请求报文,获得所述第一终端的手机号码,根据所述第一映射和所述第一终端的手机号码得到所述第一IP地址,将所述数据请求报文的请求目的地址替换为所述第一IP地址后,将所述数据请求报文转发至所述第一终端。A data request processing unit 620, configured to receive the first mapping from the online request processing unit 610, and to receive a data request message sent by the second terminal, where the data request message includes the mobile phone number of the first terminal , parsing the data request message to obtain the mobile phone number of the first terminal, obtaining the first IP address according to the first mapping and the mobile phone number of the first terminal, and converting the data request message to After the request destination address is replaced with the first IP address, the data request packet is forwarded to the first terminal.

可选的,上线请求处理单元610,还用于接收所述第二终端的发送的上线请求报文,为所述第二终端分配第二IP地址,向所述第二终端发送所述第二IP地址。所述数据请求报文的请求源地址为所述第二IP地址。Optionally, the online request processing unit 610 is further configured to receive an online request message sent by the second terminal, assign a second IP address to the second terminal, and send the second IP address to the second terminal. IP address. The request source address of the data request message is the second IP address.

数据请求处理单元620,还用于接收所述第一终端发送的数据应答报文,所述数据应答报文的应答源地址为所述第一IP地址,所述数据应答报文的应答目的地址为所述第二IP地址,将所述数据应答报文的应答源地址替换为所述数据请求报文的请求目的地址后,根据所述第二IP地址将所述数据应答报文转发至所述第二终端。The data request processing unit 620 is further configured to receive a data response message sent by the first terminal, the response source address of the data response message is the first IP address, and the response destination address of the data response message is is the second IP address, after replacing the response source address of the data response message with the request destination address of the data request message, forwarding the data response message to the Describe the second terminal.

可选的,所述数据请求报文的请求目的地址包括所述第一终端的手机号码;数据请求处理单元620用于获得所述第一终端的手机号码具体包括:所述数据请求处理单元用于从所述数据请求报文的请求目的地址获得所述第一终端的手机号码。Optionally, the request destination address of the data request message includes the mobile phone number of the first terminal; the data request processing unit 620 for obtaining the mobile phone number of the first terminal specifically includes: the data request processing unit uses Obtaining the mobile phone number of the first terminal from the request destination address of the data request message.

可选的,所述数据请求报文的扩展选项包括所述第一终端的手机号码,所述数据请求报文的请求目的地址包括虚拟网关的地址;数据请求处理单元620用于获得所述第一终端的手机号码具体包括:所述数据请求处理单元用于确定所述数据请求报文的请求目的地址为所述虚拟网关的地址后,从所述数据请求报文的扩展选项中获得所述第一终端的手机号码。Optionally, the extended option of the data request message includes the mobile phone number of the first terminal, and the request destination address of the data request message includes an address of a virtual gateway; the data request processing unit 620 is configured to obtain the first terminal A mobile phone number of a terminal specifically includes: after the data request processing unit determines that the request destination address of the data request message is the address of the virtual gateway, obtain the The mobile phone number of the first terminal.

可选的,所述数据请求报文的路由选项包括所述第一终端的手机号码,所述数据请求报文的请求目的地址包括虚拟网关的地址;数据请求处理单元620用于获得所述第一终端的手机号码具体包括:所述数据请求处理单元用于确定所述数据请求报文的请求目的地址为所述虚拟网关的地址后,从所述数据请求报文的路由选项中获得所述第一终端的手机号码。Optionally, the routing option of the data request message includes the mobile phone number of the first terminal, and the request destination address of the data request message includes an address of a virtual gateway; the data request processing unit 620 is configured to obtain the first terminal A mobile phone number of a terminal specifically includes: the data request processing unit is used to obtain the address from the routing option of the data request message after determining that the request destination address of the data request message is the address of the virtual gateway. The mobile phone number of the first terminal.

本发明还提供一种数据业务通信系统,如图7所示,所述数据业务通信服务器700包括:The present invention also provides a data service communication system. As shown in FIG. 7, the data service communication server 700 includes:

数据业务通信服务器710,用于接收第一终端7201发送的上线请求报文,所述上线请求报文中包含所述第一终端的手机号码,为所述第一终端分配第一IP地址,向所述第一终端发送所述第一IP地址,建立所述第一IP地址与所述第一终端的手机号码之间的第一映射;接收第二终端7202发送的数据请求报文,所述数据请求报文包含所述第一终端的手机号码,解析所述数据请求报文,获得所述第一终端的手机号码,根据所述第一映射和所述第一终端的手机号码得到所述第一IP地址,将所述数据请求报文的请求目的地址替换为所述第一IP地址后,将所述数据请求报文转发至所述第一终端。The data service communication server 710 is configured to receive an online request message sent by the first terminal 7201, wherein the online request message includes the mobile phone number of the first terminal, assign a first IP address to the first terminal, and send The first terminal sends the first IP address, establishes a first mapping between the first IP address and the mobile phone number of the first terminal; receives a data request message sent by the second terminal 7202, and the The data request message includes the mobile phone number of the first terminal, and the data request message is parsed to obtain the mobile phone number of the first terminal, and the mobile phone number of the first terminal is obtained according to the first mapping and the mobile phone number of the first terminal. The first IP address, after replacing the request destination address of the data request message with the first IP address, forwarding the data request message to the first terminal.

终端720,至少包括第一终端7201和第二终端7202,用于向所述数据业务通信服务器发送上线请求报文,以及向所述数据业务通信服务器发送数据请求报文和/或数据应答报文。Terminal 720, including at least a first terminal 7201 and a second terminal 7202, configured to send an online request message to the data service communication server, and send a data request message and/or a data response message to the data service communication server .

本发明实施例中的数据业务通信服务器可以基于计算机系统来实现,图2、图3、图4、图5所示的方法均可在基于计算机系统的数据业务通信服务器来实现。图8示出了基于计算机系统来实现的数据业务通信服务器的实施例。本实施例中数据业务通信服务器可以包括:处理器801、存储器802和通信接口803,其中:The data service communication server in the embodiment of the present invention can be implemented based on a computer system, and the methods shown in FIG. 2 , FIG. 3 , FIG. 4 , and FIG. 5 can all be implemented on a data service communication server based on a computer system. Fig. 8 shows an embodiment of a data service communication server implemented based on a computer system. The data service communication server in this embodiment may include: a processor 801, a memory 802, and a communication interface 803, wherein:

通信接口803,用于与终端通信。终端与数据业务通信服务器之间交互的消息(如方法实施例图2、3、4、5所示)均通过通信接口803发送和接收。具体地,通信接口803用于接收终端发送的上线请求报文;存储器802用于存储程序指令;处理器801用于在接收第一终端发送的上线请求报文之后,调用存储器802中存储的程序指令,执行如下操作:为所述第一终端分配第一IP地址,向所述第一终端发送所述第一IP地址,建立所述第一IP地址与所述第一终端的手机号码之间的第一映射;接收第二终端发送的数据请求报文,所述数据请求报文包含所述第一终端的手机号码,解析所述数据请求报文,获得所述第一终端的手机号码,根据所述第一映射和所述第一终端的手机号码得到所述第一IP地址,将所述数据请求报文的请求目的地址替换为所述第一IP地址后,将所述数据请求报文转发至所述第一终端。The communication interface 803 is used for communicating with the terminal. The messages exchanged between the terminal and the data service communication server (as shown in FIGS. 2 , 3 , 4 , and 5 of the method embodiment) are all sent and received through the communication interface 803 . Specifically, the communication interface 803 is used to receive an online request message sent by the terminal; the memory 802 is used to store program instructions; and the processor 801 is used to call the program stored in the memory 802 after receiving the online request message sent by the first terminal. Instructions to perform the following operations: assign a first IP address to the first terminal, send the first IP address to the first terminal, and establish a connection between the first IP address and the mobile phone number of the first terminal the first mapping; receiving a data request message sent by the second terminal, the data request message including the mobile phone number of the first terminal, parsing the data request message to obtain the mobile phone number of the first terminal, Obtain the first IP address according to the first mapping and the mobile phone number of the first terminal, replace the request destination address of the data request message with the first IP address, and send the data request message The text is forwarded to the first terminal.

其中,处理器801可以是中央处理器(centralprocessingunit,CPU)、专用集成电路(application-specificintegratedcircuit,ASIC)等。其中,本实施例中的终端可以包括总线804。处理器801、存储器802以及通信接口803之间可通过总线804连接并通信。其中,存储器802可以包括:随机存取存储器(randomaccessmemory,RAM),只读存储器(read-onlymemory,ROM),磁盘等具有存储功能的实体;Wherein, the processor 801 may be a central processing unit (central processing unit, CPU), an application-specific integrated circuit (application-specific integrated circuit, ASIC), or the like. Wherein, the terminal in this embodiment may include a bus 804 . The processor 801 , the memory 802 and the communication interface 803 can be connected and communicate with each other through the bus 804 . Wherein, the memory 802 may include: entities with storage functions such as random access memory (random access memory, RAM), read-only memory (read-only memory, ROM), and disk;

处理器801还可以用于执行方法实施例中图2、图3、图4、图5描述的各步骤,本发明实施例在此不再详述。The processor 801 may also be configured to execute the steps described in FIG. 2 , FIG. 3 , FIG. 4 , and FIG. 5 in the method embodiments, and the embodiments of the present invention will not be described in detail here.

本发明实施例所述数据业务通信方法、设备及系统,为第一终端分配第一IP地址,建立第一IP地址与第一终端的手机号码之间的第一映射,接收第二终端发送的包含所述第一终端的手机号码数据请求报文,解析数据请求报文,获得第一终端的手机号码,根据第一映射和第一终端的手机号码得到第一IP地址,将请求目的地址替换为第一IP地址后,将数据请求报文转发至所述第二终端,从而使终端无需访问点对点应用服务器获取目的终端的IP地址,仅以目的终端的手机号码作为目的地址即可完成数据业务通信,降低了点对点通信的时延,提高了通信效率。The data service communication method, device, and system described in the embodiments of the present invention assign a first IP address to the first terminal, establish a first mapping between the first IP address and the mobile phone number of the first terminal, and receive the data sent by the second terminal. Including the mobile phone number data request message of the first terminal, parsing the data request message, obtaining the mobile phone number of the first terminal, obtaining the first IP address according to the first mapping and the mobile phone number of the first terminal, and replacing the request destination address with After obtaining the first IP address, forward the data request message to the second terminal, so that the terminal does not need to access the point-to-point application server to obtain the IP address of the destination terminal, and only the mobile phone number of the destination terminal can be used as the destination address to complete the data service Communication, which reduces the delay of point-to-point communication and improves communication efficiency.

本领域普通技术人员将会理解,本发明的各个方面、或各个方面的可能实现方式可以被具体实施为系统、方法或者计算机程序产品。因此,本发明的各方面、或各个方面的可能实现方式可以采用完全硬件实施例、完全软件实施例(包括固件、驻留软件等等),或者组合软件和硬件方面的实施例的形式,在这里都统称为“电路”、“模块”或者“系统”。此外,本发明的各方面、或各个方面的可能实现方式可以采用计算机程序产品的形式,计算机程序产品是指存储在计算机可读介质中的计算机可读程序代码。Those of ordinary skill in the art will understand that various aspects of the present invention, or possible implementations of various aspects, may be embodied as systems, methods or computer program products. Accordingly, aspects of the present invention, or possible implementations of various aspects, may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, etc.), or an embodiment combining software and hardware aspects, described in These are collectively referred to herein as "circuits," "modules," or "systems." In addition, aspects of the present invention, or possible implementations of various aspects, may take the form of computer program products, and computer program products refer to computer-readable program codes stored in computer-readable media.

计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质包含但不限于电子、磁性、光学、电磁、红外或半导体系统、设备或者装置,或者前述的任意适当组合,如随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或者快闪存储器)、光纤、便携式只读存储器(CD-ROM)。The computer readable medium may be a computer readable signal medium or a computer readable storage medium. Computer-readable storage media include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing, such as random access memory (RAM), read-only memory (ROM), Erase Programmable Read-Only Memory (EPROM or Flash), Fiber Optic, Portable Read-Only Memory (CD-ROM).

计算机中的处理器读取存储在计算机可读介质中的计算机可读程序代码,使得处理器能够执行在流程图中每个步骤、或各步骤的组合中规定的功能动作;生成实施在框图的每一块、或各块的组合中规定的功能动作的装置。The processor in the computer reads the computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step in the flow chart, or a combination of steps; A device that performs functional actions specified in each block or a combination of blocks.

计算机可读程序代码可以完全在用户的计算机上执行、部分在用户的计算机上执行、作为单独的软件包、部分在用户的计算机上并且部分在远程计算机上,或者完全在远程计算机或者服务器上执行。也应该注意,在某些替代实施方案中,在流程图中各步骤、或框图中各块所注明的功能可能不按图中注明的顺序发生。例如,依赖于所涉及的功能,接连示出的两个步骤、或两个块实际上可能被大致同时执行,或者这些块有时候可能被以相反顺序执行。The computer readable program code may execute entirely on the user's computer, partly on the user's computer, as a separate software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server . It should also be noted that, in some alternative implementations, the functions noted at the steps in the flowcharts or blocks in the block diagrams may occur out of the order noted in the figures. For example, two steps, or two blocks shown in succession, may in fact be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (11)

CN201310134490.XA2013-04-172013-04-17A kind of data service communications method, equipment and systemActiveCN103179229B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201310134490.XACN103179229B (en)2013-04-172013-04-17A kind of data service communications method, equipment and system
PCT/CN2013/084818WO2014169590A1 (en)2013-04-172013-10-08Data service communication method, device, and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310134490.XACN103179229B (en)2013-04-172013-04-17A kind of data service communications method, equipment and system

Publications (2)

Publication NumberPublication Date
CN103179229A CN103179229A (en)2013-06-26
CN103179229Btrue CN103179229B (en)2015-12-09

Family

ID=48638847

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310134490.XAActiveCN103179229B (en)2013-04-172013-04-17A kind of data service communications method, equipment and system

Country Status (2)

CountryLink
CN (1)CN103179229B (en)
WO (1)WO2014169590A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103179229B (en)*2013-04-172015-12-09华为技术有限公司A kind of data service communications method, equipment and system
CN105611608A (en)*2015-12-312016-05-25宇龙计算机通信科技(深圳)有限公司Wireless local area network communication method, terminal and system
CN108574720B (en)*2017-05-092021-07-20北京金山云网络技术有限公司 A service online method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1855923A (en)*2005-04-292006-11-01北京利德沣通信技术有限公司Communication based on interactive network
CN101026636A (en)*2006-02-222007-08-29张弘Dual-channel communication terminal and its system, communication method using said terminal and long distance control method
CN102368761A (en)*2011-03-152012-03-07陈建国Time division-synchronous code division multiple access (TD-SCDMA)/ IP double network cooperation multimedia telephone, system and communication method thereof
CN102892110A (en)*2012-09-192013-01-23邦讯技术股份有限公司Method and system for keeping consistency of user identifications of terminal in different networks

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1330143C (en)*2004-12-172007-08-01中国科学院计算技术研究所Method of composing broadband radio city local network for providing hierarchical serivce
WO2008080341A1 (en)*2007-01-012008-07-10Huawei Technologies Co., Ltd.Method, system and device for identifying a user terminal
JP4920052B2 (en)*2009-03-112012-04-18株式会社日立製作所 Communication system and server
CN102055637B (en)*2009-11-032015-06-03中兴通讯股份有限公司Wide band network system and realizing method thereof
CN103179229B (en)*2013-04-172015-12-09华为技术有限公司A kind of data service communications method, equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1855923A (en)*2005-04-292006-11-01北京利德沣通信技术有限公司Communication based on interactive network
CN101026636A (en)*2006-02-222007-08-29张弘Dual-channel communication terminal and its system, communication method using said terminal and long distance control method
CN102368761A (en)*2011-03-152012-03-07陈建国Time division-synchronous code division multiple access (TD-SCDMA)/ IP double network cooperation multimedia telephone, system and communication method thereof
CN102892110A (en)*2012-09-192013-01-23邦讯技术股份有限公司Method and system for keeping consistency of user identifications of terminal in different networks

Also Published As

Publication numberPublication date
CN103179229A (en)2013-06-26
WO2014169590A1 (en)2014-10-23

Similar Documents

PublicationPublication DateTitle
US9729501B2 (en)System and data card for stateless automatic configuration of IPv6 address and method for implementing the same
CN112153098A (en) Application migration method and device
CN102790813B (en)Communication method as well as system and terminal equipment based on IPv6 (internet protocol version 6) network
US10033736B2 (en)Methods, systems, and computer readable media for remote authentication dial-in user service (radius) topology hiding
US20200153735A1 (en)Data link layer-based communication method, device, and system
CN105430059A (en)Smart client routing
JP7479450B2 (en) NAT traversal method, device and system
CN109246769B (en)PDU session establishment method and device
CN109391909B (en)Multicast method and device
CN104320499B (en)The method for building up and device of a kind of service transmission link
CN109729122B (en) Method and device for determining Ethernet MAC address
CN106254265A (en)Process the methods, devices and systems of message
CN102546407A (en)Message sending method and device
CN103179229B (en)A kind of data service communications method, equipment and system
CN102984696B (en)Based on the IP communication means of mobile terminal, equipment and system
CN109982311B (en)Method for accessing terminal to core network equipment, terminal, MME and SAEGW
CN104065688A (en)Method for calling underlayer services and device thereof
CN102811263A (en) Communication method and system based on IPv6 for mobile terminal and mobile terminal
CN104468305B (en)Realize Layer3 Virtual Private Network method and apparatus
CN103139205B (en)Message processing method, device and the webserver
CN102238084B (en)Method and device for forwarding cross-domain message, route equipment and client
RU2679184C1 (en)Method for distributing ip addresses in d2d communication and user equipment
CN105191460B (en) An information transmission method, device and system
CN105165040B (en)A kind of distribution method, the apparatus and system of IP address and IP parameters
CN102083173A (en)Network access control method, equipment and gateway GPRS support node

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp