CN107018059B - A kind of message forwarding method and device - Google Patents

A kind of message forwarding method and device Download PDF

Info

Publication number
CN107018059B
CN107018059B CN201710277224.0A CN201710277224A CN107018059B CN 107018059 B CN107018059 B CN 107018059B CN 201710277224 A CN201710277224 A CN 201710277224A CN 107018059 B CN107018059 B CN 107018059B
Authority
CN
China
Prior art keywords
message
multicast
forwarding
public
private network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710277224.0A
Other languages
Chinese (zh)
Other versions
CN107018059A (en
Inventor
李华舟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710277224.0A priority Critical patent/CN107018059B/en
Publication of CN107018059A publication Critical patent/CN107018059A/en
Application granted granted Critical
Publication of CN107018059B publication Critical patent/CN107018059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Abstract

The present invention provides a kind of message forwarding method and device, this method comprises: when receiving private network multicast message, according to IP inquiry forwarding-table items of multicast of the private network multicast message;If there are public network domain outgoing interfaces for the private network multicast message, which is packaged, designated identification information is carried in the message after the encapsulation, and the message is copied to public loopback mouth;When receiving the message after the public loopback choma returns, judge the designated identification information whether is carried in the message;If so, IP inquiry forwarding-table items of outer layer multicast according to the message carry out message forwarding;Otherwise, decapsulation processing is carried out to the message, and carries out message forwarding according to IP inquiry forwarding-table items of the multicast of the message after decapsulation.The loopback mouth quantity and loopback port band width of PE equipment can be saved using the embodiment of the present invention.

Description

A kind of message forwarding method and device
Technical field
The present invention relates to network communication technology field more particularly to a kind of message forwarding methods and device.
Background technique
Multicasting VPN (Virtual Private Network, Virtual Private Network) is one in BGP (Border Gateway Protocol, Border Gateway Protocol)/MPLS (Multi-Protocol Label Switching, multiprotocol label Exchange) support the technology of multicast service on the basis of IP (Internet Protocol, Internet protocol) VPN, the technology by pair Private network multicast message is packaged, and it is transmitted by the Multicast Tunnel established between each Site (website), to complete multicast Transmission of the data between private network.
Multicasting VPN message forward process mainly includes two kinds of forms:
1, it encapsulates direction: one only one layer multicast IP messages is encapsulated as the message with Layer 2 Multicast IP, And according to packet outer layer multicast IP forwardings of tabling look-up after encapsulation;
2, it decapsulates direction: a message with Layer 2 Multicast IP being decapsulated, outer layer multicast IP head is stripped, And according to the IP forwardings of tabling look-up of the multicast of the message after decapsulation.
However, in practical application scene, for encapsulating the message in direction, i.e. private network multicast message (CE (Customer Edge, customer network edge) equipment be sent to PE (Provider Edge, service provider network edge) equipment group casting Text), may not only there be the outgoing interface in private network domain, but also there are the outgoing interface in public network domain (i.e. multicasting VPN tunnel exits);Wherein, Private network domain outgoing interface needs IP determinations of tabling look-up of multicast according to original private network multicast message;Public network domain outgoing interface is needed according to envelope IP determinations of tabling look-up of outer layer multicast of message after dress.I.e. for the message for encapsulating direction, PE equipment needs to inquire to be forwarded twice List item is (according to IP inquiry forwarding-table items of multicast of the message before encapsulation, and the outer layer multicast IP according to the message after encapsulation Head inquiry forwarding-table item).
And most of exchange chip cannot do physics forwarding twice in succession (i.e. by internal layer multicast IP forwardings of tabling look-up at present To private network domain outgoing interface and tabled look-up by outer layer multicast IP be transmitted to public network domain outgoing interface), therefore, for public network domain direction Forwarding needs to carry out the message after encapsulation after loopback choma returns according to outer layer multicast IP forwardings of tabling look-up.
Similarly, for the message in decapsulation direction, i.e., (P (Provider, service provider network) is set public network multicast message Preparation gives the multicast message of PE equipment), may also not only there be the outgoing interface in public network domain, but also there are the outlets in private network domain;Its In, public network domain outgoing interface needs determination of tabling look-up according to the outer layer multicast head of public network multicast message;Private network domain outgoing interface needs basis IP determinations of tabling look-up of multicast of message after decapsulation.The forwarding in private network domain direction is needed message carrying out loopback choma to return Afterwards, message is decapsulated, and according to the IP forwardings of tabling look-up of the multicast of the message after decapsulation.I.e. for decapsulation direction Message, PE equipment be also required to inquiry twice forwarding-table item (according to IP inquiry forwarding tables of outer layer multicast of the message before decapsulation , and forwarding-table item is inquired according to multicast IP (i.e. internal layer multicast IP) of the message after decapsulation).
Practice is found, in above scheme, for encapsulating the place of the Message processing process in direction and the message in decapsulation direction Process is managed, the message that loopback mouth receives is the message of the same type, and PE equipment cannot be distinguished whether need to return loopback choma Message afterwards carries out decapsulation processing, and therefore, above scheme, which needs that two logic boxs are arranged in PE equipment, answers back, to cause The waste of port and bandwidth.
Summary of the invention
The present invention provides a kind of message forwarding method and device, is needed with solving PE equipment in existing multicasting VPN implementation The problem of port caused by two logic boxs are answered back and bandwidth waste are set.
According to a first aspect of the embodiments of the present invention, a kind of message forwarding method is provided, virtual private network group is applied to Service provider network edge PE equipment in net, this method comprises:
When receiving private network multicast message, according to IP inquiry forwarding-table items of multicast of the private network multicast message;
If there are public network domain outgoing interfaces for the private network multicast message, which is packaged, in the encapsulation Designated identification information is carried in message afterwards, and the message is copied to public loopback mouth;
When receiving the message after the public loopback choma returns, judge the finger whether is carried in the message Determine identification information;
If so, IP inquiry forwarding-table items of outer layer multicast according to the message carry out message forwarding;
Otherwise, decapsulation processing is carried out to the message, and according to IP inquiry forwarding tables of the multicast of the message after decapsulation Item carries out message forwarding.
According to a second aspect of the embodiments of the present invention, a kind of apparatus for forwarding message is provided, virtual private network group is applied to Service provider network edge PE equipment in net, the device include:
Receiving unit, for receiving message;
Query unit, for when the receiving unit receives private network multicast message, according to the private network multicast message IP inquiry forwarding-table items of multicast;
Retransmission unit carries out the private network multicast message if there are public network domain outgoing interfaces for the private network multicast message Encapsulation carries designated identification information in the message after the encapsulation, and the message is copied to public loopback mouth;
Judging unit is sentenced when for receiving the message after the public loopback choma returns when the receiving unit Break and whether carries the designated identification information in the message;
The retransmission unit, if judging to carry designated identification information, basis in the message for the judging unit IP inquiry forwarding-table items of outer layer multicast of the message carry out message forwarding;Otherwise, decapsulation processing, and root are carried out to the message Message forwarding is carried out according to IP inquiry forwarding-table items of multicast of the message after decapsulation.
It is looked into when receiving private network multicast message according to multicast IP of the private network multicast message using the embodiment of the present invention Forwarding-table item is ask to be packaged the private network multicast message, if there are public network domain outgoing interfaces for the private network multicast message in the envelope Designated identification information is carried in message after dress, and the message is copied to public loopback mouth, in turn, when receiving by public Loopback choma return after message when, judge designated identification information whether is carried in the message;If so, according to the outer of the message Layer IP inquiry forwarding-table item of multicast carry out message forwarding;Otherwise, decapsulation processing is carried out to the message, and according to decapsulation after IP inquiry forwarding-table items of multicast of message carry out message forwardings, it is thus possible to only have a shared ring in PE equipment In the case where answering back, realizes multicasting VPN, save the loopback mouth quantity and loopback port band width of PE equipment.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of message forwarding method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of concrete application scene provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of apparatus for forwarding message provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another apparatus for forwarding message provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another apparatus for forwarding message provided in an embodiment of the present invention.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention real The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present invention Case is described in further detail.
It referring to Figure 1, is a kind of flow diagram of message forwarding method provided in an embodiment of the present invention, wherein the report Literary retransmission method can be applied to the PE equipment in VPN networking, as shown in Figure 1, the message forwarding method may include following step It is rapid:
Step 101, when receiving private network multicast message, according to IP inquiry forwarding tables of multicast of the private network multicast message .
In the embodiment of the present invention, when PE equipment receives private network multicast message, such as the multicast message that CE equipment is sent, PE is set Standby forwarding-table item that can be local according to multicast IP of private network multicast message inquiries.Wherein, which only wraps Containing one layer of multicast IP head.
If there are public network domain outgoing interfaces for step 102, the private network multicast message, which is packaged, Designated identification information is carried in the message after the encapsulation, and the message is copied to public loopback mouth.
In the embodiment of the present invention, if PE equipment turns according to multicast IP of the private network multicast message received inquiries are local Forwarding list item, determining the private network multicast message, there are public network domain outgoing interfaces, i.e. the multicasting VPN tunnel (group between PE equipment and P equipment Broadcast tunnel) outlet, then PE equipment needs will be packaged the message, and the message after encapsulation is copied to loopback mouth (herein In be known as public loopback mouth, i.e., encapsulation direction and decapsulation direction share a loopback mouth).
Wherein, in order to make PE equipment can recognize that whether the message after loopback choma returns needs to decapsulate, at this In inventive embodiments, PE equipment copies to the message after above-mentioned encapsulation before public loopback mouth, it is also necessary to after the encapsulation Carry designated identification information in message, which can serve to indicate that PE equipment is not needed to carrying the specified mark The message for knowing information carries out decapsulation processing.
In a kind of optional embodiment, designated identification information is carried in above-mentioned message after packaging, may include:
By outer layer (Virtual Local Area Network, virtual LAN) Tag (label) of the message after encapsulation It is revised as assigned vlan Tag;Wherein, assigned vlan Tag is any VLAN Tag except VLAN1~4094.
In this embodiment, it is contemplated that during message actual transmissions, the value of VLAN Tag is usually VLAN1~4094 In value, the VLAN Tag without except, therefore, can by except VLAN1~4094 VLAN Tag (herein claim For assigned vlan Tag), such as VLAN0 or VLAN4095, as above-mentioned designated identification information.
Correspondingly, in this embodiment, when PE equipment needs to be packaged message the loop back processing being in direction, PE is set Before the standby message by after encapsulation is copied to public loopback mouth, can this outside VLAN Tag of message is revised as it is above-mentioned Assigned vlan Tag.
When PE equipment receives the message after returning by public loopback choma, whether can be carried according in the message There is above-mentioned assigned vlan Tag, it is determined whether needs carry out decapsulation processing to the message.
In another optional embodiment, designated identification information is carried in above-mentioned message after packaging, can wrap It includes:
Default identification field is added in message after packaging, which is used to indicate corresponding message and is not required to Carry out decapsulation processing.
In this embodiment, in order to make PE equipment can recognize that by public loopback choma return after message whether need Carry out decapsulation processing, that is, identify by public loopback choma return after message when encapsulation direction message (do not need into Row decapsulation processing) or decapsulate the message (needing to carry out decapsulation processing) in direction, can preset one it is special Identification field (referred to herein as default identification field), the message which is used to indicate response does not need to be solved Encapsulation process, namely carry the message for presetting identification field and do not need to carry out decapsulation processing.
Correspondingly, in this embodiment, when PE equipment needs to be packaged message the loop back processing being in direction, PE is set Before the standby message by after encapsulation is copied to public loopback mouth, above-mentioned default identification field can will be added in message at this.
When PE equipment receives the message after returning by public loopback choma, whether can be carried according in the message There is above-mentioned default identification field, it is determined whether needs carry out decapsulation processing to the message.
Further, in this embodiment, if PE equipment determines that the message after public loopback choma returns carries Above-mentioned default identification field, and the outgoing interface of the message has been determined according to IP inquiry forwarding-table items of the outer layer multicast of the message When, PE equipment needs the above-mentioned default identification field that will be carried in the message before forwarding the message by the outgoing interface It deletes.
It using assigned vlan Tag or default identification field as designated identification information is only this hair it should be appreciated that above-mentioned Two kinds of specific examples of designated identification information in bright embodiment, rather than limiting the scope of the present invention, of the invention real On the basis of applying example, those skilled in the art are not under the premise of making the creative labor to the specified mark in the embodiment of the present invention Know adjustment or modification that information is made, should belong to the scope of the present invention.
In the embodiment of the present invention, when PE equipment is according to IP inquiry forwarding-table items of multicast of the private network multicast message received The private network multicast message is determined there are when the outgoing interface of private network domain, PE equipment can replicate the private network multicast message, and lead to Corresponding private network domain outgoing interface is crossed to be forwarded.
Step 103, when receive by public loopback choma return after message when, judge finger whether is carried in the message Determine identification information;If so, going to step 104;Otherwise, step 105 is gone to.
In the embodiment of the present invention, when PE equipment receives the message after public loopback choma returns, PE equipment can be with By judging whether carry above-mentioned designated identification information in the message, to determine that the message is the message for decapsulating direction, also It is the message for encapsulating direction, that is, determines the need for carrying out decapsulation processing to the message.
Step 104 carries out message forwarding according to IP inquiry forwarding-table items of outer layer multicast of the message.
It is above-mentioned specified when being carried in the message that PE equipment determines after public loopback choma returns in the embodiment of the present invention When identification information, for example, PE equipment determine this by public loopback choma return after message in carry VLAN 0, PE equipment can To determine that the message is the message for encapsulating direction, i.e. PE equipment does not need to carry out decapsulation processing to the message.At this point, PE equipment Can be directly according to IP inquiry forwarding-table items of the outer layer multicast of the message, and the message is forwarded according to query result.
Step 105 carries out decapsulation processing to the message, and according to the IP inquiry forwardings of the multicast of the message after decapsulation List item carries out message forwarding.
It is above-mentioned specified when not carried in the message that PE equipment determines after public loopback choma returns in the embodiment of the present invention When identification information, for example, PE equipment determine this by public loopback choma return after message in do not carry VLAN 0, PE equipment can To determine that the message is the message for decapsulating direction, i.e. PE equipment needs carry out decapsulation processing to the message.At this point, PE equipment Decapsulation processing can be carried out to the message, strip the outer layer multicast IP head of the message, and according to the group of the message after decapsulation IP (i.e. internal layer multicast IP) inquiry forwarding-table items are broadcast, and the message is forwarded according to query result.
As it can be seen that passing through the default finger for being used to indicate message and whether needing to decapsulate processing in method flow shown in Fig. 1 Determine identification information, when PE equipment receives private network multicast message, and determine the private network multicast message there are when the outgoing interface of public network domain, After PE equipment is packaged the message, before sending it to public loopback mouth, above-mentioned designated identification is carried in the message Information, in turn, PE equipment can be believed according to above-mentioned designated identification whether is carried in the message after public loopback choma returns Breath determines the need for carrying out decapsulation processing to the message, it is thus possible to only have a shared loopback mouth in PE equipment In the case where, it realizes multicasting VPN, saves the loopback mouth quantity and loopback port band width of PE equipment.
In the embodiment of the present invention, when PE equipment receives public network multicast message, PE equipment can be broadcasted according to public network group The outer layer IP multicast head of text inquires forwarding-table item.
When PE equipment according to IP inquiry forwarding-table items of outer layer multicast of public network multicast message determines the message, there are private networks When the outgoing interface of domain, which can be copied to above-mentioned public loopback mouth by PE equipment.
When PE equipment according to IP inquiry forwarding-table items of outer layer multicast of public network multicast message determines the message, there are public networks When the outgoing interface of domain, PE equipment can be replicated the public network multicast message, and be forwarded by corresponding public network domain outgoing interface.
In order to make those skilled in the art more fully understand technical solution provided in an embodiment of the present invention, below with reference to specific Technical solution provided in an embodiment of the present invention is described in application scenarios.
Fig. 2 is referred to, is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention, as shown in Fig. 2, In the application scenarios, Site1, Site3, Site5 and Site7 form VPN A;Site2, Site4, Stie6 form VPN B.
Based on application scenarios shown in Fig. 2, message forwarding method implementation process provided in an embodiment of the present invention is as follows:
1, when sending multicast message there are multicast source in Site5, for the multicast receivers in Site5, CE5 can be straight It connects and multicast message is transmitted to corresponding multicast receivers;For the multicast receivers in other Site, such as Site1 and Site3 Interior multicast receivers, CE5 need multicast message being sent to PE3;
2, when PE3 receives multicast message (the private network multicast message) of CE5 transmission, PE3 can be according to the multicast message The local forwarding-table item of IP inquiries of multicast;Wherein, which only includes one layer of multicast IP head;
In this embodiment, the multicast message that PE3 is sent according to the CE5 received, and according to the multicast of the multicast message When IP inquiries local forwarding-table items, it is found that there are private network domain outgoing interfaces and public network domain outgoing interface for the multicast message;
Wherein, for private network domain outgoing interface (i.e. the port (being assumed to be port (port) 3-7) of PE3 connection CE7), PE3 can Directly to replicate to the multicast message, and the message after duplication is transmitted to CE7 by port3-7, phase is transmitted to by CE7 The multicast receivers answered;
For public network domain outgoing interface, PE3 needs to encapsulate the multicast message, and by the outside VLAN of the message after the encapsulation Tag is revised as VLAN 0, and in turn, which can be copied to public loopback mouth by PE3;
3, it when PE3 receives the message by public loopback choma time, finds to carry VLAN0 in the message, in turn, PE3, which can be determined, not to be needed to decapsulate the message, and according to IP inquiry forwarding-table items of the outer layer multicast of the message into The forwarding of row message;
In this embodiment, PE3 can determine the message according to IP inquiry forwarding-table items of outer layer multicast of the message Multicasting VPN tunnel exit (be assumed to be port3-1) of the public network domain outgoing interface between PE3 and P1, and the message is passed through Port3-1 is transmitted to P1;Wherein, PE3 be sent to the outside VLAN Tag in the message of P1 can according to practical VLAN configure by VLAN 0 is revised as one in VLAN1~4094;
After P1 receives the message (public network multicast message) of PE3 transmission, message can be distinguished according to local forwarding-table item It is transmitted to PE1 and PE2;
Below by taking PE1 is to the process flow of the public network multicast message received as an example.
It 4, can be first according to the outer layer multicast IP of the public network multicast message when PE1 receives the public network multicast message of P1 transmission Head inquires local forwarding-table item;
In this embodiment, the public network multicast message that PE1 is sent according to the P1 received, and according to the public network multicast message IP inquiries of outer layer multicast local forwarding-table item when, it is found that the multicast message is not present public network domain outgoing interface, and there is only Private network domain outgoing interface;
For private network domain outgoing interface, which can be copied to public loopback mouth by PE1;
5, it when PE1 receives the message after public loopback choma returns, finds not carry VLAN0 in the message, in turn, PE1 can carry out decapsulation processing to the message, and according to the multicast of the message after decapsulation IP (i.e. internal layer multicast IP) It inquires forwarding-table item and carries out message forwarding;
In this embodiment, PE1 can determine this according to IP inquiry forwarding-table items of multicast of the message after the decapsulation The private network domain outgoing interface of message is the port (being assumed to be port1-1) of PE1 connection CE1, and the message is forwarded by port1-1 To CE1, corresponding multicast receivers are transmitted to by CE1.
Through above description as can be seen that in technical solution provided in an embodiment of the present invention, when receiving private network multicast Message, according to IP inquiry forwarding-table items of multicast of the private network multicast message, if there are public network domains to go out to connect for the private network multicast message Mouthful, then the private network multicast message is packaged, designated identification information is carried in the message after the encapsulation, and the message is answered System when receiving the message after public loopback choma returns, judges whether carry in the message in turn to public loopback mouth There is designated identification information;If so, IP inquiry forwarding-table items of outer layer multicast according to the message carry out message forwarding;Otherwise, Decapsulation processing is carried out to the message, and carries out message according to IP inquiry forwarding-table items of the multicast of the message after decapsulation and turns Hair, it is thus possible to realize multicasting VPN in the case where only having a shared loopback mouth in PE equipment, save PE equipment Loopback mouth quantity and loopback port band width.
Fig. 3 is referred to, is a kind of structural schematic diagram of apparatus for forwarding message provided in an embodiment of the present invention, wherein the dress The PE equipment that can be applied in above method embodiment is set, as shown in figure 3, the apparatus may include:
Receiving unit 310, for receiving message;
Query unit 320, for when the receiving unit 310 receives private network multicast message, according to the private network multicast IP inquiry forwarding-table items of multicast of message;
Retransmission unit 330, if for the private network multicast message there are public network domain outgoing interface, to the private network multicast message into Row encapsulation, carries designated identification information, and the message is copied to public loopback mouth in the message after the encapsulation;
Judging unit 340, for receiving the message after the public loopback choma returns when the receiving unit 310 When, judge the designated identification information whether is carried in the message;
The retransmission unit 330, if judging to carry designated identification information in the message for the judging unit 340, Then message forwarding is carried out according to IP inquiry forwarding-table items of the outer layer multicast of the message;Otherwise, which is carried out at decapsulation Reason, and message forwarding is carried out according to IP inquiry forwarding-table items of the multicast of the message after decapsulation.
In an alternative embodiment, the retransmission unit 330, if being also used to the private network multicast message, there are private network domains to go out to connect Mouthful, then the message is copied to private network domain outgoing interface.
In an alternative embodiment, the query unit 320 is also used to receive public network multicast when the receiving unit 310 When message, according to IP inquiry forwarding-table items of outer layer multicast of the public network multicast message;
The retransmission unit 330 replicates the message if being also used to the public network multicast message there are public network domain outgoing interface To public network domain outgoing interface;If the public network multicast message copies to the message described public there are private network domain outgoing interface Loopback mouth.
Such as scheme please also refer to Fig. 4 for the structural schematic diagram of another apparatus for forwarding message provided in an embodiment of the present invention Shown in 4, on the basis of apparatus for forwarding message shown in Fig. 3, in apparatus for forwarding message shown in Fig. 4, the retransmission unit 330 can To include:
First encapsulation subelement 331, if there are public network domain outgoing interfaces for the private network multicast message, to the private network multicast Message is packaged;
Modification single 332, for being specified by the outer layer virtual LAN VLAN tag modification of the message after the encapsulation VLAN tag, the assigned vlan label are any VLAN tag except VLAN1~4094;
First forwarding subelement 333, for the modified message of the modification subelement to be copied to public loopback mouth.
Such as scheme please also refer to Fig. 5 for the structural schematic diagram of another apparatus for forwarding message provided in an embodiment of the present invention Shown in 5, on the basis of apparatus for forwarding message shown in Fig. 3, in apparatus for forwarding message shown in fig. 5, the retransmission unit 330 can To include:
Second encapsulation subelement 334, if there are public network domain outgoing interfaces for the private network multicast message, to the private network multicast Message is packaged;
Adding unit 335, for adding default identification field in the message after the encapsulation, which is used for Indicate that corresponding message does not need to carry out decapsulation processing;
Second forwarding subelement 336, for the message added with the default identification field to be copied to public ring It answers back;
Further, in apparatus for forwarding message shown in Fig. 5, the retransmission unit 330 can also include:
Subelement 337 is deleted, for judging the message after the public loopback choma returns when the judging unit 340 In when carrying the designated identification information, before being forwarded to the message, delete carried in the message it is described default Identification field.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize the present invention program.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
As seen from the above-described embodiment, it when receiving private network multicast message, is looked into according to multicast IP of the private network multicast message Forwarding-table item is ask to be packaged the private network multicast message, if there are public network domain outgoing interfaces for the private network multicast message in the envelope Designated identification information is carried in message after dress, and the message is copied to public loopback mouth, in turn, when receiving by public Loopback choma return after message when, judge designated identification information whether is carried in the message;If so, according to the outer of the message Layer IP inquiry forwarding-table item of multicast carry out message forwarding;Otherwise, decapsulation processing is carried out to the message, and according to decapsulation after IP inquiry forwarding-table items of multicast of message carry out message forwardings, it is thus possible to only have a shared ring in PE equipment In the case where answering back, realizes multicasting VPN, save the loopback mouth quantity and loopback port band width of PE equipment.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of message forwarding method, applied to the service provider network edge PE equipment in virtual private network networking, It is characterized in that, this method comprises:
When receiving private network multicast message, according to IP inquiry forwarding-table items of multicast of the private network multicast message;
If there are public network domain outgoing interfaces for the private network multicast message, which is packaged, after the encapsulation Designated identification information is carried in message, and the message is copied to public loopback mouth;
When receiving the message after the public loopback choma returns, judge the specified mark whether is carried in the message Know information;
If so, IP inquiry forwarding-table items of outer layer multicast according to the message carry out message forwarding;
Otherwise, decapsulation processing carried out to the message, and according to IP inquiry forwarding-table items of the multicast of the message after decapsulation into The forwarding of row message.
2. the method according to claim 1, wherein the method also includes:
If there are private network domain outgoing interfaces for the private network multicast message, which is copied to private network domain outgoing interface.
3. the method according to claim 1, wherein the method also includes:
When receiving public network multicast message, according to IP inquiry forwarding-table items of outer layer multicast of the public network multicast message;
If there are public network domain outgoing interfaces for the public network multicast message, which is copied into public network domain outgoing interface;
If there are private network domain outgoing interfaces for the public network multicast message, which is copied into the public loopback mouth.
4. described in any item methods according to claim 1~3, which is characterized in that carried in the message after the encapsulation Designated identification information, comprising:
It is assigned vlan label, the assigned vlan label by the outer layer virtual LAN VLAN tag modification of the message after the encapsulation For any VLAN tag except VLAN1~4094;
It is wherein, described to carry out message forwarding according to IP inquiry forwarding-table items of outer layer multicast of the message, comprising:
After the one outside VLAN Tag of the message is revised as in VLAN1~VLAN4094 according to practical VLAN configuration, into The forwarding of row message.
5. described in any item methods according to claim 1~3, which is characterized in that carried in the message after the encapsulation Designated identification information, comprising:
Default identification field is added in the message after the encapsulation, which is used to indicate corresponding message and does not need Carry out decapsulation processing;
It is described to carry out message forwarding according to IP inquiry forwarding-table items of outer layer multicast of the message, comprising:
Before being forwarded to the message, the default identification field carried in the message is deleted.
6. a kind of apparatus for forwarding message, applied to the service provider network edge PE equipment in virtual private network networking, It is characterized in that, which includes:
Receiving unit, for receiving message;
Query unit, for when the receiving unit receives private network multicast message, according to the multicast of the private network multicast message IP inquiry forwarding-table items;
Retransmission unit is packaged the private network multicast message if there are public network domain outgoing interfaces for the private network multicast message, Designated identification information is carried in the message after the encapsulation, and the message is copied to public loopback mouth;
Judging unit, when for receiving the message after the public loopback choma returns when the receiving unit, judgement should Whether the designated identification information is carried in message;
The retransmission unit, if judging to carry designated identification information in the message for the judging unit, according to the report IP inquiry forwarding-table items of outer layer multicast of text carry out message forwarding;Otherwise, decapsulation processing is carried out to the message, and according to solution IP inquiry forwarding-table items of multicast of message after encapsulation carry out message forwarding.
7. device according to claim 6, which is characterized in that
The retransmission unit, if being also used to the private network multicast message, there are private network domain outgoing interfaces, which are copied to described Private network domain outgoing interface.
8. device according to claim 6, which is characterized in that
The query unit is also used to when the receiving unit receives public network multicast message, according to the public network multicast message IP inquiry forwarding-table items of outer layer multicast;
The retransmission unit, if being also used to the public network multicast message, there are public network domain outgoing interfaces, which are copied to described Public network domain outgoing interface;If there are private network domain outgoing interfaces for the public network multicast message, which is copied into the public loopback mouth.
9. according to the described in any item devices of claim 6~8, which is characterized in that the retransmission unit, comprising:
First encapsulation subelement, if for the private network multicast message there are public network domain outgoing interface, to the private network multicast message into Row encapsulation;
Subelement is modified, for being assigned vlan mark by the outer layer virtual LAN VLAN tag modification of the message after the encapsulation Label, the assigned vlan label are any VLAN tag except VLAN1~4094;
First forwarding subelement, for the modified message of the modification subelement to be copied to public loopback mouth;
Wherein, the modification subelement, if being also used to carry the designated identification information in the message, according to practical VLAN Configure the one outside VLAN Tag of the message is revised as in VLAN1~VLAN4094.
10. according to the described in any item devices of claim 6~8, which is characterized in that the retransmission unit, comprising:
Second encapsulation subelement, if for the private network multicast message there are public network domain outgoing interface, to the private network multicast message into Row encapsulation;
Adding unit, for adding default identification field in the message after the encapsulation, which is used to indicate phase The message answered does not need to carry out decapsulation processing;
Second forwarding subelement, for the message added with the default identification field to be copied to public loopback mouth;
The retransmission unit, further includes:
Subelement is deleted, for carrying when in the message that the judging unit judges after the public loopback choma returns When stating designated identification information, before being forwarded to the message, the default identification field carried in the message is deleted.
CN201710277224.0A 2017-04-25 2017-04-25 A kind of message forwarding method and device Active CN107018059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710277224.0A CN107018059B (en) 2017-04-25 2017-04-25 A kind of message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710277224.0A CN107018059B (en) 2017-04-25 2017-04-25 A kind of message forwarding method and device

Publications (2)

Publication Number Publication Date
CN107018059A CN107018059A (en) 2017-08-04
CN107018059B true CN107018059B (en) 2019-11-12

Family

ID=59447382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710277224.0A Active CN107018059B (en) 2017-04-25 2017-04-25 A kind of message forwarding method and device

Country Status (1)

Country Link
CN (1) CN107018059B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110945847B (en) * 2017-10-13 2021-04-09 华为技术有限公司 Method, device and system for rapidly recovering service in path switching process
CN108494687B (en) * 2018-03-08 2022-05-31 全球能源互联网研究院有限公司 Wifi-based multi-path networking communication method and system for electric power information physical system
CN110636033B (en) * 2018-06-25 2021-11-26 中国电信股份有限公司 Multicast data transmission method, system, multicast tunnel terminal and storage medium
CN109450792B (en) * 2018-10-08 2021-05-07 新华三技术有限公司 Data message packaging method and device
CN110417666B (en) * 2019-07-31 2021-08-13 南京邮电大学 Packet encapsulation and transmission method based on Head modify technology
CN110808924B (en) * 2019-11-12 2021-05-18 迈普通信技术股份有限公司 Chip loopback message processing method, device and storage medium
CN112671630B (en) * 2020-12-11 2023-01-17 北京东土军悦科技有限公司 Multicast method, device, network equipment and storage medium
CN113705837A (en) * 2021-09-03 2021-11-26 上海思询信息科技有限公司 Method and device for inquiring maintenance information by multi-brand server
CN114598570B (en) * 2022-01-28 2023-12-26 新华三技术有限公司合肥分公司 Multicast data message forwarding method and device
CN114553770A (en) * 2022-02-25 2022-05-27 网络通信与安全紫金山实验室 Cloud data forwarding device, system and method
CN116915702B (en) * 2023-09-12 2023-11-28 常州楠菲微电子有限公司 Method and device for message loopback editing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626338A (en) * 2009-08-03 2010-01-13 杭州华三通信技术有限公司 Method and device for realizing multiple virtual private network (VPN) examples
CN101827028A (en) * 2010-04-14 2010-09-08 杭州华三通信技术有限公司 Method and device for realizing multicasting VPN message transmission
CN102064999A (en) * 2009-11-18 2011-05-18 杭州华三通信技术有限公司 Method and equipment for forwarding multicast message

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10313155B2 (en) * 2013-07-11 2019-06-04 Cisco Technology, Inc. Centralized management of authoritative edge devices
US10397283B2 (en) * 2015-07-15 2019-08-27 Oracle International Corporation Using symmetric and asymmetric flow response paths from an autonomous system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626338A (en) * 2009-08-03 2010-01-13 杭州华三通信技术有限公司 Method and device for realizing multiple virtual private network (VPN) examples
CN102064999A (en) * 2009-11-18 2011-05-18 杭州华三通信技术有限公司 Method and equipment for forwarding multicast message
CN101827028A (en) * 2010-04-14 2010-09-08 杭州华三通信技术有限公司 Method and device for realizing multicasting VPN message transmission

Also Published As

Publication number Publication date
CN107018059A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN107018059B (en) A kind of message forwarding method and device
US11431526B2 (en) Deterministic forwarding across L2 and L3 networks
US9634929B2 (en) Using context labels to scale MAC tables on computer network edge devices
US8339973B1 (en) Multicast traceroute over MPLS/BGP IP multicast VPN
Lasserre et al. Framework for data center (DC) network virtualization
CN104009926B (en) Multicast method in EVI network and edge device ED
CN102273177B (en) Neighbour discovery protocol mediation
US10033539B1 (en) Replicating multicast state information between multi-homed EVPN routing devices
CN109150730A (en) The cross-domain method, apparatus of multicast, system and computer readable storage medium
CN109861924A (en) The transmission of message, processing method and processing device, PE node, node
US20150146727A1 (en) Forwarding Packets and PE Devices in VPLS
CN105991432A (en) Supplier rim router and method
US20100329252A1 (en) Method and Apparatus for Enabling Multicast Route Leaking Between VRFs in Different VPNs
WO2008092357A1 (en) A method and device for establishing a pseudo wire tunnel and transmitting message using it
WO2015165311A1 (en) Method for transmitting data packet and provider edge device
JP2014532368A (en) Virtual private network execution method and system based on traffic engineering tunnel
CN110290093A (en) The SD-WAN network architecture and network-building method, message forwarding method
CN102571375B (en) Multicast forwarding method and device as well as network device
CN108964940A (en) Message method and device, storage medium
CN103326940A (en) Method for forwarding message in network and edge device of operator
EP2897328B1 (en) Method, system and apparatus for establishing communication link
CN103716244B (en) Method and device enabling extra-VPN forwarding of multicasts to be achieved
CN105553810A (en) Method and device for forwarding special line service packet
US10469361B1 (en) Loop prevention for EVPN and PBB-EVPN
CN103634210B (en) Find the method and apparatus of the opposite end PE equipment of VPLS example

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant