CN107786357B - Interface performance test method and device and network equipment - Google Patents

Interface performance test method and device and network equipment Download PDF

Info

Publication number
CN107786357B
CN107786357B CN201610751722.XA CN201610751722A CN107786357B CN 107786357 B CN107786357 B CN 107786357B CN 201610751722 A CN201610751722 A CN 201610751722A CN 107786357 B CN107786357 B CN 107786357B
Authority
CN
China
Prior art keywords
test
layer
interface
performance
node
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
CN201610751722.XA
Other languages
Chinese (zh)
Other versions
CN107786357A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201610751722.XA priority Critical patent/CN107786357B/en
Publication of CN107786357A publication Critical patent/CN107786357A/en
Application granted granted Critical
Publication of CN107786357B publication Critical patent/CN107786357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides an interface performance test method, an interface performance test device and network equipment, wherein a cellular interface is divided into a driving layer and a Modem hardware layer according to a functional structure; the driving layer comprises a communication module driving layer and an equipment interface driving layer; the method comprises the steps of taking a data processing module of the network equipment as a test initiator, taking a driver layer and a Modem hardware layer of a cellular interface as test nodes, carrying out AT instruction interaction test on the test nodes of the Modem hardware layer, judging the performance of the Modem hardware layer based on AT instruction interaction test results, carrying out loopback test on the test nodes of the driver layer, and judging the performance of the driver layer based on the loopback test results of the test nodes of the driver layer. The invention can quickly locate the fault problem point of the cellular interface.

Description

Interface performance test method and device and network equipment
Technical Field
The invention relates to the technical field of data switching networks, in particular to a method and a device for testing interface performance and network equipment.
Background
The mobile communication network device, such as a 3G network device or a 4G network device, does not need a broadband line, can be connected with the internet network through the mobile base station only by inserting the SIM card, and is widely used in the fields of off-line financial services, smart grid, smart traffic, security monitoring, unattended industrial application environment, smart meter reading operation, mobile vehicle advertisement publishing, and the like.
The cellular interface is an interface used by the mobile communication network equipment for establishing data connection with the mobile communication network, and the data forwarding capability of the cellular interface is directly related to the data forwarding capability and the industrial application capability of the mobile communication network equipment. Therefore, in the process of developing the mobile communication network device, it is necessary to perform data forwarding capability on the cellular interface of the research sample, and further improve the mobile communication network device based on the data forwarding capability test result. In the using process of the mobile communication network equipment, a data forwarding capability test needs to be carried out on a cellular interface of the mobile communication network equipment periodically, whether the mobile communication network equipment has a fault problem hidden danger or not is judged according to a test result, and if the fault problem hidden danger exists, a fault problem point needs to be positioned.
When a cellular interface of a mobile communication network device is tested, even if a large amount of mobile communication network traffic is consumed, the existing interface performance testing method can only judge a fault problem point based on the strength of data forwarding capacity of the cellular interface by experience, and cannot directly position the fault problem point existing in the cellular interface.
Therefore, the improvement of the interface performance testing method is a technical problem expected to be solved in the technical field of mobile communication data interaction.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide an interface performance testing method, an apparatus and a network device, which can quickly locate a failure problem point of a cellular interface, so as to improve the design quality of developed mobile communication network devices, and improve the maintenance quality and the maintenance efficiency of the mobile communication network devices in use.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides an interface performance testing method, which is applied to a network device including a cellular interface and a data processing module, and the method includes:
the method comprises the steps of taking a data processing module of the network equipment as a test initiator, taking a driver layer and a Modem hardware layer of a cellular interface as test nodes, carrying out AT instruction interaction test on the test nodes of the Modem hardware layer, judging the performance of the Modem hardware layer based on AT instruction interaction test results, carrying out loopback test on the test nodes of the driver layer, and judging the performance of the driver layer based on the loopback test results of the test nodes of the driver layer.
In a second aspect, an embodiment of the present invention further provides an interface performance testing apparatus, including a test node specifying unit, a Modem hardware layer testing unit, a Modem hardware layer performance evaluation unit, a driver layer testing unit, and a driver layer performance evaluation unit;
the test node designating unit is used for taking a data processing module of the network equipment as a test initiator and taking a driving layer of a cellular interface and a Modem hardware layer as test nodes;
the Modem hardware layer testing unit is used for carrying out AT instruction interaction testing on the Modem hardware layer testing node;
the Modem hardware layer performance evaluation unit is used for judging the Modem hardware layer performance based on the AT instruction interaction test result;
the drive layer test unit is used for carrying out loopback test on the drive layer test node;
and the drive layer performance evaluation unit is used for judging the performance of the drive layer based on the loopback test result of the drive layer test node.
In a third aspect, an embodiment of the present invention further provides a network device, including the interface performance testing apparatus.
According to the interface performance testing method, device and network equipment provided by the embodiment of the invention, the cellular interface is divided into the driving layer and the Modem hardware layer according to the functional structure of the cellular interface, the driving layer adopts test data simulated by data processing module software to carry out loopback test, the Modem hardware layer adopts AT instructions to carry out interactive test, and not only can the fault problem be found but also the fault problem point can be positioned according to the test result.
Compared with the existing interface performance testing method which only can find out the integral abnormality of the cellular interface and can not locate the fault problem point, the interface performance testing method, the device and the network equipment provided by the embodiment of the invention have the advantages that the test data for performing the loopback test on the communication module driving layer and the equipment interface driving layer is provided by the data processing module software simulation, the test AT instruction for the Modem hardware layer is the AT instruction of the network equipment system, and the test data and the AT instruction are only related to the network equipment and are unrelated to the mobile communication network. Therefore, under the condition of not consuming the flow of the mobile communication network, the large-flow and high-pressure depth tests can be carried out on the communication module driving layer, the equipment interface driving layer and the Modem hardware layer as many times as possible, the design defects and the fault hidden dangers of the communication module driving layer, the equipment interface driving layer and the Modem hardware layer are found as much as possible, the design defects and the fault problems are positioned, the design quality and the maintenance quality of the cellular interface are improved, and the user experience of the network equipment is improved.
Based on the technical characteristics of the interface performance testing method, the interface performance testing device and the network equipment provided by the embodiment of the invention, when the performance of the cellular interface is tested, suspected fault points can be tested preferentially, and the fault points can be positioned quickly. For example, when the same or similar performance representation of protocol stack overflow occurs when the cellular interface is used, loopback test can be directly performed on the device interface driving layer, and the quick positioning of the fault problem point is realized.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 shows a flowchart of an interface performance testing method according to an embodiment of the present invention.
Fig. 2 shows a data forwarding diagram of a mobile communication network device.
Fig. 3 shows a schematic structural diagram of an interface performance testing apparatus of a network device.
Fig. 4 shows a schematic structural diagram of a cellular interface hierarchical test unit of the interface performance test apparatus.
Fig. 5 shows a schematic structural diagram of a driver layer test unit of a cellular interface hierarchical test unit.
Fig. 6 shows a schematic structural diagram of a driving layer performance evaluation unit of a cellular interface layered test unit.
Detailed Description
The performance test of the cellular interface of the existing mobile communication network equipment is to perform a data forwarding capability test on the cellular interface under the environment of a mobile communication network, and judge whether the cellular interface has design defects or faults or not by combining the experience of testers on the basis of a data forwarding test result. In practical application, even if a large amount of mobile communication network flow is consumed, whether the cellular interface has an abnormal phenomenon can only be judged, and the fault problem point cannot be directly positioned. Meanwhile, the method is limited by a development cost budget or a maintenance cost budget, and in most cases, only a predetermined number of tests can be carried out on the cellular interface. The insufficient test of the cellular interface increases the difficulty in judging whether the cellular interface has design defects or failure problems, so that the design defects and/or failure hidden dangers of the mobile communication network equipment cannot be found in time.
The inventor finds in research that the existing interface performance test method cannot effectively locate the design defect point and/or the fault problem point of the cellular interface, and is not caused by the fact that the test budget is too low and the test cannot be carried out fully, and the actual reason is that the existing interface performance test method is to carry out overall test on the whole cellular interface as a tested object, and the overall test can only obtain the overall performance of the cellular interface, and judge the possible fault problem point causing the abnormal overall performance of the cellular interface according to experience. Meanwhile, the overall test is based on probability statistics to ensure the validity of the test result, the more the test times are, the more the test result is reliable, and correspondingly, more mobile communication network flow needs to be consumed.
There are many factors that cause the overall performance of a cellular interface to be degraded, for example, the reason that the performance of the cellular interface is insufficient under the conditions of large flow and large byte data test may be a potential fault hazard in hardware, a fault in software, or a problem in communication between the cellular interface and other components of the mobile communication network device, and therefore, the difficulty in determining a fault problem point based on the overall test result of the cellular interface is very large.
Meanwhile, the data forwarding test includes a data receiving process and a process of retransmitting received data, one of the two processes has a problem, which causes performance degradation corresponding to the data forwarding test result, and it cannot be determined based on the data forwarding test result whether a failure problem point is in a software and hardware environment corresponding to the data receiving process or a software and hardware environment corresponding to the process of retransmitting the data.
The inventor discovers that the reasons causing the performance reduction of the cellular interface comprise abnormal communication module driving, abnormal equipment interface driving and abnormal Modem hardware, and fault problem points can be positioned by eliminating one by one if the communication module driving, the equipment interface driving and the Modem hardware are tested independently. Meanwhile, the suspected fault problem point can be directly tested, and the fault problem point can be quickly positioned.
The inventor also finds that the single test of the device interface driver of the cellular interface, the driver of the mobile communication module and the Modem hardware can be realized by sending simulation test data through the data processing module of the network device, namely the single test can not consume the mobile communication network flow.
Based on the above knowledge, the inventor provides an interface performance testing method, device and network equipment. According to the testing method and the network equipment, software and hardware of a cellular interface are divided into a mobile communication module driver, an equipment interface driver and Modem hardware, wherein the mobile communication module driver and the equipment interface driver are subjected to simulation testing based on a data processing module of the network equipment to determine whether fault hidden danger or design defects exist, a service side of the Modem hardware is tested based on AT instruction interaction, and a network side of the Modem hardware is tested based on mobile communication test data. And loopback tests are adopted by the mobile communication module driver, the equipment interface driver and the output node of the service side of the Modem hardware, so that problem points are eliminated step by step, and the accurate positioning of the fault problem points is realized. The test method and the network equipment can also perform priority test on suspected problem points, and realize the quick positioning of the fault problem points.
In the embodiment of the present invention, the cellular interface 500 is a device for establishing a data connection with a mobile communication network, and the network device has a SIM card slot for installing a SIM card. The cellular interface may be 3G, 4G, or 5G. The electrical connection between the cellular interface 500 and the network device may be in a USB mode or a SIC mode. When the cellular interface 500 hardware is set on the network device, the network device system dynamically creates a cellular interface to manage the cellular interface 500, and when the cellular interface 500 hardware is removed, the system dynamically deletes the cellular interface.
In the embodiment of the present invention, the device interface driver of the cellular interface 500 may be a USB driver, or a SIC driver, and the mobile communication module driver may be a 3G driver, or a 4G driver, or other generations of mobile communication module drivers.
In the embodiment of the invention, the processor is an integrated circuit chip with signal processing capability. The method divides a cellular interface into three module layers of mobile communication module drive, equipment interface drive and Modem hardware through an instruction in the form of an integrated logic circuit or software owned by the system and a data processing module, and performs data forwarding loopback test on a node of each module layer to find out a fault problem point. The processor is a processor for a network device. As for the type of integrated circuit chip, the Processor may be a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), or other Programmable logic devices, such as a CPLD; as for the device to which the processor can be applied, a processor for a network device is used.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention in conjunction with practical applications, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all of them.
First embodiment
The first embodiment describes the interface performance testing method of the present invention, taking a network device with a 3G/4G mobile communication module and a USB device interface as an example.
The USB 3G/4G network equipment is the current commonly used mobile communication network equipment, the mobile communication module drive is the USB drive, and the mobile communication module drive is the 3G/4G drive. If a cellular interface of the USB 3G/4G network device fails or has a design defect, when large byte data or large flow data is forwarded, a buffer memory overflows in a USB protocol stack, which causes a large drop in data forwarding capability of the cellular interface, which is a technical problem that the existing USB 3G/4G network device needs to be discovered and solved urgently.
Fig. 1 shows a flowchart of an interface performance testing method according to an embodiment of the present invention. According to the method, a cellular interface of mobile communication network equipment is divided into a driver layer and a Modem hardware layer according to a functional structure, wherein the driver layer comprises an equipment interface driver layer and a communication module driver layer. The method comprises the steps that a data processing module of network equipment is used as a test message sending party and a test message receiving party, loopback test is adopted for a driving layer, and whether the message receiving and sending process of the driving layer is correct or not and whether the message receiving and sending process is complete or not are determined; adopting AT instruction interaction to a Modem hardware layer to determine whether the Modem hardware has a fault or has a design defect; and the drive layer and the Modem hardware layer are used as a whole to test the network connection capability of the cellular interface in a networking manner.
It should be noted that the method for testing interface performance provided in the first embodiment of the present invention is not limited to perform a performance test on a cellular interface of a network device whose mobile communication module is 3G/4G and device interface is USB, and the cellular interface performance test can be performed on any mobile communication network device.
Referring now to fig. 1, the method is applied to a network device including a cellular interface and a data processing module; the method comprises the following steps:
s110, dividing the cellular interface into a driving layer and a Modem hardware layer according to a functional structure; the driving layer comprises a communication module driving layer and an equipment interface driving layer;
fig. 2 shows a data forwarding diagram of a mobile communication network device. In fig. 2, network data from the mobile communication network reaches the data processing module through the Modem hardware, the device interface driver, and the communication module driver, the data module receives the data and then forwards the data, and the forwarded network data is driven to the device interface driver, and the Modem hardware enters the mobile communication network.
The communication module is driven to a software part belonging to the cellular interface 500 with the device interface driver, the Modem hardware is a hardware part of the cellular interface 500, and the design mechanism and the test method of the software part have the same place. Therefore, in the first embodiment of the present invention, the cellular interface 500 is divided into a communication module driver layer 511, a device interface driver layer 512, and a Modem hardware layer 520 according to the functional structure, that is, the software and hardware structure, of the cellular interface 500. The communication module driver layer 511 and the device interface driver layer 512 may be considered as a driver layer 510 in combination.
The cellular interface 500 is layered according to the functional structure, so that the functional module of the cellular interface 500 can be tested in a targeted manner, which functional module the fault problem point is located in is judged based on the test result, and the fault problem point is located while the fault problem is found.
Continuing now to refer to FIG. 1
S120, taking a data processing module of the network equipment as a test initiator, taking a drive layer of a cellular interface and a Modem hardware layer as test nodes, carrying out AT instruction interaction test on the test nodes of the Modem hardware layer, judging the performance of the Modem hardware layer based on AT instruction interaction test results, carrying out loopback test on the test nodes of the drive layer, and judging the performance of the drive layer based on loopback test results of the test nodes of the drive layer;
the term "loopback test" refers to a test data sent by a test initiator to a test node is received by the test initiator to check whether the connection between the test initiator and the test node is normal.
The term "AT command" refers to a command in an AT command set, which refers to a command sent from a Terminal Equipment (TE) to a Terminal Adapter (TA), a command sent from a Data Terminal Equipment (DTE) to the Terminal Adapter, or a command sent from a Data Circuit Terminal Equipment (DCE) to the Terminal Adapter.
If the data processing module with the data simulation capability and the instruction sending capability is used as a test initiator, the simulated test data or the initiated test instruction is adopted to test the cellular interface under the condition of not considering the mobile communication network connection capability of the cellular interface, and the mobile communication network flow can not be consumed.
Under the condition that the data processing module is used as a test initiator, if test closed loops are respectively formed between the data processing module and the mobile communication module driver, between the data processing module and the equipment interface driver and between the data processing module and the Modem hardware, the mobile communication module driver, the equipment interface driver and the Modem hardware can be respectively tested.
The mobile communication module driver and the device interface driver are software parts, and the test of the software parts can adopt test data simulated by software. The Modem hardware is a hardware part and belongs to a black box model relative to a software part. The relationship between the Modem hardware and other components of the network device is the relationship between the terminal adapter and the terminal, so the Modem hardware can adopt AT instruction interaction to perform testing.
Based on the above knowledge, the inventor adopts the following technical scheme when performing single test on the device interface driver, the mobile communication module driver and the Modem hardware of the cellular interface:
the method comprises the steps of taking a data processing module of the network equipment as a test initiator, taking a driver layer and a Modem hardware layer of a cellular interface as test nodes, carrying out AT instruction interaction test on the test nodes of the Modem hardware layer, judging the performance of the Modem hardware layer based on AT instruction interaction test results, carrying out loopback test on the test nodes of the driver layer, and judging the performance of the driver layer based on the loopback test results of the test nodes of the driver layer.
In the first embodiment of the present invention, the cellular interface is divided into a driver layer and a Modem hardware layer, the driver layer performs loopback test by using test data simulated by data processing module software, the Modem hardware layer performs interactive test by using an AT instruction, the test data for performing loopback test on the driver layer is provided by the data processing module software simulation, the test AT instruction for the Modem hardware layer is an AT instruction possessed by the network device system, and the test data and the AT instruction are only related to the network device and are unrelated to the mobile communication network. Therefore, under the condition of not consuming the flow of the mobile communication network, the large-flow and high-pressure depth tests can be carried out on the drive layer and the Modem hardware layer as many times as possible, the design defects and the fault hidden dangers of the drive layer and the Modem hardware layer are found as much as possible, the design defects and the fault problems are positioned, the design quality and the maintenance quality of the cellular interface are improved, and the user experience of network equipment is improved.
The step of performing loopback test on the driver layer test node comprises performing loopback test on the device interface driver layer test node and performing loopback test on the communication module driver layer test node; accordingly, the number of the first and second electrodes,
the loopback test of the device interface driving layer test node comprises the following steps:
under the condition that the loopback test function of the communication module driver layer test node is closed, a loopback test command is opened at the equipment interface driver layer test node, and a loopback test mark of the equipment interface driver layer test node is set;
the data processing module puts a predetermined number of test messages to be sent into a message sending queue, when the data processing module detects that the loopback test function of the device interface driving layer test node is opened, the data processing module acquires and analyzes the test messages from the message sending queue, changes the field of the head structure of the analyzed test messages and puts the head structure into a message receiving queue, and when the data processing module cannot acquire the test messages from the message sending queue again, the data processing module counts the test messages in the message receiving queue to obtain the number of the test messages in the message receiving queue.
The loopback test of the communication module driver layer test node comprises the following steps:
opening a loopback test command at a communication module driver layer test node, and setting a loopback test mark of the communication module driver layer test node;
the data processing module puts a predetermined number of test messages to be sent into a message sending queue, when the data processing module detects that the loopback test function of the communication module drive layer test node is opened, the data processing module obtains and analyzes the test messages from the message sending queue, changes the field of the head structure of the analyzed test messages and puts the head structure into a message receiving queue, and when the data processing module cannot obtain the test messages from the message sending queue, the data processing module counts the test messages in the message receiving queue to obtain the number of the test messages in the message receiving queue.
In the step of performing loopback test on the device interface driver layer test node and/or the step of performing loopback test on the communication module driver layer test node, the step of modifying the field of the head structure of the analyzed test message comprises the following steps:
and changing the source port number and the destination port number of the IP header structure of the analyzed test message, and changing the source port number and the destination port number of the TCP/UDP header structure.
The step of judging the performance of the drive layer based on the loopback test result of the drive layer test node corresponding to the step of carrying out the loopback test on the drive layer test node comprises the following steps: and judging the performance of the equipment interface driving layer based on the loopback test result of the equipment interface driving layer test node and judging the performance of the communication module driving layer based on the loopback test result of the communication module driving layer test node. Accordingly, the number of the first and second electrodes,
judging the performance of the equipment interface driving layer based on the loopback test result of the equipment interface driving layer test node as follows: and judging the performance of the device interface driving layer based on the number of the test messages to be sent put into the message sending queue and the number of the test messages in the message receiving queue.
Judging the performance of the communication module driver layer based on the loopback test result of the communication module driver layer test node as follows: and judging the performance of the driving layer of the communication module based on the number of the test messages to be sent put into the message sending queue and the number of the test messages in the message receiving queue.
In the first embodiment of the present invention, the test timings of the communication module driver layer, the device interface driver layer, and the Modem hardware layer may be adjusted according to actual needs, which is not specifically limited in the present invention. For example, the device interface driver layer may be tested first to determine whether there is a possibility of a failure problem point in a logical channel from the communication module driver layer to the Modem hardware layer.
The cellular interface is divided into a communication module driving layer, an equipment interface driving layer and a Modem hardware layer, so that a more adaptive test scheme can be further formulated according to the characteristics of each layer, the test result can better reflect the actual condition of each functional part of the cellular interface, and the fault problem point is more accurately positioned, for example, when the protocol stack overflows to the same or similar performance representation when the cellular interface is used, the loopback test can be directly carried out on the equipment interface driving layer, and the fault problem point is quickly positioned.
And S130, taking the whole cellular interface as a test node, carrying out a mobile communication network networking data forwarding test on the cellular interface, and judging the overall performance of the cellular interface based on a mobile communication network data forwarding test result.
In the first embodiment of the invention, an SIM card is required to be installed in the Cellular interface for carrying out the mobile communication network networking data forwarding test on the Cellular interface, the SIM card is used for dialing to connect the mobile communication network, the physical state of the Cellular interface is changed from down to up after the dialing is successful, then the mobile communication network networking data forwarding test is carried out on the Cellular interface, and the overall performance of the Cellular interface is judged based on the mobile communication network data forwarding test result.
Before the cellular interface is subjected to overall test, fault problem point positioning test is already carried out on each functional module of the cellular interface, so that the overall test of the cellular interface only needs to carry out simple performance test, and the matching among a communication module driving layer, an equipment interface driving layer and a Modem hardware layer of the cellular interface is known through the performance test. Therefore, compared with the existing interface performance test method which needs to consume a large amount of mobile communication network data traffic when the cellular interface is subjected to the overall test, the cellular interface overall test of the first embodiment of the invention only needs to consume a small amount of mobile communication network data traffic, thereby further reducing the test cost of the cellular interface performance test.
Based on the same or similar design concept and software and hardware architectures, the interface performance testing method provided in the first embodiment of the present invention is not limited to the performance testing of the cellular interface of the mobile communication network device having the USB device interface, but is also applicable to the performance testing of the cellular interface of the mobile communication network device having the RIC device interface.
Second embodiment
The second embodiment provides an interface performance testing device and a network device to which the testing device is applied. The network device may be an application environment of the foregoing method embodiment, may also be only a part of the application environment of the foregoing method embodiment, and may also be a device including the application environment of the foregoing method embodiment.
The interface performance testing apparatus provided in the second embodiment of the present invention has the same technical concept, implementation principle, technical effect, and technical problem that can be solved as the foregoing method embodiments, and those skilled in the art can understand the interface performance testing apparatus provided in the second embodiment of the present invention by referring to the detailed description of the corresponding method steps in the foregoing method embodiments of the present invention.
The network device is a network device with a cellular interface, and may also be a communication apparatus with a network device system or integrated with a network device. The network device includes any one of the embodiments of the interface performance testing apparatus in the second embodiment of the present invention.
Fig. 3 shows a schematic structural diagram of an interface performance testing apparatus of a network device. The interface performance testing device is associated with the data processing module and performs cellular interface testing under the scheduling of the processor.
Referring now to fig. 3, an interface performance testing apparatus 800 includes a cellular interface layered unit 810, a cellular interface layered testing unit 820, and a cellular interface integral testing unit 830; wherein the content of the first and second substances,
the cellular interface layering unit 810 is used for dividing the cellular interface into a driver layer and a Modem hardware layer according to a functional structure; the driving layer comprises a communication module driving layer and an equipment interface driving layer;
the cellular interface layered test unit 820 is used for testing the driving layer and judging the performance of the driving layer based on a test result; and
the device is used for testing the Modem hardware layer and judging the performance of the Modem hardware layer based on the test result;
and the cellular interface overall test unit 830 is configured to, after judging the performance of the driver layer based on a loopback test result of the driver layer test node, use the entire cellular interface as a test node, perform a mobile communication network networking data forwarding test on the cellular interface, and judge the overall performance of the cellular interface based on a mobile communication network data forwarding test result.
Fig. 4 shows a schematic structural diagram of a cellular interface hierarchical test unit of the interface performance test apparatus. The cellular interface layered test unit is used for carrying out corresponding test by taking each layer into which the cellular interface is divided as a test node, and judging the performance of the layer according to the test result.
Referring to fig. 4, the cellular interface layered test unit 820 includes a test node specification unit 821, a Modem hardware layer test unit 822, a Modem hardware layer performance evaluation unit 823, a driver layer test unit 824, and a driver layer performance evaluation unit 825; wherein.
A test node designating unit 821, configured to use a data processing module of the network device as a test initiator, and use a driver layer of a cellular interface and a Modem hardware layer as test nodes;
a Modem hardware layer test unit 822, configured to perform AT instruction interaction test on a Modem hardware layer test node;
a Modem hardware layer performance evaluation unit 823 for judging the Modem hardware layer performance based on the AT instruction interaction test result;
a driver layer test unit 824, configured to perform loopback test on the driver layer test node;
and the driving layer performance evaluation unit 825 is configured to judge the performance of the driving layer based on the loopback test result of the driving layer test node.
Fig. 5 shows a schematic structural diagram of a driver layer test unit of a cellular interface hierarchical test unit. The cellular interface driving layer comprises a communication module driving layer and an equipment interface driving layer, any one of the two driving layers has a design defect or a fault problem, the performance of the cellular interface is affected, and the cellular interface driving layer and the equipment interface driving layer need to be respectively used as test nodes for performance test.
Referring now to fig. 5, the driver layer test unit 824 includes a device interface driver layer test unit 8241, a communication module driver layer test unit 8242; wherein the content of the first and second substances,
the device interface driver layer test unit 8241 is used for opening a loopback test command at the device interface driver layer test node and setting a loopback test flag of the device interface driver layer test node under the condition that the loopback test function of the communication module driver layer test node is closed;
and the device is used for placing a predetermined number of test messages to be sent into the message sending queue, acquiring and analyzing the test messages from the message sending queue after detecting that the loopback test function of the device interface driving layer test node is opened, changing the fields of the head structures of the analyzed test messages, placing the fields into the message receiving queue, and counting the test messages in the message receiving queue to obtain the number of the test messages in the message receiving queue when the test messages cannot be acquired from the message sending queue.
A communication module driver layer test unit 8242, configured to open a loopback test command at a communication module driver layer test node, and set a loopback test flag of the communication module driver layer test node;
and the device is used for placing a predetermined number of test messages to be sent into the message sending queue, acquiring and analyzing the test messages from the message sending queue after detecting that the loopback test function of the communication module drive layer test node is opened, changing the fields of the head structures of the analyzed test messages, placing the fields into the message receiving queue, and counting the test messages in the message receiving queue to obtain the number of the test messages in the message receiving queue when the test messages cannot be acquired from the message sending queue.
Fig. 6 shows a schematic structural diagram of a driving layer performance evaluation unit of a cellular interface layered test unit. The driving layer performance evaluation unit 825 corresponds to the driving layer test unit 824.
Referring now to fig. 6, the driver layer performance evaluation unit 825 includes a device interface driver layer performance evaluation unit 8251, a communication module driver layer performance evaluation unit 8252; wherein
The device interface driver layer performance evaluation unit 8251 is configured to judge the performance of the driver layer of the communication module based on the number of to-be-sent test packets placed in the packet sending queue and the number of test packets in the packet receiving queue.
A communication module driving layer performance evaluation unit 8252, configured to judge performance of the communication module driving layer based on the number of to-be-sent test packets placed in the packet sending queue and the number of test packets in the packet receiving queue.
In the second embodiment of the present invention, the interface performance testing apparatus 800 may be a virtual apparatus, and in this case, it is an apparatus defined by the process disclosed in any one of the foregoing embodiments of the present invention, each unit module involved in the interface performance testing apparatus 800 is implemented by software codes, the interface performance testing apparatus 800 is a software function module installed in a memory and including one or more software functions executed by a processor, the memory is used for storing a program, and the processor calls the program stored in the memory through a bus connected to the memory to execute the method executed by the process disclosed in any one of the foregoing embodiments of the present invention. The method performed by the interface performance testing apparatus 800 may be applied to or implemented by a processor.
In the second embodiment of the present invention, the interface performance testing apparatus 800 may be a hardware entity apparatus, and in this case, it is a logic integrated circuit. Which may be a separate electronic device or part of a processor circuit. In the implementation process, the steps of the interface performance testing method disclosed in any embodiment of the present invention may be implemented by an integrated logic circuit of hardware in a processor or instructions in the form of software.
The above-described embodiments of the network device and the interface performance testing apparatus are merely illustrative, for example, the division of the unit is only one logic function division, and there may be other division manners in actual implementation, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
It should be noted that, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The interface performance testing method provided by the embodiment of the invention is realized in the form of a software functional unit and can be stored in a computer readable storage medium when being sold or used as an independent product. At this time, the computer program product of the interface performance testing method provided in the embodiment of the present invention includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, and is not described herein again.
In summary, the method, the apparatus and the network device for testing interface performance provided in the embodiments of the present invention are not limited to performing performance test on the cellular interface of the mobile communication network device having the USB device interface, but are also applicable to performing performance test on the cellular interface of the mobile communication network device having the RIC device interface.
According to the interface performance testing method, device and network equipment provided by the embodiment of the invention, the cellular interface is divided according to the functional structure, the high-flow and high-pressure deep loopback test is carried out on the test data generated by the divided driving layer based on the self, and the AT instruction interaction test based on the AT instruction set is carried out on the divided Modem hardware layer. Therefore, design defects and fault hidden dangers of a communication module driving layer, an equipment interface driving layer and a Modem hardware layer can be found as much as possible, design defects and fault points are positioned, the design quality and the maintenance quality of a cellular interface are improved, and the user experience of network equipment is improved; meanwhile, the dependence of cellular interface test on the mobile communication network can be reduced.
The cellular interface is divided into a communication module driving layer, an equipment interface driving layer and a Modem hardware layer, so that a more adaptive test scheme can be further formulated according to the characteristics of each layer, the test result can better reflect the actual condition of each functional part of the cellular interface, and the fault problem point is more accurately positioned, for example, when the protocol stack overflows to the same or similar performance representation when the cellular interface is used, the loopback test can be directly carried out on the equipment interface driving layer, and the fault problem point is quickly positioned.
On this basis, since the fault problem point location test is already performed on each functional module of the cellular interface before the cellular interface is subjected to the overall test, the overall test of the cellular interface only needs to perform a simple performance test, and therefore, the cellular interface overall test of the first embodiment of the invention only needs to consume little mobile communication network data traffic, so that the test cost of the cellular interface performance test is further reduced.

