Summary of the invention
The embodiment of the invention provides a kind of method and system of business migration, has realized under the continual prerequisite of business, finishes professional in the migration between the master control borad or between the protocol stack or between the process.
The embodiment of the invention has proposed a kind of method of business migration, comprising:
Former business unit and former socket word cell notify another protocol stack to create new service unit and new socket unit, the positional information that former socket word cell of while is preserved new socket unit;
The data of former business unit are copied to new service unit, and the socket data with former socket word cell copy to new socket unit simultaneously;
Positional information according to new socket unit is moved to new service unit and new socket unit with business from former business unit and former socket word cell;
New service unit is obtained data from new socket unit, closes former business unit and former socket word cell.
Correspondingly, the embodiment of the invention also provides a kind of method of business migration, comprising:
Set up new service unit, and the data of former business unit are copied to new service unit;
Former socket word cell sends data to new service unit, finishes professional migration;
After new service unit is obtained the data of former socket word cell, notify former business unit to close.
Correspondingly, the embodiment of the invention also provides a kind of business migration system, and described system comprises: former business unit, former socket word cell and message Dispatching Unit;
Wherein, former business unit couples with former socket word cell, and it comprises:
The message acquisition module is used for obtaining data the message from former socket word cell;
The business unit creation module is used for the notification protocol stack and creates new service unit;
The data replication module is used for the data that described message acquisition module obtains are copied to the new service unit that described business unit creation module is set up;
Wherein, former socket word cell couples with former business unit and message Dispatching Unit, and it comprises:
The message receiver module is used for obtaining message from the message Dispatching Unit;
Socket unit creation module is used for the notification protocol stack and creates new socket unit, and the positional information of preserving new socket unit, and wherein, described new socket unit and described new service unit couple;
The data backup module is used for the socket data of former socket word cell are copied to new socket unit;
The business migration module is used for the positional information according to described new socket unit, and business is moved to new service unit and new socket unit from former business unit and former socket word cell;
Wherein, the message Dispatching Unit couples with former socket word cell and described new socket unit, is used for sending message according to positional information to former socket word cell or new socket unit.
In sum, the method and system of a kind of business migration that the embodiment of the invention provides, by creating new service unit or/and new socket unit, and the data of former business unit and former socket word cell are copied to new service unit and new socket unit, then business migration is finished professional smoothly moving to new service unit and new socket unit, guaranteed professional not interrupting, thereby guaranteed QoS (Quality of Service, service quality), satisfied user's request.
Embodiment
The method and system of a kind of business migration that the embodiment of the invention provides, by creating new business unit or new socket unit, and the data of former business unit and former socket word cell are copied to new service unit and new socket unit, then business migration is finished the smooth migration of business to new service unit and new socket unit.
At first elaborate the technical scheme of a kind of business migration system of the embodiment of the invention below in conjunction with Fig. 1, Fig. 2, Fig. 3 and Fig. 4.
With reference to figure 1, be the system architecture diagram of a kind of business migration of the embodiment of the invention.System comprises according to the described business migration of this figure: former business unit 1, former socket word cell 2 and message Dispatching Unit 3;
Wherein, as shown in Figure 2, former business unit 1 couples with former socket word cell 2, and it comprises:
Message acquisition module 11 is used for obtaining data subsidiary the message from former socket word cell 2;
Business unit creation module 12, be used for the notification protocol stack create new service unit 1 ', if described protocol stack is identical with former business unit place protocol stack, then the business of Shi Xianing is based on the migration between the different business process of same protocol stack process, if described protocol stack is different with former business unit place protocol stack, what then realize is the business migration of striding protocol stack or striding master control borad.
Data replication module 13, be used for the data that described message acquisition module 11 obtains copy to the new service unit 1 that described business unit creation module 12 set up '.
Wherein, as shown in Figure 3, former socket word cell 2 couples with former business unit 1 and message Dispatching Unit 3, is the socket example that former business unit 1 is created when setting up socket, and it comprises:
Message receiver module 21 is used for obtaining message from message Dispatching Unit 3;
Socket unit creation module 22, be used for the notification protocol stack create new socket unit 2 ', and preserve new socket unit 2 ' positional information, wherein, described new socket unit 2 ' with described new service unit 1 ' couple;
Data backup module 23, be used for socket data (comprising configuration data and control data) with former socket word cell 2 copy to new socket unit 2 ';
Business migration module 24, be used for according to described new socket unit 2 ' positional information, with business from former business unit 1 and former socket word cell 2 move to new service unit 1 ' and new socket unit 2 '.
Wherein, message Dispatching Unit 3 with former socket word cell 2 and described new socket unit 2 ' couple, is used for according to positional information being specially to former socket word cell 2 or new socket unit 2 ' transmission message:
Tlv triple during according to the socket Object Creation (comprises three parameter: purpose IP, source IP, protocol number) or five-tuple (comprise five parameter: purpose IP, source IP, protocol number, the destination slogan, source port number) message is distinguished, because the tlv triple of new socket unit or five-tuple and former socket word cell are in full accord, when former socket word cell notice message Dispatching Unit need flow switching, the message Dispatching Unit is the updating location information of new socket unit, and message sent to the protocol stack at place, new socket unit according to the positional information of new socket unit.
When specific implementation, as shown in Figure 4, the business migration module 24 of described former socket word cell 2 specifically can comprise:
Message is delimited control module 241, is used to notify former business unit 1 to report demarcation, and receives the synchronization call information that the demarcation of indication message is finished;
Packet forwarding module 243 is delimited control module 241 with message and is coupled, be used for message delimit finish after to message that new socket unit 2 ' the described message receiver module 21 of forwarding obtains from message Dispatching Unit 3;
Positional information sending module 242, delimiting control module 241 with message couples, be used for message delimit finish after, with new socket unit 2 ' positional information send to message Dispatching Unit 3, message Dispatching Unit 3 receive described new socket unit 2 ' positional information after, to stop to send messages to former socket word cell 2, and according to this positional information to new socket unit 2 ' transmission message.
Correspondingly, former business unit 1 may further include:
Message is delimited module 14, after being used to receive the message demarcation notice of former socket word cell 2, stop to continue to read after controlling described message acquisition module 11 reads a complete message from former socket word cell 2 data, and to former socket word cell 2 transmission synchronization call information, the notice message is delimited and is finished.
Having elaborated the technical scheme of the system of the embodiment of the invention above, is example with service operation based on the socket of TCP below, describes the technical scheme of method of a kind of business migration of the embodiment of the invention in detail in conjunction with Fig. 5, Fig. 6 and Fig. 7.
With reference to figure 5, be the flow chart of method of a kind of business migration of the embodiment of the invention; Described method comprises:
Step S1, the business unit creation module of former business unit and the cover of former socket word cell joint word cell creation module notify another protocol stack to create new service unit and new socket unit, the positional information that former socket word cell of while is preserved new socket unit;
Step S2, the data replication module of former business unit copies to new service unit with the data of former business unit, and simultaneously the courtyard data backup module that connects word cell copies to new socket unit with the socket data of former socket word cell;
Step S3, the business migration module of former socket word cell is moved to new service unit and new socket unit with business from former business unit and former socket word cell according to the positional information of new socket unit;
Step S4, new service unit is obtained data from new socket unit, closes former business unit and former socket word cell.
Wherein, as shown in Figure 6, the described step S3 of Fig. 5 specifically can comprise:
Step S31, the message of former socket word cell delimit control module and notify former business unit to carry out the message demarcation;
Step S32, after former business unit receives message demarcation notification message, after its message demarcation module controls message acquisition module reads a complete message from former socket word cell, no longer continue to read, a concurrent synchronization call information is to former socket word cell, and the notice message is delimited and finished;
Step S33, after the message demarcation control module of former socket word cell receives described synchronization call information, know that message is delimited and finish,, message flow is switched to new service unit and new socket unit from former business unit and former socket word cell according to the positional information of new socket unit.
When specific implementation, as shown in Figure 7, the described step S33 of Fig. 6 specifically comprises:
Step S331, after former socket word cell knows that the message demarcation is finished, stop to send datagram to former business unit, and utilizing packet forwarding module that subsequent packet is forwarded to new socket unit, former business unit utilizes the data replication module that all data real time backups that read are arrived new service unit simultaneously;
Step S332, the positional information sending module of former socket word cell sends to the message Dispatching Unit with the positional information of new socket unit;
Step S333, the message Dispatching Unit sends message according to the positional information of new socket unit to this socket unit;
Step S334, new socket unit sends one to former socket word cell and notifies message behind the message that receives from the message Dispatching Unit;
Step S335, former socket word cell are transmitted to new socket unit with all subsequent packets after receiving and notifying message, and stop to obtain the data of message Dispatching Unit;
Step S336, the message that former socket word cell is sent in new socket unit and merge into a formation from the message of message Dispatching Unit, and the notice new service unit is handled.
More than elaborated the method for a kind of business migration of the embodiment of the invention, solved professional problem of moving between the different agreement stack, the different agreement stack can be on same master control borad certainly, also can be respectively on different master control borads.If two protocol stacks are respectively on two different master control borads, then the embodiment of the invention has been finished professional migration between different master control borads.
Correspondingly, the method for a kind of business migration that the embodiment of the invention proposes can realize professional based on the migration between the different business process of same protocol stack process, and as shown in Figure 8, a kind of method of business migration comprises:
Step S81, the business unit creation module notice place protocol stack of former business unit is set up new service unit, and utilizes the data replication module that the data of former business unit are copied to new service unit;
Step S82, former socket word cell sends data to new service unit, finishes professional migration;
Step S83 after new service unit is obtained the data of former socket word cell, notifies former business unit to close.
Wherein, as shown in Figure 9, the described step S82 of Fig. 8 specifically comprises:
Step S821, the message of former socket word cell delimit control module and notify former business unit to carry out the message demarcation;
Step S822, after former business unit receives notification message, after utilizing its message to delimit module controls message acquisition module to read a complete message, no longer continue to read from former socket word cell, a concurrent synchronization call information is to former socket word cell, and the notice message is delimited and finished;
Step S823, after former socket word cell knows that the message demarcation is finished, stop to send data to former business unit, and utilize packet forwarding module that follow-up data is forwarded to new service unit, the data replication module of former business unit arrives new service unit with all data real time backups that read simultaneously.
What deserves to be explained is, the foregoing description is that example is narrated technical scheme of the present invention with service operation based on the socket of TCP, but be not limited to this, the present invention can realize equally based on User Datagram Protoco (UDP) (UserDatagram Protocol, UDP), initial IP agreement (Raw IP, RAWIP) etc. the business of the socket of agreement is between different agreement stack/master control borad or the migration between the different business process, in the specific implementation process, can delimit processing to UDP message, RAWIP message, also can not delimit processing.
The foregoing description has specifically been set forth a kind of method of business migration of the embodiment of the invention between different agreement stack/master control borad, and the technical scheme of between the different business process, moving, the embodiment of the invention can also realize business units software (the In Service Software Upgrade that uninterruptedly upgrades by business migration, ISSU), specifically can be by described new service unit is upgraded to redaction, then the business on the former business unit of legacy version is moved on the new service unit with redaction by the method for the business migration of embodiment of the invention proposition, in the time of migration data are carried out upgrading processing, after migration is finished, service operation is on the new service unit of redaction, close the former business unit of legacy version, finish edition upgrading.
In sum, the method and system of a kind of business migration that the embodiment of the invention provides, by creating new business unit or/and new socket unit, and the data of former business unit and former socket word cell are copied to new service unit and new socket unit, finish professional different agreement stack between or different master control borad between to new service unit and new socket unit business migration then, and the smooth migration between the different business process, guaranteed professional not interrupting, thereby guaranteed QoS, satisfy user's request, can also utilize the uninterrupted upgrading of the technical scheme realization business unit of the embodiment of the invention simultaneously.
Above disclosed is a kind of preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.