An IPTV testing method, system, device, and computer-readable storage medium
By simulating joint testing on the server and client sides and adjusting video parameters and IGMP protocol versions, the testing problems of IPTV services under different resolutions and streaming parameters were solved. This enabled IGMP protocol compatibility testing and rapid location of video stuttering issues, providing a more comprehensive testing solution.
Patent Information
- Application Number
- CN202410914198.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2044-07-09
AI Technical Summary
In existing technologies, the performance of IPTV services at different resolutions and under different IPTV stream parameters cannot be effectively tested. It is also impossible to test the compatibility of IGMP protocol versions. Furthermore, due to network fluctuations, it is difficult to quickly locate problems such as video playback stuttering.
By conducting joint simulation tests on a simulated server and a simulated client, adjusting video parameters, streaming protocol type, and IGMP protocol version, and using packet capture data to analyze the message interactions between the edge router and the simulated server, a comprehensive test of the IPTV service can be achieved.
It provides a more convenient and efficient IPTV testing solution that does not rely on operators for services. It can build video resources of different resolutions or bitrates according to testing needs, test IGMP protocol compatibility, simplify the IPTV service network environment, and facilitate problem location, analysis and troubleshooting.
Smart Images

Figure CN118660152B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of streaming media playback technology, and in particular to an IPTV testing method, system, device, and computer-readable storage medium. Background Technology
[0002] In the current technology, with the development of the Internet, IPTV services provided by the three major telecom operators have become a basic user requirement. Because the IPTV services offered by different operators vary, the optical modems and set-top boxes provided to users also differ in their customization. Therefore, it is necessary to improve the testing and acceptance standards for IPTV service scenarios using edge routers.
[0003] The current testing scenario involves directly connecting the edge router to the optical modem, and the set-top box to the edge router, specifically as follows: Figure 14 As shown, this test scenario can no longer meet the comprehensive testing environment requirements for IPTV service playback, specifically in the following aspects:
[0004] First, the performance of IPTV video playback at different resolutions cannot be effectively tested; second, the playback performance under different IPTV stream parameters cannot be effectively tested; the compatibility of IGMP (Internet Group Management Protocol) versions cannot be tested; and due to network fluctuations, the root cause of problems such as video playback stuttering cannot be quickly located and analyzed.
[0005] Therefore, how to improve the effectiveness, comprehensiveness, and convenience of IPTV testing has become an urgent technical problem to be solved. Summary of the Invention
[0006] To address the shortcomings of existing technologies, such as the inability to effectively test the performance of IPTV video playback at different resolutions and with different IPTV stream parameters, the inability to test IGMP protocol version compatibility, and the inability to quickly locate and analyze the root causes of video playback stuttering due to network fluctuations, this invention proposes an IPTV testing method, system, device, and computer-readable storage medium.
[0007] Specifically, an IPTV testing method, applied to a simulated server, includes:
[0008] Based on the current testing requirements, select a video source file as the test source in the preset streaming media software, and configure the protocol type, current multicast address, and current version of the Internet Group Management Protocol for the test source stream.
[0009] Access the edge router to be tested, so that the simulated client accessing the edge router joins the multicast group corresponding to the multicast address according to the current version of the Internet Group Management Protocol;
[0010] During the joint simulation test conducted by the simulated server, the edge router, and the simulated client, one or more of the following are adjusted: video parameters of the test source, protocol type of the streaming stream, and version of Internet Group Management Protocol. The first packet interaction between the simulated server and the edge router is then tested and analyzed based on the first packet capture data.
[0011] Optionally, the video parameters include one or more of video resolution, video bitrate, video size, and video duration, and adjusting one or more of the video parameters of the test source, the protocol type of the stream, and the version of the Internet Group Management Protocol specifically includes:
[0012] The video parameters are modified by selecting a video source file with one or more of the following characteristics from local storage: video resolution, video bitrate, video size, and video duration.
[0013] Optionally, the version of the Internet Group Management Protocol (IGMP) includes a first version, a second version, and a third version, and adjusting one or more of the video parameters of the test source, the protocol type of the stream, and the version of the IGMP specifically includes:
[0014] The version of the Internet Group Management Protocol (IGMP) can be modified by adjusting the numbers in the IGMPVersion and IGMPLevel fields in the current version script of the IGMP.
[0015] Optionally, the step of testing and analyzing the first packet interaction between the simulated server and the edge router based on the first packet capture data further includes:
[0016] Obtain the playback status of the simulated client;
[0017] When the playback state meets the preset first condition, one or more of the following are adjusted according to the playback state: video parameters of the test source, protocol type of the stream, and version of Internet Group Management Protocol.
[0018] When the playback status meets the preset second condition, the first message interaction is tested and analyzed based on the first data.
[0019] This invention also proposes an IPTV testing method applied to a simulated client, the method comprising:
[0020] Start network streaming and enter the current multicast address;
[0021] Connect to the edge router to be tested and join the multicast group corresponding to the current multicast address according to the current version of the Internet Group Management Protocol;
[0022] Start playing multicast video, and test and analyze the second message interaction between the simulated client and the edge router based on the second data captured by the packet capture. During the simulation test jointly conducted by the simulated server, the edge router and the simulated client, the simulated server modifies one or more of the following: the video parameters of the test source, the protocol type of the stream and the version of the Internet Group Management Protocol.
[0023] Optionally, the step of starting to play multicast video and testing and analyzing the second packet interaction between the simulated client and the edge router based on the second data captured by packet sniffing specifically includes:
[0024] When the playback smoothness of the multicast video meets the preset playback conditions, the multicast video is determined to have played successfully.
[0025] When the playback smoothness does not meet the playback conditions, it is determined that the multicast video playback has failed, and the second packet capture is started. The second packet interaction between the simulated client and the edge router is tested and analyzed based on the second data obtained from the packet capture.
[0026] Optionally, starting to play the multicast video and testing and analyzing the second packet interaction between the simulated client and the edge router based on the second data captured by packet sniffing further includes:
[0027] When it is determined that the multicast video playback has failed, a message containing the current playback status is sent to the simulation server, so that the simulation server can adjust one or more of the video parameters of the test source, the protocol type of the stream, and the version of the Internet Group Management Protocol according to the playback status, and / or start capturing the first packet, and perform test analysis on the first packet interaction based on the first data obtained from the packet capture.
[0028] This invention also proposes an IPTV testing system, which includes: an edge router, a simulated server connected to the edge router, and a simulated client, wherein...
[0029] The simulation server is used to: select a video source file as the test source from a preset streaming media software according to the current test requirements; configure the protocol type, current multicast address, and current version of the Internet Group Management Protocol (IGMP) of the test source stream; connect to the edge router to be tested, so that the simulation client connected to the edge router joins the multicast group corresponding to the multicast address according to the current version of the IMP; during the joint simulation test by the simulation server, the edge router, and the simulation client, adjust one or more of the video parameters of the test source, the protocol type of the stream, and the version of the IMP, and perform test analysis on the first packet interaction between the simulation server and the edge router based on the first packet capture data;
[0030] The simulated client is used to: start a network stream and input the current multicast address; connect to the edge router to be tested and join the multicast group corresponding to the current multicast address according to the current version of the Internet Group Management Protocol; start playing the multicast video; and perform test analysis on the second message interaction between the simulated client and the edge router based on the second packet capture data. During the joint simulation test by the simulated server, the edge router, and the simulated client, the simulated server modifies one or more of the following: the video parameters of the test source, the protocol type of the stream, and the version of the Internet Group Management Protocol.
[0031] The present invention also proposes an IPTV testing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the IPTV testing method as described in any of the preceding claims.
[0032] The present invention also proposes a computer-readable storage medium storing an IPTV test program, which, when executed by a processor, implements the steps of the IPTV test method as described in any of the preceding claims.
[0033] The present invention provides an IPTV testing method, system, device, and computer-readable storage medium. It involves selecting a video source file as the test source from preset streaming media software based on current testing requirements, and configuring the protocol type, current multicast address, and current version of the Internet Group Management Protocol (IGMP) for the test source stream. The system then connects to an edge router to be tested, enabling a simulated client connected to the edge router to join a multicast group corresponding to the multicast address based on the current version of the IMP. During the simulated test conducted jointly by the simulated server, the edge router, and the simulated client, one or more of the video parameters of the test source, the protocol type of the stream, and the version of the IMP are adjusted. Finally, the system tests and analyzes the first packet interaction between the simulated server and the edge router based on the first packet capture data. This invention provides a more convenient, efficient, and comprehensive IPTV testing solution. It eliminates the need to rely on operators to provide IPTV services. The testing environment and system are built according to testing requirements. Video resources of different resolutions or bitrates are built according to testing needs, and video multicast streams with different output protocols are built according to testing needs. The IGMP protocol version is adjusted by modifying the registry to test IGMP protocol compatibility. The IPTV service network environment built is simple, and it is easy to locate, analyze, and troubleshoot problems such as video playback stuttering. Attached Figure Description
[0034] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0035] Figure 1 This is the first flowchart of the IPTV testing method of the present invention;
[0036] Figure 2 This is a schematic diagram of the test environment for the IPTV test method of the present invention;
[0037] Figure 3 This is a schematic diagram illustrating the addition of video sources in the IPTV testing method of this invention;
[0038] Figure 4 This is a schematic diagram of the streaming settings for the IPTV testing method of the present invention;
[0039] Figure 5 This is a schematic diagram illustrating the setting of the streaming target location in the IPTV testing method of the present invention;
[0040] Figure 6 This is a schematic diagram illustrating the source address and port settings for the IPTV testing method of this invention;
[0041] Figure 7 This is a schematic diagram of the transcoding option settings for the IPTV testing method of the present invention;
[0042] Figure 8 This is a schematic diagram of another transcoding option setting for the IPTV testing method of the present invention;
[0043] Figure 9 This is the second flowchart of the IPTV testing method of the present invention;
[0044] Figure 10 This is a schematic diagram of network streaming activation for the IPTV testing method of the present invention;
[0045] Figure 11 This is a schematic diagram of the multicast address setting in the IPTV testing method of the present invention;
[0046] Figure 12 This is a playback diagram of the IPTV testing method of the present invention;
[0047] Figure 13 This is a block diagram of the IPTV testing system of the present invention;
[0048] Figure 14 This is a schematic diagram of an existing IPTV testing environment. Detailed Implementation
[0049] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0050] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0051] Figure 1 This is the first flowchart of the IPTV testing method of the present invention. This embodiment proposes an IPTV testing method applied to a simulated server, the method comprising:
[0052] S1. Based on the current testing requirements, select a video source file as the test source in the preset streaming media software, and configure the protocol type, current multicast address, and current version of the Internet Group Management Protocol for the test source stream.
[0053] S2. Connect to the edge router to be tested, so that the simulated client connected to the edge router joins the multicast group corresponding to the multicast address according to the current version of the Internet Group Management Protocol;
[0054] S3. During the joint simulation test conducted by the simulated server, the edge router, and the simulated client, one or more of the following are adjusted: video parameters of the test source, protocol type of the stream, and version of Internet Group Management Protocol. The first packet interaction between the simulated server and the edge router is tested and analyzed based on the first packet capture data.
[0055] Optionally, the video parameters include one or more of video resolution, video bitrate, video size, and video duration, and adjusting one or more of the video parameters of the test source, the protocol type of the stream, and the version of the Internet Group Management Protocol specifically includes:
[0056] The video parameters are modified by selecting video source files with one or more of the following characteristics from local storage: video resolution, video bitrate, video size, and video duration. Specifically, the selection of video source files with one or more of these characteristics is based on the current testing requirements and scenario. For example, the video resolution parameter is set according to the current testing requirements, and then a video file with the corresponding resolution is selected from the local video library based on this parameter. Alternatively, if the initial parameters of the local test video are inconsistent with the parameters specified in the testing requirements, the initial parameters are converted to the parameters specified in the testing requirements.
[0057] Optionally, the version of the Internet Group Management Protocol (IGMP) includes a first version, a second version, and a third version, and adjusting one or more of the video parameters of the test source, the protocol type of the stream, and the version of the IGMP specifically includes:
[0058] The version of the Internet Group Management Protocol (IGMP) can be modified by adjusting the numbers in the IGMPVersion and IGMPLevel fields of the current version script. For example, the IGMP IGMP IGMP protocol includes three versions: V1, V2, and V3. In this embodiment, the modification of the IGMP protocol version is achieved by modifying the IGMP protocol version script, that is, configuring the server's IGMP protocol version according to the testing needs. The method for modifying the IGMP protocol version script adjustment includes editing the IGMPVersion and IGMPLevel fields in the script to the corresponding numbers. For example, when testing the IGMPv2 protocol version, the number after the IGMPVersion field is changed to 3, and the number after the IGMPLevel field is changed to 2. The IGMP version number rule is that the number 2 corresponds to IGMPv1, the number 3 corresponds to IGMPv2, and the number 4 corresponds to IGMPv3 (default); while the rule for the IGMPLevel field is that the number 0 corresponds to no multicast support, the number 1 corresponds to only supporting IPv4 multicast, and the number 2 corresponds to full IGMP support (default).
[0059] Optionally, the step of testing and analyzing the first packet interaction between the simulated server and the edge router based on the first packet capture data further includes:
[0060] Obtain the playback status of the simulated client;
[0061] When the playback state meets the preset first condition, one or more of the following are adjusted according to the playback state: video parameters of the test source, protocol type of the stream, and version of Internet Group Management Protocol.
[0062] When the playback status meets the preset second condition, the first message interaction is tested and analyzed based on the first data.
[0063] In this embodiment, the first condition refers to the fact that when the simulated client of Computer 2 plays a video, the playback parameters such as smoothness and latency meet preset test conditions. These test conditions include a test success condition, such as a smoothness threshold. If the current video playback smoothness is greater than or equal to the smoothness threshold, the playback state is determined to meet the preset first condition. Alternatively, the test conditions may include test item conditions, such as multiple latency thresholds of different levels. The latency thresholds are selected from high to low. When a higher latency threshold is met, the playback state is determined to meet the preset first condition. The test source is then adjusted or replaced to continue executing the determination of a lower latency threshold. This process is repeated, and the test analysis is performed step by step according to the progress of the playback state meeting the preset first condition. Similarly, in this embodiment, the second condition refers to the fact that when the simulated client of Computer 2 plays a video, the playback parameters such as smoothness and latency cannot meet the preset test conditions. At this time, on the one hand, it is necessary to test and analyze the first message interaction based on the first data. On the other hand, the test source can be adjusted or replaced to continue to execute the playback status determination. In this process, the first message interaction is also tested and analyzed based on the first data to select a more suitable video source for the next test.
[0064] Optionally, the streaming media software in this embodiment is VLC (a free and open-source cross-platform multimedia player and framework). The test method for building an IPTV server based on VLC software simulates the IPTV service scenario of operators, and realizes the simulation of application scenarios for testing according to the actual IPTV service scenarios of different operators, or even different provinces and cities, so as to ensure that the test results meet the acceptance requirements.
[0065] Specifically, such as Figure 2 The diagram shows the test environment. On computer one, a simulated IPTV server is built using VLC software. Simultaneously, Wireshark (a network analysis tool) is used on this computer to capture packets and analyze the message interactions between the server and the edge router, facilitating problem localization and analysis during the test. Meanwhile, on computer two, VLC software is also used to simulate a client playing IPTV video. Again, Wireshark is used on this computer to capture packets and analyze the message interactions between the client and the edge router, facilitating problem localization and analysis during the test.
[0066] In this embodiment, for the application scenario described above, a comprehensive test of the IPTV service is achieved by configuring parameters such as video source resolution, video bitrate, and IGMP protocol version on the server.
[0067] In this embodiment, special consideration is given that the operator's IPTV service mainly consists of two parts: first, joining or leaving multicast streams via the IGMP protocol; and second, different operators using different protocols to transmit video streams to the terminal. Currently, the aforementioned IGMP protocol includes three versions: V1, V2, and V3, and the video resolution played in the operator's IPTV service is generally fixed. Therefore, when testing IPTV services, it is also necessary to test the version compatibility of the IGMP protocol and the playback of videos with different resolutions and bitrates.
[0068] In this embodiment, to achieve the above testing requirements, a specific configuration of an IPTV server based on VLC software will be provided:
[0069] Please refer to Figure 3 The diagram illustrates how to add a video source. In VLC, you can add a local video file as a video source by clicking "Media -> Stream -> File -> Add".
[0070] Please refer to Figure 4 The diagram shows the streaming settings. In the VLC software, clicking "Stream" determines the source of the stream output.
[0071] Please refer to Figure 5 The diagram shows the setup for the stream target location. In the VLC software, after determining the source of the stream output, click "Next." Taking UDP (User Datagram Protocol) as an example, select "UDP" and then click "Add."
[0072] Please refer to Figure 6 The diagram shows the source address and port settings. Specifically, after selecting "UDP" and clicking "Add," the source address and port information are set on the page where you select the target location for the stream.
[0073] Please refer to Figure 7 The diagram shows the transcoding options settings. After setting the source address and port information, click "Next" and check "Activate transcoding".
[0074] Please refer to Figure 8 Another transcoding option setting diagram is shown. After checking "Activate transcoding" and clicking "Next", the current option status of "Stream all basic streams" is set by default. Click "Stream" to complete the setting.
[0075] In this embodiment, the modification of the IGMP protocol version is achieved by modifying the IGMP protocol version script, that is, configuring the server's IGMP protocol version according to the testing requirements. The method for modifying the IGMP protocol version script includes editing the IGMPVersion and IGMPLevel fields in the script to the corresponding numbers. For example, when testing the IGMPv2 protocol version, the number after the IGMPVersion field is changed to 3, and the number after the IGMPLevel field is changed to 2. The IGMP version number rule is that the number 2 corresponds to IGMPv1, the number 3 corresponds to IGMPv2, and the number 4 corresponds to IGMPv3 (default); while the rule for the IGMPLevel field is that the number 0 corresponds to no multicast support, the number 1 corresponds to only supporting IPv4 multicast, and the number 2 corresponds to full IGMP support (default).
[0076] The beneficial effects of this embodiment are as follows: A video source file is selected as the test source in a preset streaming media software according to the current testing requirements, and the protocol type, current multicast address, and current version of the Internet Group Management Protocol (IGMP) of the test source stream are configured; the edge router to be tested is connected, so that the simulated client connected to the edge router joins the multicast group corresponding to the multicast address according to the current version of the IMP; during the joint simulation test by the simulated server, the edge router, and the simulated client, one or more of the video parameters of the test source, the protocol type of the stream, and the version of the IMP are adjusted, and the first packet interaction between the simulated server and the edge router is tested and analyzed based on the first packet capture data. This solution provides a more convenient, efficient, and comprehensive IPTV testing approach. It eliminates the need to rely on IPTV services provided by operators. The test environment can be built according to specific testing requirements, including video resources of different resolutions or bitrates. It can also output multicast streams with different protocols. The IGMP protocol version can be adjusted by modifying the registry to test IGMP compatibility. The resulting IPTV service network environment is simple, facilitating problem localization, analysis, and troubleshooting when issues such as video playback stuttering occur.
[0077] Please refer to Figure 9 The present invention also proposes an IPTV testing method applied to a simulated client, the method comprising:
[0078] S10. Start network streaming and enter the current multicast address;
[0079] S20. Connect to the edge router to be tested and join the multicast group corresponding to the current multicast address according to the current version of the Internet Group Management Protocol;
[0080] S30. Start playing the multicast video and perform test analysis on the second message interaction between the simulated client and the edge router based on the second data captured by the packet capture. During the joint simulation test by the simulated server, the edge router and the simulated client, the simulated server modifies one or more of the following: the video parameters of the test source, the protocol type of the streaming stream and the version of the Internet Group Management Protocol.
[0081] Optionally, the step of starting to play multicast video and testing and analyzing the second packet interaction between the simulated client and the edge router based on the second data captured by packet sniffing specifically includes:
[0082] When the playback smoothness of the multicast video meets the preset playback conditions, the multicast video is determined to have played successfully.
[0083] When the playback smoothness does not meet the playback conditions, it is determined that the multicast video playback has failed, and the second packet capture is started. The second packet interaction between the simulated client and the edge router is tested and analyzed based on the second data obtained from the packet capture.
[0084] Optionally, starting to play the multicast video and testing and analyzing the second packet interaction between the simulated client and the edge router based on the second data captured by packet sniffing further includes:
[0085] When it is determined that the multicast video playback has failed, a message containing the current playback status is sent to the simulation server, so that the simulation server can adjust one or more of the video parameters of the test source, the protocol type of the stream, and the version of the Internet Group Management Protocol according to the playback status, and / or start capturing the first packet, and perform test analysis on the first packet interaction based on the first data obtained from the packet capture.
[0086] Specifically, such as Figure 10 The diagram shows how to enable network streaming. Specifically, on the IPTV playback device (computer two), open the VLC software and select network streaming.
[0087] like Figure 11 The diagram shows the multicast address settings. After selecting network stream, in the network URL configuration interface, enter the URL corresponding to the server multicast address configured on the aforementioned computer after configuring the IPTV server.
[0088] like Figure 12 The diagram illustrates the playback process. Once the configuration is complete, multicast video playback can begin, and IPTV testing can commence.
[0089] In this embodiment, the test results are analyzed. Specifically: a successful test means the IPTV playback terminal (Computer 2) can play the video provided by the IPTV server normally without significant stuttering. A failed test means the IPTV playback terminal (Computer 2) cannot play the video provided by the IPTV server normally, or there is significant stuttering during playback. In this case, Wireshark is opened simultaneously on both the IPTV server (Computer 1) and the IPTV playback terminal (Computer 2) to capture packets. The problem is then reproduced, and the analysis results are used to pinpoint the source of the problem.
[0090] As can be seen, the testing scheme adopted in this embodiment only requires VLC open-source software, a Windows operating system, and two computers. The server is manually set up, and all configuration parameters can be arbitrarily configured according to the needs of the testing scenario; the testing environment is simple to set up and can be flexibly built in any environment.
[0091] The beneficial effects of this embodiment are as follows: A simulated client initiates a network stream and inputs the current multicast address; it connects to the edge router under test and joins the multicast group corresponding to the current multicast address according to the current version of the Internet Group Management Protocol (IGMP); it starts playing multicast video and tests and analyzes the second packet interaction between the simulated client and the edge router based on the captured second data. During the joint simulation test by the simulated server, the edge router, and the simulated client, the simulated server modifies one or more of the video parameters of the test source, the protocol type of the stream, and the version of the IGMP. This achieves a more convenient, efficient, and comprehensive IPTV testing solution. It does not rely on IPTV services provided by operators. The test environment is built according to testing needs, and video resources of different resolutions or bitrates are built according to testing needs. Video multicast streams with different output protocols are built according to testing needs. The IGMP protocol version is adjusted by modifying the registry to test IGMP protocol compatibility. The built IPTV service network environment is simple, and it is easy to locate, analyze, and troubleshoot problems such as video playback stuttering.
[0092] Please refer to Figure 13The block diagram shown is for reference only. This invention also proposes an IPTV testing system, which includes an edge router 10, a simulation server 20 connected to the edge router 10, and a simulation client 30. Specifically, the simulation server 20 is used to select a video source file as the test source from a preset streaming media software according to current testing requirements, and configure the protocol type, current multicast address, and current version of the Internet Group Management Protocol (IGMP) for the test source stream; connect to the edge router 10 to be tested, so that the simulation client 30 connected to the edge router 10 joins the multicast group corresponding to the multicast address according to the current version of the IMP; and adjust the video parameters of the test source, the protocol type of the stream, and the version of the IMP during the joint simulation test conducted by the simulation server 20, the edge router 10, and the simulation client 30. One or more of the following are used: the simulated server 20 and the edge router 10 are tested and analyzed based on the first packet capture data; the simulated client 30 is used to start a network stream and input the current multicast address; it connects to the edge router 10 to be tested and joins the multicast group corresponding to the current multicast address according to the current version of the Internet Group Management Protocol; it starts playing multicast video and tests and analyzes the second packet interaction between the simulated client 30 and the edge router 10 based on the second packet capture data. During the joint simulation test by the simulated server 20, the edge router 10 and the simulated client 30, the simulated server 20 modifies one or more of the following: the video parameters of the test source, the protocol type of the stream and the version of the Internet Group Management Protocol.
[0093] It should be noted that the above system embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments. Furthermore, the technical features in the method embodiments are also applicable to the system embodiments, and will not be repeated here.
[0094] The present invention also proposes an IPTV testing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the IPTV testing method as described in any of the preceding claims.
[0095] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.
[0096] Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing an IPTV test program, which, when executed by a processor, implements the steps of the IPTV test method as described in any of the above embodiments.
[0097] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.
[0098] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0099] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0100] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0101] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. An IPTV testing method applied to a simulation server, characterized in that, The method comprises: According to the current test requirements, a video source file is selected as a test source in a preset streaming media software, and a protocol type of a stream, a current multicast address and a current version of an Internet Group Management Protocol are configured; An edge router to be tested is accessed, so that an analog client accessing the edge router joins a multicast group corresponding to the multicast address according to the current version of the Internet Group Management Protocol; During joint simulation testing of the analog server, the edge router and the analog client, one or more of the video parameters of the test source, the protocol type of the stream and the version of the Internet Group Management Protocol are adjusted, and first data obtained by packet capturing is used to test and analyze first message interaction between the analog server and the edge router; The video parameters include one or more of video resolution, video code rate, video capacity and video duration, and the adjustment of one or more of the video parameters of the test source, the protocol type of the stream and the version of the Internet Group Management Protocol specifically comprises: The video parameters are modified by selecting a video source file with one or more of corresponding video resolution, video code rate, video capacity and video duration in local storage; The version of the Internet Group Management Protocol is modified by adjusting numbers of IGMPVersion and IGMPLevel fields in a script of the current version of the Internet Group Management Protocol; The test and analysis of the first message interaction between the analog server and the edge router according to the first data obtained by packet capturing further comprises: The playing state of the analog client is obtained; When the playing state meets a preset first condition, one or more of the video parameters of the test source, the protocol type of the stream and the version of the Internet Group Management Protocol are adjusted according to the playing state; When the playing state meets a preset second condition, the first message interaction is tested and analyzed according to the first data; The first condition means that a playing parameter during video playing meets a preset test condition; The second condition means that the playing parameter during video playing does not meet the test condition. The method comprises: Network streaming is started, and a current multicast address is input; 2. An IPTV testing method applied to a simulation client, characterized in that, An edge router to be tested is accessed, and a multicast group corresponding to the current multicast address is joined according to a current version of an Internet Group Management Protocol; Playing of multicast video is started, and second data obtained by packet capturing is used to test and analyze second message interaction between the analog client and the edge router, wherein during joint simulation testing of the analog server, the edge router and the analog client, one or more of the video parameters of the test source, the protocol type of the stream and the version of the Internet Group Management Protocol are modified by the analog server; The playing of multicast video and the test and analysis of the second message interaction between the analog client and the edge router according to the second data obtained by packet capturing specifically comprise: When the play fluency of the multicast video meets preset play conditions, it is determined that the multicast video is played successfully. When the play fluency does not meet the play conditions, it is determined that the multicast video is not played successfully, second packet capturing is started, and second data obtained by the packet capturing is used to test and analyze second packet interaction between the simulation client and the edge router. The starting to play the multicast video and the testing and analyzing of the second packet interaction between the simulation client and the edge router according to the second data obtained by the packet capturing further include: When it is determined that the multicast video is not played successfully, a message including a current play state is sent to the simulation server, so that the simulation server adjusts one or more of a video parameter of the test source, a protocol type of the stream, and a version of an Internet Group Management Protocol according to the play state, and / or first packet capturing is started, and the first packet interaction is tested and analyzed according to the second data obtained by the packet capturing.
3. An IPTV test system characterized by, The system includes an edge router, a simulation server connected to the edge router, and a simulation client. The simulation server is configured to select a video source file as a test source in preset streaming media software according to current test requirements, configure a protocol type of a stream of the test source, a current multicast address, and a current version of an Internet Group Management Protocol, access the edge router to be tested, so that a simulation client accessing the edge router joins a multicast group corresponding to the multicast address according to the current version of the Internet Group Management Protocol, adjust one or more of a video parameter of the test source, the protocol type of the stream, and the version of the Internet Group Management Protocol during joint simulation testing of the simulation server, the edge router, and the simulation client, and test and analyze first packet interaction between the simulation server and the edge router according to first data obtained by packet capturing; the video parameter includes one or more of a video resolution, a video bit rate, a video capacity, and a video duration; the video parameter is modified by selecting a video source file having one or more of the corresponding video resolution, the video bit rate, the video capacity, and the video duration in local storage; the version of the Internet Group Management Protocol is modified by adjusting numbers of an IGMPVersion field and an IGMPLevel field in a script of the current version of the Internet Group Management Protocol; a play state of the simulation client is obtained; when the play state meets preset first conditions, one or more of the video parameter of the test source, the protocol type of the stream, and the version of the Internet Group Management Protocol is adjusted according to the play state; when the play state meets preset second conditions, the first packet interaction is tested and analyzed according to the first data; the first conditions refer to that play parameters during video play meet preset test conditions; the second conditions refer to that the play parameters during the video play do not meet the test conditions. The simulation client is configured to start network streaming and input the current multicast address, access the edge router to be tested, and join a multicast group corresponding to the current multicast address according to the current version of the IGMP, start playing the multicast video, and test and analyze the second message interaction between the simulation client and the edge router according to the second data obtained by packet capturing. During the simulation test performed by the simulation server, the edge router, and the simulation client jointly, the simulation server modifies one or more of the video parameters of the test source, the protocol type of the stream, and the version of the IGMP. When the playing fluency of the multicast video meets a preset playing condition, it is determined that the multicast video is successfully played. When the playing fluency does not meet the playing condition, it is determined that the multicast video fails to be played, second message capturing is started, and the second message interaction between the simulation client and the edge router is tested and analyzed according to the second data obtained by packet capturing. When it is determined that the multicast video fails to be played, a message containing a current playing state is sent to the simulation server, so that the simulation server adjusts one or more of the video parameters of the test source, the protocol type of the stream, and the version of the IGMP according to the playing state, and / or first message capturing is started, and the first message interaction is tested and analyzed according to the first data obtained by packet capturing.
4. An IPTV testing device, characterized by, The device comprises a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is executed by the processor to implement the steps of the IPTV test method according to claim 1 or 2.
5. A computer readable storage medium, characterized in that, The computer readable storage medium stores an IPTV test program, and the IPTV test program is executed by the processor to implement the steps of the IPTV test method according to claim 1 or 2.
Citation Information
Patent Citations
Simulation device and simulation method for IGMP (Internet Group Management Protocol) router
CN105007199A
System for testing router iptv service and method thereof
CN112929233A