CN113612590A - Self-adaptive adjusting method and device based on exchange board card change - Google Patents

Self-adaptive adjusting method and device based on exchange board card change Download PDF

Info

Publication number
CN113612590A
CN113612590A CN202110961962.3A CN202110961962A CN113612590A CN 113612590 A CN113612590 A CN 113612590A CN 202110961962 A CN202110961962 A CN 202110961962A CN 113612590 A CN113612590 A CN 113612590A
Authority
CN
China
Prior art keywords
aggregation group
old
unicast
entry
ignored
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.)
Granted
Application number
CN202110961962.3A
Other languages
Chinese (zh)
Other versions
CN113612590B (en
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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202110961962.3A priority Critical patent/CN113612590B/en
Publication of CN113612590A publication Critical patent/CN113612590A/en
Application granted granted Critical
Publication of CN113612590B publication Critical patent/CN113612590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a self-adaptive adjusting method and a device based on exchange board card change, wherein the method comprises the following steps: acquiring a first inline port set and a second inline port set; setting each port included in a second inline port set in a non-unicast blocking table as a port which is forbidden to be forwarded and put through a first inline port set by each table item; creating new aggregation groups corresponding to all the old aggregation groups related to the second inline port set, and setting the ignored fields of all the table entries in the non-unicast service table to point to all the new aggregation groups; and adding related ports in each old aggregation group into the corresponding new aggregation group, changing the exit of the unicast forwarding table into the corresponding new aggregation group, and changing the ignored fields of each table entry in the non-unicast service table to point to each old aggregation group. This scheme can avoid multiple packets.

Description

Self-adaptive adjusting method and device based on exchange board card change
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for adaptive adjustment based on a change of a switch board.
Background
The frame type network device is a commonly-used network device adopting a frame type framework, and generally comprises a plurality of board cards, wherein the board cards comprise a control board card, at least two switch board cards and at least two service board cards, the control board card is used for managing the service board cards and the switch board cards, the service board cards are used for realizing the input and output of messages, the switch board cards are used for forwarding the messages between the service board cards, ports of the service board cards and the switch board cards which are interconnected are inline ports, and a plurality of inline ports of the service board cards can form a plurality of aggregation groups.
The switching board card in the frame network device may have a switching board card change, including the situation that the switching board card is pulled out, the switching board card is reset, and the like, after the service board card monitors that a certain connected switching board card has a switching board card change event, assuming that an inline port in the service board card, which is unchanged in connection state, is a first port and an inline port connected to the changed switching board card is a second port, setting the second port in the non-unicast blocking table to be prohibited from forwarding, deleting the second port from each current aggregation group, finally setting the non-unicast blocking table, and putting through the first ports in the service board card in turn.
After the service board card adopts the adaptive adjustment method based on the change of the switch board card, in the actual application process, if a message is forwarded, the situation that the same message is forwarded to a plurality of ports occurs, that is, the problem of multiple packets occurs.
Disclosure of Invention
The embodiment of the invention provides a self-adaptive adjusting method and device based on exchange board card change, which are used for solving the problem of multiple packets in the prior art.
According to an embodiment of the present invention, a self-adaptive adjustment method based on a switch board change is provided, which is applied to at least two service boards included in a frame network device, where the at least two service boards are connected to at least two switch board cards included in the frame network device, respectively, and the method includes:
after a switching board card change event is monitored, acquiring an inline port with an unchanged connection state to obtain a first inline port set, and acquiring an inline port connected with a changed switching board card to obtain a second inline port set;
setting each port included in the second inline port set in a non-unicast blocking table as a port which is forbidden to be forwarded, and putting each table entry in the non-unicast blocking table through one port in the first inline port set;
creating a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located, and setting that the ignored fields of each table entry in the non-unicast service table point to each new aggregation group;
and adding other ports except the ports contained in the second inline port set in each old aggregation group into the corresponding new aggregation group, changing the outlet of the unicast forwarding table from each old aggregation group to the corresponding new aggregation group, and changing the ignored fields of each entry in the non-unicast service table from pointing to each new aggregation group to pointing to each old aggregation group.
Optionally, the method further includes:
deleting the ports included in each old aggregation group, and canceling the ignored fields of the entries in the non-unicast service table to point to the old aggregation groups.
Optionally, after creating a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located, the method further includes:
and adding the first identification of each old aggregation group and the second identification of the corresponding new aggregation group in the omission table.
Specifically, setting the ignore field of each entry in the non-unicast service table to point to each new aggregation group includes:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the ignored field of each table entry into a second identifier of each new aggregation in the ignored table.
Specifically, changing the ignored fields of the entries in the non-unicast service table from pointing to the new aggregation groups to pointing to the old aggregation groups includes:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the ignored field of each table entry into the first identifier of each old aggregation in the ignored table.
Specifically, canceling the ignore field of each entry in the non-unicast service table to point to each old aggregation group includes:
acquiring the ignored fields of each table entry in the non-unicast service table;
and clearing the field value of the ignored field of each table entry.
According to an embodiment of the present invention, there is further provided an adaptive adjustment device based on a change of a switch board, which is applied to at least two service boards included in a frame network device, where the at least two service boards are connected to the at least two switch boards included in the frame network device, respectively, and the device includes:
the acquisition module is used for acquiring the inline ports with unchanged connection states to obtain a first inline port set and acquiring the inline ports connected with the changed switch board card to obtain a second inline port set after monitoring the change event of the switch board card;
a first setting module, configured to set each port included in the second inline port set in a non-unicast blocking table as prohibited to be forwarded, and put each entry in the non-unicast blocking table through one port in the first inline port set;
a second setting module, configured to create a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located, and set that an ignore field of each entry in the non-unicast service table points to each new aggregation group;
and a changing module, configured to add other ports in each old aggregation group except the port included in the second inline port set to the corresponding new aggregation group, change an exit of the unicast forwarding table from each old aggregation group to the corresponding new aggregation group, and change an ignore field of each entry in the non-unicast service table from pointing to each new aggregation group to pointing to each old aggregation group.
Optionally, the method further includes:
and the deleting module is used for deleting the ports included in each old aggregation group and canceling the ignored fields of each table entry in the non-unicast service table to point to each old aggregation group.
Optionally, the second setting module is configured to, after creating a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located, further:
and adding the first identification of each old aggregation group and the second identification of the corresponding new aggregation group in the omission table.
Specifically, the second setting module is configured to set that the ignore field of each entry in the non-unicast service table points to each new aggregation group, and specifically configured to:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the ignored field of each table entry into a second identifier of each new aggregation in the ignored table.
Specifically, the changing module is configured to change the ignored fields of the entries in the non-unicast service table from pointing to the new aggregation groups to pointing to the old aggregation groups, and specifically is configured to:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the ignored field of each table entry into the first identifier of each old aggregation in the ignored table.
Specifically, the deleting module is configured to cancel that an ignored field of each entry in the non-unicast service table points to each old aggregation group, and specifically configured to:
acquiring the ignored fields of each table entry in the non-unicast service table;
and clearing the field value of the ignored field of each table entry.
According to the embodiment of the invention, the electronic equipment comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the above method steps when executing the program stored in the memory.
According to an embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein a computer program, which when executed by a processor, performs the above-mentioned method steps.
The invention has the following beneficial effects:
the embodiment of the invention provides a self-adaptive adjusting method and a self-adaptive adjusting device based on exchange board card change.A first inline port set is obtained by acquiring an inline port with unchanged connection state after monitoring an exchange board card change event, and a second inline port set is obtained by acquiring an inline port connected with a changed exchange board card; setting each port included in the second inline port set in a non-unicast blocking table as a port which is forbidden to be forwarded, and putting each table entry in the non-unicast blocking table through one port in the first inline port set; creating a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located, and setting that the ignored fields of each table entry in the non-unicast service table point to each new aggregation group; and adding other ports except the ports contained in the second inline port set in each old aggregation group into the corresponding new aggregation group, changing the outlet of the unicast forwarding table from each old aggregation group to the corresponding new aggregation group, and changing the ignored fields of each entry in the non-unicast service table from pointing to each new aggregation group to pointing to each old aggregation group. In the scheme, the new aggregation group or the old aggregation group only takes effect at a certain moment is ensured by setting the port state in the non-unicast blocking table, adjusting the neglected fields of all the table entries in the non-unicast service table to point to all the new aggregation groups or all the old aggregation groups and changing the unicast forwarding outlet, and the new aggregation group and the old aggregation group do not take effect at the same time, so that the forwarding is carried out based on one aggregation group after the message is received, and the problem of multiple packets is avoided.
Drawings
Fig. 1 is a flowchart of an adaptive adjustment method based on a change of a switch board card in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an adaptive adjusting device based on a change of a switch board card in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device shown in the present application.
Detailed Description
To solve the problem of multiple packets in the prior art, an embodiment of the present invention provides a self-adaptive adjustment method based on a change of a switch board, which is applied to at least two service boards included in a frame network device, where the at least two service boards are connected to at least two switch boards included in the frame network device, respectively, and a flow of the method is shown in fig. 1, and the method includes the following steps:
s11: after the switching board card change event is monitored, the inline ports with unchanged connection states are obtained to obtain a first inline port set, and the inline ports connected with the changed switching board card are obtained to obtain a second inline port set.
And the service board card is connected with at least two exchange board cards, and if the exchange board card is pulled out or the exchange board card is reset, the exchange board card change event is monitored. At this time, the inline ports whose connection state is not changed may be acquired, and these ports may be defined as a first inline port set, and the inline ports connected to the changed board card may be acquired, and these ports may be defined as a second inline port set.
S12: and setting each port included in the second inline port set in the non-unicast blocking table as a port in the first inline port set which is prohibited from forwarding and put through by each table entry in the non-unicast blocking table.
The index of the non-unicast blocking table (non-unicast _ TRUNK _ BLOCK _ MASK) is a load balancing value, and the field comprises a set of blocked ports and is used for enabling non-unicast messages (including broadcast messages, multicast messages and unknown unicast messages) to be forwarded to some ports according to the load balancing value and not to be forwarded to the blocked ports.
After monitoring a switch board card change event, setting each port included in a second inline port set in a non-unicast blocking table as prohibited to be forwarded, thereby ensuring that a message does not notify each port included in the second inline port set to be forwarded, and setting each entry in the non-unicast blocking table to be put through one port in a first inline port set, each entry including one port in the first inline port set.
S13: and creating a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located, and setting the ignored fields of each table entry in the non-unicast service table to point to each new aggregation group.
Each created new aggregation group is in one-to-one correspondence with each old aggregation group, and at this time, each new aggregation group is still empty, and no port is added.
The non-unicast service table is a general term for a series of forwarding service related entries of non-unicast messages, and includes a Virtual Local Area Network (VLAN) table, an L2MC table, an L3_ IPMC table, and an IFP _ REDIRECTION _ PROFILE table, where an index is a key field of a message, a field includes a set of forwardable ports, an ignore field, and the like, and functions to provide a forwardable port of a non-unicast message and an aggregation group to be ignored, and the like.
After creating a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located, it may be set that the ignore field of each entry in the non-unicast service table points to each new aggregation group.
S14: and adding other ports except the ports contained in the second inline port set in each old aggregation group into the corresponding new aggregation group, changing the outlet of the unicast forwarding table from each old aggregation group to the corresponding new aggregation group, and changing the ignored fields of the entries in the non-unicast service table from pointing to each new aggregation group to pointing to each old aggregation group.
The unicast forwarding table is a general term for list items related to forwarding services of a series of unicast messages, and comprises an MAC address table and a three-layer forwarding table, wherein indexes are key fields of the messages, the fields comprise destination port numbers and destination chip numbers, and the unicast forwarding table is used for providing destination ports of the unicast messages.
After adding other ports in each old aggregation group except the ports contained in the second inline port set into the corresponding new aggregation group, the exit of the unicast forwarding table can be changed from each old aggregation group to the corresponding new aggregation group, so that the ports of the new aggregation group can be enabled to carry out message forwarding, the ignore field of each entry in the non-unicast service table can be changed from pointing to each new aggregation group to pointing to each old aggregation group, the new aggregation group is enabled, the old aggregation group is ignored by the ignore field, and the message forwarding by the new aggregation group is ensured.
In the scheme, the new aggregation group or the old aggregation group only takes effect at a certain moment is ensured by setting the port state in the non-unicast blocking table, adjusting the neglected fields of all the table entries in the non-unicast service table to point to all the new aggregation groups or all the old aggregation groups and changing the unicast forwarding outlet, and the new aggregation group and the old aggregation group do not take effect at the same time, so that the forwarding is carried out based on one aggregation group after the message is received, and the problem of multiple packets is avoided.
Optionally, after S14, the method further includes:
deleting the ports included in each old aggregation group, and canceling the ignore field of each entry in the non-unicast service table to point to each old aggregation group.
Because the old aggregation group does not exist, after the adjustment is made, the new aggregation group can be started, so that the ports included in each old aggregation group can be completely deleted, and the ignored fields of each entry in the non-unicast service table are cancelled to point to each old aggregation group.
Optionally, after creating a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located in S13, the method further includes:
and adding the first identification of each old aggregation group and the second identification of the corresponding new aggregation group in the omission table.
At this time, each entry in the ignore table may be configured to store an identifier of a pair of a new aggregation group and an old aggregation group, where the identifier of the old aggregation group may be defined as the first identifier, and the identifier of the new aggregation group may be defined as the second identifier. One way to create a new aggregation group is just listed here, and many other ways to create the new aggregation group are also listed here, which are not described one by one here.
Specifically, the ignoring field of each entry in the non-unicast service table set in S13 points to each new aggregation group, and the implementation process specifically includes:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the neglected field of each table entry into a second identifier of each new aggregation in the neglected table.
Because the ignore list records the identifications of the new aggregation group and the old aggregation group, when the ignore field of each entry in the non-unicast service list points to each new aggregation group, the field value of the ignore field of each entry can be directly modified to realize the operation.
Specifically, in the above S14, changing the ignored field of each entry in the non-unicast service table from pointing to each new aggregation group to pointing to each old aggregation group includes:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the ignored field of each table entry into the first identifier of each old aggregation in the ignored table.
Because the ignore table records the identifications of the new aggregation group and the old aggregation group, when the ignore field of each entry in the non-unicast service table is changed from pointing to each new aggregation group to pointing to each old aggregation group, the ignore field can be directly modified to realize the change.
Specifically, the foregoing ignoring field of canceling each entry in the non-unicast service table in S15 points to each old aggregation group, and the implementation process specifically includes:
acquiring the ignored fields of each table entry in the non-unicast service table;
and clearing the field value of the ignored field of each table entry.
Because the ignore table records the identifications of the new aggregation group and the old aggregation group, when the ignore field of each entry in the cancel non-unicast service table points to each old aggregation group, the field value of the ignore field of each entry can be directly cleared to realize the operation.
Based on the same inventive concept, an embodiment of the present invention provides an adaptive adjustment device based on a change of a switch board, which is applied to at least two service boards included in a frame network device, where the at least two service boards are respectively connected to the at least two switch boards included in the frame network device, and a structure of the device is shown in fig. 2, and includes:
the obtaining module 21 is configured to obtain an inline port with an unchanged connection state to obtain a first inline port set and obtain an inline port connected to a changed board card to obtain a second inline port set after monitoring a change event of the board card;
a first setting module 22, configured to set each port included in the second inline port set in the non-unicast blocking table as a port in the first inline port set that is prohibited from forwarding and put through by each entry in the non-unicast blocking table;
a second setting module 23, configured to create a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located, and set that an ignore field of each entry in the non-unicast service table points to each new aggregation group;
a changing module 24, configured to add other ports in each old aggregation group except the port included in the second inline port set to the corresponding new aggregation group, change an exit of the unicast forwarding table from each old aggregation group to the corresponding new aggregation group, and change an ignore field of each entry in the non-unicast traffic table from pointing to each new aggregation group to pointing to each old aggregation group.
In the scheme, the new aggregation group or the old aggregation group only takes effect at a certain moment is ensured by setting the port state in the non-unicast blocking table, adjusting the neglected fields of all the table entries in the non-unicast service table to point to all the new aggregation groups or all the old aggregation groups and changing the unicast forwarding outlet, and the new aggregation group and the old aggregation group do not take effect at the same time, so that the forwarding is carried out based on one aggregation group after the message is received, and the problem of multiple packets is avoided.
Optionally, the method further includes:
and the deleting module is used for deleting the ports included in each old aggregation group and canceling the ignored fields of each table entry in the non-unicast service table to point to each old aggregation group.
Optionally, the second setting module 23 is configured to, after creating a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located, further:
and adding the first identification of each old aggregation group and the second identification of the corresponding new aggregation group in the omission table.
Specifically, the second setting module 23 is configured to set that the ignore field of each entry in the non-unicast service table points to each new aggregation group, and specifically configured to:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the neglected field of each table entry into a second identifier of each new aggregation in the neglected table.
Specifically, the changing module 24 is configured to change the ignored field of each entry in the non-unicast service table from pointing to each new aggregation group to pointing to each old aggregation group, and specifically is configured to:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the ignored field of each table entry into the first identifier of each old aggregation in the ignored table.
Specifically, the deleting module 25 is configured to cancel that an ignored field of each entry in the non-unicast service table points to each old aggregation group, and specifically configured to:
acquiring the ignored fields of each table entry in the non-unicast service table;
and clearing the field value of the ignored field of each table entry.
An electronic device is further provided in the embodiment of the present application, please refer to fig. 3, which includes a processor 310, a communication interface 320, a memory 330, and a communication bus 340, wherein the processor 310, the communication interface 320, and the memory 330 complete communication with each other through the communication bus 340.
A memory 330 for storing a computer program;
the processor 310 is configured to implement the adaptive adjustment method based on the switch board change according to any one of the embodiments described above when executing the program stored in the memory 330.
The communication interface 320 is used for communication between the above-described electronic device and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the scheme, the new aggregation group or the old aggregation group only takes effect at a certain moment is ensured by setting the port state in the non-unicast blocking table, adjusting the neglected fields of all the table entries in the non-unicast service table to point to all the new aggregation groups or all the old aggregation groups and changing the unicast forwarding outlet, and the new aggregation group and the old aggregation group do not take effect at the same time, so that the forwarding is carried out based on one aggregation group after the message is received, and the problem of multiple packets is avoided.
Accordingly, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is caused to execute any one of the adaptive adjustment methods based on the change of the switch board described in the foregoing embodiments.
In the scheme, the new aggregation group or the old aggregation group only takes effect at a certain moment is ensured by setting the port state in the non-unicast blocking table, adjusting the neglected fields of all the table entries in the non-unicast service table to point to all the new aggregation groups or all the old aggregation groups and changing the unicast forwarding outlet, and the new aggregation group and the old aggregation group do not take effect at the same time, so that the forwarding is carried out based on one aggregation group after the message is received, and the problem of multiple packets is avoided.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While alternative embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (14)

1. A self-adaptive adjustment method based on exchange board card change is applied to at least two service board cards included in a frame type network device, wherein the at least two service board cards are respectively connected with at least two exchange board cards included in the frame type network device, and the method is characterized by comprising the following steps:
after a switching board card change event is monitored, acquiring an inline port with an unchanged connection state to obtain a first inline port set, and acquiring an inline port connected with a changed switching board card to obtain a second inline port set;
setting each port included in the second inline port set in a non-unicast blocking table as a port which is forbidden to be forwarded, and putting each table entry in the non-unicast blocking table through one port in the first inline port set;
creating a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located, and setting that the ignored fields of each table entry in the non-unicast service table point to each new aggregation group;
and adding other ports except the ports contained in the second inline port set in each old aggregation group into the corresponding new aggregation group, changing the outlet of the unicast forwarding table from each old aggregation group to the corresponding new aggregation group, and changing the ignored fields of each entry in the non-unicast service table from pointing to each new aggregation group to pointing to each old aggregation group.
2. The method of claim 1, further comprising:
deleting the ports included in each old aggregation group, and canceling the ignored fields of the entries in the non-unicast service table to point to the old aggregation groups.
3. The method of claim 2, wherein after creating a new aggregation group corresponding to each old aggregation group in which each port in the second set of inline ports resides, further comprising:
and adding the first identification of each old aggregation group and the second identification of the corresponding new aggregation group in the omission table.
4. The method of claim 3, wherein setting the ignore field of each entry in the non-unicast traffic table to point to each new aggregation group comprises:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the ignored field of each table entry into a second identifier of each new aggregation in the ignored table.
5. The method of claim 3, wherein changing the ignore field of each entry in the non-unicast traffic table from pointing to each new aggregation group to pointing to each old aggregation group comprises:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the ignored field of each table entry into the first identifier of each old aggregation in the ignored table.
6. The method of claim 3, wherein canceling an ignore field of each entry in the non-unicast traffic table to point to each old aggregation group comprises:
acquiring the ignored fields of each table entry in the non-unicast service table;
and clearing the field value of the ignored field of each table entry.
7. An adaptive adjusting device based on exchange board card change is applied to at least two service board cards included in a frame type network device, wherein the at least two service board cards are respectively connected with at least two exchange board cards included in the frame type network device, and the adaptive adjusting device is characterized by comprising:
the acquisition module is used for acquiring the inline ports with unchanged connection states to obtain a first inline port set and acquiring the inline ports connected with the changed switch board card to obtain a second inline port set after monitoring the change event of the switch board card;
a first setting module, configured to set each port included in the second inline port set in a non-unicast blocking table as prohibited to be forwarded, and put each entry in the non-unicast blocking table through one port in the first inline port set;
a second setting module, configured to create a new aggregation group corresponding to each old aggregation group where each port in the second inline port set is located, and set that an ignore field of each entry in the non-unicast service table points to each new aggregation group;
and a changing module, configured to add other ports in each old aggregation group except the port included in the second inline port set to the corresponding new aggregation group, change an exit of the unicast forwarding table from each old aggregation group to the corresponding new aggregation group, and change an ignore field of each entry in the non-unicast service table from pointing to each new aggregation group to pointing to each old aggregation group.
8. The apparatus of claim 7, further comprising:
and the deleting module is used for deleting the ports included in each old aggregation group and canceling the ignored fields of each table entry in the non-unicast service table to point to each old aggregation group.
9. The apparatus of claim 8, wherein the second setting module, after creating a new aggregation group corresponding to each old aggregation group in which each port in the second set of inline ports is located, is further configured to:
and adding the first identification of each old aggregation group and the second identification of the corresponding new aggregation group in the omission table.
10. The apparatus of claim 8, wherein the second setting module is configured to set that the ignore field of each entry in the non-unicast traffic table points to each new aggregation group, and is specifically configured to:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the ignored field of each table entry into a second identifier of each new aggregation in the ignored table.
11. The apparatus of claim 8, wherein the changing module is configured to change the ignore field of each entry in the non-unicast traffic table from pointing to each new aggregation group to pointing to each old aggregation group, and is specifically configured to:
acquiring the ignored fields of each table entry in the non-unicast service table;
and modifying the field value of the ignored field of each table entry into the first identifier of each old aggregation in the ignored table.
12. The apparatus according to claim 8, wherein the deleting module is configured to cancel that the ignore field of each entry in the non-unicast traffic table points to each old aggregation group, and is specifically configured to:
acquiring the ignored fields of each table entry in the non-unicast service table;
and clearing the field value of the ignored field of each table entry.
13. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored on a memory.
14. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN202110961962.3A 2021-08-20 2021-08-20 Self-adaptive adjustment method and device based on change of exchange board card Active CN113612590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110961962.3A CN113612590B (en) 2021-08-20 2021-08-20 Self-adaptive adjustment method and device based on change of exchange board card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110961962.3A CN113612590B (en) 2021-08-20 2021-08-20 Self-adaptive adjustment method and device based on change of exchange board card

Publications (2)

Publication Number Publication Date
CN113612590A true CN113612590A (en) 2021-11-05
CN113612590B CN113612590B (en) 2023-10-24

Family

ID=78309034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110961962.3A Active CN113612590B (en) 2021-08-20 2021-08-20 Self-adaptive adjustment method and device based on change of exchange board card

Country Status (1)

Country Link
CN (1) CN113612590B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505270A (en) * 2009-03-24 2009-08-12 神州数码网络(北京)有限公司 Method for aggregated link rapid convergence of distributed switch
CN105871614A (en) * 2016-03-31 2016-08-17 国网山西省电力公司信息通信分公司 Protection method and device of board cards in communication device
CN109104363A (en) * 2018-09-26 2018-12-28 迈普通信技术股份有限公司 A kind of message forwarding method and equipment
CN109194585A (en) * 2018-10-26 2019-01-11 新华三技术有限公司合肥分公司 Message forwarding method and the network equipment
CN109951324A (en) * 2019-02-28 2019-06-28 新华三技术有限公司 A kind of web plate isolation implementation method and device
CN111586505A (en) * 2020-04-26 2020-08-25 烽火通信科技股份有限公司 Method and device for realizing rapid recovery of main/standby switching service in PON access system
CN112073249A (en) * 2020-09-17 2020-12-11 深圳市信锐网科技术有限公司 Data transmission method, cluster switch system and related equipment
CN112165429A (en) * 2020-09-11 2021-01-01 烽火通信科技股份有限公司 Link aggregation convergence method and device for distributed switching equipment
CN112437027A (en) * 2020-11-11 2021-03-02 盛科网络(苏州)有限公司 Switching chip, switching equipment, stacking system and message forwarding method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505270A (en) * 2009-03-24 2009-08-12 神州数码网络(北京)有限公司 Method for aggregated link rapid convergence of distributed switch
CN105871614A (en) * 2016-03-31 2016-08-17 国网山西省电力公司信息通信分公司 Protection method and device of board cards in communication device
CN109104363A (en) * 2018-09-26 2018-12-28 迈普通信技术股份有限公司 A kind of message forwarding method and equipment
CN109194585A (en) * 2018-10-26 2019-01-11 新华三技术有限公司合肥分公司 Message forwarding method and the network equipment
CN109951324A (en) * 2019-02-28 2019-06-28 新华三技术有限公司 A kind of web plate isolation implementation method and device
CN111586505A (en) * 2020-04-26 2020-08-25 烽火通信科技股份有限公司 Method and device for realizing rapid recovery of main/standby switching service in PON access system
CN112165429A (en) * 2020-09-11 2021-01-01 烽火通信科技股份有限公司 Link aggregation convergence method and device for distributed switching equipment
CN112073249A (en) * 2020-09-17 2020-12-11 深圳市信锐网科技术有限公司 Data transmission method, cluster switch system and related equipment
CN112437027A (en) * 2020-11-11 2021-03-02 盛科网络(苏州)有限公司 Switching chip, switching equipment, stacking system and message forwarding method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雷洲: "企业级交换机系统的设计与实现", 《中国优秀硕士学位论文全文数据库》, no. 6 *

Also Published As

Publication number Publication date
CN113612590B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
EP2685676B1 (en) Multicast data forwarding method and device supporting virtual terminal
US9774461B2 (en) Network switch with dynamic multicast queues
CN103428094A (en) Method and device for packet transmitting in Open Flow system
CN104065759A (en) Method for improving utilization efficiency of NAT address pool resource and device thereof
CN113271266B (en) Message forwarding method and device of heterogeneous switching chip
CN105763472B (en) Cross-board forwarding method and device
US20180176121A1 (en) Optimizing information related to a route and/or a next hop for multicast traffic
CN104734953A (en) Method and device for achieving message layer-2 isolation based on VLAN and interchanger
CN103746922A (en) Method and device for forwarding multicast messages
CN111654437B (en) Message forwarding method and device based on data center
CN103338152A (en) Multicast message forwarding method and main control board
US7411909B2 (en) System and method for regulating data traffic in a network
CN113612590A (en) Self-adaptive adjusting method and device based on exchange board card change
EP3240251A1 (en) Line card determination, determination processing method and device, and line card determination system
CN106330652A (en) Learning method and device of MAC address in virtual local area network of switch
CN112073249A (en) Data transmission method, cluster switch system and related equipment
CN107579875B (en) Network message statistical method and device
CN112637234B (en) Security rule updating method and device based on port change
WO2007121013A2 (en) Bridging device configured for limiting the number of virtual local area networks created by gvrp at device and port level
JP2013223077A (en) Chassis type switch
CN113132506B (en) Message processing method and device based on super virtual local area network
CN113918504A (en) Method and device for realizing isolation group
US11088945B1 (en) Dynamic source-driven path setup across a switch fabric
CN111654491A (en) ACL sharing method, device, equipment and machine readable storage medium
CN105337873A (en) MSTP networking service distribution method and apparatus

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
GR01 Patent grant
GR01 Patent grant