CN107547254B - Method for processing network board event, service line card board and cluster system - Google Patents

Method for processing network board event, service line card board and cluster system Download PDF

Info

Publication number
CN107547254B
CN107547254B CN201710524256.6A CN201710524256A CN107547254B CN 107547254 B CN107547254 B CN 107547254B CN 201710524256 A CN201710524256 A CN 201710524256A CN 107547254 B CN107547254 B CN 107547254B
Authority
CN
China
Prior art keywords
board
line card
service line
data plane
frame
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.)
Active
Application number
CN201710524256.6A
Other languages
Chinese (zh)
Other versions
CN107547254A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201710524256.6A priority Critical patent/CN107547254B/en
Publication of CN107547254A publication Critical patent/CN107547254A/en
Application granted granted Critical
Publication of CN107547254B publication Critical patent/CN107547254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure relates to a method for processing a web event, a service cable clamping plate and a cluster system. The method comprises the following steps: the service line card board receives a preprocessing instruction corresponding to a network board event, and determines a first exchange network board about to have the network board event according to the preprocessing instruction; determining a data plane to which the first switching network board belongs; and closing the traffic outlet port of the service line card board corresponding to the data plane so as to forward the traffic through other data planes. The method and the device can realize zero packet loss in the process of the network board event of the switching network board, thereby ensuring the reliability of a cluster system.

Description

Method for processing network board event, service line card board and cluster system
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method for processing a web page event, a service line card and a trunking system.
Background
In a multi-frame cluster system, when a network board event (e.g., a restart event or a power down event) occurs in a line card frame or a switch network board in the switch frame, data (including locally cached data and data on a link) that cannot be processed by the switch network board in time is lost until a service line card board in the line card frame and/or other switch network boards in the same data plane detect that a route is unreachable and do not forward the data to the switch network board any more.
In the related art, a network board event of a switching network board may cause packet loss, which may result in that the reliability of a cluster system cannot be guaranteed.
Disclosure of Invention
In view of this, the present disclosure provides a method for processing a web event, a service line card board and a cluster system, so as to ensure reliability of the cluster system.
According to an aspect of the present disclosure, there is provided a method for processing web events, including:
the service line card board receives a preprocessing instruction corresponding to a network board event, and determines a first exchange network board about to have the network board event according to the preprocessing instruction;
determining a data plane to which the first switching network board belongs;
and closing the traffic outlet port of the service line card board corresponding to the data plane so as to forward the traffic through other data planes.
In a possible implementation manner, after determining a data plane to which the first switching network board belongs, the method further includes:
and determining whether the service line card board and the first exchange network board belong to the same line card frame, if not, after closing the flow output port corresponding to the service line card board and the data plane, re-opening the flow output port when a preset time length is reached.
In a possible implementation manner, if the traffic line card board and the data plane do not belong to the same line card frame, after closing a traffic output port corresponding to the traffic line card board and the data plane, the flow output port is reopened for a preset time period, which includes:
if the service line card board and the first exchange network board are determined not to belong to the same line card frame, setting an identification bit corresponding to the data plane on the service line card board as a first preset value, and resetting a timer corresponding to the data plane on the service line card board;
and when the identification bit corresponding to the data plane is detected to be the first preset value and the timing duration of the timer reaches the preset duration, the flow output port is opened again.
In a possible implementation manner, before the preset duration is reached, if the service line card board receives the preprocessing instruction corresponding to the network board event in the data plane again, and the switch network board corresponding to the received preprocessing instruction and the service line card board do not belong to the same line card frame, timing is performed again until the preset duration is reached, and the flow output port is opened.
In a possible implementation manner, when the service line card board determines that there are a plurality of first switching network boards about to have a network board event and that the plurality of first switching network boards are located on different data planes, if the number of the different data planes exceeds a preset threshold, it is determined whether the plurality of first switching network boards and the service line card board belong to the same line card frame, and if not, the flow output port of the service line card board is not closed.
According to another aspect of the present disclosure, there is provided a service line card board, including:
the first determining module is used for the service cable clamping board to receive a preprocessing instruction corresponding to a network board event and determining a first exchange network board about to have the network board event according to the preprocessing instruction;
a second determining module, configured to determine a data plane to which the first switch network board belongs;
and the first flow control module is used for closing a flow output port of the service line card board corresponding to the data plane so as to enable the flow to be forwarded through other data planes.
In one possible implementation manner, the service line card board further includes:
and the second flow control module is used for determining whether the service line card board and the first exchange network board belong to the same line card frame, and if not, the second flow control module reopens the flow output port after closing the flow output port corresponding to the service line card board and the data plane for a preset time.
In one possible implementation, the second traffic control module includes:
a setting sub-module, configured to set an identification bit corresponding to the data plane on the service line card board to a first preset value and reset a timer corresponding to the data plane on the service line card board if it is determined that the service line card board and the first switching network board do not belong to the same line card frame;
and the flow opening submodule is used for reopening the flow outlet port when the identification bit corresponding to the data plane is detected to be the first preset value and the timing duration of the timer reaches the preset duration.
In one possible implementation manner, the service line card board further includes:
and the third flow control module is used for, before the preset time length is reached, if the service line card board receives the preprocessing instruction corresponding to the screen event in the data plane again and the switching screen corresponding to the received preprocessing instruction and the service line card board do not belong to the same line card frame, timing again until the preset time length is reached, and opening the flow output port.
In one possible implementation manner, the service line card board further includes:
and the fourth flow control module is used for judging whether the first switching network boards and the service line clamping board belong to the same line clamping frame or not if the number of the different data planes exceeds a preset threshold value when the service line clamping board determines that the first switching network boards about to have network board events is multiple and the first switching network boards are positioned on different data planes, and not closing the flow outlet port of the service line clamping board if the first switching network boards and the service line clamping board do not belong to the same line clamping frame.
According to another aspect of the present disclosure, there is provided a cluster system including: at least two wire clamp frames; and at least one exchange frame respectively connected with the wire clamp frame;
the wire clip frame includes: at least one service line card board; at least one wire card frame exchange network board connected with the service wire card board;
the exchange frame includes: and at least one exchange frame exchange network board connected with the wire card frame exchange network board.
According to the method for processing the network board event and the service line card board in each aspect of the disclosure, the preprocessing instruction corresponding to the network board event is received, the first exchange network board about to have the network board event is determined according to the preprocessing instruction, the data plane to which the first exchange network board belongs is determined, and the flow outlet port of the service line card board corresponding to the data plane is closed, so that the flow is forwarded through other data planes, therefore, zero packet loss can be realized in the process that the network board event occurs in the exchange network board, and the reliability of a cluster system can be ensured.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a schematic diagram of a 2+4 cluster system.
Fig. 2 shows a flowchart of a method for processing a web event according to an embodiment of the present disclosure.
FIG. 3 shows an exemplary flowchart of a method for processing web events according to an embodiment of the present disclosure.
Fig. 4 is an exemplary flowchart illustrating that, if the network board event processing method does not belong to the same line card frame in step S24, after the traffic egress port corresponding to the data plane of the service line card board is closed, the traffic egress port is reopened for a preset time length according to an embodiment of the present disclosure.
Fig. 5 is a timing diagram illustrating an exemplary screen event preprocessing instruction in a screen event processing method according to an embodiment of the disclosure.
Fig. 6 shows a block diagram of a service line card according to an embodiment of the present disclosure.
Fig. 7 shows an exemplary block diagram of a service line card according to an embodiment of the present disclosure.
Fig. 8 is a block diagram illustrating a service cable card 900 according to an exemplary embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
The embodiment provides a cluster system. The cluster system may include at least two wire-clip boxes; and at least one exchange frame respectively connected with the line card frame. And the line card frame is communicated with the line card frame through the exchange frame. Wherein, the line card frame includes: at least one service line card board; and at least one wire card frame exchange network board connected with the service wire card board. The exchange frame includes: at least one exchange frame exchange network board connected with the wire card frame exchange network board. The service line card board can be used for executing a processing method of a screen event. The method for processing the web event will be described in the embodiment corresponding to fig. 2, and will not be described herein again.
In the trunking system, each frame may have one or two main control boards, and the main control board in each frame may be connected to each board in each frame of the trunking system, where the frame of the trunking system includes a line card frame and a switching frame, and the boards of the trunking system include a service line card board, a switching frame switching network board, a line card frame switching network board, and a main control board. The cluster system takes one main control board of all the main control boards as a main control board of the cluster system.
Fig. 1 shows a schematic diagram of a 2+4 cluster system. As shown in fig. 1, in a 2+4 cluster system, a data plane is divided according to an SFU (Switching Fabric Unit, also called Line Card frame switch board) of an LCC (Line Card sessions), and the SFU corresponds to the data plane one to one. There are n data planes in the 2+4 cluster system shown in fig. 1, where n is a positive integer. Flow in the same data plane is communicated across frames, namely data can be forwarded across frames in the same data plane; the traffic between different data planes cannot be intercommunicated, i.e. data cannot be forwarded between different data planes. Each LCC has at least one SFU, and each FCC (Fabric Card sessions) has at least one FCU (Fabric Connection Unit, also called exchange frame exchange network board). Default SFU on all LCCiAnd FCU over all FCCiConstituting a data plane i, only SFUiAnd FCUiCan forward data across boxes, where i can be an integer from 1 to n. i may represent a logical number of an SFU, FCU, or data plane. For example, SFU on all LCC2And FCU over all FCC2 Constituting data plane 2, only SFU2And FCU2Can forward data across frames. The main master control board of the cluster system can record the corresponding relationship between the logic number of each SFU and the frame number and slot number of the SFU, and the corresponding relationship between the logic number of each FCU and the frame number and slot number of the FCU. LPU (Line Process)ng Unit, line processing Unit, also called service line card) can forward traffic with other LPUs through any data plane.
The embodiment can realize zero packet loss in the process of the network board event of the online card frame exchange network board or the exchange frame exchange network board, thereby ensuring the reliability of the cluster system.
Fig. 2 shows a flowchart of a method for processing a web event according to an embodiment of the present disclosure. The execution main body of the present embodiment may be a service line card board, for example, may be an LPU in fig. 1. Each LPU in the cluster system may perform the following method, as shown in fig. 2, which includes steps S21 to S23.
In step S21, the service cable card board receives a preprocessing instruction corresponding to the network board event, and determines the first switch network board to which the network board event is about to occur according to the preprocessing instruction.
In this embodiment, the web panel event may be a restart event or a power-down event, where the restart event may refer to a restart event caused by an unforced restart, and the power-down event may refer to a power-down event caused by an unforced power-off. For example, in the case of a switch screen board requiring a software upgrade, the switch screen board may need to be restarted. In the event that the switching network board needs to be replaced, the switching network board may need to be powered down. Accordingly, the first switching network board may be a switching network board that needs to be restarted or powered down. The first exchange network board can be a wire card frame exchange network board or an exchange frame exchange network board.
In this embodiment, the pre-processing instruction may be used to notify each service line card board that a screen event is about to occur before the screen event occurs.
As an example of this embodiment, the first switch board may send a preprocessing instruction to the main master control board when detecting that the user triggers the preprocessing instruction through the micro switch. The main control board can send the preprocessing instruction to the service line card boards of each line card frame, so that each service line card board receives the preprocessing instruction. In this example, a micro switch may be respectively disposed on each switch board, and in the case that the switch board detects that the micro switch is triggered, the switch board may detect a pre-processing instruction triggered by the micro switch by a user.
As another example of this embodiment, the first switch board may send a preprocessing instruction to the main master board when receiving a board event instruction from a user. The main control board can send the preprocessing instruction to the service line card boards of each line card frame, so that each service line card board receives the preprocessing instruction.
In step S22, the data plane to which the first switching network board belongs is determined.
As an example of this embodiment, the main control board may record the logic numbers of the respective line card frames and the switch network boards in the switch frame, and each service line card board may obtain the logic numbers of the respective line card frames and the switch network boards in the switch frame from the main control board, so as to determine the corresponding relationship between the respective line card frames and the switch network boards in the switch frame, that is, the service line card board may determine the data plane to which each switch network board belongs according to the logic numbers of the respective line card frames and the switch network boards in the switch frame. For example, if the first switch board is SFU in LCC13Then, it can be determined that the data plane to which the first switching network board belongs is the data plane 3.
In step S23, the traffic egress port of the service line card corresponding to the data plane is closed, so that the traffic is forwarded through another data plane.
The main control board records the logical number of each line card frame and the switching network board in the switching frame, and also records the corresponding relationship between the logical number and the port number, and the service line card board can determine the traffic output port corresponding to the data plane in step 22 by obtaining the corresponding relationship.
The first switching network board to which the network board event is about to occur may be a switching network board in a card frame, and may also be a switching network board in a switching frame.
Correspondingly, as an example of this embodiment, closing the traffic output port of the service cable card board corresponding to the data plane may include the following implementation modes corresponding to specific situations:
(1) if the service line card board and the first exchange network board about to have the network board event belong to the same line card frame, the flow outlet port of the service line card board corresponding to the first exchange network board is closed.
After the traffic output port of the service cable card board corresponding to the first switching network board is closed, the service cable card board does not forward traffic through the first switching network board, but still can receive traffic from the first switching network board, that is, the traffic input port of the service cable card board corresponding to the first switching network board may not be closed. For example, if the service line card is LPU in LCC1, the first switching network board is SFU in LCC12Then, it can be determined that the service cable card board and the first switch network board belong to the same cable card frame, and the LPU and SFU of the LCC1 are turned off2A corresponding traffic egress port.
(2) If the service line card board and the first exchange network board about to have the network board event do not belong to the same line card frame, determining a second exchange network board in the line card frame where the service line card board is located and the first exchange network board belong to the same data plane, and closing a flow outlet port of the service line card board corresponding to the second exchange network board.
Wherein, not belong to same line card frame again including following two kinds of condition: the first exchange network board about to have the network board event is the exchange network board in the exchange frame, or the first exchange network board about to have the network board event is the line card frame exchange network board which is in different line card frames with the execution main body of the method.
After the traffic output port of the data plane of the network board event to be generated corresponding to the service line card board is closed, the service line card board does not forward the traffic message to other card boards on the data plane of the network board event to be generated through the port any more, but still can receive the traffic message sent by other card boards on the data plane of the network board event to be generated through the input port, so that the traffic message sent out (on a forwarding path) by the service line card board can be ensured to be forwarded still between the boards.
In this embodiment, a pre-processing instruction corresponding to a network board event is received, a first switching network board to which the network board event is about to occur is determined according to the pre-processing instruction, a data plane to which the first switching network board belongs is determined, and a traffic output port corresponding to the service line card board and the data plane is closed, so that traffic is forwarded through other data planes, and therefore, zero packet loss can be realized in a process of the network board event occurring in the switching network board, and reliability of a trunking system can be guaranteed.
FIG. 3 shows an exemplary flowchart of a method for processing web events according to an embodiment of the present disclosure. As shown in fig. 3, the method may include steps S21 through S24.
In step S21, the service cable card board receives a preprocessing instruction corresponding to the network board event, and determines the first switch network board to which the network board event is about to occur according to the preprocessing instruction.
In step S22, the data plane to which the first switching network board belongs is determined.
In step S23, the traffic egress port of the service line card corresponding to the data plane is closed, so that the traffic is forwarded through another data plane.
In step S24, it is determined whether the service cable card board and the first switch board belong to the same cable card frame, and if not, after closing the traffic output port corresponding to the service cable card board and the data plane, the traffic output port is opened again for a preset duration.
The preset duration is greater than or equal to the sum of the time required for actually closing and removing the switching network board where the network board event occurs and the time required for routing convergence, and the purpose is to ensure that no flow is forwarded in the data plane corresponding to the first switching network board and the actual removal of the network board is completed.
In this embodiment, after the traffic egress port corresponding to the service line card board and the data plane is closed, when a preset time length is reached, it may be determined that the first switching network board is actually closed and removed and the routing convergence is completed, at this time, if the service line card board and the first switching network board do not belong to the same line card frame, the service line card board may open the traffic egress port corresponding to the data plane to which the first switching network board belongs, and thus the switching network board in which no network board event occurs in the data plane may forward data.
For example, if the service line card is LPU in LCC2, the first switching network board is SFU in LCC12Then, it may be determined that the service line card board and the first switch network board do not belong to the same line card frame, and it may be determined that a second switch network board in the line card frame where the service line card board is located and which belongs to the same data plane as the first switch network board is an SFU in the LCC22. The LPU closing the LCC2 corresponds to the SFU of the LCC22After the flow output port is reached, the LPU of the LCC2 is opened again to correspond to the SFU of the LCC2 when the preset time length is reached2Out of the port.
It is possible to determine whether the service line card board and the first switch board belong to the same line card frame between step S22 and step S23, and it is also possible to determine whether the service line card board and the first switch board belong to the same line card frame after step S23, which is not limited herein.
In this embodiment, under the condition that the service cable card board and the first switching network board do not belong to the same cable card frame, after the traffic output port corresponding to the service cable card board and the data plane is closed, the traffic output port is opened again when a preset time is reached, so that the forwarding capability of the trunking system can be improved, and the line speed forwarding is ensured.
Fig. 4 is an exemplary flowchart illustrating that, if the network board event processing method does not belong to the same line card frame in step S24, after the traffic egress port corresponding to the data plane of the service line card board is closed, the traffic egress port is reopened for a preset time length according to an embodiment of the present disclosure. As shown in fig. 4, if the service line card board does not belong to the same line card frame, after the traffic output port corresponding to the data plane of the service line card board is closed, the traffic output port is opened again after a preset time period, which includes steps S241 and S242.
In step S241, if it is determined that the service line card board and the first exchange network board belong to the same data plane but do not belong to the same line card frame, the identification bit corresponding to the data plane is set to the first preset value on the service line card board, and the timer corresponding to the data plane on the service line card board is reset.
And resetting the timer corresponding to the data plane on the service line card board, namely controlling the timer corresponding to the data plane on the service line card board to count again.
As an example of this embodiment, whether there is a switching screen where a screen event occurs in each data plane may be recorded by a bitmap on the service line card. For example, the service line card board is an LPU of the LCC1, there are 8 data planes in the cluster system, and the first preset value is 1. When there is no exchange stencil for which a stencil event is about to occur in 8 data planes, the bitmap corresponding to the 8 data planes on the LPU of LCC1 is 00000000. SFU if LCC22When a web event is about to occur, the identification bit corresponding to the data plane 2 may be set to 1 on the LPU of the LCC1, and at this time, the bitmap corresponding to 8 data planes on the LPU of the LCC1 is 01000000.
The purpose of setting the identification bit on the service line card board is that the data plane where the network board event occurs can be identified through the identification bit, and when the first switching network board finishes removal and routing is converged, the service line card board opens the flow output port of the data plane with the identification bit, so that the forwarding capability of the cluster system can be improved.
As an example of this embodiment, each service line card board may allocate a timer to each data plane, so as to avoid the problem of timing conflict caused by network board events occurring at the same time or at similar times in different data planes.
In step S242, when it is detected that the identification bit corresponding to the data plane is the first preset value and the timing duration of the timer reaches the preset duration, the flow output port is opened again.
In this embodiment, if the timing duration of the timer is less than or equal to the preset duration, it can be indicated to a great extent that the closing and removal of the first switch board is not completed or the routing convergence is not completed; if the timing duration of the timer is longer than the preset duration, it can be determined that the actual closing and removal of the first switch board is completed and the routing convergence is completed.
In a possible implementation manner, before the preset duration is reached, if the service line card board receives the preprocessing instruction corresponding to the network board event in the data plane again, and the switch network board corresponding to the received preprocessing instruction and the service line card board do not belong to the same line card frame, timing is performed again until the preset duration is reached, and the flow output port is opened.
Fig. 5 is a timing diagram illustrating an exemplary screen event preprocessing instruction in a screen event processing method according to an embodiment of the disclosure. As shown in FIG. 5, for example, if the LPU of LCC2 receives the SFU of LCC11The preprocessing instruction (Event1) corresponding to the screen board Event of LCC2 closes the traffic egress port corresponding to data plane 1, sets the flag bit corresponding to data plane 1 to 1 on the LPU of LCC2, and resets the timer (reset 1 in fig. 5) corresponding to data plane 1 on the LPU of LCC 2. If the time length of the timer corresponding to the data plane 1 is not greater than the preset time length, if the LPU of the LCC2 receives the SFU of the LCC31The pre-processing command (Event2) corresponding to the screen Event keeps the traffic egress port corresponding to data plane 1 closed, keeps the flag bit corresponding to data plane 1 on the LPU of LCC2 as 1, and resets the timer corresponding to data plane 1 (reset 2 in fig. 5). Under the condition that the timing duration of the timer is detected to be greater than the preset duration, if the identification bit corresponding to the data plane 1 on the LPU of the LCC2 is 1, the traffic output port corresponding to the data plane 1 is opened.
As shown in fig. 5, when the flag bit corresponding to the data plane 1 is 1, if the LPU of the LCC2 receives the preprocessing instruction corresponding to the data plane 1 again when the counted time length of the timer does not reach the preset time length, the timer corresponding to the data plane 1 is reset. The LPU of LCC2 keeps the maximum duration that the traffic egress port corresponding to data plane 1 is closed equal to the product of the number of raster events that continuously occur on data plane 1 and the preset duration.
After the LPU of the LCC2 opens the traffic egress port corresponding to the data plane 1, and receives the preprocessing command corresponding to the data plane 1 again, the processing of the web event can be performed again according to step S21, step S22, step S23, step S241, and step S242.
In one possible implementation, after reopening the traffic egress port, the method may further include: and setting the identification bit corresponding to the data plane as a second preset value on the service line card board. For example, the second preset value may be 0, and it should be noted that the numerical values of the first preset value and the second preset value are only for illustration and should not be limited thereto, as long as it is ensured that the two numerical values are different and can perform different identification functions.
As an example of this embodiment, the first switch board may be a card cage switch board. As shown in FIG. 2, for example, the SFU at LCC11When a web event is about to occur, the LPU on each LCC responds to the preprocessing instruction to respectively close the traffic output port corresponding to the data plane 1, that is, data is not forwarded through the data plane 1, so that there is no traffic in the data plane 1. The LPUs of LCC2, LCC3, and LCC4 set the identification bit corresponding to data plane 1 to 1, respectively. The LPUs of LCC2, LCC3, and LCC4 reset the corresponding timers for data plane 1, respectively. The LPUs of the LCCs 2, 3, and 4 open traffic egress ports corresponding to the data plane 1 when detecting that the identification bit corresponding to the data plane 1 is 1 and the timing duration of the timer corresponding to the data plane 1 is greater than the preset duration, that is, the LCCs 2, 3, and 4 may forward the in-frame traffic and the cross-frame traffic through the data plane 1.
As another example of this embodiment, the first switch board may be a switch frame switch board. As shown in fig. 2, for example, the FCU in FCC11When a web event is about to occur, the LPU on each LCC responds to the preprocessing instruction to respectively close the traffic output port corresponding to the data plane 1, that is, data is not forwarded through the data plane 1, so that there is no traffic in the data plane 1. The LPU of each LCC sets the identification bit corresponding to the data plane 1 to 1. The LPUs of each LCC reset the respective timer for data plane 1. The LPU of each LCC opens the traffic egress port corresponding to the data plane 1 when detecting that the identification bit corresponding to the data plane 1 is 1 and the timing duration of the timer corresponding to the data plane 1 is greater than the preset duration, and at this time, each LCC may forward the in-frame data through the data plane 1 and may pass through the FCU of FCC21And forwarding the cross-frame data. FCU of FCC1 and FCC21All are removed, the inter-frame traffic in data plane 1 is not passed and cannot pass through data plane 1Forwarding the cross-frame traffic, wherein the cross-frame traffic needs to be forwarded through a data plane other than the data plane 1.
In a possible implementation manner, two tasks, namely a network board event task and a timer processing task, may be respectively started on each service line card board of the cluster system. The screen event task may be used to perform steps S21 through S23. The timer processing task may be used to perform step S24.
As an example of the implementation manner, at most, only one of the web event task and the timer processing task can read and write the identification bit corresponding to the data plane at the same time; at most, one task of the network board event task and the timer processing task can control whether to open a flow output port corresponding to the data plane at the same time. That is, in this example, the read and write of the identification bits and the flow control of each data plane may be lock protected to avoid task conflicts.
In a possible implementation manner, when the service line card board determines that a plurality of first switching network boards about to have a network board event are available, and the plurality of first switching network boards are located on different data planes, if the number of the different data planes corresponding to the switching network boards having the network board event exceeds a preset threshold, it is determined whether the plurality of first switching network boards and the service line card board belong to the same line card frame, and if the plurality of first switching network boards and the service line card board do not belong to the same line card frame, the flow output port of the service line card board is not closed.
Wherein the preset threshold is greater than or equal to 1.
As an example of this implementation, the service line card board may determine the number of data planes of the forthcoming web event according to the bitmap on the service line card board. For example, the service line card board is the LPU of LCC1, and there are 8 data planes in the cluster system. If the bitmap corresponding to 8 data planes on the LPU of the LCC1 is 01001010, it can be determined that the number of data planes for which a web event is about to occur is 3.
As an example of the implementation manner, if the service cable card board determines that the number of the data planes of the network board events to be generated is less than or equal to a preset threshold, the service cable card board may close the traffic output ports corresponding to the data planes of the network board events to be generated, so that the traffic is forwarded through other data planes.
As another example of the implementation manner, if the service line card board determines that the number of the data planes of the network board event to be generated is greater than a preset threshold, and the service line card board and the plurality of switching network boards of the network board event to be generated belong to the same line card frame, the service line card board respectively closes the traffic output ports of the plurality of data planes corresponding to the network board event to be generated.
As another example of the implementation manner, if the service line card board determines that the number of the data planes of the network board event to be generated is greater than the preset threshold, and the service line card board and the plurality of switching network boards of the network board event to be generated do not belong to the same line card frame, the service line card board does not close the traffic output ports of the plurality of data planes corresponding to the network board event to be generated.
In this example, if the number of data planes to which a screen event is about to occur is greater than a preset threshold, cross-frame traffic of multiple data planes may be momentarily unavailable, and in this case, if the service line card board and the multiple switching screen boards to which the screen event is about to occur do not belong to the same line card frame, the service line card board does not close the traffic output ports of the multiple data planes corresponding to the screen event about to occur, so that the switching screen boards in the data planes to which the screen event is about to occur and in which no screen event occurs can forward the in-frame traffic, thereby avoiding the in-frame traffic from being unavailable and ensuring the forwarding capability of the cluster system.
Fig. 6 shows a block diagram of a service line card according to an embodiment of the present disclosure. As shown in fig. 6, the service line card includes: a first determination module 61, a second determination module 62, and a first flow control module 63.
The first determining module 61 is configured to receive a preprocessing instruction corresponding to a network board event by the service line card board, and determine a first switching network board where the network board event is about to occur according to the preprocessing instruction;
a second determining module 62, configured to determine a data plane to which the first switch network board belongs;
and a first traffic control module 63, configured to close a traffic output port of the service line card corresponding to the data plane, so that the traffic is forwarded through other data planes.
Fig. 7 shows an exemplary block diagram of a service line card according to an embodiment of the present disclosure. As shown in fig. 7:
in a possible implementation manner, the service line card board further includes:
and a second traffic control module 64, configured to determine whether the service line card board and the first switch network board belong to the same line card frame, and if not, after closing a traffic output port of the service line card board corresponding to the data plane, re-opening the traffic output port for a preset time.
In one possible implementation, the second flow control module 64 includes: a set sub-module 641 and a flow open sub-module 642.
The setting sub-module 641 is configured to set, if it is determined that the service line card board and the first switching network board do not belong to the same line card frame, the identification bit corresponding to the data plane on the service line card board to a first preset value, and reset a timer corresponding to the data plane on the service line card board;
the flow opening submodule 642 is configured to reopen the flow output port when it is detected that the identifier corresponding to the data plane is the first preset value and the timing duration of the timer reaches the preset duration.
In a possible implementation manner, the service line card board further includes: and a third flow control module 65, configured to, before the preset duration is reached, if the service line card board receives the preprocessing instruction corresponding to the network board event in the data plane again, and the switch network board corresponding to the received preprocessing instruction and the service line card board do not belong to the same line card frame, re-time until the preset duration is reached, and open the flow output port.
In a possible implementation manner, the service line card board further includes: a fourth flow control module 66, configured to determine that there are multiple first switching network boards about to have a network board event when the service line card board determines that there are multiple first switching network boards and the multiple first switching network boards are located on different data planes, if the number of the different data planes exceeds a preset threshold, determine whether the multiple first switching network boards and the service line card board belong to the same line card frame, and if not, not close a flow output port of the service line card board.
In this embodiment, a pre-processing instruction corresponding to a network board event is received, a first switching network board to which the network board event is about to occur is determined according to the pre-processing instruction, a data plane to which the first switching network board belongs is determined, and a traffic output port corresponding to the service line card board and the data plane is closed, so that traffic is forwarded through other data planes, and therefore, zero packet loss can be realized in a process of the network board event occurring in the switching network board, and reliability of a trunking system can be guaranteed.
Fig. 8 is a block diagram illustrating a service cable card 900 according to an exemplary embodiment. Referring to fig. 8, the apparatus 900 may include a processor 901, a machine-readable storage medium 902 having stored thereon machine-executable instructions. The processor 901 and the machine-readable storage medium 902 may communicate via a system bus 903. And, the processor 901 executes the processing method of the screen event described above by reading the machine-executable instruction corresponding to the service line card board in the machine-readable storage medium 902.
The machine-readable storage medium 902 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (7)

1. A method for processing web events, comprising:
the service line card board receives a preprocessing instruction corresponding to a network board event, and determines a first exchange network board about to have the network board event according to the preprocessing instruction;
determining a data plane to which the first switching network board belongs;
closing a traffic output port of the service line card board corresponding to the data plane so as to enable traffic to be forwarded through other data planes;
after determining the data plane to which the first switching network board belongs, the method further comprises:
determining whether the service line card board and the first exchange network board belong to the same line card frame, if not, after closing a flow output port corresponding to the service line card board and the data plane, re-opening the flow output port for a preset time;
if not, after closing the traffic line card board and the traffic output port corresponding to the data plane, the method opens the traffic output port again when reaching a preset time length, and includes:
if the service line card board and the first exchange network board are determined not to belong to the same line card frame, setting an identification bit corresponding to the data plane on the service line card board as a first preset value, and resetting a timer corresponding to the data plane on the service line card board;
and when the identification bit corresponding to the data plane is detected to be the first preset value and the timing duration of the timer reaches the preset duration, the flow output port is opened again.
2. The method according to claim 1, wherein before the preset duration is reached, if the service line card board receives the preprocessing instruction corresponding to the network board event in the data plane again, and the switch network board corresponding to the received preprocessing instruction and the service line card board do not belong to the same line card frame, the timing is restarted until the preset duration is reached, and the flow output port is opened.
3. The method according to claim 1, wherein when the service line card board determines that there are a plurality of first switch network boards about to have network board events and the plurality of first switch network boards are located on different data planes, if the number of the different data planes exceeds a preset threshold, it is determined whether the plurality of first switch network boards and the service line card board belong to the same line card frame, and if not, the traffic output port of the service line card board is not closed.
4. A service line card, comprising:
the first determining module is used for the service cable clamping board to receive a preprocessing instruction corresponding to a network board event and determining a first exchange network board about to have the network board event according to the preprocessing instruction;
a second determining module, configured to determine a data plane to which the first switch network board belongs;
the first flow control module is used for closing a flow output port of the service line card board corresponding to the data plane so as to enable the flow to be forwarded through other data planes;
the service line card board further comprises:
the second flow control module is used for determining whether the service line card board and the first exchange network board belong to the same line card frame, and if not, after closing a flow output port corresponding to the service line card board and the data plane, the flow output port is opened again when a preset time length is reached;
the second flow control module includes:
a setting sub-module, configured to set an identification bit corresponding to the data plane on the service line card board to a first preset value and reset a timer corresponding to the data plane on the service line card board if it is determined that the service line card board and the first switching network board do not belong to the same line card frame;
and the flow opening submodule is used for reopening the flow outlet port when the identification bit corresponding to the data plane is detected to be the first preset value and the timing duration of the timer reaches the preset duration.
5. The service line card of claim 4, further comprising:
and the third flow control module is used for, before the preset time length is reached, if the service line card board receives the preprocessing instruction corresponding to the screen event in the data plane again and the switching screen corresponding to the received preprocessing instruction and the service line card board do not belong to the same line card frame, timing again until the preset time length is reached, and opening the flow output port.
6. The service line card of claim 4, further comprising:
and the fourth flow control module is used for judging whether the first switching network boards and the service line clamping board belong to the same line clamping frame or not if the number of the different data planes exceeds a preset threshold value when the service line clamping board determines that the first switching network boards about to have network board events is multiple and the first switching network boards are positioned on different data planes, and not closing the flow outlet port of the service line clamping board if the first switching network boards and the service line clamping board do not belong to the same line clamping frame.
7. A cluster system, comprising: at least two wire clamp frames; and at least one exchange frame respectively connected with the wire clamp frame;
wherein, the line card frame includes: at least one service line card board according to any one of claims 4 to 6; at least one wire card frame exchange network board connected with the service wire card board;
the exchange frame includes:
and at least one exchange frame exchange network board connected with the wire card frame exchange network board.
CN201710524256.6A 2017-06-30 2017-06-30 Method for processing network board event, service line card board and cluster system Active CN107547254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710524256.6A CN107547254B (en) 2017-06-30 2017-06-30 Method for processing network board event, service line card board and cluster system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710524256.6A CN107547254B (en) 2017-06-30 2017-06-30 Method for processing network board event, service line card board and cluster system

Publications (2)

Publication Number Publication Date
CN107547254A CN107547254A (en) 2018-01-05
CN107547254B true CN107547254B (en) 2021-03-26

Family

ID=60970555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710524256.6A Active CN107547254B (en) 2017-06-30 2017-06-30 Method for processing network board event, service line card board and cluster system

Country Status (1)

Country Link
CN (1) CN107547254B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667509B (en) * 2018-03-22 2020-04-14 新华三技术有限公司 Cluster joining method and device and cluster equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610212A (en) * 2009-07-27 2009-12-23 迈普通信技术股份有限公司 Realize the method and the integrated circuit board of reliable data plane communication
CN104869081A (en) * 2015-05-29 2015-08-26 华为技术有限公司 Message exchange processing method, service board and network switching system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7376191B2 (en) * 2000-10-27 2008-05-20 Lightwaves Systems, Inc. High bandwidth data transport system
WO2014096974A2 (en) * 2012-12-17 2014-06-26 Marvell World Trade Ltd. Network discovery apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610212A (en) * 2009-07-27 2009-12-23 迈普通信技术股份有限公司 Realize the method and the integrated circuit board of reliable data plane communication
CN104869081A (en) * 2015-05-29 2015-08-26 华为技术有限公司 Message exchange processing method, service board and network switching system

Also Published As

Publication number Publication date
CN107547254A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
US8117503B1 (en) Fast port failover in a network switch
CN105577545B (en) Label switched packet method and apparatus with the label independently of equipment
CN110995616B (en) Management method and device for large-flow server and readable medium
CN108737217B (en) Packet capturing method and device
CN107547254B (en) Method for processing network board event, service line card board and cluster system
CN112968811A (en) PFC exception handling method and device for RDMA network
CN107547255B (en) Cluster system upgrading method, main control board and cluster system
CN116723162B (en) Network first packet processing method, system, device, medium and heterogeneous equipment
CN106470153B (en) method and device for preventing temporary loop
CN110768812A (en) Server management system and method
CN101707535B (en) Method and device for detecting counterfeit network equipment
CN116996600A (en) Ethernet chip self-adaptive resource management method, chip, device and medium
US7843829B1 (en) Detection and recovery from control plane congestion and faults
CN112995009B (en) Method and device for enabling virtual machine to mirror image flow of local virtualization network
CN105406989A (en) Message processing method, network card and system, information updating method and host
US10516625B2 (en) Network entities on ring networks
CN109274609A (en) A kind of port setting method, device, network board and readable storage medium storing program for executing
EP1298863B1 (en) Method and apparatus for performing an in-service upgrade of a switching fabric of a network element
CN107959603B (en) Forwarding control method and device
CN108111354B (en) Method and device for setting port state identifier of frame type equipment
CN108471364B (en) Exception handling method and device
CN102118296B (en) Rule base upgrading method and communication equipment
KR20020040471A (en) Congestion Control Apparatus And Method Of Multi-port In Ethernet System
CN113992592B (en) Message forwarding method and device, port drainage system and storage medium
EP1195951A2 (en) Method and apparatus for maintaining data communication during a line card soft reset operation

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