Summary of the invention
Embodiments provide method and the equipment of a kind of heterogeneous network double layer intercommunication, in order to realize the double layer intercommunication of heterogeneous network on an equipment.
The method of the heterogeneous network double layer intercommunication that the embodiment of the present invention provides, comprising:
At least two kinds of heterogeneous network accesses are mapped to same broadcast territory, for often kind of network insertion wherein, according to the equipment interface of its access style, packaging information and correspondence, maps to corresponding access point, and configure corresponding mapping ruler;
When forwarding equipment generates forwarding-table item according to the message received, inquire about described mapping ruler, if obtaining the broadcast territory corresponding with described message and access point by inquiring about described mapping ruler, then in the broadcast territory that described message is corresponding, source MAC address according to described message sets up forwarding-table item, is added to by access point corresponding for described message in the outgoing interface list of forwarding-table item of foundation;
After described forwarding equipment receives unicast data message or multicast data message, according to the target MAC (Media Access Control) address of the message received, broadcast in correspondence and territory is inquired about corresponding forwarding-table item, and forward the message received according to the forwarding-table item inquired; Wherein, if inquiring in the outgoing interface list of corresponding forwarding-table item and this forwarding-table item and comprising access point, then obtain the access style corresponding with the access point in outgoing interface list, packaging information and outgoing interface by inquiring about described mapping ruler, and after the message received being carried out corresponding encapsulation according to the access style inquired and packaging information, forward from the outgoing interface inquired.
The forwarding equipment that the embodiment of the present invention provides, comprising:
At least two kinds of heterogeneous network accesses are mapped to same broadcast territory, for often kind of network insertion wherein, according to the equipment interface of its access style, packaging information and correspondence, map to corresponding access point, and configure corresponding mapping ruler by configuration module;
Forwarding-table item processing module, for generating or safeguard forwarding-table item, wherein, when generating forwarding-table item according to the message received, inquire about described mapping ruler, if obtaining the broadcast territory corresponding with described message and access point by inquiring about described mapping ruler, then in the broadcast territory that described message is corresponding, source MAC address according to described message sets up forwarding-table item, is added to by access point corresponding for described message in the outgoing interface list of forwarding-table item of foundation;
Forward process module, after receiving unicast data message or multicast data message, according to the target MAC (Media Access Control) address of the message received, broadcasts in correspondence and inquires about corresponding forwarding-table item in territory, and forwards the message received according to the forwarding-table item inquired, wherein, if inquiring in the outgoing interface list of corresponding forwarding-table item and this forwarding-table item and comprising access point, then obtain the access style corresponding with the access point in outgoing interface list, packaging information and outgoing interface by inquiring about described mapping ruler, and after the message received being carried out corresponding encapsulation according to the access style inquired and packaging information, forward from the outgoing interface inquired. in the above embodiment of the present invention, at least two kinds of heterogeneous network accesses are mapped to same broadcast territory, for often kind of network insertion wherein, according to its access style, packaging information and corresponding equipment interface, map to corresponding access point, and configure corresponding mapping ruler, and when generating forwarding-table item, in respective broadcast territory, the outgoing interface list of corresponding forwarding-table item records the access point mated with the message received, like this when carrying out message forwarding according to message forwarding-table item, just can according to the access point in the forwarding-table item matched in respective broadcast territory, the access style corresponding according to this access point and packaging information carry out corresponding message encapsulation, and the outgoing interface corresponding according to this access point forwards the message after encapsulating, realize the double layer intercommunication in identical broadcasts territory, and mutually isolated between different broadcast territory.
Embodiment
Below for one group of PBB access, VPLS accesses, TRILL accesses, the network of SPB access Four types needs mutual intercommunication, the embodiment of the present invention is described.
In order to more clearly describe the embodiment of the present invention, introduce the concept in " broadcast territory ", at least two kinds of heterogeneous network accesses can be mapped to same broadcast territory. Message in a broadcast territory directly can carry out two layers of forwarding according to message object address, namely broadcasts the scope that territory defines double layer intercommunication. The embodiment of the present invention allows multiple broadcast territory and deposits, and different broadcast territories can not double layer intercommunication. The embodiment of the present invention uses broadcast territory mark (broadcast territory ID) uniquely to be identified in broadcast territory.
In order to realize the double layer intercommunication broadcasted in territory, the embodiment of the present invention also introduces the concept of " broadcast territory access point " (abbreviation access point). " access point " herein is logical concept, dissimilar access is mapped as different access points, such as: for VPLS network public network side, and each PW (PseudoWire, virtual link) according to the difference of its private network tags, map to different access points; For VPLS network user side, according to the difference of PORT+VLAN (VirtualLocalAreaNetwork, VLAN), map to different access points. Access point can be arranged on the interface of forwarding equipment, is equivalent to virtual interface. The embodiment of the present invention uses broadcast territory access point identity (abbreviation access point ID) to be identified by broadcast territory access point. Access point ID in identical broadcasts territory should ensure uniquely, and the access point ID in different broadcast territory can be reused.
Pre-configured mapping ruler in the embodiment of the present invention, comprise broadcast domain mapping rule and broadcast territory access point mapping ruler (namely broadcasting the mapping ruler of territory access point and access style and packaging information), and when generating message forwarding-table item (such as MAC forwarding-table item or multicast forward table item), record broadcast territory access point ID in the outgoing interface list of corresponding forwarding-table item, like this transmit according to message carry out message forward time, just can in respective broadcast territory, after matching broadcast territory access point according to object address, the access style corresponding according to this broadcast territory access point and packaging information carry out corresponding message encapsulation, and the interface corresponding according to this broadcast territory access point forwards the message after encapsulating, realize the double layer intercommunication in identical broadcasts territory, and the isolation between different broadcast territory.
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
In the embodiment of the present invention, first according to the intercommunication planning broadcast territory of heterogeneous network. Different VLAN in heterogeneous networks can be planned to a broadcast territory by the embodiment of the present invention, namely realize message two layers forwarding in this broadcast territory. Such as, the if desired user's intercommunication in the VLAN1 of the user in the VLAN1 of SPB network and PBB network, then definition broadcast territory 1, belongs to same broadcast territory to identify the VLAN1 of VLAN1 and the PBB network of SPB network; If desired the user's intercommunication in the VLAN2 of the user in the VLAN2 of SPB network and PBB network, then definition broadcast territory 2, belongs to same broadcast territory to identify the VLAN2 of VLAN2 and the PBB network of SPB network. Namely the planning information in broadcast territory, also broadcast domain mapping rule, is configurable on forwarding equipment maybe this addressable storage location of forwarding equipment.
In addition, also wanting configuration broadcast territory access point mapping ruler on this forwarding equipment, this mapping ruler defines access style and the mapping relation of packaging information and broadcast territory access point.
The network that table 1 shows PBB access, VPLS accesses, TRILL accesses, SPB accesses Four types needs mapping ruler during mutual intercommunication, according to actual networking situation and intercommunication demand, and can in the increase of the basic enterprising line discipline of table 1, deletion or amendment.
The mapping ruler of table 1, broadcast territory access point and access style
" mapping table of PW private network tags and access point ID " pointed out in table 1 defines the mapping relation of each PW private network tags and access point ID, such as, and the corresponding access point ID 2 of corresponding access point ID 1, the PW private network tags 2 of PW private network tags 1. Other mapping table pointed out in table 1 is similar, for another example, in " PORT+VLAN of AC and the mapping table of access point ID ", and the corresponding access point ID 5 of the corresponding access point ID 4, PORT1+VLAN2 of PORT1+VLAN1.
Owing to, after network is disposed, on forwarding equipment, the access style on each interface has just been fixed up. As shown in Figure 1, the interface PORT1 of router is PBB access, and PORT2 is TRILL access, and PORT3 is VPLS access, and PORT4 is SPB access. And, for forwarding equipment, the relevant information of often kind of access style is (as VPLS user accesses the VLAN information of side, and the private network tags information of public network access side) also it is known, therefore, can obtain broadcasting the attaching relation of territory and this broadcast territory access point, and the corresponding relation of broadcast territory access point and forwarding equipment interface, access style and packaging information, namely these correspondence relationship information embody broadcast territory and the mapping ruler of broadcast territory access point.
These mapping ruler information can adopt form or other data structure storage on forwarding equipment or the addressable position of forwarding equipment. Here forwarding equipment is generally network edge device, such as PE (ProviderEdge, the edge device on service provider's network). Table 2 is disposed and the mapping ruler shown in table 1 for network shown in Fig. 1, shows the part mapping rule that tabulated form stores.
Table 2, mapping ruler table
Wherein, the public network access of the VPLS in broadcast territory 1 comprises PW1 and PW2, and the access of user side comprises PORT1+VLAN1 and PORT1+VLAN2 of PBB.
Complete the planning of above-mentioned broadcast territory and after carrying out above-mentioned configuration on forwarding equipment, namely realize heterogeneous network the intercommunication of two layers by this forwarding equipment.
Below in conjunction with Fig. 2, the flow process carrying out unicast data message forwarding between heterogeneous network at two layers is described. As shown in Figure 2, this flow process can comprise:
Step 201, after forwarding equipment receives unicast data message, inquires about pre-configured mapping ruler, obtains the access point (hereinafter referred to as entering interface access point) that the access style with this message mates, and also can obtain corresponding broadcast territory further.
When specifically implementing, forwarding equipment is by query mappings rule list, obtain the attaching relation (namely broadcast the corresponding relation of territory ID and access point ID) of access point with broadcast territory, thus judge this message whether enter the broadcast territory corresponding to interface identical with the broadcast territory corresponding to outgoing interface.
Step 208, forwarding equipment is according to the outgoing interface access point of this message matched in step 205, query mappings rule, obtain the access style corresponding with this outgoing interface access point and packaging information, and according to this access style and packaging information, user's message is encapsulated, and the message after encapsulation is forwarded from the interface corresponding with this access point.
Such as, if forward matched to encapsulation type corresponding to outgoing interface access point be the access of VPLS public network side, packaging information is PW private network tags 1, then user's message is carried out VPLS encapsulation by the equipment that forwards, and wherein carries PW private network tags 1; If forward matched to encapsulation type corresponding to outgoing interface access point be the access of VPLS user side, packaging information comprises VLAN1, then user's message is carried out VPLS encapsulation by the equipment that forwards, and the VLAN information wherein carried is VLAN1.
Under normal circumstances, message forwards should meet horizontal segmentation principle, and the embodiment of the present invention is no exception. In the embodiment of the present invention, in same broadcast territory, it is divided into the access of user side and the access of network side, isolation is needed, it is achieved horizontal segmentation, to avoid the formation of loop between the same side access is inner, namely, in same broadcast territory, the message come from network side can not forward to network side again, but the message come from user side then can forward to the access point in this broadcast territory of network side and user side. During specific embodiment, realize horizontal segmentation by the isolation property arranging oneself at each broadcast territory access point. Such as, corresponding to the broadcast territory access point of VPLS network AC (AttachmentCircuit, the access circuit) side of forwarding equipment, the isolation property of setting is " user side ", represents the access of user side; Corresponding to the broadcast territory access point of the VPLS network PW side of forwarding equipment, the isolation property of setting is " network side ", represents the access of network side. Forwarding equipment is before E-Packeting, can judge whether to meet horizontal segmentation principle according to the isolation property that message enters interface access point and outgoing interface access point, such as: if entering the isolation property of interface access point for user side, the isolation property of outgoing interface access point is network side, then meet horizontal segmentation principle, if the isolation property entering interface access point and outgoing interface access point is network side, then do not meet horizontal segmentation principle. Still, with shown in Fig. 1, in same broadcast territory, PBB access and TRILL access map the user side to broadcast territory, VPLS access and SPB access map the network side to broadcast territory, like this, just can not exchange visits between the user of VPLS access and SPB access, PBB access and TRILL access can only be accessed; The user of PBB access and TRILL access then can access other access point.
Step 209, forwarding equipment abandons the message received.
Consider that between broadcast territory be independent, in different broadcast territory, may have identical MAC address. In this case, forwarding equipment is when looking into forwarding-table item according to the target MAC (Media Access Control) address of message, it is possible to inquire the forwarding-table item that multiple MAC address is identical. In this kind of situation, for each forwarding-table item inquired, according to the access point in the outgoing interface list of forwarding-table item, obtain the broadcast territory corresponding to access point by inquiring about described mapping ruler; Then, judge whether the forwarding-table item inquired has the broadcast territory ID corresponding to the access point in the outgoing interface list of forwarding-table item, with described enter broadcast territory ID corresponding to interface identical, if having, then forward the message received according to this forwarding-table item, otherwise abandon forwarding the message received.
Some step in above-mentioned flow process, it does not have strict timing requirements, such as, after the step of MAC address, source study also can occur in the step peeling off packet outer layer encapsulation. Owing to the process of the study of MAC address, source and stripping packet outer layer encapsulation can by different Implement of Function Modules, therefore these two kinds operations also can be parallel.
In another embodiment, it is possible to corresponding broadcast territory is arranged transmits, namely transmit and broadcast territory and there is direct corresponding relation, as can broadcast territory ID as the index transmitted. Accordingly, when the equipment of forwarding generates forwarding-table item, first the broadcast ID corresponding with the message access style of message (or with) and access point ID is obtained by query mappings rule list, then corresponding transmitting is indexed according to this broadcast territory ID, setting up forwarding-table item in this is transmitted, the process of establishing of forwarding-table item is identical with previous embodiment. When forwarding device forwards message, first the broadcast ID corresponding with entering the message access style of message (or with) and access point ID is obtained by query mappings rule list, then corresponding transmitting is indexed according to this broadcast territory ID, corresponding forwarding-table item is inquired about in this is transmitted, being encapsulated by message according to the forwarding-table item found and forward, the encapsulation of its message, forwarding process are identical with previous embodiment.
Certainly, it is possible to territory ID will be broadcasted and write in forwarding-table item, as when generating multicast forward table item, access point ID in corresponding outgoing interface list, record the ID in the broadcast territory of this access point ownership, that is, embodied the corresponding relation of broadcast territory and forwarding-table item by this kind of mode. Accordingly, when forwarding device forwards message, first obtain message by query mappings rule list and enter broadcast territory ID corresponding to interface, then according to the object address lookup forwarding-table item of message, if the broadcast territory ID that the broadcast territory ID corresponding to access point in the forwarding-table item outgoing interface list inquired is corresponding with entering interface is identical, then message encapsulated according to this forwarding-table item inquired and forwards, otherwise abandoning forwarding this message. Its message encapsulates, forwarding process is identical with previous embodiment.
Further, if if forwarding when equipment query MAC transmits and not inquiring the table item mated with target MAC (Media Access Control) address, the message namely received is unknown clean culture message, then broadcasted by this message. concrete, if in step 205, if forwarding when equipment query MAC transmits and not inquiring the table item mated with target MAC (Media Access Control) address, the equipment that then forwards is according to the broadcast territory (the broadcast territory that namely step 101 matches) entering interface access point ownership of clean culture message, inquire about from mapping ruler table and corresponding with this broadcast territory all meet horizontal segmentation principle and the outgoing interface access point of source filtration principle, each is met to horizontal segmentation principle and the outgoing interface access point of source filtration principle, by query mappings rule, obtain corresponding access style and packaging information, according to this access style and packaging information, user's message is carried out corresponding encapsulation, and the message after encapsulation is forwarded from the interface that this outgoing interface access point is corresponding.
Source herein is filtered principle and is referred to: when E-Packeting, from it, message can not be entered interface access point and forward, return, to avoid, the loop problem formed from source access point. When specifically implementing, when copy packet to corresponding outgoing interface access point, forwarding equipment check this outgoing interface access point ID whether with this message to enter interface access point ID identical, if it is identical, then do not forward from this outgoing interface access point, so just achieve source filtering function, avoid the problem returning from source access point and easily forming loop.
Fig. 3 shows the flow process of a kind of preferred embodiment forwarding unknown clean culture message, and as shown in the figure, when the judged result in step 206 is no, forwarding equipment performs following flow process:
Step 210, enters the broadcast territory (the broadcast territory ID matched in step 201) of interface access point ownership, access point corresponding with this broadcast territory in query mappings rule list according to message.
Step 211, judges whether the access point currently inquired meets horizontal segmentation principle, if then proceeding to step 213, otherwise proceeding to step 212.
Step 212, abandons the access style corresponding with this access point and user's message is encapsulated by packaging information, and forwards this message from the corresponding interface, then proceeds to step 216.
Step 213, judges whether the access point currently inquired meets source and filter principle, if then proceeding to step 215, otherwise proceeding to step 214.
Step 214, abandons the access style corresponding with this access point and user's message is encapsulated by packaging information, and forwards this message from the corresponding interface, then proceeds to step 216.
Step 215, according to the access point currently inquired, the access style that inquiry is corresponding and packaging information, carry out corresponding encapsulation to user's message, and forward from the interface that this access point is corresponding.
Step 216, inquires about this message and enters in the broadcast territory of interface access point ownership whether to also have other access point, if having, then proceed to step 211 and judge, otherwise end message forwarding process.
After forwarding equipment receives broadcasting packet, its message forwarding process is similar with the forwarding process of unknown clean culture message. Fig. 4 shows the broadcasting packet forwarding process that a kind of preferred embodiment provides. After forwarding equipment receives broadcasting packet, by query mappings rule, obtain broadcast territory ID (step 401) of coupling, peel off the outer envelope of this message, obtain the user's message (step 402) of internal layer; Then, broadcast territory ID corresponding to interface is entered according to message, access point ID corresponding with this broadcast territory ID in query mappings rule list, each is met to horizontal segmentation principle and the access point of source filtration principle, according to this access point ID query mappings rule, obtain corresponding access style and packaging information, according to this access style and packaging information, user's message is carried out corresponding encapsulation, and the message after encapsulation is forwarded (step 403��407) from the interface that this access point is corresponding.
Group in the embodiment of the present invention reports the principle of literary composition forwarding process, and substantially identical with the forwarding principle of clean culture message, brief description is as follows:
When forwarding equipment receives after IGMP (InternetGroupManagementProtocol, Internet fabric anomaly agreement) member reports message, generate respective sets and broadcast forwarding-table item. Broadcast in the process of forwarding-table item in generation respective sets, forwarding equipment is reported message (or access style of message) according to IGMP member and is entered interface, by query mappings rule list, obtain corresponding access point ID, this access point ID being added in the outgoing interface list that respective sets broadcasts forwarding-table item, described respective sets is broadcast forwarding-table item and is referred to that IGMP member reports the multicast forward table item that the group of message broadcasts matching addresses. Dispose and the mapping ruler shown in table 2 for the network shown in Fig. 1, if forwarding equipment receives IGMP member from PORT1 and reports message (VLAN belonging to user is VLAN1), then obtain access point 1 by question blank 2, thus the ID of access point 1 is added in the outgoing interface list that respective sets broadcasts forwarding-table item; If forwarding equipment receives IGMP member from PORT3 and reports message (the PW private network tags of outer envelope is label 1), then obtain access point 3 by question blank 2, thus the ID of access point 3 is added in the outgoing interface list that respective sets broadcasts forwarding-table item.
After forwarding equipment receives multicast data message, carry out on the one hand MAC address, source study (MAC address, the source learning process of the clean culture message in its source MAC address learning process and previous embodiment is similar), one side broadcasts MAC address lookup multicast forward table according to the object group of this message, and when, after the multicast forward table item inquiring coupling, forwarding this multicast data message according to the outgoing interface list of this multicast forward table item. Due to record in the outgoing interface list of multicast forward table is access point ID, therefore in the process according to outgoing interface list multicast data forwarding message, forwarding equipment is for each access point ID in multicast forward table item outgoing interface list, query mappings rule list, obtain corresponding access style and packaging information, after multicast data message is carried out corresponding encapsulation, the interface corresponding from this access point ID forwards.
Further, if not inquiring the multicast forward table item of coupling when forwarding equipment query multicast forward table, the message namely received is unknown multicast packets, then broadcasted by this message, its broadcast flow process is substantially identical with the broadcast flow process of unknown clean culture message, does not repeat them here.
It should be noted that, the embodiment of the present invention can be superimposed upon on general switch and realize. If the message that this exchange board receives does not belong in the broadcast territory of the embodiment of the present invention, then according to original switch technology, this message is carried out forward process.
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of forwarding equipment.
See Fig. 5, it it is the structural representation of the forwarding equipment that the embodiment of the present invention provides.
Configuration module 501, at least two kinds of heterogeneous network accesses are mapped to same broadcast territory, for often kind of network insertion wherein, equipment interface according to its access style, packaging information and correspondence, map to corresponding access point, and configure corresponding mapping ruler (mapping ruler is ditto described);
Forwarding-table item processing module 502, for generating or safeguard forwarding-table item, wherein, when generating forwarding-table item according to the message received, inquire about described mapping ruler, if obtaining the broadcast territory corresponding with described message and access point by inquiring about described mapping ruler, then in the broadcast territory that described message is corresponding, set up the forwarding-table item based on MAC address, access point corresponding for described message is added in the outgoing interface list of forwarding-table item of foundation;
Forward process module 503, after receiving unicast data message or multicast data message, according to the target MAC (Media Access Control) address of the message received, broadcasts in correspondence and inquires about corresponding forwarding-table item in territory, and forwards the message received according to the forwarding-table item inquired; Wherein, if inquiring in the outgoing interface list of corresponding forwarding-table item and this forwarding-table item and comprising access point, then obtain the access style corresponding with the access point in outgoing interface list, packaging information and outgoing interface by inquiring about described mapping ruler, and after the message received being carried out corresponding encapsulation according to the access style inquired and packaging information, forward from the outgoing interface inquired.
Concrete, a kind of processing mode of forward process module 503 is: enter broadcast territory corresponding to interface by what inquire about message that described mapping ruler obtains receiving, target MAC (Media Access Control) address according to the message received, enter corresponding forwarding-table item is inquired about in broadcast territory corresponding to interface described, and forward the message received according to the forwarding-table item inquired;
Another kind of processing mode of forward process module 503 is: enters broadcast territory corresponding to interface by what inquire about message that described mapping ruler obtains receiving, inquires about corresponding forwarding-table item according to the target MAC (Media Access Control) address of the message received; If the forwarding-table item quantity inquired is one, then according to the access point in the outgoing interface list of the forwarding-table item inquired, the broadcast territory corresponding to this access point is obtained by inquiring about described mapping ruler, compare the broadcast territory corresponding to the access point in interface list whether with described enter broadcast territory corresponding to interface identical, if it is identical, then forward the message received according to the forwarding-table item inquired, otherwise abandon forwarding the message received; If the forwarding-table item quantity inquired is at least 2, then according to the access point in the outgoing interface list of each forwarding-table item inquired, the broadcast territory corresponding to each access point is obtained by inquiring about described mapping ruler, if wherein there being the broadcast territory corresponding to the access point in the outgoing interface list of forwarding-table item, with described enter broadcast territory corresponding to interface identical, then forward the message received according to this forwarding-table item, otherwise abandon forwarding the message received.
Concrete, also it is provided with isolation property corresponding to access point, wherein, the user side isolation property of access point shows that it is the access of user side, and the network side isolation property forwarding equipment access point shows that it is the access of network side. Accordingly, forward process module 503 by encapsulation after unicast data message or multicast data message from outgoing interface forward before, the isolation property of access point corresponding according to described outgoing interface and the isolation property entering access point corresponding to interface of described unicast data message or multicast data message, judge whether it is from network side to the forwarding of network side, and when being judged as NO, the unicast data message after encapsulation or multicast data message are forwarded by forward process module 503 from outgoing interface.
Further, forward process module 503 also for: if after receiving unicast data message or multicast data message, do not inquire corresponding forwarding-table item, then enter broadcast territory corresponding to interface and access point by what inquire about that described mapping ruler obtains described unicast data message or multicast data message; By inquire about described mapping ruler obtain described in enter all access points in broadcast territory corresponding to interface, for wherein meeting horizontal segmentation principle and each access point of source filtration principle, corresponding access style, packaging information and outgoing interface is obtained by inquiring about described mapping ruler, according to the access style inquired and packaging information, described unicast data message or multicast data message are carried out corresponding encapsulation, and the message after encapsulation is forwarded from the outgoing interface inquired. Wherein, judge whether to meet horizontal segmentation principle and judge whether that the method meeting source filtration principle is the same.
Further, forward process module 503, after receiving broadcasting packet, enters broadcast territory corresponding to interface and access point by what inquire about that described mapping ruler obtains described broadcasting packet; Broadcast territory corresponding to interface is entered according to described broadcasting packet, the all access points in this broadcast territory are obtained by inquiring about described mapping ruler, for wherein meeting horizontal segmentation principle and each access point of source filtration principle, corresponding access style, packaging information and outgoing interface is obtained by inquiring about described mapping ruler, according to the access style inquired and packaging information, described broadcasting packet is carried out corresponding encapsulation, and the message after encapsulation is forwarded from the outgoing interface inquired. Wherein, judge whether to meet horizontal segmentation principle and judge whether that the method meeting source filtration principle is the same.
Further, if forward process module 503 receives described unicast data message or multicast data message from public network side, then peel map network type outer envelope off, obtain the user's message of internal layer; Accordingly, the message of forward process module 503 packaged by the access style inquired and packaging information is the user's message after peeling map network type outer envelope off. If this equipment receives described unicast data message or multicast data message from user side, then the message of forward process module 503 packaged by the access style inquired and packaging information is the described unicast data message or multicast data message that receive.
In sum, embodiments provide on the same network equipment, it is achieved the scheme of VPLS network, PBB network, SPB network, TRILL network four stack intercommunication, saves equipment and link circuit resource, it provides flexible and changeable intercommunication mechanism.
Through the above description of the embodiments, the technician of this area can be well understood to the present invention and can realize by the mode that software adds required general hardware platform, naturally it is also possible to by hardware, but in a lot of situation, the former is better enforcement mode. Based on such understanding, the technical scheme of the present invention in essence or says that part prior art contributed can embody with the form of software product, this computer software product is stored in a storage media, comprise some instructions with so that a station terminal equipment (can be mobile phone, Personal Computer, server, or the network equipment etc.) perform the method described in each embodiment of the present invention.
The above is only the preferred embodiment of the present invention; it is noted that for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.