CN109560997A - A kind of STB network detecting method - Google Patents

A kind of STB network detecting method Download PDF

Info

Publication number
CN109560997A
CN109560997A CN201910085301.1A CN201910085301A CN109560997A CN 109560997 A CN109560997 A CN 109560997A CN 201910085301 A CN201910085301 A CN 201910085301A CN 109560997 A CN109560997 A CN 109560997A
Authority
CN
China
Prior art keywords
iperf
stb
network
udp
agreement
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
Application number
CN201910085301.1A
Other languages
Chinese (zh)
Inventor
王炎武
邹绍见
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Gotech Intelligent Technology Co Ltd
Original Assignee
Zhuhai Gotech Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhuhai Gotech Intelligent Technology Co Ltd filed Critical Zhuhai Gotech Intelligent Technology Co Ltd
Priority to CN201910085301.1A priority Critical patent/CN109560997A/en
Publication of CN109560997A publication Critical patent/CN109560997A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter

Abstract

The invention mainly relates to a kind of STB network detecting methods, cooperate iperf test lead, establish connection and sending and receiving data, whether it is connected to test network, bandwidth has geometry, the end iperf is placed in heterogeneous networks, the network that STB can be arrived can be then tested, a data report is then generated, reacts the network problem of set-top box.The present invention effectively detects the network environment of set-top box, the range that awareness network can reach, and the i.e. Time Bandwidth that can achieve helps user to search problem.

Description

A kind of STB network detecting method
Technical field
The invention belongs to STB network detection technique fields, and in particular to a kind of to carry out STB network using iperf agreement The method of detection.
Background technique
Have the STB(Set-Top-Box of network on existing market) set-top box, above it is integrated it is mostly be various APP applications, Such as weather forecast, youtube, news are read, when APP cisco unity malfunction, as weather data can not obtain, video It can not play or can not smooth playing, news the problem of can not obtaining, can not often positioning network or APP code The problem of, or the problem of be server.The detection function that whether sensible, bandwidth is enough to network lacked.
Currently, the STB with network function, without the function of network detection.When the APP of network-based STB can not be just It, can not be where orientation problem when the problems such as often work, appearance cannot access, Caton, error in data.
Therefore, how to design it is a kind of be able to carry out network detection set-top box be implemented as asking for this field urgent need to resolve Topic.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of STB network detecting methods, cooperate iperf test lead, establish Whether connection and sending and receiving data, be connected to, bandwidth has geometry with test network, and the end iperf is placed in heterogeneous networks, then can be tested Then the network that STB can be arrived generates a data report, reacts the network problem of set-top box.
To solve the above problems, the technical solution adopted by the present invention are as follows:
According to an aspect of the present invention, the present invention provides a kind of STB network detecting method, is applied to STB, comprising:
IP is set on STB, makes the STB and connection is established at the end iperf, is provided with iperf agreement on the STB, and with institute State the corresponding PORT COM of iperf agreement;
Request instruction is detected by the network that the PORT COM receives the end iperf, executes the iperf agreement to the STB Network environment detected, generate examining report.
Further, the network environment includes: bandwidth, delay jitter and data-bag lost.
Further, the iperf agreement includes: UDP mode and TCP mode, wherein
Execute iperf agreement detection bandwidth under UDP mode, specific detection process are as follows:
Step 1: selecting UDP mode by STB UI, the IP at the end iperf is set, connects the end iperf, operating mode is synchronized to The end iperf;
Step 2: opening the test of N wheel, the UDP packet size that epicycle to be sent is synchronized to the end iperf;
Step 3: opening timer, then transmitting terminal persistently sends the UDP packet of fixed size, and receiving end is to the UDP packet received It is counted, after timer, currently practical bandwidth is calculated according to the size of the UDP packet quantity and each packet received;
Step 4: the size of change UDP packet, repeats second step, different UDP packet sizes is successively used;
Step 5: every wheel, which all generates a UDP bandwidth value, counts total bandwidth value finally according to the broadband UDP value;
Execute iperf agreement detection bandwidth under TCP mode, specific detection process are as follows:
Step 1: selecting TCP mode by STB UI, the IP at the end iperf is set, connects the end iperf, operating mode is synchronized to The end iperf;
Step 2: opening the test of N wheel, the TCP packet of fixed size is persistently sent;
Step 3: the size of change TCP packet repeatedly successively uses the packet size of different TCP;
Step 4: every wheel, which all generates a TCP bandwidth value, counts total bandwidth value finally according to the broadband TCP value.
Further, the end iperf is the smart phone or PC for being equipped with iperf client.
Further, further includes: the IP at the setting end iperf makes the STB and the end iperf establish connection.
According to another aspect of the present invention, the present invention provides a kind of STB network detecting method, is applied to the end iperf, packet It includes:
The IP at the end iperf is set, the end STB and iperf is made to establish connection;
The end iperf sends network detection request instruction to the STB for being provided with iperf agreement;
The STB executes iperf agreement and detects to the network environment of the STB, and the two disconnects company after generating examining report It connects.
Further, the network environment includes: bandwidth, delay jitter and data-bag lost
Further, the end iperf is the smart phone or PC for being equipped with iperf client.
Further, further includes: the IP of STB is set, the STB and the end iperf is made to establish connection.
The beneficial effects of the present invention are: the effectively network environment of detection set-top box, the range that awareness network can reach, The i.e. Time Bandwidth that can achieve helps user to search problem.
Detailed description of the invention
Fig. 1 is one flow diagram of the embodiment of the present invention.
Fig. 2 is two flow diagram of the embodiment of the present invention.
Specific embodiment
In order to make those skilled in the art more fully understand technical solution of the present invention, combined with specific embodiments below to this Invention is described in further detail.It note that the embodiments described below is exemplary, for explaining only the invention, and It is not considered as limiting the invention.Particular technique or condition are not specified in embodiment, according to the literature in the art institute The technology or conditions of description are carried out according to product description.Reagents or instruments used without specified manufacturer, being can With conventional products that are commercially available.
According to an aspect of the present invention, the present invention provides a kind of STB network detecting method, the end iperf and tool are used There is the set-top box of iperf agreement to detect the network environment of set-top box, specific process are as follows:
The IP of step 1, the setting end iperf or STB, so that the end iperf and STB establish connection;It should be noted that the application The connection type of the two is not limited particularly, can be connected using various ways, such as wifi or data line etc..
After step 2, the two establish connection, network detection request is issued to STB using the end iperf.The corresponding network of STB Detection request, executes iperf agreement, detects to the network environment of STB itself, analyzes, and generate examining report.
According to a particular embodiment of the invention, the network environment of the STB of detection specifically includes that bandwidth, delay jitter sum number According to loss etc., in detection bandwidth, iperf agreement and the end iperf have mutual corresponding both of which, UDP mode and TCP mould Formula, wherein execute iperf agreement detection bandwidth under UDP mode, specific detection process is, step 1: passing through STB UI UDP mode will be selected, the IP at the end iperf is set, the end iperf is connected, this operating mode is synchronized to the end iperf.Step 2: The UDP packet size that epicycle to be sent is synchronized to the end iperf step 3: opening timer, then sent out by the test for opening N wheel Sending end persistently sends the UDP packet of fixed size, and receiving end counts the UDP packet received, after timer, according to The size of the UDP packet quantity and each packet that receive calculates currently practical bandwidth.Step 4: the size of change UDP packet, repeats Second step.Successively use different UDP packet sizes.Every wheel all generates a UDP bandwidth value and finally according to these values counts One total bandwidth value.At this time by repeatedly measuring and changing packet size, (such as network prolongs for environment when inhibiting single to give out a contract for a project Shake late), so that actually supported greatest physical bandwidth is assessed to network.
According to a particular embodiment of the invention, iperf agreement detection bandwidth under TCP mode is executed, it is specific to detect Process is, step 1: will select TCP mode by STB UI, the IP at the end iperf is arranged, the end iperf is connected, by this task Pattern synchronization gives the end iperf.Step 2: opening the test of N wheel, the TCP packet of fixed size is persistently sent, because of Transmission Control Protocol It is stateful agreement, the successful reception of each coating could send out packet next, so being the TCP packet for counting transmission by transmitting terminal Number.Step 3: changing the size of TCP packet later, repeatedly, the packet size of different TCP is successively used.Every wheel all generates one A TCP bandwidth value finally according to these values counts a total bandwidth value.It is big by repeatedly measuring and changing packet at this time It is small, environment (delay jitter of such as network, router subpackage limitation) when inhibiting single to give out a contract for a project, to can actually support network The attachable band width in physical of maximum assessed.
Step 3, the examining report generated can be shown in the display connecting with the STB, also can be transmitted aobvious to the end iperf Show, after the examining report is sent to the end iperf, the connection of the two turn-off data.In addition, the examining report generated can also be sent To server, for carrying out data analysis.
According to a particular embodiment of the invention, the end iperf of the application is test lead, and specific device does not limit particularly System, can be Android intelligent, or the terminal of operation Windows or Linux system, as long as can install Iperf client.
Embodiment one
A kind of STB network detecting method is applied to STB, comprising:
IP is arranged in S01 on STB, so that the STB and the end iperf is established connection, iperf agreement is provided on the STB, and PORT COM corresponding with the iperf agreement;
S02 detects request instruction by the network that the PORT COM receives the end iperf, executes the iperf agreement to described The network environment of STB is detected, and examining report is generated.
According to a particular embodiment of the invention, the network environment includes: bandwidth, delay jitter and data-bag lost.
According to a particular embodiment of the invention, the iperf agreement includes: UDP mode and TCP mode, wherein executes institute Iperf agreement detection bandwidth under UDP mode is stated, step 1: selecting UDP mode by STB UI, the IP at the end iperf is set, The end iperf is connected, operating mode is synchronized to the end iperf;Step 2: opening the test of N wheel, the UDP that epicycle to be sent Packet size is synchronized to the end iperf;Step 3: opening timer, then transmitting terminal persistently sends the UDP packet of fixed size, receives End counts the UDP packet received, after timer, according to the size of the UDP packet quantity and each packet that receive Calculate currently practical bandwidth;Step 4: the size of change UDP packet, repeats second step, different UDP packet sizes is successively used;The Five steps: every wheel all generates a UDP bandwidth value and counts total bandwidth value finally according to the broadband UDP value.
Iperf agreement detection bandwidth under TCP mode is executed, step 1: TCP mode is selected by STB UI, if The IP at the end iperf is set, the end iperf is connected, operating mode is synchronized to the end iperf;Step 2: opening the test of N wheel, continue Send the TCP packet of fixed size;Step 3: the size of change TCP packet repeatedly successively uses the packet ruler of different TCP It is very little;Step 4: every wheel, which all generates a TCP bandwidth value, counts total bandwidth value finally according to the broadband TCP value.
According to a particular embodiment of the invention, the end iperf is the smart phone or PC for being equipped with iperf client.
According to a particular embodiment of the invention, further includes: the IP at the setting end iperf establishes the STB and the end iperf Connection.
Embodiment two
A kind of STB network detecting method is applied to the end iperf, comprising:
The IP at the end iperf is arranged in S11, and the end STB and iperf is made to establish connection;
The end iperf described in S12 sends network detection request instruction to the STB for being provided with iperf agreement;
STB described in S13 executes iperf agreement and detects to the network environment of the STB, and the two is disconnected after generating examining report Open connection.
According to a particular embodiment of the invention, the network environment includes: bandwidth, delay jitter and data-bag lost
According to a particular embodiment of the invention, the end iperf includes: UDP mode and TCP mode, wherein
According to a particular embodiment of the invention, the end iperf is the smart phone or PC for being equipped with iperf client.
According to a particular embodiment of the invention, further includes: the IP of STB is set, the STB and the end iperf is made to establish connection.
STB network detecting method of the invention in summary effectively detects the network environment of set-top box, and awareness network can The range of arrival, the i.e. Time Bandwidth that can achieve help user to search problem.
In the description of the present invention, it is to be understood that, term " first ", " second " are used for description purposes only, and cannot It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include one or more of the features.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc. Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be mechanical connect It connects, is also possible to be electrically connected;It can be directly connected, can also can be in two elements indirectly connected through an intermediary The interaction relationship of the connection in portion or two elements.It for the ordinary skill in the art, can be according to specific feelings Condition understands the concrete meaning of above-mentioned term in the present invention.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below " One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any It can be combined in any suitable manner in a or multiple embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant, at the same time, for those skilled in the art, the think of according to the application Think, there will be changes in the specific implementation manner and application range.

Claims (9)

1. a kind of STB network detecting method is applied to STB characterized by comprising
IP is set on STB, makes the STB and connection is established at the end iperf, is provided with iperf agreement on the STB, and with institute State the corresponding PORT COM of iperf agreement;
Request instruction is detected by the network that the PORT COM receives the end iperf, executes the iperf agreement to the STB Network environment detected, generate examining report.
2. the method according to claim 1, wherein the network environment includes: bandwidth, delay jitter and data Packet loss.
3. according to the method described in claim 2, it is characterized in that, the iperf agreement includes: UDP mode and TCP mode, Wherein,
Execute iperf agreement detection bandwidth under UDP mode, specific detection process are as follows:
Step 1: selecting UDP mode by STB UI, the IP at the end iperf is set, connects the end iperf, operating mode is synchronized to The end iperf;
Step 2: opening the test of N wheel, the UDP packet size that epicycle to be sent is synchronized to the end iperf;
Step 3: opening timer, then transmitting terminal persistently sends the UDP packet of fixed size, and receiving end is to the UDP packet received It is counted, after timer, currently practical bandwidth is calculated according to the size of the UDP packet quantity and each packet received;
Step 4: the size of change UDP packet, repeats second step, different UDP packet sizes is successively used;
Step 5: every wheel, which all generates a UDP bandwidth value, counts total bandwidth value finally according to the broadband UDP value;
Execute iperf agreement detection bandwidth under TCP mode, specific detection process are as follows:
Step 1: selecting TCP mode by STB UI, the IP at the end iperf is set, connects the end iperf, operating mode is synchronized to The end iperf;
Step 2: opening the test of N wheel, the TCP packet of fixed size is persistently sent;
Step 3: the size of change TCP packet repeatedly successively uses the packet size of different TCP;
Step 4: every wheel, which all generates a TCP bandwidth value, counts total bandwidth value finally according to the broadband TCP value.
4. the method according to claim 1, wherein the end iperf is the intelligence for being equipped with iperf client Mobile phone or PC.
5. the method according to claim 1, wherein further include: setting the end iperf IP, make the STB with Iperf establishes connection in end.
6. a kind of STB network detecting method is applied to the end iperf characterized by comprising
The IP at the end iperf is set, the end STB and iperf is made to establish connection;
The end iperf sends network detection request instruction to the STB for being provided with iperf agreement;
The STB executes iperf agreement and detects to the network environment of the STB, and the two disconnects company after generating examining report It connects.
7. according to the method described in claim 6, it is characterized in that, the network environment includes: bandwidth, delay jitter and data Packet loss.
8. according to the method described in claim 6, it is characterized in that, the end iperf is the intelligence for being equipped with iperf client Mobile phone or PC.
9. the method according to claim 1, wherein further include: the IP of STB is set, the STB and iperf is made Connection is established at end.
CN201910085301.1A 2019-01-29 2019-01-29 A kind of STB network detecting method Pending CN109560997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910085301.1A CN109560997A (en) 2019-01-29 2019-01-29 A kind of STB network detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910085301.1A CN109560997A (en) 2019-01-29 2019-01-29 A kind of STB network detecting method

Publications (1)

Publication Number Publication Date
CN109560997A true CN109560997A (en) 2019-04-02

Family

ID=65873888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910085301.1A Pending CN109560997A (en) 2019-01-29 2019-01-29 A kind of STB network detecting method

Country Status (1)

Country Link
CN (1) CN109560997A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253723A (en) * 2014-09-29 2014-12-31 电子科技大学 Software and hardware collaborative implementation-based switch verification test method and device
CN105812210A (en) * 2016-05-25 2016-07-27 赵鹏 Distributed network performance measuring system
CN107147541A (en) * 2017-03-31 2017-09-08 北京奇艺世纪科技有限公司 A kind of WIFI Performance Test Systems and method
US20180219736A1 (en) * 2017-01-30 2018-08-02 Centurylink Intellectual Property Llc Method and System for Implementing Dual Network Telemetry Application Programming Interface (API) Framework
CN108924003A (en) * 2018-06-28 2018-11-30 深圳创维数字技术有限公司 A kind of double frequency WiFi testing throughput system, method and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253723A (en) * 2014-09-29 2014-12-31 电子科技大学 Software and hardware collaborative implementation-based switch verification test method and device
CN105812210A (en) * 2016-05-25 2016-07-27 赵鹏 Distributed network performance measuring system
US20180219736A1 (en) * 2017-01-30 2018-08-02 Centurylink Intellectual Property Llc Method and System for Implementing Dual Network Telemetry Application Programming Interface (API) Framework
CN107147541A (en) * 2017-03-31 2017-09-08 北京奇艺世纪科技有限公司 A kind of WIFI Performance Test Systems and method
CN108924003A (en) * 2018-06-28 2018-11-30 深圳创维数字技术有限公司 A kind of double frequency WiFi testing throughput system, method and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵鹏: "基于iperf的分布式网络性能测量系统研究", 《计算机科学与工程》 *

Similar Documents

Publication Publication Date Title
US9419862B2 (en) System and method for discovering and verifying a hybrid fiber-coaxial topology in a cable network environment
US8027325B2 (en) Home network using wireless module
US11212334B2 (en) Mechanisms to support adaptive constrained application protocol (CoAP) streaming for Internet of Things (IoT) systems
Kim et al. A measurement study of TCP over RPL in low-power and lossy networks
KR101418762B1 (en) Automatic detection and re-configuration of priority status in telecommunications networks
TW201421949A (en) Method and multi-homed equipment for establishing a multipath connection
CN103001835A (en) Network bandwidth test method and system based on data transmission
CN105141542A (en) TCP communication protocol-based congestion window control algorithm and system
CN102014057A (en) EPA protocol-based industrial Ethernet communication method supporting real-time and non-real-time application
CN106302016B (en) The method and system of small flow quick obtaining network physical bandwidth
CN107592554B (en) Live video retransmission method and device
CN103439934A (en) Intelligent electrical appliance control method, server and system
CN109560997A (en) A kind of STB network detecting method
CN110169134A (en) The detection method and device of wireless quality support video tastes
US20230208890A1 (en) System and method for providing upstream directives based on upstream signal quality of wireless network in real-time communication
CN106506306A (en) A kind of method and apparatus of data-message transmission
CN111131267A (en) Ethernet self-adaption method, device and system based on FPGA
KR20120024935A (en) Wireless connectivity for sensors
KR100347183B1 (en) A checking system for finding the data transmission error in wireless communication network
CN113242152B (en) Method for upgrading data terminals in batches based on optical network
CN110495139A (en) Test communication protocol
CN109995660B (en) Streaming media transmission method and device, terminal equipment and computer readable storage medium
CN103428222B (en) Information distribution system and method
Khalifé et al. Validation of a point to multipoint cognitive radio transport protocol over GNU radio testbed
CN106130823B (en) Uniformly send the method and system of BFD message

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190402

RJ01 Rejection of invention patent application after publication