WO2014169590A1 - Data service communication method, device, and system - Google Patents
Data service communication method, device, and system Download PDFInfo
- Publication number
- WO2014169590A1 WO2014169590A1 PCT/CN2013/084818 CN2013084818W WO2014169590A1 WO 2014169590 A1 WO2014169590 A1 WO 2014169590A1 CN 2013084818 W CN2013084818 W CN 2013084818W WO 2014169590 A1 WO2014169590 A1 WO 2014169590A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- address
- data
- request message
- data request
- Prior art date
Links
- 230000006854 communication Effects 0.000 title claims abstract description 96
- 238000004891 communication Methods 0.000 title claims abstract description 93
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000013507 mapping Methods 0.000 claims abstract description 43
- 230000004044 response Effects 0.000 claims description 103
- 238000012545 processing Methods 0.000 claims description 40
- 238000010295 mobile communication Methods 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000011664 signaling Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/106—Mapping addresses of different types across networks, e.g. mapping telephone numbers to data network addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
Definitions
- the present invention relates to the field of mobile communication technologies, and in particular, to a data service communication method, device, and system.
- PCEF policy and charging enforcement function
- the terminal 1 communicates with the PCEF to complete the online process (steps 101, 102, 103, and 104).
- the PCEF allocates the first IP address (ie, IP1) to the terminal 1; and the online process of the terminal 2 (step 105, 106, 107, 108) Similar to terminal 1, PCEF assigns terminal 2 a second IP address (ie, IP2).
- the terminal 1 logs in to the peer-to-peer application server (steps 109, 110, 111) to report the first IP address, and the peer-to-peer application server stores the first IP address of the terminal 1; the terminal 2 logs in to the point-to-point application server (steps 112, 113, 114) The second IP address is reported, and the peer-to-peer application server will save the second IP address of the terminal 2.
- the terminal 1 when the terminal 1 is to send communication data, such as a file, to the terminal 2, the terminal 1 first accesses the peer-to-peer application server to obtain the second IP address of the terminal 2 (steps 115, 116); then, the terminal 1 transmits the communication data to the PCEF.
- Step 117 the file is forwarded by the PCEF to the terminal 2 (step 118).
- the response information of the terminal 2 is also transmitted to the terminal 1 through the PCEF.
- the terminal In the above communication process, the terminal must obtain the IP address of the target terminal through the peer-to-peer application server, and then complete the transmission of the communication data. That is to say, it is necessary to use the account registered on the peer-to-peer application server, the password login point to the point application server to obtain the IP address of the terminal B, and then the data communication can be performed, so the user operation is cumbersome, resulting in inefficient communication of data services between the terminals. .
- Embodiments of the present invention provide a data service communication method, device, and system, to solve the existing shift The problem of low efficiency of point-to-point data service communication between mobile terminals.
- a data service communication method including the steps of:
- the method before the receiving the data request packet sent by the second terminal, the method further includes: receiving an online request message sent by the second terminal, and assigning the second terminal to the second terminal Sending, by the second IP address, the second IP address to the second terminal;
- the request source address of the data request message is the second IP address
- the method further 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 Address, the response destination address of the data response message is the second IP address, and after the response source address of the data response message is replaced with the request destination address of the data request message, according to the second The IP address forwards the data response message to the second terminal.
- the request destination address of the data request packet includes a 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, and obtaining a mobile phone number of the first terminal from a request destination address of the data request message.
- the extended option of the data request packet includes a mobile phone number of the first terminal, and the data request packet
- the request destination address includes the address of the virtual gateway;
- the parsing the data request message to obtain 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 an address of the virtual gateway, Obtaining the mobile phone number of the first terminal in the extended option of the data request message.
- the routing option of the data request packet includes a mobile phone number of the first terminal, and the data request packet
- the request destination address includes the address of the virtual gateway
- the parsing the data request message to obtain 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 an address of the virtual gateway, Obtaining a mobile phone number of the first terminal in a routing option of the data request message.
- a data service communication server including:
- An online request processing unit configured to receive an online request message sent by the first terminal, where the online request message includes a mobile phone number of the first terminal, and the first terminal is assigned a first IP address, to the Transmitting, by the first terminal, the first IP address, establishing a first mapping between the first IP address and a mobile phone number of the first terminal, and sending the first mapping to a data request processing unit;
- the data request processing unit is configured to receive the first mapping from the online request processing unit, and receive a data request message sent by the second terminal, where the data request message includes the first terminal.
- the mobile phone number parsing the data request message, obtaining the mobile phone number of the first terminal, and obtaining the first according to the first mapping and the mobile phone number of the first terminal
- the IP address after the request destination address of the data request message is replaced with the first IP address, forwards the data request to the first terminal.
- the online request processing unit is further configured to receive an online request message sent by the second terminal, and allocate a second IP address to the second terminal. Transmitting, by the second terminal, the second IP address;
- the request source address of the data request message is the second IP address
- the data request processing unit is further configured to receive a data response message sent by the first terminal, where a response source address of the data response message is the first IP address, and a response destination of the data response message The address is the second IP address, and after the response source address of the data response message is replaced with the request destination address of the data request message, the data response message is forwarded according to the second IP address to The second terminal.
- the request destination address of the data request packet includes a mobile phone number of the first terminal
- the data request processing unit is configured to obtain the mobile phone number of the first terminal, where the data request processing unit is configured to obtain the mobile phone number of the first terminal from the request destination address of the data request message.
- the extended option of the data request packet includes a mobile phone number of the first terminal, and the data request packet
- the request destination address includes the address of the virtual gateway;
- the data request processing unit is configured to obtain the mobile phone number of the first terminal, specifically: the data request processing unit is configured to determine that the request destination address of the data request message is After the address of the virtual gateway, the mobile phone number of the first terminal is obtained from an extended option of the data request message.
- the routing option of the data request packet includes a mobile phone number of the first terminal, and the data request packet
- the request destination address includes the address of the virtual gateway;
- the data request processing unit is configured to obtain the mobile phone number of the first terminal, specifically: the data request processing unit is configured to determine that the request destination address of the data request message is After the address of the virtual gateway, the mobile phone number of the first terminal is obtained from the routing option of the data request message.
- the third aspect provides a data service communication system, including: the data service communication server of any one of the second aspect or the second aspect, and a plurality of terminals;
- the plurality of 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.
- the first mapping between the first IP address and the mobile phone number of the first terminal is established by assigning the first IP address to the first terminal, and receiving the After the mobile phone number data request message of the first terminal, the data request message is parsed, the mobile phone number of the first terminal is obtained, and the first IP address is obtained according to the first mapping and the mobile phone number of the first terminal, and the request destination address is replaced. After the first IP address is forwarded, the data request message is forwarded to the second terminal, so that the terminal does not need to register the IP address of the destination terminal by using the previously registered account and password, and selects the destination terminal only from the mobile phone address book.
- the mobile phone number can be used as the destination address to complete the data service communication, which reduces the user operation steps and improves the communication efficiency.
- FIG. 1 is a schematic diagram of a point-to-point data service communication process in an existing mobile communication network
- FIG. 2 is a flowchart of a data service communication method according to an embodiment of the present invention
- FIG. 3 is a letter of a data service communication method according to an embodiment of the present invention
- FIG. 4 is a signaling flowchart of a data service communication method according to another embodiment of the present invention
- FIG. 5 is a signaling flowchart of a data service communication method according to another embodiment of the present invention
- FIG. 7 is a structural diagram of a data service communication system according to an embodiment of the present invention
- FIG. 8 is a data service communication server based on a computer system according to an embodiment of the present invention
- Structure diagram is a schematic diagram of a point-to-point data service communication process in an existing mobile communication network
- FIG. 2 is a flowchart of a data service communication method according to an embodiment of the present invention
- FIG. 3 is a letter of a data service communication method according
- FIG. 2 is a flowchart of a data service communication method according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
- 210 Receive an online request message sent by the first terminal, where the online request message includes a mobile phone number of the first terminal, allocate a first IP address to the first terminal, and send the first terminal to the first terminal. Determining a first IP address, establishing a first mapping between the first IP address and a mobile phone number of the first terminal.
- the method further includes: receiving an uplink 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 message is the second IP address.
- the method further 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, and the response destination of the data response message The address is the second IP address, and after the response source address of the data response message is replaced with the request destination address of the data request message, the data response message is forwarded according to the second IP address to The second terminal.
- the request destination address of the data request packet includes a mobile phone number of the first terminal
- the parsing the data request packet to obtain the mobile phone number of the first terminal includes: parsing the data request And receiving, by the request destination address of the data request message, the mobile phone number of the first terminal.
- the extended option of the data request packet includes a mobile phone number of the first terminal, and the request destination address of the data request packet includes an address of the virtual gateway; the parsing the data request packet to obtain 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 an address of the virtual gateway, and obtaining the extended option of the data request message The mobile phone number of the first terminal.
- the routing option of the data request packet includes a mobile phone number of the first terminal, and the request destination address of the data request packet includes an address of the virtual gateway, where the parsing the data request packet is obtained.
- 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 an address of the virtual gateway, and obtaining the routing option of the data request message The mobile phone number of the first terminal.
- This technical solution can avoid the terminal accessing the point-to-point application server to obtain the destination IP address, reduce the equipment and delay of the peer-to-peer communication, and improve the communication efficiency.
- the specific embodiments of the present invention are further described in detail below with reference to the drawings and embodiments. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
- FIG. 3 is a signaling flowchart of a data service communication method according to an embodiment of the present invention, as shown in FIG. 3.
- the first IP address and the second IP address in this embodiment all use an IPv6 address, and the IPv6 address has 128 bits.
- the structure of the header is as shown in Table 1 below. IPv6 header structure example
- the 128-bit IP address can be divided into two parts: the IPv6 prefix Prefix and the IPv6 interface ID.
- the IPv6 prefix and the IPv6 interface ID each occupy 64 bits.
- the olicy and charging enforcement function (PCEF) allocates an IPv6 prefix to the terminal, and generates an IPv6 interface ID according to the mobile phone number of the terminal.
- the IPv6 prefix and the IPv6 interface ID are combined into a 128-bit IPv6 address for IPv6 communication. That is to say, in this embodiment, the following method is implemented by using the capability that the interface ID field in the IPv6 address can carry the mobile phone number of the terminal.
- the first terminal (ie, the terminal 1) sends an online request message to the PCEF in the communication network where the first terminal sends, and the online request message sent by the first terminal includes the mobile phone number of the first terminal.
- the first terminal may send an online request message when the client of the point-to-point communication is started.
- 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 the authentication and the authentication are completed, the first terminal is allocated a first IP address, where the first IP address includes a first IPv6 prefix and a first IPv6 interface ID, and the first IPv6 interface ID is the first terminal.
- Mobile number, establishment Determining a first mapping between the first IP address and the mobile number of the first terminal.
- the PCEF sends first response information to the first terminal, where the first response information includes the first IP address.
- the first terminal saves the first IP address.
- 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.
- the second terminal may send an online request message when the client of the point-to-point communication is started.
- the PCEF receives an 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 the authentication and the authentication are completed, the second terminal is assigned a second IP address, where the second IP address includes a second IPv6 prefix and a second
- An IPv6 interface ID where the second IPv6 interface ID is a mobile phone number of the second terminal, and a second mapping between the second IP address and the mobile phone number of the second terminal is established.
- the PCEF sends a second response message to the second terminal, where the second response information includes the second IP address.
- the second terminal saves the second IP address.
- the process of sending the online request message to the PCEF by the first terminal and the second terminal 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 online at the same time. .
- the second terminal receives a data service communication command of the user, where the data service communication command includes a mobile phone number of the first terminal, and sends a data request message to the PCEF according to the data service communication command, where the data request message is sent.
- the request 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 a mobile phone number of the first terminal.
- the request destination address may be composed of the second IPv6 prefix and a mobile phone number of the first terminal.
- the PCEF receives the data request packet sent by the second terminal, parses the data request packet, and obtains the mobile phone number of the first terminal according to the request destination address, according to the first mapping and the The mobile phone number of the first terminal obtains the first IP address, and replaces the request destination address of the data request message with the first IP address.
- the PCEF forwards the data request message to the first terminal.
- the first terminal After receiving the data request packet forwarded by the PCEF, the first terminal performs processing, and parses the second IP address that is the request source address.
- the first terminal replies with a data response message, where the data response message 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 Two IP addresses.
- the PCEF receives the data response message sent by the first terminal, parses the data response message, obtains the first IP address and the second IP address, and uses the address as the response source address.
- the first IPv6 prefix in the first IP address is replaced with the second IPv6 prefix.
- the purpose of replacing the first IPv6 prefix with the second IPv6 prefix is to facilitate the second terminal to determine a data request message corresponding to the data response message.
- the PCEF forwards the data response message to the second terminal according to the second IP address.
- 4 is a signaling flowchart of a data service communication method according to another embodiment of the present invention. As shown in FIG. 4, the method in this embodiment is basically the same as the method in the foregoing embodiment, and the difference is that the purpose is The mobile number of the terminal is carried by the extended option of IPv6. The format of the extended option of the IPv6 packet is as shown in Table 2 below. The mobile phone number of the destination terminal can be stored in the address[l].
- the first terminal (ie, the terminal 1) sends an online request to the PCEF where it is located.
- the online request message sent by the first terminal includes the mobile phone number of the first terminal.
- the first terminal may send an online request message when the client of the point-to-point communication is started.
- the PCEF receives the 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 the authentication and the authentication are completed, the first terminal is allocated a first IP address, where the first IP address includes a first IPv6 prefix and a first IPv6 interface ID, and the first IPv6 interface ID is the first terminal.
- the mobile phone number establishes a first mapping between the first IP address and the mobile number of the first terminal.
- the PCEF sends first response information to the first terminal, where the first response information includes the first IP address.
- the first terminal saves the first IP address.
- 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.
- the second terminal may send an online request message when the client of the point-to-point communication is started.
- the PCEF receives an 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 the authentication and the authentication are completed, the second terminal is assigned a second IP address, where the second IP address includes a second IPv6 prefix and a second IPv6 interface ID, where the second IPv6 interface ID is a mobile phone number of the second terminal, and a second mapping between the second IP address and the mobile phone number of the second terminal is established.
- the PCEF sends a second response message to the second terminal, where the second response information includes the second IP address.
- the second terminal saves the second IP address.
- the second terminal receives a data service communication command of the user, where the data service communication command includes a mobile phone number of the first terminal, and after obtaining an address of the pre-configured virtual gateway, according to the data service communication instruction.
- Sending a data request message to the PCEF where 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 an address of the virtual gateway.
- the extended option of the data request message includes the mobile phone number of the first terminal.
- it may be a data service communication instruction that is 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.
- the address of the virtual gateway may be 2001:: 1/64.
- the PCEF receives the data request packet sent by the second terminal, parses the data request packet, obtains the request destination address, and determines, according to the request destination address, the address of the virtual gateway that the point is a point.
- Receiving a data request message of the data service communication, and obtaining the mobile phone number of the first terminal from the extended option of the data request message, and obtaining the mobile phone number according to the first mapping and the first terminal The first IP address is used to 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.
- the PCEF forwards the data request message to the first terminal.
- the first terminal After receiving the data request message forwarded by the PCEF, the first terminal performs processing, and parses the second IP address that is the request source address.
- the first terminal replies with a data response message, where the data response message includes a response source address and a response destination address, and the response source address is the first IP address, and the response destination The address is the second IP address.
- the extended option of the data response message includes a mobile phone number of the first terminal.
- the PCEF receives the data response message sent by the first terminal, parses the data response message, and obtains the second IP address, and the first one of the extended options of the data response message.
- the mobile phone number of the terminal is obtained according to the third mapping and the mobile phone number of the first terminal, and the response source address is replaced with the address of the virtual gateway.
- the purpose of replacing the address of the response source with the address of the virtual gateway is to facilitate the second terminal to determine a data request message corresponding to the data response message.
- the PCEF forwards the data response file to the second terminal according to the second IP address.
- FIG. 5 is a signaling flowchart of a data service communication method according to another embodiment of the present invention.
- the first IP address and the second IP address are both IPv4 addresses, and the data request is present in the header.
- the routing option can also be implemented by storing the mobile terminal number of the destination terminal in the data field of the routing option of the data request header. Referring to FIG. 5, the method in this embodiment includes the following steps:
- the first terminal (ie, the terminal 1) sends an online request message to the PCEF in the communication network where the first terminal sends, and the online request message sent by the first terminal includes the mobile phone number of the first terminal.
- the first terminal may send an online request message when the client of the point-to-point communication is started.
- 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 the authentication and the authentication are completed, the first terminal is assigned a first IP address, and the first IP address is established with the first terminal. The first mapping between mobile numbers.
- the PCEF sends first response information to the first terminal, where the first response information includes the first IP address.
- the first terminal saves the first IP address.
- 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.
- the second terminal may send an online request message when the client that initiates the point-to-point communication is started.
- 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 the authentication and the authentication are completed, the second terminal is assigned a second IP address, and a second mapping between the second IP address and the mobile phone number of the second terminal is established.
- the PCEF sends second response information to the second terminal, where the second response information includes the second IP address.
- the second terminal saves the second IP address.
- the second terminal receives the data service communication command of the user, where the data service communication command includes the mobile phone number of the first terminal, and after obtaining the address of the pre-configured virtual gateway, sending the data according to the data service communication instruction.
- the request message is sent to the PCEF, and 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 an address of the virtual gateway.
- the routing option of the data request includes the mobile phone number of the first terminal.
- it may be a data service communication instruction that is 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.
- the virtual gateway address is provided by an operator by means of over-the-air OTA (Over The Air), an appointment, and the like. Specifically, the virtual gateway address may be 10.10.10.10.
- the PCEF receives a data request packet sent by the second terminal, and parses the number. Determining, by the request message, the request destination address, determining, according to the request destination address, the address of the virtual gateway that the data request message is a point-to-point data service communication, and obtaining the information from the routing option.
- the mobile phone number of the first terminal, the first IP address is obtained according to the first mapping and the mobile phone number of the first terminal, and the request destination address of the data request message is replaced 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.
- the PCEF forwards the data request message to the first terminal.
- the first terminal After receiving the data request message forwarded by the PCEF, the first terminal performs processing, and parses the second IP address as the request source address.
- the first terminal replies with a data response message, where the data response message 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 Two IP addresses.
- the routing option of the data response message includes the mobile phone number of the first terminal.
- the PCEF receives the data response message sent by the first terminal, parses the data response message, and obtains the second IP address, and the first one of the routing options of the data response message.
- the mobile phone number of the terminal is obtained according to the third mapping and the mobile phone number of the first terminal, and the response source address is replaced with the address of the virtual gateway.
- the purpose of replacing the address of the response source with the address of the virtual gateway is to facilitate the second terminal to determine a data request message corresponding to the data response message.
- the PCEF forwards the data response message to the second terminal according to the second IP address.
- 6 is a block diagram showing the structure of a data service communication server according to the present invention. As shown in FIG. 6, the data service communication server 600 includes:
- the online request processing unit 610 is configured to receive an online request message sent by the first terminal, where the online request message includes a mobile phone number of the first terminal, and the first terminal is allocated a first An IP address, sending the first IP address to the first terminal, establishing a first mapping between the first IP address and a mobile phone number of the first terminal, and sending the first mapping to data Request processing unit.
- the data request processing unit 620 is configured to receive the first mapping from the online request processing unit 610, and receive a data request message sent by the second terminal, where the data request message includes a mobile phone number of the first terminal. And parsing the data request packet, 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 using the data request message After the request destination address is replaced with the first IP address, the data request is forwarded to the first terminal.
- the online request processing unit 610 is further configured to receive the sending of the second terminal.
- the online request message is configured to allocate a second IP address to the second terminal, and send the second IP address to the second terminal.
- the request source address of the data request message is the second IP address.
- the data request processing unit 620 is further configured to receive the data response message sent by the first terminal, where the response source address of the data response message is the first IP address, and the response destination address of the data response message After the response source address of the data response message is replaced with the request destination address of the data request message, the data response message is forwarded to the second IP address according to the second IP address. Said second terminal.
- the request destination address of the data request packet includes a mobile phone number of the first terminal, where the data request processing unit 620 is configured to obtain the mobile phone number of the first terminal, specifically: the data request processing unit Obtaining the mobile phone number of the first terminal from the request destination address of the data request message.
- the extended option of the data request packet includes a mobile phone number of the first terminal
- the request destination address of the data request packet includes an address of the virtual gateway
- the data request processing unit 620 is configured to obtain the The mobile phone number of a terminal specifically includes: the data request processing list After determining, by the element, that the request destination address of the data request message is the address of the virtual gateway, obtaining the mobile phone number of the first terminal from the extended option of the data request message.
- the routing request of the data request packet includes a mobile phone number of the first terminal, and the request destination address of the data request packet includes an address of the virtual gateway, where the data request processing unit 620 is configured to obtain the
- the mobile phone number of a terminal specifically includes: after the data request processing unit is configured to determine that the request destination address of the data request message is an address of the virtual gateway, obtain the foregoing from a routing option of the data request message The mobile number of the first terminal.
- the present invention further provides a data service communication system. As shown in FIG. 7, the data service communication server 700 includes:
- the data service communication server 710 is configured to receive an online request message sent by the first terminal 7201, where the online request message includes a mobile phone number of the first terminal, and allocate a first IP address 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 receives a data request message sent by the second terminal 7202,
- the data request message includes the mobile phone number of the first terminal, parses the data request message, and obtains the mobile phone number of the first terminal, according to the first mapping and the mobile phone number of the first terminal. After the first IP address is replaced with the first IP address, the data request message is forwarded to the first terminal.
- the terminal 720 includes 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.
- the data service communication server in the embodiment of the present invention can be implemented based on a computer system.
- the methods shown in FIG. 2, FIG. 3, FIG. 4, and FIG. 5 can all be implemented in a data service communication server based on a computer system.
- Figure 8 shows a data service communication server implemented based on a computer system An embodiment.
- the data service communication server in this embodiment may include: a processor 801, a memory 802, and a communication interface 803, where:
- the communication interface 803 is configured to communicate with the terminal. Messages exchanged between the terminal and the data service communication server (as shown in Figures 2, 3, 4, and 5 of the method embodiment) are transmitted and received via communication interface 803. Specifically, the communication interface 803 is configured to receive an online request message sent by the terminal; the memory 802 is configured to store the program instruction; the processor 801 is configured to: after receiving the online request message sent by the first terminal, invoke the program stored in the memory 802.
- the command is as follows: assigning a first IP address to the first terminal, sending the first IP address to the first terminal, and establishing a relationship between the first IP address and a mobile phone number of the first terminal And receiving a data request message sent by the second terminal, where the data request message includes a mobile phone number of the first terminal, parsing the data request message, and obtaining a 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 of the data request message with the first IP address, and then reporting the data request The text is forwarded to the first terminal.
- the processor 801 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or the like.
- 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 communicated via the bus 804.
- the memory 802 may include: a random access memory (RAM), a read-only memory (ROM), a disk and the like having a storage function;
- the processor 801 can also be used to perform the steps described in FIG. 2, FIG. 3, FIG. 4, and FIG. 5 in the embodiment of the present invention, and the embodiments of the present invention are not described in detail herein.
- the data service communication method, device and system according to the embodiment of the present invention allocates a first IP address to the first terminal, establishes a first mapping between the first IP address and the mobile phone number of the first terminal, and receives the first mapping sent by the second terminal.
- aspects of the invention, or possible implementations of various aspects may be embodied as a system, method, or computer program product.
- aspects of the invention, or possible implementations of various aspects may be in the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, etc.), or a combination of software and hardware aspects, They are collectively referred to herein as "circuits," “modules,” or “systems.”
- various aspects of the invention, or possible implementations of various aspects may take the form of a computer program product, which is a computer readable program code stored in a computer readable medium.
- the computer readable medium can be a computer readable signal medium or a computer readable storage medium.
- the computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, 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 memory), optical fiber, portable read-only memory (CD-ROM).
- the processor in the computer reads the computer readable program code stored in the computer readable medium, such that the processor can perform the functional actions specified in each step or combination of steps in the flowchart; A device that functions as specified in each block, or combination of blocks.
- the computer readable program code can be executed 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 the remote computer, or entirely on the remote computer or server.
- the functions noted in the various steps of the flowcharts or in the blocks of the block diagrams may not occur in the order noted in the drawings. For example, depending on the function involved, the two shown one after the other Steps, or two blocks may actually be executed substantially simultaneously, or the blocks may sometimes be executed in the reverse order.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The preset invention relates to the field of mobile communications. Disclosed are a data service communication method, device, and system. The method comprises: receiving an online request packet sent by a first terminal, the online request packet comprising a cell phone number of the first terminal, allocating a first IP address to the first terminal, and establishing a first mapping between the first IP address and the cell phone number of the first terminal; and receiving a data request packet sent by a second terminal, the data request packet comprising the cell phone number of the first terminal, obtaining the cell phone number of the first terminal, acquiring the first IP address according to the first mapping and the cell phone number of the first terminal, replacing a request destination address of the data request packet with the first IP address, and then forwarding the data request packet to the first terminal. The method, device, and system improve the efficiency of point-to-point data service communication between mobile terminals.
Description
一种数据业务通信方法、 设备及系统 Data service communication method, device and system
技术领域 Technical field
本发明涉及移动通信技术领域, 尤其涉及一种数据业务通信方法、 设 备及系统。 The present invention relates to the field of mobile communication technologies, and in particular, to a data service communication method, device, and system.
背景技术 Background technique
目前, 在移动通信网络当中, 两个归属于相同的策略及计费执行功能 月良务器 ( olicy and charging enforcement function, PCEF ) 的终端上线后, 进行点对点数据业务通信过程如图 1所示。 At present, in the mobile communication network, two terminals belonging to the same policy and charging enforcement function (PCEF) are online, and the peer-to-peer data service communication process is as 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。 上述通信过程中, 终端必须通过点对点应用服务器获得目标终端的 IP 地址, 然后再完成通信数据的传输。 即必须釆用在点对点应用服务器上注 册过的账号、 密码登录点到点应用服务器获得终端 B的 IP地址后, 才能进 行数据通信, 因此用户操作比较繁瑣, 导致终端之间的数据业务通信效率 低下。 First, the terminal 1 communicates with the PCEF to complete the online process (steps 101, 102, 103, and 104). In the process, the PCEF allocates the first IP address (ie, IP1) to the terminal 1; and the online process of the terminal 2 (step 105, 106, 107, 108) Similar to terminal 1, PCEF assigns terminal 2 a second IP address (ie, IP2). Then, the terminal 1 logs in to the peer-to-peer application server (steps 109, 110, 111) to report the first IP address, and the peer-to-peer application server stores the first IP address of the terminal 1; the terminal 2 logs in to the point-to-point application server (steps 112, 113, 114) The second IP address is reported, and the peer-to-peer application server will save the second IP address of the terminal 2. Then, when the terminal 1 is to send communication data, such as a file, to the terminal 2, the terminal 1 first accesses the peer-to-peer application server to obtain the second IP address of the terminal 2 (steps 115, 116); then, the terminal 1 transmits the communication data to the PCEF. (Step 117), the file is forwarded by the PCEF to the terminal 2 (step 118). The response information of the terminal 2 is also transmitted to the terminal 1 through the PCEF. In the above communication process, the terminal must obtain the IP address of the target terminal through the peer-to-peer application server, and then complete the transmission of the communication data. That is to say, it is necessary to use the account registered on the peer-to-peer application server, the password login point to the point application server to obtain the IP address of the terminal B, and then the data communication can be performed, so the user operation is cumbersome, resulting in inefficient communication of data services between the terminals. .
发明内容 Summary of the invention
本发明实施例提供一种数据业务通信方法、设备及系统, 以解决现有移
动终端之间点对点数据业务通信效率不高的问题。 Embodiments of the present invention provide a data service communication method, device, and system, to solve the existing shift The problem of low efficiency of point-to-point data service communication between mobile terminals.
为了解决上述技术问题, 本发明实施例公开了如下技术方案: 第一方面, 提供一种数据业务通信方法, 包括步骤: In order to solve the above technical problem, the embodiment of the present invention discloses the following technical solutions: In a 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, where the online request message includes a mobile phone number of the first terminal, assigning a first IP address to the first terminal, and sending the first terminal to the first terminal An IP address, establishing a first mapping between the first IP address and a mobile phone number of the first terminal;
接收第二终端发送的数据请求报文, 所述数据请求报文包含所述第一 终端的手机号码, 解析所述数据请求报文, 获得所述第一终端的手机号码, 根据所述第一映射和所述第一终端的手机号码得到所述第一 IP地址, 将所 述数据请求报文的请求目的地址替换为所述第一 IP地址后, 将所述数据请 求报文转发至所述第一终端。 Receiving a data request message sent by the second terminal, where the data request message includes a mobile phone number of the first terminal, parsing the data request message, and obtaining a 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, and after replacing the request destination address of the data request message with the first IP address, forwarding the data request message to the The first terminal.
第一方面的第一种可选方式中, 所述接收第二终端发送的数据请求报 文之前, 还包括: 接收所述第二终端发送的上线请求报文, 为所述第二终 端分配第二 IP地址, 向所述第二终端发送所述第二 IP地址; In a first optional manner of the first aspect, before the receiving the data request packet sent by the second terminal, the method further includes: receiving an online request message sent by the second terminal, and assigning the second terminal to the second terminal Sending, by the second IP address, 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 data request message is forwarded to the first terminal, the method further 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 Address, the response destination address of the data response message is the second IP address, and after the response source address of the data response message is replaced with the request destination address of the data request message, according to the second The IP address forwards the data response message to the second terminal.
结合第一方面或第一方面的第一种可选方式, 在第二种可选方式中, 所述数据请求报文的请求目的地址包括所述第一终端的手机号码; With reference to the first aspect, or the first optional manner of the first aspect, in a second optional manner, the request destination address of the data request packet includes a 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, and obtaining a mobile phone number of the first terminal from a request destination address of the data request message. With the first aspect or the first optional manner of the first aspect, in a third optional manner, the extended option of the data request packet includes a mobile phone number of the first terminal, and the data request packet The request destination address includes the address of the virtual gateway;
所述解析所述数据请求报文, 获得所述第一终端的手机号码包括: 解 析所述数据请求报文, 确定所述数据请求报文的请求目的地址为所述虚拟 网关的地址后, 从所述数据请求报文的扩展选项中获得所述第一终端的手 机号码。 The parsing the data request message to obtain 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 an address of the virtual gateway, Obtaining the mobile phone number of the first terminal in the extended option of the data request message.
结合第一方面或第一方面的第一种可选方式, 在第四种可选方式中, 所述数据请求报文的路由选项包括所述第一终端的手机号码, 所述数据请 求报文的请求目的地址包括虚拟网关的地址; 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 packet includes a mobile phone number of the first terminal, and the data request packet The request destination address includes the address of the virtual gateway;
所述解析所述数据请求报文, 获得所述第一终端的手机号码包括: 解 析所述数据请求报文, 确定所述数据请求报文的请求目的地址为所述虚拟 网关的地址后, 从所述数据请求报文的路由选项中获得所述第一终端的手 机号码。 The parsing the data request message to obtain 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 an address of the virtual gateway, Obtaining a mobile phone number of the first terminal in a routing option of the data request message.
第二方面, 提供一种数据业务通信服务器, 包括: In a 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 the first terminal, where the online request message includes a mobile phone number of the first terminal, and the first terminal is assigned a first IP address, to the Transmitting, by the first terminal, the first IP address, establishing a first mapping between the first IP address and a mobile phone number of the first terminal, and sending the first mapping to a data request processing unit;
所述数据请求处理单元, 用于从所述上线请求处理单元接收所述第一 映射, 以及用于接收第二终端发送的数据请求报文, 所述数据请求报文包 含所述第一终端的手机号码, 解析所述数据请求报文, 获得所述第一终端 的手机号码, 根据所述第一映射和所述第一终端的手机号码得到所述第一 The data request processing unit is configured to receive the first mapping from the online request processing unit, and receive a data request message sent by the second terminal, where the data request message includes the first terminal The mobile phone number, parsing the data request message, obtaining the mobile phone number of the first terminal, and obtaining the first according to the first mapping and the mobile phone number of the first terminal
IP地址, 将所述数据请求报文的请求目的地址替换为所述第一 IP地址后, 将所述数据请求 "¾文转发至所述第一终端。
第二方面的第一种可选方式中, 所述上线请求处理单元, 还用于接收 所述第二终端的发送的上线请求报文, 为所述第二终端分配第二 IP地址, 向所述第二终端发送所述第二 IP地址; The IP address, after the request destination address of the data request message is replaced with the first IP address, forwards the data request to the first terminal. In a first aspect of the second aspect, the online request processing unit is further configured to receive an online request message sent by the second terminal, and allocate a second IP address to the second terminal. Transmitting, by the second terminal, 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, where a response source address of the data response message is the first IP address, and a response destination of the data response message The address is the second IP address, and after the response source address of the data response message is replaced with the request destination address of the data request message, the data response message is forwarded according to the second IP address to The second terminal.
结合第二方面或第二方面的第一种可选方式, 在第二种可选方式中, 所述数据请求报文的请求目的地址包括所述第一终端的手机号码; With reference to the second aspect, or the first optional manner of the second aspect, in a second optional manner, the request destination address of the data request packet includes a mobile phone number of the first terminal;
所述数据请求处理单元用于获得所述第一终端的手机号码具体包括: 所述数据请求处理单元用于从所述数据请求报文的请求目的地址获得所述 第一终端的手机号码。 The data request processing unit is configured to obtain the mobile phone number of the first terminal, where the data request processing unit is configured to obtain the mobile phone number of the first terminal from the request destination address of the data request message.
结合第二方面或第二方面的第一种可选方式, 在第三种可选方式中, 所述数据请求报文的扩展选项包括所述第一终端的手机号码, 所述数据请 求报文的请求目的地址包括虚拟网关的地址; 所述数据请求处理单元用于 获得所述第一终端的手机号码具体包括: 所述数据请求处理单元用于确定 所述数据请求报文的请求目的地址为所述虚拟网关的地址后, 从所述数据 请求报文的扩展选项中获得所述第一终端的手机号码。 With the second aspect or the first optional manner of the second aspect, in a third optional manner, the extended option of the data request packet includes a mobile phone number of the first terminal, and the data request packet The request destination address includes the address of the virtual gateway; the data request processing unit is configured to obtain the mobile phone number of the first terminal, specifically: the data request processing unit is configured to determine that the request destination address of the data request message is After the address of the virtual gateway, the mobile phone number of the first terminal is obtained from an extended option of the data request message.
结合第二方面或第二方面的第一种可选方式, 在第四种可选方式中, 所述数据请求报文的路由选项包括所述第一终端的手机号码, 所述数据请 求报文的请求目的地址包括虚拟网关的地址; 所述数据请求处理单元用于 获得所述第一终端的手机号码具体包括: 所述数据请求处理单元用于确定 所述数据请求报文的请求目的地址为所述虚拟网关的地址后, 从所述数据 请求报文的路由选项中获得所述第一终端的手机号码。
第三方面, 提供一种数据业务通信系统, 其包括: 所述第二方面或第 二方面的任一种可选方式的数据业务通信服务器, 以及多个终端; 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 packet includes a mobile phone number of the first terminal, and the data request packet The request destination address includes the address of the virtual gateway; the data request processing unit is configured to obtain the mobile phone number of the first terminal, specifically: the data request processing unit is configured to determine that the request destination address of the data request message is After the address of the virtual gateway, the mobile phone number of the first terminal is obtained from the routing option of the data request message. The third aspect provides a data service communication system, including: the data service communication server of any one of the second aspect or the second aspect, and a plurality of terminals;
所述多个终端, 用于向所述数据业务通信服务器发送上线请求报文, 以及向所述数据业务通信服务器发送数据请求报文和 /或数据应答报文。 And the plurality of 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 shown in the foregoing technical solution, the first mapping between the first IP address and the mobile phone number of the first terminal is established by assigning the first IP address to the first terminal, and receiving the After the mobile phone number data request message of the first terminal, the data request message is parsed, the mobile phone number of the first terminal is obtained, and the first IP address is obtained according to the first mapping and the mobile phone number of the first terminal, and the request destination address is replaced. After the first IP address is forwarded, the data request message is forwarded to the second terminal, so that the terminal does not need to register the IP address of the destination terminal by using the previously registered account and password, and selects the destination terminal only from the mobile phone address book. The mobile phone number can be used as the destination address to complete the data service communication, which reduces the user operation steps and improves the communication efficiency.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1是现有移动通信网络当中点对点数据业务通信过程示意图; 图 2是本发明实施例提供的一种数据业务通信方法的流程图; 图 3是本发明实施例提供的数据业务通信方法的信令流程图; 图 4是本发明另一个实施例提供的数据业务通信方法的信令流程图; 图 5是本发明另一个实施例提供的数据业务通信方法的信令流程图; 图 6是本发明实施例提供的数据业务通信服务器的模块结构示意图; 图 7是本发明实施例提供的数据业务通信系统结构图; 图 8是本发明实施例提供的基于计算机系统的数据业务通信服务器的
结构图。 1 is a schematic diagram of a point-to-point data service communication process in an existing mobile communication network; FIG. 2 is a flowchart of a data service communication method according to an embodiment of the present invention; FIG. 3 is a letter of a data service communication method according to an embodiment of the present invention; FIG. 4 is a signaling flowchart of a data service communication method according to another embodiment of the present invention; FIG. 5 is a signaling flowchart of a data service communication method according to another embodiment of the present invention; FIG. 7 is a structural diagram of a data service communication system according to an embodiment of the present invention; FIG. 8 is a data service communication server based on a computer system according to an embodiment of the present invention; Structure diagram.
具体实施方式 detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚地描述, 显 然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所 获得的所有其他实施例, 都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly described in conjunction with the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are Some embodiments, rather than all of the embodiments, are invented. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 2是本发明实施例提供的一种数据业务通信方法的流程图, 如图 2 所示, 所述方法包括步骤: FIG. 2 is a flowchart of a data service communication method according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
210: 接收第一终端发送的上线请求报文, 所述上线请求报文中包含所 述第一终端的手机号码, 为所述第一终端分配第一 IP地址, 向所述第一终 端发送所述第一 IP地址,建立所述第一 IP地址与所述第一终端的手机号码 之间的第一映射。 210: Receive an online request message sent by the first terminal, where the online request message includes a mobile phone number of the first terminal, allocate a first IP address to the first terminal, and send the first terminal to the first terminal. Determining a first IP address, establishing a first mapping between the first IP address and a mobile phone number of the first terminal.
220: 接收第二终端发送的数据请求报文, 所述数据请求报文包含所述 第一终端的手机号码, 解析所述数据请求报文, 获得所述第一终端的手机 号码,根据所述第一映射和所述第一终端的手机号码得到所述第一 IP地址, 将所述数据请求报文的请求目的地址替换为所述第一 IP地址后, 将所述数 据请求 >¾文转发至所述第一终端。 Receiving a data request message sent by the second terminal, where the data request message includes a mobile phone number of the first terminal, parsing the data request message, and obtaining a 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, forwarding the data request>3⁄4 text To the first terminal.
所述步骤 220之前, 还可以包括: 接收所述第二终端的发送的上线请 求报文, 为所述第二终端分配第二 IP地址, 向所述第二终端发送所述第二 IP地址。 所述数据请求 文的请求源地址为所述第二 IP地址。 Before the step 220, the method further includes: receiving an uplink 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 message is the second IP address.
所述步骤 220之后, 还可以包括: 接收所述第一终端发送的数据应答 报文, 所述数据应答报文的应答源地址为所述第一 IP地址, 所述数据应答 报文的应答目的地址为所述第二 IP地址, 将所述数据应答报文的应答源地 址替换为所述数据请求报文的请求目的地址后, 根据所述第二 IP地址将所 述数据应答报文转发至所述第二终端。
可选的, 所述数据请求报文的请求目的地址包括所述第一终端的手机 号码; 所述解析所述数据请求报文, 获得所述第一终端的手机号码包括: 解析所述数据请求报文, 从所述数据请求报文的请求目的地址获得所述第 一终端的手机号码。 After the step 220, the method further 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, and the response destination of the data response message The address is the second IP address, and after the response source address of the data response message is replaced with the request destination address of the data request message, the data response message is forwarded according to the second IP address to The second terminal. Optionally, the request destination address of the data request packet includes a mobile phone number of the first terminal, and the parsing the data request packet to obtain the mobile phone number of the first terminal includes: parsing the data request And receiving, by the request destination address of the data request message, the mobile phone number of the first terminal.
可选的, 所述数据请求报文的扩展选项包括所述第一终端的手机号码, 所述数据请求报文的请求目的地址包括虚拟网关的地址; 所述解析所述数 据请求报文, 获得所述第一终端的手机号码包括: 解析所述数据请求报文, 确定所述数据请求报文的请求目的地址为所述虚拟网关的地址后, 从所述 数据请求报文的扩展选项中获得所述第一终端的手机号码。 Optionally, the extended option of the data request packet includes a mobile phone number of the first terminal, and the request destination address of the data request packet includes an address of the virtual gateway; the parsing the data request packet to obtain 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 an address of the virtual gateway, and obtaining the extended option of the data request message The mobile phone number of the first terminal.
可选的, 所述数据请求报文的路由选项包括所述第一终端的手机号码, 所述数据请求报文的请求目的地址包括虚拟网关的地址; 所述解析所述数 据请求报文, 获得所述第一终端的手机号码包括: 解析所述数据请求报文, 确定所述数据请求报文的请求目的地址为所述虚拟网关的地址后, 从所述 数据请求报文的路由选项中获得所述第一终端的手机号码。 通过釆用本发明方法, 同一个移动通信网络中的两个终端, 能够以手 机号码作为目的地址, 发起数据业务访问, 由通信网络中的服务器自动完 成手机号码和 IP地址的映射。 这种映射对用户是透明的, 通过本技术方案 能够避免终端访问点对点应用服务器获得目的 IP地址, 减少了点对点通信 经过的设备和时延, 提高了通信效率。 下面结合附图和实施例, 对本发明的具体实施方式作进一步详细描述。 以下实施例用于说明本发明, 但不用来限制本发明的范围。 Optionally, the routing option of the data request packet includes a mobile phone number of the first terminal, and the request destination address of the data request packet includes an address of the virtual gateway, where the parsing the data request packet is obtained. 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 an address of the virtual gateway, and obtaining the routing option of the data request message The mobile phone number of the first terminal. By using the method of the present invention, two terminals in the same mobile communication network can initiate data service access using the mobile phone number as the destination address, and the server in the communication network automatically completes the mapping of the mobile phone number and the IP address. This mapping is transparent to the user. This technical solution can avoid the terminal accessing the point-to-point application server to obtain the destination IP address, reduce the equipment and delay of the peer-to-peer communication, and improve the communication efficiency. The specific embodiments of the present invention are further described in detail below with reference to the drawings and embodiments. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
图 3是本发明实施例提供的数据业务通信方法的信令流程图, 如图 3 所示。 其中, 本实施例中的第一 IP地址和第二 IP地址均釆用 IPv6地址, IPv6地址有 128位, 其 ^艮文头结构如下表 1所示。
IPv6 文头结构示例 FIG. 3 is a signaling flowchart of a data service communication method according to an embodiment of the present invention, as shown in FIG. 3. The first IP address and the second IP address in this embodiment all use an IPv6 address, and the IPv6 address has 128 bits. The structure of the header is as shown in Table 1 below. IPv6 header structure example
Version i Traffic Class | Flow Label Version i Traffic Class | Flow Label
Payload Length i Next Header i Hop Limit Payload Length i Next Header i Hop Limit
Source Address Source Address
Destination Address Destination Address
Option Type Opt Data Option Option Type Opt Data Option
Option Data Option Data
128位 IP地址可以分成 IPv6前缀 Prefix和 IPv6接口 ID两部分, 在移 动通信网络第三代合作伙伴计划 ( The 3rd Generation Partnership Project, 3GPP )规范中, IPv6前缀和 IPv6接口 ID分别各占 64位。 本实施例中策 Hi十费 K亍功 ^月 ( olicy and charging enforcement function, 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 Prefix and the IPv6 interface ID. In the 3rd Generation Partnership Project (3GPP) specification, the IPv6 prefix and the IPv6 interface ID each occupy 64 bits. In this embodiment, the olicy and charging enforcement function (PCEF) allocates an IPv6 prefix to the terminal, and generates an IPv6 interface ID according to the mobile phone number of the terminal. The IPv6 prefix and the IPv6 interface ID are combined into a 128-bit IPv6 address for IPv6 communication. That is to say, in this embodiment, the following method is implemented by using the capability that the interface ID field in the IPv6 address can carry the mobile phone number of the terminal.
301 : 第一终端 (即终端 1 ) 向其所在通信网络中的 PCEF发送上线请 求报文, 所述第一终端发送的上线请求报文中包含所述第一终端的手机号 码。 301: The first terminal (ie, the terminal 1) sends an online request message to the PCEF in the communication network where the first terminal sends, and the online request message sent by the first terminal includes the mobile phone number of the first terminal.
具体的, 可以是第一终端启动点对点通信的客户端时发送上线请求报 文。 Specifically, the first terminal may send an online request message when the client of the point-to-point communication is started.
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 the authentication and the authentication are completed, the first terminal is allocated a first IP address, where the first IP address includes a first IPv6 prefix and a first IPv6 interface ID, and the first IPv6 interface ID is the first terminal. Mobile number, establishment Determining a first mapping between the first IP address and the mobile 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 second terminal may send an online request message when the client of the point-to-point communication is started.
306: 所述 PCEF接收第二终端发送的上线请求报文, 根据第二终端的 上线请求报文对所述第二终端进行鉴权和认证。 鉴权和认证完毕后, 为所 述第二终端分配第二 IP地址, 所述第二 IP地址包含第二 IPv6前缀和第二 306: The PCEF receives an 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 the authentication and the authentication are completed, the second terminal is assigned a second IP address, where the second IP address includes a second IPv6 prefix and a second
IPv6接口 ID , 所述第二 IPv6接口 ID为所述第二终端的手机号码, 建立所 述第二 IP地址与所述第二终端的手机号码之间的第二映射。 An IPv6 interface ID, where the second IPv6 interface ID is a mobile phone number of the second terminal, and a second mapping between the second IP address and the mobile phone number of the second terminal is established.
307: 所述 PCEF向第二终端发送第二响应信息, 所述第二响应信息中 包含所述第二 IP地址。 307: The PCEF sends a second response message 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发送上线请求报文的过程,并 不限于上述描述的先后顺序, 即可以是第二终端先上线, 也可以是第一终 端先上线, 或者同时上线。 The process of sending the online request message to the PCEF by the first terminal and the second terminal 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 online at the same time. .
309: 所述第二终端接收到用户的数据业务通信指令, 所述数据业务通 信指令包含第一终端的手机号码, 根据所述数据业务通信指令发送数据请 求报文至 PCEF, 所述数据请求报文包含请求源地址和请求目的地址, 所述 请求源地址是所述第二 IP地址, 所述请求目的地址包含所述第一终端的手 机号码。 309: The second terminal receives a data service communication command of the user, where the data service communication command includes a mobile phone number of the first terminal, and sends a data request message to the PCEF according to the data service communication command, where the data request message is sent. The request 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 a mobile phone number of the first terminal.
具体的, 可以是用户通过选择第一终端的手机号码作为点到点通信的 目的手机号码从而发送的数据业务通信指令。
具体的, 所述请求目的地址可以由所述第二 IPv6前缀和所述第一终端 的手机号码组成。 Specifically, it may be a data service communication instruction that is 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. Specifically, the request destination address may be composed of the second IPv6 prefix and a mobile phone number of the first terminal.
310: 所述 PCEF接收所述第二终端发送的数据请求报文, 解析所述数 据请求报文, 根据所述请求目的地址得到所述第一终端的手机号码, 根据 所述第一映射和所述第一终端的手机号码得到所述第一 IP地址, 将所述数 据请求报文的请求目的地址替换为所述第一 IP地址。 The PCEF receives the data request packet sent by the second terminal, parses the data request packet, and obtains the mobile phone number of the first terminal according to the request destination address, according to the first mapping and the The mobile phone number of the first terminal obtains the first IP address, and replaces the request destination address of the data request message with the first IP address.
311 : 所述 PCEF将所述数据请求报文转发至所述第一终端。 311: The PCEF forwards the data request message to the first terminal.
312: 所述第一终端接收所述 PCEF转发的数据请求报文后,进行处理, 解析得到其中的作为请求源地址的所述第二 IP地址。 312: After receiving the data request packet forwarded by the PCEF, the first terminal performs processing, and parses the second IP address that is the request source address.
313: 所述第一终端回复数据应答报文, 所述数据应答报文包含应答源 地址和应答目的地址, 所述应答源地址为所述第一 IP地址, 所述应答目的 地址为所述第二 IP地址。 313: The first terminal replies with a data response message, where the data response message 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 Two IP addresses.
314: 所述 PCEF接收所述第一终端发送的数据应答报文, 解析所述数 据应答报文, 获得所述第一 IP地址和所述第二 IP地址,将所述作为应答源 地址的所述第一 IP地址中的第一 IPv6前缀替换为所述第二 IPv6前缀。 其 中,将所述第一 IPv6前缀替换为所述第二 IPv6前缀的目的是便于所述第二 终端确定所述数据应答报文对应的数据请求报文。 314: The PCEF receives the data response message sent by the first terminal, parses the data response message, obtains the first IP address and the second IP address, and uses the address as the response source address. The first IPv6 prefix in the first IP address is replaced with the second IPv6 prefix. The purpose of replacing the first IPv6 prefix with the second IPv6 prefix is to facilitate the second terminal to determine a data request message corresponding to the data response message.
315:所述 PCEF根据所述第二 IP地址将所述数据应答报文转发至所述 第二终端。 图 4是本发明另一个实施例提供的数据业务通信方法的信令流程图, 如图 4所示, 本实施例所述方法与上述实施例所述方法基本相同, 其不同 之处在于,目的终端的手机号码通过 IPv6的扩展选项携带。其中,当 Routing Type为 0时, IPv6报文的扩展选项格式如下面表 2所示, 目的终端的手机 号码可以存储在 Address[l]的位置处。 315: The PCEF forwards the data response message to the second terminal according to the second IP address. 4 is a signaling flowchart of a data service communication method according to another embodiment of the present invention. As shown in FIG. 4, the method in this embodiment is basically the same as the method in the foregoing embodiment, and the difference is that the purpose is The mobile number of the terminal is carried by the extended option of IPv6. The format of the extended option of the IPv6 packet is as shown in Table 2 below. The mobile phone number of the destination terminal can be stored in the address[l].
表 2 IPv6报文的扩展选项格式实施例
Table 2 Example of extended option format for IPv6 packets
以下 , 结合图 4对本实施例详细说明如下。 Hereinafter, the present embodiment will be described in detail below with reference to FIG.
401 : 第一终端 (即终端 1 ) 向其所在 PCEF发送上线请求 ·艮文, 所述 第一终端发送的上线请求报文中包含所述第一终端的手机号码。 401: The first terminal (ie, the terminal 1) sends an online request to the PCEF where it is located. The online request message sent by the first terminal includes the mobile phone number of the first terminal.
具体的, 可以是第一终端启动点对点通信的客户端时发送上线请求报 文。 Specifically, the first terminal may send an online request message when the client of the point-to-point communication is started.
402: 所述 PCEF接收第一终端发送的上线请求报文, 根据第一终端发 送的上线请求报文对所述第一终端进行鉴权和认证。 鉴权和认证完毕后, 为所述第一终端分配第一 IP地址, 所述第一 IP地址包含第一 IPv6前缀和 第一 IPv6接口 ID, 所述第一 IPv6接口 ID为所述第一终端的手机号码, 建 立所述第一 IP地址与所述第一终端的手机号码之间的第一映射。 The PCEF receives the 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 the authentication and the authentication are completed, the first terminal is allocated a first IP address, where the first IP address includes a first IPv6 prefix and a first IPv6 interface ID, and the first IPv6 interface ID is the first terminal. The mobile phone number establishes a first mapping between the first IP address and the mobile 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 second terminal may send an online request message when the client of the point-to-point communication is started.
406: 所述 PCEF接收第二终端发送的上线请求报文, 根据第二终端发 送的上线请求报文对所述第二终端进行鉴权和认证。 鉴权和认证完毕后, 为所述第二终端分配第二 IP地址, 所述第二 IP地址包含第二 IPv6前缀和
第二 IPv6接口 ID, 所述第二 IPv6接口 ID为所述第二终端的手机号码, 建 立所述第二 IP地址与所述第二终端的手机号码之间的第二映射。 406: The PCEF receives an 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 the authentication and the authentication are completed, the second terminal is assigned a second IP address, where the second IP address includes a second IPv6 prefix and a second IPv6 interface ID, where the second IPv6 interface ID is a mobile phone number of the second terminal, and a second mapping between the second IP address and the mobile phone number of the second terminal is established.
407: 所述 PCEF向所述第二终端发送第二响应信息, 所述第二响应信 息中包含所述第二 IP地址。 407: The PCEF sends a second response message 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 a data service communication command of the user, where the data service communication command includes a mobile phone number of the first terminal, and after obtaining an address of the pre-configured virtual gateway, according to the data service communication instruction. Sending a data request message to the PCEF, where 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 an address of the virtual gateway. 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 that is 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地址, 并建立所述第一终端的手机号 码与所述虚拟网关的地址之间的第三映射。 The PCEF receives the data request packet sent by the second terminal, parses the data request packet, obtains the request destination address, and determines, according to the request destination address, the address of the virtual gateway that the point is a point. Receiving a data request message of the data service communication, and obtaining the mobile phone number of the first terminal from the extended option of the data request message, and obtaining the mobile phone number according to the first mapping and the first terminal The first IP address is used to 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 message to the first terminal.
412: 所述第一终端接收所述 PCEF转发的数据请求报文后,进行处理, 解析得到其中的作为请求源地址的所述第二 IP地址。 412: After receiving the data request message forwarded by the PCEF, the first terminal performs processing, and parses the second IP address that is the request source address.
413: 所述第一终端回复数据应答报文, 所述数据应答报文包含应答源 地址和应答目的地址, 所述应答源地址为所述第一 IP地址, 所述应答目的
地址为所述第二 IP地址。 所述数据应答报文的扩展选项中包含所述第一终 端的手机号码。 413: The first terminal replies with a data response message, where the data response message includes a response source address and a response destination address, and the response source address is the first IP address, and the response destination The address is the second IP address. The extended option of the data response message includes a 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, and obtains the second IP address, and the first one of the extended options of the data response message. The mobile phone number of the terminal is obtained according to the third mapping and the mobile phone number of the first terminal, and the response source address is replaced with the address of the virtual gateway. The purpose of replacing the address of the response source with the address of the virtual gateway is to facilitate the second terminal to determine a data request message corresponding to the data response message.
415:所述 PCEF根据所述第二 IP地址将所述数据应答 文转发至所述 第二终端。 415: The PCEF forwards the data response file to the second terminal according to the second IP address.
其中, 所述虚拟网关的地址由运营商通过空中下载 OTA ( Over The Air )、 约定等方式提供。 图 5是本发明另一个实施例提供的数据业务通信方法的信令流程图, 本实施例中所述第一 IP地址和第二 IP地址均为 IPv4地址, 在数据请求才艮 文头中存在路由选项, 通过把目的终端的手机号码存储在数据请求报文头 的路由选项的数据域中, 也可以实现本发明方法。 参见图 5, 本实施例所述 方法包括步骤: The address of the virtual gateway is provided by an operator by means of over-the-air OTA (Over The Air), an appointment, and the like. FIG. 5 is a signaling flowchart of a data service communication method according to another embodiment of the present invention. In this embodiment, the first IP address and the second IP address are both IPv4 addresses, and the data request is present in the header. The routing option can also be implemented by storing the mobile terminal number of the destination terminal in the data field of the routing option of the data request header. Referring to FIG. 5, the method in this embodiment includes the following steps:
501 : 第一终端 (即终端 1 ) 向其所在通信网络中的 PCEF发送上线请 求报文, 所述第一终端发送的上线请求报文中包含所述第一终端的手机号 码。 501: The first terminal (ie, the terminal 1) sends an online request message to the PCEF in the communication network where the first terminal sends, and the online request message sent by the first terminal includes the mobile phone number of the first terminal.
具体的, 可以是第一终端启动点对点通信的客户端时发送上线请求报 文。 Specifically, the first terminal may send an online request message when the client of the point-to-point communication is started.
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 the authentication and the authentication are completed, the first terminal is assigned a first IP address, and the first IP address is established with the first terminal. The first mapping between mobile numbers.
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, the second terminal may send an online request message when the client that initiates the point-to-point communication is started.
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 the authentication and the authentication are completed, the second terminal is assigned a second IP address, 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地址, 所 述请求目的地址为所述虚拟网关的地址。 所述数据请求 4艮文的路由选项中 包含所述第一终端的手机号码。 509: The second terminal receives the data service communication command of the user, where the data service communication command includes the mobile phone number of the first terminal, and after obtaining the address of the pre-configured virtual gateway, sending the data according to the data service communication instruction. The request message is sent to the PCEF, and 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 an address of the virtual gateway. The routing option of the data request includes the mobile phone number of the first terminal.
具体的, 可以是用户通过选择第一终端的手机号码作为点到点通信的 目的手机号码从而发送的数据业务通信指令。 Specifically, it may be a data service communication instruction that is 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 ( Over The Air )、 约定等方式提供。 具体的, 所述虚拟网关地址可以是 10.10.10.10。 The virtual gateway address is provided by an operator by means of over-the-air OTA (Over The Air), an appointment, and the like. Specifically, the virtual gateway address may be 10.10.10.10.
510: 所述 PCEF接收所述第二终端发送的数据请求报文, 解析所述数
据请求报文, 得到所述请求目的地址, 根据所述请求目的地址为虚拟网关 的地址判断出这是一个点到点数据业务通信的数据请求报文, 进而从所述 路由选项中获得所述第一终端的手机号码, 根据所述第一映射和所述第一 终端的手机号码得到所述第一 IP地址, 将所述数据请求报文的请求目的地 址替换为所述第一 IP地址, 并建立所述第一终端的手机号码与所述虚拟网 关的地址之间的第三映射。 510: The PCEF receives a data request packet sent by the second terminal, and parses the number. Determining, by the request message, the request destination address, determining, according to the request destination address, the address of the virtual gateway that the data request message is a point-to-point data service communication, and obtaining the information from the routing option. The mobile phone number of the first terminal, the first IP address is obtained according to the first mapping and the mobile phone number of the first terminal, and the request destination address of the data request message is replaced 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 message to the first terminal.
512: 所述第一终端接收所述 PCEF转发的数据请求报文后,进行处理, 解析得到其中的作为请求源地址的所述第二 IP地址。 512: After receiving the data request message forwarded by the PCEF, the first terminal performs processing, and parses the second IP address as the request source address.
513: 所述第一终端回复数据应答报文, 所述数据应答报文包含应答源 地址和应答目的地址, 所述应答源地址为所述第一 IP地址, 所述应答目的 地址为所述第二 IP地址。 所述数据应答报文的路由选项中包含所述第一终 端的手机号码。 513: The first terminal replies with a data response message, where the data response message 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 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 message sent by the first terminal, parses the data response message, and obtains the second IP address, and the first one of the routing options of the data response message. The mobile phone number of the terminal is obtained according to the third mapping and the mobile phone number of the first terminal, and the response source address is replaced with the address of the virtual gateway. The purpose of replacing the address of the response source with the address of the virtual gateway is to facilitate the second terminal to determine a data request message corresponding to the data response message.
515:所述 PCEF根据所述第二 IP地址将所述数据应答报文转发至所述 第二终端。 图 6是本发明所述数据业务通信服务器的模块结构示意图, 如图 6所 示, 所述数据业务通信服务器 600包括: 515: The PCEF forwards the data response message to the second terminal according to the second IP address. 6 is a block diagram showing the structure of a data service communication server according to 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, where the online request message includes a mobile phone number of the first terminal, and the first terminal is allocated a first An IP address, sending the first IP address to the first terminal, establishing a first mapping between the first IP address and a mobile phone number of the first terminal, and sending the first mapping to data Request processing unit.
数据请求处理单元 620,用于从上线请求处理单元 610接收所述第一映 射, 以及用于接收第二终端发送的数据请求报文, 所述数据请求报文包含 所述第一终端的手机号码, 解析所述数据请求报文, 获得所述第一终端的 手机号码, 根据所述第一映射和所述第一终端的手机号码得到所述第一 IP 地址, 将所述数据请求报文的请求目的地址替换为所述第一 IP地址后, 将 所述数据请求 "¾文转发至所述第一终端。 可选的, 上线请求处理单元 610,还用于接收所述第二终端的发送的上 线请求报文, 为所述第二终端分配第二 IP地址, 向所述第二终端发送所述 第二 IP地址。 所述数据请求报文的请求源地址为所述第二 IP地址。 The data request processing unit 620 is configured to receive the first mapping from the online request processing unit 610, and receive a data request message sent by the second terminal, where the data request message includes a mobile phone number of the first terminal. And parsing the data request packet, 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 using the data request message After the request destination address is replaced with the first IP address, the data request is forwarded to the first terminal. Optionally, the online request processing unit 610 is further configured to receive the sending of the second terminal. The online request message is configured to allocate a second IP address to the second terminal, and send the second IP address to the second terminal. The request source address of the data request message is the second IP address.
数据请求处理单元 620, 还用于接收所述第一终端发送的数据应答报 文, 所述数据应答报文的应答源地址为所述第一 IP地址, 所述数据应答报 文的应答目的地址为所述第二 IP地址, 将所述数据应答报文的应答源地址 替换为所述数据请求报文的请求目的地址后, 根据所述第二 IP地址将所述 数据应答报文转发至所述第二终端。 可选的, 所述数据请求报文的请求目的地址包括所述第一终端的手机 号码; 数据请求处理单元 620用于获得所述第一终端的手机号码具体包括: 所述数据请求处理单元用于从所述数据请求报文的请求目的地址获得所述 第一终端的手机号码。 The data request processing unit 620 is further configured to receive the data response message sent by the first terminal, where the response source address of the data response message is the first IP address, and the response destination address of the data response message After the response source address of the data response message is replaced with the request destination address of the data request message, the data response message is forwarded to the second IP address according to the second IP address. Said second terminal. Optionally, the request destination address of the data request packet includes a mobile phone number of the first terminal, where the data request processing unit 620 is configured to obtain the mobile phone number of the first terminal, specifically: the data request processing unit 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 packet includes a mobile phone number of the first terminal, and the request destination address of the data request packet includes an address of the virtual gateway, where the data request processing unit 620 is configured to obtain the The mobile phone number of a terminal specifically includes: the data request processing list After determining, by the element, that the request destination address of the data request message is the address of the virtual gateway, obtaining the mobile phone number of the first terminal from the extended option of the data request message.
可选的, 所述数据请求报文的路由选项包括所述第一终端的手机号码, 所述数据请求报文的请求目的地址包括虚拟网关的地址; 数据请求处理单 元 620用于获得所述第一终端的手机号码具体包括: 所述数据请求处理单 元用于确定所述数据请求报文的请求目的地址为所述虚拟网关的地址后, 从所述数据请求报文的路由选项中获得所述第一终端的手机号码。 本发明还提供一种数据业务通信系统, 如图 7 所示, 所述数据业务通 信服务器 700包括: Optionally, the routing request of the data request packet includes a mobile phone number of the first terminal, and the request destination address of the data request packet includes an address of the virtual gateway, where the data request processing unit 620 is configured to obtain the The mobile phone number of a terminal specifically includes: after the data request processing unit is configured to determine that the request destination address of the data request message is an address of the virtual gateway, obtain the foregoing from a routing option of the data request message The mobile number of the first terminal. The present invention further 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, where the online request message includes a mobile phone number of the first terminal, and allocate a first IP address 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 receives a data request message sent by the second terminal 7202, The data request message includes the mobile phone number of the first terminal, parses the data request message, and obtains the mobile phone number of the first terminal, according to the first mapping and the mobile phone number of the first terminal. After the first IP address is replaced with the first IP address, the data request message is forwarded to the first terminal.
终端 720, 至少包括第一终端 7201和第二终端 7202, 用于向所述数据 业务通信服务器发送上线请求报文, 以及向所述数据业务通信服务器发送 数据请求报文和 /或数据应答报文。 本发明实施例中的数据业务通信服务器可以基于计算机系统来实现, 图 2、 图 3、 图 4、 图 5所示的方法均可在基于计算机系统的数据业务通信 服务器来实现。 图 8示出了基于计算机系统来实现的数据业务通信服务器
的实施例。 本实施例中数据业务通信服务器可以包括: 处理器 801、 存储器 802和通信接口 803 , 其中: The terminal 720 includes 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. . The data service communication server in the embodiment of the present invention can be implemented based on a computer system. The methods shown in FIG. 2, FIG. 3, FIG. 4, and FIG. 5 can all be implemented in a data service communication server based on a computer system. Figure 8 shows a data service communication server implemented based on a computer system An embodiment. The data service communication server in this embodiment may include: a processor 801, a memory 802, and a communication interface 803, where:
通信接口 803 , 用于与终端通信。 终端与数据业务通信服务器之间交互 的消息(如方法实施例图 2、 3、 4、 5所示)均通过通信接口 803发送和接 收。 具体地, 通信接口 803用于接收终端发送的上线请求报文; 存储器 802 用于存储程序指令; 处理器 801 用于在接收第一终端发送的上线请求报文 之后, 调用存储器 802 中存储的程序指令, 执行如下操作: 为所述第一终 端分配第一 IP地址, 向所述第一终端发送所述第一 IP地址, 建立所述第一 IP 地址与所述第一终端的手机号码之间的第一映射; 接收第二终端发送的 数据请求报文, 所述数据请求报文包含所述第一终端的手机号码, 解析所 述数据请求报文, 获得所述第一终端的手机号码, 根据所述第一映射和所 述第一终端的手机号码得到所述第一 IP地址, 将所述数据请求报文的请求 目的地址替换为所述第一 IP地址后, 将所述数据请求报文转发至所述第一 终端。 The communication interface 803 is configured to communicate with the terminal. Messages exchanged between the terminal and the data service communication server (as shown in Figures 2, 3, 4, and 5 of the method embodiment) are transmitted and received via communication interface 803. Specifically, the communication interface 803 is configured to receive an online request message sent by the terminal; the memory 802 is configured to store the program instruction; the processor 801 is configured to: after receiving the online request message sent by the first terminal, invoke the program stored in the memory 802. The command is as follows: assigning a first IP address to the first terminal, sending the first IP address to the first terminal, and establishing a relationship between the first IP address and a mobile phone number of the first terminal And receiving a data request message sent by the second terminal, where the data request message includes a mobile phone number of the first terminal, parsing the data request message, and obtaining a 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 of the data request message with the first IP address, and then reporting the data request The text is forwarded to the first terminal.
其中, 处理器 801可以是中央处理器( central processing unit, CPU )、 专用集成电路 ( application- specific integrated circuit, ASIC )等。 其中, 本实 施例中的终端可以包括总线 804。处理器 801、存储器 802以及通信接口 803 之间可通过总线 804连接并通信。 其中, 存储器 802可以包括: 随机存取 存储器 ( random access memory, RAM ), 只读存储器 ( read-only memory, ROM ), 磁盘等具有存储功能的实体; The processor 801 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or the like. 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 communicated via the bus 804. The memory 802 may include: a random access memory (RAM), a read-only memory (ROM), a disk and the like having a storage function;
处理器 801还可以用于执行方法实施例中图 2、 图 3、 图 4、 图 5描述 的各步骤, 本发明实施例在此不再详述。 本发明实施例所述数据业务通信方法、 设备及系统, 为第一终端分配 第一 IP地址, 建立第一 IP地址与第一终端的手机号码之间的第一映射,接 收第二终端发送的包含所述第一终端的手机号码数据请求报文, 解析数据
请求报文, 获得第一终端的手机号码, 根据第一映射和第一终端的手机号 码得到第一 IP地址,将请求目的地址替换为第一 IP地址后,将数据请求报 文转发至所述第二终端, 从而使终端无需访问点对点应用服务器获取目的 终端的 IP地址, 仅以目的终端的手机号码作为目的地址即可完成数据业务 通信, 降低了点对点通信的时延, 提高了通信效率。 The processor 801 can also be used to perform the steps described in FIG. 2, FIG. 3, FIG. 4, and FIG. 5 in the embodiment of the present invention, and the embodiments of the present invention are not described in detail herein. The data service communication method, device and system according to the embodiment of the present invention allocates a first IP address to the first terminal, establishes a first mapping between the first IP address and the mobile phone number of the first terminal, and receives the first mapping sent by the second terminal. A mobile phone number data request message including the first terminal, and parsing data Receiving a message, obtaining a mobile phone number of the first terminal, obtaining a first IP address according to the first mapping and the mobile phone number of the first terminal, and replacing the request destination address with the first IP address, and forwarding the data request message to the The second terminal, so that the terminal does not need to access the peer-to-peer application server to obtain the IP address of the destination terminal, and only uses the mobile phone number of the destination terminal as the destination address to complete the data service communication, which reduces the delay of the point-to-point communication and improves the communication efficiency.
本领域普通技术人员将会理解, 本发明的各个方面、 或各个方面的可 能实现方式可以被具体实施为系统、 方法或者计算机程序产品。 因此, 本 发明的各方面、 或各个方面的可能实现方式可以釆用完全硬件实施例、 完 全软件实施例 (包括固件、 驻留软件等等), 或者组合软件和硬件方面的实 施例的形式, 在这里都统称为"电路"、 "模块 "或者 "系统"。 此外, 本发明的 各方面、 或各个方面的可能实现方式可以釆用计算机程序产品的形式, 计 算机程序产品是指存储在计算机可读介质中的计算机可读程序代码。 Those skilled in the art will appreciate that various aspects of the invention, or possible implementations of various aspects, may be embodied as a system, method, or computer program product. Thus, aspects of the invention, or possible implementations of various aspects, may be in the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, etc.), or a combination of software and hardware aspects, They are collectively referred to herein as "circuits," "modules," or "systems." Furthermore, various aspects of the invention, or possible implementations of various aspects, may take the form of a computer program product, which is a computer readable program code stored in a computer readable medium.
计算机可读介质可以是计算机可读信号介质或者计算机可读存储介 质。 计算机可读存储介质包含但不限于电子、 磁性、 光学、 电磁、 红外或 半导体系统、 设备或者装置, 或者前述的任意适当组合, 如随机存取存储 器 (RAM)、 只读存储器 (ROM)、 可擦除可编程只读存储器(EPROM或者 快闪存储器)、 光纤、 便携式只读存储器 (CD-ROM)。 The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, 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 memory), optical fiber, portable read-only memory (CD-ROM).
计算机中的处理器读取存储在计算机可读介质中的计算机可读程序代 码, 使得处理器能够执行在流程图中每个步骤、 或各步骤的组合中规定的 功能动作; 生成实施在框图的每一块、 或各块的组合中规定的功能动作的 装置。 The processor in the computer reads the computer readable program code stored in the computer readable medium, such that the processor can perform the functional actions specified in each step or combination of steps in the flowchart; A device that functions as specified in each block, or combination of blocks.
计算机可读程序代码可以完全在用户的计算机上执行、 部分在用户的 计算机上执行、 作为单独的软件包、 部分在用户的计算机上并且部分在远 程计算机上, 或者完全在远程计算机或者服务器上执行。 也应该注意, 在 某些替代实施方案中, 在流程图中各步骤、 或框图中各块所注明的功能可 能不按图中注明的顺序发生。 例如, 依赖于所涉及的功能, 接连示出的两
个步骤、 或两个块实际上可能被大致同时执行, 或者这些块有时候可能被 以相反顺序执行。 The computer readable program code can be executed 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 the remote computer, or entirely on the remote computer or server. . It should also be noted that in some alternative implementations, the functions noted in the various steps of the flowcharts or in the blocks of the block diagrams may not occur in the order noted in the drawings. For example, depending on the function involved, the two shown one after the other Steps, or two blocks may actually be executed substantially simultaneously, or the blocks may sometimes be executed in the reverse order.
本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。
The spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention
Claims
1、 一种数据业务通信方法, 其特征在于, 包括步骤: A data service communication method, characterized in that it comprises the steps of:
接收第一终端发送的上线请求报文, 所述上线请求报文中包含所述第 一终端的手机号码, 为所述第一终端分配第一 IP地址, 向所述第一终端发 送所述第一 IP地址,建立所述第一 IP地址与所述第一终端的手机号码之间 的第一映射; Receiving an online request message sent by the first terminal, where the online request message includes a mobile phone number of the first terminal, assigning a first IP address to the first terminal, and sending the first terminal to the first terminal An IP address, establishing a first mapping between the first IP address and a mobile phone number of the first terminal;
接收第二终端发送的数据请求报文, 所述数据请求报文包含所述第一 终端的手机号码, 解析所述数据请求报文, 获得所述第一终端的手机号码, 根据所述第一映射和所述第一终端的手机号码得到所述第一 IP地址, 将所 述数据请求报文的请求目的地址替换为所述第一 IP地址后, 将所述数据请 求报文转发至所述第一终端。 Receiving a data request message sent by the second terminal, where the data request message includes a mobile phone number of the first terminal, parsing the data request message, and obtaining a 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, and after replacing the request destination address of the data request message with the first IP address, forwarding the data request message to the The first terminal.
2、 如权利要求 1所述的数据业务通信方法, 其特征在于, 2. The data service communication method according to claim 1, wherein:
所述接收第二终端发送的数据请求报文之前, 还包括: 接收所述第二 终端发送的上线请求报文, 为所述第二终端分配第二 IP地址, 向所述第二 终端发送所述第二 IP地址; Before receiving the data request message sent by the second terminal, the method further includes: receiving an online request message sent by the second terminal, assigning a second IP address to the second terminal, and sending the second terminal to the second terminal Said second IP address;
所述数据请求报文的请求源地址为所述第二 IP地址; The request source address of the data request message is the second IP address;
所述将所述数据请求报文转发至所述第一终端之后, 还包括: 接收所 述第一终端发送的数据应答报文, 所述数据应答报文的应答源地址为所述 第一 IP地址, 所述数据应答报文的应答目的地址为所述第二 IP地址,将所 述数据应答报文的应答源地址替换为所述数据请求报文的请求目的地址 后, 根据所述第二 IP地址将所述数据应答报文转发至所述第二终端。 After the data request message is forwarded to the first terminal, the method further 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 Address, the response destination address of the data response message is the second IP address, and after the response source address of the data response message is replaced with the request destination address of the data request message, according to the second The IP address forwards the data response message to the second terminal.
3、 如权利要求 1或 2所述的数据业务通信方法, 其特征在于, 所述数据请求报文的请求目的地址包括所述第一终端的手机号码; 所述解析所述数据请求报文, 获得所述第一终端的手机号码包括: 解 析所述数据请求报文, 从所述数据请求报文的请求目的地址获得所述第一
终端的手机号码。 The data service communication method according to claim 1 or 2, wherein the request destination address of the data request message includes a mobile phone number of the first terminal; and the data request message is parsed, Obtaining the mobile phone number of the first terminal includes: parsing the data request message, obtaining the first request from a request destination address of the data request message The mobile number of the terminal.
4、 如权利要求 1或 2所述的数据业务通信方法, 其特征在于, 所述数据请求报文的扩展选项包括所述第一终端的手机号码, 所述数 据请求 _¾文的请求目的地址包括虚拟网关的地址; The data service communication method according to claim 1 or 2, wherein the extension option of the data request message includes a mobile phone number of the first terminal, and the request destination address of the data request_3⁄4 text Including the address of the virtual gateway;
所述解析所述数据请求报文, 获得所述第一终端的手机号码包括: 解 析所述数据请求报文, 确定所述数据请求报文的请求目的地址为所述虚拟 网关的地址后, 从所述数据请求报文的扩展选项中获得所述第一终端的手 机号码。 The parsing the data request message to obtain 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 an address of the virtual gateway, Obtaining the mobile phone number of the first terminal in the extended option of the data request message.
5、 如权利要求 1或 2所述的数据业务通信方法, 其特征在于, 所述数据请求报文的路由选项包括所述第一终端的手机号码, 所述数 据请求 _¾文的请求目的地址包括虚拟网关的地址; The data service communication method according to claim 1 or 2, wherein the routing option of the data request message includes a mobile phone number of the first terminal, and the request destination address of the data request_3⁄4 text Including the address of the virtual gateway;
所述解析所述数据请求报文, 获得所述第一终端的手机号码包括: 解 析所述数据请求报文, 确定所述数据请求报文的请求目的地址为所述虚拟 网关的地址后, 从所述数据请求报文的路由选项中获得所述第一终端的手 机号码。 The parsing the data request message to obtain 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 an address of the virtual gateway, Obtaining a mobile phone number of the first terminal in a routing option of the data request message.
6、 一种数据业务通信服务器, 其特征在于, 包括: 6. A data service communication server, comprising:
上线请求处理单元, 用于接收第一终端发送的上线请求报文, 所述上 线请求报文中包含所述第一终端的手机号码, 为所述第一终端分配第一 IP 地址, 向所述第一终端发送所述第一 IP地址, 建立所述第一 IP地址与所述 第一终端的手机号码之间的第一映射, 以及将所述第一映射发送给数据请 求处理单元; An online request processing unit, configured to receive an online request message sent by the first terminal, where the online request message includes a mobile phone number of the first terminal, and the first terminal is assigned a first IP address, to the Transmitting, by the first terminal, the first IP address, establishing a first mapping between the first IP address and a mobile phone number of the first terminal, and sending the first mapping to a data request processing unit;
所述数据请求处理单元, 用于从所述上线请求处理单元接收所述第一 映射, 以及用于接收第二终端发送的数据请求报文, 所述数据请求报文包 含所述第一终端的手机号码, 解析所述数据请求报文, 获得所述第一终端
的手机号码, 根据所述第一映射和所述第一终端的手机号码得到所述第一The data request processing unit is configured to receive the first mapping from the online request processing unit, and receive a data request message sent by the second terminal, where the data request message includes the first terminal a mobile phone number, parsing the data request message, and obtaining the first terminal The mobile phone number, according to the first mapping and the mobile phone number of the first terminal, the first
IP地址, 将所述数据请求报文的请求目的地址替换为所述第一 IP地址后, 将所述数据请求 "¾文转发至所述第一终端。 After the IP address is replaced with the first IP address of the data request message, the data request is forwarded to the first terminal.
7、 如权利要求 6所述的数据业务通信服务器, 其特征在于, 7. The data service communication server according to claim 6, wherein:
所述上线请求处理单元, 还用于接收所述第二终端的发送的上线请求 •艮文, 为所述第二终端分配第二 IP地址, 向所述第二终端发送所述第二 IP 地址; The online request processing unit is further configured to receive an online request for sending the second terminal, assign a second IP address to the second terminal, and send 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地址将所述 数据应答报文转发至所述第二终端。 The data request processing unit is further configured to receive a data response message sent by the first terminal, where a response source address of the data response message is the first IP address, and a response destination of the data response message The address is the second IP address, and after the response source address of the data response message is replaced with the request destination address of the data request message, the data response message is forwarded according to the second IP address to The second terminal.
8、 如权利要求 6或 7所述的数据业务通信服务器, 其特征在于: 所述数据请求报文的请求目的地址包括所述第一终端的手机号码; 所述数据请求处理单元用于获得所述第一终端的手机号码具体包括: 所述数据请求处理单元用于从所述数据请求报文的请求目的地址获得所述 第一终端的手机号码。 The data service communication server according to claim 6 or 7, wherein: the request destination address of the data request message includes a mobile phone number of the first terminal; and the data request processing unit is configured to obtain a location The mobile phone number of the first terminal specifically includes: the data request processing unit is configured to obtain the mobile phone number of the first terminal from a request destination address of the data request message.
9、 如权利要求 6或 7所述的数据业务通信服务器, 其特征在于, 所述数据请求报文的扩展选项包括所述第一终端的手机号码, 所述数 据请求 _¾文的请求目的地址包括虚拟网关的地址; The data service communication server according to claim 6 or 7, wherein the extension option of the data request message includes a mobile phone number of the first terminal, and the request destination address of the data request_3⁄4 text Including the address of the virtual gateway;
所述数据请求处理单元用于获得所述第一终端的手机号码具体包括: 所述数据请求处理单元用于确定所述数据请求报文的请求目的地址为所述 虚拟网关的地址后, 从所述数据请求报文的扩展选项中获得所述第一终端 的手机号码。 The data request processing unit is configured to obtain the mobile phone number of the first terminal, where the data request processing unit is configured to determine that the request destination address of the data request message is an address of the virtual gateway, Obtaining the mobile number of the first terminal in the extended option of the data request message.
10、 如权利要求 6或 7所述的数据业务通信服务器, 其特征在于,
所述数据请求报文的路由选项包括所述第一终端的手机号码, 所述数 据请求 _¾文的请求目的地址包括虚拟网关的地址; 10. A data service communication server according to claim 6 or 7, wherein: The routing option of the data request message includes a mobile phone number of the first terminal, and the request destination address of the data request message includes an address of the virtual gateway;
所述数据请求处理单元用于获得所述第一终端的手机号码具体包括: 所述数据请求处理单元用于确定所述数据请求报文的请求目的地址为所述 虚拟网关的地址后, 从所述数据请求报文的路由选项中获得所述第一终端 的手机号码。 The data request processing unit is configured to obtain the mobile phone number of the first terminal, where the data request processing unit is configured to determine that the request destination address of the data request message is an address of the virtual gateway, Obtaining the mobile phone number of the first terminal in a routing option of the data request message.
11、 一种数据业务通信系统, 其特征在于, 包括: 权利要求 6至 10任 一项所述的数据业务通信服务器, 以及多个终端; 所述多个终端, 用于向所述数据业务通信服务器发送上线请求报文, 以及向所述数据业务通信服务器发送数据请求报文和 /或数据应答报文。
A data service communication system, comprising: the data service communication server according to any one of claims 6 to 10, and a plurality of terminals; wherein the plurality of terminals are configured to communicate with the data service The server sends an online request message, and sends a data request message and/or a data response message to the data service communication server.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310134490.XA CN103179229B (en) | 2013-04-17 | 2013-04-17 | A kind of data service communications method, equipment and system |
CN201310134490.X | 2013-04-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014169590A1 true WO2014169590A1 (en) | 2014-10-23 |
Family
ID=48638847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/084818 WO2014169590A1 (en) | 2013-04-17 | 2013-10-08 | Data service communication method, device, and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103179229B (en) |
WO (1) | WO2014169590A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103179229B (en) * | 2013-04-17 | 2015-12-09 | 华为技术有限公司 | A kind of data service communications method, equipment and system |
CN105611608A (en) * | 2015-12-31 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Wireless local area network communication method, terminal and system |
CN108574720B (en) * | 2017-05-09 | 2021-07-20 | 北京金山云网络技术有限公司 | A service online method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1625141A (en) * | 2004-12-17 | 2005-06-08 | 中国科学院计算技术研究所 | A Construction Method of Broadband Wireless Metropolitan Area Network Providing Hierarchical Services |
WO2008080341A1 (en) * | 2007-01-01 | 2008-07-10 | Huawei Technologies Co., Ltd. | Method, system and device for identifying a user terminal |
CN102055637A (en) * | 2009-11-03 | 2011-05-11 | 中兴通讯股份有限公司 | Wide band network system and realizing method thereof |
CN103179229A (en) * | 2013-04-17 | 2013-06-26 | 华为技术有限公司 | Data service communication method, equipment and system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1855923A (en) * | 2005-04-29 | 2006-11-01 | 北京利德沣通信技术有限公司 | Communication based on interactive network |
CN101026636A (en) * | 2006-02-22 | 2007-08-29 | 张弘 | Dual-channel communication terminal and its system, communication method using said terminal and long distance control method |
JP4920052B2 (en) * | 2009-03-11 | 2012-04-18 | 株式会社日立製作所 | Communication system and server |
CN102368761B (en) * | 2011-03-15 | 2014-08-27 | 陈建国 | Time division-synchronous code division multiple access (TD-SCDMA)/ IP double network cooperation multimedia telephone, system and communication method thereof |
CN102892110A (en) * | 2012-09-19 | 2013-01-23 | 邦讯技术股份有限公司 | Method and system for keeping consistency of user identifications of terminal in different networks |
-
2013
- 2013-04-17 CN CN201310134490.XA patent/CN103179229B/en active Active
- 2013-10-08 WO PCT/CN2013/084818 patent/WO2014169590A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1625141A (en) * | 2004-12-17 | 2005-06-08 | 中国科学院计算技术研究所 | A Construction Method of Broadband Wireless Metropolitan Area Network Providing Hierarchical Services |
WO2008080341A1 (en) * | 2007-01-01 | 2008-07-10 | Huawei Technologies Co., Ltd. | Method, system and device for identifying a user terminal |
CN102055637A (en) * | 2009-11-03 | 2011-05-11 | 中兴通讯股份有限公司 | Wide band network system and realizing method thereof |
CN103179229A (en) * | 2013-04-17 | 2013-06-26 | 华为技术有限公司 | Data service communication method, equipment and system |
Also Published As
Publication number | Publication date |
---|---|
CN103179229B (en) | 2015-12-09 |
CN103179229A (en) | 2013-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11838203B2 (en) | Multipath data transmission method and device | |
CN114124618B (en) | Message transmission method and electronic equipment | |
US9729501B2 (en) | System and data card for stateless automatic configuration of IPv6 address and method for implementing the same | |
CN102790813B (en) | Communication method as well as system and terminal equipment based on IPv6 (internet protocol version 6) network | |
WO2011137842A1 (en) | Cgn (carrier grade nat) entity based data transmission method, cgn entity, gateway and system | |
WO2012149783A1 (en) | Method, device, and user equipment applicable in accessing mobile network | |
CN109729122B (en) | Method and device for determining Ethernet MAC address | |
WO2010045872A1 (en) | Method, device and system for transmitting packet switching services | |
CN110062060B (en) | System and method for IP address allocation | |
CN102546407A (en) | Message sending method and device | |
CN114385314A (en) | Internet of things equipment data migration system, method and device and storage medium | |
US20110280187A1 (en) | Provision of an end-to-end connection from a terminal unit to a network | |
KR20150125379A (en) | A method, a terminal and a server for providing communication service | |
US20160112300A1 (en) | Method and device for selecting a communication interface | |
WO2014169590A1 (en) | Data service communication method, device, and system | |
JP2015037275A (en) | Mobile communication terminal | |
WO2011120276A1 (en) | Method and system for establishing connection between terminals | |
WO2024061228A1 (en) | Network address translation method, relay device, communication system, and storage medium | |
WO2017161866A1 (en) | Network connection method and device | |
CN102083173B (en) | Network access control method, equipment and gateway GPRS support node | |
CN102811263A (en) | Communication method and system based on IPv6 for mobile terminal and mobile terminal | |
CN103369592B (en) | Message transmitting method in packet domain and relevant device | |
WO2024037502A1 (en) | Relay service method, relay node, network side, network device, and storage medium | |
WO2015013883A1 (en) | Data transmission method and device | |
US20250080490A1 (en) | Method of NAT64 Translation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13882561 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13882561 Country of ref document: EP Kind code of ref document: A1 |