CN109495406A - The retransmission method and forwarding device of multicasting virtual private network network VPN flow - Google Patents
The retransmission method and forwarding device of multicasting virtual private network network VPN flow Download PDFInfo
- Publication number
- CN109495406A CN109495406A CN201710821605.0A CN201710821605A CN109495406A CN 109495406 A CN109495406 A CN 109495406A CN 201710821605 A CN201710821605 A CN 201710821605A CN 109495406 A CN109495406 A CN 109495406A
- Authority
- CN
- China
- Prior art keywords
- multicast
- message
- access control
- forwarding
- preset
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/252—Store and forward routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/20—Support for services
- H04L49/201—Multicast operation; Broadcast operation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses the retransmission methods and forwarding device of a kind of multicasting virtual private network network VPN flow, at least to reduce the resource overhead of forwarding multicasting VPN flow.The retransmission method includes: when received first multicast message meets preset multicast access control rule, according to generic route encapsulation mode, first multicast message to be packaged, encapsulated message is obtained;Interface is transferred according to preset corresponding multicast, forwards the encapsulated message.
Description
Technical field
The present invention relates to network communication fields, more particularly to a kind of forwarding side of multicasting virtual private network network VPN flow
Method and forwarding device.
Background technique
Multicasting technology refers to single sender by transmitting a kind of network communication of single part of traffic messages to multiple recipients
Technology, the technology can reduce network traffic.VPN (Virtual is combined on the basis of common multicast technology at present
Private Network, Virtual Private Network) technology, multicasting VPN technology may be implemented.
Multicasting VPN technology is by being packaged private network multicast message, and by it by the multicast established between each private network node
Tunnel is transmitted, to complete transmission of the multicast packet between private network.Existing multicasting VPN technology needs on router device
Complicated multicasting VPN system is disposed, the expense of router device resource (such as processor and memory) is occupied when which runs
It is very big.
Summary of the invention
In order to overcome drawbacks described above, the technical problem to be solved in the present invention is to provide a kind of multicasting virtual private network network VPN
The retransmission method and forwarding device of flow, at least to reduce the resource overhead of forwarding multicasting VPN flow.
In order to solve the above technical problems, the retransmission method of one of present invention multicasting virtual private network network VPN flow, packet
It includes:
When received first multicast message meets preset multicast access control rule, according to generic route encapsulation side
First multicast message is packaged, obtains encapsulated message by formula;
Interface is transferred according to preset corresponding multicast, forwards the encapsulated message.
In order to solve the above technical problems, one of present invention forwarding device comprising memory and processor;It is described to deposit
Reservoir is stored with the forwarding computer program of multicasting virtual private network network VPN flow;The processor executes the computer journey
Sequence, the step of to realize method as described above.
The present invention has the beneficial effect that:
Method and apparatus in the present invention, by meeting preset multicast access control rule in received first multicast message
When, according to generic route encapsulation mode, first multicast message is packaged, encapsulated message is obtained, according to preset phase
Multicast forwarding outgoing interface is answered, the encapsulated message is forwarded, runs any multicast routing protocol without forwarding device, thus
Effectively reduce the expense of the resources such as forwarding device processor and memory.
Detailed description of the invention
Fig. 1 is the flow chart of the retransmission method of multicasting virtual private network network VPN flow in the embodiment of the present invention;
Fig. 2 is tactful multicasting VPN system application scenarios schematic diagram in the embodiment of the present invention;
Fig. 3 is to enter to hold forwarding device message forwarding process figure in the embodiment of the present invention;
Fig. 4 is outlet forwarding device message forwarding process figure in the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of forwarding device in the embodiment of the present invention.
Specific embodiment
In order to solve problems in the prior art, the present invention provides a kind of forwardings of multicasting virtual private network network VPN flow
Method and forwarding device, below in conjunction with attached drawing and embodiment, the present invention will be described in further detail.It should be appreciated that this
Place is described, and specific examples are only used to explain the present invention, does not limit the present invention.
In subsequent description, using for distinguishing element " first ", the prefixes such as " second " are only for being conducive to
Explanation of the invention itself does not have specific meaning.
Embodiment one
As shown in Figure 1, the embodiment of the present invention provides a kind of retransmission method of multicasting virtual private network network VPN flow, it is described
Method includes:
S101 is sealed when received first multicast message meets preset multicast access control rule according to general routing
First multicast message is packaged, obtains encapsulated message by dress mode;
S102 transfers interface according to preset corresponding multicast, forwards the encapsulated message.
The embodiment of the present invention by when received first multicast message meets preset multicast access control rule, according to
First multicast message is packaged, obtains encapsulated message by generic route encapsulation mode, is turned according to preset corresponding multicast
Interface is issued, the encapsulated message is forwarded, any multicast routing protocol is run without forwarding device, to be effectively reduced
The expenses of the resources such as forwarding device processor and memory.
Forwarding device has IP (Internet Protocol, the association interconnected between network in the embodiment of the present invention
View) message transfer capability equipment, including router, interchanger, main frame etc..
On the basis of the above embodiments, it is further proposed that the modification of above-described embodiment.
In embodiments of the present invention, optionally, described that interface is transferred according to preset corresponding multicast, forward the encapsulation
Before message, comprising:
One or more interfaces are preset in preset Multicast Routing mapping table as the multicast forwarding outgoing interface.
Wherein, described when received first multicast message meets preset multicast access control rule, according to general road
By packaged type, first multicast message is packaged, before obtaining encapsulated message, comprising:
On one interface by Multicast Routing mapping table binding, the incoming interface as first multicast message;
When the incoming interface receives the first multicast message, according to the multicast access control rule, to described first
Multicast message is matched;The incoming interface is different with the multicast forwarding outgoing interface.
Further, described according to the multicast access control rule, before being matched to first multicast message,
Include:
The multicast access control rule is preset in preset accesses control list.
Still further, described match first multicast message according to the multicast access control rule, packet
It includes:
Obtain the source address information and group address message of first multicast message;
The source address information and group address message that will acquire are matched with the multicast access control rule.
Wherein, the multicast access control rule includes the multicast matching rule of one or more multicast routing entries
Then;
Wherein the source address information that will acquire and group address message are matched with the multicast access control rule
Before, comprising:
For each multicast routing entry, according to the multicast routing entry control command and the Multicast Routing item
Purpose message attribute forms the multicast matching rule of the multicast routing entry.
Wherein, the control command includes allowing and refusing;The message attribute includes source address information and group address letter
Breath;
The multicast routing entry includes following two type:
It supports to carry out multicast forwarding to each source address of group address and supports to carry out group to the specified source address of group address
Broadcast forwarding.
In embodiments of the present invention, optionally, described according to generic route encapsulation mode, by first multicast message into
Row encapsulation, comprising:
According to generic route encapsulation mode, using local ip address as source address, by the multicast of first multicast message
Group address address as a purpose, first multicast message is packaged.
In embodiments of the present invention, optionally, the method also includes:
When received second multicast message meets preset multicast group address, according to generic route encapsulation (GRE,
Generic Routing Encapsulation) mode, second multicast message is decapsulated, decapsulation message is obtained;
According to corresponding multicast forwarding outgoing interface, the decapsulation message is forwarded.
Further, described when received second multicast message meets preset multicast group address, according to general routing
Packaged type, to second multicast message decapsulate, obtain decapsulation message before, comprising:
The multicast group address is dosed in preset multicast access control rule.
In embodiments of the present invention, optionally, the method also includes:
The entry-into-force time of the multicast access control rule is set in preset period list.
Based on above scheme, in an optinal plan of the embodiment of the present invention, by mapping accesses control list, routing
Table and period list are extended, so as to realize multifarious multicast forwarding policy control, to realize tactful group
VPN forwarding is broadcast, so that the embodiment of the present invention, which does not need forwarding device, runs any multicast routing protocol, to be effectively reduced
The expenses of the resources such as forwarding device processor and memory.
Below by taking router as an example, accesses control list, Multicast Routing mapping table and period list are carried out specifically
It is bright.
1. accesses control list.
Accesses control list is an instruction list, and instruction list is used to be arranged router and data packet is received or refused
Exhausted multicast access control rule.Accesses control list is by multiple set of serial numbers at each sequence number can define different groups
Broadcast access control rule.
Function Extension is carried out to accesses control list in the embodiment of the present invention, increases multicast access control rule.Multicast is visited
Ask that the access control type of multicast routing entry in control rule is divided into two kinds: setting multicast routing entry (*, G) indicates to support
Multicast forwarding is carried out to each source address of group address G;Multicast routing entry (S, G), which is arranged, to be indicated to support the finger to group address G
Determine source address S and carries out multicast forwarding.
Multicast access control rule includes the multicast matching rule of one or more multicast routing entries;For each
Multicast routing entry is formed according to the message attribute of control command and the multicast routing entry to the multicast routing entry
The multicast matching rule of the multicast routing entry.
For example, the mode of the multicast matching rule of each multicast routing entry is arranged in accesses control list are as follows:
Permission/refusal+source address+source address mask+group address+group address mask.
Source address defined in rule and source address mask form a source address prefix, for multicast source address, address
Prefix with rule in source address prefix it is consistent, then it is assumed that multicast source address successful match.
Group address defined in rule and group address mask form a group address prefix, for multicast group address, address
Prefix with rule in group address prefix it is consistent, then it is assumed that multicast group address successful match.
For a multicast message, source address and group address all successful match when think the multicast message successful match.
Certainly, accesses control list can also be realized by other means in the embodiment of the present invention.One access control column
Table is by multiple set of serial numbers at different multicast routing entry access control policies being arranged, in each sequence number with reality
The promotion of existing multicast forwarding capacity.
2. Multicast Routing mapping table.
Routing mapping table can control the pass-through mode of traffic messages.The embodiment of the present invention is extended routing mapping table
Generate Multicast Routing mapping table.
One or more interface is set as multicast forwarding outgoing interface for example, increasing in routing mapping table.After extension
Routing mapping table be known as Multicast Routing mapping table.Router answers the multicast message of accesses control list successful match
System, and one or more multicast outgoing interface forwarding being arranged into routing mapping.One routing mapping table is by multiple sequences
Number composition, different multicast routing entry access control rule and message forward rule can be set in each sequence number, with
Realize the promotion of multicast forwarding capacity.
For another example, a multicast group address, referred to as Share-Group are set in Multicast Routing mapping table.Share-Group
It is the mark of a multicasting VPN, different Share-Group is arranged in different multicasting VPNs.The address Share-Group should generally be set
It sets on PE (provider edge, Provider Edge) router.
When the interface that router binds routing mapping table receives multicast message, the multicast message with GRE (Generic
Routing Encapsulation) mode is packaged and transmits in a network, and the message after encapsulation is known as P-Packet (example
Such as encapsulated message), the source address of GRE encapsulation is local ip address, destination address Share-Group.
For another example, the setting matching Share-Group multicast address in Multicast Routing mapping table.With matching Share-Group
Location should be generally arranged on pe router.
When router receives P-Packet message, message destination address is checked, if set with routing mapping table
The address matching Share-Group set is consistent, and router carries out GRE decapsulation to the message, and the message after decapsulation is sent out
It is sent to the multicast outgoing interface being arranged in routing mapping table.
3. period list.
Period list can carry out time parameter method control to accesses control list.Accesses control list can be quoted the time
Duan Liebiao controls the entry-into-force time of accesses control list.The entry-into-force time of period list setting includes single time section
With circulation time section.
For example, quoting period list in the embodiment of the present invention in Multicast Routing mapping table is arranged Multicast Routing mapping table
Entry-into-force time, and then control flux of multicast forwarding entry-into-force time.
When the device systems time of router is in the time range that period list is arranged, Multicast Routing mapping table is raw
Effect and guides flux of multicast to forward;When the device systems time of router is when except the time range that period list is arranged,
The failure of Multicast Routing mapping table does not instruct flux of multicast to forward.
By the above accesses control list, the setting of Multicast Routing mapping table and period list, the embodiment of the present invention can
To bind Multicast Routing mapping table to an interface on router device, the multicast message received later to the interface is visited
Control list match inspection is asked, if multicast message destination address and source address meet the access control of accesses control list setting
Rule, and the interface of router binding routing mapping table is sealed the multicast message in a manner of GRE when receiving multicast message
Dress, the source address of GRE encapsulation are local ip address, and destination address is the Share-Group being arranged in Multicast Routing mapping table.
Router replicates the message after encapsulation, according to the flux of multicast outgoing interface being arranged in Multicast Routing mapping table
Carry out message forwarding.
When far-end router receives the encapsulated message of GRE encapsulation, according to the matching being arranged in Multicast Routing mapping table
Share-Group matches message destination address, and when message destination address is consistent with Share-Group, routing
Device carries out GRE decapsulation to message, then replicates to the decapsulation message after decapsulation, according in Multicast Routing mapping table
The flux of multicast outgoing interface of setting carries out message forwarding.
Certainly, to prevent route loop, router device will to the multicast message IP head TTL of forwarding (life span,
Time To Live) value checked, router only receives the multicast message that ttl value is greater than 0, and router device forwarding report
Wen Shi subtracts 1 message ttl value.When TTL becomes 0, the multicast message is abandoned.
As shown in Fig. 2, in Fig. 2 application scenarios schematic diagram, router device PE1 connection upstream router R1 and downstream road
By device PE2, router device PE2 connection router PE1 and router R2, when user equipment needs flux of multicast, PE1, R1,
PE2 and R2 forms tactful multicasting VPN system, and each equipment in tactful multicasting VPN system can use example of the embodiment of the present invention
Middle method completes forwarding of the multicast message from multicast source to user.It is illustrated especially by embodiment two and three.
Embodiment two
In the embodiment of the present invention assume embodiment one in flux of multicast multicast source address be S1, multicast group address G1,
The address Share-Group of multicasting VPN is G2.
The forwarding process for entering to hold forwarding device realization multicast message of tactful multicasting VPN system, packet in the embodiment of the present invention
It includes:
Step 11, router PE 1 receives multicast message.
Firstly, the tactful Multicast configuration of router PE 1: the arranging access control list Macl-A in router PE 1, setting are permitted
Perhaps the routing entry source address forwarded is S1, group address G1.Configuring Multicast Routing mapping graph, (also referred to as Multicast Routing reflects
Firing table) it is named as Mmap-A, accesses control list Macl-A is quoted in Mmap-A, setting multicast data flow, which measures, in Mmap-A connects
Mouth is fei-2 interface, and it is G2 that the address Share-Group, which is arranged, in Mmap-A.Multicast Routing mapping graph Mmap-A is tied up
Surely interface fei-2 is arrived.It completes with postponing, router PE 1 starts to receive multicast message.
Step 12, the head the multicast message IP ttl value received is checked, judges whether TTL is greater than 1, if it is not, abandoning
Message;If so, executing step 13.
Step 13, multicast message (abbreviation message) is received.
Step 14, judge whether interface is bundled with Multicast Routing mapping table;If it is not, searching multicast routing table forwarding;If so,
Execute step 15.
Step 15, it accesses to message and controls rule match, that is to say, that fei-1 interface receives the flow of (S1, G1)
When will do it routing mapping table source address and group address matched.
Step 16, judge whether successful match, if it is not, searching multicast routing table forwarding;If so, executing step 17.
Step 17, GRE encapsulation, such as encapsulation are carried out to message according to the Share-Group of accesses control list setting
Destination address is G2, and source address is local address.
Step 18, it is E-Packeted according to the outgoing interface that accesses control list is arranged, so as to complete 1 road Shang Xiang of router PE
By device PE2 forwarding multicast flow.
Embodiment three
Scene is that router PE 2 needs the interior group to router R2 forwarding multicasting entry (S1, G1) of section at the appointed time
Flow is broadcast, not to by device R2 forwarding multicasting entry (S1, G1) flux of multicast in other times.
The outlet forwarding device of tactful multicasting VPN system realizes the forwarding process of multicast message, packet in the embodiment of the present invention
It includes:
Step 21, router PE 2 receives multicast message.
Same principle is forwarded based on router PE 1, arranging access control list is named as Macl- in router PE 2
B, the routing entry source address that setting allows to forward are S1, group address G1.Configuration Multicast Routing mapping graph is named as Mmap-B,
Accesses control list Macl-B is quoted in Mmap-B, and flux of multicast outgoing interface fei-2 interface is set in Mmap-B.Multicast
Routing mapping graph Mmap-B is tied to interface fei-1.The setting matching address Share-Group is S2 in Mmap-B.
A period list is defined in router PE 2 and is named as T-range, according to network demand in T-range
Define entry-into-force time section.Period list T-range is quoted in routing mapping table Mmap-C.After the completion of configuration, in T-range
In the period of definition, Mmap-C is in initiate mode, interface rules forwarding that router PE 2 is defined according to Mmap-C (S1,
G1) flux of multicast.Except the period that T-range is defined, Mmap-C is in dead status, and router PE 2 will not forward
(S1, G1) flux of multicast.
Step 22, the head the multicast message IP ttl value received is checked, judges whether TTL is greater than 1, if it is not, abandoning
Message;If so, executing step 23.
Step 23, multicast message (abbreviation message) is received.
Step 24, judge whether message is GRE encapsulated message;If it is not, searching multicast routing table forwarding;If so, executing step
Rapid 25.
Step 25, it accesses to message and controls regular Share-Group matching;That is fei-1 interface receives PE2
Routing mapping table Share-Group matching can be carried out when the multicast message of transmission to message.
Step 26, judge whether successful match, if it is not, searching multicast routing table forwarding;If so, executing step 27.
Step 27, if successful match, GRE decapsulation is carried out to message.
Step 28, it is E-Packeted according to the outgoing interface that accesses control list is arranged, that is to say, that message to interface fei-
2 forwarding, so as to complete in router PE 2 to router R2 forwarding multicast flow.
When there is new user to request the same flux of multicast, the router device R3 for connecting PE2 needs the group of (S1, G1)
When broadcasting flow, it is only necessary to which increasing fei-3 interface as multicast outgoing interface in multicast router PE2 mapping table can be realized multicast
Forwarding of the flow to router R3.
Example IV
The embodiment of the present invention provides a kind of forwarding device, and the forwarding device includes memory and processor;The storage
Device is stored with the forwarding computer program of multicasting virtual private network network VPN flow;The processor executes the computer program,
To realize such as the step of any one of one-example IV of embodiment the method.
The embodiment of the present invention by when received first multicast message meets preset multicast access control rule, according to
First multicast message is packaged, obtains encapsulated message by generic route encapsulation mode, is turned according to preset corresponding multicast
Interface is issued, the encapsulated message is forwarded, any multicast routing protocol is run without forwarding device, to be effectively reduced
The expenses of the resources such as forwarding device processor and memory.
For example, the processor executes the computer program, to realize following steps:
When received first multicast message meets preset multicast access control rule, according to generic route encapsulation side
First multicast message is packaged, obtains encapsulated message by formula;
Interface is transferred according to preset corresponding multicast, forwards the encapsulated message.
In embodiments of the present invention, optionally, described that interface is transferred according to preset corresponding multicast, forward the encapsulation
Before message, comprising:
One or more interfaces are preset in preset Multicast Routing mapping table as the multicast forwarding outgoing interface.
Wherein, described when received first multicast message meets preset multicast access control rule, according to general road
By packaged type, first multicast message is packaged, before obtaining encapsulated message, comprising:
On one interface by Multicast Routing mapping table binding, the incoming interface as first multicast message;
When the incoming interface receives the first multicast message, according to the multicast access control rule, to described first
Multicast message is matched;The incoming interface is different with the multicast forwarding outgoing interface.
Further, described according to the multicast access control rule, before being matched to first multicast message,
Include:
The multicast access control rule is preset in preset accesses control list.
Still further, described match first multicast message according to the multicast access control rule, packet
It includes:
Obtain the source address information and group address message of first multicast message;
The source address information and group address message that will acquire are matched with the multicast access control rule.
Wherein, the multicast access control rule includes the multicast matching rule of one or more multicast routing entries
Then;
Wherein the source address information that will acquire and group address message are matched with the multicast access control rule
Before, comprising:
For each multicast routing entry, according to the multicast routing entry control command and the Multicast Routing item
Purpose message attribute forms the multicast matching rule of the multicast routing entry.
Wherein, the control command includes allowing and refusing;The message attribute includes source address information and group address letter
Breath;
The multicast routing entry includes following two type:
It supports to carry out multicast forwarding to each source address of group address and supports to carry out group to the specified source address of group address
Broadcast forwarding.
In embodiments of the present invention, optionally, described according to generic route encapsulation mode, by first multicast message into
Row encapsulation, comprising:
According to generic route encapsulation mode, using local ip address as source address, by the multicast of first multicast message
Group address address as a purpose, first multicast message is packaged.
In embodiments of the present invention, optionally, it also performs the steps of
When received second multicast message meets preset multicast group address, according to generic route encapsulation mode, to institute
The decapsulation of the second multicast message is stated, decapsulation message is obtained;
According to corresponding multicast forwarding outgoing interface, the decapsulation message is forwarded.
Further, described when received second multicast message meets preset multicast group address, according to general routing
Packaged type, to second multicast message decapsulate, obtain decapsulation message before, comprising:
The multicast group address is dosed in preset multicast access control rule.
In embodiments of the present invention, optionally, it also performs the steps of
The entry-into-force time of the multicast access control rule is set in preset period list.
The embodiment of the present invention in specific implementation, can also be refering to one-example IV of embodiment, it may have corresponding technology
Effect.
Embodiment five
The embodiment of the present invention provides a kind of computer readable storage medium, and it is dedicated that the storage medium is stored with multicast virtual
The forwarding computer program of network VPN flow;When the computer program is executed by processor described at least one, to realize such as
The step of any one of one-example IV of embodiment the method.
The embodiment of the present invention in specific implementation, refering to one-example IV of embodiment, it may have corresponding technical effect.
Computer readable storage medium can be RAM memory, flash memory, ROM memory, EPROM in the embodiment of the present invention
Memory, eeprom memory, register, hard disk, mobile hard disk, CD-ROM or any other form known in the art
Storage medium.A kind of storage medium lotus root can be connected to processor, thus enable a processor to from the read information,
And information can be written to the storage medium;Or the storage medium can be the component part of processor.Processor and storage are situated between
Matter can be located in specific integrated circuit.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects
It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention
Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include
Within protection scope of the present invention.
Claims (12)
1. a kind of retransmission method of multicasting virtual private network network VPN flow, which is characterized in that the described method includes:
It, will according to generic route encapsulation mode when received first multicast message meets preset multicast access control rule
First multicast message is packaged, and obtains encapsulated message;
Interface is transferred according to preset corresponding multicast, forwards the encapsulated message.
2. the method as described in claim 1, which is characterized in that described to transfer interface according to preset corresponding multicast, forwarding
Before the encapsulated message, comprising:
One or more interfaces are preset in preset Multicast Routing mapping table as the multicast forwarding outgoing interface.
3. method according to claim 2, which is characterized in that described to meet preset multicast in received first multicast message
When access control rule, according to generic route encapsulation mode, first multicast message is packaged, obtain encapsulated message it
Before, comprising:
On one interface by Multicast Routing mapping table binding, the incoming interface as first multicast message;
When the incoming interface receives the first multicast message, according to the multicast access control rule, to first multicast
Message is matched;The incoming interface is different with the multicast forwarding outgoing interface.
4. method as claimed in claim 3, which is characterized in that it is described according to the multicast access control rule, to described
Before one multicast message is matched, comprising:
The multicast access control rule is preset in preset accesses control list.
5. method as claimed in claim 3, which is characterized in that it is described according to the multicast access control rule, to described
One multicast message is matched, comprising:
Obtain the source address information and group address message of first multicast message;
The source address information and group address message that will acquire are matched with the multicast access control rule.
6. method as claimed in claim 5, which is characterized in that the multicast access control rule includes one or more
The multicast matching rule of multicast routing entry;
Before the source address information that will acquire and group address message are matched with the multicast access control rule, packet
It includes:
For each multicast routing entry, according to the multicast routing entry control command and the multicast routing entry
Message attribute forms the multicast matching rule of the multicast routing entry.
7. method as claimed in claim 6, which is characterized in that the control command includes allowing and refusing;The message category
Property includes source address information and group address message;
The multicast routing entry includes following two type:
It supports to carry out each source address of group address multicast forwarding and supports that carrying out multicast to the specified source address of group address turns
Hair.
8. the method as described in any one of claim 1-7, which is characterized in that it is described according to generic route encapsulation mode,
First multicast message is packaged, comprising:
According to generic route encapsulation mode, using local ip address as source address, by the multicast group of first multicast message
Location address as a purpose, first multicast message is packaged.
9. the method as described in any one of claim 1-7, which is characterized in that the method also includes:
When received second multicast message meets preset multicast group address, according to generic route encapsulation mode, to described
The decapsulation of two multicast messages obtains decapsulation message;
According to corresponding multicast forwarding outgoing interface, the decapsulation message is forwarded.
10. method as claimed in claim 9, which is characterized in that described to meet preset group in received second multicast message
When broadcasting group address, according to generic route encapsulation mode, second multicast message is decapsulated, before obtaining decapsulation message,
Include:
The multicast group address is dosed in preset multicast access control rule.
11. the method as described in any one of claim 1-7, which is characterized in that the method also includes:
The entry-into-force time of the multicast access control rule is set in preset period list.
12. a kind of forwarding device, which is characterized in that the forwarding device includes memory and processor;The memory storage
There is the forwarding computer program of multicasting virtual private network network VPN flow;The processor executes the computer program, to realize
Such as the step of any one of claim 1-11 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710821605.0A CN109495406A (en) | 2017-09-13 | 2017-09-13 | The retransmission method and forwarding device of multicasting virtual private network network VPN flow |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710821605.0A CN109495406A (en) | 2017-09-13 | 2017-09-13 | The retransmission method and forwarding device of multicasting virtual private network network VPN flow |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109495406A true CN109495406A (en) | 2019-03-19 |
Family
ID=65688957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710821605.0A Pending CN109495406A (en) | 2017-09-13 | 2017-09-13 | The retransmission method and forwarding device of multicasting virtual private network network VPN flow |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109495406A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113490162A (en) * | 2021-07-04 | 2021-10-08 | 芯河半导体科技(无锡)有限公司 | Optimization method for multicast data stream forwarding |
WO2023092497A1 (en) * | 2021-11-26 | 2023-06-01 | Oppo广东移动通信有限公司 | Groupcast message processing method and related apparatus |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1474563A (en) * | 2002-08-06 | 2004-02-11 | ��Ϊ��������˾ | Repeating method for multi-broadcast message in network communication |
CN101459606A (en) * | 2008-12-31 | 2009-06-17 | 华为技术有限公司 | Extranet networking method, system and device for multicast VPN |
CN101827028A (en) * | 2010-04-14 | 2010-09-08 | 杭州华三通信技术有限公司 | Method and device for realizing multicasting VPN message transmission |
CN101917434A (en) * | 2010-08-18 | 2010-12-15 | 清华大学 | Method for verifying intra-domain Internet protocol (IP) source address |
CN102801625A (en) * | 2012-08-17 | 2012-11-28 | 杭州华三通信技术有限公司 | Method and device for double layered mutual communication in heterogeneous network |
US9306977B2 (en) * | 1998-08-19 | 2016-04-05 | Wayne Richard Howe | Stealth packet switching |
-
2017
- 2017-09-13 CN CN201710821605.0A patent/CN109495406A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9306977B2 (en) * | 1998-08-19 | 2016-04-05 | Wayne Richard Howe | Stealth packet switching |
CN1474563A (en) * | 2002-08-06 | 2004-02-11 | ��Ϊ��������˾ | Repeating method for multi-broadcast message in network communication |
CN101459606A (en) * | 2008-12-31 | 2009-06-17 | 华为技术有限公司 | Extranet networking method, system and device for multicast VPN |
CN101827028A (en) * | 2010-04-14 | 2010-09-08 | 杭州华三通信技术有限公司 | Method and device for realizing multicasting VPN message transmission |
CN101917434A (en) * | 2010-08-18 | 2010-12-15 | 清华大学 | Method for verifying intra-domain Internet protocol (IP) source address |
CN102801625A (en) * | 2012-08-17 | 2012-11-28 | 杭州华三通信技术有限公司 | Method and device for double layered mutual communication in heterogeneous network |
Non-Patent Citations (1)
Title |
---|
ELLIOTTE RUSTY HAROLD著,朱涛江 林剑译: "《Java网络编程 第3版》", 31 December 2005 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113490162A (en) * | 2021-07-04 | 2021-10-08 | 芯河半导体科技(无锡)有限公司 | Optimization method for multicast data stream forwarding |
CN113490162B (en) * | 2021-07-04 | 2022-05-17 | 芯河半导体科技(无锡)有限公司 | Optimization method for multicast data stream forwarding |
WO2023092497A1 (en) * | 2021-11-26 | 2023-06-01 | Oppo广东移动通信有限公司 | Groupcast message processing method and related apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104135420B (en) | A kind of method, equipment and the system of message forwarding | |
CN114124618B (en) | Message transmission method and electronic equipment | |
US20160134591A1 (en) | VPN Implementation Processing Method and Device for Edge Device | |
CN110266592A (en) | The communication means and device of SRV6 network and IP MPLS network | |
CN107018059B (en) | A kind of message forwarding method and device | |
CN107026796B (en) | VPN route notification method, data flow forwarding method and related equipment | |
WO2015165311A1 (en) | Method for transmitting data packet and provider edge device | |
EP2214352A1 (en) | Layer two virtual private network cross-domain implementation (l2vpn) method, system and device | |
EP2624590A2 (en) | Method, apparatus and system for interconnected ring protection | |
WO2008092357A1 (en) | A method and device for establishing a pseudo wire tunnel and transmitting message using it | |
CN113207192A (en) | Message forwarding method and device | |
TWI437852B (en) | Gateway equipment | |
CN102571375B (en) | Multicast forwarding method and device as well as network device | |
CN100393062C (en) | Method for core network access to multi-protocol sign exchange virtual special network | |
CN102546407B (en) | File transmitting method and device | |
KR100884184B1 (en) | Method for setting up or releasing a multicast tree between two CE on MPLS VPN and method for providing multicasting service | |
CN105337884A (en) | Method and device for achieving multistage message editing service control on the basis of logic port | |
CN110351135A (en) | Method for configuring network equipment and device in more DC | |
CN103795630A (en) | Message transmitting method and device of label switching network | |
CN104780090B (en) | Method, apparatus, the PE equipment of VPN multicast transmissions | |
CN109495406A (en) | The retransmission method and forwarding device of multicasting virtual private network network VPN flow | |
CN107294849A (en) | Method, device and system for establishing service path | |
JP2010056819A (en) | Communication network system for virtual private network, line connection device, and band control method | |
CN103634210B (en) | Find the method and apparatus of the opposite end PE equipment of VPLS example | |
CN104471538A (en) | Data stream processing method, device and system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190319 |
|
RJ01 | Rejection of invention patent application after publication |