CN109618363A - Mobile gateway test macro and method - Google Patents

Mobile gateway test macro and method Download PDF

Info

Publication number
CN109618363A
CN109618363A CN201811353398.1A CN201811353398A CN109618363A CN 109618363 A CN109618363 A CN 109618363A CN 201811353398 A CN201811353398 A CN 201811353398A CN 109618363 A CN109618363 A CN 109618363A
Authority
CN
China
Prior art keywords
test
mobile gateway
tested mobile
interface
tested
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.)
Granted
Application number
CN201811353398.1A
Other languages
Chinese (zh)
Other versions
CN109618363B (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.)
Qingdao Hisense Electronic Equipment Co Ltd
Original Assignee
Qingdao Hisense Electronic Equipment 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 Qingdao Hisense Electronic Equipment Co Ltd filed Critical Qingdao Hisense Electronic Equipment Co Ltd
Priority to CN201811353398.1A priority Critical patent/CN109618363B/en
Publication of CN109618363A publication Critical patent/CN109618363A/en
Application granted granted Critical
Publication of CN109618363B publication Critical patent/CN109618363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices
    • 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/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • 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/0888Throughput
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Abstract

The invention discloses a kind of mobile gateway test macro and method, system includes host computer, tested mobile gateway and conventional routers;Host computer is connect with tested mobile gateway, for sending test instruction to tested mobile gateway, receives the test result that tested mobile gateway returns;Tested mobile gateway, connect with host computer and conventional routers, for executing test script after receiving the test instruction of host computer transmission, test is executed in a manner of sending data to conventional routers, and return to test result to host computer after test is completed;Using " reverse " mode, test script is executed in tested mobile gateway, data packet is sent to complete the performance test of network interface to conventional routers connected to it as active devices, without manually switching tested port in entire test process, achieve the purpose that quick, accurate, exhaustively test network interface function and performance, solves the technical problem that testing efficiency is low in existing mobile gateway batch production.

Description

Mobile gateway test macro and method
Technical field
The invention belongs to mobile gateway technical fields, specifically, being to be related to a kind of mobile gateway test macro and method.
Background technique
WAN, LAN, USB-LAN interface of gateway, as the basic function interface of equipment, function and performance are in life Need to carry out emphasis quality control during producing.
Mobile communication gateway class product, test item is various, mainly includes reset key, inside and outside routing serial ports, Modem, SIM Card, signal strength, ISDN, WAN mouthfuls, LAN mouthfuls (2-4), USB turn ten remainders such as LAN, handling capacity, inside and outside routing connectivity and survey Examination;Wherein, WAN, LAN, USB-LAN test are always to restrict the bottleneck test item of production efficiency, tradition and conventional test Method is to send data packet to equipment under test port one by one by computer network interface, equipment under test returns to test knot by port Fruit;This test mode process is cumbersome, needs to switch tested port one by one, and time-consuming, is easy test leakage, testing efficiency is low, no It is suitble to equipment batch production test.
Summary of the invention
This application provides a kind of mobile gateway test macro and method, solve to test in existing mobile gateway batch production The technical issues of low efficiency.
In order to solve the above technical problems, the application is achieved using following technical scheme:
It is proposed a kind of mobile gateway test macro, including host computer, tested mobile gateway and conventional routers;The host computer, It connect with the tested mobile gateway, is instructed for sending test to the tested mobile gateway, and, receive the tested shifting The test result that dynamic gateway returns;The tested mobile gateway, connect, for connecing with the host computer and the conventional routers It receives the test instruction that the host computer is sent and executes test script later, to send the side of data to the conventional routers Formula executes test, and returns to test result to the host computer after test is completed;Wherein, the WAN of the tested mobile gateway Interface is connect with the wan interface of the conventional routers;Each LAN interface of the tested mobile gateway respectively with the routine The LAN interface of router connects.
It is proposed a kind of mobile gateway test method, comprising: judge whether to receive the test instruction of host computer transmission;If It is to be tested mobile gateway to execute test script, executes test in a manner of sending data to conventional routers;After the completion of test Test result is returned to the host computer;Wherein, the WAN of the wan interface of the tested mobile gateway and the conventional routers Interface connection;Each LAN interface of the tested mobile gateway is connect with the LAN interface of the conventional routers respectively.
Compared with prior art, the advantages of the application and good effect is: the mobile gateway test macro that the application proposes And method executes test script in tested mobile gateway using " reverse " mode, as active devices to it is connected to it often Rule router sends data packet to complete the performance test of network interface, and tester only need to be in the tested movement of test initial stage connection Gateway, host computer and conventional routers, without manually switching tested port in entire test process, reach quickly, Accurately, exhaustively the purpose of test network interface function and performance reports test result to host computer after the completion of test, Host computer reduces the design complexities of host computer test program, not only increases system without executing any test program Development efficiency also enhances the versatility and flexibility of system, and it is low to solve testing efficiency in existing mobile gateway batch production The technical issues of.
After the detailed description of the application embodiment is read in conjunction with the figure, other features and advantages of the application will become more Add clear.
Detailed description of the invention
Fig. 1 is the architecture diagram for the mobile gateway test macro that the application proposes;
Fig. 2 is the mobile gateway test system and test data flow schematic diagram that the application proposes;
Fig. 3 is the flow chart for the mobile gateway test method that the application proposes.
Specific embodiment
The specific embodiment of the application is described in more detail with reference to the accompanying drawing.
The mobile gateway test macro that the application proposes, as shown in Figure 1, including host computer 1, tested mobile gateway 2 and often Advise router 3;Host computer 1 is connect with tested mobile gateway 2, is instructed for sending test to tested mobile gateway 2, and, it connects Receive the test result that tested mobile gateway 2 returns;Tested mobile gateway 2 is connect with host computer 1 and conventional routers 3, for connecing It receives the test instruction that host computer 1 is sent and executes test script later, execute survey in a manner of sending data to conventional routers 3 Examination, and test result is returned to host computer 1 after test is completed.
Wherein, as shown in Figure 1, the WAN of tested mobile gateway connects and connect with the wan interface of conventional routers;Tested movement Each LAN interface of gateway is connect with the LAN interface of conventional routers respectively.
In the application, different from the passive tested mode of tested mobile gateway in the prior art, but by tested movement Gateway is its load test script as test subject, after receiving the test instruction of host computer transmission, starting test foot This, sends data packet to conventional routers connected to it in such a way that active is tested, and judges test knot according to the data of return Fruit, and active reporting, to host computer, host computer is only used to send test instruction, and receives the test that tested mobile gateway returns It is checked as a result, test result is shown to user, reduces the design complexities of upper computer software, and improve software Versatility.
Specifically, tested mobile gateway 2 includes WAN test module 21, the wan interface for specified tested mobile gateway is made For data outlet, destination address is that the network address of the wan interface of conventional routers carries out the test of ping packet, the test of ping general rule As a result it is pass, otherwise returns to error, tested mobile gateway sends result to host computer.
Tested mobile gateway 2 further includes LAN test module 22, for each LAN to be divided to different VLAN, and is arranged Each LAN interface of tested mobile gateway is and the LAN phase same network segment of conventional routers and the network address that does not conflict;Because In the same network segment, when one LAN interface of ping packet, logical there is also other LAN interface ping and tested LAN interface does not have ping A possibility that logical, therefore, the purpose that each LAN is divided to different VLAN is, by each LAN virtual assigned to different Network segment, different LAN interface carry out the test of ping packet in different network segments, avoid in the same network segment, to a LAN interface The case where specifically testing the LAN interface number passed through generation can not be differentiated when being tested;After setting, tested movement is successively specified For each LAN interface of gateway as data outlet, destination address is that the network address of the corresponding LAN interface of conventional routers carries out The test of ping packet, ping general rule test result are pass, otherwise return to error, tested mobile gateway sends result to upper Machine.
When concrete application, distribute different test No.s for wan interface and different LAN interface, when returning the result with The mode of pass1, pass2 ... or error1, error2 ... return, to achieve the effect that clearly to differentiate test result.
Tested mobile gateway 2 includes testing throughput module 23, for the wan interface of tested mobile gateway 2 to be arranged as number According to entrance, and any LAN interface is data outlet, to be tested mobile gateway LAN interface, conventional routers LAN interface, routine Router wan interface and tested mobile gateway wan interface are to carry out data flow (as shown by the arrows in figure 2) filling packet performance test.
The USB interface of the USB-LAN interface connection host computer of tested mobile gateway 2;Tested mobile gateway further includes USB- LAN test module 24, the unique address stored in its address pool for obtaining tested mobile gateway 2, to determine host computer IP address carries out ping packet with unique address and tests USB-LAN that is, the unique address of the storage is the IP address of host computer Interface capability, the IP that host computer can be led to ping then complete USB-LAN interface performance test, return to test result pass, no Then return to error.
Host computer is connect by RS232 serial ports with the serial ports J4 of tested mobile gateway 2, and serial ports J4 is used for production line test, It is invisible to user.
The mobile gateway test macro that above-mentioned the application proposes is executed in tested mobile gateway using " reverse " mode Test script sends data packet to conventional routers connected to it as active devices to complete the performance of network interface and survey Examination, tester only need to connect tested mobile gateway, host computer and conventional routers at test initial stage, in entire test process In without manually switching tested port, reach quick, accurate, exhaustively test network interface function and performance mesh , after the completion of test, test result is reported to host computer, host computer reduces host computer without executing any test program The design complexities of test program not only increase the development efficiency of system, also enhance the versatility and flexibility of system, solution It has determined the low technical problem of testing efficiency in the batch production of existing mobile gateway.
To further increase testing efficiency, same host computer can connect more tested mobile gateways and be tested, and every Tested mobile gateway is connected with conventional routers.
Based on mobile gateway test macro set forth above, the application also proposes a kind of mobile gateway test method, such as Fig. 3 It is shown, include the following steps:
Step S31: judge whether to receive the test instruction of host computer transmission.
Host computer is operated by tester, usually industrial personal computer, execute test program, sent out to the tested mobile gateway of connection It send test to instruct, includes test parameter in instruction;After tested mobile gateway receives test instruction,
Step S32: tested mobile gateway executes test script, executes test in a manner of sending data to conventional routers.
Test script is installed in tested mobile gateway, after receiving test instruction, is tested mobile gateway starting test foot This, executes test with active mode;Specifically, the wan interface of 1, specified tested mobile gateway is as data outlet, destination address Ping packet test wan interface performance is carried out for the network address of the wan interface with conventional routers, the test of ping general rule passes through, Otherwise error is returned;2, each LAN is divided to different VLAN;And each LAN interface that tested mobile gateway is set be with The LAN phase same network segment of conventional routers and the network address not conflicted;Each LAN interface of tested mobile gateway is successively specified to make For data outlet, destination address is that the network address of the corresponding LAN interface of conventional routers carries out ping packet test LAN interface Can, the test of ping general rule passes through, and otherwise returns to error;3, the wan interface that tested mobile gateway is arranged is Data entries, and Any LAN interface is data outlet, is connect with tested mobile gateway LAN interface, conventional routers LAN interface, conventional routers WAN Mouthful and tested mobile gateway wan interface be that data flow fills packet test throughput performance, reach throughput standards and then test and pass through, Otherwise error is returned.
Turn the test of LAN for USB, is tested mobile gateway starting dhcp service, storage and host computer IP mono- in address pool The unique address of cause reads the unique address and carries out the test of ping packet, and the IP that host computer can be led to ping can be completed USB and turn The performance test of LAN returns to pass, otherwise returns to error.
Step S33: test result is returned to host computer after test is completed.
It should be noted that the above description is not a limitation of the present invention, the present invention is also not limited to the example above, The variations, modifications, additions or substitutions that those skilled in the art are made within the essential scope of the present invention, are also answered It belongs to the scope of protection of the present invention.

Claims (10)

1. mobile gateway test macro, which is characterized in that including host computer, tested mobile gateway and conventional routers;
The host computer is connect with the tested mobile gateway, for sending test instruction to the tested mobile gateway, with And receive the test result that the tested mobile gateway returns;
The tested mobile gateway, connect with the host computer and the conventional routers, sends for receiving the host computer Test instruction after execute test script, execute test in a manner of sending data to the conventional routers, and Test result is returned to the host computer after test completion;
Wherein, the wan interface of the tested mobile gateway is connect with the wan interface of the conventional routers;The tested movement Each LAN interface of gateway is connect with the LAN interface of the conventional routers respectively.
2. mobile gateway test macro according to claim 1, which is characterized in that the tested mobile gateway includes WAN Test module;
The WAN test module, for specifying the wan interface of the tested mobile gateway as data outlet, destination address is The network address of the wan interface of the conventional routers carries out the test of ping packet.
3. mobile gateway test macro according to claim 1, which is characterized in that the tested mobile gateway includes LAN Test module;
For each LAN to be divided to different VLAN, and each of the tested mobile gateway is arranged in the LAN test module A LAN interface is and the LAN phase same network segment of the conventional routers and the network address that does not conflict;And it successively specifies described For each LAN interface of tested mobile gateway as data outlet, destination address is the corresponding LAN interface of the conventional routers Network address carries out the test of ping packet.
4. mobile gateway test macro according to claim 1, which is characterized in that the tested mobile gateway includes handling up Measure test module;
The testing throughput module, the wan interface for the tested mobile gateway to be arranged is Data entries, and any LAN interface is data outlet, with tested mobile gateway LAN interface, conventional routers LAN interface, conventional routers wan interface and Tested mobile gateway wan interface is that data flow carries out filling packet performance test.
5. mobile gateway test macro according to claim 1, which is characterized in that the USB- of the tested mobile gateway LAN interface connects the USB interface of the host computer;The tested mobile gateway includes USB-LAN test module;
The USB-LAN test module, the unique address stored in its address pool for obtaining the tested mobile gateway, with It determines the IP address of the host computer, and the test of ping packet is carried out with the unique address.
6. mobile gateway test method characterized by comprising
Judge whether that the test for receiving host computer transmission instructs;If so,
Tested mobile gateway executes test script, executes test in a manner of sending data to conventional routers;
Test result is returned to the host computer after test is completed;
Wherein, the wan interface of the tested mobile gateway is connect with the wan interface of the conventional routers;The tested movement Each LAN interface of gateway is connect with the LAN interface of the conventional routers respectively.
7. mobile gateway test method according to claim 6, which is characterized in that the tested mobile gateway executes test Script executes test in a manner of sending data to the conventional routers, specifically includes:
Specify the wan interface of the tested mobile gateway as data outlet, destination address is the WAN with the conventional routers The network address of interface carries out ping packet and tests wan interface performance.
8. mobile gateway test method according to claim 6, which is characterized in that the tested mobile gateway executes test Script executes test in a manner of sending data to the conventional routers, specifically includes:
Each LAN is divided to different VLAN;And
Each LAN interface that the tested mobile gateway is arranged is and the LAN phase same network segment of the conventional routers and does not conflict Network address;
Successively specify each LAN interface of the tested mobile gateway as data outlet, destination address is the conventional routing The network address of the corresponding LAN interface of device carries out ping packet and tests LAN interface performance.
9. mobile gateway test method according to claim 6, which is characterized in that the tested mobile gateway executes test Script executes test in a manner of sending data to the conventional routers, specifically includes:
The wan interface that the tested mobile gateway is arranged is Data entries, and any LAN interface is data outlet, with tested Mobile gateway LAN interface, conventional routers LAN interface, conventional routers wan interface and tested mobile gateway wan interface are number Packet test throughput performance is filled according to flow direction.
10. mobile gateway test method according to claim 6, which is characterized in that the method also includes:
Obtain the unique address that the tested mobile gateway stores in its address pool;
Ping packet, which is carried out, with the unique address tests USB-LAN performance.
CN201811353398.1A 2018-11-14 2018-11-14 Mobile gateway test system and method Active CN109618363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811353398.1A CN109618363B (en) 2018-11-14 2018-11-14 Mobile gateway test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811353398.1A CN109618363B (en) 2018-11-14 2018-11-14 Mobile gateway test system and method

Publications (2)

Publication Number Publication Date
CN109618363A true CN109618363A (en) 2019-04-12
CN109618363B CN109618363B (en) 2022-03-04

Family

ID=66003357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811353398.1A Active CN109618363B (en) 2018-11-14 2018-11-14 Mobile gateway test system and method

Country Status (1)

Country Link
CN (1) CN109618363B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110601915A (en) * 2019-08-12 2019-12-20 深圳市同维通信技术有限公司 Method and device for testing gateway device
CN111756597A (en) * 2020-06-22 2020-10-09 北京自如信息科技有限公司 Wireless module testing system, method and device applied to gateway
CN112468356A (en) * 2019-09-09 2021-03-09 北京奇虎科技有限公司 Router interface testing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186444A (en) * 2013-04-15 2013-07-03 北京搜狐新时代信息技术有限公司 Performance testing method, platform and machine
CN104158701A (en) * 2014-08-18 2014-11-19 中国联合网络通信集团有限公司 Gateway function testing method and device
CN106452975A (en) * 2016-11-18 2017-02-22 上海斐讯数据通信技术有限公司 Method and system for testing router

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186444A (en) * 2013-04-15 2013-07-03 北京搜狐新时代信息技术有限公司 Performance testing method, platform and machine
CN104158701A (en) * 2014-08-18 2014-11-19 中国联合网络通信集团有限公司 Gateway function testing method and device
CN106452975A (en) * 2016-11-18 2017-02-22 上海斐讯数据通信技术有限公司 Method and system for testing router

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110601915A (en) * 2019-08-12 2019-12-20 深圳市同维通信技术有限公司 Method and device for testing gateway device
CN112468356A (en) * 2019-09-09 2021-03-09 北京奇虎科技有限公司 Router interface testing method and device, electronic equipment and storage medium
CN112468356B (en) * 2019-09-09 2023-11-03 北京奇虎科技有限公司 Router interface testing method, device, electronic equipment and storage medium
CN111756597A (en) * 2020-06-22 2020-10-09 北京自如信息科技有限公司 Wireless module testing system, method and device applied to gateway
CN111756597B (en) * 2020-06-22 2021-05-18 北京自如信息科技有限公司 Wireless module testing system, method and device applied to gateway

Also Published As

Publication number Publication date
CN109618363B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN109618363A (en) Mobile gateway test macro and method
CN106503308B (en) A kind of CAN controller IP verification platform based on UVM
CN103812726B (en) Automated testing method and device for data communication equipment
CN104980317B (en) A kind of Auto-Test System and method of testing of dispatch data net equipment
CN101917305B (en) Method for automatically checking topology in automatic test and automatic test system
CN104184617B (en) InterWorking Equipment pre-add method for reconfiguration, device, system and the network equipment
CN104486791A (en) Wireless access equipment anti-interference test system and method
CN107659434A (en) A kind of automatic test approach of Devices to test, apparatus and system
CN109104329B (en) System for testing compatibility of router and network card
WO2018192149A1 (en) Dial testing method, apparatus and system
CN109327350A (en) A kind of batch carries out the method and apparatus and system of terminal test
US20230020480A1 (en) Unified query tool for network function virtualization architecture
CN107612769A (en) A kind of method and system of test router wireless transmission rate
CN105607086A (en) Automatic detection method for GNSS receiver
CN108896841A (en) Test macro, test method and device
CN113036930B (en) Power grid data communication management system
CN109428778A (en) Mainboard network connectivty test method and device
CN104703197A (en) Terminal protocol consistency testing platform and terminal protocol consistency testing method based on TTCN-3
CN110022238A (en) A kind of test method and device of Ethernet switching chip
CN106162702A (en) Wireless aps maximum user connects number automated testing method and system
CN108200545B (en) WLAN signaling test system and test method
CN101895641B (en) Network line testing device and method
CN105974297A (en) Virtual test instrument capable of realizing efficient testing and test method
CN113949657B (en) Internet of things detection device, system and test method
CN102546306B (en) DSL transmission range test method and device adopting same

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