CN109218105A - Update method, system, server and the storage medium of network node - Google Patents

Update method, system, server and the storage medium of network node Download PDF

Info

Publication number
CN109218105A
CN109218105A CN201811167340.8A CN201811167340A CN109218105A CN 109218105 A CN109218105 A CN 109218105A CN 201811167340 A CN201811167340 A CN 201811167340A CN 109218105 A CN109218105 A CN 109218105A
Authority
CN
China
Prior art keywords
network
update
network node
state
transactional
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.)
Pending
Application number
CN201811167340.8A
Other languages
Chinese (zh)
Inventor
吴文斐
付祈安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Original Assignee
Tsinghua University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tsinghua University filed Critical Tsinghua University
Priority to CN201811167340.8A priority Critical patent/CN109218105A/en
Publication of CN109218105A publication Critical patent/CN109218105A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides update method, system, server and the storage medium of a kind of network node.The update method is used to update the network state information for the network node that network controller is managed, and during executing a transactional and updating at least one of operation update stages operating, backs up the corresponding more new state for updating stages operating;It checks the more new state backed up, and the transactional is executed based on inspection result and updates operation, to update corresponding network node.The application effectively solves the problems, such as that the network node data generated by updating network state processing is abnormal, it is ensured that the update of network node has ACID attribute.

Description

Update method, system, server and the storage medium of network node
Technical field
This application involves the technical field of software network node, more particularly to a kind of network node update method, be System, server and storage medium.
Background technique
SDN (Software Defined Network, software defined network) is a kind of implementation of network virtualization, It, to realize the flexible control of network flow, makees network by separating network node control plane with data surface Become more intelligent for pipeline.Easily there is update abnormal when updating the network function of network node in this mode.For example, When updating the network function of multiple network nodes of chain road, it is inconsistent to there are multiple network nodes updates, and then lead to link On network node the problems such as transmitting.For another example, when updating the network function of network node, data surface business is accidentally updated Network state, so as to cause packet loss, wrong the problems such as passing.
Therefore, it when being updated the network function in network node, needs to keep each network node in chain road more The normal data face business of network node is not influenced newly.
Summary of the invention
In view of the foregoing deficiencies of prior art, the update side for being designed to provide a kind of network node of the application Method, system, server and storage medium, the normal number for solving to influence network node when network node update in the prior art The problem of according to face business.
In order to achieve the above objects and other related objects, the first aspect of the application provides a kind of update side of network node Method, the network node managed for updating network controller, comprising: update at least one in operating executing a transactional During a update stages operating, the corresponding more new state for updating stages operating is backed up;It checks the more new state backed up, and is based on Inspection result executes the transactional and updates operation, to update corresponding network node.
In the certain embodiments of the first aspect, the step of the corresponding more new state for updating stages operating of backup Suddenly include: the more new state that will be backed up is recorded in the form of any in log or variable.
In the certain embodiments of the first aspect, the transactional updates the corresponding network to be updated of operation The quantity of node be it is multiple, asynchronously execute and update each network node according to the second network state information.
In the certain embodiments of the first aspect, the transactional updates the corresponding network to be updated of operation The quantity of node be it is multiple, it is described that execute the step of transactional updates operation based on inspection result include: based on the inspection Come to an end segmentation update sequence indicated by fruit, the first network status information that verification corresponding network node is backed up;And it is based on The matching result of each segmentation reproducting periods, each second network state information is updated to corresponding network node by piecewise.
In the certain embodiments of the first aspect, the update method further include: back up network section to be updated The first network status information of point;It is described to check the more new state backed up, and the transactional is executed more based on inspection result The step of new operation is to update corresponding network node includes: by the first network status information and current network state information It is matched, and obtains matching result;And it is based on the inspection result and matching result, more according to the second network state information The network state of new corresponding network node, so as to the network node according to second network state information to network data It is handled.
In the certain embodiments of the first aspect, the update method further include: to network node to be updated Back up corresponding second network state information.
It is described to believe based on inspection result and to the first network state in the certain embodiments of the first aspect The matching result of breath, if the step of updating the network state of corresponding network node according to the second network state information includes: institute Obtained matching result meets update condition and updates state and meets into presentation stage, then according to the second network state information Update the network state of corresponding network node.
In the certain embodiments of the first aspect, in any segmentation reproducting periods, it is described based on inspection result and To the matching result of the first network status information, the network of corresponding network node is updated according to the second network state information If the step of state includes: that obtained matching result is unsatisfactory for update condition, the transactional is updated involved in operation The network state of all-network node restores the network state to update.
It is described that the transactional update operation is executed based on inspection result in the certain embodiments of the first aspect The step of include: to execute following any: cancelling when determining that the transactional updates operation failure according to the inspection result The transactional updates operation;Repeat it is described backup, matching and update step, until be updated successfully or number of repetition meet Preset cut-off condition.
The application second aspect provides a kind of network controller, and the network state for updating managed network node is believed Breath, comprising: data transmission module is communicated at least one network node data managed;Control module is updated, for holding During transactional of row updates at least one of operation update stages operating, the corresponding update shape for updating stages operating is backed up State;And check the more new state backed up, and the transactional is executed based on inspection result and updates operation, it is corresponding to update Network node.
In the certain embodiments of the second aspect, the more new state for updating control module and being used to be backed up It is recorded in the form of any in log or variable.
In the certain embodiments of the second aspect, the transactional updates the corresponding network to be updated of operation The quantity of node be it is multiple, the updates control module is for asynchronously executing according to each network of the second network state information update Node.
In the certain embodiments of the second aspect, the transactional updates the corresponding network to be updated of operation The quantity of node be it is multiple, the updates control module is for based on segmentation update sequence, school indicated by the inspection result Test the first network status information that corresponding network node is backed up;And for the matching knot based on each segmentation reproducting periods Each second network state information is updated to corresponding network node by fruit, piecewise.
In the certain embodiments of the second aspect, the update control module is also used to back up network to be updated The first network status information of node;The update control module is used for the first network status information and current network shape State information is matched, and obtains matching result;Based on the inspection result and matching result, according to the second network state information Update the network state of corresponding network node, so as to the network node according to second network state information to network number According to being handled.
In the certain embodiments of the second aspect, the update control module is also used to network section to be updated Point backs up corresponding second network state information.
In the certain embodiments of the second aspect, if the update control module is used for obtained matching result Meet update condition and update state and meet into presentation stage, then updates corresponding network according to the second network state information The network state of node.
In the certain embodiments of the second aspect, in any segmentation reproducting periods, the update control module is used If being unsatisfactory for update condition in obtained matching result, the transactional is updated to all-network node involved in operating Network state restores the network state to update.
In the certain embodiments of the second aspect, the update control module is used for when according to the inspection result When determining that the transactional updates operation failure, executes following any: cancelling the transactional and update operation;Repeat institute It states backup, matching and updates step, until being updated successfully or number of repetition meets preset cut-off condition.
The application third aspect provides a kind of network comtrol server, comprising: storage unit updates application for storing; Processing unit, for executing the update application, to execute the update method as described in any in first aspect.
The application fourth aspect provides a kind of computer readable storage medium, is stored with more new application;The update Application program realizes the update method of the network node as described in first aspect is any when being called and executing.
As described above, the update method of the network node of the application, system, server and storage medium, have with following Beneficial effect: by the network state information before backup network node updates, the net generated by updating network state is effectively solved The abnormal problem of network node data processing, it is ensured that the update of network node has ACID attribute.
Detailed description of the invention
Fig. 1 is shown as the configuration diagram of the application development system.
Fig. 2 is shown as constituting each network section on each network node of link Path1 and updated link Path2 before updating The network diagram of point.
Fig. 3 is shown as a kind of editing interface provided by the application development system.
Fig. 4 is shown as a kind of update method flow chart of network node provided by the present application.
Fig. 5 is shown as the flow chart of the application update method in yet another embodiment.
Fig. 6 is shown as the flow chart of step S220 in one embodiment in the application update method.
Fig. 7 is shown as a kind of structural schematic diagram of the application network comtrol server.
Fig. 8 is shown as a kind of configuration diagram of network controller of the application.
Specific embodiment
Presently filed embodiment is illustrated by particular specific embodiment below, those skilled in the art can be by this explanation Content disclosed by book understands other advantages and effect of the application easily.
Although term first, second etc. are used to describe various elements herein in some instances, these elements It should not be limited by these terms.These terms are only used to distinguish an element with another element.For example, first is pre- If threshold value can be referred to as the second preset threshold, and similarly, the second preset threshold can be referred to as the first preset threshold, and The range of various described embodiments is not departed from.First network status information and the second network state information are in description one A network state information, but unless context otherwise explicitly points out, otherwise they are not the same network state letters Breath.
Furthermore as used in herein, singular " one ", "one" and "the" are intended to also include plural number shape Formula, unless there is opposite instruction in context.It will be further understood that term "comprising", " comprising " show that there are the spies Sign, step, operation, element, component, project, type, and/or group, but it is not excluded for one or more other features, step, behaviour Presence, appearance or the addition of work, element, component, project, type, and/or group.Term "or" used herein and "and/or" quilt It is construed to inclusive, or means any one or any combination.Therefore, " A, B or C " or " A, B and/or C " mean " with Descend any one: A;B;C;A and B;A and C;B and C;A, B and C ".Only when element, function, step or the combination of operation are in certain sides When inherently mutually exclusive under formula, it just will appear the exception of this definition.
Different from the system update of user terminal, single-point server-side, the function renewal of network node is usually directed to following four A aspect: 1) with regard to the function renewal of single network node for, atomicity is needed to have, i.e. network node is executing update operation When, perhaps it is updated successfully or updates failure;2) all-network node in chain road need to have consistency, i.e., in primary update, The network function of all-network node keeps logic consistent in the updated;3) it in multiple network nodes on updating chain road, need to examine The update sequence for considering network node avoids updating the normal operation that operation hinders network node;4) multiple network sections of chain road Point must have persistence in the updated, i.e., be that can enduringly save within network nodes after all-network node updates, i.e., Just it will not be removed or rollback after system exception recovery.
Since the update of network node has the characteristics that pull one hair and move the whole body, in the exploitation of more new algorithm, technology people Member need to be designed for upgrading demand for network node.Due to each network node for being arranged based on SDN framework and corresponding Network controller there is the data surface business and control plane business that separate, technical staff is using control plane business to network The control opportunity design update algorithm of node.Easily there is network node rushing in control plane business and data surface business in this mode It is prominent, so as to cause failure is updated.
Here, the network node can be the dedicated network equipment, such as interchanger, router.The network node It is also possible to virtualize the network terminal, such as based on NFV, (Network Functions Virtualization, network function are empty Quasi-ization) the network terminal.The network terminal can be configured in the server, based on cloud framework service system it is medium.The net Network controller includes but is not limited to dedicated server, software control layer based on the setting of SDN framework etc..
For this purpose, the application provides a kind of development system of network function, it is intended to help technical staff's developing network node More new algorithm and developing network function etc., to ensure all nets that obtained more new algorithm guarantees to be updated when executed The network state of network node have atomicity (Atomicity), consistency (Consistency), isolation (Isolation), Persistence (Durability), abbreviation ACID characteristic.
The development system is configured in computer equipment used in technical staff, wherein the computer equipment It can be PC, server etc..Referring to Fig. 1, its configuration diagram for being shown as the development system.The exploitation system System includes memory module 11, editor module 12 and preserving module 13, and each program module passes through to the storage list in computer equipment The control of the hardware cells such as member, processing unit executes corresponding program function.
Wherein, the memory module 11, which stores, updates program assembly and network node to be updated;Wherein, the update journey Sequence component includes that a transactional is updated the update journey that a variety of more new states obtained by division of operations are updated stages operating Sequence;Wherein, the update program assembly includes at least one more new procedures, for checking the more new state backed up, and is based on Inspection result executes corresponding update stages operating.
It is expressed as realizing that a network function updates purpose and completely updates one here, the transactional updates operation Or the process of multiple network nodes.The transactional update operation is including but not limited to migrated based on thread path, path initializes, The update operation etc. that path is backed up, the stream of single network node is regular and is arranged.For example, it is to update that a transactional, which updates operation, The network state of one each network node in chain road.
To guarantee that a transactional updates the ACID attribute of operation, the update program assembly conduct that the development system provides A member in the development system in pre-set programs library (lib) provides one group of more new procedures.Wherein, each more new procedures one Aspect is used to execute the correspondence more new stage that transactional updates operation, on the other hand also backs up the update shape of corresponding more new stage State.Here, a transactional updates the more new stage that operation can be divided into following multiple combinations: opening according to actually upgrading demand Begin more new stage, backup read phase, backup write phase, isolation stage, verification and submission more new stage, end more new stage etc.. The corresponding more new state of each stage.Technical staff needs according to practical update, when developing transactional more new application, More new procedures in the update program assembly are introduced into, so that designed more new application exists according to standardized more new technological process It is performed in network controller, to realize the transactional for having ACID attribute to the network node of network controller and its control Update operation.Here, each more new procedures can execute it is corresponding update when stages operating starts or at the end of backup is corresponding updates State.
The inspection of state is updated for the ease of network controller, the update program assembly is also used to the update State is recorded in the form of any in log or variable.For example, more new state is described using variable, using change institute The mode for stating variable records current more new state.For another example, it is recorded in the way of log of the record comprising more new state newest More new state.Therewith with backup, information relevant to transactional update operation can also be included.Wherein, described and affairs Property update and operate relevant information and include but is not limited to: network node to be updated, transactional update version information of operation etc..
In some instances, the more new state backed up corresponds to transactional and updates the more new stage involved in operation.Example Such as, in each stage for updating operation tx for transactional, the update shape that program assembly can correspond to each more new stage and be arranged is updated State is as shown in table 1-1:
Table 1-1
The more new stage More new state
Start the more new stage <tx,START>
Backup read phase <tx,READ,Match,"ACTION"/"STAT">
Backup write phase <tx,WRITE,Match,Action>
Checking stage <tx,VALIDATION,VOLATILE>
Submit the more new stage <tx,WRITE>
Terminate the more new stage <tx,INACTIVE>
Isolation stage <tx,BARRIER>
Wherein, in the more new state of backup read phase,<tx, READ, Match, " ACTION "/" STAT ">in Match " (READ) which stream is read ", it is persistence that " ACTION "/" STAT ", which is used to distinguish the stream read, for matching stream State (e.g., in the domain action of the practical flow table of interchanger) or volatile are (e.g., in the STAT of the practical flow table of interchanger In domain).
In the more new state of backup write phase,<tx, WRITE, Match, (WRITE) is write in Action>expression, and some is flowed The description write as in Action to the behavior of the stream (is such as abandoned, is forwarded) by (such as meeting the matching rule in Match).
Using above-mentioned more new state, network controller can be under each more new state, it is ensured that completes all nets to be updated Network node is corresponding to update stages operating, and thus, it is possible to effectively ensure the atomicity attribute during transactional updates operation.
In other example, the more new state backed up corresponds to transactional and updates network node involved in operation The more new stage.For example, updating program groups in each more new stage for updating network node ID involved in operation tx for transactional Part can correspond to each more new stage and the more new state that is arranged is as shown in table 1-2:
Table 1-2
Wherein, in the more new state of the backup read phase of network node ID, < tx_ID, READ, Match, " ACTION "/" STAT " > in Match be used for area for matching stream, i.e. " read (READ) which stream ", " ACTION "/" STAT " The stream not read is that persistence state (e.g., in the domain action of the practical flow table of interchanger) or volatile (e.g., are being handed over In the domain STAT for practical flow table of changing planes).
In the more new state of the backup write phase of network node ID,<tx_ID, WRITE, Match, Action>expression write (WRITE) some stream (such as meeting the matching rule in Match), will be write as the description in Action (such as to the behavior of the stream Abandon, forward etc.).
Using above-mentioned more new state, network controller can be under the more new state of each network node, it is ensured that completes to more New all-network node is corresponding to update stages operating, thus also can effectively ensure the atomicity category during transactional updates operation Property.
The described first more new procedures are included at least in the update program assembly, it moreover, can also be comprising second more New procedures, third more new procedures, the 4th more new procedures etc..
Described first more new procedures execute corresponding network section for checking the more new state backed up, and based on inspection result The submission of point updates stages operating.Here, the described first more new procedures are used in checking stage, submit the more new stage and terminate more New stage executes.Specifically, the described first more new procedures are transferred to checking stage when executed and operate and back up corresponding update State (such as<tx_ID, VALIDATION, VOLATILE>), when the inspection result expression of newest more new state can be submitted more When new, it is transferred to submission and updates operation and back up corresponding more new state (such as<tx_ID, WRITE>), submit the more new stage executing After operation, be transferred to end and update stages operating and back up corresponding more new state (such as<tx_ID, INACTIVE>).
Described second more new procedures are used to back up the network-like of network node to be updated during the more new state that backup is read State information.Wherein, the network that the modes such as snapshot or text duplication back up corresponding network node can be used in the described second more new procedures Status information, wherein the network state information includes but is not limited to: persistence status information and volatibility in network node Status information.The persistence status information refers to can be by the network state information of control plane business modification, and illustrating includes stream Routing rule information, load processing Rule Information, stream filter rule information etc..The volatile information refers to can be by data The network state information of face business modification is illustrated including traffic statistics etc..Here, for convenient for subsequent schedule description, institute It states the network state information backed up when the first more new procedures execute and is referred to as first network status information.
Accordingly, the described first more new procedures are also used to verify the first network status information backed up in advance, and are based on The submission that obtained check results and inspection result execute corresponding network node updates stages operating.Here, described first more New procedures are arranged based on technical staff according to network node update needs also during the more new state of checking stage operation Update condition matches current network state information with the first network status information backed up, and returns to matching knot Fruit.
The time difference of data transmission between network controller and network node in order to prevent causes verifying and updating rank Occurs the change of network state during section operation, the third more new procedures are used to back up ground for updated network state information Corresponding network node is written.Technical staff can choose the third more new procedures and carry out transaction optimizing update operation.
It is updated in operation in some transactionals based on link, needs sequentially to execute between each network node of chain road Renewal process.Further include the 4th more new procedures in the more New Parent, is used to provide isolated operation and correspondence for segmentation update The more new state of isolation stage operation.Referring to Fig. 2, its be shown as constitute update before each network node of link Path1 and to The network diagram of each network node on updated link Path2, wherein link Path1 is from equipment src where source address Start via equipment dst where network node A, B, C, D to destination address, link Path2 to be to open from equipment src where source address Begin via equipment dst where network node A, E, D to destination address.By taking Fig. 2 as an example, in the multiple network nodes of batch processing When state updates, technical staff introduces the first more new procedures and the 4th more new procedures, thus constructs network node A, E and D It is segmented update sequence, the more new state that the described first more new procedures are marked according to the 4th more new procedures when being executed, determination mentions Hand over the sequence updated.
Each program file that can be provided in development system is stored in where development system and calculates by the memory module 11 In machine equipment, it further includes that technical staff is predetermined that described program file, which not only includes the aforementioned update program assembly referred to, Network node to be updated and corresponding updated network state information (subsequent to be referred to as the second network state information).Except this Except, described program file further includes the other standards program etc. for network function exploitation, is no longer illustrated one by one herein.
The editor module is used to select the more new procedures in the update program assembly according to acquired edit instruction, And the update affairs source for updating corresponding network node is generated based on update rule described in selected more new procedures Program.Here, the editor module is used to help the design that technical staff is updated algorithm.
Referring to Fig. 3, it is shown as a kind of editing interface provided by editor module 12 comprising resource manager and volume Collect device etc..Wherein, the resource manager is for update affairs source files of program constructed by display technique personnel, and application The source files of program of program and at least one of the program library comprising updating program assembly.The editing machine is for showing source journey All code lines of sequence, so that technical staff carries out edit operation.Wherein, the edit operation refers to operates by technical staff The human-computer interaction device of computer equipment and to editor module 12 send edit instruction and editor module 12 respond the volume Collect the mistake that instruction records accordingly code line having readability, facilitating technical staff's Speeding up development speed in editing machine Journey.Wherein, the edit instruction includes but is not limited to following at least one: being deleted or modified, inputs new to code line Code line obtains candidate functions list etc. according to object type.The editor module 12 is based on the parameter, function, right inputted As equal type, the readable high code line such as corresponding all types of font, color is shown in editing machine, and to the generation Code row carries out such as misspelling and verifies.The editor module 12 is also loaded into institute according to acquired edit instruction from program library It states and updates corresponding more new procedures in program assembly, the update rule being updated with the network state obtained to network node.
For example, technical staff is according to update affairs source journey of the input comprising following procedure section in editing machine of upgrading demand Sequence:
12 pairs of received edit instructions of institute of the editor module parse, can be according to parameter, function, logical operator etc. Different colours are set, and according to upgating object tx, are loaded into its attribute and member function.With the letter of tx=Transaction () For number object, Transaction () is expressed as the more new procedures that transactional of the creation in more New Parent updates operation; Hops is the network node object sequence on link PathB, wherein each object (i.e. network in network node object sequence Node) it include updated network state attribute, and/or the subprogram to update corresponding network node;Write (hop) is The third more new procedures, indicate by network node hop updated network state information write-in network node hop so as to for Update based on verification is prepared;Commit () is the described first more new procedures, can indicate or update journey comprising described second Sequence is so that the information that write (hop) is written is submitted and completes the operation of the update to network node hop.The editor Module is based on the selected first more new procedures and the described update rule of third more new procedures, generates for updating PathB The update affairs source program of the network state information of each network node in chain road.
According to actually upgrading demand, the update that the editor module 12 can be arranged according to loaded more new procedures is advised Then, the update affairs source program for updating single network node is generated, or is generated for updating multiple network nodes more New affairs source program.
Above-mentioned tx example provides a kind of update that the multiple network nodes in chain road are updated based on asynchronous update rule The development process of affairs source program.In some instances, it needs sequentially to execute between each network node of chain road updated Journey.For example, as shown in Fig. 2, in Path Migration, it is more in batch processing to prevent network node A update from phenomena such as packet loss occur When the state of a network node updates, it is based on the 4th more new procedures, network node A ability after network node E and D are updated It executes and updates operation.Accordingly, the editor module 12 is based on the described update rule of selected 4th more new procedures, raw At the update affairs source program for updating the multiple network node according to striping order.
Two sections designed based on Fig. 2 example described below update the update affairs book of rule:
Wherein, barrier () function is the 4th more new procedures.Above-mentioned book, which describes, updates link PathB When upper each network node, the segmentation update sequence of network node firstHop and network node sequence otherHops, wherein Transaction () describes transactional more NEW BEGINNING, and otherHops is prior to network node for other network node sequences FirstHop is updated preparation, and using write () function, network controller will be in other network node sequences otherHops Each updated network state information of network node is written, and more new state is changed to prepare write state, is being ensured Each network node in other network node sequences otherHops is completed after updating preparation, and network node firstHop is updated Network state information afterwards is written, then is executed and submitted operation, i.e. tx.commit ().It is when being so effectively isolated update and Hair conflict.
To ensure that a transactional update meets ACID attribute, the development system, which is provided, updates behaviour according to a transactional The update program assembly of various states setting made and divided, so that technical staff's prepared updates rule is in various states turn Under the security mechanism changed, the update operation for meeting ACID attribute is executed.In order to ensure the update operation, the editor module 12 It is also used to describe the update rule after transactional updates operation disruption based on the update program assembly, generates and be used for more cenotype Answer the update affairs source program of network node.Wherein, the interruption includes but is not limited to: because network communication circuit obstruction etc. causes Interruption, because of network node or network controller hardware anomalies or system burden are overweight etc. due tos cause to interrupt etc..
Technical staff can be designed after interrupting generation and restoring to network using the more New Parent in editor module 12 The update affairs source program of node updates operation.
Here, the update affairs source program is to execute following either step: 1) continuing to execute the network node Update operation.For example, detecting that a transactional updates operation in write state is prepared, continues to execute the transactional and update operation. 2) cancel the update operation of the network node.For example, detecting that a transactional updates operation in read states, cancel the affairs Property update operation.3) repeat it is described backup, verification and update operation, until be updated successfully or number of repetition meet it is preset Cut-off condition.For example, detecting that a transactional updates operation in state is submitted, updates the transactional and update operation failure number And re-execute the transactional and update operation, until until being updated successfully or number of repetition meets preset cut-off condition.
When update affairs source program recorded in technical staff saves the editing machine, the editor module 12 starts Preserving module 13 saves the update affairs source program at source files of program.For example, the development system supports python language Speech, then the preserving module 13 saves the update affairs source program in editing machine at .py file.
It should be noted that it should be appreciated by those skilled in the art that above-mentioned development language is merely illustrative, rather than to the application Limitation.In fact, any development language can be used and carry out according to the update mode described herein for updating program assembly Description, it is no longer exhaustive herein.
In some embodiments, the editor module 12, which is also used to import, updates affairs source files of program.For example, described The editing interface of editor module 12 further includes toolbar, and technical staff can select to have protected by the import option in operational instrument column The update affairs source files of program deposited, and import in editing machine, it is utilized in above-mentioned update program assembly more convenient for technical staff New procedures modify to the update affairs source program imported.
In yet other embodiments, the development system further includes collector, is used for the update affairs source Program and selected each more new procedures are compiled into the more new application that can be executed under the running environment of pre-determining.
Here, include the compiler for corresponding to development language provided by the development system in the collector, The running environment according to provided by network controller compiles update affairs source program generated and selected each more new procedures It is translated into more new application.Wherein, it is updated network-like that corresponding each network node is also packed in the more new application State information.More new application after collector compiling is by being published to corresponding network-control using delivery system Device institute is on a computing device.From there through executing in the update application program update network controller to the correspondence managed The network state information of network node, and by network controller and data interaction of each network node based on control plane business, Data flow is handled according to updated network state information instruction network node.
For this purpose, the application provides a kind of update method of network node.The update method is mainly network controlled device It executes, also can be controlled by the network device and network node executes jointly.Wherein each step performed by the network controller can Computer equipment where being network controlled device is developed according to the aforementioned development system referred to and is obtained indicated by more new application Rule is updated to execute and obtain;Or it executes the update developed using update program assembly provided by aforementioned development system and answers Use program.For example, network node updates the configuration file etc. of network state information under the control of network controller.
The update method is used to update the network state and/or network function for the network node that network controller is managed Energy.Here, unlike the software upgrading of single computer unit, according to the needs of network transmission, the update of network state It may be directed to a network node, the more often update of network state is ceased with multiple network nodes of at least one chain road It is related.For this purpose, the primary network state information updating that we are set based on network transmission demand is referred to as that a transactional updates Operation.For example, the updating network state operation based on all-network node on link Path1 updates operation for a transactional. For another example, operation is updated for the network of the network node A managed update operation for a transactional.The update method is main It is network controlled device initiation, and is updated according to transactional and operates related network node, controls corresponding network node to execute Process.
It is expressed as realizing that a network function updates purpose and completely updates one here, the transactional updates operation Or the process of multiple network nodes.The transactional update operation is including but not limited to migrated based on thread path, path initializes, The update operation etc. that path is backed up, the stream of single network node is regular and is arranged.For example, it is to update that a transactional, which updates operation, The network state of one each network node in chain road.
To guarantee that a transactional updates the ACID attribute of operation, on the one hand the network controller executes transactional and updates On the other hand the correspondence of the operation more new stage also backs up the more new state of corresponding more new stage.Here, being needed according to practical update Ask, transactional updates the more new stage that operation can be divided into following multiple combinations: start the more new stage, backup read phase, Backup write phase, isolation stage, verification and submission more new stage, end more new stage etc..The corresponding update shape of each stage State.Wherein, the beginning backup phase indicates that transactional updates operation and starts.Backup read phase is indicated to update transactional and be operated The current network state information of related network node (also known as first network status information) is backed up, wherein described One network state information includes but is not limited to persistence status information and volatile information in network node.It is described lasting Property status information refer to can by the network state information of control plane business modification, illustrate include flow path by Rule Information, load Handle Rule Information, stream filter rule information etc..The volatile information refers to can be by the network of data surface business modification Status information is illustrated including traffic statistics etc..Backup write phase indicates to update according to transactional each involved in operation The updated network state information of network node (also known as the second network state information) or the loading pair of updated network function In the network node answered.Isolation stage indicates to update the segmentation update sequence in operation according to transactional to related multiple nets The update of network node is isolated, so that the update of multiple network nodes is ordered into update.Verification and submission more new stage can wrap Containing checking stage and presentation stage, for the time interval for minimizing two stages, combinable is a stage.Wherein, it verifies Stage indicates to check during updating operation to transactional with each stage of process, to be confirmed whether that submission rank can be entered Section, if so, executing the operation of presentation stage, if not, it is determined that update failure and execute the corresponding stage behaviour of update failure Make.Presentation stage indicate by transactional more you operate involved in network node carry out substantive update, such as alternative networks node Network state configuration file increases or deletes the network function etc. of network node.Terminating the update stage indicates a transactional more New operation terminates, and network node is handled network data according to updated network configuration.
According to upgrading demand, a transactional more new application (referred to as more new application) is based on each more new stage behaviour The standardized more new technological process made is performed in network controller, to realize the network node to network controller and its control Have ACID attribute transactional update operation.
Referring to Fig. 4, the flow chart of its update method for being shown as the application network node in one embodiment.For dimension Each update stages operating is protected, in step S210, updates at least one of operation more new stage behaviour executing a transactional During work, the corresponding more new state for updating stages operating is backed up.
Here, being updated the inspection of state for the ease of network controller, network controller is when executing step S210 The more new state is recorded in the form of any in log or variable.For example, more new state is described using variable, Current more new state is recorded by the way of changing the variable.For another example, the side of the log using record comprising more new state Formula records newest more new state.Therewith with backup, information relevant to transactional update operation can also be included.Wherein, The relevant information of operation that updates to transactional includes but is not limited to: network node to be updated, transactional are updated and are operated Version information etc..
In some instances, the more new state backed up corresponds to transactional and updates the more new stage involved in operation.Example Such as, in each stage for updating operation tx for transactional, network controller can correspond to each more new stage and the more new state that is arranged As shown in following table 2-1:
Table 2-1
The more new stage More new state
Start the more new stage <tx,START>
Backup read phase <tx,READ,Match,"ACTION"/"STAT">
Backup write phase <tx,WRITE,Match,Action>
Checking stage <tx,VALIDATION,VOLATILE>
Submit the more new stage <tx,WRITE>
Terminate the more new stage <tx,INACTIVE>
Isolation stage <tx,BARRIER>
Wherein, in the more new state of backup read phase,<tx, READ, Match, " ACTION "/" STAT ">in Match " (READ) which stream is read ", it is persistence that " ACTION "/" STAT ", which is used to distinguish the stream read, for matching stream State (e.g., in the domain action of the practical flow table of interchanger) or volatile are (e.g., in the STAT of the practical flow table of interchanger In domain).
In the more new state of backup write phase,<tx, WRITE, Match, (WRITE) is write in Action>expression, and some is flowed The description write as in Action to the behavior of the stream (is such as abandoned, is forwarded) by (such as meeting the matching rule in Match).
Using above-mentioned more new state, network controller can be under each more new state, it is ensured that completes all nets to be updated Network node is corresponding to update stages operating, and thus, it is possible to effectively ensure the atomicity attribute during transactional updates operation.
In other example, the more new state backed up corresponds to transactional and updates network node involved in operation The more new stage.For example, in each more new stage for updating network node ID involved in operation tx for transactional, network controller Each more new stage can be corresponded to and the more new state that is arranged is as shown in table 2-2:
Table 2-2
Wherein, in the more new state of the backup read phase of network node ID, < tx_ID, READ, Match, " ACTION "/" STAT " > in Match be used for area for matching stream, i.e. " read (READ) which stream ", " ACTION "/" STAT " The stream not read is that persistence state (e.g., in the domain action of the practical flow table of interchanger) or volatile (e.g., are being handed over In the domain STAT for practical flow table of changing planes).
In the more new state of the backup write phase of network node ID,<tx_ID, WRITE, Match, Action>expression write (WRITE) some stream (such as meeting the matching rule in Match), will be write as the description in Action (such as to the behavior of the stream Abandon, forward etc.).
Using above-mentioned more new state, network controller can be under the more new state of each network node, it is ensured that completes to more New all-network node is corresponding to update stages operating, thus also can effectively ensure the atomicity category during transactional updates operation Property.
Here, network controller can start in each update stages operating or at the end of back up corresponding more new state, and The more new state backed up is checked in step S220, and the transactional is executed based on inspection result and updates operation, to update Corresponding network node.
Here, in some instances, network controller each stage start or at the end of check backed up update shape State, thus just whether corresponding confirmation previous stage completes or whether the current generation can start.When indicate can be after for inspection result When continuous execution, the update of network node is continued to execute, conversely, then updating operation failure according to when time transactional, executes and corresponds to more The operation of new operation failure, such as remind operation or update operation again.In other example, network controller is according to default The more new state that is backed up of critical stage inspection.Wherein, the critical stage citing includes following any one or more: backup Read phase, backup write phase, verification and presentation stage, end more new stage, isolation stage etc..
It, can between network controller and multiple network nodes in the physical structure of real network controller and network node Can close proximity or far, for during reducing network transmission to the greatest extent to uncertainty brought by updating network state.With primary It includes: to start more new stage, backup write phase, verification and presentation stage and terminate the more new stage that transactional, which updates operation successively, For, network controller addition backup in log when starting to execute transactional update operation starts the more new stage more New state;Into backup write phase, the more new state of backup write phase is on the one hand added in log, on the other hand by the second net Network status information is loaded into network node A1, after the completion of being loaded into, as network controller receives the downloading of network node A1 feedback The response message of completion, the more new state backed up in network controller audit log, has recorded backup when detecting in log When the more new state of write phase, instruction network node A1, which executes to submit, updates operation, such as matches network node A1 is currently used It sets the content in file and is substituted for the second loaded network state information;Network controller is according to the received network node A1 of institute The response message fed back after replacement is completed, adding into the end more new stage and in log terminates more new state.
Some transactionals, which update operation, need to verify the network state of network node.For this purpose, referring to Fig. 5, it is shown as this The flow chart of the update method of application in yet another embodiment.The update method further includes step S230, S240, corresponding Ground, the step S220 include step S221 and S222.
In step S230, the first network status information of network node to be updated is backed up.
Here, network controller, which after starting update, controls network node to be updated, backs up current network state letter Breath, and as first network status information.
For example, the network controller sends backup reading instruction to network node, the network node uses snapshot or text The modes such as this duplication back up used persistence status information and current volatile character body information, and obtain backup file, Such as log file .txt file, xml document or picture format;Obtained backup file (as first network status information) It can be reserved in network node local or the network controller fed back to by network node.
Synchronous with step S230 or without necessarily executing sequentially, network controller also executes step S240, i.e., to be updated Network node back up corresponding second network state information.In the physical structure of real network controller and network node, It may close proximity or far between network controller and multiple network nodes.For during reducing network transmission to the greatest extent to network-like State updates brought uncertainty, and step S240 can be performed in the network controller.
When network controller goes to verification and presentation stage, step S221 and S222 are executed.
Wherein, in step S221, the first network status information is matched with current network state information, and Obtain matching result.
In step S222, it is based on the inspection result and matching result, is updated according to the second network state information corresponding Network node network state, so as to the network node according to second network state information to network data at Reason.
Here, certain network states due to network node change with data surface business, to prevent network state Update operation influence corresponding network node data transmission, the network controller control network node it is network-like according to second State information modifies to network state, increases, before delete operation, first carries out matching operation.
In some instances, under the control of the network controller, first network state that network node is backed up Information is matched with current network state information, and matching result is fed back to network controller.Wherein, according to preset Update condition meets into presentation stage if obtained matching result meets update condition and updates state, according to second Network state information updates the network state of corresponding network node;Conversely, then the secondary transactional updates operation failure.Wherein, The visual network state to be updated of the update condition and preset.For example, the secondary transactional updates operation and volatile character State information is unrelated, then update condition does not consider the matching result of volatile information.Under normal conditions, the update condition The limitation to match comprising meeting persistence state.
For example, network node A matches the first network status information backed up with current network state information, Wherein, persistent state information matches are consistent, comprising matching inconsistent status information, then network control in volatile information Device processed meets the update condition according to the matching result that preset update condition determines that the network node A is fed back, and refers to Show that network node A updates network state according to second network state information, network node A updates its network state configuration text Part simultaneously carries out network data processing according to the second network state information.
For another example, network node B matches the first network status information backed up with current network state information, Wherein, persistent state information matches are inconsistent, the consistent status information of volatile information matches, then network controller root Determine that the matching result that the network node B is fed back is unsatisfactory for the update condition according to preset update condition, and determining should Secondary transactional updates operation failure.
When determining update failure based on the matching result, the transactional is updated to all-network involved in operating The network state of node restores the network state to update.A kind of example is that the network controller can be anti-to upper layer application Feedback is cancelled the secondary transactional and is updated, and deletes the more new state backed up in log and network node, first network state letter Breath and the second network state information etc. are to restore the state to before updating.Cancel for example, being sent by upper layer application to administrator Mail, the short message etc. that the secondary transactional updates, and delete all information backed up.Another example be repeat it is described Step S210, S230, S240, S221 and S222, until being updated successfully or number of repetition meets preset cut-off condition.For example, When determining update failure based on the matching result, according to the more new state of current backup, the rank having not carried out is repeated Section operation, such as the first network status information of backup network node again, and come according to matching first network status information true Determine the operation such as whether to execute modification, increase newly, delete according to the second network state information.For another example, affairs are repeated by default Property the number that updates, i.e. setting cut-off condition that operation is updated comprising repeating transactional, the network controller can pass through Counting mode counts transactional and updates operation failure number, when the frequency of failure reaches cut-off condition, takes to upper layer application feedback The secondary transactional that disappears updates.
Unlike the software upgrading of other computer equipments, a transactional, which updates operation, may relate to multiple networks Node.Influence according to the network state updated to link where network node, in some embodiments, the network control Device processed can execute each step of the update method asynchronously to complete the transactional and update operation.That is, network controller is based on Transactional updates operation, is individually performed multiple network nodes such as each step of Fig. 4 or shown in fig. 5, to the complete of chain road After portion's network node updates, completes the transactional and update operation.
In yet other embodiments, the network controller is according to preparatory segmentation update sequence, at least execution step S220.Referring to Fig. 6, it is shown as the flow chart of step S220 in one embodiment in the application update method, wherein step Rapid S220 includes: step S223, S224.
In step S223, based on segmentation update sequence indicated by the inspection result, corresponding network node institute is verified The first network status information of backup.
In step S224, based on the matching result of each segmentation reproducting periods, each second network state is believed in piecewise Breath is updated to corresponding network node.
In some instances, network controller is in the first network status information for having backed up all network nodes to be updated Afterwards, according to preparatory segmentation update sequence two stage cultivation, and it is based on matching result, will be carried out according to each second network state information Corresponding network node is updated.For example, by taking link shown in Fig. 2 as an example, wherein link Path1 is to set where source address Standby src starts via equipment dst where network node A, B, C, D to destination address, link Path2 to be from equipment where source address Src starts via equipment dst where network node A, E, D to destination address.When the transactional of Path Migration updates operation, net First asynchronously control network node A, E, D executes step S210, S230 and S240 to network controller respectively, all to be updated to back up Network node first network status information and backup write-in the second network state information;Network controller according to backup more It is suitable to determine that the segmentation for first updating network node E and D, rear update network node A updates for the more new state of isolation stage in new state Sequence, and control network node E and D asynchronously executes step S223 and S224 respectively, the network state to network node E and D is more After new, control network node A executes step S223 and S224, in this way, network node A update is effectively prevent packet loss etc. occur Phenomenon.
Wherein, if the matching result of any network node is unsatisfactory for update condition or checks any network node more The inspection result of new state is unsatisfactory for continuing to execute next update stages operating, and the transactional is updated to institute involved in operating There is the network state of network node to restore the network state to update.
Here, network controller is occurring determining the network state for being unable to complete all-network node based on collation more It, will be updated or be to update the network state of each network node in each segmentation being ready to be restored when new. Wherein, the mode of the recovery operation including but not limited to: delete to back up the second network state information, the rollback network of write-in Network state etc. of the status information to before updating.
For example, the latest update state that read corresponding transactional updates operation is the update shape of corresponding backup write phase State, the network controller control each network node and delete each second network state information for having backed up write-in.For another example, it is read Correspondence transactional update operation latest update state be the corresponding more new stage more new state, the network controller utilization Rolling back action controls each network node corresponding network state and restores the state to update, thus prevents the network of network node Operation exception.
It is only for example it should be noted that the above-mentioned transactional being arranged based on Path Migration updates operation, rather than to this The limitation of application.In fact, it can also include the thing of generation for adjustment load that the transactional based on network link, which updates operation, Business property update operation, the transactional generated to Make Path update operation, are path backup and the transactional of generation updates behaviour Make etc..It no longer illustrates one by one herein.
The application also provide it is a kind of can operational network controller network comtrol server.Referring to Fig. 7, it is shown as net A kind of structural schematic diagram of network control server, the network comtrol server include storage unit 21 and processing unit 22.
Here, the storage unit 21 includes high-speed random access memory, nonvolatile memory and memory control Device, such as one or more disk storage equipments, flash memory device or other non-volatile solid-state memory devices.In some embodiments In, memory can also include the memory far from one or more processors, such as via RF circuit or outside port and The network attached storage of communication network (not shown) access, wherein the communication network can be internet, one or more Intranet, local area network (LAN), wide area network (WLAN), storage area network (SAN) etc. or its is appropriately combined.The memory control Access of the other assemblies of such as CPU and Peripheral Interface of device controllable device etc to memory.It is stored in storage unit 21 In component software include operating system, communication module (or instruction set), contact/motion module (or instruction set), figure module (or instruction set), haptic feedback module (or instruction set), text input module (or instruction set) and application (or instruction set).
The processing unit 22 is operationally coupled with storage unit 21.It is being deposited more specifically, processing unit 22 can be performed The instruction stored in reservoir and/or non-volatile memory device is to execute operation in calculating equipment, such as generation program file And/or prediction rule described in program file and operation rules are transferred to electronic console.In this way, processor may include One or more general purpose microprocessors, one or more application specific processors (ASIC), one or more field programmable logic battle arrays Arrange (FPGA) or any combination of them.
The processing unit 22 is also operatively coupled to Network Interface Unit, which may make calculating to set It is standby to be interacted with various other electronic equipments, for example, the Network Interface Unit includes network adapter, wireless network card Etc..
Here, the storage of storage unit 21 updates application.Wherein, update application for based on aforementioned development system and Obtained by its updates program assembly provided and the transactional that designs update source program compiling, described in the processing unit 22 is run The update method in application, described in executing such as Fig. 4 and Fig. 5 and its corresponding to is updated, this will not be detailed here, to realize having ACID category Property businesslike update operation.
Referring to Fig. 8, its configuration diagram for being shown as a kind of network controller that itself please be provide.The network-control Device 4 includes data transmission module 41, updates control module 42.The network controller 4 mainly includes in network comtrol server Software and hardware.Each module can be by the storage list in network comtrol server as shown in Figure 7 in the network controller 4 Member 21, processing unit 22 and Network Interface Unit (being unillustrated) etc. and be performed, to realize corresponding control function.
Described at least one 5 data communication of network node data transmission module 41 and controlled.Here, the data pass Defeated module 41 carries out data communication according to preset network communication protocol and each network node 5.For example, the data transmission module 41 transmit for realizing the data of control plane business.
The update control module 42 is used to execute at least one of a transactional update operation more new stage behaviour During work, the corresponding more new state for updating stages operating is backed up;And check the more new state backed up, and be based on inspection result It executes the transactional and updates operation, to update corresponding network node.For example, under the control for updating control module 42, net The configuration file etc. of the update network state information of network node 5.
Here, being updated the inspection of state for the ease of network controller, it is corresponding more in backup to update control module 42 The more new state is recorded in the form of any in log or variable when the more new state of new stage operation.For example, sharp More new state is described with variable, records current more new state by the way of changing the variable.For another example, it is wrapped using record The mode of log containing more new state records newest more new state.It, can also be comprising being updated with transactional therewith with backup Operate relevant information.Wherein, the information relevant to transactional update operation includes but is not limited to: network section to be updated Point, transactional update version information of operation etc..
In some instances, the more new state backed up corresponds to transactional and updates the more new stage involved in operation.Example Such as, in each stage for updating operation tx for transactional, the update that control module 42 can correspond to each more new stage and be arranged is updated State is as shown in following table 2-1:
Table 2-1
The more new stage More new state
Start the more new stage <tx,START>
Backup read phase <tx,READ,Match,"ACTION"/"STAT">
Backup write phase <tx,WRITE,Match,Action>
Checking stage <tx,VALIDATION,VOLATILE>
Submit the more new stage <tx,WRITE>
Terminate the more new stage <tx,INACTIVE>
Isolation stage <tx,BARRIER>
Wherein, in the more new state of backup read phase,<tx, READ, Match, " ACTION "/" STAT ">in Match " (READ) which stream is read ", it is persistence that " ACTION "/" STAT ", which is used to distinguish the stream read, for matching stream State (e.g., in the domain action of the practical flow table of interchanger) or volatile are (e.g., in the STAT of the practical flow table of interchanger In domain).
In the more new state of backup write phase,<tx, WRITE, Match, (WRITE) is write in Action>expression, and some is flowed The description write as in Action to the behavior of the stream (is such as abandoned, is forwarded) by (such as meeting the matching rule in Match).
Using above-mentioned more new state, updating control module 42 can be under each more new state, it is ensured that completes institute to be updated There is network node is corresponding to update stages operating, thus, it is possible to effectively ensure the atomicity attribute during transactional updates operation.
In other example, the more new state backed up corresponds to transactional and updates network node involved in operation The more new stage.For example, updating control mould in each more new stage for updating network node ID involved in operation tx for transactional Block 42 can correspond to each more new stage and the more new state that is arranged is as shown in table 2-2:
Table 2-2
Wherein, in the more new state of the backup read phase of network node ID, < tx_ID, READ, Match, " ACTION "/" STAT " > in Match be used for area for matching stream, i.e. " read (READ) which stream ", " ACTION "/" STAT " The stream not read is that persistence state (e.g., in the domain action of the practical flow table of interchanger) or volatile (e.g., are being handed over In the domain STAT for practical flow table of changing planes).
In the more new state of the backup write phase of network node ID,<tx_ID, WRITE, Match, Action>expression write (WRITE) some stream (such as meeting the matching rule in Match), will be write as the description in Action (such as to the behavior of the stream Abandon, forward etc.).
Using above-mentioned more new state, updating control module 42 can be under the more new state of each network node, it is ensured that completes All-network node to be updated is corresponding to update stages operating, thus also can effectively ensure the atom during transactional updates operation Property attribute.
Here, update control module 42 can start in each update stages operating or at the end of back up corresponding update shape State, and check the more new state backed up, and the transactional is executed based on inspection result and updates operation, to update corresponding net Network node.
Here, in some instances, update control module 42 each stage start or at the end of check and backed up more New state, thus just whether corresponding confirmation previous stage completes or whether the current generation can start.When inspection result expression can When continuing to execute, the update of network node is continued to execute, conversely, then updating operation failure, execution pair according to when time transactional The operation of operation failure should be updated, such as reminds operation or updates operation again.In other example, control module 42 is updated The more new state backed up according to preset critical stage inspection.Wherein, critical stage citing include it is following any or It is a variety of: backup read phase, backup write phase, verification and presentation stage, end more new stage, isolation stage etc..
In the physical structure of server and network node where real network controller, server and multiple network nodes Between may close proximity or far, for during reducing network transmission to the greatest extent to uncertainty brought by updating network state. Updating operation successively with a transactional includes: to start more new stage, backup write phase, verification and presentation stage and terminate more For new stage, the update control module 42 addition backup in log when starting to execute transactional update operation starts more The more new state of new stage;Into backup write phase, the more new state of backup write phase, another party are on the one hand added in log Second network state information is loaded into network node A1 by face, after the completion of being loaded into, is such as updated control module 42 and is received network section The response message that the downloading of point A1 feedback is completed, updates the more new state backed up in 42 audit log of control module, works as detection When having recorded the more new state of backup write phase into log, instruction network node A1, which executes to submit, updates operation, such as by network Content in node A1 currently used configuration file is substituted for the second loaded network state information;Update control module 42 According to received network node A1 complete the response message fed back after replacement, into terminating the more new stage and added in log Terminate more new state.
Some transactionals, which update operation, need to verify the network state of network node.For this purpose, referring to Fig. 5, the update is controlled Molding block 42 also executes following steps:
In step S230, the first network status information of network node to be updated is backed up.
Here, updating control module 42 after starting update, controls network node to be updated and back up currently network-like State information, and as first network status information.
For example, the update control module 42 sends backup reading instruction to network node, the network node uses snapshot Or the modes such as text duplication back up used persistence status information and current volatile character body information, and obtain backup text Part, such as log file .txt file, xml document or picture format;Obtained backup file (as believe by first network state Breath) it can be reserved in network node local or the update control module 42 fed back to by network node.
It is synchronous with step S230 or without necessarily execute sequentially, update control module 42 also execute step S240, i.e., to The network node of update backs up corresponding second network state information.In the physics for actually updating control module 42 and network node In framework, updating may close proximity or far between control module 42 and multiple network nodes.To reduce network transmission to the greatest extent Step S240 can be performed to uncertainty brought by updating network state, the update control module 42 in period.
When update control module 42 goes to verification and presentation stage, step S221 and S222 are executed.
Wherein, in step S221, the first network status information is matched with current network state information, and Obtain matching result.
In step S222, it is based on the inspection result and matching result, is updated according to the second network state information corresponding Network node network state, so as to the network node according to second network state information to network data at Reason.
Here, certain network states due to network node change with data surface business, to prevent network state Update operation influence corresponding network node data transmission, the updates control module 42 controlling network node according to the second net Network status information modifies to network state, increases, before delete operation, first carries out matching operation.
In some instances, under the control for updating control module 42, first network that network node is backed up Status information is matched with current network state information, and matching result is fed back to and updates control module 42.Wherein, root According to preset update condition, meet if obtained matching result meets update condition and updates state into presentation stage, The network state of corresponding network node is updated according to the second network state information;Conversely, then the secondary transactional updates operation mistake It loses.Wherein, the visual network state to be updated of the update condition and preset.For example, the secondary transactional update operation with Volatile information is unrelated, then update condition does not consider the matching result of volatile information.Under normal conditions, described Update condition includes to meet the limitation that persistence state matches.
For example, network node A matches the first network status information backed up with current network state information, Wherein, persistent state information matches are consistent, comprising matching inconsistent status information in volatile information, then update control Molding block 42 meets the update condition according to the matching result that preset update condition determines that the network node A is fed back, And indicating that network node A updates network state according to second network state information, network node A updates its network state and matches It sets file and carries out network data processing according to the second network state information.
For another example, network node B matches the first network status information backed up with current network state information, Wherein, persistent state information matches are inconsistent, and the consistent status information of volatile information matches then updates control module 42 determine that the matching result that the network node B is fed back is unsatisfactory for the update condition according to preset update condition, and really The fixed secondary transactional updates operation failure.
When determining update failure based on the matching result, the transactional is updated to all-network involved in operating The network state of node restores the network state to update.A kind of example is that the update control module 42 can be answered to upper layer Cancel the secondary transactional with feedback to update, and deletes the more new state backed up in log and network node, first network shape State information and the second network state information etc. are to restore the state to before updating.For example, being sent by upper layer application to administrator Cancel mail, short message etc. that the secondary transactional updates, and deletes all information backed up.Another example is to repeat Described step S210, S230, S240, S221 and S222, until being updated successfully or number of repetition meets preset cut-off condition.Example Such as, when determined based on the matching result update failure when, according to the more new state of current backup, repeat and have not carried out Stages operating, such as the first network status information of backup network node again, and according to matching first network status information come Determine whether to execute the operation such as modification, newly-increased, deletion according to the second network state information.For another example, thing is repeated by default The cut-off condition that the number that business property updates, i.e. setting update operation comprising repeating transactional, the update control module 42 Transactional can be counted by counting mode and update operation failure number, when the frequency of failure reaches cut-off condition, to upper layer application Feedback is cancelled the secondary transactional and is updated.
Unlike the software upgrading of other computer equipments, a transactional, which updates operation, may relate to multiple networks Node.Influence according to the network state updated to link where network node, in some embodiments, the update control Molding block 42 can execute each step of the update method asynchronously to complete the transactional and update operation.That is, updating control mould Block 42 is based on a transactional and updates operation, and transactional is individually performed to multiple network nodes and updates each step involved in operation Suddenly, it after the overall network node updates of chain road, completes the transactional and updates operation.
In yet other embodiments, the update control module 42 is at least executed according to preparatory segmentation update sequence Step S220.Referring to Fig. 6, it is shown as the flow chart of step S220 in one embodiment in the application update method, In, it updates control module 42 and executes following steps:
In step S223, based on segmentation update sequence indicated by the inspection result, corresponding network node institute is verified The first network status information of backup.
In step S224, based on the matching result of each segmentation reproducting periods, each second network state is believed in piecewise Breath is updated to corresponding network node.
In some instances, control module 42 is updated in the first network state for having backed up all network nodes to be updated After information, according to preparatory segmentation update sequence two stage cultivation, and it is based on matching result, it will be according to each second network state information Corresponding network node is carried out to be updated.For example, by taking link shown in Fig. 2 as an example, wherein link Path1 is from source address institute Start via equipment dst where network node A, B, C, D to destination address, link Path2 to be where source address in equipment src Equipment src starts via equipment dst where network node A, E, D to destination address.Operation is updated in the transactional of Path Migration When, updating control module 42, first asynchronously control network node A, E, D executes step S210, S230 and S240 respectively, with backup The first network status information and backup the second network state information of write-in of all network nodes to be updated;Update control module 42 according to backup more new state interval from the stage more new state, determine first update network node E and D, the rear network that updates connects The segmentation update sequence of point A, and control network node E and D asynchronously executes step S223 and S224 respectively, to network node E After the updating network state of D, control network node A executes step S223 and S224, in this way, effectivelying prevent network node There is phenomena such as packet loss in A update.
Wherein, if the matching result of any network node is unsatisfactory for update condition or checks any network node more The inspection result of new state is unsatisfactory for continuing to execute next update stages operating, and the transactional is updated to institute involved in operating There is the network state of network node to restore the network state to update.
Occurring being unable to complete the network-like of all-network node based on collation determination here, updating control module 42 When state updates, by it is updated or be update be ready be respectively segmented in the network state of each network node give Restore.Wherein, the mode of the recovery operation including but not limited to: delete with back up write-in the second network state information, return Roll network state etc. of the network state information to before updating.
For example, the latest update state that read corresponding transactional updates operation is the update shape of corresponding backup write phase State, the control module 42 that updates control each second network state information that write-in has been backed up in each network node deletion.For another example, institute The latest update state that the correspondence transactional of reading updates operation is to correspond to the more new state of more new stage, and the update controls mould Block 42 controls each network node corresponding network state using rolling back action and restores the state to update, thus prevents network section The network operation of point is abnormal.
It is only for example it should be noted that the above-mentioned transactional being arranged based on Path Migration updates operation, rather than to this The limitation of application.In fact, it can also include the thing of generation for adjustment load that the transactional based on network link, which updates operation, Business property update operation, the transactional generated to Make Path update operation, are path backup and the transactional of generation updates behaviour Make etc..It no longer illustrates one by one herein.
The application provides a kind of computer-readable calculating write storage medium, be stored thereon with for network node update again Machine program, the computer program (as updated application) being stored with for updating network node are realized when being executed by processor The step of described in the step of stating network node update method, i.e. Fig. 4 and Fig. 5.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
In embodiment provided by the present application, the computer-readable storage medium of writing may include read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), EEPROM, CD-ROM Or it other optical disk storage apparatus, disk storage device or other magnetic storage apparatus, flash memory, USB flash disk, mobile hard disk or can use There is the desired program code of instruction or data structure form in storage and can be accessed by computer any other Medium.In addition, any connection can be properly termed as computer-readable medium.For example, if instruction be using coaxial cable, The wireless technology of optical fiber cable, twisted pair, digital subscriber line (DSL) or such as infrared ray, radio and microwave etc, from net Stand, server or other remote sources send, then the coaxial cable, optical fiber cable, twisted pair, DSL or such as infrared ray, The wireless technology of radio and microwave etc includes in the definition of the medium.It is to be understood, however, that computer-readable It writes storage medium and data storage medium does not include connection, carrier wave, signal or other fugitive mediums, and be intended to be directed to Non-transitory, tangible storage medium.As application used in disk and CD include compact disk (CD), laser-optical disk, CD, digital versatile disc (DVD), floppy disk and Blu-ray Disc, wherein disk usually magnetically replicate data, and CD is then With laser come optically replicate data.
The principles and effects of the application are only illustrated in above-described embodiment, not for limitation the application.It is any ripe Know the personage of this technology all can without prejudice to spirit herein and under the scope of, carry out modifications and changes to above-described embodiment.Cause This, those of ordinary skill in the art is complete without departing from spirit disclosed herein and institute under technical idea such as At all equivalent modifications or change, should be covered by claims hereof.

Claims (20)

1. a kind of update method of network node, the network node managed for updating network controller, which is characterized in that packet It includes:
During executing a transactional and updating at least one of operation update stages operating, backup is corresponding to update stages operating More new state;
It checks the more new state backed up, and the transactional is executed based on inspection result and updates operation, to update corresponding net Network node.
2. the update method of network node according to claim 1, which is characterized in that the corresponding more new stage behaviour of the backup The step of more new state made includes: the more new state that will be backed up to be recorded in the form of any in log or variable.
3. the update method of network node according to claim 1, which is characterized in that it is right that the transactional updates operation institute The quantity for the network node to be updated answered be it is multiple, asynchronously execute and update each network section according to the second network state information Point.
4. the update method of network node according to claim 1, which is characterized in that it is right that the transactional updates operation institute The quantity for the network node to be updated answered is multiple, described the step of executing the transactional update operation based on inspection result Include:
Based on segmentation update sequence indicated by the inspection result, the first network state that corresponding network node is backed up is verified Information;And
Based on the matching result of each segmentation reproducting periods, each second network state information is updated to corresponding network by piecewise Node.
5. the update method of network node according to any one of claims 1-4, which is characterized in that further include: backup to The first network status information of the network node of update;
It is described to check the more new state backed up and corresponding to update based on the inspection result execution transactional update operation The step of network node includes:
The first network status information is matched with current network state information, and obtains matching result;
Based on the inspection result and matching result, the network-like of corresponding network node is updated according to the second network state information State, so that the network node is handled network data according to second network state information.
6. the update method of network node according to claim 5, which is characterized in that further include: to network to be updated Corresponding second network state information of node standby.
7. the update method of network node according to claim 5, which is characterized in that described based on inspection result and to institute The matching result for stating first network status information updates the network state of corresponding network node according to the second network state information The step of include: if that obtained matching result meets update condition and updates state and meets into presentation stage, according to the Two network state informations update the network state of corresponding network node.
8. the update method of network node according to claim 7, which is characterized in that in any segmentation reproducting periods, institute It states based on inspection result and to the matching result of the first network status information, is updated according to the second network state information corresponding Network node network state the step of include: if that obtained matching result is unsatisfactory for update condition, by the transactional The network state for updating all-network node involved in operating restores the network state to update.
9. the update method of network node according to claim 1, which is characterized in that described to execute institute based on inspection result Stating the step of transactional updates operation includes: to hold when determining that the transactional updates operation failure according to the inspection result Row is following any:
Cancel the transactional and updates operation;
It repeats the backup, matching and updates step, until being updated successfully or number of repetition meets preset cut-off condition.
10. a kind of network controller, for updating the network state information of managed network node characterized by comprising
Data transmission module is communicated at least one network node data managed;
Control module is updated, is used for during executing at least one of transactional update operation and updating stages operating, it is standby The corresponding more new state for updating stages operating of part;And check the more new state backed up, and based on described in inspection result execution Transactional updates operation, to update corresponding network node.
11. network controller according to claim 10, which is characterized in that the update control module is for will be backed up More new state be recorded in the form of any in log or variable.
12. network controller according to claim 10, which is characterized in that the transactional update operation it is corresponding to The quantity of the network node of update be it is multiple, the updates control module be used for asynchronously execute according to the second network state information Update each network node.
13. network controller according to claim 10, which is characterized in that the transactional update operation it is corresponding to The quantity of the network node of update be it is multiple, the updates control module for based on segmentation indicated by the inspection result more New sequences, the first network status information that verification corresponding network node is backed up;And for being based on each segmentation reproducting periods Matching result, each second network state information is updated to corresponding network node by piecewise.
14. any network controller in 0-13 according to claim 1, which is characterized in that the update control module is also For backing up the first network status information of network node to be updated;
The update control module is obtained for matching the first network status information with current network state information To matching result;Based on the inspection result and matching result, corresponding network node is updated according to the second network state information Network state, so that the network node is handled network data according to second network state information.
15. network controller according to claim 14, which is characterized in that the update control module is also used to to more New network node backs up corresponding second network state information.
16. network controller according to claim 14, which is characterized in that if the update control module is for acquired Matching result meet update condition and update state meet into presentation stage, then according to the second network state information update The network state of corresponding network node.
17. network controller according to claim 16, which is characterized in that in any segmentation reproducting periods, the update If control module is unsatisfactory for update condition for obtained matching result, the transactional is updated all involved in operation The network state of network node restores the network state to update.
18. network controller according to claim 10, which is characterized in that the update control module is used for when according to institute When stating inspection result and determining that the transactional updates operation failure, execute following any:
Cancel the transactional and updates operation;
It repeats the backup, matching and updates step, until being updated successfully or number of repetition meets preset cut-off condition.
19. a kind of network comtrol server characterized by comprising
Storage unit updates application for storing;
Processing unit, for executing the update application, to execute the update method as described in any in claim 1-9.
20. a kind of computer readable storage medium, which is characterized in that be stored with more new application;The more new application The update method of the network node as described in any in claim 1-9 is realized when being called and executing.
CN201811167340.8A 2018-10-08 2018-10-08 Update method, system, server and the storage medium of network node Pending CN109218105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811167340.8A CN109218105A (en) 2018-10-08 2018-10-08 Update method, system, server and the storage medium of network node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811167340.8A CN109218105A (en) 2018-10-08 2018-10-08 Update method, system, server and the storage medium of network node

Publications (1)

Publication Number Publication Date
CN109218105A true CN109218105A (en) 2019-01-15

Family

ID=64982989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811167340.8A Pending CN109218105A (en) 2018-10-08 2018-10-08 Update method, system, server and the storage medium of network node

Country Status (1)

Country Link
CN (1) CN109218105A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204378A (en) * 2021-04-21 2021-08-03 深圳市广和通无线股份有限公司 Configuration file state synchronization method, device, terminal, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101251814A (en) * 2008-02-04 2008-08-27 浙江大学 Method for implementing credible recovery system in operating system
US20180077038A1 (en) * 2016-09-09 2018-03-15 International Business Machines Corporation System and Method for Management and Recovery of Multi-Service Web Transactions

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101251814A (en) * 2008-02-04 2008-08-27 浙江大学 Method for implementing credible recovery system in operating system
US20180077038A1 (en) * 2016-09-09 2018-03-15 International Business Machines Corporation System and Method for Management and Recovery of Multi-Service Web Transactions

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
QI-AN FU: "TUS: A Transactional Update Service for SDN Application", 《THE 9TH ASIA-PACIFIC WORKSHOP》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204378A (en) * 2021-04-21 2021-08-03 深圳市广和通无线股份有限公司 Configuration file state synchronization method, device, terminal, server and storage medium

Similar Documents

Publication Publication Date Title
CN101707884B (en) Seeding replication
CN108170612B (en) Automatic testing method and device and server
US8799602B2 (en) Automated migration to a new target volume via merged bitmaps to maintain consistency
US8904131B2 (en) Automated migration to a new copy services target storage system to manage multiple relationships simultaneously while maintaining disaster recovery consistency
US10157000B2 (en) Data operation method and device
CN110471688A (en) Operation system processing method, device, equipment and storage medium
US8417669B2 (en) Auto-correction in database replication
US11223678B2 (en) Establishing paths between servers in a copy environment for different copy relationships between the servers
US11860892B2 (en) Offline index builds for database tables
CN113656227A (en) Chip verification method and device, electronic equipment and storage medium
CN109189778A (en) A kind of method of online modification database table structure
CN115048254A (en) Simulation test method, system, equipment and readable medium of data distribution strategy
US9201897B1 (en) Global data storage combining multiple back-end storage devices
CN109522078A (en) Operation repealing method, computer equipment and computer readable storage medium
US11399071B2 (en) Program operation system and program operation method
CN109739684A (en) The copy restorative procedure and device of distributed key value database based on vector clock
CN109218105A (en) Update method, system, server and the storage medium of network node
CN113391767B (en) Data consistency checking method and device, electronic equipment and readable storage medium
CN109450663A (en) Development approach, system, computer equipment and the storage medium of network function
CN111400275B (en) Method for customizing and automatically performing data aging
CN107885869A (en) A kind of method and system for changing database
US20060026460A1 (en) Bit map write logging with write order preservation in support of asynchronous update of secondary storage
US20160085782A1 (en) Update method and updating device
US20220309045A1 (en) Database Schema Branching Workflow, with Support for Data, Keyspaces and VSchemas
CN115203217A (en) Data synchronization method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190115

RJ01 Rejection of invention patent application after publication