MRP looped network and message processing method thereof, terminal equipment and readable storage medium

By applying hardware forwarding technology on the media redundant client of the MRP ring network, using the access control list to match and forward MRP protocol packets, the problem of extended message processing time caused by poor CPU processing performance of multiple MRC devices is solved. , realizes faster message processing and higher convergence performance.

CN119484446APending Publication Date: 2025-02-18深圳市三旺通信股份有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411598469.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the MRP ring network, the CPU processing performance of multiple MRC devices is poor, resulting in a longer packet processing time and an increased convergence time.

Method used

By applying hardware forwarding technology on media redundant clients, the access control list is used to match and forward MRP protocol packets, reducing dependence on the processor and improving packet processing efficiency.

Benefits of technology

The time for each device in the MRP ring network to process packets is accelerated, and the convergence performance of the entire ring network is improved, especially when the number of devices in the ring network is large, the effect is significant.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484446A_ABST
    Figure CN119484446A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of MRP looped networks, and discloses an MRP looped network and a message processing method thereof, terminal equipment and a readable storage medium, the MRP looped network comprises a medium redundancy management end and a plurality of medium redundancy clients which form the looped network, and the message processing method of the MRP looped network is applied to the medium redundancy clients. Comprising the following steps: receiving an MRP protocol message sent by a previous medium redundancy client or a medium redundancy management end; matching the first target message or the second target message based on the access control list; and carrying out hardware forwarding on the matched first target message or the second target message to a next medium redundancy client or a medium redundancy management end, and emptying a self filtering database according to the matched first target message. According to the message processing method of the MRP looped network, the switch of the whole MRP looped network can quickly forward the target message to the adjacent equipment, and the convergence performance of an MRP loop is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of MRP ring networks, and in particular to an MRP ring network and a message processing method thereof, a terminal device and a readable storage medium. Background Art

[0002] The MRP ring network consists of a Media Redundancy Manager (MRM) and multiple Media Redundancy Clients (MRC). The MRC is used to send offline frame messages or online frame messages to notify the MRM of the change status; the MRM is used to send topology status change frame messages to notify all MRCs of the topology changes that occur in the MRP ring network. Each MRC must transmit the offline frame message, online frame message, and topology status change frame message received to another MRC device, and the number of devices passed may be hundreds.

[0003] In the prior art, each MRC device sends the offline frame message, online frame message and topology status change frame message to the processor (Central Processing Unit, CPU) for software message forwarding processing. When there are hundreds of MRC devices in the MRP ring network, if the CPU processing performance of the MRC is poor, the device at the farthest distance in the MRP ring network will receive the message slowly, and thus the time to respond to the message will be long, resulting in an increase in convergence time. Summary of the invention

[0004] In view of this, the embodiments of the present application provide an MRP ring network and a message processing method thereof, a terminal device and a readable storage medium, which speed up the time for the MRP ring network to process messages, thereby improving the convergence performance of the MRP ring network.

[0005] In a first aspect, an embodiment of the present application provides a message processing method of an MRP ring network, wherein the MRP ring network includes a media redundancy management terminal and a plurality of media redundancy clients constituting the ring network, and the message processing method of the MRP ring network is applied to the media redundancy client, including:

[0006] Receiving the MRP protocol message sent by the media redundancy client or the media redundancy management terminal;

[0007] Matching a first target message or a second target message based on an access control list, wherein the first target message comes from the media redundancy management end, and the second target message comes from the media redundancy client end;

[0008] The matched first target message or the matched second target message is forwarded to the next media redundancy client or the media redundancy management terminal by hardware, and its own filtering database is cleared according to the matched first target message.

[0009] In a first possible embodiment of the first aspect, the access control list includes a preset matching rule constructed based on a destination address and an Ethernet type of the first target message and the second target message, and matching the first target message or the second target message based on the access control list includes:

[0010] The destination address and Ethernet type of the received MRP protocol message are matched with the preset matching rule to match the first target message or the second target message.

[0011] In a second possible embodiment of the first aspect, the media redundancy client is a switch provided with an integrated circuit chip, and the hardware forwarding of the matched first target message or the second target message to the next media redundancy client or the media redundancy management terminal includes:

[0012] The matched first target message or the second target message is sent to its own output port through the integrated circuit chip, so that the output port sends the first target message or the second target message to the next media redundancy client or the media redundancy management terminal.

[0013] In a third possible embodiment of the first aspect, the clearing its own filtering database according to the matched first target message includes:

[0014] The matched first target message is sent to a processor, so that the processor generates a clearing instruction of the filtering database according to the first target message, and clears the filtering database.

[0015] In a fourth possible embodiment of the first aspect, the first target message is a topology state change frame message sent by the media redundancy management terminal.

[0016] In a fifth possible embodiment of the first aspect, the second target message is a offline frame message or an online frame message sent by the media redundancy client.

[0017] In a sixth possible embodiment of the first aspect, the first target packet and the second target packet have the same destination address and Ethernet type.

[0018] In a second aspect, an embodiment of the present application provides an MRP ring network, including a media redundancy management terminal and a plurality of media redundancy clients constituting the ring network, each of the media redundancy clients being used to execute the above-mentioned message processing method of the MRP ring network.

[0019] In a third aspect, an embodiment of the present application provides a terminal device, the terminal device comprising a processor and a memory, the memory storing a computer program, and the processor being used to execute the computer program to implement the above-mentioned message processing method of the MRP ring network.

[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed on a processor, the message processing method of the MRP ring network described above is implemented.

[0021] The embodiments of the present application have the following beneficial effects:

[0022] The present embodiment provides a message processing method for an MRP ring network, wherein the MRP ring network includes a media redundancy management terminal and a plurality of media redundancy clients constituting the ring network, and the message processing method for the MRP ring network is applied to the media redundancy client, including: receiving an MRP protocol message sent by the previous media redundancy client or the media redundancy management terminal; matching a first target message or a second target message based on an access control list, wherein the first target message comes from the media redundancy management terminal and the second target message comes from the media redundancy client; forwarding the matched first target message or the second target message to the next media redundancy client or the media redundancy management terminal by hardware, and clearing its own filtering database according to the matched first target message. Based on the above scheme, the present application can match the target message through the access control list and perform hardware forwarding processing, so that the switch of the entire MRP ring network can quickly forward the target message to the adjacent device, speeding up the time for each device to process the target message, thereby improving the convergence performance of the MRP loop, especially when there are a large number of MRP devices in a loop, the effect is more significant. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 A first framework scenario diagram of the MRP ring network in an embodiment of the present application is shown;

[0025] Figure 2A second framework scenario diagram of the MRP ring network in an embodiment of the present application is shown;

[0026] Figure 3 A flow chart of a message processing method of an MRP ring network according to an embodiment of the present application is shown.

[0027] Description of main component symbols:

[0028] 100-MRP ring network; 110-media redundancy management terminal; 120-media redundancy client. DETAILED DESCRIPTION

[0029] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0030] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0031] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0032] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0033] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0034] Before describing the message processing method of the MRP ring network of the present application, the structure of the MRP ring network 100 is first introduced accordingly.

[0035] Figure 1 A framework scenario diagram of the MRP ring network 100 of the embodiment of the present application is shown. Exemplarily, the MRP ring network 100 includes a media redundancy management terminal 110 and a plurality of media redundancy clients 120 constituting the ring network. Specifically, the media redundancy management terminal 110 plays the role of monitoring the loop and controlling the link in the MRP ring network 100. The media redundancy management terminal 110 is used to respond to the loop or link failure of the MRP ring network 100, and eliminate the loop when the loop is closed by blocking the port of its own device in the ring network or releasing the blocked port, and restore the communication link between nodes when a link in the ring network fails. The media redundancy client 120 is used to monitor the link status of the ring port on its own device, and notify the link change to the media redundancy management terminal 110, and the media redundancy management terminal 110 makes corresponding processing according to the link change. In the MRP ring network 100, all devices with MRP capabilities can be configured by the network administrator as a media redundancy management terminal 110 or a media redundancy client 120. However, at the same time, only one device can be in the working state of the media redundancy management terminal 110. The redundancy purpose is achieved by blocking one of the ports of the media redundancy management terminal 110.

[0036] In this embodiment, the MRP protocol message includes a test message, a offline frame message, an online frame message, and a topology state change frame message. The test message originates from the media redundancy management terminal 110, and the test message is used to determine whether the MRP ring network 100 forms a closed loop. Both the offline frame message and the online frame message originate from the media redundancy client 120. When the media redundancy client 120 detects that its own link fails, it sends the offline frame message. When the media redundancy client 120 detects that its own link failure is restored, it sends the online frame message to notify the media redundancy management terminal 110 of the link change detected by itself. The topology state change frame message originates from the media redundancy management terminal 110. The topology state change frame message is used to notify all media redundancy clients 120 of the topology change occurring in the MRP ring network 100. The media redundancy client 120 that receives the topology state change frame message will clear its own filtering database (Filtering Database, FDB) to facilitate re-learning the MAC (Media Access Control, Media Access Control) address after the topology change.

[0037] For example, in the MRP ring network 100, when the link status of the MRP ring network 100 is intact, the media redundancy management terminal 110 actively blocks one of its own ring ports to eliminate the loop of the MRP ring network 100, and the effect is as follows: Figure 1When a single point failure occurs in the MRP ring network 100, the ring port where the link failure occurs is in a physical link failure or disconnected state. At this time, the media redundancy management terminal 110 can quickly release the blocked ring port to ensure the connectivity of the ring network. The effect is as follows: Figure 2 shown.

[0038] For example, in one embodiment, the specific processing flow of the media redundancy client 120 and the media redundancy manager 110 in the MRP ring network 100 is as follows:

[0039] The media redundancy management terminal 110 periodically sends test messages outward through the two ring ports and sets the primary port to the forwarding state. If the media redundancy management terminal 110 receives the test message sent by itself from any ring port, it indicates that the MRP ring network 100 is closed, and the media redundancy management terminal 110 sets the secondary port to the blocking state to avoid broadcast storms. If the media redundancy management terminal 110 does not receive the test message sent by itself, it indicates that the MRP ring network 100 is in an open ring state, that is, the loop is disconnected, then the media redundancy management terminal 110 will also set the secondary port to the forwarding state to ensure that the communication link on the MRP ring network 100 is not interrupted. The media redundancy client 120 forwards the received MRP protocol message between the two ring ports, that is, the message received from one ring port will be forwarded on the other ring port, so that the MRP protocol message can circulate in the MRP ring network 100, so that the media redundancy management terminal 110 can receive the test message sent by itself to determine the state of the MRP ring network 100. When the media redundancy client 120 detects that a ring port link fails, it blocks the failed ring port and sends offline frame messages through the ring port; when the media redundancy client 120 detects that the ring port link fails, it temporarily blocks the restored ring port and maintains its blocking state to avoid loops, and sends online frame messages through the ring port. If a link in the MRP ring network 100 fails, all the media redundancy clients 120 connected to the link will detect that the ring port link fails.

[0040] When the media redundancy management terminal 110 receives a offline frame message, the media redundancy management terminal 110 immediately processes the offline frame message, sets the ring port that was originally in a blocked state to a forwarding state, and sends a topology state change frame message through two ring ports. When the media redundancy management terminal 110 receives an online frame message, the media redundancy management terminal 110 immediately processes the online frame message, directly sets its own secondary port to a blocked state, and sends a topology state change frame message through two ring ports. When the media redundancy client 120 receives a topology state change frame message, it will release the temporarily blocked port and clear the local filtering database to re-learn the MAC address after the topology change. It can be understood that the media redundancy management terminal 110 can quickly process the link state change in the MRP ring network 100, shortening the convergence time of the MRP ring network 100 failure.

[0041] Figure 3 A flow chart of a message processing method of an MRP ring network according to an embodiment of the present application is shown. Exemplarily, the message processing method of the MRP ring network is applied to a media redundancy client 120, and specifically includes the following steps:

[0042] S210 , receiving an MRP protocol message sent by the previous media redundancy client 120 or the media redundancy manager 110 .

[0043] S220 , matching the first target message or the second target message based on the access control list, wherein the first target message comes from the media redundancy management terminal 110 , and the second target message comes from the media redundancy client 120 .

[0044] In this embodiment, the first target message is a topology state change frame message sent by the media redundancy management terminal 110, and the second target message is a offline frame message or an online frame message sent by the media redundancy client 120. The first target message and the second target message have the same destination address and Ethernet type.

[0045] Exemplarily, the media redundancy client 120 uses a switch equipped with an integrated circuit (Application Specific Integrated Circuit, ASIC) chip to perform second and third layer forwarding. In the integrated circuit chip, there is an access control list resource. The integrated circuit chip can customize the forwarding rules of the messages entering the chip through the access control list. The preset matching rule is set to the same destination address and Ethernet type as the first target message and the second target message, so that the integrated circuit chip can match the first target message or the second target message through the access control list.

[0046] In one embodiment, the access control list includes preset matching rules constructed based on the destination addresses and Ethernet types of the first target message and the second target message. The message processing method matches the first target message or the second target message based on the access control list, including: matching the destination address and Ethernet type of the received MRP protocol message with the preset matching rules to match the first target message or the second target message.

[0047] Specifically, the access control list, as a chip resource of the integrated circuit chip, is a hardware acceleration module for network access control. In the access control list, the preset matching rules can be used to filter out the messages that do not meet the conditions in the MRP protocol message. When the integrated circuit chip receives the MRP protocol message, it will search and match the destination address, source address, Internet Protocol address, port number and Ethernet type of the MRP protocol message, and compare the matching results with the preset matching rules defined in the access control list to determine whether the MRP protocol message should be allowed to be forwarded or should be filtered out.

[0048] S230 , forwarding the matched first target message or the second target message to the next media redundancy client 120 or the media redundancy management terminal 110 by hardware, and clearing its own filtering database according to the matched first target message.

[0049] Exemplarily, the integrated circuit chip is used to quickly forward the matched first target message or the second target message to the next adjacent media redundancy client 120 or the media redundancy management terminal 110 of the MRP ring network 100, without relying on the processor to forward the first target message or the second target message. The integrated circuit chip is also used to forward the matched message to the processor, so that the processor performs a clearing and filtering database operation according to the received topology state change frame message.

[0050] For example, in one embodiment, the media redundancy client 120 is a switch provided with an integrated circuit chip, and the message processing method performs hardware forwarding of the matched first target message or the second target message to the next media redundancy client 120 or the media redundancy management end 110, including: sending the matched first target message or the second target message to its own output port through the integrated circuit chip, so that the output port sends the first target message or the second target message to the next media redundancy client 120 or the media redundancy management end 110.

[0051] For example, in one embodiment, the message processing method clears its own filtering database according to the matched first target message, including: sending the matched first target message to the processor, so that the processor generates a clearing instruction of the filtering database according to the first target message to clear the filtering database.

[0052] Specifically, the access control action of the access control list is set to send the first target message or the second target message to the output port and the processor. After matching the preset matching rule defined in the access control list, the integrated circuit chip processes according to the access control action, so that the processor receives the topology state change frame message and performs a clear filtering database operation. It can also enable the topology state change frame message, offline frame message and online frame message to be directly forwarded from the ring network output port of the integrated circuit chip without the need for forwarding by the processor.

[0053] It can be understood that the optimization of the convergence performance of the MRP ring network 100 is mainly that the media redundancy management terminal 110 no longer needs to use a processor to forward messages, but relies on the access control list of the integrated circuit chip to achieve that the media redundancy management terminal 110 in the MRP ring network 100 can quickly receive the offline frame message or the online frame message forwarded by the media redundancy client 120, and send the topology state change frame message to all media redundancy clients 120. At the same time, each media redundancy client 120 can also quickly receive the topology state change frame message forwarded by other media redundancy clients 120, and perform clearing and filtering database operations, thereby improving the convergence performance of the MRP ring network 100. When there are a large number of MRP switching devices in the ring, the time for each device to receive the message can be accelerated, thereby speeding up the response processing of each device to the MRP protocol message, and improving the convergence time. Moreover, the message processing method of the MRP ring network is highly universal for switch equipment. Basically, existing switch products use integrated circuit chips for layer 2 and layer 3 data forwarding. At the same time, the access control list is a basic function of the integrated circuit chip. There is no need to add related hardware equipment. Therefore, the applicability of this application is strong.

[0054] The present application also provides a terminal device. Exemplarily, the terminal device includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program, thereby enabling the terminal device to execute the above-mentioned MRP ring network message processing method or the functions of each module in the above-mentioned MRP ring network 100.

[0055] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.

[0056] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. Among them, the memory is used to store a computer program, and the processor can execute the computer program accordingly after receiving an execution instruction.

[0057] The present application also provides a computer-readable storage medium for storing a computer program used in the above-mentioned terminal device. For example, the computer-readable storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0058] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0059] In addition, the functional modules or units in the various 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.

[0060] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present application.

[0061] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A message processing method for an MRP ring network, characterized in that: The MRP ring network includes a media redundancy management terminal and a plurality of media redundancy clients constituting the ring network. The message processing method of the MRP ring network is applied to the media redundancy clients, including: Receiving the MRP protocol message sent by the media redundancy client or the media redundancy management terminal; Matching a first target message or a second target message based on an access control list, wherein the first target message comes from the media redundancy management end, and the second target message comes from the media redundancy client end; The matched first target message or the matched second target message is forwarded to the next media redundancy client or the media redundancy management terminal by hardware, and its own filtering database is cleared according to the matched first target message.

2. The message processing method of the MRP ring network according to claim 1, characterized in that: The access control list includes a preset matching rule constructed based on the destination address and Ethernet type of the first target message and the second target message, and the matching of the first target message or the second target message based on the access control list includes: The destination address and Ethernet type of the received MRP protocol message are matched with the preset matching rule to match the first target message or the second target message.

3. The message processing method of the MRP ring network according to claim 1, characterized in that: The media redundancy client is a switch provided with an integrated circuit chip, and the matching first target message or the second target message is forwarded by hardware to the next media redundancy client or the media redundancy management terminal, including: The matched first target message or the second target message is sent to its own output port through the integrated circuit chip, so that the output port sends the first target message or the second target message to the next media redundancy client or the media redundancy management terminal.

4. The message processing method of the MRP ring network according to claim 1, characterized in that: The clearing of its own filtering database according to the matched first target message includes: The matched first target message is sent to a processor, so that the processor generates a clearing instruction of the filtering database according to the first target message, and clears the filtering database.

5. The message processing method of the MRP ring network according to claim 1, characterized in that: The first target message is a topology state change frame message sent by the media redundancy management terminal.

6. The message processing method of the MRP ring network according to claim 5, characterized in that: The second target message is a offline frame message or an online frame message sent by the media redundancy client.

7. The message processing method of the MRP ring network according to claim 6, characterized in that: The first target message and the second target message have the same destination address and Ethernet type.

8. An MRP ring network, characterized in that: The invention comprises a media redundancy management terminal and a plurality of media redundancy clients constituting a ring network, each of the media redundancy clients being used to execute the message processing method of the MRP ring network according to any one of claims 1 to 7.

9. A terminal device, characterized in that: The terminal device comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the message processing method of the MRP ring network according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The device stores a computer program, which, when executed on a processor, implements the message processing method for an MRP ring network according to any one of claims 1 to 7.

Citation Information

Cited By

  • MRP redundant domain link fault processing method, network device and system

    CN120710918A