WO2015096012A1 - 一种会话处理方法及设备 - Google Patents

一种会话处理方法及设备 Download PDF

Info

Publication number
WO2015096012A1
WO2015096012A1 PCT/CN2013/090247 CN2013090247W WO2015096012A1 WO 2015096012 A1 WO2015096012 A1 WO 2015096012A1 CN 2013090247 W CN2013090247 W CN 2013090247W WO 2015096012 A1 WO2015096012 A1 WO 2015096012A1
Authority
WO
WIPO (PCT)
Prior art keywords
cse
session
identifier
application connection
establishment request
Prior art date
Application number
PCT/CN2013/090247
Other languages
English (en)
French (fr)
Inventor
高林毅
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Priority to CN201380076099.7A priority Critical patent/CN105264858B/zh
Priority to PCT/CN2013/090247 priority patent/WO2015096012A1/zh
Publication of WO2015096012A1 publication Critical patent/WO2015096012A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a session processing method and device. Background technique
  • mobile terminals can communicate using various communication networks such as wired networks, cellular networks, and WiFi networks.
  • various communication networks such as wired networks, cellular networks, and WiFi networks.
  • mobile terminals due to factors such as network coverage, network tariffs, or network usage restrictions, mobile terminals often Switch between different networks.
  • IP Internet Protocol
  • the manner of solving the above problem by correspondingly modifying the transport layer may refer to maintaining the continuity of the session between applications by modifying the address in the socket and maintaining the association between the application and the socket, or by adding a new TCP.
  • the way to solve the above problem by modifying the IP layer accordingly means using a virtual, fixed network address for communication or Use mobile IP technology.
  • the transport layer is modified accordingly to achieve continuity of the session between applications, due to the need to change the socket quad, or add a new TCP state, or define new TCP options, or change the TCP header, etc., Will modify the existing TCP / IP protocol; and when using mobile IP technology, etc. to achieve the continuity of the session between applications, because it usually involves the home agent and external generation
  • the network element is rationalized, which makes the implementation of the technology more complicated.
  • the transmission delay is also increased, so that the running time of the data packet in the network is greatly increased, which greatly increases the burden on the network. .
  • the embodiment of the invention provides a method and a device for processing a session, so as to solve the problem that the existing method for implementing session continuity between upper-layer applications is not good.
  • a session processing method including:
  • the first CSE (Common Service Entity) sends the first session identifier and the first application according to the first session establishment request that is sent by the first AF (Application Function) to carry the identifier information of the second AF.
  • the connection identifier is associated, and the second CSE carrying the first session identifier is sent to the second CSE, so that the second CSE associates the first session identifier with the second application connection identifier, where
  • the first session identifier is used to identify a first session established by the first CSE between the first underlying network and the second CSE, where the first application connection identifier is used to identify the first CSE and a first application connection between the first AF and a second application connection identifier, where the second application connection identifier is used to identify a second application connection between the second CSE and the second AF;
  • the second session identifier is associated with the first application connection identifier, and sends a third session establishment request carrying the second session identifier to the second CSE, so that the second CSE will use the second session
  • the identifier is associated with the second application connection identifier.
  • the method further includes: If it is determined that the first session is still in the connected state, sending, by using the first underlying network, a network handover notification indication to the second CSE, notifying the second CSE that network switching is about to be performed, and receiving the second CSE The returned network switch notification response message;
  • the method includes: releasing, according to the network handover notification response message returned by the second CSE, the first session identifier and the first application connection identifier An association relationship between the second session identifier and the first application connection identifier.
  • the method further includes:
  • the first AF is a data sending end, buffering data sent by the first AF;
  • the last received data from the second CSE is repeatedly sent to the first AF, or the locally cached source is used to reduce the data sending rate.
  • the data of the second CSE is sent to the first AF.
  • the third session establishment request further includes the first session identifier and And a network switching indication indicating that the second CSE performs network switching;
  • the third session establishment request is sent to the second CSE, so that the second CSE After the second session identifier is associated with the second application connection identifier, the method further includes: if it is determined that the first AF is a data sending end, receiving the last received response sent by the second CSE Identification information of the data of the first CSE; or
  • a session processing method including:
  • the second CSE associates the first session identifier with the second application connection identifier according to the second session establishment request that is sent by the first CSE and carries the first session identifier, where the first session identifier is used to identify the location Determining, by the first CSE, a first session established between the first underlying network and the second CSE, where the second application connection identifier is used to identify a second application connection between the second CSE and the second AF, And the second session establishment request is that the first CSE sends the first session identifier and the first application in the first session establishment request that carries the identifier information of the second AF that is sent according to the first AF After the connection identifier is sent, the first application connection identifier is used to identify a first application connection between the first CSE and the first AF;
  • the second session identifier is associated with the second application connection identifier according to the third session establishment request.
  • the third session establishment request is that the first CSE performs the second session identifier and the first application connection identifier when determining that the first underlying network needs to be switched to the second underlying network.
  • the second session identifier is used to identify a second session established by the first CSE between the second underlying network and the second CSE.
  • the method before receiving the third session establishment request that is sent by the CSE and carrying the second session identifier, the method further includes:
  • a network handover notification indication is that the first CSE determines that the first underlying network needs to be handed over to the second underlying network, and determining the When the first session remains in the connected state, is sent to the second CSE through the first underlying network; And according to the network switching notification indication, keeping the second application connection unchanged, and returning a network switching notification response message to the first CSE, so that the first CSE cancels the response according to the network switching notification response message. Determining an association relationship between the first session identifier and the first application connection identifier, and associating the second session identifier with the first application connection identifier.
  • the third CSI that carries the second session identifier that is sent by the first CSE is received.
  • the method further includes:
  • the last received data from the first CSE is repeatedly sent to the second AF, or the locally cached source is obtained by reducing the data sending rate.
  • the data of the first CSE is sent to the second AF.
  • the third session establishment request further includes the first session identifier and And a network switching indication indicating that the second CSE performs network switching;
  • the second session identifier and the second application are configured according to the third session establishment request After the connection identifier is associated, the method further includes:
  • a CSE including:
  • the first identifier association module is configured to associate the first session identifier with the first application connection identifier according to the first session establishment request that is sent by the first AF and that carries the identifier information of the second AF, and send the bearer to the peer CSE.
  • a second session establishment request of the first session identifier so that the peer CSE associates the first session identifier with a second application connection identifier, where the first session identifier is used to identify the
  • the first application connection identifier is used to identify the first application connection between the CSE and the first AF, where the first application connection is established between the CSE and the peer CSE.
  • the second application connection identifier is used to identify a second application connection between the peer CSE and the second AF;
  • a second identifier association module configured to: if it is determined that the first underlying network needs to be switched to the second underlying network, to establish a second session with the peer CSE through the second underlying network, And the second session identifier that is allocated by the second session is associated with the first application connection identifier, and sends a third session establishment request that carries the second session identifier to the peer CSE, so that the pair The end CSE associates the second session identifier with the second application connection identifier.
  • the CSE further includes an information transceiver module:
  • the information transceiver module is configured to: after determining that the first underlying network needs to be switched to the second underlying network, and before associating the second session identifier with the first application connection identifier, The first session is still in the connected state, and the network switch notification indication is sent to the peer CSE through the first underlying network, and the peer CSE is notified that the network switch is about to be performed, and the network switch returned by the peer CSE is received. Notification response message;
  • the second identifier association module is configured to: cancel the association relationship between the first session identifier and the first application connection identifier according to the network handover notification response message returned by the peer CSE, and The second session identifier is associated with the first application connection identifier.
  • the CSE further includes a data processing module: The data processing module is configured to: after determining that the first underlying network needs to be switched to the second underlying network, and causing the peer CSE to associate the second session identifier with the second application connection identifier If the first AF is determined to be the data transmitting end, the data sent by the first AF is buffered; or if the first AF is determined to be the data receiving end, the last received from the opposite end The data of the CSE is repeatedly sent to the first AF, or the locally cached data from the peer CSE is sent to the first AF by reducing the data transmission rate.
  • the third session establishment request further includes the first session identifier and And a network switching indication indicating that the peer CSE performs network switching;
  • the second identifier association module is configured to send the third session establishment request to the peer CSE, so that the peer CSE performs the network handover indication carried in the third session establishment request, And releasing an association relationship between the first session identifier and the second application connection identifier, and associating the second session identifier with the second application connection identifier.
  • the data processing module is further configured to send a third session establishment request to the peer CSE, After the peer CSE associates the second session identifier with the second application connection identifier, if it is determined that the first AF is a data sending end, receiving the last received by the peer CSE is received.
  • the identifier information of the data from the CSE is sent to the peer CSE, and if the first AF is determined to be the data receiving end, the last received identifier information of the data from the peer CSE is sent to the peer CSE.
  • a CSE including:
  • a first identifier association module configured to associate the first session identifier with a second application connection identifier according to the second session establishment request that is sent by the peer CSE and that carries the first session identifier, where the first session is The identifier is used to identify a first session established between the peer end CSE and the CSE, and the second application connection identifier is used to identify a second application connection between the CSE and the second AF.
  • the second session establishment request is a first session establishment request that is sent by the peer CSE according to the first AF and carries the identifier information of the second AF, where the first session is The first application connection identifier is used to identify the first application connection between the peer CSE and the first AF, and the first application connection identifier is sent after the session identifier is associated with the first application connection identifier.
  • a second identifier association module configured to: if receiving the third session establishment request that is sent by the peer CSE and carrying the second session identifier, according to the third session establishment request, the second session identifier and the location The second application connection identifier is associated, where the third session establishment request is that the peer CSE, when determining that the first underlying network needs to be handed over to the second underlying network, And sending, by the first application connection identifier, the second session identifier, where the second session identifier is used to identify the second session established by the peer CSE between the second underlying network and the CSE.
  • the CSE further includes an information transceiver module:
  • the information transceiver module is configured to: before receiving the third session establishment request that is sent by the peer CSE and carrying the second session identifier, receive the network handover notification indication sent by the peer CSE, and switch according to the network Notifying that the second application connection is unchanged, and returning a network handover notification response message to the peer CSE, so that the peer CSE cancels the first session according to the network handover notification response message Identifying an association relationship with the first application connection identifier, and associating the second session identifier with the first application connection identifier;
  • the network switching notification indication is that the peer CSE determines that the first underlying network needs to be switched to the second underlying network, and determines that the first session remains connected. An underlying network sends to the CSE.
  • the CSE further includes a data processing module:
  • the data processing module is configured to: after receiving the third session establishment request that is sent by the peer CSE and carrying the second session identifier, and according to the third session establishment request, the second session identifier is Before the second application connection identifier is associated, if the second AF is determined to be the data sending end, the data sent by the second AF is buffered; or, if the second AF is determined to be the data receiving end, The last received data from the peer CSE is repeatedly sent to the second AF, or transmitting locally cached data from the peer CSE to the second AF by reducing the data transmission rate.
  • the third session establishment request further carries the first session identifier and And a network switching indication indicating that the CSE performs network switching;
  • the second identifier association module is configured to cancel the association relationship between the first session identifier and the second application connection identifier according to the network switching indication carried in the third session establishment request, and Associating the second session identifier with the second application connection identifier.
  • the data processing module is further configured to: After the second session identifier is associated with the second application connection identifier, if it is determined that the second AF is a data sending end, receiving, by the peer CSE, the last received identifier information of the data from the CSE; Alternatively, if it is determined that the second AF is a data receiving end, the last received information of the data from the peer CSE is sent to the peer CSE.
  • a CSE including:
  • the processor is configured to associate the first session identifier with the first application connection identifier according to the first session establishment request that is sent by the first AF and that carries the identifier information of the second AF, and send the identifier to the peer CSE a second session establishment request of the first session identifier, so that the peer CSE associates the first session identifier with the second application connection identifier; and if it is determined that the first underlying network needs to be switched to the second An underlying network, to establish a second session with the peer CSE through the second underlying network, and associate a second session identifier assigned to the second session with the first application connection identifier, Sending, to the peer CSE, a third session establishment request that carries the second session identifier, so that the peer CSE associates the second session identifier with the second application connection identifier;
  • the first session identifier is used to identify a first session established between the CSE and the peer CSE
  • the first application connection identifier is used to identify the CSE and the first a first application connection between the AFs
  • the second application connection identifier is used to identify the peer end A second application connection between the CSE and the second AF.
  • the CSE further includes a transceiver:
  • the transceiver configured to determine, after determining that the first underlying network needs to be switched to the second underlying network, and associating the second session identifier with the first application connection identifier A session is still in the connected state, and the network switching notification indication is sent to the peer CSE through the first underlying network, and the peer CSE is notified that network switching is about to be performed, and the network switching notification returned by the peer CSE is received.
  • Response message
  • the processor is specifically configured to: according to the network handover notification response message returned by the peer CSE, cancel the association relationship between the first session identifier and the first application connection identifier, and the second session The identifier is associated with the first application connection identifier.
  • the processor is further configured to: after determining that the first underlying network needs to be switched to the second underlying network, and causing the peer CSE to associate the second session identifier with the second application connection identifier If the first AF is determined to be the data transmitting end, the data sent by the first AF is buffered; or if the first AF is determined to be the data receiving end, the last received from the opposite end The data of the CSE is repeatedly sent to the first AF, or the locally buffered data from the peer CSE is sent to the first AF by using a P low data transmission rate.
  • the third session establishment request further carries the first session identifier and And a network switching indication indicating that the peer CSE performs network switching;
  • the processor is configured to send the third session establishment request to the peer CSE, so that the peer CSE cancels the network switching indication carried in the third session establishment request.
  • the processor is further configured to send a third session establishment request to the peer CSE, so that the peer CSE associates the second session identifier with the second application connection identifier. Then, if it is determined that the first AF is a data transmitting end, receiving identifier information of the last received data from the CSE sent by the peer CSE; or, if determining that the first AF is a data receiving end And sending, to the peer CSE, identification information of the last received data from the peer CSE.
  • a CSE including:
  • a processor configured to associate the first session identifier with a second application connection identifier according to the second session establishment request that is sent by the peer CSE and that carries the first session identifier, where the first session identifier is used by Identifying a first session established between the CSE and the CSE by the peer CSE, where the second application connection identifier is used to identify a second application connection between the CSE and the second AF, and
  • the second session establishment request is that the peer CSE connects the first session identifier with the first application connection identifier by using the first session establishment request that carries the identifier information of the second AF that is sent according to the first AF.
  • the first application connection identifier is used to identify a first application connection between the peer CSE and the first AF;
  • the second session identifier is associated with the second application connection identifier according to the third session establishment request.
  • the third session establishment request is that the peer CSE performs the second session identifier and the first application connection identifier when determining that the first underlying network needs to be switched to the second underlying network.
  • the second session identifier is used to identify the second session established between the peer CSE and the CSE by the peer CSE.
  • the CSE further includes a transceiver:
  • the transceiver is configured to receive a network handover notification indication sent by the peer CSE, and receive the network handover notification according to the network, before receiving the third session establishment request that is sent by the peer CSE and carrying the second session identifier. Instructing to keep the second application connection unchanged, and returning a network switch notification response message to the peer CSE, so that the peer CSE responds according to the network switch notification a message, the association relationship between the first session identifier and the first application connection identifier is released, and the second session identifier is associated with the first application connection identifier;
  • the network switching notification indication is that the peer CSE determines that the first underlying network needs to be switched to the second underlying network, and determines that the first session remains connected. An underlying network sends to the CSE.
  • the processor is further configured to: after receiving the third session establishment request that is sent by the peer CSE and carrying the second session identifier, and according to the third session establishment request, the second session identifier is Before the second application connection identifier is associated, if the second AF is determined to be the data sending end, the data sent by the second AF is buffered; or, if the second AF is determined to be the data receiving end, The data received from the peer CSE is repeatedly sent to the second AF, or the locally buffered data from the peer CSE is sent to the second AF by reducing the data transmission rate.
  • the third session establishment request further includes the first session identifier and And a network switching indication indicating that the CSE performs network switching;
  • the processor is specifically configured to remove an association relationship between the first session identifier and the second application connection identifier according to the network switching indication carried in the third session establishment request, and The second session identifier is associated with the second application connection identifier.
  • the processor is further configured to: after the third session establishment request, the second After the session identifier is associated with the second application connection identifier, if it is determined that the second AF is a data sending end, receiving, by the peer CSE, the last received identifier information of the data from the CSE; or And if it is determined that the second AF is a data receiving end, sending, to the peer CSE, the last received identification information of the data from the peer CSE.
  • the session processing device performs the switching of the underlying network between the first CSE and the second CSE
  • the session identifier used to identify the new session between the first CSE and the second CSE is used to identify the first CSE and the first Correlating a first application connection identifier of the first application connection between the AFs and a second application connection identifier for identifying the second application connection between the second CSE and the second AF to ensure the first application connection
  • the second application connection is not disconnected, the underlying network is switched, thereby implementing the continuity of the session between the upper-layer applications, thereby better solving the existing way of implementing session continuity between the upper-layer applications when the underlying network is switched. The problem is not good, which improves the switching effect of the session between the upper applications.
  • FIG. 1 is a schematic flowchart of a session processing method according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of a session processing method according to Embodiment 2 of the present invention
  • FIG. 4 is a schematic structural diagram of a CSE according to Embodiment 4 of the present invention
  • FIG. 5 is a schematic structural diagram of a CSE according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic structural diagram of a CSE according to Embodiment 6 of the present invention.
  • FIG. 7 is a schematic structural diagram of a CSE according to Embodiment 7 of the present invention. detailed description
  • the embodiment of the invention provides a method and a device for processing a session, so as to solve the problem of how to implement the continuity of the session between the upper-layer applications when the underlying network switching causes the underlying network session to migrate.
  • the session between the first AF and the second AF may be divided into a first AF to a first CSE, and a first CSE to a first session.
  • Two CSE and the first The two CSEs to the second AF part, when the underlying network switches, can be maintained by maintaining the sessions at both ends of the application (such as the session between the first AF and the first CSE and the session between the second CSE and the second AF) And switching the session between the service capability layers (such as the session between the first CSE and the second CSE) to implement the continuity of the session between the applications, thereby improving the switching effect of the session between the upper application, The problem that the existing continuity of the session between the upper-layer applications when the underlying network switching is implemented is not well solved.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 it is a schematic flowchart of a session processing method according to the first embodiment of the present invention.
  • the session processing method may include the following steps:
  • Step 101 The first CSE associates the first session identifier with the first application connection identifier according to the first session establishment request that is sent by the first AF and carries the identifier information of the second AF, and sends the bearer to the second CSE. a second session establishment request of the first session identifier, so that the second CSE associates the first session identifier with the second application connection identifier.
  • the first session identifier is used to identify a first session established between the first CSE and the second CSE
  • the first application connection identifier is used to identify the first CSE.
  • the first application connection between the second CSE and the second AF is used to identify a second application connection between the second CSE and the second AF.
  • the first AF or the second AF may be a network device (such as a network device such as a mobile phone, a tablet computer, a server, etc.) having a setting application function.
  • the integrated device (or integrated module); of course, the first AF or the second AF may also be an independent network device with a set application function, which is not limited in this embodiment of the present invention.
  • the first CSE may be used to provide a corresponding communication service for the first AF.
  • the first CSE when the first CSE is an integrated device (or an integrated module) located in a network device, the first CSE may be located in the same network device as the first AF.
  • an integrated module of the same network device may exist in the network device, and may be located in the two network devices, respectively, as an integrated module of the two network devices, which is not limited in this embodiment of the present invention.
  • the second CSE may generally be an independent network device for providing a corresponding communication service for the second AF or an integrated device (or an integrated module) located in a certain network device.
  • the second CSE when the second CSE is an integrated device (or an integrated module) located in a network device, the second CSE may be located in the same network device as the second AF.
  • an integrated module of the same network device may exist in the network device, and may be located in the two network devices, and respectively, as an integrated module of the two network devices, which is not limited in this embodiment of the present invention.
  • the identifier information of the second AF may be information such as the physical identifier of the second AF or the network address of the second AF, which is not limited in this embodiment of the present invention.
  • the first CSE after receiving the first session establishment request that is sent by the first AF and carrying the identifier information of the second AF, the first CSE may be configured according to the first The identification information of the second AF carried in the session establishment request is determined as the second CSE serving the second AF, and the first application connection between the first CSE and the first AF is allocated. Applying a connection identifier, and associating a first session identifier assigned to the first session between the first CSE and the second CSE with the first application connection identifier, that is, by associating the first session identifier with The first application connection identifier is used to implement an association between the first session connection and the first application connection.
  • the association relationship between the first session identifier and the first application connection identifier may be implemented by establishing an association table, which is not limited in this embodiment of the present invention.
  • the first session identifier may be generally allocated by the first CSE, and may also be The second CSE allocation is not limited in this embodiment of the present invention. It should be noted that, if the first session identifier is allocated by the second CSE, the first session identifier and the first application connection identifier are The association may be performed after the first CSE receives the session establishment response that is returned by the second CSE and carries the first session identifier.
  • the second session establishment request may further carry information such as the identifier information of the first AF and the identifier information of the second AF, so that the second CSE, after receiving the second session establishment request, according to Determining, by the second session establishment request, the identifier information of the first AF and the identifier information of the second AF, determining the two parties that are to establish the session connection, and the first session carried in the second session establishment request
  • the identifier is associated with a second application connection identifier assigned for the second application connection between the second CSE and the second AF.
  • the first CSE sends a second session establishment request to the second CSE, so that the second CSE connects the first session identifier with the second application.
  • the first session setup response message returned by the second CSE may be received, and after receiving the first session setup response message, sending a second session setup response message to the first AF, The establishment of a session between the first AF and the second AF is completed.
  • the first session setup response message may be that the second CSE associates the second application connection identifier with the first session identifier according to the received second session establishment request, and And transmitting to the first CSE after establishing a second application connection with the second AF.
  • the An AF may perform data transmission with the second AF by using the first application connection, the first session, and the second application connection, where specific data used by the first AF and the second AF are used.
  • the transmission mode is the same as that in the prior art, and details are not described herein.
  • Step 102 If it is determined that the first underlying network needs to be switched to the second underlying network to establish a second session with the second CSE through the second underlying network, the second session will be Assigning a second session identifier to the first application connection identifier and to the second CSE Sending a third session establishment request carrying the second session identifier, so that the second CSE associates the second session identifier with the second application connection identifier.
  • the session identifier and the session are usually in a one-to-one relationship, after determining that the first underlying network needs to be switched to the second underlying network, Before the second session identifier of the second session is associated with the first application connection identifier, the association relationship between the first session identifier and the first application connection identifier may be released, so that A second session identifier assigned to the second session between the first CSE and the second CSE is associated with the first application connection identifier, that is, by associating the second session identifier with the first application connection identifier To achieve an association between the second session and the first application connection.
  • the method may further include:
  • the network handover notification indication may carry information such as the first session identifier, the identifier information of the first AF, and the identifier information of the second AF.
  • the associating the second session identifier with the first application connection identifier may include:
  • the first between the first CSE and the second CSE may be before, before or after the network handover notification indication is sent to the second CSE.
  • the second session is assigned to the second session connection identifier, which is not limited by the embodiment of the present invention. It should be noted that the second session identifier may also be allocated by the second CSE. Any restrictions.
  • determining the The step of releasing the association relationship between the first session identifier and the first application connection identifier may be directly performed, that is, the step of sending the second session to the second CSE is no longer needed.
  • Network switch notification indication may be directly performed, that is, the step of sending the second session to the second CSE is no longer needed.
  • the third session establishment request may further include the first session identifier and a network switching indication for instructing the second CSE to perform network handover.
  • the third session establishment request is sent to the second CSE, so that the second CSE associates the second session identifier with the second application connection identifier, which may include:
  • the third session setup response message returned by the second CSE may also be received to complete establishment of the second session between the first CSE and the second CSE.
  • the method may further include:
  • the data sending action continues;
  • the last received data from the second CSE is repeatedly sent to the first AF, or is locally determined by reducing a data sending rate.
  • Caching data from the second CSE (wherein the first CSE locally cached data from the second CSE is before switching the first underlying network to the second underlying network, when determining When the second AF is the data transmitting end, the buffered data from the second AF that has not been sent to the first AF is sent to the first AF; at this time, for the first AF
  • the data receiving action is still continued, so as to ensure reliable transmission of data under the premise that the upper layer application cannot perceive the switching of the underlying network.
  • a third session establishment request is sent to the second CSE, so that the second CSE associates the second session identifier with the second application connection identifier.
  • the method may further include:
  • Data transmission is performed by the second session and the second CSE.
  • the first AF may perform data transmission with the second AF by using the first application connection, the second session, and the second application connection, where
  • the specific data transmission mode is the same as that of the prior art, and is not described in detail in the embodiments of the present invention.
  • the method may further include:
  • the first AF is a data sending end, receiving identifier information of the last received data from the first CSE sent by the second CSE; or, if determining that the first AF is a data receiving end Sending, to the second CSE, the last received identification information of the data from the second CSE, to ensure continuity of the subsequent first AF and the second AF through the switched second underlying network for data transmission. And accuracy.
  • a first embodiment of the present invention provides a session processing method, where a session identifier between a first CSE and a second CSE is used to identify a new session between the first CSE and the second CSE.
  • a first application connection identifier for identifying a first application connection between the first CSE and the first AF
  • a second application for identifying a second application connection between the second CSE and the second AF
  • the connection identifier is associated to switch the underlying network while ensuring that the first application connection and the second application connection are not disconnected, thereby implementing continuity of the session between the upper application, thereby better solving the existing existing implementation.
  • the problem of the continuity of the session between the upper-layer applications when the underlying network is switched is not good, and the switching effect of the session between the upper-layer applications is improved.
  • the session processing method in the first embodiment of the present invention is further described by taking the action executor as the second CSE as an example.
  • FIG. 2 it is a schematic flowchart of a session processing method according to Embodiment 2 of the present invention.
  • the session processing method may include the following steps:
  • Step 201 The second CSE associates the first session identifier with the second application connection identifier according to the second session establishment request that is sent by the first CSE and carries the first session identifier.
  • the first session identifier is used to identify a first session established between the first CSE and the second CSE
  • the second application connection identifier is used to identify the second CSE.
  • the second session establishment request is that the first CSE sends the first session identifier and the first application in the first session establishment request that carries the identifier information of the second AF that is sent according to the first AF.
  • the first application connection identifier is used to identify the first application connection between the first CSE and the first AF.
  • the second session establishment request may further carry information such as the identifier information of the first AF and the identifier information of the second AF, so that the second CSE receives the location.
  • the second session establishment request After the second session establishment request is performed, determining, according to the information of the first AF and the identifier information of the second AF carried in the second session establishment request, the communication parties to establish the session connection, and the second The first session identifier carried in the session establishment request is associated with the second application connection identifier allocated for the second application connection between the second CSE and the second AF.
  • the second CSE may determine whether the first AF or the first CSE has corresponding access rights, Or determining whether the first session identifier and the other session identifiers that have been locally allocated by the second CSE do not conflict with each other, etc., to determine whether the first session is allowed to be established, and the result is determined.
  • a second application connection identifier is allocated for the second application connection between the second CSE and the second AF, and the second application connection identifier is associated with the first session identifier.
  • the fourth CSE may be configured to send a fourth session to the second AF.
  • the first CSE returns a first session setup response message, so that after receiving the first session setup response message, the first CSE sends a second session setup response message to the first AF to complete the The establishment of a session between an AF and the second AF.
  • the session between the first AF and the second AF is successfully established.
  • the first AF may perform data transmission with the second AF through the first application connection, the first session, and the second application connection, where the specific data transmission manner adopted is the same as the prior art, and the present invention The embodiment does not describe this.
  • Step 202 If the third session establishment request that is sent by the first CSE and carries the second session identifier is received, the second session identifier is connected to the second application according to the third session establishment request. The identity is associated.
  • the third session establishment request is that the first CSE associates the second session identifier with the first application connection identifier when determining that the first underlying network needs to be handed over to the second underlying network.
  • the second session identifier is used to identify a second session established by the first CSE between the second underlying network and the second CSE. .
  • the method before receiving the third session establishment request that is sent by the first CSE and carrying the second session identifier, the method may further include:
  • a network handover notification indication is that the first CSE determines that the first underlying network needs to be handed over to the second underlying network, and determining the When the first session remains in the connected state, it is sent to the second CSE through the first underlying network; and, And according to the network switching notification indication, keeping the second application connection unchanged, and returning a network switching notification response message to the first CSE, so that the first CSE cancels the response according to the network switching notification response message. Determining an association relationship between the first session identifier and the first application connection identifier, and associating the second session identifier with the first application connection identifier.
  • the third session establishment request may further include the first session identifier and a network handover indication used to indicate that the second CSE performs network handover.
  • the associating the second session identifier with the second application connection identifier according to the third session establishment request may include:
  • the method may further include: before the association of the second session identifier with the second application connection identifier, the method further includes:
  • the second AF is determined to be the data transmitting end, buffering the data sent by the second AF; or, if the second AF is determined to be the data receiving end, the last received first from the first CSE
  • the data is repeatedly sent to the second AF, or the locally cached data from the first CSE is sent to the second AF in a manner that reduces the data sending rate, so that the upper layer application cannot perceive the underlying network. Under the premise of switching, reliable transmission of data is guaranteed.
  • the second CSE may automatically perform the buffering operation of the data after sensing that the first underlying network has been interrupted or received the network switching notification indication sent by the first CSE.
  • the embodiment of the present invention does not limit the present invention to ensure reliable transmission of data.
  • the first CSE after the second CSE associates the second session identifier with the second application connection identifier according to the third session establishment request, The first CSE returns a third session establishment response message to complete the first CSE and the first The establishment of a second session between the two CSEs.
  • the second CSE associates the second session identifier with the second application connection identifier according to the third session establishment request, or returns a third session establishment response message to the first CSE.
  • data transmission may be performed by the second session and the second CSE.
  • the first AF may perform data transmission with the second AF by using the first application connection, the second session, and the second application connection, where The specific data transmission mode is the same as that in the prior art, and is not described in detail in the embodiments of the present invention.
  • the method may further include:
  • the second AF is a data sending end, receiving, by the first CSE, identifier information of the last received data from the second CSE sent by the second CSE; or, if determining the And the second AF is the data receiving end, and the identifier information of the last received data from the first CSE is sent to the first CSE, so as to ensure that the subsequent first AF and the second AF are performed by using the switched second underlying network. Continuity and accuracy in data transmission.
  • a second embodiment of the present invention provides a session processing method, where a session identifier between a first CSE and a second CSE is used to identify a new session between the first CSE and the second CSE.
  • a session identifier for identifying a first application connection between the first CSE and the first AF
  • the underlying network is switched, thereby achieving continuity of the session between the upper application, thereby better solving the existing existence of the underlying network switching.
  • the problem of poor continuity of session between upper-layer applications improves the switching effect of sessions between upper-layer applications.
  • a third embodiment of the present invention provides a session processing method, where the session processing method is A detailed description of the session processing method in the first embodiment or the second embodiment will be described.
  • FIG. 3 it is a schematic flowchart of a session processing method according to Embodiment 3 of the present invention.
  • the session processing method may include the following steps:
  • Step 301 The first AF sends a first session establishment request to the first CSE, requesting the first CSE to establish a session to the second AF, where the first session establishment request may carry the identifier information of the second AF;
  • Step 302 The first CSE selects a second CSE according to the identification information of the second AF, and allocates a first application connection identifier (App Connection ID 1) for identifying a first application connection between the first AF and the first CSE, And selecting, according to the local network policy, the first underlying network, and assigning a first session identifier (M2M Session ID 1 ) for identifying the first session between the first CSE and the second CSE, and The first session identifier is associated with the first application connection identifier.
  • Step 304 The second CSE determines whether the session is allowed to be established, and if yes, assigns a second application connection identifier (App Connection ID 2) to the second application connection between the second CSE and the second AF, and The second application connection identifier is associated with the first session identifier; if not, the session is refused to be established;
  • App Connection ID 2 a second application connection identifier
  • Step 305 The second CSE establishes a second application connection with the second AF.
  • Step 306 The second CSE returns a first session establishment response message to the first CSE, and after the first CSE sends the second session establishment response message to the first AF, completes the establishment of the first session. A first application connection between the CSE and the first AF is also established;
  • Step 307 The first AF and the second AF perform data transmission by using the first application connection, the first session, and the second application connection.
  • Step 308 The first CSE determines, according to a user request or a local policy, that the underlying network needs to be switched from the first underlying network to the second underlying network.
  • Step 309 If it is determined that the first session remains in the connected state, the first CSE passes the first bottom layer.
  • the network sends a network handover notification indication to the second CSE to notify the second CSE that the network handover is to be performed, where the network handover notification indication may carry information such as the first session identifier;
  • the first CSE may also suspend data transmission or reception of the first AF, and cache corresponding data.
  • the data sent by the first AF is buffered in the form of a queue, and at this time, for the first AF, the data sending action continues; or If the first AF is determined to be the data receiving end, the last received data from the second CSE is repeatedly sent to the first AF, or the local cache is obtained by reducing the data sending rate. The data of the second CSE is sent to the first AF. At this time, for the first AF, the data receiving action is still continued, so that the upper layer application cannot perceive the switching of the underlying network. Guarantee the reliable transmission of data.
  • Step 310 After receiving the network handover notification indication, the second CSE keeps the second application connection unchanged, and returns a response message indicating the network handover notification to the first CSE.
  • the second CSE may also suspend data transmission or reception of the second AF, and cache corresponding data.
  • the data sent by the second AF is buffered in a form of a queue; or, if the second AF is determined to be a data receiving end, the last received
  • the data from the first CSE is repeatedly sent to the second AF, or the locally buffered data from the first CSE is sent to the second AF in a manner of reducing the data transmission rate, thereby Under the premise that the upper layer application cannot perceive the switching of the underlying network, the reliable transmission of data is guaranteed.
  • the step 309 ( a ) and the step 310 ( a ) are optional steps, and are mainly applied to a scenario in which a reliable connection is required between applications, and packet loss is not allowed. If the application is based on real-time communication and can accept packet loss, the above steps 309 (a) and 310 (a) may not be performed.
  • the first CSE may not be performed without sending the network switching notification indication to the second CSE; correspondingly, the second CSE may perform the bottom layer connection by using the second application connection that is kept for a short time by default. Recovery of network connections.
  • Step 311 The first CSE releases the association relationship between the first session identifier and the first application connection identifier, and connects the second session connection that is allocated for the second session connection between the first CSE and the second CSE.
  • An identifier (M2M Session ID 2 ) is associated with the first application connection identifier;
  • the first CSE may be the first CSE and the second CSE at the same time, before or after the network handover notification indication is sent to the second CSE.
  • the second session connection is assigned to the second session connection identifier, which is not limited in this embodiment of the present invention.
  • Step 312 The first CSE sends a third session establishment request to the second CSE, where the first CSE carries a first session identifier, a second session identifier, and a network handover indication used to indicate that the second CSE performs network handover.
  • Information used to indicate that the second CSE performs network handover.
  • Step 313 After receiving the third session establishment request, the second CSE cancels the association relationship between the first session identifier and the second application connection identifier according to the first session identifier, and the second session is The identifier is associated with the second application connection identifier;
  • Step 314 The second CSE returns a third session establishment response message to the first CSE, and completes establishment of the second session.
  • step 315 ( a ) and the step 315 ( b ) are also optional steps, and are mainly applied to A scenario in which a reliable connection is required between applications and a packet loss is not allowed. For scenarios where real-time communication between applications is dominant and packet loss can be accepted, step 315 (a) and step 315 (b) need not be performed.
  • Step 316 The first AF and the second AF are connected by the first application, the second session, and the second The application connection recovers the transmission of data.
  • a third embodiment of the present invention provides a session processing method, where a session identifier between a first CSE and a second CSE is used to identify a new session between the first CSE and the second CSE.
  • a session identifier between a first CSE and a second CSE is used to identify a new session between the first CSE and the second CSE.
  • Correlating with a first application connection identifier for identifying a first application connection between the first CSE and the first AF and a second application connection identifier for identifying a second application connection between the second CSE and the second AF To ensure that the first application connection and the second application connection are not disconnected, the underlying network is switched, thereby achieving continuity of the session between the upper application, thereby better solving the existing existence of the underlying network switching.
  • the problem of poor continuity of session between upper-layer applications improves the switching effect of sessions between upper-layer applications.
  • the CSE when performing the switching of the underlying network, can temporarily suspend and buffer the data of the transmitting and receiving parties, and change the rate of sending data to the application or repeat the last received data to make the application not aware of the switching of the underlying network, and After the underlying network handover is completed, the CSE can ensure the continuity of data transmission by sending the identifier of the last received data. Therefore, the session switching effect can be further improved, and the application experience of the user is improved.
  • Embodiment 4
  • FIG. 4 it is a schematic structural diagram of a CSE according to Embodiment 4 of the present invention, where the CSE is generally an independent network device (such as a mobile phone, a tablet computer, a server, etc.) for providing corresponding communication services for setting AF.
  • the network device or the integrated device (or integrated module) located in a network device is not limited in this embodiment of the present invention.
  • the CSE may include a first identity association module 11 and a second identity association module 12, where:
  • the first identifier association module 11 may be configured to associate the first session identifier with the first application connection identifier according to the first session establishment request that carries the identifier information of the second AF that is sent by the first AF, and send the first session identifier to the peer CSE.
  • the peer CSE And sending, by the peer CSE, the first session identifier to be associated with the second application connection identifier, where the first session identifier is used to identify
  • the CSE is built between the first underlying network and the peer CSE a first application connection identifier, where the first application connection identifier is used to identify a first application connection between the CSE and the first AF, and the second application connection identifier is used to identify the peer CSE and the Determining a second application connection between the second AFs;
  • the second identifier association module 12 is configured to: if it is determined that the first underlying network needs to be switched to the second underlying network, to establish a second session with the peer CSE by using the second underlying network, Correlating the second session identifier that is allocated to the second session with the first application connection identifier, and sending a third session establishment request that carries the second session identifier to the peer CSE, so that The peer CSE associates the second session identifier with the second application connection identifier.
  • the first identifier association module 11 may be configured to: after receiving the first session establishment request that is sent by the first AF and carrying the identifier information of the second AF, Determining, by the identifier information of the second AF that is carried in the first session establishment request, the peer CSE that serves the second AF, and allocates the first application connection between the CSE and the first AF a first application connection identifier, and a first session identifier that is to be allocated for the first session between the CSE and the peer CSE is associated with the first application connection identifier, that is, by associating the first session identifier with The first application connection identifier is used to implement an association between the first session connection and the first application connection.
  • the association between the first session identifier and the first application connection identifier may be implemented by establishing an association table, which is not limited in this embodiment of the present invention. It should be noted that the first session identifier may be allocated by the CSE, and may also be allocated by the peer CSE, which is not limited in this embodiment of the present invention.
  • the second session establishment request may further carry information such as the identifier information of the first AF and the identifier information of the second AF, so that the peer CSE receives the second session establishment request, according to the Determining, by the second session establishment request, the identifier information of the first AF and the identifier information of the second AF, determining the two parties that are to establish the session connection, and the first session carried in the second session establishment request
  • the identifier is associated with a second application connection identifier assigned for the second application connection between the peer CSE and the second AF.
  • the first identifier association module 11 is further applicable to After the second session establishment request is sent to the peer CSE, after the peer CSE associates the first session identifier with the second application connection identifier, receiving the first session establishment returned by the peer CSE And responding to the message, and after receiving the first session setup response message, sending a second session setup response message to the first AF to complete establishment of a session between the first AF and the second AF.
  • the first session setup response message may be that the peer CSE associates the second application connection identifier with the first session identifier according to the received second session establishment request, and Transmitted after establishing a second application connection with the second AF.
  • the first AF may perform data transmission with the second AF by using the first application connection, the first session, and the second application connection, where the first AF and the second AF are
  • the specific data transmission method used is the same as that in the prior art, and is not described in detail in the embodiments of the present invention.
  • the CSE may further include an information transceiver module 13, wherein:
  • the information transceiver module 13 is configured to: after determining that the first underlying network needs to be switched to the second underlying network, and before associating the second session identifier with the first application connection identifier, The first session is still in the connected state, and the network switch notification indication is sent to the peer CSE through the first underlying network, and the peer CSE is notified that the network switch is about to be performed, and the network switch returned by the peer CSE is received. And a notification response message, where the network handover notification indication may carry information such as the first session identifier, the identifier information of the first AF, and the identifier information of the second AF.
  • the second identifier association module 12 is specifically configured to cancel the association relationship between the first session identifier and the first application connection identifier according to the network handover notification response message returned by the peer CSE, and Associating the second session identifier with the first application connection identifier.
  • the third session establishment request may further include the first session identifier and a network handover indication used to indicate that the peer CSE performs network handover.
  • the second identifier association module 12 is specifically configured to send the identifier to the peer CSE. a third session establishment request, so that the peer CSE cancels the association relationship between the first session identifier and the second application connection identifier according to the network handover indication carried in the third session establishment request And associating the second session identifier with the second application connection identifier.
  • the second identifier association module 12 is further configured to send the third session establishment request to the peer CSE, so that the peer CSE identifies the second session identifier with the second application. After the connection identifier is associated, the third session setup response message returned by the peer CSE is received to complete establishment of the second session between the CSE and the peer CSE.
  • the CSE may further include a data processing module 14, wherein:
  • the data processing module 14 is configured to: after determining that the first underlying network needs to be switched to the second underlying network, and causing the peer CSE to associate the second session identifier with the second application connection identifier If the first AF is determined to be the data transmitting end, the data sent by the first AF is buffered. At this time, for the first AF, the data sending action is still continued; or, if it is determined The first AF is the data receiving end, and the last received data from the peer CSE is repeatedly sent to the first AF, or the locally cached from the peer CSE is buffered in a manner that reduces the data sending rate. The data is sent to the first AF; at this time, for the first AF, the data receiving action is still continued, so as to ensure reliable transmission of data under the premise that the upper layer application cannot perceive the switching of the underlying network. .
  • the data processing module 14 is further configured to send a third session establishment request to the peer CSE, so that the peer CSE identifies the second session identifier with After the second application connection identifier is associated, if it is determined that the first AF is a data sending end, receiving the last received identifier information of the data from the CSE sent by the peer CSE; or, if determining The first AF is a data receiving end, and the last received information of the data from the peer CSE is sent to the peer CSE to ensure that the subsequent first AF and the second AF pass the second after the switching. Continuity and accuracy of the underlying network for data transmission.
  • the fourth embodiment of the present invention provides a session processing device CSE, where the CSE performs a new session between the CSE and the peer CSE when the underlying network is switched between the CSE and the peer CSE.
  • An application connection identifier and a second application connection identifier for identifying a second application connection between the peer CSE and the second AF are configured to switch when the first application connection and the second application connection are not disconnected
  • the underlying network achieves the continuity of the session between the upper-layer applications, thereby better solving the problem that the existing method for implementing the continuity of the upper-layer application between the upper-layer applications is not good, and improving the upper-layer application. Switching effect between sessions.
  • Embodiment 5
  • FIG. 5 it is a schematic structural diagram of a CSE according to Embodiment 5 of the present invention, where the CSE is generally an independent network device (such as a mobile phone, a tablet computer, a server, etc.) for providing corresponding communication services for setting AF.
  • the network device or the integrated device (or integrated module) located in a network device is not limited in this embodiment of the present invention.
  • the CSE may include a first identity association module 21 and a second identity association module 22, where:
  • the first identifier association module 21 may be configured to associate the first session identifier with the second application connection identifier according to the second session establishment request that is sent by the peer CSE and that carries the first session identifier.
  • a session identifier is used to identify a first session established between the peer CSE and the CSE
  • the second application connection identifier is used to identify a second between the CSE and the second AF.
  • An application connection, and the second session establishment request is a first session establishment request that is sent by the peer CSE according to the first AF and carries the identifier information of the second AF, where the first session identifier is The first application connection identifier is sent after being associated, and the first application connection identifier is used to identify a first application connection between the peer CSE and the first AF.
  • the second identifier association module 22 is configured to: if receiving the third session establishment request that is sent by the peer CSE and carrying the second session identifier, according to the third session establishment request, the second session identifier Associated with the second application connection identifier, where the third session establishment request is that the peer CSE, when determining that the first underlying network needs to be handed over to the second underlying network, the second session The identifier is sent after being associated with the first application connection identifier, where the second session identifier is used to identify that the peer CSE is established between the second underlying network and the CSE. Second session.
  • the second session establishment request may further carry information such as the identifier information of the first AF and the identifier information of the second AF, so that the first identifier association module 21 is After receiving the second session establishment request, determining, according to the information about the first AF that is carried in the second session establishment request, and the identifier information of the second AF, determine the two parties that are to establish the session connection, and The first session identifier carried in the second session establishment request is associated with the second application connection identifier allocated for the second application connection between the CSE and the second AF.
  • the first identifier association module 21 may be configured to determine whether the first AF or the peer CSE has corresponding after receiving the second session establishment request.
  • the access authority or determining whether the first session identifier does not conflict with other session identifiers that have been allocated locally by the CSE, etc., to determine whether the first session is allowed to be established, and when the determination result is yes,
  • the second application connection between the CSE and the second AF allocates a second application connection identifier, and associates the second application connection identifier with the first session identifier.
  • the first identifier association module 21 may be further configured to: after the second application connection identifier is associated with the first session identifier, by using the second AF Sending a fourth session establishment request, and receiving a fourth session establishment response returned by the second AF, establishing a second application connection with the second AF, and being further applicable to the second application
  • the first session establishment response message is returned to the peer CSE, so that the peer CSE sends the second session establishment to the first AF after receiving the first session establishment response message. And in response to the message, completing establishment of a session between the first AF and the second AF.
  • the peer CSE sends the second session setup response message to the first AF
  • the session between the first AF and the second AF is successfully established.
  • the first AF may perform data transmission with the second AF through the first application connection, the first session, and the second application connection, where the specific data transmission manner adopted is the same as the prior art, and the present invention The embodiment does not describe this.
  • the CSE may further include an information transceiver module 23, where:
  • the information transceiver module 23 may be configured to receive a network handover notification indication sent by the peer CSE, and switch according to the network, before receiving the third session establishment request that is sent by the peer CSE and carrying the second session identifier. Notifying that the second application connection is unchanged, and returning a network handover notification response message to the peer CSE, so that the peer CSE cancels the first session according to the network handover notification response message Identifying an association relationship with the first application connection identifier, and associating the second session identifier with the first application connection identifier;
  • the network switching notification indication is that the peer CSE determines that the first underlying network needs to be switched to the second underlying network, and determines that the first session remains connected. An underlying network sends to the CSE.
  • the third session establishment request may further include the first session identifier and a network handover indication used to indicate that the CSE performs network handover.
  • the second identifier association module 22 is specifically configured to cancel the association relationship between the first session identifier and the second application connection identifier according to the network switching indication carried in the third session establishment request, and Associating the second session identifier with the second application connection identifier.
  • the second identifier association module 22 is further configured to associate the second session identifier with the second application connection identifier according to the third session establishment request. Afterwards, a third session setup response message is returned to the peer CSE to complete establishment of the second session between the peer CSE and the CSE.
  • the CSE may further include a data processing module 24, where:
  • the data processing module 24 is configured to: after receiving the third session establishment request that is sent by the peer CSE and carrying the second session identifier, and according to the third session establishment request, the second session identifier is Before the second application connection identifier is associated, if the second AF is determined to be the data sending end, the data sent by the second AF is buffered; or, if the second AF is determined to be the data receiving end, The data received from the peer CSE is repeatedly sent to the second AF, or the locally buffered data from the peer CSE is sent to the second AF in a manner that reduces the data transmission rate. In this way, under the premise that the upper layer application cannot perceive the switching of the underlying network, the reliable transmission of data is ensured.
  • the data processing module 24 is further configured to: after determining, according to the third session establishment request, the second session identifier and the second application connection identifier, determining that the second AF is data Receiving, by the sending end, the identifier information of the last received data from the CSE sent by the peer CSE; or, if it is determined that the second AF is the data receiving end, sending the last receiving to the peer CSE
  • the identification information of the data from the peer CSE is obtained to ensure the continuity and accuracy of the subsequent first AF and the second AF when data is transmitted through the switched second underlying network.
  • the fifth embodiment of the present invention provides a session processing device CSE, when the CSE and the peer CSE perform the switching of the underlying network, by using a session for identifying a new session between the peer CSE and the CSE. And performing a first application connection identifier for identifying a first application connection between the peer CSE and the first AF, and a second application connection identifier for identifying a second application connection between the CSE and the second AF Correlation, in order to ensure that the first application connection and the second application connection are not disconnected, the underlying network is switched, thereby implementing the continuity of the session between the upper application, thereby better solving the existing existing network switching
  • the problem of poor continuity of session continuity between upper-layer applications improves the switching effect of sessions between upper-layer applications.
  • the sixth embodiment of the present invention provides a CSE that can be used to implement the method shown in the first embodiment of the present invention.
  • FIG. 6 it is a schematic structural diagram of the CSE according to the sixth embodiment of the present invention. Referring to the portion related to the sixth embodiment of the present invention, and the specific technical details are not disclosed, please refer to the embodiments of the present invention shown in FIG. 1 or FIG.
  • the CSE is generally applicable to an independent network device (such as a network device such as a mobile phone, a tablet, or a server) that provides a corresponding communication service for setting an AF, or an integrated device (or an integrated module) located in a network device,
  • an independent network device such as a network device such as a mobile phone, a tablet, or a server
  • the embodiment of the invention does not limit this.
  • the sixth embodiment of the present invention is described by taking the CSE as a server as an example, and FIG. 6 is a block diagram showing a partial structure of the server 30 related to the sixth embodiment of the present invention.
  • the server 30 may include: a processor 31 and the like.
  • a processor 31 may include: a processor 31 and the like.
  • the structure of the server 30 illustrated in FIG. 6 does not constitute a limitation to the server, may include more or less components than those illustrated, or may be combined with certain components, or different component arrangements, and implemented by the present invention. This example does not limit this.
  • the processor 31 is configured to use the first session establishment request that carries the identifier information of the second AF that is sent by the first AF, and the first session is used.
  • the identifier is associated with the first application connection identifier, and sends a second session establishment request that carries the first session identifier to the peer CSE, so that the peer CSE connects the first session identifier with the second application.
  • the identity is associated; and,
  • the second session identifier is associated with the first application connection identifier, and sends a third session establishment request carrying the second session identifier to the peer CSE, so that the peer CSE will use the second session.
  • the identifier is associated with the second application connection identifier;
  • the first session identifier is used to identify a first session established between the CSE and the peer CSE
  • the first application connection identifier is used to identify the CSE and the first a first application connection between the AFs
  • the second application connection identifier is used to identify a second application connection between the peer CSE and the second AF.
  • the processor 31 may be configured to: after receiving the first session establishment request that is sent by the first AF and carrying the identifier information of the second AF, according to the The identification information of the second AF carried in the first session establishment request is determined to be the peer CSE serving the second AF, and the first application is allocated to the first application connection between the CSE and the first AF.
  • a connection identifier, and a first session identifier that is to be allocated for the first session between the CSE and the peer CSE is associated with the first application connection identifier, that is, by associating the first session identifier with the first application
  • the way the connection is identified is to implement an association between the first session connection and the first application connection.
  • the association relationship between the first session identifier and the first application connection identifier may be implemented by establishing an association table, which is not limited in this embodiment of the present invention. Need more It is noted that the first session identifier may be allocated by the CSE, and may also be allocated by the peer CSE, which is not limited in this embodiment of the present invention.
  • the second session establishment request may further carry information such as the identifier information of the first AF and the identifier information of the second AF, so that the peer CSE receives the second session establishment request, according to the Determining, by the second session establishment request, the identifier information of the first AF and the identifier information of the second AF, determining the two parties that are to establish the session connection, and the first session carried in the second session establishment request
  • the identifier is associated with a second application connection identifier assigned for the second application connection between the peer CSE and the second AF.
  • the processor 31 is further configured to send a second session establishment request to the peer CSE, so that the peer CSE identifies the first session identifier After the application connection identifier is associated, the first session setup response message returned by the peer CSE is received, and after receiving the first session setup response message, sending a second session setup response message to the first AF. And completing the establishment of a session between the first AF and the second AF.
  • the first session setup response message may be that the peer CSE associates the second application connection identifier with the first session identifier according to the received second session establishment request, and Transmitted after establishing a second application connection with the second AF.
  • the An AF may perform data transmission with the second AF by using the first application connection, the first session, and the second application connection, where specific data used by the first AF and the second AF are used.
  • the transmission mode is the same as that in the prior art, and details are not described herein.
  • the server 30 may further include a transceiver 32, wherein:
  • the transceiver 32 may be configured to determine, after determining that the first underlying network needs to be switched to the second underlying network, and associating the second session identifier with the first application connection identifier If the session is still in the connected state, the network switching notification indication is sent to the peer CSE through the first underlying network, and the peer CSE is notified that the network switching is about to be performed, and the network switching notification returned by the peer CSE is received. Response message.
  • the processor 31 is specifically configured to: according to the network handover notification response message returned by the peer CSE, cancel the association relationship between the first session identifier and the first application connection identifier, and The second session identifier is associated with the first application connection identifier.
  • the third session establishment request may further include the first session identifier and a network handover indication used to indicate that the peer CSE performs network handover.
  • the processor 31 is specifically configured to send the third session establishment request to the peer CSE, so that the peer CSE cancels the network switching indication carried in the third session establishment request.
  • the processor 31 is further configured to send the third session establishment request to the peer CSE, so that the peer CSE performs the second session identifier and the second application connection identifier. After the association, the third session setup response message returned by the peer CSE is received to complete the establishment of the second session between the CSE and the peer CSE.
  • the processor 31 may be further configured to switch to the first underlying network to determine After the second layer network is configured, and the peer CSE is configured to associate the second session identifier with the second application connection identifier, if the first AF is determined to be a data sending end, the first AF is cached.
  • the method sends the locally cached data from the peer CSE to the first AF, so as to ensure reliable transmission of data on the premise that the upper layer application cannot perceive the switching of the underlying network.
  • the processor 31 is further configured to send a third session establishment request to the peer CSE, so that the peer CSE associates the second session identifier with the second application connection identifier. And determining, if the first AF is a data sending end, receiving identifier information of the last received data from the CSE sent by the peer CSE; or, if determining that the first AF is a data receiving end, Sending the last received number from the peer CSE to the peer CSE The identification information is used to ensure continuity and accuracy of data transmission between the subsequent first AF and the second AF through the switched second underlying network.
  • the server 30 may further include a memory 33 for storing programs, codes, and the like required when the processor 31 or the transceiver 32 is running, which is in the embodiment of the present invention. This is not subject to any restrictions.
  • the sixth embodiment of the present invention provides a session processing device CSE, where the CSE performs a new session between the CSE and the peer CSE when the underlying network is switched between the CSE and the peer CSE.
  • a first application connection identifier for identifying a first application connection between the CSE and the first AF
  • a second application connection identifier for identifying a second application connection between the peer CSE and the second AF
  • the association is performed to ensure that the first application connection and the second application connection are not disconnected, and the underlying network is switched, thereby implementing continuity of the session between the upper application, thereby better solving the existing existing network for implementing the underlying network.
  • the problem that the continuity of the session between the upper-layer applications is not good when switching, improves the switching effect of the session between the upper-layer applications.
  • the seventh embodiment of the present invention provides a CSE that can be used to implement the method shown in the second embodiment of the present invention.
  • FIG. 7 it is a schematic structural diagram of the CSE according to the seventh embodiment of the present invention.
  • the specific technical details are not disclosed. Please refer to the embodiments of the present invention shown in FIG. 2 or FIG.
  • the CSE is generally applicable to an independent network device (such as a network device such as a mobile phone, a tablet, or a server) that provides a corresponding communication service for setting an AF, or an integrated device (or an integrated module) located in a network device,
  • an independent network device such as a network device such as a mobile phone, a tablet, or a server
  • the embodiment of the invention does not limit this.
  • the seventh embodiment of the present invention is described by taking the CSE as a server as an example, and FIG. 7 is a block diagram showing a partial structure of the server 40 related to the seventh embodiment of the present invention.
  • the server 40 may include: a processor 41 and the like. It will be understood by those skilled in the art that the structure of the server 40 shown in FIG. 7 does not constitute a limitation to the server, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. The embodiment of the present invention does not limit this.
  • the processor 41 is configured to: according to the second session establishment request that is sent by the peer CSE and carries the first session identifier, the first session is The identifier is associated with the second application connection identifier, where the first session identifier is used to identify the first session established between the peer CSE and the CSE by the peer CSE, and the second application connection identifier And the second session connection request is used to identify the second application connection between the CSE and the second AF, and the second session establishment request is identifier information that is sent by the peer CSE according to the first AF and carries the second AF.
  • the first session establishment request is sent, and the first session connection identifier is sent to be associated with the first application connection identifier, where the first application connection identifier is used to identify between the peer CSE and the first AF.
  • the second session identifier is associated with the second application connection identifier according to the third session establishment request.
  • the third session establishment request is that the peer CSE performs the second session identifier and the first application connection identifier when determining that the first underlying network needs to be switched to the second underlying network.
  • the second session identifier is used to identify the second session established between the peer CSE and the CSE by the peer CSE.
  • the second session establishment request may further carry information such as the identifier information of the first AF and the identifier information of the second AF, so that the processor 41 receives the After the second session establishment request is performed, determining, according to the identifier information of the first AF and the identifier information of the second AF carried in the second session establishment request, the communication parties to establish the session connection, and the second The first session identifier carried in the session establishment request is associated with the second application connection identifier allocated for the second application connection between the CSE and the second AF.
  • the processor 41 is configured to determine whether the first AF or the peer CSE has corresponding access rights after receiving the second session establishment request. Or determining whether the first session identifier does not conflict with other session identifiers that have been allocated locally by the CSE, etc., to determine whether the first session is allowed to be established, and when the determination result is yes, the CSE is The second application connection between the second AFs allocates a second application connection Identifying, and associating the second application connection identifier with the first session identifier.
  • the processor 41 is further configured to send a fourth to the second AF after associating the second application connection identifier with the first session identifier. a session establishment request, and receiving a fourth session establishment response returned by the second AF, establishing a second application connection with the second AF, and being further configured to successfully establish a connection in the second application.
  • a first session setup response message to enable the peer CSE to send a second session setup response message to the first AF after receiving the first session setup response message, The establishment of a session between the first AF and the second AF is completed.
  • the peer CSE sends the second session setup response message to the first AF
  • the session between the first AF and the second AF is successfully established.
  • the first AF may perform data transmission with the second AF through the first application connection, the first session, and the second application connection, where the specific data transmission manner used is the same as the prior art, The embodiments of the invention do not describe this.
  • the CSE may further include a transceiver 42, wherein:
  • the transceiver 42 is configured to receive a network handover notification indication sent by the peer CSE, and receive the network handover notification according to the network, before receiving the third session establishment request that is sent by the peer CSE and carrying the second session identifier. Instructing to keep the second application connection unchanged, and returning a network handover notification response message to the peer CSE, so that the peer CSE cancels the first session identifier according to the network handover notification response message Correlating the relationship with the first application connection identifier, and associating the second session identifier with the first application connection identifier;
  • the network switching notification indication is that the peer CSE determines that the first underlying network needs to be switched to the second underlying network, and determines that the first session remains connected. An underlying network sends to the CSE.
  • the third session establishment request received by the processor 41 may further include the first session identifier and a network handover indication for instructing the CSE to perform network handover; correspondingly, the processing
  • the device 41 is specifically configured to cancel, according to the network switching indication carried in the third session establishment request, between the first session identifier and the second application connection identifier. Correlating the relationship, and associating the second session identifier with the second application connection identifier.
  • the processor 41 is further configured to: after associating the second session identifier with the second application connection identifier according to the third session establishment request, The peer CSE returns a third session setup response message to complete establishment of the second session between the peer CSE and the CSE.
  • the processor 41 may be further configured to receive the carried by the peer CSE.
  • the processor 41 After the third session establishment request of the second session identifier, and according to the third session establishment request, before the second session identifier is associated with the second application connection identifier, if the second AF is determined to be data transmission End, the data sent by the second AF is buffered; or, if the second AF is determined to be the data receiving end, the last received data from the peer CSE is repeatedly sent to the second AF, Alternatively, the locally cached data from the peer CSE is sent to the second AF in a manner that reduces the data sending rate, so as to ensure reliable data on the premise that the upper layer application cannot perceive the switching of the underlying network. transmission.
  • the processor 41 is further configured to: after determining, according to the third session establishment request, the second session identifier and the second application connection identifier, if the second AF is determined to be data transmission End, receiving the last received identification information of the data from the CSE sent by the peer CSE; or, if it is determined that the second AF is the data receiving end, sending the last received to the peer CSE
  • the identification information of the data from the peer CSE is used to ensure the continuity and accuracy of the subsequent first AF and the second AF when data is transmitted through the switched second underlying network.
  • the server 40 may further include a memory 43 for storing the program or code required for the processor 41 or the transceiver 42 to operate, which is in the embodiment of the present invention. This is not subject to any restrictions.
  • the seventh embodiment of the present invention provides a session processing device CSE, where a session between the CSE and the peer CSE is used to identify a new session between the peer CSE and the CSE. And identifying a first application connection identifier for identifying a first application connection between the peer CSE and the first AF, and a second identifier for identifying a second application connection between the CSE and the second AF
  • the connection identifier is used for association, so as to ensure that the first application connection and the second application connection are not disconnected, the underlying network is switched, thereby implementing continuity of the session between the upper application, thereby better solving the existing existing
  • the problem of the poor continuity of the session between the upper-layer applications when the underlying network is switched is improved, and the switching effect between the upper-layer applications is improved.
  • embodiments of the present invention can be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device
  • the instructions provide steps for implementing the functions specified in a block or blocks of a flow or a flow and/or a block diagram of a flowchart.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种会话处理方法及设备,第一通用服务实体CSE与第二CSE之间进行底层网络的切换时,通过将用于标识第一CSE与第二CSE之间的新的会话的会话标识与用于标识第一CSE与第一应用功能实体AF之间的第一应用连接的第一应用连接标识、以及用于标识第二CSE与第二AF之间的第二应用连接的第二应用连接标识进行关联,以在保证第一应用连接以及第二应用连接不断开情况下,实现上层应用之间会话的连续性,从而较好地解决了目前存在的用于实现底层网络切换时上层应用之间会话连续性的方式并不佳的问题,提高了上层应用之间会话的切换效果。

Description

一种会话处理方法及设备 技术领域
本发明涉及通信技术领域, 尤其涉及一种会话处理方法及设备。 背景技术
目前, 随着通信技术的不断发展, 移动终端可以使用有线网络、 蜂窝网 络以及 WiFi网络等多种通信网络进行通信, 但是, 由于网络覆盖、 网络资费 或者网络使用限制等因素的制约, 移动终端常会在不同的网络之间进行切换。
具体地, 当移动终端在不同网络之间进行切换时, 其 IP ( Internet Protocol, 网络协议) 地址通常都会发生改变, 从而会导致通信链路的断开和重建, 使 得大部分应用之间的会话发生中断, 需要手动才能使其恢复, 无法实现无缝 切换。针对上述问题, 目前业界常采用对传输层或 IP层进行相应修改的方式来 解决底层网络切换所导致的无法实现上层应用之间会话的无缝切换, 即无法 实现上层应用之间会话的连续性的问题。
例如, 以 TCP ( Transmission Control Protocol ) /IP十办议为例, 当通信两端 的应用建立会话连接后, 可以绑定一个唯一的包含源地址、 源端口、 目的地 址以及目的端口等信息的 socket (套接字) 。 相应地, 通过对传输层进行相应 修改来解决上述问题的方式可以是指, 通过修改 socket中的地址并保持应用和 socket的关联性来保持应用之间会话的连续性, 或者通过增加新的 TCP状态、 定义新的 TCP options、 改变 TCP header等来保持应用之间会话的连续性; 通过 对 IP层进行相应修改来解决上述问题的方式可以是指使用一个虚拟的、固定的 网络地址进行通信或者使用移动 IP技术。
但是, 在采用对传输层进行相应修改来实现应用之间会话的连续性时, 由于需要改变 socket 四元组、 或增加新的 TCP状态、 或定义新的 TCP options, 或改变 TCP header等, 因此会修改现有的 TCP/IP协议; 而在采用移动 IP技术等 来实现应用之间会话的连续性时, 由于通常需要涉及到家乡代理以及外部代 理等网元, 从而使得技术的实现比较复杂, 并且, 由于三角路由的问题, 还 会导致传输时延的加大, 使得数据包在网络中运行的时间大大增加, 极大地 增加了网络的负担。
也就是说, 目前存在的用以实现底层网络切换时上层应用之间会话的连 续性的方式并不佳, 因此, 亟需提供一种新的会话处理方式以解决上述问题。 发明内容
本发明实施例提供了一种会话处理方法及设备, 以解决目前存在的用于 实现上层应用之间会话连续性的方式并不佳的问题。
第一方面, 提供了一种会话处理方法, 包括:
第一 CSE ( Common Service Entity , 通用服务实体) 根据第一 AF ( Application Function , 应用功能实体)发送的携带有第二 AF的标识信息的 第一会话建立请求, 将第一会话标识与第一应用连接标识进行关联, 并向第 二 CSE发送携带有所述第一会话标识的第二会话建立请求, 以使所述第二 CSE 将所述第一会话标识与第二应用连接标识进行关联, 其中, 所述第一会 话标识用于标识所述第一 CSE通过第一底层网络与所述第二 CSE之间建立的 第一会话, 所述第一应用连接标识用于标识所述第一 CSE与所述第一 AF之 间的第一应用连接, 所述第二应用连接标识用于标识所述第二 CSE与所述第 二 AF之间的第二应用连接; 以及,
若确定需将所述第一底层网络切换至第二底层网络, 以通过所述第二底 层网络建立与所述第二 CSE之间的第二会话, 则将为所述第二会话分配的第 二会话标识与所述第一应用连接标识进行关联, 并向所述第二 CSE发送携带 有所述第二会话标识的第三会话建立请求, 以使所述第二 CSE将所述第二会 话标识与所述第二应用连接标识进行关联。
结合第一方面, 在第一方面的第一种可能的实现方式中, 在确定需将所 述第一底层网络切换至第二底层网络之后, 且将所述第二会话标识与所述第 一应用连接标识进行关联之前, 所述方法还包括: 若确定所述第一会话仍保持连接状态, 则通过所述第一底层网络向所述 第二 CSE发送网络切换通知指示, 通知所述第二 CSE即将进行网絡切换, 并 接收所述第二 CSE返回的网络切换通知响应消息;
将所述第二会话标识与所述第一应用连接标识进行关联, 包括: 根据所述第二 CSE返回的网络切换通知响应消息, 解除所述第一会话标 识与所述第一应用连接标识之间的关联关系, 并将所述第二会话标识与所述 第一应用连接标识进行关联。
结合第一方面或第一方面的第一种可能的实现方式, 在第一方面的第二 种可能的实现方式中, 在确定需将所述第一底层网络切换至第二底层网络之 后, 且使所述第二 CSE将所述第二会话标识与所述第二应用连接标识进行关 联之前, 所述方法还包括:
若确定所述第一 AF为数据发送端, 则緩存所述第一 AF发送的数据; 或 者,
若确定所述第一 AF为数据接收端,则将最后接收到的来自所述笫二 CSE 的数据重复发送给所述第一 AF, 或者, 采用降低数据发送速率的方式将本地 緩存的来自所述第二 CSE的数据发送给所述第一 AF。
结合第一方面或第一方面的第一种可能的实现方式, 在第一方面的第三 种可能的实现方式中, 所述第三会话建立请求中还携带有所述第一会话标识 以及用于指示所述第二 CSE进行网络切换的网络切换指示;
向所述第二 CSE发送所述第三会话建立请求, 以使所述第二 CSE将所述 第二会话标识与所述第二应用连接标识进行关联, 包括:
向所述第二 CSE发送所述第三会话建立请求,以使所述第二 CSE根据所 述第三会话建立请求中携带的所述网络切换指示, 解除所述第一会话标识和 所述第二应用连接标识之间的关联关系, 并将所述第二会话标识与所述第二 应用连接标识进行关联。
结合第一方面的第二种可能的实现方式, 在第一方面的第四种可能的实 现方式中, 在向所述第二 CSE发送第三会话建立请求, 以使所述第二 CSE将 所述第二会话标识与所述第二应用连接标识进行关联之后, 所述方法还包括: 若确定所述第一 AF为数据发送端, 则接收所述第二 CSE发送的最后接 收到的来自所述第一 CSE的数据的标识信息; 或者,
若确定所述第一 AF为数据接收端, 则向所述第二 CSE发送最后接收到 的来自所述第二 CSE的数据的标识信息。
第二方面, 提供了一种会话处理方法, 包括:
第二 CSE根据第一 CSE发送的携带有第一会话标识的第二会话建立请 求, 将所述第一会话标识与第二应用连接标识进行关联, 其中, 所述第一会 话标识用于标识所述第一 CSE通过第一底层网络与所述第二 CSE之间建立的 第一会话, 所述第二应用连接标识用于标识所述第二 CSE与第二 AF之间的 第二应用连接, 并且, 所述第二会话建立请求是所述第一 CSE在根据第一 AF 发送的携带有所述第二 AF的标识信息的第一会话建立请求,将所述第一会话 标识与第一应用连接标识进行关联后发送的, 所述第一应用连接标识用于标 识所述第一 CSE与所述第一 AF之间的第一应用连接; 以及,
若接收到所述第一 CSE发送的携带有第二会话标识的第三会话建立请 求, 则根据所述第三会话建立请求, 将所述第二会话标识与所述第二应用连 接标识进行关联, 其中, 所述第三会话建立请求是所述第一 CSE在确定需将 所述第一底层网络切换至第二底层网络时, 将所述第二会话标识与所述第一 应用连接标识进行关联后发送的, 所述第二会话标识用于标识所述第一 CSE 通过所述第二底层网络与所述第二 CSE之间建立的第二会话。
结合第二方面, 在第二方面的第一种可能的实现方式中, 在接收所述笫 一 CSE发送的携带有第二会话标识的第三会话建立请求之前, 所述方法还包 括:
接收所述第一 CSE发送的网络切换通知指示, 其中, 所述网络切换通知 指示是所述第一 CSE 在确定需将所述第一底层网络切换至所述第二底层网 络, 且确定所述第一会话仍保持连接状态时, 通过所述第一底层网络向所述 第二 CSE发送的; 根据所述网络切换通知指示, 保持所述第二应用连接不变, 并向所述第 一 CSE返回网络切换通知响应消息, 以使所述第一 CSE根据所述网络切换通 知响应消息, 解除所述第一会话标识与所述第一应用连接标识之间的关联关 系, 并将所述第二会话标识与所述第一应用连接标识进行关联。
结合第二方面或第二方面的第一种可能的实现方式, 在第二方面的第二 种可能的实现方式中, 在接收到所述第一 CSE发送的携带有第二会话标识的 第三会话建立请求之后, 且根据所述第三会话建立请求, 将所述第二会话标 识与所述第二应用连接标识进行关联之前, 所述方法还包括:
若确定所述第二 AF为数据发送端, 则緩存所述第二 AF发送的数据; 或 者,
若确定所述第二 AF为数据接收端,则将最后接收到的来自所述第一 CSE 的数据重复发送给所述第二 AF, 或者, 采用降低数据发送速率的方式将本地 緩存的来自所述第一 CSE的数据发送给所述第二 AF。
结合第二方面或第二方面的第一种可能的实现方式, 在第二方面的第三 种可能的实现方式中, 所述第三会话建立请求中还携带有所述第一会话标识 以及用于指示所述第二 CSE进行网络切换的网络切换指示;
根据所述第三会话建立请求, 将所述第二会话标识与所述第二应用连接 标识进行关联, 包括:
根据所述第三会话建立请求中携带的所述网络切换指示, 解除所述第一 会话标识和所述第二应用连接标识之间的关联关系, 并将所述第二会话标识 与所述第二应用连接标识进行关联。
结合第二方面的第二种可能的实现方式, 在第二方面的第四种可能的实 现方式中, 在根据所述第三会话建立请求, 将所述第二会话标识与所述第二 应用连接标识进行关联之后, 所述方法还包括:
若确定所述第二 AF为数据发送端, 则接收所述第一 CSE发送的最后接 收到的来自所述第二 CSE的数据的标识信息; 或者,
若确定所述第二 AF为数据接收端, 则向所述第一 CSE发送最后接收到 的来自所述第一 CSE的数据的标识信息。
第三方面, 提供了一种 CSE, 包括:
第一标识关联模块, 用于根据第一 AF发送的携带有第二 AF的标识信息 的第一会话建立请求, 将第一会话标识与第一应用连接标识进行关联, 并向 对端 CSE发送携带有所述第一会话标识的第二会话建立请求, 以使所述对端 CSE 将所述第一会话标识与第二应用连接标识进行关联, 其中, 所述第一会 话标识用于标识所述 CSE通过第一底层网络与所述对端 CSE之间建立的第一 会话, 所述第一应用连接标识用于标识所述 CSE与所述第一 AF之间的第一 应用连接, 所述第二应用连接标识用于标识所述对端 CSE与所述第二 AF之 间的第二应用连接;
第二标识关联模块, 用于若确定需将所述第一底层网络切换至第二底层 网络, 以通过所述第二底层网络建立与所述对端 CSE之间的第二会话, 则将 为所述第二会话分配的第二会话标识与所述第一应用连接标识进行关联, 并 向所述对端 CSE发送携带有所述第二会话标识的第三会话建立请求, 以使所 述对端 CSE将所述第二会话标识与所述第二应用连接标识进行关联。
结合第三方面, 在第三方面的第一种可能的实现方式中, 所述 CSE还包 括信息收发模块:
所述信息收发模块, 用于在确定需将所述第一底层网络切换至第二底层 网络之后, 且将所述第二会话标识与所述第一应用连接标识进行关联之前, 若确定所述第一会话仍保持连接状态, 则通过所述第一底层网络向所述对端 CSE发送网络切换通知指示, 通知所述对端 CSE即将进行网絡切换, 并接收 所述对端 CSE返回的网络切换通知响应消息;
所述第二标识关联模块, 具体用于根据所述对端 CSE返回的网络切换通 知响应消息, 解除所述第一会话标识与所述第一应用连接标识之间的关联关 系, 并将所述第二会话标识与所述第一应用连接标识进行关联。
结合第三方面或第三方面的第一种可能的实现方式, 在第三方面的第二 种可能的实现方式中, 所述 CSE还包括数据处理模块: 所述数据处理模块, 用于在确定需将所述第一底层网络切换至第二底层 网络之后, 且使所述对端 CSE将所述第二会话标识与所述第二应用连接标识 进行关联之前, 若确定所述第一 AF为数据发送端, 则緩存所述第一 AF发送 的数据; 或者, 若确定所述第一 AF为数据接收端, 则将最后接收到的来自所 述对端 CSE的数据重复发送给所述第一 AF,或者, 釆用降低数据发送速率的 方式将本地緩存的来自所述对端 CSE的数据发送给所述第一 AF。
结合第三方面或第三方面的第一种可能的实现方式, 在第三方面的第三 种可能的实现方式中, 所述第三会话建立请求中还携带有所述第一会话标识 以及用于指示所述对端 CSE进行网络切换的网络切换指示;
所述第二标识关联模块, 具体用于向所述对端 CSE发送所述第三会话建 立请求, 以使所述对端 CSE根据所述第三会话建立请求中携带的所述网络切 换指示, 解除所述第一会话标识和所述第二应用连接标识之间的关联关系, 并将所述第二会话标识与所述第二应用连接标识进行关联。
结合第三方面的第二种可能的实现方式, 在第三方面的第四种可能的实 现方式中, 所述数据处理模块, 还用于在向所述对端 CSE发送第三会话建立 请求, 以使所述对端 CSE将所述第二会话标识与所述第二应用连接标识进行 关联之后, 若确定所述第一 AF为数据发送端, 则接收所述对端 CSE发送的 最后接收到的来自所述 CSE的数据的标识信息; 或者, 若确定所述第一 AF 为数据接收端,则向所述对端 CSE发送最后接收到的来自所述对端 CSE的数 据的标识信息。
第四方面, 提供了一种 CSE, 包括:
第一标识关联模块, 用于根据对端 CSE发送的携带有第一会话标识的第 二会话建立请求, 将所述第一会话标识与第二应用连接标识进行关联, 其中, 所述第一会话标识用于标识所述对端 CSE通过第一底层网络与所述 CSE之间 建立的第一会话, 所述第二应用连接标识用于标识所述 CSE与第二 AF之间 的第二应用连接, 并且, 所述第二会话建立请求是所述对端 CSE在根据第一 AF发送的携带有所述第二 AF的标识信息的第一会话建立请求, 将所述第一 会话标识与第一应用连接标识进行关联后发送的, 所述第一应用连接标识用 于标识所述对端 CSE与所述第一 AF之间的第一应用连接;
第二标识关联模块, 用于若接收到所述对端 CSE发送的携带有第二会话 标识的第三会话建立请求, 则根据所述第三会话建立请求, 将所述第二会话 标识与所述第二应用连接标识进行关联, 其中, 所述第三会话建立请求是所 述对端 CSE在确定需将所述第一底层网络切换至第二底层网络时, 将所述第 二会话标识与所述第一应用连接标识进行关联后发送的, 所述第二会话标识 用于标识所述对端 CSE通过所述第二底层网络与所述 CSE之间建立的第二会 话。
结合第四方面, 在第四方面的第一种可能的实现方式中, 所述 CSE还包 括信息收发模块:
所述信息收发模块, 用于在接收所述对端 CSE发送的携带有第二会话标 识的第三会话建立请求之前, 接收所述对端 CSE发送的网络切换通知指示, 并根据所述网络切换通知指示, 保持所述第二应用连接不变, 以及, 向所述 对端 CSE返回网络切换通知响应消息, 以使所述对端 CSE根据所述网络切换 通知响应消息, 解除所述第一会话标识与所述第一应用连接标识之间的关联 关系, 并将所述第二会话标识与所述第一应用连接标识进行关联;
其中, 所述网络切换通知指示是所述对端 CSE在确定需将所述第一底层 网络切换至所述第二底层网络, 且确定所述第一会话仍保持连接状态时, 通 过所述第一底层网络向所述 CSE发送的。
结合第四方面或第四方面的第一种可能的实现方式, 在第四方面的笫二 种可能的实现方式中, 所述 CSE还包括数据处理模块:
所述数据处理模块, 用于在接收到所述对端 CSE发送的携带有第二会话 标识的第三会话建立请求之后, 且根据所述第三会话建立请求, 将所述第二 会话标识与所述第二应用连接标识进行关联之前,若确定所述第二 AF为数据 发送端, 则緩存所述第二 AF发送的数据; 或者, 若确定所述第二 AF为数据 接收端, 则将最后接收到的来自所述对端 CSE 的数据重复发送给所述第二 AF, 或者, 采用降低数据发送速率的方式将本地緩存的来自所述对端 CSE的 数据发送给所述第二 AF。
结合第四方面或第四方面的第一种可能的实现方式, 在第四方面的第三 种可能的实现方式中, 所述第三会话建立请求中还携带有所述第一会话标识 以及用于指示所述 CSE进行网络切换的网络切换指示;
所述第二标识关联模块, 具体用于根据所述第三会话建立请求中携带的 所述网络切换指示, 解除所述第一会话标识和所述第二应用连接标识之间的 关联关系, 并将所述第二会话标识与所述第二应用连接标识进行关联。
结合第四方面的第二种可能的实现方式, 在第四方面的第四种可能的实 现方式中, 所述数据处理模块, 还用于在根据所述第三会话建立请求, 将所 述第二会话标识与所述第二应用连接标识进行关联之后, 若确定所述第二 AF 为数据发送端,则接收所述对端 CSE发送的最后接收到的来自所述 CSE的数 据的标识信息; 或者, 若确定所述第二 AF为数据接收端, 则向所述对端 CSE 发送最后接收到的来自所述对端 CSE的数据的标识信息。
第五方面, 提供了一种 CSE, 包括:
处理器, 用于根据第一 AF发送的携带有第二 AF的标识信息的第一会话 建立请求, 将第一会话标识与第一应用连接标识进行关联, 并向对端 CSE发 送携带有所述第一会话标识的第二会话建立请求, 以使所述对端 CSE将所述 第一会话标识与第二应用连接标识进行关联; 以及, 若确定需将所述第一底 层网络切换至第二底层网络, 以通过所述第二底层网络建立与所述对端 CSE 之间的第二会话, 则将为所述第二会话分配的第二会话标识与所述第一应用 连接标识进行关联, 并向所述对端 CSE发送携带有所述第二会话标识的第三 会话建立请求, 以使所述对端 CSE将所述第二会话标识与所述第二应用连接 标识进行关联;
其中, 所述第一会话标识用于标识所述 CSE通过第一底层网络与所述对 端 CSE之间建立的第一会话,所述第一应用连接标识用于标识所述 CSE与所 述第一 AF之间的第一应用连接, 所述第二应用连接标识用于标识所述对端 CSE与所述第二 AF之间的第二应用连接。
结合第五方面, 在第五方面的第一种可能的实现方式中, 所述 CSE还包 括收发器:
所述收发器, 用于在确定需将所述第一底层网絡切换至第二底层网络之 后, 且将所述第二会话标识与所述第一应用连接标识进行关联之前, 若确定 所述第一会话仍保持连接状态, 则通过所述第一底层网络向所述对端 CSE发 送网络切换通知指示, 通知所述对端 CSE即将进行网络切换, 并接收所述对 端 CSE返回的网络切换通知响应消息;
所述处理器,具体用于根据所述对端 CSE返回的网络切换通知响应消息 , 解除所述第一会话标识与所述第一应用连接标识之间的关联关系, 并将所述 第二会话标识与所述第一应用连接标识进行关联。
结合第五方面或第五方面的第一种可能的实现方式, 在第五方面的第二 种可能的实现方式中:
所述处理器, 还用于在确定需将所述第一底层网络切换至第二底层网絡 之后, 且使所述对端 CSE将所述第二会话标识与所述第二应用连接标识进行 关联之前, 若确定所述第一 AF为数据发送端, 则缓存所述第一 AF发送的数 据; 或者, 若确定所述第一 AF为数据接收端, 则将最后接收到的来自所述对 端 CSE的数据重复发送给所述第一 AF,或者,采用 P条低数据发送速率的方式 将本地緩存的来自所述对端 CSE的数据发送给所述第一 AF。
结合第五方面或第五方面的第一种可能的实现方式, 在第五方面的第三 种可能的实现方式中, 所述第三会话建立请求中还携带有所述第一会话标识 以及用于指示所述对端 CSE进行网络切换的网络切换指示;
所述处理器, 具体用于向所述对端 CSE发送所述第三会话建立请求, 以 使所述对端 CSE根据所述第三会话建立请求中携带的所述网络切换指示, 解 除所述第一会话标识和所述第二应用连接标识之间的关联关系, 并将所述第 二会话标识与所述第二应用连接标识进行关联。
结合第五方面的第二种可能的实现方式, 在第五方面的第四种可能的实 现方式中, 所述处理器, 还用于在向所述对端 CSE发送第三会话建立请求, 以使所述对端 CSE将所述第二会话标识与所述第二应用连接标识进行关联之 后, 若确定所述第一 AF为数据发送端, 则接收所述对端 CSE发送的最后接 收到的来自所述 CSE的数据的标识信息; 或者, 若确定所述第一 AF为数据 接收端,则向所述对端 CSE发送最后接收到的来自所述对端 CSE的数据的标 识信息。
第六方面, 提供了一种 CSE, 包括:
处理器, 用于根据对端 CSE发送的携带有第一会话标识的第二会话建立 请求, 将所述第一会话标识与第二应用连接标识进行关联, 其中, 所述第一 会话标识用于标识所述对端 CSE通过第一底层网络与所述 CSE之间建立的第 一会话, 所述第二应用连接标识用于标识所述 CSE与第二 AF之间的第二应 用连接, 并且, 所述第二会话建立请求是所述对端 CSE在根据第一 AF发送 的携带有所述第二 AF的标识信息的第一会话建立请求,将所述第一会话标识 与第一应用连接标识进行关联后发送的, 所述第一应用连接标识用于标识所 述对端 CSE与所述第一 AF之间的第一应用连接; 以及,
若接收到所述对端 CSE发送的携带有第二会话标识的第三会话建立请 求, 则根据所述第三会话建立请求, 将所述第二会话标识与所述第二应用连 接标识进行关联, 其中, 所述第三会话建立请求是所述对端 CSE在确定需将 所述第一底层网络切换至第二底层网絡时, 将所述第二会话标识与所述第一 应用连接标识进行关联后发送的, 所述第二会话标识用于标识所述对端 CSE 通过所述第二底层网絡与所述 CSE之间建立的第二会话。
结合第六方面, 在第六方面的第一种可能的实现方式中, 所述 CSE还包 括收发器:
所述收发器, 用于在接收所述对端 CSE发送的携带有第二会话标识的第 三会话建立请求之前, 接收所述对端 CSE发送的网络切换通知指示, 并根据 所述网络切换通知指示,保持所述第二应用连接不变, 以及, 向所述对端 CSE 返回网络切换通知响应消息, 以使所述对端 CSE根据所述网络切换通知响应 消息, 解除所述第一会话标识与所述第一应用连接标识之间的关联关系, 并 将所述第二会话标识与所述第一应用连接标识进行关联;
其中, 所述网络切换通知指示是所述对端 CSE在确定需将所述第一底层 网络切换至所述第二底层网络, 且确定所述第一会话仍保持连接状态时, 通 过所述第一底层网络向所述 CSE发送的。
结合第六方面或第六方面的第一种可能的实现方式, 在第六方面的第二 种可能的实现方式中:
所述处理器, 还用于在接收到所述对端 CSE发送的携带有第二会话标识 的第三会话建立请求之后, 且根据所述第三会话建立请求, 将所述第二会话 标识与所述第二应用连接标识进行关联之前,若确定所述第二 AF为数据发送 端, 则緩存所述第二 AF发送的数据; 或者, 若确定所述第二 AF为数据接收 端, 则将最后接收到的来自所述对端 CSE的数据重复发送给所述第二 AF,或 者, 采用降低数据发送速率的方式将本地緩存的来自所述对端 CSE的数据发 送给所述第二 AF。
结合第六方面或第六方面的第一种可能的实现方式, 在第六方面的第三 种可能的实现方式中, 所述第三会话建立请求中还携带有所述第一会话标识 以及用于指示所述 CSE进行网络切换的网络切换指示;
所述处理器, 具体用于根据所述第三会话建立请求中携带的所述网络切 换指示, 解除所述第一会话标识和所述第二应用连接标识之间的关联关系, 并将所述第二会话标识与所述第二应用连接标识进行关联。
结合第六方面的第二种可能的实现方式, 在第六方面的第四种可能的实 现方式中, 所述处理器, 还用于在根据所述第三会话建立请求, 将所述第二 会话标识与所述第二应用连接标识进行关联之后,若确定所述第二 AF为数据 发送端,则接收所述对端 CSE发送的最后接收到的来自所述 CSE的数据的标 识信息; 或者, 若确定所述第二 AF为数据接收端, 则向所述对端 CSE发送 最后接收到的来自所述对端 CSE的数据的标识信息。
根据第一、 第二方面提供的会话处理方法, 以及第三至第六方面提供的 会话处理设备 , 第一 CSE与第二 CSE之间进行底层网络的切换时, 通过将用 于标识第一 CSE与第二 CSE之间的新的会话的会话标识与用于标识第一 CSE 与第一 AF之间的第一应用连接的第一应用连接标识以及用于标识第二 CSE 与第二 AF之间的第二应用连接的第二应用连接标识进行关联,以在保证第一 应用连接以及第二应用连接不断开的情况下, 切换底层网络, 进而实现上层 应用之间会话的连续性, 从而较好地解决了目前存在的用于实现底层网络切 换时上层应用之间会话连续性的方式并不佳的问题, 提高了上层应用之间会 话的切换效果。 附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中 所需要使用的附图作简要介绍, 显而易见地, 下面描述中的附图仅仅是本发 明的一些实施例, 对于本领域的普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。
图 1所示为本发明实施例一中所述会话处理方法的流程示意图; 图 2所示为本发明实施例二中所述会话处理方法的流程示意图; 图 3所示为本发明实施例三中所述会话处理方法的流程示意图; 图 4所示为本发明实施例四中所述 CSE的结构示意图;
图 5所示为本发明实施例五中所述 CSE的结构示意图;
图 6所示为本发明实施例六中所述 CSE的结构示意图;
图 7所示为本发明实施例七中所述 CSE的结构示意图。 具体实施方式
本发明实施例提供了一种会话处理方法及设备, 以解决当底层网络切换 导致底层网络会话迁移时, 如何实现上层应用之间会话的连续性的问题。 具 体地, 以建立在第一 AF与第二 AF之间的会话为例, 可将所述第一 AF与第 二 AF之间的会话划分为第一 AF到第一 CSE、 第一 CSE到第二 CSE以及第 二 CSE到第二 AF三个部分, 当底层网络切换时, 可通过保持应用两端的会 话(如第一 AF到第一 CSE之间的会话以及第二 CSE到第二 AF之间的会话) 持续, 并切换服务能力层之间的会话 (如第一 CSE到第二 CSE之间的会话) 来实现应用之间会话的连续性, 从而在提高了上层应用之间会话的切换效果 的基础上, 较好地解决了目前存在的用于实现底层网络切换时上层应用之间 会话连续性的方式并不佳的问题。
为了使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本 发明作进一步地详细描述, 显然, 所描述的实施例仅仅是本发明一部分实施 例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在 没有做出创造性劳动前提下所获得的所有其它实施例, 都属于本发明保护的 范围。
实施例一:
如图 1 所示, 其为本发明实施例一中所述会话处理方法的流程示意图, 所述会话处理方法可包括以下步骤:
步骤 101 : 第一 CSE根据第一 AF发送的携带有第二 AF的标识信息的第 一会话建立请求, 将第一会话标识与第一应用连接标识进行关联, 并向第二 CSE发送携带有所述第一会话标识的第二会话建立请求, 以使所述第二 CSE 将所述第一会话标识与第二应用连接标识进行关联。
其中, 所述第一会话标识用于标识所述第一 CSE通过第一底层网络与所 述第二 CSE之间建立的第一会话, 所述第一应用连接标识用于标识所述第一 CSE与所述第一 AF之间的笫一应用连接,所述笫二应用连接标识用于标识所 述第二 CSE与所述第二 AF之间的第二应用连接。
具体地, 在本发明所述实施例中, 所述第一 AF或所述第二 AF通常可为 具备设定应用功能的、 位于某一网络设备(如手机、 平板电脑、 服务器等网 络设备) 中的集成设备(或集成模块); 当然, 所述第一 AF或所述第二 AF 还可为具备设定应用功能的独立网络设备, 本发明实施例对此不作任何限定。
进一步地, 所述第一 CSE通常可为用于为所述第一 AF提供相应通信服 务的独立网络设备或位于某一网络设备中的集成设备(或集成模块)。 并且, 在本发明所述实施例中, 当所述第一 CSE为位于某一网络设备中的集成设备 (或集成模块) 时, 所述第一 CSE可与所述第一 AF位于同一网络设备中, 分别作为所述同一网络设备的一个集成模块存在, 也可以分别位于两个网絡 设备中、 分别作为所述两个网络设备的一个集成模块存在, 本发明实施例对 此不作任何限定。
类似地, 所述第二 CSE通常可为用于为所述第二 AF提供相应通信服务 的独立网络设备或位于某一网络设备中的集成设备(或集成模块)。 并且, 在 本发明所述实施例中,当所述第二 CSE为位于某一网络设备中的集成设备(或 集成模块) 时, 所述第二 CSE可与所述第二 AF位于同一网絡设备中, 分别 作为所述同一网络设备的一个集成模块存在, 也可以分别位于两个网络设备 中、 分别作为所述两个网络设备的一个集成模块存在, 本发明实施例对此也 不作任何限定。
进一步地, 在本发明所述实施例中, 所述笫二 AF 的标识信息可为第二 AF的物理标识或第二 AF的网络地址等信息 , 本发明实施例对此不作任何限 定。
进一步地, 在本发明所述实施例中,所述第一 CSE在接收到所述第一 AF 发送的携带有所述第二 AF的标识信息的第一会话建立请求后,可根据所述第 一会话建立请求中携带的第二 AF的标识信息确定为所述第二 AF提供服务的 第二 CSE, 并为所述第一 CSE与所述第一 AF之间的第一应用连接分配第一 应用连接标识, 以及, 将为所述第一 CSE与所述第二 CSE之间的第一会话分 配的第一会话标识与所述第一应用连接标识进行关联, 即通过关联第一会话 标识以及第一应用连接标识的方式来实现第一会话连接与第一应用连接之间 的关联。
具体地, 所述第一会话标识与所述第一应用连接标识之间的关联关系可 通过建立关联表的形式来实现, 本发明实施例对此不作任何限定。 再有需要 说明的是, 所述第一会话标识通常可由所述第一 CSE分配, 当然也可由所述 第二 CSE分配, 本发明实施例对此也不作任何限定; 需要说明的是, 若所述 第一会话标识由第二 CSE分配, 则所述第一会话标识与所述第一应用连接标 识之间的关联可在所述第一 CSE接收到所述第二 CSE返回的携带有第一会话 标识的会话建立响应后进行。
进一步地,所述第二会话建立请求中还可携带有第一 AF的标识信息以及 第二 AF的标识信息等信息, 以便所述第二 CSE在接收到所述第二会话建立 请求后, 根据所述第二会话建立请求中携带的第一 AF 的标识信息以及第二 AF的标识信息等信息, 确定待建立会话连接的通信双方, 并将所述第二会话 建立请求中携带的第一会话标识与为所述第二 CSE与所述第二 AF之间的第 二应用连接分配的第二应用连接标识进行关联。
进一步地, 在本发明所述实施例中, 所述第一 CSE在向所述第二 CSE发 送第二会话建立请求, 以使所述第二 CSE将所述第一会话标识与第二应用连 接标识进行关联之后 ,还可接收所述第二 CSE返回的第一会话建立响应消息 , 并在接收到所述第一会话建立响应消息之后,向所述第一 AF发送第二会话建 立响应消息, 以完成所述第一 AF与所述第二 AF之间会话的建立。
其中, 所述第一会话建立响应消息通常可以是所述第二 CSE在根据接收 到的所述第二会话建立请求, 将所述第二应用连接标识与所述第一会话标识 进行关联, 并建立与所述第二 AF之间的第二应用连接后向所述第一 CSE发 送的。
进一步地, 当所述第一 CSE将所述第二会话建立响应消息发送至所述第 一 AF, 以完成所述第一 AF与所述第二 AF之间的会话的建立后, 所述第一 AF 可通过所述第一应用连接、 第一会话以及所述第二应用连接与所述第二 AF进行数据的传输, 其中, 所述第一 AF与所述第二 AF所采用的具体数据 传输方式与现有技术相同, 本发明实施例对此不作赘述。
步骤 102: 若确定需将所述第一底层网络切换至第二底层网络, 以通过所 述第二底层网络建立与所述第二 CSE之间的第二会话, 则将为所述第二会话 分配的第二会话标识与所述第一应用连接标识进行关联, 并向所述第二 CSE 发送携带有所述第二会话标识的第三会话建立请求, 以使所述第二 CSE将所 述第二会话标识与所述第二应用连接标识进行关联。
具体地, 在本发明所述实施例中, 由于会话标识与会话之间通常为一对 一的关系, 因此, 在确定需将所述第一底层网络切换至第二底层网络之后, 且将为所述第二会话分配的第二会话标识与所述第一应用连接标识进行关联 之前, 通常可解除所述第一会话标识与所述第一应用连接标识之间的关联关 系, 以便后续可将为所述第一 CSE与所述第二 CSE之间的第二会话分配的第 二会话标识与所述第一应用连接标识进行关联, 即通过关联第二会话标识以 及第一应用连接标识的方式来实现第二会话与第一应用连接之间的关联。
进一步地, 在本发明所述实施例中, 在确定需将所述第一底层网络切换 至第二底层网络之后, 且将所述第二会话标识与所述第一应用连接标识进行 关联之前, 所述方法还可以包括:
若确定所述第一会话仍保持连接状态, 则通过所述第一底层网络向所述 第二 CSE发送网络切换通知指示, 通知所述第二 CSE即将进行网络切换, 并 接收所述第二 CSE返回的网络切换通知响应消息; 其中, 所述网络切换通知 指示中可携带有所述第一会话标识、 第一 AF的标识信息以及第二 AF的标识 信息等信息。
相应地, 将所述第二会话标识与所述第一应用连接标识进行关联, 可以 包括:
根据所述第二 CSE返回的网络切换通知响应消息, 解除所述第一会话标 识与所述第一应用连接标识之间的关联关系, 并将所述第二会话标识与所述 第一应用连接标识进行关联。
需要说明的是, 在本发明所述实施例中, 可在向所述第二 CSE发送网络 切换通知指示的同时、 之前或之后, 为所述第一 CSE与所述第二 CSE之间的 第二会话分配第二会话连接标识, 本发明实施例对此不作任何限定; 再有需 要说明的是, 所述第二会话标识也可由所述第二 CSE进行分配, 本发明实施 例对此也不作任何限定。 另外需要说明的是, 若在确定需将所述第一底层网络切换至第二底层网 络, 以通过所述第二底层网络建立与所述第二 CSE之间的第二会话之后, 确 定所述第一会话不再保持连接状态, 则可直接执行解除所述第一会话标识与 所述第一应用连接标识之间的关联关系的步骤, 即, 此时, 无需再向所述第 二 CSE发送网络切换通知指示。
进一步地, 在本发明所述实施例中, 所述第三会话建立请求中通常还可 携带有所述第一会话标识以及用于指示所述第二 CSE进行网络切换的网络切 换指示。
相应地,向所述第二 CSE发送所述第三会话建立请求,以使所述第二 CSE 将所述第二会话标识与所述第二应用连接标识进行关联, 可以包括:
向所述第二 CSE发送所述第三会话建立请求, 以使所述第二 CSE根据所 述第三会话建立请求中携带的所述网絡切换指示, 解除所述第一会话标识和 所述第二应用连接标识之间的关联关系, 并将所述第二会话标识与所述第二 应用连接标识进行关联。
进一步地,所述第一 CSE在向所述第二 CSE发送所述第三会话建立请求, 以使所述第二 CSE将所述第二会话标识与所述第二应用连接标识进行关联之 后, 还可以接收所述第二 CSE返回的第三会话建立响应消息, 以完成所述第 一 CSE与所述第二 CSE之间的第二会话的建立。
进一步地, 为了提高应用之间数据的可靠传输, 降低丟包的可能性, 在 本发明所述实施例中, 在确定需将所述第一底层网络切换至第二底层网络之 后, 且使所述第二 CSE将所述第二会话标识与所述第二应用连接标识进行关 联之前或接收到所述第二 CSE返回的第三会话建立响应消息之前, 所述方法 还可以包括:
若确定所述第一 AF为数据发送端, 则緩存所述第一 AF发送的数据; 此 时, 对于所述第一 AF而言, 数据发送动作仍在继续; 或者,
若确定所述第一 AF为数据接收端,则将最后接收到的来自所述第二 CSE 的数据重复发送给所述第一 AF, 或者, 采用降低数据发送速率的方式将本地 緩存的来自所述第二 CSE的数据(其中, 所述第一 CSE本地緩存的来自所述 第二 CSE的数据为将所述第一底层网络切换至所述第二底层网络之前, 当确 定所述第二 AF为数据发送端时, 所緩存的来自所述第二 AF且尚未发送至所 述第一 AF的数据 )发送给所述第一 AF; 此时, 对于所述第一 AF而言, 数 据接收动作仍在继续, 以此在使得上层应用无法感知底层网络的切换的前提 下, 保证数据的可靠传输。
进一步地, 在本发明所述实施例中, 在向所述第二 CSE发送第三会话建 立请求, 以使所述第二 CSE将所述第二会话标识与所述第二应用连接标识进 行关联之后或在接收到所述第二 CSE返回的第三会话建立响应消息之后, 所 述方法还可以包括:
通过所述第二会话与所述第二 CSE进行数据的传输。 具体地, 当所述第 二会话建立后, 所述第一 AF可通过所述第一应用连接、 第二会话以及所述第 二应用连接与所述第二 AF进行数据的传输, 其中, 所釆用的具体数据传输方 式与现有技术相同, 本发明实施例对此不作赘述。
进一步地,在向所述第二 CSE发送第三会话建立请求,以使所述第二 CSE 将所述第二会话标识与所述第二应用连接标识进行关联之后或在接收到所述 第二 CSE返回的第三会话建立响应消息之后, 且在通过所述第二会话与所述 第二 CSE进行数据的传输之前, 所述方法还可以包括:
若确定所述第一 AF为数据发送端, 则接收所述第二 CSE发送的最后接 收到的来自所述第一 CSE的数据的标识信息; 或者, 若确定所述第一 AF为 数据接收端,则向所述第二 CSE发送最后接收到的来自所述第二 CSE的数据 的标识信息, 以保证后续第一 AF以及第二 AF通过切换后的第二底层网络进 行数据传输时的连续性和准确性。
本发明实施例一提供了一种会话处理方法,第一 CSE与第二 CSE之间进 行底层网络的切换时,通过将用于标识第一 CSE与第二 CSE之间的新的会话 的会话标识与用于标识第一 CSE与第一 AF之间的第一应用连接的第一应用 连接标识以及用于标识第二 CSE与第二 AF之间的第二应用连接的第二应用 连接标识进行关联, 以在保证第一应用连接以及第二应用连接不断开的情况 下, 切换底层网络, 进而实现上层应用之间会话的连续性, 从而较好地解决 了目前存在的用于实现底层网络切换时上层应用之间会话连续性的方式并不 佳的问题, 提高了上层应用之间会话的切换效杲。 实施例二:
本发明实施例二以动作执行方为第二 CSE为例, 对本发明实施例一中所 述会话处理方法进行进一步说明。 如图 2所示, 其为本发明实施例二中所述 会话处理方法的流程示意图, 所述会话处理方法可包括以下步骤:
步骤 201: 第二 CSE根据第一 CSE发送的携带有第一会话标识的第二会 话建立请求, 将所述第一会话标识与第二应用连接标识进行关联。
其中, 所述第一会话标识用于标识所述第一 CSE通过第一底层网络与所 述第二 CSE之间建立的第一会话, 所述第二应用连接标识用于标识所述第二 CSE与第二 AF之间的第二应用连接。 并且,所述第二会话建立请求是所述第 一 CSE在根据第一 AF发送的携带有所述第二 AF的标识信息的第一会话建立 请求, 将所述第一会话标识与第一应用连接标识进行关联后发送的, 所述第 一应用连接标识用于标识所述第一 CSE与所述第一 AF之间的第一应用连接。
具体地, 在本发明所述实施例中, 所述第二会话建立请求中还可携带有 第一 AF的标识信息以及第二 AF的标识信息等信息,以便所述第二 CSE在接 收到所述第二会话建立请求后, 根据所述第二会话建立请求中携带的第一 AF 的标识信息以及第二 AF 的标识信息等信息, 确定待建立会话连接的通信双 方, 并将所述第二会话建立请求中携带的笫一会话标识与为所述第二 CSE与 所述第二 AF之间的第二应用连接分配的第二应用连接标识进行关联。
进一步地, 在本发明所述实施例中, 所述第二 CSE在接收到所述第二会 话建立请求之后, 可通过确定所述第一 AF或所述第一 CSE是否具备相应的 访问权限、 或者确定所述第一会话标识与所述第二 CSE本地已分配的其他会 话标识是否互不冲突等, 来判断是否允许建立所述第一会话, 并在判断结果 为是时, 为所述第二 CSE与所述第二 AF之间的第二应用连接分配第二应用 连接标识, 并将所述第二应用连接标识与所述第一会话标识进行关联。
进一步地, 在本发明所述实施例中, 所述第二 CSE在将所述第二应用连 接标识与所述第一会话标识进行关联之后,可通过向所述第二 AF发送第四会 话建立请求, 并接收所述第二 AF返回的第四会话建立响应的方式, 建立与所 述第二 AF之间的第二应用连接, 以及, 在所述第二应用连接建立成功后, 向 所述第一 CSE返回第一会话建立响应消息, 以使所述第一 CSE在接收到所述 第一会话建立响应消息后, 向所述第一 AF发送第二会话建立响应消息, 来完 成所述第一 AF与所述第二 AF之间会话的建立。
进一步地, 当所述第一 CSE将所述第二会话建立响应消息发送至所述第 一 AF后, 所述第一 AF与所述第二 AF之间的会话成功建立, 此时, 所述第 一 AF可通过所述第一应用连接、第一会话以及所述第二应用连接与所述第二 AF进行数据的传输, 其中, 所采用的具体数据传输方式与现有技术相同, 本 发明实施例对此不作赘述。
步骤 202: 若接收到所述第一 CSE发送的携带有第二会话标识的第三会 话建立请求, 则根据所述第三会话建立请求, 将所述第二会话标识与所述第 二应用连接标识进行关联。
其中, 所述第三会话建立请求是所述第一 CSE在确定需将所述第一底层 网络切换至第二底层网络时, 将所述第二会话标识与所述第一应用连接标识 进行关联后发送的, 所述第二会话标识用于标识所述第一 CSE通过所述第二 底层网絡与所述第二 CSE之间建立的第二会话。。
具体地, 在本发明所述实施例中, 在接收所述第一 CSE发送的携带有第 二会话标识的第三会话建立请求之前, 所述方法还可以包括:
接收所述第一 CSE发送的网络切换通知指示, 其中, 所述网络切换通知 指示是所述第一 CSE 在确定需将所述第一底层网络切换至所述第二底层网 络, 且确定所述第一会话仍保持连接状态时, 通过所述第一底层网络向所述 第二 CSE发送的; 以及, 根据所述网络切换通知指示, 保持所述第二应用连接不变, 并向所述第 一 CSE返回网络切换通知响应消息, 以使所述第一 CSE根据所述网络切换通 知响应消息, 解除所述第一会话标识与所述第一应用连接标识之间的关联关 系, 并将所述第二会话标识与所述第一应用连接标识进行关联。
进一步地, 所述第三会话建立请求中还可携带有所述第一会话标识以及 用于指示所述第二 CSE进行网络切换的网络切换指示。
相应地, 根据所述第三会话建立请求, 将所述第二会话标识与所述第二 应用连接标识进行关联, 可以包括:
根据所述第三会话建立请求中携带的所述网络切换指示, 解除所述第一 会话标识和所述第二应用连接标识之间的关联关系, 并将所述第二会话标识 与所述第二应用连接标识进行关联。
进一步地, 为了提高应用之间数据的可靠传输, 降低丟包的可能性, 在 接收到所述第一 CSE发送的携带有第二会话标识的第三会话建立请求之后, 且根据所述第三会话建立请求, 将所述笫二会话标识与所述第二应用连接标 识进行关联之前, 所述方法还可以包括:
若确定所述第二 AF为数据发送端, 则緩存所述第二 AF发送的数据; 或 者,若确定所述第二 AF为数据接收端, 则将最后接收到的来自所述第一 CSE 的数据重复发送给所述第二 AF, 或者, 采用降低数据发送速率的方式将本地 緩存的来自所述第一 CSE的数据发送给所述第二 AF,以此在使得上层应用无 法感知底层网络的切换的前提下, 保证数据的可靠传输。
需要说明的是, 所述第二 CSE还可在感知到所述第一底层网络已中断或 接收到所述第一 CSE发送的网络切换通知指示后, 自动执行上述数据的緩存 操作, 以此在使得上层应用无法感知底层网络的切换的前提下, 保证数据的 可靠传输, 本发明实施例对此不作任何限定。
进一步地, 在本发明所述实施例中, 所述第二 CSE在根据所述第三会话 建立请求, 将所述第二会话标识与所述第二应用连接标识进行关联之后, 可 向所述第一 CSE返回第三会话建立响应消息, 以完成所述第一 CSE与所述第 二 CSE之间的第二会话的建立。
进一步地, 所述第二 CSE在根据所述第三会话建立请求, 将所述第二会 话标识与所述第二应用连接标识进行关联之后或向所述第一 CSE返回第三会 话建立响应消息之后,可通过所述第二会话与所述第二 CSE进行数据的传输。 具体地, 当所述第二会话建立后, 所述第一 AF可通过所述第一应用连接、 第 二会话以及所述第二应用连接与所述第二 AF进行数据的传输, 其中, 所采用 的具体数据传输方式与现有技术相同 , 本发明实施例对此不作赘述。
进一步地, 所述第二 CSE在根据所述第三会话建立请求, 将所述第二会 话标识与所述第二应用连接标识进行关联之后或向所述第一 CSE返回第三会 话建立响应消息之后, 且在通过所述第二会话与所述第一 CSE进行数据的传 输之前, 所述方法还可以包括:
若确定所述第二 AF为数据发送端,则接收所述第一 CSE向所述第二 CSE 发送的最后接收到的来自所述第二 CSE的数据的标识信息; 或者, 若确定所 述第二 AF为数据接收端, 则向所述第一 CSE发送最后接收到的来自所述第 一 CSE的数据的标识信息,以保证后续第一 AF以及第二 AF通过切换后的第 二底层网络进行数据传输时的连续性和准确性。
本发明实施例二提供了一种会话处理方法,第一 CSE与第二 CSE之间进 行底层网络的切换时,通过将用于标识第一 CSE与第二 CSE之间的新的会话 的会话标识与用于标识第一 CSE与第一 AF之间的第一应用连接的第一应用 连接标识以及用于标识第二 CSE与第二 AF之间的第二应用连接的第二应用 连接标识进行关联, 以在保证第一应用连接以及第二应用连接不断开的情况 下, 切换底层网络, 进而实现上层应用之间会话的连续性, 从而较好地解决 了目前存在的用于实现底层网络切换时上层应用之间会话连续性的方式并不 佳的问题, 提高了上层应用之间会话的切换效果。 实施例三:
本发明实施例三提供了一种会话处理方法, 所述会话处理方法是对本发 明实施例一或实施例二中所述会话处理方法的详细说明。 如图 3 所示, 其为 本发明实施例三中所述会话处理方法的流程示意图, 所述会话处理方法可包 括以下步骤:
步骤 301 : 第一 AF向第一 CSE发送第一会话建立请求, 请求第一 CSE 建立到第二 AF的会话, 其中, 所述第一会话建立请求中可携带有第二 AF的 标识信息;
步骤 302: 第一 CSE根据第二 AF的标识信息选择第二 CSE, 并分配用 于标识第一 AF与第一 CSE之间的第一应用连接的第一应用连接标识 (App Connection ID 1 ), 以及, 根据本地网络策略, 选择第一底层网络, 并分配用 于标识所述第一 CSE与所述第二 CSE之间的第一会话的第一会话标识( M2M Session ID 1 ),以及,将所述第一会话标识与所述第一应用连接标识进行关联; 步骤 303: 第一 CSE通过第一底层网络向所述第二 CSE发送第二会话建 立请求, 其中携带有第一 AF的标识信息、 第二 AF的标识信息以及第一会话 标识等信息;
步骤 304: 第二 CSE确定是否允许建立会话, 若是, 则为所述第二 CSE 与所述第二 AF之间的第二应用连接分配第二应用连接标识 ( App Connection ID 2 ), 并将所述第二应用连接标识与所述第一会话标识进行关联; 若否, 则 拒绝建立所述会话;
步骤 305: 第二 CSE建立与第二 AF之间的第二应用连接;
步骤 306: 第二 CSE向第一 CSE返回第一会话建立响应消息, 并在第一 CSE向第一 AF发送第二会话建立响应消息后, 完成第一会话的建立; 此时, 所述第一 CSE与所述第一 AF之间的第一应用连接也建立完成;
步骤 307: 第一 AF以及第二 AF通过第一应用连接、 第一会话以及第二 应用连接进行数据的传输;
步骤 308: 第一 CSE根据用户请求或本地策略等, 确定需将底层网络从 第一底层网络切换到第二底层网络;
步骤 309: 若确定第一会话仍保持连接状态, 则第一 CSE通过第一底层 网络向第二 CSE发送网络切换通知指示,通知所述第二 CSE即将进行网络切 换, 其中, 所述网络切换通知指示中可携带有第一会话标识等信息;
此时, 如步驟 309 ( a )所示, 所述第一 CSE还可暂停第一 AF的数据发 送或接收, 并緩存相应的数据。
具体地, 若确定所述第一 AF为数据发送端, 则以队列的形式緩存所述第 一 AF发送的数据, 此时, 对于所述第一 AF而言, 数据发送动作仍在继续; 或者, 若确定所述第一 AF 为数据接收端, 则将最后接收到的来自所述第二 CSE的数据重复发送给所述第一 AF, 或者, 采用降低数据发送速率的方式将 本地緩存的来自所述第二 CSE的数据发送给所述第一 AF, 此时,对于所述第 一 AF而言, 数据接收动作仍在继续 , 以此在使得上层应用无法感知底层网络 的切换的前提下, 保证数据的可靠传输。
步骤 310: 第二 CSE在接收到所述网络切换通知指示后, 保持所述第二 应用连接不变, 并向所述第一 CSE返回网络切换通知指示的响应消息;
此时, 如步骤 310 ( a ), 所述第二 CSE还可暂停第二 AF的数据发送或接 收, 并緩存相应的数据。
具体地, 若确定所述第二 AF为数据发送端, 则以队列的形式緩存所述第 二 AF发送的数据; 或者, 若确定所述第二 AF为数据接收端, 则将最后接收 到的来自所述第一 CSE的数据重复发送给所述第二 AF,或者, 采用降低数据 发送速率的方式将本地缓存的来自所述第一 CSE的数据发送给所述第二 AF, 以此在使得上层应用无法感知底层网络的切换的前提下, 保证数据的可靠传 输。
需要说明的是, 在本发明所述实施例中, 所述步骤 309 ( a )以及步骤 310 ( a ) 为可选步骤, 主要应用于应用之间需要可靠连接、 不允许丢包的场景, 对于应用之间以实时通信为主、 可以接受丟包的场景, 则可无需进行上述步 骤 309 ( a ) 以及步骤 310 ( a )。
再有需要说明的是, 在本发明所述实施例中, 若第一 CSE与第二 CSE之 间底层网络的切换是由网络突然中断等特殊原因所引起的, 则所述第一 CSE 可无需向所述第二 CSE发送网络切换通知指示, 即可无需执行上述步骤 309; 相应地, 此时, 所述第二 CSE可通过默认保持一小段时间的第二应用连接的 连接来进行底层网络连接的恢复。
步骤 311: 第一 CSE解除所述第一会话标识和所述第一应用连接标识之 间的关联关系,并将为第一 CSE与第二 CSE之间的第二会话连接分配的第二 会话连接标识 ( M2M Session ID 2 ) 与所述第一应用连接标识进行关联;
需要说明的是, 在本发明所述实施例中, 第一 CSE可在向所述第二 CSE 发送网络切换通知指示的同时、之前或之后,为所述第一 CSE与所述第二 CSE 之间的第二会话连接分配第二会话连接标识, 本发明实施例对此不作任何限 定。
步骤 312: 第一 CSE通过第二底层网络向第二 CSE发送第三会话建立请 求, 其中携带有第一会话标识、 第二会话标识以及用于指示所述第二 CSE进 行网络切换的网络切换指示等信息;
步骤 313: 第二 CSE接收到所述第三会话建立请求后, 根据第一会话标 识解除所述第一会话标识和所述第二应用连接标识之间的关联关系, 并将所 述第二会话标识与所述第二应用连接标识进行关联;
步骤 314: 第二 CSE向第一 CSE返回第三会话建立响应消息, 完成第二 会话的建立;
步骤 315 ( a ): 若确定第一 AF为数据接收端, 则第一 CSE向第二 CSE 发送最后接收到的来自第二 CSE的数据的标识信息;
步骤 315 ( b ): 若确定第二 AF为数据接收端, 则第二 CSE向第一 CSE 发送最后接收到的来自第一 CSE的数据的标识信息;
需要说明的是, 与步骤 309 ( a ) 以及步骤 310 ( a ) 类似, 在本发明所述 实施例中, 所述步骤 315 ( a ) 以及步骤 315 ( b )也为可选步骤, 主要应用于 应用之间需要可靠连接、 不允许丟包的场景, 对于应用之间以实时通信为主、 可以接受丢包的场景, 则可无需进行上述步驟 315 ( a ) 以及步驟 315 ( b )。
步骤 316: 第一 AF以及第二 AF通过第一应用连接、 第二会话以及第二 应用连接恢复数据的传输。
本发明实施例三提供了一种会话处理方法,第一 CSE与第二 CSE之间进 行底层网络的切换时,通过将用于标识第一 CSE与第二 CSE之间的新的会话 的会话标识与用于标识第一 CSE与第一 AF之间的第一应用连接的第一应用 连接标识以及用于标识第二 CSE与第二 AF之间的第二应用连接的第二应用 连接标识进行关联, 以在保证第一应用连接以及第二应用连接不断开的情况 下, 切换底层网络, 进而实现上层应用之间会话的连续性, 从而较好地解决 了目前存在的用于实现底层网络切换时上层应用之间会话连续性的方式并不 佳的问题, 提高了上层应用之间会话的切换效果。
另外, 在进行底层网络的切换时, 由于 CSE可临时中止并緩存收发双方 的数据, 并通过改变向应用发送数据的速率或者重复最后收到的数据来使应 用不感知底层网络的切换, 以及, 当底层网络切换完成后, CSE 可通过发送 最后收到的数据的标识的方式来保证数据传输的连续性, 因此, 可进一步提 高会话的切换效果, 提高用户的应用体验。 实施例四:
如图 4所示, 其为本发明实施例四中所述 CSE的结构示意图, 所述 CSE 通常可为用于为设定 AF提供相应通信服务的独立网络设备 (如手机、 平板电 脑、 服务器等网络设备)或位于某一网络设备中的集成设备(或集成模块), 本发明实施例对此不作任何限定。
具体地,所述 CSE可以包括第一标识关联模块 11以及第二标识关联模块 12, 其中:
所述第一标识关联模块 11可用于根据第一 AF发送的携带有第二 AF的 标识信息的第一会话建立请求, 将第一会话标识与第一应用连接标识进行关 联, 并向对端 CSE发送携带有所述第一会话标识的第二会话建立请求, 以使 所述对端 CSE将所述第一会话标识与第二应用连接标识进行关联; 其中, 所 述第一会话标识用于标识所述 CSE通过第一底层网络与所述对端 CSE之间建 立的第一会话, 所述第一应用连接标识用于标识所述 CSE与所述第一 AF之 间的第一应用连接, 所述第二应用连接标识用于标识所述对端 CSE与所述第 二 AF之间的第二应用连接;
所述第二标识关联模块 12可用于若确定需将所述第一底层网络切换至第 二底层网络,以通过所述第二底层网络建立与所述对端 CSE之间的第二会话, 则将为所述第二会话分配的第二会话标识与所述第一应用连接标识进行关 联, 并向所述对端 CSE发送携带有所述第二会话标识的第三会话建立请求, 以使所述对端 CSE将所述第二会话标识与所述第二应用连接标识进行关联。
具体地, 在本发明所述实施例中, 所述第一标识关联模块 11可用于在接 收到所述第一 AF发送的携带有所述第二 AF的标识信息的第一会话建立请求 后,根据所述第一会话建立请求中携带的第二 AF的标识信息确定为所述第二 AF提供服务的对端 CSE,并为所述 CSE与所述第一 AF之间的第一应用连接 分配第一应用连接标识, 以及, 将为所述 CSE与所述对端 CSE之间的第一会 话分配的第一会话标识与所述第一应用连接标识进行关联, 即通过关联第一 会话标识以及第一应用连接标识的方式来实现第一会话连接与第一应用连接 之间的关联。
具体地, 所述第一会话标识与所述第一应用连接标识之间的关联关系可 通过建立关联表的形式来实现, 本发明实施例对此不作任何限定。 再有需要 说明的是, 所述第一会话标识通常可由所述 CSE分配, 当然也可由所述对端 CSE分配, 本发明实施例对此也不作任何限定。
进一步地,所述第二会话建立请求中还可携带有第一 AF的标识信息以及 第二 AF的标识信息等信息, 以便所述对端 CSE在接收到所述第二会话建立 请求后, 根据所述第二会话建立请求中携带的第一 AF 的标识信息以及第二 AF的标识信息等信息, 确定待建立会话连接的通信双方, 并将所述第二会话 建立请求中携带的第一会话标识与为所述对端 CSE与所述第二 AF之间的第 二应用连接分配的第二应用连接标识进行关联。
进一步地, 在本发明所述实施例中, 所述第一标识关联模块 11还可用于 在向所述对端 CSE发送第二会话建立请求, 以使所述对端 CSE将所述第一会 话标识与第二应用连接标识进行关联之后 , 接收所述对端 CSE返回的第一会 话建立响应消息, 并在接收到所述第一会话建立响应消息之后, 向所述第一 AF发送第二会话建立响应消息, 以完成所述第一 AF与所述第二 AF之间会 话的建立。
其中, 所述第一会话建立响应消息通常可以是所述对端 CSE在根据接收 到的所述第二会话建立请求, 将所述第二应用连接标识与所述第一会话标识 进行关联, 并建立与所述第二 AF之间的第二应用连接后发送的。
进一步地, 当所述第一标识关联模块 11将所述第二会话建立响应消息发 送至所述第一 AF, 以完成所述第一 AF与所述第二 AF之间的会话的建立后, 所述第一 AF可通过所述第一应用连接、第一会话以及所述第二应用连接与所 述第二 AF进行数据的传输, 其中, 所述第一 AF与所述第二 AF所釆用的具 体数据传输方式与现有技术相同, 本发明实施例对此不作赘述。
进一步地, 所述 CSE还可包括信息收发模块 13, 其中:
所述信息收发模块 13可用于在确定需将所述第一底层网络切换至第二底 层网络之后, 且将所述第二会话标识与所述第一应用连接标识进行关联之前, 若确定所述第一会话仍保持连接状态, 则通过所述第一底层网络向所述对端 CSE发送网络切换通知指示, 通知所述对端 CSE即将进行网络切换, 并接收 所述对端 CSE返回的网络切换通知响应消息; 其中, 所述网络切换通知指示 中可携带有所述第一会话标识、 第一 AF的标识信息以及第二 AF的标识信息 等信息。
相应地,所述第二标识关联模块 12具体可用于根据所述对端 CSE返回的 网络切换通知响应消息 , 解除所述第一会话标识与所述第一应用连接标识之 间的关联关系, 并将所述第二会话标识与所述第一应用连接标识进行关联。
进一步地, 所述第三会话建立请求中还可携带有所述第一会话标识以及 用于指示所述对端 CSE进行网络切换的网络切换指示。
相应地,所述第二标识关联模块 12具体可用于向所述对端 CSE发送所述 第三会话建立请求, 以使所述对端 CSE根据所述第三会话建立请求中携带的 所述网络切换指示, 解除所述第一会话标识和所述第二应用连接标识之间的 关联关系, 并将所述第二会话标识与所述第二应用连接标识进行关联。
进一步地,所述第二标识关联模块 12还可用于在向所述对端 CSE发送所 述第三会话建立请求, 以使所述对端 CSE将所述第二会话标识与所述第二应 用连接标识进行关联之后 ,接收所述对端 CSE返回的第三会话建立响应消息 , 以完成所述 CSE与所述对端 CSE之间的第二会话的建立。
进一步地, 所述 CSE还可包括数据处理模块 14, 其中:
所述数据处理模块 14可用于在确定需将所述第一底层网络切换至第二底 层网络之后, 且使所述对端 CSE将所述第二会话标识与所述第二应用连接标 识进行关联之前, 若确定所述第一 AF为数据发送端, 则緩存所述第一 AF发 送的数据, 此时, 对于所述第一 AF而言, 数据发送动作仍在继续; 或者, 若 确定所述第一 AF为数据接收端, 则将最后接收到的来自所述对端 CSE的数 据重复发送给所述第一 AF, 或者, 采用降低数据发送速率的方式将本地緩存 的来自所述对端 CSE的数据发送给所述第一 AF; 此时, 对于所述第一 AF而 言, 数据接收动作仍在继续, 以此在使得上层应用无法感知底层网络的切换 的前提下, 保证数据的可靠传输。
进一步地, 在本发明所述实施例中, 所述数据处理模块 14还可用于在向 所述对端 CSE发送第三会话建立请求, 以使所述对端 CSE将所述第二会话标 识与所述第二应用连接标识进行关联之后, 若确定所述第一 AF 为数据发送 端,则接收所述对端 CSE发送的最后接收到的来自所述 CSE的数据的标识信 息; 或者, 若确定所述第一 AF为数据接收端, 则向所述对端 CSE发送最后 接收到的来自所述对端 CSE的数据的标识信息, 以保证后续第一 AF以及第 二 AF通过切换后的第二底层网络进行数据传输时的连续性和准确性。
本发明实施例四提供了一种会话处理设备 CSE, 所述 CSE在与对端 CSE 之间进行底层网络的切换时,通过将用于标识所述 CSE与对端 CSE之间的新 的会话的会话标识与用于标识所述 CSE与第一 AF之间的第一应用连接的第 一应用连接标识以及用于标识对端 CSE与第二 AF之间的第二应用连接的第 二应用连接标识进行关联, 以在保证第一应用连接以及第二应用连接不断开 的情况下, 切换底层网络, 进而实现上层应用之间会话的连续性, 从而较好 地解决了目前存在的用于实现底层网絡切换时上层应用之间会话连续性的方 式并不佳的问题, 提高了上层应用之间会话的切换效果。 实施例五:
如图 5所示, 其为本发明实施例五中所述 CSE的结构示意图, 所述 CSE 通常可为用于为设定 AF提供相应通信服务的独立网络设备 (如手机、 平板电 脑、 服务器等网络设备)或位于某一网络设备中的集成设备(或集成模块), 本发明实施例对此不作任何限定。
具体地,所述 CSE可以包括第一标识关联模块 21以及第二标识关联模块 22, 其中:
所述第一标识关联模块 21可用于根据对端 CSE发送的携带有第一会话标 识的第二会话建立请求, 将所述第一会话标识与第二应用连接标识进行关联; 其中, 所述第一会话标识用于标识所述对端 CSE 通过第一底层网络与所述 CSE之间建立的第一会话, 所述第二应用连接标识用于标识所述 CSE与第二 AF之间的第二应用连接, 并且, 所述第二会话建立请求是所述对端 CSE在根 据第一 AF发送的携带有所述第二 AF的标识信息的第一会话建立请求, 将所 述第一会话标识与第一应用连接标识进行关联后发送的, 所述第一应用连接 标识用于标识所述对端 CSE与所述第一 AF之间的第一应用连接;
所述第二标识关联模块 22可用于若接收到所述对端 CSE发送的携带有第 二会话标识的第三会话建立请求, 则根据所述第三会话建立请求, 将所述第 二会话标识与所述第二应用连接标识进行关联, 其中, 所述第三会话建立请 求是所述对端 CSE在确定需将所述第一底层网络切换至第二底层网络时, 将 所述第二会话标识与所述第一应用连接标识进行关联后发送的, 所述第二会 话标识用于标识所述对端 CSE通过所述第二底层网络与所述 CSE之间建立的 第二会话。
具体地, 在本发明所述实施例中, 所述第二会话建立请求中还可携带有 第一 AF的标识信息以及第二 AF的标识信息等信息, 以便所述第一标识关联 模块 21在接收到所述第二会话建立请求后, 根据所述第二会话建立请求中携 带的第一 AF的标识信息以及第二 AF的标识信息等信息, 确定待建立会话连 接的通信双方, 并将所述第二会话建立请求中携带的第一会话标识与为所述 CSE与所述第二 AF之间的第二应用连接分配的第二应用连接标识进行关联。
进一步地, 在本发明所述实施例中, 所述第一标识关联模块 21可用于在 接收到所述第二会话建立请求之后, 通过确定所述第一 AF或所述对端 CSE 是否具备相应的访问权限、 或者确定所述第一会话标识与所述 CSE本地已分 配的其他会话标识是否互不冲突等, 来判断是否允许建立所述第一会话, 并 在判断结果为是时, 为所述 CSE与所述第二 AF之间的第二应用连接分配第 二应用连接标识, 并将所述第二应用连接标识与所述第一会话标识进行关联。
进一步地, 在本发明所述实施例中, 所述第一标识关联模块 21还可用于 在将所述第二应用连接标识与所述第一会话标识进行关联之后, 通过向所述 第二 AF发送第四会话建立请求, 并接收所述第二 AF返回的第四会话建立响 应的方式, 建立与所述第二 AF之间的第二应用连接, 以及, 还可用于在所述 第二应用连接建立成功后, 向所述对端 CSE返回第一会话建立响应消息, 以 使所述对端 CSE在接收到所述第一会话建立响应消息后, 向所述第一 AF发 送第二会话建立响应消息, 来完成所述第一 AF与所述第二 AF之间会话的建 立。
进一步地, 当所述对端 CSE将所述第二会话建立响应消息发送至所述第 一 AF后, 所述第一 AF与所述第二 AF之间的会话成功建立, 此时, 所述第 一 AF可通过所述第一应用连接、第一会话以及所述第二应用连接与所述第二 AF进行数据的传输, 其中, 所采用的具体数据传输方式与现有技术相同, 本 发明实施例对此不作赘述。
进一步地, 所述 CSE还可包括信息收发模块 23, 其中: 所述信息收发模块 23可用于在接收所述对端 CSE发送的携带有第二会话 标识的第三会话建立请求之前,接收所述对端 CSE发送的网络切换通知指示, 并根据所述网络切换通知指示, 保持所述第二应用连接不变, 以及, 向所述 对端 CSE返回网络切换通知响应消息, 以使所述对端 CSE根据所述网络切换 通知响应消息, 解除所述第一会话标识与所述第一应用连接标识之间的关联 关系, 并将所述第二会话标识与所述第一应用连接标识进行关联;
其中, 所述网络切换通知指示是所述对端 CSE在确定需将所述第一底层 网络切换至所述第二底层网络, 且确定所述第一会话仍保持连接状态时, 通 过所述第一底层网络向所述 CSE发送的。
进一步地, 所述第三会话建立请求中还可携带有所述第一会话标识以及 用于指示所述 CSE进行网络切换的网络切换指示;
所述第二标识关联模块 22具体可用于根据所述第三会话建立请求中携带 的所述网络切换指示, 解除所述第一会话标识和所述第二应用连接标识之间 的关联关系, 并将所述第二会话标识与所述第二应用连接标识进行关联。
进一步地, 在本发明所述实施例中, 所述第二标识关联模块 22还可用于 在根据所述第三会话建立请求, 将所述第二会话标识与所述第二应用连接标 识进行关联之后, 向所述对端 CSE返回第三会话建立响应消息, 以完成所述 对端 CSE与所述 CSE之间的第二会话的建立。
进一步地, 所述 CSE还可包括数据处理模块 24, 其中:
所述数据处理模块 24可用于在接收到所述对端 CSE发送的携带有第二会 话标识的第三会话建立请求之后, 且根据所述第三会话建立请求, 将所述第 二会话标识与所述第二应用连接标识进行关联之前,若确定所述第二 AF为数 据发送端, 则緩存所述第二 AF发送的数据; 或者, 若确定所述第二 AF为数 据接收端, 则将最后接收到的来自所述对端 CSE的数据重复发送给所述第二 AF, 或者, 采用降低数据发送速率的方式将本地緩存的来自所述对端 CSE的 数据发送给所述第二 AF, 以此在使得上层应用无法感知底层网络的切换的前 提下, 保证数据的可靠传输。 进一步地,所述数据处理模块 24还可用于在根据所述第三会话建立请求, 将所述第二会话标识与所述第二应用连接标识进行关联之后, 若确定所述第 二 AF为数据发送端,则接收所述对端 CSE发送的最后接收到的来自所述 CSE 的数据的标识信息; 或者, 若确定所述第二 AF为数据接收端, 则向所述对端 CSE发送最后接收到的来自所述对端 CSE的数据的标识信息, 以保证后续第 一 AF以及第二 AF通过切换后的第二底层网络进行数据传输时的连续性和准 确性。
本发明实施例五提供了一种会话处理设备 CSE,所述 CSE与对端 CSE之 间进行底层网络的切换时,通过将用于标识对端 CSE与所述 CSE之间的新的 会话的会话标识与用于标识对端 CSE与第一 AF之间的第一应用连接的第一 应用连接标识以及用于标识所述 CSE与第二 AF之间的第二应用连接的第二 应用连接标识进行关联, 以在保证第一应用连接以及第二应用连接不断开的 情况下, 切换底层网络, 进而实现上层应用之间会话的连续性, 从而较好地 解决了目前存在的用于实现底层网络切换时上层应用之间会话连续性的方式 并不佳的问题, 提高了上层应用之间会话的切换效果。 实施例六:
本发明实施例六提供了一种可用于实现本发明实施例一所示方法的 CSE, 如图 6所示, 其为本发明实施例六中所述 CSE的结构示意图, 为了便 于说明, 仅示出了与本发明实施例六相关的部分, 具体技术细节未揭示的, 请参照图 1或图 3所示的本发明各实施例。
具体地, 所述 CSE通常可用于为设定 AF提供相应通信服务的独立网絡 设备(如手机、 平板电脑、 服务器等网络设备) 或位于某一网络设备中的集 成设备(或集成模块), 本发明实施例对此不作任何限定。 具体地, 本发明实 施例六以所述 CSE为服务器为例进行说明, 图 6示出的是与本发明实施例六 相关的服务器 30的部分结构的框图。
如图 6所示, 所述服务器 30可以包括: 处理器 31等部件。 本领域技术 人员可以理解, 图 6中示出的服务器 30的结构并不构成对服务器的限定, 可 以包括比图示更多或更少的部件, 或者组合某些部件, 或者不同的部件布置, 本发明实施例对此不作任何限定。
下面结合图 6对所述服务器 30的各个构成部件进行具体的介绍: 所述处理器 31可用于根据第一 AF发送的携带有第二 AF的标识信息的 第一会话建立请求, 将第一会话标识与第一应用连接标识进行关联, 并向对 端 CSE发送携带有所述第一会话标识的第二会话建立请求, 以使所述对端 CSE将所述第一会话标识与第二应用连接标识进行关联; 以及,
若确定需将所述第一底层网络切换至第二底层网络, 以通过所述第二底 层网络建立与所述对端 CSE之间的第二会话, 则将为所述第二会话分配的第 二会话标识与所述第一应用连接标识进行关联, 并向所述对端 CSE发送携带 有所述第二会话标识的第三会话建立请求, 以使所述对端 CSE将所述第二会 话标识与所述第二应用连接标识进行关联;
其中, 所述第一会话标识用于标识所述 CSE通过第一底层网络与所述对 端 CSE之间建立的第一会话,所述第一应用连接标识用于标识所述 CSE与所 述第一 AF之间的第一应用连接, 所述第二应用连接标识用于标识所述对端 CSE与所述第二 AF之间的第二应用连接。
具体地, 在本发明所述实施例中, 所述处理器 31可用于在接收到所述第 一 AF发送的携带有所述第二 AF的标识信息的第一会话建立请求后, 根据所 述第一会话建立请求中携带的第二 AF的标识信息确定为所述第二 AF提供服 务的对端 CSE, 并为所述 CSE与所述第一 AF之间的第一应用连接分配第一 应用连接标识, 以及, 将为所述 CSE与所述对端 CSE之间的第一会话分配的 第一会话标识与所述第一应用连接标识进行关联, 即通过关联第一会话标识 以及第一应用连接标识的方式来实现第一会话连接与第一应用连接之间的关 联。
具体地, 所述第一会话标识与所述第一应用连接标识之间的关联关系可 通过建立关联表的形式来实现, 本发明实施例对此不作任何限定。 再有需要 说明的是, 所述第一会话标识通常可由所述 CSE分配, 当然也可由所述对端 CSE分配, 本发明实施例对此也不作任何限定。
进一步地,所述第二会话建立请求中还可携带有第一 AF的标识信息以及 第二 AF的标识信息等信息, 以便所述对端 CSE在接收到所述第二会话建立 请求后, 根据所述第二会话建立请求中携带的第一 AF 的标识信息以及第二 AF的标识信息等信息, 确定待建立会话连接的通信双方, 并将所述第二会话 建立请求中携带的第一会话标识与为所述对端 CSE与所述第二 AF之间的第 二应用连接分配的第二应用连接标识进行关联。
进一步地, 在本发明所述实施例中, 所述处理器 31还可用于在向所述对 端 CSE发送第二会话建立请求, 以使所述对端 CSE将所述第一会话标识与第 二应用连接标识进行关联之后, 接收所述对端 CSE返回的第一会话建立响应 消息 , 并在接收到所述第一会话建立响应消息之后, 向所述第一 AF发送第二 会话建立响应消息, 以完成所述第一 AF与所述第二 AF之间会话的建立。
其中, 所述第一会话建立响应消息通常可以是所述对端 CSE在根据接收 到的所述第二会话建立请求, 将所述第二应用连接标识与所述第一会话标识 进行关联, 并建立与所述第二 AF之间的第二应用连接后发送的。
进一步地, 当所述处理器 31将所述第二会话建立响应消息发送至所述第 一 AF, 以完成所述第一 AF与所述第二 AF之间的会话的建立后, 所述第一 AF 可通过所述第一应用连接、 第一会话以及所述第二应用连接与所述第二 AF进行数据的传输, 其中, 所述第一 AF与所述第二 AF所采用的具体数据 传输方式与现有技术相同, 本发明实施例对此不作赘述。
进一步地, 所述服务器 30还可包括收发器 32, 其中:
所述收发器 32可用于在确定需将所述第一底层网络切换至第二底层网络 之后, 且将所述第二会话标识与所述第一应用连接标识进行关联之前, 若确 定所述第一会话仍保持连接状态, 则通过所述第一底层网络向所述对端 CSE 发送网络切换通知指示, 通知所述对端 CSE即将进行网络切换, 并接收所述 对端 CSE返回的网络切换通知响应消息。 相应地,所述处理器 31具体可用于根据所述对端 CSE返回的网络切换通 知响应消息, 解除所述第一会话标识与所述第一应用连接标识之间的关联关 系, 并将所述第二会话标识与所述第一应用连接标识进行关联。
进一步地, 所述第三会话建立请求中还可携带有所述第一会话标识以及 用于指示所述对端 CSE进行网络切换的网络切换指示;
所述处理器 31具体可用于向所述对端 CSE发送所述第三会话建立请求, 以使所述对端 CSE根据所述第三会话建立请求中携带的所述网络切换指示, 解除所述第一会话标识和所述第二应用连接标识之间的关联关系, 并将所述 第二会话标识与所述第二应用连接标识进行关联。
进一步地,所述处理器 31还可用于在向所述对端 CSE发送所述第三会话 建立请求, 以使所述对端 CSE将所述第二会话标识与所述第二应用连接标识 进行关联之后, 接收所述对端 CSE返回的第三会话建立响应消息, 以完成所 述 CSE与所述对端 CSE之间的第二会话的建立。
进一步地, 为了提高应用之间数据的可靠传输, 降低丟包的可能性, 在 本发明所述实施例中, 所述处理器 31还可用于在确定需将所述第一底层网络 切换至第二底层网络之后, 且使所述对端 CSE将所述第二会话标识与所述第 二应用连接标识进行关联之前, 若确定所述第一 AF为数据发送端, 则緩存所 述第一 AF发送的数据; 或者, 若确定所述第一 AF为数据接收端, 则将最后 接收到的来自所述对端 CSE的数据重复发送给所述第一 AF, 或者, 釆用降低 数据发送速率的方式将本地緩存的来自所述对端 CSE的数据发送给所述第一 AF, 以此在使得上层应用无法感知底层网络的切换的前提下, 保证数据的可 靠传输。
进一步地,所述处理器 31还可用于在向所述对端 CSE发送第三会话建立 请求, 以使所述对端 CSE将所述第二会话标识与所述第二应用连接标识进行 关联之后, 若确定所述第一 AF为数据发送端, 则接收所述对端 CSE发送的 最后接收到的来自所述 CSE的数据的标识信息; 或者, 若确定所述第一 AF 为数据接收端,则向所述对端 CSE发送最后接收到的来自所述对端 CSE的数 据的标识信息, 以保证后续第一 AF以及第二 AF通过切换后的第二底层网络 进行数据传输时的连续性和准确性。
进一步地, 需要说明的是, 所述服务器 30通常还可包括用于对所述处理 器 31或所述收发器 32运行时所需的程序或代码等进行存储的存储器 33 , 本 发明实施例对此不作任何限定。
本发明实施例六提供了一种会话处理设备 CSE, 所述 CSE在与对端 CSE 之间进行底层网络的切换时,通过将用于标识所述 CSE与对端 CSE之间的新 的会话的会话标识与用于标识所述 CSE与第一 AF之间的第一应用连接的第 一应用连接标识以及用于标识对端 CSE与第二 AF之间的第二应用连接的第 二应用连接标识进行关联, 以在保证第一应用连接以及第二应用连接不断开 的情况下, 切换底层网络, 进而实现上层应用之间会话的连续性, 从而较好 地解决了目前存在的用于实现底层网絡切换时上层应用之间会话连续性的方 式并不佳的问题, 提高了上层应用之间会话的切换效果。 实施例七:
本发明实施例七提供了一种可用于实现本发明实施例二所示方法的 CSE, 如图 7所示, 其为本发明实施例七中所述 CSE的结构示意图, 为了便 于说明, 仅示出了与本发明实施例七相关的部分, 具体技术细节未揭示的, 请参照图 2或图 3所示的本发明各实施例。
具体地, 所述 CSE通常可用于为设定 AF提供相应通信服务的独立网络 设备(如手机、 平板电脑、 服务器等网络设备) 或位于某一网络设备中的集 成设备(或集成模块), 本发明实施例对此不作任何限定。 具体地, 本发明实 施例七以所述 CSE为服务器为例进行说明, 图 7示出的是与本发明实施例七 相关的服务器 40的部分结构的框图。
如图 7所示, 所述服务器 40可以包括: 处理器 41等部件。 本领域技术 人员可以理解, 图 7中示出的服务器 40的结构并不构成对服务器的限定, 可 以包括比图示更多或更少的部件, 或者组合某些部件, 或者不同的部件布置, 本发明实施例对此不作任何限定。
下面结合图 7对所述服务器 40的各个构成部件进行具体的介绍: 所述处理器 41可用于根据对端 CSE发送的携带有第一会话标识的第二会 话建立请求, 将所述第一会话标识与第二应用连接标识进行关联, 其中, 所 述第一会话标识用于标识所述对端 CSE通过第一底层网络与所述 CSE之间建 立的第一会话, 所述第二应用连接标识用于标识所述 CSE与第二 AF之间的 第二应用连接, 并且, 所述第二会话建立请求是所述对端 CSE在根据第一 AF 发送的携带有所述第二 AF的标识信息的第一会话建立请求,将所述第一会话 标识与第一应用连接标识进行关联后发送的, 所述第一应用连接标识用于标 识所述对端 CSE与所述第一 AF之间的第一应用连接; 以及,
若接收到所述对端 CSE发送的携带有第二会话标识的第三会话建立请 求, 则根据所述第三会话建立请求, 将所述第二会话标识与所述第二应用连 接标识进行关联, 其中, 所述第三会话建立请求是所述对端 CSE在确定需将 所述第一底层网络切换至第二底层网絡时, 将所述第二会话标识与所述笫一 应用连接标识进行关联后发送的, 所述第二会话标识用于标识所述对端 CSE 通过所述第二底层网络与所述 CSE之间建立的第二会话。
具体地, 在本发明所述实施例中, 所述第二会话建立请求中还可携带有 第一 AF的标识信息以及第二 AF的标识信息等信息, 以便所述处理器 41在 接收到所述第二会话建立请求后, 根据所述第二会话建立请求中携带的第一 AF的标识信息以及第二 AF的标识信息等信息, 确定待建立会话连接的通信 双方, 并将所述第二会话建立请求中携带的第一会话标识与为所述 CSE与所 述第二 AF之间的第二应用连接分配的第二应用连接标识进行关联。
进一步地, 在本发明所述实施例中, 所述处理器 41可用于在接收到所述 第二会话建立请求之后, 通过确定所述第一 AF或所述对端 CSE是否具备相 应的访问权限、 或者确定所述第一会话标识与所述 CSE本地已分配的其他会 话标识是否互不冲突等, 来判断是否允许建立所述第一会话, 并在判断结果 为是时, 为所述 CSE与所述第二 AF之间的第二应用连接分配第二应用连接 标识, 并将所述第二应用连接标识与所述第一会话标识进行关联。
进一步地, 在本发明所述实施例中, 所述处理器 41还可用于在将所述第 二应用连接标识与所述第一会话标识进行关联之后,通过向所述第二 AF发送 第四会话建立请求, 并接收所述第二 AF返回的第四会话建立响应的方式, 建 立与所述第二 AF之间的第二应用连接, 以及,还可用于在所述第二应用连接 建立成功后,向所述对端 CSE返回第一会话建立响应消息,以使所述对端 CSE 在接收到所述第一会话建立响应消息后,向所述第一 AF发送第二会话建立响 应消息, 来完成所述第一 AF与所述第二 AF之间会话的建立。
进一步地, 当所述对端 CSE将所述第二会话建立响应消息发送至所述第 一 AF后, 所述第一 AF与所述第二 AF之间的会话成功建立, 此时, 所述第 一 AF可通过所述第一应用连接、第一会话以及所述第二应用连接与所述第二 AF进行数据的传输, 其中, 所釆用的具体数据传输方式与现有技术相同, 本 发明实施例对此不作赘述。
进一步地, 所述 CSE还可包括收发器 42, 其中:
所述收发器 42可用于在接收所述对端 CSE发送的携带有第二会话标识的 第三会话建立请求之前, 接收所述对端 CSE发送的网络切换通知指示, 并根 据所述网络切换通知指示, 保持所述第二应用连接不变, 以及, 向所述对端 CSE返回网络切换通知响应消息, 以使所述对端 CSE根据所述网络切换通知 响应消息 , 解除所述第一会话标识与所述第一应用连接标识之间的关联关系, 并将所述第二会话标识与所述第一应用连接标识进行关联;
其中, 所述网络切换通知指示是所述对端 CSE在确定需将所述第一底层 网络切换至所述第二底层网络, 且确定所述第一会话仍保持连接状态时, 通 过所述第一底层网络向所述 CSE发送的。
进一步地, 所述处理器 41接收到的所述第三会话建立请求中还可携带有 所述第一会话标识以及用于指示所述 CSE进行网络切换的网络切换指示; 相应地, 所述处理器 41具体可用于根据所述第三会话建立请求中携带的 所述网络切换指示, 解除所述第一会话标识和所述第二应用连接标识之间的 关联关系, 并将所述第二会话标识与所述第二应用连接标识进行关联。
进一步地, 在本发明所述实施例中, 所述处理器 41还可用于在根据所述 第三会话建立请求, 将所述第二会话标识与所述第二应用连接标识进行关联 之后, 向所述对端 CSE返回第三会话建立响应消息, 以完成所述对端 CSE与 所述 CSE之间的第二会话的建立。
进一步地, 为了提高应用之间数据的可靠传输, 降低丢包的可能性, 在 本发明所述实施例中,所述处理器 41还可用于在接收到所述对端 CSE发送的 携带有第二会话标识的第三会话建立请求之后, 且根据所述第三会话建立请 求, 将所述第二会话标识与所述第二应用连接标识进行关联之前, 若确定所 述第二 AF为数据发送端, 则緩存所述第二 AF发送的数据; 或者, 若确定所 述第二 AF为数据接收端, 则将最后接收到的来自所述对端 CSE的数据重复 发送给所述第二 AF, 或者, 釆用降低数据发送速率的方式将本地緩存的来自 所述对端 CSE的数据发送给所述第二 AF,以此在使得上层应用无法感知底层 网络的切换的前提下, 保证数据的可靠传输。
进一步地, 所述处理器 41还可用于在根据所述第三会话建立请求, 将所 述第二会话标识与所述第二应用连接标识进行关联之后, 若确定所述第二 AF 为数据发送端,则接收所述对端 CSE发送的最后接收到的来自所述 CSE的数 据的标识信息; 或者, 若确定所述第二 AF为数据接收端, 则向所述对端 CSE 发送最后接收到的来自所述对端 CSE的数据的标识信息,以保证后续第一 AF 以及第二 AF通过切换后的第二底层网络进行数据传输时的连续性和准确性。
进一步地, 需要说明的是, 所述服务器 40通常还可包括用于对所述处理 器 41或所述收发器 42运行时所需的程序或代码等进行存储的存储器 43 , 本 发明实施例对此不作任何限定。
本发明实施例七提供了一种会话处理设备 CSE,所述 CSE与对端 CSE之 间进行底层网络的切换时,通过将用于标识对端 CSE与所述 CSE之间的新的 会话的会话标识与用于标识对端 CSE与第一 AF之间的第一应用连接的第一 应用连接标识以及用于标识所述 CSE与第二 AF之间的第二应用连接的第二 应用连接标识进行关联, 以在保证第一应用连接以及第二应用连接不断开的 情况下, 切换底层网络, 进而实现上层应用之间会话的连续性, 从而较好地 解决了目前存在的用于实现底层网络切换时上层应用之间会话连续性的方式 并不佳的问题, 提高了上层应用之间会话的切换效果。
本领域技术人员应明白, 本发明的实施例可提供为方法、 装置 (设备)、 或计算机程序产品。 因此, 本发明可采用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明可采用在一个或多个 其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器、 CD-ROM、 光学存储器等) 上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、 装置 (设备) 和计算机程序产 品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图和 / 或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框 的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处 理机或其他可编程数据处理设备的处理器以产生一个机器, 使得通过计算机 或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设 备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存储器 中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个流程或 多个流程和 /或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装栽到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的 处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图 一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例, 但本领域内的技术人员一旦得知了 基本创造性概念, 则可对这些实施例作出另外的变更和修改。 所以, 所附权 利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。 显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离本 发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要 求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。

Claims

权 利 要 求
1、 一种会话处理方法, 其特征在于, 包括:
第一通用服务实体 CSE根据第一应用功能实体 AF发送的携带有第二 AF 的标识信息的第一会话建立请求, 将第一会话标识与第一应用连接标识进行 关联, 并向第二 CSE发送携带有所述第一会话标识的第二会话建立请求, 以 使所述第二 CSE将所述第一会话标识与第二应用连接标识进行关联, 其中, 所述第一会话标识用于标识所述第一 CSE通过第一底层网络与所述第二 CSE 之间建立的第一会话, 所述第一应用连接标识用于标识所述第一 CSE与所述 第一 AF之间的第一应用连接,所述第二应用连接标识用于标识所述第二 CSE 与所述第二 AF之间的第二应用连接; 以及,
若确定需将所述第一底层网络切换至第二底层网络, 以通过所述第二底 层网络建立与所述第二 CSE之间的第二会话, 则将为所述第二会话分配的第 二会话标识与所述第一应用连接标识进行关联, 并向所述第二 CSE发送携带 有所述第二会话标识的第三会话建立请求, 以使所述第二 CSE将所述第二会 话标识与所述第二应用连接标识进行关联。
2、 如权利要求 1所述的会话处理方法, 其特征在于, 在确定需将所述第 一底层网络切换至第二底层网络之后, 且将所述第二会话标识与所述第一应 用连接标识进行关联之前, 所述方法还包括:
若确定所述第一会话仍保持连接状态, 则通过所述第一底层网络向所述 第二 CSE发送网络切换通知指示, 通知所述第二 CSE即将进行网络切换, 并 接收所述第二 CSE返回的网络切换通知响应消息;
将所述第二会话标识与所述第一应用连接标识进行关联, 包括: 根据所述第二 CSE返回的网络切换通知响应消息, 解除所述第一会话标 识与所述第一应用连接标识之间的关联关系, 并将所述第二会话标识与所述 第一应用连接标识进行关联。
3、 如权利要求 1或 2任一所述的会话处理方法, 其特征在于, 在确定需 将所述第一底层网络切换至第二底层网络之后, 且使所述第二 CSE将所述第 二会话标识与所述第二应用连接标识进行关联之前, 所述方法还包括:
若确定所述第一 AF为数据发送端, 则緩存所述第一 AF发送的数据; 或 者,
若确定所述第一 AF为数据接收端,则将最后接收到的来自所述第二 CSE 的数据重复发送给所述第一 AF, 或者, 采用降低数据发送速率的方式将本地 緩存的来自所述第二 CSE的数据发送给所述第一 AF。
4、 如权利要求 1或 2任一所述的会话处理方法, 其特征在于, 所述第三 会话建立请求中还携带有所述第一会话标识以及用于指示所述第二 CSE进行 网络切换的网络切换指示;
向所述第二 CSE发送所述第三会话建立请求, 以使所述第二 CSE将所述 第二会话标识与所述第二应用连接标识进行关联, 包括:
向所述第二 CSE发送所述第三会话建立请求, 以使所述第二 CSE根据所 述第三会话建立请求中携带的所述网絡切换指示, 解除所述第一会话标识和 所述第二应用连接标识之间的关联关系, 并将所述第二会话标识与所述第二 应用连接标识进行关联。
5、 如权利要求 3所述的会话处理方法, 其特征在于, 在向所述第二 CSE 发送第三会话建立请求, 以使所述第二 CSE将所述第二会话标识与所述第二 应用连接标识进行关联之后, 所述方法还包括:
若确定所述第一 AF为数据发送端, 则接收所述第二 CSE发送的最后接 收到的来自所述第一 CSE的数据的标识信息; 或者,
若确定所述第一 AF为数据接收端, 则向所述第二 CSE发送最后接收到 的来自所述第二 CSE的数据的标识信息。
6、 一种会话处理方法, 其特征在于, 包括:
第二通用服务实体 CSE根据第一 CSE发送的携带有第一会话标识的第二 会话建立请求, 将所述第一会话标识与第二应用连接标识进行关联, 其中, 所述第一会话标识用于标识所述第一 CSE通过第一底层网络与所述第二 CSE 之间建立的第一会话, 所述第二应用连接标识用于标识所述第二 CSE与第二 应用功能实体 AF之间的第二应用连接, 并且, 所述第二会话建立请求是所述 第一 CSE在根据第一 AF发送的携带有所述第二 AF的标识信息的第一会话建 立请求, 将所述第一会话标识与第一应用连接标识进行关联后发送的, 所述 第一应用连接标识用于标识所述第一 CSE与所述第一 AF之间的第一应用连 接; 以及,
若接收到所述第一 CSE发送的携带有第二会话标识的第三会话建立请 求, 则根据所述第三会话建立请求, 将所述第二会话标识与所述第二应用连 接标识进行关联, 其中, 所述第三会话建立请求是所述第一 CSE在确定需将 所述第一底层网络切换至第二底层网络时, 将所述第二会话标识与所述第一 应用连接标识进行关联后发送的, 所述第二会话标识用于标识所述第一 CSE 通过所述第二底层网絡与所述第二 CSE之间建立的第二会话。
7、 如权利要求 6 所述的会话处理方法, 其特征在于, 在接收所述第一 CSE发送的携带有笫二会话标识的第三会话建立请求之前, 所述方法还包括: 接收所述第一 CSE发送的网络切换通知指示, 其中, 所述网络切换通知 指示是所述第一 CSE 在确定需将所述第一底层网络切换至所述第二底层网 络, 且确定所述第一会话仍保持连接状态时, 通过所述第一底层网络向所述 第二 CSE发送的;
根据所述网络切换通知指示, 保持所述第二应用连接不变, 并向所述第 一 CSE返回网络切换通知响应消息, 以使所述第一 CSE根据所述网络切换通 知响应消息, 解除所述第一会话标识与所述第一应用连接标识之间的关联关 系, 并将所述第二会话标识与所述第一应用连接标识进行关联。
8、 如权利要求 6或 7任一所述的会话处理方法, 其特征在于, 在接收到 所述第一 CSE发送的携带有第二会话标识的第三会话建立请求之后, 且根据 所述第三会话建立请求, 将所述第二会话标识与所述第二应用连接标识进行 关联之前, 所述方法还包括:
若确定所述第二 AF为数据发送端, 则緩存所述第二 AF发送的数据; 或 者,
若确定所述第二 AF为数据接收端,则将最后接收到的来自所述第一 CSE 的数据重复发送给所述第二 AF, 或者, 采用降低数据发送速率的方式将本地 緩存的来自所述第一 CSE的数据发送给所述第二 AF。
9、 如权利要求 6或 7任一所述的会话处理方法, 其特征在于, 所述第三 会话建立请求中还携带有所述第一会话标识以及用于指示所述第二 CSE进行 网络切换的网络切换指示;
根据所述第三会话建立请求, 将所述第二会话标识与所述第二应用连接 标识进行关联, 包括:
根据所述第三会话建立请求中携带的所述网络切换指示, 解除所述第一 会话标识和所述第二应用连接标识之间的关联关系, 并将所述第二会话标识 与所述第二应用连接标识进行关联。
10、 如权利要求 8 所述的会话处理方法, 其特征在于, 在根据所述第三 会话建立请求, 将所述第二会话标识与所述第二应用连接标识进行关联之后, 所述方法还包括:
若确定所述第二 AF为数据发送端, 则接收所述第一 CSE发送的最后接 收到的来自所述第二 CSE的数据的标识信息; 或者,
若确定所述第二 AF为数据接收端, 则向所述第一 CSE发送最后接收到 的来自所述第一 CSE的数据的标识信息。
11、 一种通用服务实体 CSE, 其特征在于, 包括:
第一标识关联模块, 用于根据第一应用功能实体 AF发送的携带有第二 AF的标识信息的第一会话建立请求, 将第一会话标识与第一应用连接标识进 行关联, 并向对端 CSE发送携带有所述第一会话标识的第二会话建立请求, 以使所述对端 CSE将所述第一会话标识与第二应用连接标识进行关联,其中, 所述第一会话标识用于标识所述 CSE通过第一底层网络与所述对端 CSE之间 建立的第一会话, 所述第一应用连接标识用于标识所述 CSE与所述第一 AF 之间的第一应用连接, 所述第二应用连接标识用于标识所述对端 CSE与所述 第二 AF之间的第二应用连接;
第二标识关联模块, 用于若确定需将所述第一底层网络切换至第二底层 网络, 以通过所述第二底层网络建立与所述对端 CSE之间的第二会话, 则将 为所述第二会话分配的第二会话标识与所述第一应用连接标识进行关联, 并 向所述对端 CSE发送携带有所述第二会话标识的第三会话建立请求, 以使所 述对端 CSE将所述第二会话标识与所述第二应用连接标识进行关联。
12、 如权利要求 11所述的 CSE, 其特征在于, 所述 CSE还包括信息收发 模块:
所述信息收发模块, 用于在确定需将所述第一底层网络切换至第二底层 网络之后, 且将所述第二会话标识与所述第一应用连接标识进行关联之前, 若确定所述第一会话仍保持连接状态, 则通过所述第一底层网络向所述对端 CSE发送网络切换通知指示, 通知所述对端 CSE即将进行网络切换, 并接收 所述对端 CSE返回的网络切换通知响应消息;
所述第二标识关联模块, 具体用于根据所述对端 CSE返回的网络切换通 知响应消息, 解除所述第一会话标识与所述第一应用连接标识之间的关联关 系, 并将所述第二会话标识与所述第一应用连接标识进行关联。
13、 如权利要求 11或 12任一所述的 CSE, 其特征在于, 所述 CSE还包 括数据处理模块:
所述数据处理模块, 用于在确定需将所述第一底层网络切换至第二底层 网络之后, 且使所述对端 CSE将所述第二会话标识与所述第二应用连接标识 进行关联之前, 若确定所述第一 AF为数据发送端, 则緩存所述第一 AF发送 的数据; 或者, 若确定所述第一 AF为数据接收端, 则将最后接收到的来自所 述对端 CSE的数据重复发送给所述第一 AF,或者, 采用降低数据发送速率的 方式将本地緩存的来自所述对端 CSE的数据发送给所述第一 AF。
14、 如权利要求 11或 12任一所述的 CSE, 其特征在于, 所述第三会话 建立请求中还携带有所述第一会话标识以及用于指示所述对端 CSE进行网络 切换的网络切换指示; 所述第二标识关联模块, 具体用于向所述对端 CSE发送所述第三会话建 立请求, 以使所述对端 CSE根据所述第三会话建立请求中携带的所述网络切 换指示, 解除所述第一会话标识和所述第二应用连接标识之间的关联关系, 并将所述第二会话标识与所述第二应用连接标识进行关联。
15、 如权利要求 13所述的 CSE, 其特征在于,
所述数据处理模块, 还用于在向所述对端 CSE发送第三会话建立请求, 以使所述对端 CSE将所述第二会话标识与所述第二应用连接标识进行关联之 后, 若确定所述第一 AF为数据发送端, 则接收所述对端 CSE发送的最后接 收到的来自所述 CSE的数据的标识信息; 或者, 若确定所述第一 AF为数据 接收端,则向所述对端 CSE发送最后接收到的来自所述对端 CSE的数据的标 识信息。
16、 一种通用服务实体 CSE, 其特征在于, 包括:
第一标识关联模块, 用于根据对端 CSE发送的携带有第一会话标识的第 二会话建立请求, 将所述第一会话标识与第二应用连接标识进行关联, 其中, 所述第一会话标识用于标识所述对端 CSE通过第一底层网络与所述 CSE之间 建立的第一会话, 所述第二应用连接标识用于标识所述 CSE与第二应用功能 实体 AF之间的第二应用连接, 并且,所述第二会话建立请求是所述对端 CSE 在根据第一 AF发送的携带有所述第二 AF的标识信息的第一会话建立请求, 将所述第一会话标识与第一应用连接标识进行关联后发送的 , 所述第一应用 连接标识用于标识所述对端 CSE与所述第一 AF之间的第一应用连接;
第二标识关联模块, 用于若接收到所述对端 CSE发送的携带有第二会话 标识的第三会话建立请求, 则根据所述第三会话建立请求, 将所述第二会话 标识与所述第二应用连接标识进行关联, 其中, 所述第三会话建立请求是所 述对端 CSE在确定需将所述第一底层网络切换至第二底层网络时, 将所述第 二会话标识与所述第一应用连接标识进行关联后发送的, 所述第二会话标识 用于标识所述对端 CSE通过所述第二底层网络与所述 CSE之间建立的第二会 话。
17、 如权利要求 16所述的 CSE, 其特征在于, 所述 CSE还包括信息收 发模块:
所述信息收发模块, 用于在接收所述对端 CSE发送的携带有第二会话标 识的第三会话建立请求之前, 接收所述对端 CSE发送的网絡切换通知指示, 并根据所述网络切换通知指示, 保持所述第二应用连接不变, 以及, 向所述 对端 CSE返回网络切换通知响应消息, 以使所述对端 CSE根据所述网络切换 通知响应消息, 解除所述第一会话标识与所述第一应用连接标识之间的关联 关系, 并将所述第二会话标识与所述第一应用连接标识进行关联;
其中, 所述网络切换通知指示是所述对端 CSE在确定需将所述第一底层 网络切换至所述第二底层网络, 且确定所述第一会话仍保持连接状态时, 通 过所述第一底层网络向所述 CSE发送的。
18、 如权利要求 16或 17任一所述的 CSE, 其特征在于, 所述 CSE还包 括数据处理模块:
所述数据处理模块, 用于在接收到所述对端 CSE发送的携带有第二会话 标识的第三会话建立请求之后, 且根据所述第三会话建立请求, 将所述第二 会话标识与所述第二应用连接标识进行关联之前,若确定所述第二 AF为数据 发送端, 则緩存所述第二 AF发送的数据; 或者, 若确定所述第二 AF为数据 接收端, 则将最后接收到的来自所述对端 CSE 的数据重复发送给所述第二 AF, 或者, 采用降低数据发送速率的方式将本地緩存的来自所述对端 CSE的 数据发送给所述第二 AF。
19、 如权利要求 16或 17任一所述的 CSE, 其特征在于, 所述第三会话 建立请求中还携带有所述第一会话标识以及用于指示所述 CSE进行网络切换 的网络切换指示;
所述第二标识关联模块, 具体用于根据所述第三会话建立请求中携带的 所述网络切换指示, 解除所述第一会话标识和所述第二应用连接标识之间的 关联关系, 并将所述第二会话标识与所述第二应用连接标识进行关联。
20、 如权利要求 18所述的 CSE, 其特征在于, 所述数据处理模块, 还用于在根据所述第三会话建立请求, 将所述第二 会话标识与所述第二应用连接标识进行关联之后,若确定所述第二 AF为数据 发送端,则接收所述对端 CSE发送的最后接收到的来自所述 CSE的数据的标 识信息; 或者, 若确定所述第二 AF为数据接收端, 则向所述对端 CSE发送 最后接收到的来自所述对端 CSE的数据的标识信息。
PCT/CN2013/090247 2013-12-23 2013-12-23 一种会话处理方法及设备 WO2015096012A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380076099.7A CN105264858B (zh) 2013-12-23 2013-12-23 一种会话处理方法及设备
PCT/CN2013/090247 WO2015096012A1 (zh) 2013-12-23 2013-12-23 一种会话处理方法及设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/090247 WO2015096012A1 (zh) 2013-12-23 2013-12-23 一种会话处理方法及设备

Publications (1)

Publication Number Publication Date
WO2015096012A1 true WO2015096012A1 (zh) 2015-07-02

Family

ID=53477293

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/090247 WO2015096012A1 (zh) 2013-12-23 2013-12-23 一种会话处理方法及设备

Country Status (2)

Country Link
CN (1) CN105264858B (zh)
WO (1) WO2015096012A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018006878A1 (zh) * 2016-07-08 2018-01-11 中兴通讯股份有限公司 会话连续的实现方法、装置及系
WO2020048194A1 (zh) * 2018-09-04 2020-03-12 京东方科技集团股份有限公司 用于在通用服务实体上进行任务处理的方法、通用服务实体、进行任务处理的装置和介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090567A (zh) * 2006-09-25 2007-12-19 中兴通讯股份有限公司 语音呼叫连续性业务中的终呼业务实现方法
CN101170758A (zh) * 2006-10-25 2008-04-30 华为技术有限公司 用户设备及用户设备在不同ip网络间切换的方法
CN101291534A (zh) * 2008-05-23 2008-10-22 中兴通讯股份有限公司 一种由传输设备触发资源控制系统保证会话连续性的方法
CN101374256A (zh) * 2007-08-20 2009-02-25 华为技术有限公司 一种处理会话中媒体流连续性的方法、装置及系统
CN101547430A (zh) * 2008-03-24 2009-09-30 华为技术有限公司 一种会话方法、设备和系统
CN101651896A (zh) * 2008-08-15 2010-02-17 中兴通讯股份有限公司 一种多媒体会话的关联方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090567A (zh) * 2006-09-25 2007-12-19 中兴通讯股份有限公司 语音呼叫连续性业务中的终呼业务实现方法
CN101170758A (zh) * 2006-10-25 2008-04-30 华为技术有限公司 用户设备及用户设备在不同ip网络间切换的方法
CN101374256A (zh) * 2007-08-20 2009-02-25 华为技术有限公司 一种处理会话中媒体流连续性的方法、装置及系统
CN101547430A (zh) * 2008-03-24 2009-09-30 华为技术有限公司 一种会话方法、设备和系统
CN101291534A (zh) * 2008-05-23 2008-10-22 中兴通讯股份有限公司 一种由传输设备触发资源控制系统保证会话连续性的方法
CN101651896A (zh) * 2008-08-15 2010-02-17 中兴通讯股份有限公司 一种多媒体会话的关联方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018006878A1 (zh) * 2016-07-08 2018-01-11 中兴通讯股份有限公司 会话连续的实现方法、装置及系
US11006326B2 (en) 2016-07-08 2021-05-11 Zte Corporation Method, device, and system for implementing session continuity
WO2020048194A1 (zh) * 2018-09-04 2020-03-12 京东方科技集团股份有限公司 用于在通用服务实体上进行任务处理的方法、通用服务实体、进行任务处理的装置和介质
US11700189B2 (en) 2018-09-04 2023-07-11 Boe Technology Group Co., Ltd. Method for performing task processing on common service entity, common service entity, apparatus and medium for task processing

Also Published As

Publication number Publication date
CN105264858A (zh) 2016-01-20
CN105264858B (zh) 2019-03-08

Similar Documents

Publication Publication Date Title
US11184805B2 (en) Quality of service control method and related device
WO2018141284A1 (zh) 一种QoS流处理方法、设备和通信系统
CN109600802B (zh) 数据传输方法、相关设备及系统
JP5113684B2 (ja) アクセスゲートウェイ装置の制御方法及び通信システム
WO2016070333A1 (zh) 一种移动性管理的方法、装置及系统
CN109842643B (zh) 一种会话处理的方法、装置及系统
US10624145B2 (en) Service transmission method, apparatus, and device
WO2019076306A1 (zh) 数据传输通道的处理方法、装置和系统
WO2015027927A1 (zh) 一种通信切换、建立方法及设备
CN110831094B (zh) 一种数据传输通道的处理方法及装置
CN110650504A (zh) 一种会话处理方法及装置
US10945180B2 (en) Mobility management method, apparatus, and system
WO2018233419A1 (zh) 一种信息处理方法及装置
KR20130137859A (ko) 모바일 컨텐츠 센트릭 네트워크에서 핸드오버를 위한 방법 및 장치
WO2018233451A1 (zh) 通信方法、装置和系统
WO2015180141A1 (zh) 一种业务路径变更方法及装置
JP7123138B2 (ja) 通信方法及び通信装置
EP2850912B1 (en) Efficient distribution of signaling messages in a mobility access gateway or local mobility anchor
WO2012065475A1 (zh) 分组交换域业务处理方法及装置
WO2015096012A1 (zh) 一种会话处理方法及设备
WO2018006359A1 (zh) 一种本地网关之间建立隧道的方法及网关
WO2017008701A1 (zh) 数据传输方法、装置及用户设备
JP5621622B2 (ja) 通信システム、通信端末、ゲートウェイ、通信方法及びプログラム
WO2017113047A1 (zh) 一种pdn连接的释放方法、装置及用户设备
WO2015013883A1 (zh) 一种数据传输方法及设备

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201380076099.7

Country of ref document: CN

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

Ref document number: 13900403

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

Country of ref document: EP

Kind code of ref document: A1