CN111010314A - Communication test method and device for terminal equipment, routing equipment and storage medium - Google Patents

Communication test method and device for terminal equipment, routing equipment and storage medium Download PDF

Info

Publication number
CN111010314A
CN111010314A CN201911284093.4A CN201911284093A CN111010314A CN 111010314 A CN111010314 A CN 111010314A CN 201911284093 A CN201911284093 A CN 201911284093A CN 111010314 A CN111010314 A CN 111010314A
Authority
CN
China
Prior art keywords
data
communication
uplink
downlink
network parameters
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.)
Pending
Application number
CN201911284093.4A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Intelligent Technology Co Ltd
Original Assignee
Beijing Xiaomi Intelligent 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 Beijing Xiaomi Intelligent Technology Co Ltd filed Critical Beijing Xiaomi Intelligent Technology Co Ltd
Priority to CN201911284093.4A priority Critical patent/CN111010314A/en
Publication of CN111010314A publication Critical patent/CN111010314A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Landscapes

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

Abstract

The disclosure relates to a communication test method and device of terminal equipment, routing equipment and a storage medium. The method is applied to the routing equipment and comprises the following steps: forwarding communication data between the terminal equipment and a target server according to a pre-configured network parameter; acquiring data to be detected in the communication data; and determining the communication capacity information of the terminal equipment under the network environment defined by the network parameters according to the data to be detected. According to the technical scheme provided by the embodiment of the disclosure, the routing equipment simulates network parameters in a weak network environment and forwards communication data between the terminal equipment and the target server without being limited by a weak network testing tool of a testing computer, so that simultaneous testing of multiple persons or real-time detection at any time can be realized.

Description

