A kind of multi-client simulation VOD system and its method of workTechnical field
The invention belongs to multimedia broadcasting technology field, more particularly, to a kind of multi-client simulation VOD system and workMethod.
Background technology
Vss stream media service system is a kind of continuation network of component content dissemination system, is modular, operatorThe innovation video platform of rank, can give operator fast in deployment personalized amusement and interactive service of future generationProperty.And before existing network deployment, how to ensure under high-volume client's on-demand access, the stability of system operation and dependable performanceProperty, the always technical barrier of field tests.
Content of the invention
For solving the above problems, the invention provides a kind of multi-client simulation VOD system, including the network switch,Vss server, cdn server, client-server;Vss server, cdn server, client-server are handed over network respectivelyChange planes connection.
The described network switch is used for vss server, cdn server and client side's server disposition in consolidated networkIn, data exchange channel is provided.
Vss server receives the program request instruction of client-server, and downloads phase from cdn server according to program request instructionAnswer resource.
Described cdn server is used for storing on-demand assets, and is instructed to vss server transmission resource according to program request.
Running on described client-server has program request simulation softward, and described program request simulation softward is used for simulating and some hasThe simulation program request client of ip address and port numbers, start client's order request, run program request thread, by the network switch withVss server carries out data exchange, and shows the corresponding program request status information of every road order request.
Further, described program request simulation softward includes some program request threading models, thread management module, program request control mouldBlock, interface display module;
Described program request threading models are corresponded with program request thread, for controlling program request flow process, the parsing demand protocol of this thread,And complete the transmitting-receiving of data flow;
Thread management module is used for each program request thread being scheduling manage, and transmission program request instructs corresponding program request thread mouldBlock;
Program request control module is used for controlling various order request orders, realizes the friendship of interface display module and each program request threadMutually;
Interface display module is used for providing program request configuration management, and assumes the real-time status parameter of each program request thread, and passes throughInterface is shown.
Further, each program request threading models includes process control module, protocol resolution module, communication module;DescribedProcess control module is used for controlling corresponding thread, and described protocol resolution module is used for parsing demand protocol, and described communication module is usedIn the transmitting-receiving completing data flow.
Further, described program request simulation softward includes parameter configuration function, program request interface, and parameter configuration function is to pass throughXml configuration file carries out Anytime clients information configuration, and described program request interface shows each mould under interface display module controlIntend relevant information and the real-time play state of program request client.
Further, the parameter that parameter configuration function can configure includes vss server ip address and port numbers, each mouldIntend ip address and the port numbers of program request client.
Further, parameter configuration function can also configure the id numbering of each road on-demand assets.
The method of work that above-mentioned multi-client simulates VOD system comprises the steps:
Step one: in advance vss server, cdn server, client-server are connected with the network switch respectively.
Step 2: complete the parameter configuration files of program request simulation softward in client-server editor, including vss serverIp address and port numbers, the ip address of each simulation program request client and port numbers, and import to program request simulation softward.
Step 3: start at least one order request at program request interface.
Step 4: vss server downloads respective resources from cdn server, and continue to push money to client-serverSource.
Step 5: on client-server, the state that each waypoint is broadcast is checked by program request simulation softward, and by simulating pointThe ip address at blog family and port numbers observe each road video request program situation.
Before step 4, program request simulation softward carries out following job step:
Step a: program request interface sends order request to program request control module.
Step b: program request control module sends corresponding program request and instructs thread management module.
Step c: program request instruction is sent to corresponding program request threading models by thread management module, and this program request threading models entersRow relevant treatment.
Step d: program request threading models are carried out data transmission with vss server by the network switch, will correspond to program request moneyThe program request status information in source is transferred to program request control module by thread management module, and then is transferred to interface display module.
Step e: interface display module controls program request interface to carry out related display.
In step c, the workflow of program request threading models includes process control module and sends program request to protocol resolution moduleThe step of instruction, protocol resolution module instruct, to program request, the step that corresponding demand protocol is parsed;By the program request after parsingInstruction is sent to the network switch, and then the step being sent to vss server by communication module.
The invention has the benefit that
The present invention solve before existing network deployment before it is impossible to test multi-client batch order video systematic function and stablizeThe problem of property.Using technical scheme, just can realize multi-client batch program request using a client device and regardThe test scene of frequency, before being easy in existing network deployment facility and commencing business, is best understood from the performance of equipment, knows in advance and setStandby performance capability, preferably lifts Consumer's Experience.
Brief description
Fig. 1 is system structure diagram.
Fig. 2 is the workflow schematic diagram of program request simulation softward.
Fig. 3 is single program request threading models workflow schematic diagram.
Specific embodiment
The design concept of the present invention is: the problem existing for prior art, provides one kind to be based on video stream pushing service systemThe test system of simulation multi-client batch program request of unified test examination and method of testing.Using the present invention, only using a clientEquipment just can realize the performance of multi-client program request, to grasp the performance of video stream pushing service system well, is easy toConsumer's Experience is lifted before the development of the deployment in existing network and business.
Below technical scheme is described in detail.
As shown in figure 1, multi-client simulation VOD system of the present invention includes the network switch, vss server, cdnServer and client side's server;Vss server, cdn server and client side's server is connected with the network switch respectively.
The described network switch is used for vss server, and cdn server and client side's server disposition is in consolidated networkIn, carry out data exchange.Vss server is had with network switch connecting link: 10g download link, two 10g plug-flow links,10g plug-flow link program request controls link.The connecting link of client-server and 10,000,000,000 switches has 10g plug-flow link & program requestControl link, two 10g plug-flow links.Cdn server has 10g download link with the connecting link of the network switch.Described netNetwork switch can be 10,000,000,000 switches.
Vss server receives the resource program request instruction of client-server, and downloads phase from cdn server according to instructionAnswer resource.
Described cdn server be used for prestoring multiple be available for program request regarding resource, and according to instruction by download link to vssServer transmission resource.
Running on described client-server has program request simulation softward, and described program request simulation softward is used for some according to simulatingThe ip address of program request client and port numbers, and start client's order request, request instruction is sent to vss by the network switchServer, and show the corresponding program request status information of every road order request.
Below program request simulation softward is described in detail.
The operational module of program request simulation softward specifically includes that program request threading models, thread management module, program request control mouldBlock, interface display module.Each functions of modules is as follows:
1st, program request threading models: include process control module, protocol resolution module, communication module, mainly complete to program request streamThe control of journey, parses to demand protocol, and completes the transmitting-receiving of data flow.One thread corresponds to program request threading models.
It is illustrated in figure 3 the workflow of single program request threading models, comprise the steps:
Step one: process control module sends program request instruction to protocol resolution module.
Step 2: protocol analysis mould instructs corresponding demand protocol to program request and parses.
Step 3: the program request instruction after parsing is sent to the network switch by communication module, and then is sent to vss clothesBusiness device.
Step 4: the network switch receives related data flow from vss server, passes through communication module, protocol resolution moduleDefeated to process control module.
Step 5: related data is streamed to thread management module by workflow management module.
2nd, thread management module: mainly multiple program request threads are scheduling managing, transmission program request instructs correspondingProgram request threading models.
3rd, program request control module: control various order request orders, realize interface display module and each program request threadInteraction.
4th, interface display module: program request configuration management is provided, and assumes the real-time status parameter of each program request thread.
The interface of simulation program-requesting software includes parameter configuration function, program request interface, is controlled by interface display module.
Described parameter configuration interface completes the parameter configuration of program request simulation softward, and key parameter includes: vss server ip groundLocation and the id numbering of port numbers, the ip address of each simulation program request client and port numbers, each road on-demand assets.Id numbering guaranteesThe accuracy of each on-demand assets id.
Program request interface is a list, lists relevant information and the program request status information of all simulant-clients, and canStart multiple client's order request.Program request status information is divided into normal and improper.Additionally every waypoint can be broadcast and carry out soonEnter, rewind, the batch operation such as play when suspending, selecting.By ip address and the port numbers at every waypoint blog family on vlc, permissibleSpecifically observe the broadcasting situation of each road video.
Below the overall workflow of program request simulation softward is illustrated.
Step a: program request interface sends order request to program request control module.
Step b: program request control module sends the program request corresponding program request of instruction and instructs thread management module.
Step c: program request instruction is sent to corresponding program request threading models by thread management module, and this program request threading models entersRow relevant treatment.
Step d: program request threading models are carried out data transmission with vss server by the network switch, will correspond to program request moneyThe program request status information in source is transferred to program request control module by thread management module, and then is transferred to interface display module.
Step e: interface display module controls program request interface to carry out related display.