Method and device for implementing fog node communication service, fog node, and storage medium
By setting up interfaces between fog nodes, the source fog node sends a service request message, and the target fog node processes the message, which solves the problem that the existing technology cannot realize fog node communication and realizes the interconnection and interoperability between fog nodes.
Patent Information
- Application Number
- CN201711232439.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-11-30
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2037-11-30
AI Technical Summary
Existing fog computing technology cannot realize communication between fog nodes, resulting in the inability to realize interconnection and interoperability between fog nodes.
By setting a first interface between fog nodes, the source fog node determines the target fog node and sends a service request message, and the target fog node receives and processes the request message, thereby realizing communication between fog nodes.
It realizes the communication between fog nodes, solves the problem that the existing technology cannot realize the communication between fog nodes, and realizes the interconnection and interoperability between fog nodes.
Smart Images

Figure CN109862050B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fog computing communications, and in particular to a method and device for implementing fog node communication services, a fog node, and a storage medium. Background Art
[0002] At present, fog computing has become a key technology to solve the problems of large bandwidth, low latency, and limited transmission capacity.
[0003] In the existing fog computing technology, the fog nodes as the execution entities mainly complete the data calculation between the access devices and the cloud platform, and do not provide how the fog nodes communicate with each other. Therefore, the existing fog computing technology cannot realize the communication between the fog nodes. Summary of the invention
[0004] The embodiments of the present invention provide a method and device for implementing a fog node communication service, a fog node, and a storage medium to solve the problem that the existing fog computing technology cannot realize communication between fog nodes.
[0005] To achieve the above objectives, an embodiment of the present invention provides a method for implementing a fog node communication service, which includes:
[0006] The source fog node determines the target fog node corresponding to the communication service to be implemented;
[0007] A service request message corresponding to the communication service to be implemented is sent to the target fog node through the first interface, and the service request message is used to trigger the target fog node to process the communication service to be implemented.
[0008] The embodiment of the present invention also provides a method for implementing a fog node communication service, which includes:
[0009] The target fog node receives the service request message sent by the source fog node through the first interface;
[0010] Process the communication service to be implemented corresponding to the service request message.
[0011] The embodiment of the present invention also provides a method for implementing a fog node communication service, which includes:
[0012] The source fog node determines a target fog node corresponding to the communication service to be implemented, and sends a service request message corresponding to the communication service to be implemented to the target fog node through the first interface;
[0013] The target fog node receives the service request message sent by the source fog node through the first interface, and processes the communication service to be implemented corresponding to the service request message.
[0014] The embodiment of the present invention further provides a fog node communication service implementation device, which is arranged in a fog node as a source fog node, the fog node is provided with a first interface, and the fog node communication service implementation device includes: a determination module and a first communication module, wherein:
[0015] The determination module is used to determine the target fog node corresponding to the communication service to be implemented;
[0016] The first communication module is used to send a service request message corresponding to the communication service to be implemented to the target fog node through the first interface, and the service request message is used to trigger the target fog node to process the communication service to be implemented.
[0017] The embodiment of the present invention further provides a fog node communication service implementation device, which is arranged in a fog node as a target fog node, the fog node is provided with a first interface, and the fog node communication service implementation device includes: a second service module and a second communication module, wherein:
[0018] The second communication module is used to receive the service request message sent by the source fog node through the first interface;
[0019] The second service module is used to process the communication service to be implemented corresponding to the service request message.
[0020] The embodiment of the present invention further provides a fog node, which includes: a processor, a memory and a communication bus, wherein:
[0021] The communication bus is used to realize the connection and communication between the processor and the memory;
[0022] The processor is used to execute one or more programs stored in the memory to implement the steps of the fog node communication service implementation method provided in the embodiment of the present invention.
[0023] An embodiment of the present invention also provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the fog node communication service implementation method provided by the embodiment of the present invention.
[0024] The beneficial effects of the present invention are:
[0025] According to the fog node communication service implementation method and device provided by the embodiment of the present invention, first, the source fog node determines the target fog node corresponding to the communication service to be implemented, and sends the service request message corresponding to the communication service to be implemented to the target fog node through the first interface. The target fog node receives the service request message sent by the source fog node through the first interface, and processes the communication service to be implemented corresponding to the service request message. The method realizes communication between fog nodes, solves the problem that the existing fog computing technology cannot realize communication between fog nodes, and realizes the interconnection between fog nodes.
[0026] Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects become obvious from the description in the specification of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flowchart of a method for implementing a fog node communication service provided in Embodiment 1 of the present invention;
[0028] Figure 2 A first schematic diagram of a device for implementing a fog node communication service provided in Embodiment 1 of the present invention;
[0029] Figure 3 A second schematic diagram of a device for implementing a fog node communication service provided in the first embodiment of the present invention;
[0030] Figure 4 A schematic diagram of a fog node provided in Embodiment 1 of the present invention;
[0031] Figure 5 A schematic diagram of the structure of a fog node provided in Embodiment 2 of the present invention;
[0032] Figure 6 This is a flow chart of business information interaction provided by Embodiment 2 of the present invention;
[0033] Figure 7 A flowchart of application migration provided by the second embodiment of the present invention;
[0034] Figure 8 This is a flowchart of a command response provided by Embodiment 2 of the present invention;
[0035] Fig. 9 This is a flow chart of measurement information interaction provided in Embodiment 3 of the present invention;
[0036] Fig.10 This is a flowchart of a navigation application provided by Embodiment 3 of the present invention;
[0037] Fig.11 This is a flow chart of the control action provided in the third embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the following is a further detailed description of the embodiments of the present invention through specific implementation methods combined with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0039] Embodiment 1:
[0040] In order to solve the problem that existing fog computing technology cannot realize communication between fog nodes, please refer to Figure 1 The method for implementing the fog node communication service provided in this embodiment includes:
[0041] S101: The source fog node determines a target fog node corresponding to the communication service to be implemented, and sends a service request message corresponding to the communication service to be implemented to the target fog node through a first interface.
[0042] The communication services involved in the present invention include service information interaction services between fog nodes of the same level (i.e., information interaction mentioned below) and application migration services, as well as commands / responses between parent and child fog nodes, etc., which will be described in detail below.
[0043] S102: The target fog node receives a service request message sent by the source fog node through the first interface, and processes the communication service to be implemented corresponding to the service request message.
[0044] On this basis, if Figure 1 As shown, the fog node communication service implementation method provided in this embodiment further includes, after step S102:
[0045] S103: The target fog node generates a service request response corresponding to the service request message, and sends the service request response to the source fog node through the first interface.
[0046] S104: The source fog node receives the service request response sent by the target fog node through the first interface, and completes the communication service to be implemented according to the service request response.
[0047] In this embodiment, first, the source fog node determines the target fog node corresponding to the communication service to be implemented, and sends the service request message corresponding to the communication service to be implemented to the target fog node through the first interface. The target fog node receives the service request message sent by the source fog node through the first interface, and processes the communication service to be implemented corresponding to the service request message. The method realizes communication between fog nodes, solves the problem that the existing fog computing technology cannot realize communication between fog nodes, and realizes the interconnection between fog nodes.
[0048] Specifically, in some embodiments of the present invention, Figure 1 The method shown in the embodiment on the source fog node side includes the following steps:
[0049] The source fog node determines the target fog node corresponding to the communication service to be implemented;
[0050] A service request message corresponding to the communication service to be implemented is sent to the target fog node through the first interface, and the service request message is used to trigger the target fog node to process the communication service to be implemented.
[0051] In some embodiments, Figure 1 The embodiment of the method shown on the source fog node side also includes the following steps:
[0052] Receiving a service request response sent by a target fog node through a first interface; the service request response is generated by the target fog node after processing the communication service to be implemented;
[0053] According to the service request response, the communication service to be implemented is completed.
[0054] In some embodiments of the present invention, Figure 1 The embodiment of the method shown on the source fog node side also includes the following steps:
[0055] Obtaining service parameters of the communication service to be implemented;
[0056] Generate a service request message carrying service parameters.
[0057] In some embodiments of the present invention, obtaining the service parameters of the communication service to be implemented includes:
[0058] The communication service to be implemented is a service information interaction service, obtaining at least one of a user identifier and an IoT device identifier related to the corresponding service of the service information interaction service, and a context identifier corresponding to the service information interaction service; using at least one of the user identifier and the IoT device identifier and the context identifier as service parameters;
[0059] The communication service to be implemented is an application migration service, and at least one of the user identifier and the IoT device identifier related to the application migration service, as well as the context identifier, service identifier and service status information corresponding to the application migration are obtained; at least one of the user identifier and the IoT device identifier, the context identifier, the service identifier and the service status information are used as service parameters.
[0060] In some embodiments of the present invention, the communication service to be implemented is a service information exchange service, and the service request response carries the available resource information of the target fog node. At this time, according to the service request response, completing the communication service to be implemented includes:
[0061] Extract the available resource information of the target fog node carried in the service request response;
[0062] Get the available resource information of the source fog node;
[0063] Determine the execution subject of the corresponding service of the service information interaction service according to the available resource information of the target fog node and the available resource information of the source fog node;
[0064] When the execution subject is the source fog node, the source fog node executes the corresponding business of the business information interaction business;
[0065] When the execution subject is a target fog node, the source fog node sends an execution instruction to the target fog node through the first interface, and the execution instruction is used to trigger the target fog node to execute a corresponding service of the service information interaction service.
[0066] In order to implement this method, Figure 2 As shown, this embodiment also provides a fog node communication service implementation device, which is set in a fog node as a source fog node, and the fog node is provided with a first interface. The fog node communication service implementation device includes: a determination module 21, a first service module 22 and a first communication module 23, wherein,
[0067] The determination module 21 is used to determine the target fog node corresponding to the communication service to be implemented;
[0068] The first communication module 23 is used to send a service request message corresponding to the communication service to be implemented to the target fog node through the first interface, and the service request message is used to trigger the target fog node to process the communication service to be implemented.
[0069] In some embodiments of the present invention, the first communication module 23 is also used to receive a service request response sent by the target fog node through the first interface; the service request response is generated after the target fog node processes the communication service to be implemented; at this time, the first service module 22 is used to complete the communication service to be implemented according to the service request response.
[0070] Specifically, in some embodiments of the present invention, Figure 1 The method shown is implemented on the target fog node side including the following steps:
[0071] The target fog node receives the service request message sent by the source fog node through the first interface;
[0072] Process the communication service to be implemented corresponding to the service request message.
[0073] In some embodiments of the present invention, processing the communication service to be implemented corresponding to the service request message includes:
[0074] The communication service to be implemented is a service information interaction service, extracting at least one of a user identifier and an Internet of Things device identifier related to the corresponding service of the service information interaction service carried in the service request message; obtaining a corresponding service parameter of the service information interaction service of at least one of the user identifier and the Internet of Things device identifier;
[0075] The communication service to be implemented is an application migration service, and service resources are allocated to a corresponding service of the application migration service.
[0076] In some embodiments of the present invention, obtaining corresponding service parameters of a service information interaction service of at least one of a user identifier and an IoT device identifier includes:
[0077] The target fog node sends an acquisition request to the access device through the second interface; the acquisition request is used to trigger the access device to acquire the corresponding service parameters of the service information interaction service of at least one corresponding device in the user identification and the IoT device identification;
[0078] Receiving an acquisition response sent by the access device through the second interface;
[0079] The corresponding service parameters of the service information interaction service of at least one of the user identification and the IoT device identification carried in the acquisition response are extracted.
[0080] In some embodiments of the present invention, Figure 1 The method shown is embodied on the target fog node side, and further includes the following steps:
[0081] Generate a business request response corresponding to the business request message;
[0082] The service request response is sent to the source fog node through the first interface.
[0083] In some embodiments of the present invention, generating a service request response corresponding to the service request message includes:
[0084] The communication service to be implemented is a service information interaction service, which obtains available resource information of the target fog node and generates a service request response; the service request response carries a node identifier of the source fog node, a node identifier of the target fog node, at least one of a user identifier and an IoT device identifier, a context identifier corresponding to the service information interaction service, available resource information of the target fog node, and corresponding service parameters of the service information interaction service of at least one of the user identifier and the IoT device identifier;
[0085] The communication service to be implemented is an application migration service, a service resource allocation result is obtained, and a service request response is generated; the service request response carries at least one of a user identifier and an IoT device identifier, a context identifier corresponding to the application migration service, a service resource allocation result, a node identifier of a source fog node, and a node identifier of a target fog node.
[0086] In order to implement this method, Figure 3 As shown, this embodiment also provides a fog node communication service implementation device, which is set in a fog node as a target fog node, and the fog node is provided with a first interface. The fog node communication service implementation device includes: a second service module 31 and a second communication module 32, wherein,
[0087] The second communication module 32 is used to receive the service request message sent by the source fog node through the first interface;
[0088] The second service module 31 is used for processing the communication service to be implemented corresponding to the service request message.
[0089] In some embodiments of the present invention, Figure 3 The second service module 31 shown is also used to generate a service request response corresponding to the service request message; at this time, the second communication module 32 is also used to send the service request response to the source fog node through the first interface.
[0090] In order to more fully describe the present invention, Figure 4 As shown, the fog node provided by the embodiment of the present invention includes: a processor 41, a memory 42 and a communication bus 43, wherein:
[0091] The communication bus 43 is used to realize the connection and communication between the processor 41 and the memory 42;
[0092] The processor 41 is used to execute one or more programs stored in the memory 42 to implement the steps in the methods provided in all embodiments of the present invention.
[0093] The present invention is now further described in conjunction with specific application scenarios.
[0094] Fog computing is a distributed, multi-layer edge computing network close to users, with open architecture, distributed computing, networking and storage technologies. The deployment model of fog computing is a vertical, system-level architecture that distributes computing, storage, communication, control, and network functions closer to users. Its reference architecture represents a shift from traditional closed systems and reliance on cloud-only deployment models to edge computing models; this shift focuses on a new computing model that moves computing from the cloud to places close to the edge, even to IoT sensors and actuators.
[0095] Fog nodes have interaction requirements with users / devices in the south, with the cloud in the north, and between fog nodes in the east and west. However, in the existing communication model, the interfaces between the elements and the content of the interface interactions are not defined. All embodiments of the present invention are to provide corresponding methods to realize communication between fog nodes. For details, please refer to the following embodiments.
[0096] Embodiment 2:
[0097] like Figure 5 As shown, the fog node 5 provided in this embodiment includes:
[0098] Fog service module 51: includes fog general service module and fog characteristic service module. Specifically, fog general service module is basic software, not targeting any specific scenario, and supports the implementation of upper-level domain services. Fog characteristic service module: also known as domain service, meets specific industry application scenarios or specific needs of the field.
[0099] Basic platform module 52: includes hardware, virtualization facilities, basic software and runtime, etc.
[0100] The fog service module 51 and the basic platform module 52 constitute a complete fog platform, which is located on the physical entity of the fog node.
[0101] like Figure 5 As shown, the fog nodes communicate with the underlying devices through interface 001 (i.e., the second interface mentioned above), the fog nodes communicate with each other through interface 002 (i.e., the first interface mentioned above), and the fog nodes communicate with the cloud platform through interface 003.
[0102] In this embodiment, each fog node can provide a complete fog platform, and different fog nodes can be interconnected through the communication services provided by the basic platform.
[0103] In this embodiment, when the fog nodes are deployed in a mesh, the levels between any two fog nodes are the same, and when the fog nodes are deployed in a tree, the fog nodes are deployed in multiple levels.
[0104] For fog nodes at the same level, interface 002 includes the functions of information interaction and application migration. Specifically, information interaction mainly refers to the information interaction of users or IoT devices under the control of fog nodes, including measurement acquisition and computing resource negotiation; application migration refers to the necessary context transfer of users caused by user mobility.
[0105] For information interaction, such as Figure 6 As shown, the implementation steps are as follows:
[0106] S601: The source fog node sends an information interaction request to the target fog node.
[0107] The source fog node sends an information interaction request to the target fog node through interface 002, which may carry the following information: source fog node ID, target fog node ID, user ID (or IoT device ID), context ID (used to identify the actual initiated process), etc.
[0108] S602: The target fog node feeds back information interaction response to the source fog node.
[0109] If the target fog node receives the user ID (or IoT device ID) sent by the source fog node, it performs the following processing:
[0110] If the target fog node stores the measurement information of the user ID (or IoT device ID), the target fog node replies to the source fog node, which may carry the following information: target fog node ID, source fog node ID, user ID (or IoT device ID), context ID, user measurement ID and measurement quantity (measurement result of the target fog node), as well as available computing resources and storage resources of the target fog node.
[0111] If the target fog node does not store the measurement information of the user ID (or IoT device ID), the target fog node triggers the device under its jurisdiction (the device refers to the device that helps the user or IoT device access the network, such as a base station or a gateway, etc.) through interface 001 to obtain all measurement information of the user ID (or IoT device ID), or measurement information of a certain period of time, or a certain type of measurement information; then, the target fog node replies to the source fog node with a response, which may carry the following information: target fog node ID, source fog node ID, user ID (or IoT device ID), context ID, user measurement ID and measurement quantity (measurement result of the target fog node), as well as available computing resources and storage resources of the target fog node.
[0112] S603: The source fog node performs resource assessment.
[0113] After receiving the response from the target fog node, the source fog node performs the following processing:
[0114] If the available resources (computing resources or storage resources) of the source fog node are greater than or equal to the available resources of the target fog node, the source fog node completes the data processing of the user and the process ends.
[0115] If the available resources (computing resources or storage resources) of the source fog node are less than the available resources of the target fog node, and the available resources of the source node are less than the preset threshold, S604 is executed.
[0116] S604: The source fog node sends an execution instruction to the target fog node.
[0117] The source fog node sends an execution instruction to the target fog node, which may carry the following information: target fog node identifier, source fog node identifier, user identifier, context identifier, user measurement identifier and measurement quantity (the measurement result of the source fog node). The target fog node completes the data processing of the user, and the process ends.
[0118] The information exchange between fog nodes is not limited to the above-mentioned measurement-related content interaction. For example, two fog nodes can also exchange cache information of video services, database information, etc.
[0119] For application migration, such as Figure 7 As shown, the implementation steps are as follows:
[0120] S701: The source fog node sends a migration request to the target fog node.
[0121] The source fog node where the user moves sends a migration request to the target fog node, which may carry the following information: source fog node identifier, target fog node bid, user identifier (or IoT device identifier), context identifier, user service identifier, and user service status information.
[0122] Assuming that the underlying transmission network of the fog node is the LTE access network, user A moves from the source eNodeB (base station) to the target eNodeB. The source eNodeB is connected to the source fog node, and the target eNodeB is connected to the target fog node. The specific process is as follows.
[0123] Due to the mobility of user A, the source eNodeB reports the following information of user A to the source fog node: user ID, source eNodeB ID, and target eNodeB ID;
[0124] The source fog node obtains the target fog node associated with the target eNodeB according to the saved topological relationship diagram of the adjacent fog nodes; or the source fog node broadcasts the target eNodeB ID to the adjacent fog nodes through the information exchange request in the first embodiment. If the adjacent fog node detects that the target eNodeB ID is associated with itself, it replies with its own fog node ID through the information exchange response.
[0125] At this time, step S701 is: the source fog node sends a user migration request to the target fog node, carrying the following information: source fog node ID, target eNodeB ID, context ID, user ID, user application ID or application type, user application status, for example, if it is a video service, the video playback stop point information is transmitted.
[0126] S702: The target fog node sends a migration response to the source target node.
[0127] After the target fog node allocates resources for the user to be migrated, it sends a migration response to the source target node, which may carry, for example but not limited to, the following information: target fog node identifier, user identifier (or IoT device identifier), context identifier, and success or failure indication.
[0128] Based on the above assumptions, the target fog node allocates resources for the user, creates instances, activates corresponding applications, etc. Then, the target fog node sends a migration response to the source target node, carrying the following information: target fog node ID, user ID, user's application ID or application type, context ID, and success indication.
[0129] For fog nodes at different levels, generally between parent and child fog nodes, interface 002 includes the functions of transmitting commands and feedback responses, such as Figure 8 As shown, the implementation steps are as follows:
[0130] S801: The source fog node sends a command to the target fog node.
[0131] The parent fog node as the source fog node sends a command to the child fog node as the target fog node, such as executing a measurement or an action, and can carry the following information: source fog node identifier, target fog node bid, user identifier (or IoT device identifier), and context identifier.
[0132] S802: The target fog node sends a response to the source target node.
[0133] After the target fog node performs the corresponding measurement or action, it feeds back the execution result to the source fog node, for example, carrying the following information but not limited to the following information: target fog node identification, user identification (or IoT device identification), and execution success or failure indication.
[0134] Regarding the interface 001 between the fog node and the underlying device, such as the access device, in this embodiment, the fog node is connected to the user (e.g., smart terminal, mobile phone, iPad, etc.) or IoT device (e.g., camera, sensor, actuator, etc.) in the south direction. These users or IoT devices can be connected to the fog network wirelessly (e.g., 3GPP, WiFi, LoRA, etc.) or wired. In order to complete a fog service, the fog node needs to obtain basic measurement data from the connected user or IoT device, and the measurement data acquisition is completed through the 001 interface.
[0135] In step S602, the target fog node triggers the subordinate device through interface 001 to obtain all measurement information of the user identifier, or measurement information of a certain period of time, or measurement information of a certain type. The measurement acquisition process of interface 001 triggered by interface 002 is as follows:
[0136] The fog node initiates a measurement request to the corresponding device (the device refers to the device that helps the user access the network, such as a base station, etc.) according to the user identifier (which can be a group of users), and can carry the following information: user identifier, user measurement identifier;
[0137] The device feeds back a measurement response to the fog node, which may carry the following information, for example: user identification, user measurement identification, and measurement quantity.
[0138] The interface 003 between the fog node and the cloud platform is mainly used to realize the interaction of data such as measurement results and calculation results, and will not be described in detail in this embodiment.
[0139] Embodiment three:
[0140] In order to more fully describe the present invention, the present invention is further explained in conjunction with specific application examples.
[0141] Take measurement information interaction as an example of business information interaction, such as Fig. 9 As shown, the method provided by the present invention comprises:
[0142] S901: The source fog node sends a measurement information interaction request to the target fog node.
[0143] The source fog node sends a measurement information interaction request to the target fog node through interface 002, carrying the following content: source fog node ID, user ID or IoT device ID, context ID.
[0144] S902: The target fog node sends a measurement request to the access device.
[0145] The target fog node triggers the subordinate device to obtain all measurement information of the user ID or IoT device ID through interface 001. Specifically, the fog node initiates a measurement request to the corresponding device that helps the user access the network according to the user ID. For example, the following information may be carried: user ID, user measurement ID.
[0146] S903: The access device feeds back a measurement response to the fog node.
[0147] The access device feeds back a measurement response to the fog node, which may carry the following information, for example: user ID, user measurement ID and measurement amount.
[0148] S904: The target fog node feeds back the measurement information interaction response to the source fog node.
[0149] After the target fog node triggers the subordinate device to obtain all measurement information of the user ID or IoT device ID through the 001 interface, it replies to the source fog node with a response, which may carry the following information: target fog node ID, source fog node ID, user ID or IoT device ID, user measurement ID and measurement quantity of the target fog node, context ID, and available computing resources and storage resources of the target fog node.
[0150] S905: The source fog node performs resource evaluation.
[0151] After receiving the response from the target fog node, the source fog node performs the following processing:
[0152] If the available resources (computing resources or storage resources) of the source fog node are greater than or equal to the available resources of the target fog node, the source fog node completes the data processing of the user and the process ends.
[0153] If the available resources (computing resources or storage resources) of the source fog node are less than the available resources of the target fog node, execute S906.
[0154] S906: The source fog node sends an execution instruction to the target fog node.
[0155] The source fog node sends an execution instruction to the target fog node, which may carry the following information: target fog node ID, source fog node ID, user ID, context ID, user measurement ID and measurement quantity (the measurement result of the source fog node). The target fog node completes the data processing of the user, and the process ends.
[0156] Taking navigation service as a scenario, application migration is explained. When the vehicle is driving, path navigation is turned on. The navigation application initiates a request to the positioning service in the domain service. Fog node A provides navigation calculation for the vehicle. When the vehicle moves from the coverage of the LTE base station eNodeB-A under the jurisdiction of fog node A to the coverage of the LTE base station eNodeB-B under the jurisdiction of fog node B, fog node B is required to continue to provide navigation services for the vehicle.
[0157] Specifically, Fig.10 As shown, the method provided by the present invention comprises:
[0158] S1001: Base station A reports vehicle information to the source fog node.
[0159] eNodeB-A reports the following information of the vehicle to source fog node A: vehicle sensor ID, eNodeB-A ID, eNodeB-B ID.
[0160] S1002: The source fog node determines the target fog node.
[0161] The source fog node A obtains the target fog node B ID associated with the target eNodeB according to the saved topological relationship diagram of the adjacent fog nodes.
[0162] S1003: The source fog node sends a user migration request to the target fog node.
[0163] The source fog node A sends a user migration request to the target fog node B, carrying the following information: source fog node A ID, context ID, eNodeB-B ID, vehicle sensor ID, and vehicle navigation application.
[0164] S1004: The target fog node allocates resources to the application.
[0165] The target fog node B allocates computing resources to the vehicle sensor ID, creates a navigation instance, and activates the navigation application.
[0166] S1005: The target fog node sends a migration response to the source fog node.
[0167] The target fog node B sends a migration response to the source fog node A, carrying the following information: target fog node B ID, context ID, vehicle sensor ID, vehicle navigation application, and success indication, completing the user migration.
[0168] Taking control action as an example, the command / response function is explained. Fig.11 As shown, the implementation steps are as follows:
[0169] S1101: The source fog node sends an action to the target fog node.
[0170] The parent fog node as the source fog node sends an action to the child fog node as the target fog node, which can carry the following information: source fog node identifier, target fog node bid, user identifier (or IoT device identifier), and context identifier.
[0171] S1102: The target fog node sends a response to the source target node.
[0172] After the target fog node executes the corresponding action, it feeds back the execution result to the source fog node, for example, carrying the following information but not limited to the following information: target fog node identification, user identification (or IoT device identification), and execution success or failure indication.
[0173] The present invention also provides a computer-readable storage medium, which stores one or more programs. The one or more programs are executed to implement the steps of the methods provided in all embodiments of the present invention.
[0174] In summary, through the implementation of the embodiments of the present invention, there are at least the following beneficial effects:
[0175] According to the fog node communication service implementation method and device, fog node, and storage medium provided by the embodiments of the present invention, first, the source fog node determines the target fog node corresponding to the communication service to be implemented, and sends a service request message corresponding to the communication service to be implemented to the target fog node through the first interface. The target fog node receives the service request message sent by the source fog node through the first interface, and processes the communication service to be implemented corresponding to the service request message. The method realizes communication between fog nodes, solves the problem that the existing fog computing technology cannot realize communication between fog nodes, and realizes the interconnection between fog nodes.
[0176] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a computer storage medium (ROM / RAM, magnetic disk, optical disk) and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Therefore, the present invention is not limited to any specific combination of hardware and software.
[0177] The above contents are further detailed descriptions of the embodiments of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A method for implementing fog node communication services, characterized in that: include: The source fog node determines the target fog node corresponding to the communication service to be implemented; Sending a service request message corresponding to the communication service to be implemented to the target fog node through the first interface, wherein the service request message is used to trigger the target fog node to process the communication service to be implemented; wherein the source fog node and the target fog node are both arranged between the access device and the cloud platform; The method further comprises: Receiving a service request response sent by the target fog node through the first interface; the service request response is generated by the target fog node after processing the communication service to be implemented, the communication service to be implemented is a service information interaction service, and the service request response carries available resource information of the target fog node; According to the service request response, the communication service to be implemented is completed, including: extracting the available resource information of the target fog node carried by the service request response; obtaining the available resource information of the source fog node; determining the execution subject of the corresponding service of the service information interaction service according to the available resource information of the target fog node and the available resource information of the source fog node; when the execution subject is the source fog node, the source fog node executes the corresponding service of the service information interaction service; when the execution subject is the target fog node, the source fog node sends an execution instruction to the target fog node through the first interface, and the execution instruction is used to trigger the target fog node to execute the corresponding service of the service information interaction service.
2. The method for implementing fog node communication services according to claim 1, characterized in that: Also includes: Acquiring service parameters of the communication service to be implemented; A service request message carrying the service parameters is generated.
3. The method for implementing fog node communication services as claimed in claim 2, characterized in that: The acquiring of the service parameters of the communication service to be implemented comprises: The communication service to be implemented is a service information interaction service, obtaining at least one of a user identifier and an Internet of Things device identifier related to a corresponding service of the service information interaction service, and a context identifier corresponding to the service information interaction service; using at least one of the user identifier and the Internet of Things device identifier and the context identifier as the service parameters; The communication service to be implemented is an application migration service, and at least one of the user identifier and the Internet of Things device identifier related to the application migration service, as well as the context identifier, service identifier and service status information corresponding to the application migration are obtained; at least one of the user identifier and the Internet of Things device identifier, the context identifier, the service identifier and the service status information are used as the service parameters.
4. A method for implementing fog node communication services, characterized in that: include: The target fog node receives the service request message sent by the source fog node through the first interface; Processing the communication service to be implemented corresponding to the service request message; wherein the source fog node and the target fog node are both arranged between the access device and the cloud platform; Generating a service request response corresponding to the service request message, including: the communication service to be implemented is a service information interaction service, obtaining available resource information of the target fog node, and generating the service request response; the service request response includes the available resource information of the target fog node; Sending the service request response to the source fog node through the first interface; The method further comprises: An execution instruction sent by the source fog node is received through the first interface; the execution instruction is used to trigger the target fog node to execute the corresponding service of the service information interaction service, and the execution instruction is for the source fog node to extract the available resource information of the target fog node carried in the service request response, obtain the available resource information of the source fog node, determine the execution subject of the corresponding service of the service information interaction service according to the available resource information of the target fog node and the available resource information of the source fog node, and when it is determined that the execution subject is the target fog node, send it to the target fog node through the first interface.
5. The method for implementing fog node communication services as claimed in claim 4, characterized in that: Processing the communication service to be implemented corresponding to the service request message includes: The communication service to be implemented is a service information interaction service, extracting at least one of a user identifier and an IoT device identifier related to the corresponding service of the service information interaction service carried in the service request message; obtaining a corresponding service parameter of the service information interaction service of at least one of the user identifier and the IoT device identifier; The communication service to be implemented is an application migration service, and service resources are allocated to a corresponding service of the application migration service.
6. The method for implementing fog node communication services as claimed in claim 5, characterized in that: Acquiring a corresponding service parameter of the service information interaction service of at least one of the user identifier and the IoT device identifier includes: The target fog node sends an acquisition request to the access device through the second interface; the acquisition request is used to trigger the access device to obtain the corresponding service parameters of the service information interaction service of at least one corresponding device of the user identification and the IoT device identification; Receiving, through the second interface, an acquisition response sent by the access device; Extract the corresponding service parameter of the service information interaction service of at least one of the user identifier and the Internet of Things device identifier carried in the acquisition response.
7. The method for implementing fog node communication services as claimed in claim 5, characterized in that: The communication service to be implemented is a service information interaction service, and the service request response also carries the node identifier of the source fog node, the node identifier of the target fog node, at least one of the user identifier and the IoT device identifier, the context identifier corresponding to the service information interaction service, and the corresponding service parameters of the service information interaction service of at least one of the user identifier and the IoT device identifier; The communication service to be implemented is an application migration service, and generating a service request response corresponding to the service request message includes: obtaining a service resource allocation result, and generating the service request response; The service request response carries at least one of the user identifier and the IoT device identifier, the context identifier corresponding to the application migration service, the service resource allocation result, the node identifier of the source fog node, and the node identifier of the target fog node.
8. A method for implementing fog node communication services, characterized in that: include: The source fog node is used to execute the steps of the method for implementing fog node communication services as described in any one of claims 1 to 3; The target fog node is used to execute the steps of the fog node communication service implementation method as described in any one of claims 4 to 7; wherein the source fog node and the target fog node are both arranged between the access device and the cloud platform.
9. A fog node, characterized in that: include: Processor, memory and communication bus, wherein: The communication bus is used to realize the connection and communication between the processor and the memory; The processor is used to execute one or more programs stored in the memory to implement the steps of the fog node communication service implementation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the method for implementing fog node communication services as described in any one of claims 1 to 8.
