WO2017198158A1 - Session management method, device and system - Google Patents

Session management method, device and system Download PDF

Info

Publication number
WO2017198158A1
WO2017198158A1 PCT/CN2017/084589 CN2017084589W WO2017198158A1 WO 2017198158 A1 WO2017198158 A1 WO 2017198158A1 CN 2017084589 W CN2017084589 W CN 2017084589W WO 2017198158 A1 WO2017198158 A1 WO 2017198158A1
Authority
WO
WIPO (PCT)
Prior art keywords
session
identifier
network node
management device
creation
Prior art date
Application number
PCT/CN2017/084589
Other languages
French (fr)
Chinese (zh)
Inventor
陈力
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017198158A1 publication Critical patent/WO2017198158A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1083In-session procedures
    • H04L65/1086In-session procedures session scope modification

Definitions

  • the present application relates to, but is not limited to, wireless communication technologies, and more particularly to a method, device and system for session management.
  • the Open System Interconnection (OSI) reference model divides the communication functions of the network into seven levels, and also defines the relationship between each level and the services and functions included in each level. .
  • the seven levels of the OSI model are, from low to high, the physical layer, the data link layer, the network layer, the transport layer, the session layer, the presentation layer, and the application layer.
  • the main function of the session layer is to establish, maintain and release the connection to the user between the two nodes, and manage and control the session to ensure reliable transmission of session data.
  • the session connection process is not separately reflected, but is directly included in the description of the application layer protocol.
  • the session relationship is maintained by the application layer of the network communication node and the session process is included in the application layer protocol. This phenomenon will increase the number of session relationships between communication nodes, which will make the application layer difficult to maintain, greatly increasing the burden of the application layer; and because the session connection process should be considered during the application layer protocol development process, the protocol development will be greatly increased. And the workload of the later development and maintenance process.
  • the embodiments of the present invention are expected to provide a method, device, and system for session management, which can reduce the burden of the application layer and reduce the workload of network protocol formulation and post-maintenance.
  • an embodiment of the present invention provides a method for session management, where the method is applied to a session management device that is additionally set in a network node in a network architecture, and the method includes:
  • the session management device receives a session service request sent by the session service initiation node, where the session service request includes a session service initiation node identifier and session information;
  • the session management device responds to the session service request according to a first correspondence between the session identifier and the session service originating node;
  • the session management device sends a response message corresponding to the session service request to the session service initiation node.
  • the session management device responds to the session service request according to the first correspondence between the session identifier and the session service initiation node, including:
  • the session management device receives the creation confirmation message sent by the second network node, and establishes a second correspondence between the session identifier and the session type, the first network node identifier, and the second network node identifier according to the create confirmation message.
  • the creation confirmation message includes the session identifier;
  • the session management device sends a response message corresponding to the session service request to the session service initiation node, including:
  • the session management device sends a session creation response message to the first network node; wherein the session creation response message includes the session identifier.
  • the method further includes:
  • the session management device forwards the session content to the second network node according to the session identifier and the second correspondence, where the forwarding message includes the session identifier and the session content.
  • the session management device modifies the corresponding second correspondence according to the session modification request
  • the session management device sends a session modification response to the first network node.
  • the session management device sends a session deletion indication to the second network node, where the session deletion indication includes a session identifier to be deleted;
  • the session management device deletes the corresponding second correspondence according to the session identifier to be deleted, and sends a session deletion response message to the first network node, where the session deletion response message includes the The session ID to be deleted.
  • the session management device is a session management device additionally set in a network node in the network architecture;
  • the session service request includes a first network node identifier and session information;
  • the session service request includes: a session creation request; wherein the session service initiation node identifier is: an identifier of the first network node that is a session service initiator, and the session information includes a session type.
  • the session creation request further includes an identifier of a second network node that is a target end of the session service;
  • the response message correspondingly sent for the session service request includes a session creation response message; wherein the session creation response message includes a session identifier.
  • the method further includes:
  • the first network node sends a session message to the session management device; wherein the session message includes the session identifier and session content.
  • the method further includes:
  • the first network node receives a session modification response sent by the session management device.
  • the first network node deletes the application context corresponding to the session identifier to be deleted.
  • the session management device is a session management device additionally set in a network node in the network architecture;
  • the session creation indication includes a session identifier and a session type;
  • the method further includes:
  • the second network node delivers the session content to its corresponding application context according to the session identifier for processing.
  • the second network node deletes the application context corresponding to the session identifier to be deleted, and returns a session deletion confirmation message to the session management device, where the session deletion confirmation message includes the to-be-deleted Session ID.
  • an embodiment of the present invention provides a session management device, where the session management device includes: a first receiving module, a response module, and a first sending module;
  • the session service request includes a session creation request, where the session service initiation node identifier is: an identifier of the first network node that is a session service initiator, and the session information includes a session type.
  • the session creation request further includes an identifier of the second network node that is the target end of the session service;
  • the response module is configured to set a corresponding session identifier for the session creation request, and establish a relationship between the session identifier and the session type and the first network node identifier according to the session creation request.
  • the session management device further includes a modification module
  • the first receiving module is further configured to receive a session modification request sent by the first network node, where the session modification request includes the session identifier and content to be modified;
  • the modifying module is configured to modify the corresponding second correspondence according to the session modification request
  • the first sending module is configured to send a session modification response to the first network node.
  • the session management device further includes a first deletion module
  • the first receiving module is further configured to receive a session deletion request sent by the first network node, where the session deletion request includes a session identifier to be deleted;
  • the first sending module is further configured to send a session deletion indication to the second network node, where the session deletion indication includes a session identifier to be deleted;
  • the first receiving module is further configured to receive a session deletion returned by the second network node a confirmation message; wherein the session deletion confirmation message includes a session identifier to be deleted;
  • the first deleting module is configured to delete the corresponding second correspondence according to the session identifier to be deleted;
  • the first sending module is further configured to send a session deletion response message to the first network node, where the session deletion response message includes the session identifier to be deleted.
  • the second sending module is configured to send a session service request to the session management device, where the session management device is a session management device additionally set in a network node in the network architecture; the session service request includes a first network node Identification and session information;
  • the second receiving module is configured to receive a session creation response message sent by the session management device, where the session creation response message includes a session identifier.
  • the second sending module is further configured to send a session message to the session management device, where the session message includes the session identifier and session content.
  • the second sending module is further configured to send a session modification request to the session management device, where the session modification request includes the session identifier and content to be modified;
  • the second receiving module is further configured to receive a session modification response sent by the session management device.
  • the second sending module is further configured to send a session deletion request to the session management device, where the session deletion request includes a session identifier to be deleted;
  • the second receiving module is further configured to receive a session deletion response message sent by the session management device, where the session deletion response message includes a session identifier to be deleted;
  • the second deletion module is configured to delete the application context corresponding to the session identifier to be deleted by the first network node itself.
  • the embodiment of the present invention provides a second network node, where the second network node includes: a third receiving module, a session context processing module, and a third sending module;
  • the third receiving module is configured to receive a session creation indication sent by the session management device, where the session management device is a session management device additionally set in a network node in the network architecture; the session creation indication includes a session identifier And the type of session;
  • the session context processing module is configured to establish a corresponding session context creation according to the session creation indication
  • the third sending module is configured to feed back a create confirmation message to the session management device, where the create confirmation message includes a session identifier.
  • the third receiving module is further configured to receive a forwarding message sent by the session management device, where the forwarding message includes the session identifier and session content;
  • the session context processing module is further configured to process the session content to the corresponding application context according to the session identifier.
  • the third receiving module is further configured to receive a session deletion indication sent by the session management device, where the session deletion indication includes a session identifier to be deleted;
  • the session context processing module is further configured to delete the application context corresponding to the session identifier to be deleted by the second network node itself, and return a session deletion confirmation message to the session management device;
  • the session deletion confirmation message includes the session identifier to be deleted.
  • the embodiment of the present invention provides a session management system, where the system includes: a session management device, and a first network node that is a session service initiator;
  • the session management device is configured to receive a session service request sent by the first network node;
  • the session service request includes a first network node identifier and session information.
  • the first network node is configured to send a session service request to the session management device
  • an embodiment of the present invention provides a computer readable storage medium storing computer executable instructions, the method for implementing the session management when the computer executable instructions are executed by a processor.
  • the embodiments of the present invention provide a method, a device, and a system for session management.
  • the session layer management and the application layer protocol are decoupled, and the session relationship is uniformly maintained, thereby reducing the session relationship.
  • the burden of the application layer and reduce the workload of network protocol development and post-maintenance.
  • FIG. 1 is a schematic diagram of a topology structure of a session connection relationship between network nodes
  • FIG. 2 is a schematic diagram of a SAE architecture
  • FIG. 3 is a schematic diagram of a topology structure of a session connection relationship between network nodes according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart diagram of a session management method according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic flowchart of a session creation according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a session communication according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic flowchart of a session modification according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic flowchart of a process for deleting a session according to an embodiment of the present disclosure
  • FIG. 9 is a schematic flowchart of a session management according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a path for a session management device to respond to a session service request according to an embodiment of the present invention
  • FIG. 11 is a schematic flowchart of a session communication according to an embodiment of the present invention.
  • FIG. 12 is a schematic flowchart of a session modification according to an embodiment of the present invention.
  • FIG. 13 is a schematic flowchart of a session deletion according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic flowchart of another session management according to an embodiment of the present invention.
  • FIG. 15 is a schematic flowchart of another session modification according to an embodiment of the present invention.
  • FIG. 16 is a schematic flowchart of another session deletion according to an embodiment of the present disclosure.
  • FIG. 17 is a schematic flowchart of still another session management according to an embodiment of the present invention.
  • FIG. 18 is a schematic flowchart of still another session communication according to an embodiment of the present invention.
  • FIG. 19 is a schematic flowchart of still another session deletion according to an embodiment of the present invention.
  • FIG. 20 is a schematic structural diagram of a session management device according to an embodiment of the present disclosure.
  • FIG. 21 is a schematic structural diagram of another session management device according to an embodiment of the present disclosure.
  • FIG. 22 is a schematic structural diagram of a first network node according to an embodiment of the present disclosure.
  • FIG. 23 is a schematic structural diagram of another first network node according to an embodiment of the present disclosure.
  • FIG. 24 is a schematic structural diagram of a second network node according to an embodiment of the present disclosure.
  • FIG. 25 is a schematic structural diagram of a session management system according to an embodiment of the present invention.
  • the session connection relationship between the network nodes can be as shown in FIG. 1, and the two network nodes are The connection relationship between the sessions is maintained and managed by the respective applications. It can be seen that the current session connection relationship between the network nodes belongs to a point-to-point connection relationship.
  • SAE System Architecture Evolution
  • Figure 2 Taking the current network architecture as an example, as shown in the System Architecture Evolution (SAE) architecture shown in Figure 2, it can be seen that the number of network nodes in the architecture is limited. Therefore, the session connection between network nodes is not The application layer of the system architecture creates a significant burden. However, with the richer types of services carried by the network in the future, such as virtual reality, tactile Internet, and Internet of Things, the session connection relationship of network nodes based on the current network architecture will not meet the throughput brought by these various services. Diversified requirements such as delay, reliability, and connection density.
  • SAE System Architecture Evolution
  • the embodiment of the present invention is based on the basic requirements of the application layer of each network communication node in the current network architecture, and sets an additional session management device.
  • the additionally set session management device is used as a central node, and
  • the network node that needs the session connection connects the session to the central node of the session management device in a point-to-point manner, thereby forming a session connection relationship of the star topology, and any two network nodes in the star topology
  • the session connection is controlled by the session management device as a central node, so that the session between the communication nodes can be uniformly maintained and managed, thereby reducing the burden on the application layer and reducing the workload of network protocol formulation and post-maintenance.
  • a method for managing a session according to an embodiment of the present invention is shown.
  • the method can be applied to the topology of a session connection relationship shown in FIG. 3.
  • the session management device is used. Is additionally set, the method can include:
  • S401 The first network node sends a session service request to the session management device.
  • the first network node is used as the session service initiator, and the sent session service request may include the identifier of the first network node and session information.
  • the session management device responds to the session service request according to the first correspondence between the session identifier and the session service initiation node.
  • the session management device sends a response message corresponding to the session service request to the first network node.
  • the session service request is of a variety of types, and may include a session creation request, where the session creation request identifier is an identifier of the first network node that is the session service initiator, and the session information is Including a session type, the session creation request further includes an identifier of the second network node that is the target end of the session service; therefore, the implementation of the technical solution may be as shown in FIG. 5,
  • S501 The first network node sends a session creation request to the session management device.
  • the first network node is the initiator of the session creation, and initiates a session to the second network node that is the target end of the creation session. Therefore, based on the topology of the session connection shown in FIG. 3, the session creation request can be sent to the session management device without directly sending a session creation request to the target end of the creation session.
  • the session creation request may include: an identifier of the first network node as the initiator, a session type, and an identifier of the second network node as the target end;
  • the first network node identifier may be the transport layer address information of the first network node, and may include the displayed address information, such as an IP address and a session port of the first network node, or may be an implicit address information. For example, a Uniform Resource Locator (URL) that needs to be converted by a Domain Name System (DNS);
  • URL Uniform Resource Locator
  • DNS Domain Name System
  • the session type is related to the application for the session.
  • the main purpose is to inform the session type created by the second node as the target end, for example, the node type or the user level session type, or further extend the session type according to the actual application;
  • the second network node identifier may be the transport layer address information of the second network node, and may include the displayed address information, such as the IP address of the second network node and the session port (Port); or may be implicit address information, such as A URL (Uniform Resource Locator) that is converted by a DNS (Domain Name System); or a node type that is only a target end, so that a session creation request can be sent to the network architecture.
  • the load balancing module corresponding to the specified node type selects a second network node as the target end from the cluster of the target end node through the load balancing module.
  • the session management device sets a corresponding session identifier for the session creation request, and establishes a first correspondence between the session identifier and the session type and the first network node identifier according to the session creation request.
  • the session management device may establish a corresponding session record for the session creation request; the session management device may be a correspondence relationship table, and the session management device allocates a primary key Session Id, that is, the session identifier, to the correspondence relationship table for the session creation request. And, the session management device can obtain the session type (Session Type) and the first network node identifier (Peer TnlAddr1) by parsing the session creation request; and in the correspondence table, the assigned primary key and session type and the first The network node identifier establishes a correspondence, which is enumerated and not limited.
  • the correspondence table can be as shown in Table 1:
  • the form of the Session Id can be in the form of a number (Number); the Session Type can be in the form of an enumeration (Enum), and the session management device can select a corresponding session type from the existing enumeration alternatives;
  • Peer TnlAddr1 can It is an IP address and a session port (Port) form;
  • the correspondence table may further include a second network node identifier (Peer TnlAddr2), and other fields (Ext) extended according to the session management needs of the application;
  • the second network node that is the target end does not know the session creation request, so the session management device may leave the Peer TnlAddr2 in the correspondence table as shown in Table 1 at this time, and the corresponding relationship table in the session record indicates The content is the first correspondence.
  • S503 The session management device sends a session creation indication to the second network node according to the first correspondence.
  • the session creation indication may include a session identifier and a session type.
  • S504 The second network node establishes a corresponding session context creation according to the session creation indication.
  • the second network node may perform necessary context creation work at the application layer according to the session type (Session Type), and save the primary key Session Id for subsequent session communication;
  • S505 The second network node feeds back a create confirmation message to the session management device.
  • the Create Session Confirmation may include a session identifier (Session Id) for prompting the session management device that the second network node has completed the context creation of the session corresponding to the session identifier.
  • Session Id session identifier
  • the session management device establishes a second correspondence between the session identifier and the session type, the first network node identifier, and the second network node identifier according to the create confirmation message.
  • the session management device may find the corresponding correspondence table according to the primary key Session Id included in the creation confirmation message, and supplement the second network node identifier (Peer TnlAddr2) corresponding to the primary key SessionId.
  • the complete, obtained second correspondence is the complete session record after the perfection.
  • the session management device sends a session creation response message to the first network node.
  • the session creation response message (Create Session Response) includes a session identifier; it may be a primary key Session Id.
  • the first network node After receiving the session establishment response message, the first network node may include the primary key Session Id for subsequent session communication.
  • the process shown in FIG. 5 may define a session creation request and a session creation response primitive between the first network node and the session management device; and may also define a session creation indication and session creation between the session management device and the second network node. Confirm the original. The actual definition process is not described in this embodiment.
  • the first network node is the sender of the session message.
  • the second network node is a receiver of the session message.
  • the process of the session between the network nodes may include:
  • S601 The first network node sends a session message to the session management device.
  • the session message includes a session identifier and a session content.
  • the session management device forwards the session content to the second network node according to the session identifier and the second correspondence.
  • the forwarding message includes a session identifier and a session content.
  • the session management device may query the second correspondence according to the session identifier in the session message, so that the second network node identifier may be obtained from the second correspondence, and the session content and the session identifier are encapsulated into the forwarding message, according to the query.
  • the obtained second network identifier sends a forwarding message to the second network node, thereby implementing a process of forwarding the session content.
  • the second network node After receiving the forwarding message, the second network node delivers the session content to its corresponding application context according to the session identifier for processing.
  • SendMsg Session Id, Msg: wherein Session Id is used by the session management device session layer to find a session record, and the message Msg is delivered to the second network node through the transport layer;
  • RecvMsg Session Id, Msg
  • the Session Id is used by the second network node to deliver the message Msg to its corresponding application context for processing.
  • the session modification can be either a first network node or a second network node.
  • the first network node is used as an example for description, and those skilled in the art may not need to be creative.
  • the labor can apply the solution shown in FIG. 7 to the case where the second network node modifies the session.
  • the process shown in FIG. 7 may include:
  • S701 The first network node sends a session modification request to the session management device.
  • the session modification request may include a session identifier (Session Id) and content to be modified, for example, a new identifier of the first network node when the address of the first network node changes; or a first network In the node, when the application for session management changes, the content of the extended field (Ext) that needs to be changed, etc.;
  • Session Id session identifier
  • Ext extended field
  • S702 The session management device modifies the corresponding second correspondence according to the session modification request.
  • the session management device may query the second correspondence according to the session identifier (Session Id). And modifying the corresponding content in the second correspondence according to the content to be modified.
  • Session Id session identifier
  • the session deletion request may include a session identifier (Session Id) to be deleted;
  • the session management device sends a session deletion indication to the second network node.
  • the session deletion indication may include a session identifier (Session Id) to be deleted;
  • the second network node is the second network node identifier corresponding to the session identifier in the second correspondence, and therefore, the session management device can send the session deletion indication to the second network node.
  • the method for session management provided by the embodiment provides centralized control of session management and session transmission between nodes through an additionally set session management device, thereby enabling unified maintenance of sessions between network nodes and Management, which reduces the burden on the application layer and reduces the workload of network protocol development and post-maintenance.
  • the method may include:
  • the session management device receives a session service request sent by the session service initiation node.
  • the session service request includes a session service initiation node identifier and session information.
  • the session management device responds to the session service request according to the first correspondence between the session identifier and the session service initiation node.
  • S903 The session management device sends a response message corresponding to the session service request to the session service initiation node.
  • the session service request may include a session creation request; wherein the session service initiation node identifier is: an identifier of the first network node as a session service initiator, the session information includes a session type, and the session creation The request further includes an identifier of the second network node that is the target end of the session service;
  • step S902 that is, the session management device is targeted to the session industry.
  • the service request responds according to the first correspondence between the session identifier and the session service originating node, including:
  • the session management device sets a corresponding session identifier for the session creation request, and establishes a first correspondence between the session identifier and the session type and the first network node identifier according to the session creation request.
  • the session management device sends a session creation indication to the second network node according to the first correspondence relationship.
  • the session creation indication includes the session identifier and the session type.
  • the session management device receives the creation confirmation message sent by the second network node, and establishes a second correspondence between the session identifier and the session type, the first network node identifier, and the second network node identifier according to the create confirmation message. ;
  • the creation confirmation message includes the session identifier.
  • the method may include: the session management device sends a session creation response message to the first network node;
  • the session creation response message includes the session identifier.
  • the solution shown in FIG. 10 is a process for session creation by the session management device side; in addition, the common operation scenarios in the session connection include session communication, session modification, and session deletion, therefore:
  • the method further includes:
  • the session management device receives the session message sent by the first network node.
  • the method further includes:
  • the session deletion indication includes a session identifier to be deleted.
  • the session management device deletes the corresponding second correspondence according to the session identifier to be deleted, and sends a session deletion response message to the first network node.
  • the method may include:
  • S1401 Send a session service request to the session management device.
  • S1402 Receive a response message that is sent by the session management device corresponding to the session service request.
  • the session service request includes: a session creation request
  • the session service initiation node identifier is: an identifier of the first network node that is a session service initiator, the session information includes a session type, and the session creation request is further included.
  • the response message corresponding to the session service request is sent to receive a session creation response message sent by the session management device;
  • the session creation response message includes a session identifier.
  • the method further includes:
  • the session message includes the session identifier and session content.
  • the method further includes:
  • S1501 The first network node sends a session modification request to the session management device.
  • the session modification request includes the session identifier and content to be modified
  • S1502 The first network node receives the session modification response sent by the session management device.
  • the method further includes:
  • S1601 The first network node sends a session deletion request to the session management device.
  • the session deletion request includes a session identifier to be deleted
  • S1603 The first network node deletes the application context corresponding to the session identifier to be deleted.
  • the method may include:
  • S1701 Receive a session creation indication sent by the session management device.
  • the session creation indication includes a session identifier and a session type.
  • S1702 Create a corresponding session context creation according to the session creation indication.
  • S1503 Feed back a create confirmation message to the session management device, where the create confirmation message includes a session identifier.
  • the second network node receives a forwarding message sent by the session management device.
  • the forwarding message includes the session identifier and session content.
  • the second network node After receiving the forwarding message, the second network node delivers the session content to its corresponding application context according to the session identifier for processing.
  • the session deletion indication includes a session identifier to be deleted.
  • the session deletion confirmation message includes the session identifier to be deleted.
  • the first sending module 2003 is configured to send a response message corresponding to the session service request to the session service initiating node.
  • the session service request includes a session creation request; wherein the conference
  • the service initiation node identifier is: an identifier of the first network node that is a session service initiator, the session information includes a session type, and the session creation request further includes an identifier of a second network node that is a target end of the session service;
  • the first sending module 2003 is configured to send a session creation indication to the second network node according to the first correspondence relationship, where the session creation indication includes the session identifier and the session type;
  • the first receiving module 2001 is further configured to receive a creation confirmation message sent by the second network node, where the creation confirmation message includes the session identifier;
  • the first sending module 2003 is further configured to send a session creation response message to the first network node, where the session creation response message includes the session identifier.
  • the session management device 200 further includes a modification module 2004;
  • the first receiving module 2001 is further configured to receive a session modification request sent by the first network node, where the session modification request includes the session identifier and content to be modified;
  • the session management device 200 further includes a first deletion module 2005;
  • the first receiving module 2001 is further configured to receive a session deletion confirmation message returned by the second network node, where the session deletion confirmation message includes a session identifier to be deleted;
  • the first sending module 2003 is further configured to send a session deletion response message to the first network node, where the session deletion response message includes the session identifier to be deleted.
  • the second receiving module 2202 is configured to receive a response message that is sent by the session management device for the session service request.
  • the session service request includes: a session creation request; wherein the session service initiation node identifier is: an identifier of the first network node that is a session service initiator, and the session information includes a session type.
  • the session creation request further includes an identifier of the second network node that is the target end of the session service;
  • the second receiving module 2202 is configured to receive a session creation response message sent by the session management device, where the session creation response message includes a session identifier.
  • the second sending module 2201 is further configured to send a session message to the session management device, where the session message includes the session identifier and session content.
  • the second sending module 2201 is further configured to send a session modification request to the session management device, where the session modification request includes the session identifier and content to be modified;
  • the second receiving module 2202 is further configured to receive a session modification response sent by the session management device.
  • the first network node 220 further includes a second deletion module 2203;
  • the second sending module 2201 is further configured to send a session deletion request to the session management device, where the session deletion request includes a session identifier to be deleted;
  • the second receiving module 2202 is further configured to receive a session deletion response message sent by the session management device, where the session deletion response message includes a session identifier to be deleted;
  • the second deletion module 2203 is further configured to delete the application context corresponding to the session identifier to be deleted by the first network node itself.
  • a second network node 240 is provided in the embodiment of the present invention.
  • the second network node 240 may include: a third receiving module 2401, a session context processing module 2402, and a third sending module 2403. ,
  • the third receiving module 2401 is configured to receive a session creation indication sent by the session management device, where the session creation indication includes a session identifier and a session type;
  • the session context processing module 2402 is configured to establish a corresponding session context creation according to the session creation indication
  • the third sending module 2403 is configured to feed back a create confirmation message to the session management device, where the create confirmation message includes a session identifier.
  • the third receiving module 2401 is further configured to receive a forwarding message sent by the session management device, where the forwarding message includes the session identifier and session content;
  • the session context processing module 2402 is further configured to process the session content to the corresponding application context according to the session identifier.
  • the third receiving module 2401 is further configured to receive a session deletion indication sent by the session management device, where the session deletion indication includes a session identifier to be deleted;
  • the session context processing module 2402 is further configured to delete the application context corresponding to the session identifier to be deleted by the second network node itself, and return a session deletion confirmation message to the session management device;
  • the session deletion confirmation message includes the session identifier to be deleted.
  • the system 250 may include: a session management device 200, and a first network node 220 as an initiator;
  • the session management device 240 is configured to receive a session service request sent by the first network node 220, where the session service request includes a first network node 220 identifier and session information;
  • the first network node 220 is configured to send a session service request to the session management device 200;
  • Embodiments of the present invention provide a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed by a processor.
  • the application can take the form of a hardware embodiment, a software embodiment, or an embodiment in combination with software and hardware.
  • the application 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 and optical storage, etc.) including computer usable program code.
  • 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 one or more of the flow or in a block or blocks of a flow diagram.
  • an independent session management device is set in the network architecture, the session layer management and the application layer protocol are decoupled, and the session relationship is uniformly maintained, thereby reducing the burden on the application layer and reducing network protocol formulation and post-maintenance. The amount of work.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Computer And Data Communications (AREA)

Abstract

Disclosed in the present disclosure are a session management method, device and system, the method comprising: a session management device receives a session service request from a session service initiation node; the session management device responds to the session service request according to a first correspondence between a session identifier and the session service initiation node; and the session management device sends, to the session service initiation node, a response message corresponding to the session service request.

Description

一种会话管理的方法、设备和系统Method, device and system for session management 技术领域Technical field
本申请涉及但不限于无线通信技术,尤指一种会话管理的方法、设备和系统。The present application relates to, but is not limited to, wireless communication technologies, and more particularly to a method, device and system for session management.
背景技术Background technique
为了实现计算机系统的互联,开放系统互联(OSI,Open System Interconnection)参考模型将网络的通信功能划分为7个层级,同时也定义了各层级之间的相互关系以及各层级所包括的服务及功能。In order to realize the interconnection of computer systems, the Open System Interconnection (OSI) reference model divides the communication functions of the network into seven levels, and also defines the relationship between each level and the services and functions included in each level. .
OSI模型的七个层级由低到高依次为:物理层、数据链路层、网络层、传输层、会话层、表示层和应用层。其中,会话层的主要功能是在两个节点间建立、维护和释放面向用户的连接,并对会话进行管理和控制,保证会话数据可靠传送。The seven levels of the OSI model are, from low to high, the physical layer, the data link layer, the network layer, the transport layer, the session layer, the presentation layer, and the application layer. Among them, the main function of the session layer is to establish, maintain and release the connection to the user between the two nodes, and manage and control the session to ensure reliable transmission of session data.
但是,在当前通信行业标准组织第三代合作伙伴计划(3GPP,3rd Generation Partnership Project)所制定的协议中,没有单独体现会话连接过程,而是直接包含在了应用层协议的描述之中。3GPP所制定的协议中,对于当前实现会话连接的方式,有如下一些特点:会话关系由网络通信节点的应用层各自维护以及会话过程包含在应用层协议之中。这种现象会随着通信节点间会话关系数量增多,而导致应用层维护困难,极大增加应用层负担;并且由于应用层协议制定过程中同时要考虑会话连接过程,也会极大增加协议制定以及后期开发维护过程的工作量。However, in the protocol developed by the current 3rd Generation Partnership Project (3GPP), the session connection process is not separately reflected, but is directly included in the description of the application layer protocol. In the protocol developed by the 3GPP, there are some characteristics for the current way of implementing the session connection: the session relationship is maintained by the application layer of the network communication node and the session process is included in the application layer protocol. This phenomenon will increase the number of session relationships between communication nodes, which will make the application layer difficult to maintain, greatly increasing the burden of the application layer; and because the session connection process should be considered during the application layer protocol development process, the protocol development will be greatly increased. And the workload of the later development and maintenance process.
发明概述Summary of invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例期望提供一种会话管理的方法、设备和系统,能够降低应用层的负担,并且减少网络协议制定及后期维护的工作量。 The embodiments of the present invention are expected to provide a method, device, and system for session management, which can reduce the burden of the application layer and reduce the workload of network protocol formulation and post-maintenance.
第一方面,本发明实施例提供了一种会话管理的方法,所述方法应用于在网络架构内的网络节点中额外设置的会话管理设备,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for session management, where the method is applied to a session management device that is additionally set in a network node in a network architecture, and the method includes:
会话管理设备接收会话业务发起节点发送的会话业务请求;其中,所述会话业务请求包括会话业务发起节点标识以及会话信息;The session management device receives a session service request sent by the session service initiation node, where the session service request includes a session service initiation node identifier and session information;
所述会话管理设备针对所述会话业务请求根据会话标识与会话业务发起节点之间的第一对应关系进行响应;The session management device responds to the session service request according to a first correspondence between the session identifier and the session service originating node;
所述会话管理设备将会话业务请求对应的响应消息发送至所述会话业务发起节点。The session management device sends a response message corresponding to the session service request to the session service initiation node.
在一实施方式中,所述会话业务请求包括会话创建请求;其中,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识;In an embodiment, the session service request includes a session creation request, where the session service initiation node identifier is: an identifier of the first network node that is a session service initiator, and the session information includes a session type. The session creation request further includes an identifier of the second network node that is the target end of the session service;
相应地,所述会话管理设备针对所述会话业务请求根据会话标识与会话业务发起节点之间的第一对应关系进行响应,包括:Correspondingly, the session management device responds to the session service request according to the first correspondence between the session identifier and the session service initiation node, including:
所述会话管理设备针对所述会话创建请求设置对应的会话标识,并根据所述会话创建请求建立所述会话标识与所述会话类型以及所述第一网络节点标识之间的第一对应关系;The session management device sets a corresponding session identifier for the session creation request, and establishes a first correspondence between the session identifier and the session type and the first network node identifier according to the session creation request;
所述会话管理设备根据所述第一对应关系向第二网络节点发送会话创建指示;其中,所述会话创建指示包括所述会话标识和所述会话类型;The session management device sends a session creation indication to the second network node according to the first correspondence relationship, where the session creation indication includes the session identifier and the session type;
所述会话管理设备接收所述第二网络节点发送的创建确认消息,并根据创建确认消息建立所述会话标识与会话类型、第一网络节点标识以及第二网络节点标识之间的第二对应关系;其中,所述创建确认消息包括所述会话标识;The session management device receives the creation confirmation message sent by the second network node, and establishes a second correspondence between the session identifier and the session type, the first network node identifier, and the second network node identifier according to the create confirmation message. Wherein the creation confirmation message includes the session identifier;
相应地,所述会话管理设备将会话业务请求对应的响应消息发送至所述会话业务发起节点,包括:Correspondingly, the session management device sends a response message corresponding to the session service request to the session service initiation node, including:
所述会话管理设备向第一网络节点发送会话创建响应消息;其中,所述会话创建响应消息包括所述会话标识。The session management device sends a session creation response message to the first network node; wherein the session creation response message includes the session identifier.
在一实施方式中,所述方法还包括: In an embodiment, the method further includes:
所述会话管理设备接收所述第一网络节点发送的会话消息;其中,所述会话消息包括所述会话标识以及会话内容;Receiving, by the session management device, a session message sent by the first network node, where the session message includes the session identifier and session content;
所述会话管理设备根据所述会话标识及所述第二对应关系将所述会话内容转发至所述第二网络节点;其中,所述转发消息中包括所述会话标识和所述会话内容。And the session management device forwards the session content to the second network node according to the session identifier and the second correspondence, where the forwarding message includes the session identifier and the session content.
在一实施方式中,所述方法还包括:In an embodiment, the method further includes:
所述会话管理设备接收所述第一网络节点发送的会话修改请求;其中,所述会话修改请求包括所述会话标识以及需修改的内容;Receiving, by the session management device, a session modification request sent by the first network node, where the session modification request includes the session identifier and content to be modified;
所述会话管理设备根据所述会话修改请求修改对应的所述第二对应关系;The session management device modifies the corresponding second correspondence according to the session modification request;
所述会话管理设备向所述第一网络节点发送会话修改响应。The session management device sends a session modification response to the first network node.
在一实施方式中,所述方法还包括:In an embodiment, the method further includes:
所述会话管理设备接收所述第一网络节点发送的会话删除请求;其中,所述会话删除请求包括待删除的会话标识;Receiving, by the session management device, a session deletion request sent by the first network node, where the session deletion request includes a session identifier to be deleted;
所述会话管理设备向所述第二网络节点发送会话删除指示;其中,所述会话删除指示包括待删除的会话标识;The session management device sends a session deletion indication to the second network node, where the session deletion indication includes a session identifier to be deleted;
所述会话管理设备接收所述第二网络节点返回的会话删除确认消息;其中,所述会话删除确认消息包括待删除的会话标识;Receiving, by the session management device, a session deletion confirmation message returned by the second network node, where the session deletion confirmation message includes a session identifier to be deleted;
所述会话管理设备根据所述待删除的会话标识将对应的所述第二对应关系进行删除,并向所述第一网络节点发送会话删除响应消息;其中,所述会话删除响应消息包括所述待删除的会话标识。The session management device deletes the corresponding second correspondence according to the session identifier to be deleted, and sends a session deletion response message to the first network node, where the session deletion response message includes the The session ID to be deleted.
第二方面,本发明实施例提供了一种会话管理的方法,所述方法应用于作为会话业务发起端的第一网络节点,所述方法包括:In a second aspect, the embodiment of the present invention provides a method for session management, where the method is applied to a first network node that is a session service initiator, and the method includes:
向会话管理设备发送会话业务请求;其中,所述会话管理设备为网络架构内的网络节点中额外设置的会话管理设备;所述会话业务请求包括第一网络节点标识以及会话信息;Sending a session service request to the session management device; wherein the session management device is a session management device additionally set in a network node in the network architecture; the session service request includes a first network node identifier and session information;
接收所述会话管理设备针对所述会话业务请求对应发送的响应消息。 Receiving a response message sent by the session management device corresponding to the session service request.
在一实施方式中,所述会话业务请求包括:会话创建请求;其中,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识;In an embodiment, the session service request includes: a session creation request; wherein the session service initiation node identifier is: an identifier of the first network node that is a session service initiator, and the session information includes a session type. The session creation request further includes an identifier of a second network node that is a target end of the session service;
相应地,所述针对所述会话业务请求对应发送的响应消息包括会话创建响应消息;其中,所述会话创建响应消息包括会话标识。Correspondingly, the response message correspondingly sent for the session service request includes a session creation response message; wherein the session creation response message includes a session identifier.
在一实施方式中,所述方法还包括:In an embodiment, the method further includes:
所述第一网络节点向所述会话管理设备发送会话消息;其中,所述会话消息包括所述会话标识以及会话内容。The first network node sends a session message to the session management device; wherein the session message includes the session identifier and session content.
在一实施方式中,所述方法还包括:In an embodiment, the method further includes:
所述第一网络节点向所述会话管理设备发送会话修改请求;其中,所述会话修改请求包括所述会话标识以及需修改的内容;Transmitting, by the first network node, a session modification request to the session management device, where the session modification request includes the session identifier and content to be modified;
所述第一网络节点接收由所述会话管理设备发送的会话修改响应。The first network node receives a session modification response sent by the session management device.
在一实施方式中,所述方法还包括:In an embodiment, the method further includes:
所述第一网络节点向所述会话管理设备发送会话删除请求;其中,所述会话删除请求包括待删除的会话标识;Sending, by the first network node, a session deletion request to the session management device, where the session deletion request includes a session identifier to be deleted;
所述第一网络节点接收由所述会话管理设备发送的会话删除响应消息;其中,所述会话删除响应消息包括待删除的会话标识;Receiving, by the first network node, a session deletion response message sent by the session management device, where the session deletion response message includes a session identifier to be deleted;
所述第一网络节点将自身与所述待删除的会话标识对应的应用上下文进行删除。The first network node deletes the application context corresponding to the session identifier to be deleted.
第三方面,本发明实施例提供了一种会话管理方法,所述方法应用于第二网络节点,所述方法包括:In a third aspect, an embodiment of the present invention provides a session management method, where the method is applied to a second network node, where the method includes:
接收会话管理设备所发送的会话创建指示;其中,所述会话管理设备为网络架构内的网络节点中额外设置的会话管理设备;所述会话创建指示包括会话标识和会话类型;Receiving a session creation indication sent by the session management device; wherein the session management device is a session management device additionally set in a network node in the network architecture; the session creation indication includes a session identifier and a session type;
根据所述会话创建指示建立对应的会话上下文创建;Establishing a corresponding session context creation according to the session creation indication;
向所述会话管理设备反馈创建确认消息;其中,所述创建确认消息包 括会话标识。Sending a confirmation message to the session management device; wherein the creating an acknowledgement message packet Includes the session ID.
在一实施方式中,所述方法还包括:In an embodiment, the method further includes:
所述第二网络节点接收由所述会话管理设备发送的转发消息;其中,所述转发消息包括所述会话标识和会话内容;Receiving, by the second network node, a forwarding message sent by the session management device, where the forwarding message includes the session identifier and session content;
所述第二网络节点根据所述会话标识将会话内容投递到自身对应的应用上下文进行处理。The second network node delivers the session content to its corresponding application context according to the session identifier for processing.
在一实施方式中,所述方法还包括:In an embodiment, the method further includes:
所述第二网络节点接收由所述会话管理设备发送的会话删除指示;其中,所述会话删除指示包括待删除的会话标识;Receiving, by the second network node, a session deletion indication sent by the session management device, where the session deletion indication includes a session identifier to be deleted;
所述第二网络节点将自身与所述待删除的会话标识对应的应用上下文进行删除,并向所述会话管理设备返回会话删除确认消息;其中,所述会话删除确认消息包括所述待删除的会话标识。The second network node deletes the application context corresponding to the session identifier to be deleted, and returns a session deletion confirmation message to the session management device, where the session deletion confirmation message includes the to-be-deleted Session ID.
第四方面,本发明实施例提供了一种会话管理设备,所述会话管理设备包括:第一接收模块、响应模块和第一发送模块;其中,In a fourth aspect, an embodiment of the present invention provides a session management device, where the session management device includes: a first receiving module, a response module, and a first sending module;
所述第一接收模块,设置为接收会话业务发起节点发送的会话业务请求;其中,所述会话业务请求包括会话业务发起节点标识以及会话信息;The first receiving module is configured to receive a session service request sent by the session service initiating node, where the session service request includes a session service initiating node identifier and session information;
所述响应模块,设置为针对所述会话业务请求根据会话标识与会话业务发起节点之间的第一对应关系进行响应;The response module is configured to respond to the session service request according to a first correspondence between the session identifier and the session service originating node;
所述第一发送模块,设置为将会话业务请求对应的响应消息发送至所述会话业务发起节点。The first sending module is configured to send a response message corresponding to the session service request to the session service initiating node.
在一实施方式中,所述会话业务请求包括会话创建请求;其中,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识;In an embodiment, the session service request includes a session creation request, where the session service initiation node identifier is: an identifier of the first network node that is a session service initiator, and the session information includes a session type. The session creation request further includes an identifier of the second network node that is the target end of the session service;
相应地,所述响应模块,设置为针对所述会话创建请求设置对应的会话标识,并根据所述会话创建请求建立所述会话标识与所述会话类型以及所述第一网络节点标识之间的第一对应关系; Correspondingly, the response module is configured to set a corresponding session identifier for the session creation request, and establish a relationship between the session identifier and the session type and the first network node identifier according to the session creation request. First correspondence
所述第一发送模块,设置为根据所述第一对应关系向第二网络节点发送会话创建指示;其中,所述会话创建指示包括所述会话标识和所述会话类型;The first sending module is configured to send a session creation indication to the second network node according to the first correspondence, where the session creation indication includes the session identifier and the session type;
所述第一接收模块,还设置为接收所述第二网络节点发送的创建确认消息;其中,所述创建确认消息包括所述会话标识;The first receiving module is further configured to receive a creation confirmation message sent by the second network node, where the creation confirmation message includes the session identifier;
所述响应模块,还设置为根据创建确认消息建立所述会话标识与会话类型、第一网络节点标识以及第二网络节点标识之间的第二对应关系;The response module is further configured to establish, according to the create confirmation message, a second correspondence between the session identifier and the session type, the first network node identifier, and the second network node identifier;
相应地,所述第一发送模块,还设置为向第一网络节点发送会话创建响应消息;其中,所述会话创建响应消息包括所述会话标识。Correspondingly, the first sending module is further configured to send a session creation response message to the first network node, where the session creation response message includes the session identifier.
在一实施方式中,所述第一接收模块,还设置为接收所述第一网络节点发送的会话消息;其中,所述会话消息包括所述会话标识以及会话内容;In an embodiment, the first receiving module is further configured to receive a session message sent by the first network node, where the session message includes the session identifier and session content;
所述第一发送模块,还设置为根据所述会话标识及所述第二对应关系将所述会话内容转发至所述第二网络节点;其中,所述转发消息中包括所述会话标识和所述会话内容。The first sending module is further configured to: forward the session content to the second network node according to the session identifier and the second correspondence; wherein the forwarding message includes the session identifier and the Describe the conversation content.
在一实施方式中,所述会话管理设备还包括修改模块;In an embodiment, the session management device further includes a modification module;
所述第一接收模块,还设置为接收所述第一网络节点发送的会话修改请求;其中,所述会话修改请求包括所述会话标识以及需修改的内容;The first receiving module is further configured to receive a session modification request sent by the first network node, where the session modification request includes the session identifier and content to be modified;
所述修改模块,设置为根据所述会话修改请求修改对应的所述第二对应关系;The modifying module is configured to modify the corresponding second correspondence according to the session modification request;
所述第一发送模块,设置为向所述第一网络节点发送会话修改响应。The first sending module is configured to send a session modification response to the first network node.
在一实施方式中,所述会话管理设备,还包括第一删除模块;In an embodiment, the session management device further includes a first deletion module;
所述第一接收模块,还设置为接收所述第一网络节点发送的会话删除请求;其中,所述会话删除请求包括待删除的会话标识;The first receiving module is further configured to receive a session deletion request sent by the first network node, where the session deletion request includes a session identifier to be deleted;
所述第一发送模块,还设置为向所述第二网络节点发送会话删除指示;其中,所述会话删除指示包括待删除的会话标识;The first sending module is further configured to send a session deletion indication to the second network node, where the session deletion indication includes a session identifier to be deleted;
所述第一接收模块,还设置为接收所述第二网络节点返回的会话删除 确认消息;其中,所述会话删除确认消息包括待删除的会话标识;The first receiving module is further configured to receive a session deletion returned by the second network node a confirmation message; wherein the session deletion confirmation message includes a session identifier to be deleted;
所述第一删除模块,设置为根据所述待删除的会话标识将对应的所述第二对应关系进行删除;The first deleting module is configured to delete the corresponding second correspondence according to the session identifier to be deleted;
所述第一发送模块,还设置为向所述第一网络节点发送会话删除响应消息;其中,所述会话删除响应消息包括所述待删除的会话标识。The first sending module is further configured to send a session deletion response message to the first network node, where the session deletion response message includes the session identifier to be deleted.
第五方面,本发明实施例提供了一种第一网络节点,所述第一网络节点作为会话业务的发起端,包括:第二发送模块和第二接收模块;其中,In a fifth aspect, an embodiment of the present invention provides a first network node, where the first network node serves as an initiator of a session service, and includes: a second sending module and a second receiving module;
所述第二发送模块,设置为向会话管理设备发送会话业务请求;其中,所述会话管理设备为网络架构内的网络节点中额外设置的会话管理设备;所述会话业务请求包括第一网络节点标识以及会话信息;The second sending module is configured to send a session service request to the session management device, where the session management device is a session management device additionally set in a network node in the network architecture; the session service request includes a first network node Identification and session information;
所述第二接收模块,设置为接收所述会话管理设备针对所述会话业务请求对应发送的响应消息。The second receiving module is configured to receive a response message that is sent by the session management device corresponding to the session service request.
在一实施方式中,所述会话业务请求包括:会话创建请求;其中,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识;In an embodiment, the session service request includes: a session creation request; wherein the session service initiation node identifier is: an identifier of the first network node that is a session service initiator, and the session information includes a session type. The session creation request further includes an identifier of a second network node that is a target end of the session service;
相应地,所述第二接收模块,设置为接收由所述会话管理设备发送的会话创建响应消息;其中,所述会话创建响应消息包括会话标识。Correspondingly, the second receiving module is configured to receive a session creation response message sent by the session management device, where the session creation response message includes a session identifier.
在一实施方式中,所述第二发送模块,还设置为向所述会话管理设备发送会话消息;其中,所述会话消息包括所述会话标识以及会话内容。In an embodiment, the second sending module is further configured to send a session message to the session management device, where the session message includes the session identifier and session content.
在一实施方式中,所述第二发送模块,还设置为向所述会话管理设备发送会话修改请求;其中,所述会话修改请求包括所述会话标识以及需修改的内容;In an embodiment, the second sending module is further configured to send a session modification request to the session management device, where the session modification request includes the session identifier and content to be modified;
所述第二接收模块,还设置为接收由所述会话管理设备发送的会话修改响应。The second receiving module is further configured to receive a session modification response sent by the session management device.
在一实施方式中,所述第一网络节点还包括第二删除模块;In an embodiment, the first network node further includes a second deletion module;
所述第二发送模块,还设置为向所述会话管理设备发送会话删除请求;其中,所述会话删除请求包括待删除的会话标识; The second sending module is further configured to send a session deletion request to the session management device, where the session deletion request includes a session identifier to be deleted;
所述第二接收模块,还设置为接收由所述会话管理设备发送的会话删除响应消息;其中,所述会话删除响应消息包括待删除的会话标识;The second receiving module is further configured to receive a session deletion response message sent by the session management device, where the session deletion response message includes a session identifier to be deleted;
所述第二删除模块,设置为将所述第一网络节点自身与所述待删除的会话标识对应的应用上下文进行删除。The second deletion module is configured to delete the application context corresponding to the session identifier to be deleted by the first network node itself.
第六方面,本发明实施例提供了一种第二网络节点,所述第二网络节点包括:第三接收模块、会话上下文处理模块和第三发送模块;其中,In a sixth aspect, the embodiment of the present invention provides a second network node, where the second network node includes: a third receiving module, a session context processing module, and a third sending module;
所述第三接收模块,设置为接收会话管理设备所发送的会话创建指示;其中,所述会话管理设备为网络架构内的网络节点中额外设置的会话管理设备;所述会话创建指示包括会话标识和会话类型;The third receiving module is configured to receive a session creation indication sent by the session management device, where the session management device is a session management device additionally set in a network node in the network architecture; the session creation indication includes a session identifier And the type of session;
所述会话上下文处理模块,设置为根据所述会话创建指示建立对应的会话上下文创建;The session context processing module is configured to establish a corresponding session context creation according to the session creation indication;
所述第三发送模块,设置为向所述会话管理设备反馈创建确认消息;其中,所述创建确认消息包括会话标识。The third sending module is configured to feed back a create confirmation message to the session management device, where the create confirmation message includes a session identifier.
在一实施方式中,所述第三接收模块,还设置为接收由所述会话管理设备发送的转发消息;其中,所述转发消息包括所述会话标识和会话内容;In an embodiment, the third receiving module is further configured to receive a forwarding message sent by the session management device, where the forwarding message includes the session identifier and session content;
所述会话上下文处理模块,还设置为根据会话标识将会话内容投递到自身对应的应用上下文进行处理。The session context processing module is further configured to process the session content to the corresponding application context according to the session identifier.
在一实施方式中,所述第三接收模块,还设置为接收由所述会话管理设备发送的会话删除指示;其中,所述会话删除指示包括待删除的会话标识;In an embodiment, the third receiving module is further configured to receive a session deletion indication sent by the session management device, where the session deletion indication includes a session identifier to be deleted;
所述会话上下文处理模块,还设置为将所述第二网络节点自身与所述待删除的会话标识对应的应用上下文进行删除,并向所述会话管理设备返回会话删除确认消息;其中,所述会话删除确认消息包括所述待删除的会话标识。The session context processing module is further configured to delete the application context corresponding to the session identifier to be deleted by the second network node itself, and return a session deletion confirmation message to the session management device; The session deletion confirmation message includes the session identifier to be deleted.
第七方面,本发明实施例提供了一种会话管理系统,所述系统包括:会话管理设备、作为会话业务发起端的第一网络节点;其中,In a seventh aspect, the embodiment of the present invention provides a session management system, where the system includes: a session management device, and a first network node that is a session service initiator;
所述会话管理设备,设置为接收第一网络节点发送的会话业务请求; 其中,所述会话业务请求包括第一网络节点标识以及会话信息;The session management device is configured to receive a session service request sent by the first network node; The session service request includes a first network node identifier and session information.
以及,针对所述会话业务请求根据会话标识与第一网络节点之间的第一对应关系进行响应;And responding to the session service request according to the first correspondence between the session identifier and the first network node;
以及,将会话业务请求对应的响应消息发送至所述第一网络节点;And sending a response message corresponding to the session service request to the first network node;
所述第一网络节点,设置为向会话管理设备发送会话业务请求;The first network node is configured to send a session service request to the session management device;
以及,接收所述会话管理设备针对所述会话业务请求对应发送的响应消息。And receiving a response message that is sent by the session management device for the session service request.
第七方面,本发明实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述会话管理的方法。In a seventh aspect, an embodiment of the present invention provides a computer readable storage medium storing computer executable instructions, the method for implementing the session management when the computer executable instructions are executed by a processor.
本发明实施例提供了一种会话管理的方法、设备和系统,通过在网络架构中设置独立的会话管理设备,解耦会话层管理与应用层协议,并对会话关系进行统一维护,从而能够降低应用层的负担,并且减少网络协议制定及后期维护的工作量。The embodiments of the present invention provide a method, a device, and a system for session management. By setting up an independent session management device in the network architecture, the session layer management and the application layer protocol are decoupled, and the session relationship is uniformly maintained, thereby reducing the session relationship. The burden of the application layer, and reduce the workload of network protocol development and post-maintenance.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为网络节点之间会话连接关系的拓扑结构示意图;FIG. 1 is a schematic diagram of a topology structure of a session connection relationship between network nodes;
图2为SAE架构示意图;2 is a schematic diagram of a SAE architecture;
图3为本发明实施例提供的一种网络节点之间会话连接关系的拓扑结构示意图;FIG. 3 is a schematic diagram of a topology structure of a session connection relationship between network nodes according to an embodiment of the present disclosure;
图4为本发明实施例提供的一种会话管理方法的流程示意图;FIG. 4 is a schematic flowchart diagram of a session management method according to an embodiment of the present disclosure;
图5为本发明实施例提供的一种会话创建的流程示意图;FIG. 5 is a schematic flowchart of a session creation according to an embodiment of the present invention;
图6为本发明实施例提供的一种会话通信的详细流程示意图;FIG. 6 is a schematic flowchart of a session communication according to an embodiment of the present disclosure;
图7为本发明实施例提供的一种会话修改的详细流程示意图;FIG. 7 is a schematic flowchart of a session modification according to an embodiment of the present disclosure;
图8为本发明实施例提供的一种会话删除的详细流程示意图;FIG. 8 is a schematic flowchart of a process for deleting a session according to an embodiment of the present disclosure;
图9为本发明实施例提供的一种会话管理的流程示意图; FIG. 9 is a schematic flowchart of a session management according to an embodiment of the present invention;
图10为本发明实施例提供的一种会话管理设备针对会话业务请求进行响应的路程示意图;10 is a schematic diagram of a path for a session management device to respond to a session service request according to an embodiment of the present invention;
图11为本发明实施例提供的一种会话通信的流程示意图;FIG. 11 is a schematic flowchart of a session communication according to an embodiment of the present invention;
图12为本发明实施例提供的一种会话修改的流程示意图;FIG. 12 is a schematic flowchart of a session modification according to an embodiment of the present invention;
图13为本发明实施例提供的一种会话删除的流程示意图;FIG. 13 is a schematic flowchart of a session deletion according to an embodiment of the present disclosure;
图14为本发明实施例提供的另一种会话管理的流程示意图;FIG. 14 is a schematic flowchart of another session management according to an embodiment of the present invention;
图15为本发明实施例提供的另一种会话修改的流程示意图;FIG. 15 is a schematic flowchart of another session modification according to an embodiment of the present invention;
图16为本发明实施例提供的另一种会话删除的流程示意图;FIG. 16 is a schematic flowchart of another session deletion according to an embodiment of the present disclosure;
图17为本发明实施例提供的又一种会话管理的流程示意图;FIG. 17 is a schematic flowchart of still another session management according to an embodiment of the present invention;
图18为本发明实施例提供的又一种会话通信的流程示意图;FIG. 18 is a schematic flowchart of still another session communication according to an embodiment of the present invention;
图19为本发明实施例提供的又一种会话删除的流程示意图;FIG. 19 is a schematic flowchart of still another session deletion according to an embodiment of the present invention;
图20为本发明实施例提供的一种会话管理设备的结构示意图;FIG. 20 is a schematic structural diagram of a session management device according to an embodiment of the present disclosure;
图21为本发明实施例提供的另一种会话管理设备的结构示意图;FIG. 21 is a schematic structural diagram of another session management device according to an embodiment of the present disclosure;
图22为本发明实施例提供的一种第一网络节点的结构示意图;FIG. 22 is a schematic structural diagram of a first network node according to an embodiment of the present disclosure;
图23为本发明实施例提供的另一种第一网络节点的结构示意图;FIG. 23 is a schematic structural diagram of another first network node according to an embodiment of the present disclosure;
图24为本发明实施例提供的一种第二网络节点的结构示意图;FIG. 24 is a schematic structural diagram of a second network node according to an embodiment of the present disclosure;
图25为本发明实施例提供的一种会话管理系统的结构示意图。FIG. 25 is a schematic structural diagram of a session management system according to an embodiment of the present invention.
详述Detailed
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
由于会话关系由网络通信节点的应用层各自维护,并且会话过程包含在应用层协议之中,因此,在网络中,网络节点之间的会话连接关系可以如图1所示,两个网络节点之间的会话(Session)的连接关系通过各自的应用程进行维护和管理,可以看出,目前网络节点之间的会话连接关系属于点对点连接关系。 Since the session relationship is maintained by the application layer of the network communication node, and the session process is included in the application layer protocol, in the network, the session connection relationship between the network nodes can be as shown in FIG. 1, and the two network nodes are The connection relationship between the sessions is maintained and managed by the respective applications. It can be seen that the current session connection relationship between the network nodes belongs to a point-to-point connection relationship.
以目前的网络架构为例,如图2所示的系统架构演进(SAE,System Architecture Evolution)架构,可以看出架构中的网络节点数量有限,因此,网络节点之间的会话连接不会对整个系统架构的应用层造成明显的负担。但是,随着未来网络所承载的业务类型更加丰富,如虚拟现实、触觉互联网、物联网等,基于目前网络架构中网络节点的会话连接关系将不能满足这些各种业务所带来的吞吐量、时延、可靠性、连接密度等多样化的需求。当面对数量众多且又可以灵活部署的网络节点时,继续沿用已有的会话连接关系不仅会导致应用层维护困难所引发的网络节点应用层的负荷加大,而且还会极大增加协议制定以及后期开发维护过程的工作量。Taking the current network architecture as an example, as shown in the System Architecture Evolution (SAE) architecture shown in Figure 2, it can be seen that the number of network nodes in the architecture is limited. Therefore, the session connection between network nodes is not The application layer of the system architecture creates a significant burden. However, with the richer types of services carried by the network in the future, such as virtual reality, tactile Internet, and Internet of Things, the session connection relationship of network nodes based on the current network architecture will not meet the throughput brought by these various services. Diversified requirements such as delay, reliability, and connection density. When faced with a large number of network nodes that can be flexibly deployed, continuing to use the existing session connection relationship will not only increase the load on the application layer of the network node caused by the difficulty of maintenance of the application layer, but also greatly increase the protocol formulation. And the workload of the later development and maintenance process.
本发明实施例基于目前网络架构中,各网络通信节点的应用层对会话管理方面的基本需求,设置额外的会话管理设备,以图3为例,将额外设置的会话管理设备作为中央节点,并且将需要进行会话连接的网络节点通过点对点的方式将会话(Session)连接到会话管理设备这一中央节点上,从而形成星型拓扑结构的会话连接关系,在星型拓扑结构中任何两个网络节点要进行会话连接都经过作为中央节点的会话管理设备控制,从而能够对通信节点之间的会话进行统一的维护和管理,从而降低应用层的负担,并且减少网络协议制定及后期维护的工作量。The embodiment of the present invention is based on the basic requirements of the application layer of each network communication node in the current network architecture, and sets an additional session management device. Taking FIG. 3 as an example, the additionally set session management device is used as a central node, and The network node that needs the session connection connects the session to the central node of the session management device in a point-to-point manner, thereby forming a session connection relationship of the star topology, and any two network nodes in the star topology The session connection is controlled by the session management device as a central node, so that the session between the communication nodes can be uniformly maintained and managed, thereby reducing the burden on the application layer and reducing the workload of network protocol formulation and post-maintenance.
实施例一Embodiment 1
参见图4,其示出了本发明实施例提供的一种会话管理方法,该方法可以应用于图3所示的会话连接关系拓扑示意图中,在图3所示的拓扑关系中,会话管理设备是额外设置的,该方法可以包括:Referring to FIG. 4, a method for managing a session according to an embodiment of the present invention is shown. The method can be applied to the topology of a session connection relationship shown in FIG. 3. In the topology relationship shown in FIG. 3, the session management device is used. Is additionally set, the method can include:
S401:第一网络节点向会话管理设备发送会话业务请求;S401: The first network node sends a session service request to the session management device.
其中,第一网络节点作为会话业务发起端,所发送的会话业务请求中可以包括第一网络节点的标识以及会话信息;The first network node is used as the session service initiator, and the sent session service request may include the identifier of the first network node and session information.
S402:会话管理设备针对会话业务请求根据会话标识与会话业务发起节点之间的第一对应关系进行响应;S402: The session management device responds to the session service request according to the first correspondence between the session identifier and the session service initiation node.
S403:会话管理设备将会话业务请求对应的响应消息发送至第一网络节点。 S403: The session management device sends a response message corresponding to the session service request to the first network node.
其中,会话业务请求的种类较多,可以包括会话创建请求,以会话创建请求为例,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识;因此,技术方案的实现可以如图5所示,The session service request is of a variety of types, and may include a session creation request, where the session creation request identifier is an identifier of the first network node that is the session service initiator, and the session information is Including a session type, the session creation request further includes an identifier of the second network node that is the target end of the session service; therefore, the implementation of the technical solution may be as shown in FIG. 5,
S501:第一网络节点向会话管理设备发送会话创建请求;S501: The first network node sends a session creation request to the session management device.
在图5所示的方案的过程中,第一网络节点是会话创建的发起端,向作为创建会话的目标端的第二网络节点发起会话。因此,基于图3所示的会话连接的拓扑结构,可以将会话创建请求发送至会话管理设备,而无需直接向创建会话的目标端发送会话创建请求。In the process of the scheme shown in FIG. 5, the first network node is the initiator of the session creation, and initiates a session to the second network node that is the target end of the creation session. Therefore, based on the topology of the session connection shown in FIG. 3, the session creation request can be sent to the session management device without directly sending a session creation request to the target end of the creation session.
其中,会话创建请求(Create Session Request)可以包括:作为发起端的第一网络节点的标识、会话类型、以及作为目标端的第二网络节点的标识;The session creation request (Create Session Request) may include: an identifier of the first network node as the initiator, a session type, and an identifier of the second network node as the target end;
在实现过程中,第一网络节点标识可以是第一网络节点的传输层地址信息,可以包括显示的地址信息,例如第一网络节点的IP地址及会话端口;也可以是隐式的地址信息,例如需要通过域名系统(DNS,Domain Name System)进行转换的统一资源定位符(URL,Uniform Resource Locator);In the implementation process, the first network node identifier may be the transport layer address information of the first network node, and may include the displayed address information, such as an IP address and a session port of the first network node, or may be an implicit address information. For example, a Uniform Resource Locator (URL) that needs to be converted by a Domain Name System (DNS);
会话类型则与进行会话的应用相关,主要目的是为了告知作为目标端的第二节点所创建的会话类型,例如节点级或用户级别的会话类型,也可以根据实际应用进一步扩展会话类型;The session type is related to the application for the session. The main purpose is to inform the session type created by the second node as the target end, for example, the node type or the user level session type, or further extend the session type according to the actual application;
第二网络节点标识可以是第二网络节点的传输层地址信息,可以包括显示的地址信息,例如第二网络节点的IP地址及会话端口(Port);也可以是隐式的地址信息,例如需要通过DNS(Domain Name System,域名系统)进行转换的URL(Uniform Resource Locator,统一资源定位符);还可以仅是作为目标端的节点类型(Node Type),从而可以通过将会话创建请求发送到网络架构中指定节点类型对应的负载均衡模块,通过负载均衡模块从目标端节点的集群中选择一个作为目标端的第二网络节点。 The second network node identifier may be the transport layer address information of the second network node, and may include the displayed address information, such as the IP address of the second network node and the session port (Port); or may be implicit address information, such as A URL (Uniform Resource Locator) that is converted by a DNS (Domain Name System); or a node type that is only a target end, so that a session creation request can be sent to the network architecture. The load balancing module corresponding to the specified node type selects a second network node as the target end from the cluster of the target end node through the load balancing module.
S502:会话管理设备针对会话创建请求设置对应的会话标识,并根据会话创建请求建立所述会话标识与会话类型以及第一网络节点标识之间的第一对应关系;S502: The session management device sets a corresponding session identifier for the session creation request, and establishes a first correspondence between the session identifier and the session type and the first network node identifier according to the session creation request.
其中,会话管理设备可以针对会话创建请求建立对应的会话记录;会话记录的一种实现形式可以是一条对应关系表,会话管理设备针对会话创建请求为对应关系表分配主键Session Id,也就是会话标识;并且,会话管理设备可以通过解析会话创建请求,获取会话类型(Session Type)以及第一网络节点标识(Peer TnlAddr1);并且在对应关系表中,将已分配好的主键与会话类型以及第一网络节点标识建立对应关系,列举而非限定的,对应关系表可以如表1所示:The session management device may establish a corresponding session record for the session creation request; the session management device may be a correspondence relationship table, and the session management device allocates a primary key Session Id, that is, the session identifier, to the correspondence relationship table for the session creation request. And, the session management device can obtain the session type (Session Type) and the first network node identifier (Peer TnlAddr1) by parsing the session creation request; and in the correspondence table, the assigned primary key and session type and the first The network node identifier establishes a correspondence, which is enumerated and not limited. The correspondence table can be as shown in Table 1:
Figure PCTCN2017084589-appb-000001
Figure PCTCN2017084589-appb-000001
表1Table 1
在表1中,Session Id的形式可以为数字(Number)形式;Session Type可以为枚举(Enum)形式,会话管理设备可以从已有的枚举备选项中选择对应的会话类型;Peer TnlAddr1可以是IP地址及会话端口(Port)形式;可以理解地,对应关系表中还可以包括第二网络节点标识(Peer TnlAddr2),以及根据应用的会话管理需要而扩展的其他字段(Ext);由于此时作为目标端的第二网络节点并不知晓会话创建请求,所以,会话管理设备可以将如表1所示的对应关系表中的Peer TnlAddr2留空,此时会话记录中的对应关系表所指示的内容即为第一对应关系。In Table 1, the form of the Session Id can be in the form of a number (Number); the Session Type can be in the form of an enumeration (Enum), and the session management device can select a corresponding session type from the existing enumeration alternatives; Peer TnlAddr1 can It is an IP address and a session port (Port) form; understandably, the correspondence table may further include a second network node identifier (Peer TnlAddr2), and other fields (Ext) extended according to the session management needs of the application; The second network node that is the target end does not know the session creation request, so the session management device may leave the Peer TnlAddr2 in the correspondence table as shown in Table 1 at this time, and the corresponding relationship table in the session record indicates The content is the first correspondence.
S503:会话管理设备根据第一对应关系向第二网络节点发送会话创建指示;S503: The session management device sends a session creation indication to the second network node according to the first correspondence.
其中,会话创建指示(Create Session Indication)可以包括会话标识和会话类型。The session creation indication (Create Session Indication) may include a session identifier and a session type.
S504:第二网络节点根据会话创建指示建立对应的会话上下文创建; S504: The second network node establishes a corresponding session context creation according to the session creation indication.
其中,第二网络节点可以根据会话类型(Session Type)在应用层进行必要的上下文创建工作,并保存主键Session Id用于后续的会话通信;The second network node may perform necessary context creation work at the application layer according to the session type (Session Type), and save the primary key Session Id for subsequent session communication;
S505:第二网络节点向会话管理设备反馈创建确认消息;S505: The second network node feeds back a create confirmation message to the session management device.
其中,创建确认消息(Create Session Confirmation)可以包括会话标识(Session Id),用于提示会话管理设备第二网络节点已经完成了该会话标识对应的会话的上下文创建。The Create Session Confirmation may include a session identifier (Session Id) for prompting the session management device that the second network node has completed the context creation of the session corresponding to the session identifier.
S506:会话管理设备根据创建确认消息建立所述会话标识与会话类型、第一网络节点标识以及第二网络节点标识之间的第二对应关系;S506: The session management device establishes a second correspondence between the session identifier and the session type, the first network node identifier, and the second network node identifier according to the create confirmation message.
其中,会话管理设备在接收到创建确认消息后,可以根据创建确认消息中所包括的主键Session Id查找到相应的对应关系表,并且将该主键SessionId对应的第二网络节点标识(Peer TnlAddr2)补充完整,得到的第二对应关系,就是完善之后的完整会话记录。After receiving the creation confirmation message, the session management device may find the corresponding correspondence table according to the primary key Session Id included in the creation confirmation message, and supplement the second network node identifier (Peer TnlAddr2) corresponding to the primary key SessionId. The complete, obtained second correspondence is the complete session record after the perfection.
S507:会话管理设备向第一网络节点发送会话创建响应消息;S507: The session management device sends a session creation response message to the first network node.
其中,会话创建响应消息(Create Session Response)包括会话标识;可以是主键Session Id。第一网络节点接收到会话建立响应消息之后,可以包括该主键Session Id,用于后续的会话通信。The session creation response message (Create Session Response) includes a session identifier; it may be a primary key Session Id. After receiving the session establishment response message, the first network node may include the primary key Session Id for subsequent session communication.
图5所示的过程中可以定义第一网络节点与会话管理设备之间的会话创建请求和会话创建响应原语;还可以定义会话管理设备与第二网络节点之间的会话创建指示和会话创建确认原语。实际的定义过程本实施例不做赘述。The process shown in FIG. 5 may define a session creation request and a session creation response primitive between the first network node and the session management device; and may also define a session creation indication and session creation between the session management device and the second network node. Confirm the original. The actual definition process is not described in this embodiment.
示例性地,第一网络节点与第二网络节点通过图5所示的过程建立会话完毕后,就可以进行会话通信;因此,如图6所示,以第一网络节点为会话消息的发送方、第二网络节点为会话消息的接收方为例,网络节点之间进行会话的过程可以包括:Illustratively, after the first network node and the second network node establish a session through the process shown in FIG. 5, session communication can be performed; therefore, as shown in FIG. 6, the first network node is the sender of the session message. The second network node is a receiver of the session message. The process of the session between the network nodes may include:
S601:第一网络节点向会话管理设备发送会话消息;S601: The first network node sends a session message to the session management device.
其中,所述会话消息包括会话标识以及会话内容;The session message includes a session identifier and a session content.
S602:会话管理设备根据会话标识及第二对应关系将会话内容转发至第二网络节点; S602: The session management device forwards the session content to the second network node according to the session identifier and the second correspondence.
其中,转发消息中包括会话标识和会话内容;The forwarding message includes a session identifier and a session content.
其中,会话管理设备可以根据会话消息中的会话标识查询第二对应关系,于是可以从第二对应关系中查询得到第二网络节点标识,于是将会话内容和会话标识封装至转发消息中,根据查询得到的第二网络标识将转发消息发送至第二网络节点,从而实现了将会话内容进行转发的过程。The session management device may query the second correspondence according to the session identifier in the session message, so that the second network node identifier may be obtained from the second correspondence, and the session content and the session identifier are encapsulated into the forwarding message, according to the query. The obtained second network identifier sends a forwarding message to the second network node, thereby implementing a process of forwarding the session content.
S603:第二网络节点接收到转发消息后,根据会话标识将会话内容投递到自身对应的应用上下文进行处理。S603: After receiving the forwarding message, the second network node delivers the session content to its corresponding application context according to the session identifier for processing.
图6所示的过程也可以定义两个原语:The process shown in Figure 6 can also define two primitives:
第一网络节点与会话管理设备之间的消息发送原语;a message sending primitive between the first network node and the session management device;
例如:SendMsg(Session Id,Msg):其中,Session Id用于会话管理设备会话层查找会话记录,将消息Msg通过传输层投递到第二网络节点;For example: SendMsg (Session Id, Msg): wherein Session Id is used by the session management device session layer to find a session record, and the message Msg is delivered to the second network node through the transport layer;
第二网络节点与会话管理设备之间的消息接收原语;a message receiving primitive between the second network node and the session management device;
例如:RecvMsg(Session Id,Msg):其中,Session Id用于第二网络节点将消息Msg投递到自身对应的应用上下文进行处理。For example: RecvMsg (Session Id, Msg): The Session Id is used by the second network node to deliver the message Msg to its corresponding application context for processing.
示例性地,第一网络节点与第二网络节点通过图5所示的过程建立会话完毕并进行会话通信的过程中,会话双方的任一方均会针对会话进行修改,如图7所示的会话修改的详细流程,可以理解地,能够进行会话修改既可以是第一网络节点,也可以是第二网络节点,本实施例中以第一网络节点为例进行说明,本领域技术人员可以无需创造性劳动就能够将图7所示的方案应用于第二网络节点对会话进行修改的情况,图7所示的流程可以包括:Illustratively, in the process of establishing a session and performing session communication by the first network node and the second network node through the process shown in FIG. 5, either party of the session will modify the session, as shown in FIG. 7 For a detailed process of the modification, it can be understood that the session modification can be either a first network node or a second network node. In this embodiment, the first network node is used as an example for description, and those skilled in the art may not need to be creative. The labor can apply the solution shown in FIG. 7 to the case where the second network node modifies the session. The process shown in FIG. 7 may include:
S701:第一网络节点向会话管理设备发送会话修改请求;S701: The first network node sends a session modification request to the session management device.
其中,所述会话修改请求(Modify Session Request)可以包括会话标识(Session Id)以及需修改的内容,例如:第一网络节点的地址发生改变时,第一网络节点的新标识;或者第一网络节点中,针对会话管理的应用发生改变时,需要变更的扩展字段(Ext)内容等;The session modification request (Modify Session Request) may include a session identifier (Session Id) and content to be modified, for example, a new identifier of the first network node when the address of the first network node changes; or a first network In the node, when the application for session management changes, the content of the extended field (Ext) that needs to be changed, etc.;
S702:会话管理设备根据会话修改请求修改对应的第二对应关系;S702: The session management device modifies the corresponding second correspondence according to the session modification request.
其中,会话管理设备可以根据会话标识(Session Id)查询第二对应关 系,并且根据需修改的内容修改第二对应关系中的相应内容。The session management device may query the second correspondence according to the session identifier (Session Id). And modifying the corresponding content in the second correspondence according to the content to be modified.
S703:会话管理设备向第一网络节点发送会话修改响应(Modify Session Response)。S703: The session management device sends a Modify Session Response to the first network node.
从而通过图7所示的方案实现了会话修改的流程。图6所示的过程也可以定义两个原语:网络节点与会话管理设备之间的会话修改请求及会话修改响应原语。Thus, the flow of session modification is implemented by the scheme shown in FIG. The process shown in Figure 6 can also define two primitives: a session modification request and a session modification response primitive between the network node and the session management device.
示例性地,第一网络节点与第二网络节点通过图5所示的过程建立会话完毕并进行会话通信的过程中,会话双方的任一方均会针对会话进行删除,在图8所示的会话删除的详细流程中,删除的的发起方为第一网络节点,被删除会话的关联方为第二网络节点,因此,会话删除流程可以包括:Illustratively, in the process of establishing a session and performing session communication by the first network node and the second network node through the process shown in FIG. 5, either party of the session deletes the session, in the session shown in FIG. In the detailed process of the deletion, the deleted initiator is the first network node, and the associated party of the deleted session is the second network node. Therefore, the session deletion process may include:
S801:第一网络节点向会话管理设备发送会话删除请求;S801: The first network node sends a session deletion request to the session management device.
其中,所述会话删除请求(Delete Session Request)可以包括待删除的会话标识(Session Id);The session deletion request (Delete Session Request) may include a session identifier (Session Id) to be deleted;
S802:会话管理设备向第二网络节点发送会话删除指示;S802: The session management device sends a session deletion indication to the second network node.
其中,所述会话删除指示(Delete Session Indication)可以包括待删除的会话标识(Session Id);The session deletion indication (Delete Session Indication) may include a session identifier (Session Id) to be deleted;
可以理解地,第二网络节点是第二对应关系中,会话标识对应的第二网络节点标识,因此,会话管理设备可以向第二网络节点发送会话删除指示。It can be understood that the second network node is the second network node identifier corresponding to the session identifier in the second correspondence, and therefore, the session management device can send the session deletion indication to the second network node.
S803:第二网络节点将自身与待删除的会话标识对应的应用上下文进行删除,并向会话管理设备返回会话删除确认消息;S803: The second network node deletes the application context corresponding to the session identifier to be deleted, and returns a session deletion confirmation message to the session management device.
其中,会话删除确认消息(Delete Session Confirmation)包括待删除的会话标识(Session Id)。The session deletion confirmation message (Delete Session Confirmation) includes a session identifier (Session Id) to be deleted.
S804:会话管理设备根据待删除的会话标识将对应的第二对应关系进行删除,并向第一网络节点发送会话删除响应消息;S804: The session management device deletes the corresponding second correspondence according to the session identifier to be deleted, and sends a session deletion response message to the first network node.
其中,会话删除响应消息(Delete Session Response)包括待删除的会话标识(Session Id)。 The session deletion response message (Delete Session Response) includes a session identifier (Session Id) to be deleted.
S805:第一网络节点将自身与待删除的会话标识对应的应用上下文进行删除。S805: The first network node deletes the application context corresponding to the session identifier to be deleted.
从而通过图8所示的方案实现了会话删除的流程。需要说明的是,图8所示的过程可以定义四个原语:Thus, the process of session deletion is implemented by the scheme shown in FIG. It should be noted that the process shown in Figure 8 can define four primitives:
第一网络节点与会话管理设备之间的会话删除请求、会话删除响应原语;以及,会话管理设备与第二网络节点之间的会话删除指示、会话删除确认原语。a session deletion request and a session deletion response primitive between the first network node and the session management device; and a session deletion indication and a session deletion confirmation primitive between the session management device and the second network node.
在基于图3所示的会话连接关系的拓扑结构下,本实施例通过上述图5至图8所示的流程,对图4所示的会话业务中常见的操作场景,诸如会话创建、会话通信、会话修改及会话删除等场景的技术方案实现进行了阐述。Based on the topology of the session connection relationship shown in FIG. 3, this embodiment uses the flow shown in FIG. 5 to FIG. 8 to perform common operation scenarios, such as session creation and session communication, in the session service shown in FIG. The technical solution implementation of scenarios such as session modification and session deletion is described.
本实施例提供的一种会话管理的方法,通过额外设置的会话管理设备,对节点之间的会话管理及会话传输进行集中式的控制,从而能够对网络节点之间的会话进行统一的维护和管理,从而降低应用层的负担,并且减少网络协议制定及后期维护的工作量。The method for session management provided by the embodiment provides centralized control of session management and session transmission between nodes through an additionally set session management device, thereby enabling unified maintenance of sessions between network nodes and Management, which reduces the burden on the application layer and reduces the workload of network protocol development and post-maintenance.
实施例二Embodiment 2
参见图9,其示出了本发明实施例提供的一种应用于会话管理设备的会话管理的方法,该方法可以包括:Referring to FIG. 9, a method for session management applied to a session management device according to an embodiment of the present invention is provided. The method may include:
S901:会话管理设备接收会话业务发起节点发送的会话业务请求;S901: The session management device receives a session service request sent by the session service initiation node.
其中,所述会话业务请求包括会话业务发起节点标识以及会话信息;The session service request includes a session service initiation node identifier and session information.
S902:会话管理设备针对所述会话业务请求根据会话标识与会话业务发起节点之间的第一对应关系进行响应;S902: The session management device responds to the session service request according to the first correspondence between the session identifier and the session service initiation node.
S903:会话管理设备将会话业务请求对应的响应消息发送至所述会话业务发起节点。S903: The session management device sends a response message corresponding to the session service request to the session service initiation node.
示例性地,会话业务请求可以包括会话创建请求;其中,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识;Illustratively, the session service request may include a session creation request; wherein the session service initiation node identifier is: an identifier of the first network node as a session service initiator, the session information includes a session type, and the session creation The request further includes an identifier of the second network node that is the target end of the session service;
相应地,参见图10,步骤S902,即所述会话管理设备针对所述会话业 务请求根据会话标识与会话业务发起节点之间的第一对应关系进行响应,包括:Accordingly, referring to FIG. 10, step S902, that is, the session management device is targeted to the session industry. The service request responds according to the first correspondence between the session identifier and the session service originating node, including:
S9021:会话管理设备针对所述会话创建请求设置对应的会话标识,并根据所述会话创建请求建立所述会话标识与所述会话类型以及所述第一网络节点标识之间的第一对应关系;S9021: The session management device sets a corresponding session identifier for the session creation request, and establishes a first correspondence between the session identifier and the session type and the first network node identifier according to the session creation request.
S9022:会话管理设备根据所述第一对应关系向第二网络节点发送会话创建指示;S9022: The session management device sends a session creation indication to the second network node according to the first correspondence relationship.
其中,所述会话创建指示包括所述会话标识和所述会话类型;The session creation indication includes the session identifier and the session type.
S9023:会话管理设备接收所述第二网络节点发送的创建确认消息,并根据创建确认消息建立所述会话标识与会话类型、第一网络节点标识以及第二网络节点标识之间的第二对应关系;S9023: The session management device receives the creation confirmation message sent by the second network node, and establishes a second correspondence between the session identifier and the session type, the first network node identifier, and the second network node identifier according to the create confirmation message. ;
其中,所述创建确认消息包括所述会话标识;The creation confirmation message includes the session identifier.
相应地,步骤S903,即所述会话管理设备将会话业务请求对应的响应消息发送至所述会话业务发起节点,可以包括:会话管理设备向第一网络节点发送会话创建响应消息;Correspondingly, the step S903, that is, the session management device sends a response message corresponding to the session service request to the session service initiation node, the method may include: the session management device sends a session creation response message to the first network node;
其中,所述会话创建响应消息包括所述会话标识。The session creation response message includes the session identifier.
可以理解地,图10所示的方案是会话管理设备侧进行会话创建的流程;此外,会话连接中常见的操作场景还包括会话通信、会话修改及会话删除,因此:It can be understood that the solution shown in FIG. 10 is a process for session creation by the session management device side; in addition, the common operation scenarios in the session connection include session communication, session modification, and session deletion, therefore:
对于会话通信,参见图11,所述方法还包括:For session communication, referring to FIG. 11, the method further includes:
S1101:会话管理设备接收所述第一网络节点发送的会话消息;S1101: The session management device receives the session message sent by the first network node.
其中,所述会话消息包括所述会话标识以及会话内容;The session message includes the session identifier and session content.
S1102:会话管理设备根据所述会话标识及所述第二对应关系将所述会话内容转发至所述第二网络节点;S1102: The session management device forwards the session content to the second network node according to the session identifier and the second correspondence.
其中,所述转发消息中包括所述会话标识和所述会话内容。The forwarding message includes the session identifier and the session content.
对于会话修改,参见图12,所述方法还包括:For session modification, see FIG. 12, the method further includes:
S1201:会话管理设备接收所述第一网络节点发送的会话修改请求;其 中,所述会话修改请求包括所述会话标识以及需修改的内容;S1201: The session management device receives a session modification request sent by the first network node; The session modification request includes the session identifier and content to be modified;
S1202:会话管理设备根据所述会话修改请求修改对应的所述第二对应关系;S1202: The session management device modifies the corresponding second correspondence according to the session modification request.
S1203:会话管理设备向所述第一网络节点发送会话修改响应。S1203: The session management device sends a session modification response to the first network node.
对于会话删除,参见图13,所述方法还包括:For session deletion, referring to FIG. 13, the method further includes:
S1301:会话管理设备接收所述第一网络节点发送的会话删除请求;S1301: The session management device receives a session deletion request sent by the first network node.
其中,所述会话删除请求包括待删除的会话标识;The session deletion request includes a session identifier to be deleted;
S1302:会话管理设备向所述第二网络节点发送会话删除指示;S1302: The session management device sends a session deletion indication to the second network node.
其中,所述会话删除指示包括待删除的会话标识;The session deletion indication includes a session identifier to be deleted.
S1303:会话管理设备接收所述第二网络节点返回的会话删除确认消息;S1303: The session management device receives a session deletion confirmation message returned by the second network node.
其中,所述会话删除确认消息包括待删除的会话标识;The session deletion confirmation message includes a session identifier to be deleted.
S1304:会话管理设备根据所述待删除的会话标识将对应的所述第二对应关系进行删除,并向所述第一网络节点发送会话删除响应消息;S1304: The session management device deletes the corresponding second correspondence according to the session identifier to be deleted, and sends a session deletion response message to the first network node.
其中,所述会话删除响应消息包括所述待删除的会话标识。The session deletion response message includes the session identifier to be deleted.
实施例三Embodiment 3
参见图14,其示出了本发明实施例提供的一种应用于作为发起端的第一网络节点的会话管理的方法,该方法可以包括:Referring to FIG. 14 , a method for applying session management of a first network node as an initiator is provided. The method may include:
S1401:向会话管理设备发送会话业务请求;S1401: Send a session service request to the session management device.
其中,所述会话管理设备为网络架构内的网络节点中额外设置的会话管理设备;所述会话业务请求包括第一网络节点标识以及会话信息;The session management device is an additional session management device in a network node in the network architecture; the session service request includes a first network node identifier and session information;
S1402:接收会话管理设备针对所述会话业务请求对应发送的响应消息。S1402: Receive a response message that is sent by the session management device corresponding to the session service request.
示例性地,所述会话业务请求包括:会话创建请求;Exemplarily, the session service request includes: a session creation request;
其中,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包 括作为会话业务目标端的第二网络节点的标识;The session service initiation node identifier is: an identifier of the first network node that is a session service initiator, the session information includes a session type, and the session creation request is further included. The identifier of the second network node that is the target end of the session service;
相应地,所述针对所述会话业务请求对应发送的响应消息包括接收由所述会话管理设备发送的会话创建响应消息;Correspondingly, the response message corresponding to the session service request is sent to receive a session creation response message sent by the session management device;
其中,所述会话创建响应消息包括会话标识。The session creation response message includes a session identifier.
可以理解地,上述示例的方案是第一网络节点侧进行会话创建的流程;此外,会话连接中常见的操作场景还包括会话通信、会话修改及会话删除,因此:It can be understood that the solution of the above example is the process of session creation by the first network node side; in addition, the common operation scenarios in the session connection include session communication, session modification, and session deletion, therefore:
对于会话通信,所述方法还包括:For session communication, the method further includes:
所述第一网络节点向所述会话管理设备发送会话消息;Sending, by the first network node, a session message to the session management device;
其中,所述会话消息包括所述会话标识以及会话内容。The session message includes the session identifier and session content.
对于会话修改,参见图15,所述方法还包括:For the session modification, referring to FIG. 15, the method further includes:
S1501:第一网络节点向所述会话管理设备发送会话修改请求;S1501: The first network node sends a session modification request to the session management device.
其中,所述会话修改请求包括所述会话标识以及需修改的内容;The session modification request includes the session identifier and content to be modified;
S1502:第一网络节点接收由所述会话管理设备发送的会话修改响应。S1502: The first network node receives the session modification response sent by the session management device.
对于会话删除,参见图16,所述方法还包括:For the session deletion, referring to FIG. 16, the method further includes:
S1601:第一网络节点向所述会话管理设备发送会话删除请求;S1601: The first network node sends a session deletion request to the session management device.
其中,所述会话删除请求包括待删除的会话标识;The session deletion request includes a session identifier to be deleted;
S1602:第一网络节点接收由所述会话管理设备发送的会话删除响应消息;S1602: The first network node receives a session deletion response message sent by the session management device.
其中,所述会话删除响应消息包括待删除的会话标识;The session deletion response message includes a session identifier to be deleted.
S1603:第一网络节点将自身与所述待删除的会话标识对应的应用上下文进行删除。S1603: The first network node deletes the application context corresponding to the session identifier to be deleted.
实施例四Embodiment 4
参见图17,其示出了本发明实施例提供的一种应用于作为目标端的第二网络节点的会话管理的方法,该方法可以包括:Referring to FIG. 17, a method for applying session management to a second network node as a target end according to an embodiment of the present invention is provided. The method may include:
S1701:接收会话管理设备所发送的会话创建指示; S1701: Receive a session creation indication sent by the session management device.
其中,所述会话创建指示包括会话标识和会话类型;The session creation indication includes a session identifier and a session type.
S1702:根据所述会话创建指示建立对应的会话上下文创建;S1702: Create a corresponding session context creation according to the session creation indication.
S1503:向所述会话管理设备反馈创建确认消息;其中,所述创建确认消息包括会话标识。S1503: Feed back a create confirmation message to the session management device, where the create confirmation message includes a session identifier.
对于会话通信,参见图18,所述方法还包括:For session communication, referring to FIG. 18, the method further includes:
S1801:所述第二网络节点接收由所述会话管理设备发送的转发消息;S1801: The second network node receives a forwarding message sent by the session management device.
其中,所述转发消息包括所述会话标识和会话内容;The forwarding message includes the session identifier and session content.
S1802:第二网络节点接收到所述转发消息后,根据会话标识将会话内容投递到自身对应的应用上下文进行处理。S1802: After receiving the forwarding message, the second network node delivers the session content to its corresponding application context according to the session identifier for processing.
对于会话删除,参见图19,所述方法还包括:For the session deletion, referring to FIG. 19, the method further includes:
S1901:第二网络节点接收由所述会话管理设备发送的会话删除指示;S1901: The second network node receives the session deletion indication sent by the session management device.
其中,所述会话删除指示包括待删除的会话标识;The session deletion indication includes a session identifier to be deleted.
S1902:第二网络节点将自身与所述待删除的会话标识对应的应用上下文进行删除,并向所述会话管理设备返回会话删除确认消息;S1902: The second network node deletes the application context corresponding to the session identifier to be deleted, and returns a session deletion confirmation message to the session management device.
其中,所述会话删除确认消息包括所述待删除的会话标识。The session deletion confirmation message includes the session identifier to be deleted.
实施例五 Embodiment 5
参见图20,其示出了本发明实施例提供的一种会话管理设备200,该会话管理设备200可以包括:第一接收模块2001、响应模块2002和第一发送模块2003;其中,Referring to FIG. 20, a session management device 200 is provided in the embodiment of the present invention. The session management device 200 may include: a first receiving module 2001, a response module 2002, and a first sending module 2003;
所述第一接收模块2001,设置为接收会话业务发起节点发送的会话业务请求;其中,所述会话业务请求包括会话业务发起节点标识以及会话信息;The first receiving module 2001 is configured to receive a session service request sent by the session service initiating node, where the session service request includes a session service initiating node identifier and session information;
所述响应模块2002,设置为针对所述会话业务请求根据会话标识与会话业务发起节点之间的第一对应关系进行响应;The response module 2002 is configured to respond to the session service request according to a first correspondence between the session identifier and the session service originating node;
所述第一发送模块2003,设置为将会话业务请求对应的响应消息发送至所述会话业务发起节点。The first sending module 2003 is configured to send a response message corresponding to the session service request to the session service initiating node.
在上述方案中,所述会话业务请求包括会话创建请求;其中,所述会 话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识;In the above solution, the session service request includes a session creation request; wherein the conference The service initiation node identifier is: an identifier of the first network node that is a session service initiator, the session information includes a session type, and the session creation request further includes an identifier of a second network node that is a target end of the session service;
相应地,所述响应模块2002,设置为针对所述会话创建请求设置对应的会话标识,并根据所述会话创建请求建立所述会话标识与所述会话类型以及所述第一网络节点标识之间的第一对应关系;Correspondingly, the response module 2002 is configured to set a corresponding session identifier for the session creation request, and establish a relationship between the session identifier and the session type and the first network node identifier according to the session creation request. First correspondence;
所述第一发送模块2003,设置为根据所述第一对应关系向第二网络节点发送会话创建指示;其中,所述会话创建指示包括所述会话标识和所述会话类型;The first sending module 2003 is configured to send a session creation indication to the second network node according to the first correspondence relationship, where the session creation indication includes the session identifier and the session type;
所述第一接收模块2001,还设置为接收所述第二网络节点发送的创建确认消息;其中,所述创建确认消息包括所述会话标识;The first receiving module 2001 is further configured to receive a creation confirmation message sent by the second network node, where the creation confirmation message includes the session identifier;
所述响应模块2002,还设置为根据创建确认消息建立所述会话标识与会话类型、第一网络节点标识以及第二网络节点标识之间的第二对应关系;The response module 2002 is further configured to establish, according to the create confirmation message, a second correspondence between the session identifier and the session type, the first network node identifier, and the second network node identifier;
所述第一发送模块2003,还设置为向第一网络节点发送会话创建响应消息;其中,所述会话创建响应消息包括所述会话标识。The first sending module 2003 is further configured to send a session creation response message to the first network node, where the session creation response message includes the session identifier.
在上述方案中,所述第一接收模块2001,还设置为接收所述第一网络节点发送的会话消息;其中,所述会话消息包括所述会话标识以及会话内容;In the above solution, the first receiving module 2001 is further configured to receive a session message sent by the first network node, where the session message includes the session identifier and session content;
所述第一发送模块2003,还设置为根据所述会话标识及所述第二对应关系将所述会话内容转发至所述第二网络节点;其中,所述转发消息中包括所述会话标识和所述会话内容。The first sending module 2003 is further configured to forward the session content to the second network node according to the session identifier and the second correspondence, where the forwarding message includes the session identifier and The conversation content.
在上述方案中,参见图21,所述会话管理设备200还包括修改模块2004;In the above solution, referring to FIG. 21, the session management device 200 further includes a modification module 2004;
所述第一接收模块2001,还设置为接收所述第一网络节点发送的会话修改请求;其中,所述会话修改请求包括所述会话标识以及需修改的内容;The first receiving module 2001 is further configured to receive a session modification request sent by the first network node, where the session modification request includes the session identifier and content to be modified;
所述修改模块2004,设置为根据所述会话修改请求修改对应的所述第 二对应关系;The modifying module 2004 is configured to modify the corresponding first according to the session modification request Two correspondences;
所述第一发送模块2003,设置为向所述第一网络节点发送会话修改响应。The first sending module 2003 is configured to send a session modification response to the first network node.
在上述方案中,参见图21,所述会话管理设备200,还包括第一删除模块2005;In the above solution, referring to FIG. 21, the session management device 200 further includes a first deletion module 2005;
所述第一接收模块2001,还设置为接收所述第一网络节点发送的会话删除请求;其中,所述会话删除请求包括待删除的会话标识;The first receiving module 2001 is further configured to receive a session deletion request sent by the first network node, where the session deletion request includes a session identifier to be deleted;
所述第一发送模块2003,还设置为向所述第二网络节点发送会话删除指示;其中,所述会话删除指示包括待删除的会话标识;The first sending module 2003 is further configured to send a session deletion indication to the second network node, where the session deletion indication includes a session identifier to be deleted;
所述第一接收模块2001,还设置为接收所述第二网络节点返回的会话删除确认消息;其中,所述会话删除确认消息包括待删除的会话标识;The first receiving module 2001 is further configured to receive a session deletion confirmation message returned by the second network node, where the session deletion confirmation message includes a session identifier to be deleted;
所述第一删除模块2005,设置为根据所述待删除的会话标识将对应的所述第二对应关系进行删除;The first deleting module 2005 is configured to delete the corresponding second correspondence according to the session identifier to be deleted;
所述第一发送模块2003,还设置为向所述第一网络节点发送会话删除响应消息;其中,所述会话删除响应消息包括所述待删除的会话标识。The first sending module 2003 is further configured to send a session deletion response message to the first network node, where the session deletion response message includes the session identifier to be deleted.
实施例六Embodiment 6
参见图22,其示出了本发明实施例提供的一种第一网络节点220的结构,该第一网络节点220包括:第二发送模块2201和第二接收模块2202;其中,Referring to FIG. 22, a structure of a first network node 220 is provided. The first network node 220 includes: a second sending module 2201 and a second receiving module 2202;
所述第二发送模块2201,设置为向会话管理设备发送会话业务请求;其中,所述会话管理设备为网络架构内的网络节点中额外设置的会话管理设备;所述会话业务请求包括第一网络节点标识以及会话信息;The second sending module 2201 is configured to send a session service request to the session management device, where the session management device is a session management device additionally set in a network node in the network architecture; the session service request includes the first network Node identification and session information;
所述第二接收模块2202,设置为接收所述会话管理设备针对所述会话业务请求对应发送的响应消息。The second receiving module 2202 is configured to receive a response message that is sent by the session management device for the session service request.
在上述方案中,所述会话业务请求包括:会话创建请求;其中,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识; In the above solution, the session service request includes: a session creation request; wherein the session service initiation node identifier is: an identifier of the first network node that is a session service initiator, and the session information includes a session type. The session creation request further includes an identifier of the second network node that is the target end of the session service;
相应地,所述第二接收模块2202,设置为接收由所述会话管理设备发送的会话创建响应消息;其中,所述会话创建响应消息包括会话标识。Correspondingly, the second receiving module 2202 is configured to receive a session creation response message sent by the session management device, where the session creation response message includes a session identifier.
在上述方案中,所述第二发送模块2201,还设置为向所述会话管理设备发送会话消息;其中,所述会话消息包括所述会话标识以及会话内容。In the above solution, the second sending module 2201 is further configured to send a session message to the session management device, where the session message includes the session identifier and session content.
在上述方案中,所述第二发送模块2201,还设置为向所述会话管理设备发送会话修改请求;其中,所述会话修改请求包括所述会话标识以及需修改的内容;In the foregoing solution, the second sending module 2201 is further configured to send a session modification request to the session management device, where the session modification request includes the session identifier and content to be modified;
所述第二接收模块2202,还设置为接收由所述会话管理设备发送的会话修改响应。The second receiving module 2202 is further configured to receive a session modification response sent by the session management device.
在上述方案中,参见图23,所述第一网络节点220还包括第二删除模块2203;In the above solution, referring to Figure 23, the first network node 220 further includes a second deletion module 2203;
所述第二发送模块2201,还设置为向所述会话管理设备发送会话删除请求;其中,所述会话删除请求包括待删除的会话标识;The second sending module 2201 is further configured to send a session deletion request to the session management device, where the session deletion request includes a session identifier to be deleted;
所述第二接收模块2202,还设置为接收由所述会话管理设备发送的会话删除响应消息;其中,所述会话删除响应消息包括待删除的会话标识;The second receiving module 2202 is further configured to receive a session deletion response message sent by the session management device, where the session deletion response message includes a session identifier to be deleted;
所述第二删除模块2203,还设置为将所述第一网络节点自身与所述待删除的会话标识对应的应用上下文进行删除。The second deletion module 2203 is further configured to delete the application context corresponding to the session identifier to be deleted by the first network node itself.
实施例七Example 7
参见图24,其示出了本发明实施例提供的一种第二网络节点240,该第二网络节点240可以包括:第三接收模块2401、会话上下文处理模块2402和第三发送模块2403;其中,Referring to FIG. 24, a second network node 240 is provided in the embodiment of the present invention. The second network node 240 may include: a third receiving module 2401, a session context processing module 2402, and a third sending module 2403. ,
所述第三接收模块2401,设置为接收会话管理设备所发送的会话创建指示;其中,所述会话创建指示包括会话标识和会话类型;The third receiving module 2401 is configured to receive a session creation indication sent by the session management device, where the session creation indication includes a session identifier and a session type;
所述会话上下文处理模块2402,设置为根据所述会话创建指示建立对应的会话上下文创建;The session context processing module 2402 is configured to establish a corresponding session context creation according to the session creation indication;
所述第三发送模块2403,设置为向所述会话管理设备反馈创建确认消息;其中,所述创建确认消息包括会话标识。 The third sending module 2403 is configured to feed back a create confirmation message to the session management device, where the create confirmation message includes a session identifier.
在上述方案中,所述第三接收模块2401,还设置为接收由所述会话管理设备发送的转发消息;其中,所述转发消息包括所述会话标识和会话内容;In the foregoing solution, the third receiving module 2401 is further configured to receive a forwarding message sent by the session management device, where the forwarding message includes the session identifier and session content;
所述会话上下文处理模块2402,还设置为根据会话标识将会话内容投递到自身对应的应用上下文进行处理。The session context processing module 2402 is further configured to process the session content to the corresponding application context according to the session identifier.
在上述方案中,所述第三接收模块2401,还设置为接收由所述会话管理设备发送的会话删除指示;其中,所述会话删除指示包括待删除的会话标识;In the foregoing solution, the third receiving module 2401 is further configured to receive a session deletion indication sent by the session management device, where the session deletion indication includes a session identifier to be deleted;
所述会话上下文处理模块2402,还设置为将所述第二网络节点自身与所述待删除的会话标识对应的应用上下文进行删除,并向所述会话管理设备返回会话删除确认消息;其中,所述会话删除确认消息包括所述待删除的会话标识。The session context processing module 2402 is further configured to delete the application context corresponding to the session identifier to be deleted by the second network node itself, and return a session deletion confirmation message to the session management device; The session deletion confirmation message includes the session identifier to be deleted.
实施例八Example eight
参见图25,其示出了本发明实施例提供的一种会话管理系统250的结构,所述系统250可以包括:会话管理设备200、作为发起端的第一网络节点220;其中,Referring to FIG. 25, a structure of a session management system 250 according to an embodiment of the present invention is shown. The system 250 may include: a session management device 200, and a first network node 220 as an initiator;
所述会话管理设备240,设置为接收第一网络节点220发送的会话业务请求;其中,所述会话业务请求包括第一网络节点220标识以及会话信息;The session management device 240 is configured to receive a session service request sent by the first network node 220, where the session service request includes a first network node 220 identifier and session information;
以及,针对所述会话业务请求根据会话标识与第一网络节点220之间的第一对应关系进行响应;And responding to the session service request according to the first correspondence between the session identifier and the first network node 220;
以及,将会话业务请求对应的响应消息发送至所述第一网络节点220;And sending a response message corresponding to the session service request to the first network node 220;
所述第一网络节点220,设置为向会话管理设备200发送会话业务请求;The first network node 220 is configured to send a session service request to the session management device 200;
以及,接收所述会话管理设备200针对所述会话业务请求对应发送的响应消息。And receiving a response message that is sent by the session management device 200 for the session service request.
本发明实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述会话管理的方法。 Embodiments of the present invention provide a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed by a processor.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the application can take the form of a hardware embodiment, a software embodiment, or an embodiment in combination with software and hardware. Moreover, the application 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 and optical storage, etc.) including computer usable program code.
本申请是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。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 one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的实施例而已,并非用于限定本申请的保护范围。The above description is only for the embodiments of the present invention, and is not intended to limit the scope of the present application.
工业实用性Industrial applicability
本发明实施例通过在网络架构中设置独立的会话管理设备,解耦会话层管理与应用层协议,并对会话关系进行统一维护,从而能够降低应用层的负担,并且减少网络协议制定及后期维护的工作量。 In the embodiment of the present invention, an independent session management device is set in the network architecture, the session layer management and the application layer protocol are decoupled, and the session relationship is uniformly maintained, thereby reducing the burden on the application layer and reducing network protocol formulation and post-maintenance. The amount of work.

Claims (27)

  1. 一种会话管理的方法,所述方法应用于在网络架构内的网络节点中额外设置的会话管理设备,所述方法包括:A method for session management, the method being applied to a session management device additionally set in a network node within a network architecture, the method comprising:
    会话管理设备接收会话业务发起节点发送的会话业务请求;其中,所述会话业务请求包括会话业务发起节点标识以及会话信息;The session management device receives a session service request sent by the session service initiation node, where the session service request includes a session service initiation node identifier and session information;
    所述会话管理设备针对所述会话业务请求根据会话标识与会话业务发起节点之间的第一对应关系进行响应;The session management device responds to the session service request according to a first correspondence between the session identifier and the session service originating node;
    所述会话管理设备将会话业务请求对应的响应消息发送至所述会话业务发起节点。The session management device sends a response message corresponding to the session service request to the session service initiation node.
  2. 根据权利要求1所述的方法,其中,所述会话业务请求包括会话创建请求;其中,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识;The method according to claim 1, wherein the session service request comprises a session creation request; wherein the session service initiation node identifier is: an identifier of the first network node as a session service initiator, the session information Including a session type, the session creation request further includes an identifier of a second network node that is a target end of the session service;
    相应地,所述会话管理设备针对所述会话业务请求根据会话标识与会话业务发起节点之间的第一对应关系进行响应,包括:Correspondingly, the session management device responds to the session service request according to the first correspondence between the session identifier and the session service initiation node, including:
    所述会话管理设备针对所述会话创建请求设置对应的会话标识,并根据所述会话创建请求建立所述会话标识与所述会话类型以及所述第一网络节点标识之间的第一对应关系;The session management device sets a corresponding session identifier for the session creation request, and establishes a first correspondence between the session identifier and the session type and the first network node identifier according to the session creation request;
    所述会话管理设备根据所述第一对应关系向第二网络节点发送会话创建指示;其中,所述会话创建指示包括所述会话标识和所述会话类型;The session management device sends a session creation indication to the second network node according to the first correspondence relationship, where the session creation indication includes the session identifier and the session type;
    所述会话管理设备接收所述第二网络节点发送的创建确认消息,并根据创建确认消息建立所述会话标识与会话类型、第一网络节点标识以及第二网络节点标识之间的第二对应关系;其中,所述创建确认消息包括所述会话标识;The session management device receives the creation confirmation message sent by the second network node, and establishes a second correspondence between the session identifier and the session type, the first network node identifier, and the second network node identifier according to the create confirmation message. Wherein the creation confirmation message includes the session identifier;
    相应地,所述会话管理设备将会话业务请求对应的响应消息发送至所述会话业务发起节点,包括:Correspondingly, the session management device sends a response message corresponding to the session service request to the session service initiation node, including:
    所述会话管理设备向第一网络节点发送会话创建响应消息;其中,所述会话创建响应消息包括所述会话标识。 The session management device sends a session creation response message to the first network node; wherein the session creation response message includes the session identifier.
  3. 根据权利要求2所述的方法,所述方法还包括:The method of claim 2, the method further comprising:
    所述会话管理设备接收所述第一网络节点发送的会话消息;其中,所述会话消息包括所述会话标识以及会话内容;Receiving, by the session management device, a session message sent by the first network node, where the session message includes the session identifier and session content;
    所述会话管理设备根据所述会话标识及所述第二对应关系将所述会话内容转发至所述第二网络节点;其中,所述转发消息中包括所述会话标识和所述会话内容。And the session management device forwards the session content to the second network node according to the session identifier and the second correspondence, where the forwarding message includes the session identifier and the session content.
  4. 根据权利要求2所述的方法,所述方法还包括:The method of claim 2, the method further comprising:
    所述会话管理设备接收所述第一网络节点发送的会话修改请求;其中,所述会话修改请求包括所述会话标识以及需修改的内容;Receiving, by the session management device, a session modification request sent by the first network node, where the session modification request includes the session identifier and content to be modified;
    所述会话管理设备根据所述会话修改请求修改对应的所述第二对应关系;The session management device modifies the corresponding second correspondence according to the session modification request;
    所述会话管理设备向所述第一网络节点发送会话修改响应。The session management device sends a session modification response to the first network node.
  5. 根据权利要求2所述的方法,所述方法还包括:The method of claim 2, the method further comprising:
    所述会话管理设备接收所述第一网络节点发送的会话删除请求;其中,所述会话删除请求包括待删除的会话标识;Receiving, by the session management device, a session deletion request sent by the first network node, where the session deletion request includes a session identifier to be deleted;
    所述会话管理设备向所述第二网络节点发送会话删除指示;其中,所述会话删除指示包括待删除的会话标识;The session management device sends a session deletion indication to the second network node, where the session deletion indication includes a session identifier to be deleted;
    所述会话管理设备接收所述第二网络节点返回的会话删除确认消息;其中,所述会话删除确认消息包括待删除的会话标识;Receiving, by the session management device, a session deletion confirmation message returned by the second network node, where the session deletion confirmation message includes a session identifier to be deleted;
    所述会话管理设备根据所述待删除的会话标识将对应的所述第二对应关系进行删除,并向所述第一网络节点发送会话删除响应消息;其中,所述会话删除响应消息包括所述待删除的会话标识。The session management device deletes the corresponding second correspondence according to the session identifier to be deleted, and sends a session deletion response message to the first network node, where the session deletion response message includes the The session ID to be deleted.
  6. 一种会话管理的方法,所述方法应用于作为会话业务发起端的第一网络节点,所述方法包括:A method for session management, the method being applied to a first network node as a session service initiator, the method comprising:
    向会话管理设备发送会话业务请求;其中,所述会话管理设备为网络架构内的网络节点中额外设置的会话管理设备;所述会话业务请求包括第一网络节点标识以及会话信息; Sending a session service request to the session management device; wherein the session management device is a session management device additionally set in a network node in the network architecture; the session service request includes a first network node identifier and session information;
    接收所述会话管理设备针对所述会话业务请求对应发送的响应消息。Receiving a response message sent by the session management device corresponding to the session service request.
  7. 根据权利要求6所述的方法,其中,所述会话业务请求包括:会话创建请求;其中,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识;The method according to claim 6, wherein the session service request comprises: a session creation request; wherein the session service initiation node identifier is: an identifier of the first network node as a session service initiator, the session The information includes a session type, and the session creation request further includes an identifier of the second network node that is the target end of the session service;
    相应地,所述针对所述会话业务请求对应发送的响应消息包括会话创建响应消息;其中,所述会话创建响应消息包括会话标识。Correspondingly, the response message correspondingly sent for the session service request includes a session creation response message; wherein the session creation response message includes a session identifier.
  8. 根据权利要求7所述的方法,所述方法还包括:The method of claim 7 further comprising:
    所述第一网络节点向所述会话管理设备发送会话消息;其中,所述会话消息包括所述会话标识以及会话内容。The first network node sends a session message to the session management device; wherein the session message includes the session identifier and session content.
  9. 根据权利要求7所述的方法,所述方法还包括:The method of claim 7 further comprising:
    所述第一网络节点向所述会话管理设备发送会话修改请求;其中,所述会话修改请求包括所述会话标识以及需修改的内容;Transmitting, by the first network node, a session modification request to the session management device, where the session modification request includes the session identifier and content to be modified;
    所述第一网络节点接收由所述会话管理设备发送的会话修改响应。The first network node receives a session modification response sent by the session management device.
  10. 根据权利要求7所述的方法,所述方法还包括:The method of claim 7 further comprising:
    所述第一网络节点向所述会话管理设备发送会话删除请求;其中,所述会话删除请求包括待删除的会话标识;Sending, by the first network node, a session deletion request to the session management device, where the session deletion request includes a session identifier to be deleted;
    所述第一网络节点接收由所述会话管理设备发送的会话删除响应消息;其中,所述会话删除响应消息包括待删除的会话标识;Receiving, by the first network node, a session deletion response message sent by the session management device, where the session deletion response message includes a session identifier to be deleted;
    所述第一网络节点将自身与所述待删除的会话标识对应的应用上下文进行删除。The first network node deletes the application context corresponding to the session identifier to be deleted.
  11. 一种会话管理方法,所述方法应用于第二网络节点,所述方法包括:A session management method, the method being applied to a second network node, the method comprising:
    接收会话管理设备所发送的会话创建指示;其中,所述会话管理设备为网络架构内的网络节点中额外设置的会话管理设备;所述会话创建指示包括会话标识和会话类型;Receiving a session creation indication sent by the session management device; wherein the session management device is a session management device additionally set in a network node in the network architecture; the session creation indication includes a session identifier and a session type;
    根据所述会话创建指示建立对应的会话上下文创建;Establishing a corresponding session context creation according to the session creation indication;
    向所述会话管理设备反馈创建确认消息;其中,所述创建确认消息包括 会话标识。Sending a confirmation message to the session management device; wherein the creation confirmation message includes Session ID.
  12. 根据权利要求11所述的方法,所述方法还包括:The method of claim 11 further comprising:
    所述第二网络节点接收由所述会话管理设备发送的转发消息;其中,所述转发消息包括所述会话标识和会话内容;Receiving, by the second network node, a forwarding message sent by the session management device, where the forwarding message includes the session identifier and session content;
    所述第二网络节点根据所述会话标识将会话内容投递到自身对应的应用上下文进行处理。The second network node delivers the session content to its corresponding application context according to the session identifier for processing.
  13. 根据权利要求11所述的方法,所述方法还包括:The method of claim 11 further comprising:
    所述第二网络节点接收由所述会话管理设备发送的会话删除指示;其中,所述会话删除指示包括待删除的会话标识;Receiving, by the second network node, a session deletion indication sent by the session management device, where the session deletion indication includes a session identifier to be deleted;
    所述第二网络节点将自身与所述待删除的会话标识对应的应用上下文进行删除,并向所述会话管理设备返回会话删除确认消息;其中,所述会话删除确认消息包括所述待删除的会话标识。The second network node deletes the application context corresponding to the session identifier to be deleted, and returns a session deletion confirmation message to the session management device, where the session deletion confirmation message includes the to-be-deleted Session ID.
  14. 一种会话管理设备,所述会话管理设备包括:第一接收模块、响应模块和第一发送模块;其中,A session management device, the session management device includes: a first receiving module, a response module, and a first sending module;
    所述第一接收模块,设置为接收会话业务发起节点发送的会话业务请求;其中,所述会话业务请求包括会话业务发起节点标识以及会话信息;The first receiving module is configured to receive a session service request sent by the session service initiating node, where the session service request includes a session service initiating node identifier and session information;
    所述响应模块,设置为针对所述会话业务请求根据会话标识与会话业务发起节点之间的第一对应关系进行响应;The response module is configured to respond to the session service request according to a first correspondence between the session identifier and the session service originating node;
    所述第一发送模块,设置为将会话业务请求对应的响应消息发送至所述会话业务发起节点。The first sending module is configured to send a response message corresponding to the session service request to the session service initiating node.
  15. 根据权利要求14所述的会话管理设备,其中,所述会话业务请求包括会话创建请求;其中,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识;The session management device according to claim 14, wherein the session service request comprises a session creation request; wherein the session service initiation node identifier is: an identifier of the first network node as a session service initiator, The session information includes a session type, and the session creation request further includes an identifier of the second network node that is the target end of the session service;
    相应地,所述响应模块,设置为针对所述会话创建请求设置对应的会话标识,并根据所述会话创建请求建立所述会话标识与所述会话类型以及所述第一网络节点标识之间的第一对应关系; Correspondingly, the response module is configured to set a corresponding session identifier for the session creation request, and establish a relationship between the session identifier and the session type and the first network node identifier according to the session creation request. First correspondence
    所述第一发送模块,设置为根据所述第一对应关系向第二网络节点发送会话创建指示;其中,所述会话创建指示包括所述会话标识和所述会话类型;The first sending module is configured to send a session creation indication to the second network node according to the first correspondence, where the session creation indication includes the session identifier and the session type;
    所述第一接收模块,还设置为接收所述第二网络节点发送的创建确认消息;其中,所述创建确认消息包括所述会话标识;The first receiving module is further configured to receive a creation confirmation message sent by the second network node, where the creation confirmation message includes the session identifier;
    所述响应模块,还设置为根据创建确认消息建立所述会话标识与会话类型、第一网络节点标识以及第二网络节点标识之间的第二对应关系;The response module is further configured to establish, according to the create confirmation message, a second correspondence between the session identifier and the session type, the first network node identifier, and the second network node identifier;
    相应地,所述第一发送模块,还设置为向第一网络节点发送会话创建响应消息;其中,所述会话创建响应消息包括所述会话标识。Correspondingly, the first sending module is further configured to send a session creation response message to the first network node, where the session creation response message includes the session identifier.
  16. 根据权利要求15所述的会话管理设备,其中,所述第一接收模块,还设置为接收所述第一网络节点发送的会话消息;其中,所述会话消息包括所述会话标识以及会话内容;The session management device according to claim 15, wherein the first receiving module is further configured to receive a session message sent by the first network node, where the session message includes the session identifier and session content;
    所述第一发送模块,还设置为根据所述会话标识及所述第二对应关系将所述会话内容转发至所述第二网络节点;其中,所述转发消息中包括所述会话标识和所述会话内容。The first sending module is further configured to: forward the session content to the second network node according to the session identifier and the second correspondence; wherein the forwarding message includes the session identifier and the Describe the conversation content.
  17. 根据权利要求15所述的会话管理设备,所述会话管理设备还包括修改模块;The session management device according to claim 15, wherein the session management device further comprises a modification module;
    所述第一接收模块,还设置为接收所述第一网络节点发送的会话修改请求;其中,所述会话修改请求包括所述会话标识以及需修改的内容;The first receiving module is further configured to receive a session modification request sent by the first network node, where the session modification request includes the session identifier and content to be modified;
    所述修改模块,设置为根据所述会话修改请求修改对应的所述第二对应关系;The modifying module is configured to modify the corresponding second correspondence according to the session modification request;
    所述第一发送模块,设置为向所述第一网络节点发送会话修改响应。The first sending module is configured to send a session modification response to the first network node.
  18. 根据权利要求15所述的会话管理设备,所述会话管理设备,还包括第一删除模块;The session management device according to claim 15, the session management device further comprising a first deletion module;
    所述第一接收模块,还设置为接收所述第一网络节点发送的会话删除请求;其中,所述会话删除请求包括待删除的会话标识;The first receiving module is further configured to receive a session deletion request sent by the first network node, where the session deletion request includes a session identifier to be deleted;
    所述第一发送模块,还设置为向所述第二网络节点发送会话删除指示;其中,所述会话删除指示包括待删除的会话标识; The first sending module is further configured to send a session deletion indication to the second network node, where the session deletion indication includes a session identifier to be deleted;
    所述第一接收模块,还设置为接收所述第二网络节点返回的会话删除确认消息;其中,所述会话删除确认消息包括待删除的会话标识;The first receiving module is further configured to receive a session deletion confirmation message returned by the second network node, where the session deletion confirmation message includes a session identifier to be deleted;
    所述第一删除模块,设置为根据所述待删除的会话标识将对应的所述第二对应关系进行删除;The first deleting module is configured to delete the corresponding second correspondence according to the session identifier to be deleted;
    所述第一发送模块,还设置为向所述第一网络节点发送会话删除响应消息;其中,所述会话删除响应消息包括所述待删除的会话标识。The first sending module is further configured to send a session deletion response message to the first network node, where the session deletion response message includes the session identifier to be deleted.
  19. 一种第一网络节点,所述第一网络节点作为会话业务的发起端,包括:第二发送模块和第二接收模块;其中,a first network node, where the first network node serves as an initiator of the session service, and includes: a second sending module and a second receiving module;
    所述第二发送模块,设置为向会话管理设备发送会话业务请求;其中,所述会话管理设备为网络架构内的网络节点中额外设置的会话管理设备;所述会话业务请求包括第一网络节点标识以及会话信息;The second sending module is configured to send a session service request to the session management device, where the session management device is a session management device additionally set in a network node in the network architecture; the session service request includes a first network node Identification and session information;
    所述第二接收模块,设置为接收所述会话管理设备针对所述会话业务请求对应发送的响应消息。The second receiving module is configured to receive a response message that is sent by the session management device corresponding to the session service request.
  20. 根据权利要求19所述的第一网络节点,其中,所述会话业务请求包括:会话创建请求;其中,所述会话业务发起节点标识为:作为会话业务发起端的所述第一网络节点的标识,所述会话信息包括会话类型,所述会话创建请求还包括作为会话业务目标端的第二网络节点的标识;The first network node according to claim 19, wherein the session service request comprises: a session creation request; wherein the session service initiation node identifier is: an identifier of the first network node as a session service initiator, The session information includes a session type, and the session creation request further includes an identifier of a second network node that is a target end of the session service;
    相应地,所述第二接收模块,设置为接收由所述会话管理设备发送的会话创建响应消息;其中,所述会话创建响应消息包括会话标识。Correspondingly, the second receiving module is configured to receive a session creation response message sent by the session management device, where the session creation response message includes a session identifier.
  21. 根据权利要求19所述的第一网络节点,其中,所述第二发送模块,还设置为向所述会话管理设备发送会话消息;其中,所述会话消息包括所述会话标识以及会话内容。The first network node according to claim 19, wherein the second sending module is further configured to send a session message to the session management device; wherein the session message includes the session identifier and session content.
  22. 根据权利要求19所述的第一网络节点,其中,所述第二发送模块,还设置为向所述会话管理设备发送会话修改请求;其中,所述会话修改请求包括所述会话标识以及需修改的内容;The first network node according to claim 19, wherein the second sending module is further configured to send a session modification request to the session management device; wherein the session modification request includes the session identifier and needs to be modified Content;
    所述第二接收模块,还设置为接收由所述会话管理设备发送的会话修改响应。The second receiving module is further configured to receive a session modification response sent by the session management device.
  23. 根据权利要求19所述的第一网络节点,所述第一网络节点还包括 第二删除模块;The first network node according to claim 19, the first network node further comprising Second deletion module;
    所述第二发送模块,还设置为向所述会话管理设备发送会话删除请求;其中,所述会话删除请求包括待删除的会话标识;The second sending module is further configured to send a session deletion request to the session management device, where the session deletion request includes a session identifier to be deleted;
    所述第二接收模块,还设置为接收由所述会话管理设备发送的会话删除响应消息;其中,所述会话删除响应消息包括待删除的会话标识;The second receiving module is further configured to receive a session deletion response message sent by the session management device, where the session deletion response message includes a session identifier to be deleted;
    所述第二删除模块,设置为将所述第一网络节点自身与所述待删除的会话标识对应的应用上下文进行删除。The second deletion module is configured to delete the application context corresponding to the session identifier to be deleted by the first network node itself.
  24. 一种第二网络节点,所述第二网络节点包括:第三接收模块、会话上下文处理模块和第三发送模块;其中,A second network node, where the second network node includes: a third receiving module, a session context processing module, and a third sending module;
    所述第三接收模块,设置为接收会话管理设备所发送的会话创建指示;其中,所述会话管理设备为网络架构内的网络节点中额外设置的会话管理设备;所述会话创建指示包括会话标识和会话类型;The third receiving module is configured to receive a session creation indication sent by the session management device, where the session management device is a session management device additionally set in a network node in the network architecture; the session creation indication includes a session identifier And the type of session;
    所述会话上下文处理模块,设置为根据所述会话创建指示建立对应的会话上下文创建;The session context processing module is configured to establish a corresponding session context creation according to the session creation indication;
    所述第三发送模块,设置为向所述会话管理设备反馈创建确认消息;其中,所述创建确认消息包括会话标识。The third sending module is configured to feed back a create confirmation message to the session management device, where the create confirmation message includes a session identifier.
  25. 根据权利要求24所述的第二网络节点,其中,所述第三接收模块,还设置为接收由所述会话管理设备发送的转发消息;其中,所述转发消息包括所述会话标识和会话内容;The second network node according to claim 24, wherein the third receiving module is further configured to receive a forwarding message sent by the session management device; wherein the forwarding message includes the session identifier and session content ;
    所述会话上下文处理模块,还设置为根据会话标识将会话内容投递到自身对应的应用上下文进行处理。The session context processing module is further configured to process the session content to the corresponding application context according to the session identifier.
  26. 根据权利要求24所述的第二网络节点,其中,所述第三接收模块,还设置为接收由所述会话管理设备发送的会话删除指示;其中,所述会话删除指示包括待删除的会话标识;The second network node according to claim 24, wherein the third receiving module is further configured to receive a session deletion indication sent by the session management device; wherein the session deletion indication comprises a session identifier to be deleted ;
    所述会话上下文处理模块,还设置为将所述第二网络节点自身与所述待删除的会话标识对应的应用上下文进行删除,并向所述会话管理设备返回会话删除确认消息;其中,所述会话删除确认消息包括所述待删除的会话标识。The session context processing module is further configured to delete the application context corresponding to the session identifier to be deleted by the second network node itself, and return a session deletion confirmation message to the session management device; The session deletion confirmation message includes the session identifier to be deleted.
  27. 一种会话管理系统,所述系统包括:会话管理设备、作为会话业务 发起端的第一网络节点;其中,A session management system, the system comprising: a session management device, as a session service a first network node at the originating end; wherein
    所述会话管理设备,设置为接收第一网络节点发送的会话业务请求;其中,所述会话业务请求包括第一网络节点标识以及会话信息;The session management device is configured to receive a session service request sent by the first network node, where the session service request includes a first network node identifier and session information;
    以及,针对所述会话业务请求根据会话标识与第一网络节点之间的第一对应关系进行响应;And responding to the session service request according to the first correspondence between the session identifier and the first network node;
    以及,将会话业务请求对应的响应消息发送至所述第一网络节点;And sending a response message corresponding to the session service request to the first network node;
    所述第一网络节点,设置为向会话管理设备发送会话业务请求;The first network node is configured to send a session service request to the session management device;
    以及,接收所述会话管理设备针对所述会话业务请求对应发送的响应消息。 And receiving a response message that is sent by the session management device for the session service request.
PCT/CN2017/084589 2016-05-17 2017-05-16 Session management method, device and system WO2017198158A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610328886.1 2016-05-17
CN201610328886.1A CN107395555A (en) 2016-05-17 2016-05-17 A kind of method, apparatus and system of session management

Publications (1)

Publication Number Publication Date
WO2017198158A1 true WO2017198158A1 (en) 2017-11-23

Family

ID=60325727

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/084589 WO2017198158A1 (en) 2016-05-17 2017-05-16 Session management method, device and system

Country Status (2)

Country Link
CN (1) CN107395555A (en)
WO (1) WO2017198158A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617955A (en) * 2018-12-04 2019-04-12 山东浪潮通软信息科技有限公司 A kind of stateless session multi-zone supervision implementation method based on distributed caching
CN114553707B (en) * 2020-11-26 2023-09-15 腾讯科技(深圳)有限公司 Method and device for generating topology information of network and delimiting network faults
CN114615314B (en) * 2022-03-08 2024-03-29 珠海金山办公软件有限公司 Session establishment method, device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1856137A (en) * 2005-04-27 2006-11-01 华为技术有限公司 Method and system for determining centrally controlled server
US20070147244A1 (en) * 2005-12-22 2007-06-28 Nokia Corporation Method for the mapping of packet flows to bearers in a communication system
CN101841550A (en) * 2009-03-16 2010-09-22 中国移动通信集团公司 Communication method, system and centralized control entity of IMS network
CN104219783A (en) * 2013-06-05 2014-12-17 中国移动通信集团公司 Session redirection method and equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022481A (en) * 2007-03-21 2007-08-22 华为技术有限公司 Method and device for realizing private conversation in multi-point meeting
CN101562784B (en) * 2008-04-14 2012-06-06 华为技术有限公司 Method, device and system for distributing messages
CN103139731A (en) * 2011-11-23 2013-06-05 华为软件技术有限公司 Method, device and system of message interconnection
CN105282789A (en) * 2014-07-24 2016-01-27 中兴通讯股份有限公司 M2M communication method and system and management node in M2M network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1856137A (en) * 2005-04-27 2006-11-01 华为技术有限公司 Method and system for determining centrally controlled server
US20070147244A1 (en) * 2005-12-22 2007-06-28 Nokia Corporation Method for the mapping of packet flows to bearers in a communication system
CN101841550A (en) * 2009-03-16 2010-09-22 中国移动通信集团公司 Communication method, system and centralized control entity of IMS network
CN104219783A (en) * 2013-06-05 2014-12-17 中国移动通信集团公司 Session redirection method and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"3rd Generation Partnership Project; Technical Specification Group Core Ne- twork and Terminals; IP multimedia call control protocol based on Session Initiation Protocol (SIP) and Session Description Protocol (SDP); Stage 3 (Release 13", 3GPP TS 24. 229 V13.0.0, 21 December 2014 (2014-12-21), XP055598224 *

Also Published As

Publication number Publication date
CN107395555A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
WO2020253538A1 (en) Broadcast method and device for virtual network group, apparatus, and system
JP6624619B2 (en) Resource subscription method, resource subscription device, and resource subscription system
WO2019007166A1 (en) Method and apparatus for determining identification information about cross-domain path, and storage medium
US10397183B2 (en) Method and system for enabling media optimization in a cloud conference
JP5847185B2 (en) Content sharing method and apparatus using group change information in content-centric network environment
US8102846B2 (en) Method and apparatus for managing a multicast tree using a multicast tree manager and a content server
JP2024504006A (en) Data transmission methods, devices, equipment and computer programs for service integration
WO2017198158A1 (en) Session management method, device and system
KR101240552B1 (en) System and method for managing media keys and for transmitting/receiving peer-to-peer messages using the media keys
JP2010509813A (en) Notification message processing method and apparatus
WO2023000940A1 (en) Data processing method and apparatus, and network element device, storage medium and program product
KR101805458B1 (en) Method for supporting websocket and web server and web application server using the same
WO2016065917A1 (en) Video conference system communication method and corresponding device
WO2017004894A1 (en) Resource sharing method, terminal device, application server and system
WO2014161460A1 (en) Session method, network node, server, system and computer storage medium
CN110875914B (en) Method and device for transmitting messages based on shared session link
WO2017128713A1 (en) Method and device for publishing subscription message
WO2016090921A1 (en) Session control method and device
WO2017016525A1 (en) Service data group sending method, terminal and server
WO2022184100A1 (en) Path establishment method and apparatus, storage medium and electronic apparatus
CN114025005B (en) Data communication method, system, electronic equipment and storage medium
WO2018233447A1 (en) Method and apparatus for implementing link connection processing, and storage medium
Lavinal et al. A next-generation service overlay architecture
Toth Design of a social messaging system using stateful multicast
WO2019161721A1 (en) Correspondence processing method and device based on interworking rcs system

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17798721

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17798721

Country of ref document: EP

Kind code of ref document: A1