Method and system for testing IPTV (Internet Protocol Television) service of intelligent networking terminal

By simulating the operator and set-top box environment in the test system, using VLAN ID configuration and communication connection, the problem of high cost and low efficiency of IPTV signal forwarding function testing in the prior art in intelligent network terminals is solved, and more efficient and accurate testing is achieved.

CN119996645APending Publication Date: 2025-05-13SHENZHEN H&T INTELLIGENT CONTROL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411988497.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The prior art tests the function of intelligent network terminals to forward IPTV signals, which is costly and inefficient, requiring a lot of manpower and actual user usage scenarios.

Method used

By including the first computer, the second computer, the switch and the intelligent networking terminal in the test system, the target VLAN ID is determined, and the switch and the intelligent networking terminal are configured according to the ID, communication connection is established, the operator and set-top box environment is simulated, and the IPTV service functions of the intelligent networking terminal are tested.

Benefits of technology

It improves the accuracy and efficiency of testing, reduces the cost of testing, simplifies the construction of the test environment, is convenient to operate, and can better fit the real usage environment of the intelligent network terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996645A_ABST
    Figure CN119996645A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent networking terminal IPTV service test method and system, and the test method comprises the steps: firstly determining a target VLAN ID, carrying out the configuration of a switch and an intelligent networking terminal according to the target VLAN ID, building a communication connection between a first computer and a second computer under the target VLAN ID, and carrying out the testing of the IPTV service of the intelligent networking terminal. The second computer sends a playing request to the first computer through the intelligent networking terminal and the switch, the first computer responds to the playing request and sends multicast video data to the second computer, and finally the second computer receives the multicast video data and plays a multicast video. The method is more suitable for the real use environment of the intelligent networking terminal, so that the test accuracy is improved, the test environment is convenient to build, the test cost is saved, the operation is convenient, and the test efficiency is relatively high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent networking terminal testing, and more particularly to a testing method and system for an IPTV service of an intelligent networking terminal. Background Art

[0002] IPTV (Internet Protocol Television) is a television transmission method based on the Internet Protocol (IP), relying on broadband networks to provide users with multimedia services such as multicast television programs and video on demand (VOD). As a communication transmission medium that is not available in the home network, the intelligent networking terminal needs to complete the transmission of this service, and even cooperate with other devices to complete the implementation of the service flow.

[0003] During the development of smart networking terminals, it is necessary to test the function of the smart networking terminal to forward IPTV signals to test whether it can successfully forward IPTV signals. The current testing method is to place the smart networking terminal in an actual user usage scenario, which has a high testing cost and requires a lot of manpower to deploy the corresponding actual user usage scenario, resulting in low testing efficiency. Summary of the invention

[0004] An object of an embodiment of the present invention is to provide a method and system for testing IPTV services of an intelligent networking terminal, which improves the test accuracy and efficiency.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a method for testing an IPTV service of an intelligent networking terminal, which is applied to a test system, wherein the test system comprises: a first computer, a second computer, a switch, and an intelligent networking terminal, wherein the first computer is connected to a first port of the switch, the second port of the switch is connected to a WAN port of the intelligent networking terminal, and the LAN port of the intelligent networking terminal is connected to the second computer; the test method comprises:

[0007] Determine a target VLAN ID, wherein the target VLAN ID is a VLAN ID to be tested;

[0008] Configuring the switch and the intelligent networking terminal according to the target VLAN ID;

[0009] The first computer and the second computer establish a communication connection under the target VLAN ID;

[0010] The second computer sends a play request to the first computer via the intelligent networking terminal and the switch;

[0011] The first computer responds to the play request and sends the multicast video data to the second computer via the switch and the intelligent networking terminal;

[0012] The second computer receives the multicast video data and plays the multicast video.

[0013] Optionally, configuring the switch according to the target VLAN ID includes:

[0014] Using a third computer to configure the first port to add the target VLAN ID, and the data frame sent through the first port does not contain a VLAN tag;

[0015] The second port is configured by a third computer to add the target VLAN ID, and the data frame sent through the second port includes a VLAN tag.

[0016] Optionally, configuring the switch according to the target VLAN ID further includes:

[0017] Using the third computer to globally enable the IGMP Snooping function on the switch;

[0018] Using the third computer to enable the IGMP Snooping function under the target VLAN ID;

[0019] The third computer is used to enable the IGMP Snooping querier function under the target VLAN ID.

[0020] Optionally, configuring the intelligent networking terminal according to the target VLAN ID includes:

[0021] Determine that the LAN port connected to the second computer is an IPTV port;

[0022] The IPTV port is configured to add the target VLAN ID.

[0023] Optionally, configuring the intelligent networking terminal according to the target VLAN ID further includes:

[0024] If the second computer is not loaded with the 802.1q VLAN protocol, the IPTV port of the intelligent networking terminal is configured so that the data frame received by the IPTV port contains a VLAN tag and supports transparent transmission of multicast video data;

[0025] If the second computer is loaded with the 802.1q VLAN protocol, the IPTV port of the intelligent networking terminal is configured to support transparent transmission of multicast video data.

[0026] Optionally, the first computer and the second computer establish a communication connection under the target VLAN ID, including:

[0027] The second computer accesses the network under the target VLAN ID and sends a DHCP request to the network under the target VLAN ID;

[0028] The first computer starts a DHCP server and, in response to the DHCP request, allocates an IP address to the second computer to establish a communication connection with the second computer.

[0029] Optionally, the method further comprises:

[0030] The second computer detects the playing time of the multicast video;

[0031] A test result is determined according to the playback duration, wherein the test result includes whether the smart networking terminal passes the test or whether the smart networking terminal fails the test.

[0032] Optionally, determining a test result according to the playback duration includes:

[0033] If the playback duration is greater than a preset threshold, determining that the test result is that the smart networking terminal passes the test;

[0034] Otherwise, it is determined that the test result is that the intelligent networking terminal fails the test.

[0035] In a second aspect, an embodiment of the present invention provides a test system, the test system comprising a first computer, a second computer, a switch, and an intelligent networking terminal;

[0036] The first computer is connected to the first port of the switch, the second port of the switch is connected to the WAN port of the intelligent networking terminal, and the LAN port of the intelligent networking terminal is connected to the second computer;

[0037] Wherein, the testing system is used to execute the testing method as described above.

[0038] Based on the above technical solution, an embodiment of the present invention provides a test method for the IPTV service of an intelligent networking terminal, which is applied to a test system. The test method includes first determining a target VLAN ID, then configuring a switch and an intelligent networking terminal according to the target VLAN ID, establishing a communication connection between a first computer and a second computer under the target VLAN ID, then the second computer sends a play request to the first computer via the intelligent networking terminal and the switch, the first computer responds to the play request, sends multicast video data to the second computer, and finally the second computer receives the multicast video data and plays the multicast video. The test method uses the first computer and the switch to simulate the operator environment, and uses the second computer to simulate the set-top box and the TV, which is more in line with the actual use environment of the intelligent networking terminal, thereby improving the test accuracy. In addition, the test method only needs to complete the test through the interaction between the first computer, the intelligent networking terminal, the switch and the second computer, and the test environment is convenient to build, saving test costs, and easy to operate, and the test efficiency is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0040] Figure 1 is a schematic diagram of a test system provided by an embodiment of the present invention;

[0041] Figure 2 It is a flow chart of a method for testing IPTV services of an intelligent networking terminal provided by an embodiment of the present invention;

[0042] Figure 3 yes Figure 2 Schematic diagram of the process of step S30;

[0043] Figure 4 yes Figure 2 Another schematic diagram of the process of step S30;

[0044] Figure 5 yes Figure 2 Schematic diagram of the process of step S40;

[0045] Figure 6 yes Figure 2 Another schematic diagram of the process of step S40;

[0046] Figure 7 yes Figure 2 Schematic diagram of the process of step S50;

[0047] Figure 8The present invention is a flowchart of another method for testing IPTV services of an intelligent networking terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0049] The first computer and the second computer provided in the embodiment of the present invention may be any suitable type of electronic devices with computing capabilities, such as servers, desktop computers, smart phones, tablet computers, and other electronic products.

[0050] First, the technical names involved in the embodiments of the present invention are explained:

[0051] 1. Smart networking terminal: terminal equipment that extends the coverage of the smart home gateway wireless LAN (WIFI) network within the home broadband user network, such as routers.

[0052] 2. WAN port: Wide Area Network port, refers to the interface connected to the wide area network, usually refers to the interface connected to the Internet or service provider network.

[0053] 3. LAN port: Local Area Network port, local area network interface, refers to the interface connected to the home, office or enterprise internal network.

[0054] 4. IPTV: Interactive Internet Television is a cable television data transmission technology that uses bandwidth.

[0055] 5. VLAN ID: Virtual Local Area Network Identifier, a value used to uniquely identify a VLAN (virtual local area network). VLAN is a technology for dividing different broadcast domains on a switch, which allows network administrators to divide a physical LAN into multiple logical LANs, each VLAN is an independent broadcast domain. The range of VLAN ID is usually 0-4095, of which 0 and 4095 are usually reserved for special purposes (such as 0 for unassigned, 4095 for all VLANs).

[0056] It should be pointed out that the nouns or terms involved in the embodiments of the present invention can refer to each other and will not be described in detail.

[0057] Smart networking terminals enable the network in the user's home to support multiple devices at the same time without signal blind spots. IPTV (Internet Protocol Television) is a television transmission method based on the Internet Protocol (IP), relying on broadband networks to provide users with multicast TV programs, video on demand (VOD) and other multimedia services. As an inaccessible communication transmission medium in the home network, smart networking terminals need to complete the transmission of this service, and even cooperate with other devices to complete the implementation of this service flow.

[0058] In actual usage scenarios, IPTV services are completed through the cooperation of set-top boxes, TVs, smart networking terminals and upstream operators. Specifically, the set-top box is connected to the TV and the smart networking terminal respectively, and the smart networking terminal is also connected to the upstream operator. The upstream operator sends the IPTV signal (Internet TV signal) to the smart networking terminal, and the smart networking terminal forwards the IPTV signal to the set-top box. The set-top box converts the IPTV signal into content that can be played on the TV, so that the TV plays the corresponding video.

[0059] During the development of smart networking terminals, it is necessary to test the function of the smart networking terminal to forward IPTV signals to test whether it can successfully forward IPTV signals. The current testing method is to place the smart networking terminal in an actual user usage scenario, which has a high testing cost and requires a lot of manpower to deploy the corresponding actual user usage scenario, resulting in low testing efficiency.

[0060] Based on the above reasons, an embodiment of the present invention provides a testing system, which can improve testing efficiency and reduce testing costs.

[0061] Specifically, Figure 1 is a schematic diagram of a test system provided by an embodiment of the present invention, such as Figure 1 As shown, the test system includes a first computer, a second computer, a switch and an intelligent networking terminal, wherein the first computer is connected to the first port of the switch, the second port of the switch is connected to the WAN port of the intelligent networking terminal, and the LAN port of the intelligent networking terminal is connected to the second computer.

[0062] VLAN is a technology that allows network administrators to divide a physical LAN into multiple logical LANs on a switch. Each logical LAN can have its own broadcast domain and network policy. Each VLAN must have a unique VLAN ID, which is used to distinguish different VLANs and ensure that network devices can identify and process data frames belonging to different VLANs. This ID is used to identify and manage VLANs in the switch software.

[0063] The first computer, the second computer, the switch and the intelligent networking terminal need to perform data interaction under the same VLAN. Therefore, the target VLAN ID is first determined, where the target VLAN ID is the VLAN ID to be tested. The range of VLAN ID is from 0 to 4095. Usually, ID 0 is reserved for indicating unassigned, and ID 4095 is used to indicate all VLANs. In actual use, in order to avoid using some special ID values, a number between 1 and 1024 is generally selected to identify the VLAN. Then the target VLAN ID is any one from VLAN 1 to VLAN 1024, such as VLAN 45.

[0064] Then, the switch and the intelligent networking terminal are configured according to the target VLAN ID, the VLAN ID is added to the first port and the second port, and the IPTV function is configured on the intelligent networking terminal, so that the switch and the intelligent networking terminal can support the transmission of IPTV data.

[0065] Specifically, a third computer is used to configure the first port of the switch to add a target VLAN ID, and the data frames sent through the first port do not contain a VLAN tag. Then, a third computer is used to configure the second port to add a target VLAN ID, and the data frames sent through the second port contain a VLAN tag.

[0066] Adding the target VLAN ID to the first port means configuring the first port as part of the target VLAN ID, and the data frames received and sent by the port will be regarded as part of the target VLAN ID, so that direct communication with ports configured with the same target VLAN ID is possible. In addition, the first port is used to communicate with the first computer, and the first computer does not support VLAN tags. In order to communicate with the first computer through the first port, the data frames sent by the first port do not contain VLAN tags.

[0067] Similarly, the second port adds a target VLAN ID so that it can communicate directly with the port configured with the same target VLAN ID. The second port communicates with the intelligent networking terminal, and the IPTV-related data sent by the intelligent networking terminal to the second port of the switch contains a VLAN tag. In order to ensure normal data transmission, the data transmitted from the second port to the intelligent networking terminal also needs to contain a VLAN tag. The second port is generally a Trunk mode port, which can carry traffic from multiple VLANs. Therefore, the data frames sent through the second port are tagged with a VLAN tag to distinguish data frames of different VLANs with the VLAN tag. The VLAN tag contains the VLAN ID, which means that an identifier is added to the data frame, which indicates which VLAN the data frame belongs to.

[0068] In some embodiments, when the third computer configures the switch according to the target VLAN ID, it also turns on the IGMP Snooping (Internet Group Management Protocol Snooping) function and the IGMP Snooping querier (Internet Group Management Protocol Snooping querier) function of the switch to monitor and analyze passing data packets, so that the switch can process and optimize multicast traffic more intelligently and improve network efficiency and performance.

[0069] Specifically, first enable the IGMP Snooping function globally on the switch, then enable the IGMP Snooping function under the target VLAN ID, and finally enable the IGMP Snooping querier function under the target VLAN ID.

[0070] The switch enables the IGMP Snooping function under the target VLAN ID, which means that the IGMP Snooping function is enabled under the target VLAN ID, a specific virtual local area network, which can manage and control the forwarding of multicast streams within the VLAN. The switch will monitor IGMP messages, including IGMP query and report messages, and then send the multicast data stream only to the specific port that requested the multicast data stream, rather than broadcasting to all ports, which can reduce unnecessary network congestion and improve network efficiency.

[0071] In actual use scenarios, the switch needs to send query messages to the multicast client at regular intervals, and the multicast client needs to reply to the query message, so that the multicast stream will not be interrupted, and the switch will send the multicast data to the multicast client. Therefore, the test system of the embodiment of the present invention resets the switch to isolate the multicast stream actively sent by the first computer to the second computer, and the switch turns on the IGMP Snooping querier function, which is an advanced function further provided by the switch on the basis of supporting IGMP Snooping. Under this function, the switch sends IGMP query messages regularly, generally once every 60 seconds, to inquire whether the intelligent networking terminal still wants to receive specific multicast traffic. Only when the intelligent networking terminal replies to the query message, the switch will send the multicast traffic or multicast stream to the intelligent networking terminal. If no reply is received, it is confirmed that the intelligent networking terminal under the second port has left the group, and then the multicast data stream will be stopped. In this way, it can prevent the situation where the intelligent networking terminal can receive the multicast stream without requesting the multicast stream. The embodiment of the present invention enables the test system to be more suitable for actual use scenarios and improves the accuracy of the test by enabling the IGMP Snooping querier function of the switch.

[0072] In some embodiments, when configuring the intelligent networking terminal according to the target VLAN ID, first determine that the LAN port connected to the second computer is an IPTV port, and then configure the IPTV port to add the target VLAN ID.

[0073] The intelligent networking terminal has 2 or 3 LAN ports, each of which can be used to access the Internet. One of the LAN ports needs to be bound as an IPTV port. This IPTV port can only provide IPTV services and is used to transmit IPTV data streams. It cannot provide Internet access services. The remaining unbound LAN ports can continue to provide Internet access functions for users.

[0074] After one of the LAN ports is determined as the IPTV port, the IPTV port is connected to the second port of the intelligent networking terminal to realize the transmission of the multicast data stream. At the same time, the IPTV port is configured, the IPTV port adds the target VLAN ID, and the IPTV port is configured as a part of the target VLAN ID. The data frames received and sent by the IPTV port will be regarded as part of the target VLAN ID, so that direct communication can be achieved with the port configured with the same target VLAN ID.

[0075] In some embodiments, the second computer simulates two types of set-top boxes. The first type of set-top box is a set-top box that does not support the ability to add VLAN tags to the sent data frames, but the upper-level network only forwards data with corresponding VLAN tags for the transmission of IPTV data streams. Therefore, the intelligent networking terminal needs to support an IPTV function to implement the VLAN tagging of the data sent from the lower-level set-top box (the VLAN ID allowed to be forwarded in the upper-level network), and then forwarding it to the upper-level processing.

[0076] The second type of set-top box is a set-top box that supports the ability to add VLAN tags to data frames sent outward, so the intelligent networking terminal only needs to transparently transmit the data sent by the set-top box to the superior.

[0077] Therefore, the second computer is used to simulate two types of set-top boxes. If the second computer is not loaded with the 802.1q VLAN protocol, it does not have the ability to add VLAN tags to the sent data frames, and is used to simulate the first type of set-top box. The intelligent networking terminal IPTV port is configured to receive data frames containing VLAN tags and support transparent transmission of multicast video data. Then, the second computer sends a data frame to the IPTV port, and the intelligent networking terminal adds a VLAN tag to the data frame and then transparently transmits it to the switch.

[0078] If the second computer is loaded with the 802.1q VLAN protocol, the corresponding network card driver is run, so that the second computer has the ability to add VLAN tags to the sent data frames, which is used to simulate the second type of set-top box. The IPTV port of the intelligent networking terminal only needs to be configured to support transparent transmission of multicast video data. That is, the data frame sent by the second computer to the IPTV port already contains a VLAN tag, and the intelligent networking terminal can transparently transmit the data frame to the switch.

[0079] The embodiment of the present invention simulates two types of set-top boxes by checking whether the 802.1q VLAN protocol is loaded on the second computer, so that the test is more comprehensive, the test coverage is improved, and the full function is tested flexibly.

[0080] In the embodiment of the present invention, a third computer is used to configure the first port and the second port, and the third computer is a device other than the first computer and the second computer. After the test system is built, before the formal test begins, the third computer is used to configure the first port and the second port, set the port mode, enable the corresponding function, configure the intelligent networking terminal, set the IPTV port, and then start the test process.

[0081] After the configuration of the switch and the intelligent networking terminal is completed, the first computer and the second computer are connected to each other under the target VLAN ID to complete the test process. Specifically, the second computer is first connected to the network under the target VLAN ID, and a DHCP request is sent to the network under the target VLAN ID. Then, the first computer starts the DHCP server, responds to the DHCP request, and allocates an IP address to the second computer to establish a communication connection with the second computer.

[0082] When the second computer accesses the target VLAN ID, the second computer is in the same network as the first computer. The second computer will send a DHCP (Dynamic Host Configuration Protocol) request to the network. The first computer turns on the DHCP server, responds to the request, and automatically assigns an IP address to a device connected to the same VLAN (target VLAN ID), such as the second computer. The second computer obtains an IP address from the first computer, and the IP address is in the same VLAN as the IP address of the first computer. The second computer can then communicate with the first computer or other devices in the same VLAN.

[0083] That is, the first computer acts as a central point in the target VLAN ID and allocates an IP address to the second computer in the same VLAN, so that the second computer and the first computer can communicate in the same logical network.

[0084] After the first computer establishes communication with the second computer, a multicast source playback test is started. Specifically, the second computer sends a playback request to the first computer via the intelligent networking terminal and the switch, the first computer responds to the playback request, sends multicast video data to the second computer via the switch and the intelligent networking terminal, the second computer receives the multicast video data, and plays the multicast video.

[0085] Multicast is a network transmission method that allows a sender (multicast source) to send data to multiple receivers (multicast group members) without sending data to each receiver individually. The first computer, as a multicast source, will send multicast video data to the network. Any device interested in multicast video data can join this multicast group and receive video data. The second computer is in the same network as the first computer and is a member of the multicast group. It can receive multicast video data through the above configuration. Therefore, the multicast video data is sent to the second computer via the switch and the intelligent networking terminal. After receiving the multicast video data, the second computer plays the multicast video.

[0086] Whether the test is passed is determined based on the result of the second computer playing the multicast video. If the second computer can successfully play the multicast video, it indicates that the intelligent networking terminal can successfully forward the multicast video data, and the intelligent networking terminal passes the test; if the second computer fails to play the multicast video, it indicates that the intelligent networking terminal fails to forward the multicast video data, and the intelligent networking terminal fails the test.

[0087] In some embodiments, not only the forwarding capability of the intelligent networking terminal is tested, but also the forwarding stability of the intelligent networking terminal is tested. Therefore, after the second computer successfully plays the multicast video, the second computer detects the playing time of the multicast video and determines the test result according to the playing time, and the test result includes passing the test and failing the test.

[0088] If the playback time is longer than the preset threshold, the test result is determined to be passed, otherwise, the test result is determined to be failed. That is, if the playback time does not exceed the preset threshold or the playback fails, the test result is determined to be failed, wherein the preset threshold can be set as needed, and in the embodiment of the present invention, it is 5 minutes.

[0089] In summary, the test method uses a first computer and a switch to simulate an operator environment, and uses a second computer to simulate a set-top box and a TV, which is more in line with the actual usage environment of the smart networking terminal, thereby improving the test accuracy. In addition, the test method only needs to complete the test through the interaction between the first computer, the smart networking terminal, the switch and the second computer. The test environment is easy to set up, saving test costs, and is easy to operate and has high test efficiency.

[0090] See also Figure 2 , Figure 2 is a flow chart of a test method provided by an embodiment of the present invention, and the test method is applied to Figure 1 The test system shown, the test method S100 includes:

[0091] S10: Determine a target VLAN ID, wherein the target VLAN ID is a VLAN ID to be tested;

[0092] S20: configuring the switch and the intelligent networking terminal according to the target VLAN ID;

[0093] S30: The first computer and the second computer establish a communication connection under the target VLAN ID;

[0094] S40: the second computer sends a play request to the first computer via the intelligent networking terminal and the switch;

[0095] S50: The first computer responds to the play request and sends the multicast video data to the second computer via the switch and the intelligent networking terminal;

[0096] S60: The second computer receives the multicast video data and plays the multicast video.

[0097] The target VLAN ID can be any value within the VLAN ID range except 0 and 4025. The switch and the intelligent networking terminal are configured to add the target VLAN ID to the relevant port and set the format of the data frame sent by the relevant port, such as the data frame sent contains a VLAN tag, or the data frame sent does not contain a VLAN tag, etc. Then the first computer and the second computer establish communication under the target VLAN ID to start the IPTV service and prepare for the transmission of the multicast data stream. The first computer, as a multicast source, sends multicast video data to any device in the same VLAN that is interested in the multicast video data. However, in the embodiment of the present invention, the first computer does not broadcast the group video data, but requires the second computer to send a play request to the first computer before the first computer sends the multicast video data to the second computer. In addition, the embodiment of the present invention uses a switch to isolate the multicast video data actively sent by the first computer, and it will periodically send a query message to the intelligent networking terminal. Only when the intelligent networking terminal responds to the query message will the switch forward the multicast video data to the intelligent networking terminal.

[0098] The test method uses a first computer and a switch to simulate an operator environment, and uses a second computer to simulate a set-top box and a television, which is more in line with the actual use environment of the intelligent networking terminal, thereby improving the test accuracy. In addition, the test method only needs to complete the test through the interaction between the first computer, the intelligent networking terminal, the switch and the second computer. The test environment is easy to set up, saving test costs, and is easy to operate and has high test efficiency.

[0099] In some embodiments, Figure 3 As shown, step S30 includes:

[0100] S301: using a third computer to configure the first port to add the target VLAN ID, and the data frame sent through the first port does not contain a VLAN tag;

[0101] S302: Use a third computer to configure the second port to add the target VLAN ID, and the data frame sent through the second port includes a VLAN tag.

[0102] In some embodiments, Figure 4 As shown, step S30 also includes:

[0103] S303: using the third computer to globally enable the IGMP Snooping function on the switch;

[0104] S304: using the third computer to enable the IGMP Snooping function under the target VLAN ID;

[0105] S305: Using the third computer to enable an IGMP Snooping querier function under the target VLAN ID.

[0106] Through the above configuration, the switch is configured as a device in the same VLAN as the first computer and the second computer, and can send a query message to the intelligent networking terminal. Only when the intelligent networking terminal replies to the query message, the multicast video data will be sent to the intelligent networking terminal. And the switch is configured so that only when the intelligent networking terminal sends a play request to the switch, the switch will send the multicast video data to the intelligent networking terminal.

[0107] In the embodiment of the present invention, a switch is used to isolate the multicast video data actively sent by the first computer, which is more suitable for actual use scenarios and improves the test accuracy.

[0108] In some embodiments, Figure 5 As shown, step S40 includes:

[0109] S401: Determine that the LAN port connected to the second computer is an IPTV port;

[0110] S402: Configure the IPTV port to add the target VLAN ID.

[0111] In some embodiments, Figure 6 As shown, step S40 includes:

[0112] S403: If the second computer is not loaded with the 802.1q VLAN protocol, the IPTV port of the intelligent networking terminal is configured so that the data frame received by the IPTV port contains a VLAN tag and supports transparent transmission of multicast video data;

[0113] S404: If the second computer is loaded with the 802.1q VLAN protocol, the IPTV port of the intelligent networking terminal is configured to support transparent transmission of multicast video data.

[0114] Through the above configuration, the IPTV function is configured on the intelligent networking terminal, and the intelligent networking terminal is configured differently for different types of set-top boxes simulated by the second computer. If the simulated set-top box does not support the ability to add VLAN tags to data frames, the intelligent networking terminal will add VLAN tags to the data frames received by the IPTV port and support transparent transmission of multicast video data. If the simulated set-top box supports the ability to add VLAN tags to data frames, the intelligent networking terminal only needs to support transparent transmission of multicast video data.

[0115] In the embodiment of the present invention, different types of set-top boxes can be simulated, and each type can be tested, so that the test is more comprehensive.

[0116] In some embodiments, Figure 7 As shown, step S50 includes:

[0117] S501: The second computer accesses the network under the target VLAN ID and sends a DHCP request to the network under the target VLAN ID;

[0118] S502: The first computer starts a DHCP server, and in response to the DHCP request, allocates an IP address to the second computer to establish a communication connection with the second computer.

[0119] The first computer starts the DHCP server and allocates an IP address in the same VLAN as the first computer to the second computer. The first computer and the second computer can communicate directly to transmit multicast video data.

[0120] In some embodiments, Figure 8 As shown, the test method S100 includes:

[0121] S70: The second computer detects the playing time of the multicast video;

[0122] S80: Determine a test result according to the playback duration, wherein the test result includes whether the smart networking terminal passes the test or whether the smart networking terminal fails the test. Whether the intelligent networking terminal test has passed is determined by whether the second computer successfully plays the multicast video and the playback duration. If the second computer successfully plays the multicast video, or successfully plays the multicast video, and the playback duration is greater than the preset threshold, it is determined that the intelligent networking terminal has passed the test and has the ability to forward multicast video data and can stably forward multicast video data. If the second computer fails to play, or successfully plays the multicast video, and the playback duration is less than or equal to the preset threshold, it is determined that the intelligent networking terminal has not passed the test. In summary, the test method uses a first computer and a switch to simulate an operator environment, and uses a second computer to simulate a set-top box and a TV, which is more in line with the actual usage environment of the smart networking terminal, thereby improving the test accuracy. In addition, the test method only needs to complete the test through the interaction between the first computer, the smart networking terminal, the switch and the second computer. The test environment is easy to set up, saving test costs, and is easy to operate and has high test efficiency. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for testing IPTV services of intelligent networking terminals, characterized in that: Applied to a test system, the test system comprising: a first computer, a second computer, a switch and an intelligent networking terminal, the first computer is connected to a first port of the switch, the second port of the switch is connected to a WAN port of the intelligent networking terminal, and the LAN port of the intelligent networking terminal is connected to the second computer; the test method comprises: Determine a target VLAN ID, wherein the target VLAN ID is a VLAN ID to be tested; Configuring the switch and the intelligent networking terminal according to the target VLAN ID; The first computer and the second computer establish a communication connection under the target VLAN ID; The second computer sends a play request to the first computer via the intelligent networking terminal and the switch; The first computer responds to the play request and sends the multicast video data to the second computer via the switch and the intelligent networking terminal; The second computer receives the multicast video data and plays the multicast video.

2. The method according to claim 1, characterized in that The configuring the switch according to the target VLAN ID includes: Using a third computer to configure the first port to add the target VLAN ID, and the data frame sent through the first port does not contain a VLAN tag; The second port is configured by a third computer to add the target VLAN ID, and the data frame sent through the second port includes a VLAN tag.

3. The method according to claim 2, characterized in that The configuring the switch according to the target VLAN ID further includes: Using the third computer to globally enable the IGMP Snooping function on the switch; Using the third computer to enable the IGMP Snooping function under the target VLAN ID; The third computer is used to enable the IGMP Snooping querier function under the target VLAN ID.

4. The method according to claim 1, characterized in that: The configuring the intelligent networking terminal according to the target VLAN ID includes: Determine that the LAN port connected to the second computer is an IPTV port; The IPTV port is configured to add the target VLAN ID.

5. The method according to claim 4, characterized in that The configuring the intelligent networking terminal according to the target VLAN ID further includes: If the second computer is not loaded with the 802.1q VLAN protocol, the IPTV port of the intelligent networking terminal is configured so that the data frame received by the IPTV port contains a VLAN tag and supports transparent transmission of multicast video data; If the second computer is loaded with the 802.1q VLAN protocol, the IPTV port of the intelligent networking terminal is configured to support transparent transmission of multicast video data.

6. The method according to claim 1, characterized in that The first computer and the second computer establish a communication connection under the target VLAN ID, including: The second computer accesses the network under the target VLAN ID and sends a DHCP request to the network under the target VLAN ID; The first computer starts a DHCP server and, in response to the DHCP request, allocates an IP address to the second computer to establish a communication connection with the second computer.

7. The method according to claim 1, characterized in that The method further comprises: The second computer detects the playing time of the multicast video; A test result is determined according to the playback duration, wherein the test result includes whether the smart networking terminal passes the test or whether the smart networking terminal fails the test.

8. The method according to claim 7, characterized in that The determining of the test result according to the playback duration includes: If the playback duration is greater than a preset threshold, determining that the test result is that the smart networking terminal passes the test; Otherwise, it is determined that the test result is that the intelligent networking terminal fails the test.

9. A testing system, characterized in that: The test system includes a first computer, a second computer, a switch and an intelligent networking terminal; The first computer is connected to the first port of the switch, the second port of the switch is connected to the WAN port of the intelligent networking terminal, and the LAN port of the intelligent networking terminal is connected to the second computer; Wherein, the testing system is used to execute the testing method as described in any one of claims 1-8.