WO2016061931A1 - Method and system for tracing multicast path by user equipment - Google Patents

Method and system for tracing multicast path by user equipment Download PDF

Info

Publication number
WO2016061931A1
WO2016061931A1 PCT/CN2015/071373 CN2015071373W WO2016061931A1 WO 2016061931 A1 WO2016061931 A1 WO 2016061931A1 CN 2015071373 W CN2015071373 W CN 2015071373W WO 2016061931 A1 WO2016061931 A1 WO 2016061931A1
Authority
WO
WIPO (PCT)
Prior art keywords
multicast
path tracking
multicast path
routing device
user equipment
Prior art date
Application number
PCT/CN2015/071373
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 WO2016061931A1 publication Critical patent/WO2016061931A1/en

Links

Images

Definitions

  • the present invention relates to the field of network communications, and in particular, to a method and system for user equipment to perform multicast path tracking.
  • Multicast path tracking refers to the path that the multicast data passes from the first hop routing device upstream of the multicast distribution tree to the last hop routing device downstream of the multicast distribution tree.
  • the IETF draft Mtrace Version 2: Traceroute Facility for IP Multicast draft-asaeda-mboned-mtrace-v2-00 (hereafter referred to as mtrace v2.00) proposes a multicast path tracking protocol standard that supports tracking on a router device. A multicast path from any router device on the network to a multicast source or multicast center point, and supports multicast tracking of specified group addresses.
  • the device that initiates the multicast path tracking needs to look up the multicast routing table and the unicast routing table related to the multicast path.
  • the mtrace v2.00 draft cannot directly support user equipment for multicast path tracking because the user equipment does not have a multicast routing table and has no or only a small number of unicast routing tables.
  • the embodiment of the invention provides a method and a system for performing multicast path tracking by a user equipment, so as to at least solve the problem that the user equipment cannot directly perform multicast path tracking in the related art.
  • the present invention provides a method for user equipment to perform multicast path tracking, including the following steps:
  • the user equipment When receiving the multicast path tracking request, the user equipment generates a user multicast path tracking request message, and sends the message to the first routing device connected to the user equipment;
  • the first routing device sends a multicast path tracking request message defined in the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, and sends the multicast path tracking request packet to the upstream of the multicast distribution tree.
  • First hop routing device ;
  • the first hop routing device After receiving the multicast path tracking request packet, the first hop routing device upstream of the multicast distribution tree converts the multicast path tracking request packet into a multicast path tracking response report defined in the mtrace v2.00 draft. And sending the multicast path tracking response packet to the first routing device;
  • the first routing device generates a feedback message according to the multicast path tracking response message and sends the feedback message to the user equipment;
  • the user equipment receives the feedback message, and parses and displays the feedback message according to the definition of the mtrace v2.00 draft.
  • the user multicast path tracking request message is an extended IGMPv3 group membership report message, including a message type, a number of group records, and a group record.
  • the Group Record includes an Extend Record type, a Multicast Address, and a Source Address;
  • the Source Address includes a source address [1] (Source Address [1]) and a source address [ 2] (Source Address [2]);
  • the message type is used to identify the type of the user multicast path tracking request message
  • the Number of Group Records is used to fill in the number of multicast path tracking tasks received by the user equipment in the multicast path tracking request;
  • the Extend Record type is used to identify the type of the multicast path tracking task in the multicast path tracking request received by the user equipment;
  • the Multicast Address is used to fill in a group address of the multicast tracking task in the multicast path tracking request received by the user equipment;
  • the Source Address [1] is used to fill in a multicast source address that the user equipment receives the multicast path tracking task;
  • the Source Address [2] is used to fill in the destination address of the multicast path tracking task received by the user equipment.
  • the first routing device sends the multicast path tracking request message defined by the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, including:
  • the first routing device When the first routing device is not the last hop routing device downstream of the multicast distribution tree, the first routing device generates a multicast path tracking query defined by the mtrace v2.00 draft according to the user multicast path tracking request message.
  • the last hop routing device downstream of the multicast distribution tree converts the received multicast path tracking query message into a multicast path tracking request message defined in the mtrace v2.00 draft, and then sends the multicast routing tree upstream routing device to the multicast distribution tree. send.
  • the first routing device sends the multicast path tracking request message defined by the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, including:
  • the first routing device When the first routing device is a trailing hop routing device downstream of the multicast distribution tree, the first routing device generates a multicast path defined by the mtrace v2.00 draft according to the user multicast path tracking request message. Tracking request messages;
  • the first routing device sends the multicast path tracking request message to an upstream routing device of the multicast distribution tree.
  • the first routing device generates a feedback message according to the multicast path tracking response message and sends the feedback message to the user equipment, including:
  • the first routing device determines whether the multicast path tracking response message defined by the mtrace v2.00 draft is received within a preset time
  • the first routing device sends the multicast path tracking response message defined by the mtrace v2.00 draft to the user equipment;
  • the first routing device If not, the first routing device generates a response packet with the multicast path status as the route unreachable according to the mtrace v2.00 draft definition, sends the response packet to the user equipment, and discards the received mtrace v2.00 draft. Defined multicast path tracking response message.
  • the present invention further provides a system for performing multicast path tracking by a user equipment, including a user equipment, a first routing device, and a first hop routing device upstream of a multicast distribution tree, where
  • the user equipment is configured to: when receiving the multicast path tracking request, generate a user multicast path tracking request message, and send the message to the first routing device connected to the user equipment;
  • the first routing device is configured to send a multicast path tracking request message defined in the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, until the multicast routing request packet is sent to the multicast
  • the first hop routing device upstream of the distribution tree;
  • the first hop routing device upstream of the multicast distribution tree is configured to convert the request packet into a multicast path tracking response message defined by the mtrace v2.00 draft after receiving the multicast path tracking request packet. Sending the multicast path tracking response message to the first routing device;
  • the first routing device is further configured to generate a feedback message according to the multicast path tracking response message and send the feedback message to the user equipment;
  • the user equipment is further configured to parse and display the feedback message according to the definition of mtrace v2.00 when receiving the feedback message.
  • the user multicast path tracking request message is an extended IGMPv3 group membership report message, including a message type, a number of group records, and a group record.
  • the Group Record includes an Extend Record type, a Multicast Address, and a Source Address;
  • the Source Address includes a source address [1] (Source Address [1]) and a source address [ 2] (Source Address [2]);
  • the message type is used to identify the type of the user multicast path tracking request message
  • the Number of Group Records is used to fill in the number of multicast path tracking tasks received by the user equipment in the multicast path tracking request;
  • the Extend Record type is used to identify the type of the multicast path tracking task in the multicast path tracking request received by the user equipment;
  • the Multicast Address is used to fill in a group address of the multicast tracking task in the multicast path tracking request received by the user equipment;
  • the Source Address [1] is used to fill in a multicast source address that the user equipment receives the multicast path tracking task;
  • the Source Address [2] is used to fill in the destination address of the multicast path tracking task received by the user equipment.
  • the first routing device when the first routing device is not the last hop routing device downstream of the multicast distribution tree, the first routing device is configured to generate the mtrace v2.00 draft definition according to the user multicast path tracking request message.
  • the multicast path tracking query message is sent to the last hop routing device downstream of the multicast distribution tree; and the last hop routing device downstream of the multicast distribution tree will receive the received message.
  • the multicast path tracking query packet is translated into the multicast path tracking request packet defined in the mtrace v2.00 draft and then sent to the upstream routing device of the multicast distribution tree.
  • the first routing device when the first routing device is a trailing hop routing device downstream of the multicast distribution tree, the first routing device is configured to generate mtrace v2.00 according to the user multicast path tracking request message. Draft definition The multicast path tracking request message is sent to the upstream routing device of the multicast distribution tree.
  • the first routing device is further configured to determine whether the multicast path tracking response message defined by the mtrace v2.00 draft is received within a preset time; if yes, the mtrace v2.00 draft is defined The multicast path tracking response message is sent to the user equipment; if not, a response message with a multicast path state being unreachable is generated according to the mtrace v2.00 draft definition, and is sent to the user equipment, and is discarded.
  • the method and system for performing multicast path tracking by using the user equipment provided by the present invention enable the user equipment to directly perform multicast path tracking and support multiple types of multicast path tracking, and simultaneously support user equipment to initiate multiple multicasts at a time. Path tracking task.
  • FIG. 1 is a structural diagram of an application scenario system in an embodiment of a method for performing multicast path tracking by a user equipment according to the present invention
  • FIG. 2 is a schematic flowchart of a method for performing multicast path tracking by a user equipment according to the present invention
  • FIG. 3 is a schematic flowchart of an embodiment of sending a multicast path tracking request packet to a first hop routing device in FIG. 2;
  • FIG. 4 is a schematic flowchart of another embodiment of the device for sending a multicast path tracking request packet to the first hop routing device in FIG. 2;
  • FIG. 5 is a schematic flowchart of processing a feedback packet by the first routing device in FIG. 2;
  • FIG. 6 is a schematic diagram of a user multicast path tracking request message in an embodiment of a method for performing multicast path tracking by a user equipment according to the present invention
  • FIG. 7 is a diagram showing an example of a Group Record sub-format in FIG. 6;
  • FIG. 8 is a diagram showing an example of a format of an IGMPv3 group membership report message in a method for performing multicast path tracking by a user equipment according to the present invention
  • FIG. 9 is a diagram showing an example of a Group Record sub-format in FIG. 8.
  • FIG. 10 is a diagram showing an example of a format of a header of a multicast path tracking response message defined in the draft mtrace v2.00;
  • Figure 11 is a diagram showing an example of a sub-format of the data in the multicast path tracking response message defined in the draft mtrace v2.00.
  • the present invention provides a method for a user equipment to perform multicast path tracking.
  • FIG. 1 it is a system architecture diagram of an application scenario according to the present invention.
  • user equipment PC1 and user equipment PC2 belong to the same multicast group, and the same group.
  • a multicast source PC3 is provided in the broadcast group; both the user equipment PC1 and the user equipment PC2 can initiate a user multicast path tracking request.
  • FIG. 2 is a flowchart of a first embodiment of a method for performing multicast path tracking by a user equipment according to the present invention.
  • the method includes:
  • Step S10 When receiving the multicast path tracking request, the user equipment generates a user multicast path tracking request message, and sends the message to the first routing device connected to the user equipment.
  • the user can input a multicast path tracking request on the operation interface specified by the user equipment PC1.
  • the user equipment PC1 generates a user multicast path tracking request message, and the user multicast path tracking request message is one.
  • the extended IGMPv3 group membership report message as shown in Figure 6, is modified and extended in the format of the IGMPv3 group membership report packet to the extended IGMPv3 group membership report.
  • the packet can carry parameters required for multicast path tracking.
  • the IGMPv3 group membership report message is as shown in Figure 8.
  • the fields included in the IGMPv3 group membership report message are:
  • the Reserved field is a reserved field, which occupies one byte and defaults to 0.
  • the Checksum field is a check field, which occupies two bytes.
  • the Number of Group Records (M) field is used to indicate how many Group Recordes the message has;
  • the Group Record field is used to fill in information related to group membership.
  • the type 0 indicates that the packet is an IGMPv3 group membership report packet, and the packet is processed according to the RFC3376IGMPv3 protocol.
  • Type 1 indicates that the packet is a user multicast path tracking request packet, that is, the packet is used to initiate multicast path tracking.
  • the Number of Group Records field in the user multicast path tracking request message fills in the number of multicast path tracking request tasks, and one user multicast path tracking request message can carry multiple multicast path tracking request tasks.
  • the Record type is extended in the Group Record.
  • the message type is the IGMPv3 group membership report message
  • the Extend Record Type is parsed according to the original definition of RFC3376.
  • the packet type is a user multicast path tracking request packet
  • three types of multicast path tracking tasks are defined for the three types:
  • Type 1 is the specified source address tracking.
  • Source Address[1] fills in the multicast source address, and other addresses default to the multicast path between the multicast source address and the local user equipment.
  • Type 2 is the specified source address and destination address tracking.
  • Source Address[1] fills in the multicast source address
  • Source Address[2] fills in the destination address
  • other addresses default, indicating tracking from the multicast source address.
  • Type 3 is the destination address and group address tracking of the specified source address.
  • Multicast Address fills in the group address
  • Source Address[1] fills in the multicast source address
  • Source Address[2] fills in the destination address, indicating that the tracking is specified.
  • Group address the multicast path from the multicast source address to the destination address.
  • the IGMPv3 group membership report message sent by a user equipment is not processed by other user equipments on the shared network. Therefore, the extension of this packet does not affect the joining or leaving of other user equipments on the shared network. Multicast group.
  • the designated router When there are multiple routing devices in the shared network where the user equipment is located, the designated router is designated as the first routing device by the shared network, and the user multicast path tracking request packet is processed, and other routing devices in the shared network are discarded.
  • the user multicast path tracking request message When there are multiple routing devices in the shared network where the user equipment is located, the designated router is designated as the first routing device by the shared network, and the user multicast path tracking request packet is processed, and other routing devices in the shared network are discarded.
  • the user multicast path tracking request message When there are multiple routing devices in the shared network where the user equipment is located.
  • the first routing device sends the multicast path tracking request packet defined in the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, and sends the multicast path tracking request packet to the upstream of the multicast distribution tree.
  • First hop routing device ;
  • the multicast distribution tree includes a first hop routing device upstream of the multicast distribution tree connected to the multicast source, a last hop routing device downstream of the multicast distribution tree connected to the destination address user equipment, and a first upstream of the multicast distribution tree.
  • the first routing device may be the last hop routing device downstream of the multicast distribution tree or the last hop routing device downstream of the multicast distribution tree, that is, other routing devices other than the multicast distribution tree.
  • the first routing device when the first routing device receives the user multicast path tracking message sent by the user equipment PC1, it determines the type of the Extend Record type in the user multicast path tracking request message: when the Extend Record type is a type At 2 o'clock, it indicates that the user equipment PC1 initiates multicast path tracking from the multicast source to the destination address of the user equipment PC2.
  • the first routing device sends a multicast path tracking query message, and the last hop routing device downstream of the multicast distribution tree sends the multicast path tracking to the first hop routing device upstream of the multicast distribution tree according to the received multicast path tracking query message.
  • the request packet is sent to the first-hop routing device upstream of the multicast distribution tree.
  • the first routing device sends the multicast path to the first-hop routing device upstream of the multicast distribution tree. Track request messages.
  • Step S30 After receiving the multicast path tracking request packet, the first hop routing device upstream of the multicast distribution tree converts the multicast path tracking request packet into a multicast path tracking response message defined in the mtrace v2.00 draft.
  • the multicast path tracking response packet is sent to the first routing device.
  • the multicast path tracking response message includes a message header and a response data part, wherein the response data part carries the following information related to the multicast path:
  • the Incoming Interface Address field is used to indicate which interface of the routing device the packet enters
  • the Outgoing Interface Address field is used to indicate which interface of the routing device the message leaves
  • the Previous-Hop Router Address field is used to indicate the address of the last hop routing device from which the packet came from;
  • the first hop routing device upstream of the multicast distribution tree receives the multicast path tracking request packet sent by the downstream routing device of the multicast distribution tree, and then fills in the multicast multicast address and path status into the multicast.
  • the path tracking request message is generated according to the definition of the mtrace v2.00 draft according to the multicast path address and path status information of the routing device of each multicast distribution tree in the multicast path tracking request message.
  • a multicast path tracking response packet is sent to the first routing device.
  • Step S40 The first routing device generates a feedback message according to the multicast path tracking response message and sends the feedback message to the user equipment.
  • the network device is a set of dynamic devices, a certain network line may be unreachable for some reason, or a certain routing device receives more than a certain time period.
  • a large amount of network data of the processing capability causes a timeout for data processing; therefore, the first routing device may receive the multicast path tracking response message sent by the first hop routing device, and may not receive the first hop route.
  • the multicast path tracking response packet sent by the device may not receive the multicast path tracking response packet within a preset time; specifically, when the routing device receives the group within a preset time When the multicast path tracking response message is sent, the multicast path tracking response message is sent to the user equipment PC1; when the first routing device does not receive the multicast path tracking response message within the preset time, the first The routing device generates a response packet with the multicast path status being unreachable and sends the response packet to the user equipment PC1.
  • Step S50 The user equipment receives the feedback message, and parses and displays the feedback message according to the definition of the mtrace v2.00 draft.
  • the user equipment PC1 tracks the multicast path tracking response according to the mtrace v2.00 draft definition.
  • the packet is parsed, and the tracked multicast path is displayed on the display device of the user equipment PC1; when the feedback message is the mtrace v2.00 draft, the multicast path status is the route unreachable response report.
  • the user equipment PC1 parses the response packet whose routing path status is unreachable according to the mtrace v2.00 draft definition, and displays the multicast path status as the route unreachable result on the user equipment PC1. On the display device.
  • the method for performing multicast path tracking by the user equipment enables the user equipment to directly perform multicast path tracking and support multiple types of multicast path tracking, and simultaneously supports the user equipment to initiate multiple multicast path tracking tasks at a time. .
  • the first routing device may be a trailing hop routing device downstream of the multicast distribution tree, or may not be a last hop routing device downstream of the multicast distribution tree.
  • step S20 when the first routing device is not the last hop routing device downstream of the multicast distribution tree, the foregoing step S20 includes:
  • Step S201 The first routing device generates a multicast path tracking query message defined by the mtrace v2.00 draft according to the user multicast path tracking request message.
  • Step S202 The first routing device sends the multicast path tracking query message to the last hop routing device downstream of the multicast distribution tree.
  • Step S203 the last hop routing device downstream of the multicast distribution tree converts the received multicast path tracking query message into a multicast path tracking request message defined in the mtrace v2.00 draft, and then sends the multicast path tracking request message to the multicast distribution tree.
  • the upstream routing device sends.
  • the first routing device determines the type of the ExtendRecord Type in the received user multicast path tracking request message, and when the type is 2, the first routing device tracks the request packet according to the received user multicast path.
  • the packet generates a multicast path tracking request packet defined in the mtrace v2.00 draft.
  • the multicast path tracking request packet is sent to the upstream routing device of the multicast distribution tree.
  • the multicast path address and the path state are filled in the multicast path tracking request packet until the first hop routing device upstream of the multicast distribution tree is sent.
  • step S20 when the first routing device is a trailing hop routing device downstream of the multicast distribution tree, the foregoing step S20 includes:
  • Step S204 the first routing device generates a multicast path tracking request message defined by the mtrace v2.00 draft according to the user multicast path tracking request message.
  • Step S205 The first routing device sends the multicast path tracking request packet to an upstream routing device of the multicast distribution tree.
  • the first routing device determines the type of the Extend Record Type in the received user multicast path tracking request message. When the type is 1, the first routing device generates the multicast path tracking defined by the mtrace v2.00 draft. Request packet; send the multicast path request packet to the upstream routing device of the multicast distribution tree. Each hop multicast routing device in the multicast distribution tree fills the multicast path address and path status into the multicast path tracking request. The packet is sent to the first hop routing device upstream of the multicast distribution tree.
  • the foregoing step S40 includes:
  • Step S401 the first routing device determines whether the multicast path tracking response message defined by the mtrace v2.00 draft is received within a preset time; if yes, step S402 is performed; otherwise, step S403 is performed.
  • Step S402 the first routing device sends the multicast path tracking response message defined by the mtrace v2.00 draft to the user equipment;
  • Step S403 the first routing device generates a response message with the multicast path status as the route unreachable according to the mtrace v2.00 draft definition, sends the response message to the user equipment, and discards the mtrace v2.00 draft definition received after the discarding. Multicast path tracking response message.
  • the length of the preset time may be set according to actual needs.
  • the preset time can be 3 seconds.
  • the present invention also provides a system for performing multicast path tracking by a user equipment.
  • FIG. 1 a schematic diagram of an application scenario of the present invention, in which the user equipment PC1 and the user equipment PC2 belong to the same multicast group and the same multicast group.
  • a multicast source PC3 is provided in both of them; both the user equipment PC1 and the user equipment PC2 can initiate a user multicast path tracking request.
  • An embodiment of the system for performing multicast path tracking by a user equipment provided by the present invention includes a user equipment, a first routing device, and a first hop routing device upstream of the multicast distribution tree, where
  • the user equipment is configured to: when receiving the multicast path tracking request, generate a user multicast path tracking request message, and send the message to the first routing device connected to the user equipment;
  • the user can input a multicast path tracking request on the operation interface specified by the user equipment PC1, and the user equipment PC1 will generate a user multicast path tracking request message, and the user multicast path tracking request message.
  • It is an extended IGMPv3 group membership report message.
  • the IGMPv3 group membership report packet format is modified and extended as follows, and the extended IGMPv3 group member is modified. Relationship report messages can carry the parameters needed for multicast path tracking.
  • the IGMPv3 group membership report message is as shown in Figure 8.
  • the fields included in the IGMPv3 group membership report message are:
  • the Reserved field is a reserved field, which occupies one byte and defaults to 0.
  • the Checksum field is a check field, which occupies two bytes.
  • the Number of Group Records (M) field is used to indicate how many Group Recordes the message has;
  • the Group Record field is used to fill in information related to group membership.
  • the type 0 indicates that the packet is an IGMPv3 group membership report packet, and the packet is processed according to the RFC3376IGMPv3 protocol.
  • Type 1 indicates that the packet is a user multicast path tracking request packet, that is, the packet is used to initiate multicast path tracking.
  • the Number of Group Records field in the user multicast path tracking request message fills in the number of multicast path tracking request tasks, and one user multicast path tracking request message can carry multiple multicast path tracking request tasks.
  • the Record type is extended in the Group Record.
  • the message type is the IGMPv3 group membership report message
  • the Extend Record Type is parsed according to the original definition of RFC3376.
  • the packet type is a user multicast path tracking request packet
  • three types of multicast path tracking tasks are defined for the three types:
  • Type 1 is the specified source address tracking.
  • Source Address[1] fills in the multicast source address, and other addresses default to the multicast path between the multicast source address and the local user equipment.
  • Type 2 is the specified source address and destination address tracking.
  • Source Address[1] fills in the multicast source address
  • Source Address[2] fills in the destination address
  • other addresses default, indicating tracking from the multicast source address.
  • Type 3 is the destination address and group address tracking of the specified source address.
  • Multicast Address fills in the group address
  • Source Address[1] fills in the multicast source address
  • Source Address[2] fills in the destination address, indicating that the tracking is specified.
  • Group address the multicast path from the multicast source address to the destination address.
  • the IGMPv3 group membership report message sent by a user equipment is not processed by other user equipments on the shared network. Therefore, the extension of this packet does not affect the joining or leaving of other user equipments on the shared network. Multicast group.
  • the designated router When there are multiple routing devices in the shared network where the user equipment is located, the designated router is designated as the first routing device by the shared network, and the user multicast path tracking request packet is processed, and other routing devices in the shared network are discarded.
  • the user multicast path tracking request message When there are multiple routing devices in the shared network where the user equipment is located, the designated router is designated as the first routing device by the shared network, and the user multicast path tracking request packet is processed, and other routing devices in the shared network are discarded.
  • the user multicast path tracking request message When there are multiple routing devices in the shared network where the user equipment is located.
  • the first routing device is configured to send a multicast path tracking request message defined in the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, until the multicast routing request packet is sent to the multicast
  • the first hop routing device upstream of the distribution tree;
  • the first routing device when the first routing device receives the user multicast path tracking message sent by the user equipment PC1, it determines the type of the Extend Record type in the user multicast path tracking request message: when the Extend Record type is Type 2 indicates that the user equipment PC1 initiates multicast path tracking from the multicast source to the destination address of the user equipment PC2.
  • the first routing device sends a multicast path tracking query message to the end hop routing device, and the hop routing device sends a group to the first hop routing device upstream of the multicast distribution tree according to the received multicast path tracking query message.
  • the Extend Record type is type 1
  • it is determined that the first routing device is the end of the multicast distribution tree.
  • Jump routing device The first routing device sends a multicast path tracking request message to the first hop routing device.
  • the first hop routing device upstream of the multicast distribution tree is configured to convert the request packet into a multicast path tracking response message defined by the mtrace v2.00 draft after receiving the multicast path tracking request packet. Sending the multicast path tracking response message to the first routing device;
  • the multicast path tracking response message includes a message header and a response data part, wherein the response data part carries the following information related to the multicast path:
  • the Incoming Interface Address field is used to indicate which interface of the routing device the packet enters
  • the Outgoing Interface Address field is used to indicate which interface of the routing device the message leaves
  • the Previous-Hop Router Address field is used to indicate the address of the last hop routing device from which the packet came from;
  • the first hop routing device after receiving the multicast path tracking request packet sent by the downstream routing device of the multicast distribution tree, the first hop routing device fills in the multicast path tracking request report with its own multicast path address and path status. And generating a multicast path according to the definition of the mtrace v2.00 draft according to the multicast path address and path status information of the routing device of each multicast distribution tree in the multicast path tracking request message. Tracking the response packet, and sending the multicast path tracking response packet to the first routing device.
  • the first routing device is further configured to generate a feedback message according to the multicast path tracking response message and send the feedback message to the user equipment.
  • the network device is a set of dynamic devices, a certain network line may be unreachable for some reason, or a certain routing device receives more than a certain time period.
  • a large amount of network data of the processing capability causes a timeout for data processing; therefore, the first routing device may receive the multicast path tracking response message sent by the first hop routing device, and may not receive the first hop routing device.
  • the multicast path tracking response packet may not be received in the preset time; specifically, when the routing device receives the multicast path tracking response within a preset time
  • the packet is sent to the user equipment PC1 when the packet is received; when the first routing device does not receive the multicast path tracking response packet within the preset time, the first routing device generates A multicast path is a response packet with an unreachable route, and the response packet is sent to the user equipment PC1.
  • the user equipment is further configured to parse and display the feedback message according to the definition of mtrace v2.00 when receiving the feedback message.
  • the user equipment PC1 tracks the multicast path tracking response according to the mtrace v2.00 draft definition.
  • the packet is parsed, and the tracked multicast path is displayed on the display device of the user equipment PC1; when the feedback message is the mtrace v2.00 draft, the multicast path status is the route unreachable response report.
  • the user equipment PC1 parses the response packet whose routing path status is unreachable according to the mtrace v2.00 draft definition, and displays the multicast path status as the route unreachable result on the user equipment PC1. On the display device.
  • the first routing device may be a trailing hop routing device downstream of the multicast distribution tree, or may be a trailing hop routing device downstream of the multicast distribution tree, that is, other routing devices other than the multicast distribution tree.
  • the first routing device When the first routing device is not the last hop routing device downstream of the multicast distribution tree, the first routing device is configured to generate a multicast path defined by the mtrace v2.00 draft according to the user multicast path tracking request message. Tracking the query message; sending the multicast path tracking query message to the last hop routing device downstream of the multicast distribution tree; for the last hop routing device downstream of the multicast distribution tree to receive the multicast The path tracking query packet is converted to the multicast path tracking request packet defined in the mtrace v2.00 draft and sent to the upstream routing device of the multicast distribution tree.
  • the first routing device When the first routing device is a trailing hop routing device downstream of the multicast distribution tree, the first routing device is configured to generate a mtrace v2.00 draft definition according to the user multicast path tracking request message.
  • the multicast path tracking request packet is sent to the upstream routing device of the multicast distribution tree.
  • the first routing device is further configured to determine whether the multicast path tracking response message defined by the mtrace v2.00 draft is received within a preset time; if yes, Transmitting the multicast path tracking response message defined by the mtrace v2.00 draft to the user equipment; if not, generating a response message with the multicast path status being unreachable according to the mtrace v2.00 draft definition.
  • the multicast path tracking response message defined by the mtrace v2.00 draft received after being sent to the user equipment.
  • the method and system for performing multicast path tracking by a user equipment have the following beneficial effects: enabling the user equipment to directly perform multicast path tracking and support multiple types of multicast path tracking. At the same time, the user equipment is supported to initiate multiple multicast path tracking tasks at one time.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed is a method for tracing a multicast path by a user equipment. The method comprises: a user equipment generates a user multicast path trace request packet and sends the user multicast path trace request packet to a first routing device connected to the user equipment; the first routing device sends a multicast path trace request packet defined in the mtrace v2.00 draft to an upstream routing device of a multicast distribution tree according to the user multicast path trace request packet until the multicast path trace request packet is sent to a first-hop routing device upstream of the multicast distribution tree; the first-hop routing device converts the multicast path trace request packet into a multicast path trace response packet defined in the mtrace v2.00 draft and sends the multicast path trace response packet to the first routing device; the first routing device generates a feedback packet according to the multicast path trace response packet and sends the feedback packet to the user equipment; and the user equipment parses the displays the received feedback packet. Also disclosed is a system for tracing a multicast path by a user equipment.

Description

用户设备进行组播路径追踪的方法及系统Method and system for multicast path tracking by user equipment 技术领域Technical field
本发明涉及网络通讯领域,尤其涉及用户设备进行组播路径追踪的方法及系统。The present invention relates to the field of network communications, and in particular, to a method and system for user equipment to perform multicast path tracking.
背景技术Background technique
组播路径追踪是指跟踪组播数据从组播分发树上游的首跳路由设备到组播分发树下游的末跳路由设备所经过的路径。IETF草案Mtrace Version 2:Traceroute Facility for IP Multicast draft-asaeda-mboned-mtrace-v2-00(以下简称mtrace v2.00)中提出了组播路径追踪协议标准,该草案支持在一台路由器设备上追踪网络上任意一台路由器设备到组播源或组播中心点的组播路径,并且支持指定组地址组播路径追踪。根据mtrace v2.00草案,发起组播路径追踪的设备需要查找组播路由表以及组播路径相关的单播路由表。由于用户设备没有组播路由表,没有或只有少量的单播路由表,mtrace v2.00草案无法直接支持用户设备进行组播路径追踪。Multicast path tracking refers to the path that the multicast data passes from the first hop routing device upstream of the multicast distribution tree to the last hop routing device downstream of the multicast distribution tree. The IETF draft Mtrace Version 2: Traceroute Facility for IP Multicast draft-asaeda-mboned-mtrace-v2-00 (hereafter referred to as mtrace v2.00) proposes a multicast path tracking protocol standard that supports tracking on a router device. A multicast path from any router device on the network to a multicast source or multicast center point, and supports multicast tracking of specified group addresses. According to the mtrace v2.00 draft, the device that initiates the multicast path tracking needs to look up the multicast routing table and the unicast routing table related to the multicast path. The mtrace v2.00 draft cannot directly support user equipment for multicast path tracking because the user equipment does not have a multicast routing table and has no or only a small number of unicast routing tables.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明实施例提供了一种用户设备进行组播路径追踪的方法及系统,以至少解决相关技术中用户设备无法直接进行组播路径追踪的问题。The embodiment of the invention provides a method and a system for performing multicast path tracking by a user equipment, so as to at least solve the problem that the user equipment cannot directly perform multicast path tracking in the related art.
为了实现上述目的,本发明提供一种用户设备进行组播路径追踪的方法,包括以下步骤:To achieve the above objective, the present invention provides a method for user equipment to perform multicast path tracking, including the following steps:
用户设备接收到组播路径追踪请求时,生成用户组播路径追踪请求报文,并发送给与用户设备相连的第一路由设备;When receiving the multicast path tracking request, the user equipment generates a user multicast path tracking request message, and sends the message to the first routing device connected to the user equipment;
所述第一路由设备根据所述用户组播路径追踪请求报文向组播分发树的上游路由设备发送mtrace v2.00草案定义的组播路径追踪请求报文,直到发送至组播分发树上游的首跳路由设备;The first routing device sends a multicast path tracking request message defined in the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, and sends the multicast path tracking request packet to the upstream of the multicast distribution tree. First hop routing device;
所述组播分发树上游的首跳路由设备收到所述组播路径追踪请求报文后,将所述组播路径追踪请求报文转换为mtrace v2.00草案定义的组播路径追踪应答报文,将所述组播路径追踪应答报文发送给第一路由设备; After receiving the multicast path tracking request packet, the first hop routing device upstream of the multicast distribution tree converts the multicast path tracking request packet into a multicast path tracking response report defined in the mtrace v2.00 draft. And sending the multicast path tracking response packet to the first routing device;
所述第一路由设备根据所述组播路径追踪应答报文生成反馈报文并发送给所述用户设备;The first routing device generates a feedback message according to the multicast path tracking response message and sends the feedback message to the user equipment;
所述用户设备接收到所述反馈报文,按照mtrace v2.00草案定义对所述反馈报文进行解析显示。The user equipment receives the feedback message, and parses and displays the feedback message according to the definition of the mtrace v2.00 draft.
优选地,所述用户组播路径追踪请求报文为扩展型IGMPv3组成员关系报告报文,包括报文类型(Message type)、组记录的个数(Number of Group Records)和组记录(Group Record);所述Group Record包括记录类型(Extend Record type)、组地址(Multicast Address)和源地址(Source Address);所述Source Address包括源地址[1](Source Address[1])和源地址[2](Source Address[2]);Preferably, the user multicast path tracking request message is an extended IGMPv3 group membership report message, including a message type, a number of group records, and a group record. The Group Record includes an Extend Record type, a Multicast Address, and a Source Address; the Source Address includes a source address [1] (Source Address [1]) and a source address [ 2] (Source Address [2]);
所述Message type用于标识所述用户组播路径追踪请求报文的类型;The message type is used to identify the type of the user multicast path tracking request message;
所述Number of Group Records用于填写用户设备接收到组播路径追踪请求中组播路径追踪任务的个数;The Number of Group Records is used to fill in the number of multicast path tracking tasks received by the user equipment in the multicast path tracking request;
所述Extend Record type用于标识所述用户设备接收到组播路径追踪请求中组播路径追踪任务的类型;The Extend Record type is used to identify the type of the multicast path tracking task in the multicast path tracking request received by the user equipment;
所述Multicast Address用于填写用户设备接收到组播路径追踪请求中组播追踪任务的组地址;The Multicast Address is used to fill in a group address of the multicast tracking task in the multicast path tracking request received by the user equipment;
所述Source Address[1]用于填写所述用户设备接收到组播路径追踪任务的组播源地址;The Source Address [1] is used to fill in a multicast source address that the user equipment receives the multicast path tracking task;
所述Source Address[2]用于填写所述用户设备接收到组播路径追踪任务的目的地址。The Source Address [2] is used to fill in the destination address of the multicast path tracking task received by the user equipment.
优选地,所述第一路由设备根据所述用户组播路径追踪请求报文向组播分发树的上游路由设备发送mtrace v2.00草案定义的组播路径追踪请求报文包括:Preferably, the first routing device sends the multicast path tracking request message defined by the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, including:
当第一路由设备不为组播分发树下游的末跳路由设备时,所述第一路由设备根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪查询报文;When the first routing device is not the last hop routing device downstream of the multicast distribution tree, the first routing device generates a multicast path tracking query defined by the mtrace v2.00 draft according to the user multicast path tracking request message. Text
所述第一路由设备将所述组播路径追踪查询报文发送给组播分发树下游的末跳路由设备; Sending, by the first routing device, the multicast path tracking query message to a trailing hop routing device downstream of the multicast distribution tree;
所述组播分发树下游的末跳路由设备将收到的所述组播路径追踪查询报文转换为mtrace v2.00草案定义的组播路径追踪请求报文后向组播分发树上游路由设备发送。The last hop routing device downstream of the multicast distribution tree converts the received multicast path tracking query message into a multicast path tracking request message defined in the mtrace v2.00 draft, and then sends the multicast routing tree upstream routing device to the multicast distribution tree. send.
优选地,所述第一路由设备根据所述用户组播路径追踪请求报文向组播分发树的上游路由设备发送mtrace v2.00草案定义的组播路径追踪请求报文包括:Preferably, the first routing device sends the multicast path tracking request message defined by the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, including:
当所述第一路由设备为所述组播分发树下游的末跳路由设备时,所述第一路由设备根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪请求报文;When the first routing device is a trailing hop routing device downstream of the multicast distribution tree, the first routing device generates a multicast path defined by the mtrace v2.00 draft according to the user multicast path tracking request message. Tracking request messages;
所述第一路由设备将所述组播路径追踪请求报文向组播分发树的上游路由设备发送。The first routing device sends the multicast path tracking request message to an upstream routing device of the multicast distribution tree.
优选地,所述第一路由设备根据所述组播路径追踪应答报文生成反馈报文并发送给所述用户设备包括:Preferably, the first routing device generates a feedback message according to the multicast path tracking response message and sends the feedback message to the user equipment, including:
所述第一路由设备判断是否在预置时间内接收到所述mtrace v2.00草案定义的组播路径追踪应答报文;The first routing device determines whether the multicast path tracking response message defined by the mtrace v2.00 draft is received within a preset time;
若是,则所述第一路由设备将所述mtrace v2.00草案定义的组播路径追踪应答报文发送给所述用户设备;If yes, the first routing device sends the multicast path tracking response message defined by the mtrace v2.00 draft to the user equipment;
若否,则所述第一路由设备按照mtrace v2.00草案定义生成一个组播路径状态为路由不可达的应答报文,发送给用户设备,并且丢弃之后收到的所述mtrace v2.00草案定义的组播路径追踪应答报文。If not, the first routing device generates a response packet with the multicast path status as the route unreachable according to the mtrace v2.00 draft definition, sends the response packet to the user equipment, and discards the received mtrace v2.00 draft. Defined multicast path tracking response message.
此外,为了实现上述目的,本发明还提供一种用户设备进行组播路径追踪的系统,包括用户设备、第一路由设备和组播分发树上游的首跳路由设备,其中,In addition, in order to achieve the above object, the present invention further provides a system for performing multicast path tracking by a user equipment, including a user equipment, a first routing device, and a first hop routing device upstream of a multicast distribution tree, where
所述用户设备,设置为接收到组播路径追踪请求时,生成用户组播路径追踪请求报文,并发送给与用户设备相连的第一路由设备;The user equipment is configured to: when receiving the multicast path tracking request, generate a user multicast path tracking request message, and send the message to the first routing device connected to the user equipment;
所述第一路由设备,设置为根据所述用户组播路径追踪请求报文向组播分发树的上游路由设备发送mtrace v2.00草案定义的组播路径追踪请求报文,直到发送至组播分发树上游的首跳路由设备;The first routing device is configured to send a multicast path tracking request message defined in the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, until the multicast routing request packet is sent to the multicast The first hop routing device upstream of the distribution tree;
所述组播分发树上游的首跳路由设备,设置为收到所述组播路径追踪请求报文后,将所述请求报文转换为mtrace v2.00草案定义的组播路径追踪应答报文,将所述组播路径追踪应答报文发送给第一路由设备; The first hop routing device upstream of the multicast distribution tree is configured to convert the request packet into a multicast path tracking response message defined by the mtrace v2.00 draft after receiving the multicast path tracking request packet. Sending the multicast path tracking response message to the first routing device;
所述第一路由设备,还设置为根据所述组播路径追踪应答报文生成反馈报文并发送给所述用户设备;The first routing device is further configured to generate a feedback message according to the multicast path tracking response message and send the feedback message to the user equipment;
所述用户设备,还设置为接收到所述反馈报文时,按照mtrace v2.00草案定义对所述反馈报文进行解析显示。The user equipment is further configured to parse and display the feedback message according to the definition of mtrace v2.00 when receiving the feedback message.
优选地,所述用户组播路径追踪请求报文为扩展型IGMPv3组成员关系报告报文,包括报文类型(Message type)、组记录的个数(Number of Group Records)和组记录(Group Record);所述Group Record包括记录类型(Extend Record type)、组地址(Multicast Address)和源地址(Source Address);所述Source Address包括源地址[1](Source Address[1])和源地址[2](Source Address[2]);Preferably, the user multicast path tracking request message is an extended IGMPv3 group membership report message, including a message type, a number of group records, and a group record. The Group Record includes an Extend Record type, a Multicast Address, and a Source Address; the Source Address includes a source address [1] (Source Address [1]) and a source address [ 2] (Source Address [2]);
所述Message type用于标识所述用户组播路径追踪请求报文的类型;The message type is used to identify the type of the user multicast path tracking request message;
所述Number of Group Records用于填写用户设备接收到组播路径追踪请求中组播路径追踪任务的个数;The Number of Group Records is used to fill in the number of multicast path tracking tasks received by the user equipment in the multicast path tracking request;
所述Extend Record type用于标识所述用户设备接收到组播路径追踪请求中组播路径追踪任务的类型;The Extend Record type is used to identify the type of the multicast path tracking task in the multicast path tracking request received by the user equipment;
所述Multicast Address用于填写用户设备接收到组播路径追踪请求中组播追踪任务的组地址;The Multicast Address is used to fill in a group address of the multicast tracking task in the multicast path tracking request received by the user equipment;
所述Source Address[1]用于填写所述用户设备接收到组播路径追踪任务的组播源地址;The Source Address [1] is used to fill in a multicast source address that the user equipment receives the multicast path tracking task;
所述Source Address[2]用于填写所述用户设备接收到组播路径追踪任务的目的地址。The Source Address [2] is used to fill in the destination address of the multicast path tracking task received by the user equipment.
优选地,当第一路由设备不为组播分发树下游的末跳路由设备时,所述第一路由设备设置为,根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪查询报文;将所述组播路径追踪查询报文发送给组播分发树下游的末跳路由设备;以供所述组播分发树下游的末跳路由设备将收到的所述组播路径追踪查询报文转换为mtrace v2.00草案定义的组播路径追踪请求报文后向组播分发树上游路由设备发送。Preferably, when the first routing device is not the last hop routing device downstream of the multicast distribution tree, the first routing device is configured to generate the mtrace v2.00 draft definition according to the user multicast path tracking request message. The multicast path tracking query message is sent to the last hop routing device downstream of the multicast distribution tree; and the last hop routing device downstream of the multicast distribution tree will receive the received message. The multicast path tracking query packet is translated into the multicast path tracking request packet defined in the mtrace v2.00 draft and then sent to the upstream routing device of the multicast distribution tree.
优选地,当所述第一路由设备为所述组播分发树下游的末跳路由设备时,所述第一路由设备设置为,根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义 的组播路径追踪请求报文;将所述组播路径追踪请求报文向组播分发树的上游路由设备发送。Preferably, when the first routing device is a trailing hop routing device downstream of the multicast distribution tree, the first routing device is configured to generate mtrace v2.00 according to the user multicast path tracking request message. Draft definition The multicast path tracking request message is sent to the upstream routing device of the multicast distribution tree.
优选地,所述第一路由设备还设置为判断是否在预置时间内接收到所述mtrace v2.00草案定义的组播路径追踪应答报文;若是,则将所述mtrace v2.00草案定义的组播路径追踪应答报文发送给所述用户设备;若否,则按照mtrace v2.00草案定义生成一个组播路径状态为路由不可达的应答报文,发送给用户设备,并且丢弃之后收到的所述mtrace v2.00草案定义的组播路径追踪应答报文。Preferably, the first routing device is further configured to determine whether the multicast path tracking response message defined by the mtrace v2.00 draft is received within a preset time; if yes, the mtrace v2.00 draft is defined The multicast path tracking response message is sent to the user equipment; if not, a response message with a multicast path state being unreachable is generated according to the mtrace v2.00 draft definition, and is sent to the user equipment, and is discarded. The multicast path tracking response message defined by the draft mtrace v2.00.
采用本发明提供的用户设备进行组播路径追踪的方法和系统,能够使得用户设备可以直接进行组播路径追踪,并支持多种类型的组播路径追踪,同时支持用户设备一次发起多个组播路径追踪任务。The method and system for performing multicast path tracking by using the user equipment provided by the present invention enable the user equipment to directly perform multicast path tracking and support multiple types of multicast path tracking, and simultaneously support user equipment to initiate multiple multicasts at a time. Path tracking task.
附图说明DRAWINGS
图1为本发明用户设备进行组播路径追踪的方法一实施例中应用场景系统构架图;1 is a structural diagram of an application scenario system in an embodiment of a method for performing multicast path tracking by a user equipment according to the present invention;
图2为本发明用户设备进行组播路径追踪的方法一实施例的流程示意图;2 is a schematic flowchart of a method for performing multicast path tracking by a user equipment according to the present invention;
图3为图2中发送组播路径追踪请求报文至首跳路由设备一实施例的流程示意图;3 is a schematic flowchart of an embodiment of sending a multicast path tracking request packet to a first hop routing device in FIG. 2;
图4为图2中发送组播路径追踪请求报文至首跳路由设备另一实施例的流程示意图;4 is a schematic flowchart of another embodiment of the device for sending a multicast path tracking request packet to the first hop routing device in FIG. 2;
图5为图2中第一路由设备对反馈报文的处理流程示意图;5 is a schematic flowchart of processing a feedback packet by the first routing device in FIG. 2;
图6为本发明用户设备进行组播路径追踪的方法一实施例中用户组播路径追踪请求报文示例图;FIG. 6 is a schematic diagram of a user multicast path tracking request message in an embodiment of a method for performing multicast path tracking by a user equipment according to the present invention; FIG.
图7为图6中Group Record子格式示例图;7 is a diagram showing an example of a Group Record sub-format in FIG. 6;
图8为本发明用户设备进行组播路径追踪的方法一实施例中IGMPv3组成员关系报告报文格式示例图;8 is a diagram showing an example of a format of an IGMPv3 group membership report message in a method for performing multicast path tracking by a user equipment according to the present invention;
图9为图8中Group Record子格式示例图;9 is a diagram showing an example of a Group Record sub-format in FIG. 8;
图10为mtrace v2.00草案定义的组播路径追踪应答报文头部的格式示例图; 10 is a diagram showing an example of a format of a header of a multicast path tracking response message defined in the draft mtrace v2.00;
图11为mtrace v2.00草案定义的组播路径追踪应答报文应中答数据的子格式示例图。Figure 11 is a diagram showing an example of a sub-format of the data in the multicast path tracking response message defined in the draft mtrace v2.00.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种用户设备进行组播路径追踪的方法,参照图1,为本发明一应用场景系统构架图,在该场景中,用户设备PC1和用户设备PC2属于同一个组播组,同一组播组中均设有一组播源PC3;用户设备PC1和用户设备PC2均可发起用户组播路径追踪请求。The present invention provides a method for a user equipment to perform multicast path tracking. Referring to FIG. 1 , it is a system architecture diagram of an application scenario according to the present invention. In this scenario, user equipment PC1 and user equipment PC2 belong to the same multicast group, and the same group. A multicast source PC3 is provided in the broadcast group; both the user equipment PC1 and the user equipment PC2 can initiate a user multicast path tracking request.
参照图2,图2是本发明提供的用户设备进行组播路径追踪的方法第一实施例的流程图,在第一实施例中,该方法包括:Referring to FIG. 2, FIG. 2 is a flowchart of a first embodiment of a method for performing multicast path tracking by a user equipment according to the present invention. In the first embodiment, the method includes:
步骤S10,用户设备接收到组播路径追踪请求时,生成用户组播路径追踪请求报文,并发送给与用户设备相连的第一路由设备;Step S10: When receiving the multicast path tracking request, the user equipment generates a user multicast path tracking request message, and sends the message to the first routing device connected to the user equipment.
本实施例中,用户可在用户设备PC1指定的操作界面上输入组播路径追踪请求,此时用户设备PC1将生成用户组播路径追踪请求报文,该用户组播路径追踪请求报文是一种扩展的IGMPv3组成员关系报告报文,如图6所示,在兼容RFC3376IGMPv3协议的前提下,对IGMPv3组成员关系报告报文格式进行了如下修改和扩展,使得扩展后的IGMPv3组成员关系报告报文可以携带进行组播路径追踪需要的参数。其中,IGMPv3组成员关系报告报文如图8所示,在该IGMPv3组成员关系报告报文中包含的字段:In this embodiment, the user can input a multicast path tracking request on the operation interface specified by the user equipment PC1. At this time, the user equipment PC1 generates a user multicast path tracking request message, and the user multicast path tracking request message is one. The extended IGMPv3 group membership report message, as shown in Figure 6, is modified and extended in the format of the IGMPv3 group membership report packet to the extended IGMPv3 group membership report. The packet can carry parameters required for multicast path tracking. The IGMPv3 group membership report message is as shown in Figure 8. The fields included in the IGMPv3 group membership report message are:
Type字段,该字段占一个字节,Type=0x22用于表明该报文是IGMPv3组成员关系报告报文;Type field, the field occupies one byte, and Type=0x22 is used to indicate that the packet is an IGMPv3 group membership report message.
Reserved字段为保留字段,该字段占一个字节,缺省为0;The Reserved field is a reserved field, which occupies one byte and defaults to 0.
Checksum字段为校验字段,该字段占两个字节;The Checksum field is a check field, which occupies two bytes.
Number of Group Records(M)字段用于表明该报文共有多少个Group Record;The Number of Group Records (M) field is used to indicate how many Group Recordes the message has;
Group Record字段用于填写与组成员关系相关的信息。 The Group Record field is used to fill in information related to group membership.
对上述IGMPv3组成员关系报告报文进行如下修改得到用户组播路径追踪请求报文:Perform the following modification on the IGMPv3 group membership report packet to obtain the user multicast path tracking request packet:
对比参照图6和图8,图7和图9;6 and 8, and FIG. 7 and FIG. 9;
(1)把IGMPv3组成员关系报告报文的Reserved字段修改为报文类型(Message type),分为两种类型:(1) Modify the Reserved field of the IGMPv3 membership report packet to the message type, which is divided into two types:
类型0表示该报文是IGMPv3组成员关系报告报文,将该报文按照RFC3376IGMPv3协议流程处理。The type 0 indicates that the packet is an IGMPv3 group membership report packet, and the packet is processed according to the RFC3376IGMPv3 protocol.
类型1表示该报文是用户组播路径追踪请求报文,即表示该报文用来发起组播路径追踪。Type 1 indicates that the packet is a user multicast path tracking request packet, that is, the packet is used to initiate multicast path tracking.
(2)用户组播路径追踪请求报文中的Number of Group Records字段填写组播路径追踪请求任务的个数,一个用户组播路径追踪请求报文可以携带多个组播路径追踪请求任务。(2) The Number of Group Records field in the user multicast path tracking request message fills in the number of multicast path tracking request tasks, and one user multicast path tracking request message can carry multiple multicast path tracking request tasks.
(3)对Group Record中Record type进行了扩展,当报文类型为IGMPv3组成员关系报告报文时,Extend Record Type按RFC3376原有定义解析。当报文类型为用户组播路径追踪请求报文时,定义了三种类型对应三种不同的组播路径追踪任务:(3) The Record type is extended in the Group Record. When the message type is the IGMPv3 group membership report message, the Extend Record Type is parsed according to the original definition of RFC3376. When the packet type is a user multicast path tracking request packet, three types of multicast path tracking tasks are defined for the three types:
类型1为指定源地址追踪,扩展的Group Record子格式中Source Address[1]填写组播源地址,其他地址缺省,表示追踪从组播源地址到本地用户设备之间的组播路径;Type 1 is the specified source address tracking. In the extended Group Record sub-format, Source Address[1] fills in the multicast source address, and other addresses default to the multicast path between the multicast source address and the local user equipment.
类型2为指定源地址和目的地址追踪,扩展的Group Record子格式中Source Address[1]填写组播源地址,Source Address[2]填写目的地址,其他地址缺省,表示追踪从组播源地址到目的地址的组播路径;Type 2 is the specified source address and destination address tracking. In the extended Group Record sub-format, Source Address[1] fills in the multicast source address, Source Address[2] fills in the destination address, and other addresses default, indicating tracking from the multicast source address. The multicast path to the destination address;
类型3为指定源地址目的地址和组地址追踪,扩展的Group Record子格式中Multicast Address填写组地址,Source Address[1]填写组播源地址,Source Address[2]填写目的地址,表示追踪对指定组地址,从组播源地址到目的地址的组播路径。Type 3 is the destination address and group address tracking of the specified source address. In the extended Group Record sub-format, Multicast Address fills in the group address, Source Address[1] fills in the multicast source address, and Source Address[2] fills in the destination address, indicating that the tracking is specified. Group address, the multicast path from the multicast source address to the destination address.
(4)扩展的Group Record子格式中Number of Source字段缺省为0。(4) The Number of Source field in the extended Group Record subformat defaults to 0.
(5)扩展的Group Record子格式中Aux Data Len字段缺省为0,Auxiliary data字段缺省。 (5) The Aux Data Len field in the extended Group Record sub-format defaults to 0, and the Auxiliary data field defaults.
RFC3376中规定对于一台用户设备发出的IGMPv3组成员关系报告报文,共享网络上的其他用户设备不会处理这个报文,因此本报文的扩展不会影响共享网络上其他用户设备加入或离开组播组。In RFC 3376, the IGMPv3 group membership report message sent by a user equipment is not processed by other user equipments on the shared network. Therefore, the extension of this packet does not affect the joining or leaving of other user equipments on the shared network. Multicast group.
当用户设备位于的共享网络中有多个路由设备时,则由共享网络指定路由设备(designated router)为第一路由设备并处理用户组播路径追踪请求报文,共享网络中的其它路由设备丢弃所述用户组播路径追踪请求报文。When there are multiple routing devices in the shared network where the user equipment is located, the designated router is designated as the first routing device by the shared network, and the user multicast path tracking request packet is processed, and other routing devices in the shared network are discarded. The user multicast path tracking request message.
步骤S20,第一路由设备根据用户组播路径追踪请求报文向组播分发树的上游路由设备发送mtrace v2.00草案定义的组播路径追踪请求报文,直到发送至组播分发树上游的首跳路由设备;In the step S20, the first routing device sends the multicast path tracking request packet defined in the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, and sends the multicast path tracking request packet to the upstream of the multicast distribution tree. First hop routing device;
组播分发树上包括与组播源连接的组播分发树上游的首跳路由设备、与目的地址用户设备相连的组播分发树下游的末跳路由设备以及设于组播分发树上游的首跳路由设备到组播分发树下游的末跳路由设备之间的若干中间路由设备。其中上述第一路由设备可以作为组播分发树下游的末跳路由设备也可以不作为组播分发树下游的末跳路由设备,即为组播分发树之外的其他路由设备。The multicast distribution tree includes a first hop routing device upstream of the multicast distribution tree connected to the multicast source, a last hop routing device downstream of the multicast distribution tree connected to the destination address user equipment, and a first upstream of the multicast distribution tree. A number of intermediate routing devices between the routing device and the last hop routing device downstream of the multicast distribution tree. The first routing device may be the last hop routing device downstream of the multicast distribution tree or the last hop routing device downstream of the multicast distribution tree, that is, other routing devices other than the multicast distribution tree.
具体地,本实施例中,第一路由设备接收到用户设备PC1发送的用户组播路径追踪报文时,判断用户组播路径追踪请求报文中Extend Record type的类型:当Extend Record type为类型2时,表明用户设备PC1发起的是组播源到目的地址为用户设备PC2的组播路径追踪。第一路由设备发送组播路径追踪查询报文,组播分发树下游的末跳路由设备根据接收到的组播路径追踪查询报文向组播分发树上游的首跳路由设备发送组播路径追踪请求报文;当Extend Record type为类型1时,表明用户设备PC1发起的是组播源到自己的组播路径追踪,第一路由设备向组播分发树上游的首跳路由设备发送组播路径追踪请求报文。Specifically, in this embodiment, when the first routing device receives the user multicast path tracking message sent by the user equipment PC1, it determines the type of the Extend Record type in the user multicast path tracking request message: when the Extend Record type is a type At 2 o'clock, it indicates that the user equipment PC1 initiates multicast path tracking from the multicast source to the destination address of the user equipment PC2. The first routing device sends a multicast path tracking query message, and the last hop routing device downstream of the multicast distribution tree sends the multicast path tracking to the first hop routing device upstream of the multicast distribution tree according to the received multicast path tracking query message. The request packet is sent to the first-hop routing device upstream of the multicast distribution tree. The first routing device sends the multicast path to the first-hop routing device upstream of the multicast distribution tree. Track request messages.
步骤S30,组播分发树上游的首跳路由设备收到组播路径追踪请求报文后,将组播路径追踪请求报文转换为mtrace v2.00草案定义的组播路径追踪应答报文,将组播路径追踪应答报文发送给第一路由设备。Step S30: After receiving the multicast path tracking request packet, the first hop routing device upstream of the multicast distribution tree converts the multicast path tracking request packet into a multicast path tracking response message defined in the mtrace v2.00 draft. The multicast path tracking response packet is sent to the first routing device.
参照图10和图11,所述组播路径追踪应答报文包括报文头部和应答数据部分,其中应答数据部分携带有如下与组播路径的相关信息:Referring to FIG. 10 and FIG. 11, the multicast path tracking response message includes a message header and a response data part, wherein the response data part carries the following information related to the multicast path:
Incoming Interface Address字段用于表明该报文是从该路由设备的哪一个接口进入的; The Incoming Interface Address field is used to indicate which interface of the routing device the packet enters;
Outgoing Interface Address字段用于表明该报文是从该路由设备的哪一个接口离开的;The Outgoing Interface Address field is used to indicate which interface of the routing device the message leaves;
Previous-Hop Router Address字段用于表明该报文来自的上一跳路由设备的地址;The Previous-Hop Router Address field is used to indicate the address of the last hop routing device from which the packet came from;
本实施例中,组播分发树上游的首跳路由设备收到来自组播分发树下游路由设备发送的组播路径追踪请求报文后,将自己的组播路径地址和路径状态填入组播路径追踪请求报文,同时根据所述组播路径追踪请求报文中每一个组播分发树的路由设备填入的组播路径地址和路径状态等信息,按照mtrace v2.00草案的定义,生成一个组播路径追踪应答报文,并将所述组播路径追踪应答报文发送给第一路由设备。In this embodiment, the first hop routing device upstream of the multicast distribution tree receives the multicast path tracking request packet sent by the downstream routing device of the multicast distribution tree, and then fills in the multicast multicast address and path status into the multicast. The path tracking request message is generated according to the definition of the mtrace v2.00 draft according to the multicast path address and path status information of the routing device of each multicast distribution tree in the multicast path tracking request message. A multicast path tracking response packet is sent to the first routing device.
步骤S40,第一路由设备根据所述组播路径追踪应答报文生成反馈报文并发送给所述用户设备;Step S40: The first routing device generates a feedback message according to the multicast path tracking response message and sends the feedback message to the user equipment.
本实施例中,因为网络设备是一个动态的设备的集合,可能在某一时间段,由于某种原因造成了特定网络线路的不可达;或者是在某一时间段,某路由设备接收到超过处理能力的大量网络数据,造成了数据处理的超时;因此第一路由设备可能收到所述首跳路由设备发送的所述组播路径追踪应答报文,也可能收不到所述首跳路由设备发送的所述组播路径追踪应答报文,也可能未在预置的时间内收到所述组播路径追踪应答报文;具体的,当路由设备在预置时间内收到所述组播路径追踪应答报文时,将所述组播路径追踪应答报文发送给用户设备PC1;当第一路由设备未在预置时间内收到所述组播路径追踪应答报文时,第一路由设备会生成一个组播路径状态为路由不可达的应答报文,并将该应答报文发送给用户设备PC1。In this embodiment, because the network device is a set of dynamic devices, a certain network line may be unreachable for some reason, or a certain routing device receives more than a certain time period. A large amount of network data of the processing capability causes a timeout for data processing; therefore, the first routing device may receive the multicast path tracking response message sent by the first hop routing device, and may not receive the first hop route. The multicast path tracking response packet sent by the device may not receive the multicast path tracking response packet within a preset time; specifically, when the routing device receives the group within a preset time When the multicast path tracking response message is sent, the multicast path tracking response message is sent to the user equipment PC1; when the first routing device does not receive the multicast path tracking response message within the preset time, the first The routing device generates a response packet with the multicast path status being unreachable and sends the response packet to the user equipment PC1.
步骤S50,用户设备接收到所述反馈报文,按照mtrace v2.00草案定义对所述反馈报文进行解析显示。Step S50: The user equipment receives the feedback message, and parses and displays the feedback message according to the definition of the mtrace v2.00 draft.
本实施例中,当所述反馈报文为所述mtrace v2.00草案定义的组播路径追踪应答报文时,所述用户设备PC1按照mtrace v2.00草案定义对所述组播路径追踪应答报文进行解析,并将追踪得到的组播路径显示在用户设备PC1的显示装置上;当所述反馈报文为所述mtrace v2.00草案定义的组播路径状态为路由不可达的应答报文时,所述用户设备PC1按照mtrace v2.00草案定义对所述组播路径状态为路由不可达的应答报文进行解析,并将组播路径状态为路由不可达的结果显示在用户设备PC1的显示装置上。 In this embodiment, when the feedback message is a multicast path tracking response message defined by the mtrace v2.00 draft, the user equipment PC1 tracks the multicast path tracking response according to the mtrace v2.00 draft definition. The packet is parsed, and the tracked multicast path is displayed on the display device of the user equipment PC1; when the feedback message is the mtrace v2.00 draft, the multicast path status is the route unreachable response report. In the text, the user equipment PC1 parses the response packet whose routing path status is unreachable according to the mtrace v2.00 draft definition, and displays the multicast path status as the route unreachable result on the user equipment PC1. On the display device.
本发明提供的用户设备进行组播路径追踪的方法,能够使得用户设备可以直接进行组播路径追踪,并支持多种类型的组播路径追踪,同时支持用户设备一次发起多个组播路径追踪任务。The method for performing multicast path tracking by the user equipment provided by the present invention enables the user equipment to directly perform multicast path tracking and support multiple types of multicast path tracking, and simultaneously supports the user equipment to initiate multiple multicast path tracking tasks at a time. .
进一步地,上述第一路由设备可以为组播分发树下游的末跳路由设备,也可以不为组播分发树下游的末跳路由设备。Further, the first routing device may be a trailing hop routing device downstream of the multicast distribution tree, or may not be a last hop routing device downstream of the multicast distribution tree.
参照图3,当第一路由设备不为组播分发树下游的末跳路由设备时,上述步骤S20包括:Referring to FIG. 3, when the first routing device is not the last hop routing device downstream of the multicast distribution tree, the foregoing step S20 includes:
步骤S201,第一路由设备根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪查询报文;Step S201: The first routing device generates a multicast path tracking query message defined by the mtrace v2.00 draft according to the user multicast path tracking request message.
步骤S202,所述第一路由设备将所述组播路径追踪查询报文发送给组播分发树下游的末跳路由设备;Step S202: The first routing device sends the multicast path tracking query message to the last hop routing device downstream of the multicast distribution tree.
步骤S203,所述组播分发树下游的末跳路由设备将收到的所述组播路径追踪查询报文转换为mtrace v2.00草案定义的组播路径追踪请求报文后向组播分发树上游路由设备发送。Step S203, the last hop routing device downstream of the multicast distribution tree converts the received multicast path tracking query message into a multicast path tracking request message defined in the mtrace v2.00 draft, and then sends the multicast path tracking request message to the multicast distribution tree. The upstream routing device sends.
本实施例中,第一路由设备判断收到的用户组播路径追踪请求报文中ExtendRecord Type的类型,当其为类型2时;第一路由设备根据收到的用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪查询报文并发送给组播分发树下游的末跳路由设备;组播分发树下游的末跳路由设备根据收到的所述组播路径追踪查询报文生成mtrace v2.00草案定义的组播路径追踪请求报文;将组播路径追踪请求报文向组播分发树的上游路由设备发送,组播分发树的每一跳组播路由设备会将组播路径地址和路径状态填入组播路径追踪请求报文,直到发送至组播分发树上游的首跳路由设备。In this embodiment, the first routing device determines the type of the ExtendRecord Type in the received user multicast path tracking request message, and when the type is 2, the first routing device tracks the request packet according to the received user multicast path. Generating a multicast path tracking query message defined in the mtrace v2.00 draft and sending it to the last hop routing device downstream of the multicast distribution tree; the last hop routing device downstream of the multicast distribution tree tracks the query according to the received multicast path The packet generates a multicast path tracking request packet defined in the mtrace v2.00 draft. The multicast path tracking request packet is sent to the upstream routing device of the multicast distribution tree. The multicast path address and the path state are filled in the multicast path tracking request packet until the first hop routing device upstream of the multicast distribution tree is sent.
参照图4,当第一路由设备为组播分发树下游的末跳路由设备时,上述步骤S20包括:Referring to FIG. 4, when the first routing device is a trailing hop routing device downstream of the multicast distribution tree, the foregoing step S20 includes:
步骤S204,所述第一路由设备根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪请求报文;Step S204, the first routing device generates a multicast path tracking request message defined by the mtrace v2.00 draft according to the user multicast path tracking request message.
步骤S205,所述第一路由设备将所述组播路径追踪请求报文向组播分发树的上游路由设备发送。 Step S205: The first routing device sends the multicast path tracking request packet to an upstream routing device of the multicast distribution tree.
本实施例中,第一路由设备判断收到的用户组播路径追踪请求报文中Extend Record Type的类型,其为类型1时,第一路由设备生成mtrace v2.00草案定义的组播路径追踪请求报文;将组播路径请求报文向组播分发树的上游路由设备发送,组播分发树的每一跳组播路由设备会将组播路径地址和路径状态填入组播路径追踪请求报文,直到发送至组播分发树上游的首跳路由设备。In this embodiment, the first routing device determines the type of the Extend Record Type in the received user multicast path tracking request message. When the type is 1, the first routing device generates the multicast path tracking defined by the mtrace v2.00 draft. Request packet; send the multicast path request packet to the upstream routing device of the multicast distribution tree. Each hop multicast routing device in the multicast distribution tree fills the multicast path address and path status into the multicast path tracking request. The packet is sent to the first hop routing device upstream of the multicast distribution tree.
进一步地,参照图5,基于上述实施例,本实施例中,上述步骤S40包括:Further, referring to FIG. 5, based on the foregoing embodiment, in the embodiment, the foregoing step S40 includes:
步骤S401,所述第一路由设备判断是否在预置时间内接收到所述mtrace v2.00草案定义的组播路径追踪应答报文;若是,则执行步骤S402,否则执行步骤S403。Step S401, the first routing device determines whether the multicast path tracking response message defined by the mtrace v2.00 draft is received within a preset time; if yes, step S402 is performed; otherwise, step S403 is performed.
步骤S402,所述第一路由设备将所述mtrace v2.00草案定义的组播路径追踪应答报文发送给所述用户设备;Step S402, the first routing device sends the multicast path tracking response message defined by the mtrace v2.00 draft to the user equipment;
步骤S403,所述第一路由设备按照mtrace v2.00草案定义生成一个组播路径状态为路由不可达的应答报文,发送给用户设备,并且丢弃之后收到的所述mtrace v2.00草案定义的组播路径追踪应答报文。Step S403, the first routing device generates a response message with the multicast path status as the route unreachable according to the mtrace v2.00 draft definition, sends the response message to the user equipment, and discards the mtrace v2.00 draft definition received after the discarding. Multicast path tracking response message.
本实施例中,上述预置时间的长度可根据实际需要进行设置。例如该预置时间可以为3秒。通过设置预置时间判断第一路由设备是否接收到mtrace v2.00草案定义的组播路径追踪应答报文,从而防止组播分发树上游的首跳路由设备未作出应答时,系统一直处于等待接收的状态,因此保证了系统的稳定性。In this embodiment, the length of the preset time may be set according to actual needs. For example, the preset time can be 3 seconds. By setting the preset time to determine whether the first routing device receives the multicast path tracking response packet defined in the mtrace v2.00 draft, so that the first hop routing device upstream of the multicast distribution tree does not respond, the system is always waiting to receive. The state of the system thus guarantees the stability of the system.
可以理解的是,当用户设备PC1和用户设备PC2不属于同一组播组且用户设备PC1发起用户设备PC2所在组播组的组播源到用户设备PC2的组播路径追踪时,本发明用户设备进行组播路径追踪的方法的实现可以参照上述实施例,在此不再赘述。It can be understood that when the user equipment PC1 and the user equipment PC2 do not belong to the same multicast group and the user equipment PC1 initiates multicast path tracking of the multicast source of the multicast group where the user equipment PC2 is located to the user equipment PC2, the user equipment of the present invention For the implementation of the method for performing the multicast path tracking, reference may be made to the foregoing embodiment, and details are not described herein again.
本发明还提供一种用户设备进行组播路径追踪的系统,参照图1,本发明一应用场景示意图,在该场景中,用户设备PC1和用户设备PC2属于同一个组播组,同一组播组中均设有一组播源PC3;用户设备PC1和用户设备PC2均可发起用户组播路径追踪请求。本发明提供的用户设备进行组播路径追踪的系统一实施例中包括用户设备、第一路由设备和组播分发树上游的首跳路由设备,其中,The present invention also provides a system for performing multicast path tracking by a user equipment. Referring to FIG. 1 , a schematic diagram of an application scenario of the present invention, in which the user equipment PC1 and the user equipment PC2 belong to the same multicast group and the same multicast group. A multicast source PC3 is provided in both of them; both the user equipment PC1 and the user equipment PC2 can initiate a user multicast path tracking request. An embodiment of the system for performing multicast path tracking by a user equipment provided by the present invention includes a user equipment, a first routing device, and a first hop routing device upstream of the multicast distribution tree, where
所述用户设备,设置为接收到组播路径追踪请求时,生成用户组播路径追踪请求报文,并发送给与用户设备相连的第一路由设备;The user equipment is configured to: when receiving the multicast path tracking request, generate a user multicast path tracking request message, and send the message to the first routing device connected to the user equipment;
本实施例中,用户可在用户设备PC1指定的操作界面上输入组播路径追踪请求,此时用户设备PC1将生成用户组播路径追踪请求报文,该用户组播路径追踪请求报文 是一种扩展的IGMPv3组成员关系报告报文,如图6所示,在兼容RFC3376IGMPv3协议的前提下,对IGMPv3组成员关系报告报文格式进行了如下修改和扩展,使得扩展后的IGMPv3组成员关系报告报文可以携带进行组播路径追踪需要的参数。其中,IGMPv3组成员关系报告报文如图8所示,在该IGMPv3组成员关系报告报文中包含的字段:In this embodiment, the user can input a multicast path tracking request on the operation interface specified by the user equipment PC1, and the user equipment PC1 will generate a user multicast path tracking request message, and the user multicast path tracking request message. It is an extended IGMPv3 group membership report message. As shown in Figure 6, the IGMPv3 group membership report packet format is modified and extended as follows, and the extended IGMPv3 group member is modified. Relationship report messages can carry the parameters needed for multicast path tracking. The IGMPv3 group membership report message is as shown in Figure 8. The fields included in the IGMPv3 group membership report message are:
Type字段,该字段占一个字节,Type=0x22用于表明该报文是IGMPv3组成员关系报告报文;Type field, the field occupies one byte, and Type=0x22 is used to indicate that the packet is an IGMPv3 group membership report message.
Reserved字段为保留字段,该字段占一个字节,缺省为0;The Reserved field is a reserved field, which occupies one byte and defaults to 0.
Checksum字段为校验字段,该字段占两个字节;The Checksum field is a check field, which occupies two bytes.
Number of Group Records(M)字段用于表明该报文共有多少个Group Record;The Number of Group Records (M) field is used to indicate how many Group Recordes the message has;
Group Record字段用于填写组成员关系相关的信息。The Group Record field is used to fill in information related to group membership.
对上述IGMPv3组成员关系报告报文进行如下修改得到用户组播路径追踪请求报文:Perform the following modification on the IGMPv3 group membership report packet to obtain the user multicast path tracking request packet:
对比参照图6和图8,图7和图9:Compare with reference to Figures 6 and 8, Figure 7 and Figure 9:
(1)把IGMPv3组成员关系报告报文的Reserved字段修改为报文类型(Messagetype),分为两种类型:(1) Change the Reserved field of the IGMPv3 membership report message to the message type (Messagetype), which is divided into two types:
类型0表示该报文是IGMPv3组成员关系报告报文,将该报文按照RFC3376IGMPv3协议流程处理。The type 0 indicates that the packet is an IGMPv3 group membership report packet, and the packet is processed according to the RFC3376IGMPv3 protocol.
类型1表示该报文是用户组播路径追踪请求报文,即表示该报文用来发起组播路径追踪。Type 1 indicates that the packet is a user multicast path tracking request packet, that is, the packet is used to initiate multicast path tracking.
(2)用户组播路径追踪请求报文中的Number of Group Records字段填写组播路径追踪请求任务的个数,一个用户组播路径追踪请求报文可以携带多个组播路径追踪请求任务。(2) The Number of Group Records field in the user multicast path tracking request message fills in the number of multicast path tracking request tasks, and one user multicast path tracking request message can carry multiple multicast path tracking request tasks.
(3)对Group Record中Record type进行了扩展,当报文类型为IGMPv3组成员关系报告报文时,Extend Record Type按RFC3376原有定义解析。当报文类型为用户组播路径追踪请求报文时,定义了三种类型对应三种不同的组播路径追踪任务: (3) The Record type is extended in the Group Record. When the message type is the IGMPv3 group membership report message, the Extend Record Type is parsed according to the original definition of RFC3376. When the packet type is a user multicast path tracking request packet, three types of multicast path tracking tasks are defined for the three types:
类型1为指定源地址追踪,扩展的Group Record子格式中Source Address[1]填写组播源地址,其他地址缺省,表示追踪从组播源地址到本地用户设备之间的组播路径;Type 1 is the specified source address tracking. In the extended Group Record sub-format, Source Address[1] fills in the multicast source address, and other addresses default to the multicast path between the multicast source address and the local user equipment.
类型2为指定源地址和目的地址追踪,扩展的Group Record子格式中Source Address[1]填写组播源地址,Source Address[2]填写目的地址,其他地址缺省,表示追踪从组播源地址到目的地址的组播路径;Type 2 is the specified source address and destination address tracking. In the extended Group Record sub-format, Source Address[1] fills in the multicast source address, Source Address[2] fills in the destination address, and other addresses default, indicating tracking from the multicast source address. The multicast path to the destination address;
类型3为指定源地址目的地址和组地址追踪,扩展的Group Record子格式中Multicast Address填写组地址,Source Address[1]填写组播源地址,Source Address[2]填写目的地址,表示追踪对指定组地址,从组播源地址到目的地址的组播路径。Type 3 is the destination address and group address tracking of the specified source address. In the extended Group Record sub-format, Multicast Address fills in the group address, Source Address[1] fills in the multicast source address, and Source Address[2] fills in the destination address, indicating that the tracking is specified. Group address, the multicast path from the multicast source address to the destination address.
(4)扩展的Group Record子格式中Number of Source字段缺省为0。(4) The Number of Source field in the extended Group Record subformat defaults to 0.
(5)扩展的Group Record子格式中Aux Data Len字段缺省为0,Auxiliary data字段缺省。(5) The Aux Data Len field in the extended Group Record sub-format defaults to 0, and the Auxiliary data field defaults.
RFC3376中规定对于一台用户设备发出的IGMPv3组成员关系报告报文,共享网络上的其他用户设备不会处理这个报文,因此本报文的扩展不会影响共享网络上其他用户设备加入或离开组播组。In RFC 3376, the IGMPv3 group membership report message sent by a user equipment is not processed by other user equipments on the shared network. Therefore, the extension of this packet does not affect the joining or leaving of other user equipments on the shared network. Multicast group.
当用户设备位于的共享网络中有多个路由设备时,则由共享网络指定路由设备(designated router)为第一路由设备并处理用户组播路径追踪请求报文,共享网络中的其它路由设备丢弃所述用户组播路径追踪请求报文。When there are multiple routing devices in the shared network where the user equipment is located, the designated router is designated as the first routing device by the shared network, and the user multicast path tracking request packet is processed, and other routing devices in the shared network are discarded. The user multicast path tracking request message.
所述第一路由设备,设置为根据所述用户组播路径追踪请求报文向组播分发树的上游路由设备发送mtrace v2.00草案定义的组播路径追踪请求报文,直到发送至组播分发树上游的首跳路由设备;The first routing device is configured to send a multicast path tracking request message defined in the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, until the multicast routing request packet is sent to the multicast The first hop routing device upstream of the distribution tree;
具体地,本实施例中,第一路由设备接收到用户设备PC1发送的用户组播路径追踪报文时,将判断用户组播路径追踪请求报文中Extend Record type的类型:当Extend Record type为类型2时,表明用户设备PC1发起的是组播源到目的地址为用户设备PC2的组播路径追踪。第一路由设备向所述末跳路由设备发送组播路径追踪查询报文,所述末跳路由设备根据接收到的组播路径追踪查询报文向组播分发树上游的首跳路由设备发送组播路径追踪请求报文;当Extend Record type为类型1时,表明用户设备PC1发起的是组播源到自己的组播路径追踪,此时则认定第一路由设备是组播分发树下游的末跳路由设备。第一路由设备向所述首跳路由设备发送组播路径追踪请求报文。 Specifically, in this embodiment, when the first routing device receives the user multicast path tracking message sent by the user equipment PC1, it determines the type of the Extend Record type in the user multicast path tracking request message: when the Extend Record type is Type 2 indicates that the user equipment PC1 initiates multicast path tracking from the multicast source to the destination address of the user equipment PC2. The first routing device sends a multicast path tracking query message to the end hop routing device, and the hop routing device sends a group to the first hop routing device upstream of the multicast distribution tree according to the received multicast path tracking query message. When the Extend Record type is type 1, it indicates that the user equipment PC1 initiates the multicast source to its own multicast path tracking. At this time, it is determined that the first routing device is the end of the multicast distribution tree. Jump routing device. The first routing device sends a multicast path tracking request message to the first hop routing device.
所述组播分发树上游的首跳路由设备,设置为收到所述组播路径追踪请求报文后,将所述请求报文转换为mtrace v2.00草案定义的组播路径追踪应答报文,将所述组播路径追踪应答报文发送给第一路由设备;The first hop routing device upstream of the multicast distribution tree is configured to convert the request packet into a multicast path tracking response message defined by the mtrace v2.00 draft after receiving the multicast path tracking request packet. Sending the multicast path tracking response message to the first routing device;
参照图10和图11,所述组播路径追踪应答报文包括报文头部和应答数据部分,其中应答数据部分携带有如下与组播路径的相关信息:Referring to FIG. 10 and FIG. 11, the multicast path tracking response message includes a message header and a response data part, wherein the response data part carries the following information related to the multicast path:
Incoming Interface Address字段用于表明该报文是从该路由设备的哪一个接口进入的;The Incoming Interface Address field is used to indicate which interface of the routing device the packet enters;
Outgoing Interface Address字段用于表明该报文是从该路由设备的哪一个接口离开的;The Outgoing Interface Address field is used to indicate which interface of the routing device the message leaves;
Previous-Hop Router Address字段用于表明该报文来自的上一跳路由设备的地址;The Previous-Hop Router Address field is used to indicate the address of the last hop routing device from which the packet came from;
本实施例中,所述首跳路由设备收到来自组播分发树下游路由设备发送的组播路径追踪请求报文后,将自己的组播路径地址和路径状态填入组播路径追踪请求报文,同时根据所述组播路径追踪请求报文中每一个组播分发树的路由设备填入的组播路径地址和路径状态等信息,按照mtrace v2.00草案的定义,生成一个组播路径追踪应答报文,并将所述组播路径追踪应答报文发送给第一路由设备。In this embodiment, after receiving the multicast path tracking request packet sent by the downstream routing device of the multicast distribution tree, the first hop routing device fills in the multicast path tracking request report with its own multicast path address and path status. And generating a multicast path according to the definition of the mtrace v2.00 draft according to the multicast path address and path status information of the routing device of each multicast distribution tree in the multicast path tracking request message. Tracking the response packet, and sending the multicast path tracking response packet to the first routing device.
所述第一路由设备,还设置为根据所述组播路径追踪应答报文生成反馈报文并发送给所述用户设备。The first routing device is further configured to generate a feedback message according to the multicast path tracking response message and send the feedback message to the user equipment.
本实施例中,因为网络设备是一个动态的设备的集合,可能在某一时间段,由于某种原因造成了特定网络线路的不可达;或者是在某一时间段,某路由设备接收到超过处理能力的大量网络数据,造成了数据处理的超时;因此第一路由设备可能收到首跳路由设备发送的所述组播路径追踪应答报文,也可能收不到首跳路由设备发送的所述组播路径追踪应答报文,也可能未在预置的时间内收到所述组播路径追踪应答报文;具体的,当路由设备在预置时间内收到所述组播路径追踪应答报文时,将所述组播路径追踪应答报文发送给用户设备PC1;当第一路由设备未在预置时间内收到所述组播路径追踪应答报文时,第一路由设备会生成一个组播路径状态为路由不可达的应答报文,并将该应答报文发送给用户设备PC1。In this embodiment, because the network device is a set of dynamic devices, a certain network line may be unreachable for some reason, or a certain routing device receives more than a certain time period. A large amount of network data of the processing capability causes a timeout for data processing; therefore, the first routing device may receive the multicast path tracking response message sent by the first hop routing device, and may not receive the first hop routing device. The multicast path tracking response packet may not be received in the preset time; specifically, when the routing device receives the multicast path tracking response within a preset time The packet is sent to the user equipment PC1 when the packet is received; when the first routing device does not receive the multicast path tracking response packet within the preset time, the first routing device generates A multicast path is a response packet with an unreachable route, and the response packet is sent to the user equipment PC1.
所述用户设备,还设置为接收到所述反馈报文时,按照mtrace v2.00草案定义对所述反馈报文进行解析显示。 The user equipment is further configured to parse and display the feedback message according to the definition of mtrace v2.00 when receiving the feedback message.
本实施例中,当所述反馈报文为所述mtrace v2.00草案定义的组播路径追踪应答报文时,所述用户设备PC1按照mtrace v2.00草案定义对所述组播路径追踪应答报文进行解析,并将追踪得到的组播路径显示在用户设备PC1的显示装置上;当所述反馈报文为所述mtrace v2.00草案定义的组播路径状态为路由不可达的应答报文时,所述用户设备PC1按照mtrace v2.00草案定义对所述组播路径状态为路由不可达的应答报文进行解析,并将组播路径状态为路由不可达的结果显示在用户设备PC1的显示装置上。In this embodiment, when the feedback message is a multicast path tracking response message defined by the mtrace v2.00 draft, the user equipment PC1 tracks the multicast path tracking response according to the mtrace v2.00 draft definition. The packet is parsed, and the tracked multicast path is displayed on the display device of the user equipment PC1; when the feedback message is the mtrace v2.00 draft, the multicast path status is the route unreachable response report. In the text, the user equipment PC1 parses the response packet whose routing path status is unreachable according to the mtrace v2.00 draft definition, and displays the multicast path status as the route unreachable result on the user equipment PC1. On the display device.
进一步地,上述第一路由设备可以为组播分发树下游的末跳路由设备,也可以不为组播分发树下游的末跳路由设备,即为组播分发树之外的其他路由设备。Further, the first routing device may be a trailing hop routing device downstream of the multicast distribution tree, or may be a trailing hop routing device downstream of the multicast distribution tree, that is, other routing devices other than the multicast distribution tree.
当第一路由设备不为组播分发树下游的末跳路由设备时,所述第一路由设备设置为,根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪查询报文;将所述组播路径追踪查询报文发送给组播分发树下游的末跳路由设备;以供所述组播分发树下游的末跳路由设备将收到的所述组播路径追踪查询报文转换为mtrace v2.00草案定义的组播路径追踪请求报文后向组播分发树上游路由设备发送。When the first routing device is not the last hop routing device downstream of the multicast distribution tree, the first routing device is configured to generate a multicast path defined by the mtrace v2.00 draft according to the user multicast path tracking request message. Tracking the query message; sending the multicast path tracking query message to the last hop routing device downstream of the multicast distribution tree; for the last hop routing device downstream of the multicast distribution tree to receive the multicast The path tracking query packet is converted to the multicast path tracking request packet defined in the mtrace v2.00 draft and sent to the upstream routing device of the multicast distribution tree.
当所述第一路由设备为所述组播分发树下游的末跳路由设备时,所述第一路由设备设置为,根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪请求报文;将所述组播路径追踪请求报文向组播分发树的上游路由设备发送。When the first routing device is a trailing hop routing device downstream of the multicast distribution tree, the first routing device is configured to generate a mtrace v2.00 draft definition according to the user multicast path tracking request message. The multicast path tracking request packet is sent to the upstream routing device of the multicast distribution tree.
进一步地,基于上述实施例,本实施例中,上述第一路由设备还设置为判断是否在预置时间内接收到所述mtrace v2.00草案定义的组播路径追踪应答报文;若是,则将所述mtrace v2.00草案定义的组播路径追踪应答报文发送给所述用户设备;若否,则按照mtrace v2.00草案定义生成一个组播路径状态为路由不可达的应答报文,发送给用户设备,并且丢弃之后收到的所述mtrace v2.00草案定义的组播路径追踪应答报文。Further, based on the foregoing embodiment, in the embodiment, the first routing device is further configured to determine whether the multicast path tracking response message defined by the mtrace v2.00 draft is received within a preset time; if yes, Transmitting the multicast path tracking response message defined by the mtrace v2.00 draft to the user equipment; if not, generating a response message with the multicast path status being unreachable according to the mtrace v2.00 draft definition. The multicast path tracking response message defined by the mtrace v2.00 draft received after being sent to the user equipment.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种用户设备进行组播路径追踪的方法及系统具有以下有益效果:能够使得用户设备可以直接进行组播路径追踪,并支持多种类型的组播路径追踪,同时支持用户设备一次发起多个组播路径追踪任务。 As described above, the method and system for performing multicast path tracking by a user equipment provided by the embodiments of the present invention have the following beneficial effects: enabling the user equipment to directly perform multicast path tracking and support multiple types of multicast path tracking. At the same time, the user equipment is supported to initiate multiple multicast path tracking tasks at one time.

Claims (10)

  1. 一种用户设备进行组播路径追踪的方法,包括以下步骤:A method for user equipment to perform multicast path tracking includes the following steps:
    用户设备接收到组播路径追踪请求时,生成用户组播路径追踪请求报文,并发送给与用户设备相连的第一路由设备;When receiving the multicast path tracking request, the user equipment generates a user multicast path tracking request message, and sends the message to the first routing device connected to the user equipment;
    所述第一路由设备根据所述用户组播路径追踪请求报文向组播分发树的上游路由设备发送mtrace v2.00草案定义的组播路径追踪请求报文,直到发送至组播分发树上游的首跳路由设备;The first routing device sends a multicast path tracking request message defined in the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, and sends the multicast path tracking request packet to the upstream of the multicast distribution tree. First hop routing device;
    所述首跳路由设备收到所述组播路径追踪请求报文后,将所述请求报文转换为mtrace v2.00草案定义的组播路径追踪应答报文,将所述组播路径追踪应答报文发送给第一路由设备;After receiving the multicast path tracking request packet, the first hop routing device converts the request packet into a multicast path tracking response message defined in the mtrace v2.00 draft, and the multicast path tracking response is The packet is sent to the first routing device.
    所述第一路由设备根据所述组播路径追踪应答报文生成反馈报文并发送给所述用户设备;The first routing device generates a feedback message according to the multicast path tracking response message and sends the feedback message to the user equipment;
    所述用户设备接收到所述反馈报文时,按照mtrace v2.00草案定义对所述反馈报文进行解析显示。When the user equipment receives the feedback message, the user equipment parses and displays the feedback message according to the definition of the mtrace v2.00 draft.
  2. 如权利要求1所述用户设备进行组播路径追踪的方法,其中,所述用户组播路径追踪请求报文为扩展型IGMPv3组成员关系报告报文,包括报文类型Messagetype、组记录的个数Number of Group Records和组记录Group Record;所述Group Record包括记录类型Extend Record type、组地址Multicast Address和源地址Source Address;所述Source Address包括源地址[1]Source Address[1]和源地址[2]Source Address[2];The method of claim 1, wherein the user multicast path tracking request message is an extended IGMPv3 group membership report message, including the message type Messagetype and the number of group records. Number of Group Records and Group Record; the Group Record includes a record type Extend Record type, a group address Multicast Address, and a source address Source Address; the Source Address includes a source address [1] Source Address [1] and a source address [ 2]Source Address[2];
    所述Message type用于标识所述用户组播路径追踪请求报文的类型;The message type is used to identify the type of the user multicast path tracking request message;
    所述Number of Group Records用于填写用户设备接收到组播路径追踪请求中组播路径追踪任务的个数;The Number of Group Records is used to fill in the number of multicast path tracking tasks received by the user equipment in the multicast path tracking request;
    所述Extend Record type用于标识所述用户设备接收到组播路径追踪请求中组播路径追踪任务的类型;The Extend Record type is used to identify the type of the multicast path tracking task in the multicast path tracking request received by the user equipment;
    所述Multicast Address用于填写用户设备接收到组播路径追踪请求中组播追踪任务的组地址;The Multicast Address is used to fill in a group address of the multicast tracking task in the multicast path tracking request received by the user equipment;
    所述Source Address[1]用于填写所述用户设备接收到组播路径追踪任务的组播源地址; The Source Address [1] is used to fill in a multicast source address that the user equipment receives the multicast path tracking task;
    所述Source Address[2]用于填写所述用户设备接收到组播路径追踪任务的目的地址。The Source Address [2] is used to fill in the destination address of the multicast path tracking task received by the user equipment.
  3. 如权利要求1所述用户设备进行组播路径追踪的方法,其中,所述第一路由设备根据所述用户组播路径追踪请求报文向组播分发树的上游路由设备发送mtrace v2.00草案定义的组播路径追踪请求报文包括:The method of claim 1, wherein the first routing device sends a mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message. The defined multicast path tracking request message includes:
    当第一路由设备不为组播分发树下游的末跳路由设备时,所述第一路由设备根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪查询报文;When the first routing device is not the last hop routing device downstream of the multicast distribution tree, the first routing device generates a multicast path tracking query defined by the mtrace v2.00 draft according to the user multicast path tracking request message. Text
    所述第一路由设备将所述组播路径追踪查询报文发送给组播分发树下游的末跳路由设备;Sending, by the first routing device, the multicast path tracking query message to a trailing hop routing device downstream of the multicast distribution tree;
    所述组播分发树下游的末跳路由设备将收到的所述组播路径追踪查询报文转换为mtrace v2.00草案定义的组播路径追踪请求报文后向组播分发树上游路由设备发送。The last hop routing device downstream of the multicast distribution tree converts the received multicast path tracking query message into a multicast path tracking request message defined in the mtrace v2.00 draft, and then sends the multicast routing tree upstream routing device to the multicast distribution tree. send.
  4. 如权利要求1所述用户设备进行组播路径追踪的方法,其中,所述第一路由设备根据所述用户组播路径追踪请求报文向组播分发树的上游路由设备发送mtrace v2.00草案定义的组播路径追踪请求报文包括:The method of claim 1, wherein the first routing device sends a mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message. The defined multicast path tracking request message includes:
    当所述第一路由设备为所述组播分发树下游的末跳路由设备时,所述第一路由设备根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪请求报文;When the first routing device is a trailing hop routing device downstream of the multicast distribution tree, the first routing device generates a multicast path defined by the mtrace v2.00 draft according to the user multicast path tracking request message. Tracking request messages;
    所述第一路由设备将所述组播路径追踪请求报文向组播分发树的上游路由设备发送。The first routing device sends the multicast path tracking request message to an upstream routing device of the multicast distribution tree.
  5. 如权利要求1至4中任一项所述用户设备进行组播路径追踪的方法,其中,所述第一路由设备根据所述组播路径追踪应答报文生成反馈报文并发送给所述用户设备包括:The method for performing multicast path tracking by the user equipment according to any one of claims 1 to 4, wherein the first routing device generates a feedback message according to the multicast path tracking response message and sends the feedback message to the user. Equipment includes:
    所述第一路由设备判断是否在预置时间内接收到所述mtrace v2.00草案定义的组播路径追踪应答报文;The first routing device determines whether the multicast path tracking response message defined by the mtrace v2.00 draft is received within a preset time;
    若是,则所述第一路由设备将所述mtrace v2.00草案定义的组播路径追踪应答报文发送给所述用户设备; If yes, the first routing device sends the multicast path tracking response message defined by the mtrace v2.00 draft to the user equipment;
    若否,则所述第一路由设备按照mtrace v2.00草案定义生成一个组播路径状态为路由不可达的应答报文,发送给用户设备,并且丢弃之后收到的所述mtrace v2.00草案定义的组播路径追踪应答报文。If not, the first routing device generates a response packet with the multicast path status as the route unreachable according to the mtrace v2.00 draft definition, sends the response packet to the user equipment, and discards the received mtrace v2.00 draft. Defined multicast path tracking response message.
  6. 一种用户设备进行组播路径追踪的系统,包括用户设备、第一路由设备和首跳路由设备,其中,A system for performing multicast path tracking by a user equipment, including a user equipment, a first routing device, and a first hop routing device, where
    所述用户设备,设置为接收到组播路径追踪请求时,生成用户组播路径追踪请求报文,并发送给与用户设备相连的第一路由设备;The user equipment is configured to: when receiving the multicast path tracking request, generate a user multicast path tracking request message, and send the message to the first routing device connected to the user equipment;
    所述第一路由设备,设置为根据所述用户组播路径追踪请求报文向组播分发树的上游路由设备发送mtrace v2.00草案定义的组播路径追踪请求报文,直到发送至组播分发树上游的首跳路由设备;The first routing device is configured to send a multicast path tracking request message defined in the mtrace v2.00 draft to the upstream routing device of the multicast distribution tree according to the user multicast path tracking request message, until the multicast routing request packet is sent to the multicast The first hop routing device upstream of the distribution tree;
    所述首跳路由设备,设置为收到所述组播路径追踪请求报文后,将所述请求报文转换为mtrace v2.00草案定义的组播路径追踪应答报文,将所述组播路径追踪应答报文发送给第一路由设备;The first hop routing device is configured to: after receiving the multicast path tracking request message, convert the request packet into a multicast path tracking response message defined by the mtrace v2.00 draft, and the multicast The path tracking response packet is sent to the first routing device.
    所述第一路由设备,还设置为根据所述组播路径追踪应答报文生成反馈报文并发送给所述用户设备;The first routing device is further configured to generate a feedback message according to the multicast path tracking response message and send the feedback message to the user equipment;
    所述用户设备,还设置为接收到所述反馈报文时,按照mtrace v2.00草案定义对所述反馈报文进行解析显示。The user equipment is further configured to parse and display the feedback message according to the definition of mtrace v2.00 when receiving the feedback message.
  7. 如权利要求6所述用户设备进行组播路径追踪的系统,其中,所述用户组播路径追踪请求报文为扩展型IGMPv3组成员关系报告报文,包括报文类型Messagetype、组记录的个数Number of Group Records和组记录Group Record;所述Group Record包括记录类型Extend Record type、组地址Multicast Address和源地址Source Address;所述Source Address包括源地址[1] Source Address[1]和源地址[2] Source Address[2];The system for performing multicast path tracking by the user equipment of claim 6, wherein the user multicast path tracking request message is an extended IGMPv3 group membership report message, including the message type Messagetype and the number of group records. Number of Group Records and Group Record; the Group Record includes a record type Extend Record type, a group address Multicast Address, and a source address Source Address; the Source Address includes a source address [1] Source Address [1] and a source address [ 2] Source Address[2];
    所述Message type用于标识所述用户组播路径追踪请求报文的类型;The message type is used to identify the type of the user multicast path tracking request message;
    所述Number of Group Records用于填写用户设备接收到组播路径追踪请求中组播路径追踪任务的个数;The Number of Group Records is used to fill in the number of multicast path tracking tasks received by the user equipment in the multicast path tracking request;
    所述Extend Record type用于标识所述用户设备接收到组播路径追踪请求的类型;The Extend Record type is used to identify a type of the multicast path tracking request received by the user equipment;
    所述Multicast Address用于填写用户设备接收到组播路径追踪请求中组播追踪任务的组地址; The Multicast Address is used to fill in a group address of the multicast tracking task in the multicast path tracking request received by the user equipment;
    所述Source Address[1]用于填写所述用户设备接收到组播路径追踪任务的组播源地址;The Source Address [1] is used to fill in a multicast source address that the user equipment receives the multicast path tracking task;
    所述Source Address[2]用于填写所述用户设备接收到组播路径追踪任务的目的地址。The Source Address [2] is used to fill in the destination address of the multicast path tracking task received by the user equipment.
  8. 如权利要求6所述用户设备进行组播路径追踪的系统,其中,当第一路由设备不为组播分发树下游的末跳路由设备时,所述第一路由设备设置为,根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪查询报文;将所述组播路径追踪查询报文发送给组播分发树下游的末跳路由设备; 以供所述组播分发树下游的末跳路由设备将收到的所述组播路径追踪查询报文转换为mtrace v2.00草案定义的组播路径追踪请求报文后向组播分发树上游路由设备发送。The system for performing a multicast path tracking by the user equipment according to claim 6, wherein when the first routing device is not the last hop routing device downstream of the multicast distribution tree, the first routing device is set according to the user The multicast path tracking request message is generated by the multicast path tracking query message defined in the mtrace v2.00 draft; the multicast path tracking query message is sent to the last hop routing device downstream of the multicast distribution tree; The hop routing device downstream of the multicast distribution tree converts the received multicast path tracking query message into a multicast path tracking request message defined in the mtrace v2.00 draft, and then sends the message to the upstream routing device of the multicast distribution tree.
  9. 如权利要求6所述用户设备进行组播路径追踪的系统,其中,a system for performing multicast path tracking by a user equipment according to claim 6, wherein
    当所述第一路由设备为所述组播分发树下游的末跳路由设备时,所述第一路由设备设置为,根据所述用户组播路径追踪请求报文生成mtrace v2.00草案定义的组播路径追踪请求报文;将所述组播路径追踪请求报文向组播分发树的上游路由设备发送。When the first routing device is a trailing hop routing device downstream of the multicast distribution tree, the first routing device is configured to generate a mtrace v2.00 draft definition according to the user multicast path tracking request message. The multicast path tracking request packet is sent to the upstream routing device of the multicast distribution tree.
  10. 如权利要求6至9中任一项所述用户设备进行组播路径追踪的系统,其中,所述第一路由设备还设置为判断是否在预置时间内接收到所述mtrace v2.00草案定义的组播路径追踪应答报文;若是,则将所述mtrace v2.00草案定义的组播路径追踪应答报文发送给所述用户设备;若否,则按照mtrace v2.00草案定义生成一个组播路径状态为路由不可达的应答报文,发送给用户设备,并且丢弃之后收到的所述mtrace v2.00草案定义的组播路径追踪应答报文。 The system for performing multicast path tracking by the user equipment according to any one of claims 6 to 9, wherein the first routing device is further configured to determine whether the mtrace v2.00 draft definition is received within a preset time. a multicast path tracking response message; if yes, sending the multicast path tracking response message defined by the mtrace v2.00 draft to the user equipment; if not, generating a group according to the mtrace v2.00 draft definition The multicast path tracking response message defined by the mtrace v2.00 draft received after the discarding of the ping packet is sent to the user equipment.
PCT/CN2015/071373 2014-10-22 2015-01-22 Method and system for tracing multicast path by user equipment WO2016061931A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410567922.0 2014-10-22
CN201410567922.0A CN105591943B (en) 2014-10-22 2014-10-22 The method and system of user equipment progress multicast path tracking

Publications (1)

Publication Number Publication Date
WO2016061931A1 true WO2016061931A1 (en) 2016-04-28

Family

ID=55760124

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/071373 WO2016061931A1 (en) 2014-10-22 2015-01-22 Method and system for tracing multicast path by user equipment

Country Status (2)

Country Link
CN (1) CN105591943B (en)
WO (1) WO2016061931A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566280A (en) * 2016-06-30 2018-01-09 上海诺基亚贝尔股份有限公司 Verify the method and router device in multicast packet path
CN113381912A (en) * 2021-06-11 2021-09-10 哈尔滨工业大学 Self-adaptive high-concurrency topology measurement system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10129127B2 (en) * 2017-02-08 2018-11-13 Nanning Fugui Precision Industrial Co., Ltd. Software defined network controller, service function chaining system and trace tracking method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159688A (en) * 2007-11-08 2008-04-09 华为技术有限公司 Multicast routing track method and router
CN101815028A (en) * 2009-02-19 2010-08-25 华为技术有限公司 Method and system for tracing multicast routing and routing equipment
CN101980473A (en) * 2010-10-09 2011-02-23 中兴通讯股份有限公司 Multicast path tracking method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7133371B2 (en) * 2000-12-01 2006-11-07 Motorola, Inc. Methods for achieving reliable joins in a multicast IP network
CN101296103A (en) * 2007-04-27 2008-10-29 华为技术有限公司 Method and system for requesting multicast information, method and system for controlling multicast service
CN101483582B (en) * 2008-01-09 2012-02-01 华为技术有限公司 Method, system and router for implementing second and third layer multicast trace route
CN101527642A (en) * 2008-03-07 2009-09-09 华为技术有限公司 Method and device for feeding back and processing multicast routing protocol join failure
CN101635724A (en) * 2009-06-30 2010-01-27 中兴通讯股份有限公司 Method and system for realizing multicast member authentication
US8339973B1 (en) * 2010-09-07 2012-12-25 Juniper Networks, Inc. Multicast traceroute over MPLS/BGP IP multicast VPN
CN102265554B (en) * 2011-06-20 2013-02-13 华为技术有限公司 Tracing method, device and system for second layer multicasting route

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159688A (en) * 2007-11-08 2008-04-09 华为技术有限公司 Multicast routing track method and router
CN101815028A (en) * 2009-02-19 2010-08-25 华为技术有限公司 Method and system for tracing multicast routing and routing equipment
CN101980473A (en) * 2010-10-09 2011-02-23 中兴通讯股份有限公司 Multicast path tracking method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566280A (en) * 2016-06-30 2018-01-09 上海诺基亚贝尔股份有限公司 Verify the method and router device in multicast packet path
US11139995B2 (en) 2016-06-30 2021-10-05 Alcatel Lucent Methods and router devices for verifying a multicast datapath
CN113381912A (en) * 2021-06-11 2021-09-10 哈尔滨工业大学 Self-adaptive high-concurrency topology measurement system
CN113381912B (en) * 2021-06-11 2022-06-10 哈尔滨工业大学 Self-adaptive high-concurrency topology measurement system

Also Published As

Publication number Publication date
CN105591943A (en) 2016-05-18
CN105591943B (en) 2019-12-03

Similar Documents

Publication Publication Date Title
US8130775B2 (en) Mechanism for protecting a pseudo-wire
US10027496B2 (en) Method for distributing identifiers of multicast sources
US9306758B2 (en) Dynamic adjustment of MLDP tunnel and PIM binding
US9608898B2 (en) Method and apparatus for performing multicast traces in MPLS networks
US20140241351A1 (en) Dynamic determination of the root node of an mldp tunnel
WO2008071111A1 (en) Method, system and router for forwarding multicast data
CN105099937B (en) A kind of determination method and apparatus of PMTU
JP2013529398A (en) Method, system, and device for pseudowire establishment
US8179795B2 (en) Communication terminal apparatus, distribution apparatus, error notification method, and error notification program
US9825770B2 (en) Method and apparatus for configuring multicast group
US10708196B2 (en) Modifications of headend forwarding rules to join wide area network branch hosts to multicast groups
WO2016061931A1 (en) Method and system for tracing multicast path by user equipment
JP2006074132A (en) Multicast communication method and gateway device
CN106357541B (en) Information transmission method and device
CN103401788B (en) A kind of SPT method for building up and equipment
CN104283796A (en) Multicast distribution tree establishment method and device
WO2020244372A1 (en) Method and apparatus for implementing multicasting
US10205652B2 (en) Path checking method, sink node device, and communications system
CN108111327B (en) Network operation management maintenance method and device
CN105591942B (en) Method and device for optimizing multicast protocol
US20150139226A1 (en) Multicast communication method, communication node device and program
Wijnands et al. RFC 8364: PIM Flooding Mechanism (PFM) and Source Discovery (SD)
JP2021114795A (en) Content distribution system, content distribution device, and method
CN103905320A (en) Method and device for processing multicast message
EP1993228B1 (en) Message sending method, message sending device and message transmission system

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: 15852648

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: 15852648

Country of ref document: EP

Kind code of ref document: A1