CN101877658A - Method and device for detecting network port performance of IPTV set-top box - Google Patents
Method and device for detecting network port performance of IPTV set-top box Download PDFInfo
- Publication number
- CN101877658A CN101877658A CN2010102161245A CN201010216124A CN101877658A CN 101877658 A CN101877658 A CN 101877658A CN 2010102161245 A CN2010102161245 A CN 2010102161245A CN 201010216124 A CN201010216124 A CN 201010216124A CN 101877658 A CN101877658 A CN 101877658A
- Authority
- CN
- China
- Prior art keywords
- loopback
- top box
- netting twine
- packet
- performance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method for detecting network port performance of an IPTV set-top box. The device comprises the IPTV set-top box and a loop-back network cable, wherein the head end of the loop-back network cable is plugged into a network port of the IPTV set-top box (STB), so the IPTV set-top box is used for transmitting and receiving data packets through the loop-back network cable connected to the network port, and determining whether the loop-back network cable is connected correctly according to the transmitted data packets and the received data packets; and if the loop-back network cable is connected correctly, every performance index of the network port is detected in the processes of transmitting and receiving the data packets, every detected performance index is compared with a preset performance index threshold value, and the network port performance is determined whether to meet requirements or not according to a comparison result. By using the method and the device disclosed by the invention and inserting the loop-back network cable into the set-top box after the set-top box is started, the detection of every type of the performance indexes of the network port of the set-top box can be performed automatically.
Description
Technical field
The present invention relates to the detection technique field of IPTV set top box port, relate in particular to a kind of method and apparatus of the IPTV of detection set top box port performance.
Background technology
IPTV (Internet Protocol Television abbreviates IPTV as) is a kind of broadband network business that integrates multiple technologies such as the Internet, multimedia, communication.The IPTV set-top box is as the terminal equipment of IPTV system, and its end inserts the IPTV network by DSL or Ethernet mode, will become the analog audio-video signal to export TV to from the other end from the information translation such as Media Stream that Network Transmission is come.Transfer of data between IPTV network and the set-top box is all undertaken by network interface, and the quality of network port performance directly has influence on the quality of TV signal.Therefore, provide a kind of detection method of network port performance that can reflect to be very important.
Several Key Performance Indicators of network interface comprise throughput, Loss Rate, time-delay, delay jitter etc.At present, be the packet of certain flow to be sent to network interface for the test mode of network port performance by testing equipment, receive the packet that returns from network interface again, determine all kinds of performance parameters of network interface by the packet that relatively sends and receive.But the method for employing is more complicated all, needs the extra network equipment, such as SmartBits; Perhaps need to take the hardware resource of equipment self, carry out flow rate calculation such as interrupt mechanism that utilizes network control chip or timer etc.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus of the IPTV of detection set top box port performance, when being used for solving prior art and detecting IPTV set top box port performance index, and the method complexity of employing, and need take the problem of set-top box self hardware resource.
A kind of system that detects IPTV set top box port performance, IPTV set-top box and loopback netting twine, the head end of described loopback netting twine inserts the network interface of IPTV set-top box STB, then
Described IPTV set-top box is used for by being connected loopback netting twine on the network interface bag that transmits and receive data, and determines according to the packet that sends and the packet of reception whether the loopback netting twine correctly is connected; If described loopback netting twine correctly connects, then in the data packet transceive flow process, detect every performance index of network interface, and detected every performance index and the performance index threshold value of presetting are compared, determine according to comparative result whether network port performance meets the demands.
The present invention also provides a kind of method of the IPTV of detection set top box port performance, comprising:
Set-top box is by being connected loopback netting twine on the network interface bag that transmits and receive data, and whether the packet that sends and receive by comparison is consistent determines whether the loopback netting twine correctly is connected;
If described loopback netting twine correctly connects, then in the data packet transceive flow process, detect every performance index of network interface, and detected every performance index and the performance index threshold value of presetting are compared, determine according to comparative result whether network port performance meets the demands.
Also provide a kind of device of the IPTV of detection set top box port performance according to said method the present invention, comprising:
Data transmit-receive module is used for by being connected loopback netting twine on the network interface bag that transmits and receive data, and whether the packet that sends and receive by comparison is consistent determines whether the loopback netting twine correctly is connected;
The network port performance detection module, if being used for described loopback netting twine correctly connects, in the data packet transceive flow process, detect every performance index of network interface, and detected every performance index and default performance index threshold value compared, determine according to comparative result whether network port performance meets the demands.
The device of the method that the embodiment of the invention provided of application only need adopt a loopback netting twine, has improved the efficient that network port performance detects.Further, because equipment needed thereby is simple, easy to operate, this method also is applicable in the engineering carries out large-scale burn-in test to network interface, is used to detect the influence of adverse circumstances to the network interface service behaviour.
Description of drawings
A kind of system construction drawing that detects IPTV set top box port performance of Fig. 1 embodiment of the invention;
A kind of method flow diagram that detects IPTV set top box port performance of Fig. 2 embodiment of the invention;
The method flow diagram of data packet transceive in Fig. 3 embodiment of the invention;
A kind of structure chart that detects the device of IPTV set top box port performance of Fig. 4 figure embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of method of the IPTV of detection set top box port performance, this method comprises: set-top box is by being connected loopback netting twine on the network interface bag that transmits and receive data, and whether the packet that sends and receive by comparison is consistent determines whether the loopback netting twine correctly is connected; If described loopback netting twine correctly connects, then in the data packet transceive flow process, detect every performance index of network interface, and detected every performance index and the performance index threshold value of presetting are compared, determine according to comparative result whether network port performance meets the demands.
As shown in Figure 1, the embodiment of the invention provides a kind of system of the IPTV of detection set top box port performance, comprising: IPTV set-top box 101 and loopback netting twine 102, the head end of described loopback netting twine inserts the network interface of STB.
Loopback netting twine in the invention process only has a crystal head, is not usually the being seen netting twine that comprises two crystal heads.When the loopback netting twine is connected with set-top box, directly crystal head is inserted into the network interface of set-top box.As shown in Figure 1,102 what draw is the crystal head of loopback netting twine, eight cores of eight vertical line correspondences of the inside netting twine the inside wherein.When making the loopback netting twine, only need the 1st core and the 3rd core short circuit are got final product the 2nd core and the 6th core short circuit.
Described IPTV set-top box is used for by being connected loopback netting twine on the network interface bag that transmits and receive data, and determines according to the packet that sends and the packet of reception whether the loopback netting twine correctly is connected; If described loopback netting twine correctly connects, then in the data packet transceive flow process, detect every performance index of network interface, and detected every performance index and the performance index threshold value of presetting are compared, determine according to comparative result whether network port performance meets the demands.
In this system the loopback netting twine is inserted the network interface of STB, but the just method flow of start detection network port performance index, and the arrow among the figure in the loopback netting twine is represented the flow direction of packet.
As shown in Figure 2, a kind of method that detects IPTV set top box port performance of the embodiment of the invention specifically comprises step:
Step 201 is provided with the packet that detects network interface and need and sends parameter, and this packet sends the transmission duration, transmitted traffic of frame length that parameter comprises the set-top box I P network address, physical address, transmission packet, packet etc.
The IP address of set-top box (being also referred to as the IP address of network interface) is used to bind the socket that sends data.
Physical address is meant the MAC Address of specifying raw socket to receive data, and the physical address of set-top box is generally all fixed.
Send the byte number that frame length is meant each packet of transmission, this value is big more, and transmitted traffic is big more.
Transmitted traffic is the number of data packets that sends in the unit interval.
The transmission duration of packet is meant that circulation sends the time of packet, under the situation that is used for burn-in test, sends duration and then will be arranged to enough strike-machine durations.
Step 202, set-top box determines according to the packet that sends and the packet of reception whether the loopback netting twine correctly is connected; If correct the connection then changes step 203 over to, otherwise process ends.
Whether the monitoring network interface inserts the loopback netting twine, and set-top box sends a spot of packet to network interface, and receives packet from network interface simultaneously, if both unanimities, then the loopback netting twine has been inserted in expression.
Wherein, the content of described packet will there are differences with other packets in the network, so that distinguish.
In embodiments of the present invention, can realize the differentiation of packet in the following manner:
Byte by 10 different numerical value of continuous transmission is distinguished, such as continuous transmission: 0x1a; 0xc3; 0x83; 0xdb; 0x91; 0x56; 0xca; 0xc8; 0x7b; 0x55.
Very low with these 10 on all four probability of byte data in network, in addition, for the content that further reduces packet will with the identical probability of other packets in the network, also can increase the transmission length of data package.
Step 203 is by described loopback netting twine circulation transceive data bag;
Step 204 in the data packet transceive flow process, detects every performance index of network interface, and detected every performance index and the performance index threshold value of presetting are compared, and determines according to comparative result whether network port performance meets the demands; If meet the demands then change step 203 over to, otherwise change step 205 over to.
In packet circulation transmitting-receiving process, (be the default time cycle this blanking time) carries out the detection and the statistics of a packet at set intervals.
In the test process of reality, when set-top box sends packet greater than the absolute throughput of network interface, the amount of the packet that network interface is successfully transmitted all compares the absolute throughput near network interface, so when sending packet greater than the absolute throughput of network interface and detect flow and be significantly less than the network interface throughput, can determine then that network port performance does not meet the demands just can report to the police;
Calculate packet loss by give out a contract for a project number and the difference of packet receiving number of calculating, for set-top box, if packet loss is greater than 2%, just flow process can be reported to the police;
Time-delay comprises handles time-delay and transmission delay, owing to adopt the loopback netting twine in the present embodiment, so transmission delay can be ignored, delay value is exactly a size of handling time-delay;
Delay jitter generally adopts the maximum of time-delay in a period of time and the difference of minimum value to represent, time-delay and delay jitter surpass the index flow process and can report to the police.
The performance index that step 205, set-top box detect network interface do not meet the demands, and report to the police and stop the data packet transceive flow process.
Can or export detected performance index by terminal and report to the police by flicker LED red light in embodiments of the present invention, so that the tester observes.
As shown in Figure 3, the method flow of data packet transceive specifically may further comprise the steps in the step 203 of embodiment of the invention method shown in Figure 2:
In the process of transmitting of packet, the socket of raw socket and binding set-top box local address works alone.Raw socket receives only the packet of the ip type of this machine of mailing to mac; Binding set-top box local address and the socket that adds multicast group then are used for sending out the ip packet to multicast group.If send packet to the loopback netting twine by binding set-top box local address and the socket that adds multicast group in embodiments of the present invention, then receive the packet of correspondence from the loopback netting twine by raw socket.
Create the socket of binding set-top box local address, and this socket is joined in the middle of the multicast group, such as the such multicast address of 224.1.1.10.The purpose that adds multicast group is for packet is gone above can sending to the loopback netting twine, otherwise set-top box send to oneself packet can only enter local oneself encircle virtual interface.
Socket by the binding of set-top box local address sends packet (promptly toward multicast group, send packet to the loopback netting twine through the socket of creating), the packet is not here emphasized otherness, mainly is to guarantee that the flow that sends can reach the requirement that detects throughput;
Because host-host protocol is bypassed,, could correctly read the packet of receiving from the loopback netting twine so need set-top box voluntarily after the analysis protocol stem.
As shown in Figure 4, the embodiment of the invention also provides a kind of device of the IPTV of detection set top box port performance, comprises data transmit-receive module 401 and network port performance detection module 402:
Data transmit-receive module 401 is used for by being connected loopback netting twine on the network interface bag that transmits and receive data, and whether the packet that sends and receive by comparison is consistent determines whether the loopback netting twine correctly is connected;
In addition, the packet that sends to oneself for fear of set-top box can only enter local from encircling virtual interface, and the data transmit-receive module 401 of the embodiment of the invention comprises by being connected loopback netting twine on the network interface bag that transmits and receive data:
Create the socket of binding set-top box local address, and this socket is joined arbitrary multicast group;
Send packet to the loopback netting twine by the socket of creating, and receive packet from described loopback netting twine by raw socket.
Network port performance detection module 402, if being used for described loopback netting twine correctly connects, in the data packet transceive flow process, detect every performance index of network interface, and detected every performance index and default performance index threshold value compared, determine according to comparative result whether network port performance meets the demands.
Further, whether whether every performance index meet the demands in order to notify tester's set top box port, and then embodiment of the invention device also comprises:
It is multiple, concrete that described in embodiments of the present invention alarm module 403 realizes that the mode of reporting to the police has:
Described alarm module 403 can be reported to the police by flicker LED red light or by terminal output performance parameter value.
The invention provides a kind of method and apparatus and system of network port performance of the IPTV of detection set-top box, compared with prior art, this method only need be inserted the loopback netting twine behind set-top-box opening, just can carry out the detection of all kinds of performance index of set top box port automatically.
Because the performance index to the network interface of set-top box are determined, send the required all kinds of parameters of packet so can pre-set in the method, such as parameters such as the IP address of tested network interface, physical address, transmission frame length, transmitted traffics, set-top box is carried out any parameter setting and need not the tester.The tester can stop current testing process by pulling out the loopback netting twine.The problem of ring in the packet that data packet transceive flow process in this method, the network protocol stack that has overcome set-top box device will be issued oneself is sent into.The equipment that uses in this method is simple and easy to, the engineering staff can also apply to this method in the burn-in test to network port performance on a large scale, the flow that is used for to network interface carries out long-time strike-machine test, also is used for testing under the different humitures influence to network port performance.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other execution mode, belongs to technological innovation scope of the present invention equally.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.
Claims (10)
1. a system that detects IPTV set top box port performance is characterized in that, comprising: IPTV set-top box and loopback netting twine, the head end of described loopback netting twine inserts the network interface of IPTV set-top box STB, then
Described IPTV set-top box is used for by being connected loopback netting twine on the network interface bag that transmits and receive data, and determines according to the packet that sends and the packet of reception whether the loopback netting twine correctly is connected; If described loopback netting twine correctly connects, then in the data packet transceive flow process, detect every performance index of network interface, and detected every performance index and the performance index threshold value of presetting are compared, determine according to comparative result whether network port performance meets the demands.
2. a method that detects IPTV set top box port performance is characterized in that, comprising:
Set-top box is by being connected loopback netting twine on the network interface bag that transmits and receive data, and whether the packet that sends and receive by comparison is consistent determines whether the loopback netting twine correctly is connected;
If described loopback netting twine correctly connects, then in the data packet transceive flow process, detect every performance index of network interface, and detected every performance index and the performance index threshold value of presetting are compared, determine according to comparative result whether network port performance meets the demands.
3. method as claimed in claim 2 is characterized in that, transmits and receive data and comprises by being connected loopback netting twine on the network interface:
Create the socket of binding set-top box local address, and this socket is joined arbitrary multicast group;
Send packet to the loopback netting twine by the socket of creating, and receive packet from described loopback netting twine by raw socket.
4. method as claimed in claim 2 is characterized in that, described determine according to comparative result whether network port performance meets the demands after, further comprise:
If determine that according to comparative result network port performance does not meet the demands, then report to the police, and stop the data packet transceive flow process.
5. method as claimed in claim 4 is characterized in that, the mode of described warning comprises by flicker LED red light or by terminal exports detected performance index.
6. as the described method of the arbitrary claim of claim 2~5, it is characterized in that described performance index comprise one or more in throughput, packet loss, time-delay and the delay jitter of network interface.
7. a device that detects IPTV set top box port performance is characterized in that, comprising:
Data transmit-receive module is used for by being connected loopback netting twine on the network interface bag that transmits and receive data, and whether the packet that sends and receive by comparison is consistent determines whether the loopback netting twine correctly is connected;
The network port performance detection module, if being used for described loopback netting twine correctly connects, in the data packet transceive flow process, detect every performance index of network interface, and detected every performance index and default performance index threshold value compared, determine according to comparative result whether network port performance meets the demands.
8. device as claimed in claim 7 is characterized in that, described data transmit-receive module comprises by being connected loopback netting twine on the network interface bag that transmits and receive data:
Create the socket of binding set-top box local address, and this socket is joined arbitrary multicast group;
Send packet to the loopback netting twine by the socket of creating, and receive packet from described loopback netting twine by raw socket.
9. device as claimed in claim 7 is characterized in that, this device also comprises:
Alarm module if be used for determining that according to comparative result network port performance does not meet the demands, is then reported to the police, and is stopped the data packet transceive flow process.
10. device as claimed in claim 9 is characterized in that, described alarm module is by flicker LED red light or export detected performance index by terminal and report to the police.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102161245A CN101877658A (en) | 2010-06-30 | 2010-06-30 | Method and device for detecting network port performance of IPTV set-top box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102161245A CN101877658A (en) | 2010-06-30 | 2010-06-30 | Method and device for detecting network port performance of IPTV set-top box |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101877658A true CN101877658A (en) | 2010-11-03 |
Family
ID=43020128
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102161245A Pending CN101877658A (en) | 2010-06-30 | 2010-06-30 | Method and device for detecting network port performance of IPTV set-top box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101877658A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075811A (en) * | 2010-12-14 | 2011-05-25 | 中山大学 | System and method for self-checking of set-top box |
CN106019172A (en) * | 2016-05-24 | 2016-10-12 | 深圳创维数字技术有限公司 | STB (set top box) performance parameter detection-display system and method |
CN106657997A (en) * | 2016-12-06 | 2017-05-10 | 广东九联科技股份有限公司 | Method for testing performance of network port of set-top box |
CN111162966A (en) * | 2019-12-23 | 2020-05-15 | 广州视源电子科技股份有限公司 | Method and device for testing network interface hardware of receiving card, storage medium and processor |
CN111224847A (en) * | 2020-01-15 | 2020-06-02 | 广州视源电子科技股份有限公司 | Network port test method and test system of sending card |
CN112787879A (en) * | 2019-11-08 | 2021-05-11 | 西安诺瓦星云科技股份有限公司 | Gigabit Ethernet packet loss detection method and device thereof |
CN115102878A (en) * | 2022-06-08 | 2022-09-23 | 北京启明星辰信息安全技术有限公司 | Network security equipment aging test system and method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217422A (en) * | 2008-01-15 | 2008-07-09 | 中兴通讯股份有限公司 | A method to test the performance of net mouth |
CN101594222A (en) * | 2009-06-29 | 2009-12-02 | 中兴通讯股份有限公司 | A kind of interface test method and device |
CN101651569A (en) * | 2009-09-11 | 2010-02-17 | 中兴通讯股份有限公司 | Method and device for testing performance of Ethernet port |
-
2010
- 2010-06-30 CN CN2010102161245A patent/CN101877658A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217422A (en) * | 2008-01-15 | 2008-07-09 | 中兴通讯股份有限公司 | A method to test the performance of net mouth |
CN101594222A (en) * | 2009-06-29 | 2009-12-02 | 中兴通讯股份有限公司 | A kind of interface test method and device |
CN101651569A (en) * | 2009-09-11 | 2010-02-17 | 中兴通讯股份有限公司 | Method and device for testing performance of Ethernet port |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075811A (en) * | 2010-12-14 | 2011-05-25 | 中山大学 | System and method for self-checking of set-top box |
CN106019172A (en) * | 2016-05-24 | 2016-10-12 | 深圳创维数字技术有限公司 | STB (set top box) performance parameter detection-display system and method |
CN106019172B (en) * | 2016-05-24 | 2018-11-30 | 深圳创维数字技术有限公司 | A kind of the performance parameter detection display system and its method of set-top box |
CN106657997A (en) * | 2016-12-06 | 2017-05-10 | 广东九联科技股份有限公司 | Method for testing performance of network port of set-top box |
CN112787879A (en) * | 2019-11-08 | 2021-05-11 | 西安诺瓦星云科技股份有限公司 | Gigabit Ethernet packet loss detection method and device thereof |
CN111162966A (en) * | 2019-12-23 | 2020-05-15 | 广州视源电子科技股份有限公司 | Method and device for testing network interface hardware of receiving card, storage medium and processor |
CN111224847A (en) * | 2020-01-15 | 2020-06-02 | 广州视源电子科技股份有限公司 | Network port test method and test system of sending card |
CN111224847B (en) * | 2020-01-15 | 2023-02-28 | 西安青松光电技术有限公司 | Network port test method and test system of sending card |
CN115102878A (en) * | 2022-06-08 | 2022-09-23 | 北京启明星辰信息安全技术有限公司 | Network security equipment aging test system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101877658A (en) | Method and device for detecting network port performance of IPTV set-top box | |
CN103532738B (en) | The defining method of a kind of port connection relationship and device | |
CN105376092B (en) | A kind of HLS stream real-time monitoring alarm systems based on switch port mirror image | |
CN102291267B (en) | Fault Locating Method and device | |
CN101783969A (en) | Comprehensive monitoring device of signal quality of digital television | |
CN102196167B (en) | Network camera based on power carrier transmission technology | |
CN106230634A (en) | The diagnostic method of a kind of link failure, device and Set Top Box | |
WO2012068980A1 (en) | Method and system for positioning fault of abnormal broadcast of unicast programs | |
CN101365145A (en) | Cable television network monitoring system and monitoring method | |
CN110300283B (en) | Monitoring and inspection control method and device based on video networking | |
CN107318046B (en) | Internet television service transmission quality monitoring method and system | |
CN103095480A (en) | Method of head end system switch between master and slave and network management equipment and head end system | |
CN102546263A (en) | Failure isolation method and system for video server and Internet protocol (IP) network in Internet protocol television (IPTV) network | |
CN107124598A (en) | A kind of transport information control method for playing back and playing controller | |
CN101330578A (en) | Intelligent switching system for digital television signal | |
CN102938839A (en) | Monitoring front-end equipment and encoding server | |
CN101958577A (en) | Method for overhauling GOOSE in digital substation | |
CN102970251A (en) | Networking method and networking device | |
CN109068131A (en) | Realize the system and method for frame losing test between home gateway and set-top box | |
CN102625074A (en) | Method for transmitting intelligent analyzed data by aid of HD-SDI (high-definition serial digital interface) camera | |
CN102970059B (en) | A kind of EOC is from ring detecting system and method | |
CN202424763U (en) | Wireless ONU home gateway device based on EPON access | |
CN102404184A (en) | Data transmission system and transmission method | |
CN102170381A (en) | Unpacked data two-way transmission system and method based on gigabit Ethernet physical layer interface | |
CN105429815A (en) | Household network quality determination method based on customized Layer 2 protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20101103 |