CN111343452B - Switch monitoring belt machine quantity testing method of analog camera - Google Patents

Switch monitoring belt machine quantity testing method of analog camera Download PDF

Info

Publication number
CN111343452B
CN111343452B CN202010131070.6A CN202010131070A CN111343452B CN 111343452 B CN111343452 B CN 111343452B CN 202010131070 A CN202010131070 A CN 202010131070A CN 111343452 B CN111343452 B CN 111343452B
Authority
CN
China
Prior art keywords
network card
cameras
messages
message
equal
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.)
Expired - Fee Related
Application number
CN202010131070.6A
Other languages
Chinese (zh)
Other versions
CN111343452A (en
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.)
Shenzhen Tenda Technology Co Ltd
Original Assignee
Shenzhen Tenda 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 Shenzhen Tenda Technology Co Ltd filed Critical Shenzhen Tenda Technology Co Ltd
Priority to CN202010131070.6A priority Critical patent/CN111343452B/en
Publication of CN111343452A publication Critical patent/CN111343452A/en
Application granted granted Critical
Publication of CN111343452B publication Critical patent/CN111343452B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention provides a method for testing the tape amount of a switch monitoring machine with a pseudo-camera, which comprises the following steps: s1, connecting the tested switch and the computer through the first network card and the second network card respectively; s2, setting the number n of cameras, the resolution and the message type; s3, defining the tape number T by the computer; s4, calling the first network card by the computer, calculating the flow according to the set number n of the cameras, the resolution and the message type, and sending the message; s5, the computer calculates the number of the messages received by the second network card, judges whether the number of the messages is equal to the number of the messages sent by the first network card, if so, the step S6 is executed, and if not, the step S7 is executed. The invention has the beneficial effects that: the test cost is reduced, and the test efficiency is improved.

Description

Switch monitoring belt machine quantity testing method of analog camera
Technical Field
The invention relates to a method for testing a switch, in particular to a method for testing the quantity of a monitoring tape of a switch by simulating a camera.
Background
At present, the monitoring market has a large demand on the switch, and the most important performance index requirement of the market on the switch is the belt machine number of the cameras, namely, the number of the cameras can be brought by one switch at the same time without blockage and packet loss. And the switch can be cascaded under the switch, so that a plurality of cameras are required to be purchased for the test, and networking is complex.
The drawbacks of the current test methods are as follows:
the cost is high: the price of 1 camera is over 500 and as the number of pixels increases, it is more expensive. At present, the ports of the switch are 2.5G and 10G, the number of required cameras is hundreds and thousands, and the total price is high.
The efficiency is low: the real connecting, networking and configuration of hundreds of cameras consumes a great deal of manpower.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a method for testing the belt monitor of the switch by simulating a camera.
The invention provides a method for testing the belt monitor of a switch by simulating a camera, which comprises the following steps:
s1, connecting the tested switch and the computer through the first network card and the second network card respectively;
s2, setting the number n of cameras, the resolution and the message type;
s3, defining the tape number T by the computer;
s4, calling the first network card by the computer, calculating the flow according to the set number n of the cameras, the resolution and the message type, and sending the message;
s5, the computer calculates the number of the messages received by the second network card, judges whether the number of the messages is equal to the number of the messages sent by the first network card, if so, the step S6 is executed, and if not, the step S7 is executed;
s6, gradually increasing the number n of the cameras until the number of the messages received by the second network card is not equal to the number of the messages sent by the first network card, wherein the number n of the cameras when the number of the messages received by the second network card is equal to the number of the messages sent by the first network card at the last time is the final number T of the tape devices;
and S7, gradually reducing the number n of the cameras until the number of the messages received by the second network card is equal to the number of the messages sent by the first network card, wherein the number n of the cameras is the final number T of the devices.
As a further improvement of the present invention, step S6 includes the following sub-steps:
s61, setting T = n, multiplying n by 110%, and then sending a message through a first network card;
s62, the computer calculates the number of the messages received by the second network card, and judges whether the number of the messages is equal to the number of the messages sent by the first network card, if so, the step S61 is returned, and if not, the step S61 is ended.
As a further improvement of the present invention, step S7 includes the following sub-steps:
s71, judging whether n is less than 1 by 90%, if so, recording T =0, and ending, if not, multiplying n by 90%, and then sending a message through the first network card;
and S72, the computer calculates the number of the messages received by the second network card, judges whether the number of the messages is equal to the number of the messages sent by the first network card, if not, the step is returned to S71, and if so, T = n is recorded and the process is ended.
As a further improvement of the present invention, before step S4, the characteristics of the flow of different types of cameras are obtained by capturing and analyzing the flows of different pixels and code stream cameras: message type, message length, and number of messages per second.
As a further improvement of the present invention, the number n of cameras in step S2 cannot be 0.
As a further improvement of the present invention, the initial value of the tape count T in step S3 is 0.
As a further improvement of the present invention, in step S4, the transmission time of the transmission message is 60 seconds.
The invention has the beneficial effects that: by the scheme, the test cost is reduced, and the test efficiency is improved.
Drawings
Fig. 1 is a schematic diagram of a method for testing the tape monitor of the switch with an analog camera according to the present invention.
Fig. 2 is a test networking diagram of the method for testing the tape amount of the switch monitoring machine with the analog camera according to the present invention.
Detailed Description
The invention is further described with reference to the following description and embodiments in conjunction with the accompanying drawings.
As shown in fig. 1 to 2, a method for testing the tape monitor of the switch with an analog camera includes the following steps:
1: networking according to the networking graph;
the required equipment is as follows: the system comprises a tested switch, 1 PC and 2 network cards (the network card form is determined according to the port of the switch); before designing an automation program, analyzing the flow of the cameras with different pixels and code streams by grabbing the flow of the cameras, and obtaining the characteristics of the flow of the cameras with different types: message type, message length, and number of messages per second.
2: installing an automation program in the PC 1;
3: setting the number of simulated cameras, the resolution (such as 200W, 300W, 400W and the like) and the message type (TCP, UDP) on an automation program on the PC 1;
4: starting the automation program running at the PC 1;
5: after the test is finished, the test result is automatically saved in the PC1, and an excel table is generated.
As shown in fig. 1 to 2, a method for testing the tape monitor of the switch with an analog camera includes the following specific processes:
1: popping up an input box by a program, inputting the number n of cameras and the resolution by a tester, and starting a test by clicking; (n cannot be 0);
2: a program definition value is used for representing the final tape unit number, and the initial value is 0;
3: sending an instruction by a program, calling the network card 1, automatically calculating the flow according to the number n of cameras, the resolution and the message type set by the program, sending a message, and sending for 60 seconds;
4: the program calculates the number of messages received by the network card 2 and judges whether the number of the messages is equal to the number of the messages sent by the network card 1;
5: if the results in the step 4 are equal, setting T = n, multiplying n by 110%, namely increasing the number of cameras by 10%, and then sending a message for 60 seconds;
6: the program counts whether the number of the messages sent by the network card 1 in the step 5 is equal to the number of the messages received by the network card 2;
7: if the statistical results in the step 6 are equal, repeating the step 5 and the step 6;
8: if the statistical results in the step 6 are not equal, the loop is skipped;
9: if the results in step 4 are not equal, the program first determines whether n × 90% is less than 1 (the result does not retain decimal place);
10: if n is greater than 90% in step 9, multiplying n by 90%, namely reducing the number of cameras by 10%, then sending a message, and sending for 60 seconds;
11: the program counts whether the number of the messages sent by the network card 1 in the step 10 is equal to the number of the messages received by the network card 2;
12: if the judgment result in the step 11 is not equal, repeating the steps 9, 10 and 11;
13: if the statistical results in the step 11 are equal, jumping out of the loop, and recording T = n;
14: if n × 90% is less than 1, step 9, recording T = 0;
15: and (5) after the program test is finished, generating an excel table, and recording the tape number as T.
The switch monitoring tape machine quantity testing method for the analog camera provided by the invention has the following advantages:
1, the configuration of the network card and the switch is automatically completed by a program, a tester only needs to specify the simulation number, the camera pixels and the code stream, the equipment is powered on to test, and the operation is simple;
2, the program can be executed at night or on weekends, so that the manual testing time is not occupied, and the testing efficiency is improved;
3, networking is simple, and a plurality of switches and hundreds of cameras cannot be cascaded;
4 the invention can be expanded, if the port of the switch is 2.5G and ten-gigabit port, the PC only needs to be changed into 2.5G and ten-gigabit network card, and the program can be run.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (5)

1. A method for testing the tape amount of a switch monitoring machine simulating a camera is characterized by comprising the following steps:
s1, connecting the tested switch and the computer through the first network card and the second network card respectively;
s2, setting the number n of cameras, the resolution and the message type;
s3, defining the tape number T by the computer;
s4, the computer calls the first network card, automatically calculates the flow according to the set number n of the cameras, the resolution and the message type, and sends the message;
s5, the computer calculates the number of the messages received by the second network card, judges whether the number of the messages is equal to the number of the messages sent by the first network card, if so, the step S6 is executed, and if not, the step S7 is executed;
s6, gradually increasing the number n of the cameras until the number of the messages received by the second network card is not equal to the number of the messages sent by the first network card, wherein the number n of the cameras when the number of the messages received by the second network card is equal to the number of the messages sent by the first network card at the last time is the final number T of the tape devices;
s7, gradually reducing the number n of the cameras until the number of the messages received by the second network card is equal to the number of the messages sent by the first network card, wherein the number n of the cameras is the final number T of the devices;
before step S4, the characteristics of the flow of different types of cameras are obtained by capturing the flow of different pixels and code stream cameras and analyzing: message type, message length and number of messages per second;
in step S4, the transmission time of the transmission message is 60 seconds.
2. The switch monitoring tape test method of the analog camera according to claim 1, characterized in that: step S6 includes the following substeps:
s61, recording T = n, multiplying n by 110%, and then sending a message through a first network card;
s62, the computer calculates the number of the messages received by the second network card, and judges whether the number of the messages is equal to the number of the messages sent by the first network card, if so, the step S61 is returned, and if not, the step S61 is ended.
3. The switch monitoring tape test method of the analog camera according to claim 1, characterized in that: step S7 includes the following substeps:
s71, judging whether n is less than 1 by 90%, if so, recording T =0, and ending, if not, multiplying n by 90%, and then sending a message through the first network card;
and S72, the computer calculates the number of the messages received by the second network card, judges whether the number of the messages is equal to the number of the messages sent by the first network card, if not, the step is returned to S71, and if so, T = n is recorded and the process is ended.
4. The switch monitoring tape test method of the analog camera according to claim 1, characterized in that: the number n of cameras in step S2 cannot be 0.
5. The switch monitoring tape test method of the analog camera according to claim 1, characterized in that: the initial value of the tape count T in step S3 is 0.
CN202010131070.6A 2020-02-28 2020-02-28 Switch monitoring belt machine quantity testing method of analog camera Expired - Fee Related CN111343452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010131070.6A CN111343452B (en) 2020-02-28 2020-02-28 Switch monitoring belt machine quantity testing method of analog camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010131070.6A CN111343452B (en) 2020-02-28 2020-02-28 Switch monitoring belt machine quantity testing method of analog camera

Publications (2)

Publication Number Publication Date
CN111343452A CN111343452A (en) 2020-06-26
CN111343452B true CN111343452B (en) 2021-07-06

Family

ID=71185778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010131070.6A Expired - Fee Related CN111343452B (en) 2020-02-28 2020-02-28 Switch monitoring belt machine quantity testing method of analog camera

Country Status (1)

Country Link
CN (1) CN111343452B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146046A (en) * 2007-11-05 2008-03-19 福建星网锐捷网络有限公司 A throughput testing method and testing system
CN101277231A (en) * 2008-04-29 2008-10-01 北京星网锐捷网络技术有限公司 Method and system for detecting wireless access points, switch and client terminal
CN105610641A (en) * 2015-12-21 2016-05-25 武汉微创光电股份有限公司 Switch testing system and testing method based on semi-physical simulation
CN106330621A (en) * 2016-09-30 2017-01-11 深圳市吉祥腾达科技有限公司 Testing method for interchanger transmission signal performance and testing system
CN108282385A (en) * 2018-01-25 2018-07-13 迈普通信技术股份有限公司 Port testing method and communication equipment
CN109495912A (en) * 2018-12-28 2019-03-19 深圳市吉祥腾达科技有限公司 Band machine weight testing method outside a kind of room base station AP
CN110138691A (en) * 2019-05-09 2019-08-16 深圳市吉祥腾达科技有限公司 The anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8327408B2 (en) * 2007-08-29 2012-12-04 At&T Intellectual Property I, Lp System and method for troubleshooting a set top box
US8199196B2 (en) * 2007-09-27 2012-06-12 Alcatel Lucent Method and apparatus for controlling video streams
CN101296131B (en) * 2008-06-11 2010-12-15 北京星网锐捷网络技术有限公司 Method, device and system for testing switchboard connectivity
CN101646259B (en) * 2009-09-04 2012-01-11 杭州华三通信技术有限公司 Wireless local area network empty opening rate-limiting method and wireless network device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146046A (en) * 2007-11-05 2008-03-19 福建星网锐捷网络有限公司 A throughput testing method and testing system
CN101277231A (en) * 2008-04-29 2008-10-01 北京星网锐捷网络技术有限公司 Method and system for detecting wireless access points, switch and client terminal
CN105610641A (en) * 2015-12-21 2016-05-25 武汉微创光电股份有限公司 Switch testing system and testing method based on semi-physical simulation
CN106330621A (en) * 2016-09-30 2017-01-11 深圳市吉祥腾达科技有限公司 Testing method for interchanger transmission signal performance and testing system
CN108282385A (en) * 2018-01-25 2018-07-13 迈普通信技术股份有限公司 Port testing method and communication equipment
CN109495912A (en) * 2018-12-28 2019-03-19 深圳市吉祥腾达科技有限公司 Band machine weight testing method outside a kind of room base station AP
CN110138691A (en) * 2019-05-09 2019-08-16 深圳市吉祥腾达科技有限公司 The anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol

Also Published As

Publication number Publication date
CN111343452A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN103716826A (en) Wireless data service simulated scene-based user experience quality testing method
US20140227992A1 (en) Method of and An Operating Support System for Providing Performance Management in a Mobile Telecommunications System
CN111782524A (en) Application testing method and device, storage medium and electronic device
CN107169700A (en) A kind of household electrical appliances fault statistics method and device
CN109949178A (en) One kind is based on the judgement of support vector machines middle voltage distribution networks power-off event and complementing method
CN110808856A (en) Big data operation and maintenance method and system based on data center
CN113542029A (en) Service stability testing method, system and tool of network equipment
CN110825466B (en) Program jamming processing method and jamming processing device
CN111343452B (en) Switch monitoring belt machine quantity testing method of analog camera
CN105785170A (en) Intelligent transformer substation oriented data flow panoramic displaying device and intelligent transformer substation oriented data flow panoramic displaying method
CN107819611A (en) Client method of testing based on the more service end emulation of IEC61850
CN107703383A (en) A kind of method for building up of information acquisition system fault diagnosis knowledge base
CN110232020A (en) Test result analysis method and relevant apparatus based on intelligent decision
CN107658866B (en) High-reliability cross-region transmission test system and method thereof
CN117635106A (en) Power equipment monitoring method, system, terminal and storage medium
CN112732554A (en) Intelligent networking hand-trip test method and system
CN111639839A (en) Micro-service-based power grid fault analysis method and system
CN112543110A (en) Network communication simulation method and system of mass power distribution automatic terminal
CN115660382A (en) Vehicle section debugging management system based on Internet of things
CN112148544B (en) Terminal device testing method, smart watch and system
CN115577548A (en) Method, apparatus and medium for analyzing power communication transmission network based on digital twin
CN111985708B (en) Bayesian algorithm-based high-voltage circuit breaker refusal operation probability prediction method and device
CN111062140B (en) Real-time digital simulation modeling method and device for power system and simulation test system
Sinovčić et al. How to improve software development process using mathematical models for quality prediction and elements of six sigma methodology
CN106713072A (en) Manufacture message specification (MMS) message remote communication data extraction method

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210706

CF01 Termination of patent right due to non-payment of annual fee