WO2011023001A1 - 一种实现单条偶联支持多用户的方法和装置 - Google Patents

一种实现单条偶联支持多用户的方法和装置 Download PDF

Info

Publication number
WO2011023001A1
WO2011023001A1 PCT/CN2010/072960 CN2010072960W WO2011023001A1 WO 2011023001 A1 WO2011023001 A1 WO 2011023001A1 CN 2010072960 W CN2010072960 W CN 2010072960W WO 2011023001 A1 WO2011023001 A1 WO 2011023001A1
Authority
WO
WIPO (PCT)
Prior art keywords
coupling
user
upper layer
layer protocol
sctp
Prior art date
Application number
PCT/CN2010/072960
Other languages
English (en)
French (fr)
Inventor
王科
梁庆永
张坤左
徐浩坤
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to JP2012525862A priority Critical patent/JP5411992B2/ja
Publication of WO2011023001A1 publication Critical patent/WO2011023001A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • 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/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for implementing a single coupling to support multiple users. Background technique
  • SCTP Stream Control Transmission Protocol
  • SCTP RRC4960
  • SCTP Stream Control Transmission Protocol
  • TCP Transmission Protocol-like traffic control and congestion control algorithms to ensure reliable transmission of user data between two SCTP endpoints through its own authentication and retransmission mechanism.
  • SCTP has a small transmission delay, which can prevent some big data from blocking other data, and has higher reliability and security.
  • the current SIGTRAN (Signaling Transport) technology is a coupling that supports one user, that is, a coupling can only support a single protocol user, such as M2PA (MTP2 (message delivery part second level) peer adaptation layer) type
  • M2PA MTP2 (message delivery part second level) peer adaptation layer) type
  • the coupling can only be used by M2PA users.
  • M2PA message delivery part second level
  • multiple couplings need to be configured to support each protocol user separately, which is a waste of bandwidth.
  • bandwidth consumption can be reduced because the probability of packet reuse is higher in a coupled case and the number of IP addresses and port configurations can be reduced. Summary of the invention
  • the present invention provides a method and apparatus for implementing a single coupling to support multiple users, to solve the problem that a coupling existing in the prior art can only support a single protocol user, thereby causing transmission of broadband resources. Waste problem.
  • a method for implementing a single coupling to support multiple users comprising:
  • Step 1 Activate a pre-configured coupling that does not specify a protocol type, and record the process ID and the coupling protocol identifier PPI information of all the upper layer protocol users that are coupled;
  • Step 2 Receive a data packet sent by an upper layer protocol user, and send the received data packet to the opposite end SCTP through the coupled local SCTP, and when receiving the data packet sent by the opposite end SCTP, according to the The PPI information carried in the data packet is used to search for the process ID of the user, and the data packet is sent to the upper layer protocol user corresponding to the process ID.
  • the step 1 specifically includes:
  • Step 11 The two upper-layer protocol users with the same protocol are configured to record the user process ID and PPI information carried in the request message from a pre-configured request message of the initialization instance sent by the two ends of the protocol.
  • Step 12 Determine whether the coupling is activated, and if yes, send a coupling activation indication message to the upper layer protocol user, and end the process; otherwise, perform step 13;
  • Step 13 determining whether the INIT primitive has been initiated to the SCTP, and if yes, waiting for the coupling to be activated, sending a coupling activation indication message to the upper layer protocol user; otherwise, initiating an INIT primitive to the SCTP, waiting for the After the coupling is activated, a coupling activation indication message is sent to the upper layer protocol user.
  • the step 2 further includes:
  • the data packet is discarded.
  • the method further includes:
  • the user When receiving the release coupling request message initiated by the user of the upper layer protocol, determining whether there are other upper layer protocol users on the coupling, and if so, directly using the upper layer protocol for sending the release request
  • the user sends an indication message that is coupled to the exit service, and clears the recorded information about the user; otherwise, sends a SHUTDOWN primitive to the SCTP, and after the link is broken, sends an indication to the upper layer protocol user to opt out of the service, and clears the record. Information about this user;
  • the related information of the user includes a process ID and PPI information of the user.
  • the method further includes:
  • the method further includes:
  • the coupling When receiving the coupling broken link indication message sent by the SCTP, the coupling is notified to all the upper layer protocol users to be coupled to the exit service, and the coupling of all upper layer protocol user information is cleared.
  • a device for implementing single-couple coupling to support multiple users including:
  • a coupling establishment unit configured to activate a pre-configured coupling of a non-specified protocol type, and record the process ID and coupling protocol identification PPI information of all the upper layer protocol users coupled;
  • the data transceiver unit is configured to receive the upper layer a data packet sent by the protocol user, and the received data packet is sent to the opposite end SCTP through the coupled local SCTP, and is received according to the data packet when receiving the data packet sent by the opposite end SCTP.
  • the PPI information searches for the process ID of the user, and sends the data packet to the upper layer protocol user corresponding to the process ID.
  • the data transceiver unit is further configured to: when the process number of the corresponding user is not found according to the PPI information carried by the data packet, discard the data packet.
  • the device further includes:
  • the coupling release unit is configured to: when receiving the release coupling request message initiated by the user of the upper layer protocol, determine whether there are other upper layer protocol users on the coupling, and if yes, directly send the coupling to the upper layer protocol user that sends the release request Exit the service indication message and clear the recorded information about this user; otherwise, send the SHUTDOWN primitive to the SCTP, and after the coupling is broken, give it
  • the layer protocol user sends an indication of coupling to the exit service, and clears the recorded related information of the user; the related information of the user includes the user's process ID and PPI information.
  • the device further includes:
  • a coupled congestion processing unit configured to send a coupled congestion indication message to the coupled upper layer protocol user when receiving the coupled congestion indication message sent by the SCTP, and receive the coupled congestion release sent by the SCTP Sending a coupled congestion release indication message to the coupled upper layer protocol user when the message is indicated;
  • a coupling chain breaking processing unit configured to notify the coupling of all upper layer protocol users to be detached from the service when receiving the coupling broken link indication message sent by the SCTP, and clear the recorded upper layer protocol of the coupling User related information.
  • the present invention has the following advantages:
  • the method provided by the present invention utilizes the characteristics of the underlying SCTP coupling and the specific upper layer protocol, so that a single coupling can support a plurality of different upper layer users according to the PPI (Payload Protocol Identifier), and fully utilizes Transmission bandwidth resources, reducing the configuration of IP addresses and ports, can meet the application of some special occasions.
  • PPI Payment Protocol Identifier
  • FIG. 1 is a flowchart of a method for implementing a single coupling to support multiple users according to the present invention
  • FIG. 2 is a structural diagram of an extended protocol stack application according to the present invention
  • FIG. 3 is a flowchart of coupling establishment according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of coupling release according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of an apparatus for implementing single-coupling support for multiple users according to the present invention. detailed description
  • a coupling can only support a single protocol user, thereby causing waste of transmitting broadband resources.
  • the present invention provides a method and apparatus for implementing single coupling to support multiple users, and the method implements a single even
  • the connection can support multiple different upper layer protocol users according to the PPI, make full use of the transmission bandwidth resources, and reduce the configuration of the IP address and port.
  • the method provided by the present invention for implementing a single coupling to support multiple users includes:
  • Step S101 Activate a pre-configured coupling of a non-specified protocol type, and record the process ID and the coupling protocol identifier PPI information of all the associated upper layer protocol users.
  • This step is specifically as follows:
  • the two upper-layer protocol users with the same receiving protocol record the request message of the initializing instance sent by the two ends of the uncoupled protocol type, and record the user process number and PPI information carried in the request message;
  • step (3) (2) determining whether the coupling is activated, and if so, reporting the coupling activation indication message to the upper layer protocol user, ending the process; otherwise, performing step (3);
  • Step S102 Receive a data packet sent by a user of an upper layer protocol, send the data packet to the opposite end SCTP by using the local SCTP, and, when receiving the data packet sent by the peer SCTP, search for the PPI information carried by the data packet.
  • the process ID of the user and sends the data packet to the upper layer protocol user corresponding to the process ID.
  • the data packet is discarded.
  • the method provided by the present invention utilizes the characteristics that the underlying SCTP coupling is independent of the specific upper layer protocol, so that a single coupling can support multiple different upper layer protocol users according to the PPI, fully utilize the transmission bandwidth resources, and reduce the IP address and port.
  • the configuration can meet the application of some special occasions.
  • the core idea of the embodiment of the present invention is to extend the application structure of the protocol stack, and use different PPIs of different protocols to distinguish different users, so that a single coupling can support multiple different upper layer users according to the PPI, specifically, expanding.
  • the application structure of the subsequent protocol stack is shown in Figure 2.
  • a coupling management module is introduced to explain the implementation process of the present invention in detail.
  • the present invention is not limited to being implemented by the coupling management module, and may also be coupled through a coupling management device. Such as hardware device implementation.
  • FIG. 3 specifically includes the following steps:
  • Step S300 start.
  • Step S301 Configure a coupling, and do not specify the type of the protocol to be coupled.
  • Step S302 The coupling management module receives a request message of an initialization instance initiated by the two upper-layer protocol users of the same protocol at the two ends of the coupling, where the request message carries the protocol user.
  • PPI Postload Protocol Identifier
  • Step S303 The coupling management module determines whether the coupling is activated. If not, step S304 is performed. Otherwise, the coupling activation indication message is directly sent to the upper layer protocol user, and then the process proceeds to step S306.
  • Step S304 the coupling management module determines whether the INIT primitive has been initiated to the SCTP. If not, the coupling management module sends an INIT primitive to the SCTP layer, requests an initialization instance, and starts to establish a process; otherwise, does not process, waits for the bottom layer After the activation, step S305 is performed.
  • Step S305 After the coupling establishment is successful, the coupling management module sends a coupling activation indication message to the corresponding upper layer protocol user.
  • the data transmission and reception process is started.
  • the data transmission and reception process specifically includes the following steps:
  • Step S400 start.
  • Step S401 The coupling management module receives the data packet sent by the upper layer protocol user.
  • Step S402 The coupling management module determines whether the coupling is activated. If yes, step S403 is performed; otherwise, step S408 is performed.
  • Step S403 The coupling management module sends the received data packet to the SCTP coupled to the local end, and the local SCTP sends the data packet to the coupled peer SCTP through the IP network.
  • Step S404 The coupling management module receives the data packet sent by the peer SCTP.
  • Step S405 Determine whether the coupling is activated. If yes, go to step S406; otherwise, go to step S408.
  • Step S406 Search for the process ID of the upper layer protocol user corresponding to the PPI according to the PPI in the data packet. If yes, go to step S407; otherwise, discard the message, and go to step S408.
  • Step S407 Send the data packet to an upper layer protocol user corresponding to the process ID of the user.
  • the coupling management module receives the coupled congestion indication message sent by the SCTP, and sends a coupled congestion indication message to all upper-layer protocol users to notify the upper layer protocol.
  • the user stops sending the packet action; after receiving the coupled congestion release indication message sent by the SCTP, the device sends a coupled congestion release indication message to all upper-layer protocol users, and notifies all upper-layer protocol users to perform congestion cancellation, and continues to Coupling sends data.
  • the coupling management module receives the coupling broken link indication message sent by the SCTP, and notifies all the upper layer protocol users of the coupling to quit the service, and clears all the upper layer protocol users coupled. information.
  • the coupling release process is also performed. Specifically, as shown in FIG. 5, the following steps are included:
  • Step S501 The upper layer protocol user initiates a release coupling request message to the coupling management module, and the request message must carry the PPI information.
  • Step S502 The coupling management module determines whether the coupling has other upper layer protocol users. If yes, step S503 is performed; otherwise, step S504 is performed.
  • Step S503 The coupling management module directly sends an indication message to the upper layer protocol user to be coupled to the exit service, and clears the recorded related information of the user, where the related information includes the process ID and PPI information of the user.
  • Step S504 The coupling management module sends a SHUTDOWN primitive to the SCTP, and after the link is broken, sends an indication to the upper layer protocol user to be detached from the service, and clears the recorded information about the user.
  • the present invention also provides a device for implementing a single coupling to support multiple users.
  • the method includes:
  • the coupling establishment unit 610 is configured to activate a pre-configured coupling of a non-specified protocol type, and record the process ID and coupling protocol identification PPI information of all the upper layer protocol users coupled;
  • the data transceiver unit 620 is configured to receive
  • the data packet sent by the user of the upper layer protocol is sent to the peer SCTP through the coupled local flow control transmission protocol SCTP, and is received according to the data packet when the data packet sent by the peer SCTP is received.
  • the PPI information searches for the process ID of the user, and sends the data packet to the upper layer protocol user corresponding to the process ID.
  • the data transceiver unit 620 is further configured to discard the data packet when the process ID of the user is not found according to the PPI information carried in the data packet.
  • the device provided by the present invention further includes:
  • the coupling release unit 630 is configured to determine whether there are other upper layer protocol users on the coupling when receiving the release coupling request message initiated by the user of the upper layer protocol, and if yes, send the coupling exit directly to the upper layer protocol user that sends the release request.
  • Information where the user's related information includes the user's process ID and PPI information.
  • the coupled congestion processing unit 640 is configured to send a coupled congestion indication message to all upper layer protocol users when receiving the coupled congestion indication message sent by the SCTP, and receive the coupled congestion release indication sent by the SCTP. In the case of a message, a coupled congestion release indication message is sent to all upper layer protocol users coupled.
  • the coupling chain breaking processing unit 650 is configured to notify all the upper layer protocol users to be coupled to the exit service when receiving the coupled chain disconnection indication message sent by the SCTP, and clear the recorded upper layer protocol user of the coupling. Related information.
  • the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and the modifications of the invention.

Description

一种实现单条偶联支持多用户的方法和装置 技术领域
本发明涉及通信技术领域, 尤其涉及一种实现单条偶联支持多用户的 方法和装置。 背景技术
偶联通常指 SCTP ( Stream Control Transmission Protocol, 流控制传输 协议 )偶联, SCTP协议 (RFC4960) , 使得用户平面和控制平面上的业务流 都能在单一的 IP网上传输。 SCTP是一个面向连接的传输层协议, 釆用了 类似 TCP的流量控制和拥塞控制算法, 通过自身的证实与重发机制来保证 用户数据在两个 SCTP端点间可靠传送。相对于 TCP等其他传输协议, SCTP 传输时延小, 可避免某些大数据对其他数据的阻塞, 具有更高的可靠性和 安全性。
目前的 SIGTRAN ( Signaling Transport, 信令传输)技术是一条偶联支 持一个用户, 即一条偶联只能支持单一协议用户, 比如 M2PA ( MTP2 (消 息传递部分第二级)对等适配层)类型的偶联只能供 M2PA用户使用。 在 某些传输带宽资源很宝贵场合, 比如选用卫星传输的情况时, 需要配置多 条偶联来分别支持各个协议用户, 比较浪费带宽。 而如果使用一条 SCTP 偶联支持多个上层用户, 则能减少带宽占用, 因为一条偶联情况下小包复 用的概率更高, 并且可以减少 IP地址和端口的配置数量。 发明内容
本发明提供一种实现单条偶联支持多用户的方法和装置, 用以解决现 有技术中存在的一条偶联只能支持单一协议用户, 从而导致传输宽带资源 的浪费问题。
为了解决上述问题, 本发明的技术方案是这样实现的:
一种实现单条偶联支持多用户的方法, 该方法包括:
步骤 1、激活预先配置的一条不指定协议类型的偶联, 并记录所述偶联 的所有上层协议用户的进程号和偶联协议标识 PPI信息;
步骤 2、接收上层协议用户发送的数据包,将所接收的数据包通过所述 偶联的本端 SCTP发送到对端 SCTP, 并在接收到所述对端 SCTP发送的数 据包时, 根据所述数据包携带的 PPI信息查找用户的进程号, 将所述数据 包发送到所述进程号对应的上层协议用户。
所述步骤 1具体包括:
步骤 11、 接收协议相同的两个上层协议用户从预先配置的一条不指定 协议类型的偶联两端发送的初始化实例的请求消息, 记录所述请求消息中 携带的用户进程号和 PPI信息;
步骤 12、 判断所述偶联是否激活, 若是, 则向所述上层协议用户发送 偶联激活指示消息, 结束本流程; 否则, 执行步骤 13;
步骤 13、 判断是否已经向 SCTP发起 INIT原语, 若是, 则等待所述偶 联激活后,向所述上层协议用户发送偶联激活指示消息;否则,向所述 SCTP 发起 INIT原语, 等待所述偶联激活后, 向所述上层协议用户发送偶联激活 指示消息。
所述步骤 2进一步包括:
当根据所述数据包携带的 PPI信息未查找到对应的用户的进程号时, 将所述数据包丟弃。
该方法进一步包括:
当接收到上层协议用户发起的释放偶联请求消息时, 判断所述偶联上 是否存在其他上层协议用户, 若是, 则直接向发送释放请求的上层协议用 户发送偶联退出服务的指示消息, 并清除记录的此用户的相关信息; 否则, 向 SCTP发 SHUTDOWN原语, 偶联断链后, 给上层协议用户发送偶联退 出服务的指示, 并清除记录的此用户的相关信息;
所述用户的相关信息包括用户的进程号和 PPI信息。
该方法进一步包括:
当接收到 SCTP发送的偶联拥塞指示消息时, 向所述偶联所有的上层 协议用户发送偶联拥塞指示消息,并在接收到 SCTP发来的偶联拥塞解除指 示消息时, 向所述偶联所有的上层协议用户发送偶联拥塞解除指示消息。
该方法进一步包括:
当接收到 SCTP发来的偶联断链指示消息时, 通知所述偶联所有的上 层协议用户偶联退出服务, 并清除此偶联所有的上层协议用户信息。
一种实现单条偶联支持多用户的装置, 包括:
偶联建立单元, 用于激活预先配置的一条不指定协议类型的偶联, 并 记录所述偶联的所有上层协议用户的进程号和偶联协议标识 PPI信息; 数据收发单元, 用于接收上层协议用户发送的数据包, 将所接收的数 据包通过所述偶联的本端 SCTP发送到对端 SCTP, 并在接收到所述对端 SCTP发送的数据包时,根据所述数据包携带的 PPI信息查找用户的进程号, 将所述数据包发送到所述进程号对应的上层协议用户。
所述数据收发单元, 进一步用于: 当根据所述数据包携带的 PPI信息 未查找到对应的用户的进程号时, 将所述数据包丟弃。
该装置进一步包括:
偶联释放单元, 用于在接收到上层协议用户发起的释放偶联请求消息 时, 判断所述偶联上是否存在其他上层协议用户, 若是, 则直接向发送释 放请求的上层协议用户发送偶联退出服务的指示消息, 并清除记录的此用 户的相关信息; 否则, 向 SCTP发 SHUTDOWN原语, 偶联断链后, 给上 层协议用户发送偶联退出服务的指示, 并清除记录的此用户的相关信息; 所述用户的相关信息包括用户的进程号和 PPI信息。
该装置进一步包括:
偶联拥塞处理单元, 用于在接收到 SCTP发送的偶联拥塞指示消息时, 向所述偶联所有的上层协议用户发送偶联拥塞指示消息,并在接收到 SCTP 发来的偶联拥塞解除指示消息时, 向所述偶联所有的上层协议用户发送偶 联拥塞解除指示消息;
偶联断链处理单元, 用于在接收到 SCTP发来的偶联断链指示消息时, 通知所述偶联所有的上层协议用户偶联退出服务, 并清除记录的此偶联所 有的上层协议用户的相关信息。
与现有技术相比, 本发明具有以下优点:
本发明提供的方法, 利用了底层 SCTP偶联与具体上层协议无关的特 性,使得单条偶联可以根据 PPI ( Payload Protocol Identifier,偶联协议标识) 来支持多个不同的上层协议用户, 充分利用了传输带宽资源, 减少了 IP地 址和端口的配置, 可以满足一些特殊场合的应用。 附图说明
图 1为本发明提供的一种实现单条偶联支持多用户的方法的流程图; 图 2为本发明中扩展后的协议栈应用结构图;
图 3为本发明实施例提供的偶联建立流程图;
图 4为本发明实施例提供的偶联数据收发流程图;
图 5为本发明实施例提供的偶联释放流程图;
图 6为本发明提供的一种实现单条偶联支持多用户的装置的结构图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。
基于现有技术中存在的一条偶联只能支持单一协议用户, 从而导致传 输宽带资源的浪费问题, 本发明提供一种实现单条偶联支持多用户的方法 和装置, 所述方法实现了单条偶联可以根据 PPI 来支持多个不同的上层协 议用户, 充分利用了传输带宽资源, 减少了 IP地址和端口的配置。
具体的, 本发明提供的一种实现单条偶联支持多用户的方法, 如图 1 所示, 包括:
步骤 S101、 激活预先配置的一条不指定协议类型的偶联, 并记录该偶 联的所有上层协议用户的进程号和偶联协议标识 PPI信息。
该步骤具体为:
( 1 )接收协议相同的两个上层协议用户从预先配置的一条不指定协议 类型的偶联两端发送的初始化实例的请求消息, 记录该请求消息中携带的 用户进程号和 PPI信息;
( 2 )判断偶联是否激活, 若是, 向该上层协议用户上报偶联激活指示 消息, 结束本流程; 否则, 执行步骤(3 );
( 3 )判断偶联是否已经向 SCTP发起 INIT原语, 若是, 等待该偶联激 活后, 向上层协议用户发送偶联激活指示消息, 否则, 向 SCTP发起 INIT 原语, 等待偶联激活后, 向上层协议用户发送偶联激活指示消息。
步骤 S102、 接收某上层协议用户发送的数据包, 将该数据包通过偶联 本端 SCTP发送到对端 SCTP, 并在接收到对端 SCTP发送的数据包时, 根 据数据包携带的 PPI信息查找用户的进程号, 将该数据包发送到进程号对 应的上层协议用户。 该步骤中, 当根据数据包携带的 PPI信息未查找到对应的用户的进程 号时, 将该数据包丟弃。
本发明提供的方法, 利用了底层 SCTP偶联与具体上层协议无关的特 性, 使得单条偶联可以根据 PPI来支持多个不同的上层协议用户, 充分利 用了传输带宽资源, 减少了 IP地址和端口的配置, 可以满足一些特殊场合 的应用。
下面根据图 2〜图 5给出本发明一个较佳的实施例,并结合对实施例的 描述, 进一步给出本发明的技术细节。
本发明实施例的核心思想是对协议栈的应用结构进行扩展, 利用各个 协议不同的 PPI来区分不同的用户,达到单条偶联可以根据 PPI来支持多个 不同的上层协议用户, 具体的, 扩展后的协议栈应用结构如图 2所示。
本实施例为了清楚的表述本发明的技术构思, 引入一偶联管理模块来 详细说明本发明的实现过程, 当然本发明并不限于通过该偶联管理模块来 实现, 还可以通过偶联管理装置等硬件装置实现。
具体的, 本实施例首先对偶联的建立流程进行详细描述, 如图 3所示, 具体包括以下步骤:
步骤 S300、 开始。
步骤 S301、 配置一条偶联, 不指定该偶联的协议类型。
步骤 S302、 偶联管理模块接收某协议相同的两个上层协议用户在偶联 的两端分别发起的初始化实例的请求消息, 该请求消息中携带协议用户的
PPI ( Payload Protocol Identifier, 偶联协议标识), 并将该标识 PPI和对应用 户的进程号记录下来。
步骤 S303、 偶联管理模块判断偶联是否激活, 若没有激活, 则执行步 骤 S304, 否则, 直接给此上层协议用户发送偶联激活指示消息, 然后转步 骤 S306。 步骤 S304、偶联管理模块判断是否已经向 SCTP发起 INIT原语, 如果 没有, 则偶联管理模块向 SCTP层发送 INIT原语, 请求初始化实例, 开始 建立流程; 否则, 不做处理, 等待底层偶联激活后执行步骤 S305。
步骤 S305、 偶联管理模块在偶联建立成功后, 向对应的上层协议用户 发送偶联激活指示消息。
步骤 S306、 结束。
在偶联建立后, 开始偶联数据收发流程, 如图 4所示, 该数据收发流 程具体包括以下步骤:
步骤 S400、 开始。
步骤 S401、 偶联管理模块接收上层协议用户发送的数据包。
步骤 S402、 偶联管理模块判断偶联是否激活, 若是, 执行步骤 S403 , 否则, 执行步骤 S408。
步骤 S403、 偶联管理模块将接收到的数据包发送给偶联本端的 SCTP, 本端 SCTP再将该数据包通过 IP网络发送到偶联对端 SCTP。
步骤 S404、 偶联管理模块接收到偶联对端 SCTP发来的数据包。
步骤 S405、 判断偶联是否激活, 若是, 执行步骤 S406, 否则, 执行步 骤 S408。
步骤 S406、 根据数据包中的 PPI查找是否存在与该 PPI对应的上层协 议用户的进程号,若是,执行步骤 S407 ,否则,丟弃该消息,执行步骤 S408。
步骤 S407、 将数据包发送到用户的进程号对应的上层协议用户。
步骤 S408、 结束流程。
需要说明的是, 在数据收发流程中出现偶联拥塞、 偶联断链的情况时, 还进行以下处理:
当偶联发生拥塞时,偶联管理模块接收到 SCTP发来的偶联拥塞指示消 息后, 向偶联所有的上层协议用户发送偶联拥塞指示消息, 通知上层协议 用户停止发送包动作;在接收到 SCTP发来的偶联拥塞解除指示消息后,向 偶联所有的上层协议用户发送偶联拥塞解除指示消息, 通知所有的上层协 议用户偶联拥塞解除, 继续向偶联发送数据。
当偶联断链时,偶联管理模块接收到 SCTP发来的偶联断链指示消息时 后, 通知该偶联所有的上层协议用户偶联退出服务, 并清除此偶联所有的 上层协议用户信息。
当然, 当某一上层协议用户想要释放偶联时, 还进行偶联释放流程, 具体的, 如图 5所示, 包括以下步骤:
步骤 S501、 上层协议用户向偶联管理模块发起释放偶联请求消息, 请 求消息中必须携带 PPI信息。
步骤 S502、 偶联管理模块判断此偶联是否还有其他上层协议用户, 如 果有, 则执行步骤 S503 , 否则, 执行步骤 S504。
步骤 S503、 偶联管理模块直接给此上层协议用户发送偶联退出服务的 指示消息, 并清除记录的此用户的相关信息, 该相关信息包括用户的进程 号、 PPI信息。
步骤 S504、偶联管理模块向 SCTP发 SHUTDOWN原语,偶联断链后, 给上层协议用户发送偶联退出服务的指示, 并清除记录的此用户的相关信 息。
需要说明是, 在某些异常情况下存在偶联已经退出服务, 但仍收到上 层协议用户发送的释放偶联请求消息, 此时, 直接给该上层协议用户回复 偶联退出服务的应答消息。
同时, 需要指出的是, 上述偶联建立流程、 数据发送流程、 拥塞处理 过程和偶联释放流程与偶联支持单一协议用户的处理方式相同。
本发明还提供一种实现单条偶联支持多用户的装置, 如图 6所示, 包 括: 偶联建立单元 610, 用于激活预先配置的一条不指定协议类型的偶联, 并记录该偶联的所有上层协议用户的进程号和偶联协议标识 PPI信息; 数据收发单元 620, 用于接收某上层协议用户发送的数据包, 将该数据 包通过所述偶联本端流控制传输协议 SCTP发送到对端 SCTP, 并在接收到 对端 SCTP发送的数据包时,根据该数据包携带的 PPI信息查找用户的进程 号, 将该数据包发送到进程号对应的上层协议用户。
其中, 上述数据收发单元 620, 还用于当根据数据包携带的 PPI信息未 查找到用户的进程号时, 将该数据包丟弃。
进一步的, 本发明提供的装置还包括:
偶联释放单元 630,用于在接收到某上层协议用户发起的释放偶联请求 消息时, 判断偶联上是否存在其他上层协议用户, 若是, 直接向发送释放 请求的上层协议用户发送偶联退出服务的指示消息, 并清除记录的此用户 的相关信息, 否则, 向 SCTP发 SHUTDOWN原语, 偶联断链后, 给上层 协议用户发送偶联退出服务的指示, 并清除记录的此用户的相关信息, 其 中, 用户的相关信息包括用户的进程号和 PPI信息。
偶联拥塞处理单元 640,用于在接收到 SCTP发送的偶联拥塞指示消息 时, 向偶联所有的上层协议用户发送偶联拥塞指示消息, 并在接收到 SCTP 发来的偶联拥塞解除指示消息时, 向偶联所有的上层协议用户发送偶联拥 塞解除指示消息。
偶联断链处理单元 650,用于在接收到 SCTP发来的偶联断链指示消息 时, 通知偶联所有的上层协议用户偶联退出服务, 并清除记录的此偶联所 有的上层协议用户的相关信息。 发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利 要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。

Claims

权利要求书
1、 一种实现单条偶联支持多用户的方法, 其特征在于, 该方法包括: 步骤 1、激活预先配置的一条不指定协议类型的偶联, 并记录所述偶联 的所有上层协议用户的进程号和偶联协议标识 PPI信息;
步骤 2、接收上层协议用户发送的数据包,将所接收的数据包通过所述 偶联的本端流控制传输协议 SCTP发送到对端 SCTP, 并在接收到所述对端 SCTP发送的数据包时,根据所述数据包携带的 PPI信息查找用户的进程号, 将所述数据包发送到所述进程号对应的上层协议用户。
2、 如权利要求 1所述的方法, 其特征在于, 所述步骤 1具体包括: 步骤 11、 接收协议相同的两个上层协议用户从预先配置的一条不指定 协议类型的偶联两端发送的初始化实例的请求消息, 记录所述请求消息中 携带的用户进程号和 PPI信息;
步骤 12、 判断所述偶联是否激活, 若是, 则向所述上层协议用户发送 偶联激活指示消息, 结束本流程; 否则, 执行步骤 13;
步骤 13、 判断是否已经向 SCTP发起 INIT原语, 若是, 则等待所述偶 联激活后,向所述上层协议用户发送偶联激活指示消息;否则,向所述 SCTP 发起 INIT原语, 等待所述偶联激活后, 向所述上层协议用户发送偶联激活 指示消息。
3、 如权利要求 1所述的方法, 其特征在于, 所述步骤 2进一步包括: 当根据所述数据包携带的 PPI信息未查找到对应的用户的进程号时, 将所述数据包丟弃。
4、 如权利要求 1至 3任一项所述的方法, 其特征在于, 该方法进一步 包括:
当接收到上层协议用户发起的释放偶联请求消息时, 判断所述偶联上 是否存在其他上层协议用户, 若是, 则直接向发送释放请求的上层协议用 户发送偶联退出服务的指示消息, 并清除记录的此用户的相关信息; 否则, 向 SCTP发 SHUTDOWN原语, 偶联断链后, 给上层协议用户发送偶联退 出服务的指示, 并清除记录的此用户的相关信息;
所述用户的相关信息包括用户的进程号和 PPI信息。
5、 如权利要求 1至 3任一项所述的方法, 其特征在于, 该方法进一步 包括:
当接收到 SCTP发送的偶联拥塞指示消息时, 向所述偶联所有的上层 协议用户发送偶联拥塞指示消息,并在接收到 SCTP发来的偶联拥塞解除指 示消息时, 向所述偶联所有的上层协议用户发送偶联拥塞解除指示消息。
6、 如权利要求 1至 3任一项所述的方法, 其特征在于, 该方法进一步 包括:
当接收到 SCTP发来的偶联断链指示消息时, 通知所述偶联所有的上 层协议用户偶联退出服务, 并清除此偶联所有的上层协议用户信息。
7、 一种实现单条偶联支持多用户的装置, 其特征在于, 包括: 偶联建立单元, 用于激活预先配置的一条不指定协议类型的偶联, 并 记录所述偶联的所有上层协议用户的进程号和偶联协议标识 PPI信息; 数据收发单元, 用于接收上层协议用户发送的数据包, 将所接收的数 据包通过所述偶联的本端 SCTP发送到对端 SCTP, 并在接收到所述对端 SCTP发送的数据包时,根据所述数据包携带的 PPI信息查找用户的进程号, 将所述数据包发送到所述进程号对应的上层协议用户。
8、 如权利要求 7所述的装置, 其特征在于, 所述数据收发单元, 进一 步用于: 当才艮据所述数据包携带的 PPI信息未查找到对应的用户的进程号 时, 将所述数据包丟弃。
9、 如权利要求 7或 8所述的装置, 其特征在于, 该装置进一步包括: 偶联释放单元, 用于在接收到上层协议用户发起的释放偶联请求消息 时, 判断所述偶联上是否存在其他上层协议用户, 若是, 则直接向发送释 放请求的上层协议用户发送偶联退出服务的指示消息, 并清除记录的此用 户的相关信息; 否则, 向 SCTP发 SHUTDOWN原语, 偶联断链后, 给上 层协议用户发送偶联退出服务的指示, 并清除记录的此用户的相关信息; 所述用户的相关信息包括用户的进程号和 PPI信息。
10、 如权利要求 7或 8所述的装置, 其特征在于, 该装置进一步包括: 偶联拥塞处理单元, 用于在接收到 SCTP发送的偶联拥塞指示消息时, 向所述偶联所有的上层协议用户发送偶联拥塞指示消息,并在接收到 SCTP 发来的偶联拥塞解除指示消息时, 向所述偶联所有的上层协议用户发送偶 联拥塞解除指示消息;
偶联断链处理单元, 用于在接收到 SCTP发来的偶联断链指示消息时, 通知所述偶联所有的上层协议用户偶联退出服务, 并清除记录的此偶联所 有的上层协议用户的相关信息。
PCT/CN2010/072960 2009-08-28 2010-05-19 一种实现单条偶联支持多用户的方法和装置 WO2011023001A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012525862A JP5411992B2 (ja) 2009-08-28 2010-05-19 シングルアソシエーションによるマルチユーザーのサポートの実現方法及び装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910169711.0 2009-08-28
CN200910169711.0A CN101997862B (zh) 2009-08-28 2009-08-28 一种实现单条偶联支持多用户的方法和装置

Publications (1)

Publication Number Publication Date
WO2011023001A1 true WO2011023001A1 (zh) 2011-03-03

Family

ID=43627209

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/072960 WO2011023001A1 (zh) 2009-08-28 2010-05-19 一种实现单条偶联支持多用户的方法和装置

Country Status (3)

Country Link
JP (1) JP5411992B2 (zh)
CN (1) CN101997862B (zh)
WO (1) WO2011023001A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970239A (zh) * 2020-07-10 2020-11-20 上海欣方智能系统有限公司 一种基于sctp的sigtrans协议栈实现方法

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018159204A1 (ja) 2017-02-28 2018-09-07 日本電気株式会社 通信装置、方法、プログラム、及び記録媒体
CN109429220B (zh) * 2017-06-20 2022-03-22 中兴通讯股份有限公司 一种多制式共偶联的方法及装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030020577A (ko) * 2001-09-03 2003-03-10 엘지전자 주식회사 에스씨티피의 사용자 데이터 전달 방법
CN101242354A (zh) * 2007-02-09 2008-08-13 华为技术有限公司 一种数据传输的方法、系统及设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60221905T2 (de) * 2002-06-07 2008-05-15 Nokia Corp. Verfahren zum senden von verbindungsorientierten oder verbindungslosen daten
JP5088091B2 (ja) * 2007-10-29 2012-12-05 富士通株式会社 基地局装置、通信方法及び移動通信システム

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030020577A (ko) * 2001-09-03 2003-03-10 엘지전자 주식회사 에스씨티피의 사용자 데이터 전달 방법
CN101242354A (zh) * 2007-02-09 2008-08-13 华为技术有限公司 一种数据传输的方法、系统及设备

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NETWORK WORKING GROUP, RFC2960-STREAM CONTROL TRANSMISSION PROTOCOL, 31 October 2000 (2000-10-31) *
NETWORK WORKING GROUP, RFC3286-AN INTRODUCTION TO THE STREAM CONTROL TRANSMISSION PROTOCOL, 31 May 2002 (2002-05-31) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970239A (zh) * 2020-07-10 2020-11-20 上海欣方智能系统有限公司 一种基于sctp的sigtrans协议栈实现方法
CN111970239B (zh) * 2020-07-10 2023-03-24 上海欣方智能系统有限公司 一种基于sctp的sigtrans协议栈实现方法

Also Published As

Publication number Publication date
JP5411992B2 (ja) 2014-02-12
CN101997862B (zh) 2014-07-02
JP2013502859A (ja) 2013-01-24
CN101997862A (zh) 2011-03-30

Similar Documents

Publication Publication Date Title
CA2611776C (en) Method and communication unit for communicating between communication apparatuses
EP1914939A1 (en) An method for the triggering failure detection of bidirectional forwarding detection
JP5321708B2 (ja) 移動式無線通信装置及びその接続状態の管理方法
RU2004127442A (ru) Устройство связи для присоединения абонента к групповому вызову в сети групповой связи
EP1593023A2 (en) An architecture and api for of transport and upper layer protocol processing acceleration
WO2011095097A1 (zh) 安全关联存活检测方法、装置和系统
CN101616156B (zh) 一种实现rtp数据流多路复用的信令协商方法和装置
JP3698698B2 (ja) Dmzを介したイントラネットおよび外部ネットワーク上の呼の確立
WO2019184262A1 (zh) 多类型媒体数据网络地址转换穿越方法、终端及系统
JP2013507023A (ja) 接続指向の正順デリバリ環境において接続を管理するための方法およびシステム
CN107528923B (zh) 一种网络适配器的数据传输方法及网络适配器
WO2011023001A1 (zh) 一种实现单条偶联支持多用户的方法和装置
CN100464547C (zh) 一种实现不同通信协议设备间信息传输的方法
JP2003258880A (ja) ネットワークおよびノードおよびデータ転送方法
CN102710495A (zh) 一种监控网络用户主机建立路由信息的方法及装置
KR100597405B1 (ko) 소켓 어플리케이션 프로그램을 이용한 데이터 중계 시스템및 데이터 중계 방법
WO2008067740A1 (fr) Procédé, système, terminal et dispositif de transfert de message entre terminaux
EP1694007B1 (en) Method and apparatus for transmitting data to a network and method and apparatus for receiving data from a network
JP2006165879A (ja) 呼制御システム、呼制御方法および呼制御プログラム
JP5150413B2 (ja) 複数コネクションを用いたデータ通信方法
JPH09181772A (ja) データ伝送装置およびデータ伝送方法
JP2004187099A (ja) 通信制御方法、通信システム及び通信装置
CN115515165B (zh) 通信模式的切换方法和通信模式的切换装置
JP2003289338A (ja) パケット中継プログラム、パケット中継装置および記録媒体
KR101328028B1 (ko) 세션 기반 메시지 전송 시스템 및 그 방법

Legal Events

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

Ref document number: 10811161

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2012525862

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10811161

Country of ref document: EP

Kind code of ref document: A1