CN102006301A - Method for controlling movement of stream control transmission protocol (SCTP) association among multiple terminals - Google Patents
Method for controlling movement of stream control transmission protocol (SCTP) association among multiple terminals Download PDFInfo
- Publication number
- CN102006301A CN102006301A CN2010105682136A CN201010568213A CN102006301A CN 102006301 A CN102006301 A CN 102006301A CN 2010105682136 A CN2010105682136 A CN 2010105682136A CN 201010568213 A CN201010568213 A CN 201010568213A CN 102006301 A CN102006301 A CN 102006301A
- Authority
- CN
- China
- Prior art keywords
- terminal
- coupling
- sctp
- control
- peer
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000005540 biological transmission Effects 0.000 title claims abstract description 43
- 230000008878 coupling Effects 0.000 claims abstract description 108
- 238000010168 coupling process Methods 0.000 claims abstract description 108
- 238000005859 coupling reaction Methods 0.000 claims abstract description 108
- 238000004891 communication Methods 0.000 claims abstract description 53
- 238000013508 migration Methods 0.000 claims abstract description 40
- 230000005012 migration Effects 0.000 claims abstract description 40
- 230000008569 process Effects 0.000 claims abstract description 15
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 230000002452 interceptive effect Effects 0.000 claims description 2
- 238000012986 modification Methods 0.000 claims description 2
- 230000004048 modification Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 abstract description 20
- 238000004088 simulation Methods 0.000 description 17
- 238000005516 engineering process Methods 0.000 description 12
- 239000003795 chemical substances by application Substances 0.000 description 9
- 238000012546 transfer Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000002776 aggregation Effects 0.000 description 2
- 238000004220 aggregation Methods 0.000 description 2
- 230000015556 catabolic process Effects 0.000 description 2
- 238000006731 degradation reaction Methods 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 239000013598 vector Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公布了一种多终端之间流控传输协议偶联的移动控制方法,所述方法第一终端与迁移目标的第二终端建立控制偶联,控制偶联与原有通信偶联存在固定的端口匹配关系,通过DAR重配置保持第二终端与对端交互传输的连续性。本发明提出的SCTP偶联迁移控制方法,兼容现有符合规范的SCTP实现系统,可使在线运行的实时多媒体应用以一种无缝方式从一个物理终端移动到另一个物理终端,克服网络层移动和应用层移动导致的传输不连续性。此外,本发明提出的SCTP偶联迁移控制流程,既未限制终端的数量,也未对终端的功能提出特殊要求,因此适用于多终端组之内的相互迁移以及跨越本地范围的异地迁移。
The present invention discloses a mobile control method for flow control transmission protocol coupling between multiple terminals. In the method, the first terminal establishes a control coupling with the second terminal of the migration target, and the control coupling and the original communication coupling have a fixed existence. The port matching relationship between the second terminal and the opposite terminal is maintained through DAR reconfiguration. The SCTP coupling migration control method proposed by the present invention is compatible with the existing standard-compliant SCTP implementation system, and enables real-time multimedia applications running online to move from one physical terminal to another in a seamless manner, overcoming network layer mobility and transmission discontinuities caused by application layer mobility. In addition, the SCTP coupled migration control process proposed by the present invention neither limits the number of terminals nor imposes special requirements on the functions of the terminals, so it is applicable to mutual migration within a multi-terminal group and cross-local migration.
Description
技术领域technical field
本发明针对基于流控传输协议(SCTP,Stream Control Transmission Protocol)技术提出偶联迁移控制方法,完成实时性多媒体通信在多终端之间的无缝迁移,支持应用和会话在物理分立终端之间的平滑移动,技术领域为电子与通信工程。The present invention proposes a coupling migration control method based on the Stream Control Transmission Protocol (SCTP, Stream Control Transmission Protocol) technology, completes the seamless migration of real-time multimedia communication between multiple terminals, and supports applications and sessions between physically separated terminals Smooth movement, the technical field is electronics and communication engineering.
背景技术Background technique
互联网的移动性,或移动互联网,是各类新型信息通信应用的基础。移动型应用与固定型应用的最大差别,主要表现在终端移动、用户移动、网络移动和应用移动。The mobility of the Internet, or mobile Internet, is the basis for all kinds of new information and communication applications. The biggest difference between mobile applications and fixed applications is mainly manifested in terminal mobile, user mobile, network mobile and application mobile.
(1)终端移动,是指一个用户使用的一个终端在不同接入点之间迁移,主要通过现有物理层的越区切换和网络层的移动互联网协议(MIP,Mobile Internet Protocol),以实现物理位置迁移后的终端到移动基站的不间断接入,以及终端网络地址改变过程中和之后的通信持续性。(1) Terminal mobility refers to the migration of a terminal used by a user between different access points, mainly through handover at the existing physical layer and Mobile Internet Protocol (MIP, Mobile Internet Protocol) at the network layer to achieve Uninterrupted access of the terminal to the mobile base station after physical location relocation, and communication continuity during and after the terminal network address change.
(2)用户移动,是指一个用户在多个终端之间迁移,可通过互联网的会话启动协议(SIP,Session Initiation Protocol),以支持会话在不同终端之间的转移,实现类似电话业务的呼叫转移、呼叫前转和多机同振功能。(2) User mobility refers to the migration of a user between multiple terminals. The session initiation protocol (SIP, Session Initiation Protocol) of the Internet can be used to support the transfer of sessions between different terminals and realize calls similar to telephone services. Transfer, call forwarding and multi-device simultaneous vibration functions.
(3)网络移动,是指同一个子网络内的多个终端在不同接入点之间的集体同步迁移,主要通过互联网的网络移动性(NEMO,Network Mobility)和MIP技术,实现接入路由器或网关在不同宿主网之间的不间断切换。(3) Network mobility refers to the collective synchronous migration of multiple terminals in the same subnetwork between different access points, mainly through Internet network mobility (NEMO, Network Mobility) and MIP technology to achieve access to routers or Uninterrupted switching of gateways between different host networks.
(4)应用移动,是指应用的信息源或信息宿,在一个用户或多个用户的要求下,在多个终端之间迁移,理论上可通过SIP和其他基于开放业务架构(OSA,Open Service Architecture)技术实现不间断切换。(4) Application mobility refers to the information source or sink of an application, which migrates among multiple terminals at the request of one user or multiple users. Service Architecture) technology to achieve uninterrupted switching.
以上4类移动,在当前的技术实现方法中,涉及物理层越区切换、网络层MIP和NEMO、应用层SIP技术。近年来,人们又提出了主机标识协议(HIP,Host Identity Protocol),可用于解决终端移动的性能下降问题。HIP是网络层与传输层之间的垫层,主要适用于单终端的移动性。总之,至今为止,互联网技术缺少一个针对传输层的移动性控制协议,用以支撑应用在不同终端之间迁移。The above four types of mobile, in the current technical implementation methods, involve handover at the physical layer, MIP and NEMO at the network layer, and SIP technology at the application layer. In recent years, people have proposed the Host Identity Protocol (HIP, Host Identity Protocol), which can be used to solve the performance degradation problem of terminal mobility. HIP is the cushion layer between the network layer and the transport layer, and is mainly applicable to the mobility of a single terminal. In short, up to now, the Internet technology lacks a mobility control protocol for the transport layer to support migration of applications between different terminals.
位于TCP/IP协议簇传输层的SCTP,在2个通信端点之间建立偶联(Association),为基于互联网技术的应用提供媒体流和控制流的承载服务。起初,SCTP的应用目标是通过互联网承载传统电信网信令,并针对信令的多路复用特点,提出了多流(multiple streaming)控制方法,针对高可靠性要求,规范了多宿主(multiple homing)及故障切换(failover)控制流程。经过多年的修订和补充,SCTP的应用范围被逐渐拓展,目前已具备多媒体实时传送、异构网络无缝切换和多服务器并发服务等功能。现有SCTP规范中,偶联的主要作用是用来维持2个通信端点之间的传输控制。至今为止,没有公开和明确的报告,将SCTP应用于多终端之间的会话迁移和应用迁移。SCTP, located at the transport layer of the TCP/IP protocol suite, establishes an association between two communication endpoints, and provides media stream and control stream bearer services for Internet-based applications. At first, the application goal of SCTP was to carry traditional telecommunication network signaling through the Internet, and according to the multiplexing characteristics of signaling, a multiple streaming control method was proposed, and a multi-homing (multiple streaming) control method was standardized for high reliability requirements. homing) and failover (failover) control process. After years of revisions and supplements, the scope of application of SCTP has been gradually expanded, and now it has functions such as multimedia real-time transmission, heterogeneous network seamless switching, and multi-server concurrent services. In the existing SCTP specification, the main function of coupling is to maintain transmission control between two communication endpoints. So far, there is no public and clear report on applying SCTP to session migration and application migration between multiple terminals.
SCTP偶联的标识参数,包括2个通信端点的网络层地址和传输层端口号。IETF(因特网工程任务组)RFC4960(第4960号征求意见文件)规定:一个SCTP偶联的两端,都可以具有多宿主配置,即可有多个网络层地址,但任何一端只能有一个传输层端口值。一个端点内,不同的SCTP偶联必须分配不同的端口值;一对端点只能同时建立一条偶联。SCTP的动态地址重构(DAR,Dynamic AddressReconfiguration)功能(见IETF RFC5061),允许端点在应用和会话不中断的情况下,动态配置网络层地址,并通过ASCONF(地址重配置,AddressCONFiguration)控制消息块通告给对端。DAR在传输层提供了一种端点内的自主移动性管理能力,可与物理层、网络层、应用层的移动性技术相结合,为一个终端在多个接口之间的迁移提供支持。The identification parameters of the SCTP association include the network layer address and the transport layer port number of the two communication endpoints. IETF (Internet Engineering Task Force) RFC4960 (Document No. 4960) stipulates that both ends of an SCTP coupling can have a multi-homed configuration, that is, there can be multiple network layer addresses, but there can only be one transmission at any end. layer port value. Within an endpoint, different SCTP associations must be assigned different port values; a pair of endpoints can only establish one association at the same time. SCTP's Dynamic Address Reconfiguration (DAR, Dynamic Address Reconfiguration) function (see IETF RFC5061), allows the endpoint to dynamically configure the network layer address without interrupting the application and session, and control the message block through ASCONF (Address CONFiguration) Notify the peer. DAR provides an autonomous mobility management capability within the endpoint at the transport layer, which can be combined with mobility technologies at the physical layer, network layer, and application layer to provide support for the migration of a terminal between multiple interfaces.
随着智能手机终端、互联网电视、平板电脑和移动互联网的发展和普及,用户可同时使用或交替使用的通信终端数量普遍超过1台,终端功能和性能呈现多样化和协同化发展要求。多终端聚集及重配置成为终端通信技术的关键问题之一。本发明以SCTP为基础,面向实时性多媒体会话和应用,提出通信偶联和控制偶联相关联的方法和偶联迁移控制流程,用于支持多终端之间的会话和应用移动性。With the development and popularization of smart phone terminals, Internet TV, tablet PCs and mobile Internet, the number of communication terminals that users can use at the same time or alternately generally exceeds one, and the functions and performance of terminals present diversified and coordinated development requirements. Multi-terminal aggregation and reconfiguration has become one of the key issues in terminal communication technology. Based on SCTP, the present invention is oriented to real-time multimedia sessions and applications, and proposes a method associated with communication coupling and control coupling and a coupling migration control flow for supporting session and application mobility among multiple terminals.
本发明提供一种IP网络在传输层的移动控制方法,可与应用层移动、网络层移动、物理通道层移动技术一起构造一个完整的移动互联网应用环境。The invention provides a mobile control method of the IP network at the transmission layer, which can construct a complete mobile Internet application environment together with the mobile technology of the application layer, network layer and physical channel layer.
应用层的移动性支持方法主要有SIP技术。SIP网络包含用户代理和网络服务器。网络服务器主要为用户代理提供路由、认证、鉴权、注册等服务。SIP终端拥有唯一的SIP URI(统一资源标识,Universal Resource Identifier)。当终端被分配了新的IP地址时,通过注册流程建立起新的IP地址和SIP URL的绑定,因此无论终端如何移动,与其对应的位置信息都可得到更最新,已建立的会话能得到维持。SIP对移动性的支持,不依赖任何低层协议技术,具有很大适用面。但是,其于SIP的切换会引起较大的切换延迟,对实时通信的适用度较低。The mobility support method of the application layer mainly includes SIP technology. A SIP network consists of user agents and web servers. The network server mainly provides services such as routing, authentication, authentication, and registration for the user agent. The SIP terminal has a unique SIP URI (Universal Resource Identifier). When the terminal is assigned a new IP address, the binding between the new IP address and the SIP URL is established through the registration process, so no matter how the terminal moves, its corresponding location information can be updated, and the established sessions can be obtained maintain. SIP's support for mobility does not depend on any low-layer protocol technology, and has great applicability. However, its switching from SIP will cause a large switching delay, and its applicability to real-time communication is low.
网络层移动性支持方法主要有MIP和HIP。MIP为终端设计了一个家乡网络,给移动终端分配一个永久的家乡地址。另外,MIP引入了家乡代理和外地代理。当MIP移动终端离开家乡网络进入外地网络时,它从外地代理获得一个临时性的转交地址,并向家乡代理发送注册请求消息以通告它的新地址。所有从通信对端发往移动终端的分组,在到达家乡网络时,由家乡代理截获并利用隧道转发给管理移动终端的外地代理,然后由外地代理将该报文再转发给移动终端。MIP存在三角路由问题,同时工作效率不高、切换延时较大,不利于实时应用的移动性管理。The mobility support methods at the network layer mainly include MIP and HIP. MIP designs a home network for the terminal, and assigns a permanent home address to the mobile terminal. In addition, MIP introduces home agent and foreign agent. When a MIP mobile terminal leaves its home network and enters a foreign network, it obtains a temporary care-of address from the foreign agent, and sends a registration request message to the home agent to notify its new address. All the packets sent from the corresponding end to the mobile terminal are intercepted by the home agent when they reach the home network and forwarded to the foreign agent managing the mobile terminal through the tunnel, and then the foreign agent forwards the message to the mobile terminal. MIP has the problem of triangular routing, and at the same time, the work efficiency is not high, and the switching delay is large, which is not conducive to the mobility management of real-time applications.
HIP通过在网络层和传输层之间增加新的协议层以便分离IP地址的身份标识功能,并提供对移动性的支持。HIP引入了一个新的主机标识名字域,传输层的连接和主机标识进行绑定,而不再和IP地址进行绑定。HIP可以提供安全、无缝的通信机制,但是需要对现有的互联网体系结构进行重新改造,使得其难以被大规模部署。HIP adds a new protocol layer between the network layer and the transport layer to separate the identification function of the IP address and provides support for mobility. HIP introduces a new host identifier name field, and the connection of the transport layer is bound to the host identifier instead of the IP address. HIP can provide a secure and seamless communication mechanism, but it needs to restructure the existing Internet architecture, making it difficult to deploy on a large scale.
物理层移动主要应用于越区切换,是移动通信系统的一个关键技术。当用户从一个小区基站所覆盖的区域移动到另外一个小区时,新的链路必须在用户和新的小区之间建立,而用户和原有小区之间的链路必须删除和释放,以使得用户的通话能够继续。目前,全球移动通讯系统(GSM,Global System for MobileCommunications)系统和码分多址(CDMA,Code Division Multiple Access)系统的切换控制都是采用移动台辅助切换的方式,它要求移动台测量周围端口的信号强度并报告给旧端口,然后由网络来判断是否切换和切换到哪个端口。GSM与CDMA的主要区别在于切换到新端口的方式不通,GSM系统移动台采用硬切换的方式,移动台须先断开与旧端口的连接,再建立与新端口的连接;CDMA系统采用的是软切换,用户可以与旧端口保持连接的同时与新端口建立连接,然后再断开与旧端口的连接。Physical layer mobility is mainly used in handover and is a key technology in the mobile communication system. When a user moves from the area covered by a cell base station to another cell, a new link must be established between the user and the new cell, and the link between the user and the original cell must be deleted and released, so that The user's call can continue. At present, the handover control of the Global System for Mobile Communications (GSM, Global System for Mobile Communications) system and the Code Division Multiple Access (CDMA, Code Division Multiple Access) system is based on the mobile station-assisted handover method, which requires the mobile station to measure the surrounding ports. The signal strength is reported to the old port, and then the network determines whether to switch and which port to switch to. The main difference between GSM and CDMA is that the way to switch to a new port is unreasonable. The mobile station in the GSM system adopts a hard handover method. The mobile station must first disconnect the connection with the old port and then establish a connection with the new port; With soft handover, the user can establish a connection to a new port while remaining connected to the old port, and then disconnect from the old port.
IETF制定的SCTP规范,包括:协议数据单元结构、功能和编码;单个偶联的建立、管理和拆除控制;消息传送的流量控制和差错控制;动态地址重构、首地址指定;故障管理和路径管理。目前,多个操作系统已装配了遵循SCTP规范的协议栈。The SCTP specification formulated by IETF includes: protocol data unit structure, function and coding; establishment, management and teardown control of a single association; flow control and error control of message transmission; dynamic address reconstruction, first address designation; fault management and path manage. Currently, multiple operating systems have been equipped with protocol stacks following the SCTP specification.
R.Stewart(斯图尔特)、P.Lei(雷)和M.Tuexen(图森)提出了SCTP流重配置(Stream Reconfiguration)草案(drafi-ietf-tsvwg-sctp-strrst),以企为上层协议(ULP,Up Layer Protocol)和应用提供流重用功能。流重配置草案设计了SCTP流重置协议,它允许偶联的任一端向对端发出指示,要求对端将流控状态参数重置为指定值。协议可重置的流控状态参数,包括收、发端在输入和输出两个方向上的传输序号(TSN,Transmission Sequence Number)和流序号(SSN,StreamSequence Number)。R.Stewart (Stewart), P.Lei (Ray) and M.Tuexen (Tucson) proposed the SCTP stream reconfiguration (Stream Reconfiguration) draft (drafi-ietf-tsvwg-sctp-strrst), with the enterprise as the upper layer protocol ( ULP, Up Layer Protocol) and applications provide stream reuse capabilities. The flow reconfiguration draft designs the SCTP flow reset protocol, which allows either end of the coupling to send instructions to the other end, requiring the other end to reset the flow control state parameters to specified values. The flow control status parameters that can be reset by the protocol include the transmission sequence number (TSN, Transmission Sequence Number) and stream sequence number (SSN, StreamSequence Number) of the receiving and sending ends in both input and output directions.
与本发明在同一领域内的公开专利,主要有以下6个,分述如下。There are mainly 6 published patents in the same field as the present invention, which are described as follows.
(1)公开专利“一种恢复流控制传输协议偶联中协议消息传输的方法(CN1512714)”。(1) Public patent "A method for recovering protocol message transmission in flow control transmission protocol coupling (CN1512714)".
该专利公开了一种恢复流控制传输协议偶联中协议消息传输的方法,该方法包括以下步骤:A.发生故障端设备的上层协议将自身的备用部分倒换为主用部分,并断开自身的上层业务环境;B.发生故障端设备根据当前主用部分上的偶联信息,向对端SCTP端点发送偶联请求,并与对端设备重建两端设备对应的两个SCTP端点之间的偶联;C.对端设备的SCTP端点向该对端上层协议发送重启动请求,通过重启动恢复发生故障端设备和对端设备的上层业务环境。该方法能够在一端设备发生故障的情况下,迅速恢复连接,重建偶联以及上层传输业务环境,避免一端故障后,其对端不知道而仍然认为两端之间的偶联正常,而导致大量协议消息的丢失。This patent discloses a method for recovering the transmission of protocol messages in the flow control transmission protocol coupling. The method includes the following steps: A. The upper layer protocol of the faulty end device switches its standby part to the active part, and disconnects itself B. According to the association information on the current active part, the device at the faulty end sends an association request to the SCTP endpoint at the opposite end, and re-establishes the connection between the two SCTP endpoints corresponding to the two devices with the opposite end device. Coupling; C. The SCTP endpoint of the opposite end device sends a restart request to the upper layer protocol of the opposite end, and restores the upper layer service environment of the failed end device and the opposite end device through restarting. This method can quickly restore the connection and rebuild the coupling and upper-layer transmission business environment in the event of a device failure at one end, avoiding that after one end fails, the other end does not know and still thinks that the coupling between the two ends is normal, resulting in a large number of Loss of protocol messages.
(2)公开专利“基于流控制传输协议的多地址选择方法(CN1534951)”(2) Public patent "multi-address selection method based on flow control transmission protocol (CN1534951)"
该专利实现了对于存在多地址的SCTP端点进行数据重新传输时,分别依次选择使用所有的对端及本地地址;这样,如果使用的首选路径故障,还可以找出其他可用的路径,且在选址过程中可以保证SCTP端点所存在的各个地址均可以被选择到;同时,本发明对于主用的本地地址或对端地址曾经失效过后又恢复的情况,SCTP连接仍然可以使用主用地址进行数据传输,以满足用户的传输需求。This patent realizes that when retransmitting data for an SCTP endpoint with multiple addresses, all peers and local addresses are selected in sequence; in this way, if the preferred path used fails, other available paths can be found, and in the selected In the process of addressing, it can be ensured that each address existing in the SCTP endpoint can be selected; at the same time, the present invention can still use the primary address for data transfer when the primary local address or peer address has been invalidated and then restored. Transmission to meet the transmission needs of users.
(3)公开专利“对基于流控制传送协议的偶联进行保护的方法(CN1533100)”(3) Public patent "Method for Protecting Coupling Based on Flow Control Transmission Protocol (CN1533100)"
该专利涉及对IP网中的SCTP偶联在处被处理机之间进行保护的方法。包括以下步骤:本端主备机同对端端点建立SCTP偶联,主机偶联进入偶联建立状态,备机进入偶联建立备份状态;主机上建立的偶联执行完整的SCTP协议流程,备机进入建立备份状态;当主机上偶联中止或关闭时,主备机切换并转换角色正常工作。This patent relates to a method for protecting SCTP coupling between processors in an IP network. It includes the following steps: the primary and backup machines at the local end establish an SCTP coupling with the peer endpoint, the primary machine enters the coupling establishment state, and the standby machine enters the coupling establishment backup state; the coupling established on the main machine executes the complete SCTP protocol process, and the backup The machine enters the establishment of backup state; when the coupling on the main machine is terminated or closed, the main machine and the standby machine switch and switch roles to work normally.
(4)公开专利号“流控制传输协议多归属功能的实现方法(CN101094240)”(4) Patent No. "A method for realizing the multi-homing function of the flow control transmission protocol (CN101094240)"
该专利提供了一种SCTP多归属功能实现方法,包括以下处理:在流控制传输协议即SCTP偶联的各条通信路径的数据结构中维护预设参数;确定SCTP偶联的通信路径的数量,并确定各条通信路径的源地址和目的地址的地址对应关系,以及确定主用通路;在需要进行主用通路的切换时,轮询SCTP偶联除主用通路之外的其他通信路径,选择合适的通信路径作为新的主用通路。This patent provides a method for realizing the SCTP multi-homing function, including the following processing: maintaining preset parameters in the data structure of each communication path coupled by the flow control transmission protocol, that is, SCTP; determining the number of communication paths coupled by SCTP, And determine the address correspondence between the source address and the destination address of each communication path, and determine the main path; when it is necessary to switch the main path, poll the other communication paths of the SCTP coupling except the main path, select The appropriate communication path is used as the new primary path.
(5)公开专利“网络主机间传输转移的方法(US 20060164974A1)”(5) Public patent "Transfer transfer method between network hosts (US 20060164974A1)"
该专利提供了一种基于SCTP的错误容忍的方法,应用场景包含主用主机,备用主机和对端主机。主用主机和对端主机建立SCTP连接;备用主机通过冗余机制备份主用主机的状态及其SCTP偶联的信息,并通过心跳机制检测主用主机是否可用。当主用主机不可用时,备用主机向对端主机发送SCTP包更新其偶联信息,并通过对端主机的响应信息用非标准的方式建立其与对端主机的SCTP偶联。在此传输转移的过程中,对端主机发送的消息将会丢失,这使得该方法不适用于实时业务,其主要应该于BGP路由的转移。This patent provides an error tolerance method based on SCTP, and the application scenarios include the main host, the backup host and the peer host. The primary host establishes an SCTP connection with the peer host; the standby host backs up the state of the primary host and its SCTP coupling information through a redundancy mechanism, and detects whether the primary host is available through a heartbeat mechanism. When the primary host is unavailable, the standby host sends SCTP packets to the peer host to update its association information, and establishes its SCTP association with the peer host in a non-standard way through the response information of the peer host. During the transfer process, the message sent by the peer host will be lost, which makes this method unsuitable for real-time services, and it should be mainly used for the transfer of BGP routes.
(6)公开专利“提供高可用性SCTP应用的方法和系统(US20100218034A1)”(6) Public patent "Method and system for providing high-availability SCTP applications (US20100218034A1)"
提出一个高可用性服务器系统包含一个主用服务器和一个备份服务器。主用服务器和备份服务器通过建立的控制信道进行通信。当主用服务器和客户端建立了SCTP偶联后,其向客户端发送主用服务器和备份服务器的IP地址,同时通过控制信道将SCTP堆栈的状态和上层应用映射给备份服务器。当主用服务器被检测到不可用时,通过备份服务器继续向客户端提供服务。该方法主要针对服务器端网络的移动性。A high-availability server system is proposed, which includes a primary server and a backup server. The active server and the backup server communicate through the established control channel. When the active server and the client establish SCTP coupling, it sends the IP addresses of the active server and the backup server to the client, and at the same time maps the status of the SCTP stack and upper-layer applications to the backup server through the control channel. When the primary server is detected to be unavailable, the backup server continues to provide services to clients. This method is mainly aimed at the mobility of the server-side network.
发明内容Contents of the invention
技术问题:本发明的目的是,利用SCTP的控制功能动态管理物理上分离的多个通信终端,协作完成SCTP偶联在这些终端之间的不间断迁移,支持会话级及其之上的实时多媒体应用在终端间无缝平滑移动,克服网络层移动性和应用层移动性引发的实时性多媒体传送间断问题。Technical problem: the object of the present invention is to utilize the control function of SCTP to dynamically manage physically separated multiple communication terminals, to cooperate to complete the uninterrupted migration of SCTP coupling between these terminals, and to support real-time multimedia at the session level and above Applications move seamlessly and smoothly between terminals, overcoming the problem of real-time multimedia transmission interruption caused by network layer mobility and application layer mobility.
技术方案:本发明公布一种多终端之间流控传输协议偶联的移动控制方法,第一终端与迁移目标的第二终端建立控制偶联,控制偶联与原有通信偶联存在固定的端口匹配关系,通过DAR重配置保持第二终端与对端交互传输的连续性,具体实现方法为:Technical solution: The present invention discloses a mobile control method for flow control transmission protocol coupling between multiple terminals. The first terminal establishes a control coupling with the second terminal of the migration target, and there is a fixed gap between the control coupling and the original communication coupling. The port matching relationship maintains the continuity of the interactive transmission between the second terminal and the peer terminal through DAR reconfiguration. The specific implementation method is:
1)第一终端在建立通信偶联时,使用与对端不同的端口值;1) The first terminal uses a port value different from that of the peer terminal when establishing the communication coupling;
2)第一终端在建立控制偶联时,两侧端口与通信偶联相匹配,即第二终端的服务端口值使用通信偶联在第一终端侧的端口值,第一终端使用通信偶联在对端侧的端口值;2) When the first terminal establishes the control coupling, the ports on both sides match the communication coupling, that is, the service port value of the second terminal uses the port value of the communication coupling on the first terminal side, and the first terminal uses the communication coupling port value on the peer side;
3)第一终端发起修改对端和第二终端的偶联地址表,并保证匹配关系,即对端维持的目标地址包含第二终端的可达地址,第二终端维持的目标地址包含对端的可达地址;3) The first terminal initiates modification of the coupled address table of the opposite end and the second terminal, and ensures a matching relationship, that is, the target address maintained by the opposite end includes the reachable address of the second terminal, and the target address maintained by the second terminal includes the address of the opposite end. reachable address;
4)第一终端控制完成第二终端与第一终端的状态同步;4) The first terminal controls to complete the state synchronization between the second terminal and the first terminal;
5)完成上述控制后,控制偶联变换为通信偶联;第二终端替代原有第一终端,再次向其他终端包括原有第一终端发起偶联迁移控制;5) After the above control is completed, the control coupling is transformed into communication coupling; the second terminal replaces the original first terminal, and initiates coupling migration control to other terminals including the original first terminal again;
6)SCTP偶联迁移过程中,对端维持的SCTP偶联不中断,对端ULP和应用的消息和数据传送不中断。6) During the SCTP coupling migration process, the SCTP coupling maintained by the peer end is not interrupted, and the message and data transmission between the peer ULP and the application is not interrupted.
步骤4)所述的状态同步控制不仅包括ULP的状态,还包括与SCTP流相关的状态,其中与SCTP流相关的状态参数至少包含2个方向的传输序号(TSN)、流标号(SID)、流序号(SSN)。The state synchronization control described in step 4) not only includes the state of ULP, but also includes the state related to the SCTP flow, wherein the state parameters related to the SCTP flow at least include the transmission sequence number (TSN), flow label (SID), Stream Sequence Number (SSN).
所述的SCTP流的同步控制由ULP通过服务原语完成或采用SCTP流重配置协议在传输层内完成。The synchronization control of the SCTP flow is completed by the ULP through the service primitive or in the transport layer by using the SCTP flow reconfiguration protocol.
有益效果:本发明提出的SCTP偶联迁移控制方法,兼容现有符合规范的SCTP实现系统,可使在线运行的实时多媒体应用以一种无缝方式从一个物理终端移动到另一个物理终端,克服网络层移动和应用层移动导致的传输不连续性。此外,本发明提出的SCTP偶联迁移控制流程,既未限制终端的数量,也未对终端的功能提出特殊要求,因此适用于多终端组之内的相互迁移以及跨越本地范围的异地迁移。Beneficial effects: the SCTP coupling migration control method proposed by the present invention is compatible with the existing standard-compliant SCTP implementation system, and enables online real-time multimedia applications to move from one physical terminal to another in a seamless manner, overcoming Transmission discontinuity caused by network layer mobility and application layer mobility. In addition, the SCTP coupled migration control process proposed by the present invention neither limits the number of terminals nor imposes special requirements on the functions of the terminals, so it is applicable to mutual migration within a multi-terminal group and cross-local migration.
附图说明Description of drawings
图1是SCTP偶联迁移的典型应用场景。Figure 1 is a typical application scenario of SCTP-coupled migration.
图2是SCTP偶联迁移的控制消息流程。Fig. 2 is a control message flow of SCTP coupled migration.
图3是SCTP偶联迁移的状态转移图。Figure 3 is a state transition diagram for SCTP-coupled migration.
图4是3节点网络仿真实验的拓扑结构示意图。其中,第一终端A由1个路由控制的核心节点(core1)、1个接口节点(intf1)、2个SCTP实体(sctp1和sctp11)组成;第二终端B由1个路由控制的核心节点(core2)、1个接口节点(intf2)、1个SCTP实体(sctp2)组成;对端Z由1个路由控制的核心节点(core0)、1个接口节点(cn)、1个SCTP实体组成。Figure 4 is a schematic diagram of the topology of the 3-node network simulation experiment. Among them, the first terminal A is composed of a routing-controlled core node (core1), an interface node (intf1), and two SCTP entities (sctp1 and sctp11); the second terminal B is composed of a routing-controlled core node ( core2), an interface node (intf2), and an SCTP entity (sctp2); the peer Z is composed of a routing control core node (core0), an interface node (cn), and an SCTP entity.
图5是主控端点接收到的分组序号与仿真时间变化关系。Figure 5 shows the relationship between the sequence number of the packet received by the main control endpoint and the simulation time.
图6是偶联迁移后新端点接收到的分组序号与仿真时间变化关系。Figure 6 shows the relationship between the sequence number of the packet received by the new endpoint and the simulation time after the coupling migration.
图7是对端发送分组序号与仿真时间变化关系。Fig. 7 is the relationship between the sequence number of the packet sent by the peer and the simulation time.
具体实施方式Detailed ways
本发明以传输层SCTP协议技术为基础,以SCTP偶联的标识属性为控制对象,在需要迁移的终端之间建立SCTP控制偶联,辅助通信偶联在终端间的平滑迁,保证实时多媒体应用在迁移过程中的实时性和连续性。The present invention is based on the transport layer SCTP protocol technology, takes the identification attribute of the SCTP coupling as the control object, establishes the SCTP control coupling between the terminals that need to be migrated, assists the smooth migration of the communication coupling between the terminals, and ensures real-time multimedia applications Real-time and continuity during migration.
SCTP协议运行于IP之上,为2个端点提供面向连接的端到端通信控制。为叙述方便,以下采用形式化方法描述技术方案。The SCTP protocol runs on top of IP and provides connection-oriented end-to-end communication control for two endpoints. For the convenience of description, the technical solution is described below using a formal method.
不失一股性,设一个端点名为A,另一端点名为Z。A与Z建立的SCTP偶联记为S(A,Z),Z与A建立的偶联为S(Z,A)。另一名为B的终端与A聚集,经动态地址配置加入到S(A,Z),经首选地址重配置,Without loss of generality, let one endpoint be named A, and the other endpoint be named Z. The SCTP coupling established between A and Z is denoted as S(A, Z), and the coupling between Z and A is denoted as S(Z, A). Another terminal named B gathers with A, joins S(A, Z) through dynamic address configuration, and reconfigures the preferred address.
S(A,Z)→S(B,Z),S(A,Z)→S(B,Z),
S(Z,A)→S(Z,B), (1)S(Z,A)→S(Z,B), (1)
其中符号→,表示变换。简化起见,称A为第一终端,B为第二终端,Z为对端。Among them, the symbol → represents transformation. For simplicity, A is called the first terminal, B is the second terminal, and Z is the opposite terminal.
从偶联的管理和维护角度出发,标识SCTP偶联的属性参数,主要包括网络层地址、传送层端口和传输层协议类型。由于本发明所涉及的传输层协议类型均为SCTP,因此,有:From the perspective of association management and maintenance, identify the attribute parameters of the SCTP association, mainly including network layer address, transport layer port, and transport layer protocol type. Because the transport layer protocol type involved in the present invention is SCTP, therefore, have:
S(A,Z)=(R{A,Z},P{A,Z},R{Z,A},P{Z,A}),S(A, Z) = (R {A, Z} , P {A, Z} , R {Z, A} , P {Z, A}) ,
S(Z,A)=(R{Z,A},P{Z,A},R{A,Z},P{A,Z}), (2)S(Z, A) = (R {Z, A} , P {Z, A} , R {A, Z} , P {A, Z}) , (2)
其中,P{A,Z}和P{Z,A}为标量,是第一终端A和对端Z分配给该偶联的端口值;R{A,Z}和R{Z,A}为向量,是A和Z各自根据ULP要求加入的地址表,可以仅含一条地址,也可含多条地址。本发明提供的方法要求第一终端A和对端Z不同选取相同的端口值,即:Among them, P {A, Z} and P {Z, A} are scalars, which are the port values assigned to the coupling by the first terminal A and the opposite terminal Z; R {A, Z} and R {Z, A} are The vector is the address table that A and Z respectively join according to the ULP requirements, and may contain only one address or multiple addresses. The method provided by the present invention requires the first terminal A and the opposite terminal Z to select the same port value differently, namely:
P{A,Z}≠P{Z,A}. (3)P {A, Z} ≠ P {Z, A} . (3)
偶联S(A,Z)和S(Z,A)称为通信偶联。第二终端B与第一终端A的聚集及重配置由ULP启动,在A与B之间建立的偶联S(A,B)和S(B,A):Coupling S(A, Z) and S(Z, A) is called a communication coupling. The aggregation and reconfiguration of the second terminal B and the first terminal A are initiated by the ULP, and the coupling S(A, B) and S(B, A) established between A and B:
S(A,B)=(R{A,B},P{A,B},R{B,A},P{B,A}),S(A, B) = (R {A, B} , P {A, B} , R {B, A} , P {B, A} ),
S(B,A)=(R{B,A},P{B,A},R{A,B},P{A,B}), (4)S(B, A) = (R {B, A} , P {B, A} , R {A, B} , P {A, B} ), (4)
其中,P{A,B}和P{B,A}均为向量,分别为第一终端A和第二终端B根据ULP要求加入的地址表。本发明要求:Wherein, P {A, B} and P {B, A} are both vectors, which are respectively the address tables added by the first terminal A and the second terminal B according to the ULP requirement. The present invention requires:
P{A,B}=P{Z,A},且,P{B,A}=P{A,Z}. (5)P {A, B} = P {Z, A} , and, P {B, A} = P {A, Z} . (5)
偶联S(A,B)和S(B,A)称为控制偶联。通过DAR控制,A向B发出地址加入消息,要求B将R{Z,A}加入到对端地址表中,即:Coupling S(A, B) and S(B, A) is called a control coupling. Through DAR control, A sends an address adding message to B, requesting B to add R {Z, A} to the peer address table, namely:
R{A,B}→R{AZ,B}=R{A,B}∪R{Z,A}. (6)R {A, B} → R {AZ, B} = R {A, B} ∪ R {Z, A} . (6)
其中,符号∪表示合并。同时,通过DAR控制,A向Z发出地址加入消息,要求Z将R{B,A}加入到Z的对端地址表中,即:Among them, the symbol ∪ means merge. At the same time, through DAR control, A sends an address adding message to Z, requesting Z to add R {B, A} to Z's peer address table, namely:
R{A,Z}→R{AB,Z}=R{A,Z}∪R{B,A}. (7)R {A, Z} → R {AB, Z} = R {A, Z} ∪ R {B, A} . (7)
如此,完成对通信偶联和控制偶联的重配置,可表示为:In this way, the reconfiguration of communication coupling and control coupling is completed, which can be expressed as:
S(Z,A)→S(Z,A∪B),S(Z,A)→S(Z,A∪B),
S(B,A)→S(B,A∪Z). (8)S(B,A)→S(B,A∪Z). (8)
进一步,通过DAR控制,由A分别向B和Z发出地址拆除消息,即:Further, through DAR control, A sends address removal messages to B and Z respectively, namely:
R{AZ,B}→R{Z,B}=R{A,B}∪R{Z,A}-R{A,B},R {AZ, B} → R {Z, B} = R {A, B} ∪ R {Z, A} - R {A, B} ,
R{AB,Z}→R{B,Z}=R{A,Z}∪R{B,A}-R{A,Z}, (9)R {AB, Z} → R {B, Z} = R {A, Z} ∪ R {B, A} - R {A, Z} , (9)
所以,有:F:
S(A∪B,Z)→S(B,Z),S(A∪B,Z)→S(B,Z),
S(A∪Z,B)→S(Z,B). (10)S(A∪Z,B)→S(Z,B). (10)
换言之,在第一端点A的控制下,通信偶联S(A,Z)和S(Z,A)被不间断地变迁到S(B,Z)和B(Z,B),原先在A与Z之间进行的消息传送,能以一种连续方式转由B与Z交互完成。In other words, under the control of the first endpoint A, the communication couplings S(A, Z) and S(Z, A) are continuously transitioned to S(B, Z) and B(Z, B), originally in The message transmission between A and Z can be transferred to B and Z interactively in a continuous manner.
以下给出偶联迁移的具体控制消息流程。The specific control message flow of coupling migration is given below.
(1)第一终端与对端建立通信偶联(1) The first terminal establishes a communication coupling with the opposite end
根据ULP的要求,由第一终端发起,建立与对端的SCTP偶联。偶联建立之前,要求第一终端选取的本地端口值不同于对端处于服务状态的端口值。通信偶联的建立过程,遵循SCTP规范,通过4次握手完成。According to the requirement of the ULP, the first terminal initiates to establish an SCTP connection with the opposite terminal. Before the association is established, the local port value selected by the first terminal is required to be different from the port value of the peer terminal in service state. The establishment process of the communication coupling follows the SCTP specification and is completed through a 4-way handshake.
(2)第一终端与对端进行实时会话(2) The first terminal conducts a real-time conversation with the opposite end
通信偶联的任何一端通过HEARTBEAT(心跳)探测路径延时后,进行实时多媒体消息的传送,并按规范要求进行流量控制和差错控制。After any end of the communication coupling detects the path delay through HEARTBEAT (heartbeat), real-time multimedia message transmission is carried out, and flow control and error control are carried out according to the specification requirements.
(3)第一终端与第二终端建立控制偶联(3) The first terminal establishes a control coupling with the second terminal
根据ULP的要求,由第一终端发起,建立与第二终端的控制偶联。偶联建立之前,第二终端处于服务状态,且其服务端口的取值与通信偶联在第一终端侧的端口相同;第一终端以客户机角色访问第二终端,且其本地端口必须选取通信偶联在对端侧的服务端口值。控制偶联的建立过程,遵循SCTP规范,通过4次握手完成。According to the requirement of ULP, it is initiated by the first terminal to establish a control association with the second terminal. Before the coupling is established, the second terminal is in the service state, and the value of its service port is the same as the port on the first terminal side of the communication coupling; the first terminal accesses the second terminal as a client, and its local port must be selected The service port value of the communication coupling on the peer side. Control the establishment process of the coupling, follow the SCTP specification, and complete it through a 4-way handshake.
(4)第一终端暂停与对端的传输控制流程(4) The first terminal suspends the transmission control process with the opposite terminal
第一终端暂停所有与对端的实时会话。如果状态同步失败,第一终端拆除与第二终端的控制偶联,恢复与对端的实时会话,并回到第(2)所列的通信状态。The first terminal suspends all real-time sessions with the opposite terminal. If state synchronization fails, the first terminal dismantles the control coupling with the second terminal, restores the real-time session with the opposite end, and returns to the communication state listed in (2).
(5)第一终端与第二终端进行状态同步(5) State synchronization between the first terminal and the second terminal
遵照SCTP规范要求,控制偶联的任何一端通过HEARTBEAT(心跳)探测路径延时后,由第一终端控制,要求第二终端进行ULP状态和SCTP流控状态的同步。According to the requirements of the SCTP specification, after any end of the control coupling is delayed by the HEARTBEAT (heartbeat) detection path, it is controlled by the first terminal, and the second terminal is required to synchronize the ULP state and the SCTP flow control state.
(6)第二终端地址重配置(6) Second terminal address reconfiguration
第一终端遵照SCTP的DAR规范,通过控制偶联向第二终端传送ASCONF控制块。ASCONF控制块至少包含2条控制请求,其一要求加入对端的可达网络地址,其二要求将该地址设为首地址。如果DAR控制失败,第一终端拆除与第二终端的控制偶联,恢复与对端的实时会话,并回到第(2)所列的通信阶段。The first terminal transmits the ASCONF control block to the second terminal through the control coupling according to the DAR specification of the SCTP. The ASCONF control block contains at least two control requests, one of which requires adding the reachable network address of the opposite end, and the other requires that this address be set as the first address. If the DAR control fails, the first terminal dismantles the control coupling with the second terminal, restores the real-time session with the opposite end, and returns to the communication stage listed in (2).
(7)对端地址重配置(7) Peer address reconfiguration
第一终端遵照SCTP的DAR规范,通过通信偶联向对端传送ASCONF控制块。ASCONF控制块至少包含2条控制请求,其一要求加入第二终端的可达网络地址,其二要将该地址设为首地址。如果DAR控制失败,第一终端拆除与第二终端的控制偶联,恢复与对端的实时会话,并回到第(2)所列的通信阶段。The first terminal transmits the ASCONF control block to the peer terminal through communication coupling in compliance with the DAR specification of SCTP. The ASCONF control block contains at least two control requests, one of which requires adding the address of the reachable network of the second terminal, and the other of which needs to set this address as the first address. If the DAR control fails, the first terminal dismantles the control coupling with the second terminal, restores the real-time session with the opposite end, and returns to the communication stage listed in (2).
(8)第二终端与对端进行实时会话(8) The second terminal conducts a real-time conversation with the opposite end
第二终端和对端的任何一方,通过HEARTBEAT(心跳)探测路径延时后,继续实时多媒体消息的传送,并按规范要求进行流量控制和差错控制。Any one of the second terminal and the opposite end continues to transmit the real-time multimedia message after the HEARTBEAT (heartbeat) detection path is delayed, and performs flow control and error control according to the specification requirements.
需要指出的是,上述控制流程第(5)步的同步控制,同步内容不仅包括ULP的状态,还包括与SCTP流相关的状态。其中与SCTP流相关的状态参数,至少包含2个方向的传输序号(TSN)、流标号(SID)、流序号(SSN)。SCTP流的同步控制,其具体实现,可由ULP通过服务原语完成,也可采用SCTP流重配置协议在传输层内完成。It should be pointed out that, for the synchronization control in step (5) of the above control flow, the synchronization content includes not only the status of the ULP, but also the status related to the SCTP flow. The state parameters related to the SCTP stream include at least two directions of transmission sequence number (TSN), stream label (SID), and stream sequence number (SSN). The synchronous control of SCTP flow, its specific implementation, can be completed by ULP through the service primitive, and can also be completed in the transport layer by using the SCTP flow reconfiguration protocol.
以上描述的SCTP偶联迁移控制流程,除状态同步外,其它步骤的操作均可运用现有支持DAR的SCTP协议软件模块,例如开源的lksctp等。In the SCTP coupled migration control process described above, except for state synchronization, the operations of other steps can use existing SCTP protocol software modules that support DAR, such as the open source lksctp, etc.
为了直观显示多终端SCTP偶联迁移的控制过程及效果,现以3个SCTP节点构成的通信系统为例,并以开源的NS2网络仿真器为基础,验证实现方法。具体过程如下所述。In order to intuitively display the control process and effect of multi-terminal SCTP coupling migration, the communication system composed of three SCTP nodes is taken as an example, and the implementation method is verified based on the open source NS2 network simulator. The specific process is as follows.
(1)仿真器简要说明(1) Brief description of the emulator
开源软件包NS2是采用面向对象方法设计的通用网络仿真器,被广泛应用于通信网络协议和算法的设计及验证。自版本2.19之后,NS2集成了SCTP协议仿真功能,已被用于DAR的并发多路径传输(CMT,Concurrent Multiple Transmission)等SCTP新功能和性能研究。The open source software package NS2 is a general-purpose network simulator designed with object-oriented methods, and is widely used in the design and verification of communication network protocols and algorithms. Since version 2.19, NS2 has integrated the SCTP protocol emulation function, which has been used for DAR's concurrent multipath transmission (CMT, Concurrent Multiple Transmission) and other SCTP new functions and performance research.
(2)仿真器扩展(2) Emulator extension
现有NS2(版本2.33之前)软件中,一个SCTP仿真节点由1个主节点和1个以上的接口节点复合成,加入SCTP偶联的接口地址只能通过预配置完成,且偶联的建立依赖上层应用的数据发送要求。此外,现有SCTP仿真模块没有流控状态参数重配置接口。仿真实验之前,需修改和补充了NS2的SCTP仿真功能,主要包括以下4点。In the existing NS2 (before version 2.33) software, an SCTP simulation node is composed of one master node and more than one interface node. The interface address added to the SCTP coupling can only be completed through pre-configuration, and the establishment of the coupling depends on The data sending request of the upper layer application. In addition, the existing SCTP emulation module does not have a flow control state parameter reconfiguration interface. Before the simulation experiment, the SCTP simulation function of NS2 needs to be modified and supplemented, mainly including the following 4 points.
新增针对数据块流控的暂停控制功能;Added pause control function for data block flow control;
修改原有接受处理函数,在暂停状态下不向对端回应;Modify the original acceptance processing function, and do not respond to the peer in the pause state;
新增接口地址的初始化函数,以支持DAR功能;Add the initialization function of the interface address to support the DAR function;
新增针对流控状态参数读取和重配置的函数。Added functions for reading and reconfiguring flow control state parameters.
(3)配置3个SCTP节点的网络拓扑(3) Configure the network topology of 3 SCTP nodes
每个SCTP节点由2个NS2通用节点组成,各包括1个主节点和1个接口节点,3个接口节点二二互联,其拓扑结构如附图4所示。其中,第一终端A配置2个SCTP协议仿真模块,分别与对端Z和第二终端B建立SCTP偶联。Each SCTP node is composed of two NS2 general nodes, each including a master node and an interface node, and the three interface nodes are interconnected two by two. Its topology is shown in Figure 4. Wherein, the first terminal A is configured with two SCTP protocol emulation modules, and establishes SCTP coupling with the opposite terminal Z and the second terminal B respectively.
为观察偶联迁移前后的可用带宽变化,第一终端A与对端Z的链路,其带宽设置为10Mbps,延时设置为2ms;第二终端B与对端Z的链路,其带宽设置为2Mbps,延时设置为20ms;第一终端A与第二终端B的链路,其带宽和延时对偶联迁移不起关键性的影响,其值分别设置为2Mbps和20ms。3条链路设置均为双向对称,对应物理端口的输出缓存设置为50个分组。In order to observe the change of available bandwidth before and after coupling migration, the bandwidth of the link between the first terminal A and the peer Z is set to 10Mbps, and the delay is set to 2ms; the bandwidth of the link between the second terminal B and the peer Z is set to is 2Mbps, and the delay is set to 20ms; the bandwidth and delay of the link between the first terminal A and the second terminal B do not have a critical impact on coupling migration, and the values are set to 2Mbps and 20ms respectively. The three link settings are bidirectional and symmetrical, and the output buffer of the corresponding physical port is set to 50 packets.
(4)DAR配置(4) DAR configuration
第一终端A预先与对端Z建立基于SCTP的FTP连接,构建通信偶联,并由Z不间断发送数据分组。在DAR启动前,由第一终端A与第二终端B建立基于SCTP的FTP连接,并由A发送一个分组,驱动SCTP仿真模块建立控制偶联。The first terminal A establishes an SCTP-based FTP connection with the peer Z in advance, constructs a communication coupling, and Z sends data packets continuously. Before the DAR starts, the first terminal A establishes an SCTP-based FTP connection with the second terminal B, and A sends a packet to drive the SCTP emulation module to establish a control coupling.
DAR在启动时,第一终端A暂停通信偶联的流控,通过仿真配置命令,在控制偶联的第二终端B一侧加入对端Z的地址,在通信偶联的Z一侧加入B的地址。同时,获取A的流控状态参数值,用于重配B的流控状态参数,随后重置B和Z的SCTP首地址,分别指向Z和B。When DAR starts, the first terminal A suspends the flow control of the communication coupling, and through the emulation configuration command, adds the address of the peer Z on the side of the second terminal B that controls the coupling, and adds B on the Z side of the communication coupling the address of. At the same time, the value of the flow control state parameter of A is obtained, which is used to reconfigure the flow control state parameter of B, and then the SCTP header addresses of B and Z are reset to point to Z and B respectively.
(5)记录所有仿真事件(5) Record all simulation events
在仿真实验配置程序中,打开事件跟踪功能,记录在外部文件中,用于仿真实验结束后的结果分析。In the simulation experiment configuration program, turn on the event tracking function and record it in an external file for analysis of the results after the simulation experiment.
(6)SCTP仿真事件后继处理(6) Subsequent processing of SCTP simulation events
从事件跟踪记录文件中,分别过滤得到从对端Z发出的、第一终端A接收到的、第二终端B接收到的所有SCTP分组,提取SSN及对应的仿真时间。From the event tracking record file, all SCTP packets sent from the peer Z, received by the first terminal A, and received by the second terminal B are obtained by filtering, and the SSN and the corresponding simulation time are extracted.
(7)其他仿真参数设置(7) Other simulation parameter settings
SCTP偶联的路径最大传输单元(MTU,maximum transmission unit)均设置为1500字节,流量控制和差错控制参数选用NS2的缺省值。通信偶联在0.5s时建立,控制偶联在3.0s时建立,DAR操作在5.0s时进行,仿真实验在10.0s时结束。The path maximum transmission unit (MTU, maximum transmission unit) of SCTP coupling is set to 1500 bytes, and the flow control and error control parameters use the default values of NS2. The communication coupling is established at 0.5s, the control coupling is established at 3.0s, the DAR operation is carried out at 5.0s, and the simulation experiment ends at 10.0s.
(8)仿真实验结果(8) Simulation experiment results
附图5至附图7给出了SCTP分组的SSN与仿真时间的变化关系。Figures 5 to 7 show the relationship between the SSN of the SCTP packet and the simulation time.
从图5可以看出,第一终端A在通信偶联建立之后到DAR操作(在5.0s时)之间的时间内,持续不断地接收到来自对端Z的分组流;DAR操作之后,在短时间之内依然收到来自Z的多个分组。It can be seen from FIG. 5 that the first terminal A continuously receives the packet flow from the peer Z during the time between the establishment of the communication coupling and the DAR operation (at 5.0s); after the DAR operation, the Multiple packets from Z are still received within a short period of time.
从图6可以看出,在5.0s时,第二终端B在DAR操作完成之后,在短时间之内收到来自对端Z的分组,但这些分组的SSN值超出等待接收的SSN。经过约100ms后,B持续收到来自Z且具有正确SSN的分组流。It can be seen from FIG. 6 that at 5.0s, the second terminal B received the packets from the peer Z within a short time after the DAR operation was completed, but the SSN value of these packets exceeded the SSN waiting to be received. After about 100ms, B continues to receive a stream of packets from Z with the correct SSN.
从图7可以看出,对端Z从通信偶联建立之后(0.5s)到DAR操作(5.0s)之间,所发分组的SSN与时间呈直线关系,斜率与10Mbps的链路带宽相匹配。DAR操作之后的短时间内(时长小于100ms),Z发出分组的SSN与时间关系不稳定。之后,Z发出的分组SSN出现回退,约500ms之后,所发分组的SSN与时间再次呈现稳定的直线关系,斜率变小,但与2Mbps的链路带宽相匹配。5.0s之前和5.5s之后,SSN与时间的变化曲线,斜率的改变,与拓扑配置完全吻合。It can be seen from Figure 7 that the SSN of the sent packet and the time of the peer Z from the establishment of the communication coupling (0.5s) to the DAR operation (5.0s) have a linear relationship, and the slope matches the link bandwidth of 10Mbps . In a short period of time (less than 100ms) after the DAR operation, the relationship between the SSN and time of the packet sent by Z is unstable. After that, the SSN of the packet sent by Z backed off, and after about 500ms, the SSN of the sent packet and time showed a stable linear relationship again, and the slope became smaller, but it matched the link bandwidth of 2Mbps. Before 5.0s and after 5.5s, the change curve of SSN and time, the change of slope, is completely consistent with the topology configuration.
以上通过仿真验证的SCTP偶联迁移,ULP数据信息的连续性可以得到较好保证,因分组SSN失序造成的不稳定时长小于100ms,因迁移造成的吞吐性能下降的持续时间小于500ms,链路的可用带宽可得到稳定占用。The above SCTP coupling migration verified by simulation can ensure the continuity of ULP data information. The instability duration caused by the out-of-order packet SSN is less than 100ms, and the duration of throughput performance degradation caused by migration is less than 500ms. The available bandwidth can be used steadily.
本发明提出的SCTP偶联迁移方法能满足实时多媒体应用的性能要求。The SCTP coupling migration method proposed by the invention can meet the performance requirements of real-time multimedia applications.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010568213 CN102006301B (en) | 2010-12-01 | 2010-12-01 | Method for controlling movement of stream control transmission protocol (SCTP) association among multiple terminals |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010568213 CN102006301B (en) | 2010-12-01 | 2010-12-01 | Method for controlling movement of stream control transmission protocol (SCTP) association among multiple terminals |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102006301A true CN102006301A (en) | 2011-04-06 |
CN102006301B CN102006301B (en) | 2013-10-30 |
Family
ID=43813372
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010568213 Expired - Fee Related CN102006301B (en) | 2010-12-01 | 2010-12-01 | Method for controlling movement of stream control transmission protocol (SCTP) association among multiple terminals |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102006301B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103793217A (en) * | 2012-10-31 | 2014-05-14 | 国际商业机器公司 | Method and system for quick software configuration |
CN107690165A (en) * | 2016-08-05 | 2018-02-13 | 北京信威通信技术股份有限公司 | A kind of method of network connection, base station, trunk subscriber equipment and system |
CN109803333A (en) * | 2017-11-17 | 2019-05-24 | 中兴通讯股份有限公司 | It is coupled reorientation method and device |
CN112055035A (en) * | 2019-06-05 | 2020-12-08 | 大唐移动通信设备有限公司 | NG interface establishing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262437A (en) * | 2008-04-17 | 2008-09-10 | 中兴通讯股份有限公司 | A Method for State Transition of Stream Control Transmission Protocol |
CN101415006A (en) * | 2008-11-25 | 2009-04-22 | 华为技术有限公司 | Method, apparatus and system for signaling migration |
US20100218034A1 (en) * | 2009-02-24 | 2010-08-26 | Sirigiri Anil Kumar Reddy | Method And System For Providing High Availability SCTP Applications |
-
2010
- 2010-12-01 CN CN 201010568213 patent/CN102006301B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262437A (en) * | 2008-04-17 | 2008-09-10 | 中兴通讯股份有限公司 | A Method for State Transition of Stream Control Transmission Protocol |
CN101415006A (en) * | 2008-11-25 | 2009-04-22 | 华为技术有限公司 | Method, apparatus and system for signaling migration |
US20100218034A1 (en) * | 2009-02-24 | 2010-08-26 | Sirigiri Anil Kumar Reddy | Method And System For Providing High Availability SCTP Applications |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103793217A (en) * | 2012-10-31 | 2014-05-14 | 国际商业机器公司 | Method and system for quick software configuration |
CN103793217B (en) * | 2012-10-31 | 2017-03-01 | 国际商业机器公司 | Method and system for software rapid configuration |
US9710289B2 (en) | 2012-10-31 | 2017-07-18 | International Business Machines Corporation | Rapid configuration of software |
CN107690165A (en) * | 2016-08-05 | 2018-02-13 | 北京信威通信技术股份有限公司 | A kind of method of network connection, base station, trunk subscriber equipment and system |
CN109803333A (en) * | 2017-11-17 | 2019-05-24 | 中兴通讯股份有限公司 | It is coupled reorientation method and device |
CN109803333B (en) * | 2017-11-17 | 2022-04-19 | 中兴通讯股份有限公司 | Coupling redirection method and device |
US11758456B2 (en) | 2017-11-17 | 2023-09-12 | Zte Corporation | Association redirection method and device |
CN112055035A (en) * | 2019-06-05 | 2020-12-08 | 大唐移动通信设备有限公司 | NG interface establishing method and device |
CN112055035B (en) * | 2019-06-05 | 2021-10-29 | 大唐移动通信设备有限公司 | NG interface establishing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102006301B (en) | 2013-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110912780B (en) | High-availability cluster detection method, system and controlled terminal | |
US6456603B1 (en) | Method of supporting communications mobility in a telecommunications system | |
CN102510408B (en) | Method for realizing TCP (transmission control protocol) application main and standby changeover | |
CN104660550B (en) | A method of conversate migration between multiserver | |
US20120077483A1 (en) | Enabling interface aggregation of mobile broadband network interfaces | |
WO2007093087A1 (en) | A synchronization method of connection status in data communications and the applied communication node | |
TW200539617A (en) | Method and system for seamless handover of mobile devices in heterogeneous networks | |
WO2007033363A2 (en) | System and method for providing packet connectivity between heterogeneous networks | |
CN110366276A (en) | Serviceization framework base station | |
WO2014075216A1 (en) | Method and network device for establishing virtual cluster | |
CN102142978B (en) | Data backup transmission processing method, device and system | |
Takano et al. | Virtualization-based scaling methods for stateful cellular network nodes using elastic core architecture | |
CN102006301B (en) | Method for controlling movement of stream control transmission protocol (SCTP) association among multiple terminals | |
CN109302328B (en) | Hot standby switching method and system for VXLAN (virtual extensible local area network) | |
CN114885443A (en) | Multi-mode network control system and method supporting mobile access of terminal | |
WO2011029085A2 (en) | Methods, systems, and computer readable media for verifying the availability of an internet protocol (ip) media router during a call setup | |
JP3732745B2 (en) | Communication connection establishment method | |
WO2011060677A1 (en) | Method, device and system for main/standby switch | |
EP4213460A1 (en) | Session state synchronization and failover using session-based routing | |
EP3632081B1 (en) | Session layer communications using an id-oriented network | |
CN104486290B (en) | A kind of Streaming Media cloud transparent service device based on OpenFlow | |
CN102255741B (en) | User service information backup method and device | |
JP2011040931A (en) | Mobile communication gateway device, and method of controlling mobile communication gateway | |
KR20200072941A (en) | Method and apparatus for handling VRRP(Virtual Router Redundancy Protocol)-based network failure using real-time fault detection | |
CN112994946A (en) | Link aggregation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20110406 Assignee: Jiangsu Nanyou IOT Technology Park Ltd. Assignor: Nanjing Post & Telecommunication Univ. Contract record no.: 2016320000218 Denomination of invention: Method for controlling movement of stream control transmission protocol (SCTP) association among multiple terminals Granted publication date: 20131030 License type: Common License Record date: 20161118 |
|
LICC | Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model | ||
EC01 | Cancellation of recordation of patent licensing contract |
Assignee: Jiangsu Nanyou IOT Technology Park Ltd. Assignor: Nanjing Post & Telecommunication Univ. Contract record no.: 2016320000218 Date of cancellation: 20180116 |
|
EC01 | Cancellation of recordation of patent licensing contract | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20131030 Termination date: 20171201 |
|
CF01 | Termination of patent right due to non-payment of annual fee |