A kind of Ethernet bridge and intelligent interlinking method thereofTechnical field
The present invention particularly relates to a kind of Ethernet bridge and intelligent interlinking method thereof about a kind of constructing communication network technology.
Background technology
Ethernet bridge is widely used in data communication and transmission field, is used for carrying out bridges forward between WAN port and ethernet port, can Ethernet be extended by transmission line and expand, and be a kind of constructing communication network technology commonly used.Fig. 1 is the general application schematic diagram of Ethernet bridge in the prior art.
The ethernet port of existing Ethernet bridge and WAN port are physically fully independent, behind a certain port LinkDown (link down), the another port is Link Up (link connection) still, as shown in Figure 2, like this so that the problem of circuit can not in time be found, inform, and can only find link fails by the protocol software on upper strata, and spended time is long, and the occasion higher for some requirement of real-time is not competent.
Summary of the invention
The deficiency that exists for overcoming above-mentioned prior art, main purpose of the present invention is to provide the method for a kind of Ethernet bridge and intelligent interlinking thereof, it can the Real Time Monitoring WAN port and the Link state of ethernet port, and when Link Up or Link Down occur in a certain port, immediately so that LinkUp or Link Down are also forced in the another port, thereby so that knowing circuit immediately, the opposite end network element changes, so that circuit switching.
For reaching above-mentioned and other purpose, the present invention proposes a kind of Ethernet bridge, comprise Ethernet interface and wide area network interface, this Ethernet bridge also comprises an intelligent controller, the linking status of this this Ethernet interface of intelligent controller Real Time Monitoring and this wide area network interface, when the linking status of a certain port changed, this intelligent controller was recorded linking status and is changed, and existed side by side namely so that the change of respective links state is made in the another port.
Further, this intelligent controller monitors a port generation link connection or link down change
The time, force immediately the another port that link connection or link down change also occur.
For reaching above-mentioned and other purpose, the present invention also provides a kind of intelligent interlinking method of Ethernet bridge, comprises the steps:
The linking status of each port of intelligent controller poll Ethernet bridge;
Whether the linking status of judging each port changes;
If when the linking status of front port changes, then force the another port to be changed to linking status after front port changes.
Further, do not change if work as the linking status of front port, then forcing the another port is the linking status of working as front port.
Further, change to link down if work as the linking status of front port from being in link connection, then force the another port to change to link down; If when the linking status of front port was in link connection and does not change, then forcing the another port was current link connection state.
Further, change to link connection if work as the linking status of front port from being in link down, then force the another port to change to link connection; If when the linking status of front port was in link down and does not change, then forcing the another port was current link down state.
Compared with prior art, a kind of Ethernet bridge of the present invention and intelligent interlinking method thereof are passed through at the ethernet port of Ethernet bridge inner utilization intelligent controller Real-Time Monitoring bridge and the Link state of WAN port, and when Link Up or Link Down occur in a certain port, immediately so that LinkUp or Link Down are also forced in the another port, thereby so that knowing circuit immediately, the opposite end network element changes, so that circuit switching, algorithm of the present invention simply is easy to realize, is convenient to transplant and Project Realization.
Description of drawings
Fig. 1 is the general application schematic diagram of Ethernet bridge in the prior art;
Fig. 2 is translational bridging link state variation schematic diagram;
Fig. 3 is the system architecture diagram of a kind of Ethernet bridge of the present invention;
Fig. 4 is link (link) state change map of the present invention's Ethernet bridge;
Fig. 5 is the flow chart of steps of the intelligent interlinking method of a kind of Ethernet bridge of the present invention.
Embodiment
Below by specific instantiation and accompanying drawings embodiments of the present invention, those skilled in the art can understand other advantage of the present invention and effect easily by content disclosed in the present specification.The present invention also can be implemented or be used by other different instantiation, and the every details in this specification also can be based on different viewpoints and application, carries out various modifications and change under the spirit of the present invention not deviating from.
Fig. 3 is the system architecture diagram of a kind of Ethernet bridge of the present invention.As shown in Figure 1, a kind of Ethernet bridge of the present invention comprises: Ethernet interface 30, intelligent controller 31 and wide area network interface 32.
Wherein, intelligent controller 11 is used for the Ethernet interface 10 of Real Time Monitoring Ethernet bridge and link (Link) state of wide area network interface 12, when link (Link) state of some ports changes, intelligent controller 11 is recorded link (Link) state variation by policing algorithm, exist side by side namely so that the change of respective links (Link) state is made in the another port, thereby fast notification is to the opposite end network element, so that the timely circuit switched of system.
Fig. 4 is link (link) state change map of the present invention's Ethernet bridge, as seen, the present invention is by link (link) state of intelligent controller 31 Real Time Monitoring WAN ports and ethernet port, when Link Up (link connection) or Link Down (link down) occur in a certain port, immediately so that Link Up or Link Down are also forced in the another port, thereby so that knowing circuit immediately, the opposite end network element changes, so that circuit switching.
Fig. 5 is the flow chart of steps of the intelligent interlinking method of a kind of Ethernet bridge of the present invention.As shown in Figure 5, the intelligent interlinking method of a kind of Ethernet bridge of the present invention comprises the steps:
Step 501, link (link) state of each port of intelligent controller poll Ethernet bridge;
Step 502 judges whether link (link) state of each port changes;
Step 503, if when link (link) state of front port changes, as from link up (link connection) state variation to link down (link down) state, then force the another port to be changed to linking status after front port changes, such as link down state, do not change if work as link (link) state of front port, then forcing the another port is the linking status of working as front port, such as link up state.
As seen, a kind of Ethernet bridge of the present invention and intelligent interlinking method thereof are by the port Link state variation of Real Time Monitoring Ethernet bridge, and between port, transmit, thereby the slow defective of response time that has overcome original Ethernet bridge dependence upper layer software (applications) judgement line fault and caused, so that line fault can be notified the opposite end network element fast, thereby safeguards system can switch to spare line fast, ensures proper communication.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not is used for restriction the present invention.Any those skilled in the art all can be under spirit of the present invention and category, and above-described embodiment is modified and changed.Therefore, the scope of the present invention should be listed such as claims.