CN112333250B - Response method and system for Internet of things data packet in intelligent building - Google Patents

Response method and system for Internet of things data packet in intelligent building Download PDF

Info

Publication number
CN112333250B
CN112333250B CN202011159119.5A CN202011159119A CN112333250B CN 112333250 B CN112333250 B CN 112333250B CN 202011159119 A CN202011159119 A CN 202011159119A CN 112333250 B CN112333250 B CN 112333250B
Authority
CN
China
Prior art keywords
destination
address
internet
priority
things
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
CN202011159119.5A
Other languages
Chinese (zh)
Other versions
CN112333250A (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.)
Tianjin Urban Planning And Design Institute Co ltd
Original Assignee
Tianjin Urban Planning And Design Institute 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 Tianjin Urban Planning And Design Institute Co ltd filed Critical Tianjin Urban Planning And Design Institute Co ltd
Priority to CN202011159119.5A priority Critical patent/CN112333250B/en
Publication of CN112333250A publication Critical patent/CN112333250A/en
Application granted granted Critical
Publication of CN112333250B publication Critical patent/CN112333250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2416Real-time traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A response method for Internet of things data packets in an intelligent building calculates delay delta w of each destination IP addressi=tint*wi/Min(wi) (ii) a Wherein Min (w)i) Finger selects all wiMinimum value of (1); calculating the corrected arrival time t' ═ t + delta w of each data packeti(ii) a t is the actual time for the packet to reach the access gateway; and sequentially sending data packets to the Internet of things terminal according to the sequence of the corrected arrival time. According to the load condition of the gateway equipment, different processing strategies are provided for the response data packets, when the load is large, the flow control can be targeted for different target IP, the flow control considers the requirements of the frequency and the service type of the response data packets on the processing timeliness of the data packets, the interval delay calculated by the delay control algorithm is in the same quantity grade with the average time interval, and the tolerance of the terminal to the delay of the response message can be reflected.

Description

Response method and system for Internet of things data packet in intelligent building
Technical Field
The invention relates to the technical field of communication, in particular to a response method of an internet of things data packet in an intelligent building.
Background
With the rapid development of communication technology and the further integration of communication technology and internet technology, the popularity of mobile services and mobile internet technology is higher and higher. Currently, in most developed countries, mobile communication penetration rate is even up to 100%, which results in slower and slower speed increase of mobile subscribers, and the global mobile operators are basically faced with the problem. For this reason, operators are beginning to look for new growth points in the mobile communication field. On the other hand, with the rise of internet technologies, especially mobile internet technologies generated by the integration of internet technologies and mobile communication technologies, a new gate is opened for operators to further expand revenue and markets.
The Internet of things (english) is a technology of installing sensors on various real objects, connecting The sensors through The Internet, and operating a specific program to achieve remote control of The objects or achieve direct communication between The objects. The internet of things based on the contact between things and the network based on the communication between people are different greatly, so that the current communication network architecture has many problems when the internet of things is carried. With the gradual rise of the technology of the internet of things, the internet of things is more and more applied to intelligent homes, intelligent buildings and intelligent meter reading.
M2M is a Machine-to-Machine/Man (Machine to Machine or human) for short, and is a networked application and service with intelligent interaction of Machine terminals as a core. The wireless communication module is embedded in the machine, and wireless communication and the like are used as access means, so that a comprehensive informatization solution is provided for a client, and the informatization requirements of the client on monitoring, commanding and scheduling, data acquisition, measurement and the like are met.
Firstly, the number of internet of things terminals based on object-to-object communication reaches hundreds of billions, service initiation and processing are based on objects, and as the internet of things terminals need massive low data traffic, service transmission is discontinuous, and under the condition of highly integrating management, control and service, a large amount of signaling is inevitably generated to keep the connectivity of service channels, so that network storm is caused, and impact and damage are generated to the network.
Secondly, because the terminal intelligence of the internet of things is poor, the processing capacity of a processor is insufficient, the capacity of a memory is insufficient, the existing internet of things generally corresponds to a closed network with tightly coupled slave terminals, networks and services, and the processing capacity of the terminal of the internet of things is inevitably insufficient due to a plurality of closed networks caused by various applications.
The existing information processing mode of the internet of things is that an access gateway takes charge of the function of managing the terminal of the internet of things, and then the access gateway is used for accessing the internet by the traditional TCP/IP protocol communication. In order to ensure the reliability of communication in conventional TCP/IP protocol communication, ACK acknowledgement is required to complete the acknowledgement during the data packet transceiving process. However, such a mechanism is easy to form a signaling storm on the access gateway in the environment of the internet of things, and poses a challenge to the processing capability of the terminal of the internet of things.
Disclosure of Invention
The invention aims to solve the technical problem of providing 1. a response method of an Internet of things data packet in an intelligent building, which comprises the following steps: step 1: the access gateway receives a data packet from the terminal of the internet of things, wherein the data packet is a device (target device) which is sent to the internet by the terminal of the internet of things through the access gateway; step 2: the access gateway acquires the destination IP address in the data packet, counts the number of different destination IP addresses in a preset time, sets the number as N, if the number N of different destination IP addresses is larger than a preset threshold value, executes the step 3, otherwise, ends the process (the threshold value is set in the prior art); and step 3: after receiving a data packet from a device (target device) in the Internet, an access gateway counts whether the received data packet exceeds a threshold value in unit time, wherein the threshold value is related to the processing capacity of a terminal of the Internet of things and is stored in the access gateway in advance; if yes, executing step 4; otherwise, processing the data packet in a first-come-first-processed order, and ending the flow; and 4, step 4: obtaining the priority of each destination IP address in different destination IP addresses, wherein the priority is specified by the terminal of the Internet of things or is determined by an access gateway according to the property of an operator to which the destination IP address belongs; and 5: acquiring the quantity of data packets sent by the Internet of things terminal to each of different destination IP addresses in unit time; step 6: calculating a delay factor W for each of different destination IP addressesi,Wi=Pi×Fi(ii) a i ∈ {1,2, …, N }; n is the number of different destination IP addresses; wiIs the delay factor of the ith destination IP address, PiIs the priority of the ith destination IP address, the higher the priority, PiThe lower the value of (d); fiIs the number of packets sent to the ith destination IP address in a unit time(ii) a And 7: calculating the average interval time t between the received response messages in the latest periodint(ii) a And 8: calculating a delay amount Δ W for each destination IP addressi=tint×Wi/Min(Wi) (ii) a Wherein Min (W)i) Finger selects all WiMinimum value of (1); and step 9: calculating the corrected arrival time t ═ t + Δ W of each data packeti(ii) a t is the actual time for the packet to reach the access gateway; step 10: and sequentially sending data packets to the Internet of things terminal according to the sequence of the corrected arrival time.
Preferably, the priority in step 4 is assigned by the terminal of the internet of things, and the specific steps are as follows: step 411: when the terminal of the internet of things establishes connection with a certain target IP address for the first time, a priority declaration message is constructed, and the message at least comprises the following fields: destination IP address, validity time, priority; step 412: setting the destination address of the message as an access gateway; step 413: the message is sent to the access gateway.
Preferably, the priority in step 4 is determined by the access gateway according to the property of the operator to which the destination IP address belongs, and the specific steps are as follows: step 421: establishing a corresponding relation between a common destination IP address and a priority; step 422: when the priority of the destination IP address needs to be determined, if the destination IP address is in the corresponding relation table, determining according to the corresponding relation; otherwise, its priority is set to the lowest priority.
The invention also provides a response system of the data packet of the internet of things in the intelligent building, which comprises a processor and a memory, wherein the memory is stored with a computer program and is used for executing the following steps: step 1: the access gateway receives a data packet from the terminal of the internet of things, wherein the data packet is a device (target device) which is sent to the internet by the terminal of the internet of things through the access gateway; step 2: the access gateway acquires the destination IP address in the data packet, counts the number of different destination IP addresses in a preset time, sets the number as N, if the number N of different destination IP addresses is larger than a preset threshold value, executes the step 3, otherwise, ends the process (the threshold value is set in the prior art); and step 3: device for access gateway from internetAfter receiving the data packet, the (target equipment) counts whether the data packet received in unit time exceeds a threshold value, wherein the threshold value is related to the processing capacity of the terminal of the Internet of things and is stored in the access gateway in advance; if yes, executing step 4; otherwise, processing the data packet in a first-come-first-processed order, and ending the flow; and 4, step 4: obtaining the priority of each destination IP address in different destination IP addresses, wherein the priority is specified by the terminal of the Internet of things or is determined by an access gateway according to the property of an operator to which the destination IP address belongs; and 5: acquiring the quantity of data packets sent by the Internet of things terminal to each of different destination IP addresses in unit time; step 6: calculating a delay factor W, W for each of the different destination IP addressesi=Pi×Fi(ii) a i ∈ {1,2, …, N }; n is the number of different destination IP addresses; wiIs the delay factor of the ith destination IP address, PiIs the priority of the ith destination IP address, the higher the priority, PiThe lower the value of (d); fiThe number of data packets sent to the ith destination IP address in unit time; and 7: calculating the average interval time t between the received response messages in the latest periodint(ii) a And 8: calculating a delay amount Δ W for each destination IP addressi=tint×Wi/Min(Wi) (ii) a Wherein Min (W)i) Finger selects all WiMinimum value of (1); and step 9: calculating the corrected arrival time t ═ t + Δ W of each data packeti(ii) a t is the actual time for the packet to reach the access gateway; step 10: and sequentially sending data packets to the Internet of things terminal according to the sequence of the corrected arrival time.
Preferably, the priority in step 4 is assigned by the terminal of the internet of things, and the specific steps are as follows: step 411: when the terminal of the internet of things establishes connection with a certain target IP address for the first time, a priority declaration message is constructed, and the message at least comprises the following fields: destination IP address, validity time, priority; step 412: setting the destination address of the message as an access gateway; step 413: the message is sent to the access gateway.
Preferably, the priority in step 4 is determined by the access gateway according to the property of the operator to which the destination IP address belongs, and the specific steps are as follows: step 421: establishing a corresponding relation between a common destination IP address and a priority; step 422: when the priority of the destination IP address needs to be determined, if the destination IP address is in the corresponding relation table, determining according to the corresponding relation; otherwise, its priority is set to the lowest priority.
The present invention also provides a computer-readable storage medium having stored thereon instructions that, when executed, perform the steps of: step 1: the access gateway receives a data packet from the terminal of the internet of things, wherein the data packet is a device (target device) which is sent to the internet by the terminal of the internet of things through the access gateway; step 2: the access gateway acquires the destination IP address in the data packet, counts the number of different destination IP addresses in a preset time, sets the number as N, if the number N of different destination IP addresses is larger than a preset threshold value, executes the step 3, otherwise, ends the process (the threshold value is set in the prior art); and step 3: after receiving a data packet from a device (target device) in the Internet, an access gateway counts whether the received data packet exceeds a threshold value in unit time, wherein the threshold value is related to the processing capacity of a terminal of the Internet of things and is stored in the access gateway in advance; if yes, executing step 4; otherwise, processing the data packet in a first-come-first-processed order, and ending the flow; and 4, step 4: obtaining the priority of each destination IP address in different destination IP addresses, wherein the priority is specified by the terminal of the Internet of things or is determined by an access gateway according to the property of an operator to which the destination IP address belongs; and 5: acquiring the quantity of data packets sent by the Internet of things terminal to each of different destination IP addresses in unit time; step 6: calculating a delay factor W, W for each of the different destination IP addressesi=Pi×Fi(ii) a i ∈ {1,2, …, N }; n is the number of different destination IP addresses; wiIs the delay factor of the ith destination IP address, PiIs the priority of the ith destination IP address, the higher the priority, PiThe lower the value of (d); fiThe number of data packets sent to the ith destination IP address in unit time; and 7: meterCalculating the average interval time t between the received response messages in the latest periodint(ii) a And 8: calculating a delay amount Δ W for each destination IP addressi=tint×Wi/Min(Wi) (ii) a Wherein Min (W)i) Finger selects all WiMinimum value of (1); and step 9: calculating the corrected arrival time t ═ t + Δ W of each data packeti(ii) a t is the actual time for the packet to reach the access gateway; step 10: and sequentially sending data packets to the Internet of things terminal according to the sequence of the corrected arrival time.
Preferably, the priority in step 4 is assigned by the terminal of the internet of things, and the specific steps are as follows: step 411: when the terminal of the internet of things establishes connection with a certain target IP address for the first time, a priority declaration message is constructed, and the message at least comprises the following fields: destination IP address, validity time, priority; step 412: setting the destination address of the message as an access gateway; step 413: the message is sent to the access gateway.
Preferably, the priority in step 4 is determined by the access gateway according to the property of the operator to which the destination IP address belongs, and the specific steps are as follows: step 421: establishing a corresponding relation between a common destination IP address and a priority; step 422: when the priority of the destination IP address needs to be determined, if the destination IP address is in the corresponding relation table, determining according to the corresponding relation; otherwise, its priority is set to the lowest priority.
The invention is characterized in that:
1) according to the load condition of the gateway equipment, different processing strategies are provided for the answer data packets.
2) When the load is large, the flow control can be controlled in a targeted manner for different purpose IPs.
3) Flow control takes into account the frequency of the reply packet and the requirements of the traffic type on the timeliness of packet processing.
4) The interval delay degree calculated by the delay control algorithm is in the same quantity level with the average time interval, and the tolerance of the terminal to the delay of the response message can be reflected.
Drawings
FIG. 1 is an architecture diagram of an M2M business system;
FIG. 2 is a flow chart of an embodiment of the present invention.
Detailed Description
The following describes embodiments of the present invention with reference to the drawings.
Fig. 1 shows a currently common M2M service application architecture, which includes: the system comprises an M2M machine terminal access layer, a communication network \ IP network layer, an M2M service platform layer and M2M application, wherein: the M2M machine terminal access layer can be divided into two types: the first is M2M terminal equipment, and the first step in implementing M2M service is that the terminal equipment collects data, sends the collected data out through a network, and receives data sent by the network. Generally, for a mobile network, a communication module is used for realizing communication with an M2M terminal, and machine hardware is a device for realizing M2M service; for the fixed network, the fixed network can be accessed through a network card or a modem and the like; the second type is an M2M terminal gateway device, which is used to connect a communication network (mobile communication network or fixed communication network) on one hand and other networks on the other hand, and comprises: sensor networks, industrial control networks, personal area networks, converged personal networks, satellite networks, home networks or enterprise networks, etc. For such devices, it can play roles of acting as agents and adapting to devices of other networks, for example, sensors, performing service uploading and issuing, and data processing, control, protocol conversion, etc.
Communication network \ IP network: the system is used for transferring M2M service data between M2M machine terminals or playing a connection network of the M2M machine terminals and third-party service platforms and applications. Plays an important role in the whole M2M technical framework. Including mobile communication networks, broadband networks, wide area networks, local area networks, personal area networks, and the like.
M2M service platform: since the M2M business needs to support many different industry, enterprise applications, and home applications. Therefore, based on the service capability of the M2M service platform, a gateway service capability and M2M service environment call which provide the foundation for a large number of third-party M2M application systems are needed. Gateway service capabilities, including: management, monitoring, data collection, protocol conversion and the like of the terminal. For gateway service capability, the service platform is generally limited in capability and simple in functionality, and therefore, only common simple M2M applications can be supported; for M2M business environment capabilities, the capabilities involved are typically many, such as supporting the creation, editing, orchestration, generation, and distribution of business, and these business environment capabilities are based on the existing various specific individual business capabilities, for example: location, GIS, messaging, presence, and DM, among other existing service capabilities. Through the logic of the business environment, increased business capabilities can be provided to satisfy complex M2M applications.
M2M uses: the M2M service can be widely applied to various industries, including large-scale enterprise applications, medium-sized and small-sized enterprise applications, personal and household users and the like, including remote medical treatment, remote meter reading, public security and the like. For different industries and enterprise users, the demands for specific applications are very different and distinct, and therefore, the M2M application is usually developed by the users themselves, and the operators generally only provide standardized and general service applications.
Example 1
Fig. 2 is a flowchart of a method for responding to an internet of things data packet in an intelligent building according to an embodiment of the present invention.
Due to the application environment of the intelligent building, the terminals of the internet of things in the environment are only terminals for setting various kinds of monitoring. The data transmitted from the terminal of the internet of things to the external network mainly comprise monitoring content, and most of the data transmitted from the external network to the terminal of the internet of things are response data packets. The invention does not need to distinguish the type of the data packet when processing the data packet, and the data packet is uniformly processed as a response data packet. But also can save processing resources and has limited influence on other types of data packets.
A response method of an Internet of things data packet in an intelligent building comprises the following steps.
Step 1: the access gateway receives a data packet from the terminal of the internet of things, and the data packet is transmitted to a device (destination device) in the internet through the access gateway by the terminal of the internet of things. In the scheme, the terminal of the Internet of things can be monitoring equipment with various sensor types and is communicated with an external network through an access gateway. The destination device is located in an external network, such as the internet, and may be any device, such as a server device for collecting monitoring information provided by an internet of things device, or a monitoring information display terminal device connected with a certain monitoring device in a peer-to-peer manner.
Step 2: and the access gateway acquires the destination IP address in the data packet, counts the number of different destination IP addresses in a preset time, sets the number to be N, executes the step 3 if the number N of the different destination IP addresses is larger than a preset threshold value, and otherwise, ends the process. The setting of the threshold value belongs to the prior art. The setting can be comprehensively considered according to the information such as the performance of the gateway equipment. N is lower than the threshold value, which means that the number of the extranet devices that the access gateway needs to serve is not large, and the load for processing the response message is not large, so that the access gateway only needs to process according to the conventional processing flow. No additional scheduling algorithm needs to be performed.
And step 3: after receiving a data packet from a device (target device) in the Internet, an access gateway counts whether the received data packet exceeds a threshold value in unit time, wherein the threshold value is related to the processing capacity of a terminal of the Internet of things and is stored in the access gateway in advance; if yes, executing step 4; otherwise, the data packets are processed in a first-come-first-processed order, and the process ends. The first-come-first-served principle is a conventional processing method when the processing capability is guaranteed, that is, a data packet received by the access gateway is processed according to a conventional processing means as long as the data packet does not exceed a threshold value. The setting of the threshold belongs to the prior art. The setting can be comprehensively considered according to the information such as the performance of the gateway equipment.
And 4, step 4: and obtaining the priority of each destination IP address in the different destination IP addresses, wherein the priority is specified by the terminal of the Internet of things or is determined by the access gateway according to the property of the operator to which the destination IP address belongs.
Preferably, the priority in step 4 is assigned by the terminal of the internet of things, and the specific steps are as follows: step 411: when the terminal of the internet of things establishes connection with a certain target IP address for the first time, a priority declaration message is constructed, and the message at least comprises the following fields: destination IP address, validity time, priority; step 412: setting the destination address of the message as an access gateway; step 413: the message is sent to the access gateway.
Preferably, the priority in step 4 is determined by the access gateway according to the property of the operator to which the destination IP address belongs, and the specific steps are as follows: step 421: establishing a corresponding relation between a common destination IP address and a priority; step 422: when the priority of the destination IP address needs to be determined, if the destination IP address is in the corresponding relation table, determining according to the corresponding relation; otherwise, its priority is set to the lowest priority.
And 5: acquiring the quantity of data packets sent by the Internet of things terminal to each of different destination IP addresses in unit time;
step 6: calculating a delay factor W for each of different destination IP addressesi,Wi=η×Γi(ii) a i ∈ {1,2, …, N }; n is the number of different destination IP addresses; wiIs the delay factor of the ith destination IP address, PiIs the priority of the ith destination IP address, the higher the priority, PiThe lower the value of (d); fiIs the number of packets sent per unit time to the ith destination IP address. The delay factor for each destination IP address is related to two parameters, the higher the priority the lower the delay factor, and the lower the number of packets per unit data. Since the traffic involved by high priority destination IP addresses is relatively more important. The sending frequency of the number of the data packets has a special meaning in the fields of intelligent buildings and the like, and the interaction frequency represents the health degree of communication between the target terminal and the Internet of things equipment. For example, heartbeat packets and the like used for measuring whether communication between devices is normal need to be considered in terms of frequency.
And 7: calculating the average interval time t between the received response messages in the latest periodint. For example, the length of time of the last period of time is divided by the number of packets received.
And 8: calculating a delay amount Δ W for each destination IP addressi=tint×Wi/Min(Wi) (ii) a Wherein Min (W)i) Finger selects all WiMinimum value of (1). Wherein t isintEmbodying the level of the interval, W, of the data packet at the time of receptioni/Min(Wi) Corresponding to the adjustment of the level of the spacing.
And step 9: calculating the corrected arrival time t ═ t + Δ W of each data packeti(ii) a t is the actual time the packet reaches the access gateway.
Step 10: and sequentially sending data packets to the Internet of things terminal according to the sequence of the corrected arrival time.
Example 2
Due to the application environment of the intelligent building, the terminals of the internet of things in the environment are only terminals for setting various kinds of monitoring. The data transmitted from the terminal of the internet of things to the external network mainly comprise monitoring content, and most of the data transmitted from the external network to the terminal of the internet of things are response data packets. The invention does not need to distinguish the type of the data packet when processing the data packet, and the data packet is uniformly processed as a response data packet. But also can save processing resources and has limited influence on other types of data packets.
The response system of the data packet of the Internet of things in the intelligent building comprises a processor and a memory, wherein a computer program is stored in the memory and used for executing the following steps.
Step 1: the access gateway receives a data packet from the terminal of the internet of things, and the data packet is transmitted to a device (destination device) in the internet through the access gateway by the terminal of the internet of things. In the scheme, the terminal of the Internet of things can be monitoring equipment with various sensor types and is communicated with an external network through an access gateway. The destination device is located in an external network, such as the internet, and may be any device, such as a server device for collecting monitoring information provided by an internet of things device, or a monitoring information display terminal device connected with a certain monitoring device in a peer-to-peer manner.
Step 2: and the access gateway acquires the destination IP address in the data packet, counts the number of different destination IP addresses in a preset time, sets the number to be N, executes the step 3 if the number N of the different destination IP addresses is larger than a preset threshold value, and otherwise, ends the process. The setting of the threshold value belongs to the prior art. The setting can be comprehensively considered according to the information such as the performance of the gateway equipment. N is lower than the threshold value, which means that the number of the extranet devices that the access gateway needs to serve is not large, and the load for processing the response message is not large, so that the access gateway only needs to process according to the conventional processing flow. No additional scheduling algorithm needs to be performed.
And step 3: after receiving a data packet from a device (target device) in the Internet, an access gateway counts whether the received data packet exceeds a threshold value in unit time, wherein the threshold value is related to the processing capacity of a terminal of the Internet of things and is stored in the access gateway in advance; if yes, executing step 4; otherwise, the data packets are processed in a first-come-first-processed order, and the process ends. The first-come-first-served principle is a conventional processing method when the processing capability is guaranteed, that is, a data packet received by the access gateway is processed according to a conventional processing means as long as the data packet does not exceed a threshold value. The setting of the threshold belongs to the prior art. The setting can be comprehensively considered according to the information such as the performance of the gateway equipment.
And 4, step 4: and obtaining the priority of each destination IP address in the different destination IP addresses, wherein the priority is specified by the terminal of the Internet of things or is determined by the access gateway according to the property of the operator to which the destination IP address belongs.
Preferably, the priority in step 4 is assigned by the terminal of the internet of things, and the specific steps are as follows: step 411: when the terminal of the internet of things establishes connection with a certain target IP address for the first time, a priority declaration message is constructed, and the message at least comprises the following fields: destination IP address, validity time, priority; step 412: setting the destination address of the message as an access gateway; step 413: the message is sent to the access gateway.
Preferably, the priority in step 4 is determined by the access gateway according to the property of the operator to which the destination IP address belongs, and the specific steps are as follows: step 421: establishing a corresponding relation between a common destination IP address and a priority; step 422: when the priority of the destination IP address needs to be determined, if the destination IP address is in the corresponding relation table, determining according to the corresponding relation; otherwise, its priority is set to the lowest priority.
And 5: acquiring the quantity of data packets sent by the Internet of things terminal to each of different destination IP addresses in unit time;
step 6: calculating a delay factor W for each of different destination IP addressesi,Wi=Pi×Fi(ii) a i ∈ {1,2, …, N }; n is the number of different destination IP addresses; wiIs the delay factor of the ith destination IP address, PiIs the priority of the ith destination IP address, the higher the priority, PiThe lower the value of (d); fiIs the number of packets sent per unit time to the ith destination IP address. The delay factor for each destination IP address is related to two parameters, the higher the priority the lower the delay factor, and the lower the number of packets per unit data. Since the traffic involved by high priority destination IP addresses is relatively more important. The sending frequency of the number of the data packets has a special meaning in the fields of intelligent buildings and the like, and the interaction frequency represents the health degree of communication between the target terminal and the Internet of things equipment. For example, heartbeat packets and the like used for measuring whether communication between devices is normal need to be considered in terms of frequency.
And 7: calculating the average interval time t between the received response messages in the latest periodint. For example, the length of time of the last period of time is divided by the number of packets received.
And 8: calculating a delay amount Δ W for each destination IP addressi=tint×Wi/Min(Wi) (ii) a Wherein Min (W)i) Finger selects all WiMinimum value of (1). Wherein t isintEmbodying the level of the interval, W, of the data packet at the time of receptioni/Min(Wi) Corresponding to the adjustment of the level of the spacing.
And step 9: calculating the corrected arrival time t ═ t + Δ W of each data packeti(ii) a t is the actual time the packet reaches the access gateway.
Step 10: and sequentially sending data packets to the Internet of things terminal according to the sequence of the corrected arrival time.
Example 3
Due to the application environment of the intelligent building, the terminals of the internet of things in the environment are only terminals for setting various kinds of monitoring. The data transmitted from the terminal of the internet of things to the external network mainly comprise monitoring content, and most of the data transmitted from the external network to the terminal of the internet of things are response data packets. The invention does not need to distinguish the type of the data packet when processing the data packet, and the data packet is uniformly processed as a response data packet. But also can save processing resources and has limited influence on other types of data packets.
A computer-readable storage medium having stored thereon instructions which, when executed, perform the following steps.
Step 1: the access gateway receives a data packet from the terminal of the internet of things, and the data packet is transmitted to a device (destination device) in the internet through the access gateway by the terminal of the internet of things. In the scheme, the terminal of the Internet of things can be monitoring equipment with various sensor types and is communicated with an external network through an access gateway. The destination device is located in an external network, such as the internet, and may be any device, such as a server device for collecting monitoring information provided by an internet of things device, or a monitoring information display terminal device connected with a certain monitoring device in a peer-to-peer manner.
Step 2: and the access gateway acquires the destination IP address in the data packet, counts the number of different destination IP addresses in a preset time, sets the number to be N, executes the step 3 if the number N of the different destination IP addresses is larger than a preset threshold value, and otherwise, ends the process. The setting of the threshold value belongs to the prior art. The setting can be comprehensively considered according to the information such as the performance of the gateway equipment. N is lower than the threshold value, which means that the number of the extranet devices that the access gateway needs to serve is not large, and the load for processing the response message is not large, so that the access gateway only needs to process according to the conventional processing flow. No additional scheduling algorithm needs to be performed.
And step 3: after receiving a data packet from a device (target device) in the Internet, an access gateway counts whether the received data packet exceeds a threshold value in unit time, wherein the threshold value is related to the processing capacity of a terminal of the Internet of things and is stored in the access gateway in advance; if yes, executing step 4; otherwise, the data packets are processed in a first-come-first-processed order, and the process ends. The first-come-first-served principle is a conventional processing method when the processing capability is guaranteed, that is, a data packet received by the access gateway is processed according to a conventional processing means as long as the data packet does not exceed a threshold value. The setting of the threshold belongs to the prior art. The setting can be comprehensively considered according to the information such as the performance of the gateway equipment.
And 4, step 4: and obtaining the priority of each destination IP address in the different destination IP addresses, wherein the priority is specified by the terminal of the Internet of things or is determined by the access gateway according to the property of the operator to which the destination IP address belongs.
Preferably, the priority in step 4 is assigned by the terminal of the internet of things, and the specific steps are as follows: step 411: when the terminal of the internet of things establishes connection with a certain target IP address for the first time, a priority declaration message is constructed, and the message at least comprises the following fields: destination IP address, validity time, priority; step 412: setting the destination address of the message as an access gateway; step 413: the message is sent to the access gateway.
Preferably, the priority in step 4 is determined by the access gateway according to the property of the operator to which the destination IP address belongs, and the specific steps are as follows: step 421: establishing a corresponding relation between a common destination IP address and a priority; step 422: when the priority of the destination IP address needs to be determined, if the destination IP address is in the corresponding relation table, determining according to the corresponding relation; otherwise, its priority is set to the lowest priority.
And 5: acquiring the quantity of data packets sent by the Internet of things terminal to each of different destination IP addresses in unit time;
step 6: calculating a delay factor W for each of different destination IP addressesi,Wi=Pi×Fi(ii) a i ∈ {1,2, …, N }; n is the number of different destination IP addresses; wiIs the delay factor of the ith destination IP address, PiIs the priority of the ith destination IP address, the higher the priority, PiThe lower the value of (d); fiIs the number of packets sent per unit time to the ith destination IP address. The delay factor for each destination IP address is related to two parameters, the higher the priority the lower the delay factor, and the lower the number of packets per unit data. Since the traffic involved by high priority destination IP addresses is relatively more important. The sending frequency of the number of the data packets has a special meaning in the fields of intelligent buildings and the like, and the interaction frequency represents the health degree of communication between the target terminal and the Internet of things equipment. For example, heartbeat packets and the like used for measuring whether communication between devices is normal need to be considered in terms of frequency.
And 7: calculating the average interval time t between the received response messages in the latest periodint. For example, the length of time of the last period of time is divided by the number of packets received.
And 8: calculating a delay amount Δ W for each destination IP addressi=tint×Wi/Min(Wi) (ii) a Wherein Min (W)i) Finger selects all WiMinimum value of (1). Wherein t isintEmbodying the level of the interval, W, of the data packet at the time of receptioni/Min(Wi) Corresponding to the adjustment of the level of the spacing.
And step 9: calculating the corrected arrival time t ═ t + Δ W of each data packeti(ii) a t is the actual time the packet reaches the access gateway.
Step 10: and sequentially sending data packets to the Internet of things terminal according to the sequence of the corrected arrival time.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art.

Claims (9)

1. A response method of an Internet of things data packet in an intelligent building comprises the following steps:
step 1: the access gateway receives a data packet from the terminal of the Internet of things, wherein the data packet is a target device which is sent to the Internet by the terminal of the Internet of things through the access gateway;
step 2: the access gateway acquires the destination IP address in the data packet, counts the number of different destination IP addresses in a preset time, sets the number as N, if the number N of different destination IP addresses is larger than a preset threshold value, executes the step 3, otherwise, ends the process;
and step 3: after receiving a data packet from a target device in the Internet, an access gateway counts whether the received data packet exceeds a threshold value in unit time, wherein the threshold value is related to the processing capacity of a terminal of the Internet of things and is stored in the access gateway in advance; if yes, executing step 4; otherwise, processing the data packet in a first-come-first-processed order, and ending the flow;
and 4, step 4: obtaining the priority of each destination IP address in different destination IP addresses, wherein the priority is specified by the terminal of the Internet of things or is determined by an access gateway according to the property of an operator to which the destination IP address belongs;
and 5: acquiring the quantity of data packets sent by the Internet of things terminal to each of different destination IP addresses in unit time;
step 6: calculating a delay factor w for each of different destination IP addressesi,wi=Pi×Fi(ii) a i ∈ {1,2, …, N }; n is the number of different destination IP addresses; w is aiIs the delay factor of the ith destination IP address, PiIs the priority of the ith destination IP address, the higher the priority, PiThe lower the value of (d); fiThe number of data packets sent to the ith destination IP address in unit time;
and 7: calculating the average interval time t between the received response messages in the latest periodint
And 8: calculating a delay amount Δ w for each destination IP addressi=tint×wi/Min(wi) (ii) a Wherein Min (w)i) Finger selects all wiMinimum value of (1);
and step 9: calculating the corrected arrival time t' ═ t + delta w of each data packeti(ii) a t is the actual arrival of a packet at the access gatewayTime;
step 10: and sequentially sending data packets to the Internet of things terminal according to the sequence of the corrected arrival time.
2. The method as claimed in claim 1, wherein the priority in step 4 is specified by the terminal of the internet of things, and the specific steps are as follows:
step 411: when the terminal of the internet of things establishes connection with a certain target IP address for the first time, a priority declaration message is constructed, and the message at least comprises the following fields: destination IP address, validity time, priority;
step 412: setting the destination address of the message as an access gateway; step 413: the message is sent to the access gateway.
3. The method as claimed in claim 1, wherein the priority in step 4 is determined by the access gateway according to the nature of the operator to which the destination IP address belongs, and the specific steps are:
step 421: establishing a corresponding relation between a common destination IP address and a priority;
step 422: when the priority of the destination IP address needs to be determined, if the destination IP address is in the corresponding relation table, determining according to the corresponding relation; otherwise, its priority is set to the lowest priority.
4. The response system of the data packet of the Internet of things in the intelligent building comprises a processor and a memory, wherein a computer program is stored in the memory and used for executing the following steps:
step 1: the access gateway receives a data packet from the terminal of the Internet of things, wherein the data packet is a target device which is sent to the Internet by the terminal of the Internet of things through the access gateway;
step 2: the access gateway acquires the destination IP address in the data packet, counts the number of different destination IP addresses in a preset time, sets the number as N, if the number N of different destination IP addresses is larger than a preset threshold value, executes the step 3, otherwise, ends the process;
and step 3: after receiving a data packet from a target device in the Internet, an access gateway counts whether the received data packet exceeds a threshold value in unit time, wherein the threshold value is related to the processing capacity of a terminal of the Internet of things and is stored in the access gateway in advance; if yes, executing step 4; otherwise, processing the data packet in a first-come-first-processed order, and ending the flow;
and 4, step 4: obtaining the priority of each destination IP address in different destination IP addresses, wherein the priority is specified by the terminal of the Internet of things or is determined by an access gateway according to the property of an operator to which the destination IP address belongs;
and 5: acquiring the quantity of data packets sent by the Internet of things terminal to each of different destination IP addresses in unit time;
step 6: calculating a delay factor w for each of different destination IP addressesi,wi=Pi×Fi(ii) a i ∈ {1,2, …, N }; n is the number of different destination IP addresses; w is aiIs the delay factor of the ith destination IP address, PiIs the priority of the ith destination IP address, the higher the priority, PiThe lower the value of (d); fiThe number of data packets sent to the ith destination IP address in unit time;
and 7: calculating the average interval time t between the received response messages in the latest periodint
And 8: calculating a delay amount Δ w for each destination IP addressi=tint×wi/Min(wi) (ii) a Wherein Min (w)i) Finger selects all wiMinimum value of (1);
and step 9: calculating the corrected arrival time t' ═ t + delta w of each data packeti(ii) a t is the actual time for the packet to reach the access gateway;
step 10: and sequentially sending data packets to the Internet of things terminal according to the sequence of the corrected arrival time.
5. The system of claim 4, wherein the priority in step 4 is assigned by the terminal of the internet of things, and the specific steps are as follows:
step 411: when the terminal of the internet of things establishes connection with a certain target IP address for the first time, a priority declaration message is constructed, and the message at least comprises the following fields: destination IP address, validity time, priority;
step 412: setting the destination address of the message as an access gateway; step 413: the message is sent to the access gateway.
6. The system as claimed in claim 4, wherein the priority in step 4 is determined by the access gateway according to the nature of the operator to which the destination IP address belongs, and the specific steps are:
step 421: establishing a corresponding relation between a common destination IP address and a priority;
step 422: when the priority of the destination IP address needs to be determined, if the destination IP address is in the corresponding relation table, determining according to the corresponding relation; otherwise, its priority is set to the lowest priority.
7. A computer-readable storage medium storing instructions that, when executed, perform the steps of:
step 1: the access gateway receives a data packet from the terminal of the Internet of things, wherein the data packet is a target device which is sent to the Internet by the terminal of the Internet of things through the access gateway;
step 2: the access gateway acquires the destination IP address in the data packet, counts the number of different destination IP addresses in a preset time, sets the number as N, if the number N of different destination IP addresses is larger than a preset threshold value, executes the step 3, otherwise, ends the process;
and step 3: after receiving a data packet from a target device in the Internet, an access gateway counts whether the received data packet exceeds a threshold value in unit time, wherein the threshold value is related to the processing capacity of a terminal of the Internet of things and is stored in the access gateway in advance; if yes, executing step 4; otherwise, processing the data packet in a first-come-first-processed order, and ending the flow;
and 4, step 4: obtaining the priority of each destination IP address in different destination IP addresses, wherein the priority is specified by the terminal of the Internet of things or is determined by an access gateway according to the property of an operator to which the destination IP address belongs;
and 5: acquiring the quantity of data packets sent by the Internet of things terminal to each of different destination IP addresses in unit time;
step 6: calculating a delay factor w for each of different destination IP addressesi,wi=Pi×Fi(ii) a i ∈ {1,2, …, N }; n is the number of different destination IP addresses; w is aiIs the delay factor of the ith destination IP address, PiIs the priority of the ith destination IP address, the higher the priority, PiThe lower the value of (d); fiThe number of data packets sent to the ith destination IP address in unit time;
and 7: calculating the average interval time t between the received response messages in the latest periodint
And 8: calculating a delay amount Δ w for each destination IP addressi=tint×wi/Min(wi) (ii) a Wherein Min (w)i) Finger selects all wiMinimum value of (1);
and step 9: calculating the corrected arrival time t' ═ t + delta w of each data packeti(ii) a t is the actual time for the packet to reach the access gateway;
step 10: and sequentially sending data packets to the Internet of things terminal according to the sequence of the corrected arrival time.
8. The computer-readable storage medium of claim 7, wherein the priority in step 4 is assigned by the terminal of the internet of things, and the specific steps are:
step 411: when the terminal of the internet of things establishes connection with a certain target IP address for the first time, a priority declaration message is constructed, and the message at least comprises the following fields: destination IP address, validity time, priority;
step 412: setting the destination address of the message as an access gateway; step 413: the message is sent to the access gateway.
9. The computer readable storage medium of claim 7, wherein the priority in step 4 is determined by the access gateway according to the nature of the operator to which the destination IP address belongs, and the specific steps are:
step 421: establishing a corresponding relation between a common destination IP address and a priority;
step 422: when the priority of the destination IP address needs to be determined, if the destination IP address is in the corresponding relation table, determining according to the corresponding relation; otherwise, its priority is set to the lowest priority.
CN202011159119.5A 2020-10-26 2020-10-26 Response method and system for Internet of things data packet in intelligent building Active CN112333250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011159119.5A CN112333250B (en) 2020-10-26 2020-10-26 Response method and system for Internet of things data packet in intelligent building

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011159119.5A CN112333250B (en) 2020-10-26 2020-10-26 Response method and system for Internet of things data packet in intelligent building

Publications (2)

Publication Number Publication Date
CN112333250A CN112333250A (en) 2021-02-05
CN112333250B true CN112333250B (en) 2022-03-01

Family

ID=74310843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011159119.5A Active CN112333250B (en) 2020-10-26 2020-10-26 Response method and system for Internet of things data packet in intelligent building

Country Status (1)

Country Link
CN (1) CN112333250B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567828A (en) * 2003-06-18 2005-01-19 中兴通讯股份有限公司 A method for performing speed limiting on data traffic by network processor
CN101764724A (en) * 2008-05-30 2010-06-30 当代天启技术(北京)有限公司 Methods of network deployment and data transmission of building automation system (BAS)
CN101895403A (en) * 2009-05-22 2010-11-24 华为技术有限公司 Data transmission method and device and communication system
CN102984077A (en) * 2012-12-04 2013-03-20 中国联合网络通信集团有限公司 Network congestion control method and system
CN105049368A (en) * 2015-08-25 2015-11-11 湖南餐智科技有限公司 Priority-based load balancing algorithm in hybrid network
CN110445824A (en) * 2018-05-04 2019-11-12 中国移动通信有限公司研究院 NB-IoT data reporting method, device, system and computer readable storage medium
CN110858956A (en) * 2018-08-23 2020-03-03 中国移动通信集团四川有限公司 Processing method, device, equipment and medium for IP short message gateway load unbalance
CN111245862A (en) * 2020-02-25 2020-06-05 无锡艾立德智能科技有限公司 System for safely receiving and sending terminal data of Internet of things
CN111464358A (en) * 2020-04-02 2020-07-28 深圳创维-Rgb电子有限公司 Message reporting method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9554392B2 (en) * 2014-10-15 2017-01-24 At&T Intellectual Property I, L.P. Machine to machine traffic management methods and systems

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567828A (en) * 2003-06-18 2005-01-19 中兴通讯股份有限公司 A method for performing speed limiting on data traffic by network processor
CN101764724A (en) * 2008-05-30 2010-06-30 当代天启技术(北京)有限公司 Methods of network deployment and data transmission of building automation system (BAS)
CN101895403A (en) * 2009-05-22 2010-11-24 华为技术有限公司 Data transmission method and device and communication system
CN102984077A (en) * 2012-12-04 2013-03-20 中国联合网络通信集团有限公司 Network congestion control method and system
CN105049368A (en) * 2015-08-25 2015-11-11 湖南餐智科技有限公司 Priority-based load balancing algorithm in hybrid network
CN110445824A (en) * 2018-05-04 2019-11-12 中国移动通信有限公司研究院 NB-IoT data reporting method, device, system and computer readable storage medium
CN110858956A (en) * 2018-08-23 2020-03-03 中国移动通信集团四川有限公司 Processing method, device, equipment and medium for IP short message gateway load unbalance
CN111245862A (en) * 2020-02-25 2020-06-05 无锡艾立德智能科技有限公司 System for safely receiving and sending terminal data of Internet of things
CN111464358A (en) * 2020-04-02 2020-07-28 深圳创维-Rgb电子有限公司 Message reporting method and device

Also Published As

Publication number Publication date
CN112333250A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN102017729B (en) Methods and apparatus for scanning for mesh nodes
CN102209302A (en) System and method for realizing information push of mobile terminal
CN110545307B (en) Edge computing platform, calling method and computer readable storage medium
CN102469124B (en) Based on the implementation method of the mobile Internet business of AOG, gateway, agency and system
CN107567107B (en) Data transmission method and device
CN101466124A (en) Control method and system for network bandwidth
CN111629452A (en) Data transmission control method and device, storage medium and electronic equipment
CN108924228B (en) Industrial internet optimization system based on edge calculation
CN108901035B (en) Identification method and device for terminal of Internet of things
CN102946425A (en) Uniform communication platform service integration frame based on OSGi (Open Service Gateway Initiative)
CN214544335U (en) Internet of things terminal equipment with optimized response mechanism in intelligent building
CN103763206A (en) Network scheduling method and gateway
CN113840330B (en) Connection establishment method, gateway equipment, network system and dispatching center
CN103797751B (en) Method and device for querying for user online state
CN112333250B (en) Response method and system for Internet of things data packet in intelligent building
CN202111746U (en) System for realizing information push of mobile terminal
CN214544349U (en) Gateway equipment for processing data packets according to priority in intelligent building
CN103369296A (en) SIP protocol-based map video monitoring system and video transmission method
CN109120742B (en) UDP-based power distribution network terminal data acquisition method and device
CN101184062B (en) Method, device and system of regulating information server load
Ahmed et al. Evaluating average throughput for quantity of data stream in an ndn rendezvous server
CN114401498A (en) RCS-based base station environment state alarm method, device and system
CN103905429A (en) Method for achieving automatic discovery through network device on basis of DHCP extension label
KR100734871B1 (en) Apparatus for emergency rescue using user presence information in next generation communication environment and method thereof
CN103813294B (en) State information searching method and system, Interworking gateway

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