WO2012097667A1 - Method for acquiring terminal status, method, apparatus and system for activating terminal - Google Patents

Method for acquiring terminal status, method, apparatus and system for activating terminal Download PDF

Info

Publication number
WO2012097667A1
WO2012097667A1 PCT/CN2011/084838 CN2011084838W WO2012097667A1 WO 2012097667 A1 WO2012097667 A1 WO 2012097667A1 CN 2011084838 W CN2011084838 W CN 2011084838W WO 2012097667 A1 WO2012097667 A1 WO 2012097667A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
mobility management
network element
management network
user subscription
Prior art date
Application number
PCT/CN2011/084838
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2012097667A1 publication Critical patent/WO2012097667A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal

Definitions

  • the present invention relates to the field of communications, and in particular to a terminal state acquisition method, an activation terminal method, apparatus, and system.
  • AS Application Server
  • AS Proxy application server proxy
  • AS proxy application server proxy
  • the structure relates to: UE, UMTS Terrestrial Radio Access Network (UTRAN), and evolution.
  • Terrestrial Radio Access Network Evolved UMTS for short
  • E-UTRAN Serving GPRS Supporting Node (SGSN)
  • MME Mobile Management Entity
  • HLR Home Location Register
  • HSS Home Subscriber Server
  • P-GW Packet Data Network Gateway
  • AS AS. 2 is a flow chart of the application server AS using the short message service to activate the terminal to communicate with the application server according to the related art. As shown in FIG.
  • Step S201 The terminal accesses the network and is attached to the circuit switch (Circuit Switched) For example, the CS is to be registered with the Mobile Switching Center (MSC).
  • the AS wants to activate the terminal to communicate with the AS server, for example, downloading configuration data, and reporting service data by the terminal.
  • the application server AS sends a short message to the terminal, and the short message is routed to the SMS gateway (SMS Gateway, referred to as SMS GW).
  • SMS Gateway SMS Gateway
  • Step S204 the SMS GW will The short message is routed to the MSC; Step S205, the MSC routes the short message to the UE.
  • Step S206 After receiving the short message, the UE parses the short message content, and determines that the application server needs to establish communication with the UE.
  • Step S207 The UE initiates a Packet Switched (PS) domain. Attached, an IP address is assigned; Step S208, the UE establishes communication with the application server by using an IP communication method.
  • PS Packet Switched
  • PS Packet Switched
  • Attached an IP address is assigned
  • Step S208 the UE establishes communication with the application server by using an IP communication method.
  • SMS a Mobile Subscriber ISDN Number (MSISDN) is used to identify a terminal that the AS uses to communicate with the terminal via SMS.
  • MTC Machine Type Communication
  • a primary object of the present invention is to provide a terminal state acquisition method, an activation terminal method, apparatus, and system to at least solve the above problems.
  • a terminal state obtaining method including: receiving a request message from an application server, where the request message is used to query a state of the terminal; acquiring a state of the terminal, and The status of the terminal is sent to the application server.
  • the user subscription server receives the request message from the application server, the user subscription server acquires the status of the terminal, and sends the status of the terminal to the application server; or, mobility management The network element receives the request message from the application server, and the mobility management network element locally acquires the status of the terminal, and sends the status of the terminal to the application server.
  • the method further includes: the user subscription server receiving a query request sent by the application server, to the application The server sends the mobility management network element currently registered by the terminal.
  • the acquiring, by the user subscription server, the status of the terminal includes: the user subscription server locally queries the status of the terminal; and/or the user subscription server queries from the mobility management network element The status of the terminal.
  • the user subscription server if the user subscription server locally queries that the status of the terminal is not registered to the network, the user subscription server sends the status of the terminal to the network without being registered to the application server.
  • the status of the user subscription server querying the terminal from the mobility management network element includes: in a case that the terminal has been allocated the mobility management network element, the user subscription server is The mobility management network element acquires the status of the terminal.
  • the mobility management network element or the user subscription server obtains the status of the terminal from the mobility management network element as: attaching and being assigned an internet protocol IP address or attaching but not assigning an IP address.
  • the mobility management network element sends the IP address of the terminal to the user subscription server or the application server, to indicate that the status of the terminal of the user subscription server is attached and assigned an IP address.
  • the mobility management network element sends the type of the IP address of the terminal to the user subscription server or the application server.
  • the mobility management network element sends the indication information that the terminal does not activate the PDP to the user subscription server or the application server, to indicate that the status of the terminal of the user subscription server is attached but not assigned an IP address. .
  • the user subscription server is: an HLR or an HSS; and the mobility management network element is: an MSC, an SGSN or an MME.
  • a method for activating a terminal including: a mobility management network element receiving a request message for activating a terminal, where the request message carries an identifier of the terminal, the request message The source is the application server; the mobility management network element sends a message to the terminal for activating the terminal.
  • the method further includes: receiving, by the user subscription server, a request message sent by the application server for activating the terminal, and sending the request message to the mobility management network element.
  • the method further includes: the user subscription server receiving the query request sent by the application server, The application server sends the mobility management network element currently registered by the terminal.
  • the message that the mobility management network element sends the terminal to activate the terminal includes: the mobility management network element sends a paging Paging message to page the terminal; the mobility management network element After receiving the response message sent by the terminal and responding to the paging message, the NAS message is sent to the terminal, where the NAS message carries the service identifier corresponding to the application server.
  • the request message for activating the terminal from the application server further carries a service identifier corresponding to the application server, and the message sent by the mobility management network element to the terminal for activating the terminal
  • the service identifier is also carried in the middle.
  • the sending, by the user subscription server, the request message for activating the terminal to the mobility management network element includes: when the terminal has been attached to the network, the mobility of the user subscription server to the terminal is currently registered. The management network element sends a request message to activate the terminal.
  • the sending, by the user subscription server, the request message for activating the terminal to the mobility management network element includes: when the terminal is not attached to the network, the user subscription server selects a mobility management network element, and The selected mobility management network element sends a request message to activate the terminal.
  • the user subscription server selects the mobility management network element, and the user subscription server selects the mobility management network element according to the service attribute of the terminal subscription; or the user subscription server selects the terminal last time.
  • the registered mobility management network element serves as a mobility management network element that transmits a request message for activating the terminal.
  • the sending, by the mobility management network element, the message for activating the terminal to the terminal includes: sending, by the mobility management network element, a non-access stratum NAS message to the terminal according to the identifier of the terminal or Paging a paging message, the NAS message or paging message is used to activate the terminal.
  • the message that the mobility management network element sends the terminal to activate the terminal includes: the mobility management network element sends a broadcast message, where the broadcast message further carries the identifier of the terminal .
  • the broadcast message is a Paging message or a system broadcast message.
  • the method further includes: after the terminal monitors the broadcast message, attaching to the network.
  • the user subscription server sends a request message for activating the terminal to the mobility management network element, where the request message is further used to query whether the terminal is reachable.
  • the user subscription server or the application server sends a request message for activating the terminal to the mobility management network element, where the request message carries a temporary identifier of the terminal, where the temporary identifier
  • the mobility management network element sends the temporary identifier to the user subscription server.
  • the user subscription server receives a request message from an activation terminal of the application server, where the request message carries the temporary identifier and service of the terminal.
  • a terminal state obtaining apparatus including: a first receiving module, configured to receive a request message from an application server, where the request message is used to query a state of the terminal; And setting to acquire the state of the terminal, and sending the state of the terminal to the application server.
  • the first receiving module of the user subscription server is configured to receive the request message from the application server, and the acquiring module located in the user subscription server is configured to acquire the status of the terminal. And sending the status of the terminal to the application server; or the first receiving module located in the mobility management network element is configured to receive the request message from the application server, located at the location
  • the acquiring module of the mobility management network element is configured to acquire the state of the terminal locally, and send the state of the terminal to the application server.
  • a terminal status acquisition system including: a user subscription server, a mobility management network element, and an application server, where the application server is configured to sign a server or the mobile to the user.
  • an activation terminal device which is located in a mobility management network element, and includes: a second receiving module, configured to receive a request message for activating a terminal, where the request message is carried An identifier of the terminal, where the source of the request message is an application server, and a sending module, configured to send a message to the terminal for activating the terminal.
  • the sender of the request message received by the second receiving module is a user subscription server, where the signing server receives the request message for activating the terminal sent by the application server, Sending the request message to the mobility management network element; or, the sender of the request message for activating the terminal received by the second receiving module is an application server.
  • an activation terminal system including: a user subscription server, a mobility management network element, and an application server, the application server being configured to directly log to the mobility management server
  • the network element sends a request message for activating the terminal, where the request message carries an identifier of the terminal; the mobility management network element is configured to send a message for activating the terminal to the terminal.
  • the present invention solves the problem that the AS cannot communicate with the MTC terminal that does not support the SMS function in the related art, so that the AS can communicate with the MTC terminal that does not support the SMS function, and then perform some service, for example, acquiring the terminal status, or Activate the terminal.
  • FIG. 2 is a flowchart of an AS using a short message service to activate a terminal to communicate with an AS according to the related art
  • FIG. 3 is a flowchart according to the present invention.
  • FIG. 4 is a flowchart 1 of a method for activating a terminal according to an embodiment of the present invention. The figure shows an AS sending a terminal activation request to a user subscription server.
  • FIG. 5 is a diagram of a terminal activation request according to an embodiment of the present invention.
  • Flowchart 2 of the method for activating the terminal the figure shows the AS transmitting a terminal activation request to the mobility management network element;
  • FIG. 6 is a schematic diagram of a network architecture according to an embodiment of the present invention;
  • FIG. 7 is an AS according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of an AS querying a user subscription server for querying a current state of a terminal according to an embodiment of the present invention, where the terminal is not attached to the network;
  • FIG. 9 is a flowchart of an AS querying a user subscription server for querying a current state of a terminal according to an embodiment of the present invention, wherein the terminal is attached to the network and assigned an IP address;
  • FIG. 10 is an AS querying the terminal to the user subscription server according to an embodiment of the present invention; Flowchart of the current state, wherein the terminal is attached to the network but no IP address is assigned;
  • FIG. 11 is a schematic flowchart of the AS querying the mobility management network element for the current state of the terminal according to an embodiment of the present invention
  • FIG. 12 is a schematic diagram of the current state according to the embodiment of the present invention.
  • FIG. 13 is a flowchart of an AS activating a terminal to a user subscription server according to an embodiment of the present invention
  • FIG. 14 is a diagram of a terminal attached to a network according to an embodiment of the present invention
  • FIG. 15 is a flow chart of activating a terminal by a server to a user
  • FIG. 15 is a flowchart of an AS activating a terminal to a user by a server when the terminal is not attached to the network according to an embodiment of the present invention;
  • FIG. 16 is a temporary use according to an embodiment of the present invention.
  • Identification a flow chart of the AS signing the server to the user to activate the terminal;
  • FIG. 17 is a use seek in accordance with an embodiment of the present invention.
  • After the message to activate the terminal sending a flowchart of the service identifier using the NAS message;
  • FIG. 18 is a flowchart of the activation of the terminal to the mobility management network element according to an embodiment of the present invention AS.
  • BEST MODE FOR CARRYING OUT THE INVENTION will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
  • the terminal in the following embodiments is applicable to an MTC terminal that does not support the SMS function, and the method in the following embodiments may also be adopted for an MTC terminal that supports the SMS function.
  • the terminal may not be an MTC terminal, and may be applicable to other types of terminals.
  • the MTC terminal (referred to as a terminal in this embodiment) does not provide an SMS function, and the communication between the AS and the MTC terminal adopts an IP-based communication method. This method requires the AS to know the IP address of the terminal. And the network has always assigned this IP to the terminal.
  • AS is used to represent AS and/or AS agents in the following embodiments, unless otherwise specified.
  • the AS knows the IP address of the terminal.
  • the terminal performs the application layer registration mechanism, the IP address is reported to the AS, and after registration, in order to keep the terminal status updated, the terminal needs to periodically perform registration update to ensure that the AS knows.
  • the terminal is currently active. In many cases, after the terminal is attached to the network, no IP address is assigned. For example, in the General Packet Radio Service (GPRS) network, the process of PS attachment and IP address allocation of the terminal is separated. In some cases, even if the terminal is assigned an IP address, the terminal does not necessarily perform registration with the AS, or the registration update process is not performed to the AS long after the terminal registers with the AS.
  • GPRS General Packet Radio Service
  • the AS desires to initiate IP communication to the terminal, there may be no available IP address, or the IP address has expired, which will cause the communication initiated by the AS to fail. If the AS fails to initiate IP communication to the terminal multiple times, it is necessary for the AS to know the fact state of the current terminal, for example: the terminal has been reassigned the IP address, although the terminal is attached but the IP address has been released in the GPRS, the terminal has gone from the network. Attached, etc. When the terminal does not support the short message service, the AS cannot communicate with the terminal, and thus the status of the terminal cannot be known.
  • a method, a device, and a system for acquiring a terminal state are provided.
  • the network element included in the system is used to implement the present embodiment and a preferred implementation manner.
  • the method includes the following steps: Step S12: Receive a request message from an application server, where the request message is used to query the status of the terminal.
  • Step S14 acquire the status of the terminal, and send the status of the terminal to the application server.
  • the application server can obtain the state of the terminal, and any network element that can obtain the state of the terminal and send it to the application server can perform the above steps, for example, the user subscription server or the mobility management network element, and implemented in the following
  • the two network elements are taken as an example, but are not limited to the two network elements.
  • the user subscription server receives the request message from the application server, acquires the status of the terminal, and sends the status of the terminal to the application server.
  • the mobility management network element receives the request message from the application server, and obtains the terminal information from the local terminal. Status, and the status of the terminal is sent to the application server.
  • the application server may obtain the mobility management network element currently registered by the terminal by sending a query request to the user subscription server.
  • a terminal state obtaining apparatus is provided, including: a first receiving module, and an acquiring module connected to the first receiving module.
  • the term "module" may implement a combination of software and/or hardware of a predetermined function.
  • the first receiving module is configured to receive a request message from the application server, where the request message is used to query the status of the terminal, and the acquiring module is configured to acquire the status of the terminal, and send the status of the terminal to the application server.
  • the first receiving module located in the user subscription server is configured to receive the request message from the application server, and the acquiring module located in the user subscription server is configured to acquire the state of the terminal, and send the state of the terminal to the application server; or
  • the first receiving module of the mobility management network element is configured to receive the request message from the application server, and the acquiring module of the mobility management network element is configured to obtain the state of the terminal locally, and send the status of the terminal to application server.
  • FIG. 3 is a flowchart of a method for acquiring a terminal state according to an embodiment of the present invention. As shown in FIG.
  • Step S302 a user subscription server (for example, an HLR or an HSS), or a mobility management network element (for example, the SGSN/MME receives the request message from the AS, where the request message is used to query the status of the terminal; and in step S304, the user subscription server, or the mobility management network element acquires the status of the terminal, and the status of the terminal is Send to AS.
  • the AS can obtain the status of the terminal, which facilitates the service processing between the AS and the terminal.
  • the user subscription server, or the mobility management network element can obtain the status of the terminal in several ways, which is exemplified below, but is not limited thereto.
  • the user subscription server can locally query the status of the terminal. For example, if the status of the terminal is not registered to the network by the user subscription server, the user subscription server sets the status of the terminal to be unregistered to the network. Give AS.
  • the user subscription server may also query the status of the terminal from the mobility management network element (for example, MSC, SGSN, or MME).
  • the user subscription server queries the status of the locally stored terminal to register the terminal in the network (or is attached to the network).
  • the user subscription server queries the mobility management network element. The status to the terminal.
  • the status of the user subscription server querying from the mobility management network element to the terminal is: Attached and assigned an IP address or attached but not assigned an IP address.
  • the mobility management network element sends the IP address of the terminal to the user subscription server, to indicate that the status of the user subscription server terminal is attached and is assigned an IP address, and of course, may also be sent.
  • the type of the IP address of the terminal such as: IPv4, IPv6, public network IP, screen IP, etc., or a combination of types.
  • the mobility management network element sends the indication information of the packet data protocol (PDP) of the terminal to the user subscription server to indicate the user subscription server terminal.
  • the status is attached but not assigned an IP address.
  • the user subscription server returns the address of the mobility management network element allocated to the terminal to the AS, and the AS queries the mobility management network element for the status of the terminal, and the mobility management network element returns the status of the terminal to the AS.
  • the status of the terminal returned by the mobility management NE is the same as that of the second method.
  • the method for activating the terminal includes: Step S102: The mobility management network element receives a request message for activating the terminal, where the request message carries the identifier of the terminal, and the source of the request message is an application server; Step S104, the mobility management network element The terminal sends a message for activating the terminal.
  • the application server may directly send a request message to the mobility management network element, or may send a request message to the mobility management network element via other network elements.
  • the user subscription server receives the application server to send the activation terminal.
  • the message is requested and a request message for activating the terminal is sent to the mobility management network element.
  • the application server may obtain the mobility management network element currently registered by the terminal by sending a query request to the user subscription server.
  • an activation terminal device which is located in a mobility management network element.
  • the term "module" can implement a combination of software and/or hardware of a predetermined function.
  • the device includes: a second receiving module, and a sending module connected to the second receiving module, where the second receiving module is configured to receive a request message for activating the terminal, where the request message carries the identifier of the terminal, and the request message
  • the source is the application server; the sending module is configured to send a message to the terminal for activating the terminal.
  • the sender of the request message received by the second receiving module is a user subscription server, where the signing server sends a request to the mobility management network element after receiving the request message for activating the terminal sent by the application server.
  • the sender of the request message for activating the terminal received by the second receiving module is an application server.
  • FIG. 4 is a flowchart 1 of a method for activating a terminal according to an embodiment of the present invention. As shown in FIG. 4, the process includes the following steps: Step S402, the user subscription server receives the request message of the activation terminal from the AS, where the request message carries the identifier of the terminal.
  • Step S404 the user subscription server sends a request message for activating the terminal to the mobility management network element, where The request message carries the identifier of the terminal.
  • Step S406 The mobility management network element sends a message for activating the terminal to the terminal.
  • FIG. 5 is a second flowchart of a method for activating a terminal according to an embodiment of the present invention. As shown in FIG. 5, the process includes the following steps: Step S502: The AS queries a user subscription server to query a current serving network element of the terminal, that is, the terminal is currently registered. Mobility management network element. The user subscription server returns the current service network element of the terminal to the AS.
  • step S504 the AS sends a request message for activating the terminal to the mobility management network element, where the request message carries the identifier of the terminal.
  • step S506 the mobility management network element The terminal sends a message for activating the terminal.
  • the AS may cause the user subscription server to return the current service network element of the terminal to the AS by querying the current subscription network element of the terminal (ie, the mobility management network element currently registered by the terminal) to the user subscription server.
  • the user subscription server, or the mobility management network element receives the request message of the activation terminal from the AS, wherein the request message carries the identifier of the terminal; the user subscription server, or the mobile The service management network element sends a request message for activating the terminal, where the request message carries the identifier of the terminal.
  • the AS can activate the terminal.
  • the AS server needs to notify the terminal of its service identifier, the following preferred implementation manner can be adopted: the user subscription server, or the mobility management network element receives the request from the activation terminal of the AS.
  • the message also carries the service identifier corresponding to the AS; the request message for activating the terminal sent by the user subscription server to the mobility management network element further carries the service identifier; the mobility management network element
  • the message sent by the terminal for activating the terminal further carries the service identifier.
  • the service identifier may be an identifier of the AS or an identifier of the service implemented by the AS.
  • the identifier of the AS may be the IP address of the AS
  • the service identifier implemented by the AS may be a character or a number representing a certain meaning (for example, SUPL stands for User Face Location System).
  • SUPL User Face Location System
  • the mobility management network element may send a paging message to page the terminal, and After receiving the response message sent by the terminal, the device sends a non-access stratum (Non-Access Stratum, NAS for short) message to the terminal, where the NAS message carries the service identifier corresponding to the application server.
  • NAS Non-Access Stratum
  • the terminal can be paged without any modification to the existing Paging message.
  • the AS sends a request message for activating the terminal to the user subscription server, so that the subscription server sends a request message for activating the terminal to the mobility management network element.
  • the user subscription server sends a request message for activating the terminal to the mobility management network element currently registered by the terminal. Then, the mobility management network element may send a message for activating the terminal to the terminal. For example, the mobility management network element sends a NAS message or a paging message to the terminal according to the identifier of the terminal, where the NAS message Or a Paging message is used to activate the terminal.
  • the user subscription server may select the mobility management network element according to the predetermined policy, and send a request message for activating the terminal to the selected mobility management network element.
  • the user subscription server may select the mobility management network element according to the service attribute of the terminal subscription; for example, the user subscription server may select the mobility management network element that the terminal last registered as the mobility management network that sends the request message of the activation terminal. yuan.
  • the service attribute of the terminal subscription may be a range of terminal movement defined in the subscription (for example, indicating a low mobility terminal, signing a fixed location area); selecting the last registered mobility management network element Effectiveness can be limited to a certain effective duration.
  • the AS sends a request message for activating the terminal to the mobility management network element currently registered by the terminal, and the mobility management network element may send a message for activating the terminal to the terminal.
  • the AS may query the user subscription server for the mobility management network element currently registered by the terminal, and the user subscription server returns the mobility management network element currently registered by the terminal to the AS.
  • the mobility management network element may send a broadcast message (for example, a Paging message or a system broadcast message), where the broadcast message further carries the identifier of the terminal.
  • the mobility management network element sends the broadcast message, after the terminal listens to the broadcast message, it attaches to the network.
  • the user subscription server sends a request message for activating the terminal to the mobility management network element, where the request message carries the temporary identifier of the terminal, wherein the temporary identifier is in the terminal detach from the network, and mobility management The network element sends the temporary identifier to the user's subscription server.
  • the user subscription server receives the request message from the active terminal of the AS, where the request message carries the temporary identifier and the service identifier of the terminal;
  • the request message carries the identifier of the terminal and the service identifier, and replaces the identifier of the terminal with the temporary identifier of the terminal.
  • the network configuration may adopt the OMA DM mode. One of the modes is currently activated by the SMS. The activation mode in this embodiment may also be adopted. The preferred embodiments are described below in conjunction with the drawings.
  • FIG. 6 is a schematic diagram of a network architecture according to an embodiment of the present invention, and the difference between the architecture diagram of FIG. 1 is that an AS/AS proxy and a user subscription server (HLR/HSS), a mobility management network element (SGSN/MME), and the like. Establish the appropriate interface as needed.
  • the interface with the user subscription server (HLR/HSS) and the mobility management network element can be provided to the AS to query the status of the UE and the ability to send a terminal activation request.
  • the preferred embodiment of the present invention provides a method for the AS to query the status of the terminal.
  • the user subscription server may be an HLR or an HSS
  • the mobility management network element is an MSC (CS domain) and an SGSN ( GPRS domain), MME (EPS domain), where the AS sends a service request to the user subscription server to query the current state of the terminal; the user subscription server queries the current state of the terminal from itself, or queries the current state of the terminal from the mobility management network element. And return the current state to the AS.
  • MSC CS domain
  • SGSN GPRS domain
  • MME EPS domain
  • the user subscription server sends a query request to the mobility management network element, and the mobility management network element returns the current state of the terminal according to the terminal information saved by itself.
  • the terminal is currently attached and assigned an IP address
  • the current state of the mobility management network element returning to the terminal is: Attached and assigned an IP address.
  • the state can be expressed by the IP address of the terminal, and the mobility management network element can further return the type of the IP address (a combination of IPv4, IPv6, public network IP, private network IP, etc.); if the terminal is currently attached, but not The IP address is assigned, and the current status of the mobility management NE returns to the terminal is: Attached but not assigned an IP address.
  • This state can be expressed by an inactive PDP.
  • FIG. 7 is a flowchart of querying the current status of the terminal by the AS to the user subscription server according to the embodiment of the present invention.
  • the process includes the following steps: Step S702: The AS queries the terminal for the user to subscribe to the terminal due to the requirement of the service execution. Current state of Step S704, the user subscription server queries the status of the locally saved terminal (for example, the terminal is not currently registered in the network), or queries the mobility management network element for the current status of the terminal, and returns the status according to the status of the queried terminal.
  • Step S702 The AS queries the terminal for the user to subscribe to the terminal due to the requirement of the service execution.
  • Current state of Step S704 the user subscription server queries the status of the locally saved terminal (for example, the terminal is not currently registered in the network), or queries the mobility management network element for the current status of the terminal, and returns the status according to the status of the queried terminal.
  • the locally saved terminal for example, the terminal is not currently registered in the network
  • the mobility management network element for the current status
  • the terminal Since there are many states of the terminal, some states can be directly returned through the information stored in the user subscription server (for example, the terminal is not currently registered in the network), and some states can be queried to the mobility management network element (for example, the terminal is currently Registered into the network, but with sub-states: attach and assign IP address, attach but not assigned IP address, terminal is not available, etc.).
  • the user subscription server may send a query request to the mobility management network element. Finally, the user subscription server returns the status of the queried terminal to the AS.
  • FIG. 8 is a flowchart of querying a current status of a terminal by a user to a user subscription server according to an embodiment of the present invention.
  • the terminal is not attached to the network.
  • the process includes the following steps: Step S801: The AS signs a server with the user.
  • Step S802 the user subscription server determines, according to the local information, that the terminal is not currently registered to the network; Step S803, returning the current status of the terminal to the AS is: not registered to the network.
  • the so-called unregistered to the network is actually that the user subscription server queries the state information of the locally stored terminal, and finds that the mobility management network element (MSC/SGSN/MME) is not allocated to the current terminal, and thus the terminal is considered Currently not registered to the network. Therefore, the terminal returned by the user subscription server is not currently registered to the network, and is equivalent to: the mobility management network element (MSC/SGSN/MME) is not assigned to the terminal.
  • Step S901 AS Sending a service request to the user subscription server to query the current status of the terminal.
  • Step S902 The user subscription server determines, according to the local information, that the terminal is currently registered to the network, and then queries the mobility management network element (for example, the SGSN or the MME) for the current status of the terminal.
  • the mobility management network element for example, the SGSN or the MME
  • Step S903 the mobility management network element checks the status of the terminal, the current terminal has been registered to the mobility management network element, that is, the terminal has been attached to the network, and the network has assigned the IP address to the terminal; in step S904, the step is In a preferred step, the mobility management network element may query the user plane network element (eg, GGSN or PGW) for the IP address of the terminal; the mobility management network element does not always know the IP address of the terminal.
  • the user plane network element eg, GGSN or PGW
  • Step S905 The mobility management network element returns the current status of the terminal to the user subscription server.
  • Step S906 the user subscription server returns the current state of the UE to the AS.
  • the above steps can be used for both the GPRS domain and the EPS domain.
  • the terminal can perform GPRS attach but does not activate the PDP context.
  • the terminal is attached to the PS network but is not assigned an IP address.
  • 10 is a flowchart of querying a current status of a terminal by a user to a user subscription server according to an embodiment of the present invention. The terminal is attached to the network but is not assigned an IP address. As shown in FIG.
  • Step S1001 AS Sending a service request to the user subscription server to query the current status of the terminal.
  • Step S1002 The user subscription server determines, according to the local information, that the terminal is currently registered to the network, and then queries the mobility management network element (for example, the SGSN) for the current state of the terminal.
  • Step S1003 The mobility management network element checks the status of the terminal, and the current terminal has been registered to the mobility management network element, that is, the terminal has been attached to the network, but the terminal is not assigned an IP address; for example, in the GPRS network, The GPRS attach and IP address allocation process is separate. The terminal can perform GPRS attach but does not request PDP activation.
  • Step S1004 the mobility management network element returns the terminal to the user subscription server. Current status: Attached but not assigned an IP address; or, return status That: not activated PDP.
  • the two methods can be regarded as equivalent; in step S1005, the user subscription server returns the current state of the UE to the AS.
  • Preferred Embodiment 2 This preferred embodiment provides a modified embodiment of Embodiment 1.
  • the AS sends a service node query request to the user subscription server to query the mobility management network element currently registered by the terminal, and the user subscription server returns the mobility management network element currently registered by the terminal to the AS; the AS moves to the mobility management network element to the mobility
  • the management NE queries the current status of the terminal.
  • Step S1102 The AS signs a server to the user due to service execution requirements.
  • the mobility management network element currently registered by the terminal is queried, and the user subscription server returns the mobility management network element currently registered by the terminal to the AS. If there is no mobility management network element currently registered by the storage server in the user subscription server, that is, the terminal is not registered/attached to the network, the user subscription server returns to the application server that the terminal is not currently registered, or returns an empty mobility management network element. List.
  • the application server can determine that the terminal is not registered in the network, and step S 1104 need not be performed.
  • the application server queries the user subscription server to query the mobility management network element currently registered by the terminal. If the current mobility management network element of the terminal is not stored in the user subscription server, step S1104 is performed.
  • Step S1104 The AS queries the mobility management network element for the current state of the terminal, and the mobility management network element returns the current state of the terminal to the AS. After the application server obtains the mobility management network element from the user subscription server, the application server queries the mobility management network element for the status of the terminal. After receiving the query request from the application server, the mobility management network element uses the method in the first embodiment to determine the state of the terminal and return an appropriate response. FIG.
  • Step S1201 The AS sends a service request to the user subscription server, and queries the terminal.
  • the current service node that is, the mobility management network element currently registered by the terminal
  • Step S1202 the user subscription server returns the current service node of the terminal to the AS
  • Step S1203, the AS sends a request to the mobility management network element to query the current state of the terminal
  • Step S1204 The mobility management network element determines a current state of the terminal.
  • the mobility management network element uses the method described in Figures 9-10 to determine the current state of the terminal.
  • the mobility management network element returns the current state of the terminal to the AS.
  • the preferred embodiment of the present invention provides a method for an AS to activate a terminal. The method includes: the AS sends a request for activating the terminal to the user subscription server, where the terminal identifier and the service identifier are carried; and the user subscription server moves to the mobility management network element. Sending a request for activating the terminal, where the terminal identifier and the service identifier are carried; the mobility management network element sends an activation request to the terminal, where the service identifier is carried.
  • the service identifier may be an identifier of the AS or an identifier of the service implemented by the AS.
  • the mobility management network element can activate the terminal by using the NAS message; when the terminal is not attached to the network, the user subscription server receives the request initiated by the AS to activate the terminal,
  • the mobility management network element may be selected according to the following principles: (A) selecting a suitable mobility management network element according to the service characteristics of the terminal, for example, a combination of non-roaming and low mobility; (B) the last terminal from the network When the user is detached, the user subscription server saves the mobility management network element as a terminal service. When the activation request of the AS is received, the mobility management network element is selected.
  • the mobility management network element and the base station may activate the terminal by using a method such as paging or system broadcast on the network side.
  • the terminal On the terminal side, the terminal first listens to the system broadcast of the network in an unattached state. Information, such as Paging information, system broadcast information, after the terminal receives the activation request, performs the process of attaching to the network, and the terminal actively establishes IP communication with the AS.
  • the request of the user subscription server to send the activation terminal to the mobility management network element may be a query for the terminal accessibility request.
  • the terminal may also be activated by using a temporary identifier assigned to the terminal by the network.
  • the method includes: the terminal is detached from the network, the mobility management network element notifies the user of the temporary identifier of the network to the user, and the user subscription server saves the temporary identifier; when the user subscription server receives the terminal activation request sent by the AS Sending a terminal activation request to the mobility management network element; the user subscription server sends a terminal activation request to the mobility management network element according to the temporary identifier assigned by the saved network to the terminal.
  • the AS communicates to a mobility management network element (eg, MSC, SGSN via a subscriber subscription server (eg, HLR or HSS).
  • MME mobility management network element
  • the mobility management network element sends the activation message to the terminal by using a suitable message (for example, a downlink NAS message, a Paging message, and the like).
  • a suitable message for example, a downlink NAS message, a Paging message, and the like.
  • the terminal actively establishes IP communication with the AS.
  • the process includes the following steps: Step S1302: The AS sends a request for activating the terminal to the user subscription server, where the service identifier is carried.
  • the service identifier is an identifier of the AS, and may also be an identifier of the service implemented by the AS.
  • Step S1304 The user subscription server searches for a suitable mobility management network element, and forwards the activation request to the mobility management network element.
  • Step S1306 The mobility management network element sends the activation request to the terminal. After the terminal receives the activation request, Based on the service identifier, it can be known which service requires the terminal to be activated, or which AS has sent the activation request, so that IP communication can be initiated to the AS in a targeted manner.
  • the above steps can be applied to terminals that have been attached to the network: In this case, the terminal may have been assigned an IP address, and IP communication can be initiated directly to the AS.
  • the terminal may also not assign an IP address (if only GPRS is attached, no PDP context is established), the terminal needs to initiate the establishment of an IP bearer, and then assigns an IP address to initiate an IP communication to the AS; a terminal that is not attached to the network: In this case, the terminal is required to listen to the broadcast message of the network even if it is not attached to the network; the user subscription server is required to select an appropriate mobility management network element to send an activation request; the mobility management network element is required to have no terminal context. In this case, the activation request can also be delivered to the base station.
  • Step S1401 The AS signs a server to the user (for example, an HLR or The HSS) sends an activation request, carrying a service identifier; wherein the service identifier is carried in order to let the terminal know which service needs to activate the terminal, or which AS wants to activate the terminal and initiate communication.
  • a server to the user for example, an HLR or The HSS
  • the service identifier indicates that the MTC application server wishes to activate the terminal.
  • SUPL SUPL Location Server
  • Step S1402 After receiving the activation request of the AS, the user subscription server queries the mobility management entity (for example, MSC, SGSN, or MME) currently registered by the terminal, and sends an activation request to the mobility management entity.
  • the user The subscription server can use the existing accessibility check message, and carry the identifier in the message to request the mobility management network element to activate the terminal.
  • the identifier should carry the service identifier in step S1001.
  • a separate message can be newly introduced to activate the terminal.
  • Step S1403 After receiving the activation request, the mobility management entity activates the terminal by using the NAS message. In this step, the mobility management network element carries the service identifier in step S1001 in the NAS message to activate the terminal.
  • the NAS message may be an existing NAS message carrying an activation identifier, or may be a new message for activating the terminal.
  • Step S1404 After receiving the activation request, the terminal returns a response.
  • Step S1405 The terminal initiates IP communication to the specific AS according to the service identifier in the activation request.
  • the mobility management network element sends a NAS message to the terminal to activate the terminal.
  • the mobility management network element may also send a Paging message to the terminal to activate the terminal.
  • the mobility management network element may activate the terminal by using the enhanced Paging message, where the service identifier in step S 1401 is carried.
  • step S1502 this step is an incremental step compared to FIG. 14
  • the user signs up for the server eg,
  • the HLR or HSS After receiving the activation request of the AS, the HLR or HSS needs to find a suitable mobility management network element (for example, MSC, SGSN or MME), and the user subscription server can select by: for not supporting roaming, and having low mobility Sex terminal: According to the mobility range defined in the contract, select the appropriate mobility management network element; the user subscription server (HLR/HSS) saves the mobility management network element registered by the last terminal, and can set a suitable one. The timer clears the saved mobility management network element after the timer expires; in the validity time of the timer, the terminal is considered to be still within the coverage of the mobility management network element.
  • a suitable mobility management network element for example, MSC, SGSN or MME
  • step S1504 the mobility management network element activates the terminal by using Paging, and carries the service identifier and the ID of the terminal in step S1302 in the Paging parameter.
  • the terminal For terminals that are not attached to the network, there must be the ability to listen for Paging messages. After the terminal listens to the activation request from the Paging message, it needs to initiate a network attach procedure, and then initiates communication to the AS.
  • the AS is generally known as the application layer identifier of the terminal, and the IMRI is used to identify a terminal in the user subscription server (HLR/HSS).
  • the user subscription server (HLR/HSS) can establish a mapping relationship between the application layer identifier of the terminal and the IMSI
  • the current paging message does not support the application layer identifier, and thus the mobility management network element (MSC/SGSN/MME)
  • MSC/SGSN/MME mobility management network element
  • the terminal ID carried needs to use the IMSI. This approach exposes the IMSI to the network, greatly increasing insecurity.
  • FIG. 16 is a flowchart of activating a terminal by using a temporary identifier by the AS to the user subscription server. As shown in FIG.
  • Step S1601 The terminal performs a process of detaching from the network;
  • Step S1602 The mobility management network element sends the temporary identifier (for example, TMSI, P-TMSI or GUTI) of the network to the terminal to the user subscription server through the notification message; wherein, the step may include two variants: S1602a, the network is allocated to the terminal The temporary identifier is sent to the AS and saved; S1602b, the temporary identifier is only stored in the subscription server.
  • step S1603 the AS initiates a request to activate the terminal, and carries the service identifier and the terminal ID.
  • Step S1604 After the user subscription server receives the activation request, search for a suitable mobility management network element. In this step, the user subscription server replaces the terminal ID in the activation request with the step according to the mapping relationship.
  • Steps S1605 to S1609, the steps shown in FIG. 15 may be used, and details are not described herein again.
  • the paging message Paging may be used to activate the terminal.
  • the Paging message is enhanced to carry the service identity. In this way, the cost of retrofitting wireless paging messages is relatively large.
  • 17 is a flowchart of using a paging message to activate a terminal to transmit a service identifier using a NAS message, and FIG.
  • Step S1701 The mobility management network element receives a terminal activation request, where the terminal identifier and the service identifier are carried; and steps S1702 to S1705, the mobility management network element uses the existing paging message.
  • Step S1706 The non-attached terminal performs a process of attaching to the network and requesting to allocate an IP.
  • the attached terminal initiates a service request to establish a wireless and core network bearer.
  • the mobility NE sends the service identifier to the terminal through the NAS message. Through the service identifier, the terminal can know which service needs to activate the terminal, or which application server needs to activate the terminal.
  • the terminal actively establishes IP communication with the application server. It should be noted that, in the solution of the activation terminal of the third embodiment, the service identifier is required to be sent to the terminal, so that the terminal actively establishes communication with the server.
  • the activation behavior can be simpler: the AS sends an activation request to the terminal through the core network, in which the service identifier can be not carried; when the terminal receives the activation request, it is always Try to communicate with AS unconditionally.
  • Preferred Embodiment 4 This preferred embodiment is a modified embodiment of the preferred embodiment 3.
  • the main difference from the third embodiment is that the AS sends a request to activate the terminal to the mobility management network element.
  • the method for the AS to subscribe to the server to query the mobility management entity registered by the terminal is consistent with the description of the second embodiment.
  • the method for the mobility management to send an activation request to the terminal is consistent with the third embodiment.
  • Step S1801 the AS sends a request to the user subscription server, and queries the current service node of the terminal, that is, the mobility management network element currently registered by the terminal;
  • Step S1802 the user subscription server returns the current service node of the terminal to the AS;
  • step S1803 the AS sends a terminal activation request to the mobility management network element.
  • step S1804 the mobility management network element sends an activation request to the terminal.
  • the mobility management network element may adopt the method in the third embodiment. 14-17) Sending an activation request to the terminal;
  • Step S1805 the mobility management network element returns an activation response to the AS.
  • software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
  • a storage medium is provided, the software being stored, including but not limited to: an optical disk, a floppy disk, a hard disk, a rewritable memory, and the like.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

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

Abstract

Disclosed in the present invention are a method for acquiring terminal status, a method, apparatus and system activating terminal. The method for acquiring terminal status includes: receiving a request message from an application server, wherein the said request message is used for querying the terminal status; acquiring the terminal status, and sending the status of the terminal to the said application server. The present invention resolves the problem in the related technology that Application Server (AS) can not communicate with the Machine Type Communication (MTC) terminal that does not support Short Message Service (SMS) function; thus enabling the AS to communicate with the MTC terminal that does not support SMS function, thereby processing certain service, such as acquiring terminal status or activating terminal.

Description

终端状态获取方法、 激活终端方法、 装置及系统 技术领域 本发明涉及通信领域, 具体而言, 涉及终端状态获取方法、 激活终端方法、 装置 及系统。 背景技术 在移动通信中, 应用服务器 (Application Server, 简称为 AS)、 应用服务器代理 (AS Proxy, 简称为 AS代理) 经常需要利用网络实现和用户终端 (User Equipment, 简称为 UE) 的通讯 (为了描述方便将在本申请中将 AS和 AS代理统称为 AS)。 比如 在相关技术中, 短信服务(Short Message Service, 简称为 SMS)经常被应用服务器用 来触发终端和应用服务器建立通讯。 图 1是根据现有技术下终端接入到分组域的架构示意图, 如图 1所示, 该结构涉 及到了: UE、 UMTS陆地无线接入网 (UMTS Terrestrial Radio Access Network, 简称 为 UTRAN)、演进的陆地无线接入网(Evolved UMTS简称为 E-UTRAN)、服务 GPRS 支持节点 (Serving GPRS Supporting Node, 简称为 SGSN)、 移动性管理实体 (Mobile Management Entity, 简称 MME)、 归属位置寄存器 (Home Location Register, 简称为 HLR) /归属用户服务器 (Home Subscriber Server, 简称为 HSS)、 S-GW 分组数据网 络网关 (Packet Data Network Gateway, 简称为 P-GW)、 AS。 图 2是根据相关技术中应用服务器 AS使用短信服务激活终端与应用服务器通信 的流程图, 如图 2所示, 该流程包括如下步骤: 步骤 S201 , 终端接入网络, 附着到电路交换 (Circuit Switched, 简称为 CS) 域, 即注册到移动交换中心 (Mobile Switching Center, 简称为 MSC) 上; 步骤 S202, AS希望激活终端和该 AS服务器通信, 例如, 下载配置数据、 终端 上报业务数据等。 应用服务器 AS 发送短信给终端, 短信路由到短信网关 (SMS Gateway, 简称为 SMS GW); 步骤 S203, SMS GW向 HLR/HSS查询 UE所附着的网络以及对应的 MSC; 步骤 S204, SMS GW将该短信路由给 MSC; 步骤 S205, MSC将短信路由给 UE; 步骤 S206, UE接收到短信后, 解析短信内容, 确定应用服务器需要和 UE建立 通信; 步骤 S207, UE发起分组交换域 (Packet Switched, 简称为 PS) 域的附着, 被分 配 IP地址; 步骤 S208, UE使用 IP通讯方式和应用服务器建立通信。 在 SMS 中, 移动用户 ISDN 号码 (Mobile Subscriber ISDN Number, 简称为 MSISDN) 被用来识别一个终端, AS使用该 MSISDN号码和终端通过 SMS通信。 目前, 机器类通信 (Machine Type Communication, 简称为 MTC) 得到了发展, MTC通信在很大程度上是应用服务器和终端之间的通讯。 然而, 为了降低成本, 有些 MTC终端并不提供 SMS功能。 这使得 MTC AS无法通过短信的方式来与终端进行通 信以便进行某些业务。 并且, 在相关技术中也没有提供其他技术手段, 使 AS能与不 支持 SMS功能的 MTC终端通信。 发明内容 本发明的主要目的在于提供终端状态获取方法、 激活终端方法、 装置及系统, 以 至少解决上述问题。 根据本发明的一个方面, 提供了一种终端状态获取方法, 包括: 接收到来自应用 服务器的请求消息, 其中, 所述请求消息用于查询终端的状态; 获取所述终端的状态, 并将所述终端的状态发送给所述应用服务器。 优选地, 用户签约服务器接收到来自所述应用服务器的所述请求消息, 所述用户 签约服务器获取所述终端的状态, 并将所述终端的状态发送给所述应用服务器; 或者, 移动性管理网元接收到来自所述应用服务器的所述请求消息, 所述移动性管理网元从 本地获取所述终端的状态, 并将所述终端的状态发送给所述应用服务器。 优选地, 在所述移动性管理网元接收来自所述应用服务器的所述请求消息之前, 所述方法还包括: 所述用户签约服务器接收到所述应用服务器发送的查询请求, 向所 述应用服务器发送所述终端当前注册的移动性管理网元。 优选地, 所述用户签约服务器获取所述终端的状态包括: 所述用户签约服务器在 本地查询到所述终端的状态; 和 /或, 所述用户签约服务器从所述移动性管理网元查询 到所述终端的状态。 优选地, 所述用户签约服务器在本地查询到所述终端的状态为未注册到网络的情 况下,所述用户签约服务器将所述终端的状态为未注册到网络发送给所述应用服务器。 优选地,所述用户签约服务器从所述移动性管理网元查询到所述终端的状态包括: 在所述终端已经被分配所述移动性管理网元的情况下, 所述用户签约服务器从所述移 动性管理网元获取到所述终端的状态。 优选地, 所述移动性管理网元或所述用户签约服务器从所述移动性管理网元获取 到所述终端的状态为: 附着并被分配网际协议 IP地址或附着但未被分配 IP地址。 优选地, 所述移动性管理网元向所述用户签约服务器或所述应用服务器发送所述 终端的 IP地址, 以指示所述用户签约服务器所述终端的状态为附着并被分配 IP地址。 优选地, 所述移动性管理网元向所述用户签约服务器或所述应用服务器发送所述 终端的 IP地址的类型。 优选地, 所述移动性管理网元向所述用户签约服务器或应用服务器发送所述终端 未激活 PDP的指示信息, 以指示所述用户签约服务器所述终端的状态为附着但未被分 配 IP地址。 优选地, 所述用户签约服务器为: HLR或 HSS; 所述移动性管理网元为: MSC、 SGSN或 MME。 根据本发明的另一方面, 提供了一种激活终端方法, 包括: 移动性管理网元接收 用于激活终端的请求消息, 其中, 所述请求消息中携带所述终端的标识, 所述请求消 息的来源为应用服务器; 所述移动性管理网元向所述终端发送用于激活所述终端的消 息。 优选地, 在所述移动性管理网元接收所述请求消息之前, 所述方法还包括: 用户 签约服务器接收应用服务器发送的用于激活终端的请求消息, 并向所述移动性管理网 元发送用于激活所述终端的请求消息; 或者, 所述移动性管理网元接收所述应用服务 器发送的用于激活终端的请求消息。 优选地, 在所述移动性管理网元接收所述应用服务器发送的用于激活终端的请求 消息之前, 所述方法还包括: 所述用户签约服务器接收到所述应用服务器发送的查询 请求, 向所述应用服务器发送所述终端当前注册的移动性管理网元。 优选地, 所述移动性管理网元向所述终端发送用于激活所述终端的消息包括: 所 述移动性管理网元发送寻呼 Paging消息寻呼所述终端; 所述移动性管理网元接收到所 述终端发送的响应于所述寻呼消息的响应消息后, 向所述终端发送 NAS消息, 其中, 所述 NAS消息中携带有所述应用服务器对应的服务标识。 优选地, 来源为所述应用服务器的用于激活终端的请求消息还携带有所述应用服 务器对应的服务标识, 所述移动性管理网元向所述终端发送的用于激活所述终端的消 息中还携带所述服务标识。 优选地, 所述用户签约服务器向移动性管理网元发送激活所述终端的请求消息包 括: 在所述终端已经附着到网络的情况下, 所述用户签约服务器向所述终端当前注册 的移动性管理网元发送激活所述终端的请求消息。 优选地, 所述用户签约服务器向移动性管理网元发送激活所述终端的请求消息包 括: 在所述终端未附着到网络的情况下, 所述用户签约服务器选择移动性管理网元, 并向选择出的移动性管理网元发送激活所述终端的请求消息。 优选地, 所述用户签约服务器选择移动性管理网元包括: 所述用户签约服务器根 据所述终端签约的业务属性, 选择移动性管理网元; 或者, 所述用户签约服务器选择 所述终端上次所注册的移动性管理网元, 作为发送激活所述终端的请求消息的移动性 管理网元。 优选地, 所述移动性管理网元向所述终端发送用于激活所述终端的消息包括: 所 述移动性管理网元根据所述终端的标识向所述终端发送非接入层 NAS 消息或寻呼 Paging消息, 所述 NAS消息或寻呼消息用于激活所述终端。 优选地, 所述移动性管理网元向所述终端发送用于激活所述终端的消息包括: 所 述移动性管理网元发送广播消息, 其中所述广播消息中还携带有所述终端的标识。 优选地, 所述广播消息为 Paging消息或者系统广播消息。 优选地, 在所述移动性管理网元发送广播消息之后, 还包括: 所述终端监听到所 述广播消息之后, 附着到网络。 优选地, 所述用户签约服务器向移动性管理网元发送激活所述终端的请求消息, 其中, 该请求消息还用于查询所述终端是否可及。 优选地, 所述用户签约服务器或所述应用服务器向所述移动性管理网元发送用于 激活所述终端的请求消息, 该请求消息中携带所述终端的临时标识, 其中, 所述临时 标识是在所述终端从网络去附着中, 移动性管理网元将所述临时标识发送给所述用户 签约服务器的。 优选地, 在所述应用服务器保存有所述终端的临时标识的情况下, 所述用户签约 服务器接收到来自应用服务器的激活终端的请求消息, 该请求消息中携带所述终端的 临时标识和服务标识; 在所述应用服务器没有保存所述终端的临时标识的情况下, 所 述用户签约服务器接收到来自应用服务器的激活终端的请求消息, 该请求消息中携带 所述终端的标识和所述服务标识, 并将所述终端的标识替换为所述终端的临时标识。 根据本发明的另一方面, 提供了一种终端状态获取装置, 包括: 第一接收模块, 设置为接收到来自应用服务器的请求消息,其中,所述请求消息用于查询终端的状态; 获取模块, 设置为获取所述终端的状态, 并将所述终端的状态发送给所述应用服务器。 优选地, 位于用户签约服务器的所述第一接收模块, 设置为接收到来自所述应用 服务器的所述请求消息, 位于所述用户签约服务器的所述获取模块, 设置为获取所述 终端的状态, 并将所述终端的状态发送给所述应用服务器; 或者, 位于所述移动性管 理网元的所述第一接收模块, 设置为接收到来自所述应用服务器的所述请求消息, 位 于所述移动性管理网元的所述获取模块, 设置为从本地获取所述终端的状态, 并将所 述终端的状态发送给所述应用服务器。 根据本发明的另一个方面, 提供了一种终端状态获取系统, 包括: 用户签约服务 器、移动性管理网元和应用服务器, 其中, 所述应用服务器设置为向所述用户签约服 务器或所述移动性管理网元发送请求消息,其中,所述请求消息用于查询终端的状态; 所述用户签约服务器或所述移动性管理网元设置为在接收到所述请求消息之后, 获取 所述终端的状态, 并将所述终端的状态发送给所述应用服务器。 根据本发明的另一个方面, 提供了一种激活终端装置, 位于移动性管理网元中, 包括: 第二接收模块, 设置为接收用于激活终端的请求消息, 其中, 所述请求消息中 携带所述终端的标识, 所述请求消息的来源为应用服务器; 发送模块, 设置为向所述 终端发送用于激活所述终端的消息。 优选地, 所述第二接收模块接收到的所述请求消息的发送方是用户签约服务器, 其中, 所述用于签约服务器在接收到应用服务器发送的用于激活终端的所述请求消息 之后, 向所述移动性管理网元发送所述请求消息; 或者, 所述第二接收模块接收到的 用于激活终端的请求消息的发送方是应用服务器。 根据本发明的一个方面, 提供了一种激活终端系统, 包括: 用户签约服务器、 移 动性管理网元和应用服务器, 所述应用服务器设置为经由所述用户签约服务器或直接 向所述移动性管理网元发送用于激活终端的请求消息, 其中, 该请求消息中携带所述 终端的标识; 所述移动性管理网元设置为向所述终端发送用于激活所述终端的消息。 通过本发明, 解决了相关技术中 AS无法与不支持 SMS功能的 MTC终端进行通 信的问题, 使 AS可以与不支持 SMS功能的 MTC终端通信, 进而进行某种业务, 例 如, 获取终端状态、 或者激活终端。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据现有技术下终端接入到分组域的架构示意图; 图 2是根据相关技术中 AS使用短信服务激活终端与 AS通信的流程图; 图 3是根据本发明实施例的终端状态获取方法的流程图; 图 4是根据本发明实施例的激活终端方法的流程图一, 该图示出了 AS向用户签 约服务器发送终端激活请求; 图 5是根据本发明实施例的激活终端方法的流程图二, 该图示出了 AS向移动性 管理网元发送终端激活请求; 图 6是根据本发明实施例的网络架构的示意图; 图 7是根据本发明实施例的 AS向用户签约服务器查询终端当前状态的流程图; 图 8是根据本发明实施例的 AS向用户签约服务器查询终端当前状态的流程图, 其中终端未附着在网络中; 图 9是根据本发明实施例的 AS向用户签约服务器查询终端当前状态的流程图, 其中终端附着在网络中并分配了 IP地址; 图 10是根据本发明实施例的 AS向用户签约服务器查询终端当前状态的流程图, 其中终端附着在网络中但未分配 IP地址; 图 11是根据本发明实施例的 AS向移动性管理网元查询终端当前状态的流程示意 图; 图 12是根据本发明实施例的 AS向移动性管理网元查询终端当前状态的流程图; 图 13是根据本发明实施例的 AS向用户签约服务器激活终端的流程图; 图 14是根据本发明实施例终端附着在网络中, AS向用户签约服务器激活终端的 流程图; 图 15是根据本发明实施例的在终端未附着在网络中, AS向用户签约服务器激活 终端的流程图; 图 16是根据本发明实施例的使用临时标识, AS向用户签约服务器激活终端的流 程图; 图 17是根据本发明实施例的使用寻呼消息来激活终端后, 使用 NAS消息发送服 务标识的流程图; 图 18是根据本发明实施例的 AS向移动性管理网元激活终端的流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 需要说明的是,以下实施例中的终端对于不支持 SMS功能的 MTC终端是适用的, 对于支持 SMS功能的 MTC终端也可以采用以下实施例中的方法。 当然, 该终端也可 以不是 MTC终端, 对于其他的类型的终端也可以适用。 在以下实施例中, MTC终端 (在本实施例中简称为终端) 不提供 SMS功能, AS 和 MTC终端的通信采用基于 IP的通信方式。 这种方式要求 AS获知终端的 IP地址, 并且网络一直将这个 IP分配给该终端。 为了简化描述, 除特殊标明之外, 在以下实施 例中使用 AS来表述 AS和 /或 AS代理。 The present invention relates to the field of communications, and in particular to a terminal state acquisition method, an activation terminal method, apparatus, and system. BACKGROUND In mobile communication, an application server (Application Server, abbreviated as AS) and an application server proxy (AS Proxy, referred to as an AS proxy) often need to use a network to implement communication with a user terminal (User Equipment, UE for short) (in order to For convenience of description, AS and AS agents will be collectively referred to as AS in this application. For example, in the related art, a Short Message Service (SMS) is often used by an application server to trigger a terminal to establish communication with an application server. 1 is a schematic diagram of an architecture of a terminal accessing a packet domain according to the prior art. As shown in FIG. 1, the structure relates to: UE, UMTS Terrestrial Radio Access Network (UTRAN), and evolution. Terrestrial Radio Access Network (Evolved UMTS for short) E-UTRAN, Serving GPRS Supporting Node (SGSN), Mobile Management Entity (MME), Home Location Register (Home Location) Register, abbreviated as HLR) / Home Subscriber Server (HSS), S-GW Packet Data Network Gateway (P-GW), AS. 2 is a flow chart of the application server AS using the short message service to activate the terminal to communicate with the application server according to the related art. As shown in FIG. 2, the process includes the following steps: Step S201: The terminal accesses the network and is attached to the circuit switch (Circuit Switched) For example, the CS is to be registered with the Mobile Switching Center (MSC). In step S202, the AS wants to activate the terminal to communicate with the AS server, for example, downloading configuration data, and reporting service data by the terminal. The application server AS sends a short message to the terminal, and the short message is routed to the SMS gateway (SMS Gateway, referred to as SMS GW). Step S203, the SMS GW queries the HLR/HSS for the network to which the UE is attached and the corresponding MSC. Step S204, the SMS GW will The short message is routed to the MSC; Step S205, the MSC routes the short message to the UE. Step S206: After receiving the short message, the UE parses the short message content, and determines that the application server needs to establish communication with the UE. Step S207: The UE initiates a Packet Switched (PS) domain. Attached, an IP address is assigned; Step S208, the UE establishes communication with the application server by using an IP communication method. In SMS, a Mobile Subscriber ISDN Number (MSISDN) is used to identify a terminal that the AS uses to communicate with the terminal via SMS. At present, Machine Type Communication (MTC) has been developed. MTC communication is largely a communication between the application server and the terminal. However, in order to reduce costs, some MTC terminals do not provide SMS functionality. This makes it impossible for the MTC AS to communicate with the terminal by SMS to perform certain services. Moreover, other technical means are not provided in the related art, so that the AS can communicate with an MTC terminal that does not support the SMS function. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a terminal state acquisition method, an activation terminal method, apparatus, and system to at least solve the above problems. According to an aspect of the present invention, a terminal state obtaining method is provided, including: receiving a request message from an application server, where the request message is used to query a state of the terminal; acquiring a state of the terminal, and The status of the terminal is sent to the application server. Preferably, the user subscription server receives the request message from the application server, the user subscription server acquires the status of the terminal, and sends the status of the terminal to the application server; or, mobility management The network element receives the request message from the application server, and the mobility management network element locally acquires the status of the terminal, and sends the status of the terminal to the application server. Preferably, before the mobility management network element receives the request message from the application server, the method further includes: the user subscription server receiving a query request sent by the application server, to the application The server sends the mobility management network element currently registered by the terminal. Preferably, the acquiring, by the user subscription server, the status of the terminal includes: the user subscription server locally queries the status of the terminal; and/or the user subscription server queries from the mobility management network element The status of the terminal. Preferably, if the user subscription server locally queries that the status of the terminal is not registered to the network, the user subscription server sends the status of the terminal to the network without being registered to the application server. Preferably, the status of the user subscription server querying the terminal from the mobility management network element includes: in a case that the terminal has been allocated the mobility management network element, the user subscription server is The mobility management network element acquires the status of the terminal. Preferably, the mobility management network element or the user subscription server obtains the status of the terminal from the mobility management network element as: attaching and being assigned an internet protocol IP address or attaching but not assigning an IP address. Preferably, the mobility management network element sends the IP address of the terminal to the user subscription server or the application server, to indicate that the status of the terminal of the user subscription server is attached and assigned an IP address. Preferably, the mobility management network element sends the type of the IP address of the terminal to the user subscription server or the application server. Preferably, the mobility management network element sends the indication information that the terminal does not activate the PDP to the user subscription server or the application server, to indicate that the status of the terminal of the user subscription server is attached but not assigned an IP address. . Preferably, the user subscription server is: an HLR or an HSS; and the mobility management network element is: an MSC, an SGSN or an MME. According to another aspect of the present invention, a method for activating a terminal is provided, including: a mobility management network element receiving a request message for activating a terminal, where the request message carries an identifier of the terminal, the request message The source is the application server; the mobility management network element sends a message to the terminal for activating the terminal. Preferably, before the mobility management network element receives the request message, the method further includes: receiving, by the user subscription server, a request message sent by the application server for activating the terminal, and sending the request message to the mobility management network element. a request message for activating the terminal; or, the mobility management network element receives a request message sent by the application server for activating the terminal. Preferably, before the mobility management network element receives the request message for activating the terminal sent by the application server, the method further includes: the user subscription server receiving the query request sent by the application server, The application server sends the mobility management network element currently registered by the terminal. Preferably, the message that the mobility management network element sends the terminal to activate the terminal includes: the mobility management network element sends a paging Paging message to page the terminal; the mobility management network element After receiving the response message sent by the terminal and responding to the paging message, the NAS message is sent to the terminal, where the NAS message carries the service identifier corresponding to the application server. Preferably, the request message for activating the terminal from the application server further carries a service identifier corresponding to the application server, and the message sent by the mobility management network element to the terminal for activating the terminal The service identifier is also carried in the middle. Preferably, the sending, by the user subscription server, the request message for activating the terminal to the mobility management network element includes: when the terminal has been attached to the network, the mobility of the user subscription server to the terminal is currently registered. The management network element sends a request message to activate the terminal. Preferably, the sending, by the user subscription server, the request message for activating the terminal to the mobility management network element includes: when the terminal is not attached to the network, the user subscription server selects a mobility management network element, and The selected mobility management network element sends a request message to activate the terminal. Preferably, the user subscription server selects the mobility management network element, and the user subscription server selects the mobility management network element according to the service attribute of the terminal subscription; or the user subscription server selects the terminal last time. The registered mobility management network element serves as a mobility management network element that transmits a request message for activating the terminal. Preferably, the sending, by the mobility management network element, the message for activating the terminal to the terminal includes: sending, by the mobility management network element, a non-access stratum NAS message to the terminal according to the identifier of the terminal or Paging a paging message, the NAS message or paging message is used to activate the terminal. Preferably, the message that the mobility management network element sends the terminal to activate the terminal includes: the mobility management network element sends a broadcast message, where the broadcast message further carries the identifier of the terminal . Preferably, the broadcast message is a Paging message or a system broadcast message. Preferably, after the mobility management network element sends the broadcast message, the method further includes: after the terminal monitors the broadcast message, attaching to the network. Preferably, the user subscription server sends a request message for activating the terminal to the mobility management network element, where the request message is further used to query whether the terminal is reachable. Preferably, the user subscription server or the application server sends a request message for activating the terminal to the mobility management network element, where the request message carries a temporary identifier of the terminal, where the temporary identifier In the detachment of the terminal from the network, the mobility management network element sends the temporary identifier to the user subscription server. Preferably, in a case that the application server saves the temporary identifier of the terminal, the user subscription server receives a request message from an activation terminal of the application server, where the request message carries the temporary identifier and service of the terminal. Identifying, in the case that the application server does not save the temporary identifier of the terminal, the user subscription server receives a request message from the application terminal, and the request message carries the identifier of the terminal and the service. Identifying, and replacing the identifier of the terminal with the temporary identifier of the terminal. According to another aspect of the present invention, a terminal state obtaining apparatus is provided, including: a first receiving module, configured to receive a request message from an application server, where the request message is used to query a state of the terminal; And setting to acquire the state of the terminal, and sending the state of the terminal to the application server. Preferably, the first receiving module of the user subscription server is configured to receive the request message from the application server, and the acquiring module located in the user subscription server is configured to acquire the status of the terminal. And sending the status of the terminal to the application server; or the first receiving module located in the mobility management network element is configured to receive the request message from the application server, located at the location The acquiring module of the mobility management network element is configured to acquire the state of the terminal locally, and send the state of the terminal to the application server. According to another aspect of the present invention, a terminal status acquisition system is provided, including: a user subscription server, a mobility management network element, and an application server, where the application server is configured to sign a server or the mobile to the user. The requesting message is used to query the status of the terminal, and the user subscription server or the mobility management network element is configured to acquire the terminal after receiving the request message. a status, and the status of the terminal is sent to the application server. According to another aspect of the present invention, an activation terminal device is provided, which is located in a mobility management network element, and includes: a second receiving module, configured to receive a request message for activating a terminal, where the request message is carried An identifier of the terminal, where the source of the request message is an application server, and a sending module, configured to send a message to the terminal for activating the terminal. Preferably, the sender of the request message received by the second receiving module is a user subscription server, where the signing server receives the request message for activating the terminal sent by the application server, Sending the request message to the mobility management network element; or, the sender of the request message for activating the terminal received by the second receiving module is an application server. According to an aspect of the present invention, an activation terminal system is provided, including: a user subscription server, a mobility management network element, and an application server, the application server being configured to directly log to the mobility management server The network element sends a request message for activating the terminal, where the request message carries an identifier of the terminal; the mobility management network element is configured to send a message for activating the terminal to the terminal. The present invention solves the problem that the AS cannot communicate with the MTC terminal that does not support the SMS function in the related art, so that the AS can communicate with the MTC terminal that does not support the SMS function, and then perform some service, for example, acquiring the terminal status, or Activate the terminal. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a schematic diagram of an architecture of a terminal accessing a packet domain according to the prior art; FIG. 2 is a flowchart of an AS using a short message service to activate a terminal to communicate with an AS according to the related art; FIG. 3 is a flowchart according to the present invention. FIG. 4 is a flowchart 1 of a method for activating a terminal according to an embodiment of the present invention. The figure shows an AS sending a terminal activation request to a user subscription server. FIG. 5 is a diagram of a terminal activation request according to an embodiment of the present invention. Flowchart 2 of the method for activating the terminal, the figure shows the AS transmitting a terminal activation request to the mobility management network element; FIG. 6 is a schematic diagram of a network architecture according to an embodiment of the present invention; FIG. 7 is an AS according to an embodiment of the present invention. A flowchart for querying a current status of a terminal by a user subscription server; FIG. 8 is a flowchart of an AS querying a user subscription server for querying a current state of a terminal according to an embodiment of the present invention, where the terminal is not attached to the network; FIG. 9 is a flowchart of an AS querying a user subscription server for querying a current state of a terminal according to an embodiment of the present invention, wherein the terminal is attached to the network and assigned an IP address; FIG. 10 is an AS querying the terminal to the user subscription server according to an embodiment of the present invention; Flowchart of the current state, wherein the terminal is attached to the network but no IP address is assigned; FIG. 11 is a schematic flowchart of the AS querying the mobility management network element for the current state of the terminal according to an embodiment of the present invention; FIG. 12 is a schematic diagram of the current state according to the embodiment of the present invention. FIG. 13 is a flowchart of an AS activating a terminal to a user subscription server according to an embodiment of the present invention; FIG. 14 is a diagram of a terminal attached to a network according to an embodiment of the present invention; FIG. 15 is a flow chart of activating a terminal by a server to a user; FIG. 15 is a flowchart of an AS activating a terminal to a user by a server when the terminal is not attached to the network according to an embodiment of the present invention; FIG. 16 is a temporary use according to an embodiment of the present invention. Identification, a flow chart of the AS signing the server to the user to activate the terminal; FIG. 17 is a use seek in accordance with an embodiment of the present invention. After the message to activate the terminal, sending a flowchart of the service identifier using the NAS message; FIG. 18 is a flowchart of the activation of the terminal to the mobility management network element according to an embodiment of the present invention AS. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. It should be noted that the terminal in the following embodiments is applicable to an MTC terminal that does not support the SMS function, and the method in the following embodiments may also be adopted for an MTC terminal that supports the SMS function. Of course, the terminal may not be an MTC terminal, and may be applicable to other types of terminals. In the following embodiments, the MTC terminal (referred to as a terminal in this embodiment) does not provide an SMS function, and the communication between the AS and the MTC terminal adopts an IP-based communication method. This method requires the AS to know the IP address of the terminal. And the network has always assigned this IP to the terminal. To simplify the description, AS is used to represent AS and/or AS agents in the following embodiments, unless otherwise specified.
AS获知终端的 IP地址, 通常是终端执行应用层注册机制时, 将 IP地址报告给 AS的, 并且在注册后, 为了保持终端状态的更新, 终端需要周期性地执行注册更新, 以确保 AS知道终端当前是活动的。 在很多时候, 终端附着到网络后, 并没有被分配 IP地址, 例如, 通用分组无线业务 (General Packet Radio Service, 简称为 GPRS) 网 络中, 终端的 PS附着和 IP地址分配的过程是分离的。 在某些情况下, 即使终端被分 配了 IP地址, 终端也未必向 AS执行注册, 或者终端向 AS注册后很久没有向 AS执 行注册更新过程。 此时, 当 AS期望向终端发起 IP通讯时, 可能没有可用的 IP地址、 或者 IP地址已经失效了, 这将导致 AS发起的通讯以失败告终。 如果 AS多次尝试向 终端发起 IP通讯均失败, AS有必要知道当前终端的事实状态, 比如: 终端已经被重 新分配 IP地址、 在 GPRS中终端虽然附着但是 IP地址已释放、 终端已经从网络去附 着等。在终端不支持短信服务时, AS就无法和终端进行通信, 进而也无法获知终端的 状态。 在本实施例中, 提供了一种终端状态获取方法、 装置及系统, 该系统包括的网元 用于执行本实施例及优选实施方式, 下面对该终端状态获取方法进行说明。 该方法包 括: 步骤 S12, 接收到来自应用服务器的请求消息, 其中, 请求消息用于查询终端的 状态; 步骤 S14, 获取终端的状态, 并将终端的状态发送给应用服务器。 通过上述步骤, 可以使应用服务器获取到终端的状态, 任何可以获取到终端状态 并发送给应用服务器的网元均可以执行上述步骤, 例如, 用户签约服务器、 或者移动 性管理网元, 在以下实施例中以这两个网元为例进行说明, 但并不限于这两个网元。 例如, 用户签约服务器接收到来自应用服务器的请求消息, 获取终端的状态, 并 将终端的状态发送给应用服务器; 或者, 移动性管理网元接收到来自应用服务器的请 求消息, 从本地获取终端的状态, 并将终端的状态发送给应用服务器。 优选地, 应用服务器可以通过向用户签约服务器发送查询请求来获得终端当前注 册的移动性管理网元。 在本实施例中提供了一种终端状态获取装置, 包括: 第一接收模块, 和与第一接 收模块连接的获取模块。 如以下所使用的, 术语 "模块"可以实现预定功能的软件和 /或硬 件的组合。 尽管以下实施例所描述的装置较佳地以软件来实现, 但是硬件, 或者软件和硬件 的组合的实现也是可能并被构想的。 其中, 第一接收模块, 设置为接收到来自应用服务 器的请求消息, 其中, 请求消息用于查询终端的状态; 获取模块, 设置为获取终端的 状态, 并将终端的状态发送给应用服务器。 优选地, 位于用户签约服务器的第一接收模块, 设置为接收到来自应用服务器的 请求消息, 位于用户签约服务器的获取模块, 设置为获取终端的状态, 并将终端的状 态发送给应用服务器; 或者, 位于移动性管理网元的第一接收模块, 设置为接收到来 自应用服务器的请求消息, 位于移动性管理网元的获取模块, 设置为从本地获取终端 的状态, 并将终端的状态发送给应用服务器。 图 3是根据本发明实施例的终端状态获取方法的流程图, 如图 3所示, 该流程包 括如下步骤: 步骤 S302, 用户签约服务器 (例如, HLR或 HSS)、 或移动性管理网元 (例如, SGSN/MME) 接收到来自 AS的请求消息, 其中, 该请求消息用于查询终端的状态; 步骤 S304, 用户签约服务器、 或移动性管理网元获取该终端的状态, 并将终端的 状态发送给 AS。 通过以上步骤, AS可以获取到终端的状态, 方便了 AS与终端之间的业务处理。 优选地, 在实施时, 用户签约服务器、 或移动性管理网元可以通过几种方式来获 取终端的状态, 下面对此进行举例说明, 但是并不限于此。 方式一, 用户签约服务器可以在本地查询到终端的状态, 例如, 在用户签约服务 器在本地查询到终端的状态为未注册到网络的情况下, 用户签约服务器将终端的状态 为未注册到网络发送给 AS。 方式二,用户签约服务器也可以从移动性管理网元(例如, MSC、 SGSN或 MME) 查询到终端的状态。 通过用户签约服务器查询本地存储的终端的状态为终端注册到网 络中(或附着在网络中), 在终端已经被分配移动性管理网元的情况下, 用户签约服务 器从该移动性管理网元查询到所述终端的状态。 例如, 用户签约服务器从移动性管理 网元查询到终端的状态为: 附着并被分配 IP地址或附着但未被分配 IP地址。 优选地, 当终端状态为附着并分配 IP地址时,移动性管理网元向用户签约服务器发送终端的 IP 地址, 以指示用户签约服务器终端的状态为附着并被分配 IP地址, 当然, 还可以发送 所述终端的 IP地址的类型, 如: IPv4、 IPv6、 公网 IP、 丝网 IP等, 或者类型的组合。 优选地, 当终端状态为附着但未分配 IP地址时, 移动性管理网元向用户签约服务器发 送终端未激活分组数据协议(Packet Data Protocol, 简称为 PDP) 的指示信息, 以指示 用户签约服务器终端的状态为附着但未被分配 IP地址。 方式三, 用户签约服务器向 AS返回为终端分配的移动性管理网元的地址, AS向 移动性管理网元查询终端的状态, 移动性管理网元向 AS所返回的终端的状态。 移动 性管理网元所返回的终端的状态, 和方式二一致。 一种激活终端方法、 装置及系统, 该系统包括的网元设置为执行本实施例及优选 实施方式。 该激活终端方法包括: 步骤 S102, 移动性管理网元接收用于激活终端的请求消息, 其中, 请求消息中携 带终端的标识, 请求消息的来源为应用服务器; 步骤 S104, 移动性管理网元向终端发送用于激活终端的消息。 在上述步骤中, 应用服务器可以直接向移动性管理网元发送请求消息, 也可以经 由其他网元向移动性管理网元发送请求消息, 例如, 用户签约服务器接收应用服务器 发送的用于激活终端的请求消息,并向移动性管理网元发送用于激活终端的请求消息。 优选地, 应用服务器可以通过向用户签约服务器发送查询请求来获得终端当前注 册的移动性管理网元。 在本实施例中提供了一种激活终端装置,位于移动性管理网元中,如以下所使用的, 术语 "模块"可以实现预定功能的软件和 /或硬件的组合。 尽管以下实施例所描述的装置较佳 地以软件来实现, 但是硬件, 或者软件和硬件的组合的实现也是可能并被构想的。 该装置包 括: 第二接收模块、 和与第二接收模块连接的发送模块, 其中, 第二接收模块, 设置 为接收用于激活终端的请求消息, 其中, 请求消息中携带终端的标识, 请求消息的来 源为应用服务器; 发送模块, 设置为向终端发送用于激活终端的消息。 优选地, 第二接收模块接收到的请求消息的发送方是用户签约服务器, 其中, 用 于签约服务器在接收到应用服务器发送的用于激活终端的请求消息之后, 向移动性管 理网元发送请求消息; 或者, 第二接收模块接收到的用于激活终端的请求消息的发送 方是应用服务器。 图 4是根据本发明实施例的激活终端方法的流程图一, 如图 4所示, 该流程包括 如下步骤: 步骤 S402, 用户签约服务器接收到来自 AS的激活终端的请求消息, 其中, 该请 求消息中携带终端的标识; 步骤 S404, 用户签约服务器向移动性管理网元发送激活终端的请求消息, 其中, 该请求消息中携带终端的标识; 步骤 S406, 移动性管理网元向终端发送用于激活终端的消息。 图 5是根据本发明实施例的激活终端方法的流程图二, 如图 5所示, 该流程包括 如下步骤: 步骤 S502, AS 向用户签约服务器查询终端的当前服务网元, 即终端当前注册的 移动性管理网元。 用户签约服务器向 AS返回终端的当前服务网元; 步骤 S504, AS 向移动性管理网元发送激活终端的请求消息, 其中, 该请求消息 中携带终端的标识; 步骤 S506, 移动性管理网元向终端发送用于激活终端的消息。 优选地, AS可以通过向用户签约服务器查询终端的当前服务网元的方式(即终端 当前注册的移动性管理网元) 使用户签约服务器向 AS返回终端的当前服务网元。 上述的图 4和图 5示出如下的流程: 用户签约服务器、 或移动性管理网元接收到 来自 AS 的激活终端的请求消息, 其中, 请求消息中携带终端的标识; 用户签约服务 器、或移动性管理网元发送激活终端的请求消息,其中该请求消息中携带终端的标识。 通过上述方式, AS可以激活终端, 当然, 如果 AS服务器需要通知终端其服务标 识, 则可以采用以下优选的实施方式: 用户签约服务器、 或移动性管理网元接收到的 来自 AS的激活终端的请求消息中还携带有所述 AS对应的服务标识;所述用户签约服 务器向移动性管理网元发送的激活所述终端的请求消息中还携带有所述服务标识; 所 述移动性管理网元向所述终端发送的用于激活所述终端的消息中还携带所述服务标 识。 优选地, 服务标识可以是 AS的标识、 也可以是 AS所实现的服务的标识。 例如, AS的标识可以是 AS的 IP地址,而 AS所实现的服务标识可以是一个代表一定意义的 字符或者数字 (例如, SUPL代表用户面定位系统)。 移动性管理网元向终端发送用于激活该终端的消息的方式有很多种, 例如, 为了 尽量避免对现有消息的改动, 移动性管理网元可以发送 Paging消息寻呼该终端, 并在 接收到终端发送的响应消息后, 向终端发送非接入层 (Non-Access Stratum, 简称为 NAS)消息, 该 NAS消息中携带有该应用服务器对应的服务标识。通过这样的处理方 式不需要对现有的 Paging消息进行任何改动就可以寻呼终端。 优选地, AS向用户签约服务器发送用于激活该终端的请求消息, 以使得签约服务 器向移动性管理网元发送用于激活该终端的请求消息。 优选地, 在终端已经附着到网络的情况下, 用户签约服务器向终端当前注册的移 动性管理网元发送激活终端的请求消息。 然后, 该移动性管理网元可以向终端发送用 于激活该终端的消息, 例如, 移动性管理网元根据可以终端的标识向终端发送 NAS 消息或寻呼 (Paging) 消息, 其中, 该 NAS消息或 Paging消息用于激活所述终端。 优选地, 在终端未附着到网络的情况下, 用户签约服务器可以根据预定策略选择 移动性管理网元, 并向选择出的移动性管理网元发送激活终端的请求消息。 例如, 用 户签约服务器可以根据终端签约的业务属性选择移动性管理网元; 又例如, 用户签约 服务器可以选择终端上次所注册的移动性管理网元作为发送激活终端的请求消息的移 动性管理网元。 更优地, 终端签约的业务属性可以为签约中所限定的终端移动的范围 (例如, 指明为低移动性终端, 签约了固定的位置区域); 选择上次所注册的移动性管 理网元的有效性可以限制在一定有效时长之内。 优选地, AS向终端当前注册的移动性管理网元发送激活终端的请求消息,该移动 性管理网元可以向终端发送用于激活该终端的消息。 在 AS 向移动性管理网元发送激 活终端的请求消息之前, AS可以向用户签约服务器查询终端当前注册的移动性管理网 元, 用户签约服务器向 AS返回终端当前注册的移动性管理网元。 优选地, 在选择出移动性管理网元之后, 移动性管理网元可以发送广播消息 (例 如, Paging消息或者系统广播消息), 其中, 该广播消息中还携带有终端的标识。在移 动性管理网元发送广播消息之后, 终端监听到该广播消息之后, 附着到网络。 优选地, 为了更加安全, 用户签约服务器向移动性管理网元发送激活终端的请求 消息, 该请求消息中携带终端的临时标识, 其中, 该临时标识是在终端从网络去附着 中, 移动性管理网元将临时标识发送给用户签约服务器的。 优选地, 在 AS保存有终端的临时标识的情况下, 用户签约服务器接收到来自 AS 的激活终端的请求消息, 该请求消息中携带终端的临时标识和服务标识; 在 AS没有 保存终端的临时标识的情况下, 用户签约服务器接收到来自 AS 的激活终端的请求消 息, 该请求消息中携带终端的标识和服务标识, 并将终端的标识替换为终端的临时标 识。 除上述情况之外, 网络配置可能采用 OMA DM方式, 该方式的一种目前也是通 过 SMS来激活终端, 当然也可以采用本实施例中的激活方式。 下面结合附图对优选实施例进行说明。 图 6是根据本发明实施例的网络架构的示意图, 和图 1的架构示意图的区别是, AS/AS代理和用户签约服务器 (HLR/HSS)、 移动性管理网元 (SGSN/MME) 等均根 据需要建立合适的接口。 和用户签约服务器 (HLR/HSS )、 移动性管理网元的接口, 均能提供给 AS以查询 UE的状态、 发送终端激活请求的能力。 优选实施例一 本优选实施例提供了一种 AS查询终端的状态的方法, 在本优选实施例中, 用户 签约服务器可以是 HLR或 HSS,移动性管理网元是 MSC (CS域)、 SGSN (GPRS域)、 MME (EPS域), 其中, AS向用户签约服务器发送服务请求, 查询终端的当前状态; 用户签约服务器从自身查询终端的当前状态, 或从移动性管理网元查询终端的当前状 态, 并向 AS返回所述当前状态。 下面对此进行说明。 当用户签约服务器从自身查询终端的状态为该终端没有被分配移动性管理网元, 则返回终端当前状态为未附着在网络中; 当用户签约服务器从移动性管理网元查询终 端的状态为: 终端当前已附着到网络并被分配移动性管理网元, 用户签约服务器向该 移动性管理网元发送查询请求, 移动性管理网元根据自身保存的终端信息, 返回终端 的当前状态。 例如, 终端当前已附着, 并被分配 IP地址, 移动性管理网元返回终端的 当前状态为: 附着并被分配 IP地址。 该状态可以用终端的 IP地址来表达, 移动性管 理网元可进一步返回该 IP地址的类型 (IPv4、 IPv6, 公网 IP、 私网 IP等的组合); 如 终端当前已附着, 但未被分配 IP地址, 移动性管理网元返回终端的当前状态为: 附着 但未分配 IP地址。 该状态可以用未激活 PDP来表达。 下面结合附图对本优选实施例进行说明。 图 7是根据本发明实施例的 AS向用户签约服务器查询终端当前状态的流程图, 如图 7所示, 该流程包括如下步骤: 步骤 S702, AS由于业务执行的需要, 向用户签约服务器查询终端的当前状态; 步骤 S704, 用户签约服务器查询本地所保存的终端的状态(例如, 终端当前未注 册到网络中), 或向移动性管理网元查询终端的当前状态, 并根据所查询到的终端的状 态返回给 AS。 由于终端的状态有很多种, 某些状态可以通过用户签约服务器中存储的信息直接 返回(例如,终端当前未注册到网络中),某些状态可以向移动性管理网元查询(例如, 终端当前注册到网络中, 但是具有子状态: 附着并分配 IP地址、 附着但未分配 IP地 址、终端不可及等)。在终端当前注册到网络的情况下,为了获得终端的更详细的状态, 用户签约服务器可以向移动性管理网元发送查询请求。 最终, 用户签约服务器向 AS 返回查询到的终端的状态。 例如, 终端当前未注册到网络中, 用户签约服务器返回终端状态为: 未注册到网 络; 终端当前注册到网络中, 用户签约服务器从移动性管理网元中查询到终端的当前 状态为: 附着并分配 IP地址; 终端当前注册到网络中, 用户签约服务器从移动性管理 网元查询到终端的当前状态为: 附着但未分配 IP地址。 图 8是根据本发明实施例的 AS向用户签约服务器查询终端当前状态的流程图, 其中终端未附着在网络中, 如图 8所示, 该流程包括如下步骤: 步骤 S801, AS向用户签约服务器发送服务请求, 查询终端的当前状态; 步骤 S802, 用户签约服务器根据本地信息, 判断终端当前未注册到网络; 步骤 S803 , 向 AS返回终端的当前状态为: 未注册到网络。 在本实施例中, 所谓未注册到网络, 实际上是用户签约服务器查询本地所保存的 终端的状态信息, 发现没有为当前终端分配移动性管理网元 (MSC/SGSN/MME), 因 而认为终端当前未注册到网络中。 因而, 用户签约服务器所返回的终端当前未注册到 网络的状态, 等价于: 未分配移动性管理网元 (MSC/SGSN/MME) 给该终端。 图 9是根据本发明实施例的 AS向用户签约服务器查询终端当前状态的流程图, 其中终端附着在网络中并分配了 IP地址, 如图 9所示, 该流程包括如下步骤: 步骤 S901, AS向用户签约服务器发送服务请求, 查询终端的当前状态; 步骤 S902, 用户签约服务器根据本地信息, 判断终端当前已注册到网络, 则向移 动性管理网元(例如, SGSN或 MME)查询终端的当前状态; 其中, 用户签约服务器 可以现有的可及性检查消息, 并在该消息中携带标识要求移动性管理网元立即返回终 端当前的状态; 或者, 也可以新引入独立的消息查询终端的当前状态。 步骤 S903 , 移动性管理网元检查终端的状态, 当前终端已经注册到移动性管理网 元上, 即终端已经附着到网络中, 并且, 网络已经为终端分配了 IP地址; 步骤 S904,该步骤为优选的步骤,移动性管理网元可以向用户面网元(例如, GGSN 或 PGW) 查询终端的 IP地址; 移动性管理网元并不总是知道终端的 IP地址。 例如, 某些 IPv6地址分配方法下, 终端的 IP地址并不为移动性管理网元所知。 然而, 用户 面网元是知道终端的 IP地址的,因而移动性管理网元可以进一步向用户面网元查询终 端的 IP地址; 步骤 S905, 移动性管理网元向用户签约服务器返回终端的当前状态: 附着并分配The AS knows the IP address of the terminal. Generally, when the terminal performs the application layer registration mechanism, the IP address is reported to the AS, and after registration, in order to keep the terminal status updated, the terminal needs to periodically perform registration update to ensure that the AS knows. The terminal is currently active. In many cases, after the terminal is attached to the network, no IP address is assigned. For example, in the General Packet Radio Service (GPRS) network, the process of PS attachment and IP address allocation of the terminal is separated. In some cases, even if the terminal is assigned an IP address, the terminal does not necessarily perform registration with the AS, or the registration update process is not performed to the AS long after the terminal registers with the AS. At this time, when the AS desires to initiate IP communication to the terminal, there may be no available IP address, or the IP address has expired, which will cause the communication initiated by the AS to fail. If the AS fails to initiate IP communication to the terminal multiple times, it is necessary for the AS to know the fact state of the current terminal, for example: the terminal has been reassigned the IP address, although the terminal is attached but the IP address has been released in the GPRS, the terminal has gone from the network. Attached, etc. When the terminal does not support the short message service, the AS cannot communicate with the terminal, and thus the status of the terminal cannot be known. In this embodiment, a method, a device, and a system for acquiring a terminal state are provided. The network element included in the system is used to implement the present embodiment and a preferred implementation manner. The method includes the following steps: Step S12: Receive a request message from an application server, where the request message is used to query the status of the terminal. Step S14: acquire the status of the terminal, and send the status of the terminal to the application server. Through the above steps, the application server can obtain the state of the terminal, and any network element that can obtain the state of the terminal and send it to the application server can perform the above steps, for example, the user subscription server or the mobility management network element, and implemented in the following In the example, the two network elements are taken as an example, but are not limited to the two network elements. For example, the user subscription server receives the request message from the application server, acquires the status of the terminal, and sends the status of the terminal to the application server. Alternatively, the mobility management network element receives the request message from the application server, and obtains the terminal information from the local terminal. Status, and the status of the terminal is sent to the application server. Preferably, the application server may obtain the mobility management network element currently registered by the terminal by sending a query request to the user subscription server. In this embodiment, a terminal state obtaining apparatus is provided, including: a first receiving module, and an acquiring module connected to the first receiving module. As used hereinafter, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and conceivable. The first receiving module is configured to receive a request message from the application server, where the request message is used to query the status of the terminal, and the acquiring module is configured to acquire the status of the terminal, and send the status of the terminal to the application server. Preferably, the first receiving module located in the user subscription server is configured to receive the request message from the application server, and the acquiring module located in the user subscription server is configured to acquire the state of the terminal, and send the state of the terminal to the application server; or The first receiving module of the mobility management network element is configured to receive the request message from the application server, and the acquiring module of the mobility management network element is configured to obtain the state of the terminal locally, and send the status of the terminal to application server. FIG. 3 is a flowchart of a method for acquiring a terminal state according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps: Step S302: a user subscription server (for example, an HLR or an HSS), or a mobility management network element ( For example, the SGSN/MME receives the request message from the AS, where the request message is used to query the status of the terminal; and in step S304, the user subscription server, or the mobility management network element acquires the status of the terminal, and the status of the terminal is Send to AS. Through the above steps, the AS can obtain the status of the terminal, which facilitates the service processing between the AS and the terminal. Preferably, in the implementation, the user subscription server, or the mobility management network element can obtain the status of the terminal in several ways, which is exemplified below, but is not limited thereto. In the first mode, the user subscription server can locally query the status of the terminal. For example, if the status of the terminal is not registered to the network by the user subscription server, the user subscription server sets the status of the terminal to be unregistered to the network. Give AS. In the second mode, the user subscription server may also query the status of the terminal from the mobility management network element (for example, MSC, SGSN, or MME). The user subscription server queries the status of the locally stored terminal to register the terminal in the network (or is attached to the network). In the case that the terminal has been assigned the mobility management network element, the user subscription server queries the mobility management network element. The status to the terminal. For example, the status of the user subscription server querying from the mobility management network element to the terminal is: Attached and assigned an IP address or attached but not assigned an IP address. Preferably, when the terminal status is attached and the IP address is assigned, the mobility management network element sends the IP address of the terminal to the user subscription server, to indicate that the status of the user subscription server terminal is attached and is assigned an IP address, and of course, may also be sent. The type of the IP address of the terminal, such as: IPv4, IPv6, public network IP, screen IP, etc., or a combination of types. Preferably, when the terminal status is attached but the IP address is not assigned, the mobility management network element sends the indication information of the packet data protocol (PDP) of the terminal to the user subscription server to indicate the user subscription server terminal. The status is attached but not assigned an IP address. In the third mode, the user subscription server returns the address of the mobility management network element allocated to the terminal to the AS, and the AS queries the mobility management network element for the status of the terminal, and the mobility management network element returns the status of the terminal to the AS. The status of the terminal returned by the mobility management NE is the same as that of the second method. An activation terminal method, apparatus and system, the network element included in the system being arranged to perform the present embodiment and a preferred embodiment. The method for activating the terminal includes: Step S102: The mobility management network element receives a request message for activating the terminal, where the request message carries the identifier of the terminal, and the source of the request message is an application server; Step S104, the mobility management network element The terminal sends a message for activating the terminal. In the above steps, the application server may directly send a request message to the mobility management network element, or may send a request message to the mobility management network element via other network elements. For example, the user subscription server receives the application server to send the activation terminal. The message is requested and a request message for activating the terminal is sent to the mobility management network element. Preferably, the application server may obtain the mobility management network element currently registered by the terminal by sending a query request to the user subscription server. In the present embodiment, an activation terminal device is provided, which is located in a mobility management network element. As used hereinafter, the term "module" can implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and conceivable. The device includes: a second receiving module, and a sending module connected to the second receiving module, where the second receiving module is configured to receive a request message for activating the terminal, where the request message carries the identifier of the terminal, and the request message The source is the application server; the sending module is configured to send a message to the terminal for activating the terminal. Preferably, the sender of the request message received by the second receiving module is a user subscription server, where the signing server sends a request to the mobility management network element after receiving the request message for activating the terminal sent by the application server. Or the sender of the request message for activating the terminal received by the second receiving module is an application server. FIG. 4 is a flowchart 1 of a method for activating a terminal according to an embodiment of the present invention. As shown in FIG. 4, the process includes the following steps: Step S402, the user subscription server receives the request message of the activation terminal from the AS, where the request message carries the identifier of the terminal. Step S404, the user subscription server sends a request message for activating the terminal to the mobility management network element, where The request message carries the identifier of the terminal. Step S406: The mobility management network element sends a message for activating the terminal to the terminal. FIG. 5 is a second flowchart of a method for activating a terminal according to an embodiment of the present invention. As shown in FIG. 5, the process includes the following steps: Step S502: The AS queries a user subscription server to query a current serving network element of the terminal, that is, the terminal is currently registered. Mobility management network element. The user subscription server returns the current service network element of the terminal to the AS. In step S504, the AS sends a request message for activating the terminal to the mobility management network element, where the request message carries the identifier of the terminal. Step S506, the mobility management network element The terminal sends a message for activating the terminal. Preferably, the AS may cause the user subscription server to return the current service network element of the terminal to the AS by querying the current subscription network element of the terminal (ie, the mobility management network element currently registered by the terminal) to the user subscription server. The above-mentioned FIG. 4 and FIG. 5 show the following process: the user subscription server, or the mobility management network element receives the request message of the activation terminal from the AS, wherein the request message carries the identifier of the terminal; the user subscription server, or the mobile The service management network element sends a request message for activating the terminal, where the request message carries the identifier of the terminal. In the above manner, the AS can activate the terminal. Of course, if the AS server needs to notify the terminal of its service identifier, the following preferred implementation manner can be adopted: the user subscription server, or the mobility management network element receives the request from the activation terminal of the AS. The message also carries the service identifier corresponding to the AS; the request message for activating the terminal sent by the user subscription server to the mobility management network element further carries the service identifier; the mobility management network element The message sent by the terminal for activating the terminal further carries the service identifier. Preferably, the service identifier may be an identifier of the AS or an identifier of the service implemented by the AS. For example, the identifier of the AS may be the IP address of the AS, and the service identifier implemented by the AS may be a character or a number representing a certain meaning (for example, SUPL stands for User Face Location System). There are many ways for the mobility management network element to send a message to the terminal for activating the terminal. For example, in order to avoid changes to existing messages as much as possible, the mobility management network element may send a paging message to page the terminal, and After receiving the response message sent by the terminal, the device sends a non-access stratum (Non-Access Stratum, NAS for short) message to the terminal, where the NAS message carries the service identifier corresponding to the application server. By such a processing method, the terminal can be paged without any modification to the existing Paging message. Preferably, the AS sends a request message for activating the terminal to the user subscription server, so that the subscription server sends a request message for activating the terminal to the mobility management network element. Preferably, in a case where the terminal has been attached to the network, the user subscription server sends a request message for activating the terminal to the mobility management network element currently registered by the terminal. Then, the mobility management network element may send a message for activating the terminal to the terminal. For example, the mobility management network element sends a NAS message or a paging message to the terminal according to the identifier of the terminal, where the NAS message Or a Paging message is used to activate the terminal. Preferably, in a case that the terminal is not attached to the network, the user subscription server may select the mobility management network element according to the predetermined policy, and send a request message for activating the terminal to the selected mobility management network element. For example, the user subscription server may select the mobility management network element according to the service attribute of the terminal subscription; for example, the user subscription server may select the mobility management network element that the terminal last registered as the mobility management network that sends the request message of the activation terminal. yuan. Preferably, the service attribute of the terminal subscription may be a range of terminal movement defined in the subscription (for example, indicating a low mobility terminal, signing a fixed location area); selecting the last registered mobility management network element Effectiveness can be limited to a certain effective duration. Preferably, the AS sends a request message for activating the terminal to the mobility management network element currently registered by the terminal, and the mobility management network element may send a message for activating the terminal to the terminal. Before the AS sends a request message for activating the terminal to the mobility management network element, the AS may query the user subscription server for the mobility management network element currently registered by the terminal, and the user subscription server returns the mobility management network element currently registered by the terminal to the AS. Preferably, after the mobility management network element is selected, the mobility management network element may send a broadcast message (for example, a Paging message or a system broadcast message), where the broadcast message further carries the identifier of the terminal. After the mobility management network element sends the broadcast message, after the terminal listens to the broadcast message, it attaches to the network. Preferably, for more security, the user subscription server sends a request message for activating the terminal to the mobility management network element, where the request message carries the temporary identifier of the terminal, wherein the temporary identifier is in the terminal detach from the network, and mobility management The network element sends the temporary identifier to the user's subscription server. Preferably, in the case that the AS holds the temporary identifier of the terminal, the user subscription server receives the request message from the active terminal of the AS, where the request message carries the temporary identifier and the service identifier of the terminal; In the case where the user subscription server receives the request from the active terminal of the AS The request message carries the identifier of the terminal and the service identifier, and replaces the identifier of the terminal with the temporary identifier of the terminal. In addition to the above, the network configuration may adopt the OMA DM mode. One of the modes is currently activated by the SMS. The activation mode in this embodiment may also be adopted. The preferred embodiments are described below in conjunction with the drawings. 6 is a schematic diagram of a network architecture according to an embodiment of the present invention, and the difference between the architecture diagram of FIG. 1 is that an AS/AS proxy and a user subscription server (HLR/HSS), a mobility management network element (SGSN/MME), and the like. Establish the appropriate interface as needed. The interface with the user subscription server (HLR/HSS) and the mobility management network element can be provided to the AS to query the status of the UE and the ability to send a terminal activation request. The preferred embodiment of the present invention provides a method for the AS to query the status of the terminal. In the preferred embodiment, the user subscription server may be an HLR or an HSS, and the mobility management network element is an MSC (CS domain) and an SGSN ( GPRS domain), MME (EPS domain), where the AS sends a service request to the user subscription server to query the current state of the terminal; the user subscription server queries the current state of the terminal from itself, or queries the current state of the terminal from the mobility management network element. And return the current state to the AS. This will be explained below. When the subscriber subscription server queries the terminal from the state that the terminal is not assigned the mobility management network element, the current status of the return terminal is not attached to the network; when the user subscription server queries the terminal from the mobility management network element, the status is: The terminal is currently attached to the network and is assigned a mobility management network element. The user subscription server sends a query request to the mobility management network element, and the mobility management network element returns the current state of the terminal according to the terminal information saved by itself. For example, the terminal is currently attached and assigned an IP address, and the current state of the mobility management network element returning to the terminal is: Attached and assigned an IP address. The state can be expressed by the IP address of the terminal, and the mobility management network element can further return the type of the IP address (a combination of IPv4, IPv6, public network IP, private network IP, etc.); if the terminal is currently attached, but not The IP address is assigned, and the current status of the mobility management NE returns to the terminal is: Attached but not assigned an IP address. This state can be expressed by an inactive PDP. The preferred embodiment will now be described with reference to the accompanying drawings. FIG. 7 is a flowchart of querying the current status of the terminal by the AS to the user subscription server according to the embodiment of the present invention. As shown in FIG. 7, the process includes the following steps: Step S702: The AS queries the terminal for the user to subscribe to the terminal due to the requirement of the service execution. Current state of Step S704, the user subscription server queries the status of the locally saved terminal (for example, the terminal is not currently registered in the network), or queries the mobility management network element for the current status of the terminal, and returns the status according to the status of the queried terminal. AS. Since there are many states of the terminal, some states can be directly returned through the information stored in the user subscription server (for example, the terminal is not currently registered in the network), and some states can be queried to the mobility management network element (for example, the terminal is currently Registered into the network, but with sub-states: attach and assign IP address, attach but not assigned IP address, terminal is not available, etc.). In the case where the terminal is currently registered to the network, in order to obtain a more detailed state of the terminal, the user subscription server may send a query request to the mobility management network element. Finally, the user subscription server returns the status of the queried terminal to the AS. For example, the terminal is not currently registered in the network, and the user subscription server returns the terminal status as: not registered to the network; the terminal is currently registered in the network, and the user subscription server queries the mobility management network element to query the current status of the terminal as: The IP address is assigned; the terminal is currently registered in the network, and the current subscription status of the user subscription server from the mobility management network element to the terminal is: Attached but not assigned an IP address. FIG. 8 is a flowchart of querying a current status of a terminal by a user to a user subscription server according to an embodiment of the present invention. The terminal is not attached to the network. As shown in FIG. 8, the process includes the following steps: Step S801: The AS signs a server with the user. Sending a service request, querying the current status of the terminal; Step S802, the user subscription server determines, according to the local information, that the terminal is not currently registered to the network; Step S803, returning the current status of the terminal to the AS is: not registered to the network. In this embodiment, the so-called unregistered to the network is actually that the user subscription server queries the state information of the locally stored terminal, and finds that the mobility management network element (MSC/SGSN/MME) is not allocated to the current terminal, and thus the terminal is considered Currently not registered to the network. Therefore, the terminal returned by the user subscription server is not currently registered to the network, and is equivalent to: the mobility management network element (MSC/SGSN/MME) is not assigned to the terminal. FIG. 9 is a flowchart of querying a current status of a terminal by a user to a user subscription server according to an embodiment of the present invention. The terminal is attached to the network and assigned an IP address. As shown in FIG. 9, the process includes the following steps: Step S901, AS Sending a service request to the user subscription server to query the current status of the terminal. Step S902: The user subscription server determines, according to the local information, that the terminal is currently registered to the network, and then queries the mobility management network element (for example, the SGSN or the MME) for the current status of the terminal. State; where, the user is contracted to the server The existing accessibility check message may be sent, and the identifier may be carried in the message to request the mobility management network element to immediately return to the current state of the terminal; or, the current state of the independent message query terminal may be newly introduced. Step S903, the mobility management network element checks the status of the terminal, the current terminal has been registered to the mobility management network element, that is, the terminal has been attached to the network, and the network has assigned the IP address to the terminal; in step S904, the step is In a preferred step, the mobility management network element may query the user plane network element (eg, GGSN or PGW) for the IP address of the terminal; the mobility management network element does not always know the IP address of the terminal. For example, under some IPv6 address allocation methods, the IP address of the terminal is not known to the mobility management network element. However, the user plane network element knows the IP address of the terminal, and the mobility management network element can further query the IP address of the terminal to the user plane network element. Step S905: The mobility management network element returns the current status of the terminal to the user subscription server. : Attach and assign
IP地址。 或者, 直接返回终端当前的 IP地址, 即等同于终端附着并分配了 IP地址; 步骤 S906, 用户签约服务器向 AS返回 UE当前的状态。 上述步骤, 对于 GPRS域、 EPS域均可使用。 然而, 对 GPRS域, 有一种特殊情 况, 即: 终端可以执行 GPRS附着, 但是没有激活 PDP上下文。 这种情况也就是终端 附着到 PS网络但是没有被分配 IP地址。 图 10是根据本发明实施例的 AS向用户签约服务器查询终端当前状态的流程图, 其中终端附着在网络中但未分配 IP地址, 如图 10所示, 该流程包括如下步骤: 步骤 S1001 , AS向用户签约服务器发送服务请求, 查询终端的当前状态; 步骤 S1002, 用户签约服务器根据本地信息, 判断终端当前已注册到网络, 则向 移动性管理网元 (例如, SGSN) 查询终端的当前状态; 步骤 S1003 , 移动性管理网元检查终端的状态, 当前终端已经注册到移动性管理 网元上, 即, 终端已经附着到网络中, 但没有为终端分配了 IP地址; 例如, 在 GPRS 网络中, GPRS附着和 IP地址分配过程是分离的, 终端可以执行 GPRS附着但是不请 求 PDP激活, 只有成功激活了 PDP, 终端才被分配 IP地址; 步骤 S1004, 移动性管理网元向用户签约服务器返回终端的当前状态: 附着但未 分配 IP地址; 或者,返回状态可以为: 没有激活 PDP。这两种方式可以看作是等价的; 步骤 S1005, 用户签约服务器向 AS返回 UE当前的状态。 优选实施例二 本优选实施例提供了实施例一的变型实施例。其中, AS向用户签约服务器发送服 务节点查询请求, 查询终端当前注册的移动性管理网元, 用户签约服务器向 AS返回 终端当前注册的移动性管理网元; AS向移动性管理网元向移动性管理网元查询终端的 当前状态。 下面结合附图对本优选实施例进行说明。 图 11是根据本发明实施例的 AS向移动性管理网元查询终端当前状态的流程图, 如图 11所示, 该流程包括如下步骤: 步骤 S1102, AS由于业务执行的需要, 向用户签约服务器查询终端当前注册的移 动性管理网元, 用户签约服务器向 AS返回终端当前注册的移动性管理网元。 如果用户签约服务器中没有存储终端当前所注册的移动性管理网元, 即终端没有 注册 /附着到网络中, 则用户签约服务器向应用服务器返回终端当前未注册、 或返回空 的移动性管理网元列表。 根据该响应, 应用服务器可以判断终端未注册到网络中, 则 无需执行步骤 S 1104。 应用服务器向用户签约服务器查询终端当前所注册的移动性管理网元。 如果用户 签约服务器中没有存储终端当前的移动性管理网元, 则执行步骤 S1104。 步骤 S1104, AS向移动性管理网元查询终端的当前状态, 移动性管理网元向 AS 返回终端的当前状态。 在应用服务器从用户签约服务器获得了移动性管理网元后, 应用服务器向移动管 理网元查询终端的状态。 移动性管理网元收到应用服务器的查询请求后, 采用实施例 一中的方法, 判断终端的状态并返回合适的响应。 图 12是根据本发明实施例的 AS向移动性管理网元查询终端当前状态的流程图, 如图 12所示, 该流程包括如下步骤: 步骤 S1201 , AS向用户签约服务器发送服务请求, 查询终端当前的服务节点, 即 终端当前注册的移动性管理网元; 步骤 S1202, 用户签约服务器向 AS返回终端当前的服务节点; 步骤 S1203 , AS向移动性管理网元发送请求, 查询终端当前的状态; 步骤 S1204, 移动性管理网元判断终端当前的状态; 移动性管理网元采用如图 9~10中所描述的方法, 判断终端当前的状态。 步骤 S1205, 移动性管理网元向 AS返回终端的当前状态。 优选实施例三 本优选实施例提供了一种 AS激活终端的方法, 该方法包括: AS向用户签约服务 器发送激活终端的请求, 其中携带终端标识和服务标识; 用户签约服务器向移动性管 理网元发送激活终端的请求, 其中携带终端标识和服务标识; 移动性管理网元向终端 发送激活请求, 其中携带服务标识。 其中, 服务标识可以是 AS的标识、 也可以是 AS所实现的服务的标识。 在执行的过程中, 当终端已经附着到网络中, 此时移动性管理网元可以使用 NAS 消息激活终端; 当终端未附着到网络中, 用户签约服务器收到 AS发起的激活终端的 请求后, 可以根据如下原则选择移动性管理网元: (A) 根据终端的业务特性, 例如, 非漫游、 低移动性等的组合, 选择合适的移动性管理网元; (B) 在上次终端从网络去 附着时用户签约服务器保存为终端服务的移动性管理网元。在收到 AS的激活请求时, 选择该移动性管理网元。 需要说明的是, 移动性管理网元和基站在终端未附着到网络 时, 在网络侧, 可以使用 Paging、 系统广播等方法激活终端; 在终端侧, 终端在未附 着状态先监听网络的系统广播信息, 如 Paging信息、 系统广播信息, 终端收到激活请 求后, 执行附着到网络的流程, 终端主动和 AS建立 IP通讯。 需要说明的是, 用户签 约服务器向移动性管理网元发送的激活终端的请求, 可以是查询终端可及性请求。 在本实施例中,还可以使用网络分配给终端的临时标识来激活终端。该方法包括: 终端从网络去附着, 移动性管理网元将网络分配给终端的临时标识通知给用户签约服 务器, 用户签约服务器保存该临时标识; 当用户签约服务器收到 AS发送的终端激活 请求时, 向移动性管理网元发送终端激活请求; 用户签约服务器根据保存的网络分配 给终端的临时标识, 向移动性管理网元发送终端激活请求。 下面结合附图对本优选实施例进行说明。 图 13是根据本发明实施例的 AS 向用户签约服务器激活终端的流程图, 如图 13 所示, AS经由用户签约服务器(例如, HLR或 HSS)向移动性管理网元(例如, MSC、 SGSN或 MME)下发激活终端的请求, 移动性管理网元通过合适的消息(例如, 下行 NAS消息、 Paging消息等)将激活消息下发给终端。 其后, 终端主动和 AS建立 IP通 讯。 该流程包括如下步骤: 步骤 S1302, AS向用户签约服务器发送激活终端的请求, 其中携带服务标识; 其中, 所述服务标识是 AS的标识、 也可以是 AS所实现的服务的标识。 步骤 S1304, 用户签约服务器查找合适的移动性管理网元, 将激活请求转发给移 动性管理网元; 步骤 S1306, 移动性管理网元将激活请求下发给终端, 当终端收到激活请求后, 根据服务标识, 可以知道是哪个业务要求终端被激活、 或者哪个 AS发送了激活请求, 从而可有目的地向 AS发起 IP通讯。 上述步骤能应用于如下情况的终端: 已附着到网络的终端: 在这种情况下, 终端 可能已经被分配了 IP地址, 则可以直接向 AS发起 IP通讯。 终端也可能没有分配 IP 地址 (如只有 GPRS附着, 没有建立 PDP上下文), 则终端需要发起 IP承载的建立, 分配得 IP地址后再向 AS发起 IP通讯; 未附着到网络的终端: 在这种情况下, 要求终 端即使未附着到某网络, 也能够监听该网络的广播消息; 要求用户签约服务器能选择 合适的移动性管理网元以下发激活请求; 要求移动性管理网元在没有终端上下文的情 况下, 也能够将激活请求下发到基站。 图 14是根据本发明实施例终端附着在网络中, AS向用户签约服务器激活终端的 流程图, 如图 14所示, 该流程包括如下步骤: 步骤 S1401 , AS 向用户签约服务器 (例如, HLR或 HSS) 发送激活请求, 携带 服务标识; 其中, 服务标识的携带, 是为了让终端知道是哪个业务需要激活终端、 或 者哪个 AS希望激活终端并发起通讯。 比如: 对 MTC应用而言, 该服务标识表明是 MTC应用服务器希望激活终端。 对 SUPL应有而言, 该服务标识表明是 SUPL定位服 务器 (SLP) 希望激活终端。 步骤 S1402,用户签约服务器接收到 AS的激活请求后,查询终端当前注册的移动 性管理实体 (例如, MSC、 SGSN或 MME), 将激活请求发送给该移动性管理实体; 在本步骤中, 用户签约服务器可以使用现有的可及性检查消息, 并在该消息中携带标 识要求移动性管理网元激活终端。 所述标识应携带步骤 S1001中的服务标识。 或者, 可以新引入独立的消息要求激活终端。 步骤 S1403 , 移动性管理实体接收到激活请求后, 使用 NAS消息激活终端; 在本 步骤中, 移动性管理网元在 NAS消息中携带步骤 S1001中的服务标识, 以激活终端。 该 NAS消息可以是在现有 NAS消息携带激活标识, 也可以是新增的用于激活终端的 消息。 步骤 S 1404, 终端收到激活请求后, 返回响应; 步骤 S 1405 , 终端根据激活请求中的服务标识, 向特定的 AS发起 IP通讯。 在上述步骤中,移动性管理网元向终端发送 NAS消息以激活终端。移动性管理网 元还可以向终端发送 Paging 消息激活终端, 例如, 移动性管理网元可以使用增强的 Paging消息来激活终端, 其中携带步骤 S 1401中的服务标识。 图 15是根据本发明实施例的在终端未附着在网络中, AS向用户签约服务器激活 终端的流程图, 该图所示出的流程和图 14所示的流程类似, 但具有如下的不同: 在步骤 S 1502中(该步骤相比于图 14是增加的步骤), 当用户签约服务器(例如,IP address. Or, directly returning the current IP address of the terminal, that is, equivalent to the terminal attaching and allocating the IP address; Step S906, the user subscription server returns the current state of the UE to the AS. The above steps can be used for both the GPRS domain and the EPS domain. However, for the GPRS domain, there is a special case where the terminal can perform GPRS attach but does not activate the PDP context. In this case, the terminal is attached to the PS network but is not assigned an IP address. 10 is a flowchart of querying a current status of a terminal by a user to a user subscription server according to an embodiment of the present invention. The terminal is attached to the network but is not assigned an IP address. As shown in FIG. 10, the process includes the following steps: Step S1001, AS Sending a service request to the user subscription server to query the current status of the terminal. Step S1002: The user subscription server determines, according to the local information, that the terminal is currently registered to the network, and then queries the mobility management network element (for example, the SGSN) for the current state of the terminal. Step S1003: The mobility management network element checks the status of the terminal, and the current terminal has been registered to the mobility management network element, that is, the terminal has been attached to the network, but the terminal is not assigned an IP address; for example, in the GPRS network, The GPRS attach and IP address allocation process is separate. The terminal can perform GPRS attach but does not request PDP activation. Only when the PDP is successfully activated, the terminal is assigned an IP address. Step S1004, the mobility management network element returns the terminal to the user subscription server. Current status: Attached but not assigned an IP address; or, return status That: not activated PDP. The two methods can be regarded as equivalent; in step S1005, the user subscription server returns the current state of the UE to the AS. Preferred Embodiment 2 This preferred embodiment provides a modified embodiment of Embodiment 1. The AS sends a service node query request to the user subscription server to query the mobility management network element currently registered by the terminal, and the user subscription server returns the mobility management network element currently registered by the terminal to the AS; the AS moves to the mobility management network element to the mobility The management NE queries the current status of the terminal. The preferred embodiment will now be described with reference to the accompanying drawings. 11 is a flowchart of querying a current state of a terminal from a mobility management network element according to an embodiment of the present invention. As shown in FIG. 11, the process includes the following steps: Step S1102: The AS signs a server to the user due to service execution requirements. The mobility management network element currently registered by the terminal is queried, and the user subscription server returns the mobility management network element currently registered by the terminal to the AS. If there is no mobility management network element currently registered by the storage server in the user subscription server, that is, the terminal is not registered/attached to the network, the user subscription server returns to the application server that the terminal is not currently registered, or returns an empty mobility management network element. List. According to the response, the application server can determine that the terminal is not registered in the network, and step S 1104 need not be performed. The application server queries the user subscription server to query the mobility management network element currently registered by the terminal. If the current mobility management network element of the terminal is not stored in the user subscription server, step S1104 is performed. Step S1104: The AS queries the mobility management network element for the current state of the terminal, and the mobility management network element returns the current state of the terminal to the AS. After the application server obtains the mobility management network element from the user subscription server, the application server queries the mobility management network element for the status of the terminal. After receiving the query request from the application server, the mobility management network element uses the method in the first embodiment to determine the state of the terminal and return an appropriate response. FIG. 12 is a flowchart of querying the current state of the terminal by the AS to the mobility management network element according to the embodiment of the present invention. As shown in FIG. 12, the process includes the following steps: Step S1201: The AS sends a service request to the user subscription server, and queries the terminal. The current service node, that is, the mobility management network element currently registered by the terminal; Step S1202, the user subscription server returns the current service node of the terminal to the AS; Step S1203, the AS sends a request to the mobility management network element to query the current state of the terminal; Step S1204: The mobility management network element determines a current state of the terminal. The mobility management network element uses the method described in Figures 9-10 to determine the current state of the terminal. In step S1205, the mobility management network element returns the current state of the terminal to the AS. The preferred embodiment of the present invention provides a method for an AS to activate a terminal. The method includes: the AS sends a request for activating the terminal to the user subscription server, where the terminal identifier and the service identifier are carried; and the user subscription server moves to the mobility management network element. Sending a request for activating the terminal, where the terminal identifier and the service identifier are carried; the mobility management network element sends an activation request to the terminal, where the service identifier is carried. The service identifier may be an identifier of the AS or an identifier of the service implemented by the AS. In the process of execution, when the terminal has been attached to the network, the mobility management network element can activate the terminal by using the NAS message; when the terminal is not attached to the network, the user subscription server receives the request initiated by the AS to activate the terminal, The mobility management network element may be selected according to the following principles: (A) selecting a suitable mobility management network element according to the service characteristics of the terminal, for example, a combination of non-roaming and low mobility; (B) the last terminal from the network When the user is detached, the user subscription server saves the mobility management network element as a terminal service. When the activation request of the AS is received, the mobility management network element is selected. It should be noted that, when the terminal is not attached to the network, the mobility management network element and the base station may activate the terminal by using a method such as paging or system broadcast on the network side. On the terminal side, the terminal first listens to the system broadcast of the network in an unattached state. Information, such as Paging information, system broadcast information, after the terminal receives the activation request, performs the process of attaching to the network, and the terminal actively establishes IP communication with the AS. It should be noted that the request of the user subscription server to send the activation terminal to the mobility management network element may be a query for the terminal accessibility request. In this embodiment, the terminal may also be activated by using a temporary identifier assigned to the terminal by the network. The method includes: the terminal is detached from the network, the mobility management network element notifies the user of the temporary identifier of the network to the user, and the user subscription server saves the temporary identifier; when the user subscription server receives the terminal activation request sent by the AS Sending a terminal activation request to the mobility management network element; the user subscription server sends a terminal activation request to the mobility management network element according to the temporary identifier assigned by the saved network to the terminal. The preferred embodiment will now be described with reference to the accompanying drawings. 13 is a flow chart of an AS activating a terminal to a subscriber subscription server according to an embodiment of the present invention. As shown in FIG. 13, the AS communicates to a mobility management network element (eg, MSC, SGSN via a subscriber subscription server (eg, HLR or HSS). The MME sends a request to activate the terminal, and the mobility management network element sends the activation message to the terminal by using a suitable message (for example, a downlink NAS message, a Paging message, and the like). Thereafter, the terminal actively establishes IP communication with the AS. The process includes the following steps: Step S1302: The AS sends a request for activating the terminal to the user subscription server, where the service identifier is carried. The service identifier is an identifier of the AS, and may also be an identifier of the service implemented by the AS. Step S1304: The user subscription server searches for a suitable mobility management network element, and forwards the activation request to the mobility management network element. Step S1306: The mobility management network element sends the activation request to the terminal. After the terminal receives the activation request, Based on the service identifier, it can be known which service requires the terminal to be activated, or which AS has sent the activation request, so that IP communication can be initiated to the AS in a targeted manner. The above steps can be applied to terminals that have been attached to the network: In this case, the terminal may have been assigned an IP address, and IP communication can be initiated directly to the AS. The terminal may also not assign an IP address (if only GPRS is attached, no PDP context is established), the terminal needs to initiate the establishment of an IP bearer, and then assigns an IP address to initiate an IP communication to the AS; a terminal that is not attached to the network: In this case, the terminal is required to listen to the broadcast message of the network even if it is not attached to the network; the user subscription server is required to select an appropriate mobility management network element to send an activation request; the mobility management network element is required to have no terminal context. In this case, the activation request can also be delivered to the base station. FIG. 14 is a flowchart of a terminal attaching to a network in a network, and an AS activating a terminal to a user by a server according to an embodiment of the present invention. As shown in FIG. 14, the process includes the following steps: Step S1401: The AS signs a server to the user (for example, an HLR or The HSS) sends an activation request, carrying a service identifier; wherein the service identifier is carried in order to let the terminal know which service needs to activate the terminal, or which AS wants to activate the terminal and initiate communication. For example: For an MTC application, the service identifier indicates that the MTC application server wishes to activate the terminal. For SUPL, the service identifier indicates that the SUPL Location Server (SLP) wishes to activate the terminal. Step S1402: After receiving the activation request of the AS, the user subscription server queries the mobility management entity (for example, MSC, SGSN, or MME) currently registered by the terminal, and sends an activation request to the mobility management entity. In this step, the user The subscription server can use the existing accessibility check message, and carry the identifier in the message to request the mobility management network element to activate the terminal. The identifier should carry the service identifier in step S1001. Alternatively, a separate message can be newly introduced to activate the terminal. Step S1403: After receiving the activation request, the mobility management entity activates the terminal by using the NAS message. In this step, the mobility management network element carries the service identifier in step S1001 in the NAS message to activate the terminal. The NAS message may be an existing NAS message carrying an activation identifier, or may be a new message for activating the terminal. Step S1404: After receiving the activation request, the terminal returns a response. Step S1405: The terminal initiates IP communication to the specific AS according to the service identifier in the activation request. In the above steps, the mobility management network element sends a NAS message to the terminal to activate the terminal. The mobility management network element may also send a Paging message to the terminal to activate the terminal. For example, the mobility management network element may activate the terminal by using the enhanced Paging message, where the service identifier in step S 1401 is carried. 15 is a flowchart of an AS activating a terminal to a user subscription server in a network that is not attached to a network according to an embodiment of the present invention. The flow shown in the figure is similar to the flow shown in FIG. 14, but has the following differences: In step S1502 (this step is an incremental step compared to FIG. 14), when the user signs up for the server (eg,
HLR或 HSS )接收到 AS的激活请求后,需要寻找合适的移动性管理网元(例如, MSC、 SGSN或 MME), 用户签约服务器可以通过如下方式来选择: 对于不支持漫游、 并具 有低移动性的终端: 根据签约中所限定的移动性范围, 选择合适的移动性管理网元; 用户签约服务器 (HLR/HSS ) 保存上次终端所注册的移动性管理网元, 可以设定一个 合适的定时器, 在定时器超期后清除所保存的移动性管理网元; 贝 1」, 在该定时器有效 时间内, 认为该终端仍有可能在该移动性管理网元的覆盖范围内。 在步骤 S 1504中, 移动性管理网元使用 Paging来激活终端, 在 Paging参数中携 带步骤 S 1302中的服务标识、 终端的 ID。 对于未附着到网络的终端, 必须有能力监听 Paging消息。 当终端从 Paging消息中监听到激活请求后, 需要发起网络附着流程, 然 后主动向 AS发起通讯。 在图 15 所示的流程中, AS —般知道是终端的应用层标识, 而用户签约服务器 (HLR/HSS )中用以标识一个终端的是 IMSI。 虽然用户签约服务器(HLR/HSS )可以 在终端的应用层标识和 IMSI之间建立一个映射关系, 然而, 目前 Paging消息不支持 应用层标识, 从而移动性管理网元 (MSC/SGSN/MME) 下发的 Paging消息中, 所携 带的终端 ID需要使用 IMSI。 这种方法将 IMSI暴露在网络中, 大大地增加不安全性。 为了解决图 15所示流程所带来的安全威胁, 当终端从网络去附着时,移动性管理 网元 (例如, MSC、 SGSN或 MME) 将分配给终端的临时标识 (例如, 在 CS 域是 TMSI,在 GPRS域是 P-TMSI,在 EPS域是 GUTI)保存到用户签约服务器(HLR/HSS ) 中, 从而使得后续 Paging可以使用该保存的终端临时标识。 进一步地, 移动性管理网 元、 或用户签约服务器也可以将该临时标识发送给应用服务器。 图 16是本发明的实施例的使用临时标识, AS向用户签约服务器激活终端的流程 图, 如图 16所示, 该流程包括如下步骤: 步骤 S1601 , 终端执行从网络去附着的流程; 步骤 S1602,移动性管理网元将网络分配给终端的临时标识(例如, TMSI, P-TMSI 或 GUTI) 通过通知消息发送给用户签约服务器; 其中, 该步骤可以包括两种变型: S1602a, 网络分配给终端的临时标识被发送给 AS并被保存; S1602b, 所述临时标识 仅存储在用于签约服务器中。 步骤 S1603, AS发起激活终端的请求, 携带服务标识、 终端 ID; 在本步骤中,如果步骤 S1602中前述网络分配给终端的临时标识被传送给 AS,则 AS可以使用该临时标识作为终端 ID。 否则, AS可能使用终端的应用层标识、 IMSI 作为终端标识。 步骤 S1604, 当用户签约服务器收到激活请求后, 查找合适的移动性管理网元; 在本步骤中,用户签约服务器根据映射关系,将激活请求中的终端 ID替换为步骤After receiving the activation request of the AS, the HLR or HSS needs to find a suitable mobility management network element (for example, MSC, SGSN or MME), and the user subscription server can select by: for not supporting roaming, and having low mobility Sex terminal: According to the mobility range defined in the contract, select the appropriate mobility management network element; the user subscription server (HLR/HSS) saves the mobility management network element registered by the last terminal, and can set a suitable one. The timer clears the saved mobility management network element after the timer expires; in the validity time of the timer, the terminal is considered to be still within the coverage of the mobility management network element. In step S1504, the mobility management network element activates the terminal by using Paging, and carries the service identifier and the ID of the terminal in step S1302 in the Paging parameter. For terminals that are not attached to the network, there must be the ability to listen for Paging messages. After the terminal listens to the activation request from the Paging message, it needs to initiate a network attach procedure, and then initiates communication to the AS. In the flow shown in Figure 15, the AS is generally known as the application layer identifier of the terminal, and the IMRI is used to identify a terminal in the user subscription server (HLR/HSS). Although the user subscription server (HLR/HSS) can establish a mapping relationship between the application layer identifier of the terminal and the IMSI, the current paging message does not support the application layer identifier, and thus the mobility management network element (MSC/SGSN/MME) In the sent Paging message, the terminal ID carried needs to use the IMSI. This approach exposes the IMSI to the network, greatly increasing insecurity. In order to solve the security threat brought by the process shown in FIG. 15, when the terminal detaches from the network, the mobility management network element (for example, MSC, SGSN or MME) will assign a temporary identifier to the terminal (for example, in the CS domain) TMSI, P-TMSI in the GPRS domain, GUTI in the EPS domain) is saved to the user subscription server (HLR/HSS) Medium, so that subsequent Paging can use the saved terminal temporary identifier. Further, the mobility management network element or the user subscription server may also send the temporary identifier to the application server. FIG. 16 is a flowchart of activating a terminal by using a temporary identifier by the AS to the user subscription server. As shown in FIG. 16, the process includes the following steps: Step S1601: The terminal performs a process of detaching from the network; Step S1602 The mobility management network element sends the temporary identifier (for example, TMSI, P-TMSI or GUTI) of the network to the terminal to the user subscription server through the notification message; wherein, the step may include two variants: S1602a, the network is allocated to the terminal The temporary identifier is sent to the AS and saved; S1602b, the temporary identifier is only stored in the subscription server. In step S1603, the AS initiates a request to activate the terminal, and carries the service identifier and the terminal ID. In this step, if the temporary identifier allocated by the network to the terminal in the foregoing step S1602 is transmitted to the AS, the AS may use the temporary identifier as the terminal ID. Otherwise, the AS may use the application layer identifier of the terminal and IMSI as the terminal identifier. Step S1604: After the user subscription server receives the activation request, search for a suitable mobility management network element. In this step, the user subscription server replaces the terminal ID in the activation request with the step according to the mapping relationship.
S1202中所保存的终端的临时标识。 步骤 S1605~S1609, 可以采用图 15所示的步骤, 在此不再赘述。 对未附着终端、 已附着单无线承载被释放的终端, 可以采用寻呼消息 Paging来激 活终端。 在图 14、 15、 16所示的流程中, Paging消息被增强, 以携带服务标识。 这种 方式对无线寻呼消息的改造代价比较大。图 17是根据本发明实施例的使用寻呼消息来 激活终端, 使用 NAS消息发送服务标识的流程图, 图 17描述了一种方式, 使用寻呼 消息 Paging来激活终端, 然而服务标识的下载则是在 UE和核心网建立了 NAS连接 后, 由移动性管理网元通过 NAS消息向终端发送服务标识。 采用图 17的方式, 寻呼 消息 Paging不需要改造, 降低了系统的升级成本。 如图 17所示, 该流程如下步骤: 步骤 S1701 , 移动性管理网元收到终端激活请求, 其中携带终端标识、 服务标识; 步骤 S1702~S1705, 移动性管理网元使用现有的寻呼消息 Paging来寻呼终端, 终 端响应寻呼消息; 步骤 S1706, 未附着终端执行附着到网络、 请求分配 IP的过程。 已附着终端发起 服务请求, 建立无线、 核心网承载; 步骤 S1707, 移动性网元通过 NAS消息, 将服务标识下发给终端。 通过该服务标 识, 终端可以获知是哪个业务需要激活终端、 或是哪个应用服务器需要激活终端; 步骤 S1708, 终端主动和应用服务器建立 IP通讯。 需要说明的是,优选实施例三的激活终端的方案中, 要求将服务标识下发给终端, 以促使终端主动和服务器建立通讯。 然而, 对于固定地只和单个 AS通讯的终端而言, 激活行为可以更简单: AS通过核心网下发激活请求给终端,在其中可以不携带服务标 识; 当终端收到激活请求后, 总是无条件地尝试和 AS通讯。 优选实施例四 本优选实施例是优选实施例三的变型实施例, 和实施例三的主要不同, 在于 AS 向移动性管理网元发送激活终端的请求。 AS向用户签约服务器查询终端所注册的移动 性管理实体的方法,和实施例二的描述一致。移动性管理向终端发送激活请求的方法, 和实施例三一致。 下面结合附图对本优选实施例进行说明。 图 18是根据本发明实施例的 AS 向移动性管理网元激活终端的流程图。 如图 18 所示, AS从用户签约服务器 (HLR/HSS) 查询得到终端当前注册的移动性管理网元, 向移动性管理网元 (SGSN/MME) 下发激活终端的请求。 该流程包括如下步骤: 步骤 S1801 , AS向用户签约服务器发送请求, 查询终端当前的服务节点, 即终端 当前注册的移动性管理网元; 步骤 S1802, 用户签约服务器向 AS返回终端当前的服务节点; 步骤 S1803 , AS向移动性管理网元发送终端激活请求; 步骤 S1804, 移动性管理网元向终端发送激活请求, 在本步骤中, 移动性管理网 元可以采用实施例三中的方法 (即图 14-17) 向终端发送激活请求; 步骤 S1805, 移动性管理网元向 AS返回激活响应。 在另外一个实施例中, 还提供了一种软件, 该软件用于执行上述实施例及优选实 施方式中描述的技术方案。 在另外一个实施例中, 还提供了一种存储介质, 该存储介质中存储有上述软件, 该存储介质包括但不限于: 光盘、 软盘、 硬盘、 可擦写存储器等。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而可以将 它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限 制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 The temporary identifier of the terminal saved in S1202. Steps S1605 to S1609, the steps shown in FIG. 15 may be used, and details are not described herein again. For the terminal that has not attached the terminal and the attached single radio bearer is released, the paging message Paging may be used to activate the terminal. In the flow shown in Figures 14, 15, and 16, the Paging message is enhanced to carry the service identity. In this way, the cost of retrofitting wireless paging messages is relatively large. 17 is a flowchart of using a paging message to activate a terminal to transmit a service identifier using a NAS message, and FIG. 17 illustrates a manner of activating a terminal using a paging message Paging, but downloading a service identifier is performed according to an embodiment of the present invention. After the NAS connection is established between the UE and the core network, the mobility management network element sends a service identifier to the terminal through the NAS message. In the manner of FIG. 17, the paging message Paging does not need to be modified, which reduces the upgrade cost of the system. As shown in FIG. 17, the process is as follows: Step S1701: The mobility management network element receives a terminal activation request, where the terminal identifier and the service identifier are carried; and steps S1702 to S1705, the mobility management network element uses the existing paging message. Paging to page the terminal, and the terminal responds to the paging message; Step S1706: The non-attached terminal performs a process of attaching to the network and requesting to allocate an IP. The attached terminal initiates a service request to establish a wireless and core network bearer. In step S1707, the mobility NE sends the service identifier to the terminal through the NAS message. Through the service identifier, the terminal can know which service needs to activate the terminal, or which application server needs to activate the terminal. In step S1708, the terminal actively establishes IP communication with the application server. It should be noted that, in the solution of the activation terminal of the third embodiment, the service identifier is required to be sent to the terminal, so that the terminal actively establishes communication with the server. However, for a terminal that is fixedly communicating with only a single AS, the activation behavior can be simpler: the AS sends an activation request to the terminal through the core network, in which the service identifier can be not carried; when the terminal receives the activation request, it is always Try to communicate with AS unconditionally. Preferred Embodiment 4 This preferred embodiment is a modified embodiment of the preferred embodiment 3. The main difference from the third embodiment is that the AS sends a request to activate the terminal to the mobility management network element. The method for the AS to subscribe to the server to query the mobility management entity registered by the terminal is consistent with the description of the second embodiment. The method for the mobility management to send an activation request to the terminal is consistent with the third embodiment. The preferred embodiment will now be described with reference to the accompanying drawings. 18 is a flow diagram of an AS activating a terminal to a mobility management network element in accordance with an embodiment of the present invention. As shown in FIG. 18, the AS obtains the mobility management network element currently registered by the terminal from the user subscription server (HLR/HSS), and sends a request to activate the terminal to the mobility management network element (SGSN/MME). The process includes the following steps: Step S1801, the AS sends a request to the user subscription server, and queries the current service node of the terminal, that is, the mobility management network element currently registered by the terminal; Step S1802, the user subscription server returns the current service node of the terminal to the AS; In step S1803, the AS sends a terminal activation request to the mobility management network element. In step S1804, the mobility management network element sends an activation request to the terminal. In this step, the mobility management network element may adopt the method in the third embodiment. 14-17) Sending an activation request to the terminal; Step S1805, the mobility management network element returns an activation response to the AS. In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments. In another embodiment, a storage medium is provided, the software being stored, including but not limited to: an optical disk, a floppy disk, a hard disk, a rewritable memory, and the like. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种终端状态获取方法, 包括: A method for obtaining a terminal state, including:
接收到来自应用服务器的请求消息, 其中, 所述请求消息用于查询终端的 状态;  Receiving a request message from an application server, where the request message is used to query a status of the terminal;
获取所述终端的状态, 并将所述终端的状态发送给所述应用服务器。  Obtaining a status of the terminal, and transmitting the status of the terminal to the application server.
2. 根据权利要求 1所述的方法, 其中, 2. The method according to claim 1, wherein
用户签约服务器接收到来自所述应用服务器的所述请求消息; 所述用户签 约服务器获取所述终端的状态, 并将所述终端的状态发送给所述应用服务器; 或者,  The user subscription server receives the request message from the application server; the user subscription server acquires the status of the terminal, and sends the status of the terminal to the application server; or
移动性管理网元接收到来自所述应用服务器的所述请求消息; 所述移动性 管理网元从本地获取所述终端的状态, 并将所述终端的状态发送给所述应用服 务器。  The mobility management network element receives the request message from the application server; the mobility management network element locally acquires the status of the terminal, and sends the status of the terminal to the application server.
3. 根据权利要求 2所述的方法, 其中, 在所述移动性管理网元接收来自所述应用 服务器的所述请求消息之前, 所述方法还包括: The method according to claim 2, wherein, before the mobility management network element receives the request message from the application server, the method further includes:
所述用户签约服务器接收到所述应用服务器发送的查询请求, 向所述应用 服务器发送所述终端当前注册的移动性管理网元。  The user subscription server receives the query request sent by the application server, and sends the mobility management network element currently registered by the terminal to the application server.
4. 根据权利要求 2所述的方法, 其中, 所述用户签约服务器获取所述终端的状态 包括: The method according to claim 2, wherein the obtaining, by the user subscription server, the status of the terminal comprises:
所述用户签约服务器在本地查询到所述终端的状态; 和 /或, 所述用户签约服务器从所述移动性管理网元查询到所述终端的状态。  The user subscription server locally queries the status of the terminal; and/or the user subscription server queries the mobility management network element for the status of the terminal.
5. 根据权利要求 4所述的方法, 其中, 所述用户签约服务器在本地查询到所述终端的状态为未注册到网络的情况 下, 所述用户签约服务器将所述终端的状态为未注册到网络发送给所述应用服 务器。 The method according to claim 4, wherein, when the user subscription server locally queries that the status of the terminal is not registered to the network, the user subscription server sets the status of the terminal as unregistered. Send to the application server to the network.
6. 根据权利要求 4所述的方法, 其中, 所述用户签约服务器从所述移动性管理网 元查询到所述终端的状态包括: 在所述终端已经被分配所述移动性管理网元的情况下, 所述用户签约服务 器从所述移动性管理网元获取到所述终端的状态。 The method according to claim 4, wherein the querying, by the user subscription server, the status of the terminal from the mobility management network element comprises: In a case that the terminal has been allocated the mobility management network element, the user subscription server acquires the state of the terminal from the mobility management network element.
7. 根据权利要求 2或 6所述的方法, 其中, 所述移动性管理网元或所述用户签约 服务器从所述移动性管理网元获取到所述终端的状态为: 附着并被分配网际协 议 IP地址或附着但未被分配 IP地址。 The method according to claim 2 or 6, wherein the mobility management network element or the user subscription server obtains the status of the terminal from the mobility management network element as: Protocol IP address or attached but not assigned an IP address.
8. 根据权利要求 7所述的方法, 其中, 所述移动性管理网元向所述用户签约服务 器或所述应用服务器发送所述终端的 IP地址,以指示所述用户签约服务器所述 终端的状态为附着并被分配 IP地址。 The method according to claim 7, wherein the mobility management network element sends an IP address of the terminal to the user subscription server or the application server to indicate that the user subscribes to the server. The status is attached and assigned an IP address.
9. 根据权利要求 8所述的方法, 其中, 所述移动性管理网元向所述用户签约服务 器或所述应用服务器发送所述终端的 IP地址的类型。 9. The method according to claim 8, wherein the mobility management network element sends the type of the IP address of the terminal to the user subscription server or the application server.
10. 根据权利要求 7所述的方法, 其中, 所述移动性管理网元向所述用户签约服务 器或所述应用服务器发送所述终端未激活 PDP的指示信息, 以指示所述用户签 约服务器所述终端的状态为附着但未被分配 IP地址。 The method according to claim 7, wherein the mobility management network element sends the indication information that the terminal does not activate the PDP to the user subscription server or the application server, to indicate that the user subscription server is The state of the terminal is attached but not assigned an IP address.
11. 根据权利要求 2所述的方法, 其中, 11. The method according to claim 2, wherein
所述用户签约服务器为: HLR或 HSS;  The user subscription server is: HLR or HSS;
所述移动性管理网元为: MSC、 SGSN或 MME。  The mobility management network element is: an MSC, an SGSN, or an MME.
12. 一种激活终端方法, 包括: 12. A method of activating a terminal, comprising:
移动性管理网元接收用于激活终端的请求消息, 其中, 所述请求消息中携 带所述终端的标识, 所述请求消息的来源为应用服务器;  The mobility management network element receives a request message for activating the terminal, where the request message carries an identifier of the terminal, and the source of the request message is an application server;
所述移动性管理网元向所述终端发送用于激活所述终端的消息。  The mobility management network element sends a message to the terminal for activating the terminal.
13. 根据权利要求 12所述的方法,其中,在所述移动性管理网元接收所述请求消息 之前, 所述方法还包括: 13. The method of claim 12, wherein before the mobility management network element receives the request message, the method further comprises:
用户签约服务器接收应用服务器发送的用于激活终端的请求消息, 并向所 述移动性管理网元发送用于激活所述终端的请求消息;  The user subscription server receives a request message sent by the application server for activating the terminal, and sends a request message for activating the terminal to the mobility management network element;
或者,  Or,
所述移动性管理网元接收所述应用服务器发送的用于激活终端的请求消 息。 The mobility management network element receives a request message sent by the application server for activating the terminal.
14. 根据权利要求 13所述的方法,其中,在所述移动性管理网元接收所述应用服务 器发送的用于激活终端的请求消息之前, 所述方法还包括: The method according to claim 13, wherein before the mobility management network element receives the request message for activating the terminal sent by the application server, the method further includes:
所述用户签约服务器接收到所述应用服务器发送的查询请求, 向所述应用 服务器发送所述终端当前注册的移动性管理网元。  The user subscription server receives the query request sent by the application server, and sends the mobility management network element currently registered by the terminal to the application server.
15. 根据权利要求 12所述的方法,其中,所述移动性管理网元向所述终端发送用于 激活所述终端的消息包括: The method according to claim 12, wherein the sending, by the mobility management network element, the message for activating the terminal to the terminal comprises:
所述移动性管理网元发送寻呼 Paging消息寻呼所述终端;  Transmitting, by the mobility management network element, a paging Paging message to page the terminal;
所述移动性管理网元接收到所述终端发送的响应于所述寻呼消息的响应消 息后, 向所述终端发送 NAS消息, 其中, 所述 NAS消息中携带有所述应用服 务器对应的服务标识。  After receiving the response message sent by the terminal in response to the paging message, the mobility management network element sends a NAS message to the terminal, where the NAS message carries the service corresponding to the application server. Logo.
16. 根据权利要求 12所述的方法,其中,来源为所述应用服务器的用于激活终端的 请求消息还携带有所述应用服务器对应的服务标识, 所述移动性管理网元向所 述终端发送的用于激活所述终端的消息中还携带所述服务标识。 The method according to claim 12, wherein the request message for activating the terminal from the application server further carries a service identifier corresponding to the application server, and the mobility management network element is directed to the terminal The service identifier is also carried in the sent message for activating the terminal.
17. 根据权利要求 13所述的方法,其中,所述用户签约服务器向移动性管理网元发 送激活所述终端的请求消息包括: The method according to claim 13, wherein the sending, by the user subscription server, the request message for activating the terminal to the mobility management network element comprises:
在所述终端已经附着到网络的情况下, 所述用户签约服务器向所述终端当 前注册的移动性管理网元发送激活所述终端的请求消息。  In the case that the terminal has been attached to the network, the user subscription server sends a request message for activating the terminal to the mobility management network element currently registered by the terminal.
18. 根据权利要求 16所述的方法,其中,所述用户签约服务器向移动性管理网元发 送激活所述终端的请求消息包括: The method according to claim 16, wherein the sending, by the user subscription server, the request message for activating the terminal to the mobility management network element comprises:
在所述终端未附着到网络的情况下, 所述用户签约服务器选择移动性管理 网元, 并向选择出的移动性管理网元发送激活所述终端的请求消息。  If the terminal is not attached to the network, the user subscription server selects the mobility management network element, and sends a request message for activating the terminal to the selected mobility management network element.
19. 根据权利要求 18所述的方法,其中,所述用户签约服务器选择移动性管理网元 包括: 19. The method of claim 18, wherein the selecting a mobility management network element by the user subscription server comprises:
所述用户签约服务器根据所述终端签约的业务属性,选择移动性管理网元; 或者,  The user subscription server selects a mobility management network element according to the service attribute signed by the terminal; or
所述用户签约服务器选择所述终端上次所注册的移动性管理网元, 作为发 送激活所述终端的请求消息的移动性管理网元。  The user subscription server selects the mobility management network element that the terminal last registered as a mobility management network element that sends a request message to activate the terminal.
20. 根据权利要求 12至 19中任一项所述的方法, 其中, 所述移动性管理网元向所 述终端发送用于激活所述终端的消息包括: 所述移动性管理网元根据所述终端的标识向所述终端发送非接入层 NAS 消息或寻呼 Paging消息, 所述 NAS消息或寻呼消息用于激活所述终端。 The method according to any one of claims 12 to 19, wherein the sending, by the mobility management network element, the message for activating the terminal to the terminal comprises: The mobility management network element sends a non-access stratum NAS message or a paging Paging message to the terminal according to the identifier of the terminal, where the NAS message or the paging message is used to activate the terminal.
21. 根据权利要求 12至 19中任一项所述的方法, 其中, 所述移动性管理网元向所 述终端发送用于激活所述终端的消息包括: The method according to any one of claims 12 to 19, wherein the sending, by the mobility management network element, the message for activating the terminal to the terminal comprises:
所述移动性管理网元发送广播消息, 其中所述广播消息中还携带有所述终 端的标识。  The mobility management network element sends a broadcast message, where the broadcast message further carries an identifier of the terminal.
22. 根据权利要求 21所述的方法, 其中, 所述广播消息为 Paging消息或者系统广 播消息。 22. The method according to claim 21, wherein the broadcast message is a Paging message or a system broadcast message.
23. 根据权利要求 21所述的方法,其中,在所述移动性管理网元发送广播消息之后, 还包括: The method according to claim 21, wherein after the mobility management network element sends the broadcast message, the method further includes:
所述终端监听到所述广播消息之后, 附着到网络。  After the terminal listens to the broadcast message, it attaches to the network.
24. 根据权利要求 13或 14所述的方法, 其中, 所述用户签约服务器向移动性管理 网元发送激活所述终端的请求消息, 其中, 该请求消息还用于查询所述终端是 否可及。 The method according to claim 13 or 14, wherein the user subscription server sends a request message for activating the terminal to the mobility management network element, where the request message is further used to query whether the terminal is reachable. .
25. 根据权利要求 13所述的方法, 其中, 25. The method according to claim 13, wherein
所述用户签约服务器或所述应用服务器向所述移动性管理网元发送用于激 活所述终端的请求消息, 该请求消息中携带所述终端的临时标识, 其中, 所述 临时标识是在所述终端从网络去附着中, 移动性管理网元将所述临时标识发送 给所述用户签约服务器的。  The user subscription server or the application server sends a request message for activating the terminal to the mobility management network element, where the request message carries a temporary identifier of the terminal, where the temporary identifier is in the office The terminal detaches from the network, and the mobility management network element sends the temporary identifier to the user subscription server.
26. 根据权利要求 25所述的方法, 其中, 在所述应用服务器保存有所述终端的临时标识的情况下, 所述用户签约服 务器接收到来自应用服务器的激活终端的请求消息, 该请求消息中携带所述终 端的临时标识和服务标识; The method according to claim 25, wherein, in a case that the application server saves the temporary identifier of the terminal, the user subscription server receives a request message from an activation terminal of the application server, the request message Carrying the temporary identifier and the service identifier of the terminal;
在所述应用服务器没有保存所述终端的临时标识的情况下, 所述用户签约 服务器接收到来自应用服务器的激活终端的请求消息, 该请求消息中携带所述 终端的标识和所述服务标识,并将所述终端的标识替换为所述终端的临时标识。  If the application server does not save the temporary identifier of the terminal, the user subscription server receives a request message from the application server, and the request message carries the identifier of the terminal and the service identifier. And replacing the identifier of the terminal with the temporary identifier of the terminal.
27. 一种终端状态获取装置, 包括: 第一接收模块, 设置为接收到来自应用服务器的请求消息, 其中, 所述请 求消息用于查询终端的状态; 27. A terminal state acquiring device, comprising: a first receiving module, configured to receive a request message from an application server, where the request message is used to query a status of the terminal;
获取模块, 设置为获取所述终端的状态, 并将所述终端的状态发送给所述 应用服务器。  An obtaining module is configured to obtain a state of the terminal, and send the state of the terminal to the application server.
28. 根据权利要求 27所述的装置, 其中, 28. The device according to claim 27, wherein
位于用户签约服务器的所述第一接收模块, 设置为接收到来自所述应用服 务器的所述请求消息; 位于所述用户签约服务器的所述获取模块, 设置为获取 所述终端的状态, 并将所述终端的状态发送给所述应用服务器;  The first receiving module located at the user subscription server is configured to receive the request message from the application server; the obtaining module located at the user subscription server is configured to acquire the status of the terminal, and Sending the status of the terminal to the application server;
或者,  Or,
位于所述移动性管理网元的所述第一接收模块, 设置为接收到来自所述应 用服务器的所述请求消息; 位于所述移动性管理网元的所述获取模块, 设置为 从本地获取所述终端的状态, 并将所述终端的状态发送给所述应用服务器。  The first receiving module of the mobility management network element is configured to receive the request message from the application server; the acquiring module located in the mobility management network element is configured to be obtained locally The status of the terminal, and the status of the terminal is sent to the application server.
29. 一种终端状态获取系统, 包括: 用户签约服务器、 移动性管理网元和应用服务 器, 其中, 29. A terminal status acquisition system, comprising: a user subscription server, a mobility management network element, and an application server, where
所述应用服务器设置为向所述用户签约服务器或所述移动性管理网元发送 请求消息, 其中, 所述请求消息用于查询终端的状态;  The application server is configured to send a request message to the user subscription server or the mobility management network element, where the request message is used to query the status of the terminal;
所述用户签约服务器或所述移动性管理网元设置为在接收到所述请求消息 之后, 获取所述终端的状态, 并将所述终端的状态发送给所述应用服务器。  The user subscription server or the mobility management network element is configured to acquire a status of the terminal after receiving the request message, and send the status of the terminal to the application server.
30. 一种激活终端装置, 位于移动性管理网元中, 包括: 30. An activation terminal device, located in the mobility management network element, comprising:
第二接收模块, 设置为接收用于激活终端的请求消息, 其中, 所述请求消 息中携带所述终端的标识, 所述请求消息的来源为应用服务器;  The second receiving module is configured to receive a request message for activating the terminal, where the request message carries an identifier of the terminal, and the source of the request message is an application server;
发送模块, 设置为向所述终端发送用于激活所述终端的消息。  And a sending module, configured to send a message to the terminal for activating the terminal.
31. 根据权利要求 30所述的装置, 所述第二接收模块接收到的所述请求消息的发送方是用户签约服务器, 其 中, 所述用于签约服务器在接收到应用服务器发送的用于激活终端的所述请求 消息之后, 向所述移动性管理网元发送所述请求消息; The device according to claim 30, wherein the sender of the request message received by the second receiving module is a user subscription server, wherein the signing server receives the application server to send for activation. After the request message of the terminal, sending the request message to the mobility management network element;
或者,  Or,
所述第二接收模块接收到的用于激活终端的请求消息的发送方是应用服务 器。 一种激活终端系统, 包括: 用户签约服务器、 移动性管理网元和应用服务器, 其中, The sender of the request message for activating the terminal received by the second receiving module is an application server. An activation terminal system includes: a user subscription server, a mobility management network element, and an application server, where
所述应用服务器设置为经由所述用户签约服务器或直接向所述移动性管理 网元发送用于激活终端的请求消息,其中,该请求消息中携带所述终端的标识; 所述移动性管理网元设置为向所述终端发送用于激活所述终端的消息。  The application server is configured to send a request message for activating the terminal to the mobility management network element by using the user subscription server, where the request message carries the identifier of the terminal; the mobility management network The element is arranged to send a message to the terminal for activating the terminal.
PCT/CN2011/084838 2011-01-21 2011-12-28 Method for acquiring terminal status, method, apparatus and system for activating terminal WO2012097667A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110024174.8 2011-01-21
CN201110024174.8A CN102612021B (en) 2011-01-21 2011-01-21 SOT state of termination acquisition methods, activated terminals method and system

Publications (1)

Publication Number Publication Date
WO2012097667A1 true WO2012097667A1 (en) 2012-07-26

Family

ID=46515138

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/084838 WO2012097667A1 (en) 2011-01-21 2011-12-28 Method for acquiring terminal status, method, apparatus and system for activating terminal

Country Status (2)

Country Link
CN (1) CN102612021B (en)
WO (1) WO2012097667A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813294B (en) * 2012-11-09 2018-05-11 中国电信股份有限公司 State information searching method and system, Interworking gateway
CN103079184B (en) * 2013-01-11 2015-07-08 西安工程大学 Method for sending trigger message under network congestion state
CN104427616B (en) * 2013-09-10 2020-03-03 中兴通讯股份有限公司 Method and device for paging terminal
CN104618519B (en) * 2013-11-04 2018-11-16 华为终端有限公司 The address PDP/PDN discharges notification method, device and server
CN105934964B (en) * 2014-12-30 2019-11-29 华为技术有限公司 Information reporting device and method, data sending device and method
CN108259527B (en) 2016-12-28 2020-10-16 华为技术有限公司 Proxy-based service processing method and device and network element equipment
CN108600994B (en) * 2017-03-07 2021-06-22 中国移动通信有限公司研究院 Data transmission method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101228801A (en) * 2005-07-26 2008-07-23 拉内特泽德有限公司 Application activating method
CN101350962A (en) * 2008-09-16 2009-01-21 深圳华为通信技术有限公司 Method, apparatus and system for displaying and enquiring network side state of communications terminal
CN101370265A (en) * 2007-08-19 2009-02-18 华为技术有限公司 Method, system and apparatus for calling and releasing communication
CN101494700A (en) * 2009-02-17 2009-07-29 华为技术有限公司 Method for providing business to circuit domain user by server, server and system
WO2010043184A1 (en) * 2008-10-17 2010-04-22 华为技术有限公司 Method, system and apparatus for restricting calls from calling user

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127613A (en) * 2006-08-16 2008-02-20 华为技术有限公司 Method for obtaining circuit domain information in IP multimedia subsystem and its application
CN101247632B (en) * 2007-02-13 2013-01-30 华为技术有限公司 Method, system and device for using IMS communication service identification in communication system
CN101127722A (en) * 2007-09-17 2008-02-20 中兴通讯股份有限公司 Processing method after core network restart/failure recovery
CN101136925B (en) * 2007-09-29 2012-09-05 中兴通讯股份有限公司 Processing method for maintaining data consistency using dynamic service active information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101228801A (en) * 2005-07-26 2008-07-23 拉内特泽德有限公司 Application activating method
CN101370265A (en) * 2007-08-19 2009-02-18 华为技术有限公司 Method, system and apparatus for calling and releasing communication
CN101350962A (en) * 2008-09-16 2009-01-21 深圳华为通信技术有限公司 Method, apparatus and system for displaying and enquiring network side state of communications terminal
WO2010043184A1 (en) * 2008-10-17 2010-04-22 华为技术有限公司 Method, system and apparatus for restricting calls from calling user
CN101494700A (en) * 2009-02-17 2009-07-29 华为技术有限公司 Method for providing business to circuit domain user by server, server and system

Also Published As

Publication number Publication date
CN102612021A (en) 2012-07-25
CN102612021B (en) 2017-03-15

Similar Documents

Publication Publication Date Title
EP3603143B1 (en) Network slice-available area information acquisition method
US20240147186A1 (en) Registration management method for terminal accessing 5g network on non-3gpp access
US9549424B2 (en) Data transmission method, device, and system
WO2012097667A1 (en) Method for acquiring terminal status, method, apparatus and system for activating terminal
US8995399B2 (en) Method, apparatus, and system for implementing user equipment handover
US8537748B2 (en) Technique for performing GSM/WCDMA circuit switched services over a long term evolution radio access
CN102036204B (en) Method and system for realizing emergency location
US20140237125A1 (en) Method, apparatus, and system for establishing device-to-device connection
WO2014146474A1 (en) Terminal registration method, terminal discovery method, terminal and device
WO2011140884A1 (en) Method for machine type communication group selecting packet data network gateway, and mobile management network element
JP2015502103A (en) System and method for paging of offline state terminals
EP2296418B1 (en) Processing method, system and apparatus for mobility management
WO2011157055A1 (en) Method and device for machine type communication monitoring processing
WO2012068728A1 (en) Methods and network entities for acquiring ip address of user
WO2011147244A1 (en) Method and system for activating offline terminal, and machine type communication terminal
CN103477690A (en) Notifying a user equipment UE, over a mobile network, of a UE application trigger request from a network application server
CN102413453B (en) A kind of shared method and system of MTC device Subscriber Number
WO2018059401A1 (en) Network switching method, device and system, and network access method and device
WO2017181353A1 (en) Method of processing dedicated core network migration, equipment, and system
WO2010133107A1 (en) Method and system for home node b gateway forwarding messages to home node b
CN101657024B (en) Treatment method and treatment device of ISR mechanism
WO2015154426A1 (en) Method and device for prose temporary identifier notification and update
WO2013064065A1 (en) Application data processing method and device
WO2009067880A1 (en) Method, system for the mobility management of a terminal and apparatus thereof
WO2013064102A1 (en) Position updating method, device and system

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

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

Country of ref document: EP

Kind code of ref document: A1