CN108810971B - Internet of things data transmission method, internet of things terminal and computer readable storage medium - Google Patents
Internet of things data transmission method, internet of things terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108810971B CN108810971B CN201710286723.6A CN201710286723A CN108810971B CN 108810971 B CN108810971 B CN 108810971B CN 201710286723 A CN201710286723 A CN 201710286723A CN 108810971 B CN108810971 B CN 108810971B
- Authority
- CN
- China
- Prior art keywords
- data transmission
- internet
- things
- data packets
- batch
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0284—Traffic management, e.g. flow control or congestion control detecting congestion or overload during communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/11—Identifying congestion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0289—Congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0248—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及物联网技术领域,尤其涉及一种物联网数据传输方法、物联网终端及计算机可读存储介质。The present invention relates to the technical field of the Internet of Things, in particular to an Internet of Things data transmission method, an Internet of Things terminal and a computer-readable storage medium.
背景技术Background technique
随着网络连接、云服务、大数据分析和低成本传感器等核心技术的突破,物联网技术已经步入迅速发展阶段。据估计,物联网时代将有数百亿个设备接入网络。With breakthroughs in core technologies such as network connections, cloud services, big data analysis, and low-cost sensors, IoT technology has entered a stage of rapid development. It is estimated that tens of billions of devices will be connected to the network in the Internet of Things era.
物与物的通信并不总是要追求高速率带宽的方式,而且很多设备因其所处环境的特殊性和数量巨大,对支撑其通信的功耗需求较低,因此物联网的联网要求选择一个低带宽、低功耗且大范围覆盖的网络是其最有效的解决方案。The communication between things does not always require the pursuit of high-speed bandwidth, and because of the particularity of the environment and the huge number of many devices, the power consumption required to support their communication is low, so the networking of the Internet of Things requires the choice of A network with low bandwidth, low power consumption and wide coverage is the most effective solution.
实际上,由于很多设备占用一个信道,所以摊到每个设备的速率就更低了、并且NB-IoT(Narrow band Internet of Things,基于蜂窝的窄带物联网,或称LPWA,低功耗广域网)的设计中专门考虑到信号强度很低的情况下也能工作,这也不得不牺牲速率来实现。因此就会出现,当信号强度很低的时候,每次数据交互,比如基站访问,带宽分配,用户数据传输和确认,都需要重复好多次的情况。对于每个小区的可连接终端达到5万个以上的物联网络来说,每个终端重复发送数据造成的拥塞将会对用户业务造成极大影响。In fact, since many devices occupy one channel, the rate shared by each device is lower, and NB-IoT (Narrow band Internet of Things, cellular-based narrowband Internet of Things, or LPWA, low-power wide area network) The design of the special consideration is that it can work even when the signal strength is very low, which also has to be realized at the expense of speed. Therefore, when the signal strength is very low, each data interaction, such as base station access, bandwidth allocation, user data transmission and confirmation, needs to be repeated many times. For an IoT network with more than 50,000 connectable terminals in each cell, congestion caused by repeated data transmission by each terminal will have a great impact on user services.
为了满足NB-IOT接入终端对于低功耗和长待机的要求,3GPP在Rel-12中为NB-IoT引入了PSM(Power Saving Mode,节能模式)功能。当终端处于PSM状态时,不监听寻呼,并且停止所有接入层的活动。当终端离开PSM状态时可以传输数据。In order to meet the requirements of NB-IOT access terminals for low power consumption and long standby time, 3GPP introduced the PSM (Power Saving Mode) function for NB-IoT in Rel-12. When the terminal is in the PSM state, it does not monitor paging and stops all access layer activities. Data can be transmitted when the terminal leaves the PSM state.
现有技术的方案主要为:The scheme of prior art mainly is:
(1)终端在附着或者TAU(Tracking Area Update,跟踪区更新)的过程中,与MME(Mobility Management Entity,移动性管理实体)协商PSM定时器的定时时长。(1) During the process of attaching or TAU (Tracking Area Update, Tracking Area Update), the terminal negotiates with the MME (Mobility Management Entity, Mobility Management Entity) the timing length of the PSM timer.
(2)MME返回信令响应消息,并在MME侧启动UE可达定时器。(2) The MME returns a signaling response message, and starts a UE reachable timer on the MME side.
(3)终端收到PSM定时器的消息,启动PSM定时器。当PSM定时器激活,终端进入PSM状态,当PSM定时器超时后,终端可以进行数据传输。(3) The terminal receives the message of the PSM timer and starts the PSM timer. When the PSM timer is activated, the terminal enters the PSM state, and when the PSM timer expires, the terminal can transmit data.
然而,由于PSM定时器的定时时长在设定之后是固定的,对于接入同一个网络的同一个业务的大量物联网终端来说,例如抄表业务的物联网终端,这将导致大量物联网终端在同一时间段和网络进行数据交互业务,导致网络拥塞。However, since the timing length of the PSM timer is fixed after setting, for a large number of IoT terminals accessing the same network and the same service, such as IoT terminals for meter reading services, this will lead to a large number of IoT terminals The terminal performs data exchange services with the network at the same time, causing network congestion.
发明内容Contents of the invention
本发明的主要目的在于提供一种物联网数据传输方法、物联网终端及计算机可读存储介质,旨在解决网络拥塞问题,提高物联网终端的传输效率。The main purpose of the present invention is to provide a data transmission method of the Internet of Things, an Internet of Things terminal and a computer-readable storage medium, aiming at solving the problem of network congestion and improving the transmission efficiency of the Internet of Things terminal.
为实现上述目的,本发明提供一种物联网数据传输方法,所述物联网数据传输方法包括:In order to achieve the above object, the present invention provides a data transmission method of the Internet of Things, the data transmission method of the Internet of Things includes:
在节电模式定时器超时后,统计当次数据传输窗口内数据包的传输信息;After the power-saving mode timer expires, count the transmission information of the data packets in the current data transmission window;
根据统计的传输信息判断网络在当次数据传输窗口内是否发生拥塞;Judging whether the network is congested within the current data transmission window according to the statistical transmission information;
当网络在当次数据传输窗口内发生拥塞时,调整所述节电模式定时器的定时时长。When the network is congested within the current data transmission window, the timing duration of the power saving mode timer is adjusted.
可选地,所述统计当次数据传输窗口内数据包的传输信息的步骤包括:Optionally, the step of counting the transmission information of data packets in the current data transmission window includes:
统计当次数据传输窗口内,各批次数据包各自的平均发送速率,其中,各批次数据包包括连续发送的预设个数的数据包。Count the respective average sending rates of each batch of data packets within the current data transmission window, wherein each batch of data packets includes a preset number of data packets sent continuously.
可选地,所述根据统计的传输信息判断网络在当次数据传输窗口内是否发生拥塞的步骤包括:Optionally, the step of judging whether the network is congested within the current data transmission window according to the statistical transmission information includes:
选中一批次数据包的平均发送速率;The average sending rate of a selected batch of data packets;
将选中的第一平均发送速率与上一批次数据包的第二平均发送速率进行比较;Comparing the selected first average sending rate with the second average sending rate of the previous batch of data packets;
在所述第一平均发送速率大于所述第二平均发送速率时,将初始值为零的预设标志值加一,在所述第一平均发送速率小于所述第二平均发送速率时,将所述预设标志值减一;When the first average sending rate is greater than the second average sending rate, add one to the preset flag value whose initial value is zero; when the first average sending rate is smaller than the second average sending rate, add The preset flag value is reduced by one;
继续选中一批次数据包的平均发送速率,直至各批次数据包的平均发送速率均被选中;Continue to select the average sending rate of a batch of data packets until the average sending rate of each batch of data packets is selected;
在各批次数据包的平均发送速率均被选中之后,判断所述预设标志值是否小于零,其中,在所述预设标志值小于零时,确定网络在当次数据传输窗口内发生拥塞。After the average sending rate of each batch of data packets is selected, it is judged whether the preset flag value is less than zero, wherein, when the preset flag value is less than zero, it is determined that the network is congested within the current data transmission window .
可选地,所述根据统计的传输信息判断网络在当次数据传输窗口内是否发生拥塞的步骤包括:Optionally, the step of judging whether the network is congested within the current data transmission window according to the statistical transmission information includes:
判断是否有任一批次数据包的平均发送速率小于其上一批次数据包的平均发送速率,其中,在判断结果为是时,确定网络在当次数据传输窗口内发生拥塞。Judging whether the average sending rate of any batch of data packets is lower than the average sending rate of the previous batch of data packets, wherein, if the judgment result is yes, it is determined that the network is congested within the current data transmission window.
可选地,在将所述预设标志值减一的同时,还执行以下步骤:Optionally, while decrementing the preset flag value by one, the following steps are also performed:
按照预设步长值增大数据包的发送功率。Increase the sending power of the data packet according to the preset step value.
可选地,所述物联网数据传输方法还包括:Optionally, the Internet of Things data transmission method also includes:
在接收到网络侧发送的功率调整指令时,根据所述功率调整指令调整数据包的发送功率。When the power adjustment instruction sent by the network side is received, the sending power of the data packet is adjusted according to the power adjustment instruction.
可选地,所述调整所述节电模式定时器的定时时长的步骤之后,还包括:Optionally, after the step of adjusting the timing duration of the power-saving mode timer, it further includes:
在调整之后的所述节电模式定时器超时后,向网络侧发送附着请求,以建立与网络侧之间的传输通道;After the adjusted power-saving mode timer expires, send an attach request to the network side to establish a transmission channel with the network side;
在接收到网络侧建立传输通道之后所返回的附着响应时,开始进行数据包的发送操作。After receiving the attach response returned by the network side after the transmission channel is established, the data packet sending operation starts.
可选地,所述在调整之后的所述节电模式定时器超时后,向网络侧发送附着请求的步骤之后,还包括:Optionally, after the step of sending an attach request to the network side after the adjusted power-saving mode timer expires, the method further includes:
在预设时间段内未接收到网络侧返回的附着响应时,重置所述节电模式定时器,开始计时。When the attach response returned by the network side is not received within the preset time period, the power saving mode timer is reset and starts counting.
进一步地,本发明还提供一种物联网终端,该物联网终端包括:Further, the present invention also provides an Internet of Things terminal, which includes:
存储有物联网数据传输程序的存储器;A memory storing a data transmission program of the Internet of Things;
处理器,配置为执行所述物联网数据传输程序以实现以下步骤:A processor configured to execute the Internet of Things data transmission program to achieve the following steps:
在节电模式定时器超时后,统计当次数据传输窗口内数据包的传输信息;After the power-saving mode timer expires, count the transmission information of the data packets in the current data transmission window;
根据统计的传输信息判断网络在当次数据传输窗口内是否发生拥塞;Judging whether the network is congested within the current data transmission window according to the statistical transmission information;
当网络在当次数据传输窗口内发生拥塞时,调整所述节电模式定时器的定时时长。When the network is congested within the current data transmission window, the timing duration of the power saving mode timer is adjusted.
进一步地,本发明还提供一种计算机可读存储介质,该计算机可读存储介质上存储有物联网数据传输程序,所述物联网数据传输程序被处理器执行时实现以下步骤:Further, the present invention also provides a computer-readable storage medium, on which an Internet of Things data transmission program is stored, and when the Internet of Things data transmission program is executed by a processor, the following steps are implemented:
在节电模式定时器超时后,统计当次数据传输窗口内数据包的传输信息;After the power-saving mode timer expires, count the transmission information of the data packets in the current data transmission window;
根据统计的传输信息判断网络在当次数据传输窗口内是否发生拥塞;Judging whether the network is congested within the current data transmission window according to the statistical transmission information;
当网络在当次数据传输窗口内发生拥塞时,调整所述节电模式定时器的定时时长。When the network is congested within the current data transmission window, the timing duration of the power saving mode timer is adjusted.
本发明提出的物联网数据传输方法、物联网终端及计算机可读存储介质,通过动态设置物联网终端进入和退出节电模式的时机,实现对物联网终端的有计划调度,具体在物联网终端的节电模式定时器超时后,通过对节电模式超时后的数据传输窗口内数据包的传输信息进行统计,并根据统计结果判断网络在当次数据传输窗口内是否发生拥塞,若是则对节电模式定时器的定时时长进行调整,以避开网络拥塞,达到提高物联网终端传输效率的目的。The Internet of Things data transmission method, the Internet of Things terminal and the computer-readable storage medium proposed by the present invention realize the planned scheduling of the Internet of Things terminals by dynamically setting the timing of the Internet of Things terminals entering and exiting the power-saving mode, specifically in the Internet of Things terminals After the power-saving mode timer expires, the transmission information of the data packets in the data transmission window after the power-saving mode expires is counted, and according to the statistical results, it is judged whether the network is congested in the current data transmission window, and if so, the power-saving The timing length of the electric mode timer is adjusted to avoid network congestion and achieve the purpose of improving the transmission efficiency of IoT terminals.
附图说明Description of drawings
图1为本发明物联网终端第一实施例的结构示意图;FIG. 1 is a schematic structural diagram of a first embodiment of an Internet of Things terminal according to the present invention;
图2为本发明物联网数据传输方法第一实施例的流程示意图;Fig. 2 is a schematic flow chart of the first embodiment of the Internet of Things data transmission method of the present invention;
图3为本发明物联网数据传输方法第一实施例中处理器统计数据包传输信息的执行逻辑示意图;FIG. 3 is a schematic diagram of execution logic of the processor statistical data packet transmission information in the first embodiment of the Internet of Things data transmission method of the present invention;
图4为本发明物联网数据传输方法第三实施例中处理器控制数据包发送操作的执行逻辑示意图。FIG. 4 is a schematic diagram of execution logic of the processor-controlled data packet sending operation in the third embodiment of the IoT data transmission method of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明实施例的主要解决方案是:通过动态设置物联网终端进入和退出节电模式的时机,实现对物联网终端的有计划调度,具体在物联网终端的节电模式定时器超时后,通过对节电模式超时后的数据传输窗口内数据包的传输信息进行统计,并根据统计结果判断网络在当次数据传输窗口内是否发生拥塞,若是则对节电模式定时器的定时时长进行调整,以避开网络拥塞,达到提高物联网终端传输效率的目的。The main solution of the embodiment of the present invention is: by dynamically setting the timing of the Internet of Things terminal entering and exiting the power-saving mode, the planned scheduling of the Internet of Things terminal is realized, specifically after the power-saving mode timer of the Internet of Things terminal expires, through Make statistics on the transmission information of the data packets in the data transmission window after the power-saving mode expires, and judge whether the network is congested in the current data transmission window according to the statistical results, and if so, adjust the timing length of the power-saving mode timer, In order to avoid network congestion and achieve the purpose of improving the transmission efficiency of IoT terminals.
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的物联网终端的结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of an IoT terminal in a hardware operating environment involved in the solution of the embodiment of the present invention.
如图1所示,该物联网终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口等。网络接口1004可选的可以包括标准的有线接口、无线接口(如Wi-Fi接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the IoT terminal may include: a
本领域技术人员可以理解,图1中示出的物联网终端结构并不构成对物联网终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the Internet of Things terminal shown in Figure 1 does not constitute a limitation on the Internet of Things terminal, and may include more or less components than those shown in the illustration, or combine some components, or different components layout.
如图1所示,在本发明物联网终端的第一实施例中,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及物联网数据传输程序。As shown in FIG. 1 , in the first embodiment of the Internet of Things terminal of the present invention, the
在图1所示的物联网终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的物联网数据传输程序,并执行以下操作:In the Internet of Things terminal shown in Figure 1, the
在节电模式定时器超时后,统计当次数据传输窗口内数据包的传输信息;After the power-saving mode timer expires, count the transmission information of the data packets in the current data transmission window;
根据统计的传输信息判断网络在当次数据传输窗口内是否发生拥塞;Judging whether the network is congested within the current data transmission window according to the statistical transmission information;
当网络在当次数据传输窗口内发生拥塞时,调整节电模式定时器的定时时长。When the network is congested within the current data transmission window, the timing length of the power saving mode timer is adjusted.
进一步地,处理器1001可以用于调用存储器1005中存储的物联网数据传输程序,还执行以下操作:Further, the
统计当次数据传输窗口内,各批次数据包各自的平均发送速率,其中,各批次数据包包括连续发送的预设个数的数据包。Count the respective average sending rates of each batch of data packets within the current data transmission window, wherein each batch of data packets includes a preset number of data packets sent continuously.
进一步地,处理器1001可以用于调用存储器1005中存储的物联网数据传输程序,还执行以下操作:Further, the
选中一批次数据包的平均发送速率;The average sending rate of a selected batch of data packets;
将选中的第一平均发送速率与上一批次数据包的第二平均发送速率进行比较;Comparing the selected first average sending rate with the second average sending rate of the previous batch of data packets;
在第一平均发送速率大于第二平均发送速率时,将初始值为零的预设标志值加一,在第一平均发送速率小于第二平均发送速率时,将预设标志值减一;When the first average sending rate is greater than the second average sending rate, add one to the preset flag value whose initial value is zero, and subtract one from the preset flag value when the first average sending rate is smaller than the second average sending rate;
继续选中一批次数据包的平均发送速率,直至各批次数据包的平均发送速率均被选中;Continue to select the average sending rate of a batch of data packets until the average sending rate of each batch of data packets is selected;
在各批次数据包的平均发送速率均被选中之后,判断预设标志值是否小于零,其中,在预设标志值小于零时,确定网络在当次数据传输窗口内发生拥塞。After the average sending rate of each batch of data packets is selected, it is judged whether the preset flag value is less than zero, wherein, when the preset flag value is less than zero, it is determined that the network is congested within the current data transmission window.
进一步地,处理器1001可以用于调用存储器1005中存储的物联网数据传输程序,还执行以下操作:Further, the
判断是否有任一批次数据包的平均发送速率小于其上一批次数据包的平均发送速率,其中,在判断结果为是时,确定网络在当次数据传输窗口内发生拥塞。Judging whether the average sending rate of any batch of data packets is lower than the average sending rate of the previous batch of data packets, wherein, if the judgment result is yes, it is determined that the network is congested within the current data transmission window.
进一步地,处理器1001可以用于调用存储器1005中存储的物联网数据传输程序,还执行以下操作:Further, the
按照预设步长值增大数据包的发送功率。Increase the sending power of the data packet according to the preset step value.
进一步地,处理器1001可以用于调用存储器1005中存储的物联网数据传输程序,还执行以下操作:Further, the
在接收到网络侧发送的功率调整指令时,根据接收的功率调整指令调整数据包的发送功率。When the power adjustment instruction sent by the network side is received, the sending power of the data packet is adjusted according to the received power adjustment instruction.
进一步地,处理器1001可以用于调用存储器1005中存储的物联网数据传输程序,还执行以下操作:Further, the
在调整之后的节电模式定时器超时后,向网络侧发送附着请求,以建立与网络侧之间的传输通道;After the adjusted power-saving mode timer expires, send an attach request to the network side to establish a transmission channel with the network side;
在接收到网络侧建立传输通道之后所返回的附着响应时,开始进行数据包的发送操作。After receiving the attach response returned by the network side after the transmission channel is established, the data packet sending operation starts.
进一步地,处理器1001可以用于调用存储器1005中存储的物联网数据传输程序,还执行以下操作:Further, the
在预设时间段内未接收到网络侧返回的附着响应时,重置节电模式定时器,开始计时。When the attach response returned by the network side is not received within the preset time period, the power saving mode timer is reset and starts counting.
进一步地,本发明还提供一种物联网数据传输方法,应用于物联网终端,参照图2,在本发明物联网数据传输方法的第一实施例中,该物联网数据传输方法包括:Further, the present invention also provides an Internet of Things data transmission method, which is applied to an Internet of Things terminal. Referring to FIG. 2, in the first embodiment of the Internet of Things data transmission method of the present invention, the Internet of Things data transmission method includes:
步骤S10,在节电模式定时器超时后,统计当次数据传输窗口内数据包的传输信息;Step S10, counting the transmission information of the data packets in the current data transmission window after the power-saving mode timer expires;
步骤S20,根据统计的传输信息判断网络在当次数据传输窗口内是否发生拥塞;Step S20, judging whether the network is congested within the current data transmission window according to the statistical transmission information;
步骤S30,当网络在当次数据传输窗口内发生拥塞时,调整节电模式定时器的定时时长。Step S30, when the network is congested in the current data transmission window, adjust the timing duration of the power saving mode timer.
需要说明的是,对于物联网终端的节电模式,可以将其看成是物联网终端的深度睡眠状态,在节电模式下,物联网终端仍旧注册在网,但是信令不可达,从而使物联网终端更长时间驻留在深度睡眠状态以达到省电的目的。It should be noted that the power saving mode of the IoT terminal can be regarded as the deep sleep state of the IoT terminal. In the power saving mode, the IoT terminal is still registered on the network, but the signaling is unreachable, so that The IoT terminal stays in the deep sleep state for a longer time to save power.
在本实施例中,物联网数据传输方法由图1所示的物联网终端执行,在具体执行时,处理器1001对节电模式定时器(图1未示出)是否超时进行侦测,具体侦测是否接收到节电模式定时器在超时后产生的定时器中断进行侦测,其中,处理器1001在侦测到节电模式定时器在超时后产生的定时器中断时,确定节电模式定时器超时。例如,节电模式定时器的定时时长为5分钟,则在节电模式计时到达5分钟时,将触发定时器中断,并被处理器1001侦测到。In this embodiment, the IoT data transmission method is executed by the IoT terminal shown in FIG. 1. During specific execution, the
在节电模式定时器超时后,物联网终端开始向网络侧发送数据。在物联网终端向网络侧发送数据的当次数据传输窗口内,处理器1001对当次数据传输窗口内数据包的传输信息进行统计。After the power saving mode timer expires, the IoT terminal starts to send data to the network side. In the current data transmission window when the IoT terminal sends data to the network side, the
在本实施例中,步骤S10包括:In this embodiment, step S10 includes:
统计当次数据传输窗口内,各批次数据包各自的平均发送速率,其中,各批次数据包包括连续发送的预设个数的数据包。Count the respective average sending rates of each batch of data packets within the current data transmission window, wherein each batch of data packets includes a preset number of data packets sent continuously.
具体的,处理器1001在对数据包的传输信息进行统计时,可对数据包的平均发送速率进行统计,在具体实施时,可将当次数据传输窗口内发送的数据包划分为多个批次,其中各批次数据包包括连续发送的,预设个数的数据包,然后对各批次数据包各自的平均发送速率速率进行统计。Specifically, when the
请参照图3,图3为处理器1001统计数据包传输信息的执行逻辑示意图,在具体实施时,如图3所示:Please refer to Fig. 3, Fig. 3 is the implementation logic schematic diagram of
(1)物联网终端在节电模式定时器超时之后,联网成功,且有应用程序需要发送数据包至网络侧时,进入激活状态;(1) After the power-saving mode timer expires, the Internet of Things terminal is successfully connected to the Internet, and when there is an application program that needs to send data packets to the network side, it enters the activation state;
(2)处理器1001记录待发送的数据包的长度为L(i),并记录该数据包开始发送的时刻;(2)
(3)在该数据包发送成功后,处理器1001记录数据包发送成功的时刻,并将发送成功的时刻减去该数据包开始发送的时刻,计算得到该数据包从开始发送到发送成功的耗时T(i);(3) After the data packet is successfully sent, the
(4)计算该数据包的发送速率Ni=L(i)/T(i),Ni体现了数据包发送效率,相对于更大的Ni的值,反映的是更高的发送效率。因此,在其他条件都一样的情况下,Ni的变化趋势反映了网络的拥塞状况;(4) Calculate the sending rate Ni=L(i)/T(i) of the data packet, Ni reflects the sending efficiency of the data packet, and reflects higher sending efficiency compared to a larger value of Ni. Therefore, when other conditions are the same, the change trend of Ni reflects the congestion of the network;
(5)累计记录m(前述一批次数据包包括的数据包个数,即前述预设个数,具体可由本领域技术人员根据实际需要进行设置,本发明不做具体限制)个数据包的发送速率,求这m个Ni的平均值N(avg)=(N1+…+Ni)/m,也即是计算一批次数据包的平均发送速率,例如,m为3,N1=50kbs,N2=55kbs,N3=60kbs,则计算得到该批次3个数据包的平均发送速率N(avg)=(50+55+60)/3=55(kbs),即1秒钟可发送55kb大小的数据;(5) accumulatively record m (the number of data packets included in the aforementioned batch of data packets, that is, the aforementioned preset number, which can be set according to actual needs by those skilled in the art, and the present invention does not specifically limit) data packets Sending rate, find the average value N(avg)=(N1+...+Ni)/m of these m Ni, that is, calculate the average sending rate of a batch of data packets, for example, m is 3, N1=50kbs, N2 =55kbs, N3=60kbs, then calculate the average sending rate N(avg)=(50+55+60)/3=55(kbs) of the batch of 3 data packets, that is, 55kb size can be sent in 1 second data;
(6)重复以上步骤(2)到(5),直至完成对当次数据传输窗口内各批次数据包的统计。(6) Repeat the above steps (2) to (5) until the statistics of each batch of data packets in the current data transmission window are completed.
在本实施例中,步骤S20包括:In this embodiment, step S20 includes:
选中一批次数据包的平均发送速率;The average sending rate of a selected batch of data packets;
将选中的第一平均发送速率与上一批次数据包的第二平均发送速率进行比较;Comparing the selected first average sending rate with the second average sending rate of the previous batch of data packets;
在第一平均发送速率大于第二平均发送速率时,将初始值为零的预设标志值加一,在第一平均发送速率小于第二平均发送速率时,将预设标志值减一;When the first average sending rate is greater than the second average sending rate, add one to the preset flag value whose initial value is zero, and subtract one from the preset flag value when the first average sending rate is smaller than the second average sending rate;
继续选中一批次数据包的平均发送速率,直至各批次数据包的平均发送速率均被选中;Continue to select the average sending rate of a batch of data packets until the average sending rate of each batch of data packets is selected;
在各批次数据包的平均发送速率均被选中之后,判断预设标志值是否小于零,其中,在预设标志值小于零时,确定网络在当次数据传输窗口内发生拥塞。After the average sending rate of each batch of data packets is selected, it is judged whether the preset flag value is less than zero, wherein, when the preset flag value is less than zero, it is determined that the network is congested within the current data transmission window.
具体的,在完成统计之后,处理器1001根据统计结果判断网络在当次数据传输窗口内是否发生拥塞。在具体实施时,处理器1001选中一批次数据包的平均发送速率,优选地,处理器1001可参照各批次数据包的批次顺序,依次进行平均发送速率的选中。Specifically, after the statistics are completed, the
在选中一批次数据包的平均发送速率之后,处理器1001将选中的第一平均发送速率与上一批次数据包的第二平均发送速率进行比较;其中,在第一平均发送速率大于第二平均发送速率时,处理器1001将初始值为零的预设标志值加一,在第一平均发送速率小于第二平均发送速率时,将预设标志值减一,例如,预设标志值当前为0,处理器1001选中的第一平均发送速率为55kbps,上一批次的第二平均发送速率为60kbps,显然的,55kbs<60kbs,将预设标志值减一变为“-1”;又例如,预设标志值当前为0,处理器1001选中的第一平均发送速率为55kbps,上一批次的第二平均发送速率为50kbps,显然的,55kbs>50kbs,将预设标志值加一变为“1”。After selecting the average sending rate of a batch of data packets, the
在完成比较之后,处理器1001继续选中一批次数据包的平均发送速率,直至各批次数据包的平均发送速率均被选中;After the comparison is completed, the
在各批次数据包的平均发送速率均被选中之后,处理器1001对预设标志值的当前值进行判断,具体判断预设标志值是否小于零,其中,在预设标志值小于零时,说明网络在当次数据传输窗口内,较多批次数据包的平均发送速率呈降低趋势,可确定网络在当次数据传输窗口内发生拥塞。After the average sending rate of each batch of data packets is selected, the
在确定网络在当次数据传输窗口内发生拥塞时,处理器1001对节电模式的定时时长进行调整,包括增大或减少节电模式定时器的定时时长,以避开网络拥塞。When it is determined that the network is congested within the current data transmission window, the
在具体实施时,处理器1001可以交叉的对节电模式定时器的定时时长进行调整,例如,先增大节电模式定时器的定时时长,当下次需要节电模式定时器进行调整,也即是网络再次在数据传输窗口类发生拥塞时,减小节电模式定时器的定时时长。其中,增大定时时长的步长值与减小定时时长的步长值可以相同,也可以不同。During specific implementation, the
处理器1001还可以持续增大节电模式定时器的定时时长,并在将节电模式定时器的定时时长增大至预设时长之后,将节电模式定时器的定时器重设为初始时长,如从往复。例如,节电模式定时器的定时时长的初始时长为5分钟,预设时长为10分钟,时长调整的步长值为30秒,则当网络第一次在数据传输窗口内发生拥塞时,处理器1001将节电模式定时器的定时时长调整为5分钟30秒,当节电模式定时器的定时时长为10分钟,且网络再次在数据传输窗口内发生拥塞时,处理器1001将节电模式定时器的定时时长由10分钟重设为5分钟。The
处理器1001还可以持续增大节电模式定时器的定时时长,例如,节电模式定时器的定时时长的初始时长为5分钟,时长调整的步长值为30秒,则每次当网络在数据传输窗口内发生拥塞时,处理器将节电模式定时器的定时时长增大30秒。The
处理器1001还可以持续增大节电模式定时器的定时时长,并在将节电模式定时器的定时时长增大至预设时长之后,持续减小节电模式定时器的定时时长,直至减小至节电模式定时器的初始时长之后,再次增大其定时时长,如此往复。例如,节电模式定时器的定时时长的初始时长为5分钟,预设时长为10分钟,时长调整的步长值为30秒,则当网络第一次在数据传输窗口内发生拥塞时,处理器1001将节电模式定时器的定时时长调整为5分钟30秒,当节电模式定时器的定时时长被调整为10分钟,且网络再次在数据传输窗口内发生拥塞时,处理器1001将节电模式定时器的定时时长由10分钟调整为9分钟30秒,直至将定时时长减小至5分钟之后,再次增大。The
可选地,在一实施例中,步骤S20包括:Optionally, in an embodiment, step S20 includes:
判断是否有任一批次数据包的平均发送速率小于其上一批次数据包的平均发送速率,其中,在判断结果为是时,确定网络在当次数据传输窗口内发生拥塞。Judging whether the average sending rate of any batch of data packets is lower than the average sending rate of the previous batch of data packets, wherein, if the judgment result is yes, it is determined that the network is congested within the current data transmission window.
可选地,在一实施例中,处理器1001在对数据包的传输信息进行统计时,具体统计数据包的累计重发送次数;Optionally, in an embodiment, when the
处理器1001在判断网络是否在数据传输窗口内发生拥塞时,可以判断数据包的累计重发次数是否大于或等于预设次数(具体取值可由本领域技术人员根据实际需要进行设置,本发明不做具体限制),若是则确定网络在当次数据传输窗口内发生拥塞,需要对节电模式定时器的定时时长进行调整。When judging whether the network is congested within the data transmission window, the
可选地,在一实施例中,处理器1001在对数据包的传输信息进行统计时,具体统计数据包的发送失败率;Optionally, in one embodiment, when the
处理器1001在判断网络是否在数据传输窗口内发生拥塞时,可以判断统计的数据包发送失败率是否大于或等于预设失败率(具体取值可由本领域技术人员根据实际需要进行设置,本发明不做具体限制),若是则确定网络在当次数据传输窗口内发生拥塞,需要对节电模式定时器的定时时长进行调整。When judging whether the network is congested within the data transmission window, the
可选地,在一实施例中,处理器1001在对数据包的传输信息进行统计时,可将当次数据传输窗口内发送的数据包划分为多个批次,其中各批次数据包包括连续发送的,预设个数的数据包,然后对各批次数据包各自的单位长度数据包发送耗时的平均耗时进行统计,在具体实施时,Optionally, in an embodiment, when the
(1)物联网终端在节电模式定时器超时之后,联网成功,且有应用程序需要发送数据包至网络侧时,进入激活状态;(1) After the power-saving mode timer expires, the Internet of Things terminal is successfully connected to the Internet, and when there is an application program that needs to send data packets to the network side, it enters the activation state;
(2)处理器1001记录待发送的数据包的长度为L(i),并记录该数据包开始发送的时刻;(2)
(3)在该数据包发送成功后,处理器1001记录数据包发送成功的时刻,并将发送成功的时刻减去该数据包开始发送的时刻,计算得到该数据包从开始发送到发送成功的耗时T(i);(3) After the data packet is successfully sent, the
(4)计算单位长度的数据包的发送耗时Mi=T(i)/L(i),Mi体现了单位长度数据包的发送效率,相对于更大的Mi的值,反映的是低下的发送效率。因此,在其他条件都一样的情况下,Mi的变化趋势反映了网络的拥塞状况;(4) Calculate the transmission time of data packets of unit length Mi=T(i)/L(i), Mi reflects the transmission efficiency of data packets of unit length, compared to the larger value of Mi, it reflects the low sending efficiency. Therefore, when other conditions are the same, the change trend of Mi reflects the congestion of the network;
(5)累计记录m(前述一批次数据包包括的数据包个数,即前述预设个数,具体可由本领域技术人员根据实际需要进行设置,本发明不做具体限制)个数据包的发送速率,求这m个Mi的平均值M(avg)=(M1+…+Mi)/m,也即是计算一批次数据包的单位长度数据包发送耗时的平均耗时,例如,m为3,M1=50s/Mb,M2=55s/Mb,M3=60s/Mb,则计算得到该批次3个数据包的单位长度数据包发送耗时的平均耗时M(avg)=(50+55+60)/3=55(s/Mb),即发送1Mb大小的数据包需要耗时55秒;(5) accumulatively record m (the number of data packets included in the aforementioned batch of data packets, that is, the aforementioned preset number, which can be set according to actual needs by those skilled in the art, and the present invention does not specifically limit) data packets Sending rate, find the average value M(avg)=(M1+...+Mi)/m of these m Mi, that is, calculate the average time-consuming of sending a unit-length data packet of a batch of data packets, for example, m is 3, M1=50s/Mb, M2=55s/Mb, M3=60s/Mb, then calculate the average time-consuming M(avg)=(50 +55+60)/3=55(s/Mb), that is, it takes 55 seconds to send a 1Mb data packet;
(6)重复以上步骤(2)到(5),直至完成对当次数据传输窗口内各批次数据包的统计。(6) Repeat the above steps (2) to (5) until the statistics of each batch of data packets in the current data transmission window are completed.
在完成统计之后,处理器1001根据统计结果判断网络在当次数据传输窗口内是否发生拥塞。在具体实施时,处理器1001选中一批次数据包的单位长度数据包发送耗时的平均耗时,优选地,处理器1001可参照各批次数据包的批次顺序,依次进行平均发送速率的选中。After the statistics are completed, the
在选中一批次数据包的平均耗时之后,处理器1001将选中的第一平均耗时与上一批次数据包的第二平均耗时进行比较;其中,在第一平均耗时大于第二平均耗时时,处理器1001将初始值为零的预设标志值减一,在第一平均耗时小于第二平均耗时时,将预设标志值加一,例如,预设标志值当前为0,处理器1001选中的第一平均耗时为55s/Mb,上一批次的第二平均耗时为60s/Mb,显然的,55s/Mb<60s/Mb,将预设标志值加一变为“1”;又例如,预设标志值当前为0,处理器1001选中的第一平均耗时为55s/Mb,上一批次的第二平均耗时为50s/Mb,显然的,55s/Mb>50s/Mb,将预设标志值减一变为“-1”。After selecting the average time-consuming of a batch of data packets, the
在完成比较之后,处理器1001继续选中一批次数据包的平均耗时,直至各批次数据包的平均耗时均被选中;After the comparison is completed, the
在各批次数据包的平均耗时均被选中之后,处理器1001对预设标志值的当前值进行判断,具体判断预设标志值是否小于零,其中,在预设标志值小于零时,说明网络在当次数据传输窗口内,较多批次数据包的平均耗时呈增大趋势,可确定网络在当次数据传输窗口内发生拥塞。After the average time consumption of each batch of data packets is selected, the
本发明提出的物联网数据传输方法,通过动态设置物联网终端进入和退出节电模式的时机,实现对物联网终端的有计划调度,具体在物联网终端的节电模式定时器超时后,通过对节电模式超时后的数据传输窗口内数据包的传输信息进行统计,并根据统计结果判断网络在当次数据传输窗口内是否发生拥塞,若是则对节电模式定时器的定时时长进行调整,以避开网络拥塞,达到提高物联网终端传输效率的目的。The Internet of Things data transmission method proposed by the present invention realizes the planned scheduling of the Internet of Things terminals by dynamically setting the timing for the Internet of Things terminals to enter and exit the power-saving mode, specifically after the power-saving mode timer of the Internet of Things terminals expires, through Make statistics on the transmission information of the data packets in the data transmission window after the power-saving mode expires, and judge whether the network is congested in the current data transmission window according to the statistical results, and if so, adjust the timing length of the power-saving mode timer, In order to avoid network congestion and achieve the purpose of improving the transmission efficiency of IoT terminals.
进一步地,基于第一实施例,提出了本发明物联网数据传输方法的第二实施例,在本实施例中,在第一平均发送速率大于第二平均发送速率时,将初始值为零的预设标志值减一的同时,还执行以下步骤:Further, based on the first embodiment, a second embodiment of the IoT data transmission method of the present invention is proposed. In this embodiment, when the first average sending rate is greater than the second average sending rate, the initial value is zero While the value of the preset flag is decreased by one, the following steps are also performed:
按照预设步长值增大数据包的发送功率。Increase the sending power of the data packet according to the preset step value.
需要说明的是,本实施例在前述第一实施例的基础上,增加了数据包发送功率的调整操作。It should be noted that, on the basis of the foregoing first embodiment, this embodiment adds an operation of adjusting the sending power of the data packet.
本领域技术人员可以理解的是,在其他条件一致的情况下,发射功率越大,传输效率越高。因此,本发明实施例在统计的平均发送速率反映出传输效率降低的情况时,提高物联网终端的发送功率,可以增大传输效率。Those skilled in the art can understand that, when other conditions are the same, the greater the transmission power, the higher the transmission efficiency. Therefore, in the embodiment of the present invention, when the statistical average transmission rate reflects the situation that the transmission efficiency is reduced, increasing the transmission power of the IoT terminal can increase the transmission efficiency.
在本实施例中,处理器1001每完成一批次数据包的条件之后,将当次完成统计批次数据包的平均发送速率选中,在选中当次完成统计批次数据包的平均发送速率之后,将选中的第一平均发送速率与上一批次数据包的第二平均发送速率进行比较,若第一平均发送速率小于第二平均发送速率,则说明传输效率呈降低趋势,此时需要增大数据包的发送功率,以增大传输效率。具体的,在对预设标志值减一的同时,处理器1001按照预设步长值增大数据包的发射功率,其中,本发明对于预设步长值的取值不做具体限制,可由本领域技术人员根据实际需要进行设置。In this embodiment, after the
进一步地,在本实施例中,该物联网数据传输方法还包括:Further, in this embodiment, the Internet of Things data transmission method also includes:
在接收到网络侧发送的功率调整指令时,根据接收的功率调整指令调整数据包的发送功率。When the power adjustment instruction sent by the network side is received, the sending power of the data packet is adjusted according to the received power adjustment instruction.
需要说明的是,在本实施例中,为避免物联网终端的发射功率无限制增大,还由网络侧协同进行物联网终端发送功率的调整。It should be noted that, in this embodiment, in order to avoid unlimited increase of the transmit power of the IoT terminal, the network side also cooperates to adjust the transmit power of the IoT terminal.
在具体实施时,网络侧对物联网终端发送数据包的失败率进行统计,并将统计的失败率与预设失败率进行比较,其中,在统计的失败率大于预设失败率时,网络侧生成指示物联网终端增大发射功率的功率调整指令,在统计的失败率小于预设失败率时,网络侧生成指示物联网终端减小发射功率的功率调整指令。During specific implementation, the network side makes statistics on the failure rate of the data packets sent by the Internet of Things terminal, and compares the statistical failure rate with the preset failure rate, wherein, when the statistical failure rate is greater than the preset failure rate, the network side Generate a power adjustment instruction instructing the Internet of Things terminal to increase the transmission power, and when the statistical failure rate is less than the preset failure rate, the network side generates a power adjustment instruction instructing the Internet of Things terminal to reduce the transmission power.
网络侧在生成功率调整指令之后,将生成的功率调整指令发送至物联网终端。After generating the power adjustment instruction, the network side sends the generated power adjustment instruction to the IoT terminal.
相应的,物联网终端在接收到网络侧发送的功率调整指令之后,由处理器1001根据功率调整指令的指示增大或减少发射功率。Correspondingly, after the IoT terminal receives the power adjustment instruction sent by the network side, the
可选地,在一实施例中,处理器1001每完成一批次数据包的条件之后,将当次完成统计批次的平均耗时选中,在选中当次完成统计批次数据包的平均耗时之后,将选中的第一平均耗时与上一批次数据包的第二平均耗时进行比较,若第一平均耗时大于第二平均耗时,则说明传输效率呈降低趋势,此时需要增大数据包的发送功率,以增大传输效率。具体的,在对预设标志值减一的同时,处理器1001按照预设步长值增大数据包的发射功率,其中,本发明对于预设步长值的取值不做具体限制,可由本领域技术人员根据实际需要进行设置。Optionally, in one embodiment, after the
进一步地,基于第一或第二实施例,提出本发明物联网数据传输方法的第三实施例,在本实施例中,步骤S30之后,还包括:Further, based on the first or second embodiment, a third embodiment of the Internet of Things data transmission method of the present invention is proposed. In this embodiment, after step S30, it also includes:
在调整之后的节电模式定时器超时后,向网络侧发送附着请求,以建立与网络侧之间的传输通道;After the adjusted power-saving mode timer expires, send an attach request to the network side to establish a transmission channel with the network side;
在接收到网络侧建立传输通道之后所返回的附着响应时,开始进行数据包的发送操作;When the attachment response returned after the network side establishes the transmission channel is received, the sending operation of the data packet is started;
在预设时间段内未接收到网络侧返回的附着响应时,重置节电模式定时器,开始计时。When the attach response returned by the network side is not received within the preset time period, the power saving mode timer is reset and starts counting.
需要说明的是,本实施例在前述实施例的基础上,增加了关于数据包发送操作的描述。It should be noted that, on the basis of the foregoing embodiments, this embodiment adds a description about the operation of sending a data packet.
请参照图4,图4为处理器1001控制数据包发送操作的执行逻辑示意图,在具体实施时,如图4所示:Please refer to FIG. 4. FIG. 4 is a schematic diagram of execution logic of the
(1)当次数据传输窗口的数据包全部发送完成;(1) All data packets in the current data transmission window have been sent;
(2)处理器1001根据统计的传输信息判断网络是否在当次数据传输窗口内发生拥塞,是则对节电模式定时器的定时时长进行调整;(2) The
(3)调整之后的节电模式定时器开始计时,物联网终端进入节电模式,等待节电模式定时器超时,并在节电模式定时器超时后,向网络侧发送附着请求,以建立与网络侧之间的传输通道;(3) The adjusted power-saving mode timer starts counting, the IoT terminal enters the power-saving mode, waits for the power-saving mode timer to expire, and after the power-saving mode timer expires, sends an attach request to the network side to establish a connection with the power-saving mode Transmission channels between network sides;
(4)网络侧收到终端的附着请求,比较此时已经接入网络的物联网终端的数量和网络允许接入的物联网终端数量上限的大小;(4) The network side receives the attachment request of the terminal, and compares the number of IoT terminals already connected to the network with the upper limit of the number of IoT terminals allowed by the network;
(5)如果步骤(4)的比较结果是小于,那么网络侧确认目前网络容量可以满足要求,则响应物联网终端的附着请求,与物联网终端建立传输通道,并返回附着响应,指示其可开始进行数据包的发送;(5) If the comparison result of step (4) is less than, then the network side confirms that the current network capacity can meet the requirements, then responds to the attachment request of the IoT terminal, establishes a transmission channel with the IoT terminal, and returns an attachment response, indicating that it can Start sending data packets;
(6)如果步骤(4)的比较大小是大于等于,那么网络侧确认目前网络处于拥塞状态,则拒绝物联网终端的附着请求,也即是拒绝建立与物联网终端的传输通道;(6) If the comparison size of step (4) is greater than or equal to, then the network side confirms that the current network is in a congested state, and then rejects the attachment request of the IoT terminal, that is, refuses to establish a transmission channel with the IoT terminal;
(7)处理器1001对网络侧是否返回附着响应进行侦测,并在接收到网络侧建立传输通道之后所返回的附着响应时,通过存在数据包的发送需要的应用程序开始进行数据包的发送操作;若在预设时间段内(本发明对预设时间段的取值不做具体限制,可由本领域技术人员根据实际需要进行设置)未接收到网络侧返回的附着响应时,处理器1001确定网络当前拥塞,为避免网络拥塞重置节电模式定时器,开始计时,直至下一次节电模式定时器超时,重复以上步骤。(7) The
进一步地,本发明还提供一种计算机可读存储介质,在一实施例中,该计算机可读存储介质上存储有物联网数据传输程序,该物联网数据传输程序被处理器1001执行时实现如下操作:Further, the present invention also provides a computer-readable storage medium. In an embodiment, the computer-readable storage medium stores an Internet of Things data transmission program, and when the Internet of Things data transmission program is executed by the
在节电模式定时器超时后,统计当次数据传输窗口内数据包的传输信息;After the power-saving mode timer expires, count the transmission information of the data packets in the current data transmission window;
根据统计的传输信息判断网络在当次数据传输窗口内是否发生拥塞;Judging whether the network is congested within the current data transmission window according to the statistical transmission information;
当网络在当次数据传输窗口内发生拥塞时,调整节电模式定时器的定时时长。When the network is congested within the current data transmission window, the timing length of the power saving mode timer is adjusted.
进一步地,前述物联网数据传输程序被处理器1001执行时,还实现如下操作:Further, when the aforementioned Internet of Things data transmission program is executed by the
统计当次数据传输窗口内,各批次数据包各自的平均发送速率,其中,各批次数据包包括连续发送的预设个数的数据包。Count the respective average sending rates of each batch of data packets within the current data transmission window, wherein each batch of data packets includes a preset number of data packets sent continuously.
进一步地,前述物联网数据传输程序被处理器1001执行时,还实现如下操作:Further, when the aforementioned Internet of Things data transmission program is executed by the
选中一批次数据包的平均发送速率;The average sending rate of a selected batch of data packets;
将选中的第一平均发送速率与上一批次数据包的第二平均发送速率进行比较;Comparing the selected first average sending rate with the second average sending rate of the previous batch of data packets;
在第一平均发送速率大于第二平均发送速率时,将初始值为零的预设标志值加一,在第一平均发送速率小于第二平均发送速率时,将预设标志值减一;When the first average sending rate is greater than the second average sending rate, add one to the preset flag value whose initial value is zero, and subtract one from the preset flag value when the first average sending rate is smaller than the second average sending rate;
继续选中一批次数据包的平均发送速率,直至各批次数据包的平均发送速率均被选中;Continue to select the average sending rate of a batch of data packets until the average sending rate of each batch of data packets is selected;
在各批次数据包的平均发送速率均被选中之后,判断预设标志值是否小于零,其中,在预设标志值小于零时,确定网络在当次数据传输窗口内发生拥塞。After the average sending rate of each batch of data packets is selected, it is judged whether the preset flag value is less than zero, wherein, when the preset flag value is less than zero, it is determined that the network is congested within the current data transmission window.
进一步地,前述物联网数据传输程序被处理器1001执行时,还实现如下操作:Further, when the aforementioned Internet of Things data transmission program is executed by the
判断是否有任一批次数据包的平均发送速率小于其上一批次数据包的平均发送速率,其中,在判断结果为是时,确定网络在当次数据传输窗口内发生拥塞。Judging whether the average sending rate of any batch of data packets is lower than the average sending rate of the previous batch of data packets, wherein, if the judgment result is yes, it is determined that the network is congested within the current data transmission window.
进一步地,前述物联网数据传输程序被处理器1001执行时,还实现如下操作:Further, when the aforementioned Internet of Things data transmission program is executed by the
按照预设步长值增大数据包的发送功率。Increase the sending power of the data packet according to the preset step value.
进一步地,前述物联网数据传输程序被处理器1001执行时,还实现如下操作:Further, when the aforementioned Internet of Things data transmission program is executed by the
在接收到网络侧发送的功率调整指令时,根据接收的功率调整指令调整数据包的发送功率。When the power adjustment instruction sent by the network side is received, the sending power of the data packet is adjusted according to the received power adjustment instruction.
进一步地,前述物联网数据传输程序被处理器1001执行时,还实现如下操作:Further, when the aforementioned Internet of Things data transmission program is executed by the
在调整之后的节电模式定时器超时后,向网络侧发送附着请求,以建立与网络侧之间的传输通道;After the adjusted power-saving mode timer expires, send an attach request to the network side to establish a transmission channel with the network side;
在接收到网络侧建立传输通道之后所返回的附着响应时,开始进行数据包的发送操作。After receiving the attach response returned by the network side after the transmission channel is established, the data packet sending operation starts.
进一步地,前述物联网数据传输程序被处理器1001执行时,还实现如下操作:Further, when the aforementioned Internet of Things data transmission program is executed by the
在预设时间段内未接收到网络侧返回的附着响应时,重置节电模式定时器,开始计时。When the attach response returned by the network side is not received within the preset time period, the power saving mode timer is reset and starts counting.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM) , magnetic disk, optical disk), including several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, and these all belong to the protection of the present invention.
Claims (8)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710286723.6A CN108810971B (en) | 2017-04-27 | 2017-04-27 | Internet of things data transmission method, internet of things terminal and computer readable storage medium |
| PCT/CN2018/079525 WO2018196504A1 (en) | 2017-04-27 | 2018-03-20 | Method for transmitting internet of things data, internet of things terminal, and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710286723.6A CN108810971B (en) | 2017-04-27 | 2017-04-27 | Internet of things data transmission method, internet of things terminal and computer readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108810971A CN108810971A (en) | 2018-11-13 |
| CN108810971B true CN108810971B (en) | 2023-05-16 |
Family
ID=63919410
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710286723.6A Active CN108810971B (en) | 2017-04-27 | 2017-04-27 | Internet of things data transmission method, internet of things terminal and computer readable storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108810971B (en) |
| WO (1) | WO2018196504A1 (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111405608B (en) * | 2019-01-02 | 2023-05-09 | 中国移动通信有限公司研究院 | Information processing method and device, network equipment and storage medium |
| CN110602744B (en) * | 2019-09-06 | 2020-08-07 | 南京大鱼半导体有限公司 | Method and device for congestion control of Internet of things, storage medium and electronic equipment |
| CN112769707B (en) * | 2019-11-04 | 2022-11-04 | 成都鼎桥通信技术有限公司 | Method, device and system for preventing congestion in Internet of things |
| CN110995606B (en) * | 2019-12-20 | 2022-02-22 | 迈普通信技术股份有限公司 | Congestion analysis method and device |
| CN112218359B (en) * | 2020-11-18 | 2023-02-21 | 中国联合网络通信集团有限公司 | A method and device for setting the duration of a timer |
| CN114039931B (en) * | 2021-10-27 | 2024-04-02 | 浙江大华技术股份有限公司 | Method, device, equipment and medium for controlling data transmission |
| CN119629186B (en) * | 2024-11-08 | 2025-09-30 | 广州海洋地质调查局 | Ship-shore low-speed bandwidth data synchronization method, device, electronic device and medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103384394A (en) * | 2012-05-04 | 2013-11-06 | 中兴通讯股份有限公司 | Method and device for processing user equipment power consumption and power consumption configuration parameters |
| WO2013177992A1 (en) * | 2012-05-29 | 2013-12-05 | 中兴通讯股份有限公司 | Method and system for sending control signaling in power save mode |
| CN104145466A (en) * | 2012-02-24 | 2014-11-12 | 诺基亚公司 | Method and apparatus for dynamic server|client controlled connectivity logic |
| CN104219117A (en) * | 2014-09-25 | 2014-12-17 | 北京邮电大学 | Internet-of-Things access request convergence method based on service types |
| WO2016053846A1 (en) * | 2014-09-29 | 2016-04-07 | Convida Wireless, Llc | Service capability server/epc coordination for power savings mode and paging |
| CN105992247A (en) * | 2015-01-30 | 2016-10-05 | 中兴通讯股份有限公司 | Wireless data transmitting and receiving method and apparatus |
| CN106465265A (en) * | 2014-05-08 | 2017-02-22 | 英特尔Ip公司 | User equipment and method for indicating power saving mode configuration to RAN nodes |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2016113215A1 (en) * | 2015-01-13 | 2016-07-21 | Telefonaktiebolaget Lm Ericsson (Publ) | Coordination using the ue application |
-
2017
- 2017-04-27 CN CN201710286723.6A patent/CN108810971B/en active Active
-
2018
- 2018-03-20 WO PCT/CN2018/079525 patent/WO2018196504A1/en not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104145466A (en) * | 2012-02-24 | 2014-11-12 | 诺基亚公司 | Method and apparatus for dynamic server|client controlled connectivity logic |
| CN103384394A (en) * | 2012-05-04 | 2013-11-06 | 中兴通讯股份有限公司 | Method and device for processing user equipment power consumption and power consumption configuration parameters |
| WO2013177992A1 (en) * | 2012-05-29 | 2013-12-05 | 中兴通讯股份有限公司 | Method and system for sending control signaling in power save mode |
| CN106465265A (en) * | 2014-05-08 | 2017-02-22 | 英特尔Ip公司 | User equipment and method for indicating power saving mode configuration to RAN nodes |
| CN104219117A (en) * | 2014-09-25 | 2014-12-17 | 北京邮电大学 | Internet-of-Things access request convergence method based on service types |
| WO2016053846A1 (en) * | 2014-09-29 | 2016-04-07 | Convida Wireless, Llc | Service capability server/epc coordination for power savings mode and paging |
| CN105992247A (en) * | 2015-01-30 | 2016-10-05 | 中兴通讯股份有限公司 | Wireless data transmitting and receiving method and apparatus |
Non-Patent Citations (2)
| Title |
|---|
| State Dependent Radio Resource Scheduling for Energy Saving in LTE Downlink;Yen-Yin Chu等;《2013 Fourth International Conference on Networking and Distributed Computing》;20141013;全文 * |
| 一种在接收端实现的TCP-Friendly拥塞控制机制;刘郁恒等;《电子学报》;20050525(第05期);第835-841页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108810971A (en) | 2018-11-13 |
| WO2018196504A1 (en) | 2018-11-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108810971B (en) | Internet of things data transmission method, internet of things terminal and computer readable storage medium | |
| US11240728B2 (en) | Methods and apparatus for selecting a network route for data communications for IoT devices | |
| CN109792684B (en) | keep the UE awake | |
| JP5703410B2 (en) | User device hibernation | |
| CN103379593B (en) | A terminal power saving method, a terminal power saving device and a network side power saving device | |
| KR101317117B1 (en) | Congestion control of mtc data in mobile communications system | |
| CN104054369B (en) | Device-Based Architecture for Ad-hoc Networks | |
| US8750213B2 (en) | Providing a deny response that specifies a delay time | |
| CN119652755A (en) | Resource management method and device | |
| WO2008040226A1 (en) | Idle mode notification | |
| CN113490287B (en) | Method and device for determining contention window, communication device and storage medium | |
| CN102892203B (en) | The dispatching method and terminal of Radio Link in a kind of packet field network | |
| CN104170419A (en) | Subscriber server, monitoring server, mobile terminal, method related thereto, and computer-readable medium | |
| CN114598560A (en) | Wireless network policy issuing method, device, electronic device and storage medium | |
| US9473985B2 (en) | UE selective control of downlink data | |
| CN103609168A (en) | Access method for circuit switched fallback (CSFB), mobility management entity and mobile switch center | |
| CN104244331A (en) | Data distributing method and device | |
| CN104604310A (en) | A method and nodes for paging in a radio access network | |
| CN109309946B (en) | A method, device and system for congestion control | |
| EP2745595B1 (en) | Method and apparatus for controlling buffer status report messaging | |
| CN104640158B (en) | Terminal occupies Internet resources calculation method, device and Internet resources calculation server | |
| JP6221488B2 (en) | Management device, control device, communication system, and communication method | |
| EP2936883B1 (en) | Power saving in wlan stations using data accumulation at an access point | |
| CN103812627B (en) | A kind of for sending the method for schedule information, device and base station | |
| CN113840374B (en) | A method, device and computer-readable storage medium for adjusting paging density |
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 |