CN107528781A - Retransmission method and device, the router of multicast message - Google Patents
Retransmission method and device, the router of multicast message Download PDFInfo
- Publication number
- CN107528781A CN107528781A CN201610460064.9A CN201610460064A CN107528781A CN 107528781 A CN107528781 A CN 107528781A CN 201610460064 A CN201610460064 A CN 201610460064A CN 107528781 A CN107528781 A CN 107528781A
- Authority
- CN
- China
- Prior art keywords
- multicast
- address
- message
- multicast message
- forwarding
- 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
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/16—Multipoint routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a kind of retransmission method of multicast message and device, router.This method includes:Multicast message is received, and the multicast routing entry in Multicast Routing address and accesses control list to being carried in the multicast message matches;When the multicast routing entry matched with Multicast Routing address in the accesses control list be present, the multicast message is forwarded.By the present invention, solves the flow for being merely able to forward unicast message in correlation technique according to policy routing mechanism, it is achieved thereby that according to forwarding of the policy routing mechanism to the flow of multicast message.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of retransmission method of multicast message
And device, router.
Background technology
Multicasting technology refers to that single sender corresponds to a kind of network service skill of multiple recipients
Art.In multicasting technology, it can be subtracted by way of transmitting single part of traffic messages to multiple recipients
Few network traffic.Existing multicast implementation needs to establish multicast by multicast routing protocol
Routing table.There are a variety of multicast routing protocols at present, wherein the most widely used is independent
Multicast protocol-sparse mode (PIM-SM).Multicast routing protocol using PIM-SM as representative
Realize it is complicated, when being run on router device to device handler and it is interior have very large overhead,
And without the method or system proposed to route entry progress policy control.
Policybased routing is a kind of flexible mechanism for realizing the forwarding of IP messages.Mainstream vendor at present
Router device all support policy routing mechanisms.Router device implementation strategy route technology by
Multiple components are completed jointly, including accesses control list, route mapping table, time control list
Deng component.Route mapping table defines the next-hop forwarding router of data message.Route mapping
Matching of the accesses control list realization to message is quoted in table.An Application of Interface plan on router
After slightly routeing, the message received to the interface checks, meets in route mapping table and matches rule
Message then is just forwarded according to the pass-through mode defined in the table, does not meet route mapping table
The message of any matched rule will be forwarded according to unicast routing table.Therefore in correlation technique,
It is merely able to forward the flow of unicast message according to policy routing mechanism.
The content of the invention
The embodiments of the invention provide a kind of retransmission method of multicast message and device, router,
At least to solve to be merely able to forward the stream of unicast message in correlation technique according to policy routing mechanism
The problem of amount.
According to one embodiment of present invention, there is provided a kind of retransmission method of multicast message, bag
Include:Receive multicast message, and the Multicast Routing address to being carried in the multicast message and access
Multicast routing entry in control list is matched;In the accesses control list exist with
During the multicast routing entry of Multicast Routing address matching, the multicast message is forwarded.
Alternatively, the multicast message is forwarded to include:Pre-set by routeing in mapping table
First interface forwards the multicast message, wherein, the first interface is to be exclusively used in described in forwarding
The interface of multicast message.
Alternatively, multicast message is received, including:By bound with the route mapping table the
Multicast message described in two interfaces.
Alternatively, the multicast message is forwarded, including:The route mapping table is provided with control
The entry-into-force time of flux of multicast forwarding, wherein, when the system time of router device is positioned at described
When in the time range indicated by the entry-into-force time, the multicast message is forwarded.
Alternatively, the multicast message is forwarded, in addition to:Check in the route mapping table
Life span TTL;When the value of the TTL is more than 0, the multicast message is forwarded,
And reduce the TTL;When the TTL is equal to or less than 0, the multicast report is abandoned
Text.
Alternatively, after the multicast message is forwarded, methods described also includes:According to described
The message attribute routeing in mapping table, the attribute of the multicast message of successfully modified forwarding.
Alternatively, the Multicast Routing address includes:Group address and source address.
Alternatively, the Control Cooling of the multicast routing entry includes, the first Control Cooling,
For indicating that the source address of each in the group address carries out multicast forwarding;Second control class
Type, for indicating to specify source address to carry out multicast forwarding in the group address.
Alternatively, reception multicast message, and the Multicast Routing to being carried in the multicast message
Multicast routing entry in location and accesses control list is matched, including:When the multicast path
By the prefix of the group address in entry it is consistent with the prefix of the group address of the multicast message when, institute
State the group address that the group address in multicast routing entry supports the multicast message;When the multicast
When the prefix of source address in route entry is consistent with the prefix of the source address of the multicast message,
Group address in the multicast routing entry supports the group address of the multicast message.
Alternatively, the prefix of the group address includes the mask of the group address and the group address;
The prefix of the source address includes the mask of the source address and the source address.
According to still another embodiment of the invention, there is provided a kind of retransmission unit of multicast message,
Including:Receiving module, for receiving multicast message;Matching module, for the multicast report
Multicast routing entry progress in the Multicast Routing address carried in text and accesses control list
Match somebody with somebody;Forwarding module, matched for existing in the accesses control list with Multicast Routing address
The multicast routing entry when, forward the multicast message.
Alternatively, the forwarding module also includes, and first interface unit, is pre-set at route
In mapping table, it is exclusively used in forwarding the multicast message;Second interface unit, reflected with the route
Firing table is bound, for receiving the multicast message.
Alternatively, the forwarding module also includes:The route mapping table is provided with control multicast
The entry-into-force time of flow forwarding, wherein, when the system time of router device comes into force positioned at described
When in the time range indicated by the time, the multicast message is forwarded.
Alternatively, the forwarding module also includes:Inspection unit, check the route mapping table
In life span TTL;Retransmission unit, for when the TTL value be more than 0 when,
The multicast message is forwarded, and reduces the TTL;When the TTL is equal to or less than 0
When, abandon the multicast message.
Alternatively, described device also includes:Modified module, for according to the route mapping table
In message attribute, the attribute of the multicast message of successfully modified forwarding.
Alternatively, the Multicast Routing address includes:Group address and source address.
Alternatively, the matching module includes:First matching unit, for when the multicast path
By the prefix of the group address in entry it is consistent with the prefix of the group address of the multicast message when, institute
State the group address that the group address in multicast routing entry supports the multicast message;Second matching is single
Member, for the prefix when the source address in the multicast routing entry and the source of the multicast message
When the prefix of address is consistent, the group address in the multicast routing entry supports the multicast message
Group address.
According to still a further embodiment, a kind of router is additionally provided, including to take up an official post
Described multicast message retransmission unit on one.
According to another embodiment of the present invention, a kind of storage medium is additionally provided.The storage is situated between
Matter is arranged to the program code that storage is used to perform following steps:
S11, receive multicast message, and the Multicast Routing address to being carried in the multicast message
Matched with the multicast routing entry in accesses control list;
S12, described group matched with Multicast Routing address in the accesses control list be present
When broadcasting route entry, the multicast message is forwarded.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S21, the multicast message is forwarded by routeing the interface pre-set in mapping table, its
In, the interface is the interface for being exclusively used in forwarding the multicast message.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S31, check the life span TTL in the route mapping table;
S32, when the value of the TTL is more than 0, the multicast message is forwarded, and reduce
The TTL;When the TTL is equal to or less than 0, the multicast message is abandoned
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S41, according to the message attribute in the route mapping table, the multicast of successfully modified forwarding
The attribute of message.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S51, when prefix and the multicast message of the group address in the multicast routing entry
When the prefix of group address is consistent, the group address in the multicast routing entry supports the multicast report
The group address of text;
S52, when prefix and the multicast message of the source address in the multicast routing entry
When the prefix of source address is consistent, the group address in the multicast routing entry supports the multicast report
The group address of text
By the present invention, due to determining whether the Multicast Routing in access control class table by matching
Entry presence can support the Multicast Routing address in multicast message, therefore the present invention can solve
It is merely able to forward the flow of unicast message in correlation technique according to policy routing mechanism, so as to realize
According to forwarding of the policy routing mechanism to the flow of multicast message.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the application
A part, schematic description and description of the invention is used to explain the present invention, not structure
Into inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of mobile terminal of the retransmission method of multicast message of the embodiment of the present invention
Hardware block diagram;
Fig. 2 is a kind of flow chart of the retransmission method of multicast message according to embodiments of the present invention;
Fig. 3 is the flow of the retransmission method of another multicast message according to embodiments of the present invention
Figure;
Fig. 4 is that a kind of scene of the retransmission method of multicast message according to embodiments of the present invention is shown
It is intended to;
Fig. 5 is a kind of structural frames of the retransmission unit of multicast message according to embodiments of the present invention
Figure;
Fig. 6 is the structure of the retransmission unit of another multicast message according to embodiments of the present invention
Block diagram;
Fig. 7 is also a kind of structure of the retransmission unit of multicast message according to embodiments of the present invention
Block diagram;
Fig. 8 is the structure of the retransmission unit of another multicast message according to embodiments of the present invention
Block diagram;
Fig. 9 is a kind of structure of the retransmission unit of multicast message according to embodiments of the present invention
Block diagram.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.Need what is illustrated
It is that, in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.
It should be noted that the art in description and claims of this specification and above-mentioned accompanying drawing
Language " first ", " second " etc. are for distinguishing similar object, without specific for describing
Order or precedence.
Embodiment 1
The embodiment of the method that the embodiment of the present application one is provided can be whole in mobile terminal, computer
Performed in end or similar arithmetic unit.Exemplified by running on the router, Fig. 1 is this hair
A kind of hardware block diagram of the mobile terminal of the retransmission method of multicast message of bright embodiment.Such as
Shown in Fig. 1, router 10 can include one or more (one is only shown in figure) and handle
(processor 102 can include but is not limited to Micro-processor MCV or FPGA to device 102
The processing unit of device FPGA etc.), the memory 104 for data storage and be used for
The transmitting device 106 of communication function.It will appreciated by the skilled person that shown in Fig. 1
Structure be only illustrate, it does not cause to limit to the structure of above-mentioned electronic installation.For example, road
More either less components than shown in Fig. 1 be may also include by device 10 or had and figure
Different configuration shown in 1.
Memory 104 can be used for the software program and module of storage application software, such as present invention
Programmed instruction/module corresponding to the retransmission method of multicast message in embodiment, processor 102
The software program and module being stored in by operation in memory 104, so as to perform various work(
It can apply and data processing, that is, realize above-mentioned method.Memory 104 may include at a high speed with
Machine memory, may also include nonvolatile memory, as one or more magnetic storage device,
Flash memory or other non-volatile solid state memories.In some instances, memory 104 can
Further comprise that these remote memories can relative to the remotely located memory of processor 102
To pass through network connection to router 10.The example of above-mentioned network include but is not limited to internet,
Intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device 106 is used to data are received or sent via a network.Above-mentioned network
Instantiation may include the wireless network that the communication providerses of router 10 provide.In a reality
In example, transmitting device 106 include network adapter (Network Interface Controller,
NIC), it can be connected so as to be communicated with internet by base station with other network equipments.
In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) mould
Block, it is used to wirelessly be communicated with internet.
A kind of forwarding for the multicast message for running on above-mentioned router is provided in the present embodiment
Method, Fig. 2 are a kind of flow charts of the retransmission method of multicast message according to embodiments of the present invention,
As shown in Fig. 2 the flow comprises the following steps:
Step S202, receive multicast message, and the multicast path to being carried in the multicast message
Matched by the multicast routing entry in address and accesses control list;
Alternatively, Multicast Routing address includes group address and source address.
Alternatively, the Control Cooling of the multicast routing entry includes, the first Control Cooling, uses
Each described source address carries out multicast forwarding in the instruction group address;Second Control Cooling,
For indicating to specify source address to carry out multicast forwarding in the group address.
Specifically, the first Control Cooling can be expressed as (*, G).Wherein G represents group address,
And * represents each source address in group address G.
Specifically, the second Control Cooling can be expressed as (S, G).Wherein G represents group address,
And S represents the specified source address S in group address G.
Alternatively, the prefix when the group address in the multicast routing entry and the multicast message
Group address prefix it is consistent when, the group address in the multicast routing entry supports the multicast
The group address of message;Prefix and the multicast report when the source address in the multicast routing entry
When the prefix of the source address of text is consistent, the group address in the multicast routing entry supports described group
Report the group address of text
Specifically, the mode of the multicast matched rule in accesses control list for allow or refusal+
Source address prefix+group address prefix.
Alternatively, the prefix of the group address includes the mask of the group address and the group address;
The prefix of the source address includes the mask of the source address and the source address.
Specifically, accesses control list by multiple set of serial numbers into by each sequence number
The access control rule of different multicast routing entries is set, to realize carrying for multicast forwarding capacity
Rise.
Specifically, the access control rule of multicast routing entry include source address, destination address,
A variety of message attributes such as port numbers.
Step S204, there is what is matched with Multicast Routing address in the accesses control list
During the multicast routing entry, the multicast message is forwarded;
Alternatively, the first interface pre-set by routeing in mapping table forwards the multicast report
Text, wherein, the first interface is the interface for being exclusively used in forwarding the multicast message.
Alternatively, the multicast report is received by the second interface bound with the route mapping table
Text.
Specifically, the first receiving interface and the second data received can be one or more.Together
When the first receiving interface network environment and the network environment of second interface can be with identical or different.
Specifically, multicast message can also be supported to carry out VPN flow importings, tool in this implementation
Body method is as follows:The private network interface (second interface) of router device and route mapping table are tied up
It is fixed, and route mapping table and be additionally provided with public network interface (first interface).When private network interface connects
After receiving multicast message, multicast message can be forwarded to public network by public network interface.Similarly, it is right
Public network interface and route mapping table binding in router device, and route mapping table and also set up
By private network interface.After open interface is to multicast message, multicast message can pass through private network
Interface is forwarded to private network.
It is pointed out that the above method is a kind of exemplary illustration, by the above method,
It can not only realize and support multicast message to carry out VPN flow importings, while can also realize not
With the multicast message forwarding between network environment.
Specifically, exist in the accesses control list described in being matched with Multicast Routing address
During multicast routing entry, the multicast message of group successful match can also be replicated, then by above-mentioned group
Report text forwarding.
Alternatively, in order to prevent route loop, check and be used to control in the route mapping table
Forward the life span TTL of hop count;When the value of the TTL is more than 0, described in forwarding
Multicast message, and reduce the TTL;When the TTL is equal to or less than 0, abandon
The multicast message
Alternatively, in order to enrich the Rule of judgment of multicast message forwarding, the route mapping table is set
The entry-into-force time of control flux of multicast forwarding is equipped with, wherein, when the system time of router device
When in the time range indicated by the entry-into-force time, the multicast message is forwarded.
Specifically, the entry-into-force time includes but is not limited to:Single time section and circulation time section.
Specifically, if when the system time of router device is within above-mentioned entry-into-force time scope
When, route mapping table now can come into force, while multicast message can also be instructed to be forwarded.
And if when the system time of router device is beyond within above-mentioned entry-into-force time scope, then
Route mapping table failure now, therefore will refuse to instruct the forwarding for carrying out multicast message.
Specifically, each route mapping table be by multiple set of serial numbers into, and for every
One sequence number is both provided with different multicast routing entry access rules and forwarding multicasting message
Regulation, to lift multicast forwarding capacity.
Another multicast message for running on above-mentioned router is additionally provided in the present embodiment
Retransmission method, Fig. 3 are the retransmission methods of another multicast message according to embodiments of the present invention
Flow chart, as shown in figure 3, the flow in addition to step 202-204, is also wrapped in including Fig. 2
Include following steps:
S302, according to the message attribute in the route mapping table, the multicast of successfully modified forwarding
The attribute of message.
It is pointed out that above-mentioned message attribute comprises at least one of:Life span
TTL or service type TOS (Type Of Service).Certainly, for example, message version
Information, the piece skew of message and first place are examined and wait other message attributes also in the present embodiment
Within protection domain.
In addition, following scene is additionally provided in the present embodiment, for more clearly description
Above-mentioned method flow in this implementation.Specifically include as follows:
Fig. 4 is that a kind of scene of the retransmission method of multicast message according to embodiments of the present invention is shown
It is intended to.As shown in figure 4, router device A connection multicast sources, router device B connections
User equipment 1 and user equipment 2, router device C connections user equipment 3.When user sets
It is standby when needing flux of multicast, can according to set forth herein method complete multicast message from multicast source
To the forwarding of user.It is assumed that the multicast source address of flux of multicast is S1 in embodiment, multicast group
Address is G1.The scene for realizing multicast message forwarding is explained in detail below.
The arranging access control list Macl-A on router A, the route for allowing forwarding is set
Entry source address is S1, group address G1.Configuration route mapping table is named as Mmap-A,
Accesses control list Macl-A is quoted in Mmap-A, sets first to connect in Mmap-A
Mouth fei-2a interfaces and fei-3a interfaces, are exclusively used in forwarding multicasting message.Route mapping table
Mmap-A is tied to second interface fei-1a, is exclusively used in receiving multicast message.Complete to match somebody with somebody and postpone,
Can be to fei-2a interfaces and fei-3a interfaces when fei-1a interfaces receive the flow of (S1, G1)
Forwarding multicast flow.According to above-mentioned flow, router A is to router B and router C
It forwarded the flux of multicast in multicast message.
Arranging access control list is named as Macl-B on router B, and setting allows to forward
Route entry source address be S1, group address G1.Configuration route mapping table is named as
Mmap-B, accesses control list Macl-B is quoted in Mmap-B, is set in Mmap-B
First interface fei-2b interfaces and fei-3b interfaces are put, route mapping table Mmap-B is tied to
Second interface fei-1b.Complete with postponing, when fei-1b interfaces receive the flow of (S1, G1)
Shi Huixiang fei-2b interfaces and fei-3b interface forwarding multicast flows.According to above-mentioned flow, route
Flux of multicast on device B into user 1 and the forwarding multicasting message of user 2.
Arranging access control list is named as Macl-C on router C, and setting allows to forward
Route entry source address be S1, group address G1.Configuration route mapping table is named as
Mmap-C, accesses control list Macl-C is quoted in Mmap-C, is set in Mmap-C
Put first interface fei-2c interfaces.Route mapping table Mmap-C is tied to second interface fei-1c.
Complete with postponing, can be to fei-2c interfaces when fei-1c interfaces receive the flow of (S1, G1)
Forwarding multicast flow.According to above-mentioned flow, to the forwarding multicasting message of user 3 on router C
In flux of multicast.
Scene 1,
When there is new user to ask same flux of multicast, it is assumed that it is user 4, the road of connection
When needing the flux of multicast of (S1, G1) by device equipment for router C, now in router
Increase and decrease fei-3d interfaces in mapping table as first interface, to realize flux of multicast to user's 4
Forwarding., can be each when needing to forward the flux of multicast of G1 any multicast source
Increase a sequence number in the accesses control list of individual configuration of routers, fortune is set in sequence number
The router entries source address of row forwarding is 0.0.0.0, group address G2.Now system can be with
Complete to be sent to user terminal to the flux of multicast that the group address that any source address is sent is G2.
Scene 2
When router C is needed within the specified period to the forwarding multicasting entry of multicast user 3
The flux of multicast of (S1, G1), not to the forwarding multicasting bar of multicast user 3 in other times
, it is necessary to define a period list on router C during mesh (S1, G1) flux of multicast
T-range is named as, it is (i.e. above-mentioned according to network demand to define entry-into-force time section in T-range
Entry-into-force time).Period list T-range is quoted in mapping table Mmap-C is route.Configuration
After the completion of, within the period that T-range is defined, Mmap-C is in and enables state, route
The interface rules that device C defines according to Mmap-C forward (S1, G1) flux of multicast.In T-range
Outside the period of definition, Mmap-C is in dead status, router C will not forward (S1,
G1) flux of multicast.
Scene 3
Router A, router B and router C have run multicast routing protocol PIM-SM,
Multicast distribution tree is generated to forward the flux of multicast of multicast entry (S1, G1) from multicast source
To multicast user 1, user 2 and user 3.
Because certain reason, such as the reasons of user 1, router B no longer need to
The forwarding multicast flow of family 1.Implementation method is as follows, the configuration access control row on router B
Table is named as Macl-B, and the route entry source address that setting allows to forward is S1, and group address is
G1.Mmap-B is configured, accesses control list Macl-B is quoted in Mmap-B,
Connection USER2 first interface fei-3b interfaces are set in Mmap-B.Route mapping table
Mmap-B is tied to second interface fei-1b.Because tactful multi-cast system forwarding priority is higher than
Multicast routing protocol, flux of multicast can complete flux of multicast according to the setting of tactful multi-cast system and exist
Forwarded on router B to user 2, no longer search multicast routing protocol routing table afterwards,
Therefore no longer multicast data flow is sent to user 1.
Through the above description of the embodiments, those skilled in the art can be understood that
The mode of general hardware platform necessary to can add to the method according to above-described embodiment by software
To realize, naturally it is also possible to which by hardware, but the former is more preferably embodiment in many cases.
Based on such understanding, technical scheme substantially makes tribute to prior art in other words
The part offered can be embodied in the form of software product, and the computer software product is stored in
In one storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to
A so that station terminal equipment (can be mobile phone, computer, server, or network equipment etc.)
Perform the method described in each embodiment of the present invention.
Embodiment 2
A kind of retransmission unit of multicast message is additionally provided in the present embodiment, and the device is used for real
Existing above-described embodiment and preferred embodiment, had carried out repeating no more for explanation.It is such as following
Used, term " module " can realize the combination of the software and/or hardware of predetermined function.
Although device described by following examples is preferably realized with software, hardware, or
The realization of the combination of software and hardware is also what may and be contemplated.
Alternatively, the present invention is applied to the various equipment with IP message transfer capabilitys, especially
It is router.Certainly, other have the equipment of IP message transfer capabilitys also in this embodiment
Within protection domain.(such as the electronic equipment such as interchanger, terminal, PDA)
Fig. 5 is a kind of structural frames of the retransmission unit of multicast message according to embodiments of the present invention
Figure, as shown in figure 5, the device includes receiving module 52, matching module 54 and forwarding mould
Block 56.
Receiving module 52, for receiving multicast message;
Matching module 54, receiving module 52 is connected to, for being carried in the multicast message
Multicast Routing address and accesses control list in multicast routing entry matched;
Specifically, the Multicast Routing address includes:Group address and source address.
Alternatively, the Control Cooling of the multicast routing entry includes, the first Control Cooling, uses
Each described source address carries out multicast forwarding in the instruction group address;Second Control Cooling,
For indicating to specify source address to carry out multicast forwarding in the group address.
Specifically, the first Control Cooling can be expressed as (*, G).Wherein G represents group address,
And * represents each source address in group address G.
Specifically, the second Control Cooling can be expressed as (S, G).Wherein G represents group address,
And S represents the specified source address S in group address G.
Forwarding module 56, forwarding module 56 is connected to, in the accesses control list
During in the presence of the multicast routing entry matched with Multicast Routing address, the multicast message is forwarded.
Fig. 6 is the structure of the retransmission unit of another multicast message according to embodiments of the present invention
Block diagram, as shown in fig. 6, forwarding module 56 includes:First interface unit 62 and second connect
Mouth unit 64.
First interface unit 62, it is pre-set in route mapping table, is exclusively used in described in forwarding
Multicast message;
Second interface unit 64, bound with the route mapping table, for receiving the multicast
Message.
Specifically, the first receiving interface and the second data received can be one or more.Together
When the first receiving interface network environment and the network environment of second interface can be with identical or different.
Specifically, multicast message can also be supported to carry out VPN flow importings, tool in this implementation
Body method is as follows:The private network interface (second interface) of router device and route mapping table are tied up
It is fixed, and route mapping table and be additionally provided with public network interface (first interface).When private network interface connects
After receiving multicast message, multicast message can be forwarded to public network by public network interface.Similarly, it is right
Public network interface and route mapping table binding in router device, and route mapping table and also set up
By private network interface.After open interface is to multicast message, multicast message can pass through private network
Interface is forwarded to private network.
It is pointed out that the above method is a kind of exemplary illustration, by the above method,
It can not only realize and support multicast message to carry out VPN flow importings, while can also realize not
With the multicast message forwarding between network environment.
Alternatively, the route mapping table is provided with the entry-into-force time of control flux of multicast forwarding,
Wherein, when the system time of router device is located at the time range indicated by the entry-into-force time
When interior, the multicast message is forwarded.
Specifically, the entry-into-force time includes but is not limited to:Single time section and circulation time section.
Specifically, if when the system time of router device is within above-mentioned entry-into-force time scope
When, route mapping table now can come into force, while multicast message can also be instructed to be forwarded.
And if when the system time of router device is beyond within above-mentioned entry-into-force time scope, then
Route mapping table failure now, therefore would not also go to instruct multicast message to refuse to instruct
Carry out the forwarding of multicast message.
Fig. 7 is also a kind of structure of the retransmission unit of multicast message according to embodiments of the present invention
Block diagram, as shown in fig. 7, forwarding module 56 includes:Inspection unit 72 and retransmission unit
74。
Inspection unit 72, it is used for control forwarding hop count for checking in the route mapping table
Life span TTL;
Retransmission unit 74, inspection unit 72 is connected to, for being more than when the value of the TTL
When 0, the multicast message is forwarded, and reduces the TTL;Be equal to as the TTL or
During less than 0, the multicast message is abandoned.
Fig. 8 is the structure of the retransmission unit of another multicast message according to embodiments of the present invention
Block diagram, as shown in figure 8, described device includes:Modified module 82.
Modified module 82, for the message attribute in the route mapping table, it is modified as
The attribute of the multicast message of work(forwarding.
It is pointed out that above-mentioned message attribute comprises at least one of:Life span
TTL or service type TOS (Type Of Service).Certainly, for example, message version
Information, the piece skew of message and first place are examined and wait other message attributes also in the present embodiment
Within protection domain.Fig. 9 is a kind of forwarding dress of multicast message according to embodiments of the present invention
The structured flowchart put, as shown in figure 9, the matching module 54 includes:First matching unit
92 and second matching unit 94.
First matching unit 92, for when the prefix of the group address in the multicast routing entry
When consistent with the prefix of the group address of the multicast message, group in the multicast routing entry
Support the group address of the multicast message in location;
Alternatively, the prefix of the group address includes the mask of the group address and the group address;
Second matching unit 94, the first matching unit 92 is connected to, for when the multicast path
By the prefix of the source address in entry it is consistent with the prefix of the source address of the multicast message when, institute
State the group address that the group address in multicast routing entry supports the multicast message.
Alternatively, the prefix of the source address includes the mask of the source address and the source address.
Specifically, the mode of the multicast matched rule in accesses control list is permission/refusal+source
Address prefix+group address prefix.
It should be noted that above-mentioned modules can be realized by software or hardware,
For the latter, can be accomplished by the following way, but not limited to this:Above-mentioned module is respectively positioned on together
In one processor;Or the form of above-mentioned modules in any combination is respectively positioned at different
In processor.
Embodiment 3
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment,
Above-mentioned storage medium can be configured to the program code that storage is used to perform following steps:
S11, receive multicast message, and the Multicast Routing address to being carried in the multicast message
Matched with the multicast routing entry in accesses control list;
S12, described group matched with Multicast Routing address in the accesses control list be present
When broadcasting route entry, the multicast message is forwarded.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S21, the multicast message is forwarded by routeing the interface pre-set in mapping table, its
In, the interface is the interface for being exclusively used in forwarding the multicast message.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S31, check the life span TTL in the route mapping table;
S32, when the value of the TTL is more than 0, the multicast message is forwarded, and reduce
The TTL;When the TTL is equal to or less than 0, the multicast message is abandoned
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S41, according to the message attribute in the route mapping table, the multicast of successfully modified forwarding
The attribute of message.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S51, when prefix and the multicast message of the group address in the multicast routing entry
When the prefix of group address is consistent, the group address in the multicast routing entry supports the multicast report
The group address of text;
S52, when prefix and the multicast message of the source address in the multicast routing entry
When the prefix of source address is consistent, the group address in the multicast routing entry supports the multicast report
The group address of text
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk,
Read-only storage (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various to store
The medium of program code.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each
Step can realize that they can concentrate on single computing device with general computing device
On, or be distributed on the network that multiple computing devices are formed, alternatively, they can be used
The executable program code of computing device is realized, it is thus possible to be stored in storage dress
Performed in putting by computing device, and in some cases, can be with suitable different from herein
Sequence performs shown or described step, or they are fabricated to each integrated circuit die respectively
Block, or the multiple modules or step in them are fabricated to single integrated circuit module to realize.
So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention,
For those skilled in the art, the present invention can have various modifications and variations.It is all this
Within the spirit and principle of invention, any modification, equivalent substitution and improvements made etc. all should
Within protection scope of the present invention.
Claims (18)
- A kind of 1. retransmission method of multicast message, it is characterised in that including:Receive multicast message, and the Multicast Routing address to being carried in the multicast message and Multicast routing entry in accesses control list is matched;Described group matched with Multicast Routing address in the accesses control list be present When broadcasting route entry, the multicast message is forwarded.
- 2. according to the method for claim 1, it is characterised in that forward described group Reporting text includes:The first interface pre-set by routeing in mapping table forwards described group Text is reported, wherein, the first interface is the interface for being exclusively used in forwarding the multicast message.
- 3. according to the method for claim 2, it is characterised in that receive multicast report Text, including:The multicast is received by the second interface bound with the route mapping table Message.
- 4. according to the method for claim 2, it is characterised in that the route is reflected Firing table is provided with the entry-into-force time of control flux of multicast forwarding, wherein, work as router device System time when being located in the time range indicated by the entry-into-force time, described in forwarding Multicast message.
- 5. according to the method for claim 2, it is characterised in that forward described group Text is reported, in addition to:Check the life span TTL in the route mapping table;When the value of the TTL is more than 0, the multicast message is forwarded, and reduce institute State TTL;When the TTL is equal to or less than 0, the multicast message is abandoned.
- 6. according to the method for claim 2, it is characterised in that described in forwarding After multicast message, methods described also includes:According to the message attribute in the route mapping table, the multicast report of successfully modified forwarding The attribute of text.
- 7. according to the method for claim 1, it is characterised in that the multicast path Included by address:Group address and source address.
- 8. according to the method for claim 6, it is characterised in that the multicast path Included by the Control Cooling of entry,First Control Cooling, for indicating that the source address of each in the group address is entered Row multicast forwarding;Second Control Cooling, for indicating to specify source address to carry out multicast in the group address Forwarding.
- 9. the method according to claim 7 or 8, it is characterised in that reception group Report text, and the Multicast Routing address to being carried in the multicast message and access control row Multicast routing entry in table is matched, including:Prefix and the multicast message when the group address in the multicast routing entry When the prefix of group address is consistent, the group address in the multicast routing entry supports described group Report the group address of text;Prefix and the multicast message when the source address in the multicast routing entry When the prefix of source address is consistent, the group address in the multicast routing entry supports described group Report the group address of text.
- 10. according to the method for claim 9, it is characterised in that the group address Prefix include the mask of the group address and the group address;The prefix of the source address Mask including the source address Yu the source address.
- A kind of 11. retransmission unit of multicast message, it is characterised in that including:Receiving module, for receiving multicast message;Matching module, for the Multicast Routing address to being carried in the multicast message and visit Ask that the multicast routing entry in control list is matched;Forwarding module, for existing and Multicast Routing address in the accesses control list During the multicast routing entry of matching, the multicast message is forwarded.
- 12. device according to claim 11, it is characterised in that the forwarding Module also includes,First interface unit, it is pre-set in route mapping table, is exclusively used in described in forwarding Multicast message;Second interface unit, bound with the route mapping table, for receiving the multicast Message.
- 13. device according to claim 12, it is characterised in that the forwarding Module also includes:The route mapping table is provided with the entry-into-force time of control flux of multicast forwarding, wherein, When the system time of router device is located at the time range indicated by the entry-into-force time When interior, the multicast message is forwarded.
- 14. device according to claim 12, it is characterised in that the forwarding Module also includes:Inspection unit, for checking the life span TTL in the route mapping table;Retransmission unit, for when the value of the TTL is more than 0, forwarding the multicast Message, and reduce the TTL;When the TTL is equal to or less than 0, institute is abandoned State multicast message.
- 15. device according to claim 12, it is characterised in that described device Also include:Modified module, for the message attribute in the route mapping table, it is modified as The attribute of the multicast message of work(forwarding.
- 16. device according to claim 11, it is characterised in that the multicast Routing address includes:Group address and source address.
- 17. device according to claim 16, it is characterised in that the matching Module includes:First matching unit, for when the prefix of the group address in the multicast routing entry When consistent with the prefix of the group address of the multicast message, in the multicast routing entry Group address supports the group address of the multicast message;Second matching unit, for when the prefix of the source address in the multicast routing entry When consistent with the prefix of the source address of the multicast message, in the multicast routing entry Group address supports the group address of the multicast message.
- 18. a kind of router, it is characterised in that including any one of claim 11-17 Described device.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610460064.9A CN107528781A (en) | 2016-06-22 | 2016-06-22 | Retransmission method and device, the router of multicast message |
PCT/CN2017/079723 WO2017219732A1 (en) | 2016-06-22 | 2017-04-07 | Forwarding method and device for multicast message, router, and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610460064.9A CN107528781A (en) | 2016-06-22 | 2016-06-22 | Retransmission method and device, the router of multicast message |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107528781A true CN107528781A (en) | 2017-12-29 |
Family
ID=60734164
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610460064.9A Pending CN107528781A (en) | 2016-06-22 | 2016-06-22 | Retransmission method and device, the router of multicast message |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107528781A (en) |
WO (1) | WO2017219732A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108650237A (en) * | 2018-04-13 | 2018-10-12 | 烽火通信科技股份有限公司 | A kind of packet safety detection method and system based on the time-to-live |
CN109391551A (en) * | 2017-08-14 | 2019-02-26 | 中兴通讯股份有限公司 | A kind of multiport method of multicasting, equipment and computer readable storage medium |
CN114448740A (en) * | 2022-01-14 | 2022-05-06 | 绿盟科技集团股份有限公司 | Multicast method, device, medium, product and equipment |
CN115102902A (en) * | 2022-06-21 | 2022-09-23 | 北京天融信网络安全技术有限公司 | Automatic switching method, device and analysis method for control strategy routing |
WO2023092497A1 (en) * | 2021-11-26 | 2023-06-01 | Oppo广东移动通信有限公司 | Groupcast message processing method and related apparatus |
Citations (9)
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 |
CN1567837A (en) * | 2003-06-26 | 2005-01-19 | 华为技术有限公司 | A method and system for multicast source control |
CN101106470A (en) * | 2007-06-30 | 2008-01-16 | 华为技术有限公司 | A multicast method, network device and system |
CN101938696A (en) * | 2009-06-30 | 2011-01-05 | 上海贝尔股份有限公司 | Method and device for controlling forwarding of mobile broadcast and multicast services in passive optical network |
CN101989952A (en) * | 2010-11-03 | 2011-03-23 | 中兴通讯股份有限公司 | Multicasting method and device |
CN102299845A (en) * | 2011-09-20 | 2011-12-28 | 神州数码网络(北京)有限公司 | Multi-link transparent interconnection multicast frame transmission method and system thereof |
CN102957616A (en) * | 2011-08-18 | 2013-03-06 | 盛科网络(苏州)有限公司 | Method and system for transferring TRILL (transparent interconnection of lots of links) network messages in an ASIC(application specific integrated circuit ) |
CN103841013A (en) * | 2012-11-21 | 2014-06-04 | 杭州华三通信技术有限公司 | Method and device for forwarding messages in TRILL network |
CN105656792A (en) * | 2014-11-12 | 2016-06-08 | 中兴通讯股份有限公司 | Multicast device and Internet group management protocol snooping multicast stream bandwidth management method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100420240C (en) * | 2006-03-30 | 2008-09-17 | 华为技术有限公司 | Multi-cast broadcasting popedom controlling method |
US20090125470A1 (en) * | 2007-11-09 | 2009-05-14 | Juniper Networks, Inc. | System and Method for Managing Access Control Lists |
CN101252529A (en) * | 2008-03-31 | 2008-08-27 | 杭州华三通信技术有限公司 | Method and apparatus for forwarding multicast message |
CN101674222B (en) * | 2008-09-10 | 2013-01-30 | 华为技术有限公司 | Method and system for multicast switching |
-
2016
- 2016-06-22 CN CN201610460064.9A patent/CN107528781A/en active Pending
-
2017
- 2017-04-07 WO PCT/CN2017/079723 patent/WO2017219732A1/en active Application Filing
Patent Citations (9)
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 |
CN1567837A (en) * | 2003-06-26 | 2005-01-19 | 华为技术有限公司 | A method and system for multicast source control |
CN101106470A (en) * | 2007-06-30 | 2008-01-16 | 华为技术有限公司 | A multicast method, network device and system |
CN101938696A (en) * | 2009-06-30 | 2011-01-05 | 上海贝尔股份有限公司 | Method and device for controlling forwarding of mobile broadcast and multicast services in passive optical network |
CN101989952A (en) * | 2010-11-03 | 2011-03-23 | 中兴通讯股份有限公司 | Multicasting method and device |
CN102957616A (en) * | 2011-08-18 | 2013-03-06 | 盛科网络(苏州)有限公司 | Method and system for transferring TRILL (transparent interconnection of lots of links) network messages in an ASIC(application specific integrated circuit ) |
CN102299845A (en) * | 2011-09-20 | 2011-12-28 | 神州数码网络(北京)有限公司 | Multi-link transparent interconnection multicast frame transmission method and system thereof |
CN103841013A (en) * | 2012-11-21 | 2014-06-04 | 杭州华三通信技术有限公司 | Method and device for forwarding messages in TRILL network |
CN105656792A (en) * | 2014-11-12 | 2016-06-08 | 中兴通讯股份有限公司 | Multicast device and Internet group management protocol snooping multicast stream bandwidth management method |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109391551A (en) * | 2017-08-14 | 2019-02-26 | 中兴通讯股份有限公司 | A kind of multiport method of multicasting, equipment and computer readable storage medium |
CN109391551B (en) * | 2017-08-14 | 2021-10-12 | 中兴通讯股份有限公司 | Multi-port multicast method, equipment and computer readable storage medium |
CN108650237A (en) * | 2018-04-13 | 2018-10-12 | 烽火通信科技股份有限公司 | A kind of packet safety detection method and system based on the time-to-live |
CN108650237B (en) * | 2018-04-13 | 2020-09-08 | 烽火通信科技股份有限公司 | Message security check method and system based on survival time |
WO2023092497A1 (en) * | 2021-11-26 | 2023-06-01 | Oppo广东移动通信有限公司 | Groupcast message processing method and related apparatus |
CN114448740A (en) * | 2022-01-14 | 2022-05-06 | 绿盟科技集团股份有限公司 | Multicast method, device, medium, product and equipment |
CN114448740B (en) * | 2022-01-14 | 2023-11-07 | 绿盟科技集团股份有限公司 | Multicast method, device, medium, product and equipment |
CN115102902A (en) * | 2022-06-21 | 2022-09-23 | 北京天融信网络安全技术有限公司 | Automatic switching method, device and analysis method for control strategy routing |
Also Published As
Publication number | Publication date |
---|---|
WO2017219732A1 (en) | 2017-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10630578B2 (en) | Systems and methods for software defined networking service function chaining | |
EP2945320B1 (en) | Method, device and routing system for data transmission of network virtualization | |
CN107925624B (en) | Message forwarding method, device and system based on Service Function Chain (SFC) | |
WO2022062506A1 (en) | Data processing method and apparatus, storage medium, and electronic apparatus | |
CN102571587B (en) | Method and equipment for forwarding messages | |
KR101473783B1 (en) | Method and apparatus for control of dynamic service chaining by using tunneling | |
CN107528781A (en) | Retransmission method and device, the router of multicast message | |
CN104301252B (en) | A kind of data Transmission system and data transmission method for uplink | |
CN110620717B (en) | Network device, non-transitory computer-readable medium, and method for communication | |
CN104335537A (en) | System and method for layer-2 multicast multipathing | |
CN110324159B (en) | Link configuration method, controller and storage medium | |
CN104601467A (en) | Method and device for sending messages | |
WO2022021818A1 (en) | Method and device for processing data message, storage medium, and electronic device | |
CN112134776B (en) | Method for generating multicast forwarding table item and access gateway | |
CN106105098A (en) | Switch and the processing method of service request message | |
CN104734877A (en) | Method, device and system for obtaining configuration server information | |
CN102710510B (en) | Information processing method, apparatus and system | |
WO2017124712A1 (en) | Message generating method, message forwarding method and device | |
US7978728B2 (en) | Network clustering for improving connection management and re-routing capabilities | |
US7764926B2 (en) | Communication relaying apparatus, communication relay, and controlling method | |
CN108934084A (en) | Dynamic tunnel establishment in a mesh network | |
US10177935B2 (en) | Data transfer system, data transfer server, data transfer method, and program recording medium | |
CN104158743A (en) | Method and device of cross-card forwarding of message of distributed router | |
CN106034079B (en) | A kind of method for configuring route, service routing method and core router | |
WO2014199924A1 (en) | Control device, communication system, and control method and program of relay device |
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: 20171229 |
|
RJ01 | Rejection of invention patent application after publication |