CN116489248A - Data access method and access system based on edge node - Google Patents

Data access method and access system based on edge node Download PDF

Info

Publication number
CN116489248A
CN116489248A CN202211716230.9A CN202211716230A CN116489248A CN 116489248 A CN116489248 A CN 116489248A CN 202211716230 A CN202211716230 A CN 202211716230A CN 116489248 A CN116489248 A CN 116489248A
Authority
CN
China
Prior art keywords
terminal
data
service module
communication data
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211716230.9A
Other languages
Chinese (zh)
Inventor
沈永良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Honghe Intelligent Systems Co ltd
Original Assignee
Chengdu Hongheai Classroom Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Hongheai Classroom Technology Co ltd filed Critical Chengdu Hongheai Classroom Technology Co ltd
Priority to CN202211716230.9A priority Critical patent/CN116489248A/en
Publication of CN116489248A publication Critical patent/CN116489248A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a data access method and an access system based on edge nodes. The data access method based on the edge node is applied to a data access system based on the edge node, and the system comprises the following steps: an edge node layer, a client layer and a server layer; the edge node layer comprises an uplink service module, a downlink service module and a business service unit; the client layer includes at least one client terminal. The method comprises the following steps: the downlink service module acquires first original data sent by a first target client terminal of the client layer, carries out protocol analysis on the first original data to obtain second communication data, and sends the second communication data to the business service unit; the first target client terminal is any one of at least one client terminal; the service unit executes the service corresponding to the second communication data to obtain first communication data; the uplink service module sends the first communication data to the server layer according to a first preset protocol.

Description

Data access method and access system based on edge node
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data access method and an access system based on an edge node.
Background
With the popularization and mass use of data input/output devices such as audio/video devices, the same data access system needs to monitor a large number of data input/output devices simultaneously. In the related art, a cloud server and a data input/output device are connected mainly through a central control device, but a data access system formed by the method has high requirements on the computing capacity of the cloud server.
Disclosure of Invention
In view of this, the present application aims to provide a data access method and an access system based on an edge node, so as to solve the problems of high operation cost and inconvenient maintenance and development of the data access system proposed by the background art.
Based on the above object, the present application provides a data access method based on an edge node, which is applied to a data access system based on an edge node, wherein the data access system based on an edge node includes: an edge node layer, a client layer and a server layer; the edge node layer comprises an uplink service module, a downlink service module and a business service unit; the client layer comprises at least one client terminal;
the method comprises the following steps:
the downlink service module acquires first original data sent by a first target client terminal of the client layer, carries out protocol analysis on the first original data to obtain second communication data, and sends the second communication data to the business service unit; wherein the first target client terminal is any one of the at least one client terminal.
The business service unit executes business corresponding to the second communication data to obtain first communication data;
and the uplink service module sends the first communication data to the server layer according to a first preset protocol.
Optionally, the service unit includes a plurality of execution terminals and a control terminal, each execution terminal executing a service; the second communication data comprises a service type identifier;
the service unit executes the service corresponding to the second communication data to obtain first communication data, including:
the control terminal determines a target service corresponding to the service type identifier;
the control terminal is matched with a target execution terminal corresponding to the target service;
and the control terminal controls the target execution terminal to execute the service corresponding to the second communication data to obtain the first communication data.
Optionally, the controlling terminal controls the target executing terminal to execute the service corresponding to the second communication data to obtain the first communication data, including:
the control terminal determines whether an access address of the target execution terminal exists;
the control terminal responds to the access address of the target execution terminal, and accesses the target execution terminal according to the access address of the target execution terminal so that the target execution terminal executes the service corresponding to the second communication data to obtain the first communication data.
Optionally, the control terminal matches with a target execution terminal corresponding to the target service, including:
the control terminal matches a target execution terminal corresponding to the target service according to a preset terminal list; and the preset terminal list stores the corresponding relation of the terminal service type identifiers and the terminal access addresses of all the execution terminals.
Optionally, after obtaining the first communication data, the method further comprises:
the control terminal obtains terminal information of all execution terminals, wherein the terminal information comprises a terminal service type identifier and a terminal access address;
and the control terminal updates the preset terminal list according to the terminal information.
Optionally, the uplink service module sends the first communication data to the server layer according to a first predetermined protocol, including:
the uplink service module sends a first heartbeat packet to the server layer; the first heartbeat packet is a first data packet sent by the uplink service module to the server layer;
the uplink service module responds to the received first response packet and sends the first communication data to the server layer according to a first preset protocol; the first response packet is a data packet sent to the uplink service module after the server layer receives the first heartbeat packet.
Optionally, after the uplink service module sends the first heartbeat packet to the server layer, the method further includes:
the uplink service module responds to the fact that the first heartbeat packet is not received, and stores the first communication data into a preset database;
the uplink service module sends a second heartbeat packet to the server layer; the second heartbeat packet is any one data packet except the first data packet sent by the uplink service module to the server layer:
the uplink service module responds to the receiving of the second response packet, and sends first communication data in the database to the server layer according to a first preset protocol; and the second response packet is a data packet sent to the uplink service module after the server layer receives the second heartbeat packet.
Optionally, after the uplink service module sends the first communication data to the server layer according to a first predetermined protocol, the method further includes:
the uplink service module receives second original data sent by the server layer and sends the second original data to the downlink service module;
the downlink service module carries out protocol analysis on the second original data to obtain third communication data;
the downlink service module sends the third communication data to a second target client terminal, wherein the second target client terminal is any one of the at least one client terminal.
Based on the same inventive concept, the application also provides a data access system based on the edge node, which comprises:
an edge node layer, a client layer and a server layer; the edge node layer comprises an uplink service module, a downlink service module and a business service unit; the client layer comprises at least one client terminal;
the downlink service module is respectively in communication connection with the at least one client terminal and the business service unit;
the uplink service module is respectively in communication connection with the server layer and the business service unit;
the system is configured to implement the edge node based data access method as claimed in any of claims 1-8.
Optionally, the client layer and the downlink service module are connected through gateway equipment; the gateway equipment at least comprises two network interfaces for connecting client terminals of different network segments.
From the above, it can be seen that, according to the data access method and the access system based on the edge node, the edge node layer shares the calculation task of the server, the downlink service module realizes access of different terminal devices, and carries out protocol analysis on the data sent by the terminal devices, the service unit of the edge node layer executes the responsive service according to the analyzed data, and sends the data obtained after executing the service to the server layer through the uplink service module, and the calculation processing capacity of the data is dispersed through the setting of the edge node layer, so that the calculation capacity of the system is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application or related art, the drawings that are required to be used in the description of the embodiments or related art will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort to those of ordinary skill in the art.
FIG. 1 is a flow diagram of a method of edge-based computing data access in accordance with one or more embodiments of the present application;
FIG. 2 is a schematic diagram of a data access system based on edge computation according to one or more embodiments of the present application;
FIG. 3 is an interactive schematic diagram of an edge computing-based data access system in accordance with one or more embodiments of the present application;
fig. 4 is an application scenario diagram of an edge-computing-based data access system according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail below with reference to the accompanying drawings.
It should be noted that unless otherwise defined, technical or scientific terms used in the embodiments of the present application should be given the ordinary meaning as understood by one of ordinary skill in the art to which the present application belongs. The terms "first," "second," and the like, as used in embodiments of the present application, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
In order to more clearly illustrate the overall inventive concept of the present application, application scenarios of the present application are described.
As described in the background art, with the popularization of data input/output devices, data input/output devices such as video matrix, recorder and other audio/video devices are used in a large number in some specific offices, education and other scenes. The data access method provided in the related art is mainly characterized in that a single central control device is connected with a terminal device and a cloud server. Specifically, the server processes tasks such as calculation and storage, the central control equipment connects the terminal equipment and the server in a single network segment, and the system communication requirement is met through a single communication protocol. The method has the advantages of simplicity and easiness in deployment. However, with the increase of data input and output equipment, the method has the problems that the operation amount of the server is overlarge, the system operation efficiency is low, the maintenance is inconvenient when the cloud server fails, and the like.
Therefore, the application provides a data access method and system based on edge nodes. The edge node is used for constructing a service platform, namely a data access system in the application, on the edge side close to the user network. The platform is based on a micro-service architecture and can provide resources such as storage, calculation and the like of user side data. The micro-service architecture is a variant of the software development technology-service oriented architecture style, which advocates the division of a single application into a set of small services, each of which is a microprocessor, and the services coordinate and cooperate with each other to provide the final value for the user. Each service runs in an independent process, and the service communicate with each other by adopting a lightweight communication mechanism. Each service is built around a specific business and can be deployed independently to a production environment, class production environment, etc. Compared with a system with a single structure, the system with the micro-service architecture has the characteristics of small code quantity and weak coupling, is convenient for later maintenance, and has more flexible development mode; and each single module of the micro-service is provided with a corresponding database, so that the storage modes are more various. By introducing an edge computing layer into the applied data access system based on the edge nodes, the computing task of the system is shared, the edge computing capacity of the data access system is improved, and the burden of a server layer is reduced.
The data access method based on edge computation according to one or more embodiments of the present application is described in detail below by way of specific embodiments.
Referring to fig. 1, a data access method based on edge computation according to one or more embodiments of the present application includes the following steps:
step S101: the downlink service module acquires first original data sent by a first target client terminal of the client layer, carries out protocol analysis on the first original data to obtain second communication data, and sends the second communication data to the business service unit; wherein the first target client terminal is any one of the at least one client terminal.
Taking the target client terminal as an audio/video device as an example, the first original data may be image data, or audio data obtained through a digital camera, a video camera, a microphone, etc.
In some embodiments, the communication between the target client terminal and the downstream service module in the edge node layer may select any one of HTTP protocol, MOTT protocol and TCP protocol as the communication protocol. Therefore, in some embodiments, the second communication data may be obtained by performing protocol parsing on the received first original data according to a predetermined protocol parsing protocol through a corresponding execution terminal in the downlink service module. Protocol parsing is a process of using a method of decoding a header and a trailer of a communication protocol to obtain information represented by protocol data. In some embodiments, the first original data is in the form of a data frame, and the second communication data is obtained by parsing through the method of decoding a communication protocol.
Taking a client terminal of a client layer as an audio or video client terminal as an example, the first original data is an audio data frame or a video data frame conforming to a predetermined protocol, and the data frame comprises a frame head, data and a frame tail. And carrying out protocol analysis on the first original data according to the agreed protocol analysis protocol of the audio and video terminal for sending the first original data to obtain second communication data.
In some embodiments, before the step, the first original data may be received through a communication protocol server corresponding to a communication protocol according to which the first original data is in accordance. For example, the first original data sent according to the MQTT protocol is received by the MQTT server.
Step S102: and the service unit executes the service corresponding to the second communication data to obtain the first communication data.
In the present application, the second communication data is communication data obtained after performing protocol analysis on the first original data. The second communication data includes service data that the first target client terminal needs to process at the edge node layer. And the service processing unit performs corresponding data processing according to the service data to obtain first communication data. For example, the service corresponding to the second communication data may be any one of data denoising, breakpoint continuous transmission, online and offline monitoring of the device, and management of the connected device.
In some embodiments, the service unit includes a plurality of execution terminals and a control terminal, each execution terminal executing one service. The second communication data includes a service type identification. The execution terminal and the control terminal can be realized by establishing a micro server architecture, and the control terminal can execute corresponding service by controlling each execution terminal. For example, the execution terminal 1 executes a data denoising service, and the execution terminal 2 executes a breakpoint continuous service. According to the embodiment of the application, different services are executed through different terminals, so that the data calculation processing capacity can be dispersed, and the calculation capacity of the whole system is improved.
In some embodiments, the functions and capabilities of the system may be adjusted by adding or subtracting execution terminals and control terminals in the service unit. For example, when a new service needs to be processed, only a corresponding execution terminal needs to be added, so that the expandability of the system is improved.
In some embodiments, different execution terminals may also execute the same service, for example, the execution terminal 1 and the execution terminal 3 each execute the data denoising service. When different client terminals need to process the same service, the data processing is facilitated, and the computing capacity of the system is further improved.
In some embodiments, first, determining, by the control terminal, a target service corresponding to the second communication data according to a service type identifier of the second communication data; then matching the target execution terminal according to the target service; and finally, executing the service corresponding to the second communication data through the target execution terminal to obtain the first communication data. The service type identifier may be a user-defined identifier, such as an arabic number or an english letter. The embodiments of the present application are not limited to a specific type of service type identification. In some embodiments, the service type identifier is encapsulated in the first original data according to a predetermined protocol with the client layer, and the service type identifier is determined in the parsed second communication data by parsing the first original data.
In some embodiments, the control terminal accesses the target execution terminal through a pre-stored access address. Firstly, a control terminal determines whether an access address of the execution terminal exists, and in response to determining that the access address of the target execution terminal exists, the target execution terminal is accessed according to the access address of the target execution terminal, so that the target execution terminal executes a service corresponding to the second communication data to obtain first communication data.
In some embodiments, the control terminal matches a target execution terminal corresponding to the target service according to a preset terminal list; and the preset terminal list stores the corresponding relation of the terminal service type identifiers and the terminal access addresses of all the execution terminals. The preset terminal list is a data table pre-established at the control terminal, and the data table can be established according to the number and the address of the execution terminals after the user self-defines the service type identifier.
In some embodiments, the control terminal may be updated periodically or aperiodically. When updating, the control terminal acquires terminal information of all execution terminals, wherein the terminal information comprises a terminal service type identifier and a terminal access address; and the control terminal updates the preset terminal list according to the terminal information. Specifically, when the execution terminal is newly added, the control terminal adds the corresponding relationship between the service type identifier and the access address of the newly added execution terminal to the preset terminal list. When deleting the execution terminal, the control terminal deletes the corresponding relation between the service type identifier and the access address of the deleted execution terminal in the preset terminal list. It should be understood that the update of the preset terminal list may be a manual update or an automatic update. If the control terminal cannot be matched with the corresponding target execution terminal in the preset terminal list, service type identifiers and access addresses of all the execution terminals are automatically acquired to update the preset terminal list. For another example, when the execution terminal changes, the execution terminal sends the change information and the self information to the control terminal, and the control terminal updates the preset terminal list according to the change information and the self information. Wherein, the change information of the execution terminal comprises specific change contents, such as adding or deleting. The self information includes the service type identification and access address of the execution terminal. In response to determining that the access address of the target execution terminal does not exist, firstly, the access address of the target execution terminal is obtained by registering the target execution terminal, and the target execution terminal is accessed according to the access address.
Step S103: and the uplink service module sends the first communication data to the server layer according to a first preset protocol.
In some embodiments, the first predetermined protocol may select any one of HTTP protocol, MQTT protocol, and TCP protocol. As described above, in some embodiments, the first predetermined protocol is set according to a communication protocol to which a server receiving the first communication data complies. For example, the first predetermined protocol may be set to an HTTP protocol in response to the server receiving the first communication data being an HTTP API communication server.
In some embodiments, before sending the first communication data, it is first determined whether the upstream service module is connected to the server layer. In some embodiments, the connection relationship between the uplink service module and the server layer may be determined by heartbeat packaging. Specifically, in some embodiments, first, the uplink service module sends a first heartbeat packet to the server layer, determines to connect to the server layer in response to receiving the first response packet, and sends the first communication data according to a first predetermined protocol; and in response to not receiving the first response packet, determining to disconnect from the server layer and not transmitting the first communication data. In some embodiments, after determining that the connection with the server layer is broken, the first communication data is stored in a preset database, and after subsequently determining that the uplink service module is connected with the server layer, the first communication data is sent to the server layer according to a first predetermined protocol.
In some embodiments, the method further comprises: the uplink service module receives second original data sent by the server layer and sends the second original data to the downlink service module; the downlink service module carries out protocol analysis on the second original data to obtain third communication data; the downlink service module sends the third communication data to a second target client terminal, wherein the second target client terminal is any one of the at least one client terminal.
In some embodiments, the second preprocessing includes protocol parsing the second raw data according to a predetermined protocol parsing scheme. In some embodiments, the second preprocessing may further include packaging and assembling data according to a communication protocol of the audio-video terminal device that receives the third data. For example, in response to the communication protocol of the audio/video terminal device receiving the third data being the MQTT protocol, the second raw data may be first subjected to protocol parsing, and then data packaging and assembly may be performed according to the MQTT protocol. In some embodiments, the protocol resolution specification may be determined from the communication protocol of the server sending the data.
Taking the target client terminal as an audio/video device as an example, the second original data may be data such as an image, an influence or audio. Such as video data sent to a video matrix, etc.
It should be noted that, the method of the embodiments of the present application may be performed by a single device, for example, a computer or a server. The method of the embodiment can also be applied to a distributed scene, and is completed by mutually matching a plurality of devices. In the case of such a distributed scenario, one of the devices may perform only one or more steps of the methods of embodiments of the present application, and the devices may interact with each other to complete the methods.
It should be noted that some embodiments of the present application are described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Based on the same inventive concept, the application also provides a data access system based on the edge node, which corresponds to the method of any embodiment.
Referring to fig. 2, the data access system based on edge nodes includes: an edge node layer 12, a client layer 11 and a server layer 13; the edge node layer 12 includes an uplink service module 121, a downlink service module 123, and a service unit 122; the client layer comprises at least one client terminal;
the downlink service module 123 is respectively in communication connection with the at least one client terminal and the service unit 122;
the uplink service module 123 is communicatively connected to the server layer 13 and the service unit 122, respectively.
In some embodiments, the client layer 11 and the downstream service module 121 are connected through a gateway device; the gateway equipment at least comprises two network interfaces for connecting client terminals of different network segments. In some embodiments, the edge node layer 12 may be communicatively connected to the client layer 11 through other gateway devices or in a direct connection. Network segments (network segments) generally refer to the portion of a computer network that can communicate directly using the same physical layer devices (transmission media, repeaters, hubs, etc.). Compared with the related art, the method has the advantages that the connection modes are more various, the central control comprises at least two ports, the cross-network-section access of equipment is supported, and the mode of accessing the terminal audio/video equipment into the system is met. Meanwhile, the access problem of the audio and video terminal equipment under the condition of no central control equipment is also solved. The expandability of the system is improved.
In some embodiments, the communication between the upstream service module 123 in the edge node layer 12 and the server layer 13, and the communication between the downstream service module 121 in the edge node layer 12 and the client layer 11 may select one of HTTP protocol, MQTT protocol and TCP protocol as the communication protocol.
In some embodiments, the service unit includes a plurality of control terminals and an execution terminal, where the execution terminal is configured to execute the target service. In some embodiments, the uplink service module and the downlink service module each include a plurality of execution terminals. In some embodiments, the control terminal and the execution terminal are established according to a micro server architecture.
Referring to fig. 3, in the data access system based on edge computing according to one or more embodiments of the present application, the downlink service module 121 of the edge node layer 12 is configured to: processing the first original data sent by the client layer to obtain second communication data, and sending the second communication data to the business service unit; and/or carrying out protocol analysis on the second original data to obtain third communication data, and sending the third communication data to the second target client terminal.
In some embodiments, the second original data may be subjected to protocol parsing according to a protocol parsing protocol predetermined by the target client terminal, to obtain third communication data. In some embodiments, the communication protocol followed by the third communication data may be any one of HTTP protocol, MQQT protocol, and TCP protocol. For example, when the central control device is connected with the target audio/video device, a TCP protocol is selected as a communication protocol; when the device is connected with the target audio/video equipment in a direct connection mode, selecting an MQTT protocol as a communication protocol; when the gateway device is connected with the target audio/video device through other gateway devices, the MQTT protocol or the TCP protocol is selected as a communication protocol.
The service unit 122 of the edge node layer 12 is configured to: and executing the service corresponding to the second communication data to obtain the first communication data.
In some embodiments, the target service may be a service that is predetermined or extended according to user requirements. For example, the target service may be at least one of data parsing, data denoising, breakpoint continuous transmission, online and offline monitoring of the device, and management of the connected device. In some embodiments, the target service may be implemented by a corresponding execution terminal.
Taking connection equipment management in an audio and video access system as an example, in some embodiments, in response to connection changes, such as disconnection, or connection increase, of equipment, such as audio and video equipment, central control equipment, gateway equipment and the like, in the client layer, firstly, updating equipment information through the state of the connection equipment of the client layer to obtain a latest equipment information table; then, according to the latest equipment information table, comparing the previous equipment information table to obtain an equipment change list, and sending the equipment change list to the edge node layer 12; the edge node layer 12 compares the device change list with the currently stored device list, adds or deletes the corresponding device, and updates the device list.
The uplink service module 123 of the edge node layer 12 is configured to: transmitting the first communication data to the server layer according to a first predetermined protocol; and/or receiving second original data sent by the server layer, and sending the second original data to the downlink service module.
In some embodiments, the first predetermined protocol may be any one of HTTP protocol, MQTT protocol, and TCP protocol. In some embodiments, the server that receives the first communication data is an HTTP api communication server, and the first predetermined protocol may be set to an HTTP protocol; the server which receives the first communication data is an MQTT communication server, and the first preset protocol can be set as an MQTT; the server responsive to receiving the first communication data is a TCP communication server, and the first predetermined protocol may be set to a TCP protocol.
In some embodiments, the uplink service module 123 includes at least one executing terminal for determining a receiving server of the first communication data, and determining a type of the receiving server and an agreed communication protocol. In some embodiments, the upstream service module 123 includes at least one executing terminal for assembling the first communication data according to the data format of the agreed communication protocol. In some embodiments, the upstream service module 123 includes at least one executing terminal for sending the first communication data to the target server according to a first predetermined protocol.
In some embodiments, the commands include a receive command and a transmit command to receive and transmit data to the downstream service module 121.
The uplink service module 123 and the downlink service module 121 can implement data unification processing.
In some embodiments, at least one of the functions of heartbeat check and breakpoint continuous transmission of the uplink service module 123 and the server layer 13 may be implemented by a corresponding execution terminal.
The heartbeat check is a method of checking the connection state. The method mainly adopts a method of sending simple communication packets at fixed time. And determining that the communication report is in a disconnection state at present in response to determining that the response of the opposite party is not received within a preset time period for transmitting the communication report. In some embodiments, first, a heartbeat packet is sent to the server layer 13 through the uplink service module 123 at a predetermined time interval, after the server layer 13 receives the heartbeat packet, a heartbeat reply request is sent to the uplink service module 123, and the uplink service module 123 confirms the connection state according to the heartbeat reply. In response to the uplink service module 123 not receiving the heartbeat reply, determining that the uplink service module 123 is disconnected from the server layer 13; in response to the uplink service module 123 receiving the heartbeat reply, it is determined that the uplink service module 123 is connected to the server layer 13. In some embodiments, the upstream service module 123 updates the communication status record according to the connection status with the server layer 13.
Breakpoint resume is a method of reconnecting after determining a disconnection. The reconnection mainly comprises the following steps: firstly, the uplink service module 123 determines whether to disconnect from the server layer 13 according to the above-mentioned connection state; in response to determining that the connection with the server layer 13 is broken, storing data to be transmitted in a corresponding database; reading data in the database according to a preset period, and confirming whether the data in the database need to be sent or not; in response to determining that data in the database needs to be sent and that the upstream service module 123 is in a connected state with the server layer 13, the data is sent to the server layer 13. In some embodiments, the deletion process may be performed in response to determining that the data is stored for a time greater than a predetermined period of time, determining that the data does not need to be transmitted.
In some embodiments, the database may include at least one of a Redis database, a communication data service database, and a communication log service database. Wherein, the Redis database is configured to assist the business service unit to calculate in real time; the communication data service database is configured to store configuration data and part of communication data; the communication log service database is configured to aggregate and store all logs in the communication process.
Fig. 4 is an application scenario of an embodiment of the present application applied to an audio/video data access system. As shown in fig. 4, the audio/video access system includes a client layer 11, an edge node layer 12, and a server layer 13. Wherein the client layer 11 may comprise one or more of a multi-function device, a projector screen, a video-audio terminal device such as a video camera, etc. The audio and video terminal equipment can be connected with the edge node layer 12 through connection equipment such as a concentrator, a gateway, a terminal server, a central control router and the like; or may be connected to the edge node layer 12 by direct connection. The edge node layer 12 includes at least one edge computing node, and the edge computing node includes an ICT fusion gateway, an edge intelligent router, a programmable logic controller, and the like. The server layer 13 may include various types of servers. The servers may be different types of internet of things (Intemet of Things, ioT) platforms.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, the functions of each module may be implemented in the same piece or pieces of software and/or hardware when implementing the present application. The device of the foregoing embodiment is configured to implement the corresponding edge node-based data access method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the application (including the claims) is limited to these examples; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the present application, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of brevity.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure the embodiments of the present application. Furthermore, the devices may be shown in block diagram form in order to avoid obscuring the embodiments of the present application, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform on which the embodiments of the present application are to be implemented (i.e., such specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Accordingly, any omissions, modifications, equivalents, improvements and/or the like which are within the spirit and principles of the embodiments are intended to be included within the scope of the present application.

Claims (10)

1. The data access method based on the edge node is applied to a data access system based on the edge node, and the data access system based on the edge node comprises the following steps: an edge node layer, a client layer and a server layer; the edge node layer comprises an uplink service module, a downlink service module and a business service unit; the client layer comprises at least one client terminal;
the method comprises the following steps:
the downlink service module acquires first original data sent by a first target client terminal of the client layer, carries out protocol analysis on the first original data to obtain second communication data, and sends the second communication data to the business service unit; wherein the first target client terminal is any one of the at least one client terminal;
the business service unit executes business corresponding to the second communication data to obtain first communication data;
and the uplink service module sends the first communication data to the server layer according to a first preset protocol.
2. The edge node-based data access method according to claim 1, wherein the service unit includes a plurality of execution terminals and control terminals, each execution terminal executing a service; the second communication data comprises a service type identifier;
the service unit executes the service corresponding to the second communication data to obtain first communication data, including:
the control terminal determines a target service corresponding to the service type identifier;
the control terminal is matched with a target execution terminal corresponding to the target service;
and the control terminal controls the target execution terminal to execute the service corresponding to the second communication data to obtain the first communication data.
3. The method for accessing data based on an edge node according to claim 2, wherein the controlling the target executing terminal to execute the service corresponding to the second communication data by the controlling terminal, to obtain the first communication data, includes:
the control terminal determines whether an access address of the target execution terminal exists;
the control terminal responds to the access address of the target execution terminal, and accesses the target execution terminal according to the access address of the target execution terminal so that the target execution terminal executes the service corresponding to the second communication data to obtain the first communication data.
4. A data access method based on an edge node according to claim 2 or 3, wherein the matching of the control terminal to the target execution terminal corresponding to the target service includes:
the control terminal matches a target execution terminal corresponding to the target service according to a preset terminal list;
and the preset terminal list stores the corresponding relation of the terminal service type identifiers and the terminal access addresses of all the execution terminals.
5. The edge node-based data access method of claim 4, wherein after obtaining the first communication data, the method further comprises:
the control terminal obtains terminal information of all execution terminals, wherein the terminal information comprises a terminal service type identifier and a terminal access address;
and the control terminal updates the preset terminal list according to the terminal information.
6. The edge node-based data access method of claim 1, wherein the upstream service module sends the first communication data to the server layer according to a first predetermined protocol, comprising:
the uplink service module sends a first heartbeat packet to the server layer; the first heartbeat packet is a first data packet sent by the uplink service module to the server layer;
the uplink service module responds to the received first response packet and sends the first communication data to the server layer according to a first preset protocol; the first response packet is a data packet sent to the uplink service module after the server layer receives the first heartbeat packet.
7. The edge node-based data access method of claim 6, wherein after the uplink service module sends the first heartbeat packet to the server layer, the method further comprises:
the uplink service module responds to the fact that the first heartbeat packet is not received, and stores the first communication data into a preset database;
the uplink service module sends a second heartbeat packet to the server layer; the second heartbeat packet is any one data packet except the first data packet sent to the server layer by the uplink service module;
the uplink service module responds to the receiving of the second response packet, and sends first communication data in the database to the server layer according to a first preset protocol; and the second response packet is a data packet sent to the uplink service module after the server layer receives the second heartbeat packet.
8. The edge node-based data access method of claim 1, wherein after the upstream service module sends the first communication data to the server layer according to a first predetermined protocol, the method further comprises:
the uplink service module receives second original data sent by the server layer and sends the second original data to the downlink service module;
the downlink service module carries out protocol analysis on the second original data to obtain third communication data 5;
the downlink service module sends the third communication data to a second target client terminal, wherein the second target client terminal is any one of the at least one client terminal.
9. A data access system based on edge nodes, comprising:
an edge node layer, a client layer and a server layer; the edge node layer comprises an uplink service 0 module, a downlink service module and a business service unit; the client layer comprises at least one client terminal;
the downlink service module is respectively in communication connection with the at least one client terminal and the business service unit;
the uplink service module is respectively in communication connection with the server layer and the business service unit; the system of 5 is configured to implement the edge node-based data access method according to any of claims 1-8.
10. The audio-visual system according to claim 9, wherein the client layer and the downstream service module are connected by a gateway device; the gateway equipment at least comprises two network interfaces for connecting client terminals of different network segments.
CN202211716230.9A 2022-12-28 2022-12-28 Data access method and access system based on edge node Pending CN116489248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211716230.9A CN116489248A (en) 2022-12-28 2022-12-28 Data access method and access system based on edge node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211716230.9A CN116489248A (en) 2022-12-28 2022-12-28 Data access method and access system based on edge node

Publications (1)

Publication Number Publication Date
CN116489248A true CN116489248A (en) 2023-07-25

Family

ID=87223848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211716230.9A Pending CN116489248A (en) 2022-12-28 2022-12-28 Data access method and access system based on edge node

Country Status (1)

Country Link
CN (1) CN116489248A (en)

Similar Documents

Publication Publication Date Title
CN108270855B (en) Method for accessing Internet of things platform to equipment
CN111464627B (en) Data processing method, edge server, center server and processing system
CN112165532B (en) Node access method, device, equipment and computer readable storage medium
CN108512821B (en) Data transmission method, device and system, network gate and transaction data storage method
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
CN110855680B (en) Internet of things equipment docking method and device
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
CN112838940B (en) Network controller frame and data processing method
CN112698838B (en) Multi-cloud container deployment system and container deployment method thereof
CN113556584B (en) Screenshot transmission method and device of cloud mobile phone, electronic equipment and storage medium
CN111935177B (en) Service control method and device
US11803606B2 (en) Device augmentation of real time communications
CN110069288A (en) USB device sharing method, apparatus and system
US20220060560A1 (en) Cloud communication method and apparatus
CN116489248A (en) Data access method and access system based on edge node
CN116418791A (en) Firmware upgrading method, firmware upgrading system, server and storage medium
CN114979144B (en) Cloud edge communication method and device and electronic equipment
CN114050960A (en) Distributed server cluster node management method and device
CN105577433A (en) ACS cluster management method, apparatus and system
CN112383617A (en) Method, device, terminal equipment and medium for long connection
CN112367297A (en) Service control method and device
CN115373927B (en) Product testing method, device, electronic equipment and computer readable medium
CN115297093B (en) Edge device data access method, related device and computer program product
CN116405598B (en) Telephone deployment method and device and electronic equipment
CN115296952B (en) Equipment scheduling method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230915

Address after: C1103, Building C, No. 9 Shangdi Third Street, Haidian District, Beijing, 100085

Applicant after: BEIJING HONGHE INTELLIGENT SYSTEMS Co.,Ltd.

Address before: 1102, 11th Floor, Unit 4, Building 1, No. 388 Tianren Road, Chengdu High tech Zone, China (Sichuan) Pilot Free Trade Zone, Chengdu, Sichuan 610094

Applicant before: Chengdu Hongheai Classroom Technology Co.,Ltd.