CN113726614A - Method and device for preventing packet loss, distributed equipment and storage medium - Google Patents

Method and device for preventing packet loss, distributed equipment and storage medium Download PDF

Info

Publication number
CN113726614A
CN113726614A CN202111222778.3A CN202111222778A CN113726614A CN 113726614 A CN113726614 A CN 113726614A CN 202111222778 A CN202111222778 A CN 202111222778A CN 113726614 A CN113726614 A CN 113726614A
Authority
CN
China
Prior art keywords
board card
port
switching matrix
matrix board
service
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
CN202111222778.3A
Other languages
Chinese (zh)
Other versions
CN113726614B (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202111222778.3A priority Critical patent/CN113726614B/en
Publication of CN113726614A publication Critical patent/CN113726614A/en
Application granted granted Critical
Publication of CN113726614B publication Critical patent/CN113726614B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The application relates to a method, a device, distributed equipment and a storage medium for preventing packet loss, and belongs to the technical field of network communication. The method is applied to a service board card in distributed equipment, and the distributed equipment also comprises a switching matrix board card connected with the service board card; the method comprises the following steps: removing the port of the target switching matrix board card to be pulled out connected to the service board card from the backboard port convergence group in the pulling-out direction to which the port belongs; and the port is reserved in a backplane port convergence group in the incoming direction of the port, and the port is not configured to discard the received other traffic messages except the known unicast message. The method can solve the problem of unknown unicast message packet loss caused by plugging and unplugging the switching matrix board card.

Description

Method and device for preventing packet loss, distributed equipment and storage medium
Technical Field
The application belongs to the technical field of network communication, and particularly relates to a method, a device, distributed equipment and a storage medium for preventing packet loss.
Background
The distributed network equipment generally comprises a plurality of switching matrix board cards and a plurality of service board cards, wherein a port of each service board card is connected to each switching matrix board card, the switching matrix board cards are added into the same backboard port convergence group after the port up, the service board cards are connected with ports of all the switching matrix board cards, the switching matrix board cards are also added into one backboard port convergence group after the port up, actually, flow message forwarding is realized in the backboard port convergence group through forwarding and load balancing, and messages coming from the ports can be identified as coming from the backboard port convergence group where the port is located.
The switching matrix board card is responsible for completing message forwarding between the service board cards, and the forwarding performance of the switching matrix board card is usually redundant in design and deployment, so that the service is not affected when a certain switching matrix board card is replaced. Therefore, in general, the distributed network device wants to avoid packet loss when the switch matrix board card is unplugged, that is, when one switch matrix board card is unplugged under the condition that the bandwidth of the remaining switch matrix board card meets the bandwidth requirement of the current forwarding message, neither the known unicast message nor the unknown unicast message (the other traffic messages except the known unicast message) is lost.
In the prior art, when the switch matrix board card needs to be pulled out, for example, the switch matrix board card in the slot position 3 needs to be pulled out, at this time, the port of the switch matrix board card in the slot position 3 connected to each service board card needs to be removed from the backplane port aggregation group. Because the elimination sequence of each service board card cannot be guaranteed, and an existing message may have been forwarded to the switching matrix board card in the slot position 3, if a port with an eliminated backplane port aggregation group receives an unknown unicast message, the unicast message will be broadcasted or multicasted from the original backplane port aggregation group, so that multiple packets and loops will be caused. Therefore, when a port is removed, the port needs to be configured to discard the received unknown unicast packet, and then the port is removed from the back plane port aggregation group. Similarly, if the port to be rejected is not configured to discard the received unknown unicast message, when the slot 3 is reinserted into the switching matrix board, the port connected to the switching matrix board in the slot 3 on the service board will broadcast or multicast the unknown unicast message received by the port back to the backplane port aggregation group to be added before the port joins the backplane port aggregation group, which also causes multiple packets and loops.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, a distributed device, and a storage medium for preventing packet loss, so as to solve the problem of packet loss of an unknown unicast packet caused when the existing distributed device is plugged in or unplugged from a switch matrix board.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for preventing packet loss, which is applied to a service board in a distributed device, where the distributed device further includes a switch matrix board connected to the service board; the method comprises the following steps: removing the port of the target switching matrix board card to be pulled out connected to the service board card from the backboard port convergence group in the pulling-out direction to which the port belongs; and the port is reserved in a backplane port convergence group in the incoming direction of the port, and the port is not configured to discard the received other traffic messages except the known unicast message.
In the application embodiment, the adding of the port to the backplane port convergence group is divided into adding in the outgoing direction (forwarding direction or output direction) and adding in the incoming direction (receiving direction or input direction), so that when the target switching matrix board card is to be pulled out, the port connected with the target switching matrix board card to be pulled out on the service board card is only required to be removed from the backplane port convergence group in the outgoing direction to which the port belongs, and each service board card does not forward the flow message to the target switching matrix board card to be pulled out any more; the port is reserved in the backplane port convergence group in the entrance direction of the port, so that the flow message received by the port can be considered as the flow message received by the backplane port convergence group to which the port belongs, and thus unknown unicast messages cannot be broadcasted or multicasted back to the backplane port convergence group any more, and multiple packets or loops cannot be caused; meanwhile, the port is not configured to discard the received other traffic messages (unknown unicast messages) except the known unicast messages, so that the phenomenon that the unknown unicast messages forwarded to the target switching matrix board are not lost is avoided.
With reference to a possible implementation manner of the embodiment of the first aspect, the distributed device further includes a main control board connected to the service board and the switch matrix board; before removing the port of the target switching matrix board card to be pulled out connected to the service board card from the backplane port aggregation group in the pulling-out direction to which the port belongs, the method further includes: and receiving an instruction that the target switching matrix board card is to be pulled out and sent by the main control board card.
With reference to one possible implementation manner of the embodiment of the first aspect, the method further includes: and when a new switching matrix board card is inserted, adding a port connected with the new switching matrix board card on the service board card into the backboard port convergence group belonging to the outgoing direction and the backboard port convergence group belonging to the incoming direction. In the embodiment of the application, the splitting of the port addition to the backplane port aggregation group into the addition in the outgoing direction (forwarding direction or output direction) and the addition in the incoming direction (receiving direction or input direction) is exceedingly different, so that when a target switching matrix board card to be pulled out exists, only the port connected to the target switching matrix board card to be pulled out on a service board card needs to be removed from the backplane port aggregation group in the outgoing direction to which the port belongs, the port is reserved in the backplane port aggregation group in the incoming direction to which the port belongs, and the problem of unknown unicast message packet loss caused by the fact that existing distributed equipment pulls out and inserts the switching matrix board card can be solved without configuring the port to discard the received other traffic messages except the known unicast message.
With reference to a possible implementation manner of the embodiment of the first aspect, the distributed device further includes a main control board card connected to the service board card and the switch matrix board card, and if an instruction indicating that a new switch matrix board card is inserted is received from the main control board card, the instruction indicates that the new switch matrix board card is inserted.
In a second aspect, an embodiment of the present application further provides a device for preventing packet loss, where the device includes: removing the template and reserving the module; the removing template is used for removing the port of the target switching matrix board card to be pulled out connected to the service board card from the backboard port convergence group in the pulling-out direction to which the port belongs; and the reserving module is used for reserving the port in a backplane port convergence group in the incoming direction of the port, and does not configure the port to discard the received other traffic messages except the known unicast message.
In combination with a possible implementation manner of the embodiment of the second aspect, the apparatus further includes: and the adding module is used for adding a port, connected with the new switching matrix board card, on the service board card into the backboard port convergence group belonging to the outgoing direction and the backboard port convergence group belonging to the incoming direction when the new switching matrix board card is inserted.
In combination with a possible implementation manner of the embodiment of the second aspect, the apparatus further includes: the receiving module is used for receiving an instruction sent by the main control board card that the target switching matrix board card is about to be pulled out and receiving an instruction sent by the main control board card that a new switching matrix board card is inserted.
In a third aspect, an embodiment of the present application further provides a distributed device, including: the main control board card is connected with each service board card and each switching matrix board card through control channels; the main control board card is used for sending an instruction that a target switching matrix board card is to be pulled out to each service board card; each service board card is used for removing a port connected with a target switching matrix board card to be pulled out from a backplane port aggregation group in the outgoing direction to which the service board card belongs, keeping the port in the backplane port aggregation group in the incoming direction to which the port belongs, and not configuring the port to discard the received other traffic messages except the known unicast message.
With reference to a possible implementation manner of the third aspect, the main control board is further configured to send, to each service board, an instruction indicating that a new switch matrix board is inserted when the new switch matrix board is detected to be inserted; each service board card is also used for adding the port connected with the new switching matrix board card into the back plate port convergence group belonging to the outgoing direction and adding the port connected with the new switching matrix board card into the back plate port convergence group belonging to the incoming direction.
In a fourth aspect, this application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method in the foregoing first aspect and/or any possible implementation manner of the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a flowchart of a method for preventing packet loss according to an embodiment of the present application.
Fig. 2 shows a schematic structural diagram of a distributed device provided in an embodiment of the present application.
Fig. 3 shows a schematic block diagram of a device for preventing packet loss according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, relational terms such as "first," "second," and the like may be used solely in the description herein to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In view of the problem that when the existing distributed device is plugged in or unplugged from a switch matrix board, in order to avoid a loop of an unknown unicast message, the unknown unicast message (other traffic messages except the known unicast message) can be discarded in a short time. The application provides a method for preventing packet loss, which aims to solve the problem of packet loss of unknown unicast packets caused by plugging and unplugging a switching matrix board card. The method for preventing packet loss is applied to service board cards in distributed equipment, wherein the distributed equipment further comprises switching matrix board cards connected with the service board cards, and the number of the service board cards and the number of the switching matrix board cards are multiple.
The method for preventing packet loss according to the embodiment of the present application will be described below with reference to fig. 1.
S1: and eliminating the port of the target switching matrix board card to be pulled out connected to the service board card from the backboard port convergence group in the pulling-out direction to which the port belongs.
When the target switching matrix board card is about to be pulled out, each service board card will remove the port connected with the target switching matrix board card about to be pulled out from the backboard port convergence group in the pulling-out direction (forwarding direction or output direction) to which the service board card belongs, so that each service board card does not forward the flow message to the target switching matrix board card about to be pulled out any more.
The backplane port aggregation group is logically similar to the link aggregation group, but is only used for the purpose of routing the backplane port between chips. The difference between the backplane port convergence group and the normal link convergence group is as follows: if the message is forwarded from the common link aggregation group, the destination port of the message must be the common link aggregation group or must contain the common link aggregation group, and for the back panel port aggregation group, the message directly goes out through the member port of the back panel port aggregation group and is identified as going out from the back panel port aggregation group; in addition, the back panel port convergence group is based on a chip, only the back panel ports of the same chip can be added into the same back panel port convergence group, and the link convergence group can cross the chip.
Before S1, the method for preventing packet loss further includes: and receiving an instruction that the target switching matrix board card is about to be pulled out and sent by the main control board card. And when the service board receives the instruction that the target switching matrix board card is to be pulled out, which is sent by the main control board card, executing S1 and S2. In this embodiment, the main control board sends an instruction that the target switch matrix board is to be pulled out to the service board. Of course, other devices may send an instruction that the target switch matrix board is to be pulled out to the service board.
S2: and the port is reserved in a backplane port convergence group in the incoming direction of the port, and the port is not configured to discard the received other traffic messages except the known unicast message.
The port (the port of the target switching matrix board card to be pulled out connected to the service board card) is reserved in the back board port convergence group in the incoming direction (receiving direction or input direction) to which the port belongs, so that the flow message received by the port can be regarded as the flow message received by the back board port convergence group to which the port belongs, and thus the unknown unicast message cannot be broadcasted or multicasted back to the back board port convergence group any more, and a plurality of packets or loops cannot be caused; and the port is not configured to discard the received other traffic messages (unknown unicast messages) except the known unicast message, so that the unknown unicast message forwarded to the target switch matrix board is prevented from being lost. The method and the device have the advantages that the port adding and back board port converging group is divided into two parts, namely adding in the outgoing direction (forwarding direction or output direction) and adding in the incoming direction (receiving direction or input direction), so that when a target switching matrix board card is about to be pulled out, the port connected with the target switching matrix board card to be pulled out on a service board card is only required to be removed from the back board port converging group in the outgoing direction to which the port belongs, and each service board card does not forward flow messages to the target switching matrix board card to be pulled out any more; the port is reserved in the backplane port convergence group in the entrance direction of the port, so that the flow message received by the port can be considered as the flow message received by the backplane port convergence group to which the port belongs, and thus unknown unicast messages cannot be broadcasted or multicasted back to the backplane port convergence group any more, and multiple packets or loops cannot be caused; meanwhile, the port is not configured to discard the received other traffic messages (unknown unicast messages) except the known unicast messages, so that the phenomenon that the unknown unicast messages forwarded to the target switching matrix board are not lost is avoided.
The method for preventing packet loss further comprises the following steps: when a new switching matrix board card is inserted, each service board card adds a port of the new switching matrix board card connected with the service board card into a backboard port convergence group belonging to the outgoing direction and adds the port into a backboard port convergence group belonging to the incoming direction.
In an optional implementation manner, if the service board receives an instruction indicating that a new switching matrix board is inserted, which is sent by the main control board, the service board indicates that the new switching matrix board is inserted. In this embodiment, the main control board sends an instruction that a new switch matrix board is inserted to the service board, but in an embodiment, it may also be detected whether a new switch matrix board is inserted by using another detection circuit.
For convenience of understanding, the distributed apparatus shown in fig. 2 is described with reference to the distributed apparatus shown in fig. 2, where the distributed apparatus shown in fig. 2 includes 2 service boards (a service board 0 and a service board 1) and 4 switching matrix boards (a switching matrix board 0, a switching matrix board 1, a switching matrix board 2, and a switching matrix board 3), and traffic forwarding between the service boards is implemented by the switching matrix boards, for example, when a message received from the service board 0 needs to be forwarded to one port of the service board 1, the service board 0 sends the message to the backplane port aggregation group 0, and then the message is loaded to one of the switching matrix boards 0 to 3 according to an algorithm, and then the switching matrix board that receives the message is responsible for sending the message to the backplane port aggregation group 1 of the service board 1 through a port on a chip thereof.
When a switching matrix board card is inserted, the service board card can add a port connected with the switching matrix board card on the service board card into a backboard port convergence group belonging to the outgoing direction and a backboard port convergence group belonging to the incoming direction. Suppose that when the switching matrix board 1 is to be removed, at this time, for the service board 0, the port connected to the switching matrix board 1 on the service board 0 needs to be removed from the backplane port aggregation group (for example, the backplane port aggregation group 0) in the outgoing direction to which the port belongs, and the port is retained in the backplane port aggregation group (for example, the backplane port aggregation group 0) in the incoming direction to which the port belongs, and the port is not configured to discard the received traffic messages except the known unicast message. For the service board 1, it is necessary to remove a port connected to the switching matrix board 1 on the service board 1 from a backplane port aggregation group (e.g., the backplane port aggregation group 1) in an egress direction to which the port belongs, and to keep the port in the backplane port aggregation group (e.g., the backplane port aggregation group 1) in an ingress direction to which the port belongs, and the port is not configured to discard the received other traffic messages except the known unicast message.
It should be noted that, in the present application, a backplane port aggregation group in an outgoing direction to which a port of a switch matrix board card connected to a service board card belongs and a backplane port aggregation group in an incoming direction to which the port belongs are the same backplane port aggregation group.
Based on the same inventive concept, the application further provides a distributed device comprising: the system comprises a main control board card, a plurality of service board cards and a plurality of switching matrix board cards. The structure of the distributed equipment is the same as the main structure of the existing distributed equipment.
The main control board card is connected with each service board card and each switching matrix board card through the control channel respectively, and is used for sending an instruction that a target switching matrix board card is about to be pulled out to each service board card.
Each service board card is used for removing a port connected with a target switching matrix board card to be pulled out from a backplane port aggregation group in the outgoing direction to which the service board card belongs, keeping the port in the backplane port aggregation group in the incoming direction to which the port belongs, and not configuring the port to discard the received other traffic messages except the known unicast message.
In addition, the main control board card is further configured to send an instruction indicating that a new switching matrix board card is inserted to each service board card when the new switching matrix board card is detected to be inserted, and each service board card is further configured to add a port, which is connected to the new switching matrix board card, to a backplane port convergence group to which the service board card belongs in the outgoing direction and to a backplane port convergence group to which the service board card belongs in the incoming direction.
The implementation principle and the generated technical effect of the distributed device provided by the embodiment of the present application are the same as those of the foregoing method embodiment, and for the sake of brief description, reference may be made to corresponding contents in the foregoing method embodiment for a part of the embodiment of the distributed device that is not mentioned.
Based on the same inventive concept, the present application further provides a device 100 for preventing packet loss, as shown in fig. 3. The apparatus 100 for preventing packet loss includes a removing template 110 and a retaining module 120.
And the removing template 110 is configured to remove a port, which is connected to the target switch matrix board to be removed from the service board, from the backplane port aggregation group in the removal direction to which the port belongs.
A reserving module 120, configured to reserve the port in a backplane port aggregation group in an ingress direction to which the port belongs, and not configure the port to discard the received other traffic packets except the known unicast packet.
In addition, the apparatus 100 for preventing packet loss further includes: a joining module 130. The adding module 130 is configured to add, when a new switching matrix board card is inserted, a port of the service board card, which is connected to the new switching matrix board card, to a backplane port convergence group that belongs in the outgoing direction and to a backplane port convergence group that belongs in the incoming direction.
The apparatus 100 for preventing packet loss further includes: the receiving module is used for receiving an instruction sent by the main control board card that the target switching matrix board card is about to be pulled out and receiving an instruction sent by the main control board card that a new switching matrix board card is inserted.
The implementation principle and the generated technical effect of the apparatus 100 for preventing packet loss provided in the embodiment of the present application are the same as those of the foregoing method embodiment, and for brief description, no mention is made in the apparatus embodiment, and reference may be made to the corresponding contents in the foregoing method embodiment.
The embodiment of the present application further provides a non-volatile computer readable storage medium (hereinafter referred to as a storage medium), where the storage medium stores a computer program, and the computer program is executed by a processor in the service board to perform the above-mentioned method for preventing packet loss.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product stored in a computer-readable storage medium, which includes several instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or an electronic device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned computer-readable storage media comprise: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for preventing packet loss is characterized in that the method is applied to a service board card in distributed equipment, and the distributed equipment further comprises a switching matrix board card connected with the service board card; the method comprises the following steps:
removing the port of the target switching matrix board card to be pulled out connected to the service board card from the backboard port convergence group in the pulling-out direction to which the port belongs;
and the port is reserved in a backplane port convergence group in the incoming direction of the port, and the port is not configured to discard the received other traffic messages except the known unicast message.
2. The method of claim 1, wherein the distributed device further comprises a master board card connected to the service board card and the switch matrix board card; before removing the port of the target switching matrix board card to be pulled out connected to the service board card from the backplane port aggregation group in the pulling-out direction to which the port belongs, the method further includes:
and receiving an instruction that the target switching matrix board card is to be pulled out and sent by the main control board card.
3. The method of claim 1, further comprising:
and when a new switching matrix board card is inserted, adding a port connected with the new switching matrix board card on the service board card into the backboard port convergence group belonging to the outgoing direction and the backboard port convergence group belonging to the incoming direction.
4. The method of claim 3, wherein the distributed device further comprises a master board card connected to the service board card and the switch matrix board card, and wherein the master board card indicates that a new switch matrix board card is inserted if an instruction indicating that the new switch matrix board card is inserted is received from the master board card.
5. An apparatus for preventing packet loss, the apparatus comprising:
the removing template is used for removing the port of the target switching matrix board card to be pulled out connected to the service board card from the backboard port convergence group in the pulling-out direction to which the port belongs;
and the reserving module is used for reserving the port in a backplane port convergence group in the incoming direction of the port, and does not configure the port to discard the received other traffic messages except the known unicast message.
6. The apparatus of claim 5, further comprising:
and the adding module is used for adding a port, connected with the new switching matrix board card, on the service board card into the backboard port convergence group belonging to the outgoing direction and the backboard port convergence group belonging to the incoming direction when the new switching matrix board card is inserted.
7. The apparatus of claim 5, further comprising:
the receiving module is used for receiving an instruction sent by the main control board card that the target switching matrix board card is about to be pulled out and receiving an instruction sent by the main control board card that a new switching matrix board card is inserted.
8. A distributed device, comprising: the main control board card is connected with each service board card and each switching matrix board card through control channels;
the main control board card is used for sending an instruction that a target switching matrix board card is to be pulled out to each service board card;
each service board card is used for removing a port connected with a target switching matrix board card to be pulled out from a backplane port aggregation group in the outgoing direction to which the service board card belongs, keeping the port in the backplane port aggregation group in the incoming direction to which the port belongs, and not configuring the port to discard the received other traffic messages except the known unicast message.
9. The distributed apparatus according to claim 8, wherein the main control board card is further configured to send, when detecting that a new switch matrix board card is inserted, an instruction indicating that a new switch matrix board card is inserted to each service board card;
each service board card is also used for adding the port connected with the new switching matrix board card into the back plate port convergence group belonging to the outgoing direction and adding the port connected with the new switching matrix board card into the back plate port convergence group belonging to the incoming direction.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN202111222778.3A 2021-10-20 2021-10-20 Method and device for preventing packet loss, distributed equipment and storage medium Active CN113726614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111222778.3A CN113726614B (en) 2021-10-20 2021-10-20 Method and device for preventing packet loss, distributed equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111222778.3A CN113726614B (en) 2021-10-20 2021-10-20 Method and device for preventing packet loss, distributed equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113726614A true CN113726614A (en) 2021-11-30
CN113726614B CN113726614B (en) 2023-01-24

Family

ID=78686087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111222778.3A Active CN113726614B (en) 2021-10-20 2021-10-20 Method and device for preventing packet loss, distributed equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113726614B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055624A (en) * 2010-12-30 2011-05-11 中兴通讯股份有限公司 Method and system for detecting connectivity fault
CN104486260A (en) * 2014-11-25 2015-04-01 福建星网锐捷网络有限公司 Method and device for processing message
US20190104207A1 (en) * 2017-09-29 2019-04-04 Fungible, Inc. Network access node virtual fabrics configured dynamically over an underlay network
CN110071878A (en) * 2019-04-15 2019-07-30 杭州迪普信息技术有限公司 Message flow statistical method, device, electronic equipment
CN112187679A (en) * 2020-09-22 2021-01-05 锐捷网络股份有限公司 Message processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055624A (en) * 2010-12-30 2011-05-11 中兴通讯股份有限公司 Method and system for detecting connectivity fault
CN104486260A (en) * 2014-11-25 2015-04-01 福建星网锐捷网络有限公司 Method and device for processing message
US20190104207A1 (en) * 2017-09-29 2019-04-04 Fungible, Inc. Network access node virtual fabrics configured dynamically over an underlay network
CN110071878A (en) * 2019-04-15 2019-07-30 杭州迪普信息技术有限公司 Message flow statistical method, device, electronic equipment
CN112187679A (en) * 2020-09-22 2021-01-05 锐捷网络股份有限公司 Message processing method and device

Also Published As

Publication number Publication date
CN113726614B (en) 2023-01-24

Similar Documents

Publication Publication Date Title
CN108809836B (en) Multicast data message forwarding method and device
US9742667B2 (en) Packet processing method, device and system
EP3236624A1 (en) Cross-board forwarding method and apparatus
JPH04248729A (en) Atm exchange
CN108768757B (en) Fault processing method and device and distributed network equipment
US10652145B2 (en) Managing data frames in switched networks
CN102255751A (en) Stacking conflict resolution method and equipment
CN108683615B (en) Message distribution method and device and distribution switch
CN108718258B (en) Quality detection method and equipment for inter-board link
JP4087970B2 (en) Method for providing a management channel, line terminator for realizing such a method, first network terminator card, and second network terminator card
US20070280283A1 (en) IGMP (Internet Group Management Protocol) connectivity verification
CN113726614B (en) Method and device for preventing packet loss, distributed equipment and storage medium
WO2016124044A1 (en) Method for processing warning information of passive optical device and optical line terminal
CN112532532B (en) Service returning method, device, equipment and readable storage medium
CN109462639B (en) Port expansion equipment management method and device
WO2020224407A1 (en) Processing method and system for bit error rate detection, first node, second node, and storage medium
CN112929197A (en) Network communication method, device, equipment and storage medium
CN112737982A (en) Method for forwarding message and CLOS (clock-line-operating System) framework switch
CN108306770B (en) Inter-board communication system and method
CN112491749A (en) Method for rapidly converging aggregated link based on ASIC (application specific integrated circuit), method and device for forwarding message
JP2551143B2 (en) ATM switch communication path failure detection system
WO2024001774A1 (en) Trunk optical path protection method and system, electronic device and computer readable medium
CN112866045B (en) Link state detection method, multicast equipment and link state detection system
CN116016347A (en) Distributed system and flow diversion method
CN109445942B (en) Heartbeat message processing method and device

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