This article refers to the address: http://
1 Introduction
In order to provide "interactive" and "on-demand viewing", the system needs to provide an interface for interacting with the user for the user to browse the program information provided by the system and select the program to be enjoyed. This interface is provided by the EPG (Electronic Program Guide) server in the IPTV system. The EPG is an interactive programming schedule of current and future program information that the user navigates by operating the remote control [2] . The EPG module is critical throughout the IPTV system and is the gateway to the entire IPTV system. EPG provides users with an easy-to-use, user-friendly way to quickly access programs. Therefore, the user's evaluation of the entire IPTV system depends to a large extent on the EPG. Providing an easy-to-use, fast, stable, and aesthetically pleasing interface is the primary goal of the EPG.
2 IPTV system structure model
Figure 1 is a structural model of an IPTV system. This model has been put into practical use in some cities in China. In this model structure diagram, the entire IPTV system is divided into two parts: the background part and the user access part. The background part mainly provides management of media content, user management, server management of the entire system, user authentication and billing management, and the like. The user access part provides video services and other services for users. It can be divided into multiple areas according to the size of the city. Each area mainly has regional media base stations and EPG servers. The user uses the set-top box [3] [4] [5] plus the TV or PC as the terminal, and the program or live TV program stored by the ADSL or the cell broadband viewing system. The set-top box is a simple computer with CPU, memory, network connection device, decoder and other hardware and operating system and application software. It receives the video signal transmitted through the broadband IP network. The signal is processed and displayed on the TV. come out. The user uses the functions provided by the set top box by manipulating the remote control.
The working process of the system is roughly as follows: 1 The media source is processed by the media processing module into a format defined by the system, stored on the primary media base station, and the media distribution management module in the background is responsible for distributing the programs to each of the following areas. In the media base station. 2 At the same time, the information about the program is also sent to the EPG server for the EPG to display to the user. 3 After the user is booted and authenticated in the background, log in to the EPG server and start browsing the program information of the system. 4 When the user selects a program to view, the EPG sends the program information and the user's information to the background portion, and the user management portion of the background determines whether the user can enjoy the program. If so, the user's set top box sends the media set to the local base station. A request to play a program. 5 After the playback is completed, the set-top box sends a request for deducting the corresponding charge to the background, and at the same time redirects to the EPG server, and the user can continue to browse the program and enjoy the program.
Considering that IPTV is still in the development stage at home, there are not many users in one region. At present, the system is designed to support up to 3000 users in one area, and the number of users accessing the EPG server at the same time does not exceed 500. When the number of users increases, an EPG server cluster can be used. In Figure 1, a primary EPG server is deployed in each zone. For system stability, a standby EPG server is also deployed.
3 EPG module design
(4) Performance meets design requirements. To meet the design performance requirements, mainly consider server optimization, database optimization.
There are two main options for EPG implementation, local application and interactive implementation [7] . At present, domestic and foreign EPG designs are basically for digital TV, and their EPG implementation generally adopts local application solutions. The local solution has higher hardware requirements for the set-top box and does not do well in terms of interactivity with the user. IPTV is a system that is highly interactive with users and is designed and implemented to fit the second option.
In this article, focus on the EPG design of the set-top box, the specific implementation of Linux + Apache + MySQL + PHP, the entire framework of the program design based on the idea of ​​the MVC model.
3.1 MVC design pattern
3.2 concrete implementation
The process is as follows:
Prior to development, the interfaces defining the pre-defined page display layer and the logical processing layer, the logical processing layer, and the data access layer were defined in the design document. Each part of the developer only has to care about what they are doing, and use the interfaces provided by other layers to call the functions of other layers. In this way, the development of each part can work in parallel, greatly improving the development speed.
The encoding of each page of the entire EPG module follows this rule. At the same time, we provide the customer with an EPG reference manual, which mainly refers to the interface function of the data and the usage instructions of the client-side processing layer JavaScript function. The customer only needs to master the production process of a page and the function calling method in the provided manual, and has a certain level of programming, and can write his own EPG independently in a short time.
3.3 EPG performance test
The tested hardware environment is: CPU Intel (R) Pentium (R) 4 2.40 GHz, 1 GB of memory, 1 GB / s of network card. The software environment is: operating system RedHat 9.0, Apache 2.0.50, MySQL 4.0.21, PHP 4.3.9RC3-dev, Squid 2.5 STABLE1.
LoadRunner simulates testing the number of concurrent users to 220, 500, testing the EPG server's transaction response time and transaction completion. Server response time and transaction completion test data are shown in Table 1 and Table 2. From the test data, when the number of concurrent users is 500, there is no transaction failure, and the average response time does not exceed 3 seconds. This time is acceptable to the user. Explain that the EPG is developed using this design method, and the performance of the server has reached the pre-required requirements.
As can be seen from the above tests and analysis, the development of the EPG using the design method described above generally achieves the pre-design principles.
4 Conclusion
Table 1 EPG server response time |
Transaction Number of simulated users | Login to EPG | Browse the VOD menu | Browse TV menu | Back to home | |
220 | Maximum response time | 4.456 | 3.464 | 4.048 | 4.035 |
Minimum response time | 0.034 | 0.017 | 0.038 | 0.016 | |
Average response time | 0.297 | 0.279 | 0.0941 | 0.245 | |
500 | Maximum response time | 10.465 | 9.087 | 8.53 | 8.551 |
Minimum response time | 0.035 | 0.017 | 0.038 | 0.016 | |
Average response time | 2.611 | 1.934 | 2.471 | 2.054 |
Â
Â
Â
Table 2 transaction execution statistics |
Transaction Number of simulated users | Login to EPG | Browse the VOD menu | Browse TV menu | Back to home | |
220 | Total execution times | 26010 | 26010 | 26010 | 26010 |
Pass times | 26010 | 26010 | 26010 | 26010 | |
number of failures | 0 | 0 | 0 | 0 | |
500 | Total execution times | 82904 | 82904 | 82904 | 82904 |
Pass times | 82904 | 82904 | 82904 | 82904 | |
number of failures | 0 | 0 | 0 | 0 |
References :
Communication Ladder Backup Lithium Battery System
51.2V Lithium Battery System,Bms Function Battery System,High Energy Density Battery,Custom Lithium Battery System
Wolong Electric Group Zhejiang Dengta Power Source Co.,Ltd , https://www.wldtbattery.com