CN114039895B - Method and device for testing data transmission rate - Google Patents

Method and device for testing data transmission rate Download PDF

Info

Publication number
CN114039895B
CN114039895B CN202111204595.9A CN202111204595A CN114039895B CN 114039895 B CN114039895 B CN 114039895B CN 202111204595 A CN202111204595 A CN 202111204595A CN 114039895 B CN114039895 B CN 114039895B
Authority
CN
China
Prior art keywords
data
duration
threshold
transmitting
nth
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
CN202111204595.9A
Other languages
Chinese (zh)
Other versions
CN114039895A (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.)
Shenzhen Neoway Technology Co Ltd
Original Assignee
Shenzhen Neoway 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 Shenzhen Neoway Technology Co Ltd filed Critical Shenzhen Neoway Technology Co Ltd
Priority to CN202111204595.9A priority Critical patent/CN114039895B/en
Publication of CN114039895A publication Critical patent/CN114039895A/en
Application granted granted Critical
Publication of CN114039895B publication Critical patent/CN114039895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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 application discloses a method and a device for testing data transmission rate, wherein the method comprises the following steps: the testing device sends the N-th data to the narrow-band internet of things (NB-IoT) equipment; the testing device acquires a first duration time, wherein the first duration time is the duration time of power consumption current for transmitting the Nth data; if the first duration is greater than the first threshold, or the difference between the first duration and the second duration is greater than the second threshold, determining a data transmission rate of the NB-IoT device according to the data amount of the nth data and the first duration; the second duration is the duration of the power consumption current for transmitting the N-1 data, and the data quantity of the N-1 data is smaller than that of the N data. According to the embodiment of the application, the data with the gradually increased data volume is sent to the NB-IoT device until the data reaches the saturated state, and the data transmission rate of the NB-IoT device in the state is determined, so that the test cost of the data transmission rate can be reduced.

Description

Method and device for testing data transmission rate
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for testing a data transmission rate.
Background
The narrowband internet of things (narrow band internet of things, NB-IoT) is an important branch of the internet of everything because of its low power consumption, wide coverage, low cost and other advantages, which have wide application in smart cities, utilities, medical health and other aspects. The need for parametric testing of NB-IoT rates is also increasing.
Currently, the rate test scheme of NB-IoT application layer employs a radio frequency integrated test meter. The meter is equipped with application layer rate test permissions (license) and provides the functionality of an emulated base station. During testing, the meter is conductively connected to the device under test to obtain the data transmission rate at which the data packets are sent. The scheme is expensive to test because of the need for support of the radio frequency integrated test meter and the test permission.
Disclosure of Invention
The embodiment of the application provides a method and a device for testing data transmission rate, which can reduce the test cost of the data transmission rate.
In a first aspect, an embodiment of the present application provides a method for testing a data transmission rate, where the method includes: transmitting the N data to the narrow-band internet of things (NB-IoT) device, wherein N is a positive integer and is greater than or equal to 2; acquiring a first duration, wherein the first duration is the duration of power consumption current for transmitting the Nth data; if the first duration is greater than the first threshold, or the difference between the first duration and the second duration is greater than the second threshold, determining a data transmission rate of the NB-IoT device according to the data amount of the nth data and the first duration; the second duration is the duration of the power consumption current for transmitting the N-1 data, and the data quantity of the N-1 data is smaller than that of the N data. Based on the method described in the first aspect, the data transmission rate of the NB-IoT device may be determined by sending data to the NB-IoT device with increasing amounts of data and determining whether the data transmission reaches a threshold by the duration of the current consumption when the data is sent. The method avoids the limitation of the radio frequency comprehensive test instrument and the test license, and can reduce the test cost of the data transmission rate.
With reference to the first aspect, in one possible implementation manner, the method further includes: and if the first duration is not greater than the first threshold value or the difference value between the first duration and the second duration is not greater than the second threshold value, transmitting the (n+1) -th data to the NB-IoT device, wherein the data amount of the (n+1) -th data is greater than the data amount of the (N) -th data. Based on this possible implementation, it may be achieved that the data amount of the transmitted data continues to be increased when the data transmission does not reach the threshold.
With reference to the first aspect, in one possible implementation manner, a difference between the data amount of the n+1th data and the data amount of the N data is a preset value. Based on the possible implementation manner, when the n+1th data is transmitted, the data quantity of the n+1th data can be flexibly set according to the preset difference value between the n+1th data and the n+1th data.
With reference to the first aspect, in one possible implementation manner, the method further includes: the starting point and the ending point of the first duration are the time points at which the power consumption current for transmitting the Nth data is not less than the critical point of the third threshold current; the start point and the end point of the second duration are points in time at which the power consumption current for transmitting the N-1 data is not less than the critical point of the third threshold current. Based on this possible implementation, the starting point and the ending point of the first duration and the second duration may be determined, and the sizes of both may be obtained.
With reference to the first aspect, in one possible implementation manner, before acquiring the first duration, the method further includes: judging whether the N-th data needs to be retransmitted to the NB-IoT device based on whether the return information is received; the return information is used to indicate that the server received the nth data forwarded from the NB-IoT device. Based on this possible implementation, it may be determined whether the data transmission was successful.
In a second aspect, an embodiment of the present application provides a method for testing a data transmission rate, where the method includes: receiving the N-th data sent by the narrow-band internet of things (NB-IoT) device, wherein N is a positive integer; and sending return information to the NB-IoT device according to the N-th data, wherein the return information is used for indicating the server to receive the N-th data forwarded by the NB-IoT device. Based on the method described in the second aspect, whether the data transmission is successful or not can be judged based on the returned information, and accuracy of the data transmission rate test is improved.
In a third aspect, an embodiment of the present application provides a testing apparatus, where the testing apparatus includes a transceiver unit, an obtaining unit, and a processing unit, where: the receiving and transmitting unit is used for transmitting the N-th data to the narrowband internet of things NB-IoT device, wherein N is a positive integer and is more than or equal to 2; an acquisition unit configured to acquire a first duration, the first duration being a duration of a power consumption current for transmitting the nth data; a processing unit configured to determine a data transmission rate of the NB-IoT device according to the data amount of the nth data and the first duration if the first duration is greater than a first threshold or a difference between the first duration and the second duration is greater than a second threshold; the second duration is the duration of the power consumption current for transmitting the N-1 data, and the data quantity of the N-1 data is smaller than that of the N data. Based on the apparatus described in the third aspect, the testing apparatus may determine the data transmission rate of the NB-IoT device by sending data with gradually increasing amounts of data to the NB-IoT device and determining whether the data transmission reaches a threshold by a duration of a current consumption when the data is sent. The device avoids the limitation of a radio frequency comprehensive test instrument and a test license, and can reduce the test cost of the data transmission rate.
With reference to the third aspect, in one possible implementation manner, the transceiver unit is further configured to send, to the NB-IoT device, n+1th data if the first duration is not greater than the first threshold or a difference between the first duration and the second duration is not greater than the second threshold, the data amount of the n+1th data being greater than the data amount of the N-th data. Based on this possible implementation, the test device may implement to continue to increase the data amount of the transmitted data when the data transmission does not reach the threshold.
With reference to the third aspect, in one possible implementation manner, a difference between the data amount of the n+1th data and the data amount of the N-th data is a preset value. Based on the possible implementation manner, when the test equipment sends the (n+1) th data, the data quantity of the (n+1) th data can be flexibly set according to the preset difference value between the (n+1) th data and the (N) th data.
With reference to the third aspect, in one possible implementation manner, the start point and the end point of the first duration are time points at which the power consumption current for transmitting the nth data is not less than a critical point of the third threshold current; the start point and the end point of the second duration are points in time at which the power consumption current for transmitting the N-1 data is not less than the critical point of the third threshold current. Based on this possible implementation, the testing device may determine the starting point and the ending point of the first duration and the second duration, thereby obtaining the sizes of both.
With reference to the third aspect, in one possible implementation manner, before acquiring the first duration, the processing unit is further configured to determine whether the nth data needs to be retransmitted to the NB-IoT device based on whether the return information is received; the return information is used to indicate that the server received the nth data forwarded from the NB-IoT device. Based on the possible implementation manner, the testing device can reduce measurement errors caused by the fact that the data packet cannot be received normally.
In a fourth aspect, an embodiment of the present application provides a server, where the server includes a transceiver unit and a processing unit, and the server includes: the receiving and transmitting unit is used for receiving the N-th data forwarded by the narrowband internet of things NB-IoT device, wherein N is a positive integer and is more than or equal to 2; the receiving and transmitting unit is further used for sending return information to the NB-IoT device according to the Nth data, wherein the return information is used for indicating the server to receive the Nth data forwarded by the NB-IoT device; and the processing unit is used for calling the transceiving unit to send the return information to the NB-IoT device according to the Nth data. Based on the server described in the fourth aspect, the server may receive the data forwarded by the NB-IoT device, generate return information, and transmit the return information back to the test apparatus, and the test apparatus may determine whether the data transmission is successful based on the return information, so as to improve accuracy of the data transmission rate test.
In a fifth aspect, an embodiment of the present application provides a communication apparatus including a memory and a processor; a memory for storing a computer program; a processor for invoking a computer program from a memory, causing the apparatus to perform any one of the methods of the first or second aspects above.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having stored therein computer readable instructions which, when run on a communications device of the fifth aspect described above, cause the communications device to perform any one of the methods of the first or second aspects described above.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described.
Fig. 1 is a schematic diagram of a data transmission rate testing system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a data transmission rate testing system according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a data transmission rate testing system according to another embodiment of the present application;
fig. 4 is a flowchart of a method for testing a data transmission rate according to an embodiment of the present application;
fig. 5 is a schematic diagram of NB-IoT device power consumption current according to an embodiment of the present application.
FIG. 6 is a flow chart of a method for testing data transmission rate according to another embodiment of the present application;
FIG. 7 is a schematic diagram of a testing device according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a server according to an embodiment of the present application;
fig. 9 is a schematic diagram of a communication device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
Referring to fig. 1, an architecture diagram of a data transmission rate testing system is provided in an embodiment of the present application, where the system includes a testing apparatus, NB-IoT devices, and a server. The testing device comprises a terminal device and a programmable power supply. These devices are described in detail below.
The terminal device, also called a terminal, may be a device with transceiving and digital analysis processing functions. The terminal device is connected with the NB-IoT device and the programmable power supply in a wired or wireless connection mode. In the embodiment of the application, the terminal equipment is used for sending data to the NB-IoT equipment and acquiring the real-time power consumption current of the NB-IoT equipment in the data transmission rate test. In some embodiments, the terminal device may send data to the NB-IoT device via a serial asynchronous transceiver protocol (universal asynchronous receiver/transmitter, UART), and the terminal device may obtain real-time current consumption of the NB-IoT device from the programmable power source via a general-purpose interface bus (GPIB). The terminal device may be a mobile phone, a tablet computer or other computers with transceiver functions. Or a device, such as a chip system, capable of supporting the terminal device to realize the function, which may be installed in the terminal device.
And the NB-IoT device is a detected narrowband internet of things electronic device and is used for receiving data from the terminal device through the UART and forwarding the data to the server. The NB-IoT device communicates with a server over a communication link. Transmission media for the communications links include, but are not limited to, twisted pair wires, optical fibers, and microwaves. Illustratively, the NB-IoT devices may be electronic devices in the manufacturing industry, smart grids, smart cities (smart cities), smart households (smart home), and the like.
And the programmable power supply is used for supplying power to the NB-IoT device and returning the real-time power consumption current of the NB-IoT device to the terminal device through the GPIB.
The server is used for receiving the data forwarded by the NB-IoT device through the communication link and generating return information, wherein the return information is transmitted back to the NB-IoT device through the communication link and then transmitted back to the terminal device through the UART by the NB-IoT device. In the embodiment of the application, the terminal equipment can determine whether the data transmission is successful or not and whether the data needs to be retransmitted or not based on the return information.
Referring to fig. 2, an architecture diagram of yet another data transmission rate testing system according to an embodiment of the present application includes a testing apparatus, NB-IoT devices, and a server. The test device is a terminal device that directly powers the NB-IoT device and obtains real-time power consumption current through the UART. The remaining description of the terminal device, NB-IoT device, server is referred to the corresponding description of the embodiment shown in fig. 1.
Referring to fig. 3, an architecture diagram of another data transmission rate testing system according to an embodiment of the present application includes a testing apparatus, NB-IoT devices, and a server, where the testing apparatus is a terminal device. The NB-IoT device uses a battery or other self-powered means to power and returns real-time power consumption current to the terminal device through UART. The remaining description of the terminal device, NB-IoT device, server is referred to the corresponding description of the embodiment shown in fig. 1.
Referring to fig. 4, a flowchart of a method for testing a data transmission rate according to an embodiment of the present application is shown, where the method includes steps 401 to 404. It should be noted that the test device in the following description may be the test device in the system architecture shown in fig. 1, or may be the test device in the above-mentioned multiple optional system frameworks. Wherein:
401. the testing device sends the nth data to the narrowband internet of things NB-IoT device.
In the embodiment of the application, the nth data refers to data transmitted for the nth time, N is a positive integer, and N is greater than or equal to 2. The nth data is used to distinguish between the difference in the amount of data transmitted each time in actual operation. The packet type of the transmitted data is illustratively user datagram protocol (user datagram protocol, UDP).
402. The NB-IoT device sends the nth data to the server.
After the NB-IoT device receives the nth data from the test apparatus, the NB-IoT device forwards the nth data to the server.
403. The test device obtains a first duration, which is the duration of the power consumption current for transmitting the nth data.
In the embodiment of the present application, the first duration is a time difference between a start point and an end point of a duration of the power consumption current for transmitting the nth data. The starting point and the ending point of the first duration are time points at which the power consumption current for transmitting the nth data is not less than the critical point of the third threshold current. The third threshold current is a current consumption of the NB-IoT device when the test apparatus is in an idle state in which data is not transmitted. For example, the current value of the third threshold current is typically less than 5mA. For example, as shown in fig. 5, if the third threshold current takes a value of 4mA, the start point and the end point of the first duration are time points at which the critical point where the consumption current is not less than 4mA, i.e., t0 and t1. The current consumption in the adjacent interval before the start point t0 and after the end point t1 of the first duration is 4mA, the current consumption is not less than 4mA in the first duration, and the magnitude of the first duration is the difference between t0 and t1.
The test apparatus obtains a first duration based on real-time power consumption current returned by a power supply device of the NB-IoT device. In the system architecture described in fig. 1, the NB-IoT device is powered by a programmable power supply, which returns the real-time power consumption current of the NB-IoT device to the terminal device in the test apparatus, and the terminal device determines the starting point and the ending point of the first duration and determines the magnitude of the first duration according to the real-time power consumption current and the preset third threshold current. In yet another example, corresponding to the system architecture described in fig. 2 and 3 above, the real-time power consumption current of the NB-IoT device may be returned to the terminal device in the test apparatus by the terminal device, the NB-IoT device, respectively, for the terminal device to obtain the first duration.
Optionally, the terminal device in the test apparatus may directly receive a size of the first duration determined by the power supply device of the NB-IoT device, and the specific operation of determining the size of the first duration is performed by the power supply device of the NB-IoT. For example, the size of the first duration may be determined by the programmable power source, the terminal device, the NB-IoT device, respectively, corresponding to the system architecture described in fig. 1, 2, 3 above.
404. If the first duration is greater than the first threshold, or if the difference between the first duration and the second duration is greater than the second threshold, the testing apparatus determines a data transmission rate of the NB-IoT device based on the data amount of the nth data and the first duration.
The second duration is the duration of the power consumption current for transmitting the N-1 data, and the data quantity of the N-1 data is smaller than that of the N data. It is understood that the N-1 data is the data that the testing apparatus transmits for the N-1 time, i.e., the data that the testing apparatus last transmitted to the NB-IoT device. It should be noted that, before executing step 403, the testing device needs to determine the second duration, and the manner in which the testing device determines the second duration may refer to the manner in which the first duration is obtained as described above, which is not described herein. In the embodiment of the application, the data transmission rate is determined when the test rate reaches the saturated state. The rate reaching saturation state refers to a situation that the data volume of the transmitted data reaches the channel capacity at a time and the data needs to be obviously queued, so that the duration of the transmitted data is obviously increased.
In one implementation, if the first duration is greater than the first threshold, it is determined that the duration of transmitting data has significantly increased, and the saturation state is reached this time. For example, if the channel parameters between the test apparatus and the NB-IoT device are obtained in advance in actual operation, the first threshold may be set according to the channel parameters. For example, if the first threshold is set to 4s, the data transmission rate at that time is calculated when the first duration is greater than 4 s. Or if the difference between the first duration and the second duration is greater than the second threshold, determining that the duration of the transmitted data is obviously increased, and reaching the saturated state at the time. For example, when the difference between the first duration 4.2s and the second duration 3.1s is 1.1s greater than the second threshold 1s, it is determined that the transmission data reaches the saturation state this time, e.g., if the data amount of the nth data is 210kbit this time, and the first duration is 4.2s, the data transmission rate of the NB-IoT device is 50kbps.
Optionally, if the first duration is not greater than the first threshold, or a difference between the first duration and the second duration is not greater than the second threshold, determining that the transmission data does not reach the saturation state at this time, and continuously transmitting the n+1st data to the NB-IoT device, where the data size of the n+1st data is greater than the data size of the nth data. It can be appreciated that the n+1th data is the data that the testing apparatus transmits n+1th time, i.e. the data that the testing apparatus transmits next to the NB-IoT device.
In yet another possible implementation, if the first duration is not less than (i.e., greater than or equal to) the first threshold, it is determined that the duration of transmitting the data has increased significantly and reaches the saturated state at this time. Illustratively, if the first threshold is set to 4s, the data transmission rate at this time is calculated when the first duration is equal to 4 s. Or if the difference between the first duration and the second duration is greater than the second threshold, determining that the duration of the transmitted data is obviously increased, and reaching the saturated state at the time. For example, when the difference between the first duration 4.2s and the second duration 3.2s is 1s equal to the second threshold value 1s, it is determined that the transmission data reaches the saturated state at this time. For example, the data size of the nth data is 210kbit and the first duration is 4.2s, the data transmission rate of the NB-IoT device is 50kbps.
Optionally, if the first duration is less than the first threshold, or a difference between the first duration and the second duration is less than the second threshold, it is determined that the transmission data does not reach the saturation state at this time, and the n+1th data is continuously transmitted to the NB-IoT device, where the data size of the n+1th data is greater than the data size of the N data.
In the embodiment of the present application, the difference between the data amount of the n+1th data and the data amount of the N-th data is a preset value. In one possible implementation, the preset value may be a fixed-size value. For example, when the preset value is 0.5kbit, if the transmission rate reaches saturation at 210kbit when the data amount of the transmission data packet reaches saturation, 419 data packets are transmitted altogether, the value interval of the data amount of the transmission data packet is 0.5kbit to 210kbit, and the difference value of the data amounts of the adjacent two transmission data packets is 0.5kbit.
In another possible implementation manner, the preset value may also be a value that changes in a section, and as the number of transmission times increases, the value gradually becomes smaller, so that the transmission rate gradually tends to reach the saturated state. For example, when the preset value is any value in the interval 0 to 2kbit, the data amount of the transmission data can be increased by taking any value in the interval 1.5 to 2kbit as the preset value in the initial stage of transmission, and the magnitude of the first duration is observed and the preset value is gradually reduced so that the transmission rate gradually reaches the saturated state.
In the embodiment described in fig. 4, the testing apparatus determines that the current data transmission rate in the saturated state is the data transmission rate of the NB-IoT device by sending data with successively increasing data amounts to the NB-IoT device until the saturated state is reached. The method avoids the limitation of the radio frequency comprehensive test instrument and the test license, and can reduce the test cost of the data transmission rate.
Referring to fig. 6, a flowchart of another method for testing a data transmission rate according to an embodiment of the present application is shown, where the method includes steps 601 to 606. It should be noted that the test device in the following description may be the test device in the system architecture shown in fig. 1, or may be the test device in the above-mentioned multiple optional system frameworks. Wherein:
601. the testing device sends the nth data to the narrowband internet of things NB-IoT device.
602. The NB-IoT device sends the nth data to the server.
603. And the server sends return information according to the N data, wherein the return information is used for indicating that the N data forwarded by the NB-IoT device is received.
604. The NB-IoT device sends return information to the test apparatus.
In the embodiment of the application, the testing device judges whether the N data needs to be retransmitted to the NB-IoT device based on whether the return information is received; the return information is used to indicate that the server received the nth data forwarded from the NB-IoT device. Because of the unstable channel state or transmission line, the test device can not judge whether the data transmission is successful only according to the power consumption current after each data transmission. Therefore, before the first duration is acquired, whether the data transmission is successful or not is determined through the return information sent by the server, if so, the subsequent operation can be performed, and if not, the subsequent operation is performed after the data is retransmitted.
605. The test device obtains a first duration, which is the duration of the power consumption current for transmitting the nth data.
606. If the first duration is greater than the first threshold, or if the difference between the first duration and the second duration is greater than the second threshold, the testing apparatus determines a data transmission rate of the NB-IoT device based on the data amount of the nth data and the first duration.
The specific implementation manners of step 601 to step 603, step 605 and step 606 can be referred to the specific implementation manners of step 401 to step 404 in the embodiment shown in fig. 4, and are not described herein.
In the embodiment described in fig. 6, the server may send a return message to the NB-IoT device based on the received nth data, which may be used by the testing apparatus to determine whether the data transmission was successful. The method improves the accuracy of the data transmission rate test and reduces the cost of the data transmission rate test.
Referring to fig. 7, a schematic diagram of a testing device according to an embodiment of the present application is provided, where the testing device 70 includes a transceiver unit 701, an obtaining unit 702, and a processing unit 703. Wherein:
the transceiver unit 701 is configured to send nth data to a narrowband internet of things NB-IoT device, where N is a positive integer, and N is greater than or equal to 2;
an acquisition unit 702 configured to acquire a first duration, the first duration being a duration of a power consumption current for transmitting nth data;
a processing unit 703, configured to determine, if the first duration is greater than a first threshold, or a difference between the first duration and the second duration is greater than a second threshold, a data transmission rate of the NB-IoT device according to the data amount of the nth data and the first duration; the second duration is the duration of the power consumption current for transmitting the N-1 data, and the data quantity of the N-1 data is smaller than that of the N data.
In one possible implementation, the transceiver unit 701 is further configured to: and if the first duration is not greater than the first threshold value or the difference value between the first duration and the second duration is not greater than the second threshold value, transmitting the (n+1) -th data to the NB-IoT device, wherein the data amount of the (n+1) -th data is greater than the data amount of the (N) -th data.
In one possible implementation, the difference between the data amount of the n+1th data and the data amount of the N-th data is a preset value.
In one possible implementation manner, the starting point and the ending point of the first duration are time points at which the power consumption current for transmitting the nth data is not less than the critical point of the third threshold current; the start point and the end point of the second duration are points in time at which the power consumption current for transmitting the N-1 data is not less than the critical point of the third threshold current.
In one possible implementation, before acquiring the first duration, the processing unit 703 is further configured to: judging whether the N-th data needs to be retransmitted to the NB-IoT device based on whether the return information is received; the return information is used to indicate that the server received the nth data forwarded from the NB-IoT device.
It should be noted that the implementation of the operations in fig. 7 may also correspond to the corresponding description of the method embodiment shown with reference to fig. 4 or fig. 6.
In the embodiment described in fig. 7, the testing apparatus determines that the transmission rate of the data in the saturated state is the data transmission rate of the NB-IoT device by transmitting data with successively increasing amounts of data to the NB-IoT device until the saturated state is reached. The device avoids the limitation of a radio frequency comprehensive test instrument and a test license, and can reduce the test cost of the data transmission rate.
Referring to fig. 8, a schematic diagram of a server according to an embodiment of the present application is provided, where the server 80 includes a transceiver unit 801 and a processing unit 802. Wherein:
a transceiver unit 801, configured to receive nth data forwarded from a narrowband internet of things NB-IoT device, where N is a positive integer;
the transceiver 801 is further configured to send, to the NB-IoT device, return information according to the nth data, where the return information is used to instruct the server to receive the nth data forwarded by the NB-IoT device;
a processing unit 802, configured to invoke the transceiver unit to send the return information to the NB-IoT device according to the nth data.
In the embodiment described in fig. 8, the server may generate the return information by receiving the data forwarded by the NB-IoT device through the server, and determine whether the data transmission is successful by using the test apparatus through returning the return information, thereby improving the accuracy of the data transmission rate test.
Referring to fig. 9, a schematic diagram of a communication device according to an embodiment of the present application is provided, and the communication device 90 may be a testing device or a server. One configuration of the communication device 90 is a memory 901, a processor 902, where the processor and memory may be connected by a communication bus or other means, for example a bus connection in fig. 9. The memory 901 may be a read only memory, a random access memory, or a nonvolatile random access memory, and the processor 902 may be a central processing unit (central processing unit, CPU) or other general purpose processor. Wherein:
a memory 901 for storing a computer program;
the processor 902 is configured to invoke the computer program from the memory, so that the apparatus executes the embodiments shown in fig. 4, 6, 7 and 8 and the above description will not be repeated here.
In the embodiment depicted in fig. 9, the communication apparatus 90 invokes the program code stored in the memory 901 through the processor 902 to test the data transmission rate of the NB-IoT device, which can eliminate the limitation of the radio frequency integrated test meter and the test license, and reduce the test cost of the data transmission rate.
The embodiment of the application also provides a computer readable storage medium, wherein instructions are stored in the computer readable storage medium, and when the computer readable storage medium runs on a processor, the method flow of the embodiment of the method is realized.
The application also provides a computer program product which, when executed by a computer, implements the functions of any of the method embodiments described above.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (8)

1. A method for testing a data transmission rate, the method comprising:
transmitting the N data to the narrow-band internet of things (NB-IoT) device, wherein N is a positive integer and is greater than or equal to 2;
acquiring a first duration, wherein the first duration is the duration of power consumption current for transmitting the Nth data;
if the first duration is greater than a first threshold, or a difference between the first duration and a second duration is greater than a second threshold, determining a data transmission rate of the NB-IoT device according to the data amount of the nth data and the first duration; wherein the second duration is a duration of a power consumption current for transmitting the nth data, and a data amount of the nth data is smaller than a data amount of the nth data;
if the first duration is not greater than the first threshold, or a difference between the first duration and a second duration is not greater than the second threshold, transmitting n+1th data to the NB-IoT device, wherein a data amount of the n+1th data is greater than a data amount of the N-th data; the difference between the data amount of the (n+1) -th data and the data amount of the (N) -th data is a preset value, and the preset value is a value determined according to the (N) and a preset interval.
2. The method according to claim 1, wherein a start point and an end point of the first duration are points in time at which the power consumption current for transmitting the nth data is not less than a critical point of a third threshold current;
the starting point and the ending point of the second duration are time points at which the power consumption current for transmitting the N-1 data is not less than the critical point of the third threshold current.
3. The method according to claim 1 or 2, wherein prior to the acquiring the first duration, the method further comprises:
determining whether the nth data needs to be retransmitted to the NB-IoT device based on whether return information is received; the return information is to indicate that a server received the nth data forwarded from the NB-IoT device.
4. A testing device, characterized in that the device comprises a transceiver unit, an acquisition unit, and a processing unit, wherein:
the receiving and transmitting unit is used for transmitting the N-th data to the narrowband internet of things NB-IoT device, wherein N is a positive integer and is greater than or equal to 2;
the acquisition unit is used for acquiring a first duration time, wherein the first duration time is the duration time of the power consumption current for transmitting the Nth data;
the processing unit is configured to determine a data transmission rate of the NB-IoT device according to the data amount of the nth data and the first duration if the first duration is greater than a first threshold or a difference between the first duration and a second duration is greater than a second threshold; wherein the second duration is a duration of a power consumption current for transmitting the nth data, and a data amount of the nth data is smaller than a data amount of the nth data;
the processing unit is configured to send n+1th data to the NB-IoT device if the first duration is not greater than the first threshold or a difference between the first duration and a second duration is not greater than the second threshold, the data amount of the n+1th data being greater than the data amount of the nth data; the difference between the data amount of the (n+1) -th data and the data amount of the (N) -th data is a preset value, and the preset value is a value determined according to the (N) and a preset interval.
5. The apparatus of claim 4, wherein a start point and an end point of the first duration are points in time at which the power consumption current for transmitting the nth data is not less than a critical point of a third threshold current;
the starting point and the ending point of the second duration are time points at which the power consumption current for transmitting the N-1 data is not less than the critical point of the third threshold current.
6. The apparatus of claim 4 or 5, wherein prior to said acquiring the first duration, said processing unit is further configured to,
determining whether the nth data needs to be retransmitted to the NB-IoT device based on whether return information is received; the return information is to indicate that a server received the nth data forwarded from the NB-IoT device.
7. A communication device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor being configured to invoke the computer program from the memory, causing the apparatus to perform the method of any of claims 1-3.
8. A computer readable storage medium having computer readable instructions stored therein, which when run on a communication device, cause the communication device to perform the method of any of claims 1-3.
CN202111204595.9A 2021-10-15 2021-10-15 Method and device for testing data transmission rate Active CN114039895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111204595.9A CN114039895B (en) 2021-10-15 2021-10-15 Method and device for testing data transmission rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111204595.9A CN114039895B (en) 2021-10-15 2021-10-15 Method and device for testing data transmission rate

Publications (2)

Publication Number Publication Date
CN114039895A CN114039895A (en) 2022-02-11
CN114039895B true CN114039895B (en) 2023-11-21

Family

ID=80135059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111204595.9A Active CN114039895B (en) 2021-10-15 2021-10-15 Method and device for testing data transmission rate

Country Status (1)

Country Link
CN (1) CN114039895B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337784A (en) * 2014-07-14 2016-02-17 华为技术有限公司 Packet loss test method, test device and system
CN108932182A (en) * 2018-07-06 2018-12-04 许继集团有限公司 A kind of messaging bus performance test methods and system
CN110336713A (en) * 2019-07-02 2019-10-15 中国联合网络通信集团有限公司 A kind of method and terminal device detecting honeycomb Internet of Things end-to-end time delay and rate
CN111628902A (en) * 2019-02-28 2020-09-04 腾讯科技(深圳)有限公司 Rate testing method and apparatus, electronic device, and computer-readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10142252B2 (en) * 2016-06-24 2018-11-27 Verizon Patent And Licensing Inc. Server intelligence for network speed testing control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337784A (en) * 2014-07-14 2016-02-17 华为技术有限公司 Packet loss test method, test device and system
CN108932182A (en) * 2018-07-06 2018-12-04 许继集团有限公司 A kind of messaging bus performance test methods and system
CN111628902A (en) * 2019-02-28 2020-09-04 腾讯科技(深圳)有限公司 Rate testing method and apparatus, electronic device, and computer-readable storage medium
CN110336713A (en) * 2019-07-02 2019-10-15 中国联合网络通信集团有限公司 A kind of method and terminal device detecting honeycomb Internet of Things end-to-end time delay and rate

Also Published As

Publication number Publication date
CN114039895A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
US11304211B2 (en) Power allocation method and device
CN112423390A (en) Method and apparatus for reflective communication
US20100075664A1 (en) System, mobile communication unit and method for testing a receiver performance
US20060154610A1 (en) Communications apparatus and method therefor
CN103067228B (en) Access point (AP) maximum accessing user number testing method and device
CN110336713B (en) Method for detecting end-to-end time delay and rate of cellular Internet of things and terminal equipment
CN109981214B (en) Transmission control method and device
CN116338434A (en) Average power consumption measuring method and device
CN114039895B (en) Method and device for testing data transmission rate
CN111405534B (en) Information transmission method, first terminal and computer storage medium
CN112422485B (en) Communication method and device of transmission control protocol
CN116667879A (en) Bluetooth converter and Bluetooth conversion method for electric energy meter detection
CN114443537B (en) PCIE signal transmitting end parameter configuration method, device, equipment and medium
US20030185216A1 (en) Indicating occurrence of protocol events
CN214174867U (en) Engineering machinery remote calibration system based on 5G communication network
CN114466395A (en) Method and device for testing performance of base station, storage medium and electronic device
KR101488133B1 (en) Energy efficient method for measuring available bandwidth for terminal and apparatus therefor
CN203630784U (en) On-chip simulating system
CN103282844A (en) Peripheral apparatus of programmable controller, and communication method therefor
CN113950123B (en) Connection method, device, equipment and storage medium of communication equipment
CN113783586B (en) Method, device, electronic equipment and storage medium for automatically selecting communication frequency band
CN115022211B (en) System-level chip and serial communication method
CN111492711A (en) Method for measurement, network equipment and terminal equipment
Schimschar et al. Impact of Different Bit Rates on Performance Characteristics of Industrial WLAN Solutions.
CN117336207A (en) Voice delay detection method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant