A kind of management method of forwarding-table item and equipment
Technical field
The present invention relates to communication technical field, particularly relate to a kind of management method and equipment of forwarding-table item.
Background technology
Current at RRPP (Rapid Ring Protection Protocol; rapid ring protection protocol) networking structure in; comprise: (1) RRPP domain; there is identical territory ID (mark) and control VLAN (Virtual Local Area Network; VLAN); and the equipment being interconnected forms a RRPP domain, and a RRPP domain has the key elements such as RRPP main ring, subring, control VLAN, host node, transmission node, Primary port and secondary port, common port and edge port.(2) RRPP ring, the ethernet network topology of an annular connection is called a RRPP ring, and RRPP ring is divided into main ring and subring.(3) control VLAN and data vlan, control VLAN and be used for transmitting RRPP protocol massages, data vlan is for data message transmission.(4) node, every equipment on RRPP ring is called a node, is divided into host node, transmission node, fringe node, assistant edge node.(5) Primary port and secondary port, each own two ports access RRPP ring of host node and transmission node, one is master port, another is secondary port.(6) common port and edge port, public port is the port that accesses main ring on Edge node and assistant edge node, edge port is the port that only accesses subring on Edge node and assistant edge node.
In the polling mechanism of RRPP, host node cycle ground sends hello packet from its master port, propagates successively through each transmission node on ring; If loop ruptures, the secondary port of host node cannot be received hello packet before timer expiry, host node will be removed the blocked state of data vlan at secondary port, and send Common-Flush-FDB (Forwarding Database, refresh forwarding database) all transmission nodes of message notifying, make it upgrade MAC (Media Access Control separately, medium access control) list item and ARP (Address Resolution Protocol, address resolution protocol)/ND (Neighbor Discovery, neighbours find) list item.
In the linkdown alarming mechanism of RRPP, when any one belongs to the port down of RRPP domain when transmission node, fringe node or the discovery of assistant edge node self, can send at once Link-Down (link failure) message to host node; Host node is received after Link-Down message, removes the blocked state of data vlan at secondary port, and sends all transmission nodes of Common-Flush-FDB message notifying, Edge node and assistant edge node, makes it upgrade MAC address entries and ARP/ND list item separately.
Current Smart Link (for double-ascending network propose, can realize the redundancy backup of main/slave link, and after active link breaks down, make flow be switched to rapidly reserve link) networking structure in, comprise: (1) Smart Link (link flexibly) group, in each group, only comprise two ports, one is master port, and another is from port; A port is in forwarding state, and another port gets clogged, standby; When in the time that the port of forwarding state breaks down, Smart Link organizes meeting automatically by this port block, and standby port is switched to forwarding state.(2) master port/from port, master port and be two port roles Smart Link group from port.(3) primary link/from link, the link at master port place is called primary link, is called from link from the link at port place.(4) protection VLAN is the user data VLAN of its forwarding state of Smart Link group control.(5) sending and control VLAN, is the VLAN for sending Flush (refreshing) message; When occurring when link switching, equipment can be controlled broadcast transmission Flush message in VLAN sending.(6) receiving and control VLAN, is the VLAN for receiving and process Flush message; In the time there is link switching, equipment receives and processes to belong to and receives the Flush message of controlling VLAN, carries out the refresh operation of MAC address entries and ARP/ND list item.(7) Flush message, in the time that link switching occurs Smart Link group, original MAC address entries and ARP/ND list item will not be suitable for new topological network, need all devices in network to carry out the renewal of MAC address entries and ARP/ND list item; Now, Smart Link group need to be carried out by sending Flush message notifying miscellaneous equipment the refresh operation of MAC address entries and ARP/ND list item.
As shown in Figure 1, for the networking schematic diagram of Smart Link, Device C and Device D port Ethernet 1/1 and Ethernet1/2 separately formed respectively a Smart Link group, and Ethernet1/1 is in forwarding state, and Ethernet1/2 is standby; Device C and Device D port Ethernet 1/1 is separately master port, and Ethernet1/2 is from port; The link at port Ethernet 1/1 place of Device C is primary link, and the link at Ethernet1/2 place is from link.Based on above-mentioned networking, under normal circumstances, Ethernet1/1 is in forwarding state, and Ethernet1/2 is standby; In the time that primary link breaks down, Ethernet1/1 is by obstruction and be switched to armed state, and Ethernet1/2 will be switched to forwarding state.
In the time that link switching occurs Smart Link, the MAC address entries in network on each equipment and ARP/ND list item may not be last states, in order to ensure the correct transmission of message, need to provide the update mechanism of MAC address entries and ARP/ND list item; Update mechanism has following two kinds at present: (1) refreshes MAC address entries and ARP/ND list item by flow automatically, and which need to have uplink traffic to trigger.(2) send Flush message by Smart Link equipment from new link, which needs up equipment can both identify the Flush message of Smart Link, and upgrades the processing of MAC address entries and ARP/ND list item.
In sum, in current RRPP networking structure, the method for refreshing of MAC address entries and ARP/ND list item is: refresh by sending flush-FDB message, the method requires the equipment in RRPP networking all can identify flush-FDB message, otherwise, can not after change in topology, refresh immediately MAC address entries and ARP/ND list item, thereby limit the networking application of RRPP equipment and other vendor equipment.
In current Smart Link networking structure, the method for refreshing of MAC address entries and ARP/ND list item is: refresh by sending flush message, the method requires the equipment in Smart link networking all can identify flush message, otherwise, can not after change in topology, refresh immediately MAC address entries and ARP/ND list item, thereby limit the networking application of Smart link equipment and other vendor equipment.
Summary of the invention
The invention provides a kind of management method and equipment of forwarding-table item, thereby make not support to specify the network equipment of topological agreement can delete in time forwarding-table item, the range of application of topological agreement is specified in expansion.
In order to achieve the above object, the invention provides a kind of management method of forwarding-table item, be applied to and comprise the network equipment of the topological agreement of support appointment and do not support in the network system of the network equipment of the topological agreement of described appointment, in specifying the network equipment of topological agreement, described support has the control appliance that a network equipment is described network system, and described control appliance upgrades the forwarding-table item of self for controlling each network equipment of described network system, the method comprises the following steps:
Described control appliance discovering network topology changes;
Described control appliance sends for removing many virtual local network log-on protocols MVRP message of forwarding-table item to the described network equipment of not supporting the topological agreement of described appointment, does not support described in instruction the network equipment of the topological agreement of described appointment to remove the forwarding-table item of self.
The topological agreement of described appointment comprises rapid ring protection protocol RRPP agreement or flexible link Smart Link agreement.
When the topological agreement of described appointment is RRPP agreement, described control appliance sends for removing the MVRP message of forwarding-table item to the described network equipment of not supporting the topological agreement of described appointment, specifically comprises:
Described control appliance sends forwarding data bank refresh Flush-FDB message to other network equipments in the network equipment of the topological agreement of the described appointment of support, and described other network equipments of instruction utilize described Flush-FDB message to remove the forwarding-table item of self; And send MVRP message to the described network equipment of not supporting the topological agreement of described appointment, do not support the network equipment of the topological agreement of described appointment to utilize described MVRP message to remove the forwarding-table item of self described in instruction.
When the topological agreement of described appointment is Smart Link agreement, described control appliance sends for removing the MVRP message of forwarding-table item to the described network equipment of not supporting the topological agreement of described appointment, specifically comprises:
Described control appliance sends and refreshes Flush message to other network equipments in the network equipment of the topological agreement of the described appointment of support, and described other network equipments of instruction utilize described Flush message to remove the forwarding-table item of self; And send MVRP message to the described network equipment of not supporting the topological agreement of described appointment, do not support the network equipment of the topological agreement of described appointment to utilize described MVRP message to remove the forwarding-table item of self described in instruction; Or,
Described control appliance is to supporting other network equipments in the network equipment of described appointment topological agreement and not supporting the network equipment of the topological agreement of described appointment to send MVRP message, described other network equipments of instruction and do not support the network equipment of the topological agreement of described appointment to utilize described MVRP message to remove the forwarding-table item of self.
Describedly comprise for the MVRP message of removing forwarding-table item: the new message based on MVRP agreement.
On the other hand, the present invention also provides a kind of management equipment of forwarding-table item, be applied to and comprise the network equipment of the topological agreement of support appointment and do not support in the network system of the network equipment of the topological agreement of described appointment, in specifying the network equipment of topological agreement, described support has the control appliance that a network equipment is described network system, described control appliance upgrades the forwarding-table item of self for controlling each network equipment of described network system, and described management equipment is as described control appliance, and this control appliance comprises:
Find module, change for discovering network topology;
Sending module, for in the time that discovering network topology changes, send for removing many virtual local network log-on protocols MVRP message of forwarding-table item to the described network equipment of not supporting the topological agreement of described appointment, do not support described in instruction the network equipment of the topological agreement of described appointment to remove the forwarding-table item of self.
The topological agreement of described appointment comprises rapid ring protection protocol RRPP agreement or flexible link Smart Link agreement.
When the topological agreement of described appointment is RRPP agreement;
Described sending module, send forwarding data bank refresh Flush-FDB message specifically for other network equipments in the network equipment to the topological agreement of the described appointment of support, described other network equipments of instruction utilize described Flush-FDB message to remove the forwarding-table item of self; And send MVRP message to the described network equipment of not supporting the topological agreement of described appointment, do not support the network equipment of the topological agreement of described appointment to utilize described MVRP message to remove the forwarding-table item of self described in instruction.
When the topological agreement of described appointment is Smart Link agreement;
Described sending module, sends and refreshes Flush message specifically for other network equipments in the network equipment to the topological agreement of the described appointment of support, and described other network equipments of instruction utilize described Flush message to remove the forwarding-table item of self; And send MVRP message to the described network equipment of not supporting the topological agreement of described appointment, do not support the network equipment of the topological agreement of described appointment to utilize described MVRP message to remove the forwarding-table item of self described in instruction; Or, to supporting other network equipments in the network equipment of described appointment topological agreement and not supporting the network equipment of the topological agreement of described appointment to send MVRP message, described other network equipments of instruction and do not support the network equipment of the topological agreement of described appointment to utilize described MVRP message to remove the forwarding-table item of self.
Describedly comprise for the MVRP message of removing forwarding-table item: the new message based on MVRP agreement.
Compared with prior art, the present invention at least has the following advantages: after discovering network topology changes, be used for removing MVRP (the Multiple VLAN Register Protocol of forwarding-table item by transmission, multi-VLAN log-in protocol) message, thereby specify in RRPP agreement and Smart Link agreement etc. under the scene of topological agreement, make not support to specify the network equipment of topological agreement can delete in time forwarding-table item, recover in time the service traffics in network, thereby the range of application of topological agreement is specified in expansion.
Brief description of the drawings
Fig. 1 is the networking schematic diagram of Smart Link in prior art;
Fig. 2 is the management method flow chart of a kind of forwarding-table item provided by the invention;
Fig. 3 is the application scenarios schematic diagram for RRPP agreement in the present invention;
Fig. 4 is the management equipment structure chart of a kind of forwarding-table item of proposing of the present invention.
Embodiment
The invention provides a kind of management method of forwarding-table item, for the network equipment of not supporting to specify topological agreement (as RRPP agreement or Smart Link agreement) in prior art, cannot delete in time the problem of forwarding-table item (as MAC address entries and ARP/ND list item), (in practical application, can also be the change in topology message of MSTP by using MVRP message, follow-uply describe as an example of MVRP message example), notice does not support to specify the network equipment of topological agreement to delete in time forwarding-table item.
MVRP is MRP (Multiple Register Protocol, many log-in protocol) application on VLAN attribute, for issuing and learn VLAN configuration information at equipment room, make the equipment can automatic synchronization VLAN configuration information, minimizing webmaster personnel's configuration effort; After network topology changes, MVRP issues and learns VLAN configuration information again according to new topology, to synchronize and to upgrade with network topology in real time.
Based on MVRP agreement, the management method of forwarding-table item provided by the invention, be applied to and comprise the network equipment of the topological agreement of support appointment and do not support in the network system of the network equipment of specifying topological agreement, and the each network equipment in network system all needs to support MVRP agreement, in addition, in the network equipment of supporting to specify topological agreement, have the control appliance that a network equipment is network system, and control appliance upgrades the forwarding-table item of self for each network equipment of control net system.
In the present invention, this appointment topology agreement includes but not limited to RRPP agreement or Smart Link agreement, and while specifying topological agreement to be RRPP agreement, control appliance is the host node (being the host node in RRPP networking structure) in network system; While specifying topological agreement to be Smart Link agreement, control appliance is the Smart Link equipment (disposing the network equipment of Smart Link group) in network system.
As shown in Figure 2, the management method of this forwarding-table item comprises the following steps:
Step 201, control appliance discovering network topology changes.
While specifying topological agreement to be RRPP agreement, the mode that control appliance discovering network topology changes comprises:
(1) in RRPP polling mechanism, host node (being control appliance) periodically sends hello packet from its master port, propagate on ring through each transmission node successively, if loop ruptures, the secondary port of host node cannot be received hello packet before timer expiry, and discovering network topology changes.
(2) in the linkdown alarming mechanism of RRPP, when any one belongs to the port down of RRPP domain when transmission node, fringe node or the discovery of assistant edge node self, can send at once Link-Down (link failure) message to host node (being control appliance); Host node receives that, after Link-Down message, discovering network topology changes.
While specifying topological agreement to be Smart Link agreement, the mode that control appliance discovering network topology changes comprises: in the time that link switching occurs Smart Link group, Smart Link equipment (being control appliance) the discovering network topology at Smart Link group place changes.
Step 202, control appliance is to not supporting to specify the network equipment of topological agreement to send for removing the MVRP message of forwarding-table item, and instruction does not support to specify the network equipment of topological agreement to remove the forwarding-table item of self.This forwarding-table item is MAC address entries and ARP/ND list item; This MVRP message that is used for removing forwarding-table item comprises: the new message based on MVRP agreement.
While specifying topological agreement to be RRPP agreement, control appliance, to not supporting to specify the network equipment of topological agreement to send for removing the MVRP message of forwarding-table item, comprising:
Control appliance sends Flush-FDB message to other network equipments in the network equipment of the topological agreement of support appointment, indicates other network equipments to utilize Flush-FDB message to remove the forwarding-table item of self; And to not supporting to specify the network equipment of topological agreement to send MVRP message, instruction does not support to specify the network equipment of topological agreement to utilize MVRP message to remove the forwarding-table item of self.
While specifying topological agreement to be Smart Link agreement, control appliance, to not supporting to specify the network equipment of topological agreement to send for removing the MVRP message of forwarding-table item, comprising:
Mode one, control appliance send Flush message to other network equipments in the network equipment of the topological agreement of support appointment, indicate other network equipments to utilize Flush message to remove the forwarding-table item of self; And to not supporting to specify the network equipment of topological agreement to send MVRP message, instruction does not support to specify the network equipment of topological agreement to utilize MVRP message to remove the forwarding-table item of self.
Mode two, control appliance, to supporting to specify other network equipments in the network equipment of topological agreement and not supporting to specify the network equipment of topological agreement to send MVRP message, are indicated other network equipments and are not supported to specify the network equipment of topological agreement to utilize MVRP message to remove the forwarding-table item of self.
Step 203, does not support to specify the network equipment of topological agreement to remove the forwarding-table item of self.
In the present invention, while specifying topological agreement to be RRPP agreement, for the network equipment of not supporting RRPP agreement, receiving after Flush-FDB message, this Flush-FDB message of None-identified, therefore can not delete based on Flush-FDB message the forwarding-table item of self; But when after the new message receiving based on MVRP agreement, owing to can identifying this new message based on MVRP agreement, and characteristic based on new message itself, can remove the forwarding-table item of self.
While specifying topological agreement to be Smart Link agreement, for the network equipment of not supporting Smart Link agreement, receiving after Flush message, this Flush message of None-identified, therefore can not delete based on Flush message the forwarding-table item of self; But when after the new message receiving based on MVRP agreement, owing to can identifying this new message based on MVRP agreement, and characteristic based on new message itself, can remove the forwarding-table item of self.
Below in conjunction with the application scenarios shown in Fig. 3, the process of RRPP agreement is elaborated.
Suppose that Device A, Device B, Device C, Device D, Device E are the network equipment (as router) of supporting RRPP agreement, the Ring (ring) 1 of Device A, Device B, Device C, Device D composition RRPP, the Ring2 of Device A, Device B, Device C, Device D, Device E composition RRPP.In addition, between Device A and Device D, also there is a Device F who does not support RRPP agreement.
Suppose that the link between Device B and Device A breaks down, and Device B is host node (being control appliance), in prior art, after Device B discovery fault (being that discovering network topology changes), can send Flush-FDB message to the each node in ring, taking Ring1 as example, this Flush-FDB message can be sent to Device A, Device C, Device D, on Device F, due to Device A, Device C, Device D can identify Flush-FDB message, therefore can delete based on this Flush-FDB message the forwarding-table item of self, but because Device F can not identify Flush-FDB message, therefore can not delete the forwarding-table item of self, cause the forwarding-table item of Device F can not be cleared, thereby make this Device F under hang and standby cannot normally go up under other nodes and these nodes and hang devices communicating with ring, the link switching performance of RRPP is impacted.
In the present invention, after Device B discovery fault (being that discovering network topology changes), can be when transmission Flush-FDB message be to the each node in ring, send MVRP message (the i.e. new message based on MVRP agreement, wherein comprised the related all vlan informations of RRPP change in topology, and the type of message of these VLAN is new); Because Device A, Device C, Device D can identify Flush-FDB message, therefore can delete based on this Flush-FDB message the forwarding-table item of self; Although Device F can not identify Flush-FDB message, but Device F can identify the new message based on MVRP agreement, and in IEEE, clearly regulation " is being received after the new message of MVRP; all forwarding-table items in the transmitting of assigned vlan on packet receiving port (being the related all vlan informations of change in topology that carry in new message) need to be emptied ", and therefore Device F can delete based on this new message the forwarding-table item of self.
In sum, said method can solve the limited problem of networking of RRPP technology; After topology changes, other equipment in informing network (support the network equipment of RRPP agreement or do not support the network equipment of RRPP agreement) are deleted its forwarding-table item in time, recover in time the service traffics in network.
Below in conjunction with the application scenarios shown in Fig. 1, the process of Smart Link agreement is elaborated.
Suppose that Device A, Device B, Device C, Device D are the network equipment (as router) of supporting Smart Link agreement, Device E is the network equipment of not supporting Smart Link agreement; And configuration Smart Link group on Device C, Device D, Device C, Device D are Smart Link equipment (being control appliance).In the time that the Smart Link principal and subordinate link on Device C switches, the flow in network also needs can be switched on new active link.
In prior art, after Device C discovery Smart Link principal and subordinate link switches (being that discovering network topology changes), can send Flush message to the each node in network, and this Flush message can be sent on Device A, Device B, Device D, Device E, because Device A, Device B, Device D can identify Flush message, therefore can delete based on this Flush message the forwarding-table item of self; But because Device E can not identify Flush message, therefore can not delete the forwarding-table item of self, cause the forwarding-table item of Device E can not be cleared, still can be by active link direction old traffic steering while being Device E transmitted traffic, the flow that is Device E cannot be switched on new active link, and the link switching performance of Smart Link is impacted.
In the present invention, after Device C discovery Smart Link principal and subordinate link switches (being that discovering network topology changes), can directly send MVRP message (the i.e. new message based on MVRP agreement, the related all vlan informations of Smart Link change in topology are wherein comprised, and the type of message of these VLAN is new) to the each node in network, and should the new message based on MVRP agreement can be sent to Device A, Device B, Device D, on Device E, due to Device A, Device B, Device D, Device E all can identify the new message based on MVRP agreement, and clearly regulation " is being received after the new message of MVRP in IEEE, all forwarding-table items in the transmitting of assigned vlan on packet receiving port (being the related all vlan informations of change in topology that carry in new message) need to be emptied ", therefore Device A, Device B, Device D, Device E can delete based on this new message the forwarding-table item of self, thereby make flow switch in network to new active link.
In sum, said method can solve the limited problem of networking of Smart Link technology; After topology changes, other equipment in informing network (support the network equipment of Smart Link agreement or do not support the network equipment of Smart Link agreement) are deleted its forwarding-table item in time, recover in time the service traffics in network.
Based on the inventive concept same with said method, the present invention also proposes a kind of management equipment of forwarding-table item, be applied to and comprise the network equipment of the topological agreement of support appointment and do not support in the network system of the network equipment of the topological agreement of described appointment, in specifying the network equipment of topological agreement, described support has the control appliance that a network equipment is described network system, described control appliance upgrades the forwarding-table item of self for controlling each network equipment of described network system, and described management equipment is as described control appliance, as shown in Figure 4, this control appliance comprises:
Find module 11, change for discovering network topology;
Sending module 12, for in the time that discovering network topology changes, send for removing many virtual local network log-on protocols MVRP message of forwarding-table item to the described network equipment of not supporting the topological agreement of described appointment, do not support described in instruction the network equipment of the topological agreement of described appointment to remove the forwarding-table item of self.
In the present invention, the topological agreement of described appointment comprises rapid ring protection protocol RRPP agreement or flexible link Smart Link agreement.
When the topological agreement of described appointment is RRPP agreement; Described sending module 12, send forwarding data bank refresh Flush-FDB message specifically for other network equipments in the network equipment to the topological agreement of the described appointment of support, described other network equipments of instruction utilize described Flush-FDB message to remove the forwarding-table item of self; And send MVRP message to the described network equipment of not supporting the topological agreement of described appointment, do not support the network equipment of the topological agreement of described appointment to utilize described MVRP message to remove the forwarding-table item of self described in instruction.
When the topological agreement of described appointment is Smart Link agreement; Described sending module 12, sends and refreshes Flush message specifically for other network equipments in the network equipment to the topological agreement of the described appointment of support, and described other network equipments of instruction utilize described Flush message to remove the forwarding-table item of self; And send MVRP message to the described network equipment of not supporting the topological agreement of described appointment, do not support the network equipment of the topological agreement of described appointment to utilize described MVRP message to remove the forwarding-table item of self described in instruction; Or,
To supporting other network equipments in the network equipment of described appointment topological agreement and not supporting the network equipment of the topological agreement of described appointment to send MVRP message, described other network equipments of instruction and do not support the network equipment of the topological agreement of described appointment to utilize described MVRP message to remove the forwarding-table item of self.
In the present invention, describedly comprise for the MVRP message of removing forwarding-table item: the new message based on MVRP agreement.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into multiple submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, and the mode that also can add necessary general hardware platform by software realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise that some instructions are in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into multiple submodules.
The invention described above sequence number, just to describing, does not represent the quality of embodiment.
Disclosed is above only several specific embodiment of the present invention, and still, the present invention is not limited thereto, and the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.