WO2019000866A1 - Data processing method and internet of things (iot) gateway - Google Patents

Data processing method and internet of things (iot) gateway Download PDF

Info

Publication number
WO2019000866A1
WO2019000866A1 PCT/CN2017/117526 CN2017117526W WO2019000866A1 WO 2019000866 A1 WO2019000866 A1 WO 2019000866A1 CN 2017117526 W CN2017117526 W CN 2017117526W WO 2019000866 A1 WO2019000866 A1 WO 2019000866A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
processing
internet
network device
things
Prior art date
Application number
PCT/CN2017/117526
Other languages
French (fr)
Chinese (zh)
Inventor
钟勉
徐胤
张海泉
帅福利
杜雷
Original Assignee
京信通信系统(中国)有限公司
京信通信系统(广州)有限公司
京信通信技术(广州)有限公司
天津京信通信系统有限公司
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 京信通信系统(中国)有限公司, 京信通信系统(广州)有限公司, 京信通信技术(广州)有限公司, 天津京信通信系统有限公司 filed Critical 京信通信系统(中国)有限公司
Publication of WO2019000866A1 publication Critical patent/WO2019000866A1/en

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/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data processing method and an Internet of Things gateway.
  • the data needs to be first sent to the base station serving the first user equipment, and then the base station is used.
  • Second user device Second user device.
  • the above data processing method can still meet the requirements of the first user equipment.
  • the amount of data processed by the base station and the core network equipment is increasing, and the data processing capability of the existing base station and core network equipment is limited, so the data transmission and response speed are affected.
  • the existing data transmission network has a technical problem that the data response is slow and the data processing efficiency is low, which cannot meet the immediate needs of the user equipment for certain services.
  • Embodiments of the present invention provide a data processing method and an Internet of Things gateway, which are used to solve existing numbers. According to the technical problems of slow data response and low data processing efficiency in the transmission network.
  • the first aspect provides a data processing method, which is applied to an IoT gateway, where the IoT gateway is connected between a base station and a core network device, and the method includes:
  • the determining, according to the feature information of the first data, a processing policy for the first data including:
  • the first data to be directly sent to the core network device is determined as the processing policy
  • the first data is the Internet of Things data
  • the first data is directly sent to the core network device as the processing policy according to a preset rule, or the first data is to be performed according to a customized requirement.
  • the logical process is determined to be the processing strategy.
  • the method further includes:
  • the second data obtained by logically processing the first data is locally saved or sent to the user terminal.
  • the method further includes:
  • the second data obtained by logically processing the first data is sent to the core network device.
  • the IoT gateway is further connected to the remote network device, and after the logic processing the first data according to the customization requirement, the method further includes:
  • an IoT gateway is provided, where the IoT gateway is connected between a base station and a core network device, where the IoT gateway includes:
  • a processor coupled to the memory for performing the following steps when loading the instructions:
  • the processor performs the following steps when loading the instruction:
  • the first data to be directly sent to the core network device is determined as the processing policy
  • the first data is the Internet of Things data
  • the first data is directly sent to the core network device as the processing policy according to a preset rule, or the first data is to be performed according to a customized requirement.
  • the logical process is determined to be the processing strategy.
  • the processor performs the following steps when loading the instruction:
  • the second data obtained by logically processing the first data is locally saved or sent to the user terminal.
  • the processor performs the following steps when loading the instruction:
  • the second data obtained by logically processing the first data is sent to the core network device.
  • the IoT gateway is further connected to a remote network device, and the processor performs the following steps when loading the instruction:
  • the Internet of Things gateway since the Internet of Things gateway is disposed between the base station and the core network device, the data sent by the base station to the core network device first passes through the Internet of Things gateway, so that the Internet of Things gateway can The data is processed in advance, and the processing strategy matching the data is determined in a targeted manner, thereby effectively avoiding the unified processing strategy for all data in the prior art, and lacking pertinence, resulting in low data processing efficiency and slow response speed.
  • the problem is to improve the transmission efficiency of data in the data transmission network, and also improve the response speed to the business requests included in the data.
  • the IoT gateway can determine different processing strategies according to the characteristic information of the data, and the processing strategies determined by different data can be different, compared with the single processing in which the base station directly sends data to the core network device in the prior art.
  • the IoT gateway in the embodiment of the present invention can share the pressure of transmitting and processing data in the data transmission network.
  • the processing strategy for processing the first data determined in the embodiment of the present invention is specifically determined according to the feature information of the first data, and thus, the determined processing strategy can be more efficient and more
  • the first data is processed in a targeted manner, and the data processing flow in the prior art is optimized, and the efficiency and accuracy of processing the data are improved.
  • FIG. 1 is a data transmission flow diagram of a data transmission network in the prior art
  • FIG. 2 is a schematic diagram of a connection relationship of an Internet of Things gateway according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a data processing method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another connection relationship of an Internet of Things gateway according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another connection relationship of an Internet of Things gateway according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of an Internet of Things gateway according to an embodiment of the present invention.
  • the embodiment of the invention provides a data processing method, which can be applied to an Internet of Things gateway.
  • the IoT gateway can be a gateway device specially used for implementing a gateway function, or can be another electronic device that needs to perform data interaction and has a gateway function.
  • the device for example, may be an electronic device such as a blade server, a personal computer, a mobile phone, a wearable electronic device, and the like.
  • the Internet of Things gateway in the embodiment of the present invention is connected between the base station and the core network device.
  • the IoT gateway in the embodiment of the present invention may be deployed between the GSM BTS (Global System for Mobile communication Base Transceiver Station) and the BSC (Base Station Controller). Between the NodeB and the RNC (Radio Network Controller), it can also be deployed between an eNodeB (Evolved Node B) and an EPC (Evolved Packet Core), and so on. It can be understood that the IoT gateway in the embodiment of the present invention can also be deployed between other types of base stations and corresponding core network devices.
  • GSM BTS Global System for Mobile communication Base Transceiver Station
  • BSC Base Station Controller
  • eNodeB evolved Node B
  • EPC Evolved Packet Core
  • the base station type, the core network device type, and the protocol type supported by the Internet of Things gateway in the embodiment of the present invention may be customized or set according to an actual application environment, for example, the Internet of Things gateway in the embodiment of the present invention. All types of base stations and core network devices supporting the above may be implemented, or only one of the base stations and the corresponding core network devices may be supported. Moreover, the Internet of Things gateway in the embodiment of the present invention may be connected to a base station to provide support for the base station, or may be connected to multiple base stations to provide support for the connected multiple base stations.
  • Step 101 Receive first data that is sent by the user terminal by using the base station.
  • the Internet of Things gateway since the Internet of Things gateway is connected between the base station and the core network device, when the user terminal needs to transmit data to the device located on the core side, the data is first transmitted to the base station and then transmitted to the Internet of Things gateway. It is sent to other devices via the IoT gateway, for example, to the core network device. That is, the IoT gateway in the embodiment of the present invention can receive the data sent by the base station before the core network device.
  • the first data may be a packet, for example, data included in a single packet, or data composed of multiple packets, such as data formed by a data stream, and the like.
  • the user terminal can be a device that can perform data interaction, such as a mobile phone, a tablet computer, a VR device, a smart meter, etc., and the device in the embodiment of the present invention does not limit the device.
  • Step 102 Determine a processing policy for the first data based on the feature information of the first data, where the feature information includes information used to represent a communication protocol used to transmit the first data.
  • the Internet of Things gateway may perform step 102.
  • the IoT gateway first acquires feature information of the first data.
  • the IoT gateway may obtain the feature information from the first data by means of DPI (Deep Packet Inspection), or may receive the first data from the base station.
  • DPI Deep Packet Inspection
  • the feature data of the feature information of the data, and the feature information of the first data is obtained according to the feature data.
  • the manner in which the IoT gateway acquires the feature information of the data is not limited.
  • the feature information of the data may refer to a keyword included in the data, for example, may be Source IP (Internet Protocol) address, destination IP address, source port number, destination port number, protocol number, and data packet characteristics.
  • the source IP address refers to the original source address of the first data, that is, the IP address of the user terminal, and can also be understood as the IP address of the data transmission initiator, for example, the IP of the first user equipment shown in FIG. Address;
  • destination IP address refers to the IP address of the remote network device to which the first data needs to be transmitted, for example, may be the IP address of the second user equipment shown in FIG.
  • the source port number is used to characterize the user terminal in the sending a port used for data
  • a destination port number is used to represent a port that the first data to be transmitted to the device to be received when receiving the first data
  • the protocol number is used to represent the communication protocol used in the first data encoding, that is, the transmission
  • the data message feature can represent the service request included in the first data to a certain extent.
  • the IoT gateway may determine a processing policy for the first data based on the feature information of the first data. That is to say, in the embodiment of the present invention, the processing strategy may be different for different data, and according to the feature information of the data, the processing strategy may be determined in a targeted manner, thereby improving the processing and data transmission of the data transmission network. Efficiency; At the same time, because the IoT gateway provides a variety of different processing strategies for data, it can share the pressure of data transmission network transmission and processing data compared to the single processing strategy in the prior art.
  • Step 103 Perform corresponding processing on the first data by using a processing policy.
  • the IoT gateway can process the first data by using the processing policy determined in step 102.
  • the first data when it is processed, it may be processed independently by the IoT gateway itself, or may be processed by the IoT gateway in cooperation with the connected device.
  • the IoT gateway when the storage capacity of the IoT gateway is insufficient, The IoT gateway is connected to a storage device, and the storage device can cooperate with the IoT gateway to process the first data.
  • a server can be connected to the IoT gateway, and the server can The IoT gateway co-processes the first data, and so on.
  • determining a processing policy for the first data based on the feature information of the first data may include the following process:
  • the data type of the first data is determined.
  • data types can be classified into two types, namely, Internet of Things data and non-Internet of Things data.
  • the Internet of Things data is data transmitted by the Internet of Things protocol
  • the non-Internet of Things data is data transmitted by other communication protocols other than the Internet of Things protocol.
  • the Internet of Things protocol may be a widely used Internet of Things protocol such as MQTT (Message Queuing Telemetry Transport) protocol, Modbus protocol, OPC (OLE for Process Control), and the object connection and embedding protocol for process control. It can also be a proprietary protocol developed by the user, and so on.
  • the protocols included in the Internet of Things protocol are not specifically defined.
  • the user may personalize whether a protocol belongs to the Internet of Things protocol according to his actual needs.
  • the communication protocol used to transmit the first data may be determined according to the feature information of the first data, and then the communication protocol is determined in the matching rule preset by the IoT gateway. Whether it is defined as an Internet of Things protocol, and if so, determining that the first data is IoT data, and if not, determining that the first data is non-IoT data.
  • the IoT gateway can perform the next process in a targeted manner according to the data type of the first data:
  • the manner of directly transmitting the first data to the core network device may be determined as a processing strategy for the first data, that is, when the first data is non- For IoT data, the IoT gateway can forward the first data to the core network device without further processing or analysis.
  • the IoT gateway can transparently transmit the first data to the core through interfaces such as Abis/lub/S1. Network equipment.
  • the IoT gateway can directly transmit the first data to the core network device, so that the processing resources of the IoT gateway are not occupied, and the non-object is not affected.
  • the transmission of networked data can ensure that service requests included in non-IoT data can be responded normally.
  • the first data is the Internet of Things data
  • the manner of directly transmitting the first data to the core network device may be determined as a processing strategy for the first data according to a preset rule, or
  • the first data is logically processed according to the customization requirements to determine a processing strategy for the first data.
  • the preset rule is a rule for determining a processing strategy of the data.
  • the preset rule may include a rule related to the data content, and may also include a rule that is not related to the data content, that is, when the IoT gateway determines the processing strategy of the Internet of Things data according to the preset rule, the reference factor may be
  • the networked data itself can also be a factor unrelated to IoT data, or it can be a reference to both the IoT data itself and the factors that are not related to IoT data.
  • the user can adjust the preset rule in the IoT gateway according to the requirements of the user. Therefore, the data processing method in the embodiment of the present invention is very flexible, adaptable, and expandable.
  • the preset rule may include a rule related to the first data content.
  • the preset rule may include a rule for determining a processing policy corresponding to the service request according to the service request included in the first data. That is, the preset relationship may include a correspondence between the service request and the processing policy, and when the processing policy for the first data is determined, the service request included in the first data may be matched with the preset rule. And determining a processing policy corresponding to the service request included in the first data.
  • the feature information of the first data may further include information for characterizing the service request of the first data.
  • the service request included in the first data may be directly determined according to the feature information of the first data;
  • the first data may be parsed to determine a service request included in the first data. Therefore, in a specific implementation process, the IoT gateway may be based on information such as a source IP address of the first data, a destination IP address, a service type of the first data, whether a specific keyword is included in the body of the first data, and the like.
  • One or more processing strategies that determine the first data may be based on information such as a source IP address of the first data, a destination IP address, a service type of the first data, whether a specific keyword is included in the body of the first data, and the like.
  • the preset rule may include determining a rule of the processing policy corresponding to the data amount according to the data size of the first data, for example, when the data amount of the first data is small, determining that the processing strategy of the first data is based on The first data is logically processed by the customization requirement; and when the data volume of the first data is large, because the processing capability of the IoT gateway is limited, the processing strategy of the first data may be determined to directly send the first data to the core network device. ,and many more.
  • the data volume of the first data may be obtained by using the feature information of the first data, or may be The data is obtained after parsing.
  • the preset rule may further include a rule that is not related to the first data content.
  • the preset rule may include a rule that determines a processing policy corresponding to the own state of the IoT gateway according to the state of the IoT gateway.
  • the preset rule may include a correspondence between the current amount of data to be processed and the processing policy in the IoT gateway.
  • the device may directly send the data to the core network device.
  • the manner of the first data is determined as a processing strategy for the first data to reduce the burden of the IoT gateway and reduce the waiting time of the data, and when the amount of data to be processed by the IoT gateway is small, the A data is logically processed to determine a processing strategy for the first data, and so on. That is to say, when the corresponding processing policy is determined according to the state of the Internet of Things gateway, even if the content of the Internet of Things data is the same, different processing strategies are determined for the Internet of Things data due to the different state of the Internet of Things gateway.
  • the preset rule may include a rule that determines a processing policy corresponding to the current time according to the current time. For example, it can be set from 8:00 to 22:00, and the first data is logically processed according to the customized requirement to determine the processing strategy for the first data. At 23:00 to 7:00, the first network data device will be directly sent to the core network device. The manner of one data is determined as a processing strategy for the first data, and the like.
  • the manner of directly transmitting the first data to the core network device is determined as a processing strategy for the first data, and the IoT gateway may directly transmit the first data to the core network device without further processing the first data.
  • the customization requirement when the first data is logically processed according to the customization requirement and determined as the processing strategy for the first data, the customization requirement is used to determine in which logical processing manner the first data is processed.
  • the customization requirement may include a requirement for directly processing the service request included in the first data; the customization requirement may further include determining a logical processing manner corresponding to the service request according to the service request included in the first data, and processing the corresponding logic
  • the manner of processing the first data for example, if the destination address included in the first data is a specific IP address, the processing may be performed according to a logical processing manner corresponding to the specific IP address in the customization requirement, and the specific IP address is processed.
  • the corresponding logical processing manner may not be used to directly perform logic on the service request included in the first data. The way it is handled.
  • performing logical processing on the first data includes at least three logical processing manners as follows:
  • the first logical processing method performs data reconstruction on the first data, for example, performing data parsing, structure conversion, format conversion, type replacement, data splicing, data clipping, data compression, etc. on the first data, thereby obtaining and data.
  • the second data corresponding to the reconstruction mode.
  • the packet transmitted in the first data may be obtained by performing data parsing on the first data; for example, the format of the first data may be converted to obtain a different format from the first data format.
  • the data may be spliced to the first data to obtain the second data including the first data packet body portion.
  • the obtained first data may be obtained.
  • the data may be aggregated into one packet, that is, the second data is obtained, and when the first data is a data stream including multiple packets, Converging multiple packets into one packet directly, that is, obtaining the second data, and so on.
  • the second logical processing method processes the service request included in the first data, and further obtains the second data according to the processing result of processing the service request included in the first data.
  • the service request included in the first data may be an acquisition request of acquiring a certain target file of a certain target address to the user terminal, and the IoT gateway may acquire the target file from the target address, and then send the target to the user terminal.
  • the Internet of Things gateway may store a plurality of files in advance.
  • the Internet of Things gateway first determines whether the target is included in the plurality of pre-stored files.
  • the file if the target file is included, the IoT gateway can directly call the local pre-stored target file without accessing the target address, and send the pre-stored target file to the user terminal.
  • the target file may be the second data, and the processing of the service request included in the first data may be to find and obtain/call the target file.
  • the third logical processing method is to process the service included in the first data, obtain the third data according to the processing result of processing the first service request, and perform data reconstruction on the third data to obtain the second data. That is to say, in this kind of logic processing, the Internet of Things gateway can first adopt the aforementioned The two logical processing methods process the first data to obtain the third data, and then process the third data in the first logical processing manner to obtain the second data.
  • the IoT gateway may further save or send the second data obtained by logically processing the first data to the user. terminal.
  • the Internet of Things gateway terminates the first data, and the service request included in the first data is not transmitted to the core network device or transmitted to the remote network corresponding to the foregoing destination IP address.
  • the second data obtained by the device is not transmitted to the core network device or transmitted to the device corresponding to the foregoing destination IP address.
  • the Internet of Things gateway can also send a response message to the user terminal.
  • the IoT gateway needs to exchange the source IP address and the destination IP address in the response packet. That is, after the user terminal obtains the response packet, it can determine the response packet according to the response packet.
  • the response packet sent by the destination device corresponding to the destination IP address is used to ensure the accuracy of data transmission.
  • the Internet of Things gateway terminates the first data, and the IoT gateway obtains a response in the process path of transmitting the first data to the remote network device, and implements the service request of the user terminal. Therefore, the response rate of the first data can be improved, and the data transmission pressure of the data transmission network can also be alleviated.
  • the IoT gateway may further send the second data obtained by logically processing the first data to the core network device.
  • the Internet of Things gateway performs intermediate processing on the first data, and the second data obtained by logically processing the first data is sent to the core network device.
  • the IoT gateway may perform data reconstruction processing such as data splicing and format conversion on the first data, or may perform certain preprocessing on the service request included in the first data, and the like, and further, The networked gateway can send the processed second data through the path of the core network device.
  • the IoT gateway logically processes the first data to obtain the second data
  • the second data is sent to the core network device.
  • the data transmission and processing pressure of the data transmission network and the remote network device can be alleviated by performing logical processing on data reconstruction of the first data or preprocessing of the service request included in the first data.
  • the IoT gateway may also be connected to the remote network device.
  • FIG. 4 and FIG. 5 are respectively schematic diagrams showing two connection relationships of the Internet of Things gateway in the embodiment of the present invention.
  • the remote network device and the core network device may be connected to each other, or as shown in FIG. 5, in the embodiment of the present invention, the remote network device and the core network device may also be Interconnected.
  • the Internet of Things gateway and a remote network device are connected to each other.
  • the Internet of Things gateway can also be connected to multiple remote network devices.
  • the remote network device may be a network connection device such as a router, a switch, or a gateway, or may be a terminal device such as a personal computer or a server.
  • the IoT gateway can connect to remote network devices through a separate data link.
  • the data link that is separately set between the Internet of Things gateway and the remote network device in the embodiment of the present invention may be an IP link
  • the physical entity may be a network cable connecting the Internet of Things gateway and the remote network device. Since the IoT gateway and the remote network device can communicate directly, the IoT gateway can bypass the core network device and directly send data to the remote network device.
  • the IoT gateway may send the second data obtained by logically processing the first data to the remote network device.
  • the IoT gateway performs the offload processing on the first data, and the second data obtained by logically processing the first data may be separately separated between the IoT gateway and the remote network device.
  • the network link is sent to the remote network device without going through the core network device.
  • the IoT gateway may encapsulate the first data as second data that may be transmitted based on IP, or may be The first data is processed to obtain the third data, and the third data is encapsulated into the second data that can be transmitted based on the IP. Further, the IoT gateway can send the second number to the remote network device through the IP link. according to.
  • the IoT gateway can bypass the core network device by using a separately set data link, and send the second data obtained by processing the first data to the remote network device, for example, bypassing can be implemented.
  • the carrier's core network device communicates directly with the remote network device. Therefore, with this embodiment, on the one hand, the pressure of transmitting data of the core network device can be alleviated, and on the other hand, the IoT gateway communicates with the remote network device through a separately set data link to satisfy the personalized network transmission of the user. Demand, and can improve data transmission efficiency.
  • the Internet of Things gateway since the Internet of Things gateway is disposed between the base station and the core network device, the data sent by the base station to the core network device first passes through the Internet of Things gateway, so that the Internet of Things gateway can perform some processing on the data in advance.
  • the processing strategy that matches the data is determined in a targeted manner, thereby effectively avoiding the unified processing strategy for all data in the prior art, and lacking pertinence, resulting in low data processing efficiency and slow response speed, and improving data in data.
  • the transmission efficiency in the transport network also increases the response speed to the service requests included in the data.
  • the IoT gateway can determine different processing strategies according to the characteristic information of the data, and the processing strategies determined by different data can be different, compared with the single processing in which the base station directly sends data to the core network device in the prior art.
  • the IoT gateway in the embodiment of the present invention can share the pressure of transmitting and processing data in the data transmission network.
  • the processing strategy for processing the first data determined in the embodiment of the present invention is specifically determined according to the feature information of the first data, and thus, the determined processing strategy can be more efficient and more
  • the first data is processed in a targeted manner, and the data processing flow in the prior art is optimized, and the efficiency and accuracy of processing the data are improved.
  • an embodiment of the present invention further provides an Internet of Things gateway, which is connected between a base station and a core network device, where the Internet of Things gateway includes a memory 201 and a processor 202, and the memory 201 And the processor 202 may be connected through the bus 200, or may also be connected through a dedicated connection line, as exemplified by the connection through the bus 200 in FIG. among them:
  • the memory 201 stores instructions
  • the processor 202 is connected to the memory 201 for executing the instruction stored in the memory 201 Take the following steps:
  • the first data is processed in a processing strategy.
  • the processor 202 performs the following steps when loading the instruction:
  • the first data is non-Internet of Things data or Internet of Things data
  • the first data to be directly sent to the core network device is determined as a processing policy
  • the first data is the Internet of Things data
  • the first data is directly sent to the core network device as a processing policy according to a preset rule, or the first data is logically processed according to the customized requirement to be a processing policy.
  • the processor 202 performs the following steps when loading the instruction:
  • the second data obtained by logically processing the first data is locally saved or sent to the user terminal.
  • the processor 202 performs the following steps when loading the instruction:
  • the second data obtained by logically processing the first data is sent to the core network device.
  • the Internet of Things gateway is also connected to the remote network device, and the processor 202 performs the following steps when loading the instruction:
  • the second data obtained by logically processing the first data is sent to the remote network device.
  • the device embodiments described above are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located in one place. Or it can be distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Landscapes

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

Abstract

Embodiments of the invention provide a data processing method and an Internet of Things (IoT) gateway in order to resolve the technical problems of slow data response and low data processing efficiency present in existing data transmission networks. The method is applied to an IoT gateway connected between a base station and a core network device, and the method comprises: receiving first data sent by a user terminal via the base station; determining, according to characteristic information of the first data, a data processing strategy for the first data, wherein the characteristic information comprises information for characterizing a communication protocol employed to transmit the first data; and processing the first data according to the processing strategy.

Description

一种数据处理方法及物联网网关Data processing method and internet of things gateway
本申请要求于2017年06月29日提交中国专利局、申请号为201710518287.0、发明名称为“一种数据处理方法及物联网网关”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application, filed on Jun. 29, 2017, with the application number of 201710518287.0, entitled "A Data Processing Method and IoT Gateway", the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种数据处理方法及物联网网关。The present invention relates to the field of communications technologies, and in particular, to a data processing method and an Internet of Things gateway.
背景技术Background technique
现有的数据传输网络中,当第一用户设备需要通过网络向第二用户设备发送数据时,如图1所示,首先需要将数据发送至服务于第一用户设备的基站,再由该基站将数据发送至与该基站通信的位于核心侧的核心网设备,进而,再由该核心网设备将数据发送至与第二用户设备通信的远端网关,最后,由远端网关将数据发送至第二用户设备。In the existing data transmission network, when the first user equipment needs to send data to the second user equipment through the network, as shown in FIG. 1, the data needs to be first sent to the base station serving the first user equipment, and then the base station is used. Sending data to a core network device on the core side that communicates with the base station, and then, the core network device sends data to a remote gateway that communicates with the second user equipment, and finally, the remote gateway sends data to the remote gateway. Second user device.
在基站和核心网设备处理的数据量不大且第一用户设备对数据的响应速度要求不高的情况下,上述的数据处理方法尚能满足第一用户设备的需求。然而,随着网络的不断发展和普及,需要基站、核心网设备处理的数据量越来越大,而现有的基站、核心网设备的数据处理能力有限,因此数据的传输和响应速度会受到一定程度的影响;并且,随着物联网业务和互联网技术的发展,许多新业务对数据响应速度要求也越来越高,例如在VR(Virtual Reality,虚拟现实)设备的使用过程中,往往需要匹配非常高的数据响应速度。In the case that the amount of data processed by the base station and the core network device is not large and the response speed of the first user equipment to the data is not high, the above data processing method can still meet the requirements of the first user equipment. However, with the continuous development and popularization of the network, the amount of data processed by the base station and the core network equipment is increasing, and the data processing capability of the existing base station and core network equipment is limited, so the data transmission and response speed are affected. A certain degree of impact; and, with the development of the Internet of Things and Internet technologies, many new services are increasingly demanding data response speeds. For example, in the use of VR (Virtual Reality) devices, it is often necessary to match. Very high data response speed.
可见,现有的数据传输网络存在数据响应慢、数据处理效率低无法满足用户设备对于某些业务的即时需求的技术问题。It can be seen that the existing data transmission network has a technical problem that the data response is slow and the data processing efficiency is low, which cannot meet the immediate needs of the user equipment for certain services.
发明内容Summary of the invention
本发明实施例提供一种数据处理方法及物联网网关,用以解决现有的数 据传输网络存在的数据响应慢及数据处理效率低的技术问题。Embodiments of the present invention provide a data processing method and an Internet of Things gateway, which are used to solve existing numbers. According to the technical problems of slow data response and low data processing efficiency in the transmission network.
第一方面,提供一种数据处理方法,应用于物联网网关,所述物联网网关连接于基站与核心网设备之间,所述方法包括:The first aspect provides a data processing method, which is applied to an IoT gateway, where the IoT gateway is connected between a base station and a core network device, and the method includes:
接收用户终端通过所述基站发送的第一数据;Receiving, by the user terminal, the first data sent by the base station;
基于所述第一数据的特征信息,确定针对所述第一数据的处理策略,其中,所述特征信息包括用于表征传输所述第一数据采用的通信协议的信息;Determining, according to the feature information of the first data, a processing policy for the first data, where the feature information includes information for characterizing a communication protocol used to transmit the first data;
以所述处理策略对所述第一数据进行处理。Processing the first data with the processing policy.
在一种可能的实现方式中,所述基于所述第一数据的特征信息,确定针对所述第一数据的处理策略,包括:In a possible implementation, the determining, according to the feature information of the first data, a processing policy for the first data, including:
基于所述特征信息,确定所述第一数据为非物联网数据或物联网数据;Determining, according to the feature information, that the first data is non-Internet of Things data or Internet of Things data;
若所述第一数据为非物联网数据,则将向所述核心网设备直接发送所述第一数据确定为所述处理策略;If the first data is non-Internet of Things data, the first data to be directly sent to the core network device is determined as the processing policy;
若所述第一数据为物联网数据,则根据预设规则将向所述核心网设备直接发送所述第一数据确定为所述处理策略,或者,将根据定制需求对所述第一数据进行逻辑处理确定为所述处理策略。If the first data is the Internet of Things data, the first data is directly sent to the core network device as the processing policy according to a preset rule, or the first data is to be performed according to a customized requirement. The logical process is determined to be the processing strategy.
在一种可能的实现方式中,在所述根据定制需求对所述第一数据进行逻辑处理之后,所述方法还包括:In a possible implementation, after the logical processing the first data according to the customization requirement, the method further includes:
将对所述第一数据进行逻辑处理后得到的第二数据进行本地保存或发送给所述用户终端。The second data obtained by logically processing the first data is locally saved or sent to the user terminal.
在一种可能的实现方式中,在所述根据定制需求对所述第一数据进行逻辑处理之后,所述方法还包括:In a possible implementation, after the logical processing the first data according to the customization requirement, the method further includes:
将对所述第一数据进行逻辑处理后得到的第二数据发送给所述核心网设备。The second data obtained by logically processing the first data is sent to the core network device.
在一种可能的实现方式中,所述物联网网关还与远端网络设备连接,在所述根据定制需求对所述第一数据进行逻辑处理之后,所述方法还包括:In a possible implementation, the IoT gateway is further connected to the remote network device, and after the logic processing the first data according to the customization requirement, the method further includes:
将对所述第一数据进行逻辑处理后得到的第二数据发送给所述远端网络设备。 And sending the second data obtained by logically processing the first data to the remote network device.
第二方面,提供一种物联网网关,所述物联网网关连接于基站与核心网设备之间,所述物联网网关包括:In a second aspect, an IoT gateway is provided, where the IoT gateway is connected between a base station and a core network device, where the IoT gateway includes:
存储器,存储有指令;a memory that stores instructions;
处理器,与所述存储器连接,用于在加载所述指令时执行以下步骤:a processor coupled to the memory for performing the following steps when loading the instructions:
接收用户终端通过所述基站发送的第一数据;Receiving, by the user terminal, the first data sent by the base station;
基于所述第一数据的特征信息,确定针对所述第一数据的处理策略,其中,所述特征信息包括用于表征传输所述第一数据采用的通信协议的信息;Determining, according to the feature information of the first data, a processing policy for the first data, where the feature information includes information for characterizing a communication protocol used to transmit the first data;
以所述处理策略对所述第一数据进行处理。Processing the first data with the processing policy.
在一种可能的实现方式中,所述处理器在加载所述指令时执行以下步骤:In a possible implementation manner, the processor performs the following steps when loading the instruction:
基于所述特征信息,确定所述第一数据为非物联网数据或物联网数据;Determining, according to the feature information, that the first data is non-Internet of Things data or Internet of Things data;
若所述第一数据为非物联网数据,则将向所述核心网设备直接发送所述第一数据确定为所述处理策略;If the first data is non-Internet of Things data, the first data to be directly sent to the core network device is determined as the processing policy;
若所述第一数据为物联网数据,则根据预设规则将向所述核心网设备直接发送所述第一数据确定为所述处理策略,或者,将根据定制需求对所述第一数据进行逻辑处理确定为所述处理策略。If the first data is the Internet of Things data, the first data is directly sent to the core network device as the processing policy according to a preset rule, or the first data is to be performed according to a customized requirement. The logical process is determined to be the processing strategy.
在一种可能的实现方式中,所述处理器在加载所述指令时执行以下步骤:In a possible implementation manner, the processor performs the following steps when loading the instruction:
将对所述第一数据进行逻辑处理后得到的第二数据进行本地保存或发送给所述用户终端。The second data obtained by logically processing the first data is locally saved or sent to the user terminal.
在一种可能的实现方式中,所述处理器在加载所述指令时执行以下步骤:In a possible implementation manner, the processor performs the following steps when loading the instruction:
将对所述第一数据进行逻辑处理后得到的第二数据发送给所述核心网设备。The second data obtained by logically processing the first data is sent to the core network device.
在一种可能的实现方式中,所述物联网网关还与远端网络设备连接,所述处理器在加载所述指令时执行以下步骤:In a possible implementation manner, the IoT gateway is further connected to a remote network device, and the processor performs the following steps when loading the instruction:
将对所述第一数据进行逻辑处理后得到的第二数据发送给所述远端网络设备。And sending the second data obtained by logically processing the first data to the remote network device.
本发明实施例中,由于物联网网关设置于基站与核心网设备之间,由基站发送给核心网设备的数据会先经由物联网网关,这样使得物联网网关可以 对数据提前进行一些处理,有针对性地确定出与数据匹配的处理策略,进而能够有效避免现有技术中对所有数据采用统一的处理策略,缺乏针对性,导致数据处理效率低、响应速度慢的问题,提高了数据在数据传输网络中的传输效率,也提高了对数据包括的业务请求的响应速度。In the embodiment of the present invention, since the Internet of Things gateway is disposed between the base station and the core network device, the data sent by the base station to the core network device first passes through the Internet of Things gateway, so that the Internet of Things gateway can The data is processed in advance, and the processing strategy matching the data is determined in a targeted manner, thereby effectively avoiding the unified processing strategy for all data in the prior art, and lacking pertinence, resulting in low data processing efficiency and slow response speed. The problem is to improve the transmission efficiency of data in the data transmission network, and also improve the response speed to the business requests included in the data.
同时,物联网网关可以根据数据的特征信息确定出不同的处理策略,不同的数据确定出的处理策略可以是不同的,相较于现有技术中基站直接将数据发送至核心网设备的单一处理策略,本发明实施例中的物联网网关能够分担数据传输网络传输和处理数据的压力。At the same time, the IoT gateway can determine different processing strategies according to the characteristic information of the data, and the processing strategies determined by different data can be different, compared with the single processing in which the base station directly sends data to the core network device in the prior art. The IoT gateway in the embodiment of the present invention can share the pressure of transmitting and processing data in the data transmission network.
进一步地,本发明实施例中所确定的用于处理第一数据的处理策略,是根据第一数据的特征信息有针对性地确定出的,因而,确定出的处理策略能够以更高效、更有针对性的方式对第一数据进行处理,优化了现有技术中的数据处理流程,提高了处理数据的效率和准确性。Further, the processing strategy for processing the first data determined in the embodiment of the present invention is specifically determined according to the feature information of the first data, and thus, the determined processing strategy can be more efficient and more The first data is processed in a targeted manner, and the data processing flow in the prior art is optimized, and the efficiency and accuracy of processing the data are improved.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明实施例的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of these drawings without the inventive labor.
图1为现有技术中数据传输网络的数据传输流向图;1 is a data transmission flow diagram of a data transmission network in the prior art;
图2为本发明实施例中物联网网关的一种连接关系示意图;2 is a schematic diagram of a connection relationship of an Internet of Things gateway according to an embodiment of the present invention;
图3为本发明实施例中数据处理方法的流程图;3 is a flowchart of a data processing method according to an embodiment of the present invention;
图4为本发明实施例中物联网网关的另一种连接关系示意图;4 is a schematic diagram of another connection relationship of an Internet of Things gateway according to an embodiment of the present invention;
图5为本发明实施例中物联网网关的另一种连接关系示意图;FIG. 5 is a schematic diagram of another connection relationship of an Internet of Things gateway according to an embodiment of the present invention; FIG.
图6为本发明实施例中物联网网关的结构框图。FIG. 6 is a structural block diagram of an Internet of Things gateway according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下面将结合本发明 实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互任意组合。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。In order to make the objects, technical solutions and advantages of the present invention more clear, the present invention will be combined below. The embodiments of the present invention are clearly and completely described in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention. The embodiments of the present invention and the features of the embodiments can be arbitrarily combined with each other without conflict. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,在不做特别说明的情况下,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist at the same time. There are three cases of B alone. In addition, the character "/" in this document generally indicates that the contextual object is an "or" relationship unless otherwise specified.
本发明实施例提供一种数据处理方法,该方法可以应用于物联网网关,该物联网网关可以是专门用于实现网关功能的网关设备,也可以是其它需要进行数据交互且具有网关功能的电子设备,例如可以是刀片服务器、个人电脑、手机、穿戴式电子设备等电子设备,本发明实施例对于前述物联网网关具体为何种设备不做限定。The embodiment of the invention provides a data processing method, which can be applied to an Internet of Things gateway. The IoT gateway can be a gateway device specially used for implementing a gateway function, or can be another electronic device that needs to perform data interaction and has a gateway function. The device, for example, may be an electronic device such as a blade server, a personal computer, a mobile phone, a wearable electronic device, and the like.
为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。In order to better understand the above technical solutions, the above technical solutions will be described in detail below in conjunction with the drawings and specific embodiments.
如图2所示,本发明实施例中的物联网网关连接于基站与核心网设备之间。例如,本发明实施例中的物联网网关可以部署于GSM BTS(Global System for Mobile communicationBase Transceiver Station,全球移动通信系统基站收发台)与BSC(Base Station Controller,基站控制器)之间,也可以部署于NodeB与RNC(Radio Network Controller,无线网络控制器)之间,也可以部署于eNodeB(Evolved Node B,演进型基站)与EPC(Evolved Packet Core,演进分组核心网)之间,等等。可以理解的是,随着技术的演进和改变,本发明实施例中的物联网网关还可以部署于其它类型的基站与对应的核心网设备之间。 As shown in FIG. 2, the Internet of Things gateway in the embodiment of the present invention is connected between the base station and the core network device. For example, the IoT gateway in the embodiment of the present invention may be deployed between the GSM BTS (Global System for Mobile communication Base Transceiver Station) and the BSC (Base Station Controller). Between the NodeB and the RNC (Radio Network Controller), it can also be deployed between an eNodeB (Evolved Node B) and an EPC (Evolved Packet Core), and so on. It can be understood that the IoT gateway in the embodiment of the present invention can also be deployed between other types of base stations and corresponding core network devices.
具体来说,本发明实施例中的物联网网关所支持的基站类型、核心网设备类型、协议类型等,可以根据实际的应用环境进行定制或设置,例如,本发明实施例中的物联网网关可以实现支持上述的所有类型的基站及核心网设备,也可以是仅能支持其中的一种基站及对应的核心网设备。并且,本发明实施例中的物联网网关可以连接有一个基站,单独为该基站提供支持,或者也可以连接有多个基站,为连接的该多个基站同时提供支持。Specifically, the base station type, the core network device type, and the protocol type supported by the Internet of Things gateway in the embodiment of the present invention may be customized or set according to an actual application environment, for example, the Internet of Things gateway in the embodiment of the present invention. All types of base stations and core network devices supporting the above may be implemented, or only one of the base stations and the corresponding core network devices may be supported. Moreover, the Internet of Things gateway in the embodiment of the present invention may be connected to a base station to provide support for the base station, or may be connected to multiple base stations to provide support for the connected multiple base stations.
请参见图3,本发明实施例中的数据处理方法的流程描述如下。Referring to FIG. 3, the flow of the data processing method in the embodiment of the present invention is described as follows.
步骤101:接收用户终端通过基站发送的第一数据。Step 101: Receive first data that is sent by the user terminal by using the base station.
本发明实施例中,由于物联网网关连接于基站与核心网设备之间,因而当用户终端需要向位于核心侧的设备传输数据时,数据首先会传输到基站,再传输到物联网网关,再经由物联网网关发送到其它的设备,例如再发送给核心网设备,也就是说,本发明实施例中的物联网网关可以在核心网设备之前接收到基站所发送的数据。In the embodiment of the present invention, since the Internet of Things gateway is connected between the base station and the core network device, when the user terminal needs to transmit data to the device located on the core side, the data is first transmitted to the base station and then transmitted to the Internet of Things gateway. It is sent to other devices via the IoT gateway, for example, to the core network device. That is, the IoT gateway in the embodiment of the present invention can receive the data sent by the base station before the core network device.
其中,第一数据可以是报文,例如可以是单个报文包含的数据,也可以是多个报文组成的数据,如通过数据流形成的数据,等等。用户终端可以是手机、平板电脑、VR设备、智能表计等能够进行数据交互的设备,本发明实施例中对用户终端具体为何种设备不做限制。The first data may be a packet, for example, data included in a single packet, or data composed of multiple packets, such as data formed by a data stream, and the like. The user terminal can be a device that can perform data interaction, such as a mobile phone, a tablet computer, a VR device, a smart meter, etc., and the device in the embodiment of the present invention does not limit the device.
步骤102:基于第一数据的特征信息,确定针对第一数据的处理策略,其中,特征信息包括用于表征传输第一数据采用的通信协议的信息。Step 102: Determine a processing policy for the first data based on the feature information of the first data, where the feature information includes information used to represent a communication protocol used to transmit the first data.
在步骤101接收到用户终端通过基站发送的第一数据后,物联网网关即可执行步骤102。在步骤102中,物联网网关首先会获取第一数据的特征信息。本发明实施例中,物联网网关可以通过DPI(Deep Packet Inspection,深度报文检测)的方式从第一数据中获取特征信息,或者也可以是在接收第一数据的同时,从基站接收包含第一数据的特征信息的特征数据,并根据该特征数据获得第一数据的特征信息。当然,本领域中其它获取数据的特征信息的方式也是可行的,在此对物联网网关获取数据的特征信息的方式不做限定。After receiving the first data sent by the user terminal through the base station in step 101, the Internet of Things gateway may perform step 102. In step 102, the IoT gateway first acquires feature information of the first data. In the embodiment of the present invention, the IoT gateway may obtain the feature information from the first data by means of DPI (Deep Packet Inspection), or may receive the first data from the base station. The feature data of the feature information of the data, and the feature information of the first data is obtained according to the feature data. Certainly, other ways of obtaining the feature information of the data in the field are also feasible. Here, the manner in which the IoT gateway acquires the feature information of the data is not limited.
具体来说,数据的特征信息可以是指数据中包含的关键字,例如可以是 源IP(Internet Protocol,互联网协议)地址、目的IP地址、源端口号、目的端口号、协议号、数据报文特征等关键字。其中,源IP地址指第一数据的原始来源地址,即用户终端的IP地址,也可以理解为此次数据传输发起者的IP地址,例如可以是图1中所示的第一用户设备的IP地址;目的IP地址指第一数据最终需要传输到的远端网络设备的IP地址,例如可以是图1中所示的第二用户设备的IP地址;源端口号用于表征用户终端在发送第一数据时采用的端口;目的端口号用于表征第一数据最终需要传输到的设备在接收第一数据时需要采用的端口;协议号用于表征第一数据编码时采用的通信协议,即传输第一数据时采用的通信协议;数据报文特征可以在一定程度上表征第一数据包括的业务请求。Specifically, the feature information of the data may refer to a keyword included in the data, for example, may be Source IP (Internet Protocol) address, destination IP address, source port number, destination port number, protocol number, and data packet characteristics. The source IP address refers to the original source address of the first data, that is, the IP address of the user terminal, and can also be understood as the IP address of the data transmission initiator, for example, the IP of the first user equipment shown in FIG. Address; destination IP address refers to the IP address of the remote network device to which the first data needs to be transmitted, for example, may be the IP address of the second user equipment shown in FIG. 1; the source port number is used to characterize the user terminal in the sending a port used for data; a destination port number is used to represent a port that the first data to be transmitted to the device to be received when receiving the first data; the protocol number is used to represent the communication protocol used in the first data encoding, that is, the transmission The communication protocol used in the first data; the data message feature can represent the service request included in the first data to a certain extent.
本发明实施例中,在获取第一数据的特征信息后,物联网网关即可以基于第一数据的特征信息,确定出针对第一数据的处理策略。也就是说,本发明实施例中,针对不同的数据在处理策略上可以是不相同的,根据数据的特征信息,可以有针对性地确定处理策略,进而能够提高数据传输网络处理、传输数据的效率;同时,由于物联网网关为数据提供了多种不同的处理策略,相对于现有技术中单一的处理策略,还可以分担数据传输网络传输、处理数据的压力。In the embodiment of the present invention, after acquiring the feature information of the first data, the IoT gateway may determine a processing policy for the first data based on the feature information of the first data. That is to say, in the embodiment of the present invention, the processing strategy may be different for different data, and according to the feature information of the data, the processing strategy may be determined in a targeted manner, thereby improving the processing and data transmission of the data transmission network. Efficiency; At the same time, because the IoT gateway provides a variety of different processing strategies for data, it can share the pressure of data transmission network transmission and processing data compared to the single processing strategy in the prior art.
步骤103:以处理策略对第一数据进行对应处理。Step 103: Perform corresponding processing on the first data by using a processing policy.
在通过步骤102确定出针对第一数据的处理策略后,物联网网关就可以以步骤102确定出的处理策略处理第一数据。具体来说,在处理第一数据时,可以是由物联网网关自身独立进行处理,也可以由物联网网关与相连的设备协同进行处理,例如,当物联网网关的存储能力不足时,可以为物联网网关连接一台存储设备,该存储设备可以与物联网网关协同处理第一数据,又例如,当物联网网关的计算能力不足时,可以为物联网网关连接一台服务器,该服务器可以与物联网网关协同处理第一数据,等等。After determining the processing policy for the first data by step 102, the IoT gateway can process the first data by using the processing policy determined in step 102. Specifically, when the first data is processed, it may be processed independently by the IoT gateway itself, or may be processed by the IoT gateway in cooperation with the connected device. For example, when the storage capacity of the IoT gateway is insufficient, The IoT gateway is connected to a storage device, and the storage device can cooperate with the IoT gateway to process the first data. For example, when the computing power of the IoT gateway is insufficient, a server can be connected to the IoT gateway, and the server can The IoT gateway co-processes the first data, and so on.
在一种可能的实施方式中,基于第一数据的特征信息,确定针对第一数据的处理策略,可以包括如下的处理流程: In a possible implementation manner, determining a processing policy for the first data based on the feature information of the first data may include the following process:
首先,基于第一数据的特征信息,确定出第一数据的数据类型。本发明实施例中,可以将数据类型分为两类,即物联网数据和非物联网数据。其中,物联网数据为采用物联网协议进行传输的数据,非物联网数据为采用物联网协议外的其它通信协议所进行传输的数据。其中,物联网协议可以是MQTT(Message Queuing Telemetry Transport,消息队列遥测传输)协议、Modbus协议、OPC(OLE for Process Control,用于过程控制的对象连接与嵌入)协议等广泛使用的物联网协议,也可以为用户自行开发的私有协议,等等。本发明实施例中,对于物联网协议包括哪些协议不做具体的限定,在实施过程中,用户可以根据自己的实际需要,对某个协议是否属于物联网协议进行个性化的定义。First, based on the feature information of the first data, the data type of the first data is determined. In the embodiment of the present invention, data types can be classified into two types, namely, Internet of Things data and non-Internet of Things data. Among them, the Internet of Things data is data transmitted by the Internet of Things protocol, and the non-Internet of Things data is data transmitted by other communication protocols other than the Internet of Things protocol. The Internet of Things protocol may be a widely used Internet of Things protocol such as MQTT (Message Queuing Telemetry Transport) protocol, Modbus protocol, OPC (OLE for Process Control), and the object connection and embedding protocol for process control. It can also be a proprietary protocol developed by the user, and so on. In the embodiment of the present invention, the protocols included in the Internet of Things protocol are not specifically defined. In the implementation process, the user may personalize whether a protocol belongs to the Internet of Things protocol according to his actual needs.
具体来说,在确定第一数据是否为物联网数据时,可以先根据第一数据的特征信息确定传输第一数据采用的通信协议,进而判断该通信协议在物联网网关预设的匹配规则中是否被定义为物联网协议,若是,则确定第一数据为物联网数据,若不是,则确定第一数据为非物联网数据。Specifically, when determining whether the first data is the Internet of Things data, the communication protocol used to transmit the first data may be determined according to the feature information of the first data, and then the communication protocol is determined in the matching rule preset by the IoT gateway. Whether it is defined as an Internet of Things protocol, and if so, determining that the first data is IoT data, and if not, determining that the first data is non-IoT data.
进一步地,在确定出第一数据为非物联网数据或物联网数据后,物联网网关就可以根据第一数据的数据类型有针对性地执行下一步的流程:Further, after determining that the first data is non-IoT data or IoT data, the IoT gateway can perform the next process in a targeted manner according to the data type of the first data:
在第一种情况下,第一数据为非物联网数据,则可以将向核心网设备直接发送第一数据的方式确定为针对第一数据的处理策略,也就是说,当第一数据为非物联网数据时,物联网网关可以不对第一数据做进一步的加工处理或分析就直接转发给核心网设备,例如,物联网网关可以通过Abis/lub/S1等接口将第一数据透传至核心网设备。In the first case, if the first data is non-Internet of Things data, the manner of directly transmitting the first data to the core network device may be determined as a processing strategy for the first data, that is, when the first data is non- For IoT data, the IoT gateway can forward the first data to the core network device without further processing or analysis. For example, the IoT gateway can transparently transmit the first data to the core through interfaces such as Abis/lub/S1. Network equipment.
该种情况下,物联网网关在确定第一数据为非物联网数据后,可以直接将第一数据透传至核心网设备,因而不会占用物联网网关的处理资源,也不会影响非物联网数据的传输,能够保障非物联网数据包括的业务请求能够被正常的地响应。In this case, after determining that the first data is non-IoT data, the IoT gateway can directly transmit the first data to the core network device, so that the processing resources of the IoT gateway are not occupied, and the non-object is not affected. The transmission of networked data can ensure that service requests included in non-IoT data can be responded normally.
在第二种情况下,第一数据为物联网数据,则可以根据预设规则将向核心网设备直接发送第一数据的方式确定为针对第一数据的处理策略,或者, 将根据定制需求对第一数据进行逻辑处理确定为针对第一数据的处理策略。In the second case, the first data is the Internet of Things data, and the manner of directly transmitting the first data to the core network device may be determined as a processing strategy for the first data according to a preset rule, or The first data is logically processed according to the customization requirements to determine a processing strategy for the first data.
其中,预设规则为用于确定数据的处理策略的规则。预设规则中可以包括与数据内容相关的规则,还可以包括与数据内容不相关的规则,也就是说,物联网网关根据预设规则确定物联网数据的处理策略时,参考的因素可以是物联网数据自身,也可以是与物联网数据无关的因素,还可以是既参考物联网数据自身也参考与物联网数据无关的因素。本发明实施例中,用户可以根据自己的需求在物联网网关中调整预设规则,因而本发明实施例中的数据处理方法非常的灵活,适应性强,可拓展性好。The preset rule is a rule for determining a processing strategy of the data. The preset rule may include a rule related to the data content, and may also include a rule that is not related to the data content, that is, when the IoT gateway determines the processing strategy of the Internet of Things data according to the preset rule, the reference factor may be The networked data itself can also be a factor unrelated to IoT data, or it can be a reference to both the IoT data itself and the factors that are not related to IoT data. In the embodiment of the present invention, the user can adjust the preset rule in the IoT gateway according to the requirements of the user. Therefore, the data processing method in the embodiment of the present invention is very flexible, adaptable, and expandable.
举例来说,确定针对第一数据的处理策略时,预设规则可以包括与第一数据内容相关的规则。For example, when determining a processing policy for the first data, the preset rule may include a rule related to the first data content.
例如,预设规则可以包括根据第一数据包括的业务请求确定出与业务请求对应的处理策略的规则。也就是说,在预设规则中可以包括有业务请求与处理策略之间的对应关系,进而在确定针对第一数据的处理策略时,可以将第一数据包括的业务请求与预设规则进行匹配,进而确定出第一数据包括的业务请求对应的处理策略。For example, the preset rule may include a rule for determining a processing policy corresponding to the service request according to the service request included in the first data. That is, the preset relationship may include a correspondence between the service request and the processing policy, and when the processing policy for the first data is determined, the service request included in the first data may be matched with the preset rule. And determining a processing policy corresponding to the service request included in the first data.
本发明实施例中,第一数据的特征信息还可以包括用于表征第一数据的业务请求的信息,此时则可以直接根据第一数据的特征信息确定出第一数据包括的业务请求;此外,还可以通过对第一数据进行解析以确定出第一数据包括的业务请求。因而,在具体的实施过程中,物联网网关可以根据如第一数据的源IP地址、目的IP地址、第一数据的业务类型、第一数据的正文中是否包含特定关键字等等信息中的一个或多个确定出第一数据的处理策略。In the embodiment of the present invention, the feature information of the first data may further include information for characterizing the service request of the first data. In this case, the service request included in the first data may be directly determined according to the feature information of the first data; The first data may be parsed to determine a service request included in the first data. Therefore, in a specific implementation process, the IoT gateway may be based on information such as a source IP address of the first data, a destination IP address, a service type of the first data, whether a specific keyword is included in the body of the first data, and the like. One or more processing strategies that determine the first data.
又例如,预设规则可以包括根据第一数据的数据量大小确定出与数据量对应的处理策略的规则,如,当第一数据的数据量较小时,可以确定第一数据的处理策略为根据定制需求对第一数据进行逻辑处理;而当第一数据的数据量较大时,由于物联网网关的处理能力有限,则可以确定第一数据的处理策略为向核心网设备直接发送第一数据,等等。在具体的实施过程中,第一数据的数据量可以是通过第一数据的特征信息获得的,也可以是通过对第一 数据进行解析后获得的。For example, the preset rule may include determining a rule of the processing policy corresponding to the data amount according to the data size of the first data, for example, when the data amount of the first data is small, determining that the processing strategy of the first data is based on The first data is logically processed by the customization requirement; and when the data volume of the first data is large, because the processing capability of the IoT gateway is limited, the processing strategy of the first data may be determined to directly send the first data to the core network device. ,and many more. In a specific implementation process, the data volume of the first data may be obtained by using the feature information of the first data, or may be The data is obtained after parsing.
举例来说,确定针对第一数据的处理策略时,预设规则还可以包括与第一数据内容不相关的规则。For example, when determining a processing policy for the first data, the preset rule may further include a rule that is not related to the first data content.
例如,预设规则可以包括根据物联网网关的自身状态确定出与物联网网关的自身状态对应的处理策略的规则。如,在预设规则中可以包括有物联网网关中当前待处理数据量与处理策略之间的对应关系,当物联网网关当前待处理的数据量较大时,可以将向核心网设备直接发送第一数据的方式确定为针对第一数据的处理策略,以减轻物联网网关的负担,减少数据的等待时长,而当物联网网关当前待处理的数据量较小时,可以将根据定制需求对第一数据进行逻辑处理确定为针对第一数据的处理策略,等等。也就是说,在根据物联网网关的自身状态确定对应的处理策略时,即使物联网数据的内容相同,也会由于物联网网关的自身状态不同,为物联网数据确定出不同的处理策略。For example, the preset rule may include a rule that determines a processing policy corresponding to the own state of the IoT gateway according to the state of the IoT gateway. For example, the preset rule may include a correspondence between the current amount of data to be processed and the processing policy in the IoT gateway. When the amount of data to be processed by the IoT gateway is large, the device may directly send the data to the core network device. The manner of the first data is determined as a processing strategy for the first data to reduce the burden of the IoT gateway and reduce the waiting time of the data, and when the amount of data to be processed by the IoT gateway is small, the A data is logically processed to determine a processing strategy for the first data, and so on. That is to say, when the corresponding processing policy is determined according to the state of the Internet of Things gateway, even if the content of the Internet of Things data is the same, different processing strategies are determined for the Internet of Things data due to the different state of the Internet of Things gateway.
又例如,预设规则可以包括根据当前时间确定出与当前时间对应的处理策略的规则。如,可以设定在8点至22点时,将根据定制需求对第一数据进行逻辑处理确定为针对第一数据的处理策略,在23点至7点时,将向核心网设备直接发送第一数据的方式确定为针对第一数据的处理策略,等等。For another example, the preset rule may include a rule that determines a processing policy corresponding to the current time according to the current time. For example, it can be set from 8:00 to 22:00, and the first data is logically processed according to the customized requirement to determine the processing strategy for the first data. At 23:00 to 7:00, the first network data device will be directly sent to the core network device. The manner of one data is determined as a processing strategy for the first data, and the like.
在具体的实施过程中,将向核心网设备直接发送第一数据的方式确定为针对第一数据的处理策略,物联网网关可以不对第一数据做进一步的加工处理就直接透传给核心网设备。In a specific implementation process, the manner of directly transmitting the first data to the core network device is determined as a processing strategy for the first data, and the IoT gateway may directly transmit the first data to the core network device without further processing the first data. .
在具体的实施过程中,将根据定制需求对第一数据进行逻辑处理确定为针对第一数据的处理策略时,定制需求用于确定第一数据具体以何种逻辑处理方式进行处理。其中,定制需求可以包括直接对第一数据包括的业务请求进行逻辑处理的需求;定制需求也可以包括根据第一数据包括的业务请求确定与业务请求对应的逻辑处理方式,并以对应的逻辑处理方式处理第一数据的需求,例如,若第一数据包括的目的地址为某个特定的IP地址,则可以按照定制需求中与该特定IP地址对应的逻辑处理方式进行处理,而该特定IP地址对应的逻辑处理方式可以不用于直接对第一数据包括的业务请求进行逻辑 处理的方式。In a specific implementation process, when the first data is logically processed according to the customization requirement and determined as the processing strategy for the first data, the customization requirement is used to determine in which logical processing manner the first data is processed. The customization requirement may include a requirement for directly processing the service request included in the first data; the customization requirement may further include determining a logical processing manner corresponding to the service request according to the service request included in the first data, and processing the corresponding logic The manner of processing the first data, for example, if the destination address included in the first data is a specific IP address, the processing may be performed according to a logical processing manner corresponding to the specific IP address in the customization requirement, and the specific IP address is processed. The corresponding logical processing manner may not be used to directly perform logic on the service request included in the first data. The way it is handled.
本发明实施例中,对第一数据进行逻辑处理包括有至少以下的三种逻辑处理方式:In the embodiment of the present invention, performing logical processing on the first data includes at least three logical processing manners as follows:
第一种逻辑处理方式,对第一数据进行数据重构,例如对第一数据进行数据解析、结构转换、格式转换、类型替换、数据拼接、数据裁剪、数据压缩等等,进而可以获得与数据重构方式对应的第二数据。如,第一数据为报文时,可以通过对第一数据进行数据解析获得第一数据中传输的包体;又如,可以通过对第一数据进行格式转换获得与第一数据格式不同的第二数据;再如,可以通过对第一数据进行数据拼接以获得包括第一数据包体部分的第二数据,举例来说,当第一数据为单个报文时,可以将获得的第一数据进行缓存,待获得预定数量的业务请求类型相同的数据后,可以将这些数据汇聚为一个报文,即获得第二数据,而当第一数据为包括多个报文的数据流时,可以将直接将多个报文汇聚为一个报文,即获得第二数据,等等。The first logical processing method performs data reconstruction on the first data, for example, performing data parsing, structure conversion, format conversion, type replacement, data splicing, data clipping, data compression, etc. on the first data, thereby obtaining and data. The second data corresponding to the reconstruction mode. For example, when the first data is a message, the packet transmitted in the first data may be obtained by performing data parsing on the first data; for example, the format of the first data may be converted to obtain a different format from the first data format. For example, the data may be spliced to the first data to obtain the second data including the first data packet body portion. For example, when the first data is a single message, the obtained first data may be obtained. Cacheing, after obtaining a predetermined number of data of the same type of service request, the data may be aggregated into one packet, that is, the second data is obtained, and when the first data is a data stream including multiple packets, Converging multiple packets into one packet directly, that is, obtaining the second data, and so on.
第二种逻辑处理方式,对第一数据包括的业务请求进行处理,进而可以根据处理第一数据包括的业务请求的处理结果获得第二数据。The second logical processing method processes the service request included in the first data, and further obtains the second data according to the processing result of processing the service request included in the first data.
例如,第一数据包括的业务请求可以是获取某个目标地址的某个目标文件至用户终端的获取请求,则物联网网关可以从该目标地址获取该目标文件,再向该用户终端发送该目标文件,本发明实施例中,物联网网关可以预先存储有多个文件,当第一数据包括的业务请求为获取请求时,物联网网关会先判断预先存储的多个文件中是否包括有该目标文件,如果包括有该目标文件,则物联网网关无需访问目标地址就可以直接调用本地预先存储的该目标文件,向用户终端发送预先存储的该目标文件。其中,目标文件即可以为第二数据,对第一数据包括的业务请求进行处理即可以为查找并获取/调用该目标文件。For example, the service request included in the first data may be an acquisition request of acquiring a certain target file of a certain target address to the user terminal, and the IoT gateway may acquire the target file from the target address, and then send the target to the user terminal. In the embodiment of the present invention, the Internet of Things gateway may store a plurality of files in advance. When the service request included in the first data is an acquisition request, the Internet of Things gateway first determines whether the target is included in the plurality of pre-stored files. The file, if the target file is included, the IoT gateway can directly call the local pre-stored target file without accessing the target address, and send the pre-stored target file to the user terminal. The target file may be the second data, and the processing of the service request included in the first data may be to find and obtain/call the target file.
第三种逻辑处理方式,对第一数据包括的业务进行处理,根据处理第一业务请求的处理结果获得第三数据,并对第三数据进行数据重构,以获得第二数据。也就是说,在该种逻辑处理方式中,物联网网关可以先以前述的第 二种逻辑处理方式对第一数据进行处理获得第三数据,再以前述的第一种逻辑处理方式对第三数据进行处理获得第二数据。The third logical processing method is to process the service included in the first data, obtain the third data according to the processing result of processing the first service request, and perform data reconstruction on the third data to obtain the second data. That is to say, in this kind of logic processing, the Internet of Things gateway can first adopt the aforementioned The two logical processing methods process the first data to obtain the third data, and then process the third data in the first logical processing manner to obtain the second data.
在一种可能的实施方式中,物联网网关根据定制需求对第一数据进行逻辑处理之后,物联网网关还可以将对第一数据进行逻辑处理后得到的第二数据进行本地保存或发送给用户终端。In a possible implementation manner, after the IoT gateway logically processes the first data according to the customization requirement, the IoT gateway may further save or send the second data obtained by logically processing the first data to the user. terminal.
也就是说,在该种实施方式中,物联网网关对第一数据进行终结处理,第一数据包括的业务请求不会被传输到核心网设备或传输到前述的目的IP地址对应的远端网络设备,得到的第二数据也不会被传输到核心网设备或传输到前述的目的IP地址对应的设备。That is, in this implementation manner, the Internet of Things gateway terminates the first data, and the service request included in the first data is not transmitted to the core network device or transmitted to the remote network corresponding to the foregoing destination IP address. The second data obtained by the device is not transmitted to the core network device or transmitted to the device corresponding to the foregoing destination IP address.
并且,在该种实施方式中,当第一数据为需要反馈的数据时,物联网网关还可以向用户终端发送响应报文。在发送响应报文时,物联网网关需要在响应报文中将前述的源IP地址和目的IP地址进行互换,也就是说,当用户终端获得了响应报文后,可以根据响应报文确定出是前述的目的IP地址对应的目的设备发送的响应报文,以确保数据发送的准确性。Moreover, in this embodiment, when the first data is data that needs to be fed back, the Internet of Things gateway can also send a response message to the user terminal. When the response packet is sent, the IoT gateway needs to exchange the source IP address and the destination IP address in the response packet. That is, after the user terminal obtains the response packet, it can determine the response packet according to the response packet. The response packet sent by the destination device corresponding to the destination IP address is used to ensure the accuracy of data transmission.
可见,在该种实施方式中,物联网网关对第一数据进行了终结处理,物联网网关在第一数据传输到远端网络设备的过程路径中就得到了响应,实现了用户终端的业务请求,因而能够提高第一数据的响应速率,同时也可以减轻数据传输网络的数据传输压力。It can be seen that in the implementation manner, the Internet of Things gateway terminates the first data, and the IoT gateway obtains a response in the process path of transmitting the first data to the remote network device, and implements the service request of the user terminal. Therefore, the response rate of the first data can be improved, and the data transmission pressure of the data transmission network can also be alleviated.
在一种可能的实施方式中,物联网网关根据定制需求对第一数据进行逻辑处理之后,物联网网关还可以将对第一数据进行逻辑处理后得到的第二数据发送给核心网设备。In a possible implementation manner, after the IoT gateway logically processes the first data according to the customization requirement, the IoT gateway may further send the second data obtained by logically processing the first data to the core network device.
也就是说,在该种实施方式中,物联网网关对第一数据进行了中间处理,对第一数据进行逻辑处理后得到的第二数据会被发送至核心网设备。举例来说,物联网网关可以是对第一数据进行了数据拼接、格式转换等数据重构处理,也可以是对第一数据包括的业务请求进行了一定的预处理,等等,进而,物联网网关可以将处理后得到的第二数据通过核心网设备这一路径进行发送。 That is to say, in this embodiment, the Internet of Things gateway performs intermediate processing on the first data, and the second data obtained by logically processing the first data is sent to the core network device. For example, the IoT gateway may perform data reconstruction processing such as data splicing and format conversion on the first data, or may perform certain preprocessing on the service request included in the first data, and the like, and further, The networked gateway can send the processed second data through the path of the core network device.
可见,在该种实施方式中,物联网网关对第一数据进行逻辑处理得到第二数据后,再将第二数据发送至核心网设备。通过对第一数据的进行数据重构或对第一数据包括的业务请求进行预处理等逻辑处理,可以减轻数据传输网络和远端网络设备的数据传输、处理压力。It can be seen that, in this implementation manner, after the IoT gateway logically processes the first data to obtain the second data, the second data is sent to the core network device. The data transmission and processing pressure of the data transmission network and the remote network device can be alleviated by performing logical processing on data reconstruction of the first data or preprocessing of the service request included in the first data.
请参见图4、图5,在一种可能的实施方式中,物联网网关还可以与远端网络设备连接。图4、图5所示分别为本发明实施例中物联网网关的两种连接关系示意图。其中,如图4所示,远端网络设备与核心网设备之间可以是相互连接的,或者如图5所示,本发明实施例中远端网络设备与核心网设备之间也可以是没有相互连接的。此外,图4、图5中仅示出了物联网网关与一个远端网络设备相互连接的情形,而在具体的实施过程中,物联网网关还可以与多个远端网络设备相互连接。Referring to FIG. 4 and FIG. 5, in a possible implementation manner, the IoT gateway may also be connected to the remote network device. FIG. 4 and FIG. 5 are respectively schematic diagrams showing two connection relationships of the Internet of Things gateway in the embodiment of the present invention. As shown in FIG. 4, the remote network device and the core network device may be connected to each other, or as shown in FIG. 5, in the embodiment of the present invention, the remote network device and the core network device may also be Interconnected. In addition, in FIG. 4 and FIG. 5, only the Internet of Things gateway and a remote network device are connected to each other. In a specific implementation process, the Internet of Things gateway can also be connected to multiple remote network devices.
其中,远端网络设备可以是路由器、交换机、网关等网络连接设备,也可以是个人电脑、服务器等终端设备。物联网网关可以通过单独设置的数据链路与远端网络设备连接。具体来说,本发明实施例中物联网网关与远端网络设备之间单独设置的数据链路可以是IP链路,在物理实体上可以是连接物联网网关与远端网络设备的网线。由于物联网网关与远端网络设备可以直接进行通信,因而物联网网关可以绕过核心网设备,直接向远端网络设备发送数据。The remote network device may be a network connection device such as a router, a switch, or a gateway, or may be a terminal device such as a personal computer or a server. The IoT gateway can connect to remote network devices through a separate data link. Specifically, the data link that is separately set between the Internet of Things gateway and the remote network device in the embodiment of the present invention may be an IP link, and the physical entity may be a network cable connecting the Internet of Things gateway and the remote network device. Since the IoT gateway and the remote network device can communicate directly, the IoT gateway can bypass the core network device and directly send data to the remote network device.
物联网网关根据定制需求对第一数据进行逻辑处理之后,物联网网关可以将对第一数据进行逻辑处理后得到的第二数据发送给远端网络设备。After the IoT gateway logically processes the first data according to the customization requirement, the IoT gateway may send the second data obtained by logically processing the first data to the remote network device.
也就是说,在该种实施方式中,物联网网关对第一数据进行了分流处理,对第一数据进行逻辑处理后得到的第二数据,可以通过物联网网关与远端网络设备之间单独的网络链路发送至远端网络设备,无需经过核心网设备。举例来说,当物联网网关与远端网络设备之间单独的数据链路为IP链路时,物联网网关可以是将第一数据封装为可以基于IP传输的第二数据,也可以是对第一数据进行处理获得第三数据,再将第三数据封装为可以基于IP传输的第二数据,进而,物联网网关可以通过这条IP链路向远端网络设备发送第二数 据。That is to say, in this implementation manner, the IoT gateway performs the offload processing on the first data, and the second data obtained by logically processing the first data may be separately separated between the IoT gateway and the remote network device. The network link is sent to the remote network device without going through the core network device. For example, when the separate data link between the IoT gateway and the remote network device is an IP link, the IoT gateway may encapsulate the first data as second data that may be transmitted based on IP, or may be The first data is processed to obtain the third data, and the third data is encapsulated into the second data that can be transmitted based on the IP. Further, the IoT gateway can send the second number to the remote network device through the IP link. according to.
可见,在该种实施方式中,物联网网关可以通过单独设置的数据链路,绕过核心网设备,将处理第一数据后得到的第二数据发送至远端网络设备,如可以实现绕过运营商的核心网设备,直接与远端网络设备进行通信。因而,通过该种实施方式,一方面能够减轻核心网设备传输数据的压力,另一方面,物联网网关通过单独设置的数据链路与远端网络设备进行通信,满足用户的个性化的网络传输需求,并且能够提高数据传输效率。It can be seen that, in this implementation manner, the IoT gateway can bypass the core network device by using a separately set data link, and send the second data obtained by processing the first data to the remote network device, for example, bypassing can be implemented. The carrier's core network device communicates directly with the remote network device. Therefore, with this embodiment, on the one hand, the pressure of transmitting data of the core network device can be alleviated, and on the other hand, the IoT gateway communicates with the remote network device through a separately set data link to satisfy the personalized network transmission of the user. Demand, and can improve data transmission efficiency.
本发明实施例中,由于物联网网关设置于基站与核心网设备之间,由基站发送给核心网设备的数据会先经由物联网网关,这样使得物联网网关可以对数据提前进行一些处理,有针对性地确定出与数据匹配的处理策略,进而能够有效避免现有技术中对所有数据采用统一的处理策略,缺乏针对性,导致数据处理效率低、响应速度慢的问题,提高了数据在数据传输网络中的传输效率,也提高了对数据包括的业务请求的响应速度。In the embodiment of the present invention, since the Internet of Things gateway is disposed between the base station and the core network device, the data sent by the base station to the core network device first passes through the Internet of Things gateway, so that the Internet of Things gateway can perform some processing on the data in advance. The processing strategy that matches the data is determined in a targeted manner, thereby effectively avoiding the unified processing strategy for all data in the prior art, and lacking pertinence, resulting in low data processing efficiency and slow response speed, and improving data in data. The transmission efficiency in the transport network also increases the response speed to the service requests included in the data.
同时,物联网网关可以根据数据的特征信息确定出不同的处理策略,不同的数据确定出的处理策略可以是不同的,相较于现有技术中基站直接将数据发送至核心网设备的单一处理策略,本发明实施例中的物联网网关能够分担数据传输网络传输和处理数据的压力。At the same time, the IoT gateway can determine different processing strategies according to the characteristic information of the data, and the processing strategies determined by different data can be different, compared with the single processing in which the base station directly sends data to the core network device in the prior art. The IoT gateway in the embodiment of the present invention can share the pressure of transmitting and processing data in the data transmission network.
进一步地,本发明实施例中所确定的用于处理第一数据的处理策略,是根据第一数据的特征信息有针对性地确定出的,因而,确定出的处理策略能够以更高效、更有针对性的方式对第一数据进行处理,优化了现有技术中的数据处理流程,提高了处理数据的效率和准确性。Further, the processing strategy for processing the first data determined in the embodiment of the present invention is specifically determined according to the feature information of the first data, and thus, the determined processing strategy can be more efficient and more The first data is processed in a targeted manner, and the data processing flow in the prior art is optimized, and the efficiency and accuracy of processing the data are improved.
请参见图6,基于同一发明构思,本发明实施例还提供一种物联网网关,该物联网网关连接于基站与核心网设备之间,该物联网网关包括存储器201和处理器202,存储器201和处理器202可以通过总线200连接,或者也可以通过专门的连接线连接,图6中以通过总线200连接为例。其中:Referring to FIG. 6, based on the same inventive concept, an embodiment of the present invention further provides an Internet of Things gateway, which is connected between a base station and a core network device, where the Internet of Things gateway includes a memory 201 and a processor 202, and the memory 201 And the processor 202 may be connected through the bus 200, or may also be connected through a dedicated connection line, as exemplified by the connection through the bus 200 in FIG. among them:
存储器201存储有指令;The memory 201 stores instructions;
处理器202,与存储器201连接,用于在加载存储器201存储的指令时执 行以下步骤:The processor 202 is connected to the memory 201 for executing the instruction stored in the memory 201 Take the following steps:
接收用户终端通过基站发送的第一数据;Receiving first data sent by the user terminal through the base station;
基于第一数据的特征信息,确定针对第一数据的处理策略,其中,特征信息包括用于表征传输第一数据采用的通信协议的信息;Determining, according to the feature information of the first data, a processing policy for the first data, where the feature information includes information for characterizing a communication protocol used to transmit the first data;
以处理策略对第一数据进行处理。The first data is processed in a processing strategy.
在一种可能的实施方式中,处理器202在加载指令时执行以下步骤:In a possible implementation, the processor 202 performs the following steps when loading the instruction:
基于特征信息,确定第一数据为非物联网数据或物联网数据;Determining, based on the feature information, that the first data is non-Internet of Things data or Internet of Things data;
若第一数据为非物联网数据,则将向核心网设备直接发送第一数据确定为处理策略;If the first data is non-IoT data, the first data to be directly sent to the core network device is determined as a processing policy;
若第一数据为物联网数据,则根据预设规则将向核心网设备直接发送第一数据确定为处理策略,或者,将根据定制需求对第一数据进行逻辑处理确定为处理策略。If the first data is the Internet of Things data, the first data is directly sent to the core network device as a processing policy according to a preset rule, or the first data is logically processed according to the customized requirement to be a processing policy.
在一种可能的实施方式中,处理器202在加载指令时执行以下步骤:In a possible implementation, the processor 202 performs the following steps when loading the instruction:
将对第一数据进行逻辑处理后得到的第二数据进行本地保存或发送给用户终端。The second data obtained by logically processing the first data is locally saved or sent to the user terminal.
在一种可能的实施方式中,处理器202在加载指令时执行以下步骤:In a possible implementation, the processor 202 performs the following steps when loading the instruction:
将对第一数据进行逻辑处理后得到的第二数据发送给核心网设备。The second data obtained by logically processing the first data is sent to the core network device.
在一种可能的实施方式中,物联网网关还与远端网络设备连接,处理器202在加载指令时执行以下步骤:In a possible implementation manner, the Internet of Things gateway is also connected to the remote network device, and the processor 202 performs the following steps when loading the instruction:
将对第一数据进行逻辑处理后得到的第二数据发送给远端网络设备。The second data obtained by logically processing the first data is sent to the remote network device.
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located in one place. Or it can be distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实 施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand the realities. The implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

  1. 一种数据处理方法,应用于物联网网关,其特征在于,所述物联网网关连接于基站与核心网设备之间,所述方法包括:A data processing method is applied to an IoT gateway, wherein the IoT gateway is connected between a base station and a core network device, and the method includes:
    接收用户终端通过所述基站发送的第一数据;Receiving, by the user terminal, the first data sent by the base station;
    基于所述第一数据的特征信息,确定针对所述第一数据的处理策略,其中,所述特征信息包括用于表征传输所述第一数据采用的通信协议的信息;Determining, according to the feature information of the first data, a processing policy for the first data, where the feature information includes information for characterizing a communication protocol used to transmit the first data;
    以所述处理策略对所述第一数据进行处理。Processing the first data with the processing policy.
  2. 如权利要求1所述的方法,其特征在于,所述基于所述第一数据的特征信息,确定针对所述第一数据的处理策略,包括:The method of claim 1, wherein the determining a processing policy for the first data based on the feature information of the first data comprises:
    基于所述特征信息,确定所述第一数据为非物联网数据或物联网数据;Determining, according to the feature information, that the first data is non-Internet of Things data or Internet of Things data;
    若所述第一数据为非物联网数据,则将向所述核心网设备直接发送所述第一数据确定为所述处理策略;If the first data is non-Internet of Things data, the first data to be directly sent to the core network device is determined as the processing policy;
    若所述第一数据为物联网数据,则根据预设规则将向所述核心网设备直接发送所述第一数据确定为所述处理策略,或者,将根据定制需求对所述第一数据进行逻辑处理确定为所述处理策略。If the first data is the Internet of Things data, the first data is directly sent to the core network device as the processing policy according to a preset rule, or the first data is to be performed according to a customized requirement. The logical process is determined to be the processing strategy.
  3. 如权利要求2所述的方法,其特征在于,在所述根据定制需求对所述第一数据进行逻辑处理之后,所述方法还包括:The method of claim 2, after the logical processing of the first data according to the customization requirement, the method further comprises:
    将对所述第一数据进行逻辑处理后得到的第二数据进行本地保存或发送给所述用户终端。The second data obtained by logically processing the first data is locally saved or sent to the user terminal.
  4. 如权利要求2所述的方法,其特征在于,在所述根据定制需求对所述第一数据进行逻辑处理之后,所述方法还包括:The method of claim 2, after the logical processing of the first data according to the customization requirement, the method further comprises:
    将对所述第一数据进行逻辑处理后得到的第二数据发送给所述核心网设备。The second data obtained by logically processing the first data is sent to the core network device.
  5. 如权利要求2所述的方法,其特征在于,所述物联网网关还与远端网络设备连接,在所述根据定制需求对所述第一数据进行逻辑处理之后,所述方法还包括: The method of claim 2, wherein the IoT gateway is further connected to the remote network device, and after the logically processing the first data according to the customization requirement, the method further comprises:
    将对所述第一数据进行逻辑处理后得到的第二数据发送给所述远端网络设备。And sending the second data obtained by logically processing the first data to the remote network device.
  6. 一种物联网网关,其特征在于,所述物联网网关连接于基站与核心网设备之间,所述物联网网关包括:An IoT gateway is characterized in that the IoT gateway is connected between a base station and a core network device, and the IoT gateway includes:
    存储器,存储有指令;a memory that stores instructions;
    处理器,与所述存储器连接,用于在加载所述指令时执行以下步骤:a processor coupled to the memory for performing the following steps when loading the instructions:
    接收用户终端通过所述基站发送的第一数据;Receiving, by the user terminal, the first data sent by the base station;
    基于所述第一数据的特征信息,确定针对所述第一数据的处理策略,其中,所述特征信息包括用于表征传输所述第一数据采用的通信协议的信息;Determining, according to the feature information of the first data, a processing policy for the first data, where the feature information includes information for characterizing a communication protocol used to transmit the first data;
    以所述处理策略对所述第一数据进行处理。Processing the first data with the processing policy.
  7. 如权利要求6所述的物联网网关,其特征在于,所述处理器在加载所述指令时执行以下步骤:The Internet of Things gateway of claim 6 wherein said processor performs the following steps when loading said instructions:
    基于所述特征信息,确定所述第一数据为非物联网数据或物联网数据;Determining, according to the feature information, that the first data is non-Internet of Things data or Internet of Things data;
    若所述第一数据为非物联网数据,则将向所述核心网设备直接发送所述第一数据确定为所述处理策略;If the first data is non-Internet of Things data, the first data to be directly sent to the core network device is determined as the processing policy;
    若所述第一数据为物联网数据,则根据预设规则将向所述核心网设备直接发送所述第一数据确定为所述处理策略,或者,将根据定制需求对所述第一数据进行逻辑处理确定为所述处理策略。If the first data is the Internet of Things data, the first data is directly sent to the core network device as the processing policy according to a preset rule, or the first data is to be performed according to a customized requirement. The logical process is determined to be the processing strategy.
  8. 如权利要求7所述的物联网网关,其特征在于,所述处理器在加载所述指令时执行以下步骤:The Internet of Things gateway of claim 7 wherein said processor performs the following steps when loading said instructions:
    将对所述第一数据进行逻辑处理后得到的第二数据进行本地保存或发送给所述用户终端。The second data obtained by logically processing the first data is locally saved or sent to the user terminal.
  9. 如权利要求7所述的物联网网关,其特征在于,所述处理器在加载所述指令时执行以下步骤:The Internet of Things gateway of claim 7 wherein said processor performs the following steps when loading said instructions:
    将对所述第一数据进行逻辑处理后得到的第二数据发送给所述核心网设备。The second data obtained by logically processing the first data is sent to the core network device.
  10. 如权利要求7所述的物联网网关,其特征在于,所述物联网网关还 与远端网络设备连接,所述处理器在加载所述指令时执行以下步骤:The Internet of Things gateway of claim 7 wherein said IoT gateway is further Connected to a remote network device, the processor performs the following steps when loading the instructions:
    将对所述第一数据进行逻辑处理后得到的第二数据发送给所述远端网络设备。 And sending the second data obtained by logically processing the first data to the remote network device.
PCT/CN2017/117526 2017-06-29 2017-12-20 Data processing method and internet of things (iot) gateway WO2019000866A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710518287.0 2017-06-29
CN201710518287.0A CN107395572B (en) 2017-06-29 2017-06-29 Data processing method and Internet of things gateway

Publications (1)

Publication Number Publication Date
WO2019000866A1 true WO2019000866A1 (en) 2019-01-03

Family

ID=60334540

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117526 WO2019000866A1 (en) 2017-06-29 2017-12-20 Data processing method and internet of things (iot) gateway

Country Status (2)

Country Link
CN (1) CN107395572B (en)
WO (1) WO2019000866A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055058A (en) * 2020-08-19 2020-12-08 广东省新一代通信与网络创新研究院 Data storage method and device and computer readable storage medium
CN113452732A (en) * 2020-03-25 2021-09-28 河南许继仪表有限公司 Power Internet of things network management system and method
CN115412925A (en) * 2022-09-02 2022-11-29 广州爱浦路网络技术有限公司 Network security protection method and device and security protection function network element

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395572B (en) * 2017-06-29 2020-04-14 京信通信系统(中国)有限公司 Data processing method and Internet of things gateway
CN110381018B (en) * 2019-06-10 2021-05-25 珠海格力电器股份有限公司 Data processing method, computer device and storage medium
CN110401935B (en) * 2019-07-10 2022-05-03 京信网络系统股份有限公司 NB-IOT (network node B-Internet of things) -based data transmission method and device, communication equipment and storage medium
CN111404870B (en) * 2019-11-13 2022-05-31 浙江中控技术股份有限公司 Safe and reliable public network communication method applied to Modbus
CN112383431A (en) * 2020-11-13 2021-02-19 武汉虹旭信息技术有限责任公司 Method and device for identifying data of internet of things in internet
CN113259418A (en) * 2021-04-25 2021-08-13 深圳市城市交通规划设计研究中心股份有限公司 Method, apparatus and computer-readable storage medium for transmitting data
CN117478680B (en) * 2023-12-26 2024-03-15 国网四川省电力公司信息通信公司 Terminal data stream transmission remote control method and system based on Internet of things management platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685928A (en) * 2011-03-14 2012-09-19 华为技术有限公司 Information processing method of internet of things, base station and system of internet of things
US20160374048A1 (en) * 2015-06-19 2016-12-22 Qualcomm Incorporated Small data transmission in a wireless communications system
WO2017027071A1 (en) * 2015-08-13 2017-02-16 Intel IP Corporation Ciot architecture for efficient data transmission
CN106550466A (en) * 2015-09-21 2017-03-29 宏碁股份有限公司 Base station network device
CN107395572A (en) * 2017-06-29 2017-11-24 京信通信系统(中国)有限公司 A kind of data processing method and things-internet gateway

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098237B (en) * 2011-01-27 2012-11-28 大唐移动通信设备有限公司 Gateway equipment, method for using gateway equipment and information transmission method and equipment
CN102307223B (en) * 2011-05-12 2016-01-20 南京中兴新软件有限责任公司 A kind of method and system realizing application platform adaptation
CN102638560A (en) * 2011-12-14 2012-08-15 中兴通讯股份有限公司 Gateway of internet of things and method for connecting gateway with sensing equipment
CN107317839A (en) * 2012-07-04 2017-11-03 中兴通讯股份有限公司 Internet of things information processing method, apparatus and system
CN103139058A (en) * 2013-01-28 2013-06-05 公安部第一研究所 Internet of things security access gateway
CN103997729B (en) * 2014-05-26 2018-05-29 京信通信系统(中国)有限公司 A kind of method, apparatus and system for transmitting message
US9986480B2 (en) * 2015-08-05 2018-05-29 M87, Inc. Communications related methods and apparatus
CN106856455B (en) * 2016-12-27 2020-01-14 京信通信系统(中国)有限公司 Method and device for forwarding GTPU user plane data
CN106685829B (en) * 2016-12-27 2020-06-19 京信通信系统(中国)有限公司 Method and device for transmitting real-time transport protocol RTP user plane data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685928A (en) * 2011-03-14 2012-09-19 华为技术有限公司 Information processing method of internet of things, base station and system of internet of things
US20160374048A1 (en) * 2015-06-19 2016-12-22 Qualcomm Incorporated Small data transmission in a wireless communications system
WO2017027071A1 (en) * 2015-08-13 2017-02-16 Intel IP Corporation Ciot architecture for efficient data transmission
CN106550466A (en) * 2015-09-21 2017-03-29 宏碁股份有限公司 Base station network device
CN107395572A (en) * 2017-06-29 2017-11-24 京信通信系统(中国)有限公司 A kind of data processing method and things-internet gateway

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452732A (en) * 2020-03-25 2021-09-28 河南许继仪表有限公司 Power Internet of things network management system and method
CN112055058A (en) * 2020-08-19 2020-12-08 广东省新一代通信与网络创新研究院 Data storage method and device and computer readable storage medium
CN115412925A (en) * 2022-09-02 2022-11-29 广州爱浦路网络技术有限公司 Network security protection method and device and security protection function network element

Also Published As

Publication number Publication date
CN107395572B (en) 2020-04-14
CN107395572A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
WO2019000866A1 (en) Data processing method and internet of things (iot) gateway
EP3429260B1 (en) Data transmission method and system
CN109952781A (en) For handling the UE, network node and method of data grouping
CN112003937A (en) Satellite data transmission method, satellite data transmission device, computer equipment and storage medium
CN112104744A (en) Traffic proxy method, server and storage medium
US20230033272A1 (en) Method and apparatus for dynamic and efficient load balancing in mobile communication network
EP2922365B1 (en) Method, system, and station for efficient block acknowledgement connection
CN112788698B (en) Data processing method and device and terminal equipment
CN113938431A (en) Burst data packet transmission method and device and electronic equipment
WO2023186109A1 (en) Node access method and data transmission system
CN117336346A (en) IPPBX and PMS docking state conversion method, terminal equipment and medium
CN102811149B (en) A kind of for the double card headend equipment in video system and control method, system
CN114301831B (en) Service transmission method, device and storage medium
TWI701925B (en) Method for providing network service through edge computing
CN114697269A (en) Data communication method, apparatus, device and medium
CN102857504B (en) Network optimized approach and device
CN114556894A (en) Method, apparatus and computer program product for packet forwarding control protocol message bundling
CN109150725B (en) Traffic grooming method and server
CN102325187A (en) System and method for integrating multiple function services
CN106209666A (en) A kind of link multiplexing method based on load equalizer and system
WO2018205945A1 (en) Information processing method and device
CN113301104B (en) Data processing system and method
WO2023011345A1 (en) Data routing method and apparatus, and node and storage medium
WO2023155739A1 (en) Data transmission method, network device, and user equipment
CN113556742B (en) Network architecture and distribution strategy configuration method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17916426

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 19/02/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17916426

Country of ref document: EP

Kind code of ref document: A1