CN109361552A - Port switching method, master control board card, business board and switching equipment - Google Patents

Port switching method, master control board card, business board and switching equipment Download PDF

Info

Publication number
CN109361552A
CN109361552A CN201811441472.5A CN201811441472A CN109361552A CN 109361552 A CN109361552 A CN 109361552A CN 201811441472 A CN201811441472 A CN 201811441472A CN 109361552 A CN109361552 A CN 109361552A
Authority
CN
China
Prior art keywords
port
business board
standby port
standby
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811441472.5A
Other languages
Chinese (zh)
Inventor
董琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201811441472.5A priority Critical patent/CN109361552A/en
Publication of CN109361552A publication Critical patent/CN109361552A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the present application provides a kind of port switching method, master control board card, business board and switching equipment, is related to field of communication technology.Method includes: that the master control board card of switching equipment determines at least one standby port on switching equipment, wherein at least one standby port is different from the currently used main port on the business board of switching equipment;The standby port information of at least one standby port is sent to business board by master control board card;When business board determines that main port is in down state, according to standby port information, the target standby port currently used main port being switched at least one standby port.Due to when business board, which is stuck in, determines that current main port is in down state, currently used main port directly and quickly can be switched to the work of target standby port based on standby port information by business board, avoid by master control board card switching taking long time, cause port switching not in time the technical issues of.

Description

Port switching method, master control board card, business board and switching equipment
Technical field
This application involves fields of communication technology, in particular to a kind of port switching method, master control board card, business board Card and switching equipment.
Background technique
Spanning-Tree Protocol is common two layers of abscission ring agreement in Ethernet, for by the forward-path in a broadcast domain Repair and be kept to tree.
Currently, switching equipment is based on Spanning-Tree Protocol with other equipment when being communicated, the master control board card of switching equipment can be with Message is handled based on the corresponding port in the business board on Spanning-Tree Protocol control switching equipment.But make in network state variation Corresponding port in business board when needing to change, master control board card can be business board based on the protocol massages processing received Card determine new port to handle message, but it is such take a long time, lead to the switching of the port on business board not in time.
Summary of the invention
The application is to provide a kind of port switching method, master control board card, business board and switching equipment.To avoid business The switching of port on board not in time the problem of.
Embodiments herein is accomplished in that
In a first aspect, the embodiment of the present application provides a kind of port switching method, it is applied to switching equipment, the method packet It includes:
The master control board card of the switching equipment determines at least one standby port on the switching equipment, wherein institute At least one standby port is stated different from the currently used main port on the business board of the switching equipment;
The standby port information of at least one standby port is sent to the business board by the master control board card;
It, will according to the standby port information when business board determines that the main port is in down state The currently used main port is switched to the target standby port at least one described standby port.
In the embodiment of the present application, since master control board card can send the standby port information for the standby port determined Business board is given, then business board is based on standby when business board is stuck in and determines that current main port is in down state Currently used main port directly and quickly can be switched to the work of target standby port with port information, avoided By master control board card switching take long time, cause port switching not in time the technical issues of.
With reference to first aspect, in some possible implementations, the business board determines that the main port is in When down state, according to the standby port information, by the currently used main port be switched to it is described at least one Target standby port in standby port, comprising:
When the business board determines that the main port is in down state, according to the standby port information, obtain Obtain the priority of each standby port at least one described standby port;
The business board determines that the standby port of highest priority at least one described standby port is that target is spare Port;
The currently used main port is switched to the target standby port by the business board.
In the embodiment of the present application, due to end that target standby port is highest priority at least one standby port Mouthful, therefore being switched to target standby port also can guarantee that the performance of switching equipment is hardly affected, and ensure that exchange is set The stability of standby work.
It with reference to first aspect,, will be described described according to the standby port information in some possible implementations Currently used main port is switched to after the target standby port at least one described standby port, and the method is also wrapped It includes:
The business board deletes the MAC Address learnt based on the main port.
In the embodiment of the present application, after being switched to the work of target standby port, business board can will then be based on primary The MAC Address that port learns is deleted, and guarantees the subsequent processing message not shadow by the MAC Address learnt based on main port It rings, ensure that target standby port can be correctly by Message processing.
With reference to first aspect, in some possible implementations, the master control board card of the switching equipment is determined described After at least one standby port on switching equipment, the method also includes:
The business board obtains the MSTP BPDUs that other switching equipment are sent in the network using Spanning-Tree Protocol;
The business board judges whether the root bridge in the network changes according to the Root-bridge information in the MSTP BPDUs, Or judge whether the topology status in the network changes according to whether the MSTP BPDUs carry change in topology mark information, Wherein, the MSTP BPDUs, which do not carry the change in topology mark information, indicates that the topology status does not change;
When the business board determines that described bridge does not change or the topology status does not change, institute is kept The port switching function for stating business board is open state.
In the embodiment of the present application, business board is stuck in the root bridge in determining network no variation or topology status no variation, The determination of business board ability can be switched fast port based on the port switching function of business board, avoid the port of switching with Root bridging or topology status in network mismatch and cause whole network unstable.
Second aspect, the embodiment of the present application provide a kind of master control board card, and the master control board card includes:
Port role determining module, for determining at least one standby port, wherein at least one described standby port Different from the currently used main port on business board.
Information sending module, for the standby port information of at least one standby port to be sent to the business board Card;So that, according to the standby port information, working as by described in when the main port of the business board is in down state The preceding main port used is switched to the target standby port at least one described standby port.
The third aspect, the embodiment of the present application provide a kind of business board, and the business board includes:
Information receiving module, the standby port information of at least one standby port for receiving master control board card transmission;Its In, at least one described standby port is different from currently used main port.
Port switching module when for determining that the main port is in down state, is believed according to the standby port The currently used main port is switched to the target standby port at least one described standby port by breath.
In conjunction with the third aspect, in some possible implementations,
The port switching module, when being also used to the business board and determining that the main port is in down state, According to the standby port information, the priority of each standby port at least one described standby port is obtained;The business Board determines that the standby port of highest priority at least one described standby port is target standby port;The business board The currently used main port is switched to the target standby port.
In conjunction with the third aspect, in some possible implementations, the business board further include:
Address removing module is deleted the MAC Address learnt based on the main port for the business board.
In conjunction with the third aspect, in some possible implementations, the business board further include:
Information acquisition module obtains other switching equipment hairs in the network using Spanning-Tree Protocol for the business board The MSTP BPDUs sent.
Change determining module, the network is judged according to the Root-bridge information in the MSTP BPDUs for the business board In root bridge whether change, or judge in the network according to whether the MSTP BPDUs carry change in topology mark information Whether topology status changes, wherein the MSTP BPDUs, which do not carry the change in topology mark information, indicates the topology status Do not change.
Status control module, for the business board determine described bridge do not change or the topology status not When changing, keeping the port switching function of the business board is open state.
Fourth aspect, the embodiment of the present application provide a kind of switching equipment, and the switching equipment includes: master control board card and extremely A few business board being connect with the master control board card;
The master control board card and the business board are based on data communication to execute as in a first aspect, and first aspect times Port switching method described in one implementation.
5th aspect, the embodiment of the present application provide a kind of calculating of non-volatile program code that can be performed with computer The readable storage medium of machine, said program code make any realization side of the computer execution first aspect and first aspect Port switching method described in formula.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the structural block diagram of the network of two layers of abscission ring of one kind of the application first embodiment offer;
Fig. 2 shows the structural frames of switching equipment in the network of two layers of abscission ring of one kind of the application first embodiment offer Figure;
Fig. 3 shows a kind of flow chart of port switching method of the application second embodiment offer;
Fig. 4 shows a kind of structural block diagram of master control board card of the application 3rd embodiment offer;
Fig. 5 shows a kind of structural block diagram of business board of the application fourth embodiment offer.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Term " first ", " the Two " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
First embodiment
Referring to Fig. 1, the embodiment of the present application provides a kind of network 10 of two layers of abscission ring, which be can be based on life At tree protocol STP protocol (Spanning Tree Protocol, STP), Rapid Spanning Tree Protocol (rapid spanning Tree Protocol, RSTP) or Multiple Spanning Tree Protocol (Multi-Service Transfer Platform, MSTP) etc. formed Network, which may include: multiple switching equipment 20.
Wherein, multiple switching equipment 20 is based on Spanning-Tree Protocol and is interconnected to form tree, and multiple exchange is set Some switching equipment 20 in standby 20 can be chosen and communicating with other switching equipment 20 in multiple switching equipment 20 Lifting is root bridge, then other switching equipment 20 in multiple switching equipment 20 in addition to the root bridge then can be used as non-root bridge device.
As shown in Fig. 2, Fig. 2 shows the structural block diagram of any switching equipment 20 in multiple switching equipment 20, switching equipment 20 may include: master control board card 21 and business board 22.Wherein, master control board card 21 can be communicated to connect with business board 22, and Business board 22 can then be communicated to connect by the port on business board 22 and other switching equipment 20 in network 10.
In the present embodiment, master control board card 21 and business board 22 can cooperate realization to port switching method based on communication It executes.
In addition, the quantity of the business board 22 in switching equipment 20 can be at least one in some possible modes, The operation logic of each business board 22 can be identical at least one business board 22.In this regard, succinct, sheet for ease of description Embodiment will be illustrated by taking a business board 22 as an example, but be not intended as limiting.
Second embodiment
Present embodiments provide a kind of data interactive method, it should be noted that step shown in the flowchart of the accompanying drawings It can execute in a computer system such as a set of computer executable instructions, although also, showing patrol in flow charts Sequence is collected, but in some cases, it can be with the steps shown or described are performed in an order that is different from the one herein.Below to this Embodiment describes in detail.
Referring to Fig. 3, the embodiment of the present application provides a kind of port switching method, which is applied to two layers Any of network of abscission ring be non-root device switching equipment, the port switching method include: step S100, step S200 and Step S300.
Step S100: the master control board card of the switching equipment determines at least one spare end on the switching equipment Mouthful, wherein at least one described standby port is different from the currently used primary end on the business board of the switching equipment Mouthful.
Step S200: the standby port information of at least one standby port is sent to the industry by the master control board card Business board.
Step S300: when the business board determines that the main port is in down state, according to the spare end The currently used main port is switched to the target standby port at least one described standby port by message breath.
The process of the port switching method will be described in detail below.
Step S100: the master control board card of the switching equipment determines at least one spare end on the switching equipment Mouthful, wherein at least one described standby port is different from the currently used primary end on the business board of the switching equipment Mouthful.
Step S100: the master control board card of the switching equipment determines at least one spare end on the switching equipment Mouthful, wherein at least one described standby port is different from the currently used primary end on the business board of the switching equipment Mouthful.
When multiple switching equipment in the network are enabled, i.e., when multiple switching equipment work on power, assisted based on spanning tree View STP protocol, Rapid Spanning Tree Protocol or Multiple Spanning Tree Protocol, this multiple switching equipment need interworking protocol message, so that appointing One switching equipment can into multiple switching equipment other switching equipment table names oneself role in a network.
In this way, during multiple switching equipment interworking protocol messages, based on some conditions for example, switching equipment it is excellent The MAC Address of first grade and switching equipment upper port can elect root bridge device in multiple switching equipment, wherein the root bridge is set The smallest switching equipment of MAC Address of the standby highest priority and/or switching equipment upper port that can be switching equipment.So, Other switching equipment in multiple switching equipment other than the root bridge device then can be used as non-root bridge device.
Switching equipment in the present embodiment can be used as non-root bridge device, in this way, the master control board card on switching equipment can Using the role according to the switching equipment as non-root bridge device, and according to the role of port each on the switching equipment for example, Root port, designated port and backup port, and the state according to port each on switching equipment for example, available mode or Down state may thereby determine that preferential so as to be ranked up to each root port on switching equipment according to priority The grade the smallest root port of highest, that is, link overhead is the main port of the switching equipment, which then can be switching equipment Business board on currently used main port.And at least one can also be determined from each root port according to priority Standby port, wherein the priority of any standby port is respectively less than the priority of the main port at least one standby port, And at least one standby port is different from the currently used main port on the business board of switching equipment.
It is understood that the quantity at least one standby port determined can be used as redundancy backup at 2 or more, Even if the i.e. highest standby port of main port and override cannot all be used, can bring there are also other standby ports makes With which improves the stability of switching equipment work.
During the master control board card of switching equipment determines main port and at least one standby port, master control board card can The standby port of at least one standby port can also be obtained to obtain main port information and the master control board card of main port Information.Wherein, main port information may include the port numbers of main port, the role of main port and state, main port Priority level etc., and standby port information then may include: the role of the port numbers of each standby port, each standby port With state and the priority level of each standby port etc..
Main port information and standby port information, master control board card of the master control board card of switching equipment based on acquisition can Main port information and standby port information are issued to business board.Business board can be according in main port information The port numbers of main port, the role of main port and state etc., determine port information from port each on business board Port with main port information matches is main port.In this, business board on switching equipment it is currently used primary Port is then main port, i.e., business board can carry out transmitting-receiving process to message based on the main port.
Furthermore if the master control board card of switching equipment can issue main port information when business board is at least one Each business board at least one business board, enables a certain business board root at least one business board According to the main port information, from the port for determining port information Yu main port information matches on the business board in each port For main port.
In addition, the master control board card of switching equipment, which during aforementioned intercommunication message, can also obtain, determines that exchange is set Standby role, and determine the root device information of network and the topology information of network.It so, is the business convenient for switching equipment Board can accurately carry out port switching, and the master control board card of old friend's exchange device can also be by the role of switching equipment, and really The topology information of the root device information and network of making network is sent to business board.And business board be at least one When, just by the role of switching equipment, and determine that the Root-bridge information of network and the change in topology mark information of network are sent to Each business board.
Step S200: the standby port information of at least one standby port is sent to the industry by the master control board card Business board.
Correspondingly, main port information can be not only sent to business board, master control borad by the master control board card of switching equipment Standby port information can also be handed down to business board by card, in this way, business board can obtain and record standby port letter The port numbers of each standby port in breath, the priority of the role of each standby port and state and each standby port Not etc..
Certainly, if business board is at least one, standby port information is just sent to each business board by master control board card Card.
For that can be rapidly performed by port switching convenient for business board, the master control board card of switching equipment is opened up in determining network When flutterring in stable condition, for example, the master control board card of switching equipment does not receive other in network set in the preset duration after enabled Preparation send about the Root-bridge information of root bridging or the change in topology mark information of change in topology, then master control board card can Determine that topology status is stablized in network.
For master control board card in switching equipment based on determining that topology status is stablized in network, master control board card can be according to default The instruction of Program Generating port switching, and will the business board that is sent in switching equipment of switching instruction.Alternatively, in business board When at least one, port switching instruction is just also sent to each business board by master control board card.
In this way, business board is based on receiving port switching instruction, it can determine and be adjusted to out port switching function Open state.Business board be based on port switching function can when needing to switch, the main port currently used from chief commander from Main port is switched to the target standby port at least one standby port, or from the currently used main port of chief commander from Standby port is switched to the lower standby port of priority at least one standby port.
Step S300: when the business board determines that the main port is in down state, according to the spare end Currently used main port is switched to the target standby port at least one described standby port by message breath.
The business board card of switching equipment in the process of work, business board can in real time on business board be in work Each port for making state is monitored.If the business board of switching equipment monitors each end in running order on switching equipment There is port to be in down state in mouthful, that is, there is port to be in Down or unstable state, then business board can be gone really Whether the fixed port for being in down state is main port.
Optionally, this can be in the port information of the port of down state and the main port of record by business board Information matched.
If mismatching, illustrating that this is in the port of down state is not main port, and at this moment business board can be with base It is handled in other service logics, for example, can report an error or without processing.
If matching, illustrating that this is in the port of down state is main port, and such business board is based on being in and open The port switching function for opening state can determine that the main port is switched to standby port by needs.The business board of switching equipment The priority that each standby port at least one standby port can be obtained according to standby port information, thus according to every The priority of a standby port can then determine that the standby port of highest priority at least one standby port is that target is spare Port.Therefore, currently used main port can be switched to target standby port by the business board of switching equipment, that is, be handed over The transmitting-receiving process that the business board of exchange device can carry out message based on the target standby port.
In the present embodiment, as a kind of side optionally that currently used main port is switched to target standby port Formula, if the quantity of the business board of switching equipment is one, then the target standby port can be on business board.Old friend The business board of exchange device can determine exit port based on the target standby port information of target standby port from each port The port of information and target standby port information matches is the target standby port, thus what business board can determine this Target standby port is switched to forwarding state from blocked state, in this way, the currently used main port on business board is just real Show and has been switched to the target standby port.
In the present embodiment, as by currently used main port be switched to target standby port it is another optionally Mode, if the quantity of the business board of switching equipment is more than one, then the target standby port may should not be equipped with master With on the business board of port.Therefore it should be stuck in based on target standby port information from each port equipped with the business board of main port It, should be equipped with main port after determining that the port of port information and target standby port information matches is the target standby port Business board can judge that the target standby port is on the business board for being equipped with main port, or at least one industry It is engaged on other business boards on board in addition to the business board equipped with main port.
If should determine that target standby port was equipped with the business board of main port at this equipped with the business board of main port On, then forwarding shape directly should can be switched to from blocked state for target standby port equipped with the business board of main port State.
If target standby port should be determined on other business boards equipped with the business board of main port, then this is equipped with The business board of main port can generate the message of the target standby port information comprising the target standby port, and directly The other business boards being sent to where target standby port, so that other business boards are spare based on the target in the message Target standby port is switched to forwarding state from blocked state by port information.
Furthermore to guarantee that message can be forwarded normally after port switching, business board can also will be based on the main port The mac address table entry deletion learnt.
As the mode optionally of the present embodiment, business board, which is stuck in, obtains other friendships in the network using Spanning-Tree Protocol When the MSTP BPDUs that exchange device is sent, while business board can be by sending master control board card to handle on the MSTP BPDUs, business Board can replicate MSTP BPDUs a and oneself is handled.
The business board of switching equipment can be to the MSTP BPDUs decapsulation, so as to obtain the root bridge in MSTP BPDUs Information obtains the change in topology mark information carried in MSTP BPDUs.Therefore business board just can also be based in advance by master control Whether the Root-bridge information that board is sent judges whether the topology status in network changes, or can also be carried according to MSTP BPDUs Change in topology mark information judges whether the topology status in network changes.
If the business board of switching equipment determines that root bridge changes according to Root-bridge information, or is not taken according to MSTP BPDUs Band change in topology mark information and when determining that topology status does not change, then there is no big for the network environment for illustrating in network Variation, therefore business board can keep business board port switching function be open state.
If the business board of switching equipment determines that root bridge changes according to Root-bridge information, or is carried according to MSTP BPDUs Change in topology mark information and when determining that topology status changes, then illustrate that big change has occurred in the network environment in network Change, thus business board can by the port switching function of business board by open state adjustment be in off state, thus no longer into Row port switching.And when the business board of switching equipment is at least one, which can also inform at least one industry The other business boards being engaged in board in addition to the business board, so that each business board in other business boards can incite somebody to action Port switching function is in off state by open state adjustment.
3rd embodiment
Referring to Fig. 4, the embodiment of the present application provides a kind of master control board card 200, which may include:
Port role determining module 210, for determining at least one standby port, wherein described at least one is spare Port is different from the currently used main port on business board.
Information sending module 220, for the standby port information of at least one standby port to be sent to the industry Business board;So that when the main port of the business board is in down state, according to the standby port information, by institute State the target standby port that currently used main port is switched at least one described standby port.
It should be noted that due to it is apparent to those skilled in the art that, for the convenience and letter of description Clean, system, the specific work process of device and unit of foregoing description can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
Fourth embodiment
Referring to Fig. 5, the embodiment of the present application provides a kind of business board 300, which may include:
Information receiving module 310, the standby port information of at least one standby port for receiving master control board card transmission; Wherein, at least one described standby port is different from currently used main port.
Port switching module 320, when for determining that the main port is in down state, according to the standby port The currently used main port is switched to the target standby port at least one described standby port by information.
Optionally, the port switching module 320, be also used to the business board determine the main port be in can not When with state, according to the standby port information, the priority of each standby port at least one described standby port is obtained; The business board determines that the standby port of highest priority at least one described standby port is target standby port;It is described The currently used main port is switched to the target standby port by business board.
Optionally, business board 300 can also include:
Address removing module 330 is deleted the MAC Address learnt based on the main port for the business board It removes.
Information acquisition module 340 obtains other exchanges in the network using Spanning-Tree Protocol for the business board and sets The MSTP BPDUs that preparation is sent.
Change determining module 350, for the business board according to the Root-bridge information judgement in the MSTP BPDUs Whether the root bridge in network changes, or judges the network according to whether the MSTP BPDUs carry change in topology mark information In topology status whether change, wherein the MSTP BPDUs, which do not carry the change in topology mark information, indicates the topology State does not change.
Status control module 360 determines that described bridge does not change or the topological shape for the business board When state does not change, keeping the port switching function of the business board is open state.
It should be noted that due to it is apparent to those skilled in the art that, for the convenience and letter of description Clean, system, the specific work process of device and unit of foregoing description can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
It should be understood by those skilled in the art that, the embodiment of the present application can provide as the production of method, system or computer program Product.Therefore, in terms of the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and hardware Embodiment form.Moreover, it wherein includes computer available programs generation that the embodiment of the present application, which can be used in one or more, The meter implemented in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code The form of calculation machine program product.
It is set in conclusion the embodiment of the present application provides a kind of port switching method, master control board card, business board and exchange It is standby.Method includes: that the master control board card of switching equipment determines at least one standby port on switching equipment, wherein at least one A standby port is different from the currently used main port on the business board of switching equipment;Master control board card is standby by least one Business board is sent to the standby port information of port;When business board determines that main port is in down state, according to Standby port information, the target standby port currently used main port being switched at least one standby port.
Since the standby port information for the standby port determined can be sent to business board by master control board card, then Business board is stuck in when determining that current main port be in down state, and business board can be straight based on standby port information It connects and currently used main port is quickly switched to the work of target standby port, avoid the consumption switched by master control board card When it is too long, cause port switching not in time the technical issues of.
The above is only preferred embodiment of the present application, are not intended to limit this application, for those skilled in the art For member, various changes and changes are possible in this application.Within the spirit and principles of this application, it is made it is any modification, Equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should also be noted that similar label and letter are under Similar terms are indicated in the attached drawing in face, therefore, once being defined in a certain Xiang Yi attached drawing, are not then needed in subsequent attached drawing It is further defined and explained.
More than, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, and it is any to be familiar with Those skilled in the art within the technical scope of the present application, can easily think of the change or the replacement, and should all cover Within the protection scope of the application.Therefore, the protection scope of the application should be subject to the protection scope in claims.

Claims (10)

1. a kind of port switching method, which is characterized in that be applied to switching equipment, which comprises
The master control board card of the switching equipment determines at least one standby port on the switching equipment, wherein it is described extremely A few standby port is different from the currently used main port on the business board of the switching equipment;
The standby port information of at least one standby port is sent to the business board by the master control board card;
It, will be current according to the standby port information when business board determines that the main port is in down state The main port used is switched to the target standby port at least one described standby port.
2. port switching method according to claim 1, which is characterized in that the business board determines the main port When in down state, according to the standby port information, by the currently used main port be switched to it is described at least Target standby port in one standby port, comprising:
When the business board determines that the main port is in down state, according to the standby port information, institute is obtained State the priority of each standby port at least one standby port;
The business board determines that the standby port of highest priority at least one described standby port is target standby port;
The currently used main port is switched to the target standby port by the business board.
3. port switching method according to claim 1 or 2, which is characterized in that believed described according to the standby port The currently used main port is switched to after the target standby port at least one described standby port, institute by breath State method further include:
The business board deletes the MAC Address learnt based on the main port.
4. port switching method according to claim 1 or 2, which is characterized in that in the master control board card of the switching equipment After determining at least one standby port on the switching equipment, the method also includes:
The business board obtains the MSTP BPDUs that other switching equipment are sent in the network using Spanning-Tree Protocol;
The business board judges whether the root bridge in the network changes according to the Root-bridge information in the MSTP BPDUs, or Judge whether the topology status in the network changes according to whether the MSTP BPDUs carry change in topology mark information, In, the MSTP BPDUs, which do not carry the change in topology mark information, indicates that the topology status does not change;
When the business board determines that described bridge does not change or determine that the topology status does not change, institute is kept The port switching function for stating business board is open state.
5. a kind of master control board card, which is characterized in that the master control board card includes:
Port role determining module, for determining at least one standby port, wherein at least one described standby port is different In the currently used main port on business board;
Information sending module, for the standby port information of at least one standby port to be sent to the business board; So that when the main port of the business board is in down state, it, will be described current according to the standby port information The main port used is switched to the target standby port at least one described standby port.
6. a kind of business board, which is characterized in that the business board includes:
Information receiving module, the standby port information of at least one standby port for receiving master control board card transmission;Wherein, institute At least one standby port is stated different from currently used main port;
Port switching module, will according to the standby port information when for determining that the main port is in down state The currently used main port is switched to the target standby port at least one described standby port.
7. business board according to claim 6, which is characterized in that
The port switching module, when being also used to the business board and determining that the main port is in down state, according to The standby port information obtains the priority of each standby port at least one described standby port;The business board The standby port for determining highest priority at least one described standby port is target standby port;The business board is by institute It states currently used main port and is switched to the target standby port.
8. business board according to claim 6 or 7, which is characterized in that the business board further include:
Address removing module is deleted the MAC Address learnt based on the main port for the business board.
9. business board according to claim 6 or 7, which is characterized in that the business board further include:
Information acquisition module obtains what other switching equipment in the network using Spanning-Tree Protocol were sent for the business board MSTP BPDUs;
Change determining module, is judged in the network for the business board according to the Root-bridge information in the MSTP BPDUs Whether root bridge changes, or judges topology in the network according to whether the MSTP BPDUs carry change in topology mark information Whether state changes, wherein the MSTP BPDUs, which do not carry the change in topology mark information, indicates that the topology status is unchanged Change;
Status control module determines that described bridge does not change or the topology status does not occur for the business board When variation, keeping the port switching function of the business board is open state.
10. a kind of switching equipment, which is characterized in that the switching equipment includes: master control board card and at least one and the master control The business board of board connection;
The master control board card and the business board execute the end as described in any claim of claim 1-4 based on data communication Mouth switching method.
CN201811441472.5A 2018-11-28 2018-11-28 Port switching method, master control board card, business board and switching equipment Pending CN109361552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811441472.5A CN109361552A (en) 2018-11-28 2018-11-28 Port switching method, master control board card, business board and switching equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811441472.5A CN109361552A (en) 2018-11-28 2018-11-28 Port switching method, master control board card, business board and switching equipment

Publications (1)

Publication Number Publication Date
CN109361552A true CN109361552A (en) 2019-02-19

Family

ID=65343229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811441472.5A Pending CN109361552A (en) 2018-11-28 2018-11-28 Port switching method, master control board card, business board and switching equipment

Country Status (1)

Country Link
CN (1) CN109361552A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828945A (en) * 2019-02-20 2019-05-31 杭州迪普科技股份有限公司 A kind of service message processing method and system
CN110011912A (en) * 2019-03-15 2019-07-12 北京星网锐捷网络技术有限公司 Case type switching equipment uplink switching method and device
CN110661730A (en) * 2019-10-24 2020-01-07 北京锐安科技有限公司 Network switching equipment management method, device, server and storage medium
CN111262735A (en) * 2020-01-15 2020-06-09 Ut斯达康通讯有限公司 Network management switching device and method
WO2021042675A1 (en) * 2019-09-04 2021-03-11 厦门网宿有限公司 Layer-2 private wire network system and configuration method
CN113938416A (en) * 2021-10-26 2022-01-14 新华三信息安全技术有限公司 Path selection method and device
CN115834358A (en) * 2022-11-24 2023-03-21 中盈优创资讯科技有限公司 Method and device for automatically switching main board and standby board of equipment main control board card

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047547A (en) * 2006-03-30 2007-10-03 华为技术有限公司 Method and device for implementing port protection
CN101771570A (en) * 2010-02-08 2010-07-07 杭州华三通信技术有限公司 State switching method and device
CN101827113A (en) * 2010-05-27 2010-09-08 迈普通信技术股份有限公司 Port role selection method and switching equipment in spanning tree protocol
CN102571384A (en) * 2010-12-16 2012-07-11 中兴通讯股份有限公司 Switching method, system and packet transmission network device for multiplex section protection
CN102882735A (en) * 2012-10-26 2013-01-16 杭州迪普科技有限公司 MSTP (Multi-Service Transfer Platform) switching method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047547A (en) * 2006-03-30 2007-10-03 华为技术有限公司 Method and device for implementing port protection
CN101771570A (en) * 2010-02-08 2010-07-07 杭州华三通信技术有限公司 State switching method and device
CN101827113A (en) * 2010-05-27 2010-09-08 迈普通信技术股份有限公司 Port role selection method and switching equipment in spanning tree protocol
CN102571384A (en) * 2010-12-16 2012-07-11 中兴通讯股份有限公司 Switching method, system and packet transmission network device for multiplex section protection
CN102882735A (en) * 2012-10-26 2013-01-16 杭州迪普科技有限公司 MSTP (Multi-Service Transfer Platform) switching method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828945A (en) * 2019-02-20 2019-05-31 杭州迪普科技股份有限公司 A kind of service message processing method and system
CN109828945B (en) * 2019-02-20 2021-01-26 杭州迪普科技股份有限公司 Service message processing method and system
CN110011912A (en) * 2019-03-15 2019-07-12 北京星网锐捷网络技术有限公司 Case type switching equipment uplink switching method and device
WO2021042675A1 (en) * 2019-09-04 2021-03-11 厦门网宿有限公司 Layer-2 private wire network system and configuration method
EP3817295A4 (en) * 2019-09-04 2021-11-10 Xiamen Wangsu Co., Ltd. Layer-2 private wire network system and configuration method
CN110661730A (en) * 2019-10-24 2020-01-07 北京锐安科技有限公司 Network switching equipment management method, device, server and storage medium
CN110661730B (en) * 2019-10-24 2022-11-08 北京锐安科技有限公司 Network switching equipment management method, device, server and storage medium
CN111262735A (en) * 2020-01-15 2020-06-09 Ut斯达康通讯有限公司 Network management switching device and method
CN113938416A (en) * 2021-10-26 2022-01-14 新华三信息安全技术有限公司 Path selection method and device
CN115834358A (en) * 2022-11-24 2023-03-21 中盈优创资讯科技有限公司 Method and device for automatically switching main board and standby board of equipment main control board card

Similar Documents

Publication Publication Date Title
CN109361552A (en) Port switching method, master control board card, business board and switching equipment
US7630299B2 (en) Retention of a stack address during primary master failover
CN112564964B (en) Fault link detection and recovery method based on software defined network
US8248922B2 (en) System and method for avoiding duplication of MAC addresses in a stack
CN104158747B (en) Method for discovering network topology and system
US6898183B1 (en) Method of determining a data link path in a managed network
CN106170952A (en) For disposing the method and system of maximum redundancy tree in a data network
US9544217B2 (en) Identification of paths in a network of mixed routing/switching devices
US20050111352A1 (en) Method and system for monitoring a network containing routers using a backup routing protocol
US20070183313A1 (en) System and method for detecting and recovering from virtual switch link failures
US20080089246A1 (en) Method and apparatus for selecting spanning tree root
CN106992874A (en) Method and the network equipment for communication
US20070226325A1 (en) Virtual private network service status management
JP2005348051A (en) Device and method for searching topology of network equipment
CN101785257A (en) Software control plane for switches and routers
CN101610193A (en) Ethernet ring network finds and generates the method for ring automatically
EP3117571A1 (en) Executing loops
JP2001320393A (en) Line concentration apparatus and network managing device using this
TWI379547B (en) Redundancy method of ring network
GB2514675A (en) Querying a traffic forwarding table
EP2728797A1 (en) Message processing method, device and system
CN107070739A (en) A kind of router operation troubles intelligent detecting method and system
CN106803803B (en) Virtual local area network restoration method, system and device
WO2024159954A1 (en) Uplink port identification method and apparatus, device, medium, and product
CN104506339A (en) Industrial Ethernet network topology management implementation method based on PROFINET

Legal Events

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

Application publication date: 20190219

RJ01 Rejection of invention patent application after publication