[go: up one dir, main page]

CN110290029B - Method for testing wired tape machine of router integrated service - Google Patents

Method for testing wired tape machine of router integrated service Download PDF

Info

Publication number
CN110290029B
CN110290029B CN201910648627.0A CN201910648627A CN110290029B CN 110290029 B CN110290029 B CN 110290029B CN 201910648627 A CN201910648627 A CN 201910648627A CN 110290029 B CN110290029 B CN 110290029B
Authority
CN
China
Prior art keywords
port
router
computer
industrial personal
personal computer
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
CN201910648627.0A
Other languages
Chinese (zh)
Other versions
CN110290029A (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 CN201910648627.0A priority Critical patent/CN110290029B/en
Publication of CN110290029A publication Critical patent/CN110290029A/en
Application granted granted Critical
Publication of CN110290029B publication Critical patent/CN110290029B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

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

Abstract

The invention provides a wired tape machine testing system for router integrated services, which comprises a first industrial personal computer, a second industrial personal computer, a switch supporting VLAN division, a device to be tested, a first computer and a second computer, wherein the device to be tested is a router supporting port mapping, the first industrial personal computer is connected with a WAN port of the router, the second industrial personal computer is connected with a port 1 of the switch, a port 2 of the switch is connected with a LAN port of the router, and the first computer and the second computer are respectively connected with the LAN port of the router through network cables. The invention also provides a testing method for the wired tape machine of the router integrated service. The invention has the beneficial effects that: the method can simulate a plurality of clients to access different integrated services on the internet at the same time, and solves the problems of too long test time and inaccuracy of speed measurement results caused by complicated manual connection time and unreliable factors of equipment terminals during connection of the router integrated services.

Description

Method for testing wired tape machine of router integrated service
Technical Field
The present invention relates to a router, and more particularly, to a system and a method for testing wired tape of router integrated services.
Background
With the rapid increase of internet access services such as various application software, intelligent furniture, intelligent traffic, FTP application and the like, the types of connected terminals are more and more, the internet access services are more and more complicated, and the router needs different processing aiming at different internet access services, so that the router product is more important in the aspects of stability, reliability and machine loading amount when connecting multiple integrated services.
At present, when the router integrated service connection is tested, a tester needs to prepare different terminals and different internet access service flows and then manually test the terminals and the different internet access service flows, so that the working efficiency of the tester is obviously reduced.
Therefore, a technical problem to be solved is urgently needed by the technical people in the field how to solve the problems of too long test time and inaccuracy of speed measurement result caused by complicated manual connection and unreliable factors of the device terminal during the connection of the router integrated service.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a system and a method for testing the wired tape quality of the router integrated service.
The invention provides a wired tape machine testing system for router integrated services, which comprises a first industrial personal computer, a second industrial personal computer, a switch supporting VLAN division, a device to be tested, a first computer and a second computer, wherein the device to be tested is a router supporting port mapping, the first industrial personal computer is connected with a WAN port of the router, the second industrial personal computer is connected with a port 1 of the switch, a port 2 of the switch is connected with a LAN port of the router, and the first computer and the second computer are respectively connected with the LAN port of the router through network cables.
As a further improvement of the present invention, port 1 and port 2 of the switch are respectively configured as Trunk ports, and both allow vlans 1-254 to pass through, port 2 of the switch is connected to LAN1 port of the router, the first computer is connected to LAN2 port of the router through a network cable, the second computer is connected to LAN3 port of the router through a network cable, LAN2 port of the router maps LAN1 port, and LAN3 port of the router maps WAN port.
As a further improvement of the invention, the first industrial personal computer and the second industrial personal computer are Linux system industrial personal computers, and the first computer and the second computer are both provided with a wireless packet capturing tool and a wired packet capturing tool.
The invention also provides a testing method for the wired tape machine of the router integrated service, which comprises the following steps:
s1, building a wired tape machine testing system of the router integrated service according to any one of the above;
s2, configuring 254 virtual wireless interfaces on a linux system of a second industrial personal computer, and using the virtual wireless interfaces as clients;
s3, sequentially adding VLANs for the 254 virtual interfaces established on the second industrial personal computer;
s4, building an FTP server, a WEB server and a video server on a first industrial personal computer;
s5, setting the port 1 and the port 2 of the switch as Trunk ports respectively, and allowing the VLANs 1-254 to pass through;
s6, configuring the router to be tested;
s7, opening three terminal windows on a second industrial personal computer, and respectively accessing the built FTP server, WEB server and video on demand server by using 254 virtual clients;
and S8, when a plurality of services access simultaneously, checking the flow condition in the system state in the router and the time delay of the ping packet of the first computer and the second computer to analyze the result.
As a further improvement of the present invention, in step S2, 254 virtual wireless interfaces are configured on the linux system of the second industrial computer as follows:
virtual interface 1: ifConfig eth1: 0192.168.1.1 hw ether 00:11:00:00: 00:11:44 netmask 255.255.255.0 broadcast 192.168.1.255 up;
virtual interface 2: ifConfig eth1: 1192.168.1.2 hw ether 00:11:00:00: 00:11:44 netmask 255.255.255.0 broadcast 192.168.1.255 up;
……
the virtual interface 253 is ifconfig eth1: 252192.168.1.253 hw ether 00:11:00:00: 00:11:44 netmask 255.255.255.0 broadcast 192.168.1.255 up;
virtual interface 254: ifconfig eth1: 253192.168.1.254 hw ether 00:11:00:00: 00:11:44 netmask 255.255.255.0 broadcast 192.168.1.255 up.
As a further improvement of the present invention, in step S3, VLANs are sequentially added to the 254 virtual interfaces created on the second industrial computer as follows:
virtual interface 1: vconfig add eth0: 11;
virtual interface 2: vconfig add eth0: 22;
……
virtual interface 253: vconfig add eth0: 1253;
virtual interface 254: vconfig add eth0: 1254.
As a further improvement of the present invention, in step S4, the method for building an FTP server on a first industrial personal computer includes:
a1, checking whether there is installation by using rpm-qa | grep vsftpd command;
B1、yum -y install vsftpd;
c1, starting an ftp command service vssftpd start after the installation is finished;
d1, there are three configuration files for configuring ftp for vsftpd, which are located under/etc/vsftpd/directory:
ftservers are used to specify those users cannot access the ftp server;
user _ list is used to indicate that the default account cannot access ftp by default;
conf is the master profile for vsftpd;
e1. anonymous user only needs to remove anon _ upload _ enable = YES in configuration file
anon _ mkdir _ write _ enable = YES, and step C1 is executed again after removal;
f1, accessing a non-anonymous user, wherein the service of vsftpd is associated with the system user, so a non-anonymous user needs to be newly created according to the method for creating a new user, and the user useadd test/password test with the user name and password both set as test is set.
As a further improvement of the present invention, in step S4, a WEB server is built on a first industrial personal computer, including:
a2, installing software yum-y install httpd capable of providing Web functions;
b2 starting httpd service system restart httpd after installation
systemctl enable httpd;
C2, storing the web page written in advance in the default path: html/var/www/html/index.html;
d2, using the command line to input local firefox + ip to open, firefox 192.168.100.200 can access the constructed web page.
As a further improvement of the present invention, in step S4, a video server is built on a first industrial personal computer, including:
a3, downloading 800LiMediaServer, decompressing to any directory under non/usr/local after downloading;
b3, switching the directory into a folder where the install file is located in the terminal after the terminal is opened, and then executing install;
c3: the parameters are set according to the installation prompts,
setting the ip address or domain name of the local machine (local server): 192.168.100.100, respectively;
setting a background web management server port: 192.168.2.100, respectively;
setting an http streaming server port 8887;
set rtmp server port 8888;
setting rtmfp server port awrthe: 8889;
setting a background web management database port 8890;
8891;
setting an admin password admin of the web management system;
repeating;
setting a super administrator password admin of the web management system;
repeating;
not, the set port must not be blocked by the firewall;
d3: logging in the background to configure the video on demand.
As a further improvement of the present invention, in step S6, the router lan port to be tested is configured as 192.168.1.X network segment address, the WAN port is set as static access, the IP is 192.168.100.10, the gateway is 192.168.100.1, the subnet mask is 255.255.255.0, and the DNS is 192.168.100.1.
The invention has the beneficial effects that: by the scheme, when the integrated service is connected with multiple clients simultaneously, labor and time costs are effectively reduced, and the problems that the test time is too long and the speed measurement result is inaccurate due to complicated manual connection and unreliable factors of equipment terminals during the connection of the integrated service of the router are solved.
Drawings
Fig. 1 is a schematic diagram of a testing system for a router integrated service cable tape.
Detailed Description
The invention is further described with reference to the following description and embodiments in conjunction with the accompanying drawings.
A testing method for the wired tape machine of the router integrated service specifically comprises the following processes:
(1) building a test environment as shown in FIG. 1;
the utility model provides a wired tape machine of router integrated service volume test system, includes first industrial computer (PC 1) 1, second industrial computer (PC 2) 2, supports switch 6, the equipment under test, first computer (PC 3) 3 and second computer (PC 4) 4 that VLAN divided, the equipment under test is for supporting the router 5 of port mapping, first industrial computer 1 with the WAN port of router 5 is connected, second industrial computer 2 with port 1 of switch 6 is connected, port 2 of switch 6 with the LAN port of router 5 is connected, first computer 3, second computer 4 respectively through the net twine with the LAN port of router 5 is connected.
The port 1 and the port 2 of the switch 6 are respectively configured as Trunk ports and allow vlans 1-254 to pass through, the port 2 of the switch 6 is connected with the LAN1 port of the router 5, the first computer 3 is connected with the LAN2 port of the router 5 through a network cable, the second computer 4 is connected with the LAN3 port of the router 5 through a network cable, the LAN2 port of the router 5 is mapped to the LAN1 port, and the LAN3 port of the router 5 is mapped to the WAN port.
The first industrial personal computer 1 and the second industrial personal computer 2 are Linux system industrial personal computers, and the first computer 3 and the second computer 4 are both provided with a wireless bag grabbing tool (OmniPeerk) and a wired bag grabbing tool (Wireshark).
(2) On the linux system of the second industrial control machine 2. 254 virtual wireless interfaces are configured and used as clients;
virtual interface 1: ifConfig eth1: 0192.168.1.1 hw ether 00:11:00:00: 00:11:44 netmask 255.255.255.0 broadcast 192.168.1.255 up;
virtual interface 2: ifConfig eth1: 1192.168.1.2 hw ether 00:11:00:00: 00:11:44 netmask 255.255.255.0 broadcast 192.168.1.255 up;
……
the virtual interface 253 is ifconfig eth1: 252192.168.1.253 hw ether 00:11:00:00: 00:11:44 netmask 255.255.255.0 broadcast 192.168.1.255 up;
virtual interface 254: ifconfig eth1: 253192.168.1.254 hw ether 00:11:00:00: 00:11:44 netmask 255.255.255.0 broadcast 192.168.1.255 up.
(3) Sequentially adding VLANs to 254 virtual interfaces established on a second industrial personal computer 2;
virtual interface 1: vconfig add eth0: 11;
virtual interface 2: vconfig add eth0: 22;
……
virtual interface 253: vconfig add eth0: 1253;
virtual interface 254: vconfig add eth0: 1254.
(4) Building FTP server in first industrial personal computer 1
a. Checking whether there is an installation using the rpm-qa | grep vsftpd command;
b、yum -y install vsftpd;
c. after the installation is finished, starting an ftp command service vssftpd start;
d. there are three main configuration files for performing configuration ftp on vsftpd, which are located under/etc/vsftpd/directory and are respectively:
ftservers are used to specify those users cannot access the ftp server;
the default account that user _ list is used to indicate cannot access ftp by default;
conf vsftpd;
e, the anonymous user only needs to remove anon _ upload _ enable = YES in the configuration file;
andano _ mkdir _ write _ enable = YES, and step c needs to be executed again after the removal;
and f, accessing a non-anonymous user, wherein the service of the vsftpd is associated with a system user, so that a non-anonymous user needs to be newly created according to a method for creating a new user, and the user useadd test/password test with the user name and the password both being test is set.
(5) A WEB server is set up in a first industrial personal computer 1;
installing software yum-y install httpd capable of providing Web function;
b, starting the httpd service system restart httpd after the httpd service system is installed;
systemctl enable httpd;
c, storing the web page written in advance in a default path: html/var/www/html/index.html;
d, using the command line to input local firefox + ip to open, firefox 192.168.100.200 can access the built web page.
(6) A video server is set up in a first industrial personal computer 1;
a, downloading a free 800LiMediaServer, decompressing to an arbitrary directory under non/usr/local after the downloading is finished;
b, after the terminal is opened, switching the directory into a decompressed directory (into a folder where an install file is located) in the terminal and then executing the operation;
c: setting parameters according to the installation prompt;
setting the ip address or domain name of the local machine (local server): 192.168.100.100, respectively;
setting a background web management server port: 192.168.2.100, respectively;
setting an http streaming server port 8887;
set rtmp server port 8888;
setting rtmfp server port awrthe: 8889;
setting a background web management database port 8890;
8891;
setting an admin password admin of the web management system;
repeating;
setting a super administrator password admin of the web management system;
repeating;
not, the set port must not be blocked by the firewall;
d: logging in the background to configure the video on demand.
(7) Port 1 and port 2 of switch 6 are configured as Trunk ports, respectively, and allow vlans 1-254 to pass through.
(8) Configuring a router 5 to be tested, configuring a lan port of the router 5 to be tested as a 192.168.1.X network segment address, setting a WAN port as a static access, setting an IP as 192.168.100.10, setting a gateway as 192.168.100.1, setting a subnet mask as 255.255.255.0 and setting a DNS as 192.168.100.1.
(9) After the network cables are connected according to the topology, three terminal windows are opened on the second industrial personal computer 2, and the established FTP server, the WEB server and the video on demand server are respectively accessed by using 254 virtual clients.
(10) When a plurality of services access simultaneously, the flow condition in the system state in the router 5 and the ping packet delay size of the first computer 3 and the second computer 4 are checked to make result analysis.
The system and the method for testing the wired tape quantity of the router integrated service provided by the invention have the following advantages:
1. The method can simulate the simultaneous connection of multiple clients of the integrated service, and effectively reduce the labor and time cost.
2. The data message comes from real service access. The virtual client is established to simulate the data interaction process of FTP, TCP, HTTP and video playing in real time, and the simulation of the integrated service with machine volume is met.
3. The router can be attacked by multiple services by using the simulation client for a long time, and the problems of stagnation of memory cards such as traditional computers, intelligent furniture and cameras and slow system response are solved.
3. When the client end with the machine volume test in the real scene is avoided, hardware such as a PC (personal computer) and intelligent furniture needs to be updated in time according to the development of the technology, and the waste of resources is solved.
4. Through the simultaneous port mirroring, the messages of the LAN and the WAN can be monitored in real time. The real-time state of the equipment can be known through the analysis of the related messages.
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 (1)

1. A testing method for wired tape machine of router integrated service is characterized by comprising the following steps:
s1, building a router integrated service wired tape machine testing system, comprising a first industrial computer, a second industrial computer, a switch supporting VLAN division, a device to be tested, a first computer and a second computer, the equipment to be tested is a router supporting port mapping, the first industrial personal computer is connected with a WAN port of the router, the second industrial personal computer is connected with a port 1 of the switch, a port 2 of the switch is connected with a LAN1 port of the router, the first computer is connected with the LAN2 port of the router through a network cable, the second computer is connected with the LAN3 port of the router through a network cable, the LAN2 port of the router is mapped to a LAN1 port, the LAN3 port of the router is mapped to a WAN port, the first industrial personal computer and the second industrial personal computer are Linux system industrial personal computers, the first computer and the second computer are both provided with a wireless packet capturing tool and a wired packet capturing tool;
s2, configuring 254 virtual wireless interfaces on a Linux system of a second industrial personal computer, and using the virtual wireless interfaces as clients;
s3, sequentially adding VLANs for the 254 virtual wireless interfaces established on the second industrial personal computer;
s4, building an FTP server, a WEB server and a video on demand server on a first industrial personal computer;
s5, setting the port 1 and the port 2 of the switch as Trunk ports respectively, and allowing the VLANs 1-254 to pass through;
s6, configuring the router to be tested;
s7, opening three terminal windows on a second industrial personal computer, and respectively accessing the built FTP server, WEB server and video-on-demand server by using 254 virtual clients;
and S8, when a plurality of services are accessed simultaneously, checking the flow condition in the system state in the router and the time delay of the ping packet of the first computer and the second computer to analyze the result.
CN201910648627.0A 2019-07-18 2019-07-18 Method for testing wired tape machine of router integrated service Expired - Fee Related CN110290029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910648627.0A CN110290029B (en) 2019-07-18 2019-07-18 Method for testing wired tape machine of router integrated service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910648627.0A CN110290029B (en) 2019-07-18 2019-07-18 Method for testing wired tape machine of router integrated service

Publications (2)

Publication Number Publication Date
CN110290029A CN110290029A (en) 2019-09-27
CN110290029B true CN110290029B (en) 2021-02-23

Family

ID=68023301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910648627.0A Expired - Fee Related CN110290029B (en) 2019-07-18 2019-07-18 Method for testing wired tape machine of router integrated service

Country Status (1)

Country Link
CN (1) CN110290029B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111211944B (en) * 2020-01-07 2021-11-12 深圳市吉祥腾达科技有限公司 Router-WAN multi-dialing stability test system and test method
CN113064780B (en) * 2021-03-18 2022-08-30 深圳市吉祥腾达科技有限公司 Automatic test system and method based on router product
CN114553685B (en) * 2022-02-24 2024-04-05 东莞市锐易电子科技有限公司 Method for testing router broadband access

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869030A (en) * 2015-04-08 2015-08-26 太仓市同维电子有限公司 Access terminal product multiuser simulation test method
CN107579872A (en) * 2017-08-25 2018-01-12 上海斐讯数据通信技术有限公司 A kind of test envelope and its method of testing for realizing wireless router test
CN108449236A (en) * 2018-05-14 2018-08-24 四川斐讯信息技术有限公司 A kind of router feature test system
CN109358994A (en) * 2018-09-26 2019-02-19 深圳市吉祥腾达科技有限公司 A kind of router PPPOE server band machine weight testing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7032034B1 (en) * 2002-01-31 2006-04-18 Cisco Technology, Inc. Method and apparatus for simulating large scalable networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869030A (en) * 2015-04-08 2015-08-26 太仓市同维电子有限公司 Access terminal product multiuser simulation test method
CN107579872A (en) * 2017-08-25 2018-01-12 上海斐讯数据通信技术有限公司 A kind of test envelope and its method of testing for realizing wireless router test
CN108449236A (en) * 2018-05-14 2018-08-24 四川斐讯信息技术有限公司 A kind of router feature test system
CN109358994A (en) * 2018-09-26 2019-02-19 深圳市吉祥腾达科技有限公司 A kind of router PPPOE server band machine weight testing method

Also Published As

Publication number Publication date
CN110290029A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN110290029B (en) Method for testing wired tape machine of router integrated service
DE60125833T2 (en) Method and device for traversing a firewall
US11057269B2 (en) System and method for configuring IED process bus network switches from substation topology specification
US9146826B2 (en) Method and apparatus for scaling network simulation
CN105376077B (en) Processing method, the sending method of log, apparatus and system of network behavior information
US20070086449A1 (en) System and method for remote management
DE112017006210T5 (en) PROVIDING A NETWORK TEST TOOL IN A CLOUD COMPUTER SYSTEM
CN103970655A (en) Expect-based automatic server cluster testing method
CN107040429A (en) A kind of method of testing and system of port forwarding performance
DeCusatis et al. Modeling software defined networks using mininet
CN111224894A (en) A traffic collection and marking method and system for iOS devices
Altalebi et al. Optimization of elapsed time of automation for large-scale traditional networks and proposing new automation scripts
EP3510535A1 (en) Techniques for policy-controlled analytic data collection in large-scale systems
Loddo et al. Marionnet: a virtual network laboratory and simulation tool
CN103117880A (en) Web technology based network topological generation method
CN113904926A (en) Pre-boot execution environment checking method, system, terminal and storage medium
CN118802645A (en) Network detection task generation method, device, electronic device and readable storage medium
Cisco TrafficDirector Release 5.5.1 Installation and Release Notes for Windows NT and Solaris
CN104363143A (en) Port mapping test method of wireless router
EP1520432A1 (en) Determining a cause of a reduced performance of service in a communications network
TW202021321A (en) Measurement system and measurement method for virtual private network service quality
Dabkiewicz et al. OpenFlow network virtualization with FlowVisor
CN110855511A (en) Method, device and system for determining capacity of server, storage medium and processor
US12164415B2 (en) Remote debugging of local GUI rendering by playing back a capture file to recreate a real-time local network environment
CN109541976A (en) A kind of multi-environment tele-control system and its method based on relay

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

Granted publication date: 20210223