WO2017101028A1 - 数据传输方法、m2m服务器、pgw、sgw及服务网络节点 - Google Patents

数据传输方法、m2m服务器、pgw、sgw及服务网络节点 Download PDF

Info

Publication number
WO2017101028A1
WO2017101028A1 PCT/CN2015/097475 CN2015097475W WO2017101028A1 WO 2017101028 A1 WO2017101028 A1 WO 2017101028A1 CN 2015097475 W CN2015097475 W CN 2015097475W WO 2017101028 A1 WO2017101028 A1 WO 2017101028A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
data
psm
network node
sgw
Prior art date
Application number
PCT/CN2015/097475
Other languages
English (en)
French (fr)
Inventor
刘清顺
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2015/097475 priority Critical patent/WO2017101028A1/zh
Publication of WO2017101028A1 publication Critical patent/WO2017101028A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • Embodiments of the present invention relate to the field of Internet of Things, and in particular, to a data transmission method, an M2M server, a PGW, an SGW, and a service network node.
  • the M2M server cannot directly communicate with the serving network node, where the serving network node may be a mobility management entity (English: Mobility Management Entity; MME) or a service general packet radio service support node (English: Serving) General Packet Radio Service Support Node (referred to as SGSN), so the operator must deploy a network element with a Service Capability Exposure Function (SCEF) and a home subscriber server (English: Home Subscriber Server; :HSS).
  • MME Mobility Management Entity
  • SGSN Service General Packet Radio Service Support Node
  • SCEF Service Capability Exposure Function
  • HSS Home Subscriber Server
  • the M2M server may send a monitoring request to the SCEF network element, so that the SCEF network element performs a right check on the M2M server to determine whether the M2M server has the monitoring authority, and when the M2M permission check passes, the SCEF network element will The monitoring request is sent to the serving network node by the HSS, so that the serving network node returns the monitoring response information through the SCEF network element and the HSS; when the M2M server receives the monitoring response information, it needs to send the data to the packet data gateway (English: Packet Data) Network Gateway; abbreviated as: PGW) sends MT data; when the PGW receives the MT data, the MT data is sent to the serving gateway (English: Serving Gateway; SGW for short); when the SGW receives the MT data, the service is sent to the service.
  • the packet data gateway English: Packet Data
  • PGW Packet Data Network Gateway
  • the network node sends a downlink data notification.
  • the serving network node receives the downlink data notification, if it is determined that the terminal is in the PSM, it is determined that the terminal cannot receive the MT data.
  • the serving network node may send a downlink data response message to the SGW. And causing the SGW to discard the MT data after receiving the downlink data response message.
  • the serving network node can monitor the terminal, and when monitoring the terminal to exit the PSM, send a monitoring prompt message to the M2M server through the SCEF network element to prompt the M2M server that the terminal has exited the PSM; when the M2M server receives the monitoring prompt When the information is received, the MT data is resent to the terminal.
  • the inventor has found that at least the following problems exist in the prior art: when the M2M server sends a monitoring request to the serving network node through the SCEF network element and the HSS, the SCEF network element needs to perform permission checking on the M2M server, and When receiving the monitoring request, the serving network node needs to send the monitoring response information to the M2M server through the SCEF network element and the HSS. When the terminal exits the PSM, the serving network node also needs to send the monitoring prompt information to the M2M server through the SCEF network element.
  • the interaction process is cumbersome. ,waste time.
  • the present invention provides a data transmission method, an M2M server, a PGW, a SGW, and a service network node. .
  • the technical solution is as follows:
  • a data transmission method comprising:
  • the M2M server sends MT data to the PGW, where the MT data includes address information of the terminal;
  • the M2M server receives a downlink data failure message carrying the exit time indication information, where the downlink data failure message is used to indicate that the MT data transmission fails, and the exit time indication information is used to indicate that the terminal exits the PSM. time;
  • the M2M server sends the MT data to the terminal.
  • the M2M server may directly send the MT data to the PGW. If the PGW receives the MT data, the MT data is sent to the SGW. If the SGW receives the MT data, the SGW may be based on the MT data.
  • the serving network node determines whether the terminal is in the PSM, and if the serving network node determines that the terminal is in the PSM, the terminal may obtain the terminal to exit the PSM. And the exit time indication information is obtained, and the exit time indication information is sent to the M2M server through the SGW and the PGW. Afterwards, the M2M server may determine whether the terminal exits the PSM based on the exit time indication information.
  • the M2M server re-transmits the MT data to the terminal, so that the monitoring request is not sent to the serving network node by using the SCEF network element and the HSS.
  • the service network node monitors the status of the terminal, and the service network node does not need to monitor the terminal to exit the PSM, and sends the monitoring prompt information to the M2M server through the SCEF network element, thereby saving the M2M server through the SCEF network element and the HSS and the service network node.
  • the process of interaction simplifies the process of the M2M server sending MT data to the terminal.
  • the determining, by the exit time indication information, that the terminal exits the PSM includes:
  • the M2M server may arrive at the time when the terminal exits the PSM, and when the terminal does not receive the MO data of the terminal within the time period of the PSM, determine that the terminal exits.
  • the PSM sends the MT data to the terminal.
  • the determining, by the exit time indication information, that the terminal exits the PSM includes:
  • the M2M server receives the MO data of the terminal, it is determined that the terminal exits the PSM.
  • the M2M server may also arrive at the time when the terminal exits the PSM, and when the M2M server receives the MO data of the terminal, it is determined that the terminal exits the PSM, and the MT data is sent to the terminal, and the M2M is sent to send the MT data. Flexibility to the terminal and efficiency of sending the MT data.
  • Another data transmission method comprising:
  • the PGW receives the MT data sent by the M2M server, where the MT data includes address information of the terminal;
  • the PGW Determining, by the PGW, the first data packet according to the tunnel identifier and the MT data, where the first data packet includes the tunnel identifier and the MT data;
  • the PGW sends the first data packet to the SGW.
  • Another data transmission method comprising:
  • the SGW receives the first data packet sent by the PGW, where the first data packet includes mobile station termination MT data and a tunnel identifier, the MT data is data sent by the machine-to-machine M2M server to the PGW, and the MT data includes a terminal. Address information, the tunnel identifier is used to indicate a tunnel established between the PGW and the SGW for the terminal;
  • connection identifier Determining, by the SGW, a connection identifier according to the tunnel identifier, where the connection identifier is used to indicate a signaling connection established between the SGW and a serving network node for the terminal;
  • the SGW Receiving, by the SGW, a downlink data response message sent by the serving network node, where the downlink data response message carries an exit time indication information, where the exit time indication information is used to indicate a time when the terminal exits the PSM;
  • the SGW sends a downlink data failure packet to the M2M server, where the downlink data failure packet carries the exit time indication information.
  • the SGW may send the downlink data notification to the serving network node when receiving the MT data, or may obtain the exit time indication information of the terminal exiting the PSM from the downlink data response message when receiving the downlink data response message,
  • the M2M server sends a downlink data failure message, where the downlink data failure message carries the exit time indication information, so that the M2M server does not need to interact with the service network node to obtain the exit time indication information, if the exit time indication is based
  • the information determines that the terminal exits the PSM, and then retransmits the MT data, which simplifies the process of the M2M server transmitting the MT data to the terminal.
  • the SGW may also carry the other information in the downlink data failure packet, and send the downlink data failure packet to the M2M. server.
  • the SGW that the M2M server sends a downlink data failure packet includes:
  • the SGW can acquire the type of the MT data and send the packet class to the M2M server.
  • the type-matched downlink data failure packet ensures that the M2M server can identify the downlink data failure packet, which improves the reliability of data transmission between the SGW and the M2M server.
  • the serving network node includes an MME or an SGSN.
  • a data transmission method comprising:
  • a downlink data notification sent by the SGW where the downlink data notification carries a connection identifier, where the connection identifier is used to indicate a signaling connection established between the SGW and the serving network node for the terminal;
  • the serving network node determines that the terminal is in the PSM based on the connection identifier, the serving network node sends a downlink data response message to the SGW, where the downlink data response message carries an exit time indication information, and the exit The time indication information is used to indicate when the terminal exits the PSM.
  • the serving network node may determine whether the terminal is in the PSM when receiving the downlink data notification. When determining that the terminal is in the PSM, the serving network node may obtain the time when the terminal exits the PSM, and obtain the indication information of the exit time, and Sending a downlink data response message to the SGW, where the downlink data response message carries the exit time indication information, so that the SGW sends a downlink data failure message to the M2M server, so that the M2M server determines that the terminal exits the PSM, and sends the terminal to the terminal.
  • the MT data improves the reliability of the MT data by the M2M server.
  • the service network node may further carry other information in the downlink data response message according to the actual application requirement, and send the downlink data response message to the SGW, so that the SGW can send the other information to the M2M server. .
  • the serving network node determining, according to the connection identifier, that the terminal is in a power saving mode PSM includes:
  • the terminal is currently in a sleep state, it is determined that the terminal is in the PSM.
  • the service network node may determine the current state of the terminal, and store the state information of the state in the context of the terminal. If the terminal obtains the connection identifier, the terminal may be based on the connection identifier. Obtaining the context of the terminal, obtaining the status information according to the context, directly determining the current state of the terminal, simplifying the process of obtaining the status information by the serving network node according to the connection identifier, and improving the working of the service network node. effectiveness.
  • the terminal exits the PSM for the next TAU or RAU update time.
  • the terminal exits the time of the PSM The time when the terminal exits the PSM, or the duration of the terminal from the current time to the exit of the PSM.
  • the service network node may obtain the indication time of the exit time of the terminal by obtaining the update time of the TAU or the RAU in the current period, and obtain the indication information of the exit time, and the SGW sends the exit time indication information to the M2M server, so that the SGW sends the exit time indication information to the M2M server.
  • the M2M server can send MT data to the terminal based on the exit time, which improves the working efficiency of sending the MT data by the M2M server, and saves time.
  • the serving network node includes an MME or an SGSN .
  • an M2M server including:
  • a first sending module configured to send MT data to the PGW, where the MT data includes address information of the terminal;
  • a receiving module configured to receive a downlink data failure message carrying the exit time indication information, where the downlink data failure message is used to indicate that the MT data transmission fails, and the exit time indication information is used to indicate that the terminal exits the PSM time;
  • the second sending module is configured to: if the terminal exits the PSM based on the exit time indication information carried in the downlink data packet received by the receiving module, send the MT data to the terminal.
  • the second sending module includes:
  • a first determining unit configured to arrive at the time when the terminal exits the PSM, and at the end If the terminal does not receive the MO data of the terminal within the time period of the PSM, it is determined that the terminal exits the PSM.
  • the second sending module includes:
  • a second determining unit configured to: if the time when the terminal exits the PSM does not arrive, and the M2M server receives the MO data of the terminal, determine that the terminal exits the PSM.
  • a PGW including:
  • a receiving module configured to receive MT data sent by the M2M server, where the MT data includes address information of the terminal;
  • a first obtaining module configured to obtain, according to the address information of the terminal received by the receiving module, a tunnel identifier of a tunnel established between the PGW and the SGW for the terminal;
  • a second obtaining module configured to obtain, according to the tunnel identifier and the MT data obtained by the first obtaining module, a first data packet, where the first data packet includes the tunnel identifier and the MT data;
  • a sending module configured to send the first data packet obtained by the second obtaining module to the SGW.
  • an SGW including:
  • a first receiving module configured to receive a first data packet sent by the packet data gateway PGW, where the first data packet includes mobile station termination MT data and a tunnel identifier, where the MT data is sent by the machine-to-machine M2M server to the PGW Data, the MT data includes address information of the terminal, and the tunnel identifier is used to indicate a tunnel established between the PGW and the SGW for the terminal;
  • Obtaining a module configured to obtain, according to the tunnel identifier received by the first receiving module, a connection identifier, where the connection identifier is used to indicate a signaling connection established between the SGW and a serving network node for the terminal;
  • a first sending module configured to send a downlink data notification to the serving network node, where the downlink data notification carries the connection identifier obtained by the obtaining module;
  • a second receiving module configured to receive a downlink data response message sent by the serving network node, where the downlink data response message carries an exit time indication information, where the exit time indication information is used to indicate a time when the terminal exits the PSM;
  • the second sending module is configured to send a downlink data failure message to the M2M server, where the downlink data failure message carries the exit time indication information received by the second receiving module.
  • the second sending module includes:
  • An acquiring unit configured to acquire a packet type of the MT data
  • a sending unit configured to send, to the M2M server, a downlink data failure packet that matches the packet type obtained by the acquiring unit.
  • the serving network node includes an MME or an SGSN.
  • a service network node including:
  • a receiving module configured to receive a downlink data notification sent by the SGW, where the downlink data notification carries a connection identifier, where the connection identifier is used to indicate a signaling connection established between the SGW and the serving network node for the terminal ;
  • a sending module configured to send a downlink data response message to the SGW, where the terminal is in a power saving mode PSM, based on the connection identifier received by the receiving module, where the downlink data response message is sent
  • the exit time indication information is used, and the exit time indication information is used to indicate the time when the terminal exits the PSM.
  • the sending module includes:
  • a first acquiring unit configured to acquire a context of the terminal according to the connection identifier received by the receiving module
  • a second acquiring unit configured to acquire status information of the terminal from a context of the terminal acquired by the first acquiring unit, where the status information is used to indicate a current state of the terminal;
  • a determining unit configured to determine that the terminal is in the PSM if the status information acquired by the second acquiring unit indicates that the terminal is currently in a sleep state.
  • the time that the terminal exits the PSM is that the terminal performs the next TAU or RAU update time.
  • the terminal exits the PSM
  • the time is the time when the terminal exits the PSM, or the duration of the terminal from the current time to the exit of the PSM.
  • the service network node includes an MME or an SGSN.
  • another M2M server including:
  • a processor configured to send MT data to the PGW, where the MT data includes address information of the terminal;
  • a communication interface configured to receive a downlink data failure message carrying the exit time indication information, where the downlink data failure message is used to indicate that the MT data transmission fails, and the exit time indication information is used to indicate that the terminal exits the PSM time;
  • the processor is further configured to: if the terminal exits the PSM based on the exit time indication information received by the communication interface, send the MT data to the terminal.
  • the processor is further configured to: if the time when the terminal exits the PSM arrives, and the MO data of the terminal is not received within a time period in which the terminal is in the PSM, determine that the terminal exits The PSM.
  • the processor is further configured to: if the time when the terminal exits the PSM does not arrive, and the M2M server receives the MO data of the terminal, determine that the terminal exits the PSM.
  • another PGW including:
  • a communication interface configured to receive MT data sent by the M2M server, where the MT data includes address information of the terminal;
  • a processor configured to obtain, according to the address information of the terminal received by the communication interface, a tunnel identifier of a tunnel established between the PGW and the SGW for the terminal;
  • the processor is further configured to obtain, according to the tunnel identifier and the MT data, a first data packet, where the first data packet includes the tunnel identifier and the MT data, and the first data packet Sent to the SGW.
  • another SGW including: a processor, a first communication interface, and a second Communication Interface;
  • the first communication interface is configured to receive a first data packet sent by the PGW, where the first data packet includes a mobile station termination MT data and a tunnel identifier, where the MT data is data sent by the M2M server to the PGW.
  • the MT data includes address information of the terminal, where the tunnel identifier is used to indicate a tunnel established between the PGW and the SGW for the terminal;
  • a processor configured to obtain, according to the tunnel identifier received by the first communications interface, a connection identifier, where the connection identifier is used to indicate a signaling connection established between the SGW and a serving network node for the terminal;
  • the processor is further configured to send, by using the second communications interface, a downlink data notification to the serving network node, where the downlink data notification carries the connection identifier;
  • the second communication interface is further configured to receive a downlink data response message sent by the serving network node, where the downlink data response message carries an exit time indication information, where the exit time indication information is used to indicate that the terminal exits the PSM. time;
  • the processor is further configured to send a downlink data failure packet to the M2M server by using the first communication interface, where the downlink data failure packet carries the exit time indication information.
  • the processor is further configured to obtain a packet type of the MT data, and send a downlink data failure packet that matches the packet type to the M2M server.
  • the service network node includes an MME or an SGSN.
  • another service network node including:
  • the communication interface is further configured to receive a downlink data notification sent by the SGW, where the downlink data notification carries a connection identifier, where the connection identifier is used to indicate that the terminal is established between the SGW and the serving network node.
  • the processor is further configured to: if the terminal is determined to be in the PSM based on the connection identifier received by the communication interface, send a downlink data response message to the SGW, where the downlink data response message carries an exit time indication information, where The exit time indication information is used to indicate the time when the terminal exits the PSM.
  • the processor is further configured to:
  • the terminal is currently in a sleep state, it is determined that the terminal is in the PSM.
  • the terminal exits the PSM for the terminal Update time of one TAU or RAU.
  • the terminal exits the The time of the PSM is the time when the terminal exits the PSM, or the duration of the terminal from the current time to the exit of the PSM.
  • the service network node includes MME or SGSN.
  • the M2M server may directly send the MT data to the PGW, and the PGW receives the MT data, and the MT data is received.
  • the SGW sends to the SGW, the SGW receives the MT data, and determines whether the terminal is in the PSM based on the serving network node. If the serving network node determines that the terminal is in the PSM, it may obtain the time when the terminal exits the PSM and obtain the exit time indication information.
  • the exit time indication information is sent to the M2M server through the SGW and the PGW.
  • the M2M server determines whether the terminal exits the PSM based on the exit time indication information, if it is determined that the terminal exits the PSM, the MT data is re-transmitted to the terminal, so that the monitoring request is not sent to the serving network node by using the SCEF network element and the HSS.
  • the service network node monitors the status of the terminal, and the service network node does not need to monitor the terminal to exit the PSM, and sends the monitoring prompt information to the M2M server through the SCEF network element, thereby saving the M2M server from interacting with the service network node through the SCEF network element and the HSS.
  • the process simplifies the process of the M2M server sending MT data to the terminal.
  • FIG. 1 is a structural diagram of a data transmission system according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a data transmission method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of another data transmission method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an M2M server according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a PGW according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an SGW according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a service network node according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another M2M server according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another PGW according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another SGW according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of another service network node according to an embodiment of the present invention.
  • the system includes an M2M server, a service network node, an SGW, a PGW, and a terminal.
  • the M2M server may be a server, or a server cluster composed of several servers, or a cloud computing service center.
  • the serving network node includes an MME or an SGSN, and selects the SGW and the terminal when the terminal accesses the network.
  • the PGW, the SGW, and the PGW are gateways for the terminal to access the network, and implement interconnection of different protocol networks.
  • the M2M server and the PGW can be connected through a network, the PGW can be connected to the SGW through the network, the SGW and the service network node can be connected through the network, the service network node and the terminal can also be connected through the network, and if the terminal is not in the PSM, the terminal is also A network connection can be established with the SGW through the serving network node.
  • the M2M server is configured to send MT data to the terminal through the SGW and the PGW, receive the MO data sent by the terminal through the SGW and the PGW, and obtain the time when the terminal exits the PSM from the serving network node, if the terminal exits the PSM.
  • the PGW is configured to receive the MT data sent by the M2M server, and send the MT data to the SGW, where the SGW is configured to receive the MT data sent by the PGW, and send a downlink data notification to the serving network node to determine whether the terminal is in the PSM, if the terminal is not in the PSM, the paging terminal establishes a connection between the terminal and the SGW to forward the MT data to the terminal, and if the terminal is in the PSM, the time indication that the terminal exits the PSM to the M2M
  • the serving network node is configured to receive the downlink data notification sent by the SGW, and determine whether the terminal is in the PSM, and if the terminal is in the PSM, obtain the time when the terminal exits the PSM, and send the time when the terminal exits the PSM to the SGW.
  • the SGW In order to enable the SGW to indicate the time when the terminal exits the PSM through the PGW to the M2M server, and if the serving network node determines that the terminal is not in the PSM, directly send a paging message to the terminal, so that the terminal establishes the connection between the terminal and the SGW. Thereby receiving the MT data forwarded by the SGW.
  • FIG. 2 is a flowchart of a data transmission method according to an embodiment of the present invention. Referring to FIG. 2, the method includes:
  • Step 201 The M2M server sends MT data to the PGW, where the MT data includes address information of the terminal.
  • the MT data is data sent by the M2M server to the terminal through the SGW and the PGW, and the MT data includes address information of the terminal, and the MT data may be control information, for example, if the M2M server is applied to the smart The environment monitoring, the MT data may be control information for controlling the terminal to adjust the environment parameter.
  • the MT data may also be other data that the M2M server needs to send to the terminal, and the application scenario of the M2M server in the embodiment of the present invention
  • the actual content of the MT data is not specifically limited.
  • the address information of the terminal may be an Internet Protocol Address (IP) address of the terminal, or may be a physical address of the terminal, which is not specifically limited in this embodiment of the present invention.
  • IP Internet Protocol Address
  • Step 202 The PGW receives the MT data sent by the M2M server.
  • Step 203 The PGW obtains a tunnel identifier of a tunnel established between the PGW and the SGW for the terminal according to the address information of the terminal.
  • the PGW may obtain, according to the address information of the terminal, a tunnel identifier corresponding to the address information of the terminal from the correspondence between the preset address information and the tunnel identifier, and determine the acquired tunnel identifier as being in the The tunnel identifier of the tunnel established between the SGW and the PGW for the terminal.
  • Step 204 The PGW obtains a first data packet according to the tunnel identifier and the MT data, where the first packet The packet contains the tunnel identifier and the MT data.
  • the M2M server generally sends the MT data in the form of a packet. Therefore, the PGW can add the tunnel identifier to the MT data packet to obtain the first data packet.
  • the PGW The first data packet can be obtained in other manners, which is not specifically limited in the embodiment of the present invention.
  • Step 205 The PGW sends the first data packet to the SGW.
  • Step 206 The SGW receives the first data packet sent by the PGW.
  • Step 207 The SGW obtains the connection identifier according to the tunnel identifier.
  • connection identifier is used to indicate a signaling connection established between the SGW and the serving network node for the terminal.
  • the SGW can obtain a connection identifier between the SGW and the serving network node according to the tunnel identifier.
  • Step 208 The SGW sends a downlink data notification to the serving network node, where the downlink data notification carries the connection identifier.
  • the SGW sends the MT data to the terminal, and the connection between the SGW and the terminal is established by the serving network node. Therefore, the SGW receives the MT data, and may send a downlink data notification to the serving network node, where the downlink data notification carries the connection identifier. Therefore, the serving network node can determine whether the terminal is in the PSM based on the connection identifier in the downlink data notification.
  • Step 209 The serving network node receives a downlink data notification sent by the SGW, where the downlink data notification carries a connection identifier.
  • Step 210 If the serving network node determines that the terminal is in the power saving mode PSM based on the connection identifier, the serving network node sends a downlink data response message to the SGW, where the downlink data response message carries the exit time indication information, and the exit time The indication information is used to indicate when the terminal exits the PSM.
  • the service network node obtains the connection identifier from the downlink data notification, obtains the context of the terminal according to the connection identifier, and obtains status information of the terminal from the context of the terminal, where the status information is used to indicate the The current state of the terminal, if the status information indicates that the terminal is currently in the sleep state, determining that the terminal is in the PSM, and if the status information indicates that the terminal is not currently in the sleep state, determining that the terminal is not in the PSM.
  • connection identifier which may be specifically from the storage Obtained in the list below, can also be obtained from external devices, no restrictions here.
  • the serving network node may send a downlink data response message to the SGW.
  • the M2M server may know the time when the terminal exits the PSM, if the terminal exits the PSM, the MT data is sent to the terminal, and the serving network node can also obtain the time when the terminal exits the PSM, and based on the time when the terminal exits the PSM.
  • the exit time indication information is generated, and the exit time indication information is carried in the downlink data response message.
  • Step 211 The SGW receives a downlink data response message sent by the serving network node.
  • Step 212 The SGW sends a downlink data failure packet to the M2M server, where the downlink data failure packet carries the exit time indication information.
  • the SGW can send a downlink data failure packet to the M2M server, where the downlink data packet is used to indicate that the MT data transmission fails, and in order to enable the M2M server to exit the PSM at the terminal.
  • the SGW may carry the exit time indication information in the downlink data failure packet.
  • Step 213 The M2M server receives the downlink data failure packet carrying the exit time indication information, where the downlink data failure packet is used to indicate that the MT data transmission fails.
  • the M2M server If the M2M server receives the downlink data failure packet, it determines that the MT data transmission fails. Therefore, the M2M server needs to determine when the terminal exits the PSM, and if the terminal exits the PSM, sends the MT to the terminal through the SGW and the PGW. Data so that the terminal can receive MT data in time.
  • Step 214 If it is determined that the terminal exits the PSM based on the exit time indication information, the M2M server sends the MT data to the terminal.
  • the M2M server determines that the terminal exits the PSM, it determines that the terminal can receive the MT data at this time, and therefore, the M2M server sends the MT data to the terminal.
  • the M2M server may directly send the MT data to the PGW, the PGW receives the MT data, and sends the MT data to the SGW, where the SGW receives the MT data, based on
  • the service network node determines whether the terminal is in the PSM, and if the serving network node determines that the terminal is in the PSM, it can obtain the time when the terminal exits the PSM, and sends the exit time indication information to the M2M server through the SGW. Afterwards, the M2M server may determine whether the terminal exits the PSM based on the exit time indication information.
  • the MGW retransmits the MT data to the terminal through the SGW and the PGW.
  • the serving network node monitors the state of the terminal, and the serving network node does not need to monitor the terminal to exit the PSM, and sends the monitoring prompt message to the M2M server through the SCEF network element.
  • the process of interacting with the serving network node by the SCEF network element and the HSS by the M2M server is saved, and the process of sending the MT data to the terminal by the M2M server is simplified.
  • FIG. 3 is a flowchart of a data transmission method according to an embodiment of the present invention. Referring to FIG. 3, the method includes:
  • Step 301 The M2M server sends MT data to the PGW, where the MT data includes address information of the terminal.
  • the terminal can collect data according to different application scenarios, generate MO data based on the collected data, and send the MO data to the M2M server, if the M2M server receives To the MO data sent by the terminal, the MT data may be sent to the terminal according to the requirement, and the MT data includes the address information of the terminal. If the terminal sends the MO data to the M2M server, the MO data is first sent to the SGW, and then the MO data is sent by the SGW to the PGW, and the PGW forwards the MO data to the M2M server.
  • the MT data is first sent to the PGW, and then the MT data is sent by the PGW to the SGW, and the SGW forwards the MT data to the terminal. That is, the SGW and the PGW are relay devices that perform data interaction between the terminal and the M2M server.
  • the MO data is data that the terminal sends to the M2M server through the SGW and the PGW
  • the MO data may be data collected by the terminal according to different application scenarios, for example, if the terminal is applied to smart meter reading, The MO data may be meter reading data; if the terminal is applied to smart parking, the MO data may be parking space occupancy information or parking space idle information; if the terminal is applied to intelligent environment monitoring, the MO data may be an environmental index, etc.
  • the MO data may be other data that the terminal needs to send to the M2M server.
  • the application scenario of the terminal and the actual content of the MO data are not specifically limited.
  • the MT data is data that the M2M server sends to the terminal through the SGW and the PGW, and the MT data includes address information of the terminal, and the MT data may be control information, for example, if the M2M server is applied to the intelligent environment monitoring.
  • the MT data may be control information for controlling the terminal to adjust the environment parameter.
  • the MT data may also be other data that the M2M server needs to send to the terminal, and the application scenario of the M2M server and the MT data in the embodiment of the present invention. Real The content is not specifically limited.
  • the address information of the terminal may be the IP address of the terminal, or may be the physical address of the terminal, which is not specifically limited in this embodiment of the present invention.
  • Step 302 The PGW receives the MT data, and sends the first data packet to the SGW, where the data packet includes a tunnel identifier and the MT data.
  • the tunnel identifier is an identifier of a tunnel established between the SGW and the PGW for the terminal, and the tunnel identifier is obtained based on the address information of the terminal.
  • the PGW receives the MT data sent by the M2M server, and the PGW obtains a tunnel identifier of a tunnel established between the SGW and the PGW for the terminal according to the address information of the terminal, and the PGW is based on the tunnel identifier and the MT data.
  • the PGW obtains a tunnel identifier of a tunnel established between the SGW and the PGW for the terminal according to the address information of the terminal, and the PGW can obtain a correspondence between the stored address information and the tunnel identifier according to the address information of the terminal.
  • the tunnel identifier corresponding to the address information of the terminal is obtained, and the obtained tunnel identifier is determined as a tunnel identifier of a tunnel established between the SGW and the PGW for the terminal.
  • the correspondence between the address information stored in the PGW and the tunnel identifier may be established when the terminal first accesses the network, that is, if the terminal accesses the network for the first time, it may be based on the address information of the terminal.
  • a tunnel established between the SGW and the PGW for the terminal, and the address information of the terminal and the tunnel identifier of the established tunnel are stored in a correspondence between the address information and the tunnel identifier.
  • the method for establishing the tunnel between the SGW and the PGW for the terminal may refer to related technologies, and the embodiment of the present invention does not Explain in detail.
  • the M2M server sends the MT data in the form of a message. Therefore, the PGW can add the tunnel identifier to the MT data packet to obtain the first data packet. In the application, the PGW can obtain the first data packet by using other methods, which is not specifically limited in this embodiment of the present invention.
  • the correspondence between the tunnel identifier and the address information stored in the PGW is as shown in Table 1.
  • the PGW receives the MT data, and obtains the address information of the terminal as the address information 1 according to the MT data, based on the address information. 1, from the correspondence between the tunnel identification and the address information shown in Table 1.
  • the tunnel ID is obtained as the tunnel identifier 1.
  • Tunnel identification Address information 1 Tunnel identification 1 Address information 2 Tunnel identification 2 Address information 3 Tunnel identification 3 Address information 4 Tunnel identification 4 ;
  • Step 303 The SGW receives the first data packet, obtains a connection identifier between the SGW and the serving network node according to the tunnel identifier, and sends a downlink data notification to the serving network node, where the downlink data notification carries the connection identifier.
  • the connection identifier is used to indicate a signaling connection established between the SGW and the serving network node for the terminal.
  • the SGW Since the SGW sends the MT data to the terminal, the connection between the SGW and the terminal needs to be established through the serving network node. Therefore, if the SGW receives the MT data, the downlink data notification can be sent to the serving network node.
  • the SGW can obtain the connection identifier between the SGW and the serving network node according to the tunnel identifier, because the terminal that performs data interaction through the serving network node is more, so that the serving network node can find the terminal, the SGW can obtain the connection identifier between the SGW and the serving network node according to the tunnel identifier. Then, the SGW may send a downlink data notification to the serving network node, where the downlink data notification carries the connection identifier, so the serving network node may determine whether the terminal is in the PSM based on the connection identifier in the downlink data notification.
  • the SGW may store the tunnel identifier and the connection identifier in a correspondence between the tunnel identifier and the connection identifier, and further if The SGW obtains the tunnel identifier from the first data packet, and obtains the connection identifier from the correspondence between the tunnel identifier and the connection identifier according to the tunnel identifier.
  • the SGW may also adopt other manners.
  • the connection identifier is obtained according to the tunnel identifier, which is not specifically limited in this embodiment of the present invention.
  • the correspondence between the tunnel identifier and the connection identifier stored in the SGW is as shown in Table 2.
  • the SGW obtains the tunnel identifier as the tunnel identifier 1 from the first data packet, according to the tunnel identifier 1, the tunnel identifier and The connection identifier obtained in the correspondence between the connection identifiers is the connection identifier 1.
  • Tunnel identification Connection identifier Tunnel identification 1 Connection identifier 1 Tunnel identification 2 Connection identifier 2 Tunnel identification 3 Connection identifier 3 Tunnel identification 4 Connection identifier 4 ?? ...
  • Step 304 The serving network node receives the downlink data notification, and determines whether the terminal is in the PSM.
  • the terminal will enter the PSM when it is idle, and will only exit the PSM if it needs to send MO data or perform periodic TAU or RAU.
  • the terminal cannot receive MT data when the terminal enters the PSM, and only the terminal can exit the PSM to receive the MT data. Therefore, when the serving network node receives the downlink data notification, it may first determine whether the terminal is in the PSM.
  • the service network node determining whether the terminal is in the PSM may be: the serving network node obtains the connection identifier from the downlink data notification, and obtains the context of the terminal from the stored context list according to the connection identifier. Obtaining, from the context of the terminal, status information of the terminal, where the status information is used to indicate a current state of the terminal, and if the status information indicates that the terminal is currently in a sleep state, determining that the terminal is in the PSM, if The status information indicates that the terminal is not currently in the sleep state, and then determines that the terminal is not in the PSM.
  • the service network node may obtain the real-time status.
  • the status information of the terminal is stored in the context of the terminal, and the context is stored in the context list, and the correspondence between the identifier of the terminal and the context may be stored in the context list, so if the service is After receiving the downlink data notification, the network node may obtain the connection identifier from the downlink data notification, and obtain the identifier of the terminal based on the connection identifier, and further, based on the identifier of the terminal, from the identifier of the stored terminal and the context.
  • the context of the terminal is obtained in the relationship, and the status information is obtained from the context.
  • the service network node may further store a correspondence between the connection identifier and the context. If the service network node obtains the connection identifier from the downlink data notification, the context of the terminal is directly obtained based on the connection identifier, and the connection is reduced according to the connection. The process of identifying the identity of the terminal improves the working efficiency of the service network node.
  • the identifier of the terminal is used to uniquely identify the terminal.
  • the identifier of the terminal may be the international mobile device identity (English: International Mobile Equipment Identity; IMEI), serial number, etc. This embodiment of the present invention does not specifically limit this.
  • the Context of the terminal is obtained according to the connection identifier, and may be obtained from a stored context list, and may also be obtained from an external device, which is not limited herein.
  • the operation of the service network node to obtain the identifier of the terminal based on the connection identifier may be: the service network node may obtain the identifier of the terminal from the correspondence between the stored connection identifier and the identifier of the terminal based on the connection identifier, of course
  • the method for the service network node to obtain the identifier of the terminal based on the connection identifier may also refer to the related technology, which is not repeatedly described in the embodiment of the present invention.
  • the service network node and the SGW establish a signaling connection for the terminal, and the connection identifier and the identifier of the terminal are stored in a correspondence between the connection identifier and the identifier of the terminal, and specific operations may be referred to.
  • the related art does not elaborate on this in the embodiment of the present invention.
  • the state of the terminal may include an idle state, a connected state, and a sleep state
  • the state information may be represented by a character or a string in order to indicate the current state of the terminal, for example, may be used.
  • the character a indicates that the terminal is in the connected state
  • the character b indicates the idle state
  • the character c indicates the sleep state.
  • the state information may be represented by other forms. The representation of the state information in the embodiment of the present invention is not specifically limited.
  • context information is included in the context.
  • the context may further include other information about the terminal, such as the capability configuration information of the terminal, and the like. limited.
  • the serving network node obtains the connection identifier 1 based on the downlink data notification, and determines that the identifier of the terminal is ID1 according to the connection identifier 1, from the correspondence relationship shown in Table 3 below.
  • the context of the terminal is obtained as the context 1, and the status information of the terminal is obtained according to the context 1.
  • the status information obtained by the serving network node is c, it is determined that the terminal is in a sleep state, and the terminal may be determined to be in the PSM.
  • Step 305 If the terminal is in the PSM, the serving network node sends a downlink data response message to the SGW, where the downlink data response message carries the exit time indication information of the terminal exiting the PSM.
  • the serving network node may send a downlink data response message to the SGW.
  • the M2M server may know the time when the terminal exits the PSM, if the terminal exits the PSM, the MT data is sent to the terminal, and the serving network node can also obtain the time when the terminal exits the PSM, and based on the time when the terminal exits the PSM.
  • the exit time indication information is generated, and the exit time indication information is carried in the downlink data response message.
  • the exit time indication information is used to indicate the time when the terminal exits the PSM, and the time when the terminal exits the PSM is the update time of the next TAU or RAU of the terminal, and the time when the terminal exits the PSM may be that the terminal exits the
  • the time of the PSM may also be the duration of the terminal from the current time to the exit of the PSM, which is not specifically limited in this embodiment of the present invention.
  • the serving network node may count the time when the terminal is completed in the last period of the current period, TAU or RAU, and based on the terminal. And identifying, in the correspondence between the identifier of the stored terminal, the specified idle duration, and the specified update duration, the corresponding specified update duration, and adding the update completion time to the obtained specified update duration, to obtain the current.
  • the update time of the TAU or the RAU is periodically determined, and the update time is determined as the time when the terminal exits the PSM; or the serving network node may start timing when the previous period of the current period TAU or RAU update is completed, and the terminal is counted.
  • the serving network node receives the downlink data notification and determines that the terminal is in the PSM, acquiring the current system moment of the serving network node, Then, the remaining time length is added to the system time to obtain an update time of the TAU or RAU in the current period, and the update time is determined as the time when the terminal exits the PSM.
  • the service network node since the manner in which the M2M server, the service network node, the SGW, the PGW, and the terminal recognize the time is different from the manner in which the user recognizes the time, if the service network node acquires the time when the terminal exits the PSM, it is required. The time is converted into a time that the device can recognize, and the converted time is determined as the exit time indication information of the terminal exiting the PSM.
  • the serving network node may further determine a corresponding timestamp based on the time when the terminal exits the PSM, and determine the determined timestamp as the exit time indication information of the terminal exiting the PSM.
  • the service network node may also generate the exit time indication information by using other forms, which is not specifically limited in this embodiment of the present invention.
  • the method for converting the time into the time indication information may be referred to the related art, which is not repeatedly described in the embodiment of the present invention.
  • the time when the serving network node acquires the last period of the current period TAU or the RAU update is completed is November 11, 2015, 3:00:00, and is based on the terminal.
  • the identifier is obtained from the correspondence between the identifier of the stored terminal, the specified idle duration, and the specified update duration, and the corresponding specified update duration is 24 hours, and the service network node adds the acquired time and the specified update duration to obtain the terminal.
  • the update time of the TAU or RAU in the current period is 3:0:00 on November 12, 2015, and the service network node determines the time of the terminal to exit the PSM at 3:0:00 on November 12, 2015. And generating an exit time indication message according to the time when the terminal exits the PSM, sending a downlink data response message to the SGW, and carrying the exit time indication information in the downlink data response message.
  • the downlink data response message sent by the serving network node to the SGW may further carry the connection identifier, which is not specifically limited in this embodiment of the present invention.
  • the serving network node may store a correspondence between the connection identifier and the identifier of the terminal. Therefore, if the serving network node determines that the terminal is in the PSM and sends a downlink data response message to the SGW, the terminal may be configured according to the terminal. And obtaining the connection identifier from the correspondence between the connection identifier and the identifier of the terminal, and carrying the connection identifier in the downlink data response message.
  • Step 306 The SGW receives the downlink data response message, and sends a downlink data failure message to the M2M server, where the downlink data failure message carries the exit time indication information.
  • the SGW can send a downlink data failure packet to the M2M server, where the downlink data packet is used to indicate that the MT data transmission fails.
  • the SGW may carry the exit time indication information in the downlink data failure message.
  • the MT data may be sent by the M2M server in the form of a message, and the message type of the MT data may be Internet Protocol v4 (English: Internet Protocol version 4; abbreviation: IPv4), or may be Internet Protocol v6. (English: Internet Protocol version 6; abbreviation: IPv6), the two are not compatible.
  • IPv4 Internet Protocol version 4
  • IPv6 Internet Protocol version 6
  • IPv6 Internet Protocol version 6
  • the downlink data failure packet may be sent by the SGW in the form of a packet, and the type of the packet may be the Internet Control Message Protocol version 4 (English: Internet Control Message Protocol version 4; referred to as: ICMPv4) Or Internet Control Message Protocol version 6 (English: Internet Control Message Protocol version 6; referred to as: ICMPv6).
  • ICMPv4 and ICMPv6 are not compatible.
  • the SGW can carry the exit time indication information in the 32-bit reserved space.
  • the SGW may send the downlink data failure packet to the M2M server, and the SGW may obtain the second data packet according to the downlink data failure packet and the tunnel identifier, and send the second data packet to the PGW, when the PGW receives the packet.
  • the downlink data failure packet is obtained from the second data packet, and the downlink data failure packet is sent to the M2M server.
  • the service network node can carry the connection identifier in the downlink data response message, and therefore, if the SGW receives the downlink data response message, And generating a downlink data failure packet, and obtaining the tunnel identifier based on the connection identifier, obtaining a second data packet based on the tunnel identifier and the downlink data failure packet, and sending the second data packet to the PGW, so that the PGW is receiving When the second data packet is received, the downlink data failure packet is obtained, and the downlink data failure packet is sent to the M2M server.
  • the SGW may store the correspondence between the tunnel identifier and the connection identifier. Therefore, if the SGW receives the downlink data response message, the SGW may obtain the connection identifier from the downlink data response message, and The tunnel identifier is obtained from the correspondence between the stored tunnel identifier and the connection identifier based on the connection identifier.
  • the tunnel identifier may be added to the downlink data failure packet, of course, in an actual application, The SGW obtains the second data according to the tunnel identifier and the downlink data failure packet.
  • the process of the packet reference may also be made to the related art, which is not repeatedly described in the embodiment of the present invention.
  • the SGW may discard the MT data.
  • the SGW may not need to discard the MT data, which is not specifically limited in this embodiment of the present invention.
  • Step 307 The M2M server receives the downlink data failure packet, and if it is determined that the terminal exits the PSM based on the exit time indication information, the MT data is sent to the terminal.
  • the M2M server If the M2M server receives the downlink data failure packet, it determines that the MT data transmission fails. Therefore, the M2M server needs to determine when the terminal exits the PSM, and if the terminal exits the PSM, sends the MT to the terminal through the SGW and the PGW. Data so that the terminal can receive MT data in time. Since the terminal may exit the PSM when transmitting the MO data, the PSM may be exited when the periodic TAU or RAU is performed. Therefore, when the M2M server determines that the terminal exits the PSM based on the exit time indication information, the terminal may determine that the terminal exits the PSM.
  • the SGW may discard the MT data sent by the M2M server last time, or may not discard it, and the SGW may pre-arrange with the M2M server regardless of whether the SGW discards the MT data or does not discard the MT data. Therefore, the M2M server can know whether the SGW has discarded the MT data. Therefore, if the M2M server instructs the SGW to send the MT data to the terminal, and the SGW does not discard the MT data sent by the M2M server, the M2M server can directly pass the PGW.
  • the SGW sending an indication message to the SGW, so that the SGW directly forwards the MT data sent by the M2M server to the terminal, and if the SGW has discarded the MT data sent by the M2M server last time, the M2M server can resend the MT to the SGW through the PGW. Data, the MT data is forwarded by the SGW to the terminal.
  • the M2M server can determine whether the terminal exits the PSM based on the exit time indication information and the time of receiving the MO data, and does not need to monitor the terminal, thereby improving the flexibility of the M2M server to send the MT data, thereby improving the working efficiency. .
  • the method for forwarding the MT data retransmitted by the M2M server to the terminal is the same as the method for forwarding the MT data sent by the M2M server to the terminal for the first time, which is not elaborated in this embodiment of the present invention. .
  • the M2M server receives the downlink data failure packet, if the packet carries the retire
  • the time indicated by the time indication information is 3:0:0 on November 12, 2015, and if the M2M server receives the MO data sent by the terminal at 0:30:00 on November 12, 2015, it is determined.
  • the time when the terminal exits the PSM does not arrive and receives the MO data of the terminal, thereby determining that the terminal exits the PSM, and sends the MT data to the terminal through the SGW and the PGW.
  • the M2M server may directly send the MT data to the PGW, and the PGW receives the MT data, and sends the MT data to the SGW, where the SGW receives the MT data, where The service network node determines whether the terminal is in the PSM, and if the serving network node determines that the terminal is in the PSM, it can obtain the time when the terminal exits the PSM, and send the exit time indication information to the M2M server through the SGW.
  • the M2M server determines whether the terminal exits the PSM based on the exit time indication information, if it is determined that the terminal exits the PSM, the MT data is re-transmitted to the terminal through the SGW and the PGW, so that the SCEF network element and the HSS need not be sent to the serving network node.
  • Monitoring the request so that the service network node monitors the state of the terminal, and does not need the service network node to monitor that the terminal exits the PSM and sends the monitoring prompt information to the M2M server through the SCEF network element, thereby saving the M2M server through the SCEF network element and the HSS and the service network node.
  • the process of interaction simplifies the process of the M2M server sending MT data to the terminal.
  • the network connection may be established with the serving network node, and the connection between the terminal and the SGW is established through the service network node based on the network connection, and the The SGW sends the MO data to the M2M server, and if the terminal performs a periodic TAU or RAU, the terminal may also establish a network connection with the serving network node, and perform a periodic TAU or RAU process based on the network connection, that is, If the terminal sends MO data or performs periodic TAU or RAU, the terminal needs to establish a network connection with the serving network node, enter a connection state, and after the terminal sends MO data and performs periodic TAU or RAU, the terminal The network connection to the serving network node can be disconnected and the idle state can be entered.
  • the terminal can count the idle duration of entering the idle state. If the idle duration reaches the specified idle duration, the terminal can enter the sleep state in order to save the power of the terminal. And then into the PSM. At the same time, after the terminal enters the PSM, the time after the last periodic TAU or RAU is completed may be counted, and the update duration is obtained, and it is determined whether the update duration reaches the specified update duration, and if the update duration reaches the specified update duration Then, the terminal can exit the PSM and perform periodic TAU or RAU.
  • the terminal since the terminal needs to establish a network connection with the serving network node when performing periodic TAU or RAU or transmitting MO data, enters a connection state, and disconnects from the serving network node after the periodic TAU or RAU or after transmitting the MO data.
  • the network connection enters an idle state. Therefore, if the serving network node disconnects the network connection with the terminal, it starts to count the idle duration of the terminal entering the idle state. Further, before the service network node acquires the context of the terminal in step 304, the serving network node may determine whether the network connection with the terminal is disconnected or determine whether the idle duration reaches a specified idle duration, if the serving network node and the terminal If the network connection is not disconnected, it is determined that the terminal is in a connected state.
  • the serving network node may determine that the terminal is in a sleep state, and determine the real-time based on the current state of the terminal. Status information of the terminal, and storing the status information of the terminal in the context of the terminal.
  • the capability configuration information of the terminal is sent to the serving network node, and the serving network node is based on the capability configuration information and the local configuration data or
  • the subscription data determines a specified idle duration of the terminal to enter an idle state and a specified update duration of the periodic TAU or RAU of the terminal, and sends the designated idle duration and the specified update duration to the terminal.
  • the terminal and the serving network node collect the idle time of the terminal to enter the idle state
  • the statistics may be collected by using a timer, and the statistics may be used in other manners.
  • the terminal counts the update duration after the periodic TAU or the RAU, it can be determined by a timer, and of course, it can be determined by other methods, and the embodiment of the present invention also does not specifically limit this.
  • the serving network node receives the capability configuration information sent by the terminal, and determines, according to the capability configuration information and the local configuration information or the subscription information, that the designated idle duration of the terminal is 30 seconds, and the designated update duration is 24 hours, and the service network node specifies the The idle duration and the specified update duration are sent to the terminal. If the identifier of the terminal is ID1, the serving network node may further store the identifier of the terminal, the designated idle duration of the terminal, and the specified update duration in the identifier of the terminal, the specified idle duration, and the specified update duration as shown in Table 4 below. The correspondence between them.
  • the serving network node may be based on the identifier ID1 of the terminal, from the correspondence relationship shown in Table 3 below. Get the terminal The designated idle duration is 30 seconds.
  • the serving network node determines that the idle duration of the statistics reaches the specified idle duration, determines that the terminal is in a sleep state, and determines that the status information of the terminal is And storing the state information of the terminal in the context of the terminal, that is, obtaining the context of the terminal from the correspondence between the identifier of the terminal and the context, as shown in Table 3, based on the identifier of the terminal, And store the status information of the terminal in the acquired context.
  • Terminal identification Specify idle time Specify update duration ID1 30 seconds 24 hours ID2 60 seconds 15 hours ID3 30 seconds 30 hours ID4 100 seconds 25 hours — .... .
  • the serving network node may start timing when the previous period of the current period TAU or RAU update is completed.
  • the serving network node may start timing when the TAU or RAU update of the previous period of the current period is completed, and count the duration from the completion of the last period of the current period TAU or RAU update to the current time, if the serving network node receives After the downlink data is notified and the terminal is determined to be in the PSM, the terminal obtains the specified update duration of the TAU or the RAU, and subtracts the specified update duration from the specified duration, to obtain the remaining duration of the TAU or RAU specified update duration of the terminal. The remaining duration is used as the duration of the terminal from the current time to the exit of the PSM.
  • the M2M server sends the MT data
  • the IPv6 may be used, and the IPv4 may be used, and the IPv6 and the IPv4 are incompatible, and the message protocol used by the MT data sent by the M2M server is IPv6.
  • the M2M server can recognize ICMPv6 The packet does not recognize the packet whose protocol is ICMPv4. If the packet protocol used by the M2M server is IPv4, the M2M server can identify the packet with the ICMPv4 packet and cannot identify the packet with the ICMPv6 packet.
  • the M2M server may not be able to identify the downlink data failure packet.
  • the SGW can obtain the packet type of the MT data, and send a downlink data failure packet that matches the packet type of the MT data to the M2M server. To ensure that the M2M server can identify the downlink data failure packet, and improve work efficiency.
  • the PGW may also determine, in advance by the M2M server, whether the PGW stores the copied version of the MT data when the first data packet is obtained according to the MT data, if the PGW stores the MT a copy version of the data, if the M2M server determines that the MT data transmission fails and the SGW discards the MT data, sends an indication information to the PGW, so that the PGW retrieves the first data packet according to the copied version of the MT data, and Sending the first data packet to the SGW, the M2M server may not need to repeatedly send the MT data, thereby reducing the workload of the M2M server.
  • the serving network node when the serving network node determines in step 304 that the terminal is in the PSM, the serving network node sends a paging message to the terminal, so that the terminal establishes a connection with the SGW, and passes the The connection receives MT data.
  • the serving network node may send a paging message to the terminal; if the terminal receives the paging message, the service is served.
  • the network node sends a connection establishment request to the SGW; if the SGW receives the connection establishment request, the service network node sends a connection establishment response to the terminal, thereby establishing a connection between the terminal and the SGW. Thereafter, the SGW can send the MT data to the terminal.
  • the paging message may be the same as the downlink data notification.
  • the paging message may also be different from the downlink data notification, that is, the serving network node may not only send the SGW when determining that the terminal exits the PSM.
  • the downlink data notification is sent to the terminal as a paging message, and a paging message may be regenerated and sent to the terminal, which is not specifically limited in this embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an M2M server according to an embodiment of the present invention.
  • the M2M server includes a first sending module 401, a receiving module 402, and a second sending module 403.
  • the first sending module 401 is configured to send MT data to the PGW, where the MT data includes address information of the terminal;
  • the receiving module 402 is configured to receive a downlink data failure message carrying the exit time indication information, where the downlink data failure message is used to indicate that the MT data transmission fails, and the exit time indication information is used to indicate the time when the terminal exits the PSM;
  • the second sending module 403 is configured to: if the terminal exits the PSM based on the exit time indication information carried by the receiving module to receive the downlink data packet, send the MT data to the terminal.
  • the second sending module 403 includes:
  • the first determining unit is configured to: if the time when the terminal exits the PSM arrives, and does not receive the MO data of the terminal within the time period in which the terminal is in the PSM, determine that the terminal exits the PSM.
  • the second sending module 403 includes:
  • the second determining unit is configured to: if the time when the terminal exits the PSM does not arrive, and the M2M server receives the MO data of the terminal, determine that the terminal exits the PSM.
  • M2M server shown in FIG. 4 may be specifically used to perform the steps of the M2M server in FIG. 2 or 3, and details are not described herein.
  • the M2M server may directly send the MT data to the PGW, and the PGW receives the MT data, and sends the MT data to the SGW, where the SGW receives the MT data, Determining whether the terminal is in the PSM based on the serving network node, and if the serving network node determines that the terminal is in the PSM, the time at which the terminal exits the PSM can be obtained and the exit time indication information is obtained, and then the exit time is obtained by the SGW and the PGW.
  • the indication information is sent to the M2M server.
  • the M2M server determines whether the terminal exits the PSM based on the exit time indication information, if it is determined that the terminal exits the PSM, the MT data is re-transmitted to the terminal, so that the monitoring request is not sent to the serving network node by using the SCEF network element and the HSS.
  • the service network node monitors the status of the terminal, and the service network node does not need to monitor the terminal to exit the PSM and send the monitoring prompt information to the M2M server through the SCEF network element, thereby saving the M2M server from interacting with the service network node through the SCEF network element and the HSS.
  • the process simplifies the process of the M2M server sending MT data to the terminal.
  • FIG. 5 is a schematic structural diagram of a PGW according to an embodiment of the present invention.
  • the PGW includes a receiving module 501, a first obtaining module 502, a second obtaining module 503, and a sending module 504.
  • the receiving module 501 is configured to receive MT data sent by the M2M server, where the MT data includes Address information of the terminal;
  • the first obtaining module 502 is configured to obtain, according to the address information of the terminal received by the receiving module, a tunnel identifier of a tunnel established between the PGW and the SGW for the terminal;
  • a second obtaining module 503, configured to obtain, according to the tunnel identifier and the MT data obtained by the first obtaining module, a first data packet, where the first data packet includes the tunnel identifier and the MT data;
  • the sending module 504 is configured to send the first data packet obtained by the second obtaining module to the SGW.
  • PGW shown in FIG. 5 may be specifically used to perform the steps of the PGW in FIG. 2 or 3, and details are not described herein again.
  • the M2M server may directly send the MT data to the PGW, and the PGW receives the MT data, and sends the MT data to the SGW, where the SGW receives the MT data, Determining whether the terminal is in the PSM based on the serving network node, and if the serving network node determines that the terminal is in the PSM, the time at which the terminal exits the PSM can be obtained and the exit time indication information is obtained, and then the exit time is obtained by the SGW and the PGW.
  • the indication information is sent to the M2M server.
  • the M2M server determines whether the terminal exits the PSM based on the exit time indication information, if it is determined that the terminal exits the PSM, the MT data is re-transmitted to the terminal, so that the monitoring request is not sent to the serving network node by using the SCEF network element and the HSS.
  • the service network node monitors the status of the terminal, and the service network node does not need to monitor the terminal to exit the PSM and send the monitoring prompt information to the M2M server through the SCEF network element, thereby saving the M2M server from interacting with the service network node through the SCEF network element and the HSS.
  • the process simplifies the process of the M2M server sending MT data to the terminal.
  • FIG. 6 is a schematic structural diagram of an SGW according to an embodiment of the present invention.
  • the SGW includes a first receiving module 601, an obtaining module 602, a first sending module 603, a second receiving module 604, and a second sending module 605. .
  • the first receiving module 601 is configured to receive a first data packet sent by the PGW, where the first data packet includes MT data and a tunnel identifier, where the MT data is data sent by the M2M server to the PGW, where the MT data includes address information of the terminal.
  • the tunnel identifier is used to indicate a tunnel established between the PGW and the terminal;
  • the obtaining module 602 is configured to obtain, according to the tunnel identifier received by the first receiving module, a connection identifier, where the connection identifier is used to indicate signaling established between the SGW and the serving network node for the terminal connection;
  • the first sending module 603 is configured to send a downlink data notification to the serving network node, where the downlink data notification carries the connection identifier obtained by the obtaining module;
  • the second receiving module 604 is configured to receive a downlink data response message sent by the serving network node, where the downlink data response message carries an exit time indication information, where the exit time indication information is used to indicate a time when the terminal exits the PSM;
  • the second sending module 605 is configured to send a downlink data failure packet to the M2M server, where the downlink data failure packet carries the exit time indication information received by the second receiving module.
  • the second sending module 605 includes:
  • An acquiring unit configured to acquire a packet type of the MT data
  • a sending unit configured to send, to the M2M server, a downlink data failure packet that matches the type of the packet acquired by the acquiring unit.
  • the serving network node comprises an MME or an SGSN.
  • SGW shown in FIG. 6 may be specifically used to perform the steps of the SGW in FIG. 2 or 3, and details are not described herein again.
  • the M2M server may directly send the MT data to the PGW, and the PGW receives the MT data, and sends the MT data to the SGW, where the SGW receives the MT data, Determining whether the terminal is in the PSM based on the serving network node, and if the serving network node determines that the terminal is in the PSM, the time at which the terminal exits the PSM can be obtained and the exit time indication information is obtained, and then the exit time is obtained by the SGW and the PGW.
  • the indication information is sent to the M2M server.
  • the M2M server determines whether the terminal exits the PSM based on the exit time indication information, if it is determined that the terminal exits the PSM, the MT data is re-transmitted to the terminal, so that the monitoring request is not sent to the serving network node by using the SCEF network element and the HSS.
  • the service network node monitors the status of the terminal, and the service network node does not need to monitor the terminal to exit the PSM and send the monitoring prompt information to the M2M server through the SCEF network element, thereby saving the M2M server from interacting with the service network node through the SCEF network element and the HSS.
  • the process simplifies the process of the M2M server sending MT data to the terminal.
  • FIG. 7 is a schematic structural diagram of a service network node according to an embodiment of the present invention.
  • the service network node includes a receiving module 701 and a sending module 702.
  • the receiving module 701 is configured to receive a downlink data notification sent by the SGW, where the downlink data notification is carried a connection identifier, the connection identifier being used to indicate a signaling connection established between the SGW and the serving network node for the terminal;
  • the sending module 702 is configured to: if the terminal is in the power saving mode PSM, based on the connection identifier received by the receiving module, send a downlink data response message to the SGW, where the downlink data response message carries the exit time indication information, and the exit time
  • the indication information is used to indicate when the terminal exits the PSM.
  • the sending module 702 includes:
  • a first acquiring unit configured to acquire a context of the terminal from the stored context list according to the connection identifier received by the receiving module
  • a second acquiring unit configured to obtain status information of the terminal from a context of the terminal acquired by the first acquiring unit, where the status information is used to indicate a current state of the terminal;
  • a determining unit configured to determine, if the status information acquired by the second acquiring unit indicates that the terminal is currently in a sleep state, determine that the terminal is in an operation of the PSM.
  • the time when the terminal exits the PSM is the update time of the next TAU or RAU of the terminal.
  • the time when the terminal exits the PSM is the time when the terminal exits the PSM, or the duration from the current time to the exit of the PSM.
  • the serving network node comprises an MME or an SGSN.
  • service network node shown in FIG. 7 may be specifically used to perform the steps of the service network node in FIG. 2 or 3, and details are not described herein.
  • the M2M server may directly send the MT data to the PGW, and the PGW receives the MT data, and sends the MT data to the SGW, where the SGW receives the MT data, Determining whether the terminal is in the PSM based on the serving network node, and if the serving network node determines that the terminal is in the PSM, the time at which the terminal exits the PSM can be obtained and the exit time indication information is obtained, and then the exit time is obtained by the SGW and the PGW.
  • the indication information is sent to the M2M server.
  • the M2M server determines whether the terminal exits the PSM based on the exit time indication information, if it is determined that the terminal exits the PSM, the MT data is re-transmitted to the terminal, so that the monitoring request is not sent to the serving network node by using the SCEF network element and the HSS.
  • the service network node monitors the status of the terminal, and the service network node does not need to monitor the terminal to exit the PSM and send the monitoring prompt information to the M2M server through the SCEF network element, thereby saving the M2M server from interacting with the service network node through the SCEF network element and the HSS.
  • Process that simplifies M2M services The process of sending MT data to the terminal.
  • FIG. 8 is a schematic diagram of another M2M server according to an embodiment of the present invention.
  • the M2M server includes: a communication interface 801, a processor 802, a memory 803, and a communication bus 804.
  • the processor 802 and the memory 803 pass through the bus 804. connection;
  • a memory 803 for storing information and data
  • the processor 802 is configured to send the MT data to the PGW, where the MT data includes address information of the terminal, where the first sending module 401 may be included in the processor 802;
  • the communication interface 801 is configured to receive a downlink data failure message carrying the exit time indication information, where the downlink data failure message is used to indicate that the MT data transmission fails, and the exit time indication information is used to indicate the time when the terminal exits the PSM.
  • the receiving module 402 may be included in the communication interface 801;
  • the processor 802 is further configured to: if the terminal exits the PSM based on the exit time indication information received by the communication interface 801, send the MT data to the terminal, where the second sending module 403 may be included in the process.
  • the second sending module 403 may be included in the process.
  • the processor 802 is further configured to: if the time when the terminal exits the PSM arrives, and the MO data of the terminal is not received within the time period in which the terminal is in the PSM, determine that the terminal exits the PSM, where
  • the first determining unit in the foregoing second sending module 403 may be included in the processor 802.
  • the processor 802 is further configured to: if the time when the terminal exits the PSM is not reached, and the M2M server receives the MO data of the terminal, determining that the terminal exits the PSM, where the second sending module 403 is used.
  • the second determining unit may be included in the processor 802.
  • the M2M server may directly send the MT data to the PGW, and the PGW receives the MT data, and sends the MT data to the SGW, where the SGW receives the MT.
  • the data may be determined based on the serving network node to determine whether the terminal is in the PSM, and if the serving network node determines that the terminal is in the PSM, the time at which the terminal exits the PSM may be obtained and the exit time indication information is obtained, and then the SGW and the PGW are used.
  • the exit time indication information is sent to the M2M server.
  • the M2M server determines whether the terminal exits the PSM based on the exit time indication information, if it is determined that the terminal exits the PSM, the MT data is re-transmitted to the terminal, so that the monitoring request is not sent to the serving network node by using the SCEF network element and the HSS.
  • the service network node monitors the status of the terminal, and does not need the service network node to monitor the terminal.
  • the PSM is exited and the monitoring prompt information is sent to the M2M server through the SCEF network element, which saves the process of the M2M server interacting with the serving network node through the SCEF network element and the HSS, and simplifies the process of the M2M server transmitting the MT data to the terminal.
  • FIG. 9 is a schematic diagram of another PGW according to an embodiment of the present invention.
  • the PGW includes: a communication interface 901, a processor 902, a memory 903, and a communication bus 904.
  • the processor 802 and the memory 903 are connected through the bus 904.
  • a memory 903, configured to store information and data
  • the communication interface 901 is configured to receive the MT data sent by the M2M server, where the MT data includes the address information of the terminal, where the receiving module 501 can be included in the communication interface 901;
  • the processor 902 is configured to:
  • the first obtaining module 502, the second obtaining module 503, and the sending module 504 may be included in the processor 902.
  • the M2M server may directly send the MT data to the PGW, and the PGW receives the MT data, and sends the MT data to the SGW, where the SGW receives the MT.
  • the data may be determined based on the serving network node to determine whether the terminal is in the PSM, and if the serving network node determines that the terminal is in the PSM, the time at which the terminal exits the PSM may be obtained and the exit time indication information is obtained, and then the SGW and the PGW are used.
  • the exit time indication information is sent to the M2M server.
  • the M2M server determines whether the terminal exits the PSM based on the exit time indication information, if it is determined that the terminal exits the PSM, the MT data is re-transmitted to the terminal, so that the monitoring request is not sent to the serving network node by using the SCEF network element and the HSS.
  • the service network node monitors the status of the terminal, and the service network node does not need to monitor the terminal to exit the PSM and send the monitoring prompt information to the M2M server through the SCEF network element, thereby saving the M2M server from interacting with the service network node through the SCEF network element and the HSS.
  • the process simplifies the process of the M2M server sending MT data to the terminal.
  • FIG. 10 is a schematic diagram of another SGW according to an embodiment of the present invention.
  • the SGW package is shown in FIG.
  • the first communication interface 1001, the second communication interface 1002, the processor 1003, the memory 1004, the communication bus 1005, and the processor 1003 and the memory 1004 are connected through the bus 1005;
  • the first communication interface 1001 is configured to receive a first data packet sent by the PGW, where the first data packet includes MT data and a tunnel identifier, where the MT data is data sent by the M2M server to the PGW, where the MT data includes address information of the terminal.
  • the tunnel identifier is used to indicate a tunnel established between the PGW and the serving gateway SGW for the terminal, where the first receiving module 601 can be included in the communication interface 1001.
  • the processor 1003 is configured to
  • connection identifier is used to indicate a signaling connection established between the SGW and the serving network node for the terminal;
  • the obtaining module 602 and the first sending module 603 may be included in the processor 1003.
  • the second communication interface 1002 is configured to receive a downlink data response message sent by the serving network node, where the downlink data response message carries an exit time indication information, where the exit time indication information is used to indicate a time when the terminal exits the PSM, where the foregoing
  • the second receiving module 604 can be included in the second communication interface 1002.
  • the processor 1003 is further configured to send a downlink data failure packet to the M2M server, where the downlink data failure packet carries the exit time indication information, where the second sending module 605 can be included in the processor 1003.
  • the processor 1003 is further configured to obtain a packet type of the MT data, and send a downlink data failure packet that matches the packet type to the M2M server, where the acquiring unit and the sending unit in the second sending module 605 are used. It can be included in the processor 1003.
  • the serving network node comprises an MME or an SGSN.
  • the M2M server may directly send the MT data to the PGW, and the PGW receives the MT data, and sends the MT data to the SGW, where the SGW receives the MT.
  • the data may be determined based on the serving network node to determine whether the terminal is in the PSM, and if the serving network node determines that the terminal is in the PSM, the terminal may be obtained. The time when the terminal exits the PSM and obtains the exit time indication information, and then sends the exit time indication information to the M2M server through the SGW and the PGW.
  • the M2M server determines whether the terminal exits the PSM based on the exit time indication information, if it is determined that the terminal exits the PSM, the MT data is re-transmitted to the terminal, so that the monitoring request is not sent to the serving network node by using the SCEF network element and the HSS.
  • the service network node monitors the status of the terminal, and the service network node does not need to monitor the terminal to exit the PSM and send the monitoring prompt information to the M2M server through the SCEF network element, thereby saving the M2M server from interacting with the service network node through the SCEF network element and the HSS.
  • the process simplifies the process of the M2M server sending MT data to the terminal.
  • FIG. 11 is a schematic diagram of another service network node according to an embodiment of the present invention.
  • the service network node includes: a communication interface 1101, a processor 1102, a memory 1103, and a communication bus 1104.
  • the processor 1102 and the memory 1003 pass the Bus 1004 connection;
  • a memory 1103, configured to store information and data
  • the communication interface 1101 is configured to receive a downlink data notification sent by the SGW, where the downlink data notification carries a connection identifier, where the connection identifier is used to indicate a signaling connection established between the SGW and the serving network node for the terminal,
  • the receiving module 701 may be included in the communication interface 1101.
  • the processor 1102 is configured to: if the terminal is determined to be in the PSM based on the connection identifier received by the communication interface 1101, the serving network node sends a downlink data response message to the SGW, where the downlink data response message carries the exit time indication information, where The exit time indication information is used to indicate the time when the terminal exits the PSM, and the sending module 702 may be included in the processor 1102.
  • processor 1102 is further configured to:
  • the first obtaining unit, the second obtaining unit, and the determining unit in the sending module 702 may be included in the processor 1102.
  • the time when the terminal exits the PSM is the update time of the next TAU or RAU of the terminal.
  • the time when the terminal exits the PSM is the time when the terminal exits the PSM, or the duration from the current time to the exit of the PSM.
  • the serving network node comprises an MME or an SGSN.
  • the M2M server may directly send the MT data to the PGW, and the PGW receives the MT data, and sends the MT data to the SGW, where the SGW receives the MT.
  • the data may be determined based on the serving network node to determine whether the terminal is in the PSM, and if the serving network node determines that the terminal is in the PSM, the time at which the terminal exits the PSM may be obtained and the exit time indication information is obtained, and then the SGW and the PGW are used.
  • the exit time indication information is sent to the M2M server.
  • the M2M server determines whether the terminal exits the PSM based on the exit time indication information, if it is determined that the terminal exits the PSM, the MT data is re-transmitted to the terminal, so that the monitoring request is not sent to the serving network node by using the SCEF network element and the HSS.
  • the service network node monitors the status of the terminal, and the service network node does not need to monitor the terminal to exit the PSM and send the monitoring prompt information to the M2M server through the SCEF network element, thereby saving the M2M server from interacting with the service network node through the SCEF network element and the HSS.
  • the process simplifies the process of the M2M server sending MT data to the terminal.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

本发明实施例提供了一种数据传输方法、M2M服务器、PGW、SGW及服务网络节点,涉及物联网领域,所述方法包括:机器对机器M2M服务器向分组数据网关PGW发送移动台终止MT数据,所述MT数据中包括终端的地址信息,所述M2M服务器接收携带有退出时间指示信息的下行数据失败报文,所述下行数据失败报文用于指示所述MT数据发送失败,所述退出时间指示信息用于指示所述终端退出省电模式PSM的时间,若基于所述退出时间指示信息确定所述终端退出所述PSM,则所述M2M服务器将所述MT数据发送给所述终端。本发明节省了M2M服务器通过业务能力开放功能SCEF网元和归属签约用户服务器HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。

Description

数据传输方法、M2M服务器、PGW、SGW及服务网络节点 技术领域
本发明实施例涉及物联网领域,特别涉及一种数据传输方法、M2M服务器、PGW、SGW及服务网络节点。
背景技术
随着物联网的兴起,智能抄表、智能停车、智能环境监控等基于低功耗广域(英文:Low Power Wide Area;简称:LPWA)的机器对机器(英文:Machine to Machine;简称:M2M)通信的应用范围越来越广。由于基于M2M通信的终端一般采用电池供电,所以为了省电,该终端会在空闲时进入省电模式(英文:Power Saving Mode;简称:PSM),并且当该终端进入PSM时,无法接收M2M服务器发送的移动台终止(英文:Mobile Terminated;简称:MT)数据。而只有在该终端向M2M服务器发送移动台发起(英文:Mobile Originated;简称:MO)数据或者需要执行周期性的跟踪区更新(英文:Tracking Area Update;简称:TAU)或者路由区更新(英文:Routing Area Update;简称:RAU)时才会退出PSM。因此,为了确保该终端及时收到该MT数据,亟需一种数据传输方法,使得M2M应用服务器可以在终端退出PSM时向该终端发送MT数据。
现有技术中,由于M2M服务器无法直接和服务网络节点进行通信,其中服务网络节点可以是移动性管理实体(英文:Mobility Management Entity;简称:MME)或服务通用分组无线服务支持节点(英文:Serving General Packet Radio Service Support Node;简称:SGSN),所以运营商必须部署具有业务能力开放功能(英文:Service Capability Exposure Function;简称:SCEF)的网元和归属签约用户服务器(英文:Home Subscriber Server;简称:HSS)。之后,M2M服务器可以向SCEF网元发送监控请求,使SCEF网元对M2M服务器进行权限校验,以判断该M2M服务器是否具有监控权限,并当M2M的权限校验通过时,由SCEF网元将该监控请求通过HSS发送给服务网络节点,使服务网络节点通过SCEF网元和HSS返回监控响应信息;当M2M服务器收到该监控响应信息后,需要发送数据时向分组数据网关(英文:Packet Data Network  Gateway;简称:PGW)发送MT数据;当该PGW接收到MT数据时,将该MT数据发送给服务网关(英文:Serving Gateway;简称:SGW);当该SGW接收到该MT数据时,向服务网络节点发送下行数据通知;当服务网络节点接收到该下行数据通知时,如果确定该终端处于PSM,则确定该终端无法接收该MT数据,此时,服务网络节点可以向SGW送下行数据响应消息,使SGW接收到该下行数据响应消息后丢弃该MT数据。之后,服务网络节点可以监控该终端,并当监控到该终端退出PSM时,通过SCEF网元向M2M服务器发送监控提示信息,以提示M2M服务器该终端已退出PSM;当M2M服务器接收到该监控提示信息时,重新向该终端发送MT数据。
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:当M2M服务器通过SCEF网元和HSS向服务网络节点发送监控请求时,SCEF网元需要对M2M服务器进行权限校验,且服务网络节点接收到监控请求时还需要再通过SCEF网元和HSS向M2M服务器发送监控响应信息,终端退出PSM时服务网络节点还需要通过SCEF网元向M2M服务器发送监控提示信息,交互过程比较繁琐,浪费时间。
发明内容
为了节省M2M服务器通SCEF网元和HSS与服务网络节点进行交互的过程,简化M2M服务器向终端发送MT数据的过程,本发明提供了一种数据传输方法、M2M服务器、PGW、SGW及服务网络节点。所述技术方案如下:
第一方面,提供了一种数据传输方法,所述方法包括:
M2M服务器向PGW发送MT数据,所述MT数据中包括终端的地址信息;
所述M2M服务器接收携带有退出时间指示信息的下行数据失败报文,所述下行数据失败报文用于指示所述MT数据发送失败,所述退出时间指示信息用于指示所述终端退出PSM的时间;
若基于所述退出时间指示信息确定所述终端退出所述PSM,则所述M2M服务器将所述MT数据发送给所述终端。
若M2M服务器向终端发送MT数据,则M2M服务器可以直接向PGW发送该MT数据,若PGW接收到该MT数据,则将该MT数据发送给SGW,若SGW在接收到该MT数据,则可以基于服务网络节点来确定该终端是否处于PSM,而若服务网络节点确定该终端处于PSM,则可以获取该终端退出PSM 的时间并得到该退出时间指示信息,进而通过SGW和PGW将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则M2M服务器重新向终端发送MT数据,从而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端退出PSM,并通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。
结合第一方面,在上述第一方面的第一种可能的实现方式中,所述基于所述退出时间指示信息确定所述终端退出所述PSM,包括:
若所述终端退出所述PSM的时间到达,且在所述终端处于所述PSM的时间段之内未接收到所述终端的MO数据,则确定所述终端退出所述PSM。
由于该终端在PSM时无法接收该MT数据,因此,该M2M服务器可以在终端退出PSM的时间到达,且在该终端处于PSM的时间段之内未接收到终端的MO数据时,确定该终端退出所述PSM,将该MT数据发送给所述终端。
结合第一方面,在上述第一方面的第二种可能的实现方式中,所述基于所述退出时间指示信息确定所述终端退出所述PSM,包括:
若所述终端退出所述PSM的时间未到达,且所述M2M服务器接收到所述终端的MO数据,则确定所述终端退出所述PSM。
该M2M服务器还可以在该终端退出PSM的时间未到达,且M2M服务器接收到该终端的MO数据时,确定该终端退出PSM,将该MT数据发送给该终端,提高了该M2M将MT数据发送给终端的灵活性和发送该MT数据的工作效率。
第二方面,提供了另一种数据传输方法,所述方法包括:
PGW接收M2M服务器发送的MT数据,所述MT数据包括终端的地址信息;
所述PGW根据所述终端的地址信息,获得在所述PGW和SGW之间为所述终端建立的隧道的隧道标识;
所述PGW根据所述隧道标识和所述MT数据,获得第一数据包,所述第一数据包包含所述隧道标识和所述MT数据;
所述PGW将所述第一数据包发送给所述SGW。
第三方面,提供了另一种数据传输方法,所述方法包括:
SGW接收PGW发送的第一数据包,所述第一数据包包含移动台终止MT数据和隧道标识,所述MT数据为机器对机器M2M服务器向所述PGW发送的数据,所述MT数据包括终端的地址信息,所述隧道标识用于指示在所述PGW和所述SGW之间为所述终端建立的隧道;
所述SGW根据所述隧道标识,获得连接标识,所述连接标识用于指示在所述SGW和服务网络节点之间为所述终端建立的信令连接;
所述SGW向所述服务网络节点发送下行数据通知,所述下行数据通知中携带所述连接标识;
所述SGW接收所述服务网络节点发送的下行数据响应消息,所述下行数据响应消息携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出PSM的时间;
所述SGW向所述M2M服务器发送下行数据失败报文,所述下行数据失败报文携带所述退出时间指示信息。
SGW可以在接收到MT数据时,向服务网络节点发送下行数据通知,也可以在接收到该下行数据响应消息时,从该下行数据响应消息中获取终端退出所述PSM的退出时间指示信息,向该M2M服务器发送下行数据失败报文,该下行数据失败报文中携带该退出时间指示信息,使得该M2M服务器不必和服务网络节点交互就可以获取到该退出时间指示信息,若基于该退出时间指示信息确定该终端退出PSM,则重新发送MT数据,简化了M2M服务器向终端发送MT数据的过程。
当然,若该服务网络节点在该下行数据响应消息中携带了其它信息,则该SGW也可以将该其它信息携带在该下行数据失败报文中,并将该下行数据失败报文发送给该M2M服务器。
结合第三方面,在上述第三方面的第一种可能的实现方式中,所述SGW所述M2M服务器发送下行数据失败报文,包括:
获取所述MT数据的报文类型;
向所述M2M服务器发送与所述报文类型相匹配的下行数据失败报文。
该SGW可以获取MT数据的类型,并向该M2M服务器发送与该报文类 型匹配的下行数据失败报文,保证了该M2M服务器能够识别该下行数据失败报文,提高了该SGW与该M2M服务器之间数据传输的可靠性。
结合第三方面或第三方面的第一种可能的实现方式,在上述第三方面的第二种可能的实现方式中,所述服务网络节点包括MME或SGSN。
第四方面,提供了又一种数据传输方法,所述方法包括:
服务网络节点接收SGW发送的下行数据通知,所述下行数据通知携带连接标识,所述连接标识用于指示在所述SGW和所述服务网络节点之间为所述终端建立的信令连接;
若所述服务网络节点基于所述连接标识确定所述终端处于PSM,则所述服务网络节点向所述SGW发送下行数据响应消息,所述下行数据响应消息中携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出所述PSM的时间。
该服务网络节点可以在接收到下行数据通知时,确定该终端是否处于PSM,当判断该终端处于PSM时,该服务网络节点可以获取该终端退出PSM的时间,得到该退出时间的指示信息,并向SGW发送下行数据响应消息,该下行数据响应消息中携带该退出时间指示信息,使该SGW向M2M服务器发送下行数据失败报文,从而使得该M2M服务器确定该终端退出PSM时,向该终端发送该MT数据,提高了M2M服务器将MT数据的可靠性。
当然,根据实际的应用需要,该服务网络节点还可以将其它信息携带在下行数据响应消息中,并将该下行数据响应消息发送给该SGW,从而使得该SGW可以将该其它信息发送给M2M服务器。
结合第四方面,在上述第四方面的第一种可能的实现方式中,所述服务网络节点基于所述连接标识,确定所述终端处于省电模式PSM,包括:
根据所述连接标识,获取所述终端的上下文;
从所述终端的上下文中,获取所述终端的状态信息,所述状态信息用于指示所述终端当前所处的状态;
若所述状态信息指示所述终端当前处于睡眠状态,则确定所述终端处于所述PSM。
该服务网络节点可以确定该终端当前所处的状态,并将该状态的状态信息存储在该终端的上下文中,若该终端获得该连接标识,则可以基于该连接标识, 获得该终端的上下文,并根据该上下文获得该状态信息,直接确定该终端当前所处的状态,简化了该服务网络节点根据该连接标识获得该状态信息的过程,提高了该服务网络节点的工作效率。
结合第四方面或第四方面的第一种可能的实现方式,在上述第四方面的第二种可能的实现方式中,所述终端退出所述PSM的时间为所述终端进行下一次TAU或RAU的更新时间。
结合第四方面至第四方面的第二种可能的实现方式中的任一种可能的实现方式,在上述第四方面的第三种可能的实现方式中,所述终端退出所述PSM的时间为所述终端退出所述PSM的时刻,或者为所述终端从当前时间到退出所述PSM的时长。
该服务网络节点可以通过获取终端在当前周期进行TAU或RAU的更新时间,从而确定该终端退出PSM的时间,得到该退出时间的指示信息,并SGW将该退出时间指示信息发送给M2M服务器,使得该M2M服务器可以基于该退出时间向该终端发送MT数据,提高了该M2M服务器发送MT数据的工作效率,节省了时间。
结合第四方面至第四方面的第三种可能的实现方式中的任一种可能的实现方式,在上述第四方面的第四种可能的实现方式中,所述服务网络节点包括MME或SGSN。
第五方面,提供了一种M2M服务器,包括:
第一发送模块,用于向PGW发送MT数据,所述MT数据中包括终端的地址信息;
接收模块,用于接收携带有退出时间指示信息的下行数据失败报文,所述下行数据失败报文用于指示所述MT数据发送失败,所述退出时间指示信息用于指示所述终端退出PSM的时间;
第二发送模块,用于若基于所述接收模块接收的下行数据报文携带的退出时间指示信息确定所述终端退出所述PSM,则将所述MT数据发送给所述终端。
结合第五方面,在上述第五方面的第一种可能的实现方式中,所述第二发送模块包括:
第一确定单元,用于若所述终端退出所述PSM的时间到达,且在所述终 端处于所述PSM的时间段之内未接收到所述终端的MO数据,则确定所述终端退出所述PSM。
结合第五方面,在上述第五方面的第二种可能的实现方式中,所述第二发送模块包括:
第二确定单元,用于若所述终端退出所述PSM的时间未到达,且所述M2M服务器接收到所述终端的MO数据,则确定所述终端退出所述PSM。
第六方面,提供了一种PGW,包括:
接收模块,用于接收M2M服务器发送的MT数据,所述MT数据包括终端的地址信息;
第一获得模块,用于根据所述接收模块接收的所述终端的地址信息,获得在所述PGW和SGW之间为所述终端建立的隧道的隧道标识;
第二获得模块,用于根据所述第一获得模块获得的所述隧道标识和所述MT数据,获得第一数据包,所述第一数据包包含所述隧道标识和所述MT数据;
发送模块,用于将所述第二获得模块获得的所述第一数据包发送给所述SGW。
第七方面,提供了一种SGW,包括:
第一接收模块,用于接收分组数据网关PGW发送的第一数据包,所述第一数据包包含移动台终止MT数据和隧道标识,所述MT数据为机器对机器M2M服务器向所述PGW发送的数据,所述MT数据包括终端的地址信息,所述隧道标识用于指示在所述PGW和SGW之间为所述终端建立的隧道;
获得模块,用于根据所述第一接收模块接收的所述隧道标识,获得连接标识,所述连接标识用于指示在所述SGW和服务网络节点之间为所述终端建立的信令连接;
第一发送模块,用于向所述服务网络节点发送下行数据通知,所述下行数据通知中携带所述获得模块获得的所述连接标识;
第二接收模块,用于接收所述服务网络节点发送的下行数据响应消息,所述下行数据响应消息携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出PSM的时间;
第二发送模块,用于向所述M2M服务器发送下行数据失败报文,所述下行数据失败报文携带所述第二接收模块接收的所述退出时间指示信息。
结合第七方面,在上述第七方面的第一种可能的实现方式中,所述第二发送模块包括:
获取单元,用于获取所述MT数据的报文类型;
发送单元,用于向所述M2M服务器发送与所述获取单元获取的所述报文类型相匹配的下行数据失败报文。
结合第七方面或第七方面的第一种可能的实现方式,在上述第七方面的第二种可能的实现方式中,所述服务网络节点包括MME或SGSN。
第八方面,提供了一种服务网络节点,包括:
接收模块,用于接收SGW发送的下行数据通知,所述下行数据通知携带连接标识,所述连接标识用于指示在所述SGW和所述服务网络节点之间为所述终端建立的信令连接;
发送模块,用于若基于所述接收模块接收的所述连接标识确定所述终端处于省电模式PSM,则所述服务网络节点向所述SGW发送下行数据响应消息,所述下行数据响应消息中携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出所述PSM的时间。
结合第八方面,在上述第八方面的第一种可能的实现方式中,所述发送模块包括:
第一获取单元,用于根据所述接收模块接收的所述连接标识,获取所述终端的上下文;
第二获取单元,用于从所述第一获取单元获取的所述终端的上下文中,获取所述终端的状态信息,所述状态信息用于指示所述终端当前所处的状态;
确定单元,用于若所述第二获取单元获取的所述状态信息指示所述终端当前处于睡眠状态,则确定所述终端处于所述PSM。
结合第八方面或第八方面的第一种可能的实现方式,在上述第八方面的第二种可能的实现方式中,所述终端退出所述PSM的时间为所述终端进行下一次TAU或者RAU的更新时间。
结合第八方面至第八方面的第二种可能的实现方式中的任一种可能的实现方式,在上述第八方面的第三种可能的实现方式中,所述终端退出所述PSM 的时间为所述终端退出所述PSM的时刻,或者为所述终端从当前时间到退出所述PSM的时长。
结合第八方面至第八方面的第三种可能的实现方式,在上述第八方面的第四种可能的实现方式中,所述服务网络节点包括MME或SGSN。
第九方面,提供了另一种M2M服务器,包括:
处理器,用于向PGW发送MT数据,所述MT数据中包括终端的地址信息;
通信接口,用于接收携带有退出时间指示信息的下行数据失败报文,所述下行数据失败报文用于指示所述MT数据发送失败,所述退出时间指示信息用于指示所述终端退出PSM的时间;
所述处理器,还用于若基于所述通信接口接收的所述退出时间指示信息确定所述终端退出所述PSM,则将所述MT数据发送给所述终端。
结合第九方面,在上述第九方面的第一种可能的实现方式中,
所述处理器,还用于若所述终端退出所述PSM的时间到达,且在所述终端处于所述PSM的时间段之内未接收到所述终端的MO数据,则确定所述终端退出所述PSM。
结合第九方面,在上述第九方面的第二种可能的实现方式中,
所述处理器,还用于若所述终端退出所述PSM的时间未到达,且所述M2M服务器接收到所述终端的MO数据,则确定所述终端退出所述PSM。
第十方面,提供了另一种PGW,包括:
通信接口,用于接收M2M服务器发送的MT数据,所述MT数据包括终端的地址信息;
处理器,用于根据所述所述通信接口接收的所述终端的地址信息,获得在PGW和SGW之间为所述终端建立的隧道的隧道标识;
所述处理器,还用于根据所述隧道标识和所述MT数据,获得第一数据包,所述第一数据包包含所述隧道标识和所述MT数据,并将所述第一数据包发送给所述SGW。
第十一方面,提供了另一种SGW,包括:处理器,第一通信接口和第二 通信接口;
所述第一通信接口,用于接收PGW发送的第一数据包,所述第一数据包包含移动台终止MT数据和隧道标识,所述MT数据为M2M服务器向所述PGW发送的数据,所述MT数据包括终端的地址信息,所述隧道标识用于指示在所述PGW和所述SGW之间为所述终端建立的隧道;
处理器,用于根据所述第一通信接口接收的所述隧道标识,获得连接标识,所述连接标识用于指示在所述SGW和服务网络节点之间为所述终端建立的信令连接;
所述处理器,还用于通过所述第二通信接口向所述服务网络节点发送下行数据通知,所述下行数据通知中携带所述连接标识;
所述第二通信接口,还用于接收所述服务网络节点发送的下行数据响应消息,所述下行数据响应消息携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出PSM的时间;
所述处理器,还用于通过所述第一通信接口向所述M2M服务器发送下行数据失败报文,所述下行数据失败报文携带所述退出时间指示信息。
结合第十一方面,在上述第十一方面的第一种可能的实现方式中:
所述处理器,还用于获取所述MT数据的报文类型,并向所述M2M服务器发送与所述报文类型相匹配的下行数据失败报文。
结合第十一方面或第十一方面的第一种可能的实现方式,在上述第一方面的第二种可能的实现方式中,所述服务网络节点包括MME或SGSN。
第十二方面,提供了另一种服务网络节点,包括:
所述通信接口,还用于接收SGW发送的下行数据通知,所述下行数据通知携带连接标识,所述连接标识用于指示在所述SGW和所述服务网络节点之间为所述终端建立的信令连接;
处理器,还用于若基于所述通信接口接收的所述连接标识确定所述终端处于PSM,则向所述SGW发送下行数据响应消息,所述下行数据响应消息中携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出所述PSM的时间。
结合第十二方面,在上述第十二方面的第一种可能的实现方式中,所述处理器还用于:
根据所述连接标识,获取所述终端的上下文;
从所述终端的上下文中,获取所述终端的状态信息,所述状态信息用于指示所述终端当前所处的状态;
若所述状态信息指示所述终端当前处于睡眠状态,则确定所述终端处于所述PSM。
结合第十二方面或第十二方面的第一种可能的实现方式,在上述第十二方面的第二种可能的实现方式中,所述终端退出所述PSM的时间为所述终端进行下一次TAU或者RAU的更新时间。
结合第十二方面至第十二方面的第二种可能的实现方式中的任一种可能的实现方式,在上述第十二方面的第三种可能的实现方式中,所述终端退出所述PSM的时间为所述终端退出所述PSM的时刻,或者为所述终端从当前时间到退出所述PSM的时长。
结合第十二方面至第十二方面的第三种可能的实现方式中的任一种可能的实现方式,在上述第十二方面的第四种可能的实现方式中,所述服务网络节点包括MME或SGSN。
本发明实施例提供的技术方案的有益效果是:在本发明实施例中,若M2M服务器向终端发送MT数据,M2M服务器可以直接向PGW送该MT数据,PGW接收该MT数据,将该MT数据发送给SGW,该SGW接收该MT数据,基于服务网络节点来确定该终端是否处于PSM,若服务网络节点确定该终端处于PSM,则可以获取该终端退出PSM的时间并得到该退出时间指示信息,进而通过SGW和PGW就将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则重新向终端发送MT数据,从而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端退出PSM,并通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种数据传输系统架构图;
图2是本发明实施例提供的一种数据传输方法流程图;
图3是本发明实施例提供的另一种数据传输方法流程图;
图4是本发明实施例提供的一种M2M服务器的结构示意图;
图5是本发明实施例提供的一种PGW的结构示意图;
图6是本发明实施例提供的一种SGW的结构示意图;
图7是本发明实施例提供的一种服务网络节点的结构示意图;
图8是本发明实施例提供的另一种M2M服务器的结构示意图;
图9是本发明实施例提供的另一种PGW的结构示意图;
图10是本发明实施例提供的另一种SGW的结构示意图;
图11是本发明实施例提供的另一种服务网络节点的结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
在对本发明实施例进行详细地解释说明之前,先对本发明实施例的系统架构进行介绍。图1为本发明实施例提供的一种数据传输系统架构图,如图1所示,该系统包括M2M服务器、服务网络节点、SGW、PGW和终端。M2M服务器可以是一台服务器,或者是由若干台服务器组成的服务器集群,或者是一个云计算服务中心,服务网络节点包括MME或SGSN,并在该终端接入网络时,为该终端选择SGW和PGW,SGW和PGW为该终端接入网络的网关,并实现不同协议网络的互连。M2M服务器和PGW可以通过网络连接,PGW可以和SGW通过网络连接,SGW和服务网络节点可以通过网络连接,服务网络节点和终端也可以通过网络连接,并且若该终端不处于PSM,则该终端也可以通过服务网络节点与SGW建立网络连接。
其中,M2M服务器用于通过SGW和PGW向该终端发送MT数据、接收该终端通过SGW和PGW发送的MO数据、以及从服务网络节点中获取该终端退出PSM的时间,若该终端退出PSM的时间到达,则通过SGW和PGW 向该终端发送MT数据;PGW用于接收M2M服务器发送的MT数据,将MT数据发送给SGW,SGW用于接收PGW发送的MT数据,向服务网络节点发送下行数据通知,以确定该终端是否处于PSM,若该终端不处于PSM,则寻呼终端并建立终端与SGW之间的连接,以将该MT数据转发给该终端,若该终端处于PSM,则将该终端退出PSM的时间指示给M2M服务器;服务网络节点用于接收SGW发送的下行数据通知,并判断该终端是否处于PSM,若该终端处于PSM,则获取该终端退出PSM的时间,并将该终端退出PSM的时间发送给SGW,以使SGW通过PGW将该终端退出PSM的时间指示给M2M服务器;而若服务网络节点确定该终端不处于PSM,则直接向该终端发送寻呼消息,使该终端建立该终端与SGW的连接,从而接收SGW转发的MT数据。
图2是本发明实施例提供的一种数据传输方法流程图,参见图2,该方法包括:
步骤201:M2M服务器向PGW发送MT数据,该MT数据中包括终端的地址信息。
具体地,该MT数据是由M2M服务器通过SGW和PGW发送给该终端的数据,且该MT数据中包括该终端的地址信息,该MT数据可以是控制信息,比如,若M2M服务器被应用于智能环境监控,则该MT数据可以是控制该终端调节环境参数的控制信息,当然,该MT数据还可以是M2M服务器需要发送给该终端的其它数据,本发明实施例对M2M服务器的应用场景和该MT数据的实际内容不作具体限定。
需要说明的是,该终端的地址信息可以是该终端的互联网协议(英文:Internet Protocol Address;简称:IP)地址,也可以是该终端的物理地址,本发明实施例对此不作具体限定。
步骤202:PGW接收M2M服务器发送的MT数据。
步骤203:PGW根据该终端的地址信息,获得在该PGW和SGW之间为该终端建立的隧道的隧道标识。
具体地,该PGW可以根据该终端的地址信息,从预设置的地址信息与隧道标识之间的对应关系中,获取与该终端的地址信息对应的隧道标识,将获取的隧道标识确定为在该SGW和PGW之间为该终端建立的隧道的隧道标识。
步骤204:PGW根据该隧道标识和该MT数据,获得第一数据包,该第一 数据包包含该隧道标识和该MT数据。
其中,该M2M服务器一般以报文的形式发送该MT数据,因此,该PGW可以将该隧道标识添加在该MT数据的报文中,获得第一数据包,当然,在实际应用中,该PGW还可以通过其它方式来获得第一数据包,本发明实施例对此不作具体限定。
步骤205:PGW将该第一数据包发送给该SGW。
步骤206:SGW接收PGW发送的第一数据包。
步骤207:SGW根据该隧道标识,获得连接标识。
其中,该连接标识用于指示在该SGW和服务网络节点之间为该终端建立的信令连接。
由于通过服务网络节点进行数据交互的终端较多,因此,为了使该服务网络节点能够查找到该终端,该SGW可以根据该隧道标识,获得该SGW与服务网络节点之间的连接标识。
步骤208:SGW向该服务网络节点发送下行数据通知,该下行数据通知中携带该连接标识。
由于SGW向终端发送MT数据需要通过服务网络节点建立该SGW与该终端之间的连接,因此,SGW接收该MT数据,可以向服务网络节点发送下行数据通知,该下行数据通知中携带该连接标识,因此该服务网络节点可以基于该下行数据通知中的该连接标识判断该终端是否处于PSM。
步骤209:服务网络节点接收SGW发送的下行数据通知,该下行数据通知携带连接标识。
步骤210:若该服务网络节点基于该连接标识确定该终端处于省电模式PSM,则该服务网络节点向该SGW发送下行数据响应消息,该下行数据响应消息中携带退出时间指示信息,该退出时间指示信息用于指示该终端退出PSM的时间。
具体地,该服务网络节点从该下行数据通知中获得该连接标识,根据该连接标识,获取该终端的上下文,从该终端的上下文中,获取该终端的状态信息,该状态信息用于指示该终端当前所处的状态,若该状态信息指示该终端当前处于睡眠状态,则确定该终端处于该PSM,若该状态信息指示该终端当前不处于睡眠状态,则确定该终端不处于该PSM。
其中,上述根据该连接标识,获取该终端的上下文,具体可以从存储的上 下文列表中获取,还可以从外部设备获取,此处不予限制。
若服务网络节点确定终端处于PSM,则确定该终端无法接收该MT数据,此时,服务网络节点可以向SGW发送下行数据响应消息。另外,为了使M2M服务器获知该终端退出PSM的时间,若该终端退出PSM,则向该终端发送MT数据,服务网络节点还可以获取该终端退出PSM的时间,并基于该终端退出PSM的时间,生成退出时间指示信息,在该下行数据响应消息中携带该退出时间指示信息。
步骤211:SGW接收该服务网络节点发送的下行数据响应消息。
步骤212:SGW向该M2M服务器发送下行数据失败报文,该下行数据失败报文携带该退出时间指示信息。
由于该终端处于PSM且无法接收MT数据,因此,SGW可以向M2M服务器发送下行数据失败报文,该下行数据报文用于说明该MT数据发送失败,同时为了使M2M服务器能够在该终端退出PSM时重新发送该MT数据,SGW可以在该下行数据失败报文中携带该退出时间指示信息。
步骤213:M2M服务器接收携带有退出时间指示信息的下行数据失败报文,下行数据失败报文用于指示所述MT数据发送失败。
若M2M服务器接收到该下行数据失败报文,则确定该MT数据发送失败,因此,M2M服务器需要确定该终端何时退出PSM,若该终端退出PSM,则通过SGW和PGW向该终端发送该MT数据,以使该终端可以及时收到MT数据。
步骤214:若基于该退出时间指示信息确定该终端退出PSM,则M2M服务器将该MT数据发送给该终端。
若M2M服务器确定该终端退出PSM,则确定该终端此时可以收到该MT数据,因此,M2M服务器将该MT数据发送给该终端。
在本发明实施例中,若M2M服务器向终端发送MT数据,则M2M服务器可以直接向PGW发送该MT数据,该PGW接收该MT数据,将该MT数据发送给SGW,SGW接收该MT数据,基于服务网络节点来确定该终端是否处于PSM,而若服务网络节点确定该终端处于PSM则,可以获取该终端退出PSM的时间,并通过SGW发送将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则通过SGW和PGW重新向终端发送MT数据,从 而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端退出PSM,并通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。
图3是本发明实施例提供的一种数据传输方法流程图,参见图3,该方法包括:
步骤301:M2M服务器向PGW发送MT数据,该MT数据中包括终端的地址信息。
在智能抄表、智能停车、智能环境监控等基于LPWA的M2M通信中,终端可以根据不同的应用场景采集数据,基于采集的数据生成MO数据,并将该MO数据发送M2M服务器,若M2M服务器接收到终端发送的MO数据,则可以根据需求向终端发送MT数据,该MT数据中包括终端的地址信息。而若终端向M2M服务器发送MO数据,则先将该MO数据发送给SGW,然后由SGW将该MO数据发送给PGW,该PGW将该MO数据转发给M2M服务器。并且若M2M服务器向该终端发送MT数据,则也先将该MT数据发送给PGW,然后由PGW将该MT数据发送给SGW,该SGW将该MT数据转发给该终端。也即是,SGW和PGW为该终端与M2M服务器之间进行数据交互的中转设备。
另外,该MO数据为该终端通过SGW和PGW发送给M2M服务器的数据,且该MO数据可以是该终端根据不同的应用场景采集的数据,比如,若该终端被应用于智能抄表,则该MO数据可以是抄表数据;若该终端被应用于智能停车,则该MO数据可以是车位占用信息或车位空闲信息;若该终端被应用于智能环境监控,则该MO数据可以是环境指数等,当然,该MO数据还可以是该终端需要发送给M2M服务器的其它数据,本发明实施例对该终端的应用场景和该MO数据的实际内容不作具体限定。
另外,该MT数据为M2M服务器通过SGW和PGW发送给该终端的数据,且该MT数据中包括该终端的地址信息,该MT数据可以是控制信息,比如,若M2M服务器被应用于智能环境监控,则该MT数据可以是控制该终端调节环境参数的控制信息,当然,该MT数据还可以是M2M服务器需要发送给该终端的其它数据,本发明实施例对M2M服务器的应用场景和该MT数据的实 际内容不作具体限定。
需要说明的是,该终端的地址信息可以是该终端的IP地址,也可以是该终端的物理地址,本发明实施例对此不作具体限定。
步骤302:PGW接收到该MT数据,向SGW发送该第一数据包,该一数据包包含隧道标识和该MT数据。
其中,该隧道标识为在该SGW和PGW之间为该终端建立的隧道的标识,且该隧道标识是基于该终端的地址信息获取得到。
具体地,该PGW接收M2M服务器发送的MT数据,该PGW根据该终端的地址信息,获得在该SGW和PGW之间为该终端建立的隧道的隧道标识,该PGW根据该隧道标识和该MT数据,获得第一数据包,该第一数据包包含该隧道标识和该MT数据,该PGW将该第一数据包发送给该SGW。
其中,该PGW根据该终端的地址信息,获得该SGW和PGW之间为该终端建立的隧道的隧道标识,该PGW可以根据该终端的地址信息,从存储的地址信息与隧道标识之间的对应关系中,获取与该终端的地址信息对应的隧道标识,将获取的隧道标识确定为在该SGW和PGW之间为该终端建立的隧道的隧道标识。
需要说明的是,PGW中存储的地址信息与隧道标识之间的对应关系可以在该终端初次接入网络时建立,也即是,若该终端初次接入网络,则可以根据该终端的地址信息,在该SGW和PGW之间为该终端建立的隧道,并将该终端的地址信息和建立的隧道的隧道标识存储在地址信息与隧道标识之间的对应关系中。
其中,在实际应用中,若该终端初次接入网络,则根据该终端的地址信息,在该SGW和PGW之间为该终端建立的隧道的方法可以参考相关技术,本发明实施例对此不作详细阐述。
还需要说明的是,该M2M服务器发送该MT数据一般以报文的形式发送,因此,该PGW可以将该隧道标识添加在该MT数据的报文中,获得第一数据包,当然,在实际应用中,该PGW还可以通过其它方式来获得第一数据包,本发明实施例对此不作具体限定。
例如,该PGW存储的隧道标识与地址信息之间的对应关系如表1所示,当该PGW接收到MT数据,并根据该MT数据获得该终端的地址信息为地址信息1,基于该地址信息1,从表1所示的隧道标识与地址信息之间的对应关 系中获得该隧道标识为隧道标识1。
表1
地址信息 隧道标识
地址信息1 隧道标识1
地址信息2 隧道标识2
地址信息3 隧道标识3
地址信息4 隧道标识4
…… ……
需要说明的是,在本发明实施例中,仅以上述表1所示的地址信息与隧道标识之间的对应关系为例进行说明,上述表1并不对本发明实施例构成限定。
步骤303:该SGW接收该第一数据包,根据该隧道标识,获得该SGW与服务网络节点之间的连接标识,向该服务网络节点发送下行数据通知,该下行数据通知中携带该连接标识,该连接标识用于指示在该SGW和服务网络节点之间为该终端建立的信令连接。
由于SGW向终端发送MT数据需要通过服务网络节点建立该SGW与该终端之间的连接,因此,若SGW接收到该MT数据,则可以向服务网络节点发送下行数据通知。
其中,由于通过服务网络节点进行数据交互的终端较多,因此,为了使该服务网络节点能够查找到该终端,该SGW可以根据该隧道标识,获得该SGW与服务网络节点之间的连接标识,之后,该SGW可以向该服务网络节点发送下行数据通知,该下行数据通知中携带该连接标识,因此该服务网络节点可以基于该下行数据通知中的该连接标识判断该终端是否处于PSM。
需要说明的是,若该SGW和服务网络节点之间为该终端建立信令连接,则该SGW可以将该隧道标识和该连接标识存储在隧道标识和连接标识之间的对应关系中,进而若该SGW从第一数据包获得该隧道标识,则可以根据该隧道标识,从隧道标识和连接标识之间的对应关系中获得该连接标识,当然,在实际应用中,该SGW还可以通过其它方式来根据该隧道标识获得该连接标识,本发明实施例对此不作具体限定。
例如,该SGW存储的隧道标识和连接标识之间的对应关系如表2所示,当该SGW从第一数据包获得该隧道标识为隧道标识1时,根据该隧道标识1,从隧道标识和连接标识之间的对应关系中获得该连接标识为连接标识1。
表2
隧道标识 连接标识
隧道标识1 连接标识1
隧道标识2 连接标识2
隧道标识3 连接标识3
隧道标识4 连接标识4
…… ……
需要说明的是,在本发明实施例中,仅以上述表2所示的隧道标识和连接标识之间的对应关系为例进行说明,上述表2并不对本发明实施例构成限定。
步骤304:服务网络节点接收该下行数据通知,判断该终端是否处于PSM。
为了省电,该终端在空闲时会进入PSM,并且只有需要发送MO数据或者进行周期性TAU或RAU时才会退出PSM。由于终端进入PSM时无法接收MT数据,且只有该终端退出PSM才能接收MT数据,因此,当服务网络节点接收到该下行数据通知时,可以先确定该终端是否处于PSM。
具体地,该服务网络节点判断该终端是否处于PSM的操作可以为:该服务网络节点从该下行数据通知中获得该连接标识,根据该连接标识,从存储的上下文列表中,获取该终端的上下文,从该终端的上下文中,获取该终端的状态信息,该状态信息用于指示该终端当前所处的状态,若该状态信息指示该终端当前处于睡眠状态,则确定该终端处于该PSM,若该状态信息指示该终端当前不处于睡眠状态,则确定该终端不处于该PSM。
需要说明的是,由于该终端会在不同的情况下进入不同的状态,为了使该服务网络节点能够在接收到下行数据通知时快速确定终端当前所处的状态,该服务网络节点可以实时地获得该终端的状态信息,将该状态信息存储该终端的上下文中,并将该上下文存储在上下文列表中,且该上下文列表中可以存储终端的标识和上下文之间的对应关系,因此,若该服务网络节点收到该下行数据通知,则可以从该下行数据通知中获得该连接标识,并基于该连接标识获得该终端的标识,进而基于该终端的标识,从存储的终端的标识和上下文之间的对 应关系中获得该终端的上下文,从该上下文中获得该状态信息。当然,该服务网络节点还可以存储连接标识和上下文的对应关系,若该服务网络节点从该下行数据通知中获得该连接标识,则直接基于该连接标识获得该终端的上下文,减少了根据该连接标识获得终端的标识这一过程,提高了该服务网络节点的工作效率。
还需要说明的是,该终端的标识用于唯一标识该终端,比如,该终端的标识可以为该终端的移动设备国际身份码(英文:International Mobile Equipment Identity;简称:IMEI)、序列号等,本发明实施例对此不作具体限定。
其中,上述根据该连接标识,获取该终端的上下文,具体可以从存储的上下文列表中获取,还可以从外部设备获取,此处不予限制。
另外,该服务网络节点基于该连接标识获得该终端的标识的操作可以为:该服务网络节点可以基于连接标识,从存储的连接标识和终端的标识之间的对应关系获得该终端的标识,当然,在实际应用中,该服务网络节点基于该连接标识获取到该终端的标识的方法还可以参考相关技术,本发明实施例对此不再一一赘述。
其中,该服务网络节点和该SGW之间为该终端建立信令连接,可以将该连接标识和该终端的标识存储在连接标识和终端的标识之间的对应关系中,而具体的操作可以参考相关技术,本发明实施例对此不做详细阐述。
还需要说明的是,由于该终端的状态可以包括空闲状态、连接状态和睡眠状态,因此,为了指示该终端当前所处的状态,该状态信息可以用一个字符或者字符串表示,比如,可以用字符a表示该终端处于连接状态,用字符b表示空闲状态,用字符c标识睡眠状态,当然该状态信息还可以用其它形式表示,本发明实施例对此状态信息的表示形式不作具体限定。
还需要说明的是,该上下文中包括该状态信息,当然,在实际应用中,该上下文还可以包括该终端的其它信息,比如该终端的能力配置信息等信息,本发明实施例对此不作具体限定。
例如,若服务网络节点接收到下行数据通知,则该服务网络节点基于该下行数据通知获取到连接标识1,根据该连接标识1确定终端的标识为ID1,从如下表3所示的对应关系中,获得该终端的上下文为上下文1,根据该上下文1获得该终端的状态信息,当服务网络节点获得的该状态信息为c,则确定该终端处于睡眠状态,可以确定该终端处于PSM。
表3
终端的标识 上下文
ID1 c
ID2 a
ID3 c
ID4 b
…… ……
需要说明的是,在本发明实施例中,仅以上述表3所示的终端的标识与上下文之间的对应关系为例进行说明,上述表3并不对本发明实施例构成限定。
步骤305:如果该终端处于PSM,服务网络节点向SGW发送下行数据响应消息,该下行数据响应消息中携带该终端退出该PSM的退出时间指示信息。
若服务网络节点确定终端处于PSM,则确定该终端无法接收该MT数据,此时,服务网络节点可以向SGW发送下行数据响应消息。另外,为了使M2M服务器获知该终端退出PSM的时间,若该终端退出PSM,则向该终端发送MT数据,服务网络节点还可以获取该终端退出PSM的时间,并基于该终端退出PSM的时间,生成退出时间指示信息,在该下行数据响应消息中携带该退出时间指示信息。
其中,该退出时间指示信息用于指示该终端退出PSM的时间,且该终端退出PSM的时间为该终端进行下一次TAU或RAU的更新时间,该终端退出该PSM的时间可以是该终端退出该PSM的时刻,也可以是该终端从当前时间到退出所述PSM的时长,本发明实施例对此不作具体限定。
需要说明的是,当该终端退出PSM的时间是该终端退出该PSM的时刻时,服务网络节点可以统计该终端在当前周期的上一个周期TAU或RAU更新完成时的时刻,并基于该终端的标识,从存储的终端的标识、指定空闲时长与指定更新时长之间的对应关系中,获取对应的指定更新时长,并将该更新完成时刻与获取的指定更新时长相加,得到该终端在当前周期进行TAU或RAU的更新时刻,将该更新时刻确定为该终端退出该PSM的时刻;或者,该服务网络节点也可以在当前周期的上一周期TAU或RAU更新完成时开始计时,统计该终端进行TAU或RAU的指定更新时长的剩余时长,若该服务网络节点接收到下行数据通知并确定该终端处于PSM,则获取该服务网络节点当前的系统时刻, 然后将该剩余时长与该系统时刻相加,得到该终端在当前周期进行TAU或RAU的更新时刻,将该更新时刻确定为该终端退出该PSM的时刻。
还需要说明的是,由于M2M服务器、服务网络节点、SGW、PGW和终端等设备识别时间的方式与用户识别时间的方式不同,因此,若该服务网络节点获取该终端退出PSM的时间,则需要将该时间转换为设备可以识别的时间,将转换后的时间确定为该终端退出PSM的退出时间指示信息。或者,该服务网络节点还可以基于该终端退出PSM的时间,确定对应的时间戳,将确定的时间戳确定为该终端退出PSM的退出时间指示信息。当然,服务网络节点还可以通过其它形式来生成该退出时间指示信息,本发明实施例对此不作具体限定。
另外,将该时间转换为时间指示信息的方法可以参考相关技术,本发明实施例对此不再一一赘述。
例如,当服务网络节点确定该终端处于PSM时,服务网络节点获取当前周期的上一个周期TAU或RAU更新完成时的时刻为2015年11月11日3时0分0秒,并基于该终端的标识,从存储的终端的标识、指定空闲时长与指定更新时长之间的对应关系中,获取对应的指定更新时长为24小时,服务网络节点将获取的时刻和指定更新时长相加,得到该终端在当前周期进行TAU或RAU的更新时刻为2015年11月12日3时0分0秒,进而服务网络节点将该2015年11月12日3时0分0秒确定为该终端退出PSM的时间,并基于该终端退出PSM的时间生成退出时间指示信息,向该SGW发送下行数据响应消息,并在该下行数据响应消息中携带该退出时间指示信息。
需要说明的是,在本发明实施例中,服务网络节点向SGW发送的下行数据响应消息中还可以携带该连接标识,本发明实施例对此不做具体限定。
另外,由前述可知,该服务网络节点可以存储连接标识和终端的标识之间的对应关系,因此,若该服务网络节点确定该终端处于PSM,向SGW发送下行数据响应消息,则可以根据该终端的标识,从该连接标识和终端的标识之间的对应关系获得该连接标识,并将该连接标识携带该下行数据响应消息中。
步骤306:SGW接收到该下行数据响应消息,向M2M服务器发送下行数据失败报文,该下行数据失败报文中携带该退出时间指示信息。
由于该终端处于PSM且无法接收MT数据,因此,SGW可以向M2M服务器发送下行数据失败报文,该下行数据报文用于说明该MT数据发送失败, 同时为了使M2M服务器能够在该终端退出PSM时重新发送该MT数据,SGW可以在该下行数据失败报文中携带该退出时间指示信息。
需要说明的是,该MT数据可以由M2M服务器以报文的形式发送,该MT数据的报文类型可以是互联网协议v4(英文:Internet Protocol version 4;简称:IPv4),也可以是互联网协议v6(英文:Internet Protocol version 6;简称:IPv6),两者之间不兼容。
还需要说明的是,该下行数据失败报文可以由该SGW以报文的形式发送,该报文的类型可以是互联网控制报文协议v4(英文:Internet Control Message Protocol version 4;简称:ICMPv4)或者互联网控制报文协议v6(英文:Internet Control Message Protocol version 6;简称:ICMPv6)。其中,ICMPv4和ICMPv6两者之间不兼容。
还需要说明的是,由于现有技术中SGW发送的下行数据失败报文中有32bit的预留空间未使用,因此,SGW可以将该退出时间指示信息携带在该32bit的预留空间中。
另外,SGW向M2M服务器发送下行数据失败报文的操作可以为:SGW可以根据该下行数据失败报文和隧道标识,获得第二数据包,并将该第二数据包发送给PGW,当PGW接收到第二数据包时,从该第二数据包中获得下行数据失败报文,并向该M2M服务器发送下行数据失败报文。
其中,当该SGW通过PGW将该下行数据失败报文发送给M2M服务器时,由于该服务网络节点可以在该下行数据响应消息中携带该连接标识,因此,若该SGW接收到该下行数据响应消息,则生成下行数据失败报文,并基于该连接标识获得该隧道标识,基于该隧道标识和下行数据失败报文获得第二数据包,并将该第二数据包发送给PGW,使PGW在接收到第二数据包时可以获得下行数据失败报文,并将该下行数据失败报文发送给M2M服务器。
还需要说明的是,由前述可知,该SGW可以存储隧道标识和连接标识的对应关系,因此,若SGW接收到该下行数据响应消息,则可以从该下行数据响应消息中获得该连接标识,并基于该连接标识,从存储的隧道标识和连接标识的对应关系中获得该隧道标识。
还需要说明的是,若该SGW根据该隧道标识和该下行数据失败报文获得该第二数据包,则可以将该隧道标识添加在该下行数据失败报文中,当然,在实际应用中,该SGW根据该隧道标识和该下行数据失败报文获得该第二数据 包的过程也可以参考相关技术,本发明实施例对此不再一一赘述。
另外,若SGW确定该终端处于PSM,则SGW可以丢弃该MT数据,当然,若SGW的存储空间较大则SGW也可以不用丢弃该MT数据,本发明实施例对此不做具体限定。
步骤307:M2M服务器接收该下行数据失败报文,若基于该退出时间指示信息确定该终端退出PSM,则将该MT数据发送给该终端。
若M2M服务器接收到该下行数据失败报文,则确定该MT数据发送失败,因此,M2M服务器需要确定该终端何时退出PSM,若该终端退出PSM,则通过SGW和PGW向该终端发送该MT数据,以使该终端可以及时收到MT数据。由于该终端可以是在发送MO数据时退出PSM,也可以是在进行周期性TAU或RAU时退出PSM,因此M2M服务器基于该退出时间指示信息确定该终端退出PSM时,可以判断该终端退出PSM的时间是否达到,如果该终端退出PSM的时间到达,且在该终端处于PSM的时间段之内未接收到该终端的MO数据,则确定该终端退出PSM,如果该终端退出PSM的时间未到达,且接收到该终端的MO数据,则确定该终端退出该PSM。
由于上述步骤306中提到,SGW可以将M2M服务器上一次发送的MT数据丢弃,也可以不丢弃,且不管SGW丢弃该MT数据还是不丢弃该MT数据,SGW都可以与M2M服务器进行事先约定,从而使M2M服务器获知SGW是否已丢弃该MT数据,因此,若M2M服务器指示SGW将该MT数据发送给该终端,且SGW未丢弃M2M服务器上一次发送的MT数据,则该M2M服务器可以直接通过PGW向SGW送一个指示信息,使SGW直接将M2M服务器上一次发送的MT数据转发给该终端,而如果SGW已丢弃M2M服务器上一次发送的MT数据,则该M2M服务器可以重新通过PGW向SGW发送MT数据,由SGW将该MT数据转发给该终端。
其中,M2M服务器基于该退出时间指示信息和接收MO数据的时间,就可以确定该终端是否退出PSM,无需再对该终端进行监控,提高了M2M服务器发送MT数据的灵活性,进而提高了工作效率。
需要说明的是,SGW将M2M服务器重新发送的MT数据转发给该终端的方法与将M2M服务器第一次发送的MT数据转发给该终端的方法相同,本发明实施例对此不再进行详细阐述。
例如,M2M服务器接收到该下行数据失败报文,假如该报文中携带的退 出时间指示信息所指示的时间为2015年11月12日3时0分0秒,而若M2M服务器在2015年11月12日0时30分0秒时接收到该终端发送的MO数据,确定该终端退出PSM的时间未到达且接收到该终端的MO数据,进而确定该终端退出PSM,并通过SGW和PGW向该终端发送MT数据。
在本发明实施例中,若M2M服务器向终端发送MT数据,则M2M服务器可以直接向PGW发送该MT数据,该PGW接收该MT数据,将该MT数据发送给SGW,SGW接收该MT数据,可以基于服务网络节点来确定该终端是否处于PSM,而若服务网络节点确定该终端处于PSM,则可以获取该终端退出PSM的时间,并通过SGW发送将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则通过SGW和PGW重新向终端发送MT数据,从而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端退出PSM通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。
在本发明的另一实施例中,由于该终端若获取到MO数据,则可以与服务网络节点建立网络连接,并基于该网络连接通过服务网络节点建立该终端与SGW之间的连接,并通过SGW将该MO数据发送给M2M服务器,并且若该终端进行周期性的TAU或RAU,则该终端也可以与服务网络节点建立网络连接,基于该网络连接执行周期性TAU或RAU过程,也即是,若该终端发送MO数据或者进行周期性TAU或RAU,则该终端都需要与服务网络节点建立网络连接,进入连接状态,并在该终端发送MO数据以及进行周期性TAU或RAU之后,该终端可以断开与服务网络节点之间的网络连接并进入空闲状态。因此,在该终端发送MO数据或者进行周期性TAU或RAU之后,该终端可以统计进入空闲状态的空闲时长,如果该空闲时长达到指定空闲时长,为了节省该终端的电量,该终端可以进入睡眠状态,进而进入PSM。同时,该终端进入PSM之后,还可以对该终端最近一次进行周期性TAU或RAU完成之后的时间进行统计,得到更新时长,判断该更新时长是否达到指定更新时长,若该更新时长达到指定更新时长,则该终端可以退出PSM并进行周期性TAU或RAU。
另外,由于该终端在进行周期性TAU或RAU或者发送MO数据时需要和服务网络节点建立网络连接,进入连接状态,并在周期性TAU或RAU或者发送MO数据之后会断开与服务网络节点之间的网络连接,进入空闲状态,因此,服务网络节点若断开与终端之间的网络连接,则开始统计该终端进入空闲状态的空闲时长。进而在上述步骤304服务网络节点获取该终端的上下文之前,服务网络节点可以判断与该终端之间的网络连接是否断开或者判断该空闲时长是否达到指定空闲时长,如果服务网络节点与该终端之间的网络连接未断开时,则确定该终端处于连接状态,如果服务网络节点与该终端之间的网络连接已断开,但该空闲时长未达到指定空闲时长,则确定该终端处于空闲状态,如果服务网络节点与该终端之间的网络连接已断开且该空闲时长达到指定空闲时长,则服务网络节点可以确定该终端处于睡眠状态,进而实时地基于该终端当前所处的状态确定该终端的状态信息,并将该终端的状态信息存储在该终端的上下文中。
其中,该终端初次连接到服务网络节点时或者进行TAU或RAU重新选择服务网络节点,将该终端的能力配置信息发送给服务网络节点,由该服务网络节点基于该能力配置信息和本地配置数据或者签约数据确定该终端进入空闲状态的指定空闲时长和该终端进行周期性TAU或RAU的指定更新时长,并将该指定空闲时长和指定更新时长发送给该终端。
需要说明的是,该终端和服务网络节点统计该终端进入空闲状态的空闲时长时,可以通过计时器来统计,当然,还可以通过其他方式进行统计,本发明实施例对此不做具体限定。另外,该终端统计进行周期性TAU或RAU之后的更新时长时,可以通过定时器来判断,当然还可以通过其它方式来判断,本发明实施例同样对此不做具体限定。
例如,服务网络节点接收终端发送的能力配置信息,基于能力该配置信息和本地配置信息或者签约信息确定该终端的指定空闲时长为30秒、指定更新时长为24小时,该服务网络节点将该指定空闲时长和该指定更新时长发送给该终端。假如该终端的标识为ID1,则服务网络节点还可以将该终端的标识、该终端的指定空闲时长和指定更新时长,存储在如下表4所示的终端的标识、指定空闲时长与指定更新时长之间的对应关系中。若服务网络节点确定该终端的状态信息,服务网络节点确定与该终端之间的网络连接已断开,则服务网络节点可以基于该终端的标识ID1,从如下表3所示的对应关系中,获取该终端 的指定空闲时长为30秒,假如服务网络节点统计的空闲时长为35秒,则服务网络节点确定统计的空闲时长达到该指定空闲时长,确定该终端处于睡眠状态,且确定该终端的状态信息为c,进而将该终端的状态信息存储在该终端的上下文中,也即是,基于该终端的标识,从如表3所示的终端的标识和上下文的对应关系中,获取该终端的上下文,并将该终端的状态信息存储在获取的上下文中。
表4
终端的标识 指定空闲时长 指定更新时长
ID1 30秒 24小时
ID2 60秒 15小时
ID3 30秒 30小时
ID4 100秒 25小时
…… …… ……
需要说明的是,在本发明实施例中,仅以上述表4所示的终端的标识、指定空闲时长与指定更新时长之间的对应关系为例进行说明,上述表4并不对本发明实施例构成限定。
可选地,在上述步骤305中,当该终端退出PSM的时间是该终端从当前时间到退出PSM的时长时,该服务网络节点可以在当前周期的上一周期TAU或RAU更新完成时开始计时,统计该终端进行TAU或RAU的指定更新时长的剩余时长,若该服务网络节点接收到下行数据通知并确定该终端处于PSM,则将该剩余时长作为该终端从当前时间到退出PSM的时长;或者,该服务网络节点可以在当前周期的上一周期TAU或RAU更新完成时开始计时,统计该终端从当前周期的上一周期TAU或RAU更新完成至当前时间的时长,若该服务网络节点接收到下行数据通知并确定该终端处于PSM,则获取该终端进行TAU或RAU的指定更新时长,将该指定更新时长减去统计的时长,得到该终端进行TAU或RAU的指定更新时长的剩余时长,将该剩余时长作为该终端从当前时间到退出PSM的时长。
可选地,在上述步骤306中,由于该M2M服务器发送MT数据可以使用IPv6,也可以使用IPv4,且由于IPv6和IPv4不兼容,而若该M2M服务器发送的MT数据使用的报文协议是IPv6,则该M2M服务器可以识别ICMPv6的 报文、不能识别报文协议为ICMPv4的报文。若该M2M服务器发送的MT数据使用的报文协议为IPv4,则该M2M服务器可以识别报文协议为ICMPv4的报文,不能识别报文协议为ICMPv6的报文。因此,若通SGW通过PGW向M2M服务器发送的下行数据失败报文的报文类型与M2M服务器发送的MT数据的报文类型不匹配,则M2M服务器可能无法识别该下行数据失败报文,因此,为了确保M2M服务器能够识别SGW发送该下行数据失败报文,SGW可以获取该MT数据的报文类型,并向M2M服务器发送与MT数据的报文类型匹配的下行数据失败报文。以保证M2M服务器能够识别该下行数据失败报文,提高工作效率。
可选地,在上述步骤307中,该PGW也可以通过与M2M服务器事先约定,确定该PGW是否在根据MT数据获得第一数据包时存储该MT数据的复制版本,如果该PGW存储了该MT数据的复制版本,若该M2M服务器确定该MT数据发送失败且SGW丢弃了该MT数据,则向该PGW发送指示信息,使该PGW根据该MT数据的复制版本,重新获得第一数据包,并将该第一数据包发送给SGW,该M2M服务器可以不必重复发送该MT数据,减轻了该M2M服务器的工作负担。
在本发明的另一实施例中,服务网络节点在步骤304中判断出该终端处于PSM时,服务网络节点向该终端发送寻呼消息,使该终端建立与SGW之间的连接,并通过该连接接收MT数据。
具体地,若服务网络节点确定该终端不处于PSM,为了保证该终端能够及时接收到MT数据,服务网络节点可以向该终端发送寻呼消息;若该终端接收到该寻呼消息,则通过服务网络节点向SGW发送连接建立请求;若SGW接收到该连接建立请求,则通过服务网络节点向该终端发送连接建立响应,从而建立该终端与SGW之间的连接。之后,SGW可以向终端发送该MT数据。
需要说明的是,该寻呼消息可以与下行数据通知相同,当然,该寻呼消息也可以与下行数据通知不同,也即是,服务网络节点在确定该终端退出PSM时,不仅可以将SGW发送的下行数据通知作为寻呼消息发送给该终端,还可以重新生成一个寻呼消息并发送给该终端,本发明实施例对此不做具体限定。
图4是本发明实施例提供的一种M2M服务器的结构示意图,参见图4,该M2M服务器包括第一发送模块401、接收模块402、第二发送模块403。
第一发送模块401,用于向PGW发送MT数据,该MT数据中包括终端的地址信息;
接收模块402,用于接收携带有退出时间指示信息的下行数据失败报文,该下行数据失败报文用于指示该MT数据发送失败,该退出时间指示信息用于指示该终端退出PSM的时间;
第二发送模块403,用于若基于该接收模块接收下行数据报文携带的退出时间指示信息确定该终端退出PSM,则将该MT数据发送给该终端。
可选地,第二发送模块403包括:
第一确定单元,用于若该终端退出PSM的时间到达,且在该终端处于所述PSM的时间段之内未接收到该终端的MO数据,则确定该终端退出该PSM。
可选地,第二发送模块403包括:
第二确定单元,用于若该终端退出该PSM的时间未到达,且该M2M服务器接收到该终端的MO数据,则确定该终端退出PSM。
需要说明的是,图4所示的M2M服务器具体可以用于执行图2或3中M2M服务器的步骤,不再赘述。
在本发明实施例中,若M2M服务器向终端发送MT数据,则M2M服务器可以直接向PGW送该MT数据,PGW接收该MT数据,将该MT数据发送给SGW,该SGW接收该MT数据,可以基于服务网络节点来确定该终端是否处于PSM,而若服务网络节点确定该终端处于PSM,则可以获取该终端退出PSM的时间并得到该退出时间指示信息,进而通过SGW和PGW就将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则重新向终端发送MT数据,从而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端退出PSM并通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。
图5是本发明实施例提供的一种PGW的结构示意图,参见图5,该PGW包括接收模块501、第一获得模块502、第二获得模块503和发送模块504。
接收模块501,用于接收M2M服务器发送的MT数据,该MT数据包括 终端的地址信息;
第一获得模块502,用于根据该接收模块接收的该终端的地址信息,获得在PGW和SGW之间为该终端建立的隧道的隧道标识;
第二获得模块503,用于根据该第一获得模块获得的该隧道标识和该MT数据,获得第一数据包,该第一数据包包含该隧道标识和该MT数据;
发送模块504,用于将该第二获得模块获得的该第一数据包发送给该SGW。
需要说明的是,图5所示的PGW具体可以用于执行图2或3中PGW的步骤,不再赘述。
在本发明实施例中,若M2M服务器向终端发送MT数据,则M2M服务器可以直接向PGW送该MT数据,PGW接收该MT数据,将该MT数据发送给SGW,该SGW接收该MT数据,可以基于服务网络节点来确定该终端是否处于PSM,而若服务网络节点确定该终端处于PSM,则可以获取该终端退出PSM的时间并得到该退出时间指示信息,进而通过SGW和PGW就将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则重新向终端发送MT数据,从而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端退出PSM并通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。
图6是本发明实施例提供的一种SGW的结构示意图,参见图6,该SGW包括第一接收模块601、获得模块602、第一发送模块603、第二接收模块604、第二发送模块605。
第一接收模块601,用于接收PGW发送的第一数据包,该第一数据包包含MT数据和隧道标识,该MT数据为M2M服务器向该PGW发送的数据,该MT数据包括终端的地址信息,该隧道标识用于指示在该PGW和之间为所述终端建立的隧道;
获得模块602,用于根据该第一接收模块接收的该隧道标识,获得连接标识,该连接标识用于指示在该SGW和服务网络节点之间为该终端建立的信令 连接;
第一发送模块603,用于向该服务网络节点发送下行数据通知,该下行数据通知中携带该获得模块获得的该连接标识;
第二接收模块604,用于接收该服务网络节点发送的下行数据响应消息,该下行数据响应消息携带退出时间指示信息,该退出时间指示信息用于指示该终端退出PSM的时间;
第二发送模块605,用于向该M2M服务器发送下行数据失败报文,该下行数据失败报文携带该第二接收模块接收的退出时间指示信息。
可选地,第二发送模块605包括:
获取单元,用于获取该MT数据的报文类型;
发送单元,用于向该M2M服务器发送与该获取单元获取的该报文类型相匹配的下行数据失败报文。
可选地,该服务网络节点包括MME或SGSN。
需要说明的是,图6所示的SGW具体可以用于执行图2或3中SGW的步骤,不再赘述。
在本发明实施例中,若M2M服务器向终端发送MT数据,则M2M服务器可以直接向PGW送该MT数据,PGW接收该MT数据,将该MT数据发送给SGW,该SGW接收该MT数据,可以基于服务网络节点来确定该终端是否处于PSM,而若服务网络节点确定该终端处于PSM,则可以获取该终端退出PSM的时间并得到该退出时间指示信息,进而通过SGW和PGW就将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则重新向终端发送MT数据,从而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端退出PSM并通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。
图7是本发明实施例提供的一种服务网络节点的结构示意图,参见图7,该服务网络节点包括接收模块701、发送模块702。
接收模块701,用于接收SGW发送的下行数据通知,该下行数据通知携 带连接标识,该连接标识用于指示在该SGW和该服务网络节点之间为该终端建立的信令连接;
发送模块702,用于若基于该接收模块接收的该连接标识确定该终端处于省电模式PSM,则向该SGW发送下行数据响应消息,该下行数据响应消息中携带退出时间指示信息,该退出时间指示信息用于指示该终端退出PSM的时间。
可选地,发送模块702包括:
第一获取单元,用于根据该接收模块接收的该连接标识,从存储的上下文列表中,获取该终端的上下文;
第二获取单元,用于从该第一获取单元获取的该终端的上下文中,获取该终端的状态信息,该状态信息用于指示该终端当前所处的状态;
确定单元,用于若该第二获取单元获取的该状态信息指示该终端当前处于睡眠状态,则确定该终端处于PSM的操作。
可选地,该终端退出该PSM的时间为该终端进行下一次TAU或RAU的更新时间。
可选地,该终端退出该PSM的时间为该终端退出该PSM的时刻,或者为该终端从当前时间到退出该PSM的时长。
可选地,该服务网络节点包括MME或SGSN。
需要说明的是,图7所示的服务网络节点具体可以用于执行图2或3中服务网络节点的步骤,不再赘述。
在本发明实施例中,若M2M服务器向终端发送MT数据,则M2M服务器可以直接向PGW送该MT数据,PGW接收该MT数据,将该MT数据发送给SGW,该SGW接收该MT数据,可以基于服务网络节点来确定该终端是否处于PSM,而若服务网络节点确定该终端处于PSM,则可以获取该终端退出PSM的时间并得到该退出时间指示信息,进而通过SGW和PGW就将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则重新向终端发送MT数据,从而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端退出PSM并通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务 器向终端发送MT数据的过程。
图8是本发明实施例提供的另一种M2M服务器示意图,参见图8,该M2M服务器包括:通信接口801、处理器802、存储器803、通信总线804,处理器802与存储器803通过该总线804连接;
存储器803,用于存储信息和数据;
处理器802,用于向PGW发送MT数据,该MT数据中包括终端的地址信息,其中,上述第一发送模块401可以包含在该处理器802中;
通信接口801,用于接收携带有退出时间指示信息的下行数据失败报文,该下行数据失败报文用于指示该MT数据发送失败,该退出时间指示信息用于指示该终端退出PSM的时间,其中,上述接收模块402可以包含于该通信接口801中;
处理器802,还用于若基于该通信接口801接收的该退出时间指示信息确定该终端退出该PSM,则将该MT数据发送给该终端,其中,上述第二发送模块403可以包含于该处理器802中。
可选地,处理器802还用于若该终端退出该PSM的时间到达,且在该终端处于该PSM的时间段之内未接收到该终端的MO数据,则确定该终端退出该PSM,其中,上述第二发送模块403中的第一确定单元可以包含于该处理器802中。
可选地,处理器802还用于若该终端退出该PSM的时间未到达,且该M2M服务器接收到该终端的MO数据,则确定该终端退出该PSM,其中,上述第二发送模块403中的第二确定单元可以包含于该处理器802中。
在本发明实施例中,若M2M服务器向终端发送MT数据,则M2M服务器可以直接向PGW送该MT数据,PGW在接收到该MT数据,将该MT数据发送给SGW,该SGW接收到该MT数据,可以基于服务网络节点来确定该终端是否处于PSM,而若服务网络节点确定该终端处于PSM,则可以获取该终端退出PSM的时间并得到该退出时间指示信息,进而通过SGW和PGW就将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则重新向终端发送MT数据,从而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端 退出PSM并通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。
图9是本发明实施例提供的另一种PGW示意图,参见图9,该PGW包括:通信接口901、处理器902、存储器903、通信总线904,处理器802与存储器903通过该总线904连接;
存储器903,用于存储信息和数据;
通信接口901,用于接收M2M服务器发送的MT数据,该MT数据包括终端的地址信息,其中,上述接收模块501可以包含于该通信接口901中;
处理器902,用于:
根据该通信接口901接收的该终端的地址信息,获得在PGW和SGW之间为该终端建立的隧道的隧道标识;
根据该隧道标识和该MT数据,获得第一数据包,该第一数据包包含该隧道标识和该MT数据,并将该第一数据包发送给该SGW;
其中,上述第一获得模块502、第二获得模块503和发送模块504可以包含于该处理器902中;
在本发明实施例中,若M2M服务器向终端发送MT数据,则M2M服务器可以直接向PGW送该MT数据,PGW在接收到该MT数据,将该MT数据发送给SGW,该SGW接收到该MT数据,可以基于服务网络节点来确定该终端是否处于PSM,而若服务网络节点确定该终端处于PSM,则可以获取该终端退出PSM的时间并得到该退出时间指示信息,进而通过SGW和PGW就将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则重新向终端发送MT数据,从而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端退出PSM并通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。
图10是本发明实施例提供的另一种SGW示意图,参见图10,该SGW包 括:第一通信接口1001、、第二通信接口1002、处理器1003、存储器1004、通信总线1005,处理器1003与存储器1004通过该总线1005连接;
存储器1004,用于存储信息和数据;
第一通信接口1001,用于接收PGW发送的第一数据包,该第一数据包包含MT数据和隧道标识,该MT数据为M2M服务器向该PGW发送的数据,该MT数据包括终端的地址信息,该隧道标识用于指示在该PGW和服务网关SGW之间为该终端建立的隧道,其中,上述第一接收模块601可以包含于该通信接口1001中;
处理器1003,用于
根据该第一通信接口1001接收的该隧道标识,获得连接标识,该连接标识用于指示在该SGW和服务网络节点之间为该终端建立的信令连接;
通过该第二通信接口1002向该服务网络节点发送下行数据通知,该下行数据通知中携带该连接标识;
其中,上述获得模块602和第一发送模块603可以包含于该处理器1003中;
第二通信接口1002,用于接收该服务网络节点发送的下行数据响应消息,该下行数据响应消息携带退出时间指示信息,该退出时间指示信息用于指示该终端退出PSM的时间,其中,上述第二接收模块604可以包含于该第二通信接口1002中;
处理器1003,还用于向该M2M服务器发送下行数据失败报文,该下行数据失败报文携带该退出时间指示信息,其中,第二发送模块605可以包含于该处理器1003中。
可选地,
处理器1003还用于获取该MT数据的报文类型,并向该M2M服务器发送与该报文类型相匹配的下行数据失败报文,其中,上述第二发送模块605中的获取单元和发送单元可以包含于该处理器1003中。
可选地,该服务网络节点包括MME或SGSN。
在本发明实施例中,若M2M服务器向终端发送MT数据,则M2M服务器可以直接向PGW送该MT数据,PGW在接收到该MT数据,将该MT数据发送给SGW,该SGW接收到该MT数据,可以基于服务网络节点来确定该终端是否处于PSM,而若服务网络节点确定该终端处于PSM,则可以获取该终 端退出PSM的时间并得到该退出时间指示信息,进而通过SGW和PGW就将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则重新向终端发送MT数据,从而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端退出PSM并通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。
图11是本发明实施例提供的另一种服务网络节点示意图,参见图11,该服务网络节点包括:通信接口1101、处理器1102、存储器1103、通信总线1104,处理器1102与存储器1003通过该总线1004连接;
存储器1103,用于存储信息和数据;
通信接口1101,用于接收SGW发送的下行数据通知,该下行数据通知携带连接标识,该连接标识用于指示在所述SGW和所述服务网络节点之间为所述终端建立的信令连接,其中,上述接收模块701可以包含于该通信接口1101中;
处理器1102,用于若基于该通信接口1101接收的该连接标识确定该终端处于PSM,则该服务网络节点向该SGW发送下行数据响应消息,该下行数据响应消息中携带退出时间指示信息,该退出时间指示信息用于指示该终端退出该PSM的时间,其中,上述发送模块702可以包含于该处理器1102中。
可选地,处理器1102还用于:
根据该连接标识,从存储的上下文列表中,获取该终端的上下文;
从该终端的上下文中,获取该终端的状态信息,该状态信息用于指示该终端当前所处的状态;
若所述状态信息指示该终端当前处于睡眠状态,则确定该终端处于所述PSM;
其中,上述发送模块702中的第一获取单元、第二获取单元和确定单元可以包含于该处理器1102中。
可选地,该终端退出该PSM的时间为该终端进行下一次TAU或RAU的更新时间。
可选地,该终端退出该PSM的时间为该终端退出该PSM的时刻,或者为该终端从当前时间到退出该PSM的时长。
可选地,该服务网络节点包括MME或SGSN。
在本发明实施例中,若M2M服务器向终端发送MT数据,则M2M服务器可以直接向PGW送该MT数据,PGW在接收到该MT数据,将该MT数据发送给SGW,该SGW接收到该MT数据,可以基于服务网络节点来确定该终端是否处于PSM,而若服务网络节点确定该终端处于PSM,则可以获取该终端退出PSM的时间并得到该退出时间指示信息,进而通过SGW和PGW就将该退出时间指示信息发送给M2M服务器。之后,M2M服务器可以基于该退出时间指示信息确定该终端是否退出PSM,若确定该终端退出PSM,则重新向终端发送MT数据,从而无需通过SCEF网元和HSS向服务网络节点发送监控请求,使服务网络节点监控该终端的状态,也无需服务网络节点监控到该终端退出PSM并通过SCEF网元向M2M服务器发送监控提示信息,节省了M2M服务器通过SCEF网元和HSS与服务网络节点进行交互的过程,简化了M2M服务器向终端发送MT数据的过程。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (36)

  1. 一种数据传输方法,其特征在于,所述方法包括:
    机器对机器M2M服务器向分组数据网关PGW发送移动台终止MT数据,所述MT数据中包括终端的地址信息;
    所述M2M服务器接收携带有退出时间指示信息的下行数据失败报文,所述下行数据失败报文用于指示所述MT数据发送失败,所述退出时间指示信息用于指示所述终端退出省电模式PSM的时间;
    若基于所述退出时间指示信息确定所述终端退出所述PSM,则所述M2M服务器将所述MT数据发送给所述终端。
  2. 如权利要求1所述的方法,其特征在于,所述基于所述退出时间指示信息确定所述终端退出所述PSM,包括:
    若所述终端退出所述PSM的时间到达,且在所述终端处于所述PSM的时间段之内未接收到所述终端的移动台发起MO数据,则确定所述终端退出所述PSM。
  3. 如权利要求1所述的方法,其特征在于,所述基于所述退出时间指示信息确定所述终端退出所述PSM,包括:
    若所述终端退出所述PSM的时间未到达,且所述M2M服务器接收到所述终端的MO数据,则确定所述终端退出所述PSM。
  4. 一种数据传输方法,其特征在于,所述方法包括:
    分组数据网关PGW接收机器对机器M2M服务器发送的移动台终止MT数据,所述MT数据包括终端的地址信息;
    所述PGW根据所述终端的地址信息,获得在所述PGW和服务网关SGW之间为所述终端建立的隧道的隧道标识;
    所述PGW根据所述隧道标识和所述MT数据,获得第一数据包,所述第一数据包包含所述隧道标识和所述MT数据;
    所述PGW将所述第一数据包发送给所述SGW。
  5. 一种数据传输方法,其特征在于,所述方法包括:
    服务网关SGW接收分组数据网关PGW发送的第一数据包,所述第一数据包包含移动台终止MT数据和隧道标识,所述MT数据为机器对机器M2M服务器向所述PGW发送的数据,所述MT数据包括终端的地址信息,所述隧道标识用于指示在所述PGW和所述SGW之间为所述终端建立的隧道;
    所述SGW根据所述隧道标识,获得连接标识,所述连接标识用于指示在所述SGW和服务网络节点之间为所述终端建立的信令连接;
    所述SGW向所述服务网络节点发送下行数据通知,所述下行数据通知中携带所述连接标识;
    所述SGW接收所述服务网络节点发送的下行数据响应消息,所述下行数据响应消息携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出省电模式PSM的时间;
    所述SGW向所述M2M服务器发送下行数据失败报文,所述下行数据失败报文携带所述退出时间指示信息。
  6. 如权利要求5所述的方法,其特征在于,所述SGW向所述M2M服务器发送下行数据失败报文,包括:
    获取所述MT数据的报文类型;
    向所述M2M服务器发送与所述报文类型相匹配的下行数据失败报文。
  7. 如权利要求5或6所述的方法,其特征在于,所述服务网络节点包括移动性管理实体MME或服务通用分组无线服务支持节点SGSN。
  8. 一种数据传输方法,其特征在于,所述方法包括:
    服务网络节点接收服务网关SGW发送的下行数据通知,所述下行数据通知携带连接标识,所述连接标识用于指示在所述SGW和所述服务网络节点之间为所述终端建立的信令连接;
    若所述服务网络节点基于所述连接标识,确定所述终端处于省电模式PSM,则所述服务网络节点向所述SGW发送下行数据响应消息,所述下行数据响应消息中携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出所述PSM的时间。
  9. 如权利要求8所述的方法,其特征在于,所述服务网络节点基于所述连接标识,确定所述终端处于省电模式PSM,包括:
    根据所述连接标识,获取所述终端的上下文;
    从所述终端的上下文中,获取所述终端的状态信息,所述状态信息用于指示所述终端当前所处的状态;
    若所述状态信息指示所述终端当前处于睡眠状态,则确定所述终端处于所述PSM。
  10. 如权利要求8或9所述的方法,其特征在于,所述终端退出所述PSM的时间为所述终端进行下一次跟踪区更新TAU或者路由区更新RAU的更新时间。
  11. 如权利要求8-10任一所述的方法,其特征在于,所述终端退出所述PSM的时间为所述终端退出所述PSM的时刻,或者为所述终端从当前时间到退出所述PSM的时长。
  12. 如权利要求8-11任一所述的方法,其特征在于,所述服务网络节点包括移动性管理实体MME或服务通用分组无线服务支持节点SGSN。
  13. 一种机器对机器M2M服务器,其特征在于,包括:
    第一发送模块,用于向分组数据网关PGW发送移动台终止MT数据,所述MT数据中包括终端的地址信息;
    接收模块,用于接收携带有退出时间指示信息的下行数据失败报文,所述下行数据失败报文用于指示所述MT数据发送失败,所述退出时间指示信息用于指示所述终端退出省电模式PSM的时间;
    第二发送模块,用于若基于所述接收模块接收的下行数据报文携带的退出时间指示信息确定所述终端退出所述PSM,则将所述MT数据发送给所述终端。
  14. 如权利要求13所述的M2M服务器,其特征在于,所述第二发送模块包括:
    第一确定单元,用于若所述终端退出所述PSM的时间到达,且在所述终端处于所述PSM的时间段之内未接收到所述终端的移动台发起MO数据,则确定所述终端退出所述PSM。
  15. 如权利要求13所述的M2M服务器,其特征在于,所述第二发送模块包括:
    第二确定单元,用于若所述终端退出所述PSM的时间未到达,且所述M2M服务器接收到所述终端的MO数据,则确定所述终端退出所述PSM。
  16. 一种分组数据网关PGW,其特征在于,包括:
    接收模块,用于接收机器对机器M2M服务器发送的移动台终止MT数据,所述MT数据包括终端的地址信息;
    第一获得模块,用于根据所述接收模块接收的所述终端的地址信息,获得在分组数据网关PGW和服务网关SGW之间为所述终端建立的隧道的隧道标识;
    第二获得模块,用于根据所述第一获得模块获得的所述隧道标识和所述MT数据,获得第一数据包,所述第一数据包包含所述隧道标识和所述MT数据;
    发送模块,用于将所述第二获得模块获得的所述第一数据包发送给所述SGW。
  17. 一种服务网关SGW,其特征在于,包括:
    第一接收模块,用于接收分组数据网关PGW发送的第一数据包,所述第一数据包包含移动台终止MT数据和隧道标识,所述MT数据为机器对机器M2M服务器向所述PGW发送的数据,所述MT数据包括终端的地址信息,所述隧道标识用于指示在所述PGW和服务网关SGW之间为所述终端建立的隧道;
    获得模块,用于根据所述第一接收模块接收的所述隧道标识,获得连接标识,所述连接标识用于指示在所述SGW和服务网络节点之间为所述终端建立的信令连接;
    第一发送模块,用于向所述服务网络节点发送下行数据通知,所述下行数据通知中携带所述获得模块获得的所述连接标识;
    第二接收模块,用于接收所述服务网络节点发送的下行数据响应消息,所 述下行数据响应消息携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出省电模式PSM的时间;
    第二发送模块,用于向所述M2M服务器发送下行数据失败报文,所述下行数据失败报文携带所述第二接收模块接收的所述退出时间指示信息。
  18. 如权利要求17所述的SGW,其特征在于,所述第二发送模块包括:
    获取单元,用于获取所述MT数据的报文类型;
    发送单元,用于向所述M2M服务器发送与所述获取单元获取的所述报文类型相匹配的下行数据失败报文。
  19. 如权利要求17或18所述的SGW,其特征在于,所述服务网络节点包括移动性管理实体MME或服务通用分组无线服务支持节点SGSN。
  20. 一种服务网络节点,其特征在于,包括:
    接收模块,用于接收服务网关SGW发送的下行数据通知,所述下行数据通知携带连接标识,所述连接标识用于指示在所述SGW和所述服务网络节点之间为所述终端建立的信令连接;
    发送模块,用于若基于所述接收模块接收的所述连接标识确定所述终端处于省电模式PSM,则向所述SGW发送下行数据响应消息,所述下行数据响应消息中携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出所述PSM的时间。
  21. 如权利要求20所述的服务网络节点,其特征在于,所述发送模块包括:
    第一获取单元,用于根据所述接收模块接收的所述连接标识,获取所述终端的上下文;
    第二获取单元,用于从所述第一获取单元获取的所述终端的上下文中,获取所述终端的状态信息,所述状态信息用于指示所述终端当前所处的状态;
    确定单元,用于若所述第二获取单元获取的所述状态信息指示所述终端当前处于睡眠状态,则确定所述终端处于所述PSM。
  22. 如权利要求20或21所述的服务网络节点,其特征在于,所述终端退 出所述PSM的时间为所述终端进行下一次跟踪区更新TAU或者路由区更新RAU的更新时间。
  23. 如权利要求20-22任一所述的服务网络节点,其特征在于,所述终端退出所述PSM的时间为所述终端退出所述PSM的时刻,或者为所述终端从当前时间到退出所述PSM的时长。
  24. 如权利要求20-23任一所述的服务网络节点,其特征在于,所述服务网络节点包括移动性管理实体MME或服务通用分组无线服务支持节点SGSN。
  25. 一种机器对机器M2M服务器,其特征在于,包括:
    处理器,用于向分组数据网关PGW发送移动台终止MT数据,所述MT数据中包括终端的地址信息;
    通信接口,用于接收携带有退出时间指示信息的下行数据失败报文,所述下行数据失败报文用于指示所述MT数据发送失败,所述退出时间指示信息用于指示所述终端退出省电模式PSM的时间;
    所述处理器,还用于若基于所述通信接口接收的所述退出时间指示信息确定所述终端退出所述PSM,则将所述MT数据发送给所述终端。
  26. 如权利要求25所述的M2M服务器,其特征在于,
    所述处理器,还用于若所述终端退出所述PSM的时间到达,且在所述终端处于所述PSM的时间段之内未接收到所述终端的移动台发起MO数据,则确定所述终端退出所述PSM。
  27. 如权利要求25所述的M2M服务器,其特征在于,
    所述处理器,还用于若所述终端退出所述PSM的时间未到达,且所述M2M服务器接收到所述终端的MO数据,则确定所述终端退出所述PSM。
  28. 一种分组数据网关PGW,其特征在于,包括:
    通信接口,用于接收机器对机器M2M服务器发送的移动台终止MT数据,所述MT数据包括终端的地址信息;
    处理器,用于根据所述通信接口接收的所述终端的地址信息,获得在分组数据网关PGW和服务网关SGW之间为所述终端建立的隧道的隧道标识;
    所述处理器,还用于根据所述隧道标识和所述MT数据,获得第一数据包,所述第一数据包包含所述隧道标识和所述MT数据,并将所述第一数据包发送给所述SGW。
  29. 一种服务网关SGW,其特征在于,包括:处理器,第一通信接口和第二通信接口;
    所述第一通信接口,用于接收分组数据网关PGW发送的第一数据包,所述第一数据包包含终端的地址信息和隧道标识,所述MT数据为机器对机器M2M服务器向所述PGW发送的数据,所述MT数据包括终端的地址信息,所述隧道标识用于指示在所述PGW和所述SGW之间为所述终端建立的隧道;
    处理器,用于根据所述第一通信接口接收的所述隧道标识,获得连接标识,所述连接标识用于指示在所述SGW和服务网络节点之间为所述终端建立的信令连接;
    所述处理器,还用于通过所述第二通信接口向所述服务网络节点发送下行数据通知,所述下行数据通知中携带所述连接标识;
    所述第二通信接口,还用于接收所述服务网络节点发送的下行数据响应消息,所述下行数据响应消息携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出省电模式PSM的时间;
    所述处理器,还用于通过所述第一通信接口向所述M2M服务器发送下行数据失败报文,所述下行数据失败报文携带所述退出时间指示信息。
  30. 如权利要求29所述的SGW,其特征在于,包括:
    所述处理器,还用于获取所述MT数据的报文类型,并向所述M2M服务器发送与所述报文类型相匹配的下行数据失败报文。
  31. 如权利要求29或30所述的SGW,其特征在于,所述服务网络节点包括移动性管理实体MME或服务通用分组无线服务支持节点SGSN。
  32. 一种服务网络节点,其特征在于,包括:
    通信接口,用于接收服务网关SGW发送的下行数据通知,所述下行数据通知携带连接标识,所述连接标识用于指示在所述SGW和所述服务网络节点之间为所述终端建立的信令连接;
    处理器,用于若基于所述通信接口接收的所述连接标识确定所述终端处于省电模式PSM,则向所述SGW发送下行数据响应消息,所述下行数据响应消息中携带退出时间指示信息,所述退出时间指示信息用于指示所述终端退出所述PSM的时间。
  33. 如权利要求32所述的服务网络节点,其特征在于,所述处理器还用于:
    根据所述连接标识,获取所述终端的上下文;
    从所述终端的上下文中,获取所述终端的状态信息,所述状态信息用于指示所述终端当前所处的状态;
    若所述状态信息指示所述终端当前处于睡眠状态,则确定所述终端处于所述PSM。
  34. 如权利要求32或33所述的服务网络节点,其特征在于,所述终端退出所述PSM的时间为所述终端进行下一次跟踪区更新TAU或者路由区更新RAU的更新时间。
  35. 如权利要求32-34任一所述的服务网络节点,其特征在于,所述终端退出所述PSM的时间为所述终端退出所述PSM的时刻,或者为所述终端从当前时间到退出所述PSM的时长。
  36. 如权利要求32-35任一所述的服务网络节点,其特征在于,所述服务网络节点包括移动性管理实体MME或服务通用分组无线服务支持节点SGSN。
PCT/CN2015/097475 2015-12-15 2015-12-15 数据传输方法、m2m服务器、pgw、sgw及服务网络节点 WO2017101028A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/097475 WO2017101028A1 (zh) 2015-12-15 2015-12-15 数据传输方法、m2m服务器、pgw、sgw及服务网络节点

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/097475 WO2017101028A1 (zh) 2015-12-15 2015-12-15 数据传输方法、m2m服务器、pgw、sgw及服务网络节点

Publications (1)

Publication Number Publication Date
WO2017101028A1 true WO2017101028A1 (zh) 2017-06-22

Family

ID=59055443

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/097475 WO2017101028A1 (zh) 2015-12-15 2015-12-15 数据传输方法、m2m服务器、pgw、sgw及服务网络节点

Country Status (1)

Country Link
WO (1) WO2017101028A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636592A (zh) * 2018-05-30 2019-12-31 中国电信股份有限公司 用户设备功耗模式通知方法、装置以及ue
CN113905409A (zh) * 2021-10-09 2022-01-07 天翼物联科技有限公司 终端可达性检测方法、装置、网络设备及存储介质
CN114143229B (zh) * 2021-12-01 2023-04-07 中国联合网络通信集团有限公司 一种通信方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101959133A (zh) * 2009-07-15 2011-01-26 华为技术有限公司 M2m用户设备的操作控制方法、系统和m2m用户设备
CN102143562A (zh) * 2010-02-01 2011-08-03 中兴通讯股份有限公司 一种基于机器到机器的省电方法及装置
CN103327588A (zh) * 2012-06-04 2013-09-25 美商威睿电通公司 1x物联网设备中的深度休眠
CN103765928A (zh) * 2011-08-11 2014-04-30 英特尔公司 用于触发无线装置群组的技术
CN104885533A (zh) * 2013-01-04 2015-09-02 高通股份有限公司 用于调制解调器休眠操作的高效服务层辅助的方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101959133A (zh) * 2009-07-15 2011-01-26 华为技术有限公司 M2m用户设备的操作控制方法、系统和m2m用户设备
CN102143562A (zh) * 2010-02-01 2011-08-03 中兴通讯股份有限公司 一种基于机器到机器的省电方法及装置
CN103765928A (zh) * 2011-08-11 2014-04-30 英特尔公司 用于触发无线装置群组的技术
CN103327588A (zh) * 2012-06-04 2013-09-25 美商威睿电通公司 1x物联网设备中的深度休眠
CN104885533A (zh) * 2013-01-04 2015-09-02 高通股份有限公司 用于调制解调器休眠操作的高效服务层辅助的方法和装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636592A (zh) * 2018-05-30 2019-12-31 中国电信股份有限公司 用户设备功耗模式通知方法、装置以及ue
CN113905409A (zh) * 2021-10-09 2022-01-07 天翼物联科技有限公司 终端可达性检测方法、装置、网络设备及存储介质
CN114143229B (zh) * 2021-12-01 2023-04-07 中国联合网络通信集团有限公司 一种通信方法、装置、设备及存储介质

Similar Documents

Publication Publication Date Title
EP2846600B1 (en) M2M communication method and system thereof
KR102445355B1 (ko) 사용자 그룹에 대한 세션 관리 방법 및 장치
US8996626B2 (en) Terminal and intermediate node in content oriented networking environment and communication method of terminal and intermediate node
US10334419B2 (en) Methods, systems, and computer readable media for optimizing machine type communication (MTC) device signaling
US20150365897A1 (en) Data Transmission Method, Apparatus, and System, Network Side Device, and Terminal Device
US9179443B2 (en) Method and apparatus for providing services at terminal of mobile communication system
CN113810512B (zh) 物联网终端接入系统、方法、装置及存储介质
US20180048633A1 (en) Perception-free authentication method and system, and control method and system based on the same
JP2019525553A (ja) 低頻度の小さいデータのための効率的な送達方法および装置
US9992109B2 (en) Data transmission method, apparatus and system
KR20120003314A (ko) 이동 통신 시스템에서 그룹 서비스 플로우 생성 시스템 및 방법
JP2018533324A (ja) 情報伝送方法、装置、およびシステム
KR20160060091A (ko) 페이징 방법, 네트워크 디바이스 및 통신 시스템
CN110062060B (zh) 一种ip地址分配的系统和方法
CN107623752B (zh) 基于链路层的网络管理方法和装置
WO2017101028A1 (zh) 数据传输方法、m2m服务器、pgw、sgw及服务网络节点
CN105245695B (zh) 一种提高微信AirKiss兼容性的方法及系统
CN113491148A (zh) 用于支持事件监视的方法和装置
US20160112861A1 (en) Data Transmission Method and Gateway
WO2014019157A1 (zh) 通信路径的处理方法与装置
CN109196895B (zh) 一种报文传输方法、装置及系统
JP4911222B2 (ja) 通信システム、通信システムにおける通信方法、及び中継装置
EP3104648B1 (en) Service control system, user device and service control method
WO2015096734A1 (zh) 一种业务数据的下行传输方法及分组数据网关
CN114666846A (zh) 一种通信方法及网关设备

Legal Events

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

Ref document number: 15910501

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

Country of ref document: EP

Kind code of ref document: A1