Summary of the invention
In view of this, the invention provides the live order method of a kind of video, make the network equipment can open or close multicast functionality as required, not only saved the resource of the network equipment, and improved network more flexible.
The present invention also provides a kind of video live program request equipment, makes the network equipment can open or close multicast functionality as required, has not only saved the resource of the network equipment, and has improved network more flexible.
In order to achieve the above object, the technical scheme of the present invention's proposition is:
The live order method of a kind of video, this method comprises:
Videoconference client VC sends the unitcast request message with the live telecast of multicast on demand video to video management server VM, comprises the encoder EC name of the video live telecast of wanting multicast on demand in the described unitcast request message, makes VM indicate described EC to send group broadcasting video frequency live telecast;
VC receives the back message using of the unitcast request multicast on demand video live telecast that is sent by VM, comprises the Internet Protocol IP address, source of the EC of the multicast group address of multicast on demand video live telecast and the live telecast of multicast on demand video in the described back message using;
VC sends periodic path query traceroute message to the EC of source IP address correspondence in the described back message using that receives, and makes the network equipment of receiving the traceroute message open multicast functionality;
After VC receives the back message using of the multicast group address that comprises the live telecast of multicast on demand video, send Internet Group Management Protocol IGMP and join request, request adds the multicast group of described multicast group address correspondence.
This method further comprises:
When VC stopped the live telecast of multicast on demand video, the feasible network equipment of traceroute message of not receiving was within a certain period of time closed multicast functionality.
Described traceroute message is the IP message, then, described VC sends periodic path query traceroute message to the EC of source IP address correspondence in the described back message using that receives, and makes the network equipment of receiving the traceroute message open multicast functionality and comprises:
VC sends that the rise time ttl field is 0, sign Identification field is 1 IP message, makes to receive that the network equipment of this IP message receiving the interfaces enabled IGMP characteristic of this IP message;
VC is receiving that ttl field is 0, when the Identification field is 1 IP message, is sending ttl field and be 1, the Identification field is 1 IP message, receives that the network equipment of this IP message is in the interfaces enabled PIM characteristic that sends and receive this message;
VC is after receiving the IP message that sent last time, and execution adds the step that 1 back sends with the ttl field of this IP message, no longer receives the IP message that sent last time until VC.
It is described when VC stops the live telecast of multicast on demand video, making the network equipment do not receive the traceroute message within a certain period of time close multicast functionality comprises: when VC stops the multicast on demand video when live, make and do not receive that within a certain period of time the Identification field is that the network equipment of 1 IP message is closed multicast functionality.
Described certain hour is 3 minutes min~5min.
The live program request equipment of a kind of video, this equipment comprises: transmitting element, receiving element and path inquiring unit, wherein,
Described transmitting element, be used for sending the unitcast request message with the live telecast of multicast on demand video to video management server VM, the encoder EC name that comprises the video live telecast of wanting multicast on demand in the described unitcast request message makes VM indicate described EC to send group broadcasting video frequency live telecast; Receive the back message using of the multicast group address that comprises the live telecast of multicast on demand video at receiving element after, send Internet Group Management Protocol IGMP and join request, request adds the multicast group of described multicast group address correspondence;
Described receiving element, be used for to receive the back message using of the unitcast request multicast on demand video live telecast that is sent by the transmitting element of VM, comprise the Internet Protocol IP address, source of the EC of the multicast group address of multicast on demand video live telecast and the live telecast of multicast on demand video in the described back message using;
Described path inquiring unit, the EC that is used for back message using source IP address correspondence that described receiving element is received sends periodic path query traceroute message, makes the network equipment of receiving the traceroute message open multicast functionality.
This equipment also comprises stop element, is used for when stopping the live telecast of multicast on demand video, and the feasible network equipment of traceroute message of not receiving is within a certain period of time closed multicast functionality.
Described traceroute message is the IP message, then, described VC sends periodic path query traceroute message to the EC of source IP address correspondence in the described back message using that receives, and makes the network equipment of receiving the traceroute message open multicast functionality and comprises:
VC sends that the rise time ttl field is 0, sign Identification field is 1 IP message, makes to receive that the network equipment of this IP message receiving the interfaces enabled IGMP characteristic of this IP message;
VC is receiving that ttl field is 0, when the Identification field is 1 IP message, is sending ttl field and be 1, the Identification field is 1 IP message, receives that the network equipment of this IP message is in the interfaces enabled PIM characteristic that sends and receive this message;
VC is after receiving the IP message that sent last time, and execution adds the step that 1 back sends with the ttl field of this IP message, no longer receives the IP message that sent last time until VC.
It is described when VC stops the live telecast of multicast on demand video, making the network equipment do not receive the traceroute message within a certain period of time close multicast functionality comprises: when VC stops the multicast on demand video when live, make and do not receive that within a certain period of time the Identification field is that the network equipment of 1 IP message is closed multicast functionality.
Described certain hour is 3 minutes min~5min.
In sum, the live order method of video of the present invention and equipment, be by behind the source IP address that receives the EC in the back message using that VM returns as VC, described EC is carried out path query, and then make the network equipment of query path process begin multicast functionality, also just need not the network equipments all in the network and all open multicast functionality, just can finish VC multicast on demand live telecast, thereby saved the resource of other network equipment in the network; Further, when VC stops on-demand multicasting live telecast, the network equipment also just can not be received the path query message that VC sends, and when not receiving this path query message within a certain period of time, automatically close multicast functionality, thereby the resource of having saved the network equipment more, and improved network more flexible.
Embodiment
In order to solve the technical problem that the present invention proposes, the specific implementation of scheme of the present invention comprises:
VC sends the unitcast request message with the live telecast of multicast on demand video to VM, comprises the EC name of the video live telecast of wanting multicast on demand in the described unitcast request message, makes VM indicate described EC to send group broadcasting video frequency live telecast; VC receives the back message using of the unitcast request multicast on demand video live telecast that is sent by VM, comprises the IP address of the EC of the multicast group address of multicast on demand video live telecast and the live telecast of multicast on demand video in the described back message using; VC sends periodic traceroute message to the EC of source IP address correspondence in the described back message using that receives, and makes the network equipment of receiving the traceroute message open multicast functionality; After VC receives the back message using of the multicast group address that comprises the live telecast of multicast on demand video, send IGMP and join request, request adds the multicast group of described multicast group address correspondence.
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
Fig. 2 is the workflow diagram of the live order method of video of the present invention.As shown in Figure 2, this flow process comprises:
Step 201:VC sends the unitcast request message with the live telecast of multicast on demand video to VM, comprises the encoder EC name of the video live telecast of wanting multicast on demand in the described unitcast request message.
VM is after the live request of the multicast on demand video that receives the VC transmission, can carry out alternately with VC and EC respectively, specifically can be respectively referring to step 202-204 and step 205-206, wherein, step 202-204 is the mutual of VM and VC, step 205-206 is the mutual of VM and EC, and they are orders in no particular order, are described respectively below.
The reciprocal process of VM and VC is specially:
Step 202:VM sends the back message using of unitcast request order video live telecast to VC, comprises the IP address of the EC of the multicast group address of multicast on demand video live telecast and the live telecast of multicast on demand video in the described back message using.
In this step, the multicast group address of described multicast on demand video live telecast also is the IP address, and its IP address is generally the address greater than 224.0.0.1, as 236.0.0.1 etc.
VM also is the back message using that VC receives the unitcast request multicast on demand video live telecast that is sent by VM to the back message using that VC sends the live telecast of unitcast request order video.
Step 203:VC sends periodic path query (traceroute) message to the EC EC of source IP address correspondence in the back message using that receives, and makes the network equipment of receiving the traceroute message open multicast functionality.
Need to prove, in this step, the EC of the source IP address correspondence of VC sends periodic traceroute message, also just can determine VC to the path of required process between the EC, need open multicast functionality at the network equipment of this path process for follow-up and get final product, also just save the resource that other network equipment unlatching multicast functionality occupies in the network.
It should be noted that also in this step, described traceroute message is the IP message, the EC of the source IP address correspondence of described VC sends periodic traceroute message, makes the network equipment of receiving the traceroute message open multicast functionality and comprises:
VC sends that rise time (TTL) field is 0, sign (Identification) field is 1 IP message, receives that the network equipment of this message is being received the interfaces enabled IGMP characteristic of this IP message; Simultaneously, VC receive this ttl field be 0, when the Identification field is 1 message, send ttl field and be 1, the Identification field is 1 IP message, the network equipment of receiving this IP message is the interfaces enabled PIM characteristic that sends and receive this message the interface of IGMP characteristic (enabled except); And the like, VC adds 1 back with the ttl field of this IP message and sends after receiving the IP message that sent last time, no longer receives the IP message that sent last time until VC.
Step 204:VC sends IGMP and joins request, and adds the multicast group of the multicast group address correspondence of receiving with request.
Further, when VC stops the live telecast of multicast on demand video, the network equipment will can not received the traceroute message, when not receiving the traceroute message within a certain period of time, make the network equipment close multicast functionality, also namely: when the network equipment does not receive that within a certain period of time the Identification field is 1 IP message, close multicast functionality.
Need to prove that described certain hour is that its value is set by the network manager by relevant to the accuracy of network control degree, generally can be taken as 3 minutes (min)~5min.
So far, namely finished the reciprocal process of VM and VC.Need to prove that comprised the mutual of VC and EC in this reciprocal process, present embodiment does not segment it yet.
The reciprocal process of VM and EC is specially:
Step 205:VM sends the indication message that indication EC sends video live telecast to EC, has comprised the multicast group address that sends group broadcasting video frequency live telecast in this indication message.
Step 206:EC sends group broadcasting video frequency live telecast after receiving the indication message.
So far, namely finished the reciprocal process of VM and EC.Need to prove that the reciprocal process of VM and EC is actually have been finished VM and indicate described EC to send the process of group broadcasting video frequency live telecast.
After having finished above-mentioned two kinds of reciprocal processes respectively, namely finished the whole workflow of the live order method of video of the present invention.
Based on said method, Fig. 3 has provided the structure of the live program request equipment of video of the present invention.As shown in Figure 3, this equipment comprises transmitting element 31, receiving element 32, path inquiring unit 33, wherein,
Described transmitting element 31 is used for sending the unitcast request message with the live telecast of multicast on demand video to VM, comprises the EC name of the video live telecast of wanting multicast on demand in the described unitcast request message, makes VM indicate described EC to send group broadcasting video frequency live telecast; Receive the back message using of the multicast group address that comprises the live telecast of multicast on demand video at receiving element 32 after, sending IGMP joins request, the multicast group that request adds described multicast group address correspondence is used for sending the unitcast request message with order video live telecast to VM, has comprised the EC name of the video live telecast of wanting program request in the described unitcast request message.
Described receiving element 32 be used for to receive the back message using of the unitcast request multicast on demand video live telecast that is sent by the transmitting element 31 of VM, comprises the IP address of the EC of the multicast group address of multicast on demand video live telecast and the live telecast of multicast on demand video in the described back message using.
Wherein, the multicast group address of described multicast on demand video live telecast also is the IP address
Described path inquiring unit 33, the EC that is used for back message using source IP address correspondence that described receiving element 32 is received sends periodic path query traceroute message, makes the network equipment of receiving the traceroute message open multicast functionality.
Wherein, described traceroute message is the IP message, and then, described VC sends periodic traceroute message to the EC of source IP address correspondence in the described back message using that receives, and makes the network equipment of receiving the traceroute message open multicast functionality and comprises:
VC sends that ttl field is 0, the Identification field is 1 IP message, makes to receive that the network equipment of this IP message receiving the interfaces enabled IGMP characteristic of this IP message;
VC is receiving that ttl field is 0, when the Identification field is 1 IP message, is sending ttl field and be 1, the Identification field is 1 IP message, receives that the network equipment of this IP message is in the interfaces enabled PIM characteristic that sends and receive this message;
VC is after receiving the IP message that sent last time, and execution adds the step that 1 back sends with the ttl field of this IP message, no longer receives the IP message that sent last time until VC.
Further, this equipment also comprises stop element 34, is used for when stopping the live telecast of multicast on demand video, and the feasible network equipment of traceroute message of not receiving is within a certain period of time closed multicast functionality.
Wherein, it is described when VC stops the live telecast of multicast on demand video, making the network equipment do not receive the traceroute message within a certain period of time close multicast functionality comprises: when VC stops the multicast on demand video when live, make and do not receive that within a certain period of time the Identification field is that the network equipment of 1 IP message is closed multicast functionality.
Need to prove that described certain hour is that its value is set by the network manager by relevant to the accuracy of network control degree, generally can be taken as 3min~5min.
So far, namely obtained the live program request equipment of video of the present invention.The concrete workflow of the live program request equipment of the described video of Fig. 3 can repeat no more here referring to Fig. 2.
In a word, the live order method of video of the present invention and equipment, behind the source IP address that receives the EC in the back message using that VM returns as VC, described EC is carried out path query, and then make the network equipment of query path process begin multicast functionality, also just need not the network equipments all in the network and all open multicast functionality, just can finish VC multicast on demand live telecast, thereby saved the resource of other network equipment in the network; Further, when VC stops on-demand multicasting live telecast, the network equipment also just can not be received the path query message that VC sends, and when not receiving this path query message within a certain period of time, automatically close multicast functionality, thereby the resource of having saved the network equipment more, and improved network more flexible.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.