Flow migration method and device
Technical field
The present invention relates to the communications field, in particular to a kind of flow migration method and device.
Background technology
Transmission control protocol/Internet Protocol (Transmission Control Protocol/Internet
Protocol, referred to as TCP/IP), do not consider that the situation of topology location change, i.e. TCP/ can occur for terminal in initial designs
IP agreement does not support mobility in itself.In traditional TCP/IP network environments, IP is that internet (Internet) provides road
By function, it is all assigned with logical address, i.e. IP address to all nodes (including main frame and router), and every main frame is each
An IP address is all distributed in individual port.IP address includes network prefix and host machine part, the All hosts on same link
IP address generally has identical network prefix and different host machine parts.This allows IP according to the IP address of destination node
Network-prefix portion is routed, so that router order preserves simple prefix router, without
An individually route is preserved for every main frame.In this case, as a result of prefix router, thus when node from
One link switching to another link without changing its IP address when, the node then can not possibly receive number on new link
According to message, so as to also can not just be communicated with other nodes.
As user steeply rises to the demand of mobility and information, increasing people wishes high during movement
Internet is accessed fastly, obtains the information of urgent need, completes to want the thing done.Therefore, mobile Internet turns into Future Internet
Developing direction, but conventional TCP/IP agreement does not support ambulant defect so that the mobile management to mobile node turns into
The a great problem that mobile Internet faces.
In order to solve the problems, such as mobile management, the popular mobile management technology of industry, such as mobile IP (Mobile
IP, referred to as MIP), proxy-mobile IP (Proxy MIP, referred to as PMIP) etc., by introducing fixed anchor point (Anchor)
Mode supports the mobility of terminal.For example, MIP agreements using home agent (Home Agent, referred to as HA) as anchor point,
PMIP agreements are used as anchor point using local mobility anchor (Local Mobility Anchor, referred to as LMA).
Fig. 1 is according to the configuration diagram of the PMIP systems of correlation technique, including mobile node (Mobile Node, abbreviation
For MN), Correspondent Node (Correspondent Node are referred to as CN), Mobile Access Gateway (Mobile Access
Gateway, referred to as MAG) and local mobile anchor (Local Mobility Anchor, referred to as LMA).Wherein CN can
To be stationary nodes or mobile node, i.e., with corresponding MAG and LMA.MAG is MN the first hop router, and it is led
Act on and distribute Care-of Address (Care of Address, referred to as CoA) for it when being included in MN accesses and replace MN to perform
PMIP bindings (PMIP Binding) between MN anchor point LMA.Anchor points of the LMA as MN, it is MN that its main function, which includes,
Distribute home address (Home of Address, referred to as HoA) and the above-mentioned PMIP bindings of processing.Performed between MAG and LMA
The main purposes of PMIP bindings be to allow both sides to know address, above-mentioned CoA and the HoA of other side, and save it in local.This
Outside, in the binding procedure for performing PMIP, a bidirectional tunnel is established between MAG and LMA also for MN.It is worth explanation
It is that the IP address that MN is finally got is the HoA that LMA is its distribution.In common network design, MAG is normally at topology
Relatively low position, such as positioned at the edge of Metropolitan Area Network (MAN);And LMA is then normally at the higher position of topology, for example save the core of dry net
Center portion point.Actually it is connected between MAG and LMA often through multiple router hopses.
Under the current PMIP network architectures, mobile node can be accessed simultaneously by plurality of access modes, and Fig. 2 is according to phase
The schematic diagram of a scenario of stream migration in the PMIP of pass technology, as shown in Fig. 2 mobile node MN is respectively by 3GPP and WLAN from two
MAG is connected to above same LMA.Under above scene, Business Stream allows to be migrated between two kinds of access ways, and mesh
Preceding defined stream migration is initiated by end side, the actual covering of the mobility and network having in itself due to mobile terminal
The characteristics such as scope, cause LMA can not perception terminal current connection state, and then can not correctly select access network to initiate to flow
Transition process.
The content of the invention
For stream migration in correlation technique initiated by end side, so as to cause LMA can not perception terminal connection shape
The problem of state and propose the present invention, therefore, the invention provides a kind of flow migration method and device, at least to solve above-mentioned ask
Topic.
According to an aspect of the invention, there is provided a kind of flow migration method, including:LMA obtains terminal a variety of respectively
Status information in access network;According to status information and carrier policy set in advance, selected in a variety of access networks a kind of
Access network;Initiate stream migration.
Preferably, LMA obtains status information of the terminal in a variety of access networks and included respectively:LMA is connect by a variety of respectively
MAG in networking obtains status information.
Preferably, before LMA obtains status information by the MAG in a variety of access networks respectively, in addition to:MAG according to
Cycle set in advance perceives status information;MAG is according to the cycle to LMA uploaded state information.
Preferably, LMA obtains status information by the MAG in a variety of access networks respectively and included:LMA initiates to MAG respectively
Stream migration is inquired about, and wherein stream migration inquires about the status information for perceiving and being reported to for indicating MAG.
Preferably, before LMA obtains status information by the MAG in a variety of access networks respectively, in addition to:MAG according to
Cycle set in advance perceives status information;LMA obtains status information by the MAG in a variety of access networks respectively to be included:LMA points
Stream migration inquiry is not initiated to MAG, wherein stream migration is inquired about for indicating MAG uploaded state information.
Preferably, before LMA obtains status information by the MAG in a variety of access networks respectively, in addition to:MAG judges
Whether the status information perceived changes;If status information changes, the behaviour to LMA uploaded state information is performed
Make.
Preferably, if status information does not change, status information is not sent to LMA.
Preferably, after stream migration is initiated to the access network of selection, in addition to:Determining the access network of selection can not complete
Stream migration;Stream migration request is sent to the access network of next priority set in advance.
According to another aspect of the present invention, there is provided a kind of stream migration device, including:Acquisition module, for obtaining respectively
Status information of the terminal in a variety of access networks;Selecting module, for according to status information and carrier policy set in advance,
A kind of access network is selected in a variety of access networks;Initiation module, for initiating stream migration.
Preferably, acquisition module includes:Acquisition submodule, for passing through the Mobile Access Gateway in a variety of access networks respectively
MAG obtains status information.
The present invention sends the connection state information of terminal from MAG to LMA, ensure that LMA can correctly select access network
Network initiates stream migration
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the configuration diagram according to the PMIP systems of correlation technique;
Fig. 2 is the schematic diagram of a scenario of stream migration in the PMIP according to correlation technique;
Fig. 3 is the flow chart of flow migration method according to embodiments of the present invention;
Fig. 4 is the interaction diagrams according to the flow migration method of the preferred embodiment of the present invention one;
Fig. 5 is the interaction diagrams according to the flow migration method of the preferred embodiment of the present invention two;
Fig. 6 is the interaction diagrams according to the flow migration method of the preferred embodiment of the present invention three;
Fig. 7 is the interaction diagrams according to the flow migration method of the preferred embodiment of the present invention four;
Fig. 8 is the interaction diagrams according to the flow migration method of the preferred embodiment of the present invention five;
Fig. 9 is the structured flowchart of stream migration device according to embodiments of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
The invention provides a kind of flow migration method, Fig. 3 is the flow chart of flow migration method according to embodiments of the present invention,
As shown in figure 3, including steps S302 to step S306.
Step S302, local mobility anchor LMA obtain status information of the terminal in a variety of access networks respectively.
Step S304, according to status information and carrier policy set in advance, one kind is selected to connect in a variety of access networks
Network.
Step S306, initiate stream migration.
In correlation technique, stream migration is initiated by end side, and LMA can not perception terminal connection status, Jin Erwu
Method correctly selects access network to initiate stream migration process.In the embodiment of the present invention, the connection shape of terminal is sent from MAG to LMA
State information, it ensure that LMA can correctly select to access network to initiate stream migration.
Wherein, LMA obtains state letter of the terminal in a variety of access networks by the MAG in a variety of access networks in step S302
Breath.The whole process that status information is obtained by MAG is that periodically execution or event triggers so that the terminal shape stored on LMA
State and access network type mapping keep newest.It is illustrated separately below.
(1) MAG perceived according to the cycle set in advance, reporting terminal state, step is as follows:
MAG perceives status information according to the cycle set in advance;MAG is according to the cycle to LMA uploaded state information.
(2) MAG perception terminal states are triggered by stream migration inquiry, step is as follows:
LMA initiates stream migration inquiry to MAG respectively, and wherein stream migration inquires about the shape for perceiving and being reported to for indicating MAG
State information;MAG perceives status information;MAG is to LMA uploaded state information.
(3) MAG according to cycle perception terminal state set in advance, inquire about to trigger MAG uploaded state information by stream migration,
Step is as follows:
MAG perceives status information according to the cycle set in advance;LMA initiates stream migration inquiry to MAG respectively, and wherein stream moves
Inquiry is moved to be used to indicate MAG uploaded state information;MAG is to LMA uploaded state information.
Before MAG uploaded state information, if first judging whether the SOT state of termination changes, to decide whether to send out
Send status information to be updated to LMA, can thus avoid repeating, improve efficiency.So the present invention distinguishes in LMA
Before obtaining status information by the MAG in a variety of access networks, following operate also is carried out:MAG judges the status information perceived
Whether change, if status information changes, perform the operation to LMA uploaded state information;If status information
Do not change, then do not send status information to LMA.
In addition, if the access network of selection can not complete stream migration, then stream migration fails.So the present invention is to access network
Carry out priority arrangement.If after initiating stream migration to the access network of selection, the terminal shape in selected access network is found
State can not complete stream migration process at present, then send stream migration request to the access network of next priority set in advance.So
Stream migration request failure can be avoided.
The implementation process of the embodiment of the present invention is described in detail below in conjunction with example.
The stream migration of all preferred embodiments of the present invention is carried out under the scene shown in Fig. 2, is distinguished with single access,
Access network type is on LMA and non-replaced under multiple access scene, but can a variety of access network types coexist.
Preferred embodiment one
Fig. 4 is according to the interaction diagrams of the flow migration method of the preferred embodiment of the present invention one, as shown in figure 4, including such as
Under step S402 to step S416.
The current state of step S402, MAG1 perception terminal.The method of specific MAG perception terminal states can use neighbour
The neighbours occupied in discovery mechanism are non-up to detection, or send PING bags etc. from MAG to terminal, according further to access network not
Together, it is also possible to using metering system defined in corresponding access network.
Step S404, MAG1 send agent binding update messages, and the carried terminal state and correspondingly in this message to LMA
Access network type.The SOT state of termination is probably connected state, off-state, the dormancy/state such as economize on electricity state or out of reach.Herein
Access network type is prior art, but needs to be bound and be stored on LMA with the SOT state of termination herein.
Step S406, LMA send agent binding response to MAG1.When MN is accessed using 3GPP, MAG can map
For mobility management entity (Mobility Management Entity, referred to as MME) and/or gateway (Serving
Gateway, referred to as S-GW), and LMA can be grouped data network gateway (PDN Gateway, referred to as P-GW), both
Between interacted, example using general data transfer platform (General Data Transfer Platform, referred to as GTP)
Such as bearing modification request/response, session establishment request/response.
The current state of step S408, MAG2 perception terminal.This step and step S402 initiation may be carried out simultaneously, no
Successively order.
Step S410, MAG2 send agent binding update messages, and the carried terminal state and correspondingly in this message to LMA
Access network type.
Step S412, LMA send agent binding response to MAG1.
Above step S402 to step S412 can be performed periodically, so that the SOT state of termination stored on LMA and connecing
Network types mapping keeps newest.
Step S414, when needing to migrate the stream on MN, LMA can inquire about the state of terminal and corresponding connect
Network types, finally determine which kind of access network type to carry out stream migration using according to carrier policy.
Step S416, LMA initiate stream migration process.
Preferred embodiment two
Fig. 5 is according to the interaction diagrams of the flow migration method of the preferred embodiment of the present invention two, as shown in figure 5, including such as
Under step S502 to step S520.
Step S502 to step S504, LMA initiate stream migration query/response to MAG1 and MAG2, work as triggering terminal
Preceding state reports.Wherein step S502 and step S504 may occur simultaneously, in no particular order order.
The current state of step S506, MAG1 perception terminal.
Step S508, MAG1 send agent binding update messages, and the carried terminal state and correspondingly in this message to LMA
Access network type.The SOT state of termination is probably connected state, off-state, the dormancy/state such as economize on electricity state or out of reach.Herein
Access network type is prior art, but needs to be bound and be stored on LMA with the SOT state of termination herein.
Step S510, LMA send agent binding response to MAG1.
The current state of step S512, MAG2 perception terminal, this step and step S506 initiation may be carried out simultaneously, no
Successively order.
Step S514, MAG2 send agent binding update messages, and the carried terminal state and correspondingly in this message to LMA
Access network type.
Step S516, LMA send agent binding response to MAG1.
The current state and corresponding access network type of step S518, LMA according to terminal, determine to make with reference to carrier policy
Which kind of access network type stream migration is carried out with.
Step S520, LMA initiate stream migration process.
Preferred embodiment three
Fig. 6 is according to the interaction diagrams of the flow migration method of the preferred embodiment of the present invention three, as shown in fig. 6, including such as
Under step S602 to step S620.
The current state of step S602, MAG1 perception terminal.
The current state of step S604, MAG2 perception terminal.This step and step S602 initiation may be carried out simultaneously, no
Successively order.
Above step S602 and step S604 can be performed periodically, so that the SOT state of termination stored on MAG is kept
It is newest.
Step S606 to step S608, LMA initiate stream migration query/response to MAG1 and MAG2, for triggering MAG to end
End current state and access network type binding relationship report.
Step S610, MAG1 send agent binding update messages, and the carried terminal state and correspondingly in this message to LMA
Access network type.
Step S612, LMA send agent binding response to MAG1.
Step S614, MAG2 send agent binding update messages, and the carried terminal state and correspondingly in this message to LMA
Access network type, the initiation of this step and S610 steps may carry out simultaneously, in no particular order order..
Step S616, LMA send agent binding response to MAG1.
Wherein step S606, S614, S616 and step S608, S610, S612 may occur simultaneously, in no particular order order
The current state and corresponding access network type of step S618, LMA according to terminal, determine to make with reference to carrier policy
Which kind of access network type stream migration is carried out with.
Step S620, LMA initiate stream migration process.
Preferred embodiment four
Fig. 7 is according to the interaction diagrams of the flow migration method of the preferred embodiment of the present invention four, as shown in fig. 7, comprises such as
Under step S702 to step S716.
The current state of step S702, MAG1 perception terminal.
Step S704, if MAG1 has found that the SOT state of termination changes, MAG1 to LMA by sending agent binding update
Message comes carried terminal state and access network type to be updated;Otherwise, MAG1 will not update present terminal state to LMA.
Step S706, LMA send agent binding response to MAG1.
The current state of step S708, MAG2 perception terminal, this step and step S702 periodically may be performed and do not had
There is sequencing, may occur simultaneously.
Step S710, if MAG2 has found that the SOT state of termination changes, MAG2 to LMA by sending agent binding update
Message comes carried terminal state and access network type to be updated;Otherwise, MAG2 will not update present terminal state to LMA.
Step S712, LMA send agent binding response to MAG2.
Step S714, LMA finally determine according to the present terminal state and access network type of storage with reference to carrier policy etc.
Plan carries out stream migration using which kind of access network type.
Step S716, LMA initiate stream migration process.
Preferred embodiment five
Fig. 8 is according to the interaction diagrams of the flow migration method of the preferred embodiment of the present invention five, as shown in figure 8, including such as
Under step S802 to step S814.
Step S802 to step S804, MAG1 and MAG2 perception terminals state are simultaneously stored in local, and this process may
It is periodic measurement or event triggering.
Step S806, LMA carry out stream migration according to reference to carrier policy decision-making using which kind of access network type.
Step S808, LMA send stream migration request to MAG1, but the SOT state of termination on MAG1 can not complete stream migration at present
Process, then MAG1 returns to stream migration response to LMA, and carries refusal instruction.
Step S810, LMA carry out stream migration according to carrier policy using the access network type of next priority.
Step S812, LMA send stream migration request to MAG2, and the SOT state of termination on MAG2 can complete stream migration at present
Process, then MAG2 returns to stream migration response to LMA, and carries receiving instruction.
Step S814, MAG2 complete stream migration process.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
The embodiments of the invention provide a kind of stream migration device, the stream migration device can be used for realizing above-mentioned stream migration side
Method.Fig. 9 is the structured flowchart of stream migration device according to embodiments of the present invention, as shown in figure 9, including acquisition module 92, selection
Module 94 and initiation module 96.Its structure is described in detail below.
Acquisition module 92, for obtaining status information of the terminal in a variety of access networks respectively;Selecting module 94, is connected to
Acquisition module 92, for the status information obtained according to acquisition module 92 and carrier policy set in advance, in a variety of accesses
A kind of access network is selected in net;Initiation module 96, selecting module 94 is connected to, for initiating stream migration.
Preferably, acquisition module 92 includes acquisition submodule, for passing through the Mobile Access Network in a variety of access networks respectively
Close MAG and obtain status information.
It should be noted that the stream migration device described in device embodiment corresponds to above-mentioned embodiment of the method, it has
The implementation process of body had carried out detailed description in embodiment of the method, will not be repeated here.
In summary, according to the abovementioned embodiments of the present invention, there is provided a kind of flow migration method and device.The present invention by
MAG sends the connection state information of terminal to LMA, ensure that LMA can correctly select to access network to initiate stream migration.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.