CN102523531A - Access entity which processes session in video on demand system and method thereof - Google Patents

Access entity which processes session in video on demand system and method thereof Download PDF

Info

Publication number
CN102523531A
CN102523531A CN2011104054952A CN201110405495A CN102523531A CN 102523531 A CN102523531 A CN 102523531A CN 2011104054952 A CN2011104054952 A CN 2011104054952A CN 201110405495 A CN201110405495 A CN 201110405495A CN 102523531 A CN102523531 A CN 102523531A
Authority
CN
China
Prior art keywords
tcp
video server
video
session
management module
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.)
Pending
Application number
CN2011104054952A
Other languages
Chinese (zh)
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.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
SHENZHEN TONGZHOU VIDEO MEDIA 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 SHENZHEN TONGZHOU VIDEO MEDIA CO Ltd filed Critical SHENZHEN TONGZHOU VIDEO MEDIA CO Ltd
Priority to CN2011104054952A priority Critical patent/CN102523531A/en
Publication of CN102523531A publication Critical patent/CN102523531A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses an access entity which processes a session in a video on demand system and a method thereof. The access entity of the video on demand system is provided with a connection pool. In the connection pool, at least one TCP connection is established between the access entity and a video server, and the quantity of the video server is at least one. When a video demand of a digital television reception terminal is received, one TCP connection between the connection pool and the determined video server which provides a video service is selected from the connection pool to carry out session interaction. A reliable transmission layer protocol is employed, and stability of an on demand video is ensured. Since the TCP connection established in advance is not established for each session, the TCP connection can process different sessions at different time periods, thus a plurality of sessions can share one TCP connection, a maximum session number supported by the access entity is increased, and the capability of carrying out parallel processing of sessions of the access entity in the video on demand system is raised.

Description

Handle the access entity and the method for session in the video on-demand system
Technical field
The present invention relates to the video request program field, handle the access entity and the method for session in particularly a kind of video on-demand system.
Background technology
Session between the entity in the video on-demand system of current main-stream is based on transmission control protocol (TCP, Transmission Control Protocol) realization.The user is through the receiving terminal for digital television request program; The receiving terminal for digital television here is a receiving terminal for digital television; Can be for STB etc., the medium access platform of receiving terminal for digital television and network side (MAP, Media Access Platform) is set up TCP and is connected.The TCP connection that receiving terminal for digital television passes through to be set up is sent foundation (SETUP) request message to MAP and is set up session, and MAP is this request application video server resources such as (VS, Video Server) after receiving the SETUP request message.After the resource bid success, MAP and selected VS set up that TCP is connected and in the TCP connection transmission SETUP request message set up session, asking VS is that receiving terminal for digital television provides video.After VS received this SETUP request message, receiving terminal for digital television just can be for carrying out session interaction through MAP and VS, the video that program request VS provides.Provide in the process of video at VS, receiving terminal for digital television and MAP, MAP will be connected through the TCP that sets up respectively with session between the VS and carry out, and the TCP connection of behind conversation end, being set up just can be broken off.
For the session between receiving terminal for digital television and the MAP, different receiving terminal for digital television will be set up different TCP respectively with MAP and connect, and can't set up a TCP and connect the session that realizes between different digital television receive terminal and the MAP.For the session between MAP and the VS,, also need set up different session connections for different sessions according to such scheme.For realize and receiving terminal for digital television or VS between different sessions; MAP just need set up one group or several groups of threads respectively foundation be connected with TCP between receiving terminal for digital television and the VS; Like this for communicating by letter between MAP and the VS; A thread just needs a plurality of different sessions of management, will carry out as a plurality of sessions, when just carrying out information receiving and transmitting through different TCP connections; The thread of MAP just needs repeating query ground to socket mouth (socket) write data of carrying these information interactions or read data and processing, and concrete sketch map is as shown in Figure 1.Fig. 1 carries the TCP syndeton sketch map of session for the video on-demand system that prior art provides.In Fig. 1, MAP has N thread, each thread management a plurality of TCP connect, these a plurality of TCP connect comprise with STB (STB) between TCP be connected and be connected session of carrying in each TCP connection with TCP between the VS.When certain session was carried out, the thread of the TCP connection of this session was carried in the MAP management, can be polled to this session related information mutual socket write data or read data, handles this session.
In such scheme, when for receiving terminal for digital television video playback being provided, MAP sets up a session respectively with STB and VS respectively, just needs foundation respectively to be connected with TCP between STB and the VS.If for based on VOD system (NGOD of future generation; Next Generation On Demand), network side increases a lot of entities again newly, wherein is equivalent to the session manager (SM of MAP; Session Manager) need with navigation server (NS; Navigation Server), edge resource manager (ERM, Edge Resource Manager), on-demand assets manager (ODRM, On Demand Resource Manager), network resource manager (NRM; Network Resource Manager), encrypt asset manager (EnRM; Encryption Resource Manager and plug-flow server (SS, Streaming Server) are set up session respectively, at this moment just need 7 TCP to connect.If MAP and VS adopt the LINUX system; A process can be set up 65535 TCP and connect; The port maximum number is 65535, but a part keeps, so the TCP linking number that in fact can set up is less than 65535 far away; At most also just can only support several thousand sessions for MAP, this will have a strong impact on the concurrent performance of MAP.In addition; When the thread of MAP is being handled TCP and is being connected; Adopt be repeating query ground to socket mouth socket write data or read data and handle, after handling again the socket that connects of another TCP of hand-off process carry out write data or read data and handle, switching like this to waste a lot of times; Can increase the burden of MAP undoubtedly, reduce performance.
Because the access entity of video on-demand system is lower such as the performance of the SM among MAP or the NGOD when setting up the TCP connection, just need increase cost and increase maintenance cost at the access entity of many same types of network side multi-section administration.
For the access entity that solves above-mentioned video on-demand system is being set up the problem that occurs when TCP connects; Can adopt the information of transmission control protocol (UDP, User Datagram Protocol) transmission session, as shown in Figure 2; Fig. 2 carries the UDP channel design sketch map of session for the video on-demand system that prior art provides; Such as when setting up session between MAP and the VS, do not set up TCP and connect, but carry out the foundation of session through UDP.Promptly on MAP, be provided with and handle UDP message threads group, by this sets of threads set up and VS between the UDP passage, it is mutual to carry out the session related news through this UDP passage.But; It is a kind of insecure transport layer protocol that also there is shortcoming: UDP in this mode; If network congestion or instability appear in video on-demand system, the situation that the session related news are lost will appear, influence the stability of receiving terminal for digital television order video; In order to address this problem; Just need retransmission mechanism be set at the access entity that carries out the mutual video on-demand system of conversation message with UDP, carry out the detection and the re-transmission of information interaction, this has increased the realization difficulty and the complexity of access entity of carrying out the video on-demand system of information interaction with UDP undoubtedly.
Therefore, carry out in the video request-program process, how under the prerequisite that guarantees program request video stabilization property, improve the parallel processing session ability of the access entity in the video on-demand system, become a problem demanding prompt solution at receiving terminal for digital television.
Summary of the invention
In view of this, the present invention provides the access entity of handling session in a kind of video on-demand system, and this inserts entity can improve the parallel processing session ability of the access entity in the video on-demand system under the prerequisite that guarantees program request video stabilization property.
The present invention also provides the method for handling session in a kind of video on-demand system, and this method can improve the parallel processing session ability of the access entity in the video on-demand system under the prerequisite that guarantees program request video stabilization property.
For achieving the above object, the technical scheme that the present invention implements specifically is achieved in that
Handle the method for session in a kind of video on-demand system, insert entity connection pool is set, in this connection pool, and set up a transmission control protocol TCP between the video server at least and be connected, said video server is at least one, and this method comprises:
Insert the video request program request that entity receiving digital television receiving terminal sends, confirm as the video server that this request provides Video service according to described request;
In connection pool, select with a TCP between definite video server be connected, through selected TCP connection described request is transmitted to definite video server.
Said selection with the process that is connected of a TCP between definite video server be:
According to the definite video server sign of institute; In connection pool, find video server with identical said sign; Select a TCP to connect being connected to use with inserting a plurality of TCP between the entity from the video server that finds, the TCP of said selection is connected to present load and connects the lightest TCP connection.
Said with described request be transmitted to the institute definite video server after, also comprise:
Receive the video request program response of returning after the definite video server of institute is handled, this response is to connect through said selected TCP to send to the access entity;
TCP through with said receiving terminal for digital television foundation is connected, and the video request program response that receives is sent to receiving terminal for digital television.
Said in connection pool, select with before a TCP between definite video server is connected, also comprise:
Judgement in connection pool, whether exist with the TCP between definite video server be connected, if, carry out in connection pool, select and a TCP step of connecting between definite video server; If not, in connection pool with institute definite video server between set up at least one TCP and be connected after, carry out in connection pool selection and a TCP step of connecting between definite video server.
The said connection through selected TCP is transmitted to definite video server with described request; And said this response is to connect through said selected TCP that to send to the process that inserts entity be the socket socket that said selected TCP connects to be carried out the session interaction data write handle, and processing procedure is:
On the access entity, two groups of threads are set, one group of thread is used for the socket that this selected TCP connects is carried out the processing of reading of session interaction data, and the receiver, video order request is responded; Another group thread is used for the socket that this selected TCP connects is carried out the processing of writing of session interaction data, sends the video request program request.
This method also comprises: insert the TCP connection that entity regularly detects the foundation in the connection pool; Connect and connect again when unusual when detecting TCP; Perhaps unusual TCP is connected in other TCP connection in the connection pool of the conversation shift that carried, it is identical that said other TCP connect the video server that is connected to said unusual TCP connection.
Session related news in said other TCP connections of moving in the connection pool send to the video server that is connected with said other TCP through the SETPARAMETER method of real time streaming transport protocol RTSP.
Handle the access entity of session in a kind of video on-demand system, comprising: session management module, video server resource management module and connection pool, wherein,
Session management module is used for the video request program request that the receiving digital television receiving terminal sends, and sends to the video server resource management module; According to definite video server that the video server resource management module is selected, from connection pool, get access to a TCP between definite video server be connected, through selected TCP connection the video request program request is sent to definite video server;
The video server resource management module is used for the described request of sending according to session management module, confirms as the video server that described request provides Video service, the announcement session administration module;
Connection pool, be used for video server between set up at least one TCP and be connected, said video server is at least one, select with after a TCP between definite video server is connected, feed back to session management module.
Session management module; Also be used to set up with said receiving terminal for digital television between TCP be connected; From said definite video server receive connect the video request program response of sending through selected TCP after; The TCP with between the receiving terminal for digital television that passes through to be set up is connected, and this video request program response is transmitted to said receiving terminal for digital television.
Connection pool comprises that initialization module, video server connect foundation and destroy module and socket resource management module, wherein,
Initialization module is used to start connection pool operation resource needed, comprises that the thread of managing connection pool starts and the resource bid of connection pool;
Video server connect to be set up and is destroyed module, is used for being connected with at least one TCP between the video server in foundation and destruction under the indication of socket resource management module, is stored in the Buffer Pool in the socket resource management module;
The socket resource management module, be used for from Buffer Pool select with one TCP between definite video server be connected, if choose, whether availablely detect, if available, feed back to session management module; If unavailable or do not choose, instruct video server connect set up and destroy module set up with the TCP between definite video server be connected.
Said connection pool thread regularly detects the video server resource; This video server resource is managed by said video server resource management module; Be registered to when inserting entity when detecting new video server; Set up with this video server between TCP be connected; This connection is placed in the Buffer Pool, handles by said socket resource management module;
When having detected video server and nullify, all TCP that insert in the deletion Buffer Pool between the video server of entity and cancellation are connected.
Said socket resource management module regularly detects TCP connection status all in the Buffer Pool, and the session number of being carried when the TCP connection that is detected is 0 or occurs unusually that instruct video server connection foundation is broken off this TCP with the destruction module and is connected.
Said session management module also is used to be provided with two groups of threads, and one group of thread is used for the socket that connects from the selected TCP of the Buffer Pool of socket resource management module is carried out the processing of reading of session interaction data, and the receiver, video order request is responded; Another group thread is used for the socket that connects from the selected TCP of the Buffer Pool of socket resource management module is carried out the processing of writing of session interaction data, sends the video request program request.
This access entity also comprises IP QAM resource management module; Be used for after setting up the session that is connected with TCP between session management module and the receiving terminal for digital television; Application IP QAM resource is the video request program application IP QAM resource of receiving terminal for digital television request from IP QAM resource management module.
Can find out by such scheme; The present invention is provided with connection pool at the access entity of video on-demand system; In this connection pool, and to set up at least one TCP between the current video server that Video service is provided and be connected, the said current video server of Video service that provides is at least one.When receiving the video request program of receiving terminal for digital television, from this connection pool, select one of them TCP between the video server with confirm to provide Video service to be connected and carry out session interaction.Like this, in video request-program process, adopt reliable transport layer protocol to set up the TCP connection and carry out session interaction, guaranteed the stability of order video.Because inserting entity selects one of them TCP between the video server with confirm to provide Video service to be connected from this connection pool to carry out session interaction; It not is to set up to each session that the TCP that just sets up in advance connects; So connecting, this TCP can handle different sessions in the different time section; Make a plurality of sessions to connect by a shared TCP; Increased and inserted the maximum number of sessions that entity is supported, thereby improved the parallel processing session ability of the access entity in the video on-demand system.
Description of drawings
Fig. 1 carries the TCP syndeton sketch map of session for the video on-demand system that prior art provides;
Fig. 2 carries the UDP channel design sketch map of session for the video on-demand system that prior art provides;
Handle the method flow diagram of session in the video on-demand system that Fig. 3 provides for the embodiment of the invention;
Handle the access entity structure sketch map of session in the video on-demand system that Fig. 4 provides for the embodiment of the invention;
Handle the method flow diagram of session in the video on-demand system that Fig. 5 provides for further embodiment of this invention.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is done further explain.
The present invention does not cause session interaction information dropout in order to guarantee the stability of order video when carrying out session interaction, so insert entity and provide the session interaction between the video server of Video service still to adopt TCP to connect.In order to improve the parallel processing session ability of the access entity in the video on-demand system; The present invention is provided with connection pool at the access entity of video on-demand system; In this connection pool; With set up at least one TCP between the current video server that Video service is provided and be connected, the said current video server of Video service that provides is at least one.When receiving the video request program of receiving terminal for digital television, from this connection pool, select one of them TCP between the video server with confirm to provide Video service to be connected and carry out session interaction.
Like this; Inserting entity selects one of them TCP between the video server with confirm to provide Video service to be connected from this connection pool to carry out session interaction; It not is to set up to each session that the TCP that just sets up in advance connects; So connecting, this TCP can handle different sessions in the different time section; Make a plurality of sessions to connect by a shared TCP, increased and inserted the maximum number of sessions that entity is supported, thereby improve the parallel processing session ability of the access entity in the video on-demand system.
In the present invention, therefrom select a TCP to connect and use, the TCP of said selection is connected to present load and connects the lightest TCP connection, and load is an already present session number in this TCP connection at present, and session number multi-load more is heavy more.
In the present invention, insert entity and can be MAP or SM, video server can be VS, SS, NS, ERM, ODRM, NRM or EnRM etc.
In the present invention, receiving terminal for digital television includes but not limited to STB, internet protocol TV IPTV or all-in-one etc.
Handle the method flow diagram of session in the video on-demand system that Fig. 3 provides for the embodiment of the invention; Access entity at video on-demand system is provided with connection pool; In this connection pool; With set up at least one TCP between the current video server that Video service is provided and be connected, the said current video server of Video service that provides is at least one, its concrete steps are:
Step 301, access entity receive the video request program request that receiving terminal for digital television sends;
After this step, inserting entity is that receiving terminal for digital television is set up session, promptly and set up TCP between the receiving terminal for digital television and connect;
Step 302, access entity are confirmed as the video server that this request provides Video service;
In this step, how to confirm as prior art, repeat no more here;
Step 303, insert entity in connection pool, selects with after a TCP between definite video server is connected, through selected TCP connection this video request program request is transmitted to this video server processing;
In this step; Selection course is: according to the definite video server sign of institute; In connection pool, find video server with same video server identification; From the video server that finds with insert a plurality of TCP between the entity and select a TCP to connect being connected to use, can select the current TCP that does not carry out session interaction to connect and use, also can select present load to connect the lightest TCP connection;
In this step; After this video server is handled, return the video request program response, this response sends to the access entity through the TCP connection of step 303; After the access entity receives; Through being connected with TCP that receiving terminal for digital television is set up, video request program is responded send to receiving terminal for digital television, receiving terminal for digital television just can order video.
In the method, before execution in step 303, also comprise:
Insert entity confirm in connection pool, to exist with the TCP between definite video server be connected, if, execution in step 303; If not, then with after institute sets up at least one TCP between definite video server and is connected, execution in step 303 again.
In the method; Insert in the connection pool of entity with the current video server that Video service is provided between set up at least one TCP and be connected; Be dynamically to set up; For one of them current video server that Video service is provided, the TCP linking number of being set up is to set up according to the concurrent ability of system of receiving terminal for digital television number and access entity.Provide a plurality of TCP of the video server of Video service to connect to reach can to carry in limited time when one of them is current, dialogue-based quantity of concrete higher limit and network condition are definite, also can increase to set up TCP and connect and satisfy the session needs; Certainly, during reverse situation, also can break off existing a part of TCP and connect.
In the present invention, all handle, just the message that is carried on this TCP connection is received and dispatched processing if the socket that adopts a thread that a TCP is connected carries out the read and write of session interaction data.When session interaction was many, the read and write that just has a lot of session interaction data was handled.The socket that TCP is connected when this thread carries out the session interaction data when reading to handle, and just can't write processing again, otherwise still, this can influence the degree of reaction of access entity to the video request program Request Processing of receiving terminal for digital television.Therefore; In the present invention, when the access entity was transmitted to this video server through selected TCP connection with this video request program request, the method for employing was that the socket that this selected TCP connects is carried out the processing of writing of session interaction data; In processing procedure; Two groups of threads are set, and one group of thread is used for the socket that this selected TCP connects is carried out the processing of reading of session interaction data, just receives message; Another group thread is used for the socket that this selected TCP connects is carried out the processing of writing of session interaction data, just sends message.Like this, connect the message that to carry the session interaction data simultaneously for a TCP and send and receive, improve treatment effeciency.
In the present invention, because a plurality of session meeting adopts a TCP to connect,, will influence this TCP and connect all sessions of being carried if this TCP connects unusual the disconnection.Like this, just require very high to the remedial measure after connective stability in the video on-demand system and the unusual disconnection of connection.Therefore; In the present invention; Insert entity and regularly each the bar TCP that is set up in the connection pool is connected and detect, connect and just connect again when unusual when detecting TCP, the conversation shift that perhaps unusual TCP connection is carried is to other TCP connections; It is identical that these other TCP connect the video server that is connected to unusual TCP connection, thereby guarantee the normal operation of session.At this moment, insert entity and also need notify video server, conversation shift guarantees that the TCP that video server can pass through to be moved connects to inserting entity transmission session related news to which TCP connection.Here; Notice can be passed through real time streaming transport protocol (RTSP; Real Time Streaming Protocol) the SETPARAMETER mode in is set up, and particularly, is exactly that access device carries the TCP link information of migration and the message of session information to the video server transmission.
The SETPARAMETER message format that adopts is:
SET_PARAMETER?rtsp://streamingserver32.comcast.com:554RTSP/1.0
CSeq:36394 // sequence number
Content-Type:text/parameters // content type: text
Content_Length:40 // content-length
Session_groups:SM1.SG1 SM2.SG2 SM3.SG3 //TCP link information and session information.
Handle the access entity structure sketch map of session in the video on-demand system that Fig. 4 provides for the embodiment of the invention, comprising: session management module, video server resource management module and connection pool, wherein,
Session management module; Be used for the video request program request that the receiving digital television receiving terminal sends; Send to the video server resource management module and select definite video server; From connection pool, get access to a TCP between definite video server be connected, connect through selected TCP the video request program request sent to definite video server;
The video server resource management module is used to confirm as the video server that video request program request that receiving terminal for digital television sends provides Video service, the announcement session administration module;
Connection pool, be used for video server between set up at least one TCP and be connected, said video server is at least one, select with after a TCP between definite video server is connected, feed back to session management module.
In this structure; Session management module; Also be used to set up with receiving terminal for digital television between TCP be connected; When receive the video request program response that connects transmission through selected TCP from video server after, the TCP with between the receiving terminal for digital television that passes through to be set up is connected, and this video request program response is transmitted to receiving terminal for digital television.
Particularly, initialization module is used to start connection pool operation resource needed, comprises that the thread of managing connection pool starts and the resource bid of connection pool;
Video server connect to be set up and is destroyed module, is used for being connected with at least one TCP between the video server in foundation and destruction under the indication of socket resource management module, is stored in the Buffer Pool in the socket resource management module;
The socket resource management module, be used for from Buffer Pool select with one TCP between definite video server be connected, if choose, whether availablely detect, if available, feed back to session management module; If unavailable or do not choose, instruct video server connect set up and destroy module set up with the TCP between definite video server be connected.
In this inserted entity, the socket resource management module also comprised Buffer Pool, was used for the store video server and connected and set up and destroy module foundation and destruction and be connected with at least one TCP between the video server.
Insert entity at this; Said connection pool thread regularly detects the video server resource; This video server resource is managed by said video server resource management module; Be registered to when inserting entity when detecting new video server; Set up with this video server between TCP be connected; This connection is placed in the Buffer Pool, handles by said socket resource management module;
When having detected video server and nullify, all TCP that insert in the deletion Buffer Pool between the video server of entity and cancellation are connected.
Insert in the entity at this; Said socket resource management module regularly detects TCP connection status all in the Buffer Pool; The session number of being carried when the TCP connection that is detected is 0 or occurs unusually that instruct video server connection foundation is broken off this TCP with the destruction module and is connected.
Insert in the entity at this; Said session management module; Also be used to be provided with two groups of threads, one group of thread is used for the socket that connects from the selected TCP of the Buffer Pool of socket resource management module is carried out the processing of reading of session interaction data, and the receiver, video order request is responded; Another group thread is used for the socket that connects from the selected TCP of the Buffer Pool of socket resource management module is carried out the processing of writing of session interaction data, sends the video request program request.
In inserting entity, when following time of pattern based on edge demodulator (IP QAM, Internet Protocol Quadrature Amplitude Modulation); Also comprise IP QAM resource management module; Be used for after setting up the session that is connected with TCP between session management module and the receiving terminal for digital television, from IP QAM resource management module, applying for IP QAM resource, be the video application IP QAM resource of program request; This is a prior art, repeats no more here.
Handle the method flow diagram of session in the video on-demand system that Fig. 5 provides for further embodiment of this invention; Suppose that receiving terminal for digital television is a STB; The access entity is MAP; In the connection pool of MAP with between the current video server that Video service is provided, set up at least one TCP and be connected, the said current video server of Video service that provides is at least one, and its concrete steps are:
Step 501, STB send the order video request to MAP;
After step 502, MAP received, its session management module was set up session, just set up with this STB between be connected;
The IP QAM resource management module request distributing IP QAM resource of session management module among step 503, the MAP in MAP;
IP QAM resource management module among step 504, the MAP is returned as the IP QAM resource of allocated;
The video server resource management module request of session management module among step 505, the MAP in MAP distributes video server;
Video server resource management module among step 506, the MAP returns to the session management module among the MAP with the video server sign of being distributed, and the video server with this video server sign is exactly definite video server;
The process of step 501~step 506 all is a prior art, repeats no more here;
Session management module among step 507, the MAP connects to connection pool application TCP based on the definite video server sign of institute;
Connection pool among step 508, the MAP with selected with a TCP between definite video server be connected, send to the session management module among the MAP;
Session management module among step 509, the MAP is transmitted to this video server of confirming through selected TCP connection with this video request program request and handles;
Step 510, this video server of confirming return the program request video response through selected TCP connection and give the session management module among the MAP;
Session management module among step 511, the MAP through with STB between TCP be connected and return the program request video response.
Can find out that from such scheme in the order video system, access entity of the present invention is connected with TCP between the video server and carries a plurality of sessions, has effectively saved the limited TCP number of connection that inserts entity, has improved the concurrent session that inserts entity and has handled number.Disconnection TCP connection mechanism provided by the invention has improved the stability of order video system.The present invention connects the session of carrying for same TCP, receives message and sends the different thread process of message employing, improves the response efficiency of message, thereby improves user's Experience Degree.
Handle number owing to improved the concurrent session that inserts entity; So under the situation of same numbers television receive terminal, reduced the access physical quantities of using, reduced operator's purchase cost; The present invention has improved the maintainability of whole video VOD system, can extensively promote.
More than lift preferred embodiment; The object of the invention, technical scheme and advantage have been carried out further explain, and institute it should be understood that the above is merely preferred embodiment of the present invention; Not in order to restriction the present invention; All within spirit of the present invention and principle, any modification of being done, be equal to replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. handle the method for session in the video on-demand system, it is characterized in that, insert entity connection pool is set; In this connection pool; With set up a transmission control protocol TCP between the video server at least and be connected, said video server is at least one, this method comprises:
Insert the video request program request that entity receiving digital television receiving terminal sends, confirm as the video server that this request provides Video service according to described request;
In connection pool, select with a TCP between definite video server be connected, through selected TCP connection described request is transmitted to definite video server.
2. the method for claim 1 is characterized in that, said selection with the process that is connected of a TCP between definite video server be:
According to the definite video server sign of institute; In connection pool, find video server with identical said sign; Select a TCP to connect being connected to use with inserting a plurality of TCP between the entity from the video server that finds, the TCP of said selection is connected to present load and connects the lightest TCP connection.
3. the method for claim 1 is characterized in that, said with described request be transmitted to the institute definite video server after, also comprise:
Receive the video request program response of returning after the definite video server of institute is handled, this response is to connect through said selected TCP to send to the access entity;
TCP through with said receiving terminal for digital television foundation is connected, and the video request program response that receives is sent to receiving terminal for digital television.
4. like claim 1,2 or 3 described methods, it is characterized in that, said in connection pool, select with before a TCP between definite video server is connected, also comprise:
Judgement in connection pool, whether exist with the TCP between definite video server be connected, if, carry out in connection pool, select and a TCP step of connecting between definite video server; If not, in connection pool with institute definite video server between set up at least one TCP and be connected after, carry out in connection pool selection and a TCP step of connecting between definite video server.
5. method as claimed in claim 3; It is characterized in that; The said connection through selected TCP is transmitted to definite video server with described request; And said this response is to connect through said selected TCP that to send to the process that inserts entity be the socket socket that said selected TCP connects to be carried out the session interaction data write handle, and processing procedure is:
On the access entity, two groups of threads are set, one group of thread is used for the socket that this selected TCP connects is carried out the processing of reading of session interaction data, and the receiver, video order request is responded; Another group thread is used for the socket that this selected TCP connects is carried out the processing of writing of session interaction data, sends the video request program request.
6. like claim 1,2 or 3 described methods; It is characterized in that; This method also comprises: insert the TCP connection that entity regularly detects the foundation in the connection pool; Connect and connect again when unusual when detecting TCP, perhaps unusual TCP is connected in other TCP connection in the connection pool of the conversation shift that carried, it is identical that said other TCP connect the video server that is connected to said unusual TCP connection.
7. method as claimed in claim 6 is characterized in that, the session related news in said other TCP connections of moving in the connection pool send to the video server that is connected with said other TCP through the SETPARAMETER method of real time streaming transport protocol RTSP.
8. handle the access entity of session in the video on-demand system, it is characterized in that, comprising: session management module, video server resource management module and connection pool, wherein,
Said session management module is used for the video request program request that the receiving digital television receiving terminal sends, and sends to the video server resource management module; According to definite video server that the video server resource management module is selected, from connection pool, get access to a TCP between definite video server be connected, through selected TCP connection the video request program request is sent to definite video server;
Said video server resource management module is used for the described request of sending according to session management module, confirms as the video server that described request provides Video service, the announcement session administration module;
Said connection pool, be used for video server between set up at least one TCP and be connected, said video server is at least one, select with after a TCP between definite video server is connected, feed back to session management module.
9. access entity as claimed in claim 8; It is characterized in that; Said session management module, also be used to set up with said receiving terminal for digital television between TCP be connected, from said definite video server receive connect the video request program response of sending through selected TCP after; The TCP with between the receiving terminal for digital television that passes through to be set up is connected, and this video request program response is transmitted to said receiving terminal for digital television.
10. like claim 8 or 9 described access entities, it is characterized in that said connection pool comprises that initialization module, video server connect foundation and destroy module and socket resource management module, wherein,
Said initialization module is used to start connection pool operation resource needed, comprises that the thread of managing connection pool starts and the resource bid of connection pool;
Said video server connects to be set up and destroys module, is used for being connected with at least one TCP between the video server in foundation and destruction under the indication of socket resource management module, is stored in the Buffer Pool in the socket resource management module;
Said socket resource management module, be used for from Buffer Pool select with one TCP between definite video server be connected, if choose, whether availablely detect, if available, feed back to session management module; If unavailable or do not choose, instruct video server connect set up and destroy module set up with the TCP between definite video server be connected.
11. access entity as claimed in claim 10 is characterized in that,
Said connection pool thread regularly detects the video server resource; This video server resource is managed by said video server resource management module; Be registered to when inserting entity when detecting new video server; Set up with this video server between TCP be connected; This connection is placed in the Buffer Pool, handles by said socket resource management module;
When having detected video server and nullify, all TCP that insert in the deletion Buffer Pool between the video server of entity and cancellation are connected.
12. access entity as claimed in claim 10; It is characterized in that; Said socket resource management module regularly detects TCP connection status all in the Buffer Pool; The session number of being carried when the TCP connection that is detected is 0 or occurs unusually that instruct video server connection foundation is broken off this TCP with the destruction module and is connected.
13. access entity as claimed in claim 10; It is characterized in that; Said session management module; Also be used to be provided with two groups of threads, one group of thread is used for the socket that connects from the selected TCP of the Buffer Pool of socket resource management module is carried out the processing of reading of session interaction data, and the receiver, video order request is responded; Another group thread is used for the socket that connects from the selected TCP of the Buffer Pool of socket resource management module is carried out the processing of writing of session interaction data, sends the video request program request.
14. access entity as claimed in claim 8; It is characterized in that; This access entity also comprises IP QAM resource management module; Be used for after setting up the session that is connected with TCP between said session management module and the receiving terminal for digital television, from IP QAM resource management module, applying for IP QAM resource, be the video request program application IP QAM resource of receiving terminal for digital television request.
CN2011104054952A 2011-12-08 2011-12-08 Access entity which processes session in video on demand system and method thereof Pending CN102523531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104054952A CN102523531A (en) 2011-12-08 2011-12-08 Access entity which processes session in video on demand system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104054952A CN102523531A (en) 2011-12-08 2011-12-08 Access entity which processes session in video on demand system and method thereof

Publications (1)

Publication Number Publication Date
CN102523531A true CN102523531A (en) 2012-06-27

Family

ID=46294304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104054952A Pending CN102523531A (en) 2011-12-08 2011-12-08 Access entity which processes session in video on demand system and method thereof

Country Status (1)

Country Link
CN (1) CN102523531A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577468A (en) * 2015-12-10 2016-05-11 中国航空工业集团公司西安航空计算技术研究所 TCP connection processing method of airborne network services
CN107276994A (en) * 2017-05-31 2017-10-20 沃太能源南通有限公司 The communication management system and method for a kind of energy-storage system
CN109246123A (en) * 2018-09-30 2019-01-18 广州酷狗计算机科技有限公司 Media stream capturing method and device
CN109413453A (en) * 2018-10-19 2019-03-01 广州酷狗计算机科技有限公司 Video broadcasting method, device, terminal and storage medium
CN110166579A (en) * 2019-07-16 2019-08-23 华为技术有限公司 A kind of server communications method, BAS Broadband Access Server and system
CN110460632A (en) * 2019-06-26 2019-11-15 杨涛 A kind of preferred method and system of order
CN112751933A (en) * 2020-12-30 2021-05-04 上海浦东发展银行股份有限公司 Data transmission method based on socket connection
CN114679434A (en) * 2022-05-27 2022-06-28 武汉中科通达高新技术股份有限公司 Session message processing system, method, computer device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1788774A1 (en) * 2005-11-18 2007-05-23 Alcatel Lucent Method and system for initiating or recovering a media-on-demand session
CN101309233A (en) * 2008-06-04 2008-11-19 腾讯科技(深圳)有限公司 Method realizing TCP connection reusing in instant communication
CN101582800A (en) * 2009-02-24 2009-11-18 中兴通讯股份有限公司 Network element connectivity detection device and method in network management system
CN102025782A (en) * 2010-12-08 2011-04-20 成都市华为赛门铁克科技有限公司 Point-to-point communication method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1788774A1 (en) * 2005-11-18 2007-05-23 Alcatel Lucent Method and system for initiating or recovering a media-on-demand session
CN101309233A (en) * 2008-06-04 2008-11-19 腾讯科技(深圳)有限公司 Method realizing TCP connection reusing in instant communication
CN101582800A (en) * 2009-02-24 2009-11-18 中兴通讯股份有限公司 Network element connectivity detection device and method in network management system
CN102025782A (en) * 2010-12-08 2011-04-20 成都市华为赛门铁克科技有限公司 Point-to-point communication method, device and system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577468B (en) * 2015-12-10 2019-04-05 中国航空工业集团公司西安航空计算技术研究所 A kind of TCP connection processing method of onboard networks service
CN105577468A (en) * 2015-12-10 2016-05-11 中国航空工业集团公司西安航空计算技术研究所 TCP connection processing method of airborne network services
CN107276994A (en) * 2017-05-31 2017-10-20 沃太能源南通有限公司 The communication management system and method for a kind of energy-storage system
CN109246123A (en) * 2018-09-30 2019-01-18 广州酷狗计算机科技有限公司 Media stream capturing method and device
CN109413453B (en) * 2018-10-19 2021-08-27 广州酷狗计算机科技有限公司 Video playing method, device, terminal and storage medium
CN109413453A (en) * 2018-10-19 2019-03-01 广州酷狗计算机科技有限公司 Video broadcasting method, device, terminal and storage medium
CN110460632A (en) * 2019-06-26 2019-11-15 杨涛 A kind of preferred method and system of order
CN110460632B (en) * 2019-06-26 2022-06-24 杨涛 Order optimization method and system
CN110166579A (en) * 2019-07-16 2019-08-23 华为技术有限公司 A kind of server communications method, BAS Broadband Access Server and system
CN110166579B (en) * 2019-07-16 2020-01-03 华为技术有限公司 Server communication method, broadband access server and system
CN112751933A (en) * 2020-12-30 2021-05-04 上海浦东发展银行股份有限公司 Data transmission method based on socket connection
CN112751933B (en) * 2020-12-30 2023-05-05 上海浦东发展银行股份有限公司 Socket connection-based data transmission method
CN114679434A (en) * 2022-05-27 2022-06-28 武汉中科通达高新技术股份有限公司 Session message processing system, method, computer device and storage medium
CN114679434B (en) * 2022-05-27 2022-08-26 武汉中科通达高新技术股份有限公司 Session message processing system, method, computer device and storage medium

Similar Documents

Publication Publication Date Title
CN102523531A (en) Access entity which processes session in video on demand system and method thereof
RU2530016C2 (en) Content localisation method and content delivery network node
CN101232413B (en) Server, system and method for transferring conversation control power
US20080209065A1 (en) Method for sending stream media, signaling forwarding device and stream media system
US8438605B2 (en) Video distribution system and video distribution method
KR100924692B1 (en) Data transmission system, apparatus and method for processing information, apparatus and method for relaying data, and storage medium
CN102195955B (en) Method and corresponding equipment for switching between live broadcast service and time shifting service
WO2010063186A1 (en) Method and system for implementing a relay channel and edge nodes
US9888272B2 (en) Method, terminal and CDN server in IPTV system for realizing playing while downloading
CN104270604A (en) Method, system and device for obtaining real-time video data of IPC
CN103929623A (en) Method for processing video data in video monitoring system
CN101431653B (en) Method, system and apparatus for creating and demanding channel
US9413798B2 (en) Method and system for video-on-demand (VOD)
CN101990113B (en) Content uplinking method and content delivery functional entity
CN102761550A (en) Method, device and system for implementing streaming media
SE522794C2 (en) Device and method for communicating electronic data via a network infrastructure having a unicast mechanism and multicast mechanism
KR20060123559A (en) System, receiver, method and program for distributing content
CN102238152B (en) Control the methods, devices and systems of content report behavior
US9467720B2 (en) Tuning efficiency and delivery of content
CN101547191B (en) Method and device for controlling media content syndication
CN104135468A (en) IMS (IP Multimedia Subsystem) session negotiation control system, device and method supporting multipath relay transmission
CN101340428A (en) Method and system for providing media stream in process of media server switching
CN112788348A (en) On-demand method, device, equipment, system and storage medium
CN102510526A (en) Stream media service system based on distributed cluster file system
JP5979886B2 (en) Transmitting apparatus and transmitting method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN LONGSHI MEDIA CO., LTD.

Free format text: FORMER OWNER: SHENZHEN COSHIP VIDEO COMMUNICATION CO., LTD.

Effective date: 20130407

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20130407

Address after: 4, 518057 floor, rainbow science and technology building, north high tech Zone, Nanshan District, Guangdong, Shenzhen

Applicant after: Shenzhen Longguan Media Co., Ltd.

Address before: 518057 B2-1 District, rainbow tech building, North Fifth Industrial Zone, north high tech Zone, Nanshan District, Guangdong, Shenzhen

Applicant before: Shenzhen Tongzhou Video Media Co., Ltd.

ASS Succession or assignment of patent right

Owner name: SHENZHEN TONGZHOU ELECTRONIC CO., LTD.

Free format text: FORMER OWNER: SHENZHEN LONGSHI MEDIA CO., LTD.

Effective date: 20140509

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20140509

Address after: 518057 Nanshan District hi tech park, Guangdong, North District Rainbow science and Technology Building

Applicant after: Shenzhen Tongzhou Electronic Co., Ltd.

Address before: 4, 518057 floor, rainbow science and technology building, north high tech Zone, Nanshan District, Guangdong, Shenzhen

Applicant before: Shenzhen Longguan Media Co., Ltd.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120627