Summary of the invention
In view of this, the invention provides a kind of control method of Media Stream forwarding and the control device that a kind of Media Stream is transmitted.
The control method that a kind of Media Stream provided by the invention is transmitted, this medium transmission control method is applied to video management server and comprises:
The Media Stream request that a0, receiving terminal apparatus send at arbitrary road Media Stream;
A1, according to be the pre-configured direct-connected preference strategy of this terminal equipment, judge whether the current quantity of the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger step a2 otherwise triggering step a3;
A2, control this road Media Stream source end equipment and this terminal equipment between direct-connectedly be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1;
A3, control this road Media Stream source end equipment and this terminal equipment between be connected by the exchange of media server.
The control method that another kind of Media Stream provided by the invention is transmitted, this medium transmission control method is applied to video management server and comprises:
The Media Stream request that a0, receiving terminal apparatus send at arbitrary road Media Stream;
B0, foundation are the pre-configured self adaptation forwarding strategy of this terminal equipment, judge whether this road Media Stream meets the self adaptation condition by the exchange of media server forwards, if then trigger step a3 otherwise triggering step a1;
A1, judge whether the current quantity of the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger step a2 otherwise trigger step a3;
A2, control this road Media Stream source end equipment and this terminal equipment between direct-connectedly be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1;
A3, control this road Media Stream source end equipment and this terminal equipment between be connected by the exchange of media server.
Preferably, described self adaptation condition comprises: this road Media Stream need be transmitted by NAT device.
The control method that another Media Stream provided by the invention is transmitted, this medium transmission control method is applied to video management server and comprises:
The Media Stream request that a0, receiving terminal apparatus send at arbitrary road Media Stream;
B0, foundation are the pre-configured self adaptation forwarding strategy of this terminal equipment, judge whether this road Media Stream meets the self adaptation condition by the exchange of media server forwards, if then trigger step a3 otherwise triggering step c0;
C0, judge that whether this terminal equipment is positioned at the same network segment and is positioned at different segment with the exchange of media server with the source end equipment of this road Media Stream, if then trigger step a1 otherwise trigger step a3;
A1, judge whether the current quantity of the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger step a2 otherwise trigger step a3;
A2, control this road Media Stream source end equipment and this terminal equipment between direct-connectedly be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1;
A3, control this road Media Stream source end equipment and this terminal equipment between be connected by the exchange of media server.
Preferably, described self adaptation condition comprises: this road Media Stream need be transmitted by NAT device.
The control device that a kind of Media Stream provided by the invention is transmitted, this medium forwarding controller is carried on video management server and comprises:
The request receiver module, the Media Stream request that receiving terminal apparatus sends at arbitrary road Media Stream;
Preferential judging module, foundation is the pre-configured direct-connected preference strategy of this terminal equipment, whether the current quantity of judging the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger direct-connected control module otherwise trigger the cascade control module;
Direct-connectedly between the direct-connected control module, the source end equipment of controlling this road Media Stream and this terminal equipment be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1;
Be connected by the exchange of media server between the cascade control module, the source end equipment of controlling this road Media Stream and this terminal equipment.
The control device that another kind of Media Stream provided by the invention is transmitted, this medium forwarding controller is carried on video management server and comprises:
The request receiver module, the Media Stream request that receiving terminal apparatus sends at arbitrary road Media Stream;
The self-adaptive decision module according to being the pre-configured self adaptation forwarding strategy of this terminal equipment, judges whether this road Media Stream meets the self adaptation condition by the exchange of media server forwards, if then trigger the cascade control module otherwise trigger preferential judging module;
Preferential judging module judges whether the current quantity of the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger direct-connected control module otherwise trigger the cascade control module;
Direct-connectedly between the direct-connected control module, the source end equipment of controlling this road Media Stream and this terminal equipment be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1;
Be connected by the exchange of media server between the cascade control module, the source end equipment of controlling this road Media Stream and this terminal equipment.
Preferably, described self adaptation condition comprises: this road Media Stream need be transmitted by NAT device.
The control device that another Media Stream provided by the invention is transmitted, this medium forwarding controller is carried on video management server and comprises:
The request receiver module, the Media Stream request that receiving terminal apparatus sends at arbitrary road Media Stream;
The self-adaptive decision module according to being the pre-configured self adaptation forwarding strategy of this terminal equipment, judges whether this road Media Stream meets the self adaptation condition by the exchange of media server forwards, if then trigger the cascade control module otherwise triggering network segment judging module;
Network segment judging module judges that whether this terminal equipment is positioned at the same network segment and is positioned at different segment with the exchange of media server with the source end equipment of this road Media Stream, if then trigger preferential judging module otherwise trigger the cascade control module;
Preferential judging module judges whether the current quantity of the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger direct-connected control module otherwise trigger the cascade control module;
Direct-connectedly between the direct-connected control module, the source end equipment of controlling this road Media Stream and this terminal equipment be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1;
Be connected by the exchange of media server between the cascade control module, the source end equipment of controlling this road Media Stream and this terminal equipment.
Preferably, described self adaptation condition comprises: this road Media Stream need be transmitted by NAT device.
As above as seen, the present invention can realize the Media Stream of dynamic direct-connected preference strategy for each terminal equipment and transmit rather than only rely on changeless forwarding strategy as prior art.Thereby, when the direct-connected connection of arbitrary road Media Stream does not reach maximum direct-connected quantity, can be preferentially by the direct-connected forwarding that is connected to terminal equipment realization Media Stream, at this moment, as long as terminal equipment and source end equipment are positioned at the same network segment and are positioned at different segment with the exchange of media server, transmit the resource occupation (user can carry out policy configurations according to the real network situation, produces the effect of saving the network backbone resource and is not limited to this a kind of situation) that just can save network backbone by direct-connected ways of connecting realization medium; And when the direct-connected connection of arbitrary road Media Stream is expired, also can utilize the cascade of exchange of media server to be connected to the forwarding that terminal equipment is realized Media Stream, at this moment, can avoid the forwarding of this road Media Stream to be subjected to the restriction of maximum direct-connected quantity.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
Embodiment one
In the present embodiment, the user can be according to actual needs and in the VM server any DC/UC for this territory or foreign lands dispose corresponding direct-connected preference strategy.Wherein, so-called direct-connected preference strategy is meant: as long as the current quantity of the direct-connected connection of setting up at arbitrary road Media Stream does not reach the maximum direct-connected quantity of this road Media Stream, just preferentially set up direct-connected connection for the DC/UC of this road Media Stream of request.
Correspondingly, maximum direct-connected quantity for arbitrary road Media Stream, the user also can be according to actual needs and configuration in the VM server, to improve configuration flexibility, perhaps in the VM server, provide the maximum direct-connected quantity of global configuration so that unified management for all Media Streams.
Be configured to the DC/UC of direct-connected preference strategy at these, the control method and the control device that provide corresponding Media Stream to transmit in the present embodiment.And at other DC/UC that are not configured to direct-connected preference strategy, then still can according to those skilled in the art other strategies that can expect control Media Stream and transmit.
Fig. 1 is the exemplary process diagram of the control method of the Media Stream forwarding in the embodiment of the invention one.The control method that Media Stream in the present embodiment is transmitted is applied to the VM server, and as shown in Figure 1, this control method comprises:
Step 100 receives the Media Stream request that DC/UC sends at arbitrary road Media Stream.
Step 101 according to be the pre-configured direct-connected preference strategy of this DC/UC, judges whether the current quantity of the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger step 102 otherwise triggering step 103.
All DC/UC by the VM server admin all record various configuration informations in VM data in server storehouse, therefore, can judge whether to dispose direct-connected preference strategy for this DC/UC according to the configuration of writing down in the VM data in server storehouse in this step.
And, the EC/IPC of each road Media Stream of VM server admin also all records the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in VM data in server storehouse, therefore, can get access to the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in this step in the VM data in server storehouse.
Step 102, direct-connectedly between the EC/IPC that controls this road Media Stream and this DC/UC be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1.
In this step in order to realize direct-connected connection: the EC/IPC that link informations such as the address of this DC/UC and port can be notified to this road Media Stream.
Step 103 is controlled between the EC/IPC of this road Media Stream and this DC/UC by MS server level downlink connection.
In this step in order to realize a grade downlink connection:
Be connected if existed between the EC/IPC of this road Media Stream and the MS server, then link informations such as the address of this DC/UC and port can be notified to the MS server so that the MS server with corresponding media stream duplication one road to this DC/UC;
Be connected if exist as yet between the EC/IPC of this road Media Stream and the MS server, then link informations such as the address of MS server and port can be notified to the EC/IPC of this road Media Stream, again link informations such as the address of this DC/UC and port be notified to the MS server, so that the MS server is forwarded to this DC/UC with corresponding Media Stream.
So far, the control flow based on direct-connected preference strategy finishes.
Fig. 2 is the exemplary block diagram of the control device of the Media Stream forwarding in the embodiment of the invention one.The control device that Media Stream in the present embodiment is transmitted is carried on the VM server, and as shown in Figure 2, this control device comprises:
Request receiver module 200 receives the Media Stream request that DC/UC sends at arbitrary road Media Stream.
Preferential judging module 201, foundation is the pre-configured direct-connected preference strategy of this DC/UC, whether the current quantity of judging the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger direct-connected control module 202 otherwise trigger cascade control module 203.In the practical application, all DC/UC by the VM server admin all record various configuration informations in VM data in server storehouse, therefore, preferential judging module 201 can judge whether to dispose direct-connected preference strategy for this DC/UC according to the configuration of writing down in the VM data in server storehouse.And, the EC/IPC of each road Media Stream of VM server admin also all records the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in VM data in server storehouse, therefore, preferential judging module 201 can get access to the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in the VM data in server storehouse.
Direct-connected control module 202, direct-connectedly between the EC/IPC that controls this road Media Stream and this DC/UC be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1.In the practical application, direct-connected control module 202 is in order to realize direct-connected connection, link informations such as the address of this DC/UC and port can be notified to the EC/IPC of this road Media Stream.
Cascade control module 203 is connected by the MS server between the EC/IPC that controls this road Media Stream and this DC/UC.In the practical application, cascade control module 203 can be carried out following processing in order to realize grade downlink connection:
Be connected if existed between the EC/IPC of this road Media Stream and the MS server, then link informations such as the address of this DC/UC and port can be notified to the MS server so that the MS server with corresponding media stream duplication one road to this DC/UC;
Be connected if exist as yet between the EC/IPC of this road Media Stream and the MS server, then link informations such as the address of MS server and port can be notified to the EC/IPC of this road Media Stream, again link informations such as the address of this DC/UC and port be notified to the MS server, so that the MS server is forwarded to this DC/UC with corresponding Media Stream.
Fig. 3 is the example schematic in the embodiment of the invention one.As shown in Figure 3, hypothesis has EC, DC1~DC4 and a MS server in this example.Wherein, EC and DC1 and DC2 are positioned at the network segment 1, DC3 and DC4 and the MS server is positioned at the network segment 2; The maximum direct-connected quantity of EC is 2, and DC1~DC3 is configured to direct-connected preference strategy at VM server (not shown among Fig. 3).
At first, DC1 is to the Media Stream of VM server requests EC, because it is 0 that DC1 is configured to the current quantity of the direct-connected connection that direct-connected preference strategy and EC set up this moment, therefore, be updated to 1 by the direct-connected current quantity that is connected the direct-connected connection of transmitting Media Stream and EC having been set up this moment between VM server controls DC1 and the EC.As seen, owing to the MS server forwards Media Stream that can not pass through another network segment 2 between DC1 that is located on the network segment 1 and the EC, thereby the resource of just having saved network backbone.
Then, DC3 is to the Media Stream of VM server requests EC, because it is 1 that DC3 is configured to the current quantity of the direct-connected connection that direct-connected preference strategy and EC set up this moment, therefore, be updated to 2 by the direct-connected current quantity that is connected the direct-connected connection of transmitting Media Stream and EC having been set up this moment between VM server controls DC3 and the EC.
After this, DC4 is to the Media Stream of VM server requests EC, because DC4 is not configured to direct-connected preference strategy, therefore, the VM server is according to other forwarding strategies of acquiescence, and other forwarding strategies of assumed by default make between DC4 and the EC by MS server forwards Media Stream among Fig. 3.
At last, DC2 is to the Media Stream of VM server requests EC, though DC2 is configured to direct-connected preference strategy, the current quantity of the direct-connected connection that EC has set up at this moment has been maximum direct-connected quantity 2, therefore, the level downlink connection by the MS server is transmitted Media Stream between VM server controls DC2 and the EC.As seen, even if the direct-connected number of connection that EC has set up reaches maximum direct-connected quantity 2, DC2 also still can get access to the Media Stream of EC.
Embodiment two
In the present embodiment, need direct-connected preference strategy be set seriatim at DC/UC, but can one dynamic self adaptation forwarding strategy be set for each DC/UC, so-called self adaptation forwarding strategy is meant: whether the satisfy the demand self adaptation condition of MS server forwards of Media Stream.Media Stream for request satisfies the DC/UC of self adaptation condition, just comes to transmit for this DC/UC the Media Stream of its request by the level downlink connection of MS server according to the self adaptation forwarding strategy; And do not satisfy the DC/UC of self adaptation condition for the Media Stream of request, then transmit the Media Stream of its request acquiescently for this DC/UC according to direct-connected preference strategy.
That is to say that present embodiment is not to carry out direct-connected preference strategy forcibly by disposing DC/UC seriatim as embodiment one, but does not adopt all DC/UC of self adaptation forwarding strategy to implement direct-connected preference strategy to the Media Stream of being asked acquiescently.
For this reason, control method and the control device that provides corresponding Media Stream to transmit in the present embodiment.
Fig. 4 is the exemplary process diagram of the control method of the Media Stream forwarding in the embodiment of the invention two.The control method that Media Stream in the present embodiment is transmitted is applied to the VM server, and as shown in Figure 4, this control method is that Media Stream needs NAT (Network Address Translation, network address translation) device forwards to be example and to comprise with the self adaptation condition:
Step 410 receives the Media Stream request that DC/UC sends at arbitrary road Media Stream.
Step 420, foundation is the pre-configured self adaptation forwarding strategy of this DC/UC, judge whether this road Media Stream needs to transmit through NAT device, if then trigger step 433 (promptly directly transmitting Media Stream) otherwise triggering step 431 (promptly triggering direct-connected preference strategy) by the level downlink connection of MS server.
All DC/UC by the VM server admin all record various configuration informations in VM data in server storehouse, therefore, can judge whether to dispose the self adaptation forwarding strategy for this DC/UC according to the configuration of writing down in the VM data in server storehouse in this step.
Step 431 according to be the pre-configured direct-connected preference strategy of this DC/UC, judges whether the current quantity of the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger step 432 otherwise triggering step 433.
The EC/IPC of each road Media Stream of VM server admin also all records the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in VM data in server storehouse, therefore, can get access to the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in this step in the VM data in server storehouse.
Step 431, direct-connectedly between the EC/IPC that controls this road Media Stream and this DC/UC be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1.
In this step in order to realize direct-connected connection: the EC/IPC that link informations such as the address of this DC/UC and port can be notified to this road Media Stream.
Step 432 is controlled between the EC/IPC of this road Media Stream and this DC/UC by MS server level downlink connection.
In order to realize a grade downlink connection,, can control in this step according to the mode identical with step 103 for the situation that does not need to pass through by NAT device; And for situation about need pass through by NAT device, can according to existing mode trigger DC/UC by NAT device from the drainage of MS server.
So far, the control flow based on direct-connected preference strategy finishes.
Fig. 5 is the exemplary block diagram of the control device of the Media Stream forwarding in the embodiment of the invention two.The control device that Media Stream in the present embodiment is transmitted be carried on the VM server and with the self adaptation condition be Media Stream to need NAT device to transmit be example, as shown in Figure 5, this control device comprises:
Request receiver module 510 receives the Media Stream request that DC/UC sends at arbitrary road Media Stream.
Self-adaptive decision module 520, foundation is the pre-configured self adaptation forwarding strategy of this DC/UC, judge whether this road Media Stream needs to transmit through NAT device, if then trigger cascade control module 533 (promptly directly the level downlink connection forwarding Media Stream by the MS server) otherwise trigger preferential judging module 531 (promptly triggering direct-connected preference strategy).In the practical application, all DC/UC by the VM server admin all record various configuration informations in VM data in server storehouse, therefore, self-adaptive decision module 520 can judge whether to dispose the self adaptation forwarding strategy for this DC/UC according to the configuration of writing down in the VM data in server storehouse.
Preferential judging module 531 judges whether the current quantity of the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger direct-connected control module 532 otherwise trigger cascade control module 533.In the practical application, the EC/IPC of each road Media Stream of VM server admin also all records the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in VM data in server storehouse, therefore, preferential judging module 531 can get access to the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in the VM data in server storehouse.
Direct-connected control module 532, direct-connectedly between the EC/IPC that controls this road Media Stream and this DC/UC be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1.In the practical application, direct-connected control module 532 is in order to realize direct-connected connection, link informations such as the address of this DC/UC and port can be notified to the EC/IPC of this road Media Stream.
Cascade control module 533 is connected by the MS server between the EC/IPC that controls this road Media Stream and this DC/UC.In the practical application, cascade control module 533 is in order to realize a grade downlink connection, for the situation that does not need to pass through by NAT device, can control according to the mode identical with cascade control module 203 among the embodiment one; And for situation about need pass through by NAT device, can according to existing mode trigger DC/UC by NAT device from the drainage of MS server.
Fig. 6 is the example schematic in the embodiment of the invention two.As shown in Figure 6, hypothesis has EC, DC1~DC4 and a MS server in this example.Wherein, EC and DC1 and DC2 are positioned at the network segment 1, DC3 and DC4 and the MS server is positioned at the network segment 2, and the Media Stream of DC3 request need be transmitted through NAT device; The maximum direct-connected quantity of EC is 2, and DC1~DC4 is configured to the self adaptation forwarding strategy at VM server (not shown among Fig. 3), also disposes the direct-connected preference strategy of acquiescence in the VM server.
At first, DC1 is to the Media Stream of VM server requests EC, because the Media Stream of DC1 request do not need to transmit through NAT device, thereby do not adopt the self adaptation forwarding strategy and adopts direct-connected preference strategy acquiescently; And, therefore, be updated to 1 by the direct-connected current quantity that is connected the direct-connected connection of transmitting Media Stream and EC having been set up this moment between VM server controls DC1 and the EC because the current quantity of the direct-connected connection of having set up EC at this moment is 0.As seen, owing to the MS server forwards Media Stream that can not pass through another network segment 2 between DC1 that is located on the network segment 1 and the EC, thereby the resource of just having saved network backbone.
Then, DC3 is to the Media Stream of VM server requests EC, because the Media Stream of DC3 request need be through the NAT device forwarding, therefore, the VM server need be through the Media Stream of NAT device by the MS server forwards between control DC3 and the EC according to the self adaptation forwarding strategy.
After this, DC4 is to the Media Stream of VM server requests EC, because the Media Stream of DC4 request do not need to transmit through NAT device, thereby do not adopt the self adaptation forwarding strategy and adopts direct-connected preference strategy acquiescently; And, therefore, be updated to 1 by the direct-connected current quantity that is connected the direct-connected connection of transmitting Media Stream and EC having been set up this moment between VM server controls DC4 and the EC because the current quantity of the direct-connected connection of having set up EC at this moment is 1.
At last, DC2 is to the Media Stream of VM server requests EC, because the Media Stream of DC2 request do not need to transmit through NAT device, thereby do not adopt the self adaptation forwarding strategy and adopts direct-connected preference strategy acquiescently; But the current quantity of the direct-connected connection that EC has set up at this moment has been maximum direct-connected quantity 2, and therefore, the level downlink connection by the MS server between VM server controls DC2 and the EC is transmitted Media Stream.As seen, even if the direct-connected number of connection that EC has set up reaches maximum direct-connected quantity 2, DC2 also still can get access to the Media Stream of EC.
As among above-mentioned example and the embodiment one as the comparison between the example of Fig. 3 as seen, present embodiment is than embodiment one, when the Media Stream of DC/UC request need be transmitted by the level downlink connection of MS server (needing to transmit the DC3 of Media Stream in for example above-mentioned example) through NAT device, can avoid transmitting by direct-connected connection mistakenly owing to be forced to adopt direct-connected preference strategy, therefore, present embodiment can be selected the pass-through mode of Media Stream more accurately for use than embodiment one.
Embodiment three
In the present embodiment, still for each DC/UC one dynamic self adaptation forwarding strategy is set like that and satisfies the DC/UC employing self adaptation forwarding strategy of self adaptation condition for the Media Stream of asking according to embodiment two, but be with embodiment two differences: the Media Stream for request does not satisfy the DC/UC of self adaptation condition, then needs additionally to carry out a further decision and determines whether adopting direct-connected preference strategy to transmit rather than directly just adopt acquiescently direct-connected preference strategy.
For this reason, control method and the control device that provides corresponding Media Stream to transmit in the present embodiment.
Fig. 7 is the exemplary process diagram of the control method of the Media Stream forwarding in the embodiment of the invention three.The control method that Media Stream in the present embodiment is transmitted is applied to the VM server, and as shown in Figure 7, this control method is that Media Stream needs the NAT device forwarding to be example and to comprise with the self adaptation condition:
Step 710 receives the Media Stream request that DC/UC sends at arbitrary road Media Stream.
Step 720, foundation is the pre-configured self adaptation forwarding strategy of this DC/UC, judge whether this road Media Stream needs to transmit through NAT device, if then trigger step 743 (promptly directly transmitting Media Stream) otherwise triggering step 730 (promptly triggering further decision) by the level downlink connection of MS server.
Step 730, judge that whether this DC/UC is positioned at the same network segment and is positioned at different segment with the MS server with the EC/IPC of this road Media Stream, if, then expression level downlink connection can take unnecessary network backbone resource thereby trigger step 741 (promptly triggering direct-connected preference strategy), otherwise expression level downlink connection can not take unnecessary Internet resources thereby trigger step 743 (promptly still transmitting Media Stream by the level downlink connection of MS server);
All DC/UC by the VM server admin all record various configuration informations in VM data in server storehouse, therefore, can judge whether to dispose the self adaptation forwarding strategy for this DC/UC according to the configuration of writing down in the VM data in server storehouse in this step.
Step 741 according to be the pre-configured direct-connected preference strategy of this DC/UC, judges whether the current quantity of the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger step 742 otherwise triggering step 743.
The EC/IPC of each road Media Stream of VM server admin also all records the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in VM data in server storehouse, therefore, can get access to the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in this step in the VM data in server storehouse.
Step 742, direct-connectedly between the EC/IPC that controls this road Media Stream and this DC/UC be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1.
In this step in order to realize direct-connected connection: the EC/IPC that link informations such as the address of this DC/UC and port can be notified to this road Media Stream.
Step 743 is controlled between the EC/IPC of this road Media Stream and this DC/UC by MS server level downlink connection.
In order to realize a grade downlink connection,, can control in this step according to the mode identical with step 103 for the situation that does not need to pass through by NAT device; And for situation about need pass through by NAT device, can according to existing mode trigger DC/UC by NAT device from the drainage of MS server.
So far, the control flow based on direct-connected preference strategy finishes.
Fig. 8 is the exemplary block diagram of the control device of the Media Stream forwarding in the embodiment of the invention three.The control device that Media Stream in the present embodiment is transmitted be carried on the VM server and with the self adaptation condition be Media Stream to need NAT device to transmit be example, as shown in Figure 8, this control device comprises:
Request receiver module 810 receives the Media Stream request that DC/UC sends at arbitrary road Media Stream.
Self-adaptive decision module 820, foundation is the pre-configured self adaptation forwarding strategy of this DC/UC, judge whether this road Media Stream needs to transmit through NAT device, if then trigger cascade control module 843 (promptly directly transmitting Media Stream) otherwise triggering network segment judging module 830 (promptly triggering further decision) by the level downlink connection of MS server.In the practical application, all DC/UC by the VM server admin all record various configuration informations in VM data in server storehouse, therefore, self-adaptive decision module 820 can judge whether to dispose the self adaptation forwarding strategy for this DC/UC according to the configuration of writing down in the VM data in server storehouse.
Network segment judging module 830, judge that whether this DC/UC is positioned at the same network segment and is positioned at different segment with the MS server with the EC/IPC of this road Media Stream, if then trigger preferential judging module 841 (promptly triggering direct-connected preference strategy) otherwise trigger cascade control module 843 (promptly still the level downlink connection forwarding Media Stream by the MS server).
Preferential judging module 841 judges whether the current quantity of the direct-connected connection of setting up at this road Media Stream does not reach default maximum direct-connected quantity, if then trigger direct-connected control module 842 otherwise trigger cascade control module 843.In the practical application, the EC/IPC of each road Media Stream of VM server admin also all records the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in VM data in server storehouse, therefore, preferential judging module 841 can get access to the current quantity and the maximum direct-connected quantity of corresponding direct-connected connection in the VM data in server storehouse.
Direct-connected control module 842, direct-connectedly between the EC/IPC that controls this road Media Stream and this DC/UC be connected, and the current quantity of the direct-connected connection of will be setting up at this road Media Stream add 1.In the practical application, direct-connected control module 842 is in order to realize direct-connected connection, link informations such as the address of this DC/UC and port can be notified to the EC/IPC of this road Media Stream.
Cascade control module 843 is connected by the MS server between the EC/IPC that controls this road Media Stream and this DC/UC.In the practical application, cascade control module 843 is in order to realize a grade downlink connection, for the situation that does not need to pass through by NAT device, can control according to the mode identical with cascade control module 203 among the embodiment one; And for situation about need pass through by NAT device, can according to existing mode trigger DC/UC by NAT device from the drainage of MS server.
Fig. 9 is the example schematic in the embodiment of the invention three.As shown in Figure 9, hypothesis has EC, DC1~DC4 and a MS server in this example.Wherein, EC and DC1 and DC2 are positioned at the network segment 1, DC3 and DC4 and the MS server is positioned at the network segment 2, and the Media Stream of DC3 request need be transmitted through NAT device; The maximum direct-connected quantity of EC is 2, and DC1~DC4 is configured to the self adaptation forwarding strategy at VM server (not shown among Fig. 3), also disposes the direct-connected preference strategy of acquiescence in the VM server.
At first, DC1 is to the Media Stream of VM server requests EC, because the Media Stream of DC1 request do not need to transmit through NAT device, thereby do not adopt the self adaptation forwarding strategy and adopts direct-connected preference strategy acquiescently; And, therefore, be updated to 1 by the direct-connected current quantity that is connected the direct-connected connection of transmitting Media Stream and EC having been set up this moment between VM server controls DC1 and the EC because the current quantity of the direct-connected connection of having set up EC at this moment is 0.As seen, owing to the MS server forwards Media Stream that can not pass through another network segment 2 between DC1 that is located on the network segment 1 and the EC, thereby the resource of just having saved network backbone.
Then, DC3 is to the Media Stream of VM server requests EC, because the Media Stream of DC3 request need be through the NAT device forwarding, therefore, the VM server need be through the Media Stream of NAT device by the MS server forwards between control DC3 and the EC according to the self adaptation forwarding strategy.
After this, DC4 is to the Media Stream of VM server requests EC, because the Media Stream of DC4 request does not need the process NAT device to transmit, thereby does not adopt the self adaptation forwarding strategy; And, because DC4 and EC are not positioned at the same network segment, therefore, can not adopt direct-connected preference strategy for DC4 yet, the VM server needs Media Stream by the MS server forwards according to the self adaptation forwarding strategy between control DC4 and the EC.
At last, DC2 is to the Media Stream of VM server requests EC, because the Media Stream of DC2 request does not need the process NAT device to transmit, thereby does not adopt the self adaptation forwarding strategy; And DC2 and EC are in the same network segment and are positioned at different segment with the MS server, therefore need adopt direct-connected preference strategy to DC2; Because the current quantity of the direct-connected connection of having set up EC at this moment is 1, therefore, be updated to 2 by the direct-connected current quantity that is connected the direct-connected connection of transmitting Media Stream and EC having been set up this moment between VM server controls DC2 and the EC.As seen, owing to the MS server forwards Media Stream that can not pass through another network segment 2 between DC1 that is located on the network segment 1 and the EC, thereby the resource of just having saved network backbone.
As among above-mentioned example and the embodiment two as the comparison between the example of Fig. 6 as seen, present embodiment is than embodiment two, can be as much as possible manyly direct-connected connection be only kept to being positioned at the same network segment and being positioned at the DC/UC of different segment with the MS server with EC, thus the resource that can save network backbone more.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.