CN114553685B - Method for testing router broadband access - Google Patents

Method for testing router broadband access Download PDF

Info

Publication number
CN114553685B
CN114553685B CN202210176228.0A CN202210176228A CN114553685B CN 114553685 B CN114553685 B CN 114553685B CN 202210176228 A CN202210176228 A CN 202210176228A CN 114553685 B CN114553685 B CN 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 ltd filed Critical Dongguan Ruiyi Electronic Technology Co ltd
Priority to CN202210176228.0A priority Critical patent/CN114553685B/en
Publication of CN114553685A publication Critical patent/CN114553685A/en
Application granted granted Critical
Publication of CN114553685B publication Critical patent/CN114553685B/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
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/0024Services and arrangements where telephone services are combined with data services
    • H04M7/003Click to dial services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer
    • H04M7/0081Network operation, administration, maintenance, or provisioning
    • H04M7/0084Network monitoring; Error detection; Error recovery; Network testing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Environmental & Geological Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

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)

1. A method for testing broadband access of a router, comprising the steps of:
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) The execution is completed, and an execution record and a report are generated;
the test PC is provided with a Python and a robot frame work automatic test platform;
the first industrial personal computer installs a vcoonfig service, imports a shell script for configuring a vlan, gives execution permission, and configures and closes the vlan of the service end through the shell script;
the first industrial personal computer, the second industrial personal computer and the test PC are respectively connected with the switch through network cables.
CN202210176228.0A 2022-02-24 2022-02-24 Method for testing router broadband access Active CN114553685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210176228.0A CN114553685B (en) 2022-02-24 2022-02-24 Method for testing router broadband access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210176228.0A CN114553685B (en) 2022-02-24 2022-02-24 Method for testing router broadband access

Publications (2)

Publication Number Publication Date
CN114553685A CN114553685A (en) 2022-05-27
CN114553685B true CN114553685B (en) 2024-04-05

Family

ID=81680392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210176228.0A Active CN114553685B (en) 2022-02-24 2022-02-24 Method for testing router broadband access

Country Status (1)

Country Link
CN (1) CN114553685B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017028574A1 (en) * 2015-08-17 2017-02-23 中兴通讯股份有限公司 Router testing method and testing device
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
CN110290029A (en) * 2019-07-18 2019-09-27 深圳市吉祥腾达科技有限公司 A kind of router integrated service cross bars machine measures test system and method
CN112333019A (en) * 2020-10-30 2021-02-05 展讯半导体(成都)有限公司 Router configuration and test method and system and readable storage medium
CN112860568A (en) * 2021-03-04 2021-05-28 北京睿芯高通量科技有限公司 Multiple routing test method and system based on Selenium
CN112887168A (en) * 2021-01-22 2021-06-01 深圳市吉祥腾达科技有限公司 Method for testing access performance of PPPoEV6 router
CN113064780A (en) * 2021-03-18 2021-07-02 深圳市吉祥腾达科技有限公司 Automatic test system and method based on router product
CN113612658A (en) * 2021-08-02 2021-11-05 四川九州电子科技股份有限公司 Broadband network equipment test system and test method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8515015B2 (en) * 2008-05-09 2013-08-20 Verizon Patent And Licensing Inc. Method and system for test automation and dynamic test environment configuration
US20210243104A1 (en) * 2020-01-31 2021-08-05 United States Cellular Corporation Automated multi-node network performance testing

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017028574A1 (en) * 2015-08-17 2017-02-23 中兴通讯股份有限公司 Router testing method and testing device
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
CN110290029A (en) * 2019-07-18 2019-09-27 深圳市吉祥腾达科技有限公司 A kind of router integrated service cross bars machine measures test system and method
CN112333019A (en) * 2020-10-30 2021-02-05 展讯半导体(成都)有限公司 Router configuration and test method and system and readable storage medium
CN112887168A (en) * 2021-01-22 2021-06-01 深圳市吉祥腾达科技有限公司 Method for testing access performance of PPPoEV6 router
CN112860568A (en) * 2021-03-04 2021-05-28 北京睿芯高通量科技有限公司 Multiple routing test method and system based on Selenium
CN113064780A (en) * 2021-03-18 2021-07-02 深圳市吉祥腾达科技有限公司 Automatic test system and method based on router product
CN113612658A (en) * 2021-08-02 2021-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 number Publication date
CN114553685A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
CN113064780B (en) Automatic test system and method based on router product
US10153957B2 (en) Fault diagnosis method, device, and fault diagnosis system
US20050176418A1 (en) Method and apparatus for automatic diagnosis and resolution of wireless network malfunctions
EP3382942A1 (en) Network service configuration method and network management device
CN102104504B (en) Platform and method for testing northbound interface
KR20100046171A (en) Electrical device configuration system and method
WO2018106304A1 (en) Deploying a networking test tool in a cloud computing system
US11405302B1 (en) Methods, systems, and computer readable media for network testing using configurable test infrastructure
US20150271130A1 (en) Systems and methods for provisioning, configuring, diagnosing, and maintaining out-of-band management of computing devices
CN112272177B (en) Method for deploying honey net trapping nodes in batches
CN110995764B (en) Mobile cellular network application layer data flow fuzzy test method, electronic equipment and storage medium
CN107040480A (en) A kind of method that network of computer room automatically switches
CN106776346A (en) The method of testing and device of CCMTS equipment
KR20010041214A (en) Configuration of a base station transceiver system in a mobile communication system
CN114553685B (en) Method for testing router broadband access
EP4057572A1 (en) Deploying a network management controller in an existing data center fabric
EP1639749A1 (en) System and method for programmatically changing the network location of a network component
CN104363143A (en) Port mapping test method of wireless router
US8885636B2 (en) Method and system for platform-independent VoIP dial plan design, validation, and deployment
Cisco Release Notes for the Catalyst 2900 XL and Catalyst 3500 XL Switches, Release 12.0(5.4)WC(1), August 28 2001
CN106972963A (en) Enabling for business module enables control method after control method, collapse are restarted
Gupron et al. Network Automation for CE Router with Route Leaking in MPLS-VPN Network
CN106789400B (en) Test method and test system for wireless extension function
CN111585804A (en) Router automatic configuration system, router automatic configuration method and automatic test system
CN112636968B (en) Network scheme construction method, device, readable medium and equipment

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
TA01 Transfer of patent application right
TA01 Transfer 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

GR01 Patent grant
GR01 Patent grant