Communication test method and device for terminal equipment, routing equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a communication testing method and apparatus for a terminal device, a routing device, and a storage medium.
Background
With the development of internet communication, various terminal devices can realize communication with the cloud, so that functions such as remote control and the like are realized. By the terminal device in a weak network environment, for example: the communication effect under the severe network environment such as delay, packet loss, packet repetition or packet damage and the like are easily caused, and the communication effect of the terminal equipment under the normal network environment can reflect whether the communication capability of the terminal equipment is stable or not. Therefore, simulating different network environments for communication testing is one of the important means for testing the communication capability of the terminal equipment.
Disclosure of Invention
The disclosure provides a communication test method and device of a terminal device, a routing device and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a communication test method for a terminal device, where the method is applied to a routing device, and the method includes:
forwarding communication data between the terminal equipment and a target server according to a pre-configured network parameter;
acquiring data to be detected in the communication data;
and determining the communication capacity information of the terminal equipment under the network environment defined by the network parameters according to the data to be detected.
In some embodiments, the method further comprises:
sending a configuration request to a test server;
receiving configuration information sent by the test server according to the configuration request;
and determining the network parameters of the routing equipment according to the configuration information.
In some embodiments, the network parameters include: an uplink network parameter; the communication data includes at least: uplink data in uplink communication;
the forwarding the communication data between the terminal device and the target server according to the pre-configured network parameters includes:
and forwarding the uplink data sent by the terminal equipment to the target server according to the uplink network parameters.
In some embodiments, the forwarding, according to the uplink network parameter, the uplink data sent by the terminal device to the target server includes:
receiving the uplink data sent by the terminal equipment by using the uplink bandwidth limited by the uplink network parameters;
performing communication abnormity simulation on data packets in the uplink data according to the uplink network parameters to obtain simulated abnormal uplink data, wherein at least one data packet in the simulated abnormal uplink data is different from the data packet in the original uplink data sent by the terminal equipment;
and sending the simulated abnormal uplink data to the target server by using the uplink bandwidth.
In some embodiments, the network parameters include: a downlink network parameter; the communication data includes at least: downlink data in downlink communication generated based on the communication request; the forwarding the communication data between the terminal device and the target server according to the preconfigured network parameters includes:
and forwarding the downlink data sent by the target server to the terminal equipment according to the downlink network parameters.
In some embodiments, the forwarding, according to the downlink network parameter, the downlink data sent by the target server based on the communication request to the terminal device includes:
receiving the downlink data sent by the target server by using the downlink bandwidth limited by the downlink network parameters;
performing communication abnormity simulation on data packets in the downlink data according to the downlink network parameters to obtain simulated abnormal downlink data, wherein at least one data packet in the simulated abnormal downlink data is different from the data packet in the downlink data sent by the target server;
and sending the simulated abnormal downlink data to the terminal equipment by using the downlink bandwidth.
According to a second aspect of the embodiments of the present disclosure, there is provided a routing device, including:
the forwarding module is used for forwarding communication data between the terminal equipment and the target server according to the pre-configured network parameters;
the first acquisition module is used for acquiring data to be detected in the communication data;
and the first determining module is used for determining the communication capacity information of the terminal equipment under the network environment defined by the network parameters according to the data to be detected.
In some embodiments, the routing device further comprises:
the first receiving module is used for receiving the configuration information sent by the test server;
and the second determining module is used for determining the network parameters according to the configuration information.
In some embodiments, the network parameters include: an uplink network parameter; the communication data includes at least: uplink data in uplink communication;
the forwarding module comprises:
and the first forwarding sub-module is used for forwarding the uplink data sent by the terminal equipment to the target server according to the uplink network parameters.
In some embodiments, the first forwarding sub-module comprises:
a first receiving submodule, configured to receive the uplink data sent by the terminal device by using an uplink bandwidth defined by the uplink network parameter;
the first simulation submodule is used for performing communication abnormity simulation on data packets in the uplink data according to the uplink network parameters to obtain simulated abnormal uplink data, wherein at least one data packet in the simulated abnormal uplink data is different from the data packet in the original uplink data sent by the terminal equipment;
and the first sending submodule is used for sending the simulated abnormal uplink data to the target server by using the uplink bandwidth.
In some embodiments, the network parameters include: a downlink network parameter; the communication data includes at least: downlink data in downlink communication generated based on the uplink data;
the forwarding module comprises:
and the second forwarding submodule is used for forwarding the downlink data sent by the target server to the terminal equipment according to the downlink network parameters.
In some embodiments, the second forwarding sub-module includes:
a second receiving submodule, configured to receive the downlink data sent by the target server by using a downlink bandwidth defined by the downlink network parameter;
the second simulation submodule is used for performing communication abnormity simulation on data packets in the downlink data according to the downlink network parameters to obtain simulated abnormal downlink data, wherein at least one data packet in the simulated abnormal downlink data is different from the data packet in the downlink data sent by the target server;
and the second sending submodule is used for sending the simulated abnormal downlink data to the terminal equipment by using the downlink bandwidth.
According to a third aspect of the embodiments of the present disclosure, there is provided a communication test apparatus of a terminal device, the apparatus at least including: a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, and the executable instructions perform the steps in the communication testing method of any one of the terminal devices.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored therein computer-executable instructions, which when executed by a processor, implement the steps in the communication testing method of any one of the terminal devices described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the technical scheme provided by the embodiment of the disclosure, the routing equipment simulates network parameters under various limited parameter network environments and forwards communication data between the terminal equipment and the target server, and the routing equipment is not limited by a weak network testing tool for testing a computer. Therefore, the routing equipment can be connected with different terminals of a plurality of testers, so that simultaneous testing by a plurality of people or real-time detection at any time can be realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a first flowchart illustrating a communication testing method of a terminal device according to an exemplary embodiment;
fig. 2 is a flowchart ii illustrating a communication testing method of a terminal device according to an exemplary embodiment;
fig. 3 is a flowchart three illustrating a communication test method of a terminal device according to an exemplary embodiment;
FIG. 4 is a block diagram illustrating the structure of a routing device in accordance with an exemplary embodiment;
fig. 5 is a block diagram illustrating an entity structure of a terminal device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a communication testing method of a terminal device according to an exemplary embodiment, which is applied to a routing device, and as shown in fig. 1, includes the following steps:
step S101, according to a pre-configured network parameter, forwarding communication data between the terminal equipment and a target server;
s102, acquiring data to be detected in the communication data;
step S103, according to the data to be detected, communication capacity information of the terminal equipment under the network environment defined by the network parameters is determined.
Here, the routing device is connected to the terminal device, and provides the terminal device with a routing function, such as a gateway or a router, to implement data forwarding between the terminal device and the target server. The target server is a target interacting with the terminal device, and the terminal device sends data to the target server or receives data sent by the target server. The terminal device may be various devices having data communication functions, including but not limited to: a user terminal provides various use functions for a user. The terminal equipment can be internet of things equipment and the like which can acquire data through various information sensors and interact with other equipment or a network. For example, devices that enable wireless communication for various purposes, such as smart home devices, mobile communication devices, and wearable smart devices. The device is capable of communicating with the target server via the routing device.
If the terminal equipment has stronger communication capability, basic communication can be carried out under a poorer network environment, so that the basic requirements are met. For example, in the case of weak network signals, communication data abnormalities such as packet loss and packet damage, and bandwidth limitation and speed limitation are likely to occur in communication of a terminal device. If the communication capability of the terminal equipment is stronger, the basic content of the data to be transmitted can still be normally transmitted after packet loss or packet damage occurs. In contrast, if the communication capability of the terminal device is weak, the basic communication requirement cannot be satisfied in a poor network environment.
Therefore, when testing the communication capability of the terminal device, the communication test can be performed by simulating the weak network environment, namely, the network environment defined by the network parameters. In addition, a normal wireless communication network environment, for example, a 2G, 3G, 4G or Wifi network environment, including a strong network environment in which the network signal strength or the data rate is greater than a certain threshold, may be simulated, and various communication parameters in the normal network environment and the weak network environment may be analyzed. For example, when the analog signal strength, the data transmission rate or the bandwidth are analyzed and the like, under the condition that the analog signal strength, the data transmission rate or the bandwidth are greater than a preset threshold and smaller than another preset threshold, various communication conditions in the communication process of the terminal equipment include a data receiving and transmitting success rate or data information integrity and the like. Therefore, the communication capability of the terminal equipment can be judged through the communication performance of the terminal equipment under the simulated weak network environment and the normal network environment.
The data to be detected is the data in the communication process extracted through communication between the terminal equipment and the target server under the simulated weak network environment. The data to be detected may be data including core information in communication data, for example, state information that the terminal device needs to report to the target server, and the like. In addition to the data containing the core information, the communication data between the terminal device and the target server may also contain some other information, such as verification information. When packet loss occurs in the communication process in the weak network environment, data of non-core information such as check information may be lost in communication data, and the data including the core information is successfully sent to a destination, it can be shown that the terminal device in the weak network environment can still meet the basic communication requirement.
The routing device can present relevant information reflecting the communication capability of the terminal device, namely the communication capability information according to the data to be detected. The tester can know the communication capability of the terminal equipment by analyzing the communication capability information.
For the above simulation of the weak network environment, the embodiment of the present disclosure is implemented by configuring network parameters for the routing device. The routing equipment is applied to the normal communication scene of the terminal equipment and the target server, provides a routing function for the terminal equipment and the target server, and forwards interactive data. Therefore, when testing is needed, the routing equipment can directly use the pre-configured limited network parameters to realize the simulation of the weak network environment.
The defined network parameters for simulating the weak network environment may be configured through other terminals connected to the routing device, for example, a test terminal of a tester; the configuration may also be performed directly on the routing device by a tester, which is not limited herein.
Since the routing device is always located in the communication network of the terminal device, different testers can configure the network parameters. The time of use of the defined network parameters may also be set, for example, by performing an automatic test at intervals. As another example, automatic testing is triggered by specific events, including: the network idle time is larger than a preset threshold value or the terminal equipment reports abnormal data and other preset trigger events. The routing device uses the limited network parameters during testing and restores to normal network parameters after testing is completed. Therefore, automatic testing can be performed at any time in the normal communication process of the terminal equipment, so that more test data in different time periods can be collected conveniently, and the communication capacity of the terminal equipment can be analyzed.
Therefore, by the method of the embodiment of the disclosure, the routing device simulates the network parameters in the weak network environment and forwards the communication data between the terminal device and the target server, which is not limited by the weak network testing tool for testing the computer. The routing equipment can be connected with different terminals of a plurality of testers, so that a plurality of testers can test simultaneously or detect in real time at any time.
In some embodiments, as shown in fig. 2, the method further comprises:
step S201, sending a configuration request to a test server;
step S202, receiving configuration information sent by the test server according to the configuration request;
step S203, determining the network parameter of the routing device according to the configuration information.
The test server may provide the routing device with the configuration of the network parameters defined above, and send configuration information to the routing device. The configuration information carries network parameters required by the test. The routing device may adjust the network parameters to defined parameter values according to the received configuration information.
The routing device can actively initiate a configuration request to the test server according to the requirement. For example, when a test is required, a configuration request is initiated to obtain configuration information of network parameters required by the test, and then the network parameters are configured. The test time of the routing device can be set.
Therefore, through the matching of the routing equipment and the test server, in the normal communication process of the terminal equipment, the weak network environment is simulated according to the specified time or period, so that the communication capacity of the terminal equipment can be tested at any time, a test network does not need to be independently established, and the control is convenient.
In some embodiments, the network parameters include: an uplink network parameter; the communication data includes at least: uplink data in uplink communication;
the forwarding the communication data between the terminal device and the target server according to the pre-configured network parameters includes:
and forwarding the uplink data sent by the terminal equipment to the target server according to the uplink network parameters.
Here, the uplink data may be data sent by the terminal device and sent to the target server, and includes: the data sent by the terminal device to the routing device and the data sent by the routing device to the target server. Correspondingly, the data transmitted by the target server to the terminal device is downlink data, and the method comprises the following steps: the data sent by the target server to the routing device and the data sent by the routing device to the terminal device.
The communication between the routing device and the target server includes an uplink communication process in which the routing device sends communication data to the target server. If the uplink communication capability of the terminal equipment needs to be tested, uplink network parameters simulating the weak network environment can be configured. According to the process that the terminal device sends the communication data to the target server under the simulated weak network environment, the capability of the terminal device for sending the data, namely the uplink communication capability, can be analyzed and obtained.
For some terminal devices, only one-way uplink communication is performed without receiving data such as a response or an instruction of a target server. Alternatively, the ability of the terminal device to receive data is not important and does not require excessive analysis and adjustment. At this time, the communication capability of the terminal device can be tested under the simulated weak network environment only by limiting the network parameters of the uplink communication without configuring the downlink network parameters.
In some embodiments, the forwarding, according to the uplink network parameter, the uplink data sent by the terminal device to the target server includes:
receiving the uplink data sent by the terminal equipment by using the uplink bandwidth limited by the uplink network parameters;
performing communication abnormity simulation on data packets in the uplink data according to the uplink network parameters to obtain simulated abnormal uplink data, wherein at least one data packet in the simulated abnormal uplink data is different from the data packet in the original uplink data sent by the terminal equipment;
and sending the simulated abnormal uplink data to the target server by using the uplink bandwidth.
Here, the uplink network parameters include limitation of uplink bandwidth, that is, bandwidth limitation is performed on the routing device receiving the uplink data sent by the terminal device and sending the uplink data to the target server, so that a network environment under a specified bandwidth can be simulated. Of course, in addition to the bandwidth limitation, simulation of the communication state such as the rate limitation and the simulation delay can be performed. In addition, different degrees of signal interference may be added.
Meanwhile, the routing equipment can simulate the conditions of various abnormal data such as packet loss, packet damage or packet repetition according to the uplink network parameters, process the received uplink data to obtain simulated abnormal uplink data, and then send the simulated abnormal uplink data to the target server, so that the simulation of the conditions of the abnormal data is realized, and the capability of the terminal equipment for sending the data in the weak network environment is tested.
In some embodiments, the network parameters include: a downlink network parameter; the communication data includes at least: downlink data in downlink communication generated based on the communication request; the forwarding the communication data between the terminal device and the target server according to the preconfigured network parameters includes:
and forwarding the downlink data sent by the target server to the terminal equipment according to the downlink network parameters.
Similar to the uplink communication, the network environment of the downlink communication can be simulated, and limited downlink network parameters are configured, so that the capability of the terminal equipment for receiving data is tested.
In some embodiments, the forwarding, according to the downlink network parameter, the downlink data sent by the target server based on the communication request to the terminal device includes:
receiving the downlink data sent by the target server by using the downlink bandwidth limited by the downlink network parameters;
performing communication abnormity simulation on data packets in the downlink data according to the downlink network parameters to obtain simulated abnormal downlink data, wherein at least one data packet in the simulated abnormal downlink data is different from the data packet in the downlink data sent by the target server;
and sending the simulated abnormal downlink data to the terminal equipment by using the downlink bandwidth.
Similar to the uplink communication, the routing device receives downlink data sent to the terminal device by the target server based on the limited downlink bandwidth, and forwards the downlink data to the terminal device. In the forwarding process, the conditions of data abnormality such as packet loss, packet damage or packet repetition can be simulated, and the downlink data received from the target server is processed to obtain simulated downlink data, so that the simulation of the data abnormality condition is realized, and the capability of the terminal equipment for receiving the data in the weak network environment is tested.
Embodiments of the present disclosure also provide the following examples:
the terminal equipment can establish communication connection with the server through the routing equipment and carry out data interaction. In the case of a poor network environment, if the communication capability of the terminal device is weak, the basic requirement for transmitting or receiving data may not be guaranteed. Thus, various network environments may be simulated, including: normal network environment such as 2G, 3G, 4G and WIFI also can simulate abominable network environment, include: and the weak network environments such as delay, packet loss, packet repetition and packet damage are used for testing the performances of the terminal equipment in various different environments, analyzing the communication capacity of the terminal equipment and further optimizing the communication capacity of the terminal equipment.
In some cases, a connection can be established with the terminal device through a test terminal of a tester having communication capability (such as having a wireless network card), and then the weak network environment can be simulated through a weak network test tool configured by the test terminal. However, this method is complicated in operation and requires a separate operation by a tester.
Therefore, in the embodiment of the disclosure, the weak network environment is simulated through the routing device, a tester does not need to use a separate test terminal for testing, a test flow can be inserted in a normal communication process, and simultaneous testing of multiple persons can be realized.
The terminal device accesses the internet through the routing device and establishes a data channel with the target server. The test server, i.e., the test cloud, may provide the configuration of the weak network test for the routing device. When a test is needed, the routing device obtains the configuration from the test server. These configurations include: the parameters of the uplink and downlink communication of the terminal device, such as bandwidth and rate, also include simulation parameters of packet loss, packet repetition, packet damage and the like. A tc tool (traffic control tool) may be provided on the routing device. The flow control tool of the routing device may perform simulation of the network environment according to the configuration parameters. When the terminal device sends data to the target server, the data passes through the routing device, and when the data needs to be tested, the routing device controls the flow of the data according to the configured network parameters, so that the data communication under the simulated network environment is realized.
As shown in fig. 3, the above method can be implemented by the following steps:
s301, the routing equipment acquires the configuration of the weak network test from a test server;
step S302, the test server returns the configuration of the weak network test;
step S303, the terminal device sends a data request to the target server, for example: an http request;
step S304, the routing equipment selects to carry out speed limiting, delay, packet loss simulation and other operations on the outlet flow of the terminal equipment according to the configuration of the weak network test;
step S305, the routing equipment forwards the processed data request to a target server;
step S306, the target server returns a data response to the routing equipment;
step S307, the routing equipment selects to carry out speed limit, delay, packet loss simulation and other operations on the inlet flow of the terminal equipment according to the configuration of the weak network test;
and step S308, the routing equipment returns the processed data response to the terminal equipment.
The analysis of the communication capacity of the terminal equipment can be realized by analyzing various data in the communication process, so that various parameters, settings and the like of the terminal equipment are specifically adjusted, and the communication capacity of the terminal equipment is optimized.
Fig. 4 is a block diagram illustrating a routing device in accordance with an example embodiment. Referring to fig. 4, the routing device 400 includes a forwarding module 410, a first obtaining module 420, and a first determining module 430.
A forwarding module 410, configured to forward communication data between the terminal device and the target server according to a preconfigured network parameter;
a first obtaining module 420, configured to obtain data to be detected in the communication data;
the first determining module 430 is configured to determine, according to the data to be detected, communication capability information of the terminal device in a network environment defined by the network parameters.
In some embodiments, the routing device further comprises:
the first receiving module is used for receiving the configuration information sent by the test server;
and the second determining module is used for determining the network parameters according to the configuration information.
In some embodiments, the network parameters include: an uplink network parameter; the communication data includes at least: uplink data in uplink communication;
the forwarding module comprises:
and the first forwarding sub-module is used for forwarding the uplink data sent by the terminal equipment to the target server according to the uplink network parameters.
In some embodiments, the first forwarding sub-module comprises:
a first receiving submodule, configured to receive the uplink data sent by the terminal device by using an uplink bandwidth defined by the uplink network parameter;
the first simulation submodule is used for performing communication abnormity simulation on data packets in the uplink data according to the uplink network parameters to obtain simulated abnormal uplink data, wherein at least one data packet in the simulated abnormal uplink data is different from the data packet in the original uplink data sent by the terminal equipment;
and the first sending submodule is used for sending the simulated abnormal uplink data to the target server by using the uplink bandwidth.
In some embodiments, the network parameters include: a downlink network parameter; the communication data includes at least: downlink data in downlink communication generated based on the uplink data;
the forwarding module comprises:
and the second forwarding submodule is used for forwarding the downlink data sent by the target server to the terminal equipment according to the downlink network parameters.
In some embodiments, the second forwarding sub-module includes:
a second receiving submodule, configured to receive the downlink data sent by the target server by using a downlink bandwidth defined by the downlink network parameter;
the second simulation submodule is used for performing communication abnormity simulation on data packets in the downlink data according to the downlink network parameters to obtain simulated abnormal downlink data, wherein at least one data packet in the simulated abnormal downlink data is different from the data packet in the downlink data sent by the target server;
and the second sending submodule is used for sending the simulated abnormal downlink data to the terminal equipment by using the downlink bandwidth.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating a physical structure of a terminal device 500 according to an exemplary embodiment. For example, the terminal device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and so forth.
Referring to fig. 5, terminal device 500 may include one or more of the following components: processing component 501, memory 502, power component 503, multimedia component 504, audio component 505, input/output (I/O) interface 506, sensor component 507, and communication component 508.
The processing component 501 generally controls the overall operation of the terminal device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 501 may include one or more processors 510 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 501 may also include one or more modules that facilitate interaction between the processing component 501 and other components. For example, the processing component 501 may include a multimedia module to facilitate interaction between the multimedia component 504 and the processing component 501.
The memory 510 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on terminal device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 502 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 503 provides power to the various components of the terminal device 500. The power supply component 503 may include: a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to terminal device 500.
The multimedia component 504 comprises a screen providing an output interface between said terminal device 500 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 504 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal device 500 is in an operation mode, such as a photographing mode or a video mode. Each front camera and/or rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 505 is configured to output and/or input audio signals. For example, the audio component 505 includes a Microphone (MIC) configured to receive an external audio signal when the terminal apparatus 500 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 510 or transmitted via the communication component 508. In some embodiments, audio component 505 further comprises a speaker for outputting audio signals.
The I/O interface 506 provides an interface between the processing component 501 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 507 includes one or more sensors for providing various aspects of status assessment for the terminal device 500. For example, the sensor component 507 may detect the open/closed status of the terminal device 500, the relative positioning of components such as a display and keypad of the terminal device 500, the sensor component 507 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the terminal device 500, and a change in the temperature of the terminal device 500. The sensor assembly 507 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 507 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 507 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 508 is configured to facilitate wired or wireless communication between the terminal device 500 and other devices. The terminal device 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 508 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 508 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In an exemplary embodiment, the terminal device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 502 comprising instructions, executable by the processor 510 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform any of the methods provided in the above embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (14)

1. A communication test method of a terminal device is characterized in that the method is applied to a routing device and comprises the following steps:
forwarding communication data between the terminal equipment and a target server according to a pre-configured network parameter;
acquiring data to be detected in the communication data;
and determining the communication capacity information of the terminal equipment under the network environment defined by the network parameters according to the data to be detected.
2. The method of claim 1, further comprising:
sending a configuration request to a test server;
receiving configuration information sent by the test server according to the configuration request;
and determining the network parameters of the routing equipment according to the configuration information.
3. The method of claim 2, wherein the network parameters comprise: an uplink network parameter; the communication data includes at least: uplink data in uplink communication;
the forwarding the communication data between the terminal device and the target server according to the pre-configured network parameters includes:
and forwarding the uplink data sent by the terminal equipment to the target server according to the uplink network parameters.
4. The method according to claim 3, wherein the forwarding the uplink data sent by the terminal device to the target server according to the uplink network parameter comprises:
receiving the uplink data sent by the terminal equipment by using the uplink bandwidth limited by the uplink network parameters;
performing communication abnormity simulation on data packets in the uplink data according to the uplink network parameters to obtain simulated abnormal uplink data, wherein at least one data packet in the simulated abnormal uplink data is different from the data packet in the original uplink data sent by the terminal equipment;
and sending the simulated abnormal uplink data to the target server by using the uplink bandwidth.
5. The method according to any of claims 2 to 4, wherein the network parameters comprise: a downlink network parameter; the communication data includes at least: downlink data in downlink communication generated based on the communication request; the forwarding the communication data between the terminal device and the target server according to the preconfigured network parameters includes:
and forwarding the downlink data sent by the target server to the terminal equipment according to the downlink network parameters.
6. The method according to claim 5, wherein the forwarding the downlink data sent by the target server based on the communication request to the terminal device according to the downlink network parameter comprises:
receiving the downlink data sent by the target server by using the downlink bandwidth limited by the downlink network parameters;
performing communication abnormity simulation on data packets in the downlink data according to the downlink network parameters to obtain simulated abnormal downlink data, wherein at least one data packet in the simulated abnormal downlink data is different from the data packet in the downlink data sent by the target server;
and sending the simulated abnormal downlink data to the terminal equipment by using the downlink bandwidth.
7. A routing device, comprising:
the forwarding module is used for forwarding communication data between the terminal equipment and the target server according to the pre-configured network parameters;
the first acquisition module is used for acquiring data to be detected in the communication data;
and the first determining module is used for determining the communication capacity information of the terminal equipment under the network environment defined by the network parameters according to the data to be detected.
8. The routing device of claim 7, wherein the routing device further comprises:
the first receiving module is used for receiving the configuration information sent by the test server;
and the second determining module is used for determining the network parameters according to the configuration information.
9. The routing device of claim 8, wherein the network parameters comprise: an uplink network parameter; the communication data includes at least: uplink data in uplink communication;
the forwarding module comprises:
and the first forwarding sub-module is used for forwarding the uplink data sent by the terminal equipment to the target server according to the uplink network parameters.
10. The routing device of claim 9, wherein the first forwarding sub-module comprises:
a first receiving submodule, configured to receive the uplink data sent by the terminal device by using an uplink bandwidth defined by the uplink network parameter;
the first simulation submodule is used for performing communication abnormity simulation on data packets in the uplink data according to the uplink network parameters to obtain simulated abnormal uplink data, wherein at least one data packet in the simulated abnormal uplink data is different from the data packet in the original uplink data sent by the terminal equipment;
and the first sending submodule is used for sending the simulated abnormal uplink data to the target server by using the uplink bandwidth.
11. The routing device according to any of claims 7 to 10, wherein the network parameters comprise: a downlink network parameter; the communication data includes at least: downlink data in downlink communication generated based on the uplink data;
the forwarding module comprises:
and the second forwarding submodule is used for forwarding the downlink data sent by the target server to the terminal equipment according to the downlink network parameters.
12. The routing device of claim 11, wherein the second forwarding sub-module comprises:
a second receiving submodule, configured to receive the downlink data sent by the target server by using a downlink bandwidth defined by the downlink network parameter;
the second simulation submodule is used for performing communication abnormity simulation on data packets in the downlink data according to the downlink network parameters to obtain simulated abnormal downlink data, wherein at least one data packet in the simulated abnormal downlink data is different from the data packet in the downlink data sent by the target server;
and the second sending submodule is used for sending the simulated abnormal downlink data to the terminal equipment by using the downlink bandwidth.
13. A communication test apparatus of a terminal device, characterized in that the apparatus comprises at least: a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, and the executable instructions perform the steps of the communication testing method of the terminal device provided by any one of the above claims 1 to 6.
14. A non-transitory computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, implement the steps in the communication testing method of the terminal device provided in any one of claims 1 to 6.
CN201911284093.4A 2019-12-13 2019-12-13 Communication test method and device for terminal equipment, routing equipment and storage medium Pending CN111010314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911284093.4A CN111010314A (en) 2019-12-13 2019-12-13 Communication test method and device for terminal equipment, routing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911284093.4A CN111010314A (en) 2019-12-13 2019-12-13 Communication test method and device for terminal equipment, routing equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111010314A true CN111010314A (en) 2020-04-14

Family

ID=70114644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911284093.4A Pending CN111010314A (en) 2019-12-13 2019-12-13 Communication test method and device for terminal equipment, routing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111010314A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113067753A (en) * 2021-04-01 2021-07-02 北京有竹居网络技术有限公司 Method, device, equipment and storage medium for detecting connectivity of mobile data link
CN114430567A (en) * 2020-10-28 2022-05-03 北京奇艺世纪科技有限公司 Network detection model evaluation method, device and system and electronic equipment
CN114697245A (en) * 2020-12-30 2022-07-01 深圳Tcl新技术有限公司 Network testing method and device, computer readable storage medium and terminal equipment
CN115021831A (en) * 2022-06-22 2022-09-06 北京有竹居网络技术有限公司 Weak network testing method, device, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090307531A1 (en) * 2008-03-04 2009-12-10 Infosys Technologies Limited System and method for testing an application installed on a wireless communication device
CN105808427A (en) * 2016-03-02 2016-07-27 厦门美图移动科技有限公司 Test method, device and system of mobile terminal software
CN106686640A (en) * 2016-12-07 2017-05-17 珠海金山网络游戏科技有限公司 System used for constructing and configuring weak network system environment and method thereof
CN106888461A (en) * 2016-06-08 2017-06-23 阿里巴巴集团控股有限公司 The construction method and equipment of a kind of vulnerable network environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090307531A1 (en) * 2008-03-04 2009-12-10 Infosys Technologies Limited System and method for testing an application installed on a wireless communication device
CN105808427A (en) * 2016-03-02 2016-07-27 厦门美图移动科技有限公司 Test method, device and system of mobile terminal software
CN106888461A (en) * 2016-06-08 2017-06-23 阿里巴巴集团控股有限公司 The construction method and equipment of a kind of vulnerable network environment
CN106686640A (en) * 2016-12-07 2017-05-17 珠海金山网络游戏科技有限公司 System used for constructing and configuring weak network system environment and method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114430567A (en) * 2020-10-28 2022-05-03 北京奇艺世纪科技有限公司 Network detection model evaluation method, device and system and electronic equipment
CN114430567B (en) * 2020-10-28 2024-02-20 北京奇艺世纪科技有限公司 Network detection model evaluation method, device and system and electronic equipment
CN114697245A (en) * 2020-12-30 2022-07-01 深圳Tcl新技术有限公司 Network testing method and device, computer readable storage medium and terminal equipment
CN113067753A (en) * 2021-04-01 2021-07-02 北京有竹居网络技术有限公司 Method, device, equipment and storage medium for detecting connectivity of mobile data link
CN115021831A (en) * 2022-06-22 2022-09-06 北京有竹居网络技术有限公司 Weak network testing method, device, system, equipment and storage medium
CN115021831B (en) * 2022-06-22 2024-03-12 北京有竹居网络技术有限公司 Weak network test method, device, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111010314A (en) Communication test method and device for terminal equipment, routing equipment and storage medium
CN106210797B (en) Network live broadcast method and device
CN110868459B (en) Data transmission method, device, terminal and storage medium
CN106790043B (en) Method and device for sending message in live broadcast application
KR101727249B1 (en) Method, device, program and recording medium for testing terminal
CN109714415B (en) Data processing method and device
US10334282B2 (en) Methods and devices for live broadcasting based on live broadcasting application
KR101859314B1 (en) Data processing method, data processing device, program, recording medium, terminal and smart device
CN110502444B (en) Testing method and testing device for image processing algorithm
CN110740131B (en) Data processing method and device, electronic equipment and storage medium
CN111294850B (en) Measurement reporting method and device, and terminal equipment information acquisition method and device
CN107562500B (en) Debugging device, method and equipment
CN111654354A (en) Detection method, device and storage medium of Maximum Transmission Unit (MTU)
CN109040651B (en) Video communication method and device
CN110933773B (en) Link monitoring method and device
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN112019948B (en) Intercommunication method for intercom equipment, intercom equipment and storage medium
CN110769311A (en) Method, device and system for processing live data stream
CN106209500A (en) For the method and apparatus detecting the network bandwidth
CN107277422B (en) Video call method, device and system
CN107039054B (en) The way of recording and device
CN109831538A (en) A kind of message treatment method, device, server, terminal and medium
CN114430370B (en) Method, device, equipment and storage medium for determining network slice
CN111245914B (en) Analog communication method and device of terminal equipment and storage medium
CN110995743B (en) Security testing method and device for terminal equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200414