Summary of the invention
The objective of the invention is, for cause the problems such as network path and port resource waste in above prior art due to loop network, to have proposed a kind of seamless method for realizing redundancy of loop network.
For realizing purpose of the present invention, adopted following technical scheme:
The seamless method for realizing redundancy of loop network, described loop network comprises several binodes, each binode comprises several ports, it is that redundancy port and two ports are the nonredundancy port that each binode at least arranges two ports, one of described redundancy port and two respectively with adjacent separately binode by link connection makeup ring l network
The binode that sends Frame in A, described loop network is set to sending node, described sending node by one of redundancy port and two send a pair of identical Frame simultaneously;
In B, described loop network, the binode of receiving data frames is set to receiving node, described receiving node receive respectively by one of redundancy port of sending node and two send described a pair of identical Frame, described receiving node is filtered the described Frame received, and by the Frame after filtering by one of its redundancy port and two send a pair of identical Frame simultaneously;
C, described receiving node retain from one of redundancy port of described receiving node or the two a pair of identical Frames that receive the Frame that arrives first, abandon from one of redundancy port of described receiving node or the two a pair of identical Frames that receive after to Frame;
D, receiving node from one of its redundancy port and two receive described a pair of identical Frame, stop respectively to its redundancy port two and one of send one of described a pair of identical Frame.
Described a pair of identical Frame is with the redundancy label that is different from other Frame, described redundancy label comprises type, circuit label symbol, redundancy indications and reserved character section, wherein the redundancy indications means the number-mark of Frame queue, means that described Frame is one of a pair of identical Frame.
After the redundancy port of described receiving node receives one of a pair of identical Frame, after the Frame wherein arrived first is removed to its redundancy label, by described binodal two nonredundancy ports or one of them, transfer out.
Described nonredundancy port receives Frame by it and goes out by described binodal another nonredundancy port transmission.
Described binodal nonredundancy port receives other Frames that there is no the redundancy label, will in described other Frames, add the redundancy label, and the redundancy port in the mac configured list of described nonredundancy port transmits.
Configure and arrange arbitrarily severally to redundancy port according to the user in described binodal several ports, described binodal other port is the nonredundancy port, and described nonredundancy port is for carrying user's Ethernet data business.
Specified tube reason port in described binodal nonredundancy port, described management port is for managing agreement in looped network.
The redundancy port of described receiving node abandons the same data frames that this redundancy port sends.
It is mutual that each binode in described loop network carries out link information by redundancy port, and each binode in described loop network detects Link State separately.
Adopt technical scheme of the present invention, not only can save the data frame transfer path in loop network, but also can realize effective utilization of the port resource that each node is limited, thereby reduce the waste of transmission path in the loop network of knowing clearly, and increased the utilance of node middle port resource.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, or understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification write, claims and accompanying drawing.
Below by the drawings and specific embodiments, technical scheme of the present invention is described in further detail.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiment of the present invention is described, should be appreciated that preferred implementation described herein, only for description and interpretation the present invention, is not intended to limit the present invention.
A loop network comprises several nodes, and each node comprises several ports, and each Node configuration wherein two ports is redundancy port, one of redundancy port and two respectively with adjacent separately node by link connection makeup ring l network.
The single node typical structure schematic diagram that Fig. 1 is loop network.As shown in Figure 1, the single node typical structure of loop network comprises transmitting element, receiving element, transfer of data crosspoint and link redundancy unit.
Wherein receiving element and transmitting element form a port, be responsible for the sending and receiving of Frame, and each port have represented a transmission direction.
Wherein transmitting element and receiving element are the parts of the lowest protocol of information exchanging process, communication, modem layer or the physical layer of modulates digital data occur therein, there is transceiver function, the Code And Decode logic function, allow to generate and verify data frame content and particularly check the whether original transmission of these frames or received, address and the out of Memory of the original sending node by checking Frame.Transmitting element is connected with the transfer of data crosspoint with receiving element.
Wherein the transfer of data crosspoint has the transfer bus of transmission and receives transfer bus, when this node is start node, a pair of identical Frame is by sending transfer bus two port outputs to this node through transmitting element, perhaps, when this node is sending node, a pair of identical Frame produced through the frame reproducer is by sending transfer bus two port outputs to this node through transmitting element.The exchanges data unit is connected to the link redundancy unit.
The link redundancy unit comprises frame reproducer and frame filter.The node of loop network produces the source data frame through the upper-layer protocol layer, for example: IP agreement, TCP or udp protocol, these source data frames are transferred to the link redundancy unit through the link layer interface, thereby frame reproducer copy source data frame wherein produces a pair of identical Frame, this Frame comprises redundant information, and outputs to two output ports of this node by transfer of data crosspoint and transmitting element.
Fig. 2 is ASR data frame structure schematic diagram.As shown in Figure 2, the redundant information in so-called ASR Frame, be all the ASR frame for the Frame of the transmission of guaranteeing loop network, and be also the mark of distinguishing a pair of identical Frame.This redundant information is inserted into the initial data front of ASR redundant frame.So-called ASR label comprises type, circuit label symbol, redundancy indications and reserved character section, and wherein type shows protocol type, and for example: OX8848 represents MPLS Multicast; The network type mark that the circuit indications is data frame transfer, the redundancy indications, by the number-mark of Frame queue, means that this Frame is one of a pair of identical ASR Frame.The rank indications means the transfer level in loop network of ASR Frame, and this transfer level is inherited the priority level of the IEEE802.1Q in initial data frame.
Frame filter in the link redundancy unit will filter out and from loop network, receive Frame, and the Frame that will receive for the first time uploads to the upper-layer protocol layer.The above-mentioned filtration to Frame occurs in link layer rather than, in transport layer, such processing mode can avoid the upper-layer protocol layer to process double business, saves the computing capability of the processor of local node.
The schematic diagram that Fig. 3 is one of binode typical structure in loop network.As shown in Figure 3, this binode typical structure comprises three ports, two redundancy ports that port is loop network wherein, and for example T1 and R1 and T2 and R2 are a pair of redundancy port, T3 and R3 and T4 and R4 are configured to the port of external other network.A pair of redundancy port structure in Fig. 3 is in fact identical with a pair of redundancy port structure of the node of the loop network shown in Fig. 2.
Binode typical structure as shown in Figure 3 comprises transmitting element, receiving element, transfer of data crosspoint, link redundancy unit, link layer transmitting element and link layer receiving element, wherein receiving element and transmitting element form a port, be responsible for the sending and receiving of Frame, and each port has represented a transmission direction.
Redundancy port T1 and R1 and T2 and R2 receive the Frame that will wherein arrive first after a pair of identical Frame and remove its redundancy label, and then the nonredundancy port T3 by this node and R3 and T4 and R4 transfer out; Nonredundancy port T3 and R3 and T4 and R4 receive the Frame that there is no the redundancy label does not have the Frame of redundancy label to add the redundancy label this, and then the redundancy port T1 by this node and R1 and T2 and R2 transfer out.
Because T3 and R3 and T4 and R4 are set to the port of external other network according to user's configuration, and the Frame received from this port is generally non-ASR Frame, the non-ASR Frame received from the reception transfer bus will be transferred to the link layer interface by the link layer receiving element, then is transferred to the upper-layer protocol layer; For the transmission of non-ASR Frame, will be transferred to the transmission transfer bus by the link layer transmitting element by the link layer interface, then via the T3 in the port that is configured external other network and T4, send.
Two the schematic diagram that Fig. 4 is binode typical structure in loop network.As shown in Figure 4, wherein two ports in binodal several port are set to redundancy port, it is also binodal redundancy port in loop network, for example: T1 and R1 and T2 and R2 are a pair of redundancy port, and T3 and R3 and T4 and R4 are set to respectively the nonredundancy port, wherein T3 and R3 composition port can be set to service port, for carrying user's common Ethernet data business, and the port that T4 and R4 form is set to management port, for managing the agreement in loop network; T5 and R5 form the port of external other network.
Three the schematic diagram that Fig. 5 is binode typical structure in loop network.As shown in Figure 5,4 ports in can binodal several ports wherein are set to redundancy port, it is also binodal redundancy port in loop network, for example: T1 and R1 and T2 and R2 are a pair of redundancy port, T3 and R3 and T4 and R4 are that another is to redundancy port, and T5 and R5 and T6 and R6 are set to respectively the nonredundancy port, and be set to service port, for carrying user's common Ethernet data business.The binode structure here can be for connecting the switching node of two loop networks.The switching node here may be based on physical hardware restriction and only have two pairs of redundancy ports, but can not be limited to for a person skilled in the art this physical hardware restriction, that is to say more than two pairs of the redundancy port of the switching node here.
Loop network in the seamless method for realizing redundancy of loop network comprises several binodes, each binode comprises several ports, it is that redundancy port and two ports are the nonredundancy port that each binodal two port at least is set, one of described redundancy port and two respectively with adjacent separately binode by link connection makeup ring l network, comprise the steps:
(1) binode that sends Frame in loop network is set to sending node, to one of redundancy port of sending node and two send a pair of identical Frame simultaneously:
(2) in loop network, the binode of receiving data frames is set to receiving node, receiving node receive respectively by one of redundancy port of sending node and the two a pair of identical Frames that send;
(3) receiving node retain from one of redundancy port of described receiving node or the two a pair of identical Frames that receive the Frame that arrives first, abandon from one of redundancy port of receiving node or the two a pair of identical Frames that receive after to Frame;
(4) receiving node from one of its redundancy port and two receive a pair of identical Frame, stop respectively to its redundancy port two and one of send one of described a pair of identical Frame;
(5), after the redundancy port of receiving node receives one of a pair of identical Frame, the Frame arrived first is wherein gone out by binodal two nonredundancy port transmission; The nonredundancy port receives Frame by it and transfers out by described binodal redundancy port.
In single loop network can form multi-ring networks with other a plurality of loop networks, in network, transmitting data frame comprises target MAC (Media Access Control) address and source MAC, so Internet Transmission can adopt the transmission modes such as clean culture, multicast or broadcast.
Fig. 6 is the seamless redundancy structure schematic diagram between loop network.As shown in Figure 6, this single annular network comprise 4 binodes 1 and 1 ', 2 and 2 ', 3 and 3 ' and 4 and 4 ', each binode comprises a pair of redundancy port.Take binode 1 and 1 ' as initial sending node and binode 4 and 4 ' as the purpose receiving node be example, this node 1 and 1 ' to its port one-1, 1-2 sends a pair of identical Frame A, B, receiving node 2 and 2 ' port 2-1 receive from sending node 1 and 1 ' the Frame B of port one-1 transmission, this receiving node 2 and 2 ' resolve this Frame B, and process according to Frame forwarding mechanism in loop network, if receiving node 2 and 2 ' received Frame A or Frame B, so the Frame A of follow-up reception is abandoned, the data A of this follow-up reception no longer transmits to the upper layer network of this node, now receiving node 2 and 2 ' beginning sends a pair of identical Frame A and B as sending node to its port 2-1 and 2-2.Binode 1 and 1 ' receive from binode 2 and 2 ' port 2-1 send Frame A, binode 1 and 1 ' compare for the Frame B in the buffer memory of this Frame A and self port one-2, if two Frames are a pair of identical Frame, node 1 will be abandoned to this Frame.Binode 3 and 3 ' port 3-1 from binode 2 and 2 ' 2-2 receiving data frames B, binode 3 and 3 ' resolve this Frame B, and processing according to Frame forwarding mechanism in loop network.
Binode 2 and 2 ' from binode 1 and 1 ' port one-1 receive data B with constantly, receiving node 4 and 4 ' reception binode 1 and 1 ' the Frame A that sends of another port 1-2, binode 4 and 4 ' resolve this Frame B, and process according to Frame forwarding mechanism in loop network, binode 4 and 4 ' beginning sends a pair of identical Frame A and B as sending node to its port 4-1 and 4-2.Binode 3 and 3 ' port 3-2 receive from binode 4 and 4 ' the Frame A of port 4-1 transmission, due to binode 3 and 3 ' port 3-1 from node 2, receive Frame B, if binode 3 and 3 ' at first receive from the Frame B of binode 2 and 2 ' transmission, and to binode 3 and 3 ' upper-layer protocol layer transmission, so binode 3 and 3 ' frame filter will abandon from the Frame A of binode 4 and 4 ' reception, simultaneously perhaps binode 3 and 3 ' at first receive from the Frame B of binode 2 and 2 ' transmission has sent a pair of identical Frame A and B from its port 3-1 and 3-2, from binode 3 and 3 ' the Frame B that sends of port 3-2 will be by binode 4 and 4 ' according to the Frame reception mechanism loop network, abandon its this Frame B, in like manner, from binode 3 and 3 ' the Frame A that sends of port 3-1 will be abandoned its this Frame A according to the Frame reception mechanism loop network by node 2, thereby certain node that makes a pair of identical Frame look like to meet in loop network or certain two node stop transmission.
In fact, the present invention relates to be following single annular network preferred embodiment, as Fig. 6, take binode 1 and 1 ' as initial sending node and binode 4 and 4 ' as the purpose receiving node be example, other binode 2 and 2 in loop network ' and 4 and 4 ' redundancy port 2-1 and 4-2 receive binode 1 and 1 ' as initial sending node transmission the ASR Frame after, other binode 2 and 2 ' and 4 and 4 ' according to the Frame in loop network, receive, transmission and termination mechanism only send A or the B in a pair of identical Frame to their another redundancy port 2-2 and 4-1, if binode 3 and 3 ' redundancy port 3-1 and 3-2 receive A and B in a pair of identical Frame, binode 3 and 3 ' according to Frame reception, transmission and termination mechanism in loop network simultaneously, if binode 3 and 3 ' redundancy port 3-1 at first receive A or the B in a pair of identical Frame, binode 3 and 3 ' receive according to the Frame in loop network, transmission and termination mechanism only send A or the B in a pair of identical Frame to their another redundancy port 3-2, while binode 4 and 4 ' receive according to the Frame in loop network, transmission and termination mechanism only send A or the B in a pair of identical Frame to their another redundancy port 4-2, binode 3 and 3 ' and 4 and 4 ' according to the Frame in loop network, receive, transmission and termination mechanism stop A or the B transmission in a pair of identical Frame, certain node that finally makes a pair of identical Frame look like to meet in loop network or certain two node stop transmission.
Frame reception mechanism in loop network: the type of receiving node investigation Frame in loop network, for the ASR Frame, if receive the frame that arrives first of a pair of identical Frame, this node just removes the ASR label and transmits to the upper-layer protocol layer so; Abandon the rear to frame of this pair of identical Frame.
Frame transmit mechanism in loop network: the type of receiving node investigation Frame in loop network, to the ASR Frame, initial sending node sends a pair of Frame with the ASR label to two redundancy port simultaneously; The general redundancy port that no longer to it, receives the ASR Frame of the redundancy port of the non-start node in loop network sends the ASR Frame, only to its another redundancy port, sends, and the redundancy port that can certainly receive the ASR Frame to it sends.
Frame termination mechanism in loop network:
For the ASR Frame, can differentiate ASR Frame transfer level in loop network by the rank indications of ASR Frame.
For the ASR Frame, sending node transmits this ASR Frame to two redundancy ports of this node, when this Frame meets in certain node or certain two node in loop network, these nodes will be by stopping the transmission of this ASR Frame in judgement self buffering with after the Frame of follow-up reception.
Seamless redundancy structure schematic diagram between loop network as shown in Figure 6, wherein binode 1 and 1 ' in the port that is connected with node 1 with the port with node 1 ' be connected, be the nonredundancy port, when connect binode 1 and 1 ' the nonredundancy port that is connected to it of the node 1 of nonredundancy port while sending non-ASR Frame (other Frames that there is no the redundancy label), binode 1 and 1 ' the nonredundancy port receive non-ASR Frame (other Frames that there is no the redundancy label), the redundancy label will be added in this non-ASR Frame, and the redundancy port 1-1 in the mac configured list of the nonredundancy port connected to this node 1 or 1-2 transmission, when node 1, to node 1 ' while transmitting non-ASR Frame, do not need to add the redundancy label in this non-ASR Frame.
In like manner, other binodal nonredundancy port according to above-mentioned steps to its binodal redundancy port transmitting data frame.
Seamless redundancy structure schematic diagram between loop network as shown in Figure 6, each binode in described loop network detects the Link State between each node by link detection message, and it is mutual to carry out link information by each binodal redundancy port.
The schematic diagram that Fig. 7 is one of seamless redundancy structure between reciprocity loop network.As shown in Figure 7, reciprocity loop network comprises at least two loop networks, and wherein two loop networks 1,2 are connected with 13 by binode 12.Take loop network 1 as the main ring network, and loop network 2 is time loop network, the secondary ring network comprise binode 5 and 5 ', 6 and 6 ', 7 and 7 ' and 8 and 8 ', binode 1 or 1 wherein ' be initial sending node, binode 6 or 6 ' be destination node, binode 1 and 1 ' to its redundancy port 1-1, 1-2 sends a pair of identical Frame A, B, according to the Frame in ring network, receive, the Frame B that transmission and forwarding mechanism send to redundancy port 1-2, a redundancy port of binode 12 receives the Frame B that redundancy port 1-2 sends, binode 12 also can receive according to the Frame in ring network, transmission and forwarding mechanism send Frame A or B to binode 12 other three ports, in like manner, when receiving Frame A or B, 13 nonredundancy port also can receive according to the Frame in ring network, transmission and forwarding mechanism send Frame A or B to the redundancy port of binode 13, in loop network 1, the node that receives a pair of identical Frame A and B will stop its continuation and resume defeated at loop network 1 relaying, in loop network 2, destination node 6 or 6 ' MAC Address be the target MAC (Media Access Control) address in Frame A or B, after so destination node 6 or 6 ' receive Frame A or B, will also no longer continue to resume defeated at loop network 2 relayings.
In addition, the above-mentioned reciprocity loop network that only comprises two loop networks can also continue the expansion hula networks by binode 11 and 14.
Two the schematic diagram that Fig. 8 is seamless redundancy structure between reciprocity loop network.As shown in Figure 8, reciprocity loop network comprises at least two loop networks, and wherein two loop networks 3,4 connect by the switching node 9 shown in Fig. 5.Take loop network 3 as the main ring network, loop network 4 is time loop network, the secondary ring network comprise binode 5 and 5 ', 6 and 6 ', 7 and 7 ' and 8 and 8 ', the binode of the inferior loop network here is identical with the binode of Fig. 7, binode 1 or 1 wherein ' be initial sending node, binode 6 or 6 ' be destination node; Binode 1 and 1 ' to its redundancy port 1-1,1-2, send a pair of identical Frame A, B, the Frame B sent to redundancy port 1-2 according to Frame reception, transmission and forwarding mechanism in ring network, the redundancy port 9-1 of switching node 9 receives the Frame B that redundancy port 1-2 sends, and switching node 9 also can send Frame A or B to switching node 9 other three redundancy port 9-2,9-3 and 9-4 according to Frame reception, transmission and forwarding mechanism in ring network; In loop network 3, the node that receives a pair of identical Frame A and B will stop its continuation and resume defeated at loop network 3 relayings; In loop network 4, destination node 6 or 6 ' MAC Address be the target MAC (Media Access Control) address in Frame A or B, after so destination node 6 or 6 ' receive Frame A or B, will also no longer continue to resume defeated at loop network 4 relayings.
Take above-mentioned switching node 9 and 9 ' be example, the redundancy port of this switching node can have two pairs or more multipair redundancy port according to the situation of physical hardware, on switching node 9 and 9 ' basis when increasing a pair of redundancy port, can be on a pair of redundancy port of this increase an additional loop network, and the processing mode of the processing mode of Frame as processed in two loop networks; In like manner, can increase a loop network during a pair of redundancy port of every increase.
Three the schematic diagram that Fig. 9 is seamless redundancy structure between reciprocity loop network.As shown in Figure 9, reciprocity loop network comprises at least two loop networks, and wherein two loop networks 5,6 are connected with 10 by the switching node 9 shown in Fig. 5.Take loop network 5 as the main ring network, loop network 6 is time loop network, the secondary ring network comprise binode 5 and 5 ', 6 and 6 ', 7 and 7 ' and 8 and 8 ', the binode of the inferior loop network here is identical with the binode of Fig. 7, binode 1 or 1 wherein ' be initial sending node, binode 3 or 3 ' be destination node, binode 1 and 1 ' to its redundancy port 1-1, 1-2 sends a pair of identical Frame A, B, according to the Frame in ring network, receive, the Frame B that transmission and forwarding mechanism send to redundancy port 1-2, the redundancy port 9-1 of switching node 9 receives the Frame B that redundancy port 1-2 sends, switching node 9 also can receive according to the Frame in ring network, transmission and termination mechanism are to switching node 9 other three redundancy port 9-2, 9-3 and 9-4 send Frame A or B, then the redundancy port 10-2 of switching node 10 and 10-3 receive according to the Frame in ring network, send and termination mechanism is other to it two redundancy port 10-1 and 10-4 transmission Frame A or B, in loop network 5, the node that receives a pair of identical Frame A and B will stop its continuation and resume defeated at loop network 5 relayings, in loop network 6, destination node 6 or 6 ' MAC Address be the target MAC (Media Access Control) address in Frame A or B, after so destination node 6 or 6 ' receive Frame A or B, will also no longer continue to resume defeated at loop network 6 relayings.
Finally it should be noted that: the foregoing is only the preferred embodiment of the present invention, be not limited to the present invention, although with reference to aforementioned embodiments, the present invention is had been described in detail, for a person skilled in the art, its technical scheme that still can put down in writing aforementioned each execution mode is modified, or part technical characterictic wherein is equal to replacement.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.