Background technology
Communication construction based on motherboard once was widely adopted, but along with gradually becoming strong of system and improving constantly of configuration flexibility, and under a kind of like this hope drives, promptly improve mean time to repair and be facilitating property of system upgrade, making becomes the main flow of communication construction gradually based on the development of passive backplane structure.
Make the upgrading of system based on the communication construction of passive backplane, backup is more flexible.Passive backplane relates to a backboard communication issue.CompactPCI in the past few years (compact PCI, Compact PeripheralComponent Interconnect) standard is quite ripe as backboard communication.And exploring new platform and using in order to carrying next generation communication and data.Industry was once attempting the modification of CompactPCI 2.X standard is satisfied the demand of telecommunication market therebetween, but only obtained limited effect, have to finally admit that original CompactPCI standard can not satisfy the requirement of telecommunications application to veneer space, power consumption, bandwidth, system management, therefore, new standard is then arisen at the historic moment.
Ethernet technology not only is widely used on local area network (LAN) and wide area network, and also demonstrates powerful advantage on intrasystem communication between plates.Ethernet is as backboard communication, and it has used the exchanged form of hub-and-spoke configuration.Exchange is typical parallel organization, is used in the switch as matrix form more, and in two port exchange messages, can have influence on the work of other port, that is to say, the exchange of each port is simultaneously.Obviously, from communication efficiency, switching fabric is more much better than shared structure.Therefore in existing a lot of systems, Ethernet is often carrying data communication and control channel simultaneously.
How could that system effectively manage these ethernet channels? how to monitor these ethernet channels? switching channel how when monitoring fault?
Based on the data link of Ethernet exchange, the existing general selector of similar either-or switch that adopts switches as electronic switch.Its technical disadvantages is: switching time is long, can not monitor the backup link situation.
Therefore, how solving the switching of carrying out ethernet data-link in redundancy backup, and the detection problem of link, to make things convenient for N+1 or N+N backup management, is one of the applicant's technical problem that need endeavour to solve.
Summary of the invention
The present invention aims to provide a kind of seamless switch-over system and method thereof of the data link based on Ethernet exchange, and makes the redundancy backup management and link monitoring is more reliable and make things convenient for.
A kind of data link seamless switch-over system based on the Ethernet exchange provided by the present invention is characterized in that comprising: is the switching network that node forms based on backboard with main usefulness, standby two power boards; And be divided into two kinds and every kind of source plate and purpose plates be divided into again n main with and the individual standby business board of m, m≤n, wherein: every business board all has two network interfaces to be connected to two power boards respectively.
In said system, business board and power board all contain two layers of Ethernet switching chip, and: described working traffic plate and main with all disposing static MAC (media access controller) address, dynamic MAC address and the sound attitude MAC Address that cooperates its two layers of Ethernet switching chip operations in the power board; All dispose the static mac address and the sound attitude MAC Address that cooperate its two layers of Ethernet switching chip to carry out the data link monitoring in described standby business board and the standby power board.
In said system, dynamic MAC address, be used to realize transfer of data, and be implemented in and main reach data link by the identical dynamic MAC address of its standby plate configuration when breaking down and seamlessly switch to this standby plate, so that providing of system business to be provided with power board or business board.
In said system, static mac address is used for realizing that the data link to operational system monitors in real time.
In said system, sound attitude MAC Address and static mac address one are used from realization the data link in the operational system are carried out fault location.
In said system, the dynamic MAC address structure is to carry out permutation and combination by respective flag position that characterizes MAC type, logic number, PHY, MAC and switch type content and spare bits to be formed.
In said system, the static mac address structure is to carry out permutation and combination by respective flag position that characterizes MAC type, machine case number (CN), slot number, PHY (physical layer device), MAC, power board number and switch type content and spare bits to be formed.
In said system, sound attitude MAC Address structure is to carry out permutation and combination by respective flag position that characterizes MAC type, machine case number (CN), slot number, PHY, MAC and switch type content and spare bits to be formed.
The present invention also provides a kind of business board, it is characterized in that: it contains dynamic MAC address, static mac address, the sound attitude MAC Address of this chip operation of cooperation of two layers of Ethernet switching chip and configuration, wherein: dynamic MAC address is used to realize transfer of data, and be implemented in and main reach data link by the identical dynamic MAC address of its standby plate configuration when breaking down with power board or business board and seamlessly switch to this standby plate, so that providing of system business to be provided; Static mac address is used for realizing that the data link to operational system monitors in real time; Sound attitude MAC Address and static mac address one are used from realization the data link in the operational system are carried out fault location.
The present invention provides a kind of data link seamless handover method at last, it is characterized in that: when the main board in the system or link occur reaching when setting other fault of level, carrying out corresponding integrated circuit board switches, promptly use dynamic MAC address to reconfigure the two layer Ethernet switching chip of corresponding data link, switch the recovery of back data link to guarantee integrated circuit board to standby plate; When system normally moves, utilization static mac address and sound attitude MAC Address are monitored the data link between the internal system integrated circuit board, when if the master breaks down with data link, determine that by static mac address source plate determines unique purpose plate to the unique physical pathway and the sound attitude MAC Address of purpose plate, carry out fault location, the triggering integrated circuit board switches, and continues data path between the monitor board card after switching is finished.
Owing to adopted above-mentioned technical solution, the present invention provides the support of physical layer for the fully redundance backup scenario of communication products, make the control channel of product inside and data channel integrated circuit board break down and situation about switching under still keep available, and make and be controlled at switching time of product 1/10th seconds ranks.
Embodiment
Basic thought of the present invention is: use two layers of Ethernet of three grades to exchange the switching problem of realizing ethernet data-link, the utilization dynamic MAC address, static mac address, the combination of sound attitude MAC Address, make the redundancy backup management, what link monitoring became is reliable and convenient.
One, the present invention has adopted a kind of the exchange based on two layers of Ethernet to realize above-mentioned functions.
Referring to Fig. 1, the present invention, promptly based on the data link seamless switch-over system of Ethernet exchange, central authorities are the switching networks based on backboard 101, and primary and backup two power boards 102,103 are arranged, and are the dual star topology structure.Other four is business board, is respectively source plate 104 and purpose plate 105, and their standby integrated circuit board 106,107, every business board all has two network interfaces to link two power boards respectively, certainly business board may be far above four in real system, and for simplicity, present embodiment is only enumerated four.
By prior art as can be known, the exchange of two layers of exchange is based on two layers, just based on MAC Address and VLAN (VLAN) number.
In this system, Ethernet all is an internal transmission usefulness, and the integrated circuit board (being business board and power board) that inserts all is known and controlled.So can be according to the address of the every business board of requirement definition of system and the trend of control data stream.
Because all integrated circuit boards can be in the vlan domain in the system.Just because of above reason, all Ethernet exchanges all are in the self study illegal state.All MAC Address of two layers of exchange all are in the static configuration state.
What need indicate is, the static address that above-mentioned static configuration relates to below following, dynamic address are different, and the former refers to two layers of MAC Address configuration mode in the exchange, and the latter refers to the MAC Address collocation strategy of system.
All static address of system, dynamic address, sound attitude address all be static configuration in two layers of exchange, thereby make address all can not wear out (that is: static configuration, can be not deleted) because of not using.
Unified standard is all used in the MAC Address distribution of every block of plate.All MAC Address that are configured in two layers of exchange all are divided into static address, dynamic address, sound attitude address.
Two, MAC Address classification and structure
1. dynamic MAC address
The system redundancy administration module that is equipped with in the General System (that is: the active and standby initiation center with decision center and switching of integrated circuit board) is realized the switching when integrated circuit board is made mistakes.This Redundancy Management System is logic number of business board distribution of each operation in system initialisation phase, standby integrated circuit board and the main identical logic number of business board use with operation.This logic number also is reflected in the dynamic MAC address of this business board simultaneously.
The dynamic MAC address structure is mainly to carry out permutation and combination by respective flag position that characterizes MAC (media access controller) type, logic number, PHY (physical layer device), MAC and switch type content and spare bits to be formed.
The embodiment such as the following table of concrete dynamic MAC address structure:
Explanation
|
Bit (Bits) |
Length |
Support number |
Describe |
The broadcasting group |
47-41 |
7 |
128 |
|
Broadcast flag |
40 |
1 |
N/A |
|
Keep |
39-38 |
2 |
|
|
Explanation
|
Bit (Bits) |
Length |
Support number |
Describe |
The MAC type |
37-36 |
2 |
3 |
00=static state, the static purpose of 01=, dynamic exchange, 11=is dynamic |
Keep |
31-29 |
4 |
|
|
Logic number |
28-24 |
8 |
160 |
Support 8 cabinet cascades, 20 groove positions of each cabinet |
PHY |
23-16 |
8 |
>32 |
256 PHY are supported in each groove position |
Keep |
15-12 |
4 |
|
|
MAC |
11-8 |
4 |
3 |
Each PHY supports 16 MAC Address configurations |
Keep |
7-2 |
6 |
|
|
Keep
|
1 |
1 |
|
|
Switch type |
0 |
1 |
2 |
The exchange of 0=controlling platform; The exchange of 1=data platform |
|
Total: |
48 |
|
|
We know from table, and dynamic MAC address is irrelevant with the cabinet groove position of physics, and relevant with the logic number of business board, the logic number of the business board of each operation may change according to the operation of system.This change also can change the trend of data link.
System knows that in advance those business boards are running statuses, and those belong to Status of Backups.System also only is the business board assignment logic of operation number, the identical logic number of working traffic plate use of standby integrated circuit board and operation.In case which business board system's operation can know in running status by the system redundancy administration module, which business board is at stand-by state.Data communication between business board or power board realizes by the integrated circuit board of these running statuses with dynamic MAC address.
Referring to Fig. 2, break down or mainly break down with power board when main with the purpose plate, data link will switch on the standby integrated circuit board, because the standby integrated circuit board of purpose plate has used and the identical logic number of former main board card, only need carry out reconfiguring to two layers of Ethernet switching chip of the integrated circuit board of current switching based on dynamic MAC, and do not need packet is carried out any renewal, just can utilize dynamic MAC address to realize that data link seamlessly switches on the backup plate from the plank of fault.
2. static mac address
All static mac address all dispose at the business board initial phase, and in the whole life continuously effective of integrated circuit board and constant, therefore the static physical address of each physical traffic plate is understood very much by system. system's run duration does not have any variation. referring to Fig. 3, if source plate is sent out a test pack to the purpose plate according to static mac address, if the path that this bag is walked all is constant at any time. power board or purpose plate failure at this moment causes bag can't arrive the destination, transmission or the reception that any switching tries hard to guarantee test pack do not done by system, and system can be used for monitoring Link State according to this specific character.
How does that system realize link state monitoring according to static mac address? look at the structure and the collocation method of static mac address below.
The static mac address structure is to carry out permutation and combination by respective flag position that characterizes MAC type, machine case number (CN), slot number, PHY, MAC, power board number and switch type content and spare bits to be formed.
Concrete static mac address structure such as following table:
Explanation
|
Bits |
Length |
Support number |
Describe |
The broadcasting group |
47-41 |
7 |
128 |
|
Broadcast flag |
40 |
1 |
N/A |
|
Keep |
39-38 |
2 |
|
|
The MAC type |
37-36 |
2 |
3 |
00=static state, the static purpose of 01=, dynamic exchange, 11=is dynamic |
The machine case number (CN) |
35-32 |
4 |
8 |
The multiple cases configuration is supported |
Keep |
31-29 |
3 |
|
|
Slot number |
28-24 |
5 |
20 |
Each cabinet is supported 32 groove position configurations |
PHY |
23-16 |
8 |
>32 |
256 PHY are supported in each groove position |
Keep |
15-12 |
4 |
|
|
MAC |
11-8 |
4 |
3 |
Each PHY supports 16 MAC Address configurations |
Keep |
7-2 |
6 |
|
|
Power board number |
1 |
1 |
2 |
The 0=0 power board; The 1=1 power board. |
Switch type |
0 |
1 |
2 |
The exchange of 0=controlling platform; The exchange of 1=data platform |
|
Total: |
48 |
|
|
From above static mac address structure as can be known, static mac address is by the machine case number (CN), and slot number and power board be number unique to have defined a data exchange channel, promptly from any piece power board to any piece purpose plate.
3. sound attitude MAC Address
The dynamic address style of plate static state, power board of sound attitude MAC Address feeling the pulse with the finger-tip, this address are by the machine case number (CN) and slot number is unique has determined a certain purpose plate, but carry out exchanges data by the power board of main usefulness.
Sound attitude MAC Address structure is to carry out permutation and combination by respective flag position that characterizes MAC type, machine case number (CN), slot number, PHY, MAC and switch type content and spare bits to be formed.
Concrete sound attitude MAC Address structure such as following table:
Explanation
|
Bits |
Length |
Support number |
Describe |
The broadcasting group |
47-41 |
7 |
128 |
|
Broadcast flag |
40 |
1 |
N/A |
|
Keep |
39-38 |
2 |
|
|
The MAC type |
37-36 |
2 |
3 |
00=static state, the static purpose of 01=, dynamic exchange, 11=is dynamic |
The machine case number (CN) |
35-32 |
4 |
8 |
The multiple cases configuration is supported |
Keep |
31-29 |
3 |
|
|
Slot number |
28-24 |
5 |
20 |
Each cabinet is supported 32 groove position configurations |
PHY |
23-16 |
8 |
>32 |
256 PHY are supported in each groove position |
Keep |
15-12 |
4 |
|
|
MAC |
11-8 |
4 |
3 |
Each PHY supports 16 MAC Address configurations |
Keep |
7-2 |
6 |
|
|
Keep
|
1 |
1 |
|
|
Switch type |
0 |
1 |
2 |
The exchange of 0=controlling platform; The exchange of 1=data platform |
|
Total: |
48 |
|
|
As shown in Figure 4, use the data of sound attitude MAC, when the master broke down with power board, its data path can switch to standby power board, and when the master broke down with the purpose business board, its data path can not switch to standby purpose business board.Like this, this address and static address one are used from the monitoring Link State, can accurately locate which piece integrated circuit board and go wrong.
In sum, the present invention comprises the technology contents of two aspects:
The switching of data link:
The exchange of Ethernet exchange is according to target MAC (Media Access Control) address.And the MAC Address in the Ethernet exchange all is (not being self study) that system configuration gets on, so the switching to link is very simple, such as on source plate, having sent out a bag that target MAC (Media Access Control) address is A, and this target MAC (Media Access Control) address is configured on the port one of source plate, and this bag is just gone out from port one and mail to the master with on the power board.When system monitoring has fault to main with power board, will switch on the standby power board, concerning source plate, will switch on the standby power board mailing to main data with power board.Source plate is as long as move on to port 2 to MAC Address A from port one.All data that mail to MAC Address A all switch to port 2 and mail to standby power board.The time of this switching is exactly the time of system configuration MAC Address.By that analogy, when the purpose plate broke down, power board also can utilize this method data link to be switched to the purpose plate of backup from the purpose plate of fault.
The monitoring of data link:
How does system monitor link failure? how about did system know that backup link was normal before switching? this just relates to the data link monitoring problem.Each piece plate can be sent out monitoring bag and take office the situation that its plate what comes the Monitoring Data link because static mac address is constant in the life cycle of system, so based on the packet of static mac address the link of process can predict.All can not receive the monitoring bag that a source plate sends such as any purpose plate, but can receive the monitoring bag that power board sends, that system just infers that this piece source plate breaks down, and switches it.
Below embodiment has been described in detail the present invention in conjunction with the accompanying drawings, and those skilled in the art can make the many variations example to the present invention according to the above description.Thereby some details among the embodiment should not constitute limitation of the invention, and the scope that the present invention will define with appended claims is as protection scope of the present invention.