CN106330621B - A kind of test method and test macro of interchanger transmission signal performance - Google Patents

A kind of test method and test macro of interchanger transmission signal performance Download PDF

Info

Publication number
CN106330621B
CN106330621B CN201610871823.0A CN201610871823A CN106330621B CN 106330621 B CN106330621 B CN 106330621B CN 201610871823 A CN201610871823 A CN 201610871823A CN 106330621 B CN106330621 B CN 106330621B
Authority
CN
China
Prior art keywords
network interface
interface card
port
interchanger
file
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.)
Active
Application number
CN201610871823.0A
Other languages
Chinese (zh)
Other versions
CN106330621A (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 JIXIANG TENDA TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN JIXIANG 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 JIXIANG TENDA TECHNOLOGY Co Ltd filed Critical SHENZHEN JIXIANG TENDA TECHNOLOGY Co Ltd
Priority to CN201610871823.0A priority Critical patent/CN106330621B/en
Publication of CN106330621A publication Critical patent/CN106330621A/en
Application granted granted Critical
Publication of CN106330621B publication Critical patent/CN106330621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/555Error detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides the test method and test macro of a kind of interchanger transmission signal performance, belongs to switch test technical field.Test method of the present invention includes: setting length of testing speech, packet capturing file size, network interface card corresponding relationship;The IP address and camera of configuration network interface card 2 and the port 2 of interchanger are in the same network segment;The incoming traffic of configuration switch port 3 is mirrored to the port 1 connecting with network interface card 1;Start timer, send instructions to network interface card 1 and network interface card 2, network interface card 1 and network interface card 2 are carried out continuing packet capturing and be saved;The file caught to network interface card 1 and network interface card 2 compares one by one and records difference, additionally provides the test macro for realizing above-mentioned test method.The invention has the benefit that network interface card and interchanger configuration and packet capturing, being more all automatically performed, after tester only need to build environment according to networking diagram, opening equipment just can be carried out test, easy to operate;Judging result is reliable;Testing time can be freely set, testing efficiency is improved.

Description

A kind of test method and test macro of interchanger transmission signal performance
Technical field
The present invention relates to switch test technology more particularly to the test methods and survey of a kind of interchanger transmission signal performance Test system.
Background technique
The scene of video monitoring is that front end arranges that camera, camera believe acquired image signal compression at number Number, then server is transferred to by interchanger.Client can watch or play back in real time on the server.
Video monitoring is required after transmission device, clear and accurate no frame losing mistake frame.Here it is most important to interchanger Performance requirement, how the performance of the test interchanger this respect of high efficient and reliable be interchanger producer key job.
Current test method is according to camera-interchanger-server networking, and whether tester passes through naked eyes viewing Have a Caton, image missing, then judge by comparing source and the video file size of destination interchanger whether packet loss.It is this Test mode has following defect:
(1) manually viewing accuracy is not high, and can not watch for a long time, and such testing efficiency is low, and test result can not It leans on;
The size of (2) two video files is identical it cannot be guaranteed that the inside does not have mistake frame.
Summary of the invention
To solve the problems of the prior art, the present invention provides a kind of test method of interchanger transmission signal performance, also Provide a kind of system for realizing the above method.
Test method of the invention includes the following steps:
A: setting length of testing speech, packet capturing file size, network interface card corresponding relationship;
B: the IP address and camera of configuration network interface card 2 and the port 2 of interchanger are in the same network segment;
C: the incoming traffic of configuration switch port 3 is mirrored to the port 1 connecting with network interface card 1;
D: starting timer sends instructions to network interface card 1 and network interface card 2, and network interface card 1 and network interface card 2 are carried out continuing packet capturing and be saved;
E: the file that network interface card 1 and network interface card 2 are caught is compared one by one and records difference.
The present invention is further improved, and in step D, when packet capturing file reaches the size of step A setting, sets up another one File saves, and sets filename according to the time.
The present invention is further improved, in step D, when tested between when reaching the length of testing speech of setting, network interface card 1 and net Card 2 stops packet capturing.
The present invention is further improved, and in step E, the file that network interface card 1 and network interface card 2 are caught is digital message, with byte For unit.
The present invention is further improved, and in step E, difference includes different filename and byte, will be different Place is recorded in txt file and saves, if filename is different, records filename;If the byte in same file name is not Together, then filename and byte number are recorded.
The present invention is further improved, and after step E execution, further include checking test result step: tester is checked Txt file checks test result.
The present invention also provides a kind of system for realizing above-mentioned test method, including camera, interchanger, server, institutes Stating interchanger includes port 1, port 2 and port 3, wherein port 1 and port 2 are output port, and port 3 is input port;Institute It states server and two network interface cards, respectively network interface card 1 and network interface card 2,3 phase of port of the output end and interchanger of the camera is set Even, the network interface card 1 of the server is connect with the port 2 of interchanger, and the network interface card 2 of the server is connect with the port 2 of interchanger.
The present invention is further improved, and further includes video playback apparatus, and the camera can acquire the video playing The video of device plays.
The present invention is further improved, and the video playback apparatus is television set, the video in the television for play USB flash disk File.
The present invention is further improved, and the video signal compression of acquisition can be digital signal by the camera, with word Section is that unit exports.
Compared with prior art, the beneficial effects of the present invention are: network interface card and interchanger configuration and packet capturing, be more all automatic It completes, after tester only need to build environment according to networking diagram, opening equipment just can be carried out test, easy to operate;Compared to naked eyes Observation, the present invention compare each byte of video file automatically, and judging result is reliable;The testing time is freely arranged in the present invention, surveys Examination personnel can be tested using evening hours, improve testing efficiency.
Detailed description of the invention
Fig. 1 is the method for the present invention flow chart;
Fig. 2 is one embodiment of the invention method flow diagram;
Fig. 3 is schematic structural view of the invention.
Specific embodiment
The present invention is described in further details with reference to the accompanying drawings and examples.
As shown in figure 3, the present invention is before testing, and test system building, including camera, interchanger, server first, institute Stating interchanger includes port 1, port 2 and port 3, wherein port 1 and port 2 are output port, and port 3 is input port;Institute It states server and two network interface cards, respectively network interface card 1 and network interface card 2,3 phase of port of the output end and interchanger of the camera is set Even, the network interface card 1 of the server is connect with the port 2 of interchanger, and the network interface card 2 of the server is connect with the port 2 of interchanger.
The video of the camera acquisition of this example is the video of television for play, and therefore, television set is placed on 2 immediately ahead of camera Rice place, one video file of band is slotting on a television set in USB flash disk, allows video in television for play USB flash disk.The network interface connection of camera Switch port 3;Server PC needs two pieces of network interface cards, and network interface card 1 connects switch port 1, and network interface card 2 connects switch port 2;It connects The power supply of all devices, television set set loop play video file.Then tester starts automation on server PC Test program is tested;After test, tester checks test result by checking txt file.
In the present invention, tester need to only open all devices, and simple operations are carried out on server PC with regard to achievable friendship The long-term test changed planes to video monitoring.
As shown in Figure 1, test method of the invention includes the following steps:
A: setting length of testing speech, packet capturing file size, network interface card corresponding relationship;
B: the IP address and camera of configuration network interface card 2 and the port 2 of interchanger are in the same network segment;
C: the incoming traffic of configuration switch port 3 is mirrored to the port 1 connecting with network interface card 1;
D: starting timer sends instructions to network interface card 1 and network interface card 2, and network interface card 1 and network interface card 2 are carried out continuing packet capturing and be saved;
E: the file that network interface card 1 and network interface card 2 are caught is compared one by one and records difference.
In step D, it when packet capturing file reaches the size of step A setting, sets up another a file and saves, and according to the time Set filename.When reaching the length of testing speech of setting between when tested, network interface card 1 and network interface card 2 stop packet capturing.
In step E, the file that network interface card 1 and network interface card 2 are caught is digital message, as unit of byte.This example difference Including different filename and byte, difference is recorded in txt file and is saved, if filename is different, recorded Filename;If the byte in same file name is different, filename and byte number are recorded.
After step E execution, further include checking test result step: tester checks txt file, checks test knot Fruit.
As shown in Fig. 2, the specific execution step of this example are as follows:
S1: starting, pop-up input frame, tester's input test duration, packet capturing file size, network interface card corresponding relationship, this Place refers to network interface card 1 and the corresponding true network interface card of network interface card 2;
S2: judging whether input content is in order verification, if so, performing the next step, if not, pop-up prompt is " defeated It is undesirable to enter content ", then it re-execute the steps S1;
S3: network interface card 2 is sent instructions to, the IP address and camera of configuration network interface card 2 and the IP address of interchanger are in same net Section.Such as: 2 address of network interface card is 192.168.0.3, camera 192.168.0.1, switch address 192.168.0.2.
S4: calling the address of browser input interchanger on the server, and such as 192.168.0.2 logs in friendship by network interface card 2 It changes planes, is configured on switches, the incoming traffic duplication for the port 3 for making camera be connected with interchanger is a to port 1;
S5: calling the IP address 192.168.0.1 of browser input camera on the server, is taken the photograph by the access of network interface card 2 As head, real time inspection video monitoring, while starting timer n;
S6: sending instructions to network interface card 1 respectively and network interface card 2 persistently carries out packet capturing, is stored under different files;
S7: judging whether packet capturing file size reaches the value that tester specifies in step S1, if so, executing next Step continues to execute step S6 if not, returning;
S8: saving under packet capturing file to different files, when packet capturing file reaches the size of tester's setting, meeting It sets up another a file to save, and temporally names file;
S9: judging whether the value of timer n reaches length of testing speech, if so, stopping packet capturing, then performs the next step, such as Fruit is no, returns to step S6;
S10: the message file caught to network interface card 1 and network interface card 2 is compared one by one.Since camera can be by the view of acquisition Frequency signal compression is digital signal, as unit of byte.It is the report directly transmitted after camera compresses that network interface card 1, which is caught, Text, it is message after have passed through switch processes that network interface card 2, which is caught, the message of the message of network interface card 2 and network interface card 1 is carried out one by one pair Than recording filename if filename is different;If the byte in same file name is different, filename and byte are recorded Number;If encountering different, illustrate that switch processes are problematic.
S11: recording different filename and byte number, saves as txt document, terminates.
The method of the present invention is simple and effective, and the configuration of network interface card and interchanger and packet capturing compare instruction are all automatically performed, test After personnel only need networking to build environment, opening equipment just can be carried out test, easy to operate;Compared to pervious naked-eye observation, this hair The bright each byte for being capable of providing automatic comparison video file, can not only identify different size of video file, additionally it is possible to It identifies the i.e. wrong frame of different frame in two video files of same size, effectively identifies video file after interchanger transmits Frame losing mistake frame data, judging result is efficiently, accurately, reliably;Testing time, such as survey in 12 hours etc. can be freely arranged in the present invention The time is tried, tester can be tested using evening hours, improve testing efficiency.
The specific embodiment of the above is better embodiment of the invention, is not limited with this of the invention specific Practical range, the scope of the present invention includes being not limited to present embodiment, all equal according to equivalence changes made by the present invention Within the scope of the present invention.

Claims (9)

1. a kind of test method of interchanger transmission signal performance, it is characterised in that include the following steps:
A: setting length of testing speech, packet capturing file size, network interface card corresponding relationship;
B: the IP address and camera of configuration network interface card 2 and the port 2 of interchanger are in the same network segment;
C: the incoming traffic of configuration switch port 3 is mirrored to the port 1 connecting with network interface card 1;
D: starting timer sends instructions to network interface card 1 and network interface card 2, and network interface card 1 and network interface card 2 are carried out continuing packet capturing and be saved;
E: the file caught to network interface card 1 and network interface card 2 compares one by one and records difference,
In step E, difference includes different filename and byte, and difference is recorded in txt file and is saved, If filename is different, filename is recorded;If the byte in same file name is different, filename and byte number are recorded.
2. test method according to claim 1, it is characterised in that: in step D, set when packet capturing file reaches step A When fixed size, sets up another a file and save, and set filename according to the time.
3. test method according to claim 2, it is characterised in that: in step D, when tested between reach the survey of setting When trying duration, network interface card 1 and network interface card 2 stop packet capturing.
4. test method according to claim 1, it is characterised in that: in step E, file that network interface card 1 and network interface card 2 are caught For digital message, as unit of byte.
5. test method according to claim 1, it is characterised in that: further include checking test result after step E execution Step: tester checks txt file, checks test result.
6. a kind of test macro for realizing any one of claim 1-5 test method, it is characterised in that: including camera, Interchanger, server, the interchanger include port 1, port 2 and port 3, wherein port 1 and port 2 are output port, end Mouth 3 is input port;The server is arranged two network interface cards, respectively network interface card 1 and network interface card 2, the output end of the camera with The port 3 of interchanger is connected, and the network interface card 1 of the server is connect with the port 1 of interchanger, the network interface card 2 of the server and friendship The port 2 changed planes connects.
7. test macro according to claim 6, it is characterised in that: it further include video playback apparatus, the camera energy Enough acquire the video that the video playback apparatus plays.
8. test macro according to claim 7, it is characterised in that: the video playback apparatus is television set, the electricity The video file in USB flash disk is put depending on machine sowing.
9. test macro according to claim 7, it is characterised in that: the camera can be by the vision signal pressure of acquisition It is condensed to digital signal, is exported as unit of byte.
CN201610871823.0A 2016-09-30 2016-09-30 A kind of test method and test macro of interchanger transmission signal performance Active CN106330621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610871823.0A CN106330621B (en) 2016-09-30 2016-09-30 A kind of test method and test macro of interchanger transmission signal performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610871823.0A CN106330621B (en) 2016-09-30 2016-09-30 A kind of test method and test macro of interchanger transmission signal performance

Publications (2)

Publication Number Publication Date
CN106330621A CN106330621A (en) 2017-01-11
CN106330621B true CN106330621B (en) 2019-09-17

Family

ID=57821373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610871823.0A Active CN106330621B (en) 2016-09-30 2016-09-30 A kind of test method and test macro of interchanger transmission signal performance

Country Status (1)

Country Link
CN (1) CN106330621B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109525509A (en) * 2017-09-19 2019-03-26 中兴通讯股份有限公司 Network interface card mirror image packet snapping method, terminal and readable storage medium storing program for executing
CN110138691B (en) * 2019-05-09 2021-03-23 深圳市吉祥腾达科技有限公司 Switch spanning tree protocol anti-loop stability test method and tool
CN110784375B (en) * 2019-10-24 2021-10-12 新华三信息安全技术有限公司 Network data monitoring method and device, electronic equipment and storage medium
CN111343452B (en) * 2020-02-28 2021-07-06 深圳市吉祥腾达科技有限公司 Switch monitoring belt machine quantity testing method of analog camera
CN113452965B (en) * 2021-06-25 2023-08-11 深圳市吉祥腾达科技有限公司 Automatic test method and system for testing compatibility of switch and network camera
CN114500336B (en) * 2022-01-11 2024-02-13 南京南瑞信息通信科技有限公司 Time-sensitive network gating scheduling and per-flow filtering management test method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917452A (en) * 2005-08-19 2007-02-21 上海亿人通信终端有限公司 Method for testing forwarding performance of Ethernet exchange, and method for configuring network
CN105610641A (en) * 2015-12-21 2016-05-25 武汉微创光电股份有限公司 Switch testing system and testing method based on semi-physical simulation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917452A (en) * 2005-08-19 2007-02-21 上海亿人通信终端有限公司 Method for testing forwarding performance of Ethernet exchange, and method for configuring network
CN105610641A (en) * 2015-12-21 2016-05-25 武汉微创光电股份有限公司 Switch testing system and testing method based on semi-physical simulation

Also Published As

Publication number Publication date
CN106330621A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN106330621B (en) A kind of test method and test macro of interchanger transmission signal performance
CN104410856A (en) Automatic inspection method for video conferencing operation system
US8881195B2 (en) Test system for a set-top box
CN104679631B (en) Method of testing and system for the equipment based on android system
CN102655585B (en) Video conference system and time delay testing method, device and system thereof
CN109309831A (en) The test method and device of video delay in video conference
CN108933938A (en) A kind of video quality method of inspection, device and electronic equipment
CN104038821A (en) Method for uniformly gathering fault information of each functional module of Android television
CN104735473A (en) Video stream playing detection method and device
CN110377347A (en) A kind of automatic inspection method and system of Redfish setting BIOS option
CN105991358A (en) Method, device, test board and system for testing traffic of interface board
CN103369402A (en) Method and system for comparing functional consistency of multiple set top boxes
CN105183632A (en) Automatic testing method for video playback starting
CN109656800B (en) Method and device for testing image recognition application, terminal and storage medium
CN108289218B (en) Audio and video test method and system and audio and video test equipment
CN109857672A (en) A kind of formation gathering method, device, equipment and storage medium
CN107948019A (en) A kind of method of automatic test network interface card pressure under linux system
CN113452965B (en) Automatic test method and system for testing compatibility of switch and network camera
CN104918000A (en) Video conference remote control device
CN107172420B (en) IPTV and OTT set-top box quality automatic test method
CN104093038A (en) Testing and monitoring method and device for real-time streaming media recognition service
CN106131544B (en) A kind of cec analog detection methods and test system
CN104506848A (en) An automated testing system for a set top box
CN107797089A (en) A kind of measurement instrument automatic monitoring device
WO2018177018A1 (en) Multi-tuner set-top box production detection method, system and detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant