The content of the invention
Each webmaster type interchanger is intelligently configured to the static network that does not conflict in LAN in order to solve how to realize
The technical problem of management address, it is the static network management ground that do not conflict that the present invention provides and interchanger is intelligently configured in a kind of LAN
The method of location, by switch-access control technology, obtains switch neighbor technology, leads to not access target interchanger phenomenon
Intelligent technology for eliminating, once finding there is the network address of conflict, it is set to the network address that does not conflict immediately;So that can
To effectively improve intelligent network degree, the cost of network design maintenance is substantially reduced, improve the efficiency that network design is safeguarded, be
The basic technology solution of further development and the realization of intelligent network.
It is the method for static network management address of not conflicting that interchanger is intelligently configured in a kind of above-mentioned LAN, including with
Lower step:
S1, initialization basic data:
Importing does not conflict temporary network address in the temporary network address list that do not conflict, and sets the casual network that do not conflict
All temporary network address that do not conflict in address list are for unoccupied state;
All interchangers are not detected in setting actual switch list;
The actual network address for setting all interchangers in actual switch list is sky, in setting actual switch list
All interchangers are the uniqueness detection state for not being fully completed all neighbor switch;
Without neighborhood data in setting switch neighbor relation list;
S2, one real data of interchanger of acquisition, and be added in actual switch list, concurrently set the interchanger
The network address be with unique trait in the current all interchangers for having found;
S3, the friendship that its neighbor switch is not yet fully completed currently the only Characteristics Detection is obtained from actual switch list
Change planes:
If the currently the only proterties state of all interchangers is not exclusive in actual switch list, any one is chosen
Interchanger;Otherwise, it is currently the only that currently the only proterties state is obtained from actual switch list, and its neighbor switch is not yet
It is fully completed the interchanger of uniqueness state-detection;
S4, judge whether find satisfactory interchanger in step S3:
If it is found, then entering step S5;Otherwise illustrate that all of network address is already set as the net not conflicted
Network address, jumps to step S17;
S5, the long-range real data for obtaining current SWITCH;
Whether S6, the long-range acquisition of judgement succeed:
Enter step S7 if success;Otherwise jump to step S14;
S7, renewal actual switch table data:If switch management mac addresses are not deposited in actual switch list
The exchange data is then being added in actual switch list;
S8, judge whether the network address repeats:If the network address for repeating, step S12 is jumped to;Otherwise enter step
Rapid S9;
S9, the long-range actual neighbors interchanger list for obtaining current SWITCH:To be repeated if be there occurs in epicycle detection
The network address be set to not conflict temporary network address phenomenon when, then need wait more than or equal to LLDP existence time, with
There is false neighbor information phenomenon when avoiding remotely obtaining the neighbor list information of interchanger to occur;
S10, renewal actual switch table data, and update switch neighbor relation list;
S11, the network address for determining whether repetition:If the network address not repeated, jumps to step S13;
Otherwise enter step S12;
S12, elimination recurrent network address:Multiple or all of recurrent network address is eliminated if desired, then needed
Blotter is multiple or all recurrent network addresses, then eliminates recurrent network address according to this step one by one;And eliminate weight
During the multiple network address, it is the interim net that do not conflict that can process any one or multiple interchangers with the recurrent network address
Network address;Every time, it is necessary to wait the regular hour, its effect is to ensure that friendship after one recurrent network address of interchanger of elimination
The setting changed planes truly comes into force, it is ensured that the interchanger real data that the later stage obtains is real;
If recurrent network address is temporary network address, all eliminate after the recurrent network address, this should not be rushed
Prominent temporary network address withdraws in time, that is, set the temporary network address as unoccupied state;Its effect is to avoid not conflicting
The not enough phenomenon of temporary network address and cause the whole network to be set to the network address that does not conflict and fail;
S13, current SWITCH is set to be fully completed the currently the only proterties in the network address of all neighbor switch
State is detected;
S14, judge current SWITCH whether necessary being, the 15th step is jumped to if necessary being;Otherwise jump to
16 steps;Determination methods include:
By switch neighbor relation list, the neighbor switch of the interchanger is searched;Then by neighbor switch
The network address, its actual neighbor list is obtained using remote access technology, if the mac addresses of current SWITCH are actual adjacent at this
In occupying list, then its still necessary being;
If current SWITCH has multiple neighbours in switch neighbor relation list, only when its all neighbor switch
Neighbor list information in not including current SWITCH mac information when, just can determine that the untrue presence of current SWITCH;
S15, the association attributes by technological adjustment master control main frame or associated switch so that master control main frame can be long-range
Access current SWITCH:If needing the attribute of the interchanger of adjustment related to looped network feature, it is necessary to according to looped network in LAN
Feature carries out the setting of correlation, leads to not remote access and exchanges to avoid related personalization looped network agreement from causing network storm
Machine phenomenon;
S16, the exchange data is deleted from actual switch list;
S17, the actual network address of all interchangers are the network address that the whole network is unique and does not conflict, and method terminates.
In the above method, the real data of interchanger includes switch management mac addresses and interchanger in the step S2
The management network address;And the real data method of one interchanger of acquisition is comprised the following steps:
By the real data for capturing connected link layer data LLDP Receive message interchangers;
By modes such as file input, network inputs, for method provides a real data for interchanger.
In the above method, the real data of current SWITCH includes switch management mac addresses and friendship in the step S5
Change planes and manage the network address.
In the above method, the determination methods in the step S8 are:
Check actual switch list in all exchange datas, if the same network address corresponded to two or
More than two effective interchanger mac addresses, then set the network address to repeat the network address, judge that there is recurrent network
Address;
In actual switch list, if interchanger does not have recurrent network address, the current of the interchanger is set
Uniqueness state is currently the only;If interchanger has recurrent network address, the currently the only proterties of the interchanger is set
State is not exclusive;
Whether the neighbor switch of the interchanger that inspection possesses recurrent network address has been fully completed its all neighbour is handed over
The currently the only property detection work in the network address changed planes, if it is, setting the neighbor switch not to be fully completed all neighbours
Occupy the currently the only property detection state in the network address of interchanger.
In the above method, the renewal actual switch table data in the step S10 includes what is compared by mac addresses
Method, if not comprising the mac addresses of certain interchanger in actual neighbors interchanger list in actual switch list, will
The exchange data is added in actual switch list.
Updating switch neighbor relation list in the above method, in the step S10 includes:
According to actual neighbors interchanger list update switch neighbor relation list so that in switch neighbor relation list
Switch neighbor relation truly can completely reflect the neighborhood of interchanger;
If this exchanged in the absence of the interchanger in actual switch neighbor list in switch neighbor relation list
The neighborhood of machine is added in switch neighbor relation list;
If in the absence of certain interchanger in switch neighbor relation list in actual switch neighbor list, exchanged
The exchange data is deleted in machine neighborhood list.
In the above method, determination methods include in the step S11:
Exchange data in neighbor switch list is compared with the exchange data in actual switch list,
If switch management mac addresses are different and with the identical network address, the network address is assert to repeat the network address;
Its effect is to judge whether different interchanger entities have the identical network address;
In actual switch list, if interchanger does not have recurrent network address, the current of the interchanger is set
Uniqueness state is currently the only;If interchanger has recurrent network address, the currently the only proterties of the interchanger is set
State is not exclusive;
Whether the neighbor switch of the interchanger that inspection possesses recurrent network address has been fully completed its all neighbour is handed over
The currently the only property detection work in the network address changed planes, if it is, setting the neighbor switch not to be fully completed all neighbours
Occupy the currently the only property detection state in the network address of interchanger;
If not having data in actual switch list, i.e., the interchanger does not have neighbor switch, then directly set it and do not have
There is recurrent network address, and jump to step S13.
In the above method, the step S12 is comprised the following steps:
The unappropriated temporary network address that do not conflict of selection:Selection marker is in the temporary network address list that do not conflict
The temporary network address of unoccupied state, then detects whether the address is occupied using the occupied detection technique in the network address
With if occupied, it is occupied to set the temporary network address that do not conflict, if unoccupied, selects this not
Conflict temporary network address;
It is the temporary network address that do not conflict using the remotely located interchanger in the network address for repeating;
The real data of interchanger is remotely obtained using the temporary network address that do not conflict;Its effect knows that this is set
Objectives interchanger, so as to provide real data to update actual switch list;
Update actual switch table data and switch neighbor relation list data;The current casual network that do not conflict is set
The seizure condition of address is occupied.
In the above method, the method for updating actual switch table data is comprised the following steps:
According to the interchanger real data that step S10 is obtained, judge that interchanger mac addresses are in actual switch list
No presence, if it does not exist, then adding the exchange data in actual switch list;If it is present modification has being somebody's turn to do
The network address of the interchanger of mac addresses is the temporary network address that this does not conflict;
The network address of the interchanger is set in actual switch list to possess currently the only characteristic;
The seizure condition for setting the current temporary network address that do not conflict is occupied.
In the above method, in the step S15, when each interchanger manufacturer, privately owned looped network protocol requirement has looped network soft kill point
When, then need to ensure that at least one looped network soft kill point will not just cause network storm in looped network each node switch.
The advantages of the present invention are:The present invention is handed over by all of webmaster type in intelligent allocation LAN
The static management network address changed planes is the static management network address not conflicted such that it is able to greatly improve network design maintenance
Efficiency, reduce network design safeguard cost, be intelligent network further development with realize establish solid technology base
Plinth, and possess advantages below:
1st, intelligence degree is high:
Method by being referred to using the present invention, can effectively improve intelligent network degree;The method that the present invention is referred to
In, as long as obtaining any one real data of interchanger, you can be rapidly completed all interchangers in whole LAN comprehensively
The configuration of the static management network address, and be not in the network address of any repetition, will not cause to be exchanged in maintenance management
Occurs network address collision problem during machine;And due to can intelligently eliminate it is various because configure difference lead to not access target
The phenomenon of interchanger.For the further development of intelligent network science and technology establishes solid reliable technical foundation with realization.
2nd, the cost that network design is safeguarded is reduced:
For only needing to occur without in a local network the application of conflict static network address, carried by using the present invention
And method, the cost of network configuration maintenance can be effectively reduced, in configuration or when safeguarding, it is only necessary to by interchanger according to setting
Meter connects electricity, and without carrying out manual configuration by technologies such as so-called web interfaces, and exchanged with maintenance in configuration
, it is necessary to technological know-how horizontal capability network specialty technical staff higher during machine, it is evident that by using mentioned by the present invention
Method can substantially reduce network design maintenance cost;
3rd, the efficiency that network design is safeguarded is improved
When network configuration is carried out in prior art basis, being safeguarded, if necessary to for all of network ground in LAN
Location is configured to the static network address not conflicted, it is necessary to by the way that manually the network address is modified one by one, and at this
During it is also possible to there is artificial error accidentally and causing configuration failure;The especially maintenance in later stage, if gone out
The recurrent network address of static state is showed, arrangement abnormalities can be caused difficult, What is more, cannot be accessed if there is target switch
In the case of, manual type is very difficult to find and corrects, and causes the inefficiency of network design and maintenance;
4th, it is applied widely
Method mentioned by the present invention is applied widely, can be applied to the LAN of heterogeneous networks structure, for example:Bus
Type network structure, ring network structure, Star Network structure, heterogeneous network structure;Various two layers of webmaster types can be applied to
LAN constructed by interchanger, three-tier switch;Under various network topology structures, the method mentioned by the present invention can
It is applicable.
5th, cost is implemented small
The method referred to using the present invention, various webmaster type interchanger prior arts disclosure satisfy that requirement, i.e. the present invention
On the basis of mentioned method is based on existing network industry technology, and makes too many variation without interchanger manufacturer and change,
Without doing some configuration works for interchanger in advance, it is only necessary to which appear on the scene configuration.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiment of the invention is further described.Following examples are only
For clearly illustrating technical scheme, and can not be limited the scope of the invention with this.
First, on method and embodiments thereof involved in the present invention:
As shown in figure 1, being the static network pipe that do not conflict this invention describes interchanger is intelligently configured in a kind of 1, LAN
The method for managing address, it is characterised in that comprise the following steps:
S1, initialization basic data:
Importing does not conflict temporary network address in the temporary network address list that do not conflict, and sets the casual network that do not conflict
All temporary network address that do not conflict in address list are for unoccupied state;
All interchangers are not detected in setting actual switch list;
The actual network address for setting all interchangers in actual switch list is sky, in setting actual switch list
All interchangers are the uniqueness detection state for not being fully completed all neighbor switch;
Without neighborhood data in setting switch neighbor relation list.
S2, one real data of interchanger of acquisition, and be added in actual switch list, concurrently set the interchanger
The network address be with unique trait in the current all interchangers for having found;Its effect is that this method at least needs one
The real data of platform interchanger.
Wherein, the real data of interchanger includes switch management mac addresses and the switch management network address;And obtain
The real data method of one interchanger is comprised the following steps:
(1) by capturing the real data of connected link layer data LLDP Receive message interchangers;
(2) by modes such as file input, network inputs, for method provides a real data for interchanger.
S3, the friendship that its neighbor switch is not yet fully completed currently the only Characteristics Detection is obtained from actual switch list
Change planes:
If the currently the only proterties state of all interchangers is not exclusive in actual switch list, any one is chosen
Interchanger;Otherwise, it is currently the only that currently the only proterties state is obtained from actual switch list, and its neighbor switch is not yet
It is fully completed the interchanger of uniqueness state-detection;
S4, judge whether find satisfactory interchanger in step S3:Its effect is to determine whether all of actual friendship
Change planes and be each configured to the network address that do not conflict;If it is found, then entering step S5;Otherwise illustrate all of network address
It is arranged to the network address not conflicted, jumps to step S17;
S5, the long-range real data for obtaining current SWITCH;And the real data of current SWITCH includes switch management
Mac addresses and the switch management network address.
Whether S6, the long-range acquisition of judgement succeed:Enter step S7 if success;Otherwise jump to step S14;Its effect
It is to judge whether master control main frame can remotely access the interchanger and obtain data by the network address;If can not remotely obtain
Take, then need to judge the interchanger for possessing the network address whether necessary being;
S7, renewal actual switch table data:If switch management mac addresses are not deposited in actual switch list
, then the exchange data is added in actual switch list, its effect is to ensure that the data energy in actual switch list
The real data of enough actual reflection interchangers;
S8, judge whether the network address repeats;Whether its effect is to judge there is repetition in currently practical interchanger list
The network address;If the network address for repeating, step S12 is jumped to;Otherwise enter step S9;
Wherein, the method for judgement is comprised the following steps:
(1) all exchange datas in actual switch list are checked, if the same network address has corresponded to two
Or more than two effective interchanger mac addresses, then the network address is set to repeat the network address, judges that there is repetition
The network address;
(2) in actual switch list, if interchanger does not have recurrent network address, working as the interchanger is set
Preceding uniqueness state is currently the only;If interchanger has recurrent network address, the currently the only property of the interchanger is set
State is not exclusive;
(3) check whether the neighbor switch of the interchanger for possessing recurrent network address has been fully completed its all neighbour
The currently the only property detection work in the network address of interchanger, if it is, it is all not to be fully completed to set the neighbor switch
The currently the only property detection state in the network address of neighbor switch.
S9, the long-range actual neighbors interchanger list for obtaining current SWITCH:If epicycle detection (epicycle detection refer to from
This step to next time through almanac step process) in there occurs and show the recurrent network address temporary network address that is set to not conflict
As when, then need wait more than or equal to LLDP existence time, to avoid remotely obtaining during the neighbor list information of interchanger
Occur in the presence of false neighbor information phenomenon;Its effect is all neighbor switch information for obtaining current SWITCH;
S10, renewal actual switch table data, and update switch neighbor relation list;Update actual switch row
The effect of table data is the real data of the current acquired interchanger of true reflection;And update switch neighbor relation list data
Effect be the current acquired interchanger of true complete reflection actual neighbors relation.
Wherein, updating actual switch table data includes:The method compared by mac addresses, if actual switch
Then the exchange data is not added to comprising the mac addresses of certain interchanger in actual neighbors interchanger list in list
In actual switch list.
Meanwhile, updating switch neighbor relation list includes:
According to actual neighbors interchanger list update switch neighbor relation list so that in switch neighbor relation list
Switch neighbor relation truly can completely reflect the neighborhood of interchanger;
If this exchanged in the absence of the interchanger in actual switch neighbor list in switch neighbor relation list
The neighborhood of machine is added in switch neighbor relation list;
If in the absence of certain interchanger in switch neighbor relation list in actual switch neighbor list, exchanged
The exchange data is deleted in machine neighborhood list.
S11, the network address for determining whether repetition;If the network address not repeated, jumps to step S13;
Otherwise enter step S12;
Wherein, determination methods include:
Exchange data in neighbor switch list is compared with the exchange data in actual switch list,
If switch management mac addresses are different and with the identical network address, the network address is assert to repeat the network address;
Its effect is to judge whether different interchanger entities have the identical network address.
In actual switch list, if interchanger does not have recurrent network address, the current of the interchanger is set
Uniqueness state is currently the only;If interchanger has recurrent network address, the currently the only proterties of the interchanger is set
State is not exclusive;
Whether the neighbor switch of the interchanger that inspection possesses recurrent network address has been fully completed its all neighbour is handed over
The currently the only property detection work in the network address changed planes, if it is, setting the neighbor switch not to be fully completed all neighbours
Occupy the currently the only property detection state in the network address of interchanger;
If not having data in actual switch list, i.e., the interchanger does not have neighbor switch, then directly set it and do not have
There is recurrent network address, jump to the 13rd step.
S12, elimination recurrent network address:Multiple or all of recurrent network address is eliminated if desired, then needed
Blotter is multiple or all recurrent network addresses, then eliminates recurrent network address according to this step one by one;And eliminate weight
During the multiple network address, it is the interim net that do not conflict that can process any one or multiple interchangers with the recurrent network address
Network address;Every time, it is necessary to wait the regular hour, its effect is to ensure that friendship after one recurrent network address of interchanger of elimination
The setting changed planes truly comes into force, it is ensured that the interchanger real data that the later stage obtains is real;The specific time root for needing to wait
Depending on specific interchanger characteristic in itself
If recurrent network address is temporary network address, all eliminate after the recurrent network address, this should not be rushed
Prominent temporary network address withdraws in time, that is, set the temporary network address as unoccupied state;Its effect is to avoid not conflicting
The not enough phenomenon of temporary network address and cause the whole network to be set to the network address that does not conflict and fail;
Meanwhile, multiple recurrent network addresses have currently been may be found that, any one or multiple can be processed in this step
Recurrent network address.
The step specifically includes following steps:
The unappropriated temporary network address that do not conflict of selection:Selection marker is in the temporary network address list that do not conflict
The temporary network address of unoccupied state, then detects whether the address is occupied using the occupied detection technique in the network address
With if occupied, it is occupied to set the temporary network address that do not conflict, if unoccupied, selects this not
Conflict temporary network address.When its effect is to ensure that the network address for setting interchanger, other set in the network address and network
The standby network address does not conflict.
The occupied detection technique in the network address is included but is not limited to:Ping technologies, remote access technology etc..
It is the temporary network address that do not conflict using the remotely located interchanger in the network address for repeating;Its effect is to eliminate to exchange
The repeat property of the machine network address;
The real data of interchanger is remotely obtained using the temporary network address that do not conflict;Its effect knows that this is set
Objectives interchanger, so as to provide real data to update actual switch list.
The real data of interchanger includes but is not limited to:Interchanger mac addresses, network address etc.;
Update actual switch table data and switch neighbor relation list data;The current casual network that do not conflict is set
The seizure condition of address is occupied;The method of the renewal actual switch table data is comprised the following steps:
(1) the interchanger real data obtained according to step S10, judges interchanger mac addresses in actual switch list
In whether there is, if it does not exist, then add the exchange data (including but not limited to interchanger mac addresses, this does not conflict and faces
When the network address) in actual switch list;If it is present the network address of interchanger of the modification with the mac addresses
For the temporary network address that this does not conflict;
(2) network address of the interchanger is set in actual switch list to possess currently the only characteristic;Its effect
It is that the network address for truly reflecting the interchanger has the characteristic of uniqueness in the interchanger for currently being found;
(3) it is occupied to set the seizure condition of the current temporary network address that do not conflict, and its effect is subsequently to exist
Selection is available do not conflict temporary network address when improve recall precision, improve and selecting the available temporary network address that do not conflict
When operation efficiency.
S13, current SWITCH is set to be fully completed the currently the only proterties in the network address of all neighbor switch
State is detected;Its effect is to avoid the duplicate detection from causing method mentioned by the present invention to enter useless endless loop.
S14, judge current SWITCH whether necessary being, the 15th step is jumped to if necessary being;Otherwise jump to
16 steps;Specifically include:
By switch neighbor relation list, the neighbor switch of the interchanger is searched;Then by neighbor switch
The network address, its actual neighbor list is obtained using remote access technology, if the mac addresses of current SWITCH are actual adjacent at this
In occupying list, then its still necessary being;
If current SWITCH has multiple neighbours in switch neighbor relation list, only when its all neighbor switch
Neighbor list information in not including current SWITCH mac information when, just can determine that the untrue presence of current SWITCH.
S15, the association attributes by technological adjustment master control main frame or associated switch so that master control main frame can be long-range
Access current SWITCH:If needing the attribute of the interchanger of adjustment related to looped network feature, it is necessary to according to looped network in LAN
Feature carries out the setting of correlation, leads to not remote access and exchanges to avoid related personalization looped network agreement from causing network storm
Machine phenomenon;Its effect is in the interface attributes or inconsistent network address attribute of interchanger, it may appear that the neighbour of necessary being
Occupy interchanger and the interchanger cannot be remotely accessed, what is eliminated interchanger necessary being by technological means but cannot access shows
As.
Preferably, when the privately owned looped network protocol requirement of each interchanger manufacturer has looped network soft kill point, then need to ensure in ring
At least one looped network soft kill point will not just cause network storm in netting each node switch.
S16, the exchange data is deleted from actual switch list;Its effect is to avoid invalid computing, to ensure
Method mentioned by the present invention will not enter useless endless loop and cause the method mentioned by the present invention to be unable to reach target;
S17, the actual network address of all interchangers are the network address that the whole network is unique and does not conflict, and method terminates.
As shown in Fig. 2 the first embodiment that interchanger is intelligently configured in the present invention is comprised the following steps:
S1, initialization basic data;It is specifically including but not limited to:
Obtain unduplicated temporary network address list;TempNetAddressList is assumed to be, the list is characterized in
In all of network address do not repeat, and its quantity should be more than LAN in need configure interchanger quantity;Its
Effect is when the actual network address of interchanger in finding LAN is repeated, it is necessary to obtain unduplicated interim from the list
The network address;
All of temporary network address in TempNetAddressList is set to unoccupied, it is assumed that indicated
IsUsedFlag is set to false;
Assuming that actual switch list is FactEACNList, it is sky, i.e., the reality of all interchangers to initialize the list
Data are sky;
The currently the only proterties state of all interchangers is not exclusive in setting FactEACNList, it is assumed that set its mark
IsSuccessChecked is false, and its neighbor list is not detected, it is assumed that set its mark
IsSuccessAllneighborChecked is false;Assuming that its actual switch network address is FactNetAddress,
It is initialized as sky;Assuming that its actual management mac addresses are MacAddress, sky is initialized as;
Assuming that switch neighbor relation list is EACNNeighborList, it is sky, i.e., all exchanges to initialize the list
Machine does not have neighbor switch.
Assuming that recurrent network address list is RepeatNetAddressList, sky is initialized as, i.e., no recurrent network
Address;
S2, by capturing LLDP Receive message main frame neighboring switch relevant informations;Exchange data is added to
In FactEACNList;The mark isSuccessChecked for setting the interchanger is true;
S3, obtain current its neighbor switch from FactEACNList and not yet complete detection and the interchanger for setting, its
Specific method is:
It is true and mark that any one station symbol will isSuccessChecked is selected from FactEACNList
IsSuccessAllneighborChecked is the interchanger of false.
S4, whether findIf finding currently the only and not being fully completed what its all neighbor switch uniqueness confirmed
Interchanger, it is assumed that the interchanger is EACN_Current, it is assumed that its network address is LocalNetAddress, then jump to step
Rapid S5;If do not found, step S27 is jumped to;
S5, interchanger real data is remotely obtained by LocalNetAddress;
S6, remotely obtain successfullyIf remotely obtained successfully, it is assumed that its mac address is CurrentMac, then jump to step
Rapid S7, otherwise jumps to step S24;
S7, the network address repeatBy by CurrentMac and LocalNetAddress and actual switch list
MacAddress and FactNetAddress compare, if there is MacAddress be not equal to TargetMac and
LocalNetAddress is equal to FactNetAddress, judges there is recurrent network address, then jump to step S22;Otherwise jump
Go to step S8;
S8, the long-range actual neighbors list for obtaining interchanger;Assuming that actual switch list is FactNeighborList;
S9, renewal FactEACNList and EACNNeighborList data;Specific method is:
(1) if the interchanger in FactNeighborList does not exist in FactEACNList, these are exchanged
Machine is added in FactEACNList;
(2) will reflect in the neighborhood of EACN_Current in EACNNeighborList and FactNeighborList
Neighborhood correspond.
S10, there is recurrent network addressIf there is then jumping to step S11;Otherwise jump to step S23;
Specific method is:
(1) whether corresponded to an effective FactNetAddress in EACNNeighborList multiple effective
The situation of MacAddress, if being then determined that recurrent network address;Otherwise it is judged in the absence of recurrent network address.
(2) in FactEACNList, if interchanger does not have recurrent network address, the mark of the interchanger is set
IsSuccessChecked is true;If interchanger has recurrent network address, the mark of the interchanger is set
IsSuccessChecked is false;
(3) mark of the neighbor switch of the interchanger for possessing recurrent network address is checked
Whether isSuccessAllneighborChecked is true, if it is, setting
IsSuccessAllneighborChecked is false.
(4) if not having data in actual switch list, i.e., the interchanger does not have neighbor switch, then directly set it
There is no recurrent network address, jump to the 23rd step.
S11, renewal RepeatNetAddressList data;Specific method is:
All recurrent network addresses non-existent in RepeatNetAddressList are added to
In RepeatNetAddressList;
S12, select from RepeatNetAddressList the network address that repeats;
S13, judge whether to find;If it is found, being assumed to be RepeatNetAddress, step S14 is jumped to;Otherwise jump
Go to step S3;
S14, the unappropriated temporary network address that do not conflict is selected from TempNetAddressList
TempNetAddress;
S15, using RepeatNetAddress by the switch configuration be TempNetAddress;
S16, the mac addresses that set interchanger is remotely obtained by TempNetAddress;It is assumed to be CurrentMac;
S17, renewal FactEACNList data;If CurrentMac does not exist in FactEACNList, add
Interchanger sets its MacAddress for CurrentMac in FactEACNList, and its FactNetAddress is
TempNetAddress.If finding interchangers of the MacAddress equal to CurrentMac in FactEACNList, it is changed
FactNetAddress is TempNetAddress.
Also there is the interchanger that the network address is RepeatNetAddress in S18, networkIf there is then jumping to
Step S14;Otherwise jump to step S19;
S19, RepeatNetAddress are the temporary network address that do not conflictIf it is step S21 is jumped to;Otherwise
Jump to step S20;
S20, RepeatNetAddress is deleted from RepeatNetAddressList;
S21, the mark isUsedFlag of setting RepeatNetAddress are false;Specific method be
To not conflict mark isUsedFlag of the temporary network address equal to RepeatNetAddress in TempNetAddressList
It is set to false;
S22, renewal FactEACNList data;Addition recurrent network address is in RepeatNetAddressList;
Specific method is:
If CurrentMac does not exist in FactEACNList, the exchange data is added to
In FactEACNList, and it is CurrentMac to set the MacAddress of the interchanger, and sets it
FactNetAddress is LocalNetAddress;
The FactNetAddress for setting all interchangers in FactEACNList is the interchanger of LocalNetAddress
Mark isSuccessChecked be false.
The mark of all interchangers adjacent with EACN_Current in inspection EACNNeighborList
Whether isSuccessAllneighborChecked is true, if true, then sets the mark of the interchanger
IsSuccessAllneighborChecked is false,
If not existing LocalNetAddress in RepeatNetAddressList, the network address is added to
In RepeatNetAddressList.
S23, the mark isSuccessAllneighborChecked of current SWITCH EACN_Current is set to
true;The mark isSuccessChecked of all neighbor switch is set to true;
S24, judge whether necessary being;Step S26 is jumped to if necessary being;Otherwise jump to step S25;
Specific method is:
By EACNNeighborList, the neighbor switch of EACN_Current is searched, it is assumed that be EACN_
Neighbor;Then by the network address of EACN_Neighbor, EACN_Neighbor realities are obtained using remote access technology
Border neighbor list, if the mac addresses of EACN_Current are in the actual neighbors list, its still necessary being.
If EACN_Current has multiple neighbours in EACNNeighborList, only as its all of EACN_
When not including the mac information of EACN_Current in the neighbor list information of Neighbor, EACN_ can be judged
The untrue presence of Current.
S25, interchanger EACN_Current is deleted from FactEACNList;
S26, the interface attributes of change EACN_Neighbor can access EACN_Current to reach by the network address
Requirement;
S27, the actual network address of all interchangers are the network address that the whole network is unique and does not conflict, and flow terminates.
2nd, on data structure involved in the present invention:
1st, actual switch list
Its effect is to reflect all actual switch for currently being found, including but not limited to data below:
Interchanger mac addresses:Its effect is unique designation interchanger physical entity;Can also ban otherwise
The data;Such as interchanger regular coding, interchanger fixed name, the nodal information in switch logic structure etc.;No matter
How not affect and be conducive to claim of the invention;
Interchanger actual network address:Its effect is can to remotely access the interchanger by the network address, is network
The necessary data of layer communication;
Currently the only proterties state:Its effect be show the network address of the interchanger temporarily with the actual friendship crossed after testing
Change planes and do not conflict;The mark can not influence to be conducive to the present invention by the data of other on logical meaning or representation
Claim;
All currently the only proterties states in the neighbor switch network address:Its effect is that all neighbours for showing the interchanger hand over
The network address changed planes does not conflict temporarily with the actual switch crossed after testing;The data either physical presence or logic
Exist in meaning, the data must be all used in the present invention, regardless of its form of expression, do not influence to be conducive to the present invention
Claim;
2nd, switch neighbor relation list
The list can also be able to be neighborhood list on logical meaning with physical presence, for example, do not need caching row
Table and obtain actual neighbor list from interchanger by the network address when needing, regardless of its form of expression,
Do not influence to be conducive to claim of the invention;
The list includes but is not limited to data below:
Interchanger mac addresses:Its effect is unique designation interchanger physical entity;Can also ban otherwise
The data;Such as interchanger regular coding, interchanger fixed name, the nodal information in switch logic structure etc.;No matter
How not affect and be conducive to claim of the invention;
Switch neighbor mac lists:Its effect is all neighbor switch for actually reflecting the interchanger;
Explanation:Actual switch list can merge into a list with switch neighbor relation list, it is also possible to enter again
Row is subdivided into multiple tables, does not influence to be originally conducive to the claim of invention;
3rd, do not conflict temporary network address list
It is characterized in that all of network address in the list does not repeat;Including but not limited to data below:
Do not conflict temporary network address:When its effect is the network address for duplicating in a local network, these are repeated
The network address is set to the temporary network address that do not conflict that this is not used by;
Occupied mark:The temporary network address physical presence in a local network if this does not conflict, the address is occupied,
The network address can not be selected when temporary network address is needed;If the network address is not used by this operation, but
Can not illustrate that the network address just can be necessarily the network address that does not conflict for setting interchanger, it is necessary to will also be by skill
Art means detect whether the network address is taken by other equipment in network, if it is possible to occupied, then cannot to use, no
Then can be using;Once it was found that physical presence temporary network address in a network, then should be by the traffic sign placement just
Occupied state;
4th, the actual network address list for repeating
Its effect is the network address that record is repeated, the real network that will directly be repeated by the list during to need
Address is set to the interim unduplicated network address;The list can be with physical presence, it is also possible to exist on logical meaning, and such as one
Denier finds there is recurrent network address, immediately begins to for the network address to be set to the interim network address not conflicted, then its table
Existing form is exactly a variable or individual data;Regardless of its form of expression, do not influence to be conducive to power of the invention
Profit is required;Its data item includes but is not limited to data below:
The actual network address for repeating:Its effect is exactly the actual net for showing to have more than two interchangers in a local network
Network address is the network address.
3rd, the technical characterstic that the present invention can be realized:
1st, its neighbor list information and target switch real data are remotely obtained by interchanger actual network address
Method, the interchanger is added to actual switch list once non-existent interchanger in actual switch list is found
In, constantly obtain more actual switch.Its effect is so that the method that the present invention is referred to can be by all friendships in LAN
Change planes and all detect and eliminate recurrent network address, be finally reached and all interchangers in LAN are configured to the static network not conflicted
The target of network address.
2nd, by the real network in the long-range interchanger real data for obtaining, the long-range switch neighbor list information for obtaining
Address carries out collision detection with data in actual switch list.Its effect is to find and obtain recurrent network address, to obtain
The target of elimination recurrent network address must be needed.
3rd, persistently eliminate recurrent network address untill all-network address does not conflict;
4th, first actual exchange machine information, including actual network address, actual mac addresses are obtained;
When the 5th, causing the exception of access target interchanger because configuring difference between master control main frame, interchanger, can be by adjusting
Whole master control main frame, the relevant configuration of interchanger reach the purpose of addressable target switch;For example it is as follows:
(1) target that cannot remotely access brought because the interface VLan attributes of neighbor switch are inconsistent is eliminated to exchange
Machine phenomenon;
(2) eliminate because between neighbor switch networking attribute it is inconsistent bring cannot remotely access target switch show
As;
(3) eliminate and lead to not remotely access target switch because interchanger actual network address is not belonging to default subnet
Phenomenon;
(4) eliminate and lead to not remote access target exchange because of false neighbor information after neighbor switch goes offline disconnection
The phenomenon of machine;
(5) eliminate causes constantly to repeat remotely located target switch not repeat temporarily because there was only backup network address
The phenomenon of the network address;
(6) target switch actual network address is eliminated to change and lead to not remotely access showing for target switch
As.
6th, when cannot remotely obtain interchanger real data, judge interchanger whether necessary being, if untrue deposit
, then the invalid interchanger is deleted from actual switch list, i.e., computing no longer is done to the interchanger;If truly deposited
Then by technological adjustment master control main frame or the association attributes of associated switch so that master control main frame can be remotely accessed works as
Preceding interchanger.Its effect be using the method processing procedure that refers to of the present invention in, if interchanger goes offline or has accessed it
During the interchanger of his distinct interface attribute, method still can smoothly reach goal of the invention.
7th, eliminate every time in recurrent network address process, it is necessary to select the unappropriated temporary network address that do not conflict, and
And the switch remote that any one has the recurrent network address is set to the temporary network address that do not conflict, then using should
The temporary network address that do not conflict remotely obtains interchanger real data, and actual exchange is updated according to the interchanger real data for obtaining
Exchange data in machine list.
4th, adaptable scene of the invention
1st, present embodiments can apply to the static network address dynamic and intelligent distribution of Ethernet switch in track transportation industry
In;
2nd, present embodiments can apply to the static network address dynamic and intelligent distribution of Ethernet switch in video monitoring system
In;
3rd, the present invention can use power industry, intelligent building, shipbuilding industry, water conservancy industry, piping lane industry, wind-powered electricity generation row
The static network address dynamic and intelligent of Ethernet switch in all ethernet network topological structures of industry, track transportation industry etc.
In distribution technique.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the invention
Within god and principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.