Background technology
The mobility of the Internet, or mobile Internet are the bases of all kinds of novel information communications applications.Mobile model is used the maximum differential of using with fixed, is mainly manifested in that fast mobile terminal, user move, Network Mobility and application move.
(1) fast mobile terminal, a terminal that refers to user's use is moved between diverse access point, main by the handover of existing physical layer and the Mobile Internet Protocol (MIP of network layer, Mobile Internet Protocol), with the uninterrupted access of the terminal after the migration of realization physical location to the mobile base station, and the communication continuation after the neutralization of end network address change process.
(2) user moves, refer to that a user moves between a plurality of terminals, can be by the session initiation protocol (SIP of the Internet, Session Initiation Protocol), to support the transfer of session between different terminals, realize that calling transfer, Call Forwarding and the multimachine of similar telephone service are with shaking function.
(3) Network Mobility, refer to the collective synchronization migration of a plurality of terminals between diverse access point in the same sub-network, main network mobility (NEMO by the Internet, Network Mobility) and the MIP technology, realize couple in router or the uninterrupted switching of gateway between the different hosts net.
(4) application is mobile, refer to information source or the information sink used, under a user or a plurality of users' requirement, between a plurality of terminals, move, can realize uninterrupted the switching based on open service framework (OSA, Open Service Architecture) technology by SIP and other in theory.
More than 4 classes move, in current Implementation Technology, relate to physical layer handover, network layer MIP and NEMO, application layer sip technique.In recent years, people have proposed again host identity protocol (HIP, Host Identity Protocol), can be used for solving the hydraulic performance decline problem of fast mobile terminal.HIP is the bed course between network layer and the transport layer, mainly is applicable to the mobility of unit/terminal.In a word, up to now, Internet technology lacks one for the mobility control protocol of transport layer, moves between different terminals in order to support applications.
Be positioned at the SCTP of ICP/IP protocol bunch transport layer, between 2 communication end points, set up coupling (Association), the carrying service of Media Stream and control stream is provided for the application of Internet-based technology.Originally, the application target of SCTP is by the Internet bearer conventional telecommunications net signaling, and for the multiplexed characteristics of signaling, multithread (multiple streaming) control method has been proposed, for high reliability request, standard many hosts (multiple homing) and failover (failover) control flow.Through amendment and supplement for many years, the range of application of SCTP is expanded gradually, has possessed at present that multimedia transmits in real time, the function such as heterogeneous network seamless switching and the concurrent service of multiserver.In the existing SCTP standard, the Main Function of coupling is to keep 2 transmission controls between the communication end point.Up to now, do not have open and clear and definite report, SCTP is applied to conversation shift and application migration between the multiple terminals.
The identification parameter of SCTP coupling comprises network layer address and the transport layer port number of 2 communication end points.IETF (internet engineering task group) RFC4960 (No. 4960 consult on file) regulation: the two ends of a SCTP coupling, can have many host's configurations, a plurality of network layer address can be arranged, but any end can only there be a transport layer port value.In the end points, different SCTP couplings must distribute different port values; A pair of end points can only be set up a coupling simultaneously.Dynamic address reconstruct (the DAR of SCTP, Dynamic AddressReconfiguration) function (seeing IETF RFC5061), allow end points in application and the unbroken situation of session, the dynamic-configuration network layer address, and by ASCONF (reshuffle the address, and AddressCONFiguration) the control message piece is announced to the opposite end.The autonomous managerial ability of DAR in transport layer provides a kind of end points can combine with the Mobility Technology of physical layer, network layer, application layer, is that the migration of terminal between a plurality of interfaces provides support.
Along with the development of intelligent mobile phone terminal, internet television, panel computer and mobile Internet with popularize, the communication terminal quantity that the user can use simultaneously or be used alternatingly generally surpasses 1, and termination function and performance present variation and collaborative demand for development.The multiple terminals is assembled and is reshuffled one of key issue that becomes the terminal communication technology.The present invention is take SCTP as the basis, and towards real-time Multimedia session and application, propose to communicate by letter coupling and method and coupling migration control flow that the control coupling is associated are used for session and Application mobility between the support multiple terminals.
The invention provides a kind of IP network at the control method for movement of transport layer, can move with application layer, network layer moves, physical channel layer mobile technology constructed a complete mobile Internet applied environment.
The mobile support method of application layer mainly contains sip technique.The SIP network comprises user agent and the webserver.The webserver is mainly the user agent services such as route, authentication, authentication, registration is provided.Sip terminal has unique SIP URI (unified resource sign, Universal Resource Identifier).When terminal has been assigned with new IP address, set up new IP address and the binding of SIP URL by register flow path, therefore no matter how terminal moves, and the positional information corresponding with it all can obtain more up-to-date, and the session of having set up can be kept.SIP does not rely on any lower layer protocol technology to ambulant support, has very large applicable surface.But its switching in SIP can cause larger switching delay, and is lower to the relevance grade of real time communication.
The network layer mobile support method mainly contains MIP and HIP.MIP has been Terminal Design home network distributes a permanent home address to portable terminal.In addition, MIP has introduced home agent and Foreign Agent.When the MIP portable terminal left home network and enters field network, it obtained a provisional Care-of Address from Foreign Agent, and sent login request message to announce its new address to home agent.The grouping that all mail to portable terminal from Correspondent Node when arriving home network, is intercepted and captured and is utilized the tunnel to be transmitted to the Foreign Agent of managing mobile terminal by home agent, then by Foreign Agent this message is transmitted to portable terminal again.There is the triangle routing issue in MIP, and operating efficiency is not high simultaneously, handoff delay is larger, is unfavorable for the mobile management of using in real time.
HIP passes through to increase new protocol layer in order to separate the identify label function of IP address between network layer and transport layer, and provides ambulant support.HIP has introduced a new host identification name field, and connection and the host identification of transport layer are bound, and no longer bind with the IP address.HIP can provide safe, seamless communication mechanism, but need to again transform existing internet architecture, so that it is difficult to by large scale deployment.
Physical layer moves and is mainly used in handover, is a key technology of mobile communication system.When the user moved to the another one residential quarter from the zone that a cell base station covers, new link must be set up between the residential quarter of user and Xin, and the link between user and the original residential quarter must be deleted and discharge, so that user's conversation can continue.At present, global system for mobile communications (GSM, Global System for MobileCommunications) system and code division multiple access (CDMA, Code Division Multiple Access) switching controls of system all is to adopt the mode of Mobile Assisted Handover, it requires the signal strength signal intensity of port around the moving table measuring and reports to old port, then judges whether to switch and switch to which port by network.It is obstructed that the main distinction of GSM and CDMA is to switch to the mode of new port, and the gsm system travelling carriage adopts the mode of direct-cut operation, and travelling carriage must disconnect first and being connected of old port, and sets up and new being connected of port again; What cdma system adopted is soft handover, when can keeping being connected with old port, the user connects with new port, and then being connected of disconnection and old port.
The SCTP standard that IETF formulates comprises: protocol Data Unit structure, function and coding; The foundation of single coupling, management and dismounting control; Flow control and error control that message transmits; Dynamic address reconstruct, first address are specified; Fault management and path management.At present, a plurality of operating systems have been assembled the protocol stack of following the SCTP standard.
R.Stewart (Stewart), P.Lei (thunder) and M.Tuexen (Tucson) have proposed SCTP stream and have reshuffled (Stream Reconfiguration) draft (drafi-ietf-tsvwg-sctp-strrst), (ULP, Up Layer Protocol) and application provide stream to reuse function take enterprise as upper-layer protocol.Stream is reshuffled draft and has been designed SCTP stream replacement agreement, and it allows arbitrary end of coupling to send indication to the opposite end, requires the opposite end that the Flow Control state parameter is reset to designated value.The Flow Control state parameter that agreement can be reset comprises transmission sequence number (TSN, Transmission Sequence Number) and the stream sequence number (SSN, StreamSequence Number) of Transmitting and Receiving End on the input and output both direction.
With the publication of the present invention in same field, mainly contain following 6, be described below.
(1) publication " a kind of method (CN1512714) of recovering protocol message transmission in the SCTP coupling ".
This patent disclosure a kind of method of recovering the transmission of protocol message in the SCTP coupling, the method may further comprise the steps: the break down upper-layer protocol of end equipment of A. is switched the spare part of self and is primary part, and disconnects the upper-layer service environment of self; B. break down end equipment according to the coupling information on the current primary part, send the coupling request to the opposite end SCTP endpoint, and the coupling between two SCTP endpoint corresponding with opposite equip. reconstruction terminal device; C. the SCTP endpoint of opposite equip. sends the request that restarts to this opposite end upper-layer protocol, by restarting the upper-layer service environment of recover to break down end equipment and opposite equip..The method is at one end in the situation of device fails, recover rapidly to connect, rebuild coupling and upper strata transport service environment, avoid an end fault after, its opposite end is not known and is thought that still the coupling between the two ends is normal, and causes losing of a large amount of protocol messages.
(2) publication " based on the multi address selection method (CN1534951) of SCTP "
This patent realized for existing multi-address SCTP endpoint to carry out data when again transmitting, respectively all opposite end and local addresss of choice for use successively; Like this, if the prefered path fault of using can also be found out other available paths, and can guarantee that in the addressing process existing each address of SCTP endpoint all can be chosen to; Simultaneously, the situation that the present invention was once lost efficacy and recovered again later for primary local address or address, opposite end, SCTP connects and still can use primary address to carry out transfer of data, to satisfy user's transmission demand.
(3) publication " to the method (CN1533100) of protecting based on the coupling of SCTP "
This patent relates to the method for protecting between the processed machine in the SCTP place of being coupled in the IP network.May further comprise the steps: the active and standby machine of local terminal is set up the SCTP coupling with the opposite end end points, and the main frame coupling enters coupling and sets up state, and standby host enters coupling backup set-up state; The Stream Control Transmission Protocol flow process of the coupling complete of setting up on the main frame, standby host enter sets up Status of Backups; When coupling on the main frame is ended or is closed, switch between master and slave machines and changing role normal operation.
(4) publication number " implementation method of function of multiple attributions in stream control and transmission protocol (CN101094240) "
This patent provides a kind of SCTP to belong to function realizing method more, comprises following processing: safeguard parameter preset in SCTP is the data structure of each bar communication path of SCTP coupling; Determine the quantity of the communication path of SCTP coupling, and determine the source address of each bar communication path and the address corresponding relation of destination address, and determine primary path; When needs carried out the switching of primary path, poll SCTP coupling other communication paths except primary path selected suitable communication path as new primary path.
(5) publication " method of transference between network host (US 20060164974A1) "
This patent provides a kind of method of the fault tolerant based on SCTP, and application scenarios comprises primary main frame, backup host and opposite end main frame.Primary main frame is connected SCTP and is connected with the opposite end main frame; Backup host backs up the state of primary main frame and the information of SCTP coupling thereof by redundancy scheme, and whether detect primary main frame by heartbeat mechanism available.When primary main frame was unavailable, backup host sent the SCTP bag to the opposite end main frame and upgrades its coupling information, and the response message by the opposite end main frame is set up the SCTP coupling of itself and opposite end main frame with off-gauge mode.In the process of this transference, the message that the opposite end main frame sends will be lost, and this is not so that the method is suitable for real time business, and it mainly should be in the transfer of BGP route.
(6) publication " method and system (US20100218034A1) that provides high availability SCTP to use "
Propose a high availability server system and comprise a primary server and a backup server.Primary server and backup server communicate by the control channel of setting up.After primary server and client side had set up the SCTP coupling, it sent the IP address of primary server and backup server to client, by control channel state and the upper layer application of SCTP storehouse is shone upon to backup server simultaneously.When primary server is detected when unavailable, continue to provide service to client by backup server.The method is mainly for the mobility of server end network.
Embodiment
The present invention is take transport layer Stream Control Transmission Protocol technology as the basis, take the identity property of SCTP coupling as control object, set up SCTP control coupling between the terminal of needs migration, subsidiary communications is coupled at smoothly moving of terminal room, guarantees real-time and the continuity of Real-time multimedia in transition process.
Stream Control Transmission Protocol runs on the IP, for 2 end points provide connection-oriented end-to-end communication control.For sake of convenience, following different forms method description technique scheme.
Do not lose a characteristic of stock, establish end points A by name, other end point is called Z.The SCTP coupling that A and Z set up is designated as S (A, Z), and the coupling that Z and A set up is S (Z, A).The terminal of another B by name and A assemble, and join S (A, Z) through the dynamic address configuration, reshuffle through primary address,
S(A,Z)→S(B,Z),
S(Z,A)→S(Z,B), (1)
Wherein symbol →, the expression conversion.For simplicity, title A is first terminal, and B is the second terminal, and Z is the opposite end.
From the angle that administers and maintains of coupling, the property parameters of sign SCTP coupling mainly comprises network layer address, transport layer port and transport layer protocol type.Because transport layer protocol type involved in the present invention is SCTP, therefore, has:
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)
Wherein, P
{ A, Z}And P
{ Z, A}Being scalar, is the port value that first terminal A and opposite end Z distribute to this coupling; R
{ A, Z}And R
{ Z, A}Being vector, is A and Z require adding separately according to ULP address table, can only contain an address, also can contain many addresses.Method provided by the invention requires that first terminal A is different with opposite end Z to choose identical port value, that is:
P
{A,Z}≠P
{Z,A}. (3)
Coupling S (A, Z) and S (Z, A) are called the communication coupling.The gathering of the second terminal B and first terminal A and reshuffle by ULP and start the coupling S (A, B) and the S (B, A) that between A and B set up:
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)
Wherein, P
{ A, B}And P
{ B, A}Be vector, be respectively first terminal A and the second terminal B require adding according to ULP address table.The present invention requires:
P
{ A, B}=P
{ Z, A}, and, P
{ B, A}=P
{ A, Z}. (5)
Coupling S (A, B) and S (B, A) are called the control coupling.By DAR control, A sends the address to B and adds message, requires B with R
{ Z, A}Join in the address table of opposite end, that is:
R
{A,B}→R
{AZ,B}=R
{A,B}∪R
{Z,A}. (6)
Wherein, symbol ∪ represents to merge.Simultaneously, by DAR control, A sends the address to Z and adds message, requires Z with R
{ B, A}Join in the opposite end address table of Z, that is:
R
{A,Z}→R
{AB,Z}=R
{A,Z}∪R
{B,A}. (7)
So, finish communication coupling and control the reshuffling of coupling, can be expressed as:
S(Z,A)→S(Z,A∪B),
S(B,A)→S(B,A∪Z). (8)
Further, by DAR control, send the address tear down message to B and Z respectively by A, that is:
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)
So, have:
S(A∪B,Z)→S(B,Z),
S(A∪Z,B)→S(Z,B). (10)
In other words, under the control of the first terminal A, communication coupling S (A, Z) and S (Z, A) be transitted towards incessantly S (B, Z) and B (Z, B), the message of originally carrying out between A and Z transmits, and can turn by B and Z with a kind of continuation mode and finish alternately.
Below provide the concrete control message flow process of coupling migration.
(1) first terminal is set up the coupling of communicating by letter with the opposite end
According to the requirement of ULP, initiated by first terminal, set up the SCTP coupling with the opposite end.Before coupling was set up, the local port value that requires first terminal to choose was different from the port value that the opposite end is in service state.The process of setting up of communication coupling is followed the SCTP standard, shakes hands by 4 times and finishes.
(2) real-time session is carried out in first terminal and opposite end
Any end of communication coupling carries out the transmission of real-time multimedia message, and carries out flow control and error control by code requirement after delaying time by HEARTBEAT (heartbeat) detective path.
(3) first terminal and the second terminal are set up the control coupling
According to the requirement of ULP, initiated by first terminal, set up the control coupling with the second terminal.Before coupling was set up, the second terminal was in service state, and the value of its serve port is identical with the port that communication is coupled at the first terminal side; First terminal is with client computer role access the second terminal, and its local port must be chosen communication and is coupled at distolateral serve port value.The process of setting up of control coupling is followed the SCTP standard, shakes hands by 4 times and finishes.
(4) the transmission control flow of first terminal time-out and opposite end
First terminal suspends the real-time session of all and opposite end.If the state synchronized failure, first terminal is removed the control coupling with the second terminal, the real-time session of recovery and opposite end, and get back to (2) listed communications status.
(5) first terminal and the second terminal are carried out state synchronized
In accordance with the SCTP code requirement, after any end of control coupling is delayed time by HEARTBEAT (heartbeat) detective path, by first terminal control, require the second terminal to carry out the synchronous of ULP state and SCTP Flow Control state.
(6) second terminal addresss are reshuffled
First terminal is abideed by the DAR standard of SCTP, transmits ASCONF controll block by the control coupling to the second terminal.ASCONF controll block comprises 2 control requests at least, and one requires to add reached at the network address of opposite end, and its two requirement is made as first address with this address.If DAR controls unsuccessfully, first terminal is removed the control coupling with the second terminal, the real-time session of recovery and opposite end, and get back to (2) listed stage of communication.
(7) reshuffle the address, opposite end
First terminal is abideed by the DAR standard of SCTP, transmits ASCONF controll block to the opposite end by the communication coupling.ASCONF controll block comprises 2 control requests at least, and one requires to add reached at the network address of the second terminal, and it two will be made as first address with this address.If DAR controls unsuccessfully, first terminal is removed the control coupling with the second terminal, the real-time session of recovery and opposite end, and get back to (2) listed stage of communication.
Real-time session is carried out in (8) second terminals and opposite end
Either party of the second terminal and opposite end after the time-delay of HEARTBEAT (heartbeat) detective path, continues the transmission of real-time multimedia message, and carries out flow control and error control by code requirement.
It is pointed out that the Synchronization Control in above-mentioned (5) step of control flow, synchronizing content not only comprises the state of ULP, also comprises the state relevant with SCTP stream.Wherein flow relevant state parameter with SCTP, comprise at least transmission sequence number (TSN), the number of failing to be sold at auction (SID), the stream sequence number (SSN) of 2 directions.The Synchronization Control of SCTP stream, its specific implementation can be finished by service primitive by ULP, also can adopt SCTP stream to reshuffle agreement and finish in transport layer.
SCTP coupling described above migration control flow, except state synchronized, the operation of other step all can be used the Stream Control Transmission Protocol software module of the existing DAR of support, such as the lksctp that increases income etc.
For control procedure and the effect that shows multiple terminals SCTP coupling migration directly perceived, the existing communication system that consists of take 3 SCTP nodes is as example, and take the NS2 network simulator of increasing income as the basis, the checking implementation method.Detailed process is as described below.
(1) simulator brief description
Open source software bag NS2 is the universal network simulator that adopts the object-oriented method design, is widely used in design and the checking of communication network protocol and algorithm.After version 2 .19, NS2 is integrated Stream Control Transmission Protocol copying has been used to the new function of SCTP and the performance studies such as concurrent multi-path transmission (CMT, Concurrent Multiple Transmission) of DAR.
(2) simulator expansion
In existing NS2 (before the version 2 .33) software, a SCTP simulation node is combined into by 1 host node and the interface node more than 1, the interface IP address that adds the SCTP coupling can only be finished by pre-configured, and the foundation of coupling relies on the data transmission requirement of upper layer application.In addition, existing SCTP emulation module does not have the Flow Control state parameter to reshuffle interface.Before the emulation experiment, the SCTP copying of NS2 that needed Revision and supplement mainly comprises following 4 points.
Newly-increased time-out control function for the data block Flow Control;
Revise original acceptance and process function, under halted state, do not respond to the opposite end;
The initialization function of newly-increased interface IP address is to support the DAR function;
The newly-increased function that reads and reshuffle for the Flow Control state parameter.
(3) network topology of 3 SCTP nodes of configuration
Each SCTP node is comprised of 2 NS2 universal nodes, respectively comprises 1 host node and 1 interface node, and 3 interface nodes two or two are interconnected, and its topological structure as shown in Figure 4.Wherein, first terminal A disposes 2 Stream Control Transmission Protocol emulation modules, sets up the SCTP coupling with opposite end Z and the second terminal B respectively.
For the available bandwidth of observing coupling migration front and back changes, the link of first terminal A and opposite end Z, its bandwidth is set to 10Mbps, and time-delay is set to 2ms; The link of the second terminal B and opposite end Z, its bandwidth is set to 2Mbps, and time-delay is set to 20ms; The link of first terminal A and the second terminal B, its bandwidth and time-delay can not moved critical impact to coupling, and its value is set to respectively 2Mbps and 20ms.Article 3, the link setting is bi-directional symmetrical, and the output buffer setting of corresponding physical port is 50 groupings.
(4) DAR configuration
First terminal A is connected with the FTP that opposite end Z sets up based on SCTP in advance, makes up the communication coupling, and uninterruptedly sends packet by Z.Before DAR starts, be connected with the FTP that the second terminal B sets up based on SCTP by first terminal A, and send a grouping by A, drive the SCTP emulation module and set up the control coupling.
DAR is when starting, and first terminal A suspends the Flow Control of communication coupling, by the simulation configurations order, in the address of the second terminal B one side adding opposite end Z that controls coupling, adds the address of B in Z one side of communication coupling.Simultaneously, obtain the Flow Control state parameter value of A, be used for the Flow Control state parameter of reprovision B, the SCTP first address of reset subsequently B and Z points to respectively Z and B.
(5) record all simulated events
In the emulation experiment configurator, open the event tracking function, be recorded in the external file, be used for the interpretation of result after emulation experiment finishes.
(6) SCTP simulated events subsequent processes
From event track record file, filter respectively all that obtain sending from opposite end Z, that first terminal A receives, that the second terminal B receives SCTP groupings, extract SSN and corresponding simulation time.
(7) other simulation parameters arrange
The PMTU of SCTP coupling (MTU, maximum transmission unit) all is set to 1500 bytes, the default value of flow control and error control parameters selection NS2.Set up when communication is coupled at 0.5s, set up when control is coupled at 3.0s, carry out when DAR operates in 5.0s, emulation experiment finishes when 10.0s.
(8) the simulation experiment result
Accompanying drawing 5 to accompanying drawing 7 has provided the SSN of SCTP grouping and the variation relation of simulation time.
As can be seen from Figure 5, first terminal A receives the stream of packets from opposite end Z operate time between (at 5.0s time) to DAR after the communication coupling is set up in continuously; After the DAR operation, within the short time, still receive a plurality of groupings from Z.
As can be seen from Figure 6, when 5.0s, the second terminal B receives the grouping from opposite end Z within the short time after the DAR operation is finished, but the SSN value of these groupings exceeds the SSN that waits for reception.Through behind about 100ms, B continues to receive from Z and has the stream of packets of correct SSN.
As can be seen from Figure 7, opposite end Z after the communication coupling is set up (0.5s) to the DAR operation (5.0s), to send out SSN and the time of dividing into groups in linear relation, the link bandwidth of slope and 10Mbps is complementary.In short time after the DAR operation (duration is less than 100ms), it is unstable that Z sends SSN and the time relationship of grouping.Afterwards, rollback appears in the grouping SSN that Z sends, and after about 500ms, SSN and the time of the grouping of sending out present stable linear relation again, and slope diminishes, but is complementary with the link bandwidth of 2Mbps.5.0s before with 5.5s after, the change curve of SSN and time, the change of slope fits like a glove with topological arrangement.
More than move by the SCTP coupling of simulating, verifying, the continuity of ULP data message can better be guaranteed, because of the grouping SSN out-of-sequence unstable duration that causes less than 100ms, the duration that the throughput performance that causes because of migration descends, the available bandwidth of link can obtain stable taking less than 500ms.
The SCTP coupling moving method that the present invention proposes can satisfy the performance requirement of Real-time multimedia.