CN106169964B - Network equipments configuration synchronous method and device - Google Patents
Network equipments configuration synchronous method and device Download PDFInfo
- Publication number
- CN106169964B CN106169964B CN201610858531.3A CN201610858531A CN106169964B CN 106169964 B CN106169964 B CN 106169964B CN 201610858531 A CN201610858531 A CN 201610858531A CN 106169964 B CN106169964 B CN 106169964B
- Authority
- CN
- China
- Prior art keywords
- request message
- configuring request
- equipment
- stand
- host apparatus
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a kind of network equipments configuration synchronous method and device, the method is applied in the dual systems including host apparatus and stand-by equipment, it include: when this equipment is host apparatus, for the configuring request message from management-side received, configuration modification is performed locally based on the configuring request message;Sync id is inserted into the configuring request message;Modified configuring request message is sent to stand-by equipment based on preset stand-by equipment address, so that the stand-by equipment is based on modified configuring request message and is performed locally configuration modification identical with host apparatus.Technical scheme can synchronize the configuration of host apparatus and stand-by equipment accurately and in time.
Description
Technical field
This application involves field of communication technology more particularly to a kind of network equipments configuration synchronous method and device.
Background technique
In order to ensure the continuity and reliability of Internet service operation, usually two networks can be disposed in same position
Equipment, respectively with the mode operation of host apparatus and stand-by equipment.Wherein, host apparatus can carry out business forwarding, and spare
Equipment can take over host apparatus when host apparatus breaks down, and continue business forwarding.In this case, timely,
It accurately synchronizes host apparatus and the configuration of stand-by equipment is most important.
Summary of the invention
In view of this, the application provides a kind of network equipments configuration synchronous method and device, with solve in the related technology without
Method synchronizes the problem of configuration of host apparatus and stand-by equipment accurately and in time.
Specifically, the application is achieved by the following technical solution:
In a first aspect, the application provides a kind of network equipments configuration synchronous method, be applied to include host apparatus with it is spare
In the dual systems of equipment, which comprises
When this equipment is host apparatus, for the configuring request message from management-side received, matched based on described
It sets request message and is performed locally configuration modification;
Sync id is inserted into the configuring request message;
Modified configuring request message is sent to stand-by equipment based on preset stand-by equipment address, so that described standby
Modified configuring request message, which is based on, with equipment is performed locally configuration modification identical with host apparatus.
Second aspect, the application provide a kind of network equipments configuration synchronizing device, be applied to include host apparatus with it is spare
In the dual systems of equipment, described device includes:
Processing unit is configured, for being asked for the configuration from management-side received when this equipment is host apparatus
Message is sought, configuration modification is performed locally based on the configuring request message;
Message modifies unit, for being inserted into sync id in the configuring request message;
Packet sending unit, it is standby for being sent to modified configuring request message based on preset stand-by equipment address
With equipment, so that the stand-by equipment is based on modified configuring request message and is performed locally configuration identical with host apparatus
Modification.
Analysis above-mentioned technical proposal it is found that administrator by management work station modify host apparatus match postpone, it is primary
Equipment can be performed locally configuration modification according to the configuring request message from management-side received, while can match at this
Set in request message be inserted into sync id after be sent to stand-by equipment so that stand-by equipment be performed locally it is identical as host apparatus
Configuration modification.Therefore, administrator no longer needs voluntarily to modify the configuration of stand-by equipment, can between host apparatus and stand-by equipment
To carry out configuration synchronization in time;Also avoiding administrator's operation error simultaneously causes to configure not between host apparatus and stand-by equipment
Synchronous problem improves the synchronous accuracy of configuration.
Detailed description of the invention
Fig. 1 is a kind of networking diagram of network equipments configuration synchronous method shown in one exemplary embodiment of the application;
Fig. 2 is a kind of flow chart of network equipments configuration synchronous method shown in one exemplary embodiment of the application;
Fig. 3 is the flow chart of another network equipments configuration synchronous method shown in one exemplary embodiment of the application;
Fig. 4 is a kind of hardware of network equipments configuration synchronizing device place equipment shown in one exemplary embodiment of the application
Structure chart;
Fig. 5 is a kind of block diagram of network equipments configuration synchronizing device shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
In the related technology, based on SNMP (Simple Network Management Protocol, simple network management association
View), administrator can remotely manage all network equipments established a connection by management work station, including modification network is set
Standby configuration etc..Administrator can pass through the corresponding MIB (Management of the customized each network equipment of management work station
Information Base, management information bank) file, and the variate-value by modifying the corresponding MIB node of each network equipment, it is real
Now to the configuration of each network equipment.If two network equipments respectively with the mode operation of host apparatus and stand-by equipment,
When needing the configuration of synchronous host apparatus and stand-by equipment, it is corresponding that administrator can modify each network equipment by management work station
MIB node variate-value, identical configuration modification is carried out to host apparatus and stand-by equipment respectively.However, being matched using this
Synchronous method is set, complicated for operation, inefficiency;In addition, may cause primary set if administrator makes a fault in operation
The standby configuration with stand-by equipment is asynchronous, to introduce other problems, such as safety problem.
It is a kind of networking diagram of network equipments configuration synchronous method shown in one exemplary embodiment of the application with reference to Fig. 1.
The dual systems (also referred to as main preparation system) for including management work station in present networks and being made of the network equipment 1 and the network equipment 2,
Wherein the dual systems provides access service for one or more terminal devices.Management work station may be located at dual systems
In the same local area network, it is also possible to be interacted by internet with dual systems, specific location is unlimited.Management work station, network are set
Support that SNMP, administrator can remotely manage dual systems by management work station for 1 and the network equipment 2, simultaneously
It can also be carried out data transmission by proprietary link or service link between the network equipment 1 and the network equipment 2.Present networks are in reality
In the operational process on border, the network equipment 1 and the network equipment 2 can first determine the role in each comfortable dual systems, such as: double
Based on RDMP, (Redundancy Device Management Protocol, redundancy are set between two network equipments of machine system
Standby management agreement) hold consultation after, the network equipment 1 determines that this equipment is host apparatus, and the network equipment 2 determines that this equipment is spare
Equipment.
It is that a kind of network equipments configuration shown in one exemplary embodiment of the application is synchronous with reference to Fig. 2 in conjunction with networking diagram 1
The flow chart of method, this method can be applied in host apparatus shown in FIG. 1, and host apparatus can be the network equipment 1 or net
Any one in network equipment 2.This method may comprise steps of:
Step 201: when this equipment is host apparatus, for the configuring request message from management-side received, base
Configuration modification is performed locally in the configuring request message.
In this example, it is assumed that the network equipment 1 determines that this equipment is host apparatus at this time, the determination of the network equipment 2 is originally set
Standby is stand-by equipment.With reference to the relevant technologies, administrator can modify the corresponding MIB node of the network equipment 1 by management work station
Variate-value, thus to the network equipment 1 carry out configuration modification.Management work station can modification according to administrator to configuration, structure
The SNMP Set Request message for carrying configuration information, i.e. configuring request message are made, and the configuring request message is sent to
The network equipment 1.The network equipment 1, can be by the configuring request report after receiving the configuring request message from management-side
The parsing of text, is performed locally configuration modification, with the modification according to administrator to configuration, updates the configuration information locally saved.
Step 202: being inserted into sync id in the configuring request message.
In the present embodiment, the network equipment 1, can be in the configuration after receiving the configuring request message from management-side
Sync id is inserted into request message, so that the network equipment 2 carries out the configuring request message from management-side and the network equipment 1
It distinguishes.
When the SNMP version number that present networks use is 1 or 2, table 1 is the part field of modified configuring request message
A kind of example:
Version number | Community | Sync id | PDU type |
Integer | Character string | Integer | Integer |
Table 1
When the SNMP version number that the network uses is 3, table 2 is that the part field of modified configuring request message is a kind of
Example:
Version number | Sync id | msgID |
Integer | Integer | Integer |
Table 2
Each field of SNMP message is made of data type, length field, data value.By taking version number field as an example:
The data type of the field is integer, and length is 1 byte, and data value is that 1 expression SNMP version number is 1, and data value is 2 expressions
SNMP version number is 2, and data value is that 3 expression SNMP version numbers are 3.According to above-mentioned rule, can to the sync id of insertion into
Row setting, such as: integer is set by the data type of sync id field, length is set as 1 byte, and data value is set as
1。
Step 203: modified configuring request message is sent to by stand-by equipment based on preset stand-by equipment address, with
So that the stand-by equipment is based on modified configuring request message and is performed locally configuration modification identical with host apparatus.
In the present embodiment, the network equipment 1 can be based on the address of the preset network equipment 2, i.e., stand-by equipment at this time
Modified configuring request message is sent to the network equipment 2 by address.As an example it is assumed that the network interface 1 and net of the network equipment 1
There are available links between the network interface 2 of network equipment 2, and administrator sets 1.1.1.2 for the IP address of network interface 2, then network
Equipment 1 can set 1.1.1.2 for the purpose IP address of modified configuring request message, to will be modified by network interface 1
Message afterwards is sent to the network equipment 2, and network interface 2 is the synchronous mouth of configuration of the network equipment 2 at this time.In conjunction with abovementioned steps 202, net
Network equipment 1 by sync id be inserted into the configuring request message from management-side in when, not in the configuring request message with
The related substantive content of action of configuration is modified, and therefore, the network equipment 2 is receiving the configuring request from the network equipment 1
After message, configuration modification identical with the network equipment 1 can be performed locally by the parsing to the configuring request message.
As seen from the above-described embodiment, administrator postpones by matching for management work station modification host apparatus, host apparatus
It can be performed locally configuration modification according to the configuring request message from management-side received, while can be asked in the configuration
It asks and is sent to stand-by equipment after being inserted into sync id in message, so that stand-by equipment is performed locally match identical with host apparatus
Set modification.Therefore, administrator no longer needs voluntarily to modify the configuration of stand-by equipment, between host apparatus and stand-by equipment can and
Shi Jinhang configuration synchronizes;Simultaneously also avoid administrator's operation error cause to configure between host apparatus and stand-by equipment it is asynchronous
The problem of, improve the synchronous accuracy of configuration.
In most cases, administrator gets used to configuring host apparatus, and host apparatus can be by preceding at this time
It states step 201 and configuration modification is synchronized to stand-by equipment to 203.Just because of this, the design of most of synchronization scheme is all from master
Use the spare method of synchronization.But it is directed to the particularity of dual systems, after active-standby switch occurs, the role of equipment may
It changes, such as the network equipment 1 becomes stand-by equipment from host apparatus, and the network equipment 2 becomes primary from stand-by equipment and sets
It is standby.Administrator may forget this transformation at this time, still carry out configuration modification to the network equipment 1.In order to receive stand-by equipment
To configuration modification can also be synchronized to host apparatus, in another embodiment, stand-by equipment can equally execute above-mentioned
Process flow.This method may further include following steps at this time:
Step 201A: when this equipment is stand-by equipment, for the configuring request message from management-side received, base
Configuration modification is performed locally in the configuring request message.
Step 202A: sync id is inserted into the configuring request message.
Step 203A: being sent to host apparatus for modified configuring request message based on preset host apparatus address,
So that the host apparatus is based on modified configuring request message and is performed locally configuration modification identical with stand-by equipment.
The specific implementation of step 201A to 203A can refer to the specific descriptions of abovementioned steps 201 to 203.This is excellent
Change can permit dual systems when administrator carries out configuration modification to wherein any one network equipment, realize that two networks are set
Standby configuration is synchronous.
When being based on above scheme, when realizing that host apparatus is synchronous with the configuration of stand-by equipment, hair message cycle may lead
Problem.Such as: stand-by equipment can modify the configuring request message after receiving configuring request message, and will be after modification
Configuring request message be sent to host apparatus, host apparatus, can be with after receiving the modified configuring request message
It modifies again to the configuring request message, and is sent to stand-by equipment, and so on form message cycle.It is asked for above-mentioned
Topic, some implementations being readily apparent that include:
Configuring request message is numbered, judges whether to repeat to receive the identical configuring request of content by the number
Message.If this equipment receives the identical configuring request message of number, it can be discharged, no longer send it to opposite end
Equipment, to break message cycle.However, realizing that this scheme needs to introduce complicated number and affirmation mechanism.
The source of message is distinguished by distinguishing the source IP address of message, that is, distinguishing the message is from management-side or to come
From the opposite equip. in dual systems.For the configuring request message from management-side, then opposite equip. is synchronized to after modifying;Needle
To the configuring request message from opposite equip., then do not resynchronized after having executed configuration modification.It is primary however under actual scene
Equipment may include multiple network interfaces, and the IP address of different segment can be arranged in administrator for each network interface.In conjunction with abovementioned steps 203,
When being carried out data transmission between host apparatus and stand-by equipment by forwarding network appliance, each network interface of host apparatus with it is spare
There is available link between the synchronous mouth of the configuration of equipment, then host apparatus can synchronize the IP of mouth based on the configuration of stand-by equipment
Modified configuring request message is sent to stand-by equipment by each network interface by address.Therefore, what stand-by equipment received comes from
The configuring request message of host apparatus may have different source IP address.Similarly, stand-by equipment can also be based on host apparatus
The synchronous mouth of configuration IP address, modified configuring request message is sent to host apparatus by multiple network interfaces, then it is primary
The configuring request message from stand-by equipment that equipment receives may also have different source IP address.
For present networks in actual operational process, each network equipment in dual systems only needs to save opposite equip. configuration
The IP address of synchronous mouth, can be sent to opposite equip. for modified configuring request message, without saving opposite equip.
The IP address of all network interfaces.In this case, each network equipment can not pass through the source IP of the configuring request message received
Address, judges whether the configuring request message comes from opposite equip..In contrast to this, the application can use sync id, accurately
Distinguish the configuring request message from management-side and from opposite equip. in ground.Referring to FIG. 3, being based on sync id, the application is mentioned
The network equipments configuration synchronous method of confession may comprise steps of:
Step 301: detecting whether the configuring request message that this equipment receives carries sync id.
In this example, it is assumed that the network equipment 1 determines that this equipment is host apparatus, the network equipment 2 determines that this equipment is
Stand-by equipment.With reference to the relevant technologies, it is right that administrator can modify the network equipment 2 (stand-by equipment at this time) by management work station
The variate-value for the MIB node answered, to carry out configuration modification to the network equipment 2.Therefore, the network equipment 2, which removes, can receive arrival
Outside the configuring request message of automatic network equipment 1 (host apparatus at this time), the configuring request from management-side can also be received
Message.In conjunction with abovementioned steps 203, the configuring request message that the network equipment 1 is sent to the network equipment 2 carries sync id, therefore
The network equipment 2 can detect whether the configuring request message received carries together by parsing the configuring request message received
Step mark, to judge whether the configuring request message comes from the network equipment 1.Similarly, if the network equipment 1 as host apparatus
Configuring request message is received, the detection operation can also be executed.This is because it is directed to the configuring request message from management-side,
It needs to realize the mesh that configuration modification is synchronized to opposite equip. (another equipment in dual systems) by being inserted into sync id
's.On the contrary, if configuring request message has carried sync id not needing that configuration modification is synchronized to opposite equip. again.
SNMP message is used uniformly BER (Basic Encoding Rules, BER Basic Encoding Rules), and 0x30 is indicated thereafter
Field is SNMP information.Assuming that setting integer for the data type of the sync id field of insertion, length is set as 1 word
Section, data value are set as 1.When the SNMP version number that present networks use is 1 or 2, in conjunction with the table 1 in abovementioned steps 202,
It is that version number field and community's field if the latter byte of community's field corresponds to PDU types value illustrate this after 0x30
Configuring request message comes from management-side;If the latter byte of community's field is that integer identifies 0x02, and data value is 1, then
Illustrate that the field is sync id, which comes from opposite equip..When the SNMP version number that present networks use is 3
When, it is version number field after 0x30 in conjunction with the table 2 in abovementioned steps 202, if the latter byte of version number field is corresponding
MsgID then illustrates the configuring request message from management-side;If the latter byte of version number field is that integer identifies 0x02,
And data value is 1, then illustrates that the field is sync id, which comes from opposite equip..
Step 302: when the configuring request message carries sync id, determining the configuring request message from two-shipper
Opposite equip. in system.
In the present embodiment, the testing result based on abovementioned steps 301, if the configuring request message received carries together
Step mark, then the network equipment 2 can determine the configuring request message from opposite equip., the i.e. network equipment 1;Similarly, network
Equipment 1 receives, and can determine the network equipment 2 of the configuring request message from its opposite end.
Step 303: configuration modification identical with opposite equip. being performed locally based on the configuring request message, and by institute
State the release of configuring request message.
In the present embodiment, in conjunction with abovementioned steps 202, sync id is inserted into the configuration from management-side by the network equipment 1
When in request message, do not modify to substantive content related with action of configuration in the configuring request message.Therefore, network
Equipment 2 after receiving the configuring request message from the network equipment 1, can by the parsing to the configuring request message,
Locally execute configuration modification identical with the network equipment 1.
When the SNMP version number that present networks use is 3, each network equipment is existed based on the configuring request message received
Before locally executing configuration modification, need to carry out device id verifying, i.e., by device id that the configuring request message carries with originally set
Standby device id is compared, and when the two is identical, can be performed locally configuration modification according to the configuring request message;When two
When person is not identical, then the configuring request message is discharged.For example, in conjunction with abovementioned steps 202, the network equipment 1 will synchronized
When in configuring request message of the mark insertion from management-side, not to reality related with action of configuration in the configuring request message
Matter content is modified, therefore the device id of modified configuring request message carrying is still the device id 1 of the network equipment 1.When
When the network equipment 2 receives the configuring request message from the network equipment 1, if the network equipment 2 takes the configuring request message
The device id 1 of band is compared with the device id 2 of this equipment, then will lead to device id verifying and do not pass through, the network equipment 2 can incite somebody to action
Configuring request message release is repaired without being performed locally configuration identical with the network equipment 1 according to the configuring request message
Change, to occur that the synchronous situation of configuration can not be carried out between two equipment of dual systems.
In view of promoting the compatibility of technical scheme, the application provides following in a more optimized embodiment
Process flow is to solve the above problems: if the configuring request message received carries sync id, this equipment is being set
The device id that can be carried the configuring request message when standby ID verifying and its own (device id that configuring request message carries)
It is compared, that is, defaults the configuring request message and verified by device id, to allow this equipment according to the configuring request report
Text is performed locally configuration modification.
In another embodiment, if the configuring request message received carries sync id, this equipment can be jumped
The step for crossing device id verifying, and defaults the configuring request message by as device id verification the verifying results, making this equipment can be with
Configuration modification is performed locally according to the configuring request message.
In this step, each network equipment in dual systems can pass through when receiving configuring request message
Abovementioned steps 301 determine the source of the configuring request message.For message source difference, corresponding processing movement can not yet
Together, if receiving the configuring request message from management-side, illustrate that having executed configuration in this equipment (primary or spare) repairs
After changing, it is also necessary to be sent to opposite equip. (spare or primary) after being inserted into sync id;If received from opposite equip.
Configuring request message then can discharge the configuring request message after this equipment has executed configuration modification, i.e., no longer by the configuration
Request message is sent to opposite equip., to avoid the generation of message cycle.
As seen from the above-described embodiment, administrator is in the configuration for modifying a certain equipment in dual systems by management work station
Afterwards, which can be performed locally configuration modification according to the configuring request message from management-side received, while can be with
It is sent to opposite equip. after being inserted into sync id in the configuring request message, so that opposite equip. is performed locally and the equipment
Identical configuration modification.Therefore, administrator no longer needs voluntarily to modify the configuration of another equipment in dual systems, the dual systems
Two equipment between can carry out configuration synchronization in time;Also avoiding administrator's operation error simultaneously causes to configure between equipment
Nonsynchronous problem improves the synchronous accuracy of configuration.
Corresponding with the embodiment of aforementioned network device configuration synchronous method, it is same that present invention also provides network equipments configurations
Walk the embodiment of device.
It is including host apparatus and stand-by equipment that the embodiment of the application network equipments configuration synchronizing device, which can be applied,
In dual systems, the host apparatus and stand-by equipment are the network equipment.Installation practice can be by software realization, can also
It is realized in a manner of through hardware or software and hardware combining.Taking software implementation as an example, as the device on a logical meaning, it is
Computer program instructions corresponding in nonvolatile memory are read into memory by the processor of the network equipment where it
What operation was formed.For hardware view, as shown in figure 4, the network equipment where the application network equipments configuration synchronizing device
A kind of hardware structure diagram, it is real other than processor shown in Fig. 4, memory, network interface and nonvolatile memory
The actual functional capability that the network equipment in example where device is synchronized generally according to the network equipments configuration is applied, can also include that other are hard
Part repeats no more this.
Referring to FIG. 5, for a kind of block diagram of network equipments configuration synchronizing device shown in one exemplary embodiment of the application,
Described device 500 can be applied in the network equipment shown in Fig. 4, and the apparatus may include with lower unit:
Processing unit 501 is configured, is used for when this equipment is host apparatus, for the configuration from management-side received
Request message is performed locally configuration modification based on the configuring request message;
Message modifies unit 502, for being inserted into sync id in the configuring request message;
Packet sending unit 503, for being sent modified configuring request message based on preset stand-by equipment address
To stand-by equipment so that the stand-by equipment be based on modified configuring request message be performed locally it is identical with host apparatus
Configuration modification.
In an alternative embodiment, described device can also include:
Synchronous detection unit 504, for whether when this equipment is stand-by equipment, detecting the configuring request message received
Carry sync id;When the configuring request message carries sync id, determine that the configuring request message is set from primary
It is standby;When the configuring request message does not carry sync id, determine the configuring request message from management-side;
The configuration processing unit 501 is further used for being based on institute when the configuring request message is from host apparatus
It states configuring request message and is performed locally configuration modification identical with host apparatus, and the configuring request message is discharged.
In an alternative embodiment, the configuration processing unit 501 is further used for when this equipment being stand-by equipment
When, for the configuring request message from management-side received, configuration is performed locally based on the configuring request message and is repaired
Change;The message modification unit 502 is further used for being inserted into sync id in the configuring request message;The message is sent
Unit 503 is further used for that modified configuring request message is sent to host apparatus based on preset host apparatus address,
So that the host apparatus is based on modified configuring request message and is performed locally configuration modification identical with stand-by equipment.
In an alternative embodiment, the configuration processing unit 501 may include ID verifying subelement 5011, be used for
When the configuring request message corresponding Simple Network Management Protocol SNMP version number is 3, the configuring request message is defaulted
It is verified by device id, configuration modification identical with host apparatus is performed locally based on the configuring request message.
In an alternative embodiment, the synchronous detection unit 504 is further used for when this equipment being host apparatus
When, detect whether the configuring request message received carries sync id;When the configuring request message does not carry sync id
When, determine the configuring request message from management-side;When the configuring request message carries sync id, match described in determination
Request message is set from stand-by equipment;The configuration processing unit 501 is further used for providing for oneself in the configuring request message
When with equipment, configuration modification identical with stand-by equipment is performed locally based on the configuring request message, and by the configuration
Request message release.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (8)
1. a kind of network equipments configuration synchronous method, applied to include host apparatus and stand-by equipment dual systems in, it is special
Sign is, which comprises
When this equipment is host apparatus, detect whether the configuring request message received carries sync id;
When the configuring request message does not carry sync id, determine that the configuring request message from management-side, is based on institute
It states configuring request message and is performed locally configuration modification, and be inserted into sync id in the configuring request message, and be based on
Modified configuring request message is sent to stand-by equipment by preset stand-by equipment address, so that the stand-by equipment is based on repairing
Configuring request message after changing is performed locally configuration modification identical with host apparatus;
When the configuring request message carries sync id, determine that the configuring request message from stand-by equipment, is based on institute
It states configuring request message and is performed locally configuration modification identical with stand-by equipment, and the configuring request message is discharged.
2. the method according to claim 1, wherein the method also includes:
When this equipment is stand-by equipment, detect whether the configuring request message received carries sync id;
When the configuring request message carries sync id, determine the configuring request message from host apparatus;
Configuration modification identical with host apparatus is performed locally based on the configuring request message, and by the configuring request report
Text release.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When this equipment is stand-by equipment, if the configuring request message received does not carry sync id, it is determined that described to match
Request message is set from management-side, and configuration modification is performed locally based on the configuring request message;
Sync id is inserted into the configuring request message;
Modified configuring request message is sent to host apparatus based on preset host apparatus address, primary is set so that described
It is standby that configuration modification identical with stand-by equipment is performed locally based on modified configuring request message.
4. according to the method described in claim 2, it is characterized in that, it is described based on the configuring request message be performed locally with
The identical configuration modification of host apparatus, comprising:
When the configuring request message corresponding Simple Network Management Protocol SNMP version number is 3, the configuring request is defaulted
Message is verified by device id, is performed locally configuration modification identical with host apparatus based on the configuring request message.
5. a kind of network equipments configuration synchronizing device, applied to include host apparatus and stand-by equipment dual systems in, it is special
Sign is that described device includes:
Synchronous detection unit, for detecting whether the configuring request message received carries together when this equipment is host apparatus
Step mark;When the configuring request message does not carry sync id, determine the configuring request message from management-side;Work as institute
When stating configuring request message carrying sync id, determine the configuring request message from stand-by equipment;
Processing unit is configured, is used for when this equipment is host apparatus, for the configuring request report from management-side received
Text is performed locally configuration modification based on the configuring request message;
Message modifies unit, for being inserted into sync id in the configuring request message;
Packet sending unit, for modified configuring request message to be sent to spare set based on preset stand-by equipment address
It is standby, it is repaired so that the stand-by equipment is performed locally configuration identical with host apparatus based on modified configuring request message
Change;
The configuration processing unit is further used for asking when the configuring request message is from stand-by equipment based on the configuration
It asks message to be performed locally configuration modification identical with stand-by equipment, and the configuring request message is discharged.
6. device according to claim 5, which is characterized in that described device further include:
The synchronous detection unit is further used for when this equipment is stand-by equipment, and detecting the configuring request message received is
No carrying sync id;When the configuring request message carries sync id, determine the configuring request message from primary
Equipment;When the configuring request message does not carry sync id, determine the configuring request message from management-side;
The configuration processing unit is further used for asking when the configuring request message is from host apparatus based on the configuration
It asks message to be performed locally configuration modification identical with host apparatus, and the configuring request message is discharged.
7. device according to claim 5, which is characterized in that
The configuration processing unit is further used for when this equipment is stand-by equipment, for the matching from management-side received
Request message is set, configuration modification is performed locally based on the configuring request message;
The message modification unit is further used for being inserted into sync id in the configuring request message;
The packet sending unit is further used for sending out modified configuring request message based on preset host apparatus address
Give host apparatus so that the host apparatus be based on modified configuring request message be performed locally it is identical as stand-by equipment
Configuration modification.
8. device according to claim 5, which is characterized in that the configuration processing unit includes:
ID verifies subelement, is used for when the configuring request message corresponding Simple Network Management Protocol SNMP version number is 3,
Default the configuring request message to verify by device id, be performed locally and host apparatus phase based on the configuring request message
Same configuration modification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610858531.3A CN106169964B (en) | 2016-09-28 | 2016-09-28 | Network equipments configuration synchronous method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610858531.3A CN106169964B (en) | 2016-09-28 | 2016-09-28 | Network equipments configuration synchronous method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106169964A CN106169964A (en) | 2016-11-30 |
CN106169964B true CN106169964B (en) | 2019-05-07 |
Family
ID=57377179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610858531.3A Active CN106169964B (en) | 2016-09-28 | 2016-09-28 | Network equipments configuration synchronous method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106169964B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106789304B (en) * | 2016-12-29 | 2019-12-06 | 杭州迪普科技股份有限公司 | Network equipment configuration synchronization method and device |
CN106941418B (en) * | 2017-03-10 | 2019-12-06 | 杭州迪普科技股份有限公司 | SSL VPN configuration information synchronization method and device |
CN107493201B (en) * | 2017-09-13 | 2020-06-09 | 杭州迪普科技股份有限公司 | Synchronization method and device for configuration messages |
CN107888434B (en) * | 2017-12-29 | 2021-02-26 | 杭州迪普科技股份有限公司 | Network equipment configuration synchronization method and device |
CN108199903B (en) * | 2018-01-25 | 2021-03-02 | 新华三技术有限公司 | Distributed aggregation system configuration method and device |
CN115022175A (en) * | 2022-06-21 | 2022-09-06 | 工银科技有限公司 | Configuration information synchronization method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101826073A (en) * | 2009-03-06 | 2010-09-08 | 华为技术有限公司 | Synchronous method, apparatus and system for distributed database |
CN102075341A (en) * | 2009-11-25 | 2011-05-25 | 中兴通讯股份有限公司 | Method and system for main-standby synchronization |
CN103152266A (en) * | 2011-12-07 | 2013-06-12 | 华为技术有限公司 | Synchronization method among network equipment, network equipment and system |
CN104079440A (en) * | 2014-07-24 | 2014-10-01 | 上海斐讯数据通信技术有限公司 | Synchronous configuration method of primary equipment and stand-by equipment and SNMP (Simple Network Management Protocol) system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090228531A1 (en) * | 2008-03-07 | 2009-09-10 | Baumann Warren J | Template-based remote/local file selection techniques for modular backup and migration |
-
2016
- 2016-09-28 CN CN201610858531.3A patent/CN106169964B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101826073A (en) * | 2009-03-06 | 2010-09-08 | 华为技术有限公司 | Synchronous method, apparatus and system for distributed database |
CN102075341A (en) * | 2009-11-25 | 2011-05-25 | 中兴通讯股份有限公司 | Method and system for main-standby synchronization |
CN103152266A (en) * | 2011-12-07 | 2013-06-12 | 华为技术有限公司 | Synchronization method among network equipment, network equipment and system |
CN104079440A (en) * | 2014-07-24 | 2014-10-01 | 上海斐讯数据通信技术有限公司 | Synchronous configuration method of primary equipment and stand-by equipment and SNMP (Simple Network Management Protocol) system |
Also Published As
Publication number | Publication date |
---|---|
CN106169964A (en) | 2016-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106169964B (en) | Network equipments configuration synchronous method and device | |
CN105024855B (en) | Distributed type assemblies manage system and method | |
EP2426827B1 (en) | Method and network system for implementing user port orientation in multi-machine backup scenario of broadband remote access server | |
CN103401726B (en) | Network path detection method and device, system | |
US9952995B2 (en) | Redundant packet forwarding system | |
CN108259215B (en) | Equipment management method and device | |
CN102006189B (en) | Primary access server determination method and device for dual-machine redundancy backup | |
CN106685733A (en) | FC-AE-1553 network rapid configuration and automatic testing method | |
US9288075B2 (en) | Method and system for auto-configuration, and network node | |
CN102457403B (en) | Method and device for detecting network connection faults | |
CN107528747B (en) | Method and device for diagnosing communication state of master station and slave station and computer readable storage medium | |
CN106330786A (en) | MAC address synchronization method, apparatus and system | |
EP3099021A1 (en) | Interconnecting networks | |
CN106487598B (en) | The more examples of isomery redundancy Snmp agreements realize system and its implementation | |
CN105959078A (en) | Cluster time synchronization method, cluster and time synchronization system | |
KR101563133B1 (en) | System and method for virtual circuit protection in the dynamic multi-domain environment | |
CN102665237A (en) | Simulative Ir interface protocol conformance testing device and interoperability testing method | |
JP6118464B2 (en) | Port status synchronization method, related device, and system | |
CN106304071B (en) | A kind of network access verifying method, access authentication equipment and system | |
CN101217405B (en) | SGSN backup method and communication system, communication device | |
US20160344571A1 (en) | Determining Connections Between Disconnected Partial Trees | |
CN105871524B (en) | A kind of method and system based on TIPC protocol realization two-node cluster hot backup | |
US8903991B1 (en) | Clustered computer system using ARP protocol to identify connectivity issues | |
CN108900422A (en) | Multicast forward method, device and electronic equipment | |
JPH08110878A (en) | Network system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant after: Hangzhou Dipu Polytron Technologies Inc Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant before: Hangzhou Dipu Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |