WO2015014197A1 - Method for selecting route in scenario of multicast load, and router - Google Patents

Method for selecting route in scenario of multicast load, and router Download PDF

Info

Publication number
WO2015014197A1
WO2015014197A1 PCT/CN2014/081873 CN2014081873W WO2015014197A1 WO 2015014197 A1 WO2015014197 A1 WO 2015014197A1 CN 2014081873 W CN2014081873 W CN 2014081873W WO 2015014197 A1 WO2015014197 A1 WO 2015014197A1
Authority
WO
WIPO (PCT)
Prior art keywords
router
link
multicast
data traffic
processing capability
Prior art date
Application number
PCT/CN2014/081873
Other languages
French (fr)
Chinese (zh)
Inventor
李向东
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015014197A1 publication Critical patent/WO2015014197A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1863Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and a router for routing in a multicast load scenario. Background technique
  • IP Internet Protocol, Protocol Inter-Network Interconnection
  • IPTV IP televisor
  • multimedia conferencing video surveillance, etc.
  • the IP multicast protocol may include: a protocol between the router and the receiver host, a protocol between the router and the router, and the combination of the two may be used to construct a multicast forwarding tree from the multicast source to the multicast data receiver.
  • PIM Protocol Independent Mul t icas t
  • the IP multicast protocol may include: a protocol between the router and the receiver host, a protocol between the router and the router, and the combination of the two may be used to construct a multicast forwarding tree from the multicast source to the multicast data receiver.
  • PIM Protocol Independent Mul t icas t
  • PIM can be divided into: ASM (Any Source Mul t icas t, any source multicast) model and SSM (Source Specif ic Mul t icas t, specific source multicast). model.
  • the multicast source needs to transmit multicast to the receiving end through the corresponding link. Therefore, before performing multicast transmission, you need to establish a multicast forwarding tree, that is, establish a link between the multicast source and the receiving end.
  • a multicast forwarding tree that is, establish a link between the multicast source and the receiving end.
  • the principle of establishing a multicast forwarding tree in PIM is similar for both ASM and SSM models.
  • the SSM model is used as an example to briefly introduce the establishment process of multicast forwarding tree.
  • the router RTD obtains the transmission link of the multicast source S by using unicast routing.
  • the PIM join message is sent to the upstream router hop by hop.
  • the path of the host R1 to the multicast source S may be: RTD -> RTB -> RTA, and the multicast join tree is established along the path, and then the multicast source S is along the PIM.
  • the multicast data is forwarded to the host R1, which can be from the RTA->RTB->RTD.
  • the unicast route is used to obtain the transmission link of the host R1 to the multicast source S.
  • the transmission link of the host R1 to the multicast source S may include, but is not limited to: the current route may select a neighbor route with less selected times as the upstream route.
  • the link with the upstream route is the obtained upstream link, and the upstream link selected by the route is integrated to obtain the transmission link of the host R1 to the multicast source S.
  • * , G ) and (S , G ) and hash mode select an upstream route. For example, you can select a neighbor route with a larger hash value as the upstream route.
  • ⁇ unicast routing is used to obtain the link between the host R1 and the multicast source S, if the current route is selected.
  • the upstream link is connected to multiple routes.
  • the upstream link shares the multicast data of multiple routes connected to it. As a result, multicast data is congested or lost, which reduces system performance.
  • the embodiment of the present invention provides a method and a router for routing in a multicast load scenario.
  • the upstream link determined by the multicast source transmits the multicast data to the receiving end, which ensures the reliability of the multicast data transmission. Integrity, which in turn increases the performance of the system.
  • the first aspect provides a method for routing in a multicast load scenario, including:
  • the first router acquires the multicast processing capability of the second router and the multicast processing capability of the third router, where the second router is the first next hop router in the uplink direction of the first router, and the third router The second next hop router of the first router in the uplink direction, where the uplink direction is a direction from the first router to a multicast source;
  • the multicast processing capability includes: a data flow capability parameter of the router, where the data flow capability parameter is used to describe at least one of the following: a data traffic currently carried by the router and a router capable of carrying Maximum data traffic.
  • the router that optimizes multicast processing capability in the second router and the third router is determined as The optimal upstream routers in the row direction include:
  • the router that minimizes the data traffic currently carried by the second router and the third router is determined as the optimal upstream router; or ,
  • the maximum data traffic that can be carried by the second router and the third router is the largest. Determined by the device as the optimal upstream router; or,
  • the optimal upstream router is determined according to the weight, and the weight is used to represent the weight of the data traffic currently carried by the router. And the weight of the maximum data traffic that the router can carry.
  • the acquiring, by the first router, the multicast processing capability of the second router and the multicast processing capability of the third router include:
  • the multicast processing capability further includes: the priority.
  • the router that optimizes multicast processing capability in the second router and the third router is determined as The optimal upstream routers in the row direction include:
  • the router that minimizes the data traffic currently carried by the second router and the third router is determined as the optimal upstream router; or ,
  • the router that has the largest data traffic that can be carried by the second router and the third router is determined as the optimal upstream router. ; or,
  • the optimal upstream router is determined according to the weight, and the weight is used to represent the weight of the data traffic currently carried by the router. And the weight of the maximum data traffic that the router can carry; or,
  • the first router acquires the second router
  • the multicast processing capability and the multicast processing capability of the third router include:
  • the first He1o message includes: a PIM Hell Opt ion field for characterizing a multicast processing capability of the second router, where
  • the second He l lo ⁇ ⁇ text includes: a PIM Hell Op Opon field for characterizing the multicast processing capability of the third router;
  • a first router including:
  • An acquiring unit configured to acquire, by the router, a multicast processing capability of the second router and a multicast processing capability of the third router, where the second router is a first next hop router in the uplink direction of the first router, The third router is a second next hop router of the first router in the uplink direction, where the uplink direction is a direction from the first router to a multicast source;
  • a determining unit configured to determine, as an optimal upstream router in a downlink direction, a router that optimizes multicast processing capability in the second router and the third router, where the downlink direction is from the multicast source to The direction of the first router.
  • the multicast processing capability acquired by the acquiring unit includes: a data circulation capability parameter of the router, where the data circulation capability parameter is used to describe at least one of the following: a data currently carried by the router The maximum amount of data traffic that traffic and routers can carry.
  • the determining unit includes:
  • a first determining module configured to determine, when the data flow capability parameter is used to describe data traffic currently carried by the router, a router that minimizes data traffic currently carried by the second router and the third router Optimal upstream router; or,
  • a second determining module configured to determine, when the data flow capability parameter is used to describe a maximum data traffic that can be carried by the router, a router that is capable of carrying the largest data traffic in the second router and the third router For the optimal upstream router; or,
  • a third determining module configured to: when the data flow capability parameter is used to describe data traffic currently carried by the router and maximum data traffic that the router can bear, determine the optimal upstream router according to a weight, where the weight is used to represent the router The weight of the currently carried data traffic and the weight of the maximum data traffic that the router can carry.
  • the acquiring unit further includes:
  • a fourth determining module configured to calculate a priority of the first link and the second link according to a state parameter of the first link and a state parameter of the second link, where the first link is First router a link between the second router and the third router, where the second link is a link between the first router and the third router, and the status parameter is used to describe that the link is not allowed to transmit data.
  • the multicast processing capability further includes: the priority.
  • the determining unit further includes:
  • a fifth determining module configured to determine, when the data flow capability parameter is used to describe data traffic currently carried by the router, a router that minimizes data traffic currently carried by the second router and the third router Optimal upstream router; or,
  • a sixth determining module configured to: when the data flow capability parameter is used to describe a maximum data traffic that can be carried by the router, determine, by the router that is the largest data traffic that can be carried by the second router and the third router For the optimal upstream router; or,
  • a seventh determining module configured to: when the data flow capability parameter is used to describe data traffic currently carried by the router and maximum data traffic that the router can carry, determine the optimal upstream router according to a weight, where the weight is used to represent the router The weight of the currently carried data traffic and the weight of the maximum data traffic that the router can carry; or,
  • an eighth determining module configured to determine, by the first link, a next hop router that is connected to the highest priority link in the second link as the optimal upstream router.
  • the acquiring unit includes: a receiving module, And receiving, by the second router and the third router, the first He L lo message and the second He l lo message respectively, and the first He l lo message includes: And a PIM Hell Opt ion field indicating a multicast processing capability of the second router, where the second hello message includes: a PIM He l lo for characterizing a multicast processing capability of the third router Opt ion field;
  • An obtaining module configured to obtain, from the first hello packet, the PIM Hell Opt ion field used to represent the multicast processing capability of the second router, and from the second He l lo Obtaining a PIM Hell Opt ion field for characterizing the multicast processing capability of the third router.
  • the first router may select a router with the best multicast processing capability from the second router and the third router as the lower router
  • FIG. 1 is a schematic structural diagram of a scenario in which a route is selected in a multicast load scenario in the prior art
  • FIG. 1 is a flowchart of a method for routing a route in a multicast load scenario according to an embodiment of the present invention
  • a flow chart of a method for routing in another multicast load scenario is provided
  • FIG. 4 is a schematic structural diagram of a PIM Hello Opt ion
  • FIG. 5 is a schematic structural diagram of “Scene 1” applied to the embodiment
  • FIG. 6 is a schematic structural diagram of “Scene 2” applied to the embodiment
  • FIG. 7 is a schematic structural diagram of “Scene 3” applied to the embodiment.
  • FIG. 8 is a schematic structural diagram of a router according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another router according to the embodiment.
  • IP multicast technology enables efficient data transmission from point to point in IP networks.
  • IP multicast protocols can include: SSM models and ASM models.
  • SSM is a new service model that is different from traditional multicast. It uses a multicast group address and a multicast source address to identify a multicast session at the same time, instead of using only multicast groups like traditional multicast services. The address identifies a multicast session.
  • the SSM retains the efficiency of the host in the traditional PIM-SM (Protoco l Independent Mul tica s t-Sparse Mode) mode to join the multicast group, but skips the PIM-SM mode. Shared tree and RP (Rendezvous Po int) procedures.
  • PIM-SM Protoco l Independent Mul tica s t-Sparse Mode
  • One (S, G) pair of SSM is also referred to as a channel to distinguish ASM. Since ASM supports point-to-multipoint and multipoint-to-multipoint multicast service modes, the process of discovering multicast sources in ASM is complicated. For example, in the PIM-SM mode, when a user clicks on the multicast content in the browser, the receiving device is only notified of the content of the multicast group, and is not notified of the information of the multicast source. In SSM mode, the client receives multicast source and multicast group information at the same time.
  • SSM is more suitable for point-to-multipoint multicast services.
  • it can be services such as network entertainment channels, network news channels, and network sports channels.
  • ASM mode is required if multi-point to multi-point multicast services are required.
  • SPT can be established directly between the multicast source and the receiver, instead of establishing an RPT (Rendezvous Po int-rooted Tree, shared tree) like ASM, and then converting to SPT as needed, eliminating PIM.
  • RPT Robot Po int-rooted Tree, shared tree
  • PIM PIM
  • SSM technology has its own advantages in the case of known multicast sources: Not only is it efficient, but it also simplifies multicast address allocation. SSM needs to be used in conjunction with I GMPv3 protocol.
  • the multicast source needs to transmit multicast to the receiving end through the corresponding link.
  • you need to establish a multicast forwarding tree that is, establish a link between the multicast source and the receiving end.
  • each router selects a sub-uplink (that is, the link that the current router selects to reach the next hop router), and integrates the upstream links to obtain an upstream link between the multicast source and the receiver.
  • the link between the host R1 and the multicast source S is obtained by using a unicast route. If the upstream link selected by the current route is connected to multiple routes, the uplink link is shared. Multicast routing data connected to it, causing multicast data to be congested or lost, reducing systemicity
  • the embodiment provides a method for routing a route in a multicast load scenario, and the executor of the method may be a current router. As shown in FIG. 2, the method may include:
  • the first router acquires a multicast processing capability of the second router and a multicast processing capability of the third router.
  • the second router may be the first next hop router in the uplink direction of the first router
  • the third router may be the second next hop router in the uplink direction of the first router, and the uplink direction is from the first router to The direction of the multicast source.
  • the first router in order to ensure accurate and reliable data transmission through the uplink link, it is first required to determine an optimal upstream router in the downlink direction of the upstream link for data transmission, in the first In the case that the router is the execution entity, the first router may first acquire the multicast processing capability of the second router and the multicast processing capability of the third router, and then determine the optimal upstream router according to the multicast processing capability.
  • the downlink direction may be a direction from the multicast source to the first router.
  • the first router may select the router with the best multicast processing capability from the second router and the third router as the optimal upstream router in the downlink direction, and according to the upstream link determined by the optimal upstream router, In this way, the upstream link is the link with the best multicast processing capability, and the multicast source transmits the multicast data to the receiving end through the upstream link, thereby ensuring the reliability and integrity of the multicast data transmission. Increased system performance.
  • This embodiment provides another method for routing in a multicast load scenario.
  • the method is further extended to the method shown in FIG. 1.
  • the method may include:
  • the first router receives the first Hello packet and the second Hello packet that are reported by the second router and the third router at the preset time.
  • the first Hello packet may include: a PIM Hello Option field for characterizing the multicast processing capability of the second router, where the second Hello message may include: PIM Hello for characterizing the multicast processing capability of the third router Option field.
  • the multicast processing capability may be a comprehensive capability, that is, according to the current state of the board (eg, CPU (Central Processing Unit) state, memory state, uplink, and The value obtained by considering the downlink status, etc., the interface type, the link type, the number of SD and HD programs.
  • the SD and HD can be identified by the PIM protocol, which is a publicly available solution, which is well known to those skilled in the art, and is described in this step.
  • FIG. 4 it is a schematic structural diagram of a PIM Hello Option field.
  • the Type can be of the type of ⁇ , the length can be the length of the ⁇ , the Flow Capaci ty can be the multicast processing capability, and the OptionType 65533:
  • the Flow Capaci ty can be: Option Type 65533: Flow Capacity.
  • the format and content of the PIM Hello Opt ion packet are not limited, and may be set according to actual needs, and details are not described herein again.
  • the multicast processing capability can be, but is not limited to, including: Numbers, etc.
  • the data flow capability parameter can be used to describe at least one of the following: The data traffic currently carried by the router and the maximum data traffic that the router can carry. It is worth noting that the current data traffic and the maximum data traffic that can be carried here include downstream data traffic, that is, multicast traffic.
  • the first router obtains a PIM Hello Opt ion field for characterizing the multicast processing capability of the second router from the first He 110 packet, and obtains, by using the second Hello packet, the third router. PIM Hel lo Opt ion field of multicast processing capability.
  • the first router may determine the sub-upstream link according to the multicast processing capability (ie, determine the first router.
  • the optimal upstream router in the row direction that is, the system can determine the upstream link according to the multicast processing capability.
  • the first router needs to obtain the multicast processing capability for characterizing the second router from the first Hello message.
  • a PIM Hel lo Opt ion field, and a PIM Hel lo Opt ion field for characterizing the multicast processing capability of the third router is obtained from the second Hello message.
  • the first router calculates a priority of the first link and the second link according to the state parameter of the first link and the state parameter of the second link.
  • the first link may be a link between the first router and the second router
  • the second link may be a link between the first router and the third router
  • the status parameter may be used to describe that the link is not
  • the multicast processing capability can also include: priority.
  • the status parameter may be represented by a number.
  • the status parameter may be set to 10, and the link between the first router and each next hop router corresponds to a status parameter.
  • the corresponding state parameter is decremented by 1, which is 9.
  • the lower the value of the state parameter the lower the priority of the link.
  • the link with the larger value of the state parameter takes precedence. The higher the level; when the status parameter is the preset upper limit or the preset lower limit, the status parameter is set to the initialized value.
  • the reliability of the upstream data and the downstream data may be considered, and the probability that the link is not allowed to transmit data may be considered, for example, The probability of failure, etc. If the probability of a link failure is high, the reliability and integrity of the data transmission is reduced, for example, data loss. Therefore, in order to increase the performance of the upstream link, it is also necessary to consider the probability that the link is not allowed to transmit data when determining the upstream link.
  • the method for calculating the priority of the link is not limited in this embodiment, and may be set according to actual needs, and is described in this step. 304.
  • the first router determines the router with the best multicast processing capability in the second router and the third router as the optimal upstream router in the downlink direction.
  • the downlink direction is the direction from the multicast source to the first router.
  • the first router determines that the router with the best multicast processing capability in the second router and the third router is the optimal upstream router in the downlink direction, but is not limited to:
  • the router with the smallest data traffic currently carried by the second router and the third router is determined as the optimal upstream router;
  • the router with the largest data traffic that can be carried in the second router and the third router is determined as the optimal upstream router;
  • the optimal upstream router is determined according to the weight, and the weight is used to represent the weight of the data traffic currently carried by the router and the maximum that the router can bear.
  • the weight of the data traffic; or, the next hop router that connects the first link with the highest priority link in the second link is determined as the optimal upstream router.
  • step 303 may not be performed, that is, the probability that the link is not allowed to transmit data is not considered when determining the upstream link.
  • the router with the smallest data traffic currently carried by the second router and the third router is determined as the optimal upstream router;
  • the router with the largest data traffic that can be carried in the second router and the third router is determined as the optimal upstream router;
  • the optimal upstream router is determined according to the weight, and the weight is used to represent the weight of the data traffic currently carried by the router and the maximum that the router can bear. The weight of the data traffic.
  • the upstream link is determined, where the determined upstream link may include: at least one corresponding first upstream router determined by the first router.
  • the system transmits the upstream data according to the upstream link.
  • the downstream data is transmitted in the direction, that is, multicast data.
  • multiple upstream links determined by the foregoing method may exist in the system.
  • data may be transmitted through the corresponding upstream link, and may be implemented according to actual conditions. Replace the upstream link for data transmission. The details are described in steps 306 to 309.
  • the system determines, in the first state, whether the first upstream link is not allowed to transmit data. Further, the system may include, but is not limited to, including: a first state in which data transmission is performed by the current first upstream link.
  • step 305 if data is allowed to be transmitted, step 305 is performed. If data is not allowed to be transmitted, step 307 is performed.
  • system may also include, but is not limited to: a second state in which data transmission is performed by a second upstream link other than the first upstream link that is allowed to transmit data.
  • step 309 if the first upstream link is allowed to transmit data, step 309 is performed. If the first upstream link is not allowed to transmit data, step 308 is performed.
  • the preset time is not limited in this embodiment, and may be set according to actual needs, and details are not described herein again.
  • the router SR to the multicast source may include two equal-cost links Link_A, L ink-B, and the multicast traffic transmitted by the multicast source to the SR may pass through the link L ink_A. , Link_B.
  • the SR reduces the value of the link parameter of the link Link_A, that is, the priority of the Link_A is lowered. At this time, since the priority of the link Link_B is higher than the priority of the link Link_A, the link can be selected.
  • Link_B acts as a sub-upstream link of the first router SR. In other words, the link between the SR and the multicast source can select the link Link_B.
  • link L ink_B fails and cannot perform multicast data transmission, switch to link Link_A for multicast data transmission. If the multicast traffic of the multicast source passes the link Link_A, when the link Link_B When the fault is recovered, the SR to the multicast source does not immediately switch to the link L ink_B, but waits for the preset time. If the link Link_B does not fail again during this preset time, it will switch to the link Link_B. . On the contrary, if the link Link_B fails again during this time, the multicast source still transmits multicast data to the router SR through the link Link_A.
  • next hop interface in the upstream direction between the router SR and the multicast source is G1/0/1
  • the next hop router in the upstream direction is the router RT_A.
  • the multicast processing capabilities of the routers RT_A and RT_B are the same. If there is multicast traffic on 1 ⁇ _, and a multicast entry is maintained, 1 ⁇ _8 has no multicast traffic, and no multicast entries are maintained, then the multicast processing capability of RT_B is better than that of RT_A. Processing capability, the router SR selects the link in the middle of RT_B as the sub-upstream link.
  • the upstream next hop router is the router RT_A, RT_B.
  • the router's RT_B multicast processing capability is better, and the two interfaces G1/0/l and G1/0/2 have only one upstream next-hop router, the multicast processing capability of the link where G1/0/2 is located. It is better than the interface G1/0/1.
  • the router SR selects the medium link corresponding to the interface G1 / 0/2 as the sub-upstream link. In other words, the router SR selects interface G1/0/2 as the upstream interface to the multicast source, and selects the router RT-B as the upstream next hop router.
  • the multicast traffic is more evenly distributed in the scenario of multiple links.
  • next hop of the router SR to the upstream of the multicast source is interface G1/0/1, and the upstream next hop router is the router RT_A and RT_B.
  • the router RT_B When the multicast source does not perform multicast data transmission, if there is multicast traffic on the router 1 ⁇ _, and a multicast entry is maintained, the router RT_B has no multicast traffic, and the multicast entry is not maintained, the router RT_B group
  • the broadcast processing capability is better than the multicast processing capability of the first router RT_A.
  • the router SR selects the interface G1/0/1 as the RPF upstream interface to the multicast source, and selects the router RT_B as the upstream next hop router neighbor. .
  • the multicast traffic is more evenly distributed in multiple neighbor scenarios.
  • the first router may select a router with the best multicast processing capability from the second router and the third router as the optimal upstream router in the downlink direction, and according to the upstream link determined by the optimal upstream router;
  • the probability that the link is not allowed to transmit data is also considered, so that the multicast source can not only transmit the multicast data to the receiving end through the upstream link, but also the multicast processing capability of the link.
  • the best link while avoiding frequent links
  • the failure ie, not allowed to transmit data
  • This embodiment provides a first router, as shown in FIG. 8, which may include:
  • the obtaining unit 81 is configured to acquire, by the router, a multicast processing capability of the second router and a multicast processing capability of the third router, where the second router is the first next hop router of the first router in the uplink direction, and the third router is the first router The second next hop router of the router in the uplink direction, and the uplink direction is the direction from the first router to the multicast source;
  • the determining unit 82 is configured to determine the router with the best multicast processing capability in the second router and the third router as the optimal upstream router in the downlink direction, and the downlink direction is the direction from the multicast source to the first router.
  • the first router may select the router with the best multicast processing capability from the second router and the third router as the optimal upstream router in the downlink direction, and according to the upstream link determined by the optimal upstream router, In this way, the upstream link is the link with the best multicast processing capability, and the multicast source transmits the multicast data to the receiving end through the upstream link, thereby ensuring the reliability and integrity of the multicast data transmission. Increased system performance.
  • This embodiment provides another router.
  • the router is a further extension to the router shown in FIG. 8.
  • the router may include:
  • the obtaining unit 91 is configured to acquire, by the router, a multicast processing capability of the second router and a multicast processing capability of the third router, where the second router is the first next hop router in the uplink direction of the first router, and the third router is the first router The second next hop router of the router in the uplink direction, and the uplink direction is the direction from the first router to the multicast source;
  • the determining unit 92 is configured to determine the router with the optimal multicast processing capability in the second router and the third router as the optimal upstream router in the downlink direction, and the downlink direction is the direction from the multicast source to the first router.
  • the multicast processing capability acquired by the obtaining unit 91 includes: a data circulation capability parameter of the router, where the data circulation capability parameter is used to describe at least one of the following: the data traffic currently carried by the router and the maximum data traffic that the router can carry.
  • the determining unit 92 includes:
  • the first determining module 921 is configured to determine, when the data flow capability parameter is used to describe the data traffic currently carried by the router, the router with the smallest data traffic currently carried by the second router and the third router as the optimal upstream router; or ,
  • the second determining module 922 is configured to determine, as the optimal upstream router, a router that can maximize the maximum data traffic that can be carried by the second router and the third router when the data flow capability parameter is used to describe the maximum data traffic that the router can carry. ; or,
  • the third determining module 923 is configured to determine, according to the weight, an optimal upstream router, where the data flow capability parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry, and the weight is used to represent the data traffic currently carried by the router. The weight and the weight of the maximum data traffic that the router can carry.
  • the obtaining unit 91 further includes:
  • the fourth determining module 911 is configured to calculate a priority of the first link and the second link according to the state parameter of the first link and the state parameter of the second link, where the first link is the first router and the second router
  • the link between the first link and the third router is a link between the first router and the third router.
  • the status parameter is used to describe the number of times the link is not allowed to transmit data. The lower the number of times, the higher the priority of the link. The lower the priority of the link, the lower the priority.
  • the multicast processing capability also includes: Priority.
  • the determining unit 92 further includes:
  • the fifth determining module 924 is configured to determine, when the data flow capability parameter is used to describe the data traffic currently carried by the router, the router that minimizes the data traffic currently carried by the second router and the third router as the optimal upstream router; or ,
  • the sixth determining module 925 is configured to determine, as the optimal upstream router, a router that can maximize the maximum data traffic that can be carried by the second router and the third router when the data flow capability parameter is used to describe the maximum data traffic that the router can carry. ; or,
  • the seventh determining module 926 is configured to determine, according to the weight, an optimal upstream router, where the data flow capability parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry, and the weight is used to represent the data traffic currently carried by the router. Weight and the weight of the maximum data traffic that the router can carry; or,
  • the eighth determining module 927 is configured to determine, as the optimal upstream router, the next hop router that connects the first link with the highest priority link in the second link.
  • the obtaining unit 91 includes:
  • the receiving module 912 is configured to receive the first Hello packet and the second Hello packet that are reported by the second router and the third router at the preset time, where the first Hello packet includes: The PIM Hello Option field of the processing capability, where the second Hello message includes: a PIM Hello Option field for characterizing the multicast processing capability of the third router;
  • the obtaining module 913 is configured to obtain, from the first He 110 packet, a PIM Hello Option field, which is used to represent the multicast processing capability of the second router, and obtain the second Hello packet from the second He 1 lo packet.
  • the first router may select a router with the best multicast processing capability from the second router and the third router as the optimal upstream router in the downlink direction, and according to the upstream link determined by the optimal upstream router;
  • the probability that the link is not allowed to transmit data is also considered, so that the multicast source can not only transmit the multicast data to the receiving end through the upstream link, but also the multicast processing capability of the link.
  • the best link while avoiding the problem of frequent link switching due to frequent link failures (ie, not allowed to transmit data), that is, ensuring the reliability and integrity of multicast data transmission, thereby increasing the system's performance.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. .
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for selecting a route in the scenario of a multicast load, and a router, which relate to the technical field of communications, and solve the problem of reduction of the system performance caused by congestion or loss of multicast data which is generated because an upstream link shares multicast data of a plurality of routers connected thereto if the upstream link selected by a current router is connected to the plurality of routers when a unicast routing manner is adopted to acquire the upstream link from a receiving end to a multicast source. The method can specifically comprise: a first router acquiring the multicast processing capability of a second router and the multicast processing capability of a third router; and determining one of the second router and the third router, which has the optimal multicast processing capability, to be the optimal upstream router in a downlink direction, the downlink direction being the direction from the multicast source to the first router. The method can be applied to the route selection in the scenario of a multicast load.

Description

组播负载场景下选路的方法和路由器 本申请要求于 2013 年 7 月 31 日提交中国专利局、 申请号为 CN 201310328376.0、 发明名称为 "组播负载场景下选路的方法和路由器" 的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  Method and router for routing in a multicast load scenario This application claims to be submitted to the China Patent Office on July 31, 2013, with the application number CN 201310328376.0, and the invention titled "Method and Router for Routing in a Multicast Load scenario" Priority of the patent application, the entire contents of which is incorporated herein by reference. Technical field
本发明涉及通信技术领域, 尤其涉及组播负载场景下选路的方法和路由 器。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a method and a router for routing in a multicast load scenario. Background technique
IP ( Internet Protocol , 网络之间互连的协议)组播技术实现了 IP 网 络中点到多点的高效数据传送。 由于组播技术能够有效地节省带宽控制网络 流量, 减轻服务器的负荷、 降低网络负载, 因此在 IPTV ( IP televi s ion, 交 互式网络电视)、 多媒体会议、 视频监控等诸多方面都有广泛的应用。  IP (Internet Protocol, Protocol Inter-Network Interconnection) multicast technology enables efficient data transfer from point to point in IP networks. Because multicast technology can effectively save bandwidth to control network traffic, reduce server load and reduce network load, it has wide applications in IPTV (IP televisor), multimedia conferencing, video surveillance, etc. .
IP组播协议可以包括: 路由器和接收者主机之间协议、 路由器和路由器 之间协议, 两者结合可以用于构建从组播源到组播数据接收者之间的组播转 发树。 其中, 路由器和路由器之间通常釆用 PIM ( Protocol Independent Mul t icas t , 协议无关组播)协议。  The IP multicast protocol may include: a protocol between the router and the receiver host, a protocol between the router and the router, and the combination of the two may be used to construct a multicast forwarding tree from the multicast source to the multicast data receiver. Among them, PIM (Protocol Independent Mul t icas t) protocol is usually used between routers and routers.
PIM根据 IP组播中组播源和组播目的的不同可以分为: ASM ( Any Source Mul t icas t , 任意源组播)模型和 SSM ( Source Specif ic Mul t icas t , 特定源 组播)模型。  According to the different multicast sources and multicast destinations in IP multicast, PIM can be divided into: ASM (Any Source Mul t icas t, any source multicast) model and SSM (Source Specif ic Mul t icas t, specific source multicast). model.
在组播源需通过相应的链路向接收端进行组播传输, 因此, 在进行组播 传输之前, 首先需要建立组播转发树, 即建立组播源与接收端之间的链路。 无论是 ASM还是 SSM模型, PIM协议建立组播转发树的原理都是类似的, 下 面以 SSM模型为例简单介绍一下组播转发树的建立过程。  The multicast source needs to transmit multicast to the receiving end through the corresponding link. Therefore, before performing multicast transmission, you need to establish a multicast forwarding tree, that is, establish a link between the multicast source and the receiving end. The principle of establishing a multicast forwarding tree in PIM is similar for both ASM and SSM models. The SSM model is used as an example to briefly introduce the establishment process of multicast forwarding tree.
如图 1所示, 首先, 路由器 RTD收到主机 R1的 IGMP ( Internet Group Management Protocol , Internet组管理协议)力口入请求后, 釆用单播路由的 方式获取到组播源 S的传输链路, 逐跳向上游路由器发送 PIM加入报文, 主 机 R1朝向组播源 S的途径可以为: RTD -〉 RTB -〉 RTA, 沿并该途径建立组播加 入树, 然后组播源 S沿着 PIM加入报文传输的反方向将组播数据转发给主机 R1 , 即可以为从 RTA -〉 RTB -〉 RTD。  As shown in Figure 1, first, after receiving the IGMP (Internet Group Management Protocol) request from the host R1, the router RTD obtains the transmission link of the multicast source S by using unicast routing. The PIM join message is sent to the upstream router hop by hop. The path of the host R1 to the multicast source S may be: RTD -> RTB -> RTA, and the multicast join tree is established along the path, and then the multicast source S is along the PIM. In the opposite direction of the join message transmission, the multicast data is forwarded to the host R1, which can be from the RTA->RTB->RTD.
具体的, 釆用单播路由的方式获取主机 R1到组播源 S的传输链路可以但 不限于包括: 当前路由可以选取被选取次数较少的一个邻居路由作为上游路 由, 与该上游路由之间的链路即为获取到的上游链路, 将途经的路由所选取 好的上游链路整合, 得到主机 R1到组播源 S的传输链路; 还可以通过(* , G ) 和(S , G ) 以及哈希方式选取一个上游路由, 例如, 可以选取哈希值较大的 邻居路由作为上游路由。 Specifically, the unicast route is used to obtain the transmission link of the host R1 to the multicast source S. The transmission link of the host R1 to the multicast source S may include, but is not limited to: the current route may select a neighbor route with less selected times as the upstream route. The link with the upstream route is the obtained upstream link, and the upstream link selected by the route is integrated to obtain the transmission link of the host R1 to the multicast source S. * , G ) and (S , G ) and hash mode select an upstream route. For example, you can select a neighbor route with a larger hash value as the upstream route.
在实现上述组播负载场景下选路的过程中, 发明人发现现有技术中至少 存在如下问题: 釆用单播路由的方式获取主机 R1到组播源 S的链路, 若当前路 由选取的上游链路与多个路由相连接, 该上游链路分担与之连接的多个路由 的组播数据, 导致组播数据拥塞或丟失, 降低了系统的性能。 发明内容  In the process of implementing the routing in the multicast load scenario, the inventor finds that at least the following problems exist in the prior art: 获取 unicast routing is used to obtain the link between the host R1 and the multicast source S, if the current route is selected. The upstream link is connected to multiple routes. The upstream link shares the multicast data of multiple routes connected to it. As a result, multicast data is congested or lost, which reduces system performance. Summary of the invention
本发明的实施例提供一种组播负载场景下选路的方法和路由器, 组播源 通过该方法确定的上游链路将组播数据传输至接收端, 可以保证组播数据传 输的可靠性和完整性, 进而增加了系统的性能。  The embodiment of the present invention provides a method and a router for routing in a multicast load scenario. The upstream link determined by the multicast source transmits the multicast data to the receiving end, which ensures the reliability of the multicast data transmission. Integrity, which in turn increases the performance of the system.
为达到上述目的, 本发明的实施例釆用如下技术方案:  In order to achieve the above object, embodiments of the present invention use the following technical solutions:
第一方面, 提供一种组播负载场景下选路的方法, 包括:  The first aspect provides a method for routing in a multicast load scenario, including:
第一路由器获取第二路由器的组播处理能力和第三路由器的组播处理能 力, 所述第二路由器是所述第一路由器在上行方向上的第一下一跳路由器, 所述第三路由器是所述第一路由器在所述上行方向上的第二下一跳路由器, 所述上行方向为由所述第一路由器到组播源的方向;  The first router acquires the multicast processing capability of the second router and the multicast processing capability of the third router, where the second router is the first next hop router in the uplink direction of the first router, and the third router The second next hop router of the first router in the uplink direction, where the uplink direction is a direction from the first router to a multicast source;
将所述第二路由器和所述第三路由器中的组播处理能力最优的路由器确 定为下行方向上的最优上游路由器, 所述下行方向为由所述组播源到所述第 一路由器的方向  Determining, by the router in the second router and the third router, a router having an optimal multicast processing capability as an optimal upstream router in a downlink direction, where the downlink direction is from the multicast source to the first router Direction
在第一种可能的实现方式中, 所述组播处理能力包括: 路由器的数据流 通能力参数, 所述数据流通能力参数用于描述以下至少一项: 路由器当前承 载的数据流量和路由器能够承载的最大数据流量。  In a first possible implementation, the multicast processing capability includes: a data flow capability parameter of the router, where the data flow capability parameter is used to describe at least one of the following: a data traffic currently carried by the router and a router capable of carrying Maximum data traffic.
结合第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述将所述第二路由器和所述第三路由器中的组播处理能力最优的路由器确 定为下行方向上的最优上游路由器包括:  With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the router that optimizes multicast processing capability in the second router and the third router is determined as The optimal upstream routers in the row direction include:
当所述数据流通能力参数用于描述路由器当前承载的数据流量时, 将所 述第二路由器与所述第三路由器中, 当前承载的数据流量最小的路由器确定 为所述最优上游路由器; 或,  When the data flow capability parameter is used to describe the data traffic currently carried by the router, the router that minimizes the data traffic currently carried by the second router and the third router is determined as the optimal upstream router; or ,
当所述数据流通能力参数用于描述路由器能够承载的最大数据流量时, 将所述第二路由器与所述第三路由器中, 能够承载的最大数据流量最大的路 由器确定为所述最优上游路由器; 或, When the data flow capability parameter is used to describe the maximum data traffic that the router can carry, the maximum data traffic that can be carried by the second router and the third router is the largest. Determined by the device as the optimal upstream router; or,
当所述数据流通能力参数用于描述路由器当前承载的数据流量和路由器 能够承载的最大数据流量时, 按照权重确定所述最优上游路由器, 所述权重 用于表征路由器当前承载的数据流量的权重和路由器能够承载的最大数据流 量的权重。  When the data flow capability parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry, the optimal upstream router is determined according to the weight, and the weight is used to represent the weight of the data traffic currently carried by the router. And the weight of the maximum data traffic that the router can carry.
结合第一方面的第一种可能的实现方式, 在第三种可能的实现方式中, 所述第一路由器获取第二路由器的组播处理能力和第三路由器的组播处理能 力包括:  With reference to the first possible implementation manner of the first aspect, in a third possible implementation, the acquiring, by the first router, the multicast processing capability of the second router and the multicast processing capability of the third router include:
根据第一链路的状态参数与第二链路的状态参数计算所述第一链路和所 述第二链路的优先级, 所述第一链路为所述第一路由器与所述第二路由器之 间的链路, 所述第二链路为所述第一路由器与所述第三路由器之间的链路, 所述状态参数用于描述链路不被允许传输数据的次数, 所述次数越小的链路 的优先级越高, 所述次数越大的链路的优先级越低, 所述组播处理能力还包 括: 所述优先级。  Calculating a priority of the first link and the second link according to a state parameter of the first link and a state parameter of the second link, where the first link is the first router and the first a link between the two routers, where the second link is a link between the first router and the third router, and the status parameter is used to describe the number of times the link is not allowed to transmit data. The higher the priority of the link is, the lower the priority of the link is. The multicast processing capability further includes: the priority.
结合第一方面的第三种可能的实现方式, 在第四种可能的实现方式中, 所述将所述第二路由器和所述第三路由器中的组播处理能力最优的路由器确 定为下行方向上的最优上游路由器包括:  With reference to the third possible implementation of the first aspect, in a fourth possible implementation, the router that optimizes multicast processing capability in the second router and the third router is determined as The optimal upstream routers in the row direction include:
当所述数据流通能力参数用于描述路由器当前承载的数据流量时, 将所 述第二路由器与所述第三路由器中, 当前承载的数据流量最小的路由器确定 为所述最优上游路由器; 或,  When the data flow capability parameter is used to describe the data traffic currently carried by the router, the router that minimizes the data traffic currently carried by the second router and the third router is determined as the optimal upstream router; or ,
当所述数据流通能力参数用于描述路由器能够承载的最大数据流量时, 将所述第二路由器与所述第三路由器中, 能够承载的最大数据流量最大的路 由器确定为所述最优上游路由器; 或,  When the data flow capability parameter is used to describe the maximum data traffic that the router can carry, the router that has the largest data traffic that can be carried by the second router and the third router is determined as the optimal upstream router. ; or,
当所述数据流通能力参数用于描述路由器当前承载的数据流量和路由器 能够承载的最大数据流量时, 按照权重确定所述最优上游路由器, 所述权重 用于表征路由器当前承载的数据流量的权重和路由器能够承载的最大数据流 量的权重; 或,  When the data flow capability parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry, the optimal upstream router is determined according to the weight, and the weight is used to represent the weight of the data traffic currently carried by the router. And the weight of the maximum data traffic that the router can carry; or,
将所述第一链路与所述第二链路中, 优先级最高的链路连接的下一跳路 由器确定为所述最优上游路由器。  Determining, by the next link, the first link and the second link of the second link with the highest priority link as the optimal upstream router.
结合第一方面或第一方面的第一种可能的实现方式至第四种可能的实现 方式中任意一种实现方式, 在第五种可能的实现方式中, 所述第一路由器获 取第二路由器的组播处理能力和第三路由器的组播处理能力包括:  With reference to the first aspect, or any one of the first possible implementation manner of the first aspect to the fourth possible implementation manner, in a fifth possible implementation manner, the first router acquires the second router The multicast processing capability and the multicast processing capability of the third router include:
接收所述第二路由器和所述第三路由器每隔预设时间分别上报的第一 He l lo报文和第二 He l lo报文, 所述第一 He 1 lo报文包括: 用于表征所述第二 路由器的组播处理能力的 PIM He l lo Opt ion字段, 所述第二 He l lo ^艮文包括: 用于表征所述第三路由器的组播处理能力的 PIM He l lo Opt ion字段; Receiving, by the second router and the third router, the first reported separately every preset time a Hello message and a second Hello message, where the first He1o message includes: a PIM Hell Opt ion field for characterizing a multicast processing capability of the second router, where The second He l lo ^ 艮 text includes: a PIM Hell Op Opon field for characterizing the multicast processing capability of the third router;
从所述第一 He l lo报文中获取所述用于表征所述第二路由器的组播处理 能力的 PIM He l lo Opt ion字段, 并从所述第二 He 1 lo报文中获取用于表征所 述第三路由器的组播处理能力的 PIM He l lo Opt ion字段。  Obtaining, from the first hello packet, the PIM Hell Op Opon field for characterizing the multicast processing capability of the second router, and acquiring the second He 1 lo packet from the second He 1 lo packet And a PIM Hell Opt ion field characterizing the multicast processing capability of the third router.
第二方面, 提供一种第一路由器, 包括:  In a second aspect, a first router is provided, including:
获取单元, 用于路由器获取第二路由器的组播处理能力和第三路由器的 组播处理能力, 所述第二路由器是所述第一路由器在上行方向上的第一下一 跳路由器, 所述第三路由器是所述第一路由器在所述上行方向上的第二下一 跳路由器, 所述上行方向为由所述第一路由器到组播源的方向;  An acquiring unit, configured to acquire, by the router, a multicast processing capability of the second router and a multicast processing capability of the third router, where the second router is a first next hop router in the uplink direction of the first router, The third router is a second next hop router of the first router in the uplink direction, where the uplink direction is a direction from the first router to a multicast source;
确定单元, 用于将所述第二路由器和所述第三路由器中的组播处理能力 最优的路由器确定为下行方向上的最优上游路由器, 所述下行方向为由所述 组播源到所述第一路由器的方向。  a determining unit, configured to determine, as an optimal upstream router in a downlink direction, a router that optimizes multicast processing capability in the second router and the third router, where the downlink direction is from the multicast source to The direction of the first router.
在第一种可能的实现方式中, 所述获取单元获取的所述组播处理能力包 括: 路由器的数据流通能力参数, 所述数据流通能力参数用于描述以下至少 一项: 路由器当前承载的数据流量和路由器能够承载的最大数据流量。  In a first possible implementation manner, the multicast processing capability acquired by the acquiring unit includes: a data circulation capability parameter of the router, where the data circulation capability parameter is used to describe at least one of the following: a data currently carried by the router The maximum amount of data traffic that traffic and routers can carry.
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述确定单元包括:  With reference to the first possible implementation of the second aspect, in a second possible implementation, the determining unit includes:
第一确定模块, 用于当所述数据流通能力参数用于描述路由器当前承载 的数据流量时, 将所述第二路由器与所述第三路由器中, 当前承载的数据流 量最小的路由器确定为所述最优上游路由器; 或,  a first determining module, configured to determine, when the data flow capability parameter is used to describe data traffic currently carried by the router, a router that minimizes data traffic currently carried by the second router and the third router Optimal upstream router; or,
第二确定模块, 用于当所述数据流通能力参数用于描述路由器能够承载 的最大数据流量时, 将所述第二路由器与所述第三路由器中, 能够承载的最 大数据流量最大的路由器确定为所述最优上游路由器; 或,  a second determining module, configured to determine, when the data flow capability parameter is used to describe a maximum data traffic that can be carried by the router, a router that is capable of carrying the largest data traffic in the second router and the third router For the optimal upstream router; or,
第三确定模块, 用于当所述数据流通能力参数用于描述路由器当前承载 的数据流量和路由器能够承载的最大数据流量时, 按照权重确定所述最优上 游路由器, 所述权重用于表征路由器当前承载的数据流量的权重和路由器能 够承载的最大数据流量的权重。  a third determining module, configured to: when the data flow capability parameter is used to describe data traffic currently carried by the router and maximum data traffic that the router can bear, determine the optimal upstream router according to a weight, where the weight is used to represent the router The weight of the currently carried data traffic and the weight of the maximum data traffic that the router can carry.
结合第二方面的第一种可能的实现方式, 在第三种可能的实现方式中, 所述获取单元还包括:  With reference to the first possible implementation of the second aspect, in a third possible implementation, the acquiring unit further includes:
第四确定模块, 用于根据第一链路的状态参数与第二链路的状态参数计 算所述第一链路和所述第二链路的优先级, 所述第一链路为所述第一路由器 与所述第二路由器之间的链路, 所述第二链路为所述第一路由器与所述第三 路由器之间的链路, 所述状态参数用于描述链路不被允许传输数据的次数, 所述次数越小的链路的优先级越高, 所述次数越大的链路的优先级越低, 所 述组播处理能力还包括: 所述优先级。 a fourth determining module, configured to calculate a priority of the first link and the second link according to a state parameter of the first link and a state parameter of the second link, where the first link is First router a link between the second router and the third router, where the second link is a link between the first router and the third router, and the status parameter is used to describe that the link is not allowed to transmit data. The number of times, the higher the priority of the link is, the lower the priority of the link is, the lower the priority of the link is. The multicast processing capability further includes: the priority.
结合第二方面的第三种可能的实现方式, 在第四种可能的实现方式中, 所述确定单元还包括:  With reference to the third possible implementation of the second aspect, in a fourth possible implementation, the determining unit further includes:
第五确定模块, 用于当所述数据流通能力参数用于描述路由器当前承载 的数据流量时, 将所述第二路由器与所述第三路由器中, 当前承载的数据流 量最小的路由器确定为所述最优上游路由器; 或,  a fifth determining module, configured to determine, when the data flow capability parameter is used to describe data traffic currently carried by the router, a router that minimizes data traffic currently carried by the second router and the third router Optimal upstream router; or,
第六确定模块, 用于当所述数据流通能力参数用于描述路由器能够承载 的最大数据流量时, 将所述第二路由器与所述第三路由器中, 能够承载的最 大数据流量最大的路由器确定为所述最优上游路由器; 或,  a sixth determining module, configured to: when the data flow capability parameter is used to describe a maximum data traffic that can be carried by the router, determine, by the router that is the largest data traffic that can be carried by the second router and the third router For the optimal upstream router; or,
第七确定模块, 用于当所述数据流通能力参数用于描述路由器当前承载 的数据流量和路由器能够承载的最大数据流量时, 按照权重确定所述最优上 游路由器, 所述权重用于表征路由器当前承载的数据流量的权重和路由器能 够承载的最大数据流量的权重; 或,  a seventh determining module, configured to: when the data flow capability parameter is used to describe data traffic currently carried by the router and maximum data traffic that the router can carry, determine the optimal upstream router according to a weight, where the weight is used to represent the router The weight of the currently carried data traffic and the weight of the maximum data traffic that the router can carry; or,
第八确定模块, 用于将所述第一链路与所述第二链路中, 优先级最高的 链路连接的下一跳路由器确定为所述最优上游路由器。  And an eighth determining module, configured to determine, by the first link, a next hop router that is connected to the highest priority link in the second link as the optimal upstream router.
结合第二方面或第二方面的第一种可能的实现方式至第四种可能的实现 方式中任意一种实现方式, 在第五种可能的实现方式中, 所述获取单元包括: 接收模块, 用于接收所述第二路由器和所述第三路由器每隔预设时间分 别上报的第一 He l lo报文和第二 He l lo报文, 所述第一 He l lo报文包括: 用 于表征所述第二路由器的组播处理能力的 PIM He l lo Opt ion字段, 所述第二 He l lo 报文包括: 用于表征所述第三路由器的组播处理能力的 PIM He l lo Opt ion字段;  With reference to the second aspect, or any one of the first possible implementation manner of the second aspect to the fourth possible implementation manner, in a fifth possible implementation manner, the acquiring unit includes: a receiving module, And receiving, by the second router and the third router, the first He L lo message and the second He l lo message respectively, and the first He l lo message includes: And a PIM Hell Opt ion field indicating a multicast processing capability of the second router, where the second hello message includes: a PIM He l lo for characterizing a multicast processing capability of the third router Opt ion field;
获取模块, 用于从所述第一 He l lo报文中获取所述用于表征所述第二路 由器的组播处理能力的 PIM He l lo Opt ion字段, 并从所述第二 He l lo ^艮文中 获取用于表征所述第三路由器的组播处理能力的 PIM He l lo Opt ion字段。  An obtaining module, configured to obtain, from the first hello packet, the PIM Hell Opt ion field used to represent the multicast processing capability of the second router, and from the second He l lo Obtaining a PIM Hell Opt ion field for characterizing the multicast processing capability of the third router.
本发明实施例提供的组播负载场景下选路的方法和第一路由器, 釆用上 述方案后, 第一路由器可以从第二路由器和第三路由器中选取组播处理能力 最优的路由器作为下行方向上的最优上游路由器, 并根据最优上游路由器确 定的上游链路, 这样, 使得该上游链路为组播处理能力最好的链路, 组播源 通过该上游链路将组播数据传输至接收端, 可以保证组播数据传输的可靠性 和完整性, 进而增加了系统的性能。 附图说明 The method for selecting a route in a multicast load scenario and the first router provided by the embodiment of the present invention, after using the foregoing solution, the first router may select a router with the best multicast processing capability from the second router and the third router as the lower router The optimal upstream router in the row direction, and according to the upstream link determined by the optimal upstream router, so that the upstream link is the link with the best multicast processing capability, and the multicast source passes the multicast data through the upstream link. Transmission to the receiving end ensures the reliability of multicast data transmission And integrity, which in turn increases the performance of the system. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1为现有技术中组播负载场景下选路所应用的场景的结构示意图; 图 1为本实施例提供的一种组播负载场景下选路的方法流程图; 图 3为本实施例提供的另一种组播负载场景下选路的方法流程图; 图 4为 PIM He l lo Opt ion ^艮文的结构示意图;  1 is a schematic structural diagram of a scenario in which a route is selected in a multicast load scenario in the prior art; FIG. 1 is a flowchart of a method for routing a route in a multicast load scenario according to an embodiment of the present invention; A flow chart of a method for routing in another multicast load scenario is provided; FIG. 4 is a schematic structural diagram of a PIM Hello Opt ion;
图 5为本实施例所应用的 "场景 1 " 的构示意图;  FIG. 5 is a schematic structural diagram of “Scene 1” applied to the embodiment;
图 6为本实施例所应用的 "场景 2" 的构示意图;  FIG. 6 is a schematic structural diagram of “Scene 2” applied to the embodiment;
图 7为本实施例所应用的 "场景 3" 的构示意图;  FIG. 7 is a schematic structural diagram of “Scene 3” applied to the embodiment;
图 8为本实施例提供的一种路由器的结构示意图;  FIG. 8 is a schematic structural diagram of a router according to an embodiment of the present disclosure;
图 9为本实施例提供的另一种路由器的结构示意图。  FIG. 9 is a schematic structural diagram of another router according to the embodiment.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例 , 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为了可以更清晰的理解下面提供的实施例, 首先对实施例所应用的场景 进行简单介绍。  In order to more clearly understand the embodiments provided below, a brief introduction to the scenarios applied in the embodiments will be first made.
IP组播技术实现了 IP网络中点到多点的高效数据传送。 IP组播协议可 以包括: SSM模型和 ASM模型。  IP multicast technology enables efficient data transmission from point to point in IP networks. IP multicast protocols can include: SSM models and ASM models.
其中, SSM是一种区别于传统组播的新的业务模型, 它使用组播组地址和 组播源地址同时来标识一个组播会话, 而不是向传统的组播服务那样只使用 组播组地址来标识一个组播会话。 SSM 保留了传统 PIM-SM ( Protoco l Independent Mul t ica s t-Sparse Mode , 稀疏模式独立组播协议)模式中的主 机显示加入组播组的高效性, 但是跳过了 PIM-SM 模式中的共享树和 RP ( Rendezvous Po int , 集合点)规程。 在传统 PIM-SM模式中, 共享树和 RP 规程使用 (* , G )组对来表示一个组播会话, 其中, "G" 可以表示一个特定 的 IP组播组,"*" 可以表示发向组播组 G的任何一个源。 SSM直接建立由(S, G ) 标识的一个组播 SPT ( Shor tes t Pa th Tree , 最短路径树), 其中, "G" 表示 一个特定的 IP组播组地址, "S" 可以表示发向组播组 G的特定源的 IP地址。 SSM is a new service model that is different from traditional multicast. It uses a multicast group address and a multicast source address to identify a multicast session at the same time, instead of using only multicast groups like traditional multicast services. The address identifies a multicast session. The SSM retains the efficiency of the host in the traditional PIM-SM (Protoco l Independent Mul tica s t-Sparse Mode) mode to join the multicast group, but skips the PIM-SM mode. Shared tree and RP (Rendezvous Po int) procedures. In traditional PIM-SM mode, shared tree and RP The procedure uses a (*, G) pair to represent a multicast session, where "G" can represent a particular IP multicast group and "*" can represent any source sent to multicast group G. SSM directly establishes a multicast SPT (Shor tes t Pa th Tree, shortest path tree) identified by (S, G), where "G" represents a specific IP multicast group address, and "S" can indicate the direction of sending IP address of a specific source of multicast group G.
SSM 的一个(S, G )对也被称为一个频道, 以区分 ASM。 由于 ASM支持点 到多点和多点到多点两种组播业务模式, 因此 ASM 中发现组播源的过程较复 杂。 例如, 在 PIM-SM模式中, 用户点击浏览器中的组播内容, 接收端设备只 被通知到组播组的内容, 而没有被通知到组播源的信息。 而在 SSM模式中, 用户端将同时接收到组播源和组播组信息。  One (S, G) pair of SSM is also referred to as a channel to distinguish ASM. Since ASM supports point-to-multipoint and multipoint-to-multipoint multicast service modes, the process of discovering multicast sources in ASM is complicated. For example, in the PIM-SM mode, when a user clicks on the multicast content in the browser, the receiving device is only notified of the content of the multicast group, and is not notified of the information of the multicast source. In SSM mode, the client receives multicast source and multicast group information at the same time.
因此, SSM较适合于点到多点的组播服务, 例如, 可以为网络娱乐频道、 网络新闻频道、 网络体育频道等业务, 但如果要求多点到多点组播服务则需 要 ASM模式。  Therefore, SSM is more suitable for point-to-multipoint multicast services. For example, it can be services such as network entertainment channels, network news channels, and network sports channels. However, if multi-point to multi-point multicast services are required, ASM mode is required.
在 SSM模型中, 可以直接在组播源和接收者之间建立 SPT , 而不是像 ASM 那样先建立 RPT ( Rendezvous Po int-rooted Tree , 共享树) 而后再根据需要 转换为 SPT, 省去了 PIM-SM中先建立 RPT再从 RPT向 SPT切换的过程, 从而 能够从一开始就沿 SPT转发数据。 因此与其它组播技术相比, 在已知组播源 的情况下, SSM技术有着其自己的优势: 不但效率高, 而且简化了组播地址分 配, SSM需要和 I GMPv3协议结合使用。  In the SSM model, SPT can be established directly between the multicast source and the receiver, instead of establishing an RPT (Rendezvous Po int-rooted Tree, shared tree) like ASM, and then converting to SPT as needed, eliminating PIM. - The process of setting up the RPT and then switching from the RPT to the SPT in the SM, so that data can be forwarded along the SPT from the beginning. Therefore, compared with other multicast technologies, SSM technology has its own advantages in the case of known multicast sources: Not only is it efficient, but it also simplifies multicast address allocation. SSM needs to be used in conjunction with I GMPv3 protocol.
组播源需通过相应的链路向接收端进行组播传输, 在进行组播传输之前, 首先需要建立组播转发树, 即建立组播源与接收端之间的链路。 具体的, 各 路由器选取子上游链路(即当前路由器选取到达下一跳路由器的链路), 将各 子上游链路进行整合后, 得到组播源与接收端之间的上游链路。  The multicast source needs to transmit multicast to the receiving end through the corresponding link. Before performing multicast transmission, you need to establish a multicast forwarding tree, that is, establish a link between the multicast source and the receiving end. Specifically, each router selects a sub-uplink (that is, the link that the current router selects to reach the next hop router), and integrates the upstream links to obtain an upstream link between the multicast source and the receiver.
现有技术中, 如图 1所示, 釆用单播路由的方式获取主机 R1到组播源 S 的链路, 若当前路由选取的上游链路与多个路由相连接, 该上游链路分担与 之连接的多个路由的组播数据, 导致组播数据拥塞或丟失, 降低了系统的性 In the prior art, as shown in FIG. 1, the link between the host R1 and the multicast source S is obtained by using a unicast route. If the upstream link selected by the current route is connected to multiple routes, the uplink link is shared. Multicast routing data connected to it, causing multicast data to be congested or lost, reducing systemicity
•6匕 •6匕
匕。  dagger.
为了解决上述问题, 本实施例提供一种组播负载场景下选路的方法, 该 方法的执行主体可以为当前路由器, 如图 2所示, 可以包括:  In order to solve the above problem, the embodiment provides a method for routing a route in a multicast load scenario, and the executor of the method may be a current router. As shown in FIG. 2, the method may include:
201、 第一路由器获取第二路由器的组播处理能力和第三路由器的组播处 理能力。  201. The first router acquires a multicast processing capability of the second router and a multicast processing capability of the third router.
其中, 第二路由器可以是第一路由器在上行方向上的第一下一跳路由器, 第三路由器可以是第一路由器在上行方向上的第二下一跳路由器, 上行方向 为由第一路由器到组播源的方向。 作为本实施例的一种实施方式, 为了保证通过上游链路可以准确可靠的 对数据进行传输, 首先需要确定用于数据传输的上游链路中下行方向上的最 优上游路由器, 在以第一路由器为执行主体的情况下, 第一路由器可以首先 获取第二路由器的组播处理能力和第三路由器的组播处理能力, 然后根据组 播处理能力确定最优上游路由器。 The second router may be the first next hop router in the uplink direction of the first router, and the third router may be the second next hop router in the uplink direction of the first router, and the uplink direction is from the first router to The direction of the multicast source. As an implementation manner of this embodiment, in order to ensure accurate and reliable data transmission through the uplink link, it is first required to determine an optimal upstream router in the downlink direction of the upstream link for data transmission, in the first In the case that the router is the execution entity, the first router may first acquire the multicast processing capability of the second router and the multicast processing capability of the third router, and then determine the optimal upstream router according to the multicast processing capability.
202、 将第二路由器和第三路由器中的组播处理能力最优的路由器确定为 下行方向上的最优上游路由器。  202. Determine a router with the best multicast processing capability in the second router and the third router as an optimal upstream router in the downlink direction.
其中, 下行方向可以为由组播源到第一路由器的方向。  The downlink direction may be a direction from the multicast source to the first router.
釆用上述方案后, 第一路由器可以从第二路由器和第三路由器中选取组 播处理能力最优的路由器作为下行方向上的最优上游路由器, 并根据最优上 游路由器确定的上游链路, 这样, 使得该上游链路为组播处理能力最好的链 路, 组播源通过该上游链路将组播数据传输至接收端, 即可以保证组播数据 传输的可靠性和完整性, 进而增加了系统的性能。  After the foregoing solution, the first router may select the router with the best multicast processing capability from the second router and the third router as the optimal upstream router in the downlink direction, and according to the upstream link determined by the optimal upstream router, In this way, the upstream link is the link with the best multicast processing capability, and the multicast source transmits the multicast data to the receiving end through the upstream link, thereby ensuring the reliability and integrity of the multicast data transmission. Increased system performance.
本实施例提供另一种组播负载场景下选路的方法, 该方法是对图 1 所示 的方法的进一步扩展, 如图 3所示, 可以包括:  This embodiment provides another method for routing in a multicast load scenario. The method is further extended to the method shown in FIG. 1. As shown in FIG. 3, the method may include:
301、 第一路由器接收第二路由器和第三路由器每隔预设时间分别上报的 第一 Hello报文和第二 Hello报文。  301. The first router receives the first Hello packet and the second Hello packet that are reported by the second router and the third router at the preset time.
其中, 第一 Hello报文可以包括: 用于表征第二路由器的组播处理能力 的 PIM Hello Option字段, 第二 Hel lo报文可以包括: 用于表征第三路由器 的组播处理能力的 PIM Hello Option字段。  The first Hello packet may include: a PIM Hello Option field for characterizing the multicast processing capability of the second router, where the second Hello message may include: PIM Hello for characterizing the multicast processing capability of the third router Option field.
作为本实施例的一种实施方式, 组播处理能力可以是一种综合能力, 即 可以是根据当前板卡的状态 (如, CPU ( Central Processing Unit, 中央处 理器)状态、 内存状态、 上行和下行状态等)、 接口类型、 链路类型、 标清和 高清的节目个数等综合考虑下得出的值。 其中, 标清和高清可以通过 PIM协 议来标识, 该表示方法为已公开的方案, 为本领域技术人员公知的技术, 在 此步骤赘述。  As an implementation manner of this embodiment, the multicast processing capability may be a comprehensive capability, that is, according to the current state of the board (eg, CPU (Central Processing Unit) state, memory state, uplink, and The value obtained by considering the downlink status, etc., the interface type, the link type, the number of SD and HD programs. The SD and HD can be identified by the PIM protocol, which is a publicly available solution, which is well known to those skilled in the art, and is described in this step.
进一步的, 如图 4所示, 为 PIM Hello Option字段的结构示意图。 其中, Type可以为 ^艮文类型, Length可以为 ^艮文长度, Flow Capaci ty可以为组播 处理能力, OptionType 65533: Flow Capaci ty可以为: 选项类型 65533: 流 通容量。  Further, as shown in FIG. 4, it is a schematic structural diagram of a PIM Hello Option field. The Type can be of the type of 艮, the length can be the length of the 艮, the Flow Capaci ty can be the multicast processing capability, and the OptionType 65533: The Flow Capaci ty can be: Option Type 65533: Flow Capacity.
本实施例对 PIM Hello Opt ion报文的格式以及包含的内容不作限定, 可 以根据实际需要进行设定, 在此不再赘述。  In this embodiment, the format and content of the PIM Hello Opt ion packet are not limited, and may be set according to actual needs, and details are not described herein again.
进一步的, 组播处理能力可以但不限于包括: 路由器的数据流通能力参 数等。 Further, the multicast processing capability can be, but is not limited to, including: Numbers, etc.
数据流通能力参数可以用于描述以下至少一项: 路由器当前承载的数据 流量和路由器能够承载的最大数据流量。 值得说明的是, 这里提供的当前承 载的数据流量与能够承载的最大数据流量均包括下游数据流量, 即组播流量。  The data flow capability parameter can be used to describe at least one of the following: The data traffic currently carried by the router and the maximum data traffic that the router can carry. It is worth noting that the current data traffic and the maximum data traffic that can be carried here include downstream data traffic, that is, multicast traffic.
302、 第一路由器从第一 He 110报文中获取用于表征第二路由器的组播处 理能力的 PIM Hel lo Opt ion字段, 并从第二 Hel lo报文中获取用于表征第三 路由器的组播处理能力的 PIM Hel lo Opt ion字段。  The first router obtains a PIM Hello Opt ion field for characterizing the multicast processing capability of the second router from the first He 110 packet, and obtains, by using the second Hello packet, the third router. PIM Hel lo Opt ion field of multicast processing capability.
为了使第一路由器确定的子上游链路不仅可以可靠的传输上游数据, 而 且还可以可靠的传输下游数据, 则第一路由器可以根据组播处理能力确定子 上游链路(即确定第一路由器下行方向上的最优上游路由器), 即系统可以根 据组播处理能力确定上游链路, 在这之前, 第一路由器需要从第一 Hel lo报 文中获取用于表征第二路由器的组播处理能力的 PIM Hel lo Opt ion字段, 并 从第二 Hel lo报文中获取用于表征第三路由器的组播处理能力的 PIM Hel lo Opt ion字段。  In order to enable the first upstream link determined by the first router to not only transmit the upstream data reliably, but also reliably transmit the downstream data, the first router may determine the sub-upstream link according to the multicast processing capability (ie, determine the first router. The optimal upstream router in the row direction, that is, the system can determine the upstream link according to the multicast processing capability. Before this, the first router needs to obtain the multicast processing capability for characterizing the second router from the first Hello message. a PIM Hel lo Opt ion field, and a PIM Hel lo Opt ion field for characterizing the multicast processing capability of the third router is obtained from the second Hello message.
303、 第一路由器根据第一链路的状态参数与第二链路的状态参数计算第 一链路和第二链路的优先级。  303. The first router calculates a priority of the first link and the second link according to the state parameter of the first link and the state parameter of the second link.
其中, 第一链路可以为第一路由器与第二路由器之间的链路, 第二链路 可以为第一路由器与第三路由器之间的链路, 状态参数可以用于描述链路不 被允许传输数据的次数, 次数越小的链路的优先级越高, 次数越大的链路的 优先级越低, 组播处理能力还可以包括: 优先级。  The first link may be a link between the first router and the second router, and the second link may be a link between the first router and the third router, and the status parameter may be used to describe that the link is not The number of times the link is allowed to be transmitted. The lower the number of times, the higher the priority of the link. The lower the priority of the link, the lower the priority. The multicast processing capability can also include: priority.
作为本实施例的一种实施方式, 状态参数可以用数字进行表示, 例如, 可以将状态参数设置为 10 , 第一路由器与每个下一跳路由器之间的链路均对 应一个状态参数, 当链路出现一次故障时, 相应的状态参数便减 1 , 即为 9 , 此时, 状态参数的数值越小的链路其优先级越低, 反之, 状态参数的数值越 大的链路其优先级越高; 当状态参数为预设上限值或预设下限值时, 则将状 态参数设置为初始化的数值。  As an implementation manner of this embodiment, the status parameter may be represented by a number. For example, the status parameter may be set to 10, and the link between the first router and each next hop router corresponds to a status parameter. When a fault occurs on the link, the corresponding state parameter is decremented by 1, which is 9. At this time, the lower the value of the state parameter, the lower the priority of the link. On the contrary, the link with the larger value of the state parameter takes precedence. The higher the level; when the status parameter is the preset upper limit or the preset lower limit, the status parameter is set to the initialized value.
作为本实施例的一种实施方式, 当第一路由器在选取子上游链路时, 可 以考虑传输上游数据和下游数据的可靠性, 还可以考虑链路不被允许传输数 据的概率, 例如, 出现故障的概率等。 若某链路出现故障的概率较高, 则降 低了数据传输的可靠性和完整性, 例如, 数据丟失等。 因此, 为了增加上游 链路的性能, 在确定上游链路时还需要考虑链路不被允许传输数据的概率。  As an implementation manner of this embodiment, when the first router selects the sub-uplink, the reliability of the upstream data and the downstream data may be considered, and the probability that the link is not allowed to transmit data may be considered, for example, The probability of failure, etc. If the probability of a link failure is high, the reliability and integrity of the data transmission is reduced, for example, data loss. Therefore, in order to increase the performance of the upstream link, it is also necessary to consider the probability that the link is not allowed to transmit data when determining the upstream link.
本实施例对计算链路的优先级的方法不作限定, 可以根据实际需要进行 设定, 在此步骤赘述。 304、 第一路由器将第二路由器和第三路由器中的组播处理能力最优的路 由器确定为下行方向上的最优上游路由器。 The method for calculating the priority of the link is not limited in this embodiment, and may be set according to actual needs, and is described in this step. 304. The first router determines the router with the best multicast processing capability in the second router and the third router as the optimal upstream router in the downlink direction.
其中, 下行方向为由组播源到第一路由器的方向。  The downlink direction is the direction from the multicast source to the first router.
进一步的, 第一路由器将第二路由器和第三路由器中的组播处理能力最 优的路由器确定为下行方向上的最优上游路由器可以但不限于包括:  Further, the first router determines that the router with the best multicast processing capability in the second router and the third router is the optimal upstream router in the downlink direction, but is not limited to:
当数据流通能力参数用于描述路由器当前承载的数据流量时, 将第二路 由器与第三路由器中, 当前承载的数据流量最小的路由器确定为最优上游路 由器; 或,  When the data flow capability parameter is used to describe the data traffic currently carried by the router, the router with the smallest data traffic currently carried by the second router and the third router is determined as the optimal upstream router; or
当数据流通能力参数用于描述路由器能够承载的最大数据流量时, 将第 二路由器与第三路由器中, 能够承载的最大数据流量最大的路由器确定为最 优上游路由器; 或,  When the data flow capability parameter is used to describe the maximum data traffic that the router can carry, the router with the largest data traffic that can be carried in the second router and the third router is determined as the optimal upstream router; or
当数据流通能力参数用于描述路由器当前承载的数据流量和路由器能够 承载的最大数据流量时, 按照权重确定最优上游路由器, 权重用于表征路由 器当前承载的数据流量的权重和路由器能够承载的最大数据流量的权重; 或, 将第一链路与第二链路中, 优先级最高的链路连接的下一跳路由器确定 为最优上游路由器。  When the data flow capability parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry, the optimal upstream router is determined according to the weight, and the weight is used to represent the weight of the data traffic currently carried by the router and the maximum that the router can bear. The weight of the data traffic; or, the next hop router that connects the first link with the highest priority link in the second link is determined as the optimal upstream router.
值得说明的是, 本实施例还可以不执行步骤 303 , 即在确定上游链路时不 考虑链路不被允许传输数据的概率。  It should be noted that, in this embodiment, step 303 may not be performed, that is, the probability that the link is not allowed to transmit data is not considered when determining the upstream link.
则此时, 当数据流通能力参数用于描述路由器当前承载的数据流量时, 将第二路由器与第三路由器中, 当前承载的数据流量最小的路由器确定为最 优上游路由器; 或,  At this time, when the data flow capability parameter is used to describe the data traffic currently carried by the router, the router with the smallest data traffic currently carried by the second router and the third router is determined as the optimal upstream router; or
当数据流通能力参数用于描述路由器能够承载的最大数据流量时, 将第 二路由器与第三路由器中, 能够承载的最大数据流量最大的路由器确定为最 优上游路由器; 或,  When the data flow capability parameter is used to describe the maximum data traffic that the router can carry, the router with the largest data traffic that can be carried in the second router and the third router is determined as the optimal upstream router; or
当数据流通能力参数用于描述路由器当前承载的数据流量和路由器能够 承载的最大数据流量时, 按照权重确定最优上游路由器, 权重用于表征路由 器当前承载的数据流量的权重和路由器能够承载的最大数据流量的权重。  When the data flow capability parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry, the optimal upstream router is determined according to the weight, and the weight is used to represent the weight of the data traffic currently carried by the router and the maximum that the router can bear. The weight of the data traffic.
进一步的, 在第一路由器确定好最优上游路由器后, 确定上游链路, 其 中, 确定的上游链路可以包括: 至少一个相应的第一路由器确定的子上游链 路。 本领域技术人员熟知的技术, 且可以根据实际需要进行描述, 在此不再赘述。  Further, after the first router determines the optimal upstream router, the upstream link is determined, where the determined upstream link may include: at least one corresponding first upstream router determined by the first router. The techniques are well known to those skilled in the art, and can be described according to actual needs, and are not described herein again.
305、 在上游链路确定之后, 系统按照通过该上游链路传输上游数据的反 方向传输下游数据, 即组播数据。 305. After the upstream link is determined, the system transmits the upstream data according to the upstream link. The downstream data is transmitted in the direction, that is, multicast data.
作为本实施例的一种实施方式, 系统中可以存在多个通过上述方法确定 的上游链路, 为了使数据更准确的传输, 在通过相应的上游链路传输数据的 同时, 可以实施根据实际情况更换进行数据传输的上游链路。 具体内容在步 骤 306至 309中进行可描述。  As an implementation manner of this embodiment, multiple upstream links determined by the foregoing method may exist in the system. In order to make data transmission more accurately, data may be transmitted through the corresponding upstream link, and may be implemented according to actual conditions. Replace the upstream link for data transmission. The details are described in steps 306 to 309.
306、 系统在第一状态下, 判断第一上游链路是否不被允许传输数据。 进一步的, 系统可以但不限于包括: 第一状态, 在第一状态下, 通过当 前的第一上游链路进行数据传输。  306. The system determines, in the first state, whether the first upstream link is not allowed to transmit data. Further, the system may include, but is not limited to, including: a first state in which data transmission is performed by the current first upstream link.
作为本实施例的一种实施方式, 若被允许传输数据, 则执行步骤 305 , 若 不被允许传输数据, 则执行步骤 307。  As an implementation of this embodiment, if data is allowed to be transmitted, step 305 is performed. If data is not allowed to be transmitted, step 307 is performed.
307、 若不被允许传输数据, 则从第一状态切换至第二状态。  307. If the data is not allowed to be transmitted, switch from the first state to the second state.
进一步的, 系统还可以但不限于包括: 第二状态, 在第二状态下, 通过 除第一上游链路外的其他被允许传输数据的第二上游链路进行数据传输。  Further, the system may also include, but is not limited to: a second state in which data transmission is performed by a second upstream link other than the first upstream link that is allowed to transmit data.
308、 在第二状态下, 判断第一上游链路是否被允许传输数据。  308. In the second state, determine whether the first upstream link is allowed to transmit data.
作为本实施例的一种实施方式, 若第一上游链路被允许传输数据, 则执 行步骤 309 , 若第一上游链路不被允许传输数据, 则执行步骤 308。  As an implementation of this embodiment, if the first upstream link is allowed to transmit data, step 309 is performed. If the first upstream link is not allowed to transmit data, step 308 is performed.
309、 若被允许传输数据, 则等待预设时间后, 从第二状态切换至第一状 态。  309. If it is allowed to transmit data, wait for a preset time, and then switch from the second state to the first state.
这样, 可以避免当链路频繁发送故障时, 用于传输组播数据的链路频繁 进行切换, 导致降低了数据传输的可靠性和完整性的问题。  In this way, it is possible to avoid frequent switching of links for transmitting multicast data when the link frequently fails to transmit, resulting in a problem of reducing the reliability and integrity of data transmission.
本实施例对预设时间不作限定, 可以根据实际需要进行设定, 在此不再 赘述。  The preset time is not limited in this embodiment, and may be set according to actual needs, and details are not described herein again.
为了可以更清晰的对本实施例进行理解, 下面提供一些具体场景进行简 单说明, 其中, 主要对在确定上游链路后进行组播数据传输进行简单描述。  In order to understand the present embodiment more clearly, some specific scenarios are briefly described below, and a brief description is mainly made on performing multicast data transmission after determining the upstream link.
场景 1 , 如图 5所示, 路由器 SR到组播源之间可以包括两条的等价链路 Link_A、 L ink-B, 组播源向 SR传输的组播流量分别可以经过链路 L ink_A、 Link_B。  Scenario 1, as shown in Figure 5, the router SR to the multicast source may include two equal-cost links Link_A, L ink-B, and the multicast traffic transmitted by the multicast source to the SR may pass through the link L ink_A. , Link_B.
若链路 Link_A发生故障, 则 SR降低链路 Link_A的状态参数的数值, 即 降低了 Link_A的优先级;则此时,由于链路 Link_B的优先级高于链路 Link_A 的优先级, 因此可以选取链路 Link_B作为第一路由器 SR的子上游链路, 换 言之, SR到组播源之间的链路可以选择链路 Link_B。  If the link Link_A fails, the SR reduces the value of the link parameter of the link Link_A, that is, the priority of the Link_A is lowered. At this time, since the priority of the link Link_B is higher than the priority of the link Link_A, the link can be selected. Link_B acts as a sub-upstream link of the first router SR. In other words, the link between the SR and the multicast source can select the link Link_B.
若链路 L ink_B 出现故障不能进行组播数据传输, 则切换至链路 Link_A 进行组播数据传输。 若组播源的组播流量都经过链路 Link_A, 当链路 Link_B 故障恢复的时候, SR到组播源不会立刻切换到链路 L ink_B, 而是等待预设时 间, 如果在这段预设时间内链路 Link_B没有再次发生过故障才会切换到链路 Link_B。 相反, 这段时间内链路 Link_B又发生了故障, 则组播源仍然通过链 路 Link_A向路由器 SR进行组播数据传输。 If the link L ink_B fails and cannot perform multicast data transmission, switch to link Link_A for multicast data transmission. If the multicast traffic of the multicast source passes the link Link_A, when the link Link_B When the fault is recovered, the SR to the multicast source does not immediately switch to the link L ink_B, but waits for the preset time. If the link Link_B does not fail again during this preset time, it will switch to the link Link_B. . On the contrary, if the link Link_B fails again during this time, the multicast source still transmits multicast data to the router SR through the link Link_A.
这样避免了链路频繁故障时, 组播流量不停切换链路而导致组播数据传 输可靠性和完整性较低的问题。  This avoids the problem that multicast traffic is continuously switched and the multicast data transmission reliability and integrity are low when the link is frequently faulty.
场景 2 , 如图 6所示, 路由器 SR到组播源之间的上游方向的下一跳接口 是 G1/0/1 , 上游方向的下一跳路由器是路由器 RT_A。  Scenario 2, as shown in Figure 6, the next hop interface in the upstream direction between the router SR and the multicast source is G1/0/1, and the next hop router in the upstream direction is the router RT_A.
在组播源不进行组播数据传输时, 路由器 RT_A与 RT_B的组播处理能力 相同。 若 1^_ 上有组播流量, 且维护一个组播表项, 1^_8没有组播流量, 且 没有维护组播表项时, 则此时 RT_B的组播处理能力优于 RT_A的组播处理能 力, 路由器 SR选取与 RT_B中间的链路作为子上游链路。  When the multicast source does not perform multicast data transmission, the multicast processing capabilities of the routers RT_A and RT_B are the same. If there is multicast traffic on 1^_, and a multicast entry is maintained, 1^_8 has no multicast traffic, and no multicast entries are maintained, then the multicast processing capability of RT_B is better than that of RT_A. Processing capability, the router SR selects the link in the middle of RT_B as the sub-upstream link.
或者, 如图 7所示, 若路由器 SR上到组播源的路由的上游的下一跳有两 接口 Gl/0/l、 G1 /0/2 , 上游的下一跳路由器分别是路由器 RT_A、 RT_B。 但是 由于路由器 RT_B组播处理能力更优, 且两接口 Gl/0/l、 G1 /0/2分别只有一 个上游的下一跳路由器, 因此接口 G1/ 0/2 所在链路的组播处理能力比接口 G1/0/1更优, 路由器 SR选取与接口 G1 /0/2对应的中链路作为子上游链路。 换言之, 路由器 SR选择接口 G1/0/2作为到组播源的上游接口, 选择路由器 RT-B为上游的下一跳路由器。  Alternatively, as shown in FIG. 7, if the next hop upstream of the route to the multicast source on the router SR has two interfaces G1/0/l and G1/0/2, the upstream next hop router is the router RT_A, RT_B. However, because the router's RT_B multicast processing capability is better, and the two interfaces G1/0/l and G1/0/2 have only one upstream next-hop router, the multicast processing capability of the link where G1/0/2 is located. It is better than the interface G1/0/1. The router SR selects the medium link corresponding to the interface G1 / 0/2 as the sub-upstream link. In other words, the router SR selects interface G1/0/2 as the upstream interface to the multicast source, and selects the router RT-B as the upstream next hop router.
这样, 在多条链路的场景使组播流量分担更均。  In this way, the multicast traffic is more evenly distributed in the scenario of multiple links.
场景 3 ,如图 7所示,路由器 SR上到组播源的上游的下一跳是接口 G1/0/1 , 上游的下一跳路由器是路由器 RT_A、 RT_B。  Scenario 3, as shown in Figure 7, the next hop of the router SR to the upstream of the multicast source is interface G1/0/1, and the upstream next hop router is the router RT_A and RT_B.
在组播源不进行组播数据传输时, 路由器 1^_ 上有组播流量, 且维护一 个组播表项,路由器 RT_B没有组播流量,且没有维护组播表项,则路由器 RT_B 的组播处理能力比第一路由器 RT_A的组播处理能力更优, 此时, 所以路由器 SR选择接口 G1/0/1作为到组播源的 RPF上游接口, 选择路由器 RT_B为上游 的下一跳路由器邻居。  When the multicast source does not perform multicast data transmission, if there is multicast traffic on the router 1^_, and a multicast entry is maintained, the router RT_B has no multicast traffic, and the multicast entry is not maintained, the router RT_B group The broadcast processing capability is better than the multicast processing capability of the first router RT_A. In this case, the router SR selects the interface G1/0/1 as the RPF upstream interface to the multicast source, and selects the router RT_B as the upstream next hop router neighbor. .
这样, 在多个邻居的场景使组播流量分担更均。  In this way, the multicast traffic is more evenly distributed in multiple neighbor scenarios.
釆用上述方案后, 第一路由器可以从第二路由器和第三路由器中选取组 播处理能力最优的路由器作为下行方向上的最优上游路由器, 并根据最优上 游路由器确定的上游链路; 另外, 在确定上游链路时还考虑了链路不被允许 传输数据的概率, 这样, 组播源不仅可以通过上游链路将组播数据传输至接 收端, 而且该链路也是组播处理能力最好的链路, 同时避免了由于链路频繁 发生故障 (即不被允许传输数据)导致频繁切换链路的问题, 即可以保证组 播数据传输的可靠性和完整性, 进而增加了系统的性能。 After the foregoing solution, the first router may select a router with the best multicast processing capability from the second router and the third router as the optimal upstream router in the downlink direction, and according to the upstream link determined by the optimal upstream router; In addition, when determining the upstream link, the probability that the link is not allowed to transmit data is also considered, so that the multicast source can not only transmit the multicast data to the receiving end through the upstream link, but also the multicast processing capability of the link. The best link, while avoiding frequent links The failure (ie, not allowed to transmit data) causes frequent switching of the link, which ensures the reliability and integrity of the multicast data transmission, thereby increasing the performance of the system.
下面提供一些装置实施例, 该装置实施例分别与上述提供的相应的方法 实施例对应。  Some apparatus embodiments are provided below, which correspond to the respective method embodiments provided above.
本实施例提供一种第一路由器, 如图 8所示, 可以包括:  This embodiment provides a first router, as shown in FIG. 8, which may include:
获取单元 81 , 用于路由器获取第二路由器的组播处理能力和第三路由器 的组播处理能力, 第二路由器是第一路由器在上行方向上的第一下一跳路由 器, 第三路由器是第一路由器在上行方向上的第二下一跳路由器, 上行方向 为由第一路由器到组播源的方向;  The obtaining unit 81 is configured to acquire, by the router, a multicast processing capability of the second router and a multicast processing capability of the third router, where the second router is the first next hop router of the first router in the uplink direction, and the third router is the first router The second next hop router of the router in the uplink direction, and the uplink direction is the direction from the first router to the multicast source;
确定单元 82 , 用于将第二路由器和第三路由器中的组播处理能力最优的 路由器确定为下行方向上的最优上游路由器, 下行方向为由组播源到第一路 由器的方向。  The determining unit 82 is configured to determine the router with the best multicast processing capability in the second router and the third router as the optimal upstream router in the downlink direction, and the downlink direction is the direction from the multicast source to the first router.
釆用上述方案后, 第一路由器可以从第二路由器和第三路由器中选取组 播处理能力最优的路由器作为下行方向上的最优上游路由器, 并根据最优上 游路由器确定的上游链路, 这样, 使得该上游链路为组播处理能力最好的链 路, 组播源通过该上游链路将组播数据传输至接收端, 即可以保证组播数据 传输的可靠性和完整性, 进而增加了系统的性能。  After the foregoing solution, the first router may select the router with the best multicast processing capability from the second router and the third router as the optimal upstream router in the downlink direction, and according to the upstream link determined by the optimal upstream router, In this way, the upstream link is the link with the best multicast processing capability, and the multicast source transmits the multicast data to the receiving end through the upstream link, thereby ensuring the reliability and integrity of the multicast data transmission. Increased system performance.
本实施例提供另一种路由器, 该路由器是对图 8 所示的路由器的进一步 扩展, 如图 9所示, 可以包括:  This embodiment provides another router. The router is a further extension to the router shown in FIG. 8. As shown in FIG. 9, the router may include:
获取单元 91 , 用于路由器获取第二路由器的组播处理能力和第三路由器 的组播处理能力, 第二路由器是第一路由器在上行方向上的第一下一跳路由 器, 第三路由器是第一路由器在上行方向上的第二下一跳路由器, 上行方向 为由第一路由器到组播源的方向;  The obtaining unit 91 is configured to acquire, by the router, a multicast processing capability of the second router and a multicast processing capability of the third router, where the second router is the first next hop router in the uplink direction of the first router, and the third router is the first router The second next hop router of the router in the uplink direction, and the uplink direction is the direction from the first router to the multicast source;
确定单元 92 , 用于将第二路由器和第三路由器中的组播处理能力最优的 路由器确定为下行方向上的最优上游路由器, 下行方向为由组播源到第一路 由器的方向。  The determining unit 92 is configured to determine the router with the optimal multicast processing capability in the second router and the third router as the optimal upstream router in the downlink direction, and the downlink direction is the direction from the multicast source to the first router.
进一步的, 获取单元 91获取的组播处理能力包括: 路由器的数据流通能 力参数, 数据流通能力参数用于描述以下至少一项: 路由器当前承载的数据 流量和路由器能够承载的最大数据流量。  Further, the multicast processing capability acquired by the obtaining unit 91 includes: a data circulation capability parameter of the router, where the data circulation capability parameter is used to describe at least one of the following: the data traffic currently carried by the router and the maximum data traffic that the router can carry.
进一步的, 确定单元 92包括:  Further, the determining unit 92 includes:
第一确定模块 921 ,用于当数据流通能力参数用于描述路由器当前承载的 数据流量时, 将第二路由器与第三路由器中, 当前承载的数据流量最小的路 由器确定为最优上游路由器; 或, 第二确定模块 922,用于当数据流通能力参数用于描述路由器能够承载的 最大数据流量时, 将第二路由器与第三路由器中, 能够承载的最大数据流量 最大的路由器确定为最优上游路由器; 或, The first determining module 921 is configured to determine, when the data flow capability parameter is used to describe the data traffic currently carried by the router, the router with the smallest data traffic currently carried by the second router and the third router as the optimal upstream router; or , The second determining module 922 is configured to determine, as the optimal upstream router, a router that can maximize the maximum data traffic that can be carried by the second router and the third router when the data flow capability parameter is used to describe the maximum data traffic that the router can carry. ; or,
第三确定模块 923,用于当数据流通能力参数用于描述路由器当前承载的 数据流量和路由器能够承载的最大数据流量时, 按照权重确定最优上游路由 器, 权重用于表征路由器当前承载的数据流量的权重和路由器能够承载的最 大数据流量的权重。  The third determining module 923 is configured to determine, according to the weight, an optimal upstream router, where the data flow capability parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry, and the weight is used to represent the data traffic currently carried by the router. The weight and the weight of the maximum data traffic that the router can carry.
进一步的, 获取单元 91还包括:  Further, the obtaining unit 91 further includes:
第四确定模块 911,用于根据第一链路的状态参数与第二链路的状态参数 计算第一链路和第二链路的优先级, 第一链路为第一路由器与第二路由器之 间的链路, 第二链路为第一路由器与第三路由器之间的链路, 状态参数用于 描述链路不被允许传输数据的次数, 次数越小的链路的优先级越高, 次数越 大的链路的优先级越低, 组播处理能力还包括: 优先级。  The fourth determining module 911 is configured to calculate a priority of the first link and the second link according to the state parameter of the first link and the state parameter of the second link, where the first link is the first router and the second router The link between the first link and the third router is a link between the first router and the third router. The status parameter is used to describe the number of times the link is not allowed to transmit data. The lower the number of times, the higher the priority of the link. The lower the priority of the link, the lower the priority. The multicast processing capability also includes: Priority.
进一步的, 确定单元 92还包括:  Further, the determining unit 92 further includes:
第五确定模块 924,用于当数据流通能力参数用于描述路由器当前承载的 数据流量时, 将第二路由器与第三路由器中, 当前承载的数据流量最小的路 由器确定为最优上游路由器; 或,  The fifth determining module 924 is configured to determine, when the data flow capability parameter is used to describe the data traffic currently carried by the router, the router that minimizes the data traffic currently carried by the second router and the third router as the optimal upstream router; or ,
第六确定模块 925,用于当数据流通能力参数用于描述路由器能够承载的 最大数据流量时, 将第二路由器与第三路由器中, 能够承载的最大数据流量 最大的路由器确定为最优上游路由器; 或,  The sixth determining module 925 is configured to determine, as the optimal upstream router, a router that can maximize the maximum data traffic that can be carried by the second router and the third router when the data flow capability parameter is used to describe the maximum data traffic that the router can carry. ; or,
第七确定模块 926,用于当数据流通能力参数用于描述路由器当前承载的 数据流量和路由器能够承载的最大数据流量时, 按照权重确定最优上游路由 器, 权重用于表征路由器当前承载的数据流量的权重和路由器能够承载的最 大数据流量的权重; 或,  The seventh determining module 926 is configured to determine, according to the weight, an optimal upstream router, where the data flow capability parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry, and the weight is used to represent the data traffic currently carried by the router. Weight and the weight of the maximum data traffic that the router can carry; or,
第八确定模块 927, 用于将第一链路与第二链路中,优先级最高的链路连 接的下一跳路由器确定为最优上游路由器。  The eighth determining module 927 is configured to determine, as the optimal upstream router, the next hop router that connects the first link with the highest priority link in the second link.
进一步的, 获取单元 91包括:  Further, the obtaining unit 91 includes:
接收模块 912,用于接收第二路由器和第三路由器每隔预设时间分别上报 的第一 Hello报文和第二 Hello报文, 第一 Hello报文包括: 用于表征第二 路由器的组播处理能力的 PIM Hello Option字段, 第二 Hello报文包括: 用 于表征第三路由器的组播处理能力的 PIM Hello Option字段;  The receiving module 912 is configured to receive the first Hello packet and the second Hello packet that are reported by the second router and the third router at the preset time, where the first Hello packet includes: The PIM Hello Option field of the processing capability, where the second Hello message includes: a PIM Hello Option field for characterizing the multicast processing capability of the third router;
获取模块 913 ,用于从第一 He 110报文中获取用于表征第二路由器的组播 处理能力的 PIM Hello Option字段, 并从第二 He 1 lo报文中获取用于表征第 三路由器的组播处理能力的 PIM He l lo Opt ion字段。 The obtaining module 913 is configured to obtain, from the first He 110 packet, a PIM Hello Option field, which is used to represent the multicast processing capability of the second router, and obtain the second Hello packet from the second He 1 lo packet. The PIM Hell Opt ion field of the multicast processing capability of the three routers.
釆用上述方案后, 第一路由器可以从第二路由器和第三路由器中选取组 播处理能力最优的路由器作为下行方向上的最优上游路由器, 并根据最优上 游路由器确定的上游链路; 另外, 在确定上游链路时还考虑了链路不被允许 传输数据的概率, 这样, 组播源不仅可以通过上游链路将组播数据传输至接 收端, 而且该链路也是组播处理能力最好的链路, 同时避免了由于链路频繁 发生故障 (即不被允许传输数据)导致频繁切换链路的问题, 即可以保证组 播数据传输的可靠性和完整性, 进而增加了系统的性能。  After the foregoing solution, the first router may select a router with the best multicast processing capability from the second router and the third router as the optimal upstream router in the downlink direction, and according to the upstream link determined by the optimal upstream router; In addition, when determining the upstream link, the probability that the link is not allowed to transmit data is also considered, so that the multicast source can not only transmit the multicast data to the receiving end through the upstream link, but also the multicast processing capability of the link. The best link, while avoiding the problem of frequent link switching due to frequent link failures (ie, not allowed to transmit data), that is, ensuring the reliability and integrity of multicast data transmission, thereby increasing the system's performance.
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本 发明可借助软件加必需的通用硬件的方式来实现, 当然也可以通过硬件, 但 很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本 质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该 计算机软件产品存储在可读取的存储介质中, 如计算机的软盘, 硬盘或光盘 等, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. . Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. A hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 Rights request
1、 一种组播负载场景下选路的方法, 其特征在于, 包括: 1. A method of route selection in a multicast load scenario, characterized by including:
第一路由器获取第二路由器的组播处理能力和第三路由器的组播处理能 力, 所述第二路由器是所述第一路由器在上行方向上的第一下一跳路由器, 所述第三路由器是所述第一路由器在所述上行方向上的第二下一跳路由器, 所述上行方向为由所述第一路由器到组播源的方向; The first router acquires the multicast processing capability of the second router and the multicast processing capability of the third router. The second router is the first next-hop router of the first router in the uplink direction. The third router is the second next-hop router of the first router in the uplink direction, and the uplink direction is the direction from the first router to the multicast source;
将所述第二路由器和所述第三路由器中的组播处理能力最优的路由器确 定为下行方向上的最优上游路由器, 所述下行方向为由所述组播源到所述第 一路由器的方向。 Determine the router with the best multicast processing capability among the second router and the third router as the optimal upstream router in the downlink direction, and the downlink direction is from the multicast source to the first router. direction.
2、 根据权利要求 1所述的组播负载场景下选路的方法, 其特征在于, 所 述组播处理能力包括: 路由器的数据流通能力参数, 所述数据流通能力参数 用于描述以下至少一项: 路由器当前承载的数据流量和路由器能够承载的最 大数据流量。 2. The method for routing in a multicast load scenario according to claim 1, characterized in that the multicast processing capability includes: a data flow capability parameter of a router, and the data flow capability parameter is used to describe at least one of the following: Item: The data traffic currently carried by the router and the maximum data traffic the router can carry.
3、 根据权利要求 2所述的组播负载场景下选路的方法, 其特征在于, 所 述将所述第二路由器和所述第三路由器中的组播处理能力最优的路由器确定 为下行方向上的最优上游路由器包括: 3. The method for route selection in a multicast load scenario according to claim 2, wherein the router with the best multicast processing capability among the second router and the third router is determined as the next router. The optimal upstream routers in the row direction include:
当所述数据流通能力参数用于描述路由器当前承载的数据流量时, 将所 述第二路由器与所述第三路由器中, 当前承载的数据流量最小的路由器确定 为所述最优上游路由器; 或, When the data flow capability parameter is used to describe the data traffic currently carried by the router, the router that currently carries the smallest data traffic among the second router and the third router is determined as the optimal upstream router; or ,
当所述数据流通能力参数用于描述路由器能够承载的最大数据流量时, 将所述第二路由器与所述第三路由器中, 能够承载的最大数据流量最大的路 由器确定为所述最优上游路由器; 或, When the data flow capacity parameter is used to describe the maximum data flow that a router can carry, the router with the largest maximum data flow that can be carried among the second router and the third router is determined as the optimal upstream router. ; or,
当所述数据流通能力参数用于描述路由器当前承载的数据流量和路由器 能够承载的最大数据流量时, 按照权重确定所述最优上游路由器, 所述权重 用于表征路由器当前承载的数据流量的权重和路由器能够承载的最大数据流 量的权重。 When the data flow capacity parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry, the optimal upstream router is determined according to the weight, and the weight is used to characterize the weight of the data traffic currently carried by the router. and the weight of the maximum data traffic the router can carry.
4、 根据权利要求 2所述的组播负载场景下选路的方法, 其特征在于, 所 述第一路由器获取第二路由器的组播处理能力和第三路由器的组播处理能力 包括: 4. The route selection method in a multicast load scenario according to claim 2, wherein the first router obtains the multicast processing capability of the second router and the multicast processing capability of the third router including:
根据第一链路的状态参数与第二链路的状态参数计算所述第一链路和所 述第二链路的优先级, 所述第一链路为所述第一路由器与所述第二路由器之 间的链路, 所述第二链路为所述第一路由器与所述第三路由器之间的链路, 所述状态参数用于描述链路不被允许传输数据的次数, 所述次数越小的链路 的优先级越高, 所述次数越大的链路的优先级越低, 所述组播处理能力还包 括: 所述优先级。 The priorities of the first link and the second link are calculated according to the state parameters of the first link and the state parameters of the second link, where the first link is the first router and the third link. A link between two routers, the second link is a link between the first router and the third router, the status parameter is used to describe the number of times the link is not allowed to transmit data, so The link with the smaller number is The higher the priority of the link, the lower the priority of the link with the greater number of times. The multicast processing capability also includes: the priority.
5、 根据权利要求 4所述的组播负载场景下选路的方法, 其特征在于, 所 述将所述第二路由器和所述第三路由器中的组播处理能力最优的路由器确定 为下行方向上的最优上游路由器包括: 5. The method for route selection in a multicast load scenario according to claim 4, wherein the router with the best multicast processing capability among the second router and the third router is determined as the next router. The optimal upstream routers in the row direction include:
当所述数据流通能力参数用于描述路由器当前承载的数据流量时, 将所 述第二路由器与所述第三路由器中, 当前承载的数据流量最小的路由器确定 为所述最优上游路由器; 或, When the data flow capability parameter is used to describe the data traffic currently carried by the router, the router that currently carries the smallest data traffic among the second router and the third router is determined as the optimal upstream router; or ,
当所述数据流通能力参数用于描述路由器能够承载的最大数据流量时, 将所述第二路由器与所述第三路由器中, 能够承载的最大数据流量最大的路 由器确定为所述最优上游路由器; 或, When the data flow capacity parameter is used to describe the maximum data flow that a router can carry, the router with the largest maximum data flow that can be carried among the second router and the third router is determined as the optimal upstream router. ; or,
当所述数据流通能力参数用于描述路由器当前承载的数据流量和路由器 能够承载的最大数据流量时, 按照权重确定所述最优上游路由器, 所述权重 用于表征路由器当前承载的数据流量的权重和路由器能够承载的最大数据流 量的权重; 或, When the data flow capacity parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry, the optimal upstream router is determined according to the weight, and the weight is used to characterize the weight of the data traffic currently carried by the router. and the weight of the maximum data traffic the router can carry; or,
将所述第一链路与所述第二链路中, 优先级最高的链路连接的下一跳路 由器确定为所述最优上游路由器。 The next-hop router connected to the link with the highest priority among the first link and the second link is determined as the optimal upstream router.
6、 根据权利要求 1至 5中任一项所述的组播负载场景下选路的方法, 其 特征在于, 所述第一路由器获取第二路由器的组播处理能力和第三路由器的 组播处理能力包括: 6. The method for routing in a multicast load scenario according to any one of claims 1 to 5, characterized in that the first router obtains the multicast processing capability of the second router and the multicast multicast capability of the third router. Processing capabilities include:
接收所述第二路由器和所述第三路由器每隔预设时间分别上报的第一 He l lo报文和第二 He l lo报文, 所述第一 He 1 lo报文包括: 用于表征所述第二 路由器的组播处理能力的 PIM He l lo Opt ion字段, 所述第二 He l lo ^艮文包括: 用于表征所述第三路由器的组播处理能力的 PIM He l lo Opt ion字段; Receive the first He l lo message and the second He l lo message respectively reported by the second router and the third router every preset time, and the first He l lo message includes: used to characterize The PIM Hello Option field of the multicast processing capability of the second router, the second Hello text includes: PIM Hello Option used to characterize the multicast processing capability of the third router ion field;
从所述第一 He l lo报文中获取所述用于表征所述第二路由器的组播处理 能力的 PIM He l lo Opt ion字段, 并从所述第二 He 1 lo报文中获取用于表征所 述第三路由器的组播处理能力的 PIM He l lo Opt ion字段。 Obtain the PIM Hello Option field used to characterize the multicast processing capability of the second router from the first Hello message, and obtain the username from the second Hello message. The PIM Hello Option field represents the multicast processing capability of the third router.
7、 一种第一路由器, 其特征在于, 包括: 7. A first router, characterized by including:
获取单元, 用于路由器获取第二路由器的组播处理能力和第三路由器的 组播处理能力, 所述第二路由器是所述第一路由器在上行方向上的第一下一 跳路由器, 所述第三路由器是所述第一路由器在所述上行方向上的第二下一 跳路由器, 所述上行方向为由所述第一路由器到组播源的方向; The acquisition unit is used for the router to acquire the multicast processing capability of the second router and the multicast processing capability of the third router. The second router is the first next-hop router of the first router in the uplink direction, and the The third router is the second next-hop router of the first router in the uplink direction, and the uplink direction is the direction from the first router to the multicast source;
确定单元, 用于将所述第二路由器和所述第三路由器中的组播处理能力 最优的路由器确定为下行方向上的最优上游路由器, 所述下行方向为由所述 组播源到所述第一路由器的方向。 Determining unit, configured to determine the multicast processing capabilities of the second router and the third router The optimal router is determined as the optimal upstream router in the downlink direction, and the downlink direction is the direction from the multicast source to the first router.
8、 根据权利要求 7所述的第一路由器, 其特征在于, 所述获取单元获取 的所述组播处理能力包括: 路由器的数据流通能力参数, 所述数据流通能力 参数用于描述以下至少一项: 路由器当前承载的数据流量和路由器能够承载 的最大数据流量。 8. The first router according to claim 7, wherein the multicast processing capability acquired by the acquisition unit includes: a data flow capability parameter of the router, and the data flow capability parameter is used to describe at least one of the following: Item: The data traffic currently carried by the router and the maximum data traffic the router can carry.
9、根据权利要求 8所述的第一路由器, 其特征在于, 所述确定单元包括: 第一确定模块, 用于当所述数据流通能力参数用于描述路由器当前承载 的数据流量时, 将所述第二路由器与所述第三路由器中, 当前承载的数据流 量最小的路由器确定为所述最优上游路由器; 或, 9. The first router according to claim 8, characterized in that the determination unit includes: a first determination module, configured to determine the data flow capacity parameter when the data flow capability parameter is used to describe the data traffic currently carried by the router. Among the second router and the third router, the router that currently carries the smallest data traffic is determined as the optimal upstream router; or,
第二确定模块, 用于当所述数据流通能力参数用于描述路由器能够承载 的最大数据流量时, 将所述第二路由器与所述第三路由器中, 能够承载的最 大数据流量最大的路由器确定为所述最优上游路由器; 或, The second determination module is configured to determine, among the second router and the third router, the router with the largest maximum data flow that can be carried when the data flow capability parameter is used to describe the maximum data traffic that the router can carry. is the optimal upstream router; or,
第三确定模块, 用于当所述数据流通能力参数用于描述路由器当前承载 的数据流量和路由器能够承载的最大数据流量时, 按照权重确定所述最优上 游路由器, 所述权重用于表征路由器当前承载的数据流量的权重和路由器能 够承载的最大数据流量的权重。 The third determination module is used to determine the optimal upstream router according to the weight when the data flow capacity parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry, and the weight is used to characterize the router. The weight of the data traffic currently carried and the weight of the maximum data traffic the router can carry.
10、 根据权利要求 8 所述的第一路由器, 其特征在于, 所述获取单元还 包括: 10. The first router according to claim 8, characterized in that the acquisition unit further includes:
第四确定模块, 用于根据第一链路的状态参数与第二链路的状态参数计 算所述第一链路和所述第二链路的优先级, 所述第一链路为所述第一路由器 与所述第二路由器之间的链路, 所述第二链路为所述第一路由器与所述第三 路由器之间的链路, 所述状态参数用于描述链路不被允许传输数据的次数, 所述次数越小的链路的优先级越高, 所述次数越大的链路的优先级越低, 所 述组播处理能力还包括: 所述优先级。 A fourth determination module, configured to calculate the priorities of the first link and the second link according to the status parameters of the first link and the status parameters of the second link, where the first link is the The link between the first router and the second router. The second link is the link between the first router and the third router. The status parameter is used to describe whether the link is The number of times that data is allowed to be transmitted. The smaller the number of times, the higher the priority of the link. The higher the number of times, the lower the priority of the link. The multicast processing capability also includes: the priority.
11、 根据权利要求 10所述的第一路由器, 其特征在于, 所述确定单元还 包括: 11. The first router according to claim 10, characterized in that the determining unit further includes:
第五确定模块, 用于当所述数据流通能力参数用于描述路由器当前承载 的数据流量时, 将所述第二路由器与所述第三路由器中, 当前承载的数据流 量最小的路由器确定为所述最优上游路由器; 或, The fifth determination module is configured to determine the router that currently carries the smallest data traffic among the second router and the third router as the router when the data flow capability parameter is used to describe the data traffic currently carried by the router. the optimal upstream router; or,
第六确定模块, 用于当所述数据流通能力参数用于描述路由器能够承载 的最大数据流量时, 将所述第二路由器与所述第三路由器中, 能够承载的最 大数据流量最大的路由器确定为所述最优上游路由器; 或, 第七确定模块, 用于当所述数据流通能力参数用于描述路由器当前承载 的数据流量和路由器能够承载的最大数据流量时, 按照权重确定所述最优上 游路由器, 所述权重用于表征路由器当前承载的数据流量的权重和路由器能 够承载的最大数据流量的权重; 或, A sixth determination module, configured to determine the router with the largest maximum data flow that can be carried among the second router and the third router when the data flow capacity parameter is used to describe the maximum data flow that the router can carry. is the optimal upstream router; or, The seventh determination module is used to determine the optimal upstream router according to the weight when the data flow capacity parameter is used to describe the data traffic currently carried by the router and the maximum data traffic that the router can carry. The weight is used to characterize the router. The weight of the data traffic currently carried and the weight of the maximum data traffic the router can carry; or,
第八确定模块, 用于将所述第一链路与所述第二链路中, 优先级最高的 链路连接的下一跳路由器确定为所述最优上游路由器。 An eighth determination module, configured to determine the next-hop router connected to the link with the highest priority among the first link and the second link as the optimal upstream router.
12、 根据权利要求 7至 11中任一项所述的第一路由器, 其特征在于, 所 述获取单元包括: 12. The first router according to any one of claims 7 to 11, characterized in that the acquisition unit includes:
接收模块, 用于接收所述第二路由器和所述第三路由器每隔预设时间分 别上报的第一 Hello报文和第二 Hello报文, 所述第一 Hel lo报文包括: 用 于表征所述第二路由器的组播处理能力的 PIM Hello Option字段, 所述第二 Hello 报文包括: 用于表征所述第三路由器的组播处理能力的 PIM Hello Option字段; A receiving module, configured to receive the first Hello message and the second Hello message respectively reported by the second router and the third router at preset intervals. The first Hello message includes: used to characterize The PIM Hello Option field of the multicast processing capability of the second router, the second Hello message includes: the PIM Hello Option field used to characterize the multicast processing capability of the third router;
获取模块, 用于从所述第一 Hello报文中获取所述用于表征所述第二路 由器的组播处理能力的 PIM Hello Option字段, 并从所述第二 Hel lo ^艮文中 获取用于表征所述第三路由器的组播处理能力的 PIM Hello Option字段。 An acquisition module configured to acquire the PIM Hello Option field used to characterize the multicast processing capability of the second router from the first Hello message, and acquire the PIM Hello Option field from the second Hello message. The PIM Hello Option field represents the multicast processing capability of the third router.
PCT/CN2014/081873 2013-07-31 2014-07-09 Method for selecting route in scenario of multicast load, and router WO2015014197A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310328376.0 2013-07-31
CN201310328376.0A CN104348736A (en) 2013-07-31 2013-07-31 Method for selecting route under multicast load scene and routers

Publications (1)

Publication Number Publication Date
WO2015014197A1 true WO2015014197A1 (en) 2015-02-05

Family

ID=52430967

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081873 WO2015014197A1 (en) 2013-07-31 2014-07-09 Method for selecting route in scenario of multicast load, and router

Country Status (2)

Country Link
CN (1) CN104348736A (en)
WO (1) WO2015014197A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869075B (en) * 2015-05-18 2018-03-20 新华三技术有限公司 Prevent flux of multicast congestion methods and equipment
CN105404381A (en) * 2015-11-06 2016-03-16 珠海全志科技股份有限公司 Terminal device operation frequency control method and system
EP3912330A4 (en) 2019-01-17 2022-08-24 Nokia Technologies Oy Hybrid transmission scheme determination
CN110401596B (en) * 2019-09-10 2023-05-26 迈普通信技术股份有限公司 Message transmission method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090201803A1 (en) * 2008-02-12 2009-08-13 Cisco Technology, Inc. Multicast fast reroute for network topologies
CN101577679A (en) * 2009-06-26 2009-11-11 杭州华三通信技术有限公司 Configuration management method for realizing multicast service sharing among appointed routers and appliance thereof
CN101610203A (en) * 2008-06-16 2009-12-23 华为技术有限公司 Realize method, the Apparatus and system of multicast heavy-route
CN101656679A (en) * 2009-09-25 2010-02-24 华为技术有限公司 Method for rapidly converging multicast, router and communication system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272614B (en) * 2007-03-20 2010-12-08 华为技术有限公司 Method, system and device for selecting network equipment
GB0712221D0 (en) * 2007-06-23 2007-08-01 Qinetiq Ltd Communication system
CN101227644B (en) * 2008-02-03 2012-11-28 中兴通讯股份有限公司 Method and apparatus of resource allocation
CN101355522B (en) * 2008-09-18 2011-02-23 中兴通讯股份有限公司 Control method and system for media server
CN101668019B (en) * 2009-09-30 2013-06-05 中兴通讯股份有限公司 Gateway ensuring method, device and message transmitting method and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090201803A1 (en) * 2008-02-12 2009-08-13 Cisco Technology, Inc. Multicast fast reroute for network topologies
CN101610203A (en) * 2008-06-16 2009-12-23 华为技术有限公司 Realize method, the Apparatus and system of multicast heavy-route
CN101577679A (en) * 2009-06-26 2009-11-11 杭州华三通信技术有限公司 Configuration management method for realizing multicast service sharing among appointed routers and appliance thereof
CN101656679A (en) * 2009-09-25 2010-02-24 华为技术有限公司 Method for rapidly converging multicast, router and communication system

Also Published As

Publication number Publication date
CN104348736A (en) 2015-02-11

Similar Documents

Publication Publication Date Title
US8009671B2 (en) Multicast method and multicast routing method
US7839850B2 (en) Forming equal cost multipath multicast distribution structures
US11381883B2 (en) Dynamic designated forwarder election per multicast stream for EVPN all-active homing
US9338096B2 (en) Multicast tree packing for multi-party video conferencing under SDN environment
CN109150580B (en) Protocol independent multicast join entropy
US11522786B2 (en) Packet forwarding path determining method, device, and system
EP2437444A1 (en) Method, router and communication system for rapid multicast convergence
Tu et al. Resource-aware video multicasting via access gateways in wireless mesh networks
US10225091B2 (en) Method for implementing point-to-multipoint multicast, network node, and system
US9130857B2 (en) Protocol independent multicast with quality of service support
WO2011147206A1 (en) Multicast traffic sharing method and correlative device
WO2020078043A1 (en) Method for determining df of multicast stream, device, and system
WO2015014197A1 (en) Method for selecting route in scenario of multicast load, and router
EP2719120B1 (en) Protocol independent multicast last hop router discovery
CN106817308B (en) System, method and device for forwarding multicast stream
WO2010139109A1 (en) Method and device for requesting multicasting, processing multicasting requests and assisting in the aforementioned process
US9036462B2 (en) Internet group management protocol version three for quality of service support
WO2019075674A1 (en) Multicast packet transmission method, network device, and system
WO2012103748A1 (en) Multicast control method, routing device and multicast system
WO2010069174A1 (en) A data transmission method, system and equipment
WO2013037319A1 (en) Bandwidth resource management method, device and system for label switched path
US8711853B2 (en) System and method for providing a path avoidance feature in a network environment
WO2014101733A1 (en) Message processing method and device
WO2013013577A1 (en) Method, device and system for managing bandwidth resource of label switched path
WO2020021558A1 (en) Methods, apparatus and machine-readable media relating to path computation in a communication network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14831585

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14831585

Country of ref document: EP

Kind code of ref document: A1