CN101262445A - Stream media server and realization method for self-adaptability to IPv4/IPv6 - Google Patents

Stream media server and realization method for self-adaptability to IPv4/IPv6 Download PDF

Info

Publication number
CN101262445A
CN101262445A CNA2008101037008A CN200810103700A CN101262445A CN 101262445 A CN101262445 A CN 101262445A CN A2008101037008 A CNA2008101037008 A CN A2008101037008A CN 200810103700 A CN200810103700 A CN 200810103700A CN 101262445 A CN101262445 A CN 101262445A
Authority
CN
China
Prior art keywords
ipv4
ipv6
user
server
media server
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
CNA2008101037008A
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.)
Academy of Broadcasting Science Research Institute
Academy of Broadcasting Science of SAPPRFT
Original Assignee
Academy of Broadcasting Science of SAPPRFT
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 Academy of Broadcasting Science of SAPPRFT filed Critical Academy of Broadcasting Science of SAPPRFT
Priority to CNA2008101037008A priority Critical patent/CN101262445A/en
Publication of CN101262445A publication Critical patent/CN101262445A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an adaptive IPv4/IPv6 stream media server and an implementation method, wherein, the method is as follows: when monitoring service request of users newly arrive, the server first resolves the service request and identifies IP protocol version according to IP data header so as to start up service thread corresponding to the protocol version and provide service to the users adaptively. The adaptive IPv4/IPv6 stream media server and the implementation method of the invention can be compatible with IPv4 and IPv6 networks and the arrangement of the stream media server is more convenient and has lower cost.

Description

The streaming media server of self adaptation IPv4/IPv6 and implementation method
Technical field
The present invention relates to communication technical field, particularly the streaming media server of a kind of self adaptation IPv4/IPv6 and implementation method.
Background technology
At present, the technology of interconnecting at IPv4 and IPv6 mainly contains tunneling technique, dual stack technology, protocol conversion technology NAT-PT.The main frame that tunneling technique is fit in isolated IPv6 site and the IPv4 network is realized interconnected.NAT-PT is mainly used in the IPv4 of non-pair of stack of realization and the intercommunication of IPv6 node.Because NAT-PT finishes in application layer, the intercepting and capturing of packet and conversion are slower, the characteristics that can't adapt to the big flow of audio/video program, become the bottleneck of network easily, therefore provide service for the IPv4/IPv6 network user, and when needing to solve big data quantity communication, mainly still adopt double-stack technology.At present, double-stack technology is mainly used still on the network equipments such as fire compartment wall, switch and router.
Streaming media server is the core of nexus broadcast system, and the performance height of streaming media server has directly determined the quality of whole system performance.Audio frequency and video have become the extremely important business of present network the next item up.In the IPv6 network relatively and the IPv4 network better to the degree of support of network audio-video, therefore, when the design flow media server, just must consider and want compatible IPv4 and IPv6 network simultaneously, this compatibility should be to possess in real time, simultaneously and adaptive characteristics, like this streaming media server when deployment with convenient, cost also can be lower.
At present, press for a kind of new streaming media server, can self adaptation IPv4/IPv6 network.
Summary of the invention
The objective of the invention is to, the streaming media server of a kind of self adaptation IPv4/IPv6 is provided, can self adaptation IPv4/IPv6 network.
Another object of the present invention is to, the implementation method of the streaming media server of a kind of self adaptation IPv4/IPv6 is provided.
The implementation method of the streaming media server of self adaptation IPv4/IPv6 of the present invention, wherein, when server is monitored the new client's of arrival service request, at first described service request is resolved, according to described IP data packet head identification IP protocol version, and then start the correspondingly service thread of protocol version, provide service for the user adaptively.
Wherein, may further include the following step: described server is created new thread and is provided service for the user after checking request user identity is legal, and revises the clean culture chained list in the former control thread.
In addition, can further include the following step: on data surface, server at first reads the audio, video data after the compression and it is broken into real time streaming transport protocol RTP bag, sends the terminal use to by underlying protocol UDP or transmission control protocol TCP or IP agreement then.
Further, can comprise the following steps: on chain of command that user terminal is connected to come the control information in addition of mutual audio, video data with server by real-time streaming protocol RTSP.
Further, can comprise the following steps: by reducing system assignment the storehouse size, improve user TCP number of connection maximum number, and the socket socket descriptor that improves the maximum number that a process can open is to improve the concurrent number of server.
The streaming media server of self adaptation IPv4/IPv6 of the present invention, comprise charging authentication interface module, document processing module, wherein, comprise that also data send control module and Network Interface Module, wherein, described data send control module, be used to receive user request information, and relevant information is passed to charging authentication module and document processing module, open the Flow Control thread simultaneously, open the clean culture thread by the Flow Control thread again, each clean culture thread dispatching Network Interface Module is user's service; Described Network Interface Module is used for described service request is resolved, and according to described IP data packet head identification IP protocol version, and then starts the correspondingly service thread of protocol version, provides service for the user adaptively.
Wherein, described Network Interface Module is analyzed the protocol stack version that the active user uses, and calls the corresponding protocol stack and create socket and connect, from buffer memory, read corresponding program data after, carry out the stream media protocol encapsulation, for the user provides program stream data.
Further, can also comprise user's program control module, be used to the system manager to dispose a visualization interface is provided with management server.
The invention has the beneficial effects as follows: according to streaming media server and its implementation of self adaptation IPv4/IPv6 of the present invention, simultaneously compatible IPv4 and IPv6 network, streaming media server when disposing with convenient, cost is lower.
Description of drawings
Fig. 1 is the streaming media server deployment diagram;
Fig. 2 is the IPV4 header schematic diagram;
Fig. 3 is an IPv6 protocol header schematic diagram;
Fig. 4 is a streaming media server structural representation of the present invention;
Fig. 5 is the work schematic diagram of streaming media server application layer face;
Fig. 6 is a vod server protocol stack schematic diagram;
Fig. 7 is a RTSP control protocol flow chart;
Fig. 8 is a vod server flow chart of the present invention;
Fig. 9 optimizes kernel effect schematic diagram for the present invention.
Embodiment
Below, 1~9 streaming media server of describing self adaptation IPv4/IPv6 of the present invention in detail with reference to the accompanying drawings.
Core concept of the present invention is: IPv4 and IPv6 protocol stack are installed in the streaming media server, utilize the different of IPv4 and IPv6 packet head-coating structure, by first field version number of identification IP data packet head, automatically discern the IP protocol version, start the service thread of diversity of protocol versions, adaptive for the user provides service, to realize freely being connected of IPv6 terminal use and IPv4 terminal use.For the operating efficiency of server is provided, server software is to the packet of same IP address, once connect and the disconnection process in only judge once.If this IP address user reconnects after disconnecting, server will rejudge once so.
As shown in Figure 1, be the streaming media server deployment diagram.Fig. 2 and Fig. 3 are respectively the header schematic diagram of IPv4 and IPv6 agreement.As shown in Figure 4, be the structural representation of streaming media server of the present invention, this streaming media server mainly comprises: user's program control module, charging authentication interface module, document processing module, data send control module, and Network Interface Module.
Wherein, user's program control module is used to the system manager to dispose with management server a visualization interface is provided;
Charging authentication interface module is used to receive described data and sends the relevant information of control module and communicate with the charging certificate server;
Document processing module is used to receive the programme information that data send user's request that control module sends, and reads program data from network centralized stores server or local storage, is placed in the buffering area;
Data send control module, be equivalent to the host process among Fig. 5, the main reception user request information of being responsible for, and relevant information passed to charging authentication module and document processing module, open the Flow Control thread simultaneously, open the clean culture thread by the Flow Control thread again, each clean culture thread dispatching Network Interface Module is user's service;
Network Interface Module is used for the protocol stack version that analysis user is used, and calls the corresponding protocol stack and create the socket connection, after finishing the socket connection, this module reads program data from buffer memory, and carries out the stream media protocol encapsulation, for the user provides program stream data.
On the design flow media server is realized, take into full account the high-performance of system and can expand, and a general vod server framework is provided, can adapt to multiple demand, the support clustered deploy(ment).Real time streaming transport protocol is adopted in program transmission, and (Real Time Transport Protocol RTP), has realized that MPEG-4 and RTP H.264 encapsulation issues.The core of program realizes by multithreading, and each user takies a thread.(Real Time Streaming Protocol, RTSP) realization is to the remote control function of program stream by real-time streaming protocol.Server is to the form of the support employing library file of coded format, and this implementation can provide very easily to the support of new coding format section purpose.
Fig. 5 is the work schematic diagram of streaming media server application layer face, wherein, and host process, be used to wait for transmission control protocol (the Transmission Control Protocol of user corresponding port, TCP) request, thus the Flow Control thread opened, open the clean culture thread by the Flow Control thread again; Transport stream control thread, be used to open the clean culture thread, and with the information stores of clean culture thread in overall chained list, simultaneously keep RTSP to be connected with the user, thereby in the data distributing process, receive RTSP information from the user, to guarantee cassette tape formula image record/play machine (Video Cassette Recoder, VCR) realization of function; The parameter that provides according to the Flow Control thread is provided the clean culture thread, the configuration network parameter, and file carried out initialization, at last according to the regular hour control strategy, send movie file to client; The authentication and accounting thread is used to receive the active circular from the authentication and accounting server, after receiving the active circular that certain user balance exhausts, promptly closes all and this subscriber-related Flow Control thread (comprising corresponding clean culture thread).
As shown in Figure 6, be vod server protocol stack schematic diagram, wherein show three kinds of relations between the agreement, on data surface, server at first reads the audio, video data after the compression and it is broken into RTP and wraps, then by underlying protocol, for example User Datagram Protoco (UDP) (User Datagram Protocol, UDP) or Transmission Control Protocol or IP agreement send the terminal use to; The user can recover normal audio-video signal by opposite sequential processes after receiving data.On chain of command, user terminal is crossed RTSP with the service square tube and is connected to come the control information in addition of mutual audio, video data.
As shown in Figure 7, be RTSP control protocol flow chart, this control flow comprises the steps:
Step 100: user end to server sends service request, and server returns to player with the format information of demand file;
Step 200: the player initialization network port, set up Network Transmission with media server and be connected;
Step 300: player is initiated playing request;
Step 400: server is packed audio, video data with Real-time Transport Protocol, is issued to client;
Step 500: player can be out of service in service process;
Step 600: stop service request at last, cancel data transmission link, discharge system resource separately.
As shown in Figure 8, be vod server flow chart of the present invention, wherein, vod server is monitored newly arrived client's service request by former control thread; Analysis request is mutual with certificate server then, checking request user identity; If identity is legal, then creates new thread and provide service, and revise clean culture chained list in the former control thread (the clean culture chained list is used to write down the user's of current online service information) for the user.
In addition, need to prove that in the streaming media server course of work, concurrent number is a core evaluation index of streaming media server, the height of its numerical value has directly determined the quality of the performance of server.The multiplexed method of I/O realizes that the user's is concurrent in native system.As shown in Figure 9, for the present invention optimizes kernel effect schematic diagram, concrete implementation is the select () function (this function is a function of realizing the multiplexed function of network I/O interface) that the employing system provides.Traditional select method causes server network port data efficiency of transmission to cause being secondary and even three cubed decline along with the linear increment of online number easily.Simultaneously, select is that the socket socket descriptor FD of the maximum number opened of a process has certain limitation, is provided with by FD_SETSIZE, and default value is 2048.This number that has directly caused the webserver to support has apparent in view restriction.Wherein, socket is a kind of network interface, is used for carrying out the network communication between different main frames, and it is the application interface function of TCP/IP network, the Socket interface definition many functions or routine, the programmer can develop application program on the TCP/IP network with them.Specific as follows:
1) the storehouse size of minimizing system assignment;
Ulimit-s 512 // stack the parameter limit is revised as 512K
2) improve user TCP number of connection maximum number;
Ulimit-n 8192 // the user is opened the maximum number restriction be revised as 8192
3) improve the socket descriptor of the maximum number that a process can open;
#define_FD_SETSIZE?81920。
By facts have proved, under identical precondition, before operating system nucleus was optimized, the concurrent number of separate unit server can reach 210, D1 image size, peak value code check 1Mbps.After operating system nucleus was optimized, the concurrent number of station server can reach 750, D1 image size, peak value code check 1Mbps.
More than be in order to make those of ordinary skills understand the present invention; and to detailed description that the present invention carried out; but can expect; in the scope that does not break away from claim of the present invention and contained, can also make other variation and modification, these variations and revising all in protection scope of the present invention.

Claims (8)

1. the implementation method of the streaming media server of a self adaptation IPv4/IPv6, it is characterized in that, when server is monitored the new client's of arrival service request, at first described service request is resolved, according to described IP data packet head identification IP protocol version, and then start the correspondingly service thread of protocol version, provide service for the user adaptively.
2. the implementation method of the streaming media server of self adaptation IPv4/IPv6 as claimed in claim 1 is characterized in that, further comprises the following steps:
Described server is created new thread and is provided service for the user after checking request user identity is legal, and revises the clean culture chained list in the former control thread.
3. the implementation method of the streaming media server of self adaptation IPv4/IPv6 as claimed in claim 1, it is characterized in that, further comprise the following steps: on data surface, server at first reads the audio, video data after the compression and it is broken into real time streaming transport protocol RTP bag, sends the terminal use to by underlying protocol UDP or transmission control protocol TCP or IP agreement then.
4. the implementation method of the streaming media server of self adaptation IPv4/IPv6 as claimed in claim 1, it is characterized in that, comprise the following steps: further that on chain of command user terminal is connected to come the control information in addition of mutual audio, video data with server by real-time streaming protocol RTSP.
5. the implementation method of the streaming media server of self adaptation IPv4/IPv6 as claimed in claim 1, it is characterized in that, further comprise the following steps: storehouse size, raising user TCP number of connection maximum number by reducing system assignment, and the socket socket descriptor that improves the maximum number that a process can open, to improve the concurrent number of server.
6. the streaming media server of a self adaptation IPv4/IPv6 comprises charging authentication interface module, document processing module, it is characterized in that, comprises that also data send control module and Network Interface Module, wherein,
Described data send control module, be used to receive user request information, and relevant information is passed to charging authentication module and document processing module, open the Flow Control thread simultaneously, open the clean culture thread by the Flow Control thread again, each clean culture thread dispatching Network Interface Module is user's service;
Described Network Interface Module is used for described service request is resolved, and according to described IP data packet head identification IP protocol version, and then starts the correspondingly service thread of protocol version, provides service for the user adaptively.
7. the streaming media server of self adaptation IPv4/IPv6 as claimed in claim 6, it is characterized in that, described Network Interface Module, be used to analyze the protocol stack version that the active user uses, and call the corresponding protocol stack and create the socket connection, after from buffer memory, reading corresponding program data, carry out the stream media protocol encapsulation, for the user provides program stream data.
8. the streaming media server of self adaptation IPv4/IPv6 as claimed in claim 6 is characterized in that, further comprises user's program control module, is used to the system manager to dispose with management server a visualization interface is provided.
CNA2008101037008A 2008-04-10 2008-04-10 Stream media server and realization method for self-adaptability to IPv4/IPv6 Pending CN101262445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101037008A CN101262445A (en) 2008-04-10 2008-04-10 Stream media server and realization method for self-adaptability to IPv4/IPv6

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101037008A CN101262445A (en) 2008-04-10 2008-04-10 Stream media server and realization method for self-adaptability to IPv4/IPv6

Publications (1)

Publication Number Publication Date
CN101262445A true CN101262445A (en) 2008-09-10

Family

ID=39962655

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101037008A Pending CN101262445A (en) 2008-04-10 2008-04-10 Stream media server and realization method for self-adaptability to IPv4/IPv6

Country Status (1)

Country Link
CN (1) CN101262445A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281301A (en) * 2011-08-25 2011-12-14 中兴通讯股份有限公司 Method and system for access of IPv6 terminal to streaming media server
CN103036863A (en) * 2012-04-01 2013-04-10 浙江宇视科技有限公司 Method and device for solving address shortage of internet protocol version 4 (IPv4)
WO2015131762A1 (en) * 2014-09-28 2015-09-11 中兴通讯股份有限公司 Data transmission method and device
CN111131785A (en) * 2019-12-30 2020-05-08 元力(天津)科技有限公司 MPEG-4 video transmission system based on DirectShow
CN116074386A (en) * 2023-02-27 2023-05-05 阿里巴巴(中国)有限公司 Service calling method and device, service registration method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281301A (en) * 2011-08-25 2011-12-14 中兴通讯股份有限公司 Method and system for access of IPv6 terminal to streaming media server
CN102281301B (en) * 2011-08-25 2017-10-03 南京中兴新软件有限责任公司 A kind of method and system that IPv6 terminals are accessed to streaming media server
CN103036863A (en) * 2012-04-01 2013-04-10 浙江宇视科技有限公司 Method and device for solving address shortage of internet protocol version 4 (IPv4)
WO2015131762A1 (en) * 2014-09-28 2015-09-11 中兴通讯股份有限公司 Data transmission method and device
CN105530713A (en) * 2014-09-28 2016-04-27 中兴通讯股份有限公司 Method and device for data transmission based on multi-wireless connection
CN105530713B (en) * 2014-09-28 2020-12-11 中兴通讯股份有限公司 Data transmission method and device based on multiple wireless connections
CN111131785A (en) * 2019-12-30 2020-05-08 元力(天津)科技有限公司 MPEG-4 video transmission system based on DirectShow
CN116074386A (en) * 2023-02-27 2023-05-05 阿里巴巴(中国)有限公司 Service calling method and device, service registration method and device
CN116074386B (en) * 2023-02-27 2023-09-26 阿里巴巴(中国)有限公司 Service calling method and device, service registration method and device

Similar Documents

Publication Publication Date Title
CN101159830B (en) Apparatus for receiving adaptive broadcast signal and method thereof
CN105338425B (en) A kind of system and method for realizing video seamless switching between multi-screen
CN101827242B (en) Method for realizing video phone system based on IPTV set-top box
CN109525460B (en) Method and device for monitoring number resources of video network
CN109803111B (en) Method and device for watching video conference after meeting
CN102130900A (en) Method and device for realizing three-screen interaction
CN106341563A (en) Terminal communication based echo suppression method and device
CN101262445A (en) Stream media server and realization method for self-adaptability to IPv4/IPv6
CN107872721A (en) A kind of multimedia data transmission method, terminal and computer-readable medium
CN101202919B (en) Digital television receiver and intermediate part
CN111147859A (en) Video processing method and device
CN107396049A (en) A kind of equipment access system and its method of compatible multi-protocols
CN102710986A (en) Mobile phone audio and video playing method, mobile phone and playing device
CN102098270A (en) System and method for realizing load balance of streaming media server
CN107547517A (en) Audio/video program method for recording and the network equipment and computer installation
CN108574816A (en) It is a kind of to regard networked terminals and based on communication means, the device regarding networked terminals
CN102447878A (en) Remote packet capturing method for television wall server and recording and broadcasting server
CN111212255B (en) Monitoring resource obtaining method and device and computer readable storage medium
US20120017245A1 (en) Method and system for providing programming guide and recording information via an ip multimedia gateway
CN109889755B (en) Communication connection method and video networking terminal
CN108574609B (en) Transmission monitoring method and device
CN110049069B (en) Data acquisition method and device
CN101715006A (en) Method for releasing dynamic host configuration resources by client and client system thereof
CN110620796B (en) Fingerprint information access method and device
CN110113565B (en) Data processing method and intelligent analysis equipment based on video network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20080910