Movatterモバイル変換


[0]ホーム

URL:


CN114553685B - Method for testing router broadband access - Google Patents

Method for testing router broadband access
Download PDF

Info

Publication number
CN114553685B
CN114553685BCN202210176228.0ACN202210176228ACN114553685BCN 114553685 BCN114553685 BCN 114553685BCN 202210176228 ACN202210176228 ACN 202210176228ACN 114553685 BCN114553685 BCN 114553685B
Authority
CN
China
Prior art keywords
router
personal computer
industrial personal
test
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.)
Active
Application number
CN202210176228.0A
Other languages
Chinese (zh)
Other versions
CN114553685A (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.)
Dongguan Ruiyi Electronic Technology Co ltd
Original Assignee
Dongguan Ruiyi Electronic 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 Dongguan Ruiyi Electronic Technology Co ltdfiledCriticalDongguan Ruiyi Electronic Technology Co ltd
Priority to CN202210176228.0ApriorityCriticalpatent/CN114553685B/en
Publication of CN114553685ApublicationCriticalpatent/CN114553685A/en
Application grantedgrantedCritical
Publication of CN114553685BpublicationCriticalpatent/CN114553685B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention provides a method for testing router broadband access, which comprises the following steps: s1, a testing system is built, a first industrial personal computer, a second industrial personal computer and a testing PC are provided, wherein the first industrial personal computer is provided with a centOS system, is connected with a WAN port of a router to be tested through a network cable, serves as an upper server of the router to be tested, and provides access service for the router to be tested; the second industrial personal computer is provided with a centOS system, and is connected with the LAN port of the router to be tested through a network cable so as to serve as a user of the router to be tested; the test PC is connected with the LAN port of the router to be tested, the first industrial personal computer and the second industrial personal computer through network cables respectively and is used for installing an automatic test platform. The beneficial effects of the invention are as follows: the automatic test of the broadband access dial-up access function of the router is realized, the access environment of each operator is rapidly configured, the labor cost is saved, and the test efficiency is improved.

Description

Method for testing router broadband access
Technical Field
The invention relates to a router, in particular to a method for testing broadband access of a router.
Background
Broadband access refers to broadband access services provided by internet broadband providers, including broadband services provided by other broadband providers with vlan, and conventional test routers mainly perform manual testing, require repeated operations, and have low testing efficiency.
Therefore, how to implement the automatic test of the router broadband access is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a method for testing broadband access of a router.
The invention provides a method for testing router broadband access, which comprises the following steps:
s1, constructing a test system, providing a first industrial personal computer, a second industrial personal computer and a test PC, wherein,
the first industrial personal computer is provided with a centOS system, is connected with a WAN port of a router to be tested through a network cable, serves as an upper server of the router to be tested, and provides access service for the router to be tested;
the second industrial personal computer is provided with a centOS system, and is connected with the LAN port of the router to be tested through a network cable so as to serve as a user of the router to be tested;
the test PC is connected with the LAN port of the router to be tested, the first industrial personal computer and the second industrial personal computer through network cables respectively and is used for installing an automatic test platform;
s2, executing the following test cases by the test PC:
1) Initializing SSH to connect the first industrial personal computer and the second industrial personal computer;
2) Sending a command to call the shell script to generate a virtual network port for providing service;
3) Pulling up a service process on the virtual network port with the Vlan;
4) The WEB management page configuration router configuration access is accessed through the browser;
5) The following verification was performed:
a, whether the allocated address is normally acquired or not;
b, whether the interactive message carries Vlan Tags or not;
c if the message is not divided into Vlan, whether the message can still be accessed by dialing;
6) Closing the vlan;
7) And generating an execution record and a report after the execution is completed.
As a further improvement of the invention, the test PC is provided with a Python and a robot frame work automatic test platform.
As a further improvement of the invention, the first industrial personal computer installs the vconofig service, imports the shell script for configuring the vlan, gives the execution authority, and configures and closes the vlan of the service end through the shell script.
As a further improvement of the invention, the first industrial personal computer, the second industrial personal computer and the test PC are respectively connected with the switch through network cables.
The beneficial effects of the invention are as follows:
(1) Automatic test of dial-up access functions of router broadband access (ISP operators) is realized, access environments of the operators are rapidly configured, labor cost is saved, and test efficiency is improved;
(2) The function of the existing automatic test platform is expanded, the test coverage of the platform is widened, and the test process and the result are presented more intuitively.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other solutions may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a diagram of a test system of a method of testing broadband access of a router according to the present invention.
Fig. 2 is a flow chart of a method of testing router broadband access to open a vlan in accordance with the present invention.
Fig. 3 is a flow chart of a method of testing router broadband access to shut down a vlan in accordance with the present invention.
Fig. 4 is a flow chart of a method of testing router broadband access to configure a vlan-equipped service interface in accordance with the present invention.
Fig. 5 is a flowchart of a method of testing router broadband access to cancel a vlan-attached service interface in accordance with the present invention.
Detailed Description
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the drawings, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the scope of the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", etc. may explicitly or implicitly include one or more such feature. In the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art in a specific case.
The invention is further described with reference to the following description of the drawings and detailed description.
As shown in fig. 1 to 5, the present invention proposes a method for configuring a central os server interface (including vlan) to implement an automatic test method for configuring a server such as DHCP, PPPoE, L TP, PPTP, etc. with a vlan specified (or not).
The invention relates to the following technology:
(1) python language: the technology is mainly used for a robot frame work automatic test platform, a test library is called, and access environments of operators on the WAN side of the DUT are configured.
(2) Shell script: the technical configuration method is to write the shell script and call the shell script to realize the broadband service of the configuration server interface.
(3) Web UI automation test technique: the Web application test tool Selenium is used to control the router Web management interface.
(4) Platform SSH: the SSH is used to connect the centOS system and send the service configuration instruction.
(5) The centOS system uses: providing service and configuring network card.
The hardware device of the present invention, as shown in fig. 1, mainly comprises a first industrial personal computer 101, a second industrial personal computer 102, a test PC103, a switch 104 and a router to be tested (DUT for short) 105, wherein,
the first industrial personal computer 101 is provided with a centOS system, provides an access environment of a router WAN side, configures an interface Vlan of the centOS, and is provided with access environments of DHCP, PPPoE, L TP, PPTP and the like;
a second industrial personal computer 102, installed with a centOS system, serving as a router user, simulating the user's surfing the internet, etc.;
the test PC103 is configured to build an automation platform, install Python, deploy a robot framework automation test platform, and a related third party test library, and includes: selenium2Library, SSHLibrary test libraries, etc.
The invention provides a method for testing router broadband access, which comprises the following detailed procedures:
(1) Installed on the test PC is a windows system. In which python is installed, robot Framework automation is deployed to test open source Framework environments and related libraries (Selenium 2Library, SSHLibrary, etc.). The industrial personal computer installs the cents 7.8 and installs services (DHCP, PPPoE, DNS, etc. services, the function is to provide the router with dial-up access environment) to act as an upper server of the device under test, providing dial-up access environment. The device under test is connected according to fig. 1.
(2) The physical circuit is shown in fig. 1, and the network cable of the LAN side of the router to be tested is connected with a test PC; one network card on a first industrial personal computer for providing service for network cable connection of a router WAN side to be tested is connected with a network cable connection test PC of the other network card for SSH connection and sending a command to control starting and closing of service processes such as DHCP/PPPoE/DNS; the network cable connection of the router LAN side serves as a network card of a second industrial personal computer of the router user, and the network cable connection test PC of the other network card is used for SSH connection and sending commands, and performing operations such as ping domain name, connectivity check and the like.
(3) The first industrial personal computer installs the vcoonfig service, imports a shell script for configuring vlan and gives execution authority.
(4) And running an automation program on the test PC, and executing the test case. The program running flow is as follows:
(1) initializing SSH to connect the first industrial personal computer and the second industrial personal computer;
(2) sending a command to call a shell script to generate a virtual network port for providing services, such as: eth1.500 (500 here is vlan ID which serves the centOS server);
(3) pulling up a service process, such as a (DHCP/PPPoE/L2 TP/PPTP) server, on a virtual network port with a Vlan;
(4) the browser enters a WEB management page configuration router to configure access;
(5) and (3) verification:
a whether the allocated address is normally acquired (expected: yes);
b, whether the interactive message carries Vlan Tags (expected: yes);
c if the message does not divide the Vlan, whether the Vlan can still dial up access (expected: no);
(6) closing the vlan;
(7) execution completion generates an execution record and report.
The flow of the first industrial personal computer for turning on and off the service is shown in fig. 2 and 3, and the logic processing process is automatically executed.
The flow of configuring and canceling the service interface with vlan is shown in fig. 4 and 5, which is a shell script layer processing procedure.
The invention provides a method for testing broadband access of a router, which provides an environment configuration method for testing access of each operator of the router or vlan-attached, and can effectively improve testing efficiency and reduce labor cost.
The invention relates to the field of automatic testing, in particular to a method for testing router broadband access automatic configuration testing environment.
The foregoing is a further detailed description of the invention in connection with the preferred embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.

Claims (1)

CN202210176228.0A2022-02-242022-02-24Method for testing router broadband accessActiveCN114553685B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210176228.0ACN114553685B (en)2022-02-242022-02-24Method for testing router broadband access

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210176228.0ACN114553685B (en)2022-02-242022-02-24Method for testing router broadband access

Publications (2)

Publication NumberPublication Date
CN114553685A CN114553685A (en)2022-05-27
CN114553685Btrue CN114553685B (en)2024-04-05

Family

ID=81680392

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210176228.0AActiveCN114553685B (en)2022-02-242022-02-24Method for testing router broadband access

Country Status (1)

CountryLink
CN (1)CN114553685B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2017028574A1 (en)*2015-08-172017-02-23中兴通讯股份有限公司Router testing method and testing device
CN108449236A (en)*2018-05-142018-08-24四川斐讯信息技术有限公司A kind of router feature test system
CN109358994A (en)*2018-09-262019-02-19深圳市吉祥腾达科技有限公司A kind of router PPPOE server band machine weight testing method
CN110290029A (en)*2019-07-182019-09-27深圳市吉祥腾达科技有限公司A kind of router integrated service cross bars machine measures test system and method
CN112333019A (en)*2020-10-302021-02-05展讯半导体(成都)有限公司Router configuration and test method and system and readable storage medium
CN112860568A (en)*2021-03-042021-05-28北京睿芯高通量科技有限公司Multiple routing test method and system based on Selenium
CN112887168A (en)*2021-01-222021-06-01深圳市吉祥腾达科技有限公司Method for testing access performance of PPPoEV6 router
CN113064780A (en)*2021-03-182021-07-02深圳市吉祥腾达科技有限公司Automatic test system and method based on router product
CN113612658A (en)*2021-08-022021-11-05四川九州电子科技股份有限公司Broadband network equipment test system and test method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8515015B2 (en)*2008-05-092013-08-20Verizon Patent And Licensing Inc.Method and system for test automation and dynamic test environment configuration
US12231323B2 (en)*2020-01-312025-02-18United States Cellular CorporationAutomated multi-node network performance testing

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2017028574A1 (en)*2015-08-172017-02-23中兴通讯股份有限公司Router testing method and testing device
CN108449236A (en)*2018-05-142018-08-24四川斐讯信息技术有限公司A kind of router feature test system
CN109358994A (en)*2018-09-262019-02-19深圳市吉祥腾达科技有限公司A kind of router PPPOE server band machine weight testing method
CN110290029A (en)*2019-07-182019-09-27深圳市吉祥腾达科技有限公司A kind of router integrated service cross bars machine measures test system and method
CN112333019A (en)*2020-10-302021-02-05展讯半导体(成都)有限公司Router configuration and test method and system and readable storage medium
CN112887168A (en)*2021-01-222021-06-01深圳市吉祥腾达科技有限公司Method for testing access performance of PPPoEV6 router
CN112860568A (en)*2021-03-042021-05-28北京睿芯高通量科技有限公司Multiple routing test method and system based on Selenium
CN113064780A (en)*2021-03-182021-07-02深圳市吉祥腾达科技有限公司Automatic test system and method based on router product
CN113612658A (en)*2021-08-022021-11-05四川九州电子科技股份有限公司Broadband network equipment test system and test method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Cooperative Heterogeneous Mobile Wireless Mechatronic System;Nicola Bezzo等;IEEE/ASME Transactions on Mechatronics;20121002;全文*
路由器软件路由性能自动化测试技术研究;余思淼;;中国新通信;20160820(第16期);全文*

Also Published As

Publication numberPublication date
CN114553685A (en)2022-05-27

Similar Documents

PublicationPublication DateTitle
CN113064780B (en)Automatic test system and method based on router product
US7181360B1 (en)Methods and systems for generating test plans for communication devices
US11405302B1 (en)Methods, systems, and computer readable media for network testing using configurable test infrastructure
CN102546266B (en)Method and platform for diagnosing network failures
US10153957B2 (en)Fault diagnosis method, device, and fault diagnosis system
US20040078787A1 (en)System and method for troubleshooting, maintaining and repairing network devices
US20050176418A1 (en)Method and apparatus for automatic diagnosis and resolution of wireless network malfunctions
EP3382942A1 (en)Network service configuration method and network management device
CN102271053A (en)Automating network reconfiguration during migrations
CN110995764B (en)Mobile cellular network application layer data flow fuzzy test method, electronic equipment and storage medium
KR100634067B1 (en) Configuration of Base Station Transceiver System in Mobile Communication System
CN106776346A (en)The method of testing and device of CCMTS equipment
CN111404779A (en)Method, device and system for testing role switching of router nodes
CN114553685B (en)Method for testing router broadband access
CN110460474B (en)Method and device for configuring device functions, storage medium and electronic device
CN102143414A (en)Method for implementing network connection test between local-side device and terminal device in EPON (Ethernet passive optical network)
KR100821400B1 (en) System and method for programmatically switching network locations of network components
Nguyen et al.How to build complex, large-scale emulated networks
CN115037664B (en)Network connection testing method and device, repeater and storage medium
CN102929649A (en)Configuration system and method of PCS7 (Process Control System) software system
Gupron et al.Network Automation for CE Router with Route Leaking in MPLS-VPN Network
US8885636B2 (en)Method and system for platform-independent VoIP dial plan design, validation, and deployment
CN112636968B (en)Network scheme construction method, device, readable medium and equipment
EP2838232A1 (en)Method for configuring maximum transmission unit (mtu), terminal and usb data card
CN106972963A (en)Enabling for business module enables control method after control method, collapse are restarted

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
TA01Transfer of patent application right
TA01Transfer of patent application right

Effective date of registration:20240305

Address after:523000 No. 3, Gongye West 2nd Road, Songshanhu high tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after:Dongguan Ruiyi Electronic Technology Co.,Ltd.

Country or region after:Zhong Guo

Address before:6-8 / F, building E3, TCL hi tech park, 1001 Zhongshan Garden Road, Xili, Nanshan District, Shenzhen, Guangdong 518000

Applicant before:SHENZHEN TENDA TECHNOLOGY Co.,Ltd.

Country or region before:Zhong Guo

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp