Master station type hybrid private protocol networking method and compatible ring network equipment
By introducing compatible ring network devices that are compatible with multiple private redundant ring protocols into the switch, the problem of protocol incompatibility between switches from different manufacturers during hybrid networking is solved, and convenient network formation process and efficient ring construction are achieved.
Patent Information
- Application Number
- CN202411790834.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-02-14
AI Technical Summary
When switching machines from different manufacturers conduct hybrid networking, due to the incompatible private redundant ring protocols, the networking is difficult and costly. The existing unified replacement solutions have problems such as large engineering volume and inability to utilize system investment.
A master-site hybrid private protocol networking method is proposed. By providing compatible ring network devices that are compatible with multiple private redundant ring protocols, they are connected to the private ring network to be networked as slaves, and the built-in protocol is used. Process template identification and packet processing to realize networking in different private ring networks.
The networking in different private ring networks is realized, which reduces the difficulty and cost of networking, makes the construction of private ring network more convenient, and improves the flexibility and scalability of ring networks.
Smart Images

Figure CN119449916A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of hybrid protocol networking, and in particular to a master station type hybrid private protocol networking method and compatible ring network equipment. Background Art
[0002] In industrial applications, switches from various manufacturers currently have their own private redundant ring protocols, which are different and cannot be directly compatible. Therefore, when switches from different manufacturers are mixed and networked, due to the incompatibility of different private redundant ring protocols, one party needs to change the protocol to adapt to the other party, or adopt a unified replacement solution, that is, replace the equipment as a whole. However, the unified replacement solution has the disadvantages of large engineering workload and inability to utilize system investment. Summary of the invention
[0003] In view of this, the present application proposes a master-station type hybrid private protocol networking method and a compatible ring network device, by providing a compatible ring network device compatible with multiple private redundant ring protocols, and connecting the compatible ring network device to the private ring network to be networked as a slave station to be compatible with different redundant ring protocols, thereby realizing networking in different private ring networks.
[0004] In a first aspect, the present application provides a master station type hybrid private protocol networking method, comprising:
[0005] Connecting a compatible ring network device as a slave to the private ring network to be networked, wherein the compatible ring network device is configured with a protocol processing template constructed according to different redundant ring protocols;
[0006] Receiving a message of the private ring network through the compatible ring network device, and identifying a redundant ring protocol type of the message according to the protocol processing template;
[0007] According to the identified redundant ring protocol type, the message is processed using the protocol processing template and encapsulated into a ring protocol message in the private ring network;
[0008] The encapsulated ring protocol message is transparently transmitted to the private ring network to realize the networking of compatible ring network devices in the private ring network.
[0009] From the above, the present application provides a master station type hybrid private protocol networking method, which connects a compatible ring network device to the private ring network to be networked as a slave station, and identifies the redundant ring protocol type of the received message according to the protocol processing template configured in the compatible ring network device, and then processes the message according to the identified redundant ring protocol type and encapsulates it into a ring protocol message in the private ring network, and transparently transmits the encapsulated ring protocol message to the private ring network, thereby realizing the networking function of the compatible ring network device in the private ring network. This method realizes the compatibility and efficient processing of different redundant ring protocols by built-in multiple protocol processing templates, and provides a flexible and efficient solution for the construction of private ring networks.
[0010] Optionally, the protocol processing template configured in the compatible ring network device is specifically used for:
[0011] Classifying the redundant ring protocol type of the message according to the redundant ring protocol characteristics of the private ring network;
[0012] encapsulating the message into a ring protocol message of the private ring network according to the message classification result;
[0013] Transmit the encapsulated ring protocol message to the private ring network;
[0014] Different response processing is performed according to different events to achieve the switching of the ring network link status.
[0015] As described above, by predefining multiple message functions in the protocol processing template, the automation and efficiency of message classification, filling, transparent transmission and event processing are achieved, thereby realizing the conversion and compatibility between different protocols, and the protocol processing template can also be added or changed as needed to adapt to new redundant ring protocols that may appear.
[0016] Optionally, performing different response processing according to different events includes:
[0017] When a ring network link of a compatible ring network device fails, the ring port with the interrupted link is set to a blocked state, and a ring network link offline message is sent from another ring port to notify the master station;
[0018] When the ring network link of the compatible ring network device is restored, the restored ring port is set to the forwarding state, and the ring network link online message is sent from the two ring ports to notify the master station.
[0019] From the above, when the ring network link of the compatible ring network device fails, the ring port that detects the link interruption can be immediately set to the blocking state to prevent the port from continuing to forward the ring network message, thereby preventing the broadcast storm and MAC address table instability caused by the loop, and sending the ring network link offline message (Ring_Link_Down) to the master station through the unaffected ring port to notify the master station that the ring network link has been interrupted so that corresponding measures can be taken. When the ring network link of the compatible ring network device is restored, the ring port that was previously set to the blocking state is restored to the forwarding state, and the ring network link online message (Ring_Link_Up) is sent to the master station through the two ring ports of the compatible ring network device to notify the master station that the ring network link has been restored, so that the master station can update the network status and restore normal network communication.
[0020] Optionally, performing different response processing according to different events further includes:
[0021] Send a peer detection message through the ring port of a compatible ring network device and wait for a response from the peer neighbor of the ring port;
[0022] When no response is received from the neighbor at the other end within the preset time, the ring port is set to a blocked state, and a ring network link offline message is sent from another ring port to notify the master station;
[0023] When the ring port in the blocked state is restored, the restored ring port is set to the forwarding state, and ring network link online messages are respectively sent from the two ring ports to notify the master station.
[0024] From the above, by introducing the processing functions of peer detection and fault recovery, the stability, availability and fault recovery capability of the network are further improved. Specifically, the peer detection message can be sent regularly through the ring port of the compatible ring network device to monitor the network status of the peer neighbor connected to the ring port. If no response is received from the peer neighbor within the preset time, it is considered that the peer device may be faulty or the link is interrupted. To prevent potential loop problems, the ring port that has not received a response is set to a blocking state, and a ring network link offline message is sent to the master station through another ring port to notify the master station that the ring network link has been interrupted. In addition, by continuously monitoring the ring port that was previously set to a blocking state, when the ring port in the blocking state detects that the peer neighbor device has been restored, the restored ring port can be reset to a forwarding state, and a ring network link online message is sent to the master station through the two ring ports of the compatible ring network device to notify the master station that the ring network link has been restored.
[0025] Optionally, also include:
[0026] The compatible ring network device performs a table clearing action according to a topology change message sent by the master station. The topology change message is generated by the master station according to the ring network link offline message or the ring network link online message and sent to the compatible ring network device. The table is a table entry for forwarding messages in the private ring network.
[0027] From the above, when the network topology changes, the topology change message is sent through the main station, and the compatible ring network device can quickly perform the table clearing action according to the instruction of the main station. The table is used for forwarding messages in the private ring network, ensuring the consistency of the forwarding table in the network device with the current network topology, avoiding forwarding errors and data loss.
[0028] Optionally, performing different response processing according to different events further includes:
[0029] The identified message conforming to the specific protocol is sent to the CPU, so that the CPU performs management of the private ring network according to the content of the message.
[0030] From the above, by introducing the event processing strategy of reporting messages to the CPU, when a message that conforms to a specific protocol is identified, the compatible ring network device sends it to the CPU through an internal mechanism, so that the CPU can parse and process it according to the preset processing flow and perform corresponding management operations, such as updating network topology information, adjusting routing tables, executing security functions, etc., thereby improving the flexibility, real-time performance and management efficiency of the network.
[0031] In a second aspect, the present application provides a compatible ring network device, which is connected to a private ring network to be networked as a slave station, and the compatible ring network device includes:
[0032] A template configuration module, used to construct and configure protocol processing templates according to different redundant ring protocols;
[0033] A message identification module, used for receiving a message from the private ring network, and identifying a redundant ring protocol type of the message according to the protocol processing template;
[0034] A message processing module, used to process the message according to the identified redundant ring protocol type using the protocol processing template and encapsulate it into a ring protocol message in the private ring network;
[0035] The message transparent transmission module is used to transparently transmit the encapsulated ring protocol message to the private ring network to realize the networking of compatible ring network devices in the private ring network.
[0036] In a third aspect, the present application provides a computing device, the computing device comprising:
[0037] processor;
[0038] A memory for storing one or more programs;
[0039] When the one or more programs are executed by the processor, the processor implements the above-mentioned master-station type hybrid private protocol networking method.
[0040] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the above-mentioned master-station type hybrid private protocol networking method.
[0041] These and other aspects of the present application will become more apparent from the following description of the embodiment(s). BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A flowchart of a master station type hybrid private protocol networking method provided in an embodiment of the present application;
[0043] Figure 2 A functional schematic diagram of a protocol processing template provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of a compatible ring network device performing a message transparent transmission function provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of processing a ring network link failure of a compatible ring network device provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of processing of ring network link recovery for a compatible ring network device provided in an embodiment of the present application;
[0047] Figure 6 A schematic diagram of a compatible ring network device performing peer device detection provided in an embodiment of the present application;
[0048] Figure 7 A structural diagram of a compatible ring network device provided in an embodiment of the present application;
[0049] Figure 8 A structural diagram of a computing device provided in an embodiment of the present application.
[0050] It should be understood that the size and shape of each block diagram in the above structural diagram are for reference only and should not constitute an exclusive interpretation of the embodiments of the present application. The relative positions and inclusion relationships between the blocks presented in the structural diagram are only schematic representations of the structural associations between the blocks, and do not limit the physical connection methods of the embodiments of the present application. DETAILED DESCRIPTION
[0051] The technical solution provided by the present application is further described below with reference to the accompanying drawings and examples. It should be understood that the system structure and business scenarios provided in the examples of the present application are mainly to illustrate the possible implementation methods of the technical solution of the present application and should not be interpreted as the only limitation on the technical solution of the present application. It is known to those of ordinary skill in the art that with the evolution of the system structure and the emergence of new business scenarios, the technical solution provided by the present application is also applicable to similar technical problems.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present application. In case of any inconsistency, the meaning described in this specification or the meaning derived from the contents recorded in this specification shall prevail. In addition, the terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0053] The embodiment of the present application proposes a master-station type hybrid private protocol networking method and a compatible ring network device. By providing a compatible ring network device compatible with multiple private redundant ring protocols, when a slave station in a private ring network needs to be replaced or added, there is no need to purchase a dedicated slave station device for the private ring network. It is only necessary to connect the compatible ring network device provided by the embodiment of the present application to the private ring network to be networked as a slave station. The compatible ring network device has a built-in protocol processing template compatible with multiple redundant ring protocols, which is used to be compatible with different redundant ring protocols and realize networking in different private ring networks, thereby reducing the difficulty and cost of networking, making the construction of private ring networks more convenient, and effectively improving the flexibility and scalability of private ring networks.
[0054] like Figure 1 As shown, the embodiment of the present application provides a master station type hybrid private protocol networking method. When a slave station in a private ring network needs to be replaced or added, the above-mentioned compatible ring network device is connected to the private ring network to be networked as a slave station. The compatible ring network device is configured with a protocol processing template constructed according to different redundant ring protocols. Figure 1 As shown, the method includes:
[0055] S110: Receive a message from the private ring network through a compatible ring network device, and identify a redundant ring protocol type of the message according to the protocol processing template.
[0056] In this embodiment, the compatible ring network device has built-in protocol processing templates compatible with multiple redundant ring protocols, such as Figure 2 As shown, the protocol processing template may include multiple functions:
[0057] The message classification function (Ring_Frame_Classify) is used to classify the redundant ring protocol type of the message according to the redundant ring protocol characteristics of the private ring network. By parsing the header information or specific fields of the message, the redundant ring protocol type to which the message belongs can be identified, such as STP (Spanning Tree Protocol), RSTP (Rapid Spanning Tree Protocol), ERPS (Ethernet Ring Protection Protocol), etc.;
[0058] The message encapsulation function (Ring_Frame_Create) is used to encapsulate the received message into the ring protocol message format required by the private ring network according to the message classification result, including adding necessary header information, check field, sequence number, etc., to achieve the conversion and compatibility of messages between different redundant ring protocols, and ensure the correct transmission and processing of messages in the private ring network;
[0059] The message transparent transmission function (Ring_Frame_Transparent) is used to transparently transmit the encapsulated ring protocol message to the private ring network, including selecting the appropriate transmission path, setting the message priority, and ensuring the integrity and reliability of the message during transmission;
[0060] The event processing function is used to perform different response processing according to different events to achieve the switching of the ring network link status. These events may include the sending of messages (Ring_Frame_Send) when the link fails or the link is restored, reporting the specified protocol message to the CPU (Acl_Set), and the detection of the opposite device (Ring_Neighbors_Linkcheck), etc. According to the event type, the corresponding processing action can be triggered, such as switching the ring state, updating the routing table, sending notification messages, sending detection messages, sending messages to the CPU, etc. By introducing the event processing strategy of reporting messages to the CPU, when a message that conforms to a specific protocol is identified, the compatible ring network device sends it to the CPU through an internal mechanism, so that the CPU can parse and process it according to the preset processing flow, and perform corresponding management operations, such as updating network topology information, adjusting routing tables, executing security functions, etc., thereby improving the flexibility, real-time nature and management efficiency of the network.
[0061] S120: According to the identified redundant ring protocol type, the message is processed using the protocol processing template and encapsulated into a ring protocol message in the private ring network.
[0062] In this step, the compatible ring network device receives the message in the private ring network through its ring port, and after identifying the redundant ring protocol type of the message according to its built-in protocol processing template, it can process the message according to the identified redundant ring protocol type using the protocol processing template and encapsulate it into a ring protocol message in the private ring network to achieve message protocol conversion and ensure that the ring protocol message can be correctly transmitted in the private ring network.
[0063] S130: transparently transmit the encapsulated ring protocol message to the private ring network to realize networking of compatible ring network devices in the private ring network.
[0064] In this step, the compatible ring network device transparently transmits the ring protocol message generated in the above step to the private ring network through its ring port. When the ring protocol message is successfully transparently transmitted through the private ring network, the networking of the compatible ring network device in the private ring network can be realized, and normal ring network communication can be carried out.
[0065] like Figure 3 The figure shows a schematic diagram of a compatible ring network device performing message transparent transmission function, referring to Figure 3 As shown, when the master station in the private ring network sends a detection message (RING_HELLO / TEST) through its ring port, if the ring port of the compatible ring network device receives the detection message through the private ring network and identifies the redundant ring protocol type of the message according to its built-in protocol processing template, the protocol processing template can be used to parse and process the detection message and encapsulate it into a corresponding ring protocol message, and transparently transmit it to the private ring network through another ring port so that the master station can receive it, thereby completing the master station's status detection of the private ring network. The detection message is used to detect the ring network status, including the detection version.
[0066] like Figure 4 As shown in the figure, when the ring network link of the compatible ring network device fails, the ring port that detects the link interruption can be immediately set to the blocking state to prevent the port from continuing to forward the ring network message, thereby preventing the broadcast storm caused by the loop and the instability of the MAC address table, and sending the ring network link offline message (Ring_Link_Down) to the master station through another unaffected ring port to notify the master station that the ring network link has been interrupted. After receiving the ring network link offline message from the compatible ring network device, the master station recognizes that the network topology has changed. The master station generates a corresponding topology change message (Ring_Top_Change / Clear) based on the received ring network link offline message, and sends the message to the compatible ring network device in the network. The compatible ring network device can perform corresponding table clearing actions according to the content of the topology change message, such as clearing old MAC address table entries, updating the routing table, recalculating the spanning tree, etc., to ensure that the forwarding table of the compatible ring network device is consistent with the current network topology.
[0067] like Figure 5 As shown, the compatible ring network device can periodically detect the failed ring network link. When the compatible ring network device detects that the ring network link is restored, it can restore the ring port that was previously set to the blocking state to the forwarding state, and send the ring network link online message (Ring_Link_Up) to the master station through the two ring ports of the compatible ring network device to notify the master station that the ring network link has been restored. After the master station receives the ring network link online message from the compatible ring network device, it recognizes that the network topology is about to change. The master station generates a corresponding topology change message (Ring_Top_Change / Clear) based on the received ring network link online message, and sends the message to the compatible ring network device in the network. The compatible ring network device can perform the corresponding clearing action according to the content of the topology change message.
[0068] In some embodiments, the compatible ring network device may also actively send a peer detection message through its ring port, wait for a response from the peer neighbor of the ring port, detect the network status of the peer neighbor, and perform corresponding processing according to the detection result. Figure 6 As shown, the compatible ring network device can send a peer detection message (Neighbors_Link_Check_Req) through its ring port, and wait for the peer neighbor to feedback a response message (Neighbors_Link_Check_Resp) to the peer detection message within a preset time. When no response is received from the peer neighbor within the preset time, it is considered that the peer device may be faulty or the link is interrupted. To prevent potential loop problems, the ring port that has not received a response is set to a blocking (Block) state, and a ring network link offline message is sent to the master station through another ring port to notify the master station that the ring network link has been interrupted. After the master station receives the ring network link offline message from the compatible ring network device, it recognizes that the network topology has changed. The master station generates a corresponding topology change message based on the received ring network link offline message, and sends the message to the compatible ring network device in the network. The compatible ring network device can perform corresponding table clearing actions according to the content of the topology change message.
[0069] After the compatible ring network device sets its ring port to the blocking state, it can continuously monitor the ring port that was previously set to the blocking state. When the ring port in the blocking state detects that the neighboring device on the opposite end has recovered, it can reset the recovered ring port to the forwarding state and send a ring network link online message to the master station through the two ring ports of the compatible ring network device to notify the master station that the ring network link has been restored. After the master station receives the ring network link online message from the compatible ring network device, it recognizes that the network topology is about to change. The master station generates a corresponding topology change message based on the received ring network link online message and sends the message to the compatible ring network device in the network. The compatible ring network device can perform corresponding table clearing actions based on the content of the topology change message.
[0070] In summary, the embodiment of the present application provides a master-station hybrid private protocol networking method, which connects a compatible ring network device to the private ring network to be networked as a slave station, and identifies the redundant ring protocol type of the received message according to the protocol processing template configured in the compatible ring network device, and then processes the message according to the identified redundant ring protocol type and encapsulates it into a ring protocol message in the private ring network, and transparently transmits the encapsulated ring protocol message to the private ring network, thereby realizing the networking function of the compatible ring network device in the private ring network. This method realizes the compatibility and efficient processing of different redundant ring protocols by built-in multiple protocol processing templates, and provides a flexible and efficient solution for the construction of private ring networks.
[0071] like Figure 7 As shown, the embodiment of the present application provides a compatible ring network device, which can be used to implement the above Figure 1-Figure 6 When a slave station in a private ring network needs to be replaced or added, the compatible ring network device is connected to the private ring network to be networked as a slave station, referring to Figure 7 As shown, the compatible ring network device includes a template configuration module 210, a message identification module 220, a message processing module 230 and a message transparent transmission module 240;
[0072] Among them, the template configuration module 210 is used to construct and configure the protocol processing template according to different redundant ring protocols; the message identification module 220 is used to receive the message of the private ring network and identify the redundant ring protocol type of the message according to the protocol processing template; the message processing module 230 is used to process the message according to the identified redundant ring protocol type using the protocol processing template and encapsulate it into a ring protocol message in the private ring network; the message transparent transmission module 240 is used to transparently transmit the encapsulated ring protocol message to the private ring network to realize the networking of compatible ring network equipment in the private ring network.
[0073] It should be understood that the device or module in the embodiment of the present application can be implemented by software, for example, it can be implemented by a computer program or instruction having the above functions, and the corresponding computer program or instruction can be stored in a memory inside the terminal, and the processor reads the corresponding computer program or instruction inside the memory to implement the above functions. Alternatively, the device or module in the embodiment of the present application can also be implemented by hardware. Alternatively, the device or module in the embodiment of the present application can also be implemented by a combination of a processor and a software module.
[0074] It should be understood that the processing details of the device or module in the embodiment of the present application can refer to Figure 1-Figure 6 The related descriptions of the illustrated embodiment and related extended embodiments will not be repeated in the embodiments of the present application.
[0075] Figure 8 5 is a structural diagram of a computing device 500 provided in an embodiment of the present application. The computing device 500 includes: a processor 510 , a memory 520 , a communication interface 530 , and a bus 540 .
[0076] It should be understood that Figure 8 The communication interface 530 in the computing device 500 shown may be used to communicate with other devices.
[0077] The processor 510 may be connected to a memory 520. The memory 520 may be used to store the program code and data. Therefore, the memory 520 may be a storage unit inside the processor 510, or an external storage unit independent of the processor 510, or a component including a storage unit inside the processor 510 and an external storage unit independent of the processor 510.
[0078] Optionally, the computing device 500 may further include a bus 540. The memory 520 and the communication interface 530 may be connected to the processor 510 via the bus 540. The bus 540 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 540 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 The fact that only one line is used in the diagram does not mean that there is only one bus or only one type of bus.
[0079] It should be understood that in the embodiment of the present application, the processor 510 may adopt a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. Alternatively, the processor 510 may adopt one or more integrated circuits to execute relevant programs to implement the technical solutions provided in the embodiment of the present application.
[0080] The memory 520 may include a read-only memory and a random access memory, and provides instructions and data to the processor 510. A portion of the processor 510 may also include a nonvolatile random access memory. For example, the processor 510 may also store information on the device type.
[0081] When the computing device 500 is running, the processor 510 executes the computer-executable instructions in the memory 520 to perform the operating steps of the above method.
[0082] It should be understood that the computing device 500 according to the embodiment of the present application can correspond to the corresponding subjects in the methods according to the embodiments of the present application, and the above-mentioned other operations and / or functions of each module in the computing device 500 are respectively for realizing the corresponding processes of each method of the present embodiment. For the sake of brevity, they will not be repeated here.
[0083] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0084] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0085] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0086] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0087] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0088] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: 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.
[0089] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it is used to execute the above method, which includes at least one of the solutions described in the above embodiments.
[0090] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive lists) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing programs, which can be used by instruction execution systems, devices or devices or used in combination with them.
[0091] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0092] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0093] Computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0094] It should be noted that the embodiments described in the present application are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application usually described and shown in the drawings can be arranged and designed in various different configurations. Therefore, the above 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.
[0095] The words "first, second, third, etc." or module A, module B, module C and other similar terms in the specification and claims are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that the specific order or sequence can be interchanged where permitted so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0096] In the above description, the numbers representing the steps involved do not necessarily mean that the steps will be executed. Intermediate steps may be included or replaced by other steps. The order of the previous and next steps may be interchanged or executed simultaneously if permitted.
[0097] The term "comprising" as used in the description and claims should not be interpreted as being limited to what is listed thereafter; it does not exclude other elements or steps. Therefore, it should be interpreted as specifying the presence of the features, integers, steps or components mentioned, but does not exclude the presence or addition of one or more other features, integers, steps or components and groups thereof. Therefore, the expression "a device comprising means A and B" should not be limited to a device consisting of components A and B only.
[0098] The "one embodiment" or "embodiment" mentioned in this specification means that the specific features, structures or characteristics described in conjunction with the embodiment are included in at least one embodiment of the present application. Therefore, the terms "in one embodiment" or "in an embodiment" appearing in various places in this specification do not necessarily refer to the same embodiment, but may refer to the same embodiment. In addition, in the various embodiments of the present application, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form a new embodiment according to their inherent logical relationship.
[0099] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present application is described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may also include more other equivalent embodiments without departing from the concept of the present invention, all of which belong to the protection scope of the present invention.
Claims
1. A master station type hybrid private protocol networking method, characterized in that: include: Connecting a compatible ring network device as a slave to the private ring network to be networked, wherein the compatible ring network device is configured with a protocol processing template constructed according to different redundant ring protocols; Receiving a message of the private ring network through the compatible ring network device, and identifying a redundant ring protocol type of the message according to the protocol processing template; According to the identified redundant ring protocol type, the message is processed using the protocol processing template and encapsulated into a ring protocol message in the private ring network; The encapsulated ring protocol message is transparently transmitted to the private ring network to realize the networking of compatible ring network devices in the private ring network.
2. The method according to claim 1, characterized in that The protocol processing template configured in the compatible ring network device is specifically used for: Classifying the redundant ring protocol type of the message according to the redundant ring protocol characteristics of the private ring network; encapsulating the message into a ring protocol message of the private ring network according to the message classification result; Transmit the encapsulated ring protocol message to the private ring network; Different response processing is performed according to different events to achieve the switching of the ring network link status.
3. The method according to claim 2, characterized in that The different response processes are performed according to different events, including: When a ring network link of a compatible ring network device fails, the ring port with the interrupted link is set to a blocked state, and a ring network link offline message is sent from another ring port to notify the master station; When the ring network link of the compatible ring network device is restored, the restored ring port is set to the forwarding state, and the ring network link online message is sent from the two ring ports to notify the master station.
4. The method according to claim 3, characterized in that The performing different response processing according to different events also includes: Send a peer detection message through the ring port of a compatible ring network device and wait for the response of the peer neighbor of the ring port; When no response is received from the neighbor at the other end within the preset time, the ring port is set to a blocked state, and a ring network link offline message is sent from another ring port to notify the master station; When the ring port in the blocked state is restored, the restored ring port is set to the forwarding state, and ring network link online messages are respectively sent from the two ring ports to notify the master station.
5. The method according to claim 3 or 4, characterized in that: Also includes: The compatible ring network device performs a table clearing action according to a topology change message sent by the master station. The topology change message is generated by the master station according to the ring network link offline message or the ring network link online message and sent to the compatible ring network device. The table is a table entry for forwarding messages in the private ring network.
6. The method according to claim 2, characterized in that The performing different response processing according to different events also includes: The identified message conforming to the specific protocol is sent to the CPU, so that the CPU performs management of the private ring network according to the content of the message.
7. A compatible ring network device, characterized in that: The compatible ring network device is connected to the private ring network to be networked as a slave station, and the compatible ring network device includes: A template configuration module, used to construct and configure protocol processing templates according to different redundant ring protocols; A message identification module, used for receiving a message from the private ring network, and identifying a redundant ring protocol type of the message according to the protocol processing template; A message processing module, used to process the message according to the identified redundant ring protocol type using the protocol processing template and encapsulate it into a ring protocol message in the private ring network; The message transparent transmission module is used to transparently transmit the encapsulated ring protocol message to the private ring network to realize the networking of compatible ring network devices in the private ring network.
8. A computing device, characterized in that include: processor; A memory for storing one or more programs; When the one or more programs are executed by the processor, the processor implements a master-station type hybrid private protocol networking method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a computer, a master station type hybrid private protocol networking method as described in any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Single-core self-healing type looped network networking method and system
CN120675836A