Multi-terminal communication method and system, switch and storage medium
By using proxy switches and bridge switch ring networks in multi-terminal communication systems for frame replication and de-loop of data flow, the problems of interruptions and insufficient utilization of redundant links caused by network topology changes in the prior art are solved, and multiple implementations are achieved. Terminal intercommunication and high-reliability communication.
Patent Information
- Application Number
- CN202411206140.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-11-05
AI Technical Summary
In the prior art, multi-terminal ring network redundant protocols such as STP, RSTP and MSTP need to recalculate the spanning tree when the network topology changes, resulting in a short network interruption, a long convergence time, unable to meet the real-time requirements, and unable to make full use of redundancy. Remaining links, configuration and maintenance are complex.
Using a multi-terminal communication system, the data flow frame replication and de-loop is realized through proxy switches and bridge switch ring networks, ensuring that data is transmitted along different transmission routes in bridge switch ring networks, and de-looping is de-looped at the de-loop location to avoid network storms and realize Multi-terminal interoperability.
High reliability and zero packet loss communication between multiple terminals are realized, multi-terminal interoperability problems that cannot be achieved in the prior art, and improve the network's fault resistance and real-time performance.
Smart Images

Figure CN118900218A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a multi-terminal communication method, system, switch and storage medium. Background Art
[0002] In the prior art, multi-terminal ring network redundancy usually adopts the spanning tree protocol (STP) or its enhanced versions (such as RSTP, MSTP) to prevent loops. These protocols form a loop-free network by blocking redundant paths to ensure that data frames will not circulate infinitely in the network.
[0003] However, this method in the prior art has the following disadvantages:
[0004] Spanning Tree Protocol (STP): When the network topology changes, the spanning tree needs to be recalculated, which will cause a brief network interruption. In addition, STP has a long convergence time and is not suitable for applications with high real-time requirements.
[0005] Rapid Spanning Tree Protocol (RSTP): Compared with STP, RSTP improves the convergence speed, but it still needs to block redundant paths and cannot fully utilize redundant links.
[0006] Multiple Spanning Tree Protocol (MSTP): allows multiple spanning tree instances to run on different VLANs, but increases complexity and makes configuration and maintenance more cumbersome. Summary of the invention
[0007] In view of this, embodiments of the present application provide a multi-terminal communication method, system, switch, and storage medium, which can enable multi-terminals to communicate with each other.
[0008] In a first aspect, an embodiment of the present application provides a multi-terminal communication system, comprising: a plurality of terminal servers, a plurality of proxy switches correspondingly connected to each of the terminal servers, and at least one bridge switch ring network located between each of the proxy switches, wherein the bridge switch ring network is formed by each of the plurality of bridge switches;
[0009] The proxy switch is used to perform frame replication on the first data stream sent by the connected terminal server to generate two identical second data streams;
[0010] The bridge switch ring network is used to transmit the two second data streams along different preset transmission lines in the switch ring network after receiving the two identical second data streams;
[0011] The bridge switch ring network is further used for de-ringing the received second data stream when the second data stream is transmitted along the preset transmission line to the last bridge switch corresponding to the preset transmission line;
[0012] The proxy switch is also used to identify and process the second data flow transmitted by the bridge switch ring network, and then transmit it to the connected terminal server.
[0013] In some embodiments, if the system includes a bridge switch ring network, the number of bridge switches in the bridge switch ring network is greater than or equal to the number of proxy switches;
[0014] Each of the proxy switches is connected to one of the bridge switches in the bridge switch ring network.
[0015] In some embodiments, if the system includes at least two bridge switch rings, adjacent bridge switch rings are connected through one of the bridge switches in each bridge switch ring; the number of bridge switches in the system is greater than the number of proxy switches; and each proxy switch is connected to one of the bridge switches in the bridge switch ring.
[0016] In a second aspect, an embodiment of the present application provides a multi-terminal communication method, which is applied to a multi-terminal communication system, and the method includes:
[0017] Receive a second data stream transmitted by the connected proxy switch, and according to the bridge switch ring network configuration information, transmit the second data stream in the bridge switch ring network according to two different transmission routes of the data stream in the bridge switch ring network configuration information; wherein the second data stream is a data stream generated after the terminal server transmits the first data stream to the connected proxy switch, and the corresponding proxy switch processes the first data stream according to the proxy switch instance configuration information;
[0018] When the second data stream is currently transmitted along the corresponding transmission route to the de-ring position configured in the bridge switch ring network configuration information, the corresponding second data stream is de-ringed; wherein the de-ring position is the last bridge switch of the corresponding transmission route of the current second data stream transmission;
[0019] Among them, when the second data stream is transmitted in the bridge switch ring network, if it is transmitted to the bridge switch connected to one of the proxy switches, the second data stream is transmitted to the current proxy switch, and after being processed by the current proxy switch, it is transmitted to the terminal server connected to the current proxy switch.
[0020] In some embodiments, the proxy switch instance configuration information includes a first flow instance and a first frer instance;
[0021] Each of the first stream instances is bound to one of the first frer instances;
[0022] The number of the first flow instances is the same as the number of the terminal servers;
[0023] The first flow instance of the proxy switch includes a first flow identifier, a first input port and / or a first vlan_id;
[0024] The first frer instance includes a first frer identifier, a first instance mode, a first ingress flow, a first egress port, a first frer_vlan and / or a first data flow identifier mode;
[0025] Among them, the first instance mode includes a recovery instance mode and a generation instance mode; the first data flow identification mode includes an elimination data flow identification and a retention data flow identification.
[0026] In some embodiments, the bridge switch ring network configuration information includes bridge switch instance configuration information and transmission route configuration information;
[0027] The bridge switch instance configuration information includes a second flow instance and a second fred instance; wherein each of the second flow instances is bound to a second fred instance;
[0028] The second flow instance includes a second flow identifier, a second input port and / or a second vlan_id;
[0029] The second frer instance includes a second frer identifier, a second instance mode, a second ingress flow, a second egress port, a second frer_vlan and / or a second data flow identifier mode;
[0030] The second instance mode includes a restore instance mode and a generate instance mode; the second data flow identification mode includes a eliminate data flow identification and a retain data flow identification;
[0031] The transmission route configuration information is used to indicate the de-ring position of the transmission route of the second data stream in the bridge switch ring network.
[0032] In some embodiments, the receiving of the second data stream connected to the proxy switch and, according to the bridge switch ring network configuration information, causing the second data stream to be transmitted in the bridge switch ring network according to two different transmission routes of the data stream in the bridge switch ring network configuration information, comprises:
[0033] Determine the second flow identifier according to the second input port of the second data flow sent by the connected proxy switch;
[0034] Determine the second stream identifier according to the current second stream identifier;
[0035] After processing the received second data stream according to the configuration information of the current second fred instance according to the second fred instance corresponding to the current second fred identifier, the corresponding second data stream is output from the two output ports corresponding to the current bridge switch;
[0036] The second data flow is a data flow generated after the terminal server transmits the first data flow to the connected proxy switch and the proxy switch processes the first data flow according to the configured corresponding first flow instance and first frer instance.
[0037] In some embodiments, it also includes: when the second data stream is output from the output port corresponding to the current bridge switch, the second data stream is marked accordingly according to the second Frer_vlan and / or the second data stream identification mode in the current second frer instance, so as to correspond to the identification and processing of the second data stream by the corresponding proxy switch.
[0038] In a third aspect, an embodiment of the present application provides a switch, the switch comprising a processor and a memory, the memory storing a computer program, and the processor being configured to execute the computer program to implement the above-mentioned multi-terminal communication method.
[0039] In a third aspect, an embodiment of the present application provides a readable storage medium storing a computer program, which, when executed on a processor, implements the above-mentioned multi-terminal communication method.
[0040] The embodiments of the present application have the following beneficial effects: the present application enables each terminal server to be connected to an agent switch, and the agent switch is connected to at least one bridge switch ring network, wherein it is necessary to ensure that each agent switch is connected to a bridge switch in the bridge switch ring network, and different agent switches are connected to different bridge switches. In this way, when one of the terminal servers needs to synchronize information to the remaining terminal servers, the data stream is first transmitted to the connected agent switch, and the data stream is frame-copied in the agent switch and then transmitted to the connected bridge switch. After the bridge switch receives the data stream, according to the bridge switch ring network configuration information, the data stream is transmitted in the bridge switch ring network according to two different transmission routes of the data stream in the bridge switch instance configuration information. Since the bridge switch ring network is annular, it can ensure that the data streams transmitted from different directions can reach each bridge switch in the bridge switch ring network, and then be transmitted to the corresponding terminal server through the connected agent switch, so as to realize mutual communication between multiple terminal servers. Furthermore, the present application configures a de-ring position for each data stream transmission route, and the de-ring position is at the bridge switch of the last hop before the data stream forms a ring, that is, after the data stream reaches the de-ring position, it will no longer be transmitted to the next bridge switch, thereby avoiding the problem of network storm in the bridge switch ring network. Furthermore, it can solve the problem that the 802.1CB protocol in the prior art cannot realize multi-terminal intercommunication. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] 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.
[0042] Figure 1 A first structural schematic diagram of a multi-terminal communication system according to an embodiment of the present application is shown;
[0043] Figure 2 A second structural schematic diagram of a multi-terminal communication system according to an embodiment of the present application is shown;
[0044] Figure 3 A third structural schematic diagram of a multi-terminal communication system according to an embodiment of the present application is shown;
[0045] Figure 4 A fourth structural schematic diagram of a multi-terminal communication system according to an embodiment of the present application is shown;
[0046] Figure 5 A fifth structural schematic diagram of a multi-terminal communication system according to an embodiment of the present application is shown;
[0047] Figure 6 A first flow chart of the multi-terminal communication method according to an embodiment of the present application is shown;
[0048] Figure 7 A second flow chart of the multi-terminal communication method according to an embodiment of the present application is shown;
[0049] Figure 8 A third flow chart of the multi-terminal communication method according to an embodiment of the present application is shown;
[0050] Fig. 9 A structural schematic diagram of a multi-terminal communication device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] At present, in some complex application scenarios such as coal mines, rail transit and other fields, it is crucial to ensure the reliability and real-time performance of data transmission. This requires the network to have high reliability and fault resistance, especially in a ring network structure, where the failure of any node or link should not cause communication interruption of the entire network. The present application proposes a multi-terminal communication method, system, switch and storage medium based on the 802.1CB protocol, which realizes the intercommunication of multiple terminals by rationally planning the transmission route of the data stream and performing de-ringing at the appropriate location.
[0057] Example 1
[0058] The multi-terminal communication system of the present application is first described below in conjunction with some specific embodiments.
[0059] Figure 1 A schematic diagram of the structure of a multi-terminal communication system of an embodiment of the present application is shown. Exemplarily, the multi-terminal communication system includes: multiple terminal servers, multiple proxy switches corresponding to each terminal server, and at least one bridge switch ring network located between each proxy switch, wherein the bridge switch ring network is formed by each of the multiple bridge switches.
[0060] The embodiment of the present application is used to achieve high-reliability, zero-packet-loss communication between multiple terminals, that is, after the server of any terminal among the multiple terminals sends data, the remaining terminal servers can all receive the data sent by the terminal server.
[0061] The bridge switch ring network is composed of multiple bridge switches. If the multi-terminal communication system only includes one bridge switch ring network, the number of bridge switches in the bridge switch ring network in this system structure is greater than or equal to the number of proxy switches, and each proxy switch is connected to one bridge switch.
[0062] In a preferred implementation, the number of terminal servers in a multi-terminal communication system is equal to the number of proxy switches and equal to the number of bridge switches in a bridge switch ring network, which can ensure reliable transmission of data between multiple terminals without causing network redundancy.
[0063] like Figure 2 As shown, the multi-terminal communication system includes 4 terminal servers, 4 proxy switches, and a bridge switch ring network. Each bridge switch ring network includes 4 bridge switches, and each bridge switch is connected to a proxy switch. Similarly, if the terminal communication system includes 3 terminal servers, the number of proxy switches and the number of bridge switches are both 3 (such as Figure 3 As shown); if the terminal communication system includes 5 terminal servers, the number of proxy switches and the number of bridge switches are both 5 (not shown in the figure); it can be understood that if there are more terminal servers, the connection structure of the multi-terminal communication system is the same as above, and examples are not given one by one here.
[0064] In some implementations, the number of bridge switches in the bridge switch ring network may be greater than the number of terminal servers, such as Figure 4 As shown, the multi-terminal communication system includes 4 terminal servers, 4 proxy switches, and a bridge switch ring network. Each bridge switch ring network includes 5 bridge switches. It is sufficient to ensure that each proxy switch is connected to a bridge switch in the bridge switch ring network, and different proxy switches are connected to different bridge switches. It can be understood that Figure 4 The number of bridge switches in the bridge switch ring network shown in the figure can also be 6, 7 or more. However, for the efficiency and bandwidth of network transmission, the number of bridge switches is usually equal to the number of proxy switches (terminal servers). However, if the number of bridge switches in the bridge switch ring network is increased, the purpose of multi-terminal communication in this embodiment can also be met.
[0065] If the multi-terminal communication system includes at least two bridge switch ring networks, adjacent bridge switch ring networks are connected through one of the bridge switches in each bridge switch ring network; the number of bridge switches in all bridge switch ring networks is greater than or equal to the number of proxy switches. It can be understood that when multiple bridge switch ring networks are included, the bridge switch ring networks are connected in series, such as Figure 5 As shown, the multi-terminal communication system includes four terminal servers, each terminal server is connected to a proxy switch, and the system includes two connected bridge switch ring networks, each bridge switch ring network includes 4 bridge switches.
[0066] It should be noted that when a multi-terminal communication system includes multiple bridge switch ring networks, each bridge switch can also be connected to a proxy switch. Figure 5 The multi-terminal communication system shown in can realize mutual communication between 8 terminals.
[0067] In this embodiment, the proxy switch is used to perform frame replication on the first data stream connected to the terminal server to generate two identical second data streams.
[0068] The bridge switch ring network is used to receive two identical second data streams and transmit the two second data streams along different preset links of the switch ring network.
[0069] The bridge switch ring network is also used to de-ring the corresponding second data stream when the second data stream is transmitted along the preset link to the last bridge switch corresponding to the preset link.
[0070] The proxy switch is also used to identify and process the second data stream received through the bridge switch ring network and transmit it to the connected terminal server.
[0071] It can be understood that in this embodiment, the proxy switch is responsible for frame replication of the data of the connected terminal servers, and adopts flow identification technology to identify different terminal server traffic data packets by identifying the unique vlan_id of other terminal servers except the connected terminal server, and performs flow frame elimination on the data transmitted from other terminal servers except the connected terminal server through the bridge switch ring network.
[0072] Example 2
[0073] The multi-terminal communication method of this embodiment is applied to the multi-terminal communication system in Embodiment 1.
[0074] like Figure 6 As shown, the multi-terminal communication method includes:
[0075] Step S100, receiving a second data stream transmitted by a connected proxy switch, and transmitting the second data stream in the bridge switch ring network according to two different transmission routes of the data stream in the bridge switch ring network configuration information according to the bridge switch ring network configuration information.
[0076] Step S200, when the current second data stream is transmitted along the corresponding transmission route to the de-ring position configured in the bridge switch ring network configuration information, the corresponding second data stream is de-ringed; wherein, when the second data stream reaches the bridge switch corresponding to the de-ring position.
[0077] When implementing it, Figure 7 As shown, in step S300, the terminal server transmits a first data stream to the connected proxy switch.
[0078] In this step, during the communication process of each terminal, if one of the terminal servers needs to synchronize data with the other terminal servers, the first data stream is first transmitted to the proxy switch connected to the currently sending first data stream.
[0079] Step S400: The proxy switch receives a first data stream, processes the first data stream according to the proxy switch instance configuration information, and then transmits the first data stream to the connected bridge switch.
[0080] Among them, the proxy switch instance configuration information is pre-configured, including a first stream instance (Stream instance) and a first frer instance; wherein each first stream instance is bound to a first frer instance, that is, one first frer instance corresponds to one first stream instance; the number of first stream instances of the proxy switch is the same as the number of terminal servers.
[0081] The first stream instance includes a first stream identifier (Stream_id), a first input port and / or a first vlan_id.
[0082] The function of the first flow instance is mainly to achieve the effect of distinguishing different data flows in the tag topology network by matching the traffic characteristics of the terminal data flow; wherein the first flow identifier is the id of the first flow instance, which is used to distinguish other first flow instances; the first input port specifies the data flow entering the specific port to match, and this parameter is a parameter that must be configured for the first flow instance; the first vlan_id specifies the vlan_id carried by the matching traffic data frame. If not configured, it means that no filtering is performed based on the vlan_id.
[0083] The first fred instance includes a first fred identifier (frer_id), a first instance mode (Mode), a first ingress flow, a first output port, a first fred_vlan and / or a first data flow identification mode; wherein the first fred identifier is the id of the first fred instance, used to distinguish other first fred instances; the first instance mode includes a recovery instance mode and a generation instance mode; the first ingress flow is used to bind the id of the first flow instance entering the first fred instance processing flow; the first output port is used to indicate the output port of the data flow; the first fred_vlan specifies the vlan that the data flow carries after being transmitted from the proxy switch id, this vlan_id is added by the proxy switch; the first data flow identification mode includes eliminating the data flow identification and retaining the data flow identification, which can be represented by true and false. If the first data flow identification mode is true, it indicates that the data flow identification (r-tag) in the data flow is eliminated, that is, the outgoing data flow no longer has the r-tag; if the first data flow identification mode is false, it indicates that the data flow identification (r-tag) in the data flow is not eliminated, that is, the outgoing data flow still has the r-tag; usually, the first data flow identification mode is configured only when the first instance mode is the recovery instance mode.
[0084] Generate instance mode (frame replication mode), which is mainly responsible for replicating the data stream (frame) entering the proxy switch and adding a unique identifier r-tag to each replica data stream. This ensures that in the event of any packet loss that may occur in the transmission network, the receiving end can recover the original data by receiving multiple copies.
[0085] Recovery instance mode (frame elimination mode) is responsible for receiving multiple data stream copies (frame copies) and eliminating redundant data streams by identifying the r-tags of these copies to ensure that only one copy of the data is retained. This copy of the data can choose whether to retain the r-tag through the configured first data stream identification mode parameter.
[0086] The data stream tag (r-tag) is a unique identifier attached to each data stream copy by generating an instance module, which is used to distinguish and identify different copies.
[0087] Step S400: The proxy switch receives a first data stream, processes the first data stream according to the proxy switch instance configuration information, generates a second data stream, and transmits the second data stream to the connected bridge switch.
[0088] Among them, in step S400, Figure 2 Taking the system shown as an example, since the first data stream received by the proxy switch 1 is input from port 1, it complies with the first Frer_4 instance. Therefore, after the proxy switch 1 receives the data transmitted from port 1 by the terminal server 1, CB redundancy backup will be performed on output port 3 and output port 4 through the generation instance mode of the first Frer_4 instance, and then the second data stream with r-tag and vlan101 will be output through output port 3 and output port 4.
[0089] After the proxy switch inputs the second data flow to the connected bridge switch in step S400 , step S100 is performed.
[0090] In step S100, after receiving the second data stream, the bridge switch connected to the proxy switch transmits the second data stream in the bridge switch ring network according to the transmission direction of the data stream in the bridge switch ring network configuration information.
[0091] Wherein, the bridge switch ring network configuration information is pre-configured, including bridge switch instance configuration information and transmission route configuration information;
[0092] The bridge switch instance configuration information includes a second flow instance and a second frer instance; wherein each second flow instance is bound to a second frer instance, that is, one second frer instance corresponds to one second flow instance; the number of second flow instances of the bridge switch is determined according to the number of data flows passing through the bridge switch.
[0093] The second flow instance includes a second flow identifier, a second input port and / or a second vlan_id.
[0094] The function of the second flow instance is mainly to achieve the effect of distinguishing different data flows in the tag topology network by matching the traffic characteristics of the terminal data flow; wherein, the second flow identifier is the id of the second flow instance, which is used to distinguish other second flow instances; the second input port specifies the data flow entering the matching specific port, and this parameter is a parameter that must be configured for the second flow instance; the second vlan_id specifies the vlan_id carried by the matching traffic data frame. If not configured, it means that no filtering is performed based on the vlan_id.
[0095] The second Frer instance includes a second Frer identifier, a second instance mode, a second ingress flow, a second output port, a second Frer_vlan and / or a second data flow identification mode; wherein the second Frer identifier is the ID of the second Frer instance, which is used to distinguish other second Frer instances; the second instance mode includes a recovery instance mode and a generation instance mode; the second ingress flow is used to bind the ID of the second flow instance entering the second Frer instance processing flow; the second output port is used to indicate the output port of the data flow; the second Frer_vlan indicates the vlanid of the bridge switch for the data flow transmitted from the connected proxy switch; the second data flow identification mode includes eliminating the data flow identifier and retaining the data flow identifier, which can be represented by true and false. If the second data flow identification mode is true, it indicates that the data flow identifier (r-tag) in the data flow is eliminated, that is, the outgoing data flow no longer has the r-tag. If the second data flow identification mode is false, it indicates that the data flow identifier (r-tag) in the data flow is not eliminated, that is, the outgoing data flow still has the r-tag; usually, the second data flow identification mode is only configured when the second instance mode is the recovery instance mode.
[0096] Transmission route configuration information is used for the transmission route of the second data stream in the bridge switch ring network, and the de-ring position. If the multi-terminal communication system includes only one bridge switch ring network, the transmission route of the second data stream received by the bridge switch connected to the proxy switch includes two, and the directions are different. Each transmission route includes a de-ring position. In this case, the de-ring position is at the last bridge switch in the transmission route. If the multi-terminal communication system includes multiple bridge switch ring networks, after the bridge switch connected to the proxy switch receives the second data stream, the second data stream is transmitted in two different directions through the current bridge switch, that is, two different transmission routes; if the second data stream is transmitted on one of the transmission routes, when it is transmitted to the bridge switch connected to the two bridge switch ring networks, the second data stream is divided into two routes again, one of which is still in the current bridge switch ring network, and the other extends to the next switch ring network.
[0097] In some embodiments, Figure 8 As shown, step S100 includes:
[0098] Step S110: determining a second flow identifier according to a second input port of a second data flow received from a connected proxy switch.
[0099] In this step, if the second data stream received by the bridge switch is directly transmitted from the connected proxy switch, the id of the second stream instance can be determined only according to the second input port receiving the second data stream.
[0100] During transmission of the second data stream in the bridge switch ring network, if the second data stream received by the bridge switch is transmitted from another connected bridge switch, the id of the second stream instance is determined according to the second input port receiving the second data stream and the second vlan_id carried by the second data stream.
[0101] Step S120, determining a second stream identifier according to the current second stream identifier.
[0102] In this step, since a second flow instance is bound to a second frer instance, the second frer instance can be determined after the second flow instance is determined in step S110.
[0103] Step S130, after processing the received second data stream according to the configuration information of the current second frer instance corresponding to the current second frer identifier, the corresponding second data stream is output from the two output ports corresponding to the current bridge switch.
[0104] In step S130, after determining the second fred identifier of the second fred instance of the current bridge switch, the received second data stream is processed according to the second fred instance corresponding to the second fred identifier. When processing the current second data stream according to the corresponding second fred instance, it is necessary to determine whether it is a recovery instance mode or a generation instance mode according to the second instance mode of the second fred instance. If it is the recovery instance mode, the second data stream is subjected to frame elimination processing, and if it is the generation instance mode, the second data stream is subjected to frame replication processing; in addition, if it is the recovery instance mode, it is also necessary to determine the second data stream identification mode corresponding to the second fred instance. If the second data stream identification mode is true, the r-tag in the second data stream is eliminated, and if the second data stream identification mode is false, the r-tag in the second data stream is not eliminated; in addition, if the second data stream is transmitted from the connected proxy switch, it is also necessary to modify the vlan_id in the second data stream to the vlan_id corresponding to the second Fred_vlan of the current second fred instance. If the second data stream is transmitted from the connected bridge switch, it is not necessary to modify the vlan_id in the second data stream. After the second data stream is processed, the second data stream is output from two different output ports corresponding to the second frer instance configuration.
[0105] In step S100, when the second data stream is transmitted in the bridge switch ring network according to the transmission direction of the data stream in the bridge switch ring network configuration information, step S200 is specifically that, since the bridge switch ring network configuration information configures the transmission route of the second data stream, the second data stream transmits data according to the configured different transmission routes until it reaches the last bridge switch of each transmission route, and then de-ring is performed at the last bridge switch. Figure 2 In the multi-terminal communication system shown in , the transmission route of the second data stream transmitted from the proxy switch 1 to the bridge switch 1 includes transmission route 1 (bridge switch 1—bridge switch 2—bridge switch 4—bridge switch 3) and transmission route 2 (bridge switch 1—bridge switch 3—bridge switch 4—bridge switch 2). The two transmission routes are in opposite directions. The second data stream transmitted through transmission route 1 is de-ringed at bridge switch 3, and the second data stream transmitted through transmission route 2 is de-ringed at bridge switch 2. It can be seen that each transmission route must ensure coverage of each bridge switch in the bridge switch ring network, so that the data stream transmitted from one terminal server can be transmitted twice to the proxy switch connected to the remaining terminal servers, and then the data stream is transmitted to the remaining terminal servers. In this way, even if one transmission route fails, it can be guaranteed that the data stream can be normally transmitted to the remaining terminal servers, thereby ensuring the reliability of data stream transmission.
[0106] In this embodiment, de-ringing means that the second data stream is no longer transmitted (forwarded) in the bridge switch ring network. The second data stream that has not reached the de-ringing position continues to be forwarded to the downstream adjacent bridge switch according to the transmission route. During the transmission of the second data stream in the bridge switch ring network, regardless of whether it is de-ringed or not, the r-tag is not eliminated, and the frer_vlan carried when forwarded from the first bridge switch is not changed.
[0107] During the transmission of the second data stream in the bridge switch ring network according to the transmission route, if it is transmitted to the bridge switch connected to the proxy switch, according to the flow matching principle (i.e., according to the instance configuration information of each bridge switch), after the second data stream is transmitted to the corresponding connected proxy switch according to the configuration information requirements, step S500 is executed to process the received second data stream according to the corresponding proxy switch instance configuration information and then transmit it to the connected terminal server.
[0108] The following is a description of the multi-terminal communication method in the present application in conjunction with a specific embodiment. In the description, there are two cases. The first case is a case where there is only one bridge switch ring network in the multi-terminal communication system to which the multi-terminal communication method is applied (i.e., applied to Figure 2 , Figure 3 , Figure 4The second is the case where there are at least two bridge switch ring networks in the multi-terminal communication system where the multi-terminal communication method is applied (i.e., applied to Figure 5 situation).
[0109] When describing the situation of a multi-terminal communication system with only one bridge switch ring network, Figure 2 Take the multi-terminal communication system shown in as an example.
[0110] like Figure 2 As shown, the multi-terminal communication system includes four terminal servers (terminal server 1, terminal server 2, terminal server 3 and terminal server 4), and there are four proxy switches connected to each terminal server, namely proxy switch 1, proxy switch 2, proxy switch 3 and proxy switch 4, and there are four bridge switches, namely bridge switch 1, bridge switch 2, bridge switch 3 and bridge switch 4. These four bridge switches constitute a bridge switch ring network.
[0111] When the multi-terminal communication system is used for data transmission, it is first necessary to configure the proxy switch instance configuration information of each proxy switch, the bridge switch instance configuration information of each bridge switch, and the transmission route configuration information.
[0112] The first data stream of each terminal server will be replicated through the connected proxy switch and forwarded through the bridge switch. The following takes proxy switch 1 and bridge switch 1 as examples.
[0113] The instance configuration information of the proxy switch 1 includes 4 first-stream instances, 4 first frer instances (3 frer recovery instances, 1 frer generation instance), as follows:
[0114] First Stream_1: The first input port matched is 3, 4; the first vlan_id is 20;
[0115] First Stream_2: The first input port matched is 3, 4; the first vlan_id is 30;
[0116] First Stream_3: The first input port that matches is 3 and 4; the first vlan_id is 40;
[0117] First Stream_4: the data stream of the matching input port 1;
[0118] First Frer_1: The first instance mode selects the recovery instance mode, the first inlet stream selects the first Stream_1, the first output port is 1, the first frer_vlan is 100, and the first data stream identification mode is true.
[0119] First Frer_2: The first instance mode selects the recovery instance mode, the first inlet stream selects Stream_2, the first output port is 1, the first frer_vlan is 100, and the first data stream identification mode is true.
[0120] First Frer_3: The first instance mode selects the recovery instance mode, the first inlet stream selects Stream_3, the first output port is 1, the first frer_vlan is 100, and the first data stream identification mode is true.
[0121] First Frer_4: The first instance mode selects the generate instance mode, the first inlet stream selects Stream_4, the first output port is 3, 4, and the first frer_vlan is 101.
[0122] Taking the first Frer_1 as an example, the first Frer instance is described. Its first inlet flow selects the first Stream_1, indicating that it is bound to the first Stream_1 and receives data streams from the input ports 3 and 4; its first instance mode selects the recovery instance mode, indicating that after the proxy switch receives the data streams input from ports 3 and 4, the data streams with the same first data stream identifier are eliminated and only one is retained; its first output port is 1, indicating that the data stream is output through port 1; its first frer_vlan is 100, indicating that the frer_vlan of the data stream output by the first Frer instance is 100. The rest of the first Frer_2 and the first Frer_3 are the same as the first Frer_1, and will not be repeated here.
[0123] The first inlet stream in the first Frer_4 selects Stream_4, indicating that it is bound to the first Stream_4, and it receives the data stream from the input end of port 1; the first instance mode selects the generate instance mode, indicating that after the proxy switch receives the data stream input from port 1, the received data stream is copied and a unique identifier r-tag is added to each copy data stream; its first output port is 3, 4, indicating that the data stream input from port 1 is output from ports 3 and 4 respectively after being copied. Since the first frer_vlan is 101, the frer_vlan of the data stream output from ports 3 and 4 is 101.
[0124] Similarly, proxy switch 2, proxy switch 3 and proxy switch 4 will also perform instance configuration, and the specific instance configuration information will not be repeated here.
[0125] When the proxy switch 1 receives the first data stream of the terminal server, it copies and backs it up in the proxy switch according to the generation instance mode of the first Frer_4 instance, and attaches r-tag to the two generated first data streams, that is, two identical second data streams are generated in the proxy switch according to the received first data stream of the terminal server, and both of the two second data streams carry r-tag and vlan 101, and the two identical second data streams are transmitted to the connected bridge switch through ports 3 and 4 of the proxy switch.
[0126] The instance configuration information of bridge switch 1 includes 7 second flow instances and 7 second frer instances, as follows:
[0127] Second Stream_1: The second matching input ports are 3 and 4.
[0128] Second Stream_2: The data stream whose matching second input port is 1 and whose second vlan_id is 20.
[0129] Second Stream_3: The data stream whose matching second input port is 1 and whose second vlan_id is 30.
[0130] Second Stream_4: The matched second input port is 1; the data stream whose second vlan_id is 40.
[0131] Second Stream_5: The data stream whose matching second input port is 2 and whose second vlan_id is 20.
[0132] Second Stream_6: The data stream whose matching second input port is 2 and whose second vlan_id is 30.
[0133] Second Stream_7: The data stream whose matching second input port is 2 and whose second vlan_id is 40.
[0134] Second Frer_1: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_1, the outgoing ports are 1 and 2, the second frer_vlan is 10, and the second data stream identification mode is false.
[0135] Second Frer_2: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_2, the second output ports are 2 and 3, the second frer_vlan is 20, and the second data stream identification mode is false.
[0136] Second Frer_3: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_3, the second output port is 3, the second frer_vlan is 30, and the second data stream identification mode is false.
[0137] Second Frer_4: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_4, the second output ports are 2 and 3, the second frer_vlan is 40, and the second data stream identification mode is false.
[0138] Second Frer_5: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_5, the second output port is 4, the second frer_vlan is 20, and the second data stream identification mode is false.
[0139] Second Frer_6: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_6, the second output port is 1, 4, the second frer_vlan is 30, and the second data stream identification mode is false.
[0140] Second Frer_7: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_7, the second output ports are 1 and 4, the second frer_vlan is 40, and the second data stream identification mode is false.
[0141] Similarly, bridge switch 2, bridge switch 3 and bridge switch 4 will also perform instance configuration, and the specific instance configuration information will not be repeated here.
[0142] For bridge switch 1, when ports 3 and 4 of bridge switch 1 receive the second data stream of proxy switch 1, they will recover the instance (second frer_1) through frer, forward the second data stream without eliminating the r-tag, and change the original frer_vlan 101 to the identifier frer_vlan:10 of bridge switch 1 in the bridge switch ring network, and transmit it to the bridge switch ring network through ports 1 and 2. Subsequently, the two redundant data coming out of ports 1 and 2 are transmitted along different transmission lines (the first transmission line is the "bridge switch 1-bridge switch 2-bridge switch 4--bridge switch 3" line shown by the black line (arrow) in the figure, and the second transmission circuit is the "bridge switch 1-bridge switch 3---bridge switch 4-bridge switch 2" line shown by the light gray line (arrow), and finally the data of terminal server 1 is transmitted to other terminal servers.
[0143] Each bridge switch must add its own unique VLAN to the data stream transmitted by its proxy switch, which is also the matching condition for other bridge switches to identify the flow. In this topology bridge switch ring network, frer_vlan is allocated to bridge switches 1, 2, 3, and 4 as 10, 20, 30, and 4 respectively.
[0144] In order to prevent the data flow from causing a network storm in the bridge switch ring network, it is necessary to de-loop the second data flow transmitted from ports 1 and 2 of the bridge switch 1. In the embodiment of the present application, the second data flow of the bridge switch is de-looped by the previous hop adjacent bridge switch when the second data flow is looped. Since the two redundant data flows transmitted from ports 1 and 2 of the bridge switch 1 are two data flows with R-TAG and vlan10 that are exactly the same, the first transmission route is from bridge switch 1—bridge switch 2—bridge switch 4—bridge switch 3, and then de-looped, and the second transmission route is from bridge switch 1—bridge switch 3—bridge switch 4—bridge switch 2, and then de-looped. The data of the first transmission route is de-looped at bridge switch 3, and the data of the second transmission route is de-looped at bridge switch 2.
[0145] Since the terminal server device needs to communicate with each other terminal server, taking terminal server 1 as an example, if the second data stream of the first transmission route is transmitted to bridge switch 2 for direct de-ringing, and the second data stream of the second transmission route is transmitted to bridge switch 3 for direct de-ringing, then only terminal servers 2 and 3 can communicate with each other, and the data stream cannot reach terminal server 4, and communication with terminal server 4 cannot be achieved. In this way, the second data stream on each transmission line is de-ringed at the last bridge switch of the transmission line, so that the second data stream on each transmission line can reach each terminal server.
[0146] Taking bridge switch 1 as an example, in this topology, there are two types of data flows that need to be de-looped at bridge switch 1. The first type is the transmission route of bridge switch 2-bridge switch 4-bridge switch 3-bridge switch 1 (i.e., data flows transmitted from terminal server 2); the second type is the transmission route of bridge switch 3-bridge switch 4-bridge switch 2--bridge switch 1 (i.e., data transmitted from terminal server 3). The rest of the data flows passing through bridge switch 1 do not need to be de-looped.
[0147] The first transmission route is a redundant data sent by terminal server 2, which carries vlan 20 and r-tag in the bridge switch ring network, enters bridge switch 1 from port 2 of bridge switch 1, and the second Stream_5 instance created in bridge switch 1 matches this data flow; the second transmission route is a redundant data sent by terminal server 3, which carries vlan 30 and r-tag in the bridge switch ring network, enters bridge switch 1 from port 1 of bridge switch 1, and the second Stream_3 instance created in bridge switch 1 matches this data flow.
[0148] It should be noted that, for the bridge switch and the proxy switch, because the flow matching rules of the bridge switch are divided into ports and vlan_ids, if the data flow of port 1 is forwarded to ports 3 and 4, and the message of port 2 is also forwarded to ports 3 and 4, the data flow in the network will be doubled again, causing bandwidth occupation problems. Therefore, this application adopts a one-to-one port correspondence method, that is, when the bridge switch transmits the data flow to the proxy switch, regardless of whether the de-ring operation is required, the message of port 1 is only forwarded to port 3, and the message of port 2 is only forwarded to port 4, thereby ensuring that the proxy switch has only two redundant data that can be recovered. Therefore, the corresponding second frer instance is: the second frer_5 is bound to the second stream_5, because the inbound port of the second stream_5 is 2, and the above description states that "the message of port 1 is only forwarded to port 3, and the message of port 2 is only forwarded to port 4", then the outbound port of the second frer_5 is 4, and port 2 is no longer configured, that is, it is no longer forwarded to the bridge switch ring network. Similarly, the second frer_3 is bound to the second stream_3, because the inbound port of the second stream_3 is 1, and the outbound port of the second frer_3 is 3. For the remaining data streams that do not require de-ringing operations, after matching, they can be configured according to "port 1 is forwarded to port 2 and port 3; port 2 is forwarded to port 1 and port 4".
[0149] In addition, because the second data flow has two directions in the bridge switch ring network, the position of the de-ring is also different. Therefore, the processing mechanism of each bridge switch for different VLAN data flows entering different ports is different. Therefore, there are 7 flow matching rules for the bridge switch in this topology. Taking bridge switch 1 as an example, 1 is to match the terminal data flow of port 3 and port 4, 3 are to match the data flow of port 1 with vid 20, 30, and 40, and 3 are to match the data flow of port 2 with vid 20, 30, and 40. Similarly, for each flow matching rule, there is a frer instance corresponding to it, and the de-ring is performed according to the above listing. When there are n terminals communicating with each other, each bridge switch has 1+2*(n-1) flow matching rules and the second frer instance.
[0150] The data streams received by ports 3 and 4 of proxy switch 1 are data streams sent by other terminal servers (terminal server 2, terminal server 3, and terminal server 4). The data streams sent by each terminal server are two identical data streams. After proxy server 1 receives two identical data streams, it eliminates one by restoring the instance, and then only one remains to be transmitted to terminal server 1 through port 1; it can determine whether it is the same data stream based on r-tag and / or frer_vlan in the received data stream.
[0151] In addition, each port of the bridge switch and the proxy switch in the embodiment of the present application is configured with a QBV, so that if an interference flow occurs during the data flow transmission process, the reliability of the data flow communication with a high priority can be guaranteed.
[0152] The embodiment of the present application uses the above-mentioned multi-terminal communication system and method to enable the data stream sent from the terminal server to be transmitted to each of the remaining terminal servers through the bridge switch ring network, thereby realizing multi-terminal intercommunication in the 802.1CB protocol standard and having a high-reliability redundancy function without packet loss after disconnection.
[0153] In describing the situation where there is at least one bridge switch ring network in a multi-terminal communication system, Figure 5 Take the multi-terminal communication system shown in as an example.
[0154] like Figure 5 As shown, the multi-terminal communication system includes four terminal servers (terminal server 1, terminal server 2, terminal server 3 and terminal server 4), and a proxy switch connected to each terminal server, and the proxy switches also include four, namely, proxy switch 1, proxy switch 2, proxy switch 3 and proxy switch 4. Figure 5 The system shown in includes two bridge switch rings, each of which includes four bridge switches.
[0155] The system is used to realize the intercommunication among terminal servers 1, 2, 3 and 4. When describing the system, it is still taken as an example that terminal server 1 sends data streams to other terminal servers.
[0156] Among them, the proxy switch instance configuration information of proxy switch 1 is the same as the instance configuration information when there is only one bridge switch ring network, and the bridge switch instance configuration information of bridge switch 2 is also the same as the configuration information when there is only one bridge switch ring network, which will not be repeated here.
[0157] like Figure 5The transmission route of the second data stream in the bridge switch ring network in the multi-terminal communication system shown in the figure is that the de-ring position of the second data stream of terminal server 1 and terminal server 3 in the bridge switch ring network close to terminal server 1 is the same as that when there is only one bridge switch ring network; the data stream transmitted by terminal server 1 in the bridge switch ring network far away from terminal server 1 has the same de-ring position in the bridge switch ring network far away from terminal server 1 because the input ports are both ports 3 and 4 of bridge switch 5; since the first transmission route of the bridge switch ring network far away from terminal server 1 is: bridge switch 5-bridge switch 6-bridge switch 8-bridge switch 7 (clockwise direction), the de-ring is performed at bridge switch 7 during this transmission route; the second transmission route of the bridge switch ring network far away from terminal server 1 is: bridge switch 5-bridge switch 7-bridge switch 8-bridge switch 6 (counterclockwise direction), so the de-ring is performed at bridge switch 7 during this transmission route. Due to the symmetric topology, the same applies to terminal servers 2 and 4, which will not be described in detail.
[0158] It should be noted that Figure 2 , Figure 3 , Figure 4 and Figure 5 In the multi-terminal communication system shown in the figure, the transmission of the data streams shown is all sent from the terminal server 1, wherein the black arrow in the bridge switch ring network is a transmission line, the light gray arrow is a transmission line, and the dark gray arrow is the proxy switch after receiving the second data stream and transmitting it to the connected terminal server after the frame elimination operation, thereby realizing the transmission of the data stream of the terminal server 1 to the remaining terminal servers.
[0159] After receiving the second data stream from the proxy switch 1, the bridge switch 1 transmits the second data stream in the same manner as when there is only one bridge switch ring network. The bridge switch 1 receives two redundant data streams sent by the proxy switch 1 through ports 3 and 4, respectively. It can be seen from the instance configuration information that ports 3 and 4 of the bridge switch receive two second data streams. By restoring the instance mode and not eliminating the r-tag in the second data stream, the second data stream is transmitted from ports 1 and 2, and the frer_vlan in the second data stream is changed from the original 101 to the specific frer_vlan 10, that is, the frer_vlan carried by the second data stream transmitted from ports 1 and 2 of the bridge switch 1 is changed to frer_vlan 10. In addition, in this topology, there are also two types of data streams that need to be de-ringed at the bridge switch 1. The first type is the transmission route: bridge switch 3—bridge switch 4—bridge switch 2—bridge switch 1; the second type is the transmission route: bridge switch 2—bridge switch 4—bridge switch 3—bridge switch 1; the remaining data streams passing through the bridge switch 1 do not need to be de-ringed. Because in the topology of this system, the redundant data streams of terminal servers 2 and 4 must enter the left ring network through bridge switch 2, which meets the second situation mentioned above and needs to be de-ringed at bridge switch 1. Different from the ring network with only one bridge switch, in the topology of this system, the bridge switch where the rings intersect with each other has two functions. The first is to forward the data streams of other terminal servers in its own ring network to the downstream bridge switch of its own ring network and other bridge switch ring networks, and the second is to receive the data streams of other ring networks and enter its own bridge switch ring network.
[0160] exist Figure 5 In the multi-terminal communication system shown, the bridge switches where the rings intersect are bridge switch 2 and bridge switch 5. Due to the topology symmetry, bridge switch 2 is taken as an example for description.
[0161] The instance configuration information of bridge switch 2 includes 6 second flow instances and 6 second frer instances. The details are as follows:
[0162] Second Stream_1: The matched second input port is 1; the second vlan_id is 10.
[0163] Second Stream_2: The data stream whose matching second input port is 1 and whose second vlan_id is 30.
[0164] Second Stream_3: The matched second input port is 2; the second vlan_id is 10.
[0165] Second Stream_4: The data stream whose matching second input port is 2 and whose second vlan_id is 30.
[0166] Second Stream_5: The data stream whose matching second input ports are 3 and 4 and whose second vlan_id is 20.
[0167] Second Stream_6: The second input ports matched are 3 and 4; the second vlan_id is 40.
[0168] Second Frer_1: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_1, the outgoing ports are 2 and 3, the second frer_vlan is 10, and the second data stream identification mode is false.
[0169] Second Frer_2: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_2, the outgoing ports are 2 and 3, the second frer_vlan is 30, and the second data stream identification mode is false.
[0170] Second Frer_3: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_3, the outlet port is 4, the second frer_vlan is 10, and the second data stream identification mode is false.
[0171] Second Frer_4: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_4, the outgoing ports are 1 and 4, the second frer_vlan is 30, and the second data stream identification mode is false.
[0172] Second Frer_5: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_5, the outgoing ports are 1 and 2, the second frer_vlan is 20, and the second data stream identification mode is false.
[0173] Second Frer_6: The second instance mode selects the recovery instance mode, the second inlet stream selects Stream_6, the outgoing ports are 1 and 2, the second frer_vlan is 40, and the second data stream identification mode is false.
[0174] Through the preset bridge switch instance configuration information (flow matching function) in this application, it can be known that the bridge switch 2 receives two data streams from the terminal server 1 at port 1 and port 2, and these two data streams carry vlan 10, and the bridge switch 2 can also receive two data streams from the terminal server 3 at port 1 and port 2, and these two data streams carry vlan 30, and through the corresponding second frer instance recovery function, the data of ports 1 and 2 are forwarded to ports 3 and 4 respectively to complete the above-mentioned first function without eliminating the R-TAG and port one-to-one correspondence; through the flow matching function, the specific vlan 20 and vlan 40 of the two redundant data of the terminal servers 2 and 4 transmitted from ports 3 and 4 are matched, and forwarded to ports 1 and 2 without eliminating the R-TAG through the corresponding frer instance recovery function, thereby realizing the second function. All frer instances do not change the original frer_vlan of their bound data streams.
[0175] It should be noted that when configuring each bridge switch, it is necessary to ensure that the bridge switch receives two identical data streams from the same terminal server, and the transmission directions of the two data streams when entering the bridge switch are different.
[0176] The present application connects each terminal server to an agent switch, and the agent switch is connected to at least one bridge switch ring network, wherein it is necessary to ensure that each agent switch is connected to a bridge switch in the bridge switch ring network, and different agent switches are connected to different bridge switches. In this way, when one of the terminal servers needs to synchronize information to the remaining terminal servers, the data stream is first transmitted to the connected agent switch, and the data stream is frame-copied in the agent switch and then transmitted to the connected bridge switch. After the bridge switch receives the data stream, according to the bridge switch ring network configuration information, the data stream is transmitted in the bridge switch ring network according to two different transmission routes of the data stream in the bridge switch ring network configuration information. Since the bridge switch ring network is annular, it can ensure that the data streams transmitted from different directions can reach each bridge switch in the bridge switch ring network, and then be transmitted to the corresponding terminal server through the connected agent switch, so as to realize mutual communication between multiple terminal servers. Furthermore, the present application configures a de-ring position for each data stream transmission route, and the de-ring position is at the bridge switch of the last hop before the data stream forms a ring, that is, after the data stream reaches the de-ring position, it will no longer be transmitted to the next bridge switch, thereby avoiding the problem of network storm in the bridge switch ring network. Furthermore, it can solve the problem that the 802.1CB protocol in the prior art cannot realize multi-terminal intercommunication.
[0177] Fig. 9A schematic diagram of the structure of a multi-terminal communication device of an embodiment of the present application is shown. Exemplarily, the multi-terminal communication device includes: a bridge switch ring network applied to a multi-terminal communication system; wherein the multi-terminal communication system includes a plurality of terminal servers, each of the terminal servers is connected to a proxy switch and at least one bridge switch ring network, and the bridge switch ring network is composed of a plurality of bridge switches, including:
[0178] The receiving module 10 is used to receive the second data stream connected to the proxy switch, and according to the bridge switch ring network configuration information, the second data stream is transmitted in the bridge switch ring network according to two different transmission routes of the data stream in the bridge switch ring network configuration information.
[0179] The second data stream is a data stream generated after the terminal server transmits the first data stream to the connected proxy switch and the corresponding proxy switch processes the first data stream according to the proxy switch instance configuration information.
[0180] The de-ring module 20 is used to de-ring the corresponding second data stream when the second data stream is currently transmitted along the corresponding transmission route to the de-ring position configured in the bridge switch ring network configuration information.
[0181] The de-ring position is where the second data flow is currently transmitted along the corresponding transmission route to the previous jump bridge switch in the ring.
[0182] Among them, when the second data stream is transmitted in the bridge switch ring network, if it is transmitted to the bridge switch connected to one of the proxy switches, the second data stream is transmitted to the current proxy switch, and after being processed by the current proxy switch, it is transmitted to the terminal server connected to the current proxy switch.
[0183] It can be understood that the device of this embodiment corresponds to the multi-terminal communication method of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.
[0184] The present application also provides a switch. Exemplarily, the switch includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the switch to execute the functions of each module in the above-mentioned multi-terminal communication method or the above-mentioned multi-terminal communication device.
[0185] 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.
[0186] 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. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.
[0187] The present application also provides a computer-readable storage medium for storing the 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.
[0188] 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 a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. 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.
[0189] 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.
[0190] If the functions are implemented in the form of software function modules 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, 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 described in the various embodiments of the present application.
[0191] The above description is only a specific implementation manner 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 included in the protection scope of the present application.
Claims
1. A multi-terminal communication system, characterized in that: include: A plurality of terminal servers, a plurality of proxy switches correspondingly connected to each of the terminal servers, and at least one bridge switch ring network located between each of the proxy switches, wherein the bridge switch ring network is formed by each of the plurality of bridge switches; The proxy switch is used to perform frame replication on the first data stream sent by the connected terminal server to generate two identical second data streams; The bridge switch ring network is used to transmit the two second data streams along different preset transmission lines in the switch ring network after receiving the two identical second data streams; The bridge switch ring network is further used for de-ringing the received second data stream when the second data stream is transmitted along the preset transmission line to the last bridge switch corresponding to the preset transmission line; The proxy switch is also used to identify and process the second data flow transmitted by the bridge switch ring network, and then transmit it to the connected terminal server.
2. The multi-terminal communication system according to claim 1, characterized in that: If the system includes a bridge switch ring network, the number of bridge switches in the bridge switch ring network is greater than or equal to the number of proxy switches; Each of the proxy switches is connected to one of the bridge switches in the bridge switch ring network.
3. The multi-terminal communication system according to claim 1, characterized in that: If the system includes at least two bridge switch ring networks, adjacent bridge switch ring networks are connected through one of the bridge switches in each bridge switch ring network; the number of bridge switches in the system is greater than the number of proxy switches; and each proxy switch is connected to one of the bridge switches in the bridge switch ring network.
4. A multi-terminal communication method, characterized in that: Applied to a multi-terminal communication system, the method comprises: Receive a second data stream transmitted by the connected proxy switch, and according to the bridge switch ring network configuration information, transmit the second data stream in the bridge switch ring network according to two different transmission routes of the data stream in the bridge switch ring network configuration information; wherein the second data stream is a data stream generated after the terminal server transmits the first data stream to the connected proxy switch, and the corresponding proxy switch processes the first data stream according to the proxy switch instance configuration information; When the second data stream is currently transmitted along the corresponding transmission route to the de-ring position configured in the bridge switch ring network configuration information, the corresponding second data stream is de-ringed; wherein the de-ring position is the last bridge switch of the corresponding transmission route of the current second data stream transmission; Among them, when the second data stream is transmitted in the bridge switch ring network, if it is transmitted to the bridge switch connected to one of the proxy switches, the second data stream is transmitted to the current proxy switch, and after being processed by the current proxy switch, it is transmitted to the terminal server connected to the current proxy switch.
5. The multi-terminal communication method according to claim 4, characterized in that: The proxy switch instance configuration information includes a first flow instance and a first frer instance; Each of the first stream instances is bound to one of the first frer instances; The number of the first flow instances is the same as the number of the terminal servers; The first flow instance of the proxy switch includes a first flow identifier, a first input port and / or a first vlan_id; The first frer instance includes a first frer identifier, a first instance mode, a first ingress flow, a first egress port, a first frer_vlan and / or a first data flow identifier mode; The first instance mode includes a restore instance mode and a generate instance mode; the first data flow identification mode includes a eliminate data flow identification and a retain data flow identification.
6. The multi-terminal communication method according to claim 5, characterized in that: The bridge switch ring network configuration information includes bridge switch instance configuration information and transmission route configuration information; The bridge switch instance configuration information includes a second flow instance and a second fred instance; wherein each of the second flow instances is bound to a second fred instance; The second flow instance includes a second flow identifier, a second input port and / or a second vlan_id; The second frer instance includes a second frer identifier, a second instance mode, a second ingress flow, a second egress port, a second frer_vlan and / or a second data flow identifier mode; Wherein, the second instance mode includes a restore instance mode and a generate instance mode; the second data flow identification mode includes a eliminate data flow identification and a retain data flow identification; The transmission route configuration information is used to indicate the transmission route and de-ring position of the second data stream in the bridge switch ring network.
7. The multi-terminal communication method according to claim 6, characterized in that: The receiving of the second data stream connected to the proxy switch and, according to the bridge switch ring network configuration information, transmitting the second data stream in the bridge switch ring network according to two different transmission routes of the data stream in the bridge switch ring network configuration information includes: Determine the second flow identifier according to the second input port of the second data flow sent by the connected proxy switch; Determine the second stream identifier according to the current second stream identifier; After processing the received second data stream according to the configuration information of the current second fred instance according to the second fred instance corresponding to the current second fred identifier, the corresponding second data stream is output from the two output ports corresponding to the current bridge switch; The second data flow is a data flow generated after the terminal server transmits the first data flow to the connected proxy switch and the proxy switch processes the first data flow according to the configured corresponding first flow instance and first frer instance.
8. The multi-terminal communication method according to claim 7, characterized in that: Also includes: When the second data stream is output from the output port corresponding to the current bridge switch, the second data stream is marked accordingly according to the second Frer_vlan and / or the second data stream identification mode in the current second frer instance, so as to enable the corresponding proxy switch to identify and process the second data stream.
9. A switch, characterized in that: The switch comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the multi-terminal communication method according to any one of claims 4 to 8.
10. A readable storage medium, characterized in that: It stores a computer program, which, when executed on a processor, implements the multi-terminal communication method according to any one of claims 4-8.
Citation Information
Cited By
Multi-terminal redundant data transmission method and system, bridge switch and storage medium
CN120455408A