Claims (7)

1. An interface performance test method is applied to network equipment comprising a cellular interface and a data processing module, and is characterized by comprising the following steps:
taking a data processing module of the network equipment as a test initiator, taking a driver layer of the cellular interface and a Modem hardware layer as test nodes, carrying out AT instruction interaction test on the test nodes of the Modem hardware layer, judging the performance of the Modem hardware layer based on the AT instruction interaction test result, carrying out loopback test on the test nodes of the driver layer, judging the performance of the driver layer based on the loopback test result of the test nodes of the driver layer,
the driving layer test nodes comprise equipment interface driving layer test nodes and communication module driving layer test nodes; the step of performing loopback test on the drive layer test node comprises the following steps:
performing loopback test on the equipment interface driving layer test node and performing loopback test on the communication module driving layer test node;
the step of performing loopback test on the device interface driver layer test node comprises:
under the condition that the loopback test function of the communication module driver layer test node is closed, a loopback test command is opened at the equipment interface driver layer test node, and a loopback test mark of the equipment interface driver layer test node is set;
the data processing module puts a predetermined number of test messages to be sent into a message sending queue, when the data processing module detects that the loopback test function of the device interface driving layer test node is opened, the data processing module obtains and analyzes the test messages from the message sending queue, changes the field of the head structure of the analyzed test messages and puts the field into a message receiving queue, and when the data processing module cannot obtain the test messages from the message sending queue again, the data processing module counts the test messages in the message receiving queue to obtain the number of the test messages in the message receiving queue.
2. The interface performance testing method of claim 1,
the step of performing loopback test on the communication module driver layer test node comprises:
opening a loopback test command at the communication module driver layer test node, and setting a loopback test mark of the communication module driver layer test node;
the data processing module puts a predetermined number of test messages to be sent into a message sending queue, when the data processing module detects that the loopback test function of the communication module drive layer test node is opened, the data processing module acquires and analyzes the test messages from the message sending queue, changes the field of the head structure of the analyzed test messages and puts the field into a message receiving queue, and when the data processing module cannot acquire the test messages from the message sending queue again, the data processing module counts the test messages in the message receiving queue to obtain the number of the test messages in the message receiving queue.
3. The interface performance testing method according to claim 1 or 2, wherein after determining the driver layer performance based on the loopback test result of the driver layer test node, the method further comprises:
and taking the whole cellular interface as a test node, carrying out a mobile communication network networking data forwarding test on the cellular interface, and judging the overall performance of the cellular interface based on a test result of the mobile communication network networking data forwarding test.
4. The interface performance testing device is characterized by comprising a testing node specifying unit, a Modem hardware layer testing unit, a Modem hardware layer performance judging unit, a driving layer testing unit and a driving layer performance judging unit;
the test node designating unit is used for taking a data processing module of the network equipment as a test initiator and taking a driver layer and a Modem hardware layer of a cellular interface as test nodes;
the Modem hardware layer testing unit is used for carrying out AT instruction interaction testing on Modem hardware layer testing nodes;
the Modem hardware layer performance evaluation unit is used for judging the Modem hardware layer performance based on the AT instruction interaction test result;
the drive layer test unit is used for carrying out loopback test on the drive layer test node;
the drive layer performance evaluation unit is used for judging the drive layer performance based on the loopback test result of the drive layer test node,
the driving layer test unit includes:
an equipment interface driver layer test unit for performing loopback test on equipment interface driver layer test nodes of the driver layer test nodes, an
A communication module drive layer test unit for performing loopback test on the communication module drive layer test node of the drive layer test node;
the device interface driver layer test unit is used for opening a loopback test command at the device interface driver layer test node and setting a loopback test mark of the device interface driver layer test node under the condition that the loopback test function of the communication module driver layer test node is closed;
and the device is used for placing a predetermined number of test messages to be sent into a message sending queue, acquiring and analyzing the test messages from the message sending queue after detecting that the loopback test function of the device interface driving layer test node is opened, changing the fields of the head structures of the analyzed test messages, placing the fields into a message receiving queue, and counting the test messages in the message receiving queue to obtain the number of the test messages in the message receiving queue when the test messages cannot be acquired from the message sending queue.
5. The interface performance testing apparatus of claim 4,
the communication module driver layer test unit is used for opening a loopback test command at the communication module driver layer test node and setting a loopback test mark of the communication module driver layer test node;
and the device is used for placing a predetermined number of test messages to be sent into a message sending queue, acquiring and analyzing the test messages from the message sending queue after detecting that the loopback test function of the communication module drive layer test node is opened, changing the fields of the head structures of the analyzed test messages, placing the fields into the message receiving queue, and counting the test messages in the message receiving queue to obtain the number of the test messages in the message receiving queue when the test messages cannot be acquired from the message sending queue.
6. The interface performance testing device of claim 4 or 5, wherein the device further comprises a cellular interface integral testing unit;
the cellular interface integral test unit is used for taking the whole cellular interface as a test node after judging the performance of the driving layer based on a loopback test result of the driving layer test node, carrying out a mobile communication network networking data forwarding test on the cellular interface, and judging the integral performance of the cellular interface based on a test result of the mobile communication network networking data forwarding test.
7. A network device comprising the interface performance testing apparatus of any one of claims 4 to 6.
CN201610751722.XA 2016-08-29 2016-08-29 Interface performance test method and device and network equipment Active CN107786357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610751722.XA CN107786357B (en) 2016-08-29 2016-08-29 Interface performance test method and device and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610751722.XA CN107786357B (en) 2016-08-29 2016-08-29 Interface performance test method and device and network equipment

Publications (2)

Publication Number Publication Date
CN107786357A CN107786357A (en) 2018-03-09
CN107786357B true CN107786357B (en) 2021-05-18

Family

ID=61440802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610751722.XA Active CN107786357B (en) 2016-08-29 2016-08-29 Interface performance test method and device and network equipment

Country Status (1)

Country Link
CN (1) CN107786357B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110881009B (en) * 2018-09-06 2022-04-19 迈普通信技术股份有限公司 Method, device, communication equipment and storage medium for receiving test message

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859235A (en) * 2006-01-17 2006-11-08 华为技术有限公司 Communication device and its detecting method
CN102223268A (en) * 2011-06-17 2011-10-19 福建星网锐捷网络有限公司 Network equipment as well as method and device for starting hardware testing of same
CN103455396A (en) * 2013-09-03 2013-12-18 北京安兔兔科技有限公司 Test method and test device of hardware performance of electronic equipment
CN105553754A (en) * 2015-12-08 2016-05-04 重庆金美通信有限责任公司 Wireless communication device testability design method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7536605B2 (en) * 2005-05-25 2009-05-19 Alcatel-Lucent Usa Inc. Injection of software faults into an operational system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859235A (en) * 2006-01-17 2006-11-08 华为技术有限公司 Communication device and its detecting method
CN102223268A (en) * 2011-06-17 2011-10-19 福建星网锐捷网络有限公司 Network equipment as well as method and device for starting hardware testing of same
CN103455396A (en) * 2013-09-03 2013-12-18 北京安兔兔科技有限公司 Test method and test device of hardware performance of electronic equipment
CN105553754A (en) * 2015-12-08 2016-05-04 重庆金美通信有限责任公司 Wireless communication device testability design method

Also Published As

Publication number Publication date
CN107786357A (en) 2018-03-09

Similar Documents

Publication Publication Date Title
US11848849B1 (en) Testing computer networks in real time
US10897524B1 (en) Integrated packet generator and checker
EP2903213B1 (en) Throughput test method and apparatus
US10659571B1 (en) Network device with integrated packet generators or packet checkers
CN108337699B (en) Internet surfing method and device, mobile terminal and storage medium
CN113572760B (en) Device protocol vulnerability detection method and device
CN107800663B (en) Method and device for detecting flow offline file
US9705767B2 (en) Detecting and measuring network route reconvergence using in-band data probes
US11076025B1 (en) Generating network packet centric signatures
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN107786357B (en) Interface performance test method and device and network equipment
CN113179210B (en) BFD detection method, BFD detection device, electronic equipment and storage medium
CN109120539B (en) Method and device for realizing data transmission processing
CN117176802A (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN108141374B (en) Network sub-health diagnosis method and device
CN109495311B (en) Network fault detection method and device
CN111343647B (en) Method, apparatus, device and medium for user perception evaluation
CN113890858B (en) PMTU detection method and device
CN112235244B (en) Construction method of abnormal message, detection method, device and medium of industrial control network equipment
CN113672416B (en) Method and device for positioning cause of hard buffer leakage
WO2021128936A1 (en) Message processing method and apparatus
CN114095398A (en) Method and device for determining detection time delay, electronic equipment and storage medium
CN113259201A (en) Link performance testing method and device, server and storage medium
CN112738837A (en) WiFi AP equipment test system and method
CN105577427A (en) Detection method and device for communication connection between household appliance and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant