CN117319515A - Edge computing gateway service protocol conversion method and system - Google Patents

Edge computing gateway service protocol conversion method and system Download PDF

Info

Publication number
CN117319515A
CN117319515A CN202311357198.4A CN202311357198A CN117319515A CN 117319515 A CN117319515 A CN 117319515A CN 202311357198 A CN202311357198 A CN 202311357198A CN 117319515 A CN117319515 A CN 117319515A
Authority
CN
China
Prior art keywords
mqtt
edge computing
data
computing gateway
module
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
CN202311357198.4A
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.)
Chengdu Qianli Intelligent Technology Co ltd
Original Assignee
Chengdu Qianli Intelligent 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 Qianli Intelligent Technology Co ltd filed Critical Chengdu Qianli Intelligent Technology Co ltd
Priority to CN202311357198.4A priority Critical patent/CN117319515A/en
Publication of CN117319515A publication Critical patent/CN117319515A/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/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • 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]

Landscapes

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

Abstract

The invention discloses a method and a system for converting an edge computing gateway service protocol, and relates to the technical field of data communication. Comprising the following steps: the MQTT server acquires an MQTT data message request of an application; determining a corresponding edge computing gateway according to the MQTT data message request, and sending the MQTT data message request to the corresponding edge computing gateway; the edge computing gateway analyzes the MQTT data message request to obtain corresponding MQTT response information; the MQTT server sends MQTT response information to the application. The invention is beneficial to realizing the call of the cross-network and the service of the call service publicity person when the network is not reachable, and has more universality.

Description

Edge computing gateway service protocol conversion method and system
Technical Field
The present invention relates to the field of data communications technologies, and in particular, to a method and a system for converting an edge computing gateway service protocol.
Background
The edge computing gateway mainly refers to gateway equipment in the gateway, business super, near the edge side of a service usage scene, such as a gateway in a education room. As the edge computing gateway becomes more intelligent, the computing power of the edge computing gateway becomes stronger, and how to disclose the services of the edge computing gateway to third party callers becomes a problem to be solved. In the actual use scenario, there may be a third party caller invoking at the cloud or in a different place because the edge computing gateway is on the edge side. How to ensure that a third party caller can conveniently call the services and adapt to various network application scenes is a problem to be solved by the invention.
Therefore, the method and system for converting the edge computing gateway service protocol are provided to solve the problems that the caller in the prior art cannot directly call the public service of different networks and the cost of network conversion equipment is high, and are needed to be solved by those skilled in the art.
Disclosure of Invention
In view of this, the present invention provides a method and a system for converting an edge computing gateway service protocol, which can achieve the effect of obtaining service information across networks.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
an edge computing gateway service protocol conversion method comprises the following steps:
the data acquisition step: the MQTT server acquires an MQTT data message request of an application;
and a data distribution step: the MQTT server determines a corresponding edge computing gateway according to the MQTT data message request, and sends the MQTT data message request to the corresponding edge computing gateway;
and a data analysis step: the edge computing gateway analyzes the MQTT data message request to obtain corresponding MQTT response information;
and (3) data return: the MQTT server sends MQTT response information to the application.
In the above method, optionally, in the step of obtaining data, the application obtains access authorization of the MQTT server in the public network.
In the above method, optionally, in the step of data distribution, the edge computing gateway is actively connected with the MQTT server according to the configured MQTT server address.
In the above method, optionally, in the step of data parsing, the edge computing gateway includes a protocol conversion module and a local service module.
In the method, the protocol conversion module comprises: and converting the MQTT data message request into an HTTP request and converting HTTP response information into MQTT response information.
In the above method, optionally, the local service module includes: and receiving the HTTP request, replying the request, and sending HTTP response information.
An edge computing gateway service protocol conversion system, applying any one of the above methods, includes an acquisition data module, a data distribution module, a data analysis module and a data return module connected in sequence;
and a data acquisition module: the MQTT server acquires an MQTT data message request of an application;
and a data distribution module: the MQTT server determines a corresponding edge computing gateway according to the MQTT data message request, and sends the MQTT data message request to the corresponding edge computing gateway;
and a data analysis module: the edge computing gateway analyzes the MQTT data message request to obtain corresponding MQTT response information;
and a data return module: the MQTT server sends MQTT response information to the application.
Compared with the prior art, the invention provides the edge computing gateway service protocol conversion method and the system, which have the following beneficial effects: 1) The invention realizes the call of the cross-network, the caller and the service publicist are in different networks, the caller can call the service of the service publicist, and the invention has universality; 2) The invention replaces VPN technology, does not need extra equipment support, and reduces the use cost; 3) The invention solves the problem of edge computing gateway service disclosure when the network is not reachable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for converting an edge computing gateway service protocol;
FIG. 2 is a block diagram of an edge computing gateway service protocol conversion system according to the present invention;
fig. 3 is a schematic diagram of an edge computing gateway service protocol conversion disclosed in this embodiment;
fig. 4 is a schematic diagram of an edge computing gateway service protocol conversion according to the present embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In this application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions, and the terms "comprise," "include," or any other variation thereof, are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Referring to fig. 1, the invention discloses a method for converting an edge computing gateway service protocol, which comprises the following steps:
the data acquisition step: the MQTT server acquires an MQTT data message request of an application;
and a data distribution step: the MQTT server determines a corresponding edge computing gateway according to the MQTT data message request, and sends the MQTT data message request to the corresponding edge computing gateway;
and a data analysis step: the edge computing gateway analyzes the MQTT data message request to obtain corresponding MQTT response information;
and (3) data return: the MQTT server sends MQTT response information to the application.
Further, in the step of acquiring data, the application acquires access authorization of the MQTT server in the public network.
Further, in the data distribution step, the edge computing gateway is actively connected with the MQTT server according to the configured MQTT server address.
Further, in the data parsing step, the edge computing gateway includes a protocol conversion module and a local service module.
Further, the protocol conversion module includes: and converting the MQTT data message request into an HTTP request and converting HTTP response information into MQTT response information.
Further, the local service module includes: and receiving the HTTP request, replying the request, and sending HTTP response information.
Corresponding to the method shown in fig. 1, the embodiment of the invention also provides an edge computing gateway service protocol conversion system, which is used for implementing the edge computing gateway service protocol conversion method shown in fig. 1, and the structure schematic diagram is shown in fig. 2, and comprises a data acquisition module, a data distribution module, a data analysis module and a data return module which are connected in sequence;
and a data acquisition module: the MQTT server acquires an MQTT data message request of an application;
and a data distribution module: the MQTT server determines a corresponding edge computing gateway according to the MQTT data message request, and sends the MQTT data message request to the corresponding edge computing gateway;
and a data analysis module: the edge computing gateway analyzes the MQTT data message request to obtain corresponding MQTT response information;
and a data return module: the MQTT server sends MQTT response information to the application.
In one embodiment of the present invention, in one embodiment,
the gateway and the application are not in the same network, the application cannot directly access the gateway, and the gateway is mainly a scene that the application cannot actively communicate with the gateway. A typical scenario is where an edge computing gateway is located behind a NAT device; a typical example of an application of such a scenario is an application system of a cloud environment.
Because the gateway is located behind the NAT, the application cannot directly access the gateway, the scene requires the gateway to actively establish connection with the application, requires the transfer of messages between the gateway and the application through the Mqtt connection, and the application needs to provide an Mqtt Server, and actively establishes connection with the Mqtt Server after the gateway is started according to the configured Mqtt Server address.
Referring to fig. 3 and 4, the steps are as follows:
1. and constructing an Mqtt server on the public network, realizing a protocol conversion module on the edge computing gateway, actively establishing connection between the edge computing gateway and the Mqtt server, and acquiring access authorization of the public network Mqtt server by the application.
Specifically, starting an Mqtt Server in an application, firstly, requiring AppId and AppSecret corresponding to the application in a cloud platform (an administrator operation with cloud platform management authority); authorizing the service of the corresponding gateway to the corresponding application in the cloud platform; the gateway connects to the Mqtt Server of the application through the Mqtt Client.
2. And initiating a data message request based on the Mqtt protocol to the Mqtt Server, designating the data packet to the edge computing gateway through the topic of the MQT, wherein the data message carries related information of HTTP (hyper text transfer protocol) such as URL (uniform resource locator), protocol, method and the like and description related to the HTTP request.
Specifically, the application sends an Http message to the gateway call micro-center to acquire a service interface of the Token according to the AppId and the AppSecret, and the gateway call micro-center is used for temporarily accessing the Token; the request Mqtt message content algorithm is described as follows:
the description of the algorithm is specifically shown in table 1;
TABLE 1 request Mqtt message content Algorithm description
3. The Mqtt Server distributes data to the edge computing gateway; the protocol conversion module on the edge computing gateway receives the data packet distributed by the Mqtt Server, analyzes the HTTP related information carried in the data packet, constructs an HTTP request according to the HTTP related information, and initiates the HTTP request to the local service; the protocol conversion module receives the HTTP response request of the local service, converts the response request into an Mqtt data packet and sends the Mqtt data packet to an Mqtt Server, wherein the Mqtt Server contains the content of the HTTP response request.
Specifically, the application sends a message to the gateway according to Token to call the service corresponding to the micro-center; the request response algorithm is described as follows:
the specific description of the algorithm content is shown in table 2;
TABLE 2 request Mqtt message content Algorithm description
4. After receiving the response message, mqtt Server forwards the response message to the application.
Specifically, the application listens for status and data information Topic receives the Mqtt message, containing the device status and sensor data.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. An edge computing gateway service protocol conversion method, comprising the steps of:
the data acquisition step: the MQTT server acquires an MQTT data message request of an application;
and a data distribution step: the MQTT server determines a corresponding edge computing gateway according to the MQTT data message request, and sends the MQTT data message request to the corresponding edge computing gateway;
and a data analysis step: the edge computing gateway analyzes the MQTT data message request to obtain corresponding MQTT response information;
and (3) data return: the MQTT server sends MQTT response information to the application.
2. The method of claim 1, wherein,
in the step of acquiring data, the application acquires access authorization of the MQTT server in the public network.
3. The method of claim 1, wherein,
in the data distribution step, the edge computing gateway is actively connected with the MQTT server according to the configured MQTT server address.
4. The method of claim 1, wherein,
in the data analysis step, the edge computing gateway comprises a protocol conversion module and a local service module.
5. The method of claim 4, wherein,
the protocol conversion module comprises: and converting the MQTT data message request into an HTTP request and converting HTTP response information into MQTT response information.
6. The method of claim 4, wherein,
the local service module comprises: and receiving the HTTP request, replying the request, and sending HTTP response information.
7. An edge computing gateway service protocol conversion system, characterized in that an edge computing gateway service protocol conversion method according to any one of claims 1-6 is applied, comprising an acquisition data module, a data distribution module, a data analysis module and a data return module which are connected in sequence;
and a data acquisition module: the MQTT server acquires an MQTT data message request of an application;
and a data distribution module: the MQTT server determines a corresponding edge computing gateway according to the MQTT data message request, and sends the MQTT data message request to the corresponding edge computing gateway;
and a data analysis module: the edge computing gateway analyzes the MQTT data message request to obtain corresponding MQTT response information;
and a data return module: the MQTT server sends MQTT response information to the application.
CN202311357198.4A 2023-10-18 2023-10-18 Edge computing gateway service protocol conversion method and system Pending CN117319515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311357198.4A CN117319515A (en) 2023-10-18 2023-10-18 Edge computing gateway service protocol conversion method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311357198.4A CN117319515A (en) 2023-10-18 2023-10-18 Edge computing gateway service protocol conversion method and system

Publications (1)

Publication Number Publication Date
CN117319515A true CN117319515A (en) 2023-12-29

Family

ID=89297104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311357198.4A Pending CN117319515A (en) 2023-10-18 2023-10-18 Edge computing gateway service protocol conversion method and system

Country Status (1)

Country Link
CN (1) CN117319515A (en)

Similar Documents

Publication Publication Date Title
US8280989B2 (en) Method, system and apparatus for provisioning a communication client
CA2403832A1 (en) Method and apparatus for coordinating a change in service provider between a client and a server with identity based service access management
US11627167B1 (en) Network to network interface between service providers for real time communication
CA2403625A1 (en) Method and apparatus for coordinating a change in service provider between a client and a server
JPH1093629A (en) Intelligent processing for constructing communication to internet
CN101540759B (en) Method for acquiring address of service server and communication system
CN101123548A (en) An information service method and system in instant communication
JP2004524755A5 (en)
CN113259423B (en) Method and device for client networking access in P2P system
US8949966B2 (en) Method and system for protecting a service access link
CN113572864B (en) Data processing method, network element equipment and readable storage medium
US9503583B2 (en) Peer-to-peer, internet protocol telephone system with proxy interface for configuration data
CN110740429A (en) mobile communication method, device and equipment
CN105207860A (en) Business acceleration system and method
EP2583431B1 (en) Procedure for commercial communications
CN102487396B (en) User position determining method and system
CN117319515A (en) Edge computing gateway service protocol conversion method and system
US20030051002A1 (en) Method of connecting to a remote computer
CN110753071B (en) Information acquisition method and device
CN103765404B (en) The method and system of realizing for the Identity Management (C-IDM) based on cloud
CN103001930A (en) Remote data communication system
CN102244843B (en) Client setting incoming call looks the method for bell and sharing video frequency
CN109525660A (en) A kind of method and system of ROS news release and subscription registration
JP2005275534A (en) Mobile communication system and server apparatus
CN101567899B (en) Method, device and system for managing terminal localization network service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication