CN102917078B - Streaming media resource provides and acquisition methods, signaling flow server and terminal device - Google Patents

Streaming media resource provides and acquisition methods, signaling flow server and terminal device Download PDF

Info

Publication number
CN102917078B
CN102917078B CN201110218034.4A CN201110218034A CN102917078B CN 102917078 B CN102917078 B CN 102917078B CN 201110218034 A CN201110218034 A CN 201110218034A CN 102917078 B CN102917078 B CN 102917078B
Authority
CN
China
Prior art keywords
data stream
server
message
user terminal
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110218034.4A
Other languages
Chinese (zh)
Other versions
CN102917078A (en
Inventor
岳春荣
兑继英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201110218034.4A priority Critical patent/CN102917078B/en
Publication of CN102917078A publication Critical patent/CN102917078A/en
Application granted granted Critical
Publication of CN102917078B publication Critical patent/CN102917078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides a kind of streaming media resource to provide and acquisition methods, signaling flow server and terminal device. Streaming media resource supplying method comprises: receive the resource request message that carries the change mark of supporting the change of update data stream server that user terminal sends; According to changing mark, before the first data stream server sends preserved stream medium data, return to change request message to user terminal, change request message and carry the address information that continues to send to user terminal the second data stream server of stream medium data after the first data stream server. The embodiment of the present invention can improve the success rate of transmission of flow media data.

Description

Streaming media resource provides and acquisition methods, signaling flow server and terminal device
Technical field
The embodiment of the present invention relates to the network communications technology, and relating in particular to a kind of streaming media resource provides and obtainMethod, signaling flow server and terminal device.
Background technology
Constantly perfect along with network infrastructure, streaming media service is more and more universal, makes user's energyEnough in terminal, watch various media programs whenever and wherever possible. Because the content of media program is larger, can account forWith a large amount of storage resources of streaming server, streaming server adopts partial buffering technology only to preserve part for this reasonMedia content improves the utilization rate of storage resources. In the time that user has access to the media content of not preserving,Provide the streaming server of service can be in real time from other streaming servers media content continue as userService, also can adopt triangle transmission means for user's service.
Wherein, triangle transmission means refers in the time that user has access to the media content of not preserving, with userThe streaming server that terminal is set up signaling link notifies other to preserve media content that user will accessStreaming server directly sends data to user terminal. Because can reducing, this triangle transmission means works as prerequisiteStreaming server for service obtains the operation of media content and obtains more answering from other streaming serversWith.
Realizing in process of the present invention, inventor finds that in prior art, at least there are the following problems:Between user terminal and streaming server, there is network address translation (NetworkAddressTranslation; Referred to as: NAT) in the situation of equipment, in the time that streaming server changes, shouldNAT device cannot successfully be transmitted to user terminal by Media Stream, cannot ensure the correct biography of Media StreamDefeated.
Summary of the invention
The embodiment of the present invention provides a kind of streaming media resource to provide and acquisition methods, signaling flow server and endEnd equipment, in order to be successfully transmitted to use by stream medium data in the situation that there is network address translation apparatusFamily terminal.
The embodiment of the present invention provides a kind of streaming media resource supplying method, comprising:
Receive the resource request message that user terminal sends, described resource request message carries supports to upgrade numberThe change mark changing according to streaming server;
According to described change mark, the first data stream server send preserved stream medium data itBefore, returning to change request message to described user terminal, described change request message carries describedOne data stream server continues to send stream to described user terminal after sending preserved stream medium dataThe address information of the second data stream server of media data.
The embodiment of the present invention provides a kind of streaming media resource acquisition methods, comprising:
Send resource request message to signaling flow server, described resource request message carries supports to upgrade numberThe change mark changing according to streaming server;
Receiving described signaling flow server is identified at the first data stream server according to described change and sends instituteThe change request message returning before the stream medium data of preserving, described change request message carries in instituteState the first data stream server and send preserved stream medium data continuation transmission afterwards Streaming Media numberAccording to the address information of the second data stream server;
According to the address information of described the second data stream server, send to described the second data stream serverKeep-alive message, with continue to send at described the second data stream server activate before stream medium data with described inData channel between the second data stream server.
The embodiment of the present invention provides a kind of signaling flow server, comprising:
The first receiver module, the resource request message sending for receiving user terminal, described resource requestMessage is carried the change mark of supporting that update data stream server changes;
The first sending module, for according to described change mark, sends at the first data stream serverBefore the stream medium data of preserving, return to change request message to described user terminal, described changeRequest message carry described the first data stream server send preserved stream medium data itRear continuation sends the address information of the second data stream server of stream medium data to described user terminal.
The embodiment of the present invention provides a kind of terminal device, comprising:
The 6th sending module, for sending resource request message, described resource request to signaling flow serverMessage is carried the change mark of supporting that update data stream server changes;
The 5th receiver module, is identified at the first number for receiving described signaling flow server according to described changeSend the change request message returning before preserved stream medium data, described change according to streaming serverRequest message carries after described the first data stream server sends preserved stream medium data and continuesSupervention send the address information of the second data stream server of stream medium data;
The 7th sending module, for according to the address information of described the second data stream server, to describedTwo data stream servers send keep-alive message, to continue to send Streaming Media at described the second data stream serverBefore data, activate the data channel between described the second data stream server.
The streaming media resource of the embodiment of the present invention provides and acquisition methods, signaling flow server and terminal device,Signaling flow server is before the first data stream server sends preserved stream medium data, according to useChange mark in the resource request message that family terminal sends determines that user terminal is supported in data stream serverWhen change, return to data stream server address after changing to it, and return to the second data flow to user terminalThe address information of server, so that user terminal sends keep-alive message to the second data stream server, with in advanceFirst activate the data channel between the second data stream server, make the second data stream server firstData stream server sends stream medium data to user terminal after sending preserved stream medium dataTime, user terminal can correctly receive the stream medium data that the second data stream server sends. If usedFamily terminal is connected with NAT device, and NAT device sends and protects to the second data stream server at user terminalCan the address information of pre-stored the second data stream server and the address of user terminal in the process of the message of livingThe mapping relations of information, thereby the stream matchmaker who the second data stream server is sent according to the mapping relations of storageVolume data is successfully transmitted to user terminal, and as can be seen here, the embodiment of the present invention has solved prior art existenceDefect, improved the success rate of transmission of flow media data.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will be to realityThe accompanying drawing of executing required use in example or description of the Prior Art is briefly described, apparently, underAccompanying drawing in face description is some embodiments of the present invention, for those of ordinary skill in the art,Do not pay under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the streaming media resource supplying method that Fig. 1 provides for one embodiment of the invention;
The flow chart of the streaming media resource acquisition methods that Fig. 2 provides for one embodiment of the invention;
The flow chart of the multiple data stream server detection method that Fig. 3 provides for one embodiment of the invention;
Fig. 4 illustrates the flow chart of the streaming media resource acquisition methods that an embodiment provides for this;
The flow chart of the stream medium data acquisition methods that Fig. 5 provides for further embodiment of this invention;
The flow chart of the streaming media resource acquisition methods that Fig. 6 provides for yet another embodiment of the invention;
The structural representation of the signaling flow server that Fig. 7 provides for one embodiment of the invention;
The structural representation of the signaling flow server that Fig. 8 provides for another embodiment of the present invention;
The structural representation of the signaling flow server that Fig. 9 provides for further embodiment of this invention;
The structural representation of the terminal device that Figure 10 provides for one embodiment of the invention;
The structural representation of the terminal device that Figure 11 provides for another embodiment of the present invention.
Detailed description of the invention
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with thisAccompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,Obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment. Based onEmbodiment in the present invention, those of ordinary skill in the art obtain not making under creative work prerequisiteThe every other embodiment obtaining, belongs to the scope of protection of the invention.
The flow chart of the streaming media resource supplying method that Fig. 1 provides for one embodiment of the invention. As Fig. 1 instituteShow, the method for the present embodiment comprises:
The resource request message that step 101, reception user terminal send, described resource request message carriesSupport the change mark that update data stream server changes;
In the time of user terminal requests streaming media service, need first to carry out signaling with a streaming server and be connected,For controlling the flow process of whole streaming media service. Wherein, set up with user terminal the stream service that signaling is connectedDevice is referred to as signaling flow server, and other streaming servers are used for providing stream medium data, are referred to as numberAccording to streaming server. Wherein, signaling flow server also can have the function of data stream server, data flowServer also can have the function of signaling flow server, that is to say, in actual applications every stream clothesBusiness device is all reciprocity, has the function of data stream server and signaling flow server simultaneously, just forConcrete user terminal, wherein a streaming server can be served as signaling flow server, and other are as data flowServer, and also can be not as the streaming server of signaling flow server for different user terminal selectingWith. Concrete, whether user terminal supports update data stream service by encapsulation in resource request messageThe change mark that device changes, and the resource request message of encapsulation change mark is sent to signaling flow server,To connect with signaling flow server. In the present embodiment, on each data stream server, only preserveThe part stream medium data that streaming media service is corresponding, and user terminal identifies to signaling flow service by changeUpdate notification when device represents that it is supported in data stream server and changes, that is support triangle transmission sideFormula, so that each data stream server directly provides it to user terminal under the control of signaling flow serverThe stream medium data of preserving.
Step 102, according to change mark, send preserved Streaming Media at the first data stream serverBefore data, return to change request message to user terminal, described change request message carries firstData stream server continues to send Streaming Media number to user terminal after sending preserved stream medium dataAccording to the address information of the second data stream server.
Wherein, the first data stream server refers to the current stream that sends stream medium data to user terminalServer; The second data stream server refers at current data streaming server and sends preserved Streaming MediaAfter data, be about to send the streaming server of stream medium data.
Concrete, signaling flow server receives after resource request message, parses in resource request messageChange mark, know need to be in the time that data stream server changes informing user terminal. Therefore, letterMake streaming server before the first data stream server sends preserved stream medium data in certain hourThe address letter of the next streaming server (i.e. the second data stream server) that streaming media server is provided of inquiryBreath, this address information mainly comprises IP address and transmit port etc. Then, signaling flow server is by secondThe address information of data stream server is encapsulated in and changes in request message, sends at the first data stream serverBefore complete preserved stream medium data, send to user terminal. Wherein, signaling flow server controls eachData stream server sends stream medium data to user terminal, and signaling flow server can obtain each dataThe relevant information of streaming server, stream medium data, data flow service that for example data stream server is preservedTransmission state (for example when sending stream medium data) when device sends stream medium data, data flow clothesThe address information of business device etc.
Change after request message when user terminal receives, parse the second data that change in request messageThe address information of streaming server. Concerning user terminal, due to its with the first data stream server itBetween set up data channel, the port of its receiving stream media data of old friend road. When user terminal parsesAfter the address information of the second data stream server, user terminal will know that the second data stream server is to itSend the address information of stream medium data, for example IP address and transmit port, now, user terminal and theBetween two data stream servers, just set up a data channel. What is called is set up data channel and is referred to definiteThe receiving port of local reception stream medium data, and determined that transmitting terminal sends the IP address of stream medium dataAnd transmit port. Then, user terminal is sent out to the second data stream server according to the address information parsingSend keep-alive (KeepAlive) message, to send Streaming Media number at the second data stream server to user terminalAccording to activating in advance before the data channel between the second data stream server, thereby ensure the second data flowThe stream medium data of server is correctly sent to user terminal.
Wherein, in the time there is NAT device between user terminal and data stream server, user terminal sendsNeed to be transmitted to the second data flow service through NAT device to the keep-alive message of the second data stream serverDevice. In this repeating process, NAT device can be from keep-alive message learning to the second data stream serverAddress information, the address information of user terminal, and store the second data stream server address information andThe address information of user terminal, the address information and the user that have namely stored the second data stream server are wholeThe corresponding relation of the address information of end. Based on this, when the stream medium data of the second data stream server arrivesAfter NAT device, NAT device can be according to the address information of the second data stream server that study is arrived in advanceWith the corresponding relation of the address information of user terminal, stream medium data is correctly transmitted to user terminal, ensuresUser terminal success receiving stream media data.
The streaming media resource supplying method of the present embodiment, the money that signaling flow server sends according to user terminalChange mark in the request message of source, is providing the data stream server of service to change to user terminalBefore, the next one is about to offer for user terminal provides the address information of the data stream server of serviceUser terminal activated in advance and next user terminal before next data stream server provides serviceData channel between individual data stream server, thus the Streaming Media of next data stream server ensuredData can successfully send to user terminal, have solved in prior art in user terminal and data flow serviceWhile there is NAT device between device, the stream medium data of next data stream server successfully cannot be sentGive the problem of user terminal, improved the success rate of transmission of flow media data, improved streaming media serviceQuality.
The flow chart of the streaming media resource acquisition methods that Fig. 2 provides for one embodiment of the invention. As Fig. 2 instituteShow, the method for the present embodiment comprises:
Step 201, to signaling flow server send resource request message, described resource request message carriesSupport the change mark that update data stream server changes;
In the time of user terminal requests streaming media service, first by resource request message and a streaming serverSet up signaling and connect, and to set up by this and user terminal the streaming server that signaling is connected (be signaling flow serviceDevice) control the flow process of whole streaming media service. Other streaming servers in network are mainly used in providing stream matchmakerVolume data, is referred to as data stream server. Concrete, user terminal is by resource request messageWhether encapsulation supports the change mark that update data stream server changes, and encapsulation is changed to the resource of markRequest message sends to signaling flow server, to connect with signaling flow server. In the present embodiment,On each data stream server, only preserve part stream medium data corresponding to streaming media service, and user eventuallyEnd identifies while representing that to signaling flow server it is supported in data stream server and changes more by changeNew notice, that is support triangle transmission means, so that each data stream server is at signaling flow serverThe lower stream medium data that directly provides it to preserve to user terminal is provided.
Step 202, reception signaling flow server are identified at the first data stream server according to change and sendThe change request message returning before the stream medium data of preserving, described change request message carriesThe first data stream server sends and continues to send the of stream medium data after preserved stream medium dataThe address information of two data stream servers;
When signaling flow server receives after the resource request message of user terminal transmission, parsing resource pleaseAsk the change mark in message, be informed in data stream server and occur to need informing user terminal before change,Therefore, signaling flow server generates change request message according to changing mark, and the next one is about to userTerminal provides the address information of the data stream server (i.e. the second data stream server) of service to be encapsulated in changeMore in request message, send to user terminal.
User terminal receives the change request message that signaling flow server sends, and parses the request of change and disappearThe address information of the second data stream server in breath.
Step 203, according to the address information of the second data stream server, send out to the second data stream serverSend keep-alive message, activate and the second number with before continuing to send stream medium data at the second data stream serverAccording to the data channel between streaming server.
User terminal is according to the address information of the second data stream server parsing, by what be attached theretoNAT device to second data stream server send keep-alive message, with at the second data stream server to userTerminal provides service (sending stream medium data) to activate before the number between the second data stream serverAccording to passage. When user terminal has been determined the receiving port of its local reception stream medium data, and know secondData stream server sends behind the IP address and transmit port of stream medium data to it, user terminal and secondBetween data stream server, just there is a data channel, be not just activated.
Concrete, user terminal first sends to NAT device by keep-alive message, now Streaming Media request messageIn the source IP address IP address that is user terminal, object IP address is the IP of the second data stream serverAddress. NAT device carries out address transition to keep-alive message, replaces with NAT establish by its source IP addressAfter standby external IP address, be transmitted to the second data stream server. In this repeating process, NATEquipment can carry out address learning automatically, and NAT device is resolved and obtained in keep-alive message keep-alive messageThe address information of user terminal and the address information of the second data stream server, if the second data flow clothesThe IP address of business device is new IP address, and NAT device can be stored the IP of the second data stream serverAddress, and the corresponding relation of the IP address of user terminal and the IP address of the second data stream server.
The second data stream server receives after the keep-alive message of NAT forwarding, can preserve source IP whereinAddress (being the IP address of NAT device), with according to the IP address of this NAT device to user terminalSend media stream data.
When the second data stream server the first data stream server send preserved stream medium data itAfter, while sending stream medium data to user terminal, first the stream medium data message sending arrive NATEquipment. NAT device is according to the IP address of pre-stored user terminal and the second data stream serverThe corresponding relation of IP address, carries out address transition to stream medium data message, replaces by object IP addressAfter IP address for user terminal, send to user terminal.
The streaming media resource acquisition methods of the present embodiment, user terminal sends resource to signaling flow server pleaseAsk message, make signaling flow server be identified at next being about to as using according to the change in resource request messageFamily terminal provides before the data stream server of service provides service, returns to next data to user terminalThe address information of streaming server, the address information that user terminal returns according to signaling flow server is to the next oneData stream server sends keep-alive message, to provide service at next data stream server to user terminalActivate in advance the data channel between next data stream server before, thereby ensured next numberStream medium data according to streaming server can successfully send to user terminal, has solved in prior art and has usedWhile there is NAT device between family terminal and data stream server, next number is according to the Streaming Media of streaming serverData cannot send to the problem of user terminal, have improved the success rate of transmission of flow media data, have improvedThe quality of streaming media service.
Further, the signaling flow server in the various embodiments described above and the first data stream server can be for notHomogeneous turbulence server; In addition, signaling flow server also can be identical with the first data stream server, and twoPerson is same streaming server.
In the various embodiments described above, each streaming server, comprises data stream server and signaling flow server,Can make an appointment and change the represented meaning of mark with user terminal, for example: agreement changes mark not onlyRepresent that user terminal needs signaling flow server to notify in the time that data stream server changes, andDefining the address information that signaling flow server is only about to the next one data stream server that service is provided carriesSupply with user terminal. In addition, streaming server can also with the user terminal change label table of making an appointmentShow that user terminal is supported in when data stream server changes and notify, and support to return multiple dataThe address information of streaming server (comprising the second data stream server). Wherein, multiple data stream serversCan be all streaming servers in network, can be also part streaming server in network.
When after change mark represents, one is looked like, signaling flow server will except by changing request messageThe address information of the second data stream server returns to outside user terminal, can also ask to disappear by changeBreath is by the ground of other data stream servers except the second data stream server in multiple data stream serversLocation information offers user terminal. Correspondingly, user terminal is except receiving the ground of the second data stream serverOutside the information of location, also can receive the address information of other data stream servers in multiple data stream servers,It is the address information that user terminal will receive multiple data stream servers. Further, work as user terminalActivate outside the data channel between the second data stream server by keep-alive message, also can be by protectingThe data channel of living between message activation and other data stream servers.
Further, based on the various embodiments described above, receive at signaling flow server the money that user terminal sendsBefore the request message of source, in other words, user terminal to signaling flow server send resource request message itBefore, also comprise: whether user terminal is had to the ability that update data stream server changes and surveyProcess. This detection process specifically comprises the following steps:
Step 111, user terminal send probe request message, described probe requests thereby to signaling flow serverMessage is carried multi-data source and is surveyed mark;
Step 112, signaling flow server receive the probe request message that user terminal sends;
Step 113, signaling flow server are surveyed mark according to multi-data source, to multiple data stream serversSend and survey Indication message, to indicate multiple data stream servers to send probe message to user terminal, instituteState and survey the address information that Indication message carries user terminal;
Multiple data stream servers are predefined, can be streaming servers all in network, also canTo be part streaming server. Multiple data stream servers are according to the address information of user terminal, to user eventuallyEnd sends probe message.
Step 114, signaling flow server send response detected message, described response detected to user terminalMessage carries the address information of multiple data stream servers;
Step 115, user terminal receive the response detected message that signaling flow server returns;
Step 116, user terminal receive multiple data stream servers and refer to according to the detection of signaling flow serverShow the probe message that message sends to user terminal, and judge whether to receive probe message; If judgement knotFruit is no, does not receive probe message, illustrates between user terminal and data stream server and has NATEquipment, and this NAT device carries out message based on source IP address, object IP address and port information and turnsSend out, thus need signaling flow server informing user terminal in the time that data stream server occurs to change, so thatUser terminal activates the data channel between next data stream server in advance, performs step 117;If judged result is yes, receive probe message (refer to and at least receive a probe message),Illustrate and between user terminal and data stream server, do not have NAT device, or there is NAT device butNAT device only carries out message forwarding according to object IP address, that is to say at data stream server and becomesIn situation more, user terminal can successfully receive the stream medium data that next data stream server sends,Therefore, do not need to activate in advance the data channel between next data stream server, therefore execution step119。
Step 117, user terminal send and carry the notice request message that changes mark to signaling flow server;
User terminal by notice request message and carry change mark, with inform signaling flow server its notCan receive any probe message, need to occur to notice while change at data stream server, so that pre-Data channel between first activation and data stream server after changing, ensures successful receiving stream media data.Signaling flow server receives after the notice request message of user terminal, knows at data stream server and changesTime carry out change notifications to user terminal, and return to notice response message to user terminal.
Step 118, user terminal receive the notice response message that signaling flow server returns, and carry out stepRapid 119;
Step 119, end exploration operation.
The detection method providing by the present embodiment, whether user terminal can be known at data stream serverWhether while changing need signaling flow server notify, for subsequent user terminal is to signaling flow service if occurringThe resource request message that change mark is carried in device transmission provides the foundation, for ensureing that user terminal successfully receivesStream medium data lays the foundation, for the quality that improves streaming media service provides condition. Further, logicalCross the detection flow process of the present embodiment, user terminal can be served in needs signaling flow server notification data flowDevice change situation under to signaling flow server send carry change mark notice request message make signaling flowServer is carried out notice operation, and user terminal does not need signaling flow server notification data stream server to becomeSituation that can successful receiving stream media data just does not send to carry to signaling flow server and changes mark more yetNotice request message and make signaling flow server not carry out notice operation, can reduce the unnecessary wasting of resources,Improve the efficiency of streaming media service.
Below will be taking signaling flow server and the first data stream server as same flow server is as example, in conjunction withThe realization flow of user terminal requests streaming media service is described further technical solution of the present invention, andFollowing examples are to adopt real time streaming transport protocol (RealTimeStreamingProtocol; Referred to as:RTSP) agreement is example.
The flow chart of the multiple data stream server detection method that Fig. 3 provides for one embodiment of the invention. This realityExecute example and realize based on Fig. 1 and principle embodiment illustrated in fig. 2, as shown in Figure 3, the detection of the present embodimentMethod comprises:
Step 301, user terminal are sent and connect (Connection) to signaling flow server by NAT deviceMessage, to set up TCP signaling link with signaling flow server.
The source IP address in Connection message is replaced with NAT device by step 302, NAT deviceIP address after be transmitted to signaling flow server.
Step 303, user terminal are sent and describe to signaling flow server by NAT device(DESCRIBE) message, described DESCRIBE message carries multi-data source and surveys mark.
Header field to existing DESCRIBE message is expanded, and multi-data source is surveyed to mark and add expansion toIn the header field of exhibition.
The source IP address in DESCRIBE message is replaced with NAT device by step 304, NAT deviceIP address after be transmitted to signaling flow server.
So far signaling flow server and user terminal are set up TCP signaling link.
Step 305, signaling flow server are sent and (for example: 200 confirm to user terminal by NAT deviceOK) response message.
Signaling flow server can be surveyed and identify use according to the multi-data source in DESCRIBE messageFamily terminal can support to carry out the detection flow process of multiple data stream server. Now, if signaling flow server alsoThe detection flow process of multiple data stream server is carried out in support, in 200OK response message, also carries most certificatesMark is surveyed in source.
The object IP address of 200OK response message is replaced with user terminal by step 306, NAT deviceIP address after be transmitted to user terminal.
Step 307, user terminal are sent and set up (SETUP) to signaling flow server by NAT deviceMessage.
Step 308, NAT device replace with the source IP address of SETUP message the IP of NAT deviceBehind address, be transmitted to signaling flow server.
Step 309, signaling flow server are sent and set up response message (to user terminal by NAT device200OK response message). In the present embodiment, signaling flow server is identical with the first data stream server,Therefore do not need to carry the address information of the first data stream server in 200OK response message. If signaling flowServer and the first data stream server are not same streaming servers, and signaling flow server can be 200In OK response message, carry IP address and the transmitting terminal of the first data stream server that sends stream medium dataThe information such as mouth.
The object IP address of 200OK response message is replaced with user terminal by step 310, NAT deviceIP address after be transmitted to user terminal.
Step 311, user terminal send keep-alive (Keep by NAT device to the first data stream serverAlive) message, the IP address that the source IP address of this KeepAlive message is user terminal, object IPAddress is the IP address of the first data stream server. In the present embodiment, the IP of the first data stream serverAddress is the IP address of signaling flow server namely.
The source IP address of KeepAlive message is replaced with NAT device by step 312, NAT deviceAfter IP address, be transmitted to the first data stream server. Now, the first data stream server will be preserved receptionTo the source IP address (being the IP address of NAT device) of KeepAlive message, and and user terminalShine upon, and the follow-up stream medium data that sends to user terminal is sent to NAT device.
Step 313, user terminal send parameter setting by NAT device to signaling flow server(SET_PARAMETER) request message, starts to carry out multiple data stream clothes with notice signaling streaming serverBusiness device is surveyed.
Step 314, NAT device replace with the source IP address of SET_PARAMETER request messageBehind the IP address of NAT device, be transmitted to signaling flow server.
Step 315, signaling flow server are according to SET_PARAMETER request message, to multiple dataStreaming server sends surveys Indication message, to indicate multiple data stream servers to send and survey to user terminalMessage; The address information of carrying user terminal in described detection Indication message.
In the present embodiment, multiple data stream servers can be all data stream servers in network, alsoIt can be partial data streaming server wherein
Step 316, multiple data stream server be according to surveying Indication message, by NAT device to userTerminal sends probe message.
Step 317, signaling flow server send probe response message by NAT device to user terminal,Described probe response message is carried the address information of multiple data stream servers. This probe response message is 200OK response message.
Step 318, NAT device replace with the object IP address of probe response message the IP of user terminalBehind address, be transmitted to user terminal.
Step 319, user terminal receive probe message, and judge whether to receive except the first data flow clothesThe probe message that other data stream servers outside business device send; When judged result is for receiving other numbersAccording to streaming server send probe message time, show occur data stream server change time user terminal alsoCan successful receiving stream media data, can perform step 324. When judged result is no, do not receiveWhile arriving the probe message of other data stream servers transmissions, show that NAT device is according to source IP address, orderIP address and port between mapping relations carry out forwarding messages, due on NAT device storage except theThe address information of other data stream servers outside one data stream server, therefore, other data flow clothesThe probe message of business device cannot be forwarded to user terminal, therefore, requires signaling flow server in data flowOccur to notify while change to user terminal, turn and perform step 320.
Step 320, user terminal send to signaling flow server by NAT deviceSET_PARAMETER request message. User terminal passes through at SET_PARAMETER request messageIn carry change mark inform signaling flow server need to data stream server occur change time lead toKnow.
Step 321, NAT device replace with the source IP address of SET_PARAMETER request messageBehind the IP address of NAT device, be transmitted to signaling flow server. Signaling flow server is according to changing mark identificationGo out in the time that data stream server occurs to change, need to notice to user terminal.
Step 322, signaling flow server send 200OK response by NAT device to user terminal and disappearBreath.
The object IP address of 200OK response message is replaced with user terminal by step 323, NAT deviceIP address after be transmitted to user terminal, exploration operation finishes.
Step 324, user terminal are sent and play (PLAY) to signaling flow server by NAT deviceMessage.
Step 325, NAT device replace with the source IP address of PLAY message on the IP ground of NAT deviceBehind location, be transmitted to signaling flow server.
Step 326, signaling flow server send 200OK response by NAT device to user terminal and disappearBreath.
The object IP address of 200OK response message is replaced with user terminal by step 327, NAT deviceIP address after be transmitted to user terminal.
Step 328, the first data stream server send stream medium data by NAT device to user terminal.
Step 329, NAT device replace with the object IP address of stream medium data the IP of user terminalBehind address, be transmitted to user terminal.
The flow process of the multiple data stream server detection method that the present embodiment provides is at user terminal requests Streaming MediaIn the process of service, realize, can be used as the basis of follow-up each embodiment, follow-up each embodiment is real at thisExecute example detect user terminal need signaling flow server data stream server occur change time carry out to itUnder the condition of noticing, carry out.
Fig. 4 illustrates the flow chart of the streaming media resource acquisition methods that an embodiment provides for this. The present embodimentBased on Fig. 1 and principle embodiment illustrated in fig. 2, in the present embodiment, signaling flow server and the first numberBe same streaming server according to streaming server, but in order more clearly to describe signaling flow server and firstThe operation of data stream server shows respectively signaling flow server and the first data flow service in Fig. 4Device. As shown in Figure 4, the method for the present embodiment comprises:
Step 401, user terminal send Connection message by NAT device to signaling flow server,To set up TCP signaling link with signaling flow server.
The source IP address in Connection message is replaced with NAT device by step 402, NAT deviceIP address after be transmitted to signaling flow server.
Step 403, user terminal send DESCRIBE message by NAT device to signaling flow server,Described DESCRIBE message carries and changes mark.
A kind of instantiation that this DESCRIBE message is resource request message. In the time adopting Session Initiation Protocol,This step can adopt option (OPTIONS) message or notice (INFO) message.
The source IP address in DESCRIBE message is replaced with NAT device by step 404, NAT deviceIP address after be transmitted to signaling flow server. So far signaling flow server and user terminal are set up TCPSignaling link.
Step 405, signaling flow server send 200OK response by NAT device to user terminal and disappearBreath.
Signaling flow server can identify user terminal energy according to the change in DESCRIBE messageEnough support the operation that update data stream server changes. To adopt if occurred when data stream server changesTriangle transmission means provides service for user terminal.
The object IP address of 200OK response message is replaced with user terminal by step 406, NAT deviceIP address after be transmitted to user terminal.
Step 407, user terminal send SETUP message by NAT device to signaling flow server.
Step 408, NAT device replace with the source IP address of SETUP message the IP of NAT deviceBehind address, be transmitted to signaling flow server.
Step 409, signaling flow server send 200OK response by NAT device to user terminal and disappearBreath. In the present embodiment, signaling flow server is identical with the first data stream server, therefore at 200OKIn response message, do not need to carry the address information of the first data stream server. If signaling flow server andOne data stream server is not same streaming server, and signaling flow server can be at 200OK response messageIn carry the information such as IP address and transmit port of the first data stream server that sends stream medium data.
The object IP address of 200OK response message is replaced with user terminal by step 410, NAT deviceIP address after be transmitted to user terminal.
Step 411, user terminal send KeepAlive by NAT device to the first data stream serverMessage, the IP address that the source IP address of this KeepAlive message is user terminal, object IP address isThe IP address of the first data stream server. In the present embodiment, the IP address of the first data stream serverThe namely IP address of signaling flow server.
The source IP address of KeepAlive message is replaced with NAT device by step 412, NAT deviceAfter IP address, be transmitted to the first data stream server. Now, the first data stream server will be preserved receptionTo the source IP address (being the IP address of NAT device) of KeepAlive message, and and user terminalShine upon, and the follow-up stream medium data that sends to user terminal is sent to NAT device.
Step 413, user terminal send PLAY message by NAT device to signaling flow server.
Step 414, NAT device replace with the source IP address of PLAY message on the IP ground of NAT deviceBehind location, be transmitted to signaling flow server.
Step 415, signaling flow server send 200OK response by NAT device to user terminal and disappearBreath.
The object IP address of 200OK response message is replaced with user terminal by step 416, NAT deviceIP address after be transmitted to user terminal.
Step 417, the first data stream server send stream medium data message by NAT to user terminal.Stream medium data message mainly refers to the packet that comprises stream medium data.
The object IP address of stream medium data message is replaced with user terminal by step 418, NAT deviceIP is transmitted to user terminal behind address.
Step 419, signaling flow server detect the stream medium data on the first data stream server,In the time detecting that stream medium data on the first data stream server just finishes playing apart from Preset Time, openBegin other data stream servers of inquiry to obtain next part by the stream medium data of playing, when inquiringNext part is about to the data stream server (i.e. the second data stream server) at the stream medium data place of playingTime, signaling flow server sends and prepares notification message to the second data stream server, so that the second data flowServer is prepared to send stream medium data to user terminal, and this preparation notification message carries user terminalAddress information etc.
Step 420, the second data stream server take to signaling flow after completing and being ready for sending stream medium dataBusiness device sends preparation response message and prepares to complete to inform signaling flow server, and signaling flow server receivesThe preparation response message that the second data stream server returns, and know that the second data stream server preparation is completeBecome.
Step 421, signaling flow server are by the ground such as IP address and transmit port of the second data stream serverLocation Information encapsulation becomes notice (ANNOUNCE) message, and sends to user terminal by NAT deviceANNOUNCE message. This ANNOUNCE message is that the one that changes request message realizes example,Wherein carry the address information such as IP address and transmit port of the second data stream server.
The object IP address of ANNOUNCE message is replaced with user terminal by step 422, NAT deviceIP address after be transmitted to user terminal.
Step 423, user terminal are according to the address of the second data flow in the ANNOUNCE message receivingInformation, sends KeepAlive message by NAT device to the second data stream server. Wherein, KeepAlive message is that user terminal sends to the second data stream server, for activating itself and the second data flowData channel between server. The object IP address of this KeepAlive message is the second data flow serviceThe IP address of device, the IP address that source IP address is user terminal.
The source IP address of KeepAlive message is replaced with NAT device by step 424, NAT deviceBehind IP address, be transmitted to the second data stream server. In this repeating process, NAT device judgement knows theThe IP address of two data stream servers is emerging IP addresses, by the IP of the second data stream serverAddress stores, and stores the IP address of the second data stream server, the IP address of user terminal simultaneouslyAnd mapping relations between the IP address of NAT device, so that the second data stream server is sentStream medium data forward.
Wherein, for the second data stream server, receive KeepAlive message, and by KeepAliveSource IP address in message and user terminal shine upon and preserve. The second data stream server to user eventuallyWhen end sends stream medium data, directly stream medium data is sent to NAT device.
Step 425, user terminal send to signaling flow server the change receiving by NAT device and askAsk the change response message of message.
Step 426, NAT device replace with the source IP address that changes response message the IP of NAT deviceBehind address, be transmitted to signaling flow server.
Step 427, signaling flow server detect first data stream server preserve stream medium data broadcastDischarge into, send play instruction to the second data stream server, to indicate the second data stream server to useFamily terminal sends stream medium data.
Step 428, the second data stream server receive play instruction and determine and can send Streaming MediaAfter data, return and play response message to inform that signaling flow server starts broadcasting and flows to signaling flow serverMedia data.
Accordingly, signaling flow server receives the broadcasting response message that the second data flow is returned, and knowsTwo data stream servers have started to send stream medium data.
Step 429, the second data stream server are according to IP address and the user of the NAT device of storing beforeThe mapping relations of terminal, send stream medium data message by NAT device to user terminal.
The object IP address of stream medium data message is replaced with user terminal by step 430, NAT deviceObject IP is transmitted to user terminal behind address.
Wherein, because NAT device is according to sending to the second data stream server before user terminalKeepAlive message has been learnt the IP address of the second data stream server, therefore, and in this step,NAT device can successfully be transmitted to user terminal by the stream medium data of the second data stream server. UserTerminal continues to receive NAT device and forwards the stream medium data that the second data stream server provides.
The streaming media resource acquisition methods of the present embodiment is mainly that one is passed through in streaming media playing processReuse signaling channel and signaling message data stream server occur change time by next data stream serverAddress information Real-time Notification to the embodiment of user terminal. In the present embodiment, specifically pass through RTSPANNOUNCE message under agreement and signaling channel corresponding to this ANNOUNCE message, in dataStreaming server occurs while change, the address information of next data stream server to be noticed to user terminal, butBe not limited to this. For example: when adopting conversation initialized protocol (SessionInitiationProtocol; Be called for shortFor: SIP) time, can notify with its corresponding channel next data flow by the INFO under SIPThe address information of server is noticed to user terminal.
Further, when representing user terminal support, the change mark in DESCRIBE message returns to multiple numbersDuring according to the address information of streaming server, signaling flow server specifically will comprise by ANNOUNCE messageThe second data stream server is noticed to user eventually in the address information of interior multiple data stream servers simultaneouslyEnd. Wherein, signaling flow server can be encapsulated in one by the address information of multiple data stream servers simultaneouslyIn individual ANNOUNCE message, send to user terminal, also can be by multiple ANNOUNCE messageSend to user terminal. Wherein, in the time that the ability of ANNOUNCE message is allowed, by oneANNOUNCE message sends to user terminal passable the address information of multiple data stream servers simultaneouslySaving interaction flow, can improve the quality of streaming media service, therefore, is a preferred embodiment. RightIn user terminal, in the time receiving the address information of multiple data stream servers, all can be by rightThe processing mode of the second data stream server is served with each data flow in multiple data stream serversDevice connects in advance.
The flow chart of the stream medium data acquisition methods that Fig. 5 provides for further embodiment of this invention. This enforcementExample realizes based on Fig. 1 and principle embodiment illustrated in fig. 2, in the present embodiment, signaling flow server withThe first data stream server is same streaming server, but in order more clearly to describe signaling flow serverWith the operation of the first data stream server, in Fig. 4, show respectively signaling flow server and the first dataStreaming server. As shown in Figure 5, the method for the present embodiment comprises:
Step 501, user terminal send Connection message by NAT device to signaling flow server,To set up TCP signaling link with signaling flow server.
The source IP address in Connection message is replaced with NAT device by step 502, NAT deviceIP address after be transmitted to signaling flow server.
Step 503, user terminal send DESCRIBE message by NAT device to signaling flow server,Described DESCRIBE message carries and changes mark. In this embodiment, change mark and represent that user eventuallyEnd permission signaling flow server returned to multiple data stream servers before data stream server changesAddress information. Described multiple data stream server can be that data stream server all in network is also passablePartial data streaming server, but the plurality of data stream server comprise the first data stream server andThe second data stream server.
The source IP address in DESCRIBE message is replaced with NAT device by step 504, NAT deviceIP address after be transmitted to signaling flow server. So far signaling flow server and user terminal are set up TCPSignaling link.
Step 505, signaling flow server send 200OK response by NAT device to user terminal and disappearBreath.
Signaling flow server can identify user terminal energy according to the change in DESCRIBE messageEnough support the operation that update data stream server changes, and require signaling flow server in data flow serviceThere is to return while change the address information of multiple data stream servers in device. If data stream server occurs to be becomeMore time, provide service by employing triangle transmission means for user terminal.
The object IP address of 200OK response message is replaced with user terminal by step 506, NAT deviceIP address after be transmitted to user terminal.
Step 507, user terminal send SETUP message by NAT device to signaling flow server.
Step 508, NAT device replace with the source IP address of SETUP message the IP of NAT deviceBehind address, be transmitted to signaling flow server.
Step 509, signaling flow server are sent and set up response message (to user terminal by NAT device200OK response message). In the present embodiment, signaling flow server is identical with the first data stream server,Therefore do not need to carry the address information of the first data stream server in 200OK response message. If signaling flowServer and the first data stream server are not same streaming servers, and signaling flow server can be 200In OK response message, carry IP address and the transmitting terminal of the first data stream server that sends stream medium dataThe information such as mouth.
In addition, in the present embodiment, signaling flow server is simultaneously by the address letter of multiple data stream serversBreath (for example IP address and transmit port) is encapsulated in this 200OK response message and returns to user terminal.
The object IP address of 200OK response message is replaced with user terminal by step 510, NAT deviceIP address after be transmitted to user terminal.
Step 511, user terminal, according to the address information of multiple data stream servers, pass through NAT deviceA data stream server (i.e. the first data stream server) sends KeepAlive message wherein. ShouldThe source IP address of KeepAlive message is the IP address of user terminal, and object IP address is the first dataThe IP address of streaming server. In the present embodiment, namely believe the IP address of the first data stream serverMake the IP address of streaming server.
The source IP address of KeepAlive message is replaced with NAT device by step 512, NAT deviceAfter IP address, be transmitted to the first data stream server. Now, the first data stream server will be preserved receptionTo the source IP address (being the IP address of NAT device) of KeepAlive message, and and user terminalShine upon, and the follow-up stream medium data that sends to user terminal is sent to NAT device.
Step 513, user terminal by NAT device to other data flow in multiple data stream serversServer sends respectively KeepAlive message (the second data stream server is only shown in Fig. 5). RespectivelyThe source IP address of KeepAlive message is the IP address of user terminal, and it is each that object IP address is respectivelyThe IP address of individual data stream server. Concrete, user terminal is respectively by every in other data stream serversThe address information of individual data stream server and the address information of user terminal are encapsulated in a KeepAlive and disappearIn breath, and KeepAlive message is sent to NAT device.
The source IP address of KeepAlive message is replaced with NAT device by step 514, NAT deviceBehind IP address, be transmitted to each data stream server.
Concrete, NAT device can receive multiple KeepAlive message, and each KeepAlive is disappearedBreath is resolved and is obtained the wherein address information of data stream server and the address information of user terminal, and protectsDeposit the address information of the data stream server obtaining and the address information of user terminal, then to each KeepAlive message is carried out address transition, and the KeepAlive message after address transition is sent to corresponding numberAccording to streaming server.
For each data stream server, receive corresponding KeepAlive message, and by KeepAliveThe source IP address of message and user terminal shine upon and preserve. To send at follow-up each data stream serverDirectly send to NAT device to the stream medium data of user terminal.
Step 515, user terminal send PLAY message by NAT device to signaling flow server.
Step 516, NAT device replace with the source IP address of PLAY message on the IP ground of NAT deviceBehind location, be transmitted to signaling flow server.
Step 517, signaling flow server send 200OK response by NAT device to user terminal and disappearBreath.
The object IP address of 200OK response message is replaced with user terminal by step 518, NAT deviceIP address after be transmitted to user terminal.
Step 519, the first data stream server send stream medium data by NAT device to user terminalMessage. The source IP address of this stream medium data message is the IP address of the first data stream server, objectIP address is the IP address of NAT device.
The object IP address of stream medium data message is replaced with user terminal by step 520, NAT deviceIP is transmitted to user terminal behind address.
Step 521, signaling flow server detect the stream medium data on the first data stream server,In the time detecting that stream medium data on the first data stream server just finishes playing apart from Preset Time, openBegin other data stream servers of inquiry to obtain next part by the stream medium data of playing, when inquiringNext part is about to the data stream server (i.e. the second data stream server) at the stream medium data place of playingTime, signaling flow server sends and prepares notification message to the second data stream server, so that the second data flowServer is prepared to send stream medium data to user terminal, and this preparation notification message carries user terminalAddress information etc.
Step 522, the second data stream server take to signaling flow after completing and being ready for sending stream medium dataBusiness device sends preparation response message and prepares to complete to inform signaling flow server, and signaling flow server receivesThe preparation response message that the second data stream server returns, and know that the second data stream server preparation is completeBecome.
For the second data stream server, receive that prepare after notification message will be according to user wherein eventuallyThe address information of end search before the mapping relations of storage, find the IP address of NAT device, for to useFamily terminal sends stream medium data and prepares, and after being ready to notice signaling streaming server.
Step 523, signaling flow server detect first data stream server preserve stream medium data broadcastDischarge into, send play instruction to the second data stream server, to indicate the second data stream server to useFamily terminal sends stream medium data.
Step 524, the second data stream server receive play instruction and determine and can send Streaming MediaAfter data, return and play response message to inform that signaling flow server starts broadcasting and flows to signaling flow serverMedia data.
Accordingly, signaling flow server receives the broadcasting response message that the second data flow is returned, and knowsTwo data stream servers have started to send stream medium data.
Step 525, the second data stream server are according to IP address and the user of the NAT device of storing beforeThe mapping relations of terminal, send stream medium data message by NAT device to user terminal.
The object IP address of stream medium data message is replaced with user terminal by step 526, NAT deviceObject IP is transmitted to user terminal behind address.
Wherein, because NAT device is according to sending to the second data stream server before user terminalKeepAlive message has been learnt the address of the second data stream server, therefore, in this step, NATEquipment can successfully be transmitted to user terminal by the stream medium data of the second data stream server. User terminalContinue to receive NAT device and forward the stream medium data that the second data stream server provides.
The streaming media resource acquisition methods of the present embodiment is mainly the signaling before a kind of extended flow media playMessage is logical in real time by the address information of next data stream server before data stream server changesAccuse the embodiment to user terminal. In the present embodiment, concrete by right under expansion RTSP agreementThe 200OK corresponding message that SETUP message is replied, will before data stream server changesThe address information of next data stream server is noticed to user terminal, but is not limited to this.
Further, when representing user terminal support, the change mark in DESCRIBE message returns to a numberDuring according to the address information of streaming server, signaling flow server can by a 200OK response message will underOne is about to provide the address information of the data stream server of service to return to user terminal to user terminal.
The flow chart of the streaming media resource acquisition methods that Fig. 6 provides for yet another embodiment of the invention. This enforcementExample realizes based on Fig. 1 and principle embodiment illustrated in fig. 2, in the present embodiment, signaling flow server withThe first data stream server is same streaming server, but in order more clearly to describe signaling flow serverWith the operation of the first data stream server, in Fig. 4, show respectively signaling flow server and the first dataStreaming server. As shown in Figure 6, the method for the present embodiment comprises:
Step 601, user terminal send Connection message by NAT device to signaling flow server,To set up TCP signaling link with signaling flow server.
The source IP address in Connection message is replaced with NAT device by step 602, NAT deviceIP address after be transmitted to signaling flow server.
Step 603, user terminal send DESCRIBE message by NAT device to signaling flow server,Described DESCRIBE message carries and changes mark. In this embodiment, change mark and represent that user eventuallyEnd permission signaling flow server returned to the second data stream server before data stream server changesAddress information.
The source IP address in DESCRIBE message is replaced with NAT device by step 604, NAT deviceIP address after be transmitted to signaling flow server. So far signaling flow server and user terminal are set up TCPSignaling link.
Step 605, signaling flow server send 200OK response by NAT device to user terminal and disappearBreath.
The object IP address of 200OK response message is replaced with user terminal by step 606, NAT deviceIP address after be transmitted to user terminal.
Step 607, user terminal send SETUP message by NAT device to signaling flow server.
Step 608, NAT device replace with the source IP address of SETUP message the IP of NAT deviceBehind address, be transmitted to signaling flow server.
Step 609, signaling flow server send 200OK response by NAT device to user terminal and disappearBreath. In the present embodiment, signaling flow server is identical with the first data stream server, therefore at 200OKIn response message, do not need to carry the address information of the first data stream server. If signaling flow server andOne data stream server is not same streaming server, and signaling flow server can be at 200OK response messageIn carry the information such as IP address and transmit port of the first data stream server that sends stream medium data.
The object IP address of 200OK response message is replaced with user terminal by step 610, NAT deviceIP address after be transmitted to user terminal.
Step 611, user terminal send KeepAlive by NAT device to the first data stream serverMessage. The source IP address of this KeepAlive message is the IP address of user terminal, and object IP address isThe IP address of the first data stream server. In the present embodiment, the IP address of the first data stream serverThe namely IP address of signaling flow server.
The source IP address of KeepAlive message is replaced with NAT device by step 612, NAT deviceAfter IP address, be transmitted to the first data stream server. Now, the first data stream server will be preserved receptionTo the source IP address (being the IP address of NAT device) of KeepAlive message, and and user terminalShine upon, and the follow-up stream medium data that sends to user terminal is sent to NAT device.
Step 613, user terminal send PLAY message by NAT device to signaling flow server.
Step 614, NAT device replace with the source IP address of PLAY message on the IP ground of NAT deviceBehind location, be transmitted to signaling flow server.
Step 615, signaling flow server send 200OK response by NAT device to user terminal and disappearBreath.
The object IP address of 200OK response message is replaced with user terminal by step 616, NAT deviceIP address after be transmitted to user terminal.
Step 617, the first data stream server send stream medium data by NAT device to user terminalMessage. The source IP address of this stream medium data message is the IP address of the first data stream server, objectIP address is the IP address of NAT device.
The object IP address of stream medium data message is replaced with user terminal by step 618, NAT deviceIP is transmitted to user terminal behind address.
Step 619, signaling flow server detect the stream medium data on the first data stream server,In the time detecting that stream medium data on the first data stream server just finishes playing apart from Preset Time, openBegin other data stream servers of inquiry to obtain next part by the stream medium data of playing, when inquiringNext part is about to the data stream server (i.e. the second data stream server) at the stream medium data place of playingTime, signaling flow server sends and prepares notification message to the second data stream server, so that the second data flowServer is prepared to send stream medium data to user terminal, and this preparation notification message carries user terminalAddress information etc.
Step 620, the second data stream server take to signaling flow after completing and being ready for sending stream medium dataBusiness device sends preparation response message and prepares to complete to inform signaling flow server, and signaling flow server receivesThe preparation response message that the second data stream server returns, and know that the second data stream server preparation is completeBecome.
Step 621, signaling flow server send to the first data stream server the second data flow service of carryingThe encapsulation Indication message of the address information of device. In the present embodiment, because the first data stream server isSignaling flow server, the operation of this transmission encapsulation Indication message is actually in signaling flow server insideComplete. This encapsulation Indication message carries the address information of the second data stream server.
Step 622, the first data stream server encapsulate the second data flow service in stream medium data messageAfter the address information of device, send to user terminal by NAT device. In the present embodiment, by convection current matchmakerVolume data message is expanded, and the address information of the second data stream server is encapsulated in the field of expansion.
Step 623, NAT replace with the object IP address of stream medium data message the IP of user terminalBehind address, be transmitted to user terminal.
Step 624, user terminal from the stream medium data message receiving, parse stream medium data withAnd the address information of the second data stream server, then according to the address information of the second data stream server,Send KeepAlive message by NAT device to the second data stream server. This KeepAlive disappearsThe object IP address of breath is the IP address of the second data stream server, the IP that source IP address is user terminalAddress.
The source IP address of KeepAlive message is replaced with NAT device by step 625, NAT deviceBehind IP address, be transmitted to the second data stream server. In this repeating process, NAT device judgement knows theThe IP address of two data stream servers is emerging IP addresses, by the IP of the second data stream serverAddress stores, and stores the IP address of the second data stream server, the IP address of user terminal simultaneouslyAnd mapping relations between the IP address of NAT device, so that the second data stream server is sentStream medium data forward.
Wherein, for the second data stream server, receive KeepAlive message, and by KeepAliveSource IP address in message and user terminal shine upon and preserve. The second data stream server to user eventuallyWhen end sends stream medium data, directly stream medium data is sent to NAT device.
Step 626, signaling flow server detect first data stream server preserve stream medium data broadcastDischarge into, send play instruction to the second data stream server, to indicate the second data stream server to useFamily terminal sends stream medium data.
Step 627, the second data stream server receive play instruction and determine and can send Streaming MediaAfter data, return and play response message to inform that signaling flow server starts broadcasting and flows to signaling flow serverMedia data.
Step 628, the second data stream server are according to IP address and the user of the NAT device of storing beforeThe mapping relations of terminal, send stream medium data message by NAT device to user terminal.
The object IP address of stream medium data message is replaced with user terminal by step 629, NAT deviceObject IP is transmitted to user terminal behind address.
Wherein, because NAT device is according to sending to the second data stream server before user terminalKeepAlive message has been learnt the address of the second data stream server, therefore, in this step, NATEquipment can successfully be transmitted to user terminal by the stream medium data of the second data stream server. User terminalContinue to receive NAT device and forward the stream medium data that the second data stream server provides.
The streaming media resource acquisition methods of the present embodiment is mainly that one is passed through in streaming media playing processReusing data passage growth data wrap in data stream server and occur to change before by next data flow clothesThe address information Real-time Notification of business device is to the embodiment of user terminal. In the present embodiment, specifically pass throughThe header field of the packet in the data channel under expansion RTSP agreement, becomes at data stream serverMore time, the address information of next data stream server is noticed to user terminal, but be not limited to this. ExampleAs: in the time adopting Real-time Transport Protocol, can be by the head of packet in the data channel under expansion Real-time Transport ProtocolPortion territory notices the address information of next data stream server to user terminal.
Further, when representing user terminal, the change mark in DESCRIBE message supports signaling flow serviceWhen device returns to the address information of multiple data stream servers, signaling flow server can also be by the stream of expansionThe head of media data message is by the ground of the multiple data stream servers including the second data stream serverLocation information returns to user terminal. Wherein, signaling flow server can be by the ground of multiple data stream serversLocation information is encapsulated in the extended head of a stream medium data message simultaneously and sends to user terminal, also canTo send to user terminal by multiple stream medium data message. Wherein, at the energy of stream medium data messageWhen power is allowed, the address information of multiple data stream servers is sent out by a stream medium data message simultaneouslyGiving user terminal and can save interaction flow, can improve the quality of streaming media service, therefore, is onePreferred embodiment. For user terminal, when receiving the address information of multiple data stream serversTime, all can by the processing mode of the second data stream server come with multiple data stream servers inEach data stream server connects in advance.
Above-mentioned Fig. 4, Fig. 5 and embodiment illustrated in fig. 6 in, signaling flow server is sent out according to user terminalChange mark in the resource request message sending, is providing the data stream server of service to send out to user terminalBefore changing more, the next one is about to provide for user terminal to the address information of the data stream server of serviceOffer user terminal, user terminal was activated in advance before next data stream server provides serviceAnd data channel between next data stream server, thereby ensure next data stream serverStream medium data can successfully send to user terminal, has solved in prior art in user terminal and dataWhile there is NAT device between streaming server, the stream medium data of next data stream server cannot be becomeMerit sends to the problem of user terminal, has improved the success rate of transmission of flow media data, has improved Streaming MediaThe quality of service.
The structural representation of the signaling flow server that Fig. 7 provides for one embodiment of the invention. As shown in Figure 7,The signaling flow server of the present embodiment comprises: the first receiver module 71 and the first sending module 72.
The first receiver module 71, the resource request message sending for receiving user terminal, described resource pleaseAsk message to carry and support the change mark that update data stream server changes. The first sending module 72, withOne receiver module 71 connects, for according to change mark, the first data stream server send preserveStream medium data before, return to change request message to user terminal, described change request message carriesHave and after the first data stream server sends preserved stream medium data, continue to send to user terminalThe address information of the second data stream server of stream medium data.
The signaling flow server of the present embodiment is mainly used in setting up signaling with user terminal and is connected, and controls wholeThe flow process of streaming media server, but also can there is the function of data stream server simultaneously, and at other streamIn media services process, provide stream medium data as data stream server to other user terminals.
Each functional module of above-mentioned signaling flow server can be used for streaming media resource provider shown in execution graph 1The flow process of method, its specific works principle repeats no more, and refers to the description of embodiment of the method.
The signaling flow server of the present embodiment, the change in the resource request message sending according to user terminalMark, before the data stream server that service is provided to user terminal changes, is about to the next oneOffer user terminal for user terminal provides the address information of the data stream server of service, make user eventuallyEnd activated in advance between next data stream server before next data stream server provides serviceData channel, thereby ensured that the stream medium data of next data stream server can successfully send toUser terminal, has solved in prior art and had NAT device between user terminal and data stream serverShi Wufa successfully sends to the stream medium data of next data stream server the problem of user terminal, carriesThe high success rate of transmission of flow media data, has improved the quality of streaming media service.
The structural representation of the signaling flow server that Fig. 8 provides for another embodiment of the present invention. The present embodimentRealize based on streaming server shown in Fig. 7, as shown in Figure 8, in the present embodiment, the first receiver module 71Specifically in streaming media service process, receive describing message or option message that user terminal sends,In described describing message or option message, encapsulate and changed mark.
A kind of implementation of the first sending module 72 comprises: the first transmitting element 721. First sends listUnit 721, for IP address and the transmit port of the second data stream server are packaged into notification message, andNotification message is sent to the NAT device being connected with user terminal, so that NAT device is by notification messageCarry out sending to user terminal after address transition.
The another kind of implementation of the first sending module 72 comprises: receiving element 722 and the second transmitting element723. Receiving element 722, sends out by the NAT device being connected with user terminal for receiving user terminalThat send sets up message. The second transmitting element 723, for encapsulating the second data flow setting up response messageIP address and the transmit port of server, and send to NAT device by setting up response message, so that NATEquipment is undertaken sending to user terminal after address transition by setting up response message.
Another implementation of the first sending module 72 comprises: the 3rd transmitting element 724. The 3rd sendsUnit 724, for sending the address information of carrying the second data stream server to the first data stream serverEncapsulation Indication message so that the first data stream server encapsulates the second data in stream medium data messageAfter the address information of streaming server, send to the NAT device being connected with user terminal, so that NAT deviceStream medium data message is carried out sending to user terminal after address transition.
Each function of above-mentioned the first receiver module 71 and the first sending module 72 and the first sending module 72In the streaming media resource acquisition methods that unit is respectively used to be realized by RTSP agreement shown in execution graph 4-Fig. 6Corresponding flow process, its specific works principle repeats no more, and refers to the description of embodiment of the method.
Further, when the change mark of carrying in the Streaming Media request message that user terminal sends represents userWhen the address information of multiple data stream servers is returned in terminal support, the first transmitting element 721 specifically forBy the IP address of the multiple data stream servers including the second data stream server and transmit port whileBe encapsulated in notification message. The second transmitting element 723 exists specifically for comprising the second data stream serverThe IP address of interior multiple data stream servers and transmit port are encapsulated in to be set up in response message. The 3rdSend unit 724 specifically for by the ground of the multiple data stream servers including the second data stream serverLocation Information encapsulation, in encapsulation Indication message, and sends to the first data stream server by encapsulation Indication message,So that the first data stream server encapsulates the address letter of multiple data stream servers in stream medium data messageAfter breath, send to NAT device, so that NAT device carries out stream medium data message to send out after address transitionGive user terminal.
Further, as shown in Figure 8, the signaling flow server of the present embodiment also comprises: the second sending module81 and second receiver module 82.
Wherein, the second sending module 81, is connected with the second data stream server 80, for counting firstBefore sending preserved stream medium data according to streaming server, send accurate to the second data stream server 80Standby notification message, so that the second data stream server 80 is prepared to send stream medium data, institute to user terminalState the address information that preparation notification message carries user terminal. The second receiver module 82, with the second dataStreaming server 80 connects, the preparation response message of returning for receiving the second data stream server 80.
Further, the signaling flow server of the present embodiment also comprises: the 3rd sending module 83 and the 3rd connectsReceive module 84.
Wherein, the 3rd sending module 83, is connected with the second data stream server 80, for counting firstAfter sending preserved stream medium data according to streaming server, send and broadcast to the second data stream server 80Put instruction, to indicate the second data stream server 80 to send stream medium data to user terminal. The 3rd receivesModule 84, is connected with the second data stream server 80, returns for receiving the second data stream server 80Broadcasting response message.
Wherein, above-mentioned each functional module can be used for shown in execution graph 4-Fig. 6 in streaming media resource acquisition methodsCorresponding flow process, its specific works principle repeats no more, and refers to the description of embodiment of the method.
The signaling flow server of the present embodiment, can carry out RTSP by above-mentioned each functional module or unitThe streaming media service flow process that agreement realizes, and can in streaming media service process, there is data stream serverWhen change, in time the next one is about to for the address information of the data road server of subscriber terminal service notice toUser terminal, so that user terminal activates the data channel between next data stream server in advance,Thereby ensure successfully to receive the stream medium data that next data stream server sends, improved Streaming MediaThe quality of service.
The structural representation of the signaling flow server that Fig. 9 provides for further embodiment of this invention. The present embodimentBased on realization embodiment illustrated in fig. 8, as shown in Figure 9, the signaling flow server of the present embodiment also comprises:The 4th receiver module 91, the 4th sending module 92 and the 5th sending module 93.
Wherein, the 4th receiver module 91, is connected with user terminal 90, at the first receiver module 71Before the resource request message that reception user terminal 90 sends, the detection that reception user terminal 90 sends pleaseAsk message, described probe request message is carried multi-data source and is surveyed mark. The 4th sending module 92, withFour receiver modules 91 connect, and for surveying mark according to multi-data source, send to multiple data stream serversSurvey Indication message, to indicate multiple data stream servers to send probe message to user terminal 90, described inSurvey the address information that Indication message carries user terminal 90. The 5th sending module 93, with user terminal90 connect, and for sending response detected message to user terminal 90, described response detected message carriesThe address information of multiple data stream servers.
Above-mentioned each functional module can be used for the flow process of method shown in execution graph 3, in advance to user terminalWhether supported data streaming server Notification of Changes is surveyed, and its specific works principle repeats no more, and refers toDescription embodiment illustrated in fig. 3.
Whether the signaling flow server of the present embodiment, prop up user terminal by above-mentioned each Implement of Function ModuleWhile being held in data stream server generation change, to the detection of its notice, be other each Implement of Function Modules stream matchmakersBody service function provides condition.
In this explanation, the signaling flow server that the various embodiments described above provide can have data flow service simultaneouslyThe function of device, and can in other streaming media service processes, provide to user terminal as data stream serverStream medium data.
The structural representation of the terminal device that Figure 10 provides for one embodiment of the invention. As shown in figure 10,The terminal device of the present embodiment comprises: the 6th sending module 11, the 5th receiver module 12 and the 7th sendModule 13.
Wherein, the 6th sending module 11, is connected with signaling flow server 10, for to signaling flow serviceDevice 10 sends resource request message, and described resource request message carries supports update data stream server to changeChange mark. The 5th receiver module 12, is connected with signaling flow server 10, for receiving signaling flowServer 10 according to change be identified at the first data stream server send preserved stream medium data itBefore the change request message that returns, described change request message carries at the first data stream server and sendsAfter complete preserved stream medium data, continue the address of the second data stream server that sends stream medium dataInformation. The 7th sending module 13, is connected with the 5th receiver module 12, for taking according to the second data flowThe address information of business device, sends keep-alive message to the second data stream server, with in the second data flow serviceDevice activates the data channel between the second data stream server before continuing to send stream medium data.
Signaling flow server in the present embodiment can be the signaling flow server of Fig. 7-Fig. 9 shown in arbitrary,Its specific works principle and structure repeat no more. The terminal device of the present embodiment can be shown in Fig. 1-Fig. 6User terminal in method, specifically can be used for the flow process of streaming media resource acquisition methods shown in execution graph 2,Its specific works principle repeats no more, and refers to description embodiment illustrated in fig. 2.
The terminal device of the present embodiment, sends resource request message to signaling flow server, makes signaling flow clothesBusiness device is identified at the next number that is about to provide for terminal device service according to the change in resource request messageBefore providing service according to streaming server, return to the address information of next data stream server to terminal device,Make the address information that terminal device returns according to signaling flow server send and protect according to streaming server to next numberMessage alive, to activate in advance before providing service at next data stream server and next data flow clothesData channel between business device, thus ensure successfully to receive the Streaming Media that next data stream server sendsData, have solved while there is NAT device in prior art between terminal device and data stream server,Terminal device cannot receive the problem of the stream medium data of next data stream server transmission, has improved streamThe success rate of media data transmission, has improved the quality of streaming media service.
The structural representation of the terminal device that Figure 11 provides for another embodiment of the present invention. The present embodiment based onTerminal device shown in Figure 10 is realized, as shown in figure 11, in the present embodiment, the 6th sending module 11 toolsBody, for changing mark in describing message or option message encapsulation, sends encapsulation to signaling flow server 10Change mark describing message or option message.
Further, the 7th sending module 13 is specifically for by the address information of terminal device and the second data flowThe address information of server is encapsulated in keep-alive message, and keep-alive message is sent to terminal device and is connectedNetwork address translation apparatus so that network address translation apparatus obtains and preserves second in keep-alive messageThe address information of data stream server and the address information of terminal device, then carry out address by keep-alive messageAfter conversion, send to the second data stream server.
Further, when representing terminal device support, change mark returns to the address of multiple data stream serversWhen information, change request message also carry in multiple data stream servers except the second data stream server itThe address information of other outer data stream servers. Now, the 7th sending module 13 will be specifically for respectivelyThe address information of each data stream server and the address information of terminal device envelope in multiple data stream serversBe contained in a keep-alive message, and keep-alive message is sent to NAT device, so that NAT device obtainsThe address information of each data stream server and terminal device in multiple data stream servers in keep-alive messageAddress information address information and the terminal of preserving each data stream server in multiple data stream servers are establishedStandby address information, then carries out address transition by multiple keep-alive message of obtaining, and by after address transitionKeep-alive message send to respectively each data stream server.
Above-mentioned each functional module is specifically for the phase in streaming media resource acquisition methods shown in execution graph 4-Fig. 6Answer flow process, specifically for carrying out the streaming media service flow process being realized by RTSP agreement, its specific works is formerReason repeats no more, and refers to the description in embodiment of the method.
Further, as shown in figure 11, the terminal device of the present embodiment also comprises: the 8th sending module14, the 6th receiver module 15, judge module 16, the 9th sending module 17 and the 7th receiver module 18.
Concrete, the 8th sending module 14, is connected with signaling flow server 10, for sending the 6thModule 11 sends to signaling flow server 10 before sending resource request message to signaling flow server 10Probe request message, described probe request message carries most sources and surveys mark. The 6th receiver module 15,Be connected with signaling flow server 10, return according to most sources detection marks for receiving signaling flow server 10The response detected message of returning, described response detected message carries the address information of multiple data stream servers.Judge module 16, receives multiple data stream servers according to the spy of signaling flow server for judging whetherSurvey the probe message that Indication message sends, described detection Indication message carries the destination address of probe message.The 9th sending module 17, is connected with judge module 16 and signaling flow server 10, at judge moduleWhen 16 judged result is no, the notice request of carrying change mark to 10 transmissions of signaling flow server disappearsBreath. The 7th receiver module 18, is connected with signaling flow server 10, for receiving signaling flow server 10The notice response message of returning.
Above-mentioned each functional module can be used for the stream of the multiple data stream server detection method shown in execution graph 3Journey, its specific works principle repeats no more, and refers to description embodiment illustrated in fig. 3.
The terminal device of the present embodiment matches with signaling flow server by above-mentioned functions module, advanced in advanceWhether row multiple data stream server is surveyed flow process needs signaling flow server at data stream server to judgeOccur to notice to it while change, carry out streaming media service for other functional modules and lay the foundation, forImprove transmission of flow media data success rate and improve streaming media service quality and lay the foundation.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodimentCan complete by the relevant hardware of programmed instruction, aforesaid program can be stored in a computer-readableGet in storage medium, this program, in the time carrying out, is carried out the step that comprises said method embodiment; And it is aforementionedStorage medium comprise: various Jie that can be program code stored such as ROM, RAM, magnetic disc or CDMatter.
Finally it should be noted that: above embodiment is only in order to technical scheme of the present invention to be described, but not to itRestriction; Although the present invention is had been described in detail with reference to previous embodiment, the ordinary skill of this areaPersonnel are to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, orPerson is equal to replacement to part technical characterictic wherein; And these amendments or replacement do not make corresponding skillThe essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (29)

1. a streaming media resource supplying method, is characterized in that, comprising:
Receive the resource request message that user terminal sends, described resource request message carries supports to upgrade numberThe change mark changing according to streaming server;
According to described change mark, the first data stream server send preserved stream medium data itBefore, returning to change request message to described user terminal, described change request message carries describedOne data stream server continues to send stream to described user terminal after sending preserved stream medium dataThe address information of the second data stream server of media data;
Before the resource request message that described reception user terminal sends, comprise:
Receive the probe request message that described user terminal sends, described probe request message is carried most certificatesMark is surveyed in source;
Survey mark according to described multi-data source, send and survey Indication message to multiple data stream servers,To indicate described multiple data stream server to send probe message to described user terminal, described detection instructionMessage is carried the address information of described user terminal;
Send response detected message to described user terminal, described response detected message carries described multipleThe address information of data stream server.
2. streaming media resource supplying method according to claim 1, is characterized in that, described receptionThe resource request message that user terminal sends comprises:
Receive describing message or option message that described user terminal sends, described describing message or option disappearIn breath, encapsulate described change mark.
3. streaming media resource supplying method according to claim 2, is characterized in that, described basisDescribed change mark, before the first data stream server sends preserved stream medium data, to instituteState user terminal return change request message comprise:
Signaling flow server is by the Internet protocol IP address of described the second data stream server and transmit port envelopeDress up notification message, and send to the network address being connected with described user terminal to turn described notification messageExchange device;
Described network address translation apparatus carries out described notification message to send to described user after address transitionTerminal.
4. streaming media resource supplying method according to claim 2, is characterized in that, described basisDescribed change mark, before the first data stream server sends preserved stream medium data, to instituteState user terminal return change request message comprise:
Signaling flow server receives described user terminal and turns by the network address being connected with described user terminalWhat exchange device sent sets up message;
Described signaling flow server encapsulates the internet of described the second data stream server setting up in response messageProtocol IP address and transmit port, and send to described network address translation to establish the described response message of setting upStandby;
Described network address translation apparatus is set up described in response message carries out sending to after address transition describedUser terminal.
5. streaming media resource supplying method according to claim 2, is characterized in that, described basisDescribed change mark, before the first data stream server sends preserved stream medium data, to instituteState user terminal return change request message comprise:
Signaling flow server sends and carries described the second data stream server to described the first data stream serverThe encapsulation Indication message of address information;
Described the first data stream server encapsulates described the second data stream server in stream medium data messageAddress information after send to the network address translation apparatus being connected with described user terminal;
Described network address translation apparatus carries out described stream medium data message to send to institute after address transitionState user terminal.
6. streaming media resource supplying method according to claim 3, is characterized in that, when described changeWhen more mark represents that the address information of multiple data stream servers is returned in described user terminal support, described letterMake streaming server that the Internet protocol IP address of described the second data stream server and transmit port are packaged into logicalKnow that message comprises:
Described signaling flow server is by the multiple data flow services including described the second data stream serverIP address and the transmit port of device are encapsulated in described notification message simultaneously.
7. streaming media resource supplying method according to claim 4, is characterized in that, when described changeWhen more mark represents that the address information of multiple data stream servers is returned in described user terminal support, described letterMake streaming server setting up the Internet protocol IP address that encapsulates described the second data stream server in response messageComprise with transmit port:
Described signaling flow server is by the multiple data flow services including described the second data stream serverIP address and the transmit port of device are encapsulated in described foundation in response message simultaneously.
8. streaming media resource supplying method according to claim 5, is characterized in that, when described changeWhen more mark represents that the address information of multiple data stream servers is returned in described user terminal support, described letterMake streaming server send the address of carrying described the second data stream server to described the first data stream serverThe encapsulation Indication message of information comprises: described signaling flow server will comprise described the second data stream serverBe encapsulated in described encapsulation Indication message in the address information of interior multiple data stream servers, and described in inciting somebody to actionEncapsulation Indication message sends to described the first data stream server;
Described the first data stream server encapsulates described the second data stream server in stream medium data messageAddress information after send to and connect the network address translation apparatus of described user terminal and comprise: described firstData stream server encapsulates the address letter of described multiple data stream servers in described stream medium data messageAfter breath, send to described network address translation apparatus.
9. according to the streaming media resource supplying method described in claim 1-8 any one, it is characterized in that,Before sending preserved stream medium data, described the first data stream server also comprises:
Send and prepare notification message to described the second data stream server, so that described the second data flow serviceDevice is prepared to send stream medium data to described user terminal, and described preparation notification message carries described userThe address information of terminal;
Receive the preparation response message that described the second data stream server returns.
10. streaming media resource supplying method according to claim 9, is characterized in that, describedThe first data stream server comprises after sending preserved stream medium data:
Send play instruction to described the second data stream server, to indicate described the second data stream serverSend stream medium data to described user terminal;
Receive the broadcasting response message that described the second data stream server returns.
11. according to the streaming media resource supplying method described in claim 3-8 any one, it is characterized in that,Described signaling flow server is identical with described the first data stream server.
12. 1 kinds of streaming media resource acquisition methods, is characterized in that, comprising:
Send resource request message to signaling flow server, described resource request message carries supports to upgrade numberThe change mark changing according to streaming server;
Receiving described signaling flow server is identified at the first data stream server according to described change and sends instituteThe change request message returning before the stream medium data of preserving, described change request message carries in instituteStating the first data stream server sends and continues to send stream medium data after preserved stream medium dataThe address information of the second data stream server;
According to the address information of described the second data stream server, send to described the second data stream serverKeep-alive message, with continue to send at described the second data stream server activate before stream medium data with described inData channel between the second data stream server;
Describedly send before resource request message and comprise to signaling flow server:
Send probe request message to described signaling flow server, described probe request message carries majorityMark is surveyed in source;
Receive described signaling flow server and survey according to described most sources the response detected message that mark is returned,Described response detected message carries the address information of multiple data stream servers;
Judging whether to receive described multiple data stream server refers to according to the detection of described signaling flow serverShow the probe message that message sends, described detection Indication message carries the destination address of described probe messageInformation;
When judged result is not when receiving described probe message, send and carry to described signaling flow serverThe notice request message of described change mark;
Receive the notice response message that described signaling flow server returns.
13. streaming media resource acquisition methods according to claim 12, is characterized in that, described toSignaling flow server sends resource request message and comprises:
User terminal encapsulates described change mark in describing message or option message, to described signaling flow clothesBusiness device sends the describing message or the option message that have encapsulated described change mark.
14. streaming media resource acquisition methods according to claim 12, is characterized in that describedAccording to the address information of described the second data stream server, send Streaming Media to described the second data stream serverRequest message, with continue to send at described the second data stream server activate before stream medium data with described inData channel between the second data stream server comprises:
User terminal is by the address letter of the address information of described user terminal and described the second data stream serverBreath is encapsulated in keep-alive message, and described keep-alive message is sent to the network being connected with described user terminalAddress-translating device;
Described network address translation apparatus obtains the ground of the second data stream server described in described keep-alive messageThe address information of location information and described user terminal the address information of preserving described the second data stream serverWith the address information of described user terminal, then described keep-alive message is carried out sending to institute after address transitionState the second data stream server.
15. streaming media resource acquisition methods according to claim 14, is characterized in that, when describedChange and identify while representing that the address information of multiple data stream servers is returned in described user terminal support, described inChange request message also carry in described multiple data stream server except described the second data stream server itThe address information of other outer data stream servers;
Described user terminal is by the ground of the address information of described user terminal and described the second data stream serverLocation Information encapsulation, in keep-alive message, and sends to described keep-alive message to be connected with described user terminalNetwork address translation apparatus, comprising:
Described user terminal is respectively by the address of each data stream server in described multiple data stream serversThe address information of information and described user terminal is encapsulated in a described keep-alive message, and by described keep-aliveMessage sends to described network address translation apparatus;
Described network address translation apparatus obtains the ground of the second data stream server described in described keep-alive messageThe address information of location information and described user terminal the address information of preserving described the second data stream serverWith the address information of described user terminal, then described keep-alive message is carried out sending to institute after address transitionState the second data stream server, comprising:
Described network address translation apparatus obtains described in described keep-alive message every in multiple data stream serversThe address information of individual data stream server and the address information of described user terminal are also preserved described multiple dataThe address information of each data stream server and the address information of described user terminal in streaming server, thenThe multiple described keep-alive message of obtaining is carried out to address transition, and by the keep-alive message after address transition respectivelySend to described each data stream server.
16. 1 kinds of signaling flow servers, is characterized in that, comprising:
The first receiver module, the resource request message sending for receiving user terminal, described resource requestMessage is carried the change mark of supporting that update data stream server changes;
The first sending module, for according to described change mark, sends institute at the first data stream serverBefore the stream medium data of preserving, return to change request message to described user terminal, described change requestMessage carry after described the first data stream server sends preserved stream medium data continue toDescribed user terminal sends the address information of the second data stream server of stream medium data;
Also comprise:
The 4th receiver module, the resource sending for receive described user terminal at described the first receiver moduleBefore request message, receive the probe request message that described user terminal sends, described probe request messageCarry multi-data source and survey mark;
The 4th sending module, for surveying mark according to described multi-data source, to multiple data stream serversSend and survey Indication message, to indicate described multiple data stream server to send and survey to described user terminalMessage, described detection Indication message carries the address information of described user terminal;
The 5th sending module, for sending response detected message, described response detected to described user terminalMessage carries the address information of described multiple data stream servers.
17. signaling flow servers according to claim 16, is characterized in that, described first receivesDescribing message or option message that module sends specifically for receiving described user terminal, described describing messageOr in option message, encapsulate described change mark.
18. signaling flow servers according to claim 17, is characterized in that, described first sendsModule comprises:
The first transmitting element, for by Internet protocol IP address and the transmission of described the second data stream serverPort is packaged into notification message, and described notification message is sent to the network being connected with described user terminalAddress-translating device, so that described network address translation apparatus carries out described notification message after address transitionSend to described user terminal.
19. signaling flow servers according to claim 17, is characterized in that, described first sendsModule comprises:
Receiving element, for receiving described user terminal by the network address being connected with described user terminalWhat conversion equipment sent sets up message;
The second transmitting element, for setting up response message and encapsulating the net of described the second data stream serverProtocol IP address, border and transmit port, and the described response message of setting up is sent to described network address translationEquipment, so that described network address translation apparatus carries out the described response message of setting up to send after address transitionGive described user terminal.
20. signaling flow servers according to claim 17, is characterized in that, described first sendsModule comprises:
The 3rd transmitting element, for sending and carry described the second data flow to described the first data stream serverThe encapsulation Indication message of the address information of server, so that described the first data stream server is at Streaming Media numberSend to described user terminal and connect according to encapsulating in message after the address information of described the second data stream serverThe network address translation apparatus connecing, so that described network address translation apparatus is by described stream medium data messageCarry out sending to described user terminal after address transition.
21. signaling flow servers according to claim 18, is characterized in that, when described change markKnow while representing that the address information of multiple data stream servers is returned in described user terminal support described firstSend unit specifically for by the IP of the multiple data stream servers including described the second data stream serverAddress and transmit port are encapsulated in described notification message simultaneously.
22. signaling flow servers according to claim 19, is characterized in that, when described change markKnow while representing that the address information of multiple data stream servers is returned in described user terminal support described secondSend unit specifically for by the IP of the multiple data stream servers including described the second data stream serverAddress and transmit port are encapsulated in described foundation in response message.
23. signaling flow servers according to claim 20, is characterized in that, when described change markKnow while representing that the address information of multiple data stream servers is returned in described user terminal support described the 3rdSend unit specifically for by the ground of the multiple data stream servers including described the second data stream serverLocation Information encapsulation, in described encapsulation Indication message, and sends to described first by described encapsulation Indication messageData stream server, so that described the first data stream server encapsulates in stream medium data message is described manyAfter the address information of individual data stream server, send to described network address translation apparatus, so that described networkAddress-translating device carries out described stream medium data message to send to described user terminal after address transition.
24. according to the signaling flow server described in claim 16-23 any one, it is characterized in that, alsoComprise:
The second sending module, for sending preserved Streaming Media number at described the first data stream serverAccording to before, send and prepare notification message to described the second data stream server, so that described the second data flowServer is prepared to send stream medium data to described user terminal, described in described preparation notification message carriesThe address information of user terminal;
The second receiver module, the preparation response message of returning for receiving described the second data stream server.
25. signaling flow servers according to claim 24, is characterized in that, also comprise:
The 3rd sending module, for sending preserved Streaming Media number at described the first data stream serverAccording to after, send play instruction to described the second data stream server, to indicate described the second data flow clothesBusiness device sends stream medium data to described user terminal;
The 3rd receiver module, the broadcasting response message of returning for receiving described the second data stream server.
26. 1 kinds of terminal devices, is characterized in that, comprising:
The 6th sending module, for sending resource request message, described resource request to signaling flow serverMessage is carried the change mark of supporting that update data stream server changes;
The 5th receiver module, is identified at the first number for receiving described signaling flow server according to described changeSend the change request message returning before preserved stream medium data, described change according to streaming serverRequest message carries after described the first data stream server sends preserved stream medium data and continuesSupervention send the address information of the second data stream server of stream medium data;
The 7th sending module, for according to the address information of described the second data stream server, to describedTwo data stream servers send keep-alive message, to continue to send Streaming Media at described the second data stream serverBefore data, activate the data channel between described the second data stream server;
Also comprise:
The 8th sending module, for sending resource at described the 6th sending module to described signaling flow serverBefore request message, send probe request message, described probe request message to described signaling flow serverCarry most sources and survey mark;
The 6th receiver module, returns according to described most sources detection marks for receiving described signaling flow serverThe response detected message of returning, described response detected message carries the address information of multiple data stream servers;
Judge module, receives described multiple data stream server according to described signaling flow for judging whetherThe probe message that the detection Indication message of server sends, described detection Indication message carries described detectionThe destination address of message;
The 9th sending module, when being no in the judged result of described judge module, to described signaling flowServer sends the notice request message that carries described change mark;
The 7th receiver module, the notice response message of returning for receiving described signaling flow server.
27. terminal devices according to claim 26, is characterized in that, described the 6th sending moduleSpecifically for encapsulate described change mark in describing message or option message, to described signaling flow serverTransmission has encapsulated describing message or the option message of described change mark.
28. terminal devices according to claim 26, is characterized in that, described the 7th sending moduleFor the address information of the address information of described terminal device and described the second data stream server is encapsulated inIn keep-alive message, and described keep-alive message is sent to the network address translation being connected with described terminal deviceEquipment, so that described network address translation apparatus obtains and preserves described the second number in described keep-alive messageAccording to the address information of streaming server and the address information of described terminal device, then described keep-alive message is enteredAfter row address conversion, send to described the second data stream server.
29. terminal devices according to claim 28, is characterized in that, when described change label tableShow that, when the address information of multiple data stream servers is returned in described terminal device support, described change request disappearsBreath also carries the number of other except described the second data stream server in described multiple data stream serverAccording to the address information of streaming server;
Described the 7th sending module is specifically for respectively by each data flow in described multiple data stream serversThe address information of server and the address information of described terminal device are encapsulated in a described keep-alive message,And described keep-alive message is sent to described network address translation apparatus, so that described network address translation is establishedStandby obtain described in described keep-alive message the address of each data stream server letter in multiple data stream serversThe address information of breath and described terminal device is also preserved each data flow clothes in described multiple data stream serverThe business address information of device and the address information of described terminal device, then disappear the multiple described keep-alive of obtainingBreath carries out address transition, and the keep-alive message after address transition is sent to respectively to described each data flow clothesBusiness device.
CN201110218034.4A 2011-08-01 2011-08-01 Streaming media resource provides and acquisition methods, signaling flow server and terminal device Active CN102917078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110218034.4A CN102917078B (en) 2011-08-01 2011-08-01 Streaming media resource provides and acquisition methods, signaling flow server and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110218034.4A CN102917078B (en) 2011-08-01 2011-08-01 Streaming media resource provides and acquisition methods, signaling flow server and terminal device

Publications (2)

Publication Number Publication Date
CN102917078A CN102917078A (en) 2013-02-06
CN102917078B true CN102917078B (en) 2016-05-18

Family

ID=47615308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110218034.4A Active CN102917078B (en) 2011-08-01 2011-08-01 Streaming media resource provides and acquisition methods, signaling flow server and terminal device

Country Status (1)

Country Link
CN (1) CN102917078B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847400A (en) * 2016-04-25 2016-08-10 乐视控股(北京)有限公司 Business changing method and system based on agent server
CN110557272B (en) * 2018-06-04 2022-11-25 杭州海康威视数字技术股份有限公司 Data stream transmission method and device, computer readable storage medium and server
CN113489700B (en) * 2021-06-28 2023-05-09 聚好看科技股份有限公司 Method, server and terminal equipment for acquiring media asset data
CN113612735B (en) * 2021-07-15 2022-09-02 中国联合网络通信集团有限公司 Secure storage system
CN114520687B (en) * 2022-02-17 2023-11-03 深圳震有科技股份有限公司 Audio data processing method, device and equipment applied to satellite system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005039146A2 (en) * 2003-10-20 2005-04-28 Nokia Corporation System, method and computer program product for downloading pushed content
CN101686228A (en) * 2008-09-27 2010-03-31 中兴通讯股份有限公司 Multimedia slicing switching method and system based on content slicing
CN102137140A (en) * 2010-10-08 2011-07-27 华为软件技术有限公司 Method, device and system for processing streaming services

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005039146A2 (en) * 2003-10-20 2005-04-28 Nokia Corporation System, method and computer program product for downloading pushed content
CN101686228A (en) * 2008-09-27 2010-03-31 中兴通讯股份有限公司 Multimedia slicing switching method and system based on content slicing
CN102137140A (en) * 2010-10-08 2011-07-27 华为软件技术有限公司 Method, device and system for processing streaming services

Also Published As

Publication number Publication date
CN102917078A (en) 2013-02-06

Similar Documents

Publication Publication Date Title
CN102917078B (en) Streaming media resource provides and acquisition methods, signaling flow server and terminal device
CN101189844B (en) Method, server and system for notification
US11044593B2 (en) Method and devices for managing constrained devices
CN106911664B (en) Session initiation Protocol (SIP) router
US20100311401A1 (en) Communication session transfer from one communication device to another based on location correlated to time
CN104396217B (en) Geographic messages receive and dispatch Register and correlation technique
CN102045409B (en) Network penetrating method and network communication system
RU2008130135A (en) ASSOCIATION OF THE INTERNET PROTOCOL AND MOBILITY METHOD
US9706557B2 (en) Signaling of MGW identify in SIP-I
EP4038851B1 (en) Methods and apparatus for enabling remote management of a profile in an identity module
CN101411158B (en) Connection optimisation between a mobile communication terminal and a signalling server across a network address translator
WO2020001609A1 (en) Network registration method, apparatus, and system
CN101411162A (en) Learning address binding expiry time in an address translation device for a SIP signalling server
CN102761440A (en) Method for establishing channel for managing IPv4 terminal and network gateway
CN108243026A (en) Lan device communication management method, system and gateway device
WO2015027721A1 (en) Terminal status subscription method, apparatus and system
CN108123912A (en) A kind of micro services system for supporting P2P
CN102957728B (en) Management session establishment method, customer-premises equipment and automatic configuration server
CN101202710A (en) Method and system for processing message sending report as well as entity and terminal for intercommunication of message
US8305968B2 (en) Solicitation triggers for opening a network link
US9462060B2 (en) System and method for sending notification message to a mobile station using session initiation protocol (SIP)
CN103346919A (en) Method and system for uniformly managing wireless terminals to access CPE of equipment
CN102158991A (en) Method and device for managing device
CN108834092A (en) A kind of method and system for realizing VoWiFi communication service based on OTT
US8571022B1 (en) Packet filtering by session setup association in a wireless communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200311

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: Kokusai Hotel No. 11 Nanjing Avenue in the flora of 210012 cities in Jiangsu Province

Patentee before: Huawei Technologies Co.,Ltd.

TR01 Transfer of patent right