WO2023142907A1 - 全光网络业务测试方法、装置、计算机设备和可读介质 - Google Patents

全光网络业务测试方法、装置、计算机设备和可读介质 Download PDF

Info

Publication number
WO2023142907A1
WO2023142907A1 PCT/CN2023/070161 CN2023070161W WO2023142907A1 WO 2023142907 A1 WO2023142907 A1 WO 2023142907A1 CN 2023070161 W CN2023070161 W CN 2023070161W WO 2023142907 A1 WO2023142907 A1 WO 2023142907A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
tested
terminal
address
terminals
Prior art date
Application number
PCT/CN2023/070161
Other languages
English (en)
French (fr)
Inventor
王丽艳
孙皆斌
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023142907A1 publication Critical patent/WO2023142907A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • 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/14Network analysis or design
    • 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/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • Embodiments of the present disclosure relate to the technical field of all-optical networks, and in particular to a method, device, computer equipment, and readable medium for all-optical network service testing.
  • FTTR Fiber to The Room
  • FTTR technology brings ubiquitous Gigabit network experience.
  • FTTR technology refers to the use of optical fiber as the transmission medium to connect Gigabit Internet to each room through optical communication equipment such as access gateways, optical splitters, and edge gateways (APs).
  • access gateways such as access gateways, optical splitters, and edge gateways (APs).
  • APs edge gateways
  • the FTTR technical solution is currently in the promotion and experimental stage.
  • mesh roaming and full-load test scenarios it will encounter environmental and cost problems that require a large number of connected terminals and manpower.
  • some manufacturers have proposed solutions to a certain extent, such as establishing a special mesh roaming laboratory and developing automated interfaces for mobile phones, etc., but they still need to use real terminals to implement testing, which has not completely solved the environmental and cost problems, and the testing cost is high. Inflexible and requires tester involvement.
  • Embodiments of the present disclosure provide an all-optical network service testing method, device, computer equipment, and readable medium.
  • an embodiment of the present disclosure provides a method for testing an all-optical network service, the method including:
  • using the second analog terminal to test the service to be tested according to the corresponding IP address includes:
  • the IP address of the simulated terminal sends the next service message to the access gateway until all service processes of the service to be tested are invoked, and the service to be tested is terminated.
  • the method further includes:
  • the method further includes:
  • there are at least two second analog terminals, and the use of the second analog terminals to obtain corresponding IP addresses from the access gateway according to the respective first feature information includes:
  • each second analog terminal is used to obtain a corresponding IP address from the access gateway according to its first characteristic information, or, according to a preset time interval, each second analog terminal is used to obtain a corresponding IP address from the access gateway according to its first characteristic information. Obtain the corresponding IP address;
  • the using the second analog terminal to test the service to be tested according to the corresponding IP address includes:
  • each of the second simulation terminals use each of the second simulation terminals to test the service to be tested according to the corresponding IP address, or use each of the second simulation terminals to test the service according to the corresponding IP address according to the preset time interval. Business to be tested.
  • the simulated generation of the service to be tested according to the acquired service configuration parameters includes:
  • the service to be tested includes at least one of the following:
  • Roaming services include roaming services for all terminals and roaming services for some terminals;
  • an embodiment of the present disclosure also provides an all-optical network service testing device, including a terminal creation module, an address acquisition module, and a service test module.
  • the terminal creation module is configured to create a first simulating a terminal, and determining a second simulating terminal to be tested, the first simulating terminal includes unique first characteristic information, and the second simulating terminal is at least one of the first simulating terminals;
  • the address obtaining module is configured to use the second analog terminal to obtain a corresponding IP address from the access gateway according to the respective first characteristic information;
  • the service testing module is configured to simulate and generate the service to be tested according to the obtained service configuration parameters, and use the second simulation terminal to test the service to be tested according to the corresponding IP address, wherein the service to be tested For the all-optical network business.
  • an embodiment of the present disclosure further provides a computer device, including: one or more processors; a storage device, on which one or more programs are stored; when the one or more programs are stored by the one or more When multiple processors execute, the one or multiple processors implement the above-mentioned all-optical network service testing method.
  • an embodiment of the present disclosure further provides a computer-readable medium on which a computer program is stored, wherein, when the program is executed, the above-mentioned all-optical network service testing method is implemented.
  • the first simulated terminal is created according to the obtained terminal configuration parameters, and the second simulated terminal to be tested is determined, and the first simulated terminal includes unique first feature information , the second simulated terminal is at least one of the first simulated terminals; using the second simulated terminal to obtain a corresponding IP address from the access gateway according to the respective first feature information; and generating the service to be tested according to the acquired service configuration parameters, And use the second analog terminal to test the service to be tested according to the corresponding IP address, wherein the service to be tested is an all-optical network service.
  • the embodiment of the present disclosure can simulate access terminals and terminal services inside the edge gateway without using real terminals to participate in the test, which can greatly save the test environment and connected terminals, and is conducive to automated testing, saving manpower, and has strong flexibility. It is widely applicable to Various all-optical network business scenarios greatly reduce test costs and improve test efficiency.
  • FIG. 1 is a schematic diagram of the system architecture of FTTR in the related art
  • FIG. 2 is a schematic diagram of a system architecture of an FTTR in an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of an all-optical network service testing method provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic flow diagram of testing the service to be tested provided by an embodiment of the present disclosure
  • FIG. 5 is a first structural schematic diagram of an all-optical network testing device (edge gateway) provided by an embodiment of the present disclosure
  • FIG. 6 is a second structural schematic diagram of an all-optical network testing device (edge gateway) provided by an embodiment of the present disclosure.
  • Embodiments described herein may be described with reference to plan views and/or cross-sectional views by way of idealized schematic illustrations of embodiments of the disclosure. Accordingly, the example illustrations may be modified according to manufacturing techniques and/or tolerances. Therefore, the embodiments are not limited to the ones shown in the drawings but include modifications of configurations formed based on manufacturing processes. Accordingly, the regions illustrated in the figures have schematic properties, and the shapes of the regions shown in the figures illustrate the specific shapes of the regions of the elements, but are not intended to be limiting.
  • the architecture of the FTTR application system is shown in Figure 1.
  • a Gigabit-Capable passive optical network (GPON) AP with Gigabit functions is used as an edge gateway, and several terminals (terminal 1, ..., terminal n) are attached to it. These terminals connect to the access gateway through the GPON AP to which they belong, and connect to the network equipment through the access gateway.
  • the all-optical network test environment is built according to the architecture shown in Figure 1, that is to say, when performing all-optical network service testing, it is necessary to implement the test with the help of real terminals connected to the GPON AP, thus bringing all-optical network services.
  • Network service testing requires a large number of test terminals and a low degree of automation.
  • an embodiment of the present disclosure provides an all-optical network service test solution, and the all-optical network service test solution builds a test environment according to the system architecture shown in FIG. 2 .
  • GPON AP is connected to the access gateway as an edge gateway, and is connected to the network device through the access gateway.
  • the real terminal is no longer connected, but the terminal and service functions are simulated by GPON AP, thereby reducing costs, manpower and the purchase and maintenance of a large number of special equipment.
  • the all-optical network service testing method is applied to the edge gateway, including the following steps:
  • Step S31 create a first simulated terminal according to the obtained terminal configuration parameters, and determine a second simulated terminal to be tested, the first simulated terminal includes unique first feature information, and the second simulated terminal is at least one of the first simulated terminals one.
  • the edge gateway obtains terminal configuration parameters through the upper-layer medium, which is a human-computer interaction interface, which may include page address, APP (Application, mobile phone software), etc.
  • the terminal configuration parameters include at least unique first characteristic information.
  • the first characteristic information may be a MAC (Media Access Control Address, Media Access Control Address) address of the terminal.
  • the terminal configuration parameters may also include second feature information and third feature information.
  • the second feature information and the third feature information may not be the feature information uniquely representing the identity of the simulated terminal.
  • the second feature information may be terminal type information.
  • It can be the operating system type of the terminal (such as iOS, Android, etc.), or the hardware type of the terminal (such as mobile phone, tablet computer, etc.), and the third feature information can be the manufacturer information of the terminal.
  • the edge gateway creates a first simulated terminal with first characteristic information according to the terminal configuration parameters, and selects one or more second simulated terminals from the first simulated terminals as simulated terminals participating in the test.
  • Step S32 using the second analog terminal to obtain a corresponding IP (Internet Protocol, Internet Protocol) address from the access gateway according to the respective first feature information.
  • IP Internet Protocol, Internet Protocol
  • the edge gateway uses the second simulated terminal to obtain a corresponding IP address from the access gateway according to the user's trigger instruction according to their respective first feature information, where the IP address is the second simulated terminal that the access gateway is participating in the test distributed.
  • the interaction process between the second simulated terminal and the access gateway is the same as the interaction process between the real terminal and the access gateway, and the second simulated terminal can completely replace the real terminal.
  • Step S33 generate the service to be tested by simulation according to the obtained service configuration parameters, and use the second simulation terminal to test the service to be tested according to the corresponding IP address, wherein the service to be tested is an all-optical network service.
  • the edge gateway obtains the service configuration parameters through the upper-layer medium.
  • the edge gateway simulates and generates the service to be tested according to the obtained service configuration parameters, and for each second simulated terminal, according to the IP address and the interface of the second simulated terminal Interact with the ingress gateway to test the service to be tested.
  • An embodiment of the present disclosure provides an all-optical network service testing method.
  • the method includes: creating a first simulated terminal according to acquired terminal configuration parameters, and determining a second simulated terminal to be tested.
  • the first simulated terminal includes a unique The first characteristic information
  • the second analog terminal is at least one of the first analog terminals; use the second analog terminal to obtain the corresponding IP address from the access gateway according to the respective first characteristic information; simulate and generate according to the obtained service configuration parameters the service to be tested, and use the second analog terminal to test the service to be tested according to the corresponding IP address, wherein the service to be tested is an all-optical network service.
  • the embodiment of the present disclosure can simulate access terminals and terminal services inside the edge gateway without using real terminals to participate in the test, which can greatly save the test environment and connected terminals, and is conducive to automated testing, saving manpower, and has strong flexibility. It is widely applicable to Various all-optical network business scenarios greatly reduce test costs and improve test efficiency.
  • the simulating and generating the service to be tested according to the obtained service configuration parameters includes: invoking a corresponding service process and a driving interface according to the obtained service configuration parameters, and simulating and generating the service to be tested.
  • the testing of the service to be tested according to the corresponding IP address by using the second simulated terminal includes the following steps:
  • Step S331 using the IP address of the second analog terminal to send a service request message to the access gateway.
  • the service process and the driver of the service to be tested call the packet sending module, send a service request message to the access gateway with the IP address of the second simulated terminal, and monitor whether it receives a response from the access gateway. business response message.
  • Step S332 in response to receiving the service response message sent by the access gateway within the preset time period and passing the correctness check of the service response message, according to the service process of the service to be tested, using the IP address of the second simulated terminal Send the next service message to the access gateway until all the service processes of the service to be tested are invoked, and the service to be tested is ended.
  • the service process and driver of the service to be tested will check the correctness of the received service response message. Verify, if the verification is passed, send subsequent service messages according to the business process of the service to be tested, and continue to monitor whether the service response message returned by the access gateway is received, and so on, until the service of the service to be tested All processes are called.
  • the service message may be a service request message or a service data message. If all the business processes of the service to be tested have been called, it means that the service to be tested has been executed. At this time, all the called business processes are terminated to end the service to be tested. Correspondingly, the status of the service to be tested is successful.
  • the content of the correctness check of the service response message is related to the service to be tested, and the content of the correctness check of the service response message is different for different services to be tested.
  • the all-optical network service testing method may also include the following steps :
  • Step S333 in response to not receiving the service response message sent by the access gateway within the preset time period or failing to pass the correctness check of the service response message, no longer calling the subsequent service process of the service to be tested, and terminating the service to be tested business.
  • step S332 after ending the test of the service to be tested (ie, step S332), or after terminating the test of the service to be tested (ie, step S333), the all-optical network service testing method
  • step S333 after terminating the test of the service to be tested (ie, step S333), the all-optical network service testing method
  • Step S334 recording the status of the service to be tested, wherein, in response to the end of the service to be tested and the correctness check of all service response messages of the service to be tested, the status of the service to be tested is recorded as success; Terminate, record the status of the service to be tested as failed.
  • the status of the service to be tested may also be returned to the upper medium, so as to display the status of the service to be tested.
  • step S32 there are at least two second analog terminals.
  • using the second analog terminals to obtain corresponding IP addresses from the access gateway according to their respective first feature information includes the following steps : At the same time, each second analog terminal is used to obtain the corresponding IP address from the access gateway according to the respective first characteristic information, or, according to the preset time interval, each second analog terminal is used to obtain the corresponding IP address from the access gateway according to the respective first characteristic information.
  • the gateway obtains the corresponding IP address. That is to say, each second analog terminal can obtain an IP address synchronously, or obtain an IP address in a time-sharing manner.
  • said utilizing the second analog terminal to test the service to be tested according to the corresponding IP address comprises the following steps: simultaneously utilizing each second analog terminal to test the service to be tested according to the corresponding IP address, or, according to the preset The preset time interval uses each second analog terminal to test the service to be tested according to the corresponding IP address. That is to say, the service test of the service to be tested for each second analog terminal can be performed synchronously or time-sharingly.
  • the service to be tested includes at least one of the following:
  • Roaming service wherein the roaming service includes the roaming service of all terminals and the roaming service of some terminals;
  • the access gateway is connected to 16 edge gateways, and one access gateway can assign a maximum of 253 IP addresses to the terminal. Therefore, the maximum number of second analog terminals in the full-load scenario is 237.
  • the service in the full-load scenario may be a roaming service, including the roaming service of all terminals and the roaming service of some terminals.
  • the roaming and full-load test of the FTTR system can be realized, which can save the cost of purchasing a large number of terminals and facilitate the development of automated scripts. For testing Efficiency has been greatly improved.
  • the embodiments of the present disclosure can completely replace the real test environment and test terminal equipment, greatly reduce the test cost, greatly improve the efficiency of mesh roaming test and full-load scene test in the FTTR system, and reduce the development cost.
  • the edge gateway sends various protocol service request messages of the second simulated terminal by invoking the relevant process of the service to be tested.
  • the service request message carries at least the unique first characteristic information of the second simulated terminal, and detects the received service response message.
  • the status of the service to be tested in the simulated terminal is displayed through the upper layer media, thereby simulating the function of the terminal; the edge gateway sends various services of the specific service of the simulated terminal by invoking the relevant processes and drivers of the service to be tested. Service messages, detect received service response messages and send subsequent messages to realize the function of simulating the service to be tested.
  • the embodiments of the present disclosure can be applied to the roaming service test in the FTTR system, by simulating n terminals in the edge gateway to verify whether the downlink terminal is connected normally, and using the edge gateway to simulate the terminal service to verify whether the service of each terminal is normally used.
  • Various roaming scenarios can be flexibly tested by exchanging n simulated terminals on different edge gateways (such as exchanging the MAC address information of the simulated terminals), and full-load scenarios can be flexibly tested by simulating 237 terminals and terminal services on the edge gateway.
  • the roaming service test under a non-full-load scenario and the roaming service test under a full-load scenario will be described in detail below in combination with two specific examples.
  • the MAC address of the terminal is used as the first characteristic information for description.
  • the specific example 1 is used to realize the roaming service test in the non-full load scenario.
  • the access gateway connected to 3 edge gateways (GPON AP) in the roaming scenario of the FTTR system as an example, the system architecture is shown in Figure 2.
  • GPON AP1 creates n second analog terminals (the MAC addresses of n second analog terminals are MAC1-MACn), and GPON AP2 creates n second analog terminals (the MAC addresses of n second analog terminals are MAC (n +1)-MAC2n), GPON AP3 creates n second analog terminals (the MAC addresses of n second analog terminals are MAC(2n+1)-MAC3n).
  • Each edge gateway triggers each second simulated terminal created by it to obtain an IP address (that is, the second simulated terminal corresponding to MAC1-MAC3n) from the access gateway at the same time or according to a specific time interval, so as to simulate a real terminal access process.
  • each edge gateway After the roaming service is simulated and generated according to the obtained service configuration parameters, each edge gateway triggers each second simulated terminal it creates to send a service request message to initiate a roaming service at the same time or at a specific time interval, and the roaming service of all second simulated terminals The status is all successful.
  • the MAC addresses of n second analog terminals connected to GPON AP1 are changed to MAC(n+1-MAC2n
  • the MAC addresses of n second simulated terminals connected to GPON AP2 are changed to MAC(2n+1)-MAC3n
  • the MAC addresses of n second analog terminals connected to GPON AP3 are changed to MAC1-MACn.
  • Each edge gateway triggers each second simulated terminal created by it to obtain an IP address (that is, the second simulated terminal corresponding to MAC1-MAC3n) from the access gateway at the same time or according to a specific time interval, so as to simulate a real terminal access process.
  • each edge gateway After the roaming service is simulated and generated according to the obtained service configuration parameters, each edge gateway triggers each second simulated terminal it creates to send a service request message to initiate a roaming service at the same time or at a specific time interval, and the roaming service of all second simulated terminals The status is all successful.
  • the second analog terminal roams on three GPON APs.
  • the MAC addresses of the n+5 second analog terminals connected to GPON AP1 are changed to MAC(n+1)-MAC2n and MAC(n-9)-MAC(n-5), and the n+5 connected to GPON AP2
  • the MAC addresses of the 5 second simulated terminals are changed to MAC(2n+1)-MAC3n and MAC(n-4)-MACn
  • the MAC addresses of the n+5 second simulated terminals connected to GPON AP3 are changed to MAC1-MAC (n-10).
  • Each edge gateway triggers each second simulated terminal created by it to obtain an IP address (that is, the second simulated terminal corresponding to MAC1-MAC3n) from the access gateway at the same time or according to a specific time interval, so as to simulate a real terminal access process.
  • each edge gateway After the roaming service is simulated and generated according to the obtained service configuration parameters, each edge gateway triggers each second simulated terminal it creates to send a service request message to initiate a roaming service at the same time or at a specific time interval, and the roaming service of all second simulated terminals The status is all successful.
  • the edge gateway can be flexibly increased or decreased, the number of all first simulated terminals and the number of second simulated terminals used for roaming service testing in each edge gateway The number can be flexibly increased or decreased, the access time of the second analog terminal and the service verification time can be flexibly configured, and flexible combination design can be carried out according to business scenarios.
  • Specific example 2 is used to realize the roaming service test under the full load scenario, taking the access gateway connected to 16 edge gateways (GPON AP) in the roaming scenario of the FTTR system as an example.
  • GPON AP edge gateways
  • the total number of second analog terminals is 237 when the system is fully loaded.
  • GPON AP1-GPON AP16 creates 237 second analog terminals (also 237 first analog terminals), and the MAC addresses of 237 second analog terminals are (MAC1-MAC237 ).
  • the 16 edge gateways trigger each second simulated terminal created by them to obtain an IP address from the access gateway at the same time or according to a specific time interval (that is, 237 second simulated terminals corresponding to MAC1-MAC237), thereby simulating the real terminal access process.
  • the 16 edge gateways After simulating and generating the service to be tested according to the obtained service configuration parameters, the 16 edge gateways trigger each second simulated terminal (that is, 237 second simulated terminals) created by it to send a service request message at the same time or at a specific time interval to initiate roaming Business, realize the real business verification process of simulating 237 terminals roaming.
  • each second simulated terminal that is, 237 second simulated terminals
  • the second analog terminal on GPON AP1 is swapped with the second analog terminal on GPON AP16 (that is, the MAC address is swapped), and the second analog terminal on GPON AP2 is swapped with the second analog terminal on GPON AP15 , and so on for other GPON APs.
  • the 16 edge gateways trigger each second simulated terminal created by them to obtain an IP address from the access gateway at the same time or according to a specific time interval (that is, 237 second simulated terminals corresponding to MAC1-MAC237), thereby simulating the real terminal access process.
  • the 16 edge gateways trigger each second simulated terminal (that is, 237 second simulated terminals) created by it to send a service request message at the same time or at a specific time interval to initiate the roaming service , to realize the real business verification process of simulating 237 terminals roaming.
  • the 16 edge gateways trigger each second simulated terminal created by them to obtain an IP address from the access gateway at the same time or according to a specific time interval (that is, 237 second simulated terminals corresponding to MAC1-MAC237), thereby simulating the real terminal access process.
  • the 16 edge gateways trigger each second simulated terminal (that is, 237 second simulated terminals) created by it to send a service request message at the same time or at a specific time interval to initiate the roaming service , to realize the real business verification process of simulating 237 terminals roaming.
  • the edge gateway can be flexibly increased or decreased.
  • the number of all first simulated terminals and the number of second simulated terminals used for roaming service testing in each edge gateway can be flexibly increased or decreased.
  • the second simulated The terminal access time and service verification time can be flexibly configured, and flexible combination design can be carried out according to business scenarios.
  • the embodiment of the present disclosure also provides an all-optical network testing device. As shown in FIG.
  • the terminal creation module 101 is configured to create a first simulated terminal according to the obtained terminal configuration parameters, and determine a second simulated terminal to be tested, the first simulated terminal includes unique first characteristic information, and the second simulated terminal is at least one of the first analog terminals.
  • the address obtaining module 102 is configured to use the second analog terminal to obtain a corresponding IP address from the access gateway according to the respective first characteristic information.
  • the service testing module 103 is configured to simulate and generate the service to be tested according to the obtained service configuration parameters, and use the second simulation terminal to test the service to be tested according to the corresponding IP address, wherein the service to be tested is All-optical network business.
  • the service testing module 103 is configured to use the IP address of the second simulated terminal to send a service request message to the access gateway; and pass the correctness check of the service response message, according to the service process of the service to be tested, use the IP address of the second analog terminal to send the next service to the access gateway message, until all the service processes of the service to be tested are invoked, and the service to be tested is terminated.
  • the service testing module 103 is further configured to respond to not receiving the service response message sent by the access gateway within the preset time period or checking the correctness of the service response message If it fails, the subsequent service process of the service to be tested will not be invoked, and the service to be tested will be terminated.
  • the all-optical network testing device also includes a state storage module 104, and the state storage module 104 is configured to end the service to be tested, or after terminating the service to be tested , recording the state of the service to be tested, wherein, in response to the end of the service to be tested and the correctness check of all service response messages of the service to be tested passing, record the state of the service to be tested as successful ; In response to the termination of the service to be tested, record the status of the service to be tested as failure.
  • the address obtaining module 102 is configured to simultaneously use each second analog terminal to obtain a corresponding IP address from the access gateway according to its first feature information, or, according to a preset The preset time intervals use each second analog terminal to obtain a corresponding IP address from the access gateway according to the respective first feature information. and / or,
  • the service testing module 103 is configured to use each of the second simulation terminals to test the service to be tested according to the corresponding IP address at the same time, or use each of the second simulation terminals according to the corresponding IP address according to the preset time interval.
  • the IP address tests the service to be tested.
  • the service testing module 103 is configured to invoke the corresponding service process and driver interface according to the acquired service configuration parameters, and simulate and generate the service to be tested.
  • the service to be tested includes at least one of the following:
  • Roaming services include roaming services for all terminals and roaming services for some terminals;
  • An embodiment of the present disclosure also provides a computer device, the computer device includes: one or more processors and a storage device; wherein, one or more programs are stored on the storage device, when the one or more programs are executed by the one or more When one or more processors are executed, the one or more processors implement the all-optical network service testing methods provided in the foregoing embodiments.
  • An embodiment of the present disclosure further provides a computer-readable medium on which a computer program is stored, wherein, when the computer program is executed, the all-optical network service testing method provided in the foregoing embodiments is implemented.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute.
  • Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit .
  • Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Abstract

本公开实施例提供一种全光网络业务测试方法,所述方法包括:根据获取到的终端配置参数创建第一模拟终端,并确定待测试的第二模拟终端,第一模拟终端包括唯一的第一特征信息,第二模拟终端为第一模拟终端中的至少一个;利用第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址;根据获取到的业务配置参数模拟生成待测试业务,并利用第二模拟终端根据相应的IP地址测试待测试业务,其中,待测试业务为全光网络业务。本公开实施例可以在边缘网关内部模拟接入终端及终端业务,利于自动化测试、节省人力,灵活性强,能够大幅减少测试成本且提高测试的效率。本公开实施例还提供一种全光网络业务测试装置、计算机设备和可读介质。

Description

全光网络业务测试方法、装置、计算机设备和可读介质 技术领域
本公开实施例涉及全光网络技术领域,具体涉及一种全光网络业务测试方法、装置、计算机设备和可读介质。
背景技术
家用网络经历了从宽带到FTTH(Fiber to The Home,光纤到户)再到FTTR(Fiber to The Room,全光网络)的迭代升级,FTTR技术为家庭、商场及小企业带来无处不在的千兆网络体验。FTTR技术是指以光纤作为传输媒介,通过接入网关、分光器、边缘网关(AP)等光通讯设备将千兆互联网接入到每个房间。在FTTR系统的测试中,mesh(无线网格网络)漫游测试及满载测试场景需要大量的下挂终端及人力。
FTTR技术方案目前处于推广及实验局阶段,在FTTR系统mesh漫游及满载测试场景中都会遇到要求大量下挂终端及人力的环境及成本问题。目前,有些厂家提出一定程度的解决方案,如建立专门的mesh漫游实验室及开发手机的自动化接口等,但是仍然需要借助真实的终端实现测试,并没有完全解决环境及成本问题,测试成本高,灵活性差,且需要测试人员的参与。
发明内容
本公开实施例提供一种全光网络业务测试方法、装置、计算机设备和可读介质。
第一方面,本公开实施例提供一种全光网络业务测试方法,所述方法包括:
根据获取到的终端配置参数创建第一模拟终端,并确定待测试的第二模拟终端,所述第一模拟终端包括唯一的第一特征信息,所述第二模拟终端为所述第一模拟终端中的至少一个;
利用所述第二模拟终端根据各自的所述第一特征信息向接入网关获取相应的IP地址;
根据获取到的业务配置参数模拟生成待测试业务,并利用所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,其中,所述待测试业务为全光网络业务。
在一些实施例中,所述利用所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,包括:
利用所述第二模拟终端的IP地址向所述接入网关发送业务请求报文;
响应于在预设时长内接收到所述接入网关发送的业务应答报文且对所述业务应答报文的正确性校验通过,根据所述待测试业务的业务进程,利用所述第二模拟终端的IP地址向所述接入网关发送下一个业务报文,直至所述待测试业务的业务进程全部调用,结束所述待测试业务。
在一些实施例中,在所述利用所述第二模拟终端的IP地址向所述接入网关发送业务请求报文之后,所述方法还包括:
响应于在所述预设时长内未接收到所述接入网关发送的业务应答报文或者对所述业务应答报文的正确性校验未通过,不再调用所述待测试业务的后续业务进程。
在一些实施例中,在结束所述待测试业务之后,或者,在终止所述待测试业务之后,所述方法还包括:
记录所述待测试业务的状态,其中,响应于所述待测试业务结束且所述待测试业务所有的业务应答报文的正确性校验均通过,记录所述待测试业务的状态为成功;响应于所述待测试业务终止,记录所述待测试业务的状态为失败。
在一些实施例中,所述第二模拟终端为至少两个,所述利用所述第二模拟终端根据各自的所述第一特征信息向接入网关获取相应的IP地址,包括:
同时利用各第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址,或者,按照预设的时间间隔分别利用各第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址;
所述利用所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,包括:
同时利用各所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,或者,按照预设的时间间隔分别利用各所述第二模拟终端根据相应的所述IP地址测试所述待测试业务。
在一些实施例中,所述根据获取到的业务配置参数模拟生成待测试业务,包括:
根据获取到的业务配置参数调用相应的业务进程及驱动接口,模拟生成待测试业务。
在一些实施例中,所述待测试业务包括以下至少之一:
漫游业务,所述漫游业务包括全部终端的漫游业务和部分终端的漫游业务;
满载场景下的业务。
又一方面,本公开实施例还提供一种全光网络业务测试装置,包括终端创建模块、地址获取模块和业务测试模块,所述终端创建模块设置为,根据获取到的终端配置参数创建第一模拟终端,并确定待测试的第二模拟终端,所述第一模拟终端包括唯一的第一特征信息,所述第二模拟终端为所述第一模拟终端中的至少一个;
所述地址获取模块设置为,利用所述第二模拟终端根据各自的所述第一特征信息向接入网关获取相应的IP地址;
所述业务测试模块设置为,根据获取到的业务配置参数模拟生成待测试业务,并利用所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,其中,所述待测试业务为全光网络业务。
又一方面,本公开实施例还提供一种计算机设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如前所述的全光网络业务测试方法。
又一方面,本公开实施例还提供一种计算机可读介质,其上存储有计算机程序,其中,所述程序被执行时实现如前所述的全光网络业务测试方法。
在本公开上述实施例提供的全光网络业务测试方法中,根据获取到的终端配置参数创建第一模拟终端,并确定待测试的第二模拟终端,第一模拟终端包括唯一的第一特征信息,第二模拟终端为第一模拟终端中的至少一个;利用第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址;根据获取到的业务配置参数模拟生成待测试业务,并利用第二模拟终端根据相应的IP地址测试待测试业务,其中,待测试业务为全光网络业务。本公开实施例可以在边缘网关内部模拟接入终端及终端业务,无需借助真实的终端参与测试,能够大量节省测试环境及下挂终端,且利于自动化测试、节省人力,灵活性强,广泛适用于各种全光 网络业务场景,大幅减少测试成本且提高测试的效率。
附图说明
图1为相关技术中FTTR的系统架构示意图;
图2为本公开实施例的FTTR的系统架构示意图;
图3为本公开实施例提供的全光网络业务测试方法的流程示意图;
图4为本公开实施例提供的测试所述待测试业务的流程示意图;
图5为本公开实施例提供的全光网络测试装置(边缘网关)的结构示意图一;
图6为本公开实施例提供的全光网络测试装置(边缘网关)的结构示意图二。
具体实施方式
在下文中将参考附图更充分地描述示例实施例,但是所述示例实施例可以以不同形式来体现且不应当被解释为限于本文阐述的实施例。反之,提供这些实施例的目的在于使本公开实施例透彻和完整,并将使本领域技术人员充分理解本公开实施例的范围。
如本文所使用的,术语“和/或”包括一个或多个相关列举条目的任何和所有组合。
本文所使用的术语仅用于描述特定实施例,且不意欲限制本公开实施例。如本文所使用的,单数形式“一个”和“该”也意欲包括复数形式,除非上下文另外清楚指出。还将理解的是,当本说明书中使用术语“包括”和/或“由……制成”时,指定存在所述特征、整体、步骤、操作、元件和/或组件,但不排除存在或添加一个或多个其他特征、整体、步骤、操作、元件、组件和/或其群组。
本文所述实施例可借助本公开实施例的理想示意图而参考平面图和/或截面图进行描述。因此,可根据制造技术和/或容限来修改示例图示。因此,实施例不限于附图中所示的实施例,而是包括基于制造工艺而形成的配置的修改。因此,附图中例示的区具有示意性属性,并且图中所示区的形状例示了元件的区的具体形状,但并不旨在是限制性的。
除非另外限定,否则本文所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本公开实施例的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本文明确如此限定。
FTTR应用系统架构如图1所示,具有千兆位功能的无源光网络(Gigabit-Capable passive optical network,GPON)AP作为边缘网关,其下挂若干终端(终端1、…、终端n),这些终端通过所属的GPON AP连接接入网关,并通过接入网关与网络设备连接。在相关技术中,全光网络测试环境按照图1所示的架构搭建,也就是说,在进行全光网络业务测试时,需要借助GPON AP下挂的真实终端实现测试,由此带来全光网络业务测试中要求测试终端数量多、自动化程度低的问题。
为解决上述问题,本公开实施例提供一种全光网络业务测试方案,该全光网络业务测试方案按照图2所示的系统架构搭建测试环境。如图2所示,GPON AP作为边缘网关连接接入网关,并通过接入网关与网络设备连接。在全光网络业务测试环境中,不再连接真实的终端,而是由GPON AP模拟终端及业务功能,从而降低成本,节省人力以及大量专用设备的采购和维护。
以下结合图2、3对本公开实施例的全光网络业务测试方法进行说明。如图3所示,所述全光网络业务测试方法应用于边缘网关,包括以下步骤:
步骤S31,根据获取到的终端配置参数创建第一模拟终端,并确定待测试的第二模拟终端,第一模拟终端包括唯一的第一特征信息,第二模拟终端为第一模拟终端中的至少一个。
边缘网关通过上层媒介获取终端配置参数,上层媒介为人机交互接口,可以包括页面地址、APP(Application,手机软件)等。终端配置参数至少包括唯一的第一特征信息,示例性的,第一特征信息可以为终端的MAC(Media Access Control Address,媒体存取控制位址)地址。终端配置参数还可以包括第二特征信息和第三特征信息,第二特征信息和第三特征信息可以不是唯一表示模拟终端身份的特征信息,第二特征信息可以为终端类型信息,示例性的,可以为终端的操作系统类型(如iOS、安卓等),也可以为终端的硬件类型(如手机、平板电脑等),第三特征信息可以为终端的厂商信息。
在本步骤中,边缘网关根据终端配置参数创建具有第一特征信息的第一模拟终端,并从第一模拟终端中选择一个或多个第二模拟终端作为参与测试的模拟终端。
步骤S32,利用第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP(Internet Protocol,互联网协议)地址。
在本步骤中,边缘网关根据用户的触发指令,利用第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址,其中IP地址是接入网关为参与测试的第二模拟终端分配的。需要说明的是,第二模拟终端和接入网关的交互过程与真实的终端与接入网关交互过程相同,第二模拟终端可以完全代替真实的终端。
步骤S33,根据获取到的业务配置参数模拟生成待测试业务,并利用第二模拟终端根据相应的IP地址测试待测试业务,其中,待测试业务为全光网络业务。
边缘网关通过上层媒介获取业务配置参数,在本步骤中,边缘网关根据获取到的业务配置参数模拟生成待测试业务,并针对每个第二模拟终端,根据该第二模拟终端的IP地址与接入网关交互,以测试待测试业务。
本公开实施例提供了一种全光网络业务测试方法,所述方法包括:根据获取到的终端配置参数创建第一模拟终端,并确定待测试的第二模拟终端,第一模拟终端包括唯一的第一特征信息,第二模拟终端为第一模拟终端中的至少一个;利用第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址;根据获取到的业务配置参数模拟生成待测试业务,并利用第二模拟终端根据相应的IP地址测试待测试业务,其中,待测试业务为全光网络业务。本公开实施例可以在边缘网关内部模拟接入终端及终端业务,无需借助真实的终端参与测试,能够大量节省测试环境及下挂终端,且利于自动化测试、节省人力,灵活性强,广泛适用于各种全光网络业务场景,大幅减少测试成本且提高测试的效率。
在一些实施例中,所述根据获取到的业务配置参数模拟生成待测试业务,包括:根据获取到的业务配置参数调用相应的业务进程及驱动接口,模拟生成待测试业务。
在一些实施例中,如图4所示,所述利用第二模拟终端根据相应的IP地址测试待测试业务(即步骤S33),包括以下步骤:
步骤S331,利用第二模拟终端的IP地址向接入网关发送业务请求报文。
在本步骤中,在边缘网关的底层,待测试业务的业务进程及驱动调用发包模块,以第二模拟终端的IP地址向接入网关发送业务请求报文,并监控是否收到接入网关返回的业务应答 报文。
步骤S332,响应于在预设时长内接收到接入网关发送的业务应答报文且对业务应答报文的正确性校验通过,根据待测试业务的业务进程,利用第二模拟终端的IP地址向接入网关发送下一个业务报文,直至待测试业务的业务进程全部调用,结束待测试业务。
在本步骤中,如果边缘网关底层的收包模块在预设时长内接收到接入网关发送的业务应答报文,则待测试业务的业务进程及驱动对接收到的业务应答报文进行正确性校验,若校验通过,则根据待测试业务的业务进程进行后续业务报文的发送,并继续监控是否收到接入网关返回的业务应答报文,以此类推,直至待测试业务的业务进程全部调用。需要说明的是,根据不同的业务场景,业务报文可以是业务请求报文或者业务数据报文。若待测试业务的全部业务进程全部调用完成,说明待测试业务已经执行完成,此时结束所有调用的业务进程以结束待测试业务,相应的,待测试业务的状态为成功。
需要说明的是,业务应答报文的正确性校验的内容与待测试业务相关,不同的待测试业务其业务应答报文正确性校验的内容不同。
在一些实施例中,如图4所示,在利用第二模拟终端的IP地址向接入网关发送业务请求报文(即步骤S331)之后,所述全光网络业务测试方法还可以包括以下步骤:
步骤S333,响应于在预设时长内未接收到接入网关发送的业务应答报文或者对业务应答报文的正确性校验未通过,不再调用待测试业务的后续业务进程,终止待测试业务。
在本步骤中,若超时未收到接入网关发送的业务应答报文,或者,对业务应答报文的正确性校验未通过,说明待测试业务异常,则终止对待测试业务的测试,相应的,待测试业务的状态为失败。
在一些实施例中,如图4所示,在结束待测试业务的测试(即步骤S332)之后,或者,在终止待测试业务的测试(即步骤S333)之后,所述全光网络业务测试方法还可以包括以下步骤:
步骤S334,记录待测试业务的状态,其中,响应于待测试业务结束且待测试业务所有的业务应答报文的正确性校验均通过,记录待测试业务的状态为成功;响应于待测试业务终止,记录待测试业务的状态为失败。
需要说明的是,在记录待测试业务的状态之后,还可以向上层媒介返回待测试业务的状态,以便显示待测试业务的状态。
在一些实施例中,第二模拟终端为至少两个,相应的,所述利用第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址(即步骤S32),包括以下步骤:同时利用各第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址,或者,按照预设的时间间隔分别利用各第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址。也就是说,各个第二模拟终端可以同步获取IP地址,也可以分时获取IP地址。
相应的,所述利用第二模拟终端根据相应的IP地址测试待测试业务(即步骤S33),包括以下步骤:同时利用各第二模拟终端根据相应的IP地址测试待测试业务,或者,按照预设的时间间隔分别利用各第二模拟终端根据相应的IP地址测试待测试业务。也就是说,各个第二模拟终端的待测业务的业务测试可以同步进行,也可以分时进行。
在一些实施例中,所述待测试业务包括以下至少之一:
漫游业务,其中,漫游业务包括全部终端的漫游业务和部分终端的漫游业务;
满载场景下的业务。
在FTTR系统满载场景下,接入网关连接16个边缘网关,一个接入网关最多能够为终端分配253个IP地址,因此,满载场景下第二模拟终端的最大数量为237个。在本公开实施例中,满载场景下的业务可以是漫游业务,包括全部终端的漫游业务和部分终端的漫游业务。
本公开实施例通过在边缘网关内模拟用于进行业务测试的第二模拟终端及待测试业务,实现FTTR系统的漫游及满载测试,能够节省大量购买终端的成本,方便自动化脚本的开发,对于测试效率有大幅度的提升。本公开实施例能够完全代替真实的测试环境及测试终端设备,大幅降低测试成本,以及大幅提升FTTR系统中mesh漫游测试和满载场景测试效率,降低开发成本。
本公开实施例通过在边缘网关内模拟第二模拟终端及待测试业务,不需要对边缘网关进行硬件改造,通过软件即可实现。边缘网关通过调用待测试业务的相关进程来发送第二模拟终端的各种协议业务请求报文,业务请求报文中至少携带第二模拟终端唯一的第一特征信息,检测接收到的业务应答报文并进行后续业务报文的发送,最后通过上层媒介显示模拟终端的待测试业务的状态,从而模拟终端的功能;边缘网关通过调用待测试业务的相关进程及驱动发送模拟终端特定业务的各种业务报文,检测接收到的业务应答报文并进行后续报文的发送,来实现模拟待测试业务的功能。
本公开实施例能够应用于FTTR系统中漫游业务测试,通过在边缘网关内模拟n个终端来验证下挂终端是否正常接入,利用边缘网关模拟终端业务验证每个终端的业务是否正常使用。通过在不同的边缘网关上调换n个模拟终端(如调换模拟终端的MAC地址信息)可以灵活测试各种漫游场景,以及,通过在边缘网关上模拟237个终端及终端业务可以灵活测试满载场景。
为清楚说明本公开实施例的技术方案,以下结合两个具体实例分别针对非满载场景下的漫游业务测试和满载场景下的漫游业务测试进行详细说明。在两个具体实例中,以终端的MAC地址作为第一特征信息进行说明。
具体实例一
具体实例一用于实现非满载场景下的漫游业务测试,以FTTR系统漫游场景下接入网关连接3个边缘网关(GPON AP)为例,其系统架构如图2所示。
1、GPON AP1创建n个第二模拟终端(n个第二模拟终端的MAC地址为MAC1-MACn),GPON AP2创建n个第二模拟终端(n个第二模拟终端的MAC地址为MAC(n+1)-MAC2n),GPON AP3创建n个第二模拟终端(n个第二模拟终端的MAC地址为MAC(2n+1)-MAC3n)。
每个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端向接入网关获取IP地址(即MAC1-MAC3n对应的第二模拟终端),实现模拟真实的终端接入过程。
根据获取到的业务配置参数模拟生成漫游业务后,每个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端发送业务请求报文以发起漫游业务,所有第二模拟终端的漫游业务的状态均为成功。
2、模拟所有第二模拟终端在3个GPON AP上进行漫游。其中,GPON AP1下挂的n个第二模拟终端的MAC地址变更为MAC(n+1-MAC2n,GPON AP2下挂的n个第二模拟终端的MAC地址变更为MAC(2n+1)-MAC3n,GPON AP3下挂的n个第二模拟终端的MAC地址变更为MAC1-MACn。
每个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端向接入网关获取 IP地址(即MAC1-MAC3n对应的第二模拟终端),实现模拟真实的终端接入过程。
根据获取到的业务配置参数模拟生成漫游业务后,每个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端发送业务请求报文以发起漫游业务,所有第二模拟终端的漫游业务的状态均为成功。
3、模拟部分第二模拟终端在3个GPON AP上进行漫游。其中,GPON AP1下挂的n+5个第二模拟终端的MAC地址变更为MAC(n+1)-MAC2n和MAC(n-9)-MAC(n-5),GPON AP2下挂的n+5个第二模拟终端的MAC地址变更为MAC(2n+1)-MAC3n和MAC(n-4)-MACn,GPON AP3下挂的n+5个第二模拟终端的MAC地址变更为MAC1-MAC(n-10)。
每个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端向接入网关获取IP地址(即MAC1-MAC3n对应的第二模拟终端),实现模拟真实的终端接入过程。
根据获取到的业务配置参数模拟生成漫游业务后,每个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端发送业务请求报文以发起漫游业务,所有第二模拟终端的漫游业务的状态均为成功。
根据测试的漫游场景(全部终端漫游或部分终端漫游)不同,边缘网关可以进行灵活增减,所有的第一模拟终端的数量和每个边缘网关内用于进行漫游业务测试的第二模拟终端的数量可以灵活增减,第二模拟终端的接入时间以及业务验证的时间可以灵活配置,可以根据业务场景进行灵活的组合设计。
具体实例二
具体实例二用于实现满载场景下的漫游业务测试,以FTTR系统漫游场景下接入网关连接16个边缘网关(GPON AP)为例。
1、第二模拟终端总数为系统满载的237个,GPON AP1-GPON AP16创建237个第二模拟终端(也是237个第一模拟终端),237个第二模拟终端的MAC地址为(MAC1-MAC237)。
16个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端向接入网关获取IP地址(即MAC1-MAC237对应的237个第二模拟终端),实现模拟真实的终端接入过程。
根据获取到的业务配置参数模拟生成待测试业务后,16个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端(即237个第二模拟终端)发送业务请求报文以发起漫游业务,实现模拟237个终端漫游真实的业务验证过程。
2、模拟全部第二模拟终端(即273个第二模拟终端)在16个GPON AP上进行漫游。其中,GPON AP1上的第二模拟终端与GPON AP16上的第二模拟终端进行对换(即MAC地址对换),GPON AP2上的第二模拟终端与GPON AP15上的第二模拟终端进行对换,其他GPON AP以此类推。
16个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端向接入网关获取IP地址(即MAC1-MAC237对应的237个第二模拟终端),实现模拟真实的终端接入过程。
根据获取到的业务配置参数模拟生成漫游业务后,16个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端(即237个第二模拟终端)发送业务请求报文以发起漫游业务,实现模拟237个终端漫游真实的业务验证过程。
3、在16个GPON AP上创建新的237个第二模拟终端,其中GPON AP1-GPON AP13各重新创建16个第二模拟终端,GPON AP14-GPON AP16各重新创建15个第二模拟终端(新的237个第二模拟终端的MAC地址为MAC238-MAC474)。
16个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端向接入网关获取IP地址(即MAC1-MAC237对应的237个第二模拟终端),实现模拟真实的终端接入过程。
根据获取到的业务配置参数模拟生成漫游业务后,16个边缘网关同时或者按照特定时间间隔触发其创建的各第二模拟终端(即237个第二模拟终端)发送业务请求报文以发起漫游业务,实现模拟237个终端漫游真实的业务验证过程。
根据测试的满载场景不同,边缘网关可以进行灵活增减,所有的第一模拟终端的数量和每个边缘网关内用于进行漫游业务测试的第二模拟终端的数量可以灵活增减,第二模拟终端的接入时间以及业务验证的时间可以灵活配置,可以根据业务场景进行灵活的组合设计。
基于相同的技术构思,本公开实施例还提供一种全光网络测试装置,如图5所示,所述全光网络测试装置包括终端创建模块101、地址获取模块102和业务测试模块103。
终端创建模块101,设置为根据获取到的终端配置参数创建第一模拟终端,并确定待测试的第二模拟终端,所述第一模拟终端包括唯一的第一特征信息,所述第二模拟终端为所述第一模拟终端中的至少一个。
地址获取模块102,设置为利用所述第二模拟终端根据各自的所述第一特征信息向接入网关获取相应的IP地址。
业务测试模块103,设置为根据获取到的业务配置参数模拟生成待测试业务,并利用所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,其中,所述待测试业务为全光网络业务。
在一些实施例中,业务测试模块103,设置为利用所述第二模拟终端的IP地址向所述接入网关发送业务请求报文;响应于在预设时长内接收到所述接入网关发送的业务应答报文且对所述业务应答报文的正确性校验通过,根据所述待测试业务的业务进程,利用所述第二模拟终端的IP地址向所述接入网关发送下一个业务报文,直至所述待测试业务的业务进程全部调用,结束所述待测试业务。
在一些实施例中,业务测试模块103,还设置为响应于在所述预设时长内未接收到所述接入网关发送的业务应答报文或者对所述业务应答报文的正确性校验未通过,不再调用所述待测试业务的后续业务进程,终止所述待测试业务。
在一些实施例中,如图6所示,全光网络测试装置还包括状态存储模块104,状态存储模块104,设置为在结束所述待测试业务之后,或者,在终止所述待测试业务之后,记录所述待测试业务的状态,其中,响应于所述待测试业务结束且所述待测试业务所有的业务应答报文的正确性校验均通过,记录所述待测试业务的状态为成功;响应于所述待测试业务终止,记录所述待测试业务的状态为失败。
在一些实施例中,第二模拟终端为至少两个,地址获取模块102,设置为同时利用各第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址,或者,按照预设的时间间隔分别利用各第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址。和/或,
业务测试模块103,设置为同时利用各所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,或者,按照预设的时间间隔分别利用各所述第二模拟终端根据相应的所述IP地址测试所述待测试业务。
在一些实施例中,业务测试模块103,设置为根据获取到的业务配置参数调用相应的业务进程及驱动接口,模拟生成待测试业务。
在一些实施例中,所述待测试业务包括以下至少之一:
漫游业务,所述漫游业务包括全部终端的漫游业务和部分终端的漫游业务;
满载场景下的业务。
本公开实施例还提供了一种计算机设备,该计算机设备包括:一个或多个处理器以及存储装置;其中,存储装置上存储有一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器实现如前述各实施例所提供的全光网络业务测试方法。
本公开实施例还提供了一种计算机可读介质,其上存储有计算机程序,其中,该计算机程序被执行时实现如前述各实施例所提供的全光网络业务测试方法。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
本文已经公开了示例实施例,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出,否则可单独使用与特定实施例相结合描述的特征、特性和/或元素,或可与其他实施例相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本公开实施例的范围的情况下,可进行各种形式和细节上的改变。

Claims (10)

  1. 一种全光网络业务测试方法,包括:
    根据获取到的终端配置参数创建第一模拟终端,并确定待测试的第二模拟终端,所述第一模拟终端包括唯一的第一特征信息,所述第二模拟终端为所述第一模拟终端中的至少一个;
    利用所述第二模拟终端根据各自的所述第一特征信息向接入网关获取相应的互联网协议IP地址;
    根据获取到的业务配置参数模拟生成待测试业务,并利用所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,其中,所述待测试业务为全光网络业务。
  2. 如权利要求1所述的方法,其中,所述利用所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,包括:
    利用所述第二模拟终端的IP地址向所述接入网关发送业务请求报文;
    响应于在预设时长内接收到所述接入网关发送的业务应答报文且对所述业务应答报文的正确性校验通过,根据所述待测试业务的业务进程,利用所述第二模拟终端的IP地址向所述接入网关发送下一个业务报文,直至所述待测试业务的业务进程全部调用,结束所述待测试业务。
  3. 如权利要求2所述的方法,其中,在所述利用所述第二模拟终端的IP地址向所述接入网关发送业务请求报文之后,还包括:
    响应于在所述预设时长内未接收到所述接入网关发送的业务应答报文或者对所述业务应答报文的正确性校验未通过,不再调用所述待测试业务的后续业务进程,终止所述待测试业务。
  4. 如权利要求3所述的方法,其中,在结束所述待测试业务之后,或者,在终止所述待测试业务之后,所述方法还包括:
    记录所述待测试业务的状态,其中,响应于所述待测试业务结束且所述待测试业务所有的业务应答报文的正确性校验均通过,记录所述待测试业务的状态为成功;响应于所述待测试业务终止,记录所述待测试业务的状态为失败。
  5. 如权利要求1所述的方法,其中,所述第二模拟终端为至少两个,所述利用所述第二模拟终端根据各自的所述第一特征信息向接入网关获取相应的IP地址,包括:
    同时利用各第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址,或者,按照预设的时间间隔分别利用各第二模拟终端根据各自的第一特征信息向接入网关获取相应的IP地址;
    所述利用所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,包括:
    同时利用各所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,或者,按照预设的时间间隔分别利用各所述第二模拟终端根据相应的所述IP地址测试所述待测试业务。
  6. 如权利要求1所述的方法,其中,所述根据获取到的业务配置参数模拟生成待测试业务,包括:
    根据获取到的业务配置参数调用相应的业务进程及驱动接口,模拟生成待测试业务。
  7. 如权利要求1-6任一项所述的方法,所述待测试业务包括以下至少之一:
    漫游业务,所述漫游业务包括全部终端的漫游业务和部分终端的漫游业务;
    满载场景下的业务。
  8. 一种全光网络测试装置,包括终端创建模块、地址获取模块和业务测试模块,所述终端创建模块,设置为根据获取到的终端配置参数创建第一模拟终端,并确定待测试的第二模拟终端,所述第一模拟终端包括唯一的第一特征信息,所述第二模拟终端为所述第一模拟终端中的至少一个;
    所述地址获取模块,设置为利用所述第二模拟终端根据各自的所述第一特征信息向接入网关获取相应的IP地址;
    所述业务测试模块,设置为根据获取到的业务配置参数模拟生成待测试业务,并利用所述第二模拟终端根据相应的所述IP地址测试所述待测试业务,其中,所述待测试业务为全光网络业务。
  9. 一种计算机设备,包括:
    一个或多个处理器;
    存储装置,其上存储有一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1-7任一项所述的全光网络业务测试方法。
  10. 一种计算机可读介质,其上存储有计算机程序,其中,所述计算机程序被执行时实现如权利要求1-7任一项所述的全光网络业务测试方法。
PCT/CN2023/070161 2022-01-26 2023-01-03 全光网络业务测试方法、装置、计算机设备和可读介质 WO2023142907A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210095266.3A CN116545525A (zh) 2022-01-26 2022-01-26 全光网络业务测试方法、装置、计算机设备和可读介质
CN202210095266.3 2022-01-26

Publications (1)

Publication Number Publication Date
WO2023142907A1 true WO2023142907A1 (zh) 2023-08-03

Family

ID=87445804

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/070161 WO2023142907A1 (zh) 2022-01-26 2023-01-03 全光网络业务测试方法、装置、计算机设备和可读介质

Country Status (2)

Country Link
CN (1) CN116545525A (zh)
WO (1) WO2023142907A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319353A (zh) * 2023-11-29 2023-12-29 西安优光谱信息科技有限公司 一种fttr子光猫桥接模式下下挂终端的地址分配方法和系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360015A (zh) * 2008-09-02 2009-02-04 北京星网锐捷网络技术有限公司 测试网络设备的方法、系统及装置
CN101765133A (zh) * 2009-12-28 2010-06-30 中兴通讯股份有限公司 一种无线接入点接入无线终端的性能测试方法和系统
CN102271059A (zh) * 2011-09-02 2011-12-07 烽火通信科技股份有限公司 一种基于虚拟终端的大容量通信设备的测试方法和装置
WO2019207743A1 (ja) * 2018-04-26 2019-10-31 三菱電機株式会社 試験装置、試験方法および試験プログラム
CN110601871A (zh) * 2019-07-31 2019-12-20 华为技术有限公司 一种虚拟设备的测试方法和装置
US20210076113A1 (en) * 2019-09-09 2021-03-11 Viavi Solutions Inc. Test instruments and methods for emulating optical network terminal (ont) devices and testing optical networks based on the emulation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360015A (zh) * 2008-09-02 2009-02-04 北京星网锐捷网络技术有限公司 测试网络设备的方法、系统及装置
CN101765133A (zh) * 2009-12-28 2010-06-30 中兴通讯股份有限公司 一种无线接入点接入无线终端的性能测试方法和系统
CN102271059A (zh) * 2011-09-02 2011-12-07 烽火通信科技股份有限公司 一种基于虚拟终端的大容量通信设备的测试方法和装置
WO2019207743A1 (ja) * 2018-04-26 2019-10-31 三菱電機株式会社 試験装置、試験方法および試験プログラム
CN110601871A (zh) * 2019-07-31 2019-12-20 华为技术有限公司 一种虚拟设备的测试方法和装置
US20210076113A1 (en) * 2019-09-09 2021-03-11 Viavi Solutions Inc. Test instruments and methods for emulating optical network terminal (ont) devices and testing optical networks based on the emulation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319353A (zh) * 2023-11-29 2023-12-29 西安优光谱信息科技有限公司 一种fttr子光猫桥接模式下下挂终端的地址分配方法和系统
CN117319353B (zh) * 2023-11-29 2024-03-08 西安优光谱信息科技有限公司 一种fttr子光猫桥接模式下下挂终端的地址分配方法和系统

Also Published As

Publication number Publication date
CN116545525A (zh) 2023-08-04

Similar Documents

Publication Publication Date Title
CN111200837B (zh) 一种Wi-Fi软件测试系统及方法
CN102143523B (zh) 基于业务递送平台的应用测试方法和业务递送平台
US20060205398A1 (en) Apparatus and methods for product acceptance testing on a wireless device
CN104581785A (zh) 无线网络测试方法、测试装置和移动终端
US10461990B2 (en) Diagnostic traffic generation for automatic testing and troubleshooting
WO2023142907A1 (zh) 全光网络业务测试方法、装置、计算机设备和可读介质
US10958616B2 (en) Methods, systems, and computer readable media for network test configuration using virtual local area network (VLAN) scanning
CN110427324B (zh) 联调系统、联调方法、计算机设备和存储介质
WO2018192149A1 (zh) 拨测方法、装置及系统
CN106776346B (zh) Ccmts设备的测试方法和装置
CN109525461A (zh) 一种网络设备的测试方法、装置、设备及存储介质
CN102355688A (zh) 用于设备测试的系统及方法
CN106776323B (zh) 应用测试方法及装置
CN107070752B (zh) 一种长连接容量的测试方法及测试系统
CN111263377B (zh) 网络配置方法、装置、设备、系统和配网测试方法、系统
WO2009067877A1 (fr) Procédé et système pour déboguer-tester automatiquement un dispositif de réseau
CN105009625A (zh) 业务测试方法、设备和系统、网络节点及质量处理节点
CN111416882A (zh) 一种bmc ip设置方法、装置和电子设备及系统
CN105391601A (zh) 一种网管设备的性能测试方法及系统
CN109729122A (zh) 确定以太网mac地址的方法及装置
CN105991679B (zh) 一种网络分享的实现方法和装置
CN110198222B (zh) 一种配电自动化终端即插即用测试方法及测试主站
EP3562196B1 (en) Mobile communication tester, testing system as well as a method for testing at least one device under test
CN112527453B (zh) 虚拟化信息仿真系统、方法及计算机可读存储介质
CN114071391A (zh) 内容计费测试方法、管理设备、终端设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23745792

Country of ref document: EP

Kind code of ref document: A1