Embodiment
In the described technical scheme of the embodiment of the invention, the information that comprises in the RPR message has: receive the MAC information of the RPR website of this RPR message on the RPR looped network, be called target MAC (Media Access Control) address, source MAC and the VID of the Ethernet message that encapsulates in RPRMAC address, this RPR message.
Fig. 3 inserts the decomposition texture schematic diagram of RPR website for the LAN in the RPR looped network of the present invention.As shown in Figure 3, the decomposition texture of each RPR site link LAN comprises in the RPR looped network shown in Figure 1: the Ethernet two layer service processing modules 31 with a plurality of RPR looped network side interfaces, RPR Service Processing Module 32 with a plurality of Ethernet side interfaces corresponding, and the RPR that is connected with described RPR Service Processing Module 32 ring MAC module 33 with described a plurality of RPR looped network side interfaces; Wherein, form many ethernet channels between described a plurality of Ethernet side interfaces of described a plurality of RPR looped network side interface and correspondence, described Ethernet two layer service processing modules 31 and described RPR Service Processing Module 32 transmit the Ethernet message by described many ethernet channels; RPR ring MAC module 33 comprises RPR ring MAC module 331 and RPR ring MAC module 332.
Described Ethernet two layer service processing modules 31 are used for sending the first Ethernet message by the described ethernet channel of selecting to described RPR Service Processing Module 32, and receive the second Ethernet message that described RPR Service Processing Module 32 sends; Described RPR Service Processing Module 32, be used for and be encapsulated as a RPR message by the described first Ethernet message that described ethernet channel receives, and the loops fruit that selects that decision-making obtains according to the choosing ring in the RPR Service Processing Module 32 is forwarded to corresponding RPR ring MAC module 331 or RPR ring MAC module 332 with a RPR message, the 2nd RPR message that receives is descapsulated into the described second Ethernet message, and the described second Ethernet message is forwarded to described Ethernet two layer service processing modules 31 by the described ethernet channel of selecting; If a described RPR message of described RPR Service Processing Module 32 encapsulation will promptly encircle 0 and send by the outer shroud of RPR looped network, then RPR Service Processing Module 32 can be sent to a RPR message RPR ring MAC module 331, and sends from outer shroud by RPR ring MAC module 332; If a described RPR message of described RPR Service Processing Module 32 encapsulation will promptly encircle 1 and send by the interior ring of RPR looped network, then RPR Service Processing Module 32 can be sent to a RPR message RPR ring MAC module 332, and sees off from interior environment-development by RPR ring MAC module 331; If the 2nd RPR message that outer shroud sends then receives by RPR ring MAC module 331, and is sent to RPR Service Processing Module 32; If the 2nd RPR message that interior environment-development is sent here then receives by RPR ring MAC module 332, and is sent to RPR Service Processing Module 32.
In the present embodiment, can comprise ethernet device or other network equipments among the LAN, ethernet device is connected to Ethernet two layer service processing modules 31 by Ethernet interface, and other network equipments are connected to Ethernet two layer service processing modules 31 by module or the equipment that Ethernet interface changes other network interfaces.
For reception, RPR ring MAC module 33 will be from encircling 0 or encircle 1 the 2nd RPR message that receives and be sent to RPR Service Processing Module 32.Carry out decapsulation by 32 pairs the 2nd RPR messages of RPR Service Processing Module, be reduced into the second Ethernet message, and resolve the MAC Address of the RPR website obtain sending the 2nd RPR message, i.e. RPR MAC Address, and the source MAC of the transmitting apparatus of the second Ethernet message and VID; Described source MAC and VID and RPR MAC Address are set up the RPR mapping table; Be sent to Ethernet two layer service processing modules 31 through the second Ethernet message correspondence of a plurality of Ethernet side interfaces after, by these Ethernet two layer service processing modules 31 this second Ethernet message be sent to the local network device of target MAC (Media Access Control) address and VID correspondence again with a plurality of RPR looped network side interfaces with decapsulation.Promptly, many Ethernet paths are arranged all, it is transferred to Ethernet two layer service processing modules 31 for from encircling 0 or encircle 1 data that receive.Therefore, as long as the bandwidth of the bandwidth of Ethernet path and RPR looped network is identical or greater than the bandwidth of RPR looped network, just can not have bandwidth bottleneck.
For transmission, the first Ethernet message that Ethernet two layer service processing modules 31 send is sent to the RPR Service Processing Module 32 with corresponding a plurality of Ethernet side interfaces by a plurality of RPR looped network side interfaces.RPR Service Processing Module 32 is searched the RPR mapping table according to purpose MAC and the VID in this first Ethernet message, find corresponding RPR MAC, then the RPR website of this RPR MAC sign is this first Ethernet message and is encapsulated as the purpose RPR website that will send to behind the RPR message; Then,, adopt a certain choosing ring strategy, determine the outer shroud that on the RPR looped network, transmits or the interior ring of a RPR message according to the topology information of RPR looped network; According to selecting the loops fruit,, a RPR message is sent on the corresponding interior ring or outer shroud then by RPR ring MAC module 33.If RPR Service Processing Module 32 does not find corresponding RPR MAC Address in the RPR mapping table, then according to the broadcasting choosing ring strategy that presets, at ring 0 or encircle the One-to-All Broadcast that carries out a RPR message on 1 and send, perhaps on ring 0 and ring 1, carry out bidirectional broadcast simultaneously and send, but the website that covers can not be overlapping.Carry out bidirectional broadcast on 1 when sending at ring 0 and ring, the website that is sent on ring 0 and the ring 1 can by " cut point " in the prior art determine divide.Promptly, many Ethernet paths are arranged all, it is transferred to RPR Service Processing Module 32 for the data that will send to ring 0 and ring 1.Therefore, as long as the bandwidth of the bandwidth of Ethernet path and RPR looped network is identical or greater than the bandwidth of RPR looped network, just can not have bandwidth bottleneck.
To be RPR Service Processing Module 32 all will carry out once when receiving the first Ethernet message that Ethernet two layer service processing modules 31 send above-mentioned choosing ring strategy at every turn, comparatively loaded down with trivial details.In addition, can also be when receiving data, if the source MAC of the Ethernet message that encapsulates in the RPR message that receives and VID are for occurring first, then according to the topology information of this source MAC and VID, RPR looped network, adopt the decision-making of preliminary election ring to select ring to calculate, obtain selecting loops fruit and record, when being sent to RPR Service Processing Module 32 by Ethernet two layer service processing modules 31, needn't all select the ring decision-making at every turn with the Ethernet message of convenient same data flow.
The structure of the RPR website that present embodiment provides, Ethernet two layer service processing modules have a plurality of RPR looped network side interfaces, the RPR Service Processing Module has and the corresponding a plurality of Ethernet side interfaces of described a plurality of RPR looped network side interfaces, by between a plurality of Ethernet side interfaces of a plurality of RPR looped network side interfaces and correspondence, forming many Ethernet paths, make Ethernet two layer service processing modules and RPR Service Processing Module to transmit the Ethernet message by described many ethernet channels, thereby make the Ethernet transmission bandwidth improve, realize that the bandwidth of Ethernet transmission bandwidth and RPR looped network is identical or greater than the bandwidth of RPR looped network, thereby the data transfer bandwidth in improving the RPR looped network and local network being communicated by letter, and improve data processing performance.
Fig. 4 inserts another decomposition texture schematic diagram of RPR website for the LAN in the RPR looped network of the present invention.As shown in Figure 4, to have two Ethernet paths between Ethernet two layer service processing modules and RPR Service Processing Module is example, the decomposition texture that this LAN inserts the RPR website comprises: the Ethernet two layer service processing modules 41 with two RPR looped network side interfaces, RPR Service Processing Module 42 with two Ethernet side interfaces corresponding with described two RPR looped network side interfaces, and the RPR that is connected with described RPR Service Processing Module 42 ring MAC module 43, form two ethernet channels between described two Ethernet side interfaces of described two RPR looped network side interfaces and correspondence, RPR ring MAC module 43 comprises RPR ring MAC module 431 and RPR ring MAC module 432.
Wherein, described Ethernet two layer service processing modules 41 can comprise: first receiver module 411, two-layer retransmitting table 412, search module 413 and clean culture forwarding module 414.
First receiver module 411 is used to receive the first Ethernet message that local network device sends, and receives the second Ethernet message that described RPR Service Processing Module 42 sends, and comprises in the described Ethernet message: target MAC (Media Access Control) address, source MAC and VID.
Two-layer retransmitting table 412 is used for preserving the MAC Address of a plurality of RPR looped network side interfaces and Ethernet message and the corresponding relation of VID.Wherein, as shown in Figure 4, Ethernet two layer service processing modules 41 comprise interface 1 and interface 2, and RPR Service Processing Module 42 comprises interface 3 corresponding with interface 1 and the interface 4 corresponding with interface 2, forms two Ethernet paths; Ethernet two layer service processing modules 41 also comprise other local interfaces, are used for being connected with local network device.Comprise the corresponding relation that dual mode obtains in this two-layer retransmitting table 412: a kind of is the MAC Address that obtains in RPR looped network side interface and the Ethernet message by being provided with of RPR Service Processing Module 42 and the corresponding relation of VID, for example, RPR Service Processing Module 42 is default from encircling the message after the 0 Ethernet message encapsulation that to be RPR Service Processing Module 42 receive from interface 1 and interface 3 that sends RPR message correspondence, from encircling the message after the 1 Ethernet message encapsulation that to be RPR Service Processing Module 42 receive from interface 2 and interface 4 that sends RPR message correspondence, and this corresponding relation is mapped with target MAC (Media Access Control) address and VID the Ethernet message that receives from described local network device; Another kind is by the source MAC from the Ethernet message that described local network device receives of the reception learning functionality acquisition of Ethernet two layer service processing modules 41 and the corresponding relation of VID and other local interfaces.
Particularly, in first kind of mode, the corresponding relation that the preliminary election ring decision-making of RPR Service Processing Module 42 is provided with, be the RPR MAC Address of RPR Service Processing Module 42 according to the 2nd RPR message that receives from the RPR looped network, the source MAC and the VID of the second Ethernet message of encapsulation, and the topology information of RPR looped network, adopt the decision-making of preliminary election ring, calculate the corresponding relation of ring ID and described source MAC and VID, again according to the corresponding relation of RPR looped network side interface and Ethernet side interface, default Ethernet side interface and the corresponding relation that encircles ID, and the corresponding relation of ring ID and source MAC and VID, with the corresponding relation of described RPR looped network side interface and described source MAC and VID, be arranged in the described two-layer retransmitting table 412 of described Ethernet two layer service processing modules 41.In the second way, the source MAC in the first Ethernet message and the corresponding relation of VID and other local interfaces, be that reception learning functionality by these Ethernet two layer service processing modules 41 obtains, promptly when Ethernet two layer service processing modules 41 when other local interfaces receive the Ethernet message that local network device sends, the corresponding relation of the source MAC of meeting this Ethernet message of record in two-layer retransmitting table 412 and the Ethernet interface of VID and this Ethernet message of reception, then, when these Ethernet two layer service processing modules 41 receive another Ethernet message again, its target MAC (Media Access Control) address is identical with the source MAC and the VID that write down before with VID, and then the local interface of the correspondence that this another Ethernet message is write down from two-layer retransmitting table 412 is sent to local network device.
Search module 413, be used for searching described two-layer retransmitting table 412 according to the target MAC (Media Access Control) address and the VID of the described first Ethernet message.
Clean culture forwarding module 414, be used for if described search module 413 described two-layer retransmitting table 412 find with the described first Ethernet message in target MAC (Media Access Control) address and the corresponding RPR looped network side interface of VID, then by the ethernet channel of described RPR looped network side interface correspondence, clean culture is transmitted the described first Ethernet message to described RPR Service Processing Module 42.Owing in two-layer retransmitting table 412, preserve the described corresponding relation that selects loops fruit and described a plurality of RPR looped network side interfaces, and described a plurality of RPR looped network side interface and target MAC (Media Access Control) address from the Ethernet message that described local network device receives and the corresponding relation of VID, for the message that will send on the ring of RPR looped network, promptly can obtain from interface 1 or interface 2 is sent to RPR Service Processing Module 42 by tabling look-up, accordingly, also can directly know still to be that ring 1 sends with message from encircling 0 transmission.
These Ethernet two layer service processing modules 41 can also comprise broadcasting forwarding module 415, be used for if described search module 413 described two-layer retransmitting table 412 do not find with the described first Ethernet message in target MAC (Media Access Control) address and the corresponding interface of VID, described interface comprises described a plurality of RPR looped network side interface and local interface, then according to the broadcasting behavior of presetting, by described a plurality of RPR looped network side interfaces or one of them pairing ethernet channel, broadcasting is transmitted the described first Ethernet message to described RPR Service Processing Module 42.For the message that sends to the ring of RPR looped network from local network device, if do not find corresponding relation in the two-layer retransmitting table 412 with interface, some broadcast capabilitys that can be set to interface 1 and interface 2 are closed, being about to this is to find the Ethernet message of corresponding relation to be broadcast to RPR Service Processing Module 42 by interface 1 or interface 2, thereby this message of broadcasting on outer shroud or interior ring is to avoid broadcasting this message simultaneously to same RPR website on outer shroud and interior ring; Also can be set to this Ethernet message and broadcast away from interface 1 and interface 2 simultaneously, will can not overlap with the RPR website of broadcasting by the RPR website that outer shroud is broadcast to by this message by interior ring but will be provided with.For the message that from the ring of RPR looped network, sends to local network device, if do not find corresponding relation in the two-layer retransmitting table 412 with interface, by Ethernet two layer service processing modules 41 broadcasting Ethernet messages the time, the Ethernet message that receives from interface 1 is set can not broadcast away from interface 2, can not broadcast away from interface 1 from the Ethernet message that interface 2 receives, to avoid broadcast storm.
Described RPR Service Processing Module 42 can comprise: second receiver module 421, encapsulation decapsulation module 422 and sending module 423.Second receiver module 421 is used for receiving the described first Ethernet message that described Ethernet two layer service processing modules 41 send by the described Ethernet side interface of described ethernet channel correspondence, receives the 2nd RPR message that described RPR ring MAC module 43 sends; Encapsulation decapsulation module 422 is used for the described first Ethernet message is encapsulated as a RPR message, and described the 2nd RPR message is descapsulated into the described second Ethernet message; Sending module 423, according to the corresponding relation of Ethernet side interface with ring ID, a described RPR message that will encircle after MAC module 43 will encapsulate by described RPR transmits to the outer shroud or the interior ring of described RPR looped network; According to the corresponding relation of described Ethernet side interface with ring ID, the described ethernet channel by the described Ethernet side interface correspondence selected is forwarded to described Ethernet two layer service processing modules 41 with the described second Ethernet message.Wherein, in the present embodiment, according to the corresponding relation of Ethernet side interface with ring ID, if a RPR message of RPR Service Processing Module 42 encapsulation is the first Ethernet message encapsulation that receives from the interface 3 corresponding with interface 1, then to send by the ring 0 of RPR looped network, RPR Service Processing Module 42 can be sent to a RPR message RPR ring MAC module 431, and sends from encircling 0 by RPR ring MAC module 432; If a RPR message of RPR Service Processing Module 42 encapsulation is the first Ethernet message encapsulation that receives from the interface 3 corresponding with interface 2, then to send by the ring 1 of RPR looped network, RPR Service Processing Module 42 can be sent to a RPR message RPR ring MAC module 432, and sends from encircling 1 by RPR ring MAC module 431.RPR Service Processing Module 42 does not need to select the ring decision-making again or searches and select the loops fruit herein.
Described RPR Service Processing Module 42 can also comprise: preliminary election ring module 424, be used for the source MAC of the second Ethernet message of described RPR MAC Address, encapsulation and the topology information of VID and described RPR looped network according to described the 2nd RPR message, adopt the decision-making of preliminary election ring, calculate the corresponding relation of described ring ID and described source MAC and VID; Module 425 is set, be used for the corresponding relation according to described RPR looped network side interface and described Ethernet side interface, default described Ethernet side interface and the corresponding relation of ring ID and the corresponding relation of described ring ID and described source MAC and VID, with the corresponding relation of described RPR looped network side interface and described source MAC and VID, be arranged in the described two-layer retransmitting table 412 of described Ethernet two layer service processing modules 41.
The RPR looped network that present embodiment provides, by between Ethernet two layer service processing modules and RPR Service Processing Module, many Ethernet paths being set, realize that the bandwidth of Ethernet transmission bandwidth and RPR looped network is identical or greater than the bandwidth of RPR looped network, thus raising RPR looped network and the data transfer bandwidth during local network is communicated by letter; In addition, utilize two layers of forwarding capability of Ethernet two layer service processing modules to realize RPR choosing ring, can also make from local network device and reach the linear speed processing to the RPR choosing ring that the RPR looped network sends message, alleviate the software processes burden of RPR Service Processing Module, send the Ethernet path of message and the bandwidth match and the use of RPR looped network thereby further optimize from local network device to the RPR looped network, the system that makes can more effectively utilize the bandwidth of RPR looped network.
In addition, if the corresponding relation of described RPR looped network side interface and described MAC Address and VID is not set in the two-layer retransmitting table 412 of Ethernet two layer service processing modules 41, promptly select the corresponding ring ID discord interface correspondence of loops fruit, can also be by a kind of forwarding rule be set in two-layer retransmitting table 412.For example (for example pre-set a kind of rule by RPR Service Processing Module 42, MAC Address is corresponding with ring ID, correspondence sent from encircling 0 when the value of MAC Address was odd number, correspondence sent from encircling 1 when the value of MAC Address was even number), RPR Service Processing Module 42 is arranged on above-mentioned rule in the two-layer retransmitting table 412.After Ethernet two layer service processing modules 41 receive the Ethernet message, search two-layer retransmitting table 412 according to purpose MAC in the Ethernet message and VID, obtain encircling id information, with in band or out of band the be transferred to RPR Service Processing Module 42 of this ring id information by the Ethernet message, thereby RPR Service Processing Module 42 can directly obtain to select the loops fruit when getting access to the Ethernet message.The typical method of transmission ring id information is in being with, and will encircle id information as an information field, inserts the Ethernet message, as the information field insertion of similar VLAN, MPLS; The typical method of the outer transmission ring of band id information is, takies the frame gap of Ethernet transmission, inserts the ring id information and transmits, as the Higig message transmission of similar Broadcom company.
Fig. 5 receives the schematic flow sheet of the method embodiment of data from the RPR looped network for the present invention.As shown in Figure 5, comprising:
Step 501, RPR Service Processing Module receive the RPR message of sending here from the outer shroud or the interior environment-development of RPR looped network.
Step 502, RPR Service Processing Module are descapsulated into the Ethernet message with described RPR message, and select an ethernet channel from many ethernet channels, and described Ethernet message is forwarded to Ethernet two layer service processing modules.
Step 503, Ethernet two layer service processing modules are sent to local network device with described Ethernet message.
Wherein, described many ethernet channels form between a plurality of Ethernet side interfaces that a plurality of RPR looped network side interfaces that Ethernet two layer service processing modules have and described RPR Service Processing Module have.
In the above-mentioned steps, after RPR Service Processing Module 32 as shown in Figure 3 receives and receives the RPR message from the outer shroud of RPR looped network or interior articulating, this RPR message is descapsulated into the Ethernet message, by with Ethernet two layer service processing modules 31 in one of corresponding a plurality of Ethernet side interfaces of a plurality of RPR looped network side interfaces send described Ethernet message to described Ethernet two layer service processing modules 31; After Ethernet two layer service processing modules 31 receive the Ethernet message, can search its two-layer retransmitting table according to target MAC (Media Access Control) address in this Ethernet message and VID, in this two-layer retransmitting table if preserve the corresponding relation of target MAC (Media Access Control) address and VID and a certain interface, then the interface of this Ethernet message by correspondence is sent to local network device, specific implementation is referring to described in the specific embodiment of above-mentioned RPR looped network.
The method that present embodiment provides from RPR looped network reception data, Ethernet two layer service processing modules have a plurality of RPR looped network side interfaces, the RPR Service Processing Module has and the corresponding a plurality of Ethernet side interfaces of described a plurality of RPR looped network side interfaces, by between a plurality of Ethernet side interfaces of a plurality of RPR looped network side interfaces and correspondence, forming many Ethernet paths, make Ethernet two layer service processing modules and RPR Service Processing Module to transmit the Ethernet message by described many ethernet channels, thereby make the Ethernet transmission bandwidth improve, realize that the bandwidth of Ethernet transmission bandwidth and RPR looped network is identical or greater than the bandwidth of RPR looped network, thereby the data transfer bandwidth in improving the RPR looped network and local network being communicated by letter, and improve data processing performance.
On the basis of as shown in Figure 5 flow process, the present invention sends among another embodiment of method of message to the RPR looped network, the RPR MAC Address that comprises the RPR website in the described RPR message, and target MAC (Media Access Control) address, source MAC and the VID of the described Ethernet message of encapsulation, described method also comprises:
Steps A, RPR Service Processing Module are according to the topology information of source MAC and the VID and the described RPR looped network of the described Ethernet message of the described RPR MAC Address in the described RPR message, encapsulation, adopt the decision-making of preliminary election ring, calculate the corresponding relation of ring ID and described source MAC and VID;
Step B, according to the corresponding relation of described RPR looped network side interface and described Ethernet side interface, default described Ethernet side interface and the corresponding relation of ring ID and the corresponding relation of described ring ID and described source MAC and VID, the RPR Service Processing Module is arranged on the corresponding relation of described RPR looped network side interface and described source MAC and VID in the two-layer retransmitting table of described Ethernet two layer service processing modules.
Wherein, comprise on the basis of above-mentioned steps A and step B, described in the described step 502 selected an ethernet channel from many ethernet channels, described Ethernet message is forwarded to Ethernet two layer service processing modules to be comprised: according to the corresponding relation of described Ethernet side interface and described ring ID, the ethernet channel by the described Ethernet side interface correspondence selected sends described Ethernet message to described Ethernet two layer service processing modules.
Particularly, sending the process of data, comprising from RPR looped network side direction local network device:
When 1) the RPR Service Processing Module is received the RPR message of RPR looped network side, from the RPR message, parse the MAC information of the RPR website that sends this RPR message, be called the RPR MAC Address, and the source MAC and the VID of the transmitting apparatus of the packaged Ethernet message of this RPR message, to no vlan domain, look VID and be 0 and handle.The source MAC of the transmitting apparatus of Ethernet message and VID and RPR MAC Address are set up mapping table, also can be by the mapping relations of user's manual configuration source MAC and VID and RPR MAC Address, for simplicity, this mapping table is called: the RPRMAC mapping table.
2) carrying out the decision-making of preliminary election ring calculates:
According to the RPR MAC mapping table of being set up, carry out the decision-making of preliminary election ring: use the information of being extracted, remove above-mentioned RPR MAC Address, outside the source MAC and VID of the transmitting apparatus of Ethernet message, can also extract IP address information etc., and according to the topology information of RPR looped network, and the algorithm of the preliminary election ring that is adopted decision-making, calculate and send by the RPR website of this RPR Service Processing Module correspondence, data flow under the Ethernet message of the purpose RPR website that arrival RPR MAC Address is identified, the transmission ring that should select, select loops really to be designated Ri, Ri=0 representative ring 0 (being outer shroud), Ri=1 representative ring 1 (ring promptly).
Except that selecting the loops fruit of above-mentioned RPR MAC mapping table correspondence, to every other situation, according to the choosing ring strategy of the choosing ring of user's default setting decision-making (as according to the odd even of IP address, MAC Address etc.), broadcast transmission etc., and the topology information of RPR looped network, carrying out the decision-making of preliminary election ring calculates, obtain to select accordingly the loops fruit, as: Ri=0, expression sends from encircling 0; Ri=1, expression sends from encircling 1; Ri=2, expression sends by ring 0 and ring 1 simultaneously.
Corresponding RPR MAC mapping table changes, and correspondingly will carry out a preliminary election ring decision-making again, if this table keeps stable, then the decision-making of preliminary election ring is just no longer carried out.
3) with 2 road Ethernet paths between Ethernet two layer service processing modules and RPR Service Processing Module, corresponding with a Ri choosing ring respectively, as shown in Figure 4, interface 1 between Ethernet two layer service processing modules and RPR Service Processing Module, the link of interface 3 correspond to Ri=0, and the link of interface 2, interface 4 corresponds to Ri=1.Certainly, if corresponding Ethernet path more than 2 tunnel, then could a few the corresponding Ri=0 of Ethernet path, several the corresponding Ri=1 of Ethernet path in addition.
4) with the above-mentioned the 2nd) step and the 3rd) step identifies the characteristic information of ethernet data stream and the corresponding relation of interface, be set in the two-layer retransmitting table of Ethernet two layer service processing modules, make when Ethernet two layer service processing modules receive the Ethernet message of Ethernet side, matching operation by two-layer retransmitting table, the Ethernet message of correspondence can be sent to the RPR Service Processing Module from interface 1 (corresponding Ri=0) or interface 2 (corresponding Ri=1), perhaps, send to the RPR Service Processing Module by interface 1 and interface 2 (corresponding Ri=2) simultaneously.
5) meanwhile, the RPR message from the RPR looped network receives is reduced into the Ethernet message through the RPR Service Processing Module.
6) from encircling the 0 RPR message that receives, be reduced into the Ethernet message after, send to Ethernet two layer service processing modules through interface 3; From encircling the 1 RPR message that receives, be reduced into the Ethernet message after, send to Ethernet two layer service processing modules through interface 4.
7) the Ethernet message of Ethernet two layer service processing modules to being received searched its two-layer retransmitting table (mapping table of MAC Address and VID and interface), the Ethernet message transmitted (may be that clean culture also may be broadcasting) to the purpose ethernet device.
The method that present embodiment provides from RPR looped network reception data, by between Ethernet two layer service processing modules and RPR Service Processing Module, many Ethernet paths being set, realize that the bandwidth of Ethernet transmission bandwidth and RPR looped network is identical or greater than the bandwidth of RPR looped network, thus raising RPR looped network and the data transfer bandwidth during local network is communicated by letter; In addition, utilize two layers of forwarding capability of Ethernet two layer service processing modules to realize RPR choosing ring, can also make from local network device and reach the linear speed processing to the RPR choosing ring that the RPR looped network sends message, alleviate the software processes burden of RPR Service Processing Module, send the Ethernet path of message and the bandwidth match and the use of RPR looped network thereby further optimize from local network device to the RPR looped network, the system that makes can more effectively utilize the bandwidth of RPR looped network.
Fig. 6 sends the schematic flow sheet of method of message embodiment to the RPR looped network for the present invention.As shown in Figure 6, comprising:
Step 601, Ethernet two layer service processing modules receive the Ethernet message that local network device sends, and comprise source MAC, target MAC (Media Access Control) address and VID in the described Ethernet message.
Step 602, Ethernet two layer service processing modules are selected an ethernet channel from many ethernet channels, described Ethernet message is sent to the RPR Service Processing Module.
After step 603, RPR Service Processing Module are encapsulated as the RPR message with described Ethernet message, select loops really, send described Ethernet message to the interior ring or outer shroud of described RPR looped network according to what obtain.
Wherein, described many ethernet channels form between a plurality of Ethernet side interfaces that a plurality of RPR looped network side interfaces that Ethernet two layer service processing modules have and described RPR Service Processing Module have.
In the above-mentioned steps, after Ethernet two layer service processing modules 31 as shown in Figure 3 receive the Ethernet message that local network device sends, if will send to message on the ring of RPR looped network, then described Ethernet message is sent to RPR Service Processing Module 32 by one in many ethernet channels, after described RPR Service Processing Module 32 is encapsulated as the RPR message with described Ethernet message, according to selecting loops really to be sent on the interior ring or outer shroud of described RPR looped network.The loops that selects in the step 603 really is to be obtained by the decision-making of the choosing ring in the RPR Service Processing Module 32 at this moment.Specific implementation is referring to described in the specific embodiment of above-mentioned RPR looped network.
What present embodiment provided sends method of message to the RPR looped network, Ethernet two layer service processing modules have a plurality of RPR looped network side interfaces, the RPR Service Processing Module has and the corresponding a plurality of Ethernet side interfaces of described a plurality of RPR looped network side interfaces, by between a plurality of Ethernet side interfaces of a plurality of RPR looped network side interfaces and correspondence, forming many Ethernet paths, make Ethernet two layer service processing modules and RPR Service Processing Module to transmit the Ethernet message by described many ethernet channels, thereby make the Ethernet transmission bandwidth improve, realize that the bandwidth of Ethernet transmission bandwidth and RPR looped network is identical or greater than the bandwidth of RPR looped network, thereby the data transfer bandwidth in improving the RPR looped network and local network being communicated by letter, and improve data processing performance.
Send among another embodiment of method of message to the RPR looped network in the present invention, on the basis of as shown in Figure 6 flow process, step 602 specifically can also comprise:
Step 6021, search two-layer retransmitting table, preserve the corresponding relation of described a plurality of RPR looped network side interfaces and MAC Address and VID in the described two-layer retransmitting table according to target MAC (Media Access Control) address and VID in the described Ethernet message;
Step 6022, if in described two-layer retransmitting table, find with described Ethernet message in target MAC (Media Access Control) address and the corresponding RPR looped network side interface of VID, then transmit described Ethernet message to described RPR Service Processing Module by the ethernet channel clean culture of described RPR looped network side interface correspondence;
Step 6023, if in described two-layer retransmitting table, do not find with described Ethernet message in target MAC (Media Access Control) address and the corresponding interface of VID, described interface comprises described a plurality of RPR looped network side interface and local interface, then according to the broadcasting behavior of presetting, by described a plurality of RPR looped network side interfaces or one of them pairing ethernet channel, broadcasting is transmitted described Ethernet message to described RPR Service Processing Module.
Wherein if described RPR looped network side interface is two, the then broadcasting behavior of presetting of the described basis in the step 6023, by described a plurality of RPR looped network side interfaces or one of them pairing ethernet channel, broadcasting is transmitted described Ethernet message to described RPR Service Processing Module and is comprised:
Step 6023 ', when determining that according to the topology information of described RPR looped network described RPR looped network is closed-loop structure, then transmit described Ethernet message to described RPR Service Processing Module by the broadcasting of one of two described RPR looped network side interfaces; In this step, also can set simultaneously and transmit by two RPR looped network side interface broadcasting, but must preestablish the message of transmitting by the broadcasting of each RPR looped network side interface and mail to which RPR website on the RPR looped network, as long as the RPR website that both direction sends is different.
Step 6023 ", when determining that according to the topology information of described RPR looped network described RPR looped network is open loop structure, then broadcast respectively and transmit described Ethernet message to described RPR Service Processing Module by two described RPR looped network side interfaces.
In addition, also comprise: Ethernet two layer service processing modules delete preserve in the described two-layer retransmitting table the described a plurality of RPR looped network side interfaces do not searched in time and the corresponding relation of MAC Address and VID are being set.
Particularly, sending the process of data to RPR looped network side, comprising from local network device:
1) the Ethernet message enters Ethernet two layer service processing modules from local network device, carry out L2 address study, get the source MAC and the VID of this Ethernet message, set up the mapping table of MAC Address and VID and interface, promptly set up two-layer retransmitting table with the local interface that receives; Use the target MAC (Media Access Control) address and the VID of this Ethernet message simultaneously, search the MAC Address in the two-layer retransmitting table and the mapping relations of VID and interface, if find matched interfaces, then described Ethernet message is transmitted in clean culture, if do not find matched interfaces, then described Ethernet message is transmitted in broadcasting.For example, as shown in Figure 4, if the interface 1 for being set in this two-layer retransmitting table by the RPR Service Processing Module that finds in two-layer retransmitting table sends this Ethernet message, then this Ethernet message is that the ring 0 that will send to the RPR looped network gets on; If the Ethernet message for being sent by interface 2 that finds, then this Ethernet message is that the ring 1 that will send to the RPR looped network gets on.
2) RPR Service Processing Module, receive the Ethernet message from Ethernet two layer service processing modules after, after carrying out RPR message encapsulation etc. and handling, the RPR message after the encapsulation is sent on the RPR looped network.As shown in Figure 4, from the Ethernet message that interface 3 receives, send on the corresponding ring 0 after being encapsulated as the RPR message; From the Ethernet message that interface 4 receives, send on the corresponding ring 1 after being encapsulated as the RPR message.For wanting past simultaneously ring 0 and the message that ring 1 sends,, can be that the boundary carries out transmitted in both directions with " cut point ", to avoid occurring overlapping transmission according to definite method of existing topology " cut point " if the RPR looped network is the closed loop topological structure.If the open loop topological structure, then open loop breakpoint place is topology " cut point ".
In the present embodiment, since in the step 602 concrete regulation in two-layer retransmitting table, preserve the corresponding relation of described a plurality of RPR looped network side interfaces and MAC Address and VID, and be provided with the corresponding relation of RPR looped network side interface and ring ID, therefore, the loops fruit that selects that the RPR Service Processing Module obtains in the step 603 can be the interface of regulation and the direct corresponding relation of ring ID, and this moment, the RPR Service Processing Module need not to select the ring decision-making again.
What present embodiment provided sends method of message to the RPR looped network, by between Ethernet two layer service processing modules and RPR Service Processing Module, many Ethernet paths being set, realize that the bandwidth of Ethernet transmission bandwidth and RPR looped network is identical or greater than the bandwidth of RPR looped network, thus raising RPR looped network and the data transfer bandwidth during local network is communicated by letter; In addition, utilize two layers of forwarding capability of Ethernet two layer service processing modules to realize RPR choosing ring, can also make from local network device and reach the linear speed processing to the RPR choosing ring that the RPR looped network sends message, alleviate the software processes burden of RPR Service Processing Module, send the Ethernet path of message and the bandwidth match and the use of RPR looped network thereby further optimize from local network device to the RPR looped network, the system that makes can more effectively utilize the bandwidth of RPR looped network.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.