Enable fog service layer and apply it to intelligent transportation system
Fog computing addresses the latency and bandwidth issues of cloud computing in the Internet of Things (IoT) by deploying fog nodes at the edge, enabling local data processing and real-time response, and improving the service efficiency of IoT applications.
Patent Information
- Application Number
- CN201880061849.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2017-10-06
- Filing Date
- 2018-10-05
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2038-10-05
AI Technical Summary
Cloud computing suffers from latency and bandwidth issues in IoT applications, especially in latency-sensitive applications, leading to increased data processing and response times and an inability to meet the real-time data processing needs of a large number of devices.
Introducing fog computing, by deploying fog nodes at the edge, provides cloud-like capabilities, including computing, storage, analytics, and IoT protocol processing, enabling local data processing and real-time response, reducing latency and bandwidth requirements.
By enabling local processing at fog nodes, data transmission latency is reduced, and the real-time performance and efficiency of data processing are improved, thus meeting the needs of IoT applications for latency-sensitive services.
Smart Images

Figure CN111164573B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of U.S. Provisional Application No. 62 / 568,955, filed on October 6, 2017, the entire contents of which are incorporated herein by reference. Background Art
[0003] The terms "cloud" and "cloud computing" have become very popular in the field of information technology (IT). In IT or communications, a cloud refers to a node that provides a collection of services or functions and is remotely hosted, specifically in an IP network (such as on the Internet). Cloud computing refers to the supply of computing resources on a cloud node or server located on the Internet. The computing resources in the cloud or cloud include hardware and software resources, storage, communication, analysis, etc. As such, cloud computing enables remote manipulation, configuration, and access to these resources. One of the benefits of this concept is easy service deployment and supply. As an example, an application or service provider (provider) may require the acquisition and management of some computing resources to launch a service. In the absence of cloud computing, a server that must meet certain hardware requirements (such as memory, computing, and network capabilities) may be required. Moreover, specific software elements, such as operating systems and other software tools for running desired applications, may also be required. As such, service providers that focus primarily on application logic and actual services may also need to acquire and manage the resources mentioned. Any issues related to the platform will slow down the launch of actual services. As such, service provision is closely related to the availability and manageability of these resources.
[0004] Service providers using cloud computing can turn to a "cloud service provider" or an entity that provides all of these resources and the associated software platform required to remotely host an application. Application providers can simply submit their resource requirements for the hosted service (e.g., parallel computing, CPU performance, communications, storage, etc.) without having to worry about how these resources are managed, configured, or whether they are virtualized. In this example, the concept of "cloud as a service" becomes apparent - as long as a network connection is available, the remote entity will provide all the resources needed to host and run any type of service required. Summary of the invention
[0005] Disclosed herein are methods and systems for enhanced service provisioning using fog computing. Fog computing involves the use of cloud-like functions hosted at the edge of nodes called fog. Fog nodes have computing and other resources, including storage, computation, analysis, the ability to enable processing of multiple IoT protocols (such as CoAP, HTTP, etc.), and other services (such as processing and responding to secure application messages (such as messages sent via IEEE WAVE messages) and the ability to support sending and receiving functions using access technologies). Fog nodes can provide native services such as tracking, image processing, controlling actuators, etc. These services can be provided horizontally to other fog nodes, or vertically to application instances running on the fog. Together, the fog nodes provide a fog service layer, which also interacts with a cloud entity that is assumed to oversee fog operations.
[0006] A fog service layer architecture is disclosed using a hierarchical fog node deployment that includes coexistence and interaction of fog nodes with cloud nodes. The architecture also includes a list of functions, capabilities, or services hosted in each fog node. One or more fog management processes may run between fog nodes (or between fog and cloud) and may include a fog capability discovery process, a fog connection verification process, and a fog capability status reporting process.
[0007] Fog nodes can be configured to interact with each other to obtain specific services using one or more fog service processes described herein. Two major categories of fog service processes are described. The processes for fog service provisioning include processes performed between fog nodes with the goal of providing services to each other based on previous discovery of fog capabilities. Although these processes can be triggered by the application layer, the processes focus on fog interactions to make services available horizontally across the fog and in the fog. Fog-supported services for applications may include processes that have tighter interactions with the application layer, which in turn use the fog service layer to dynamically activate or relocate its services horizontally across fog areas.
[0008] This summary is provided to introduce a series of concepts in a simplified form, which will be further described in the detailed description below. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Furthermore, the claimed subject matter is not limited to limitations that address any or all disadvantages mentioned in any part of this disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to promote a more robust understanding of the present application, reference is now made to the accompanying drawings, in which like elements are represented by like reference numerals. These drawings should not be construed as limiting the present application, but are merely illustrative.
[0010] Figure 1 An example basic cloud computing model is shown;
[0011] Figure 2 An example fog computing scenario for intelligent traffic control is shown;
[0012] Figure 3 An example hierarchy of fog nodes and their communications is shown;
[0013] Figure 4 An example use of fog computing in a smart transport system is shown;
[0014] Figure 5 An example of fog and cloud node connectivity for each region is shown;
[0015] Figure 6 An example fog service layer architecture is shown;
[0016] Figure 7 Example local fog node capabilities, functions, and services are shown;
[0017] Figure 8 An example process of fog capability discovery is shown;
[0018] Fig. 9 An example process of fog connection verification is shown;
[0019] Fig.10 An example process for fog capability status notification is shown;
[0020] Figures 11A-11C An example process of a fog service request is shown;
[0021] Fig.12 An example process for fog service operation recommendation is shown;
[0022] Figures 13A-13B An example process for instantiation of fog applications due to mobility is shown;
[0023] Figures 14A-14B An example process for cloud-triggered application instantiation in a fog node is shown;
[0024] Fig.15 An example direct F2F process for application instantiation is shown;
[0025] Fig.16 An example process for application user context retargeting via the cloud is shown;
[0026] Figures 17A-17B An example process for application user context relocalization with direct fog-to-fog signaling is shown;
[0027] Fig.18 An example vehicle is shown traveling across a foggy area using a predetermined route;
[0028] Figures 19A-19B shows an example fog service layer interaction for preparing application services based on predicted mobility;
[0029] Fig. 20 An example resource tree for CSEBase is shown;
[0030] Fig.21 An example implementation of a fog capability discovery process with a oneM2M retrieval operation is shown;
[0031] Fig. 22 An example implementation of a fog capability status reporting process utilizing a oneM2M update operation is shown;
[0032] Fig.23 Example enhanced resources for supporting application instantiation are shown;
[0033] Fig.24 shows an example oneM2M update message for instantiating an application at a local fog node;
[0034] Fig.25 An example monitor is shown showing a hierarchy of fog nodes and clouds and associated performance metrics;
[0035] Fig.26 Examples of possible display options are shown;
[0036] Fig.27A An example system diagram illustrating an example machine-to-machine (M2M) or Internet of Things (IoT) communication system in which one or more disclosed embodiments may be implemented;
[0037] Fig.27B It shows that it can be Fig.27A An example system diagram of an example architecture used within an M2M / IoT communication system as shown in;
[0038] Fig.27C It shows that it can be Fig.27A An example system diagram of an example M2M / IoT terminal or gateway device used within the communication system shown in ; and
[0039] Fig.27D It shows that it can be implemented Fig.27A An example block diagram of an example computing system that illustrates aspects of a communication system. DETAILED DESCRIPTION
[0040] Figure 1The basic cloud computing concept is shown, where a service provider deploys services on the cloud using web-based APIs. The cloud provider defines these APIs and also owns the cloud platform that provides the resources needed to deploy the service or application. Once deployed, devices such as smartphones can access the service or application on the cloud (or the Internet).
[0041] An example of a cloud computing service is the voice recognition and voice commands available on a smartphone. A user can issue a voice command, such as "find restaurants near me," which is then sent to the cloud (e.g., to a specific application or server in the cloud) for analysis. The results are then sent back to the device, which displays a list of restaurants to the user as desired.
[0042] While cloud computing has changed the way computing and services are used and deployed, it does require an always-on connection to work properly. Also, since the cloud is remote, there are latency issues associated with sending data back and forth between the device and the cloud. Furthermore, with the advent of the Internet of Things (IoT), which will see the deployment of millions of "things", the data generated by devices is expected to increase significantly. As such, latency and bandwidth are considered setbacks to the use of cloud computing for IoT applications or other latency-sensitive applications, such as those related to public safety. The concept of "fog computing" was introduced to address the shortcomings associated with cloud computing.
[0043] As the name implies, fog is a "little cloud on the ground". However, in terms of computing context, a fog node is a node with cloud-like capabilities, but it is closer to the edge where the data is generated, and therefore less remote than the cloud. Fog nodes are similar to the cloud in terms of capabilities. For example, they have computing, storage, communication, and other capabilities that enable the deployment of services and applications at the edge of the network. Since fog nodes are close to the data source, they are expected to host services that are more latency-sensitive than cloud applications. For more intelligent things and machines, reducing latency is seen as key because it can achieve shorter reception, analysis, and response times for data generated from thousands or even millions of things.
[0044] Being closer to the device than cloud nodes, fog computing also promises to reduce the overall required bandwidth needed to send data to a point for processing and analysis. For example, data from a sensor using a cellular network would need to be sent wirelessly to a radio network, the data then traverses the core network, then enters the Internet realm and eventually reaches a cloud server through a series of IP routers in the process. Given the fog nodes, the data may only need to be forwarded through one medium or one hop, and a wireless link between the fog node and the sensor may be used as an example. The fog node can then process the data and can send commands in response (e.g., to control the flow of oil in an oil rig).
[0045] Having described the advantages of fog nodes, it is important to mention that fog nodes are not intended to replace cloud nodes. Fog nodes can coexist with the cloud, but they can be deployed across the network in a horizontal manner. In the vertical direction, fog can also be deployed between "things" and the cloud, forming a hierarchy of fog levels, where fog nodes can be deployed horizontally at each level. Therefore, fog is regarded as a computing resource that "fills the gap between the cloud and the edge", and by doing so, it can also cover a wide (horizontal) area to meet the service needs of all devices that can be sparsely deployed. To explain how cloud and fog can coexist, consider a smart city use case, where fog nodes can be deployed in the area to monitor the use of electricity or other utilities or even transportation. Fog nodes in a particular neighborhood may be able to receive data from sensors and meters, analyze it according to the community's data, and respond to it. Similarly, other fog nodes can be used in other areas to receive data from the location and respond accordingly. However, it may be necessary to consider data from all communities and the entire city as a whole (e.g., perform big data analysis). Therefore, fog nodes can then forward the original or processed data further to the fog hierarchy and ultimately to the cloud. In the cloud, system views can be achieved, big data analytics can be performed, and action recommendations can be sent back to the lowest fog nodes to ensure optimal performance both at the local level and at the system level. Figure 2 An example deployment of fog and cloud nodes for a smart traffic control scenario is shown.
[0046] like Figure 2As can be seen in Figure 1, fog nodes are connected to traffic lights and cameras on the street. These entities send data to fog nodes, which process the data as needed. Since traffic lights and cameras have some computing and storage resources, these nodes can be referred to as fog entities (FEs). FEs send data to fog nodes (FNs), which can act as fusion points for FEs in terms of data and services. As such, FN 3 and FN 4 can be considered local fog nodes (LFNs), which act as fog service layers for applications. LFNs (or FNs in general) can be connected to other FNs that can be deployed at higher levels in the fog deployment hierarchy. For example, LFN 3 (shown as FN 3) and LFN 4 (shown as FN 4) can in turn be connected to FN 1, which can be considered as a higher-level FN. In addition, LFN 3 (shown as FN 3) can be directly connected to a cloud node. Therefore, in a smart transportation scenario, there can be several levels of fog hierarchical structures and potential connections to the cloud. It should be noted that there can also be a small number of cloud nodes that provide different services. For example, a city traffic service cloud can be deployed to provide traffic and transportation services to supervise an entire area containing a large number of LFNs, FNs, and FEs. Similarly, an automobile manufacturer cloud can be deployed to collect data from cars in a wide area. Data can be extracted by LFNs and FNs deployed in a wide area, and cars can send information related to sensors or other on-board devices via these LFNs and FNs. It should be noted that the vehicle itself can contain computing and communication resources and can therefore be considered an FN or a mobile FE.
[0047] It is important to note that fog nodes bring more dynamism to the cloud scenario. That is, fog nodes can be dynamically deployed as needed, and, for each fog node, resources can be scaled accordingly. Fog nodes are expected to have fewer resources than clouds, thus facilitating a more static deployment scenario (i.e., the cloud is a central node that can be scaled in resources, but the cloud is not expected to be able to move to different regions (at least not frequently)). For example, it is expected that there will be more storage space on cloud nodes compared to fog nodes, but fog nodes can also scale storage resources to some extent.
[0048] Finally, it is important to mention that fog nodes can communicate both east-west (between fog nodes at the same level) and north-south (between nodes vertically layered in the deployment, including the cloud). Figure 3 Examples of such horizontal and vertical communications between fog nodes and the cloud are shown.
[0049] Disclosed herein are methods and systems for enhancing service provisioning using fog computing. Fog computing involves the use of cloud-like functions hosted at the edge in nodes called fog. Fog nodes have computing and other resources, including storage, computation, analysis, the ability to enable processing of multiple IoT protocols (such as CoAP, HTTP, etc.), and other services (such as processing and responding to secure application messages (such as messages sent via IEEE WAVE messages) and the ability to support sending and receiving functions using access technologies). Fog nodes can also provide native services such as tracking, image processing, controlling actuators, etc. These services can be provided horizontally to other fog nodes, or vertically to application instances running on the fog. Together, the fog nodes provide a fog service layer that also interacts with a cloud entity that is assumed to oversee fog operations.
[0050] A cloud node is a node with cloud or fog capabilities (see fog node below) that manages the operation of other fog nodes lower in the deployment hierarchy. It also interacts with service providers and has service layer agreements and can authorize requests from fog nodes related to applications hosted on fog nodes. It should be noted that the term "cloud" can be used to refer to cloud nodes. In addition, the cloud can supervise and manage the interactions between different fog nodes, which together enable the fog service layer for applications.
[0051] A fog area is an area that a fog node or a local fog node is responsible for or covers in terms of services. It is assumed that the node is connected to IoT devices within the identified area and can communicate with IoT devices to obtain data. Therefore, it serves the area where IoT devices are deployed. It should be noted that a fog node serving an area does not necessarily mean that the fog node directly provides services to IoT devices, but rather obtains, analyzes and shares data (from these IoT devices) with other nodes or application layers. However, this does not exclude that the fog node can act as a gateway or provide storage services for IoT devices.
[0052] A fog entity is a node that has a subset of the capabilities of a fog node. Moreover, a fog entity can be connected to a local fog node (see below), thus becoming a source of data and services for the local fog node. In addition, the fog entity can also request and consume data or services from the local fog node. The application layer (above the local fog node) does not "see" the fog entity directly, but is able to use its data or services via the local fog node in a transparent manner. In the smart transportation use case described in this article, the fog entity can be a sensor, a camera, a traffic light, or any IoT device with basic (relatively small) computing and storage resources. Moreover, the fog entity can be deployed behind or below the local fog node.
[0053] A fog node is a node with any fog resources such as computing, storage, communication, analysis, etc. A fog node may have at least one of these resources and may also have other software or services running on the fog node. For the smart transportation use case described in this article, fog nodes may be deployed at a higher level than local fog nodes. There may be several levels of fog node deployment, with cloud nodes at the highest level. It is also assumed that a fog node can be connected to at least one local fog node, and the former also manages at least one local fog node.
[0054] A local fog node is a fog node with many capabilities and services that, together with other LFNs and the cloud, create a fog service layer that provides services to authorized applications. Moreover, a local fog node can be connected to more than one fog entity (FE) located in the service area of the local fog node. These (FEs) in turn become sources of data and services consumed by the local fog node. It should be noted that a local fog node is a specific instantiation or type of fog node with the characteristics discussed in this article.
[0055] The local fog node can also provide services and data to the fog entity connected to it. The local fog node, together with other neighboring local fog nodes, appears as a fog service layer to the applications hosted on the local fog node. These applications can only communicate and dock with the local fog node, and therefore may not be configured to dock directly with the fog entity. In the smart transportation use case, the local fog node can be located between the fog entity and the fog node or cloud node. It can be assumed that the local fog node is managed by a fog node or cloud node that is one level higher than the local fog node in the fog deployment hierarchy. As such, the local fog node can be connected to multiple fog entities and one fog or cloud node. A roadside unit can act as a local fog node or can host some of its logical functions. Depending on the scenario and objectives, a vehicle can act as a fog entity and / or a local fog node.
[0056] It is expected that millions of machines, sensors, meters (light, speed, water, etc.) of various types may be deployed in cities - homes, offices, streets, cars, etc. All of these "things" can generate a large amount of data that requires some kind of analysis and action. For example, radio frequency identification (RFID) can be used to detect the presence of an authorized driver, and then actuators can be used to open or close the gates of private parking lots, etc. Currently, most traffic lights are operated using specific cycles for switching between different colors. It is often the case that the traffic light is actually green but there may not be any cars on the street. However, at the intersection of that street, a line of cars may be waiting for the traffic light facing them to change from red to green. As such, time-based traffic light operation may not be optimal. By installing cameras and sensors, traffic control systems can use this additional information to change the operation of the lights in real time so that traffic does not accumulate unnecessarily. It should be noted that vehicle detection rings are currently used to detect vehicles at intersections, but these require hardware to be installed on the sidewalk. With IoT devices and big data, such installations can be avoided and these new data sources can replace and help provide more insights about traffic (signal) control. So we can see that by deploying more “things” and more data, a better understanding and awareness of the surrounding environment can be achieved using that data. In turn, better decisions can be made to improve the set of services. It should be noted that this use case applies to a smart transportation scenario, however, the idea of extracting data from many sensors, machines, and “things” in real time, sharing this data with entities that can benefit from it, performing analysis, and responding accordingly is an operational enhancement that can be applied to any use case, so it is not limited to transportation systems. However, smart transportation is used as an example to reflect the benefits of fog computing.
[0057] In the context of transportation systems, it is important to note how fog and the data extracted and shared by fog nodes can be fully utilized to improve services. Consider today's navigation systems, such as navigation applications on smartphones. Many of these applications calculate traffic conditions based on the speed of the vehicle. More precisely, the vehicle speed is determined based on speed measurements obtained from the smartphones of the drivers in these vehicles. There are some limitations to this approach. First, this determination does not represent the entire set of drivers, because the calculation depends only on those drivers who are actively using the application. Otherwise, the application itself does not send speed readings. Moreover, it takes some time for the application server to which this information is sent to derive relatively accurate information. As such, these applications cannot take into account in real time dangers that may cause deceleration, such as items falling from a truck. Moreover, these applications may not immediately reflect vehicle failures that immediately slow down traffic. As such, it is clear that using speed information from a subset of drivers does not give an accurate and real-time description of traffic conditions. Therefore, other data from cameras, sensors, and roadside units (RSUs) can indeed make a difference in providing real-time traffic conditions.
[0058] Figure 4 An example use case illustrating the importance of fog computing in data extraction, sharing, and analysis is depicted. This use case is explained for the scenario of autonomous vehicles, which is seen as key to realizing the concept of intelligent transportation systems. However, it should be noted that this is just an example, so the issues and solutions to be addressed are also applicable to other situations where autonomous vehicles are not used.
[0059] like Figure 4 As shown in the upper right, consider a subject vehicle that is capable of autonomous driving. Passengers using this autonomous vehicle may expect to reach a specific destination, so transportation is considered a service for the user. As part of the transportation service, the user may also need to obtain other services, such as parking at a specific service point (such as a coffee shop), finding a parking space at the destination, and obtaining notifications about emergency services.
[0060] Stopping at a service point:
[0061] First, the user may want to stop at a service point between the starting location and the destination. The service point can be a coffee shop or a gas station, or other places that provide services of interest to the user. Assuming the service point is a coffee shop, the user may want to spend the least possible time to get a cup of coffee, and may want to use the coffee shop's drive-through service. Typically, the focus is on the time it takes to get to a specific service point, without knowing much about what is happening at the service point itself. For example, to drive to a coffee shop, the traffic load may be average, but a specific coffee shop may be much busier than another coffee shop. As such, in a specific coffee shop, taking into account the "congestion" factor that local service points (such as drive-through) take a long time can help determine a better route and reduce the overall time of commuting. Fog nodes can provide local information about specific places or service points, which can be used to determine the best route. As such, the route calculation of the autonomous vehicle is not only limited by the number and speed of other cars, but also depends on the user's service needs and the traffic load at and around the points that provide these services. As such, continuing with the coffee shop example, driving two more streets instead of driving into a closer coffee shop may actually reduce the overall driving time, since the closer coffee shop may be much busier and thus make the commute longer. Fog nodes can provide this additional information to enhance transportation services.
[0062] Therefore, observe Figure 4 , a coffee shop can have cameras and sensors connected to a fog node. This node can determine the congestion level locally and can share this information with other fog nodes in real time. Smart transportation applications can use this information to suggest service points that meet user requirements while reducing the overall travel time.
[0063] Find parking at your destination:
[0064] As part of a smart transportation service, a user may want to understand the availability of parking at a destination. For autonomous vehicle scenarios, it may be important to assess the availability of parking spaces so that the vehicle can decide on a specific parking space and drive to it. It should be noted that this use case also applies to non-autonomous driving scenarios. For example, a driver using a smart transportation service may also want to track the availability of parking spaces at the destination. In this case, getting to the destination faster is not the only goal. For example, going around the block to find a parking space close to a specific building may take more time than actually parking a block or two away. As such, obtaining this information from fog nodes can provide drivers with relevant real-time information, which will make driving and transportation systems more efficient in terms of time.
[0065] exist Figure 4In the future, fog nodes can be located on buildings and connected to cameras and sensors so that the fog nodes can determine the availability of parking spaces and possible parking spaces for special service needs, etc. This information can be shared with other fog nodes and ultimately with the autonomous car (or the driver who is using the smart transportation application / service) to make the best decision and minimize the time.
[0066] Notice on sudden emergency scenarios:
[0067] An emergency (e.g., a fire) may occur in a place or building where public safety services may be dispatched. Fire trucks, ambulances, etc. may have a pre-known path to their destination. However, vehicles also driving toward the same destination are unaware that a jam will occur. In current smart navigation systems, there is often no link between building fires and traffic conditions. These are more predictive types of conditions that could be considered, and vehicles driving in these areas could be notified and redirected from the accident area. This action would be helpful to both the driver (or self-driving car) and public safety personnel.
[0068] like Figure 4 As shown in , a public safety department (such as a fire truck service) can have a fog node that knows about emergency events and the locations of those events. When a fire truck is dispatched, the fog node can share this information with neighboring fog nodes, which can then broadcast this information so that the autonomous vehicle avoids certain routes. This will avoid congestion on the road and allow the fire truck to reach its destination faster when traffic is diverted from that location.
[0069] The examples shown above stem from the availability of many “things” deployed omni-directionally – cameras at nearly every intersection, speed sensors, temperature sensors and other detectors (e.g., slippery roads), other sensors reporting the availability of parking spaces, RSUs that can send or receive safety messages from vehicles. This deployment generates a large amount of data from which useful information can be extracted and shared with authorized parties to enhance service provision (whether related to smart traffic control or smart transportation in general), as well as better public safety services. Therefore, fog computing is seen as a key enabler for extracting and sharing data in real time with many applications, one of which is the smart transportation system disclosed in this article.
[0070] Autonomous vehicles are expected to become a reality in the next few years. It is important to maintain safe speeds in real time as traffic conditions change. For example, a hazard in an area may cause vehicles around it to slow down. However, if other vehicles approaching the area are not notified in advance, many cars will enter the area, many of which will need to slow down or perform sudden stops in a short period of time. This is unsafe and may actually cause more congested traffic in the area. It is better to take a proactive approach and notify other autonomous vehicles approaching the area to modify their speed. This makes driving safer and maintains a constant flow of vehicles entering and exiting the above area, reducing overall traffic. Such operational recommendations between fog nodes are not limited to speed information, but the speed information of autonomous vehicles shows how such processes can enhance any service provided by fog computing.
[0071] Cloud computing presents new business models based on charging for actual resource usage, often referred to as “pay as you go”. Keeping this in mind can also be important for fog computing. Since fog enables a dynamic environment for deploying services, it makes sense to charge the service provider for the fog service layer only when it actually uses it. Therefore, the service provider may not actually instantiate their services and applications in all fog nodes, but they do so when there are indeed users who want to use their services.
[0072] In the context of driving and smart transportation, the application layer can know the user or vehicle location as well as the destination and the route to the destination. Since we can assume that fog nodes are deployed in different areas, we can also assume that services or applications can have instances in some of these fog areas served by the deployed fog nodes. However, a user (for example, a user who is using a smart transportation application) may be moving to a new area served by a different fog node, which currently has not instantiated the smart transport application on the potential new fog node. In order to enable cross-region service continuity, the application in the source fog node can actually request the source fog node to trigger the instantiation of the application in the adjacent source fog node or the adjacent fog node. As such, when the user moves into the area, the service will remain available without the user being aware of this real-time instantiation. In this way, the application provider only pays for the use of fog resources when the user actually consumes the service, and the user can still access the service seamlessly despite the movement. In addition to instantiating the application in the target fog node, the application can also be made aware of the user context of the user who is moving into these fog areas, so that the service can be accessed seamlessly without the user being aware of the instantiation or lack of service due to mobility.
[0073] Another related use case is that in which passengers in a vehicle are watching a movie using a streaming service. The application provider knows the destination and route of the vehicle. Since the vehicle stays under the area of a fog node for a period of time, it may not be necessary to play the complete movie in a fog node. Instead, data (in this case, a video stream) can be prepared on the entire vehicle route up to the destination. The fog nodes in these areas can be requested to instantiate the application in advance, and the application can also be provided with enough information to predict how long the vehicle may be within the coverage of the hosting fog node and how much data should be buffered before delivering the data to the vehicle. In this use case, it is assumed that the fog node has an RSU connected to it, via which the data is sent to the vehicle.
[0074] The OpenFog reference architecture for fog computing presents the concept of fog computing based on requirements that explain the roles of various participants in fog computing, such as chip manufacturers, individual fog node developers, system integrators of fog node networks, and application providers (hosting applications or services on fog nodes). The document also presents some use cases for using fog, one of which is smart transportation. As part of the overall description, and regardless of the use case (smart transportation, smart grid, etc.), the OpenFog reference architecture discusses the important functions required for fog computing, namely, computing, storage, communication, and analysis. The communication requirements between fog nodes and between fog and cloud nodes are also discussed. However, the OpenFog reference architecture does not describe any process for actually enabling such communication between fog nodes.
[0075] The concept of fog computing according to different use cases (some of which are related to smart transportation or traffic scenarios) is also discussed, as well as the advantages of fog computing, such as reduced latency and real-time data sharing and analysis. However, a set of processes showing how a system of fog nodes can interact to extract and share data has not yet been defined. For example, see the following: (i) M. Chiang and T. Zhang, “Fog and IoT: An Overview of Research Opportunities”, (ii) A. Jain and P. Singhal, “Fog computing: Driving force behind the emergence of edge computing”, and (iii) X. Masip-Bruin, E. Marín-Tordera, G. Tashakor, A. Jukan, and GJ Ren, “Foggy clouds and cloudy fogs: a real need for coordinated management of offog-to-cloud computing systems”.
[0076] Thus, this article describes processes that are currently missing but relevant to realizing the concepts and advantages of fog computing, e.g., processes that enable data to be extracted from "things", processed, shared, and responded to accordingly. It should be noted again that while this disclosure presents these topics for smart transportation application use cases, the problems and associated solutions apply to all other use cases that can benefit from fog computing.
[0077] In order to extract, analyze and share relevant data across fog nodes, it is important to define methods through which fog nodes perform management processes so that a broad set of fog services can be used for several vertical fog / cloud nodes and other fog / cloud nodes in the deployment hierarchy. Some of these management processes include:
[0078] Fog Capability Discovery: The methods by which a fog node discovers the capabilities of neighboring fog nodes or other fog or cloud nodes at different levels in the fog deployment hierarchy. Due to the lack of these processes, the definition of fog capabilities is also lacking. Therefore, both the process and definition of fog capabilities (and their discovery) are currently unspecified.
[0079] Fog reachability verification: The method by which fog nodes verify whether fog nodes are still reachable in order to send data to or receive data from these fog nodes when needed.
[0080] Fog reporting on the state of "things": Methods by which fog nodes report the state of the "things" they control and from which relevant data can be extracted. For example, a camera installed at a particular street intersection may stop working, and other fog nodes or vertical applications on the controlling fog nodes may need to be updated about this state so that other data sources can be used to maintain service availability. Similarly, the process of reporting the recovery of data from a specific data source or "thing" needs to be defined.
[0081] exist Figure 5 In the example of , it is assumed that a local fog node (LFN) is deployed in each area or location called fog area. Moreover, at this location, the LFN is connected to other fog nodes. Considering the area and therefore the LFN, we can assume that the LFN is connected to other fog entities, either directly to "things" (e.g., cameras, speed sensors, traffic lights, etc.) or indirectly to "things" via fog entities. As such, each LFN is considered as a main fog entity that provides a "service layer" for the intelligent transportation system.
[0082] Relating these figures to the described problem, each LFN may need to execute fog management procedures to discover the capabilities of its neighbors (i.e., LFNs), to ensure that the neighbors are still reachable and to inform the neighbors of the operational status of "things". For example, in order to provide system-wide services, management procedures may be required to enable LFNs in fog area 1 to interact with LFNs in fog area 2 to discover capabilities, ensure reachability, and share notifications of "things" controlled by these LFNs.
[0083] After running the management process (e.g., fog nodes discover each other's capabilities), these nodes can then receive services from other fog nodes or provide services. Currently, there are no defined processes to specify how these fog nodes can provide or receive services to each other or to the cloud. As such, the following processes can be defined:
[0084] (1) Necessary processes for fog service requests: How do functions in fog nodes interact locally, and how do fog nodes interact with each other to provide or receive services. For example, what are the messages and behaviors of fog nodes that will enable one node to request a video feed from a camera under the control of a neighboring fog node?
[0085] (2) The process of supporting the needs of applications across fog nodes. This is related to the interaction between fog nodes and application entities or between fog nodes and the cloud, with the goal of providing specific services to the application layer, such as real-time application instantiation on fog nodes, application layer context transfer across fog nodes, and other processes to improve service provision.
[0086] refer to Figure 5, after the LFN discovers the capabilities of other LFNs, an LFN in one area may need to obtain fog services (e.g., raw or processed data from speed sensors and cameras in a particular street) from another LFN. Such interactions need to be enabled in order to enable the process of service provisioning after the management process is performed.
[0087] Methods and systems for enhanced service provisioning using fog computing are disclosed. Fog computing involves the use of cloud-like functions that are hosted at the edge of nodes called fog. Fog nodes have computing and other resources, including storage, computation, analysis, the ability to enable processing of multiple IoT protocols (such as CoAP, HTTP, etc.), and other services (such as the ability to process and respond to secure application messages (such as messages sent via IEEE WAVE messages) and support sending and receiving functions using several access technologies). Fog nodes can provide native services such as tracking, image processing, controlling actuators, etc. These services can be provided horizontally to other fog nodes, or vertically to application instances running on the fog. Together, the fog nodes provide a fog service layer, which also interacts with cloud entities that are assumed to oversee fog operations, as discussed in the following example solution:
[0088] (1) A fog service layer architecture with hierarchical fog node deployment, including coexistence and interaction with cloud nodes. The architecture may also include a list of functions, capabilities, or services hosted in each fog node.
[0089] (2) Fog management processes that run between fog nodes (e.g., FNs and LFNs) or between the fog and the cloud. Management processes are related to the operation of fog nodes and therefore to the fog service layer. These processes are considered the “control plane” of fog operations and include:
[0090] (a) Fog Capability Discovery Process: Enables fog nodes and the cloud to discover each other's capabilities, where capabilities include computing, storage, analysis, and different types of IoT devices and their current locations. Other capabilities can be services provided by the fog node itself, such as tracking, sending and receiving functions via different access technologies, processing and responding to secure application messages sent via IEEE WAVE, etc. Therefore, discovery has become a prerequisite for cross-fog node and application-oriented service provisioning, which can then request data and services related to specific geographic locations or service points (such as buildings, vehicles, etc.).
[0091] (b) Fog Connection Verification: This process allows fog nodes to periodically verify their mutual availability. Once verified, fog nodes can use the verified connections to link and share fog services in order to maintain a horizontal fog service layer.
[0092] (c) Fog Capability Status Reporting: A fog node uses this process to report changes in the status of its capabilities to other fog nodes or the cloud, where a capability is any of the examples described in this document. This reporting can follow explicit or implicit event subscriptions.
[0093] (3) Fog service process: Following the capability discovery process, fog nodes can interact with each other to obtain specific services. The fog service processes presented in this paper are divided into two major categories. The following is a summary of these service groups, which will be described in detail below.
[0094] (a) Processes for fog service provisioning: These are processes performed between fog nodes with the goal of providing services to each other based on previously discovered fog capabilities. While these processes can be triggered by the application layer, these processes focus on fog interactions to make services available horizontally across and within the fog. Once a service is hosted on a fog node, the service or data can also be provided vertically if needed, or can be consumed natively by the fog node itself.
[0095] (i) Fog service request process: The process of defining a fog node including a detailed fog service description (FSD) to be submitted to another fog node. The target fog node can use the FSD to fetch edge data from the specified location, process it according to the FSD, and then send it to the source fog node.
[0096] (ii) Fog Service Recommendation Process: allows fog nodes to recommend parameters for the overall enhanced operation of the set of fog nodes that constitute the fog service layer. For example, a specific message can be broadcast between a series of fog nodes to control the speed of an autonomous vehicle in order to maintain a constant traffic flow in the area controlled by these fog nodes.
[0097] (b) Processes for fog-enabled services for applications: These are processes that have a tighter interaction with the application layer, which in turn uses the fog service layer to dynamically activate or relocate its services horizontally across the fog area.
[0098] (i) Fog Application Instantiation: This process allows applications to dynamically instantiate instances of the same application on other fog nodes based on user mobility tracked by the application layer. This enables reducing costs for application providers, who pay for fog resources only when needed (e.g., when instantiating an application) and thus use fog resources only when needed by users.
[0099] (ii) Fog application user context relocation: This process can follow the instantiation process, or at least assume that the application instance is already running on the target fog node in the area where the user is moving to. The application then uses the fog service layer to transfer the user context to the target application instance on the target fog node. The target application instance then continues to provide services to the user, thus achieving full seamless service availability during mobility.
[0100] (iii) Fog services with application preparation based on predicted mobility patterns: This process enables the application layer to instantiate (if needed) applications in several fog nodes in advance of the predicted mobility patterns. Moreover, the fog service layer enables the sharing of important user information so that these instances in the corresponding fog nodes can prepare services (e.g., buffer video data) before the user moves to the area. Once located in the area of the new fog node, the application simply forwards the data to the user without having to wait for the user to request the service. Thus, the fog service layer enables a proactive service availability approach that avoids service interruptions during user mobility.
[0101] (4) This document also describes oneM2M embodiments for some fog management processes, namely, for fog capability discovery process implemented by retrieval operation and fog capability status reporting process implemented by update process. A GUI is described to show the hierarchical deployment of LFN with FN and cloud and the types of FE linked to LFN.
[0102] Figure 6 An example fog service layer architecture is shown, which consists of clouds and fog nodes forming a hierarchical deployment. At the highest level, there is a cloud node (CN), which manages all fog nodes and knows their existence and capabilities. Cloud nodes (CN) and local fog nodes (LFN) can interact using a fog-to-cloud interface. CN can be deployed so that it monitors a very large area, which consists of several smaller areas (called fog areas), each of which is monitored by an LFN. LFNs jointly provide a fog service layer that can use a fog-to-fog interface to provide fog services for vertical applications running on LFNs and for each other. Services can include extracting data from "things", performing analysis, sharing data, etc. LFNs can be connected to fog entities (FEs) that are nodes with fog capabilities. Their capabilities can be the same as those of LFNs, or they can be smart cameras with fog capabilities (memory, computing, image processing logic, wired or wireless communications, etc.), smart traffic lights, or speed sensors with fog capabilities. In the smart transport use case, FEs are a type of FN with less fog capabilities and can reside in service points (such as coffee shops) and they in turn can control “things” such as cameras, sensors and can send or receive data to or from these “things” respectively.
[0103] FEs may also be nodes residing in other important buildings or departments, such as fire departments, hospitals, police departments, etc. In addition, FEs may be basic IoT devices, such as sensors, cameras, actuators, etc. As such, these FEs may be aware of reported events and locations to which ambulances, fire trucks, police cars, etc. may be dispatched. FEs may collect such information or data and send it to LFNs to which they are connected. The application layer running on the LFN may only interact with the LFN and may therefore not be aware of the FEs that may be connected to the LFN. FEs may appear as "things" to the fog application layer. It should be noted that FEs may also host their local applications. However, for the use cases discussed herein, the application layer refers to the application layer residing above the LFN. Although FEs may also host applications, the application layer disclosed herein refers to the application layer running on the LFN. Finally, in one embodiment, it is assumed in our architecture that the LFN itself is the primary provider of the fog service layer, and data or services from FEs or IoT devices may be used in a manner that is transparent to applications using the fog service layer.
[0104] Just as an example, Figure 6 LFN 1 is shown connected to two FEs (FE 1a and FE 1b), while LFN 2 is connected to one FE (FE 2a), and LFN 3 is connected to FE 3a and FE 3b. However, these are merely examples and are not intended to limit such connections to the number shown. It should be noted that the actual protocols running on the interfaces between fog nodes and between fog nodes and the cloud are outside the scope of this disclosure.
[0105] like Figure 4 As shown in the example of , one LFN may have multiple FEs connected to it. Each LFN may have a set of capabilities or services that it supports. Figure 7 Examples of these capabilities or functions that LFN can support are shown. Figure 7 As shown in , LFN can have one or more of the following functions:
[0106] Local Fog Manager (LFM): A part of the LFN that controls and manages all functions based on the policies of the fog service provider. The LFM authorizes service requests from other LFNs or from applications running on the LFN. As such, the LFM monitors all resources of the fog node and manages how services are provided to applications or other FEs, LFNs, and the cloud.
[0107] Analytics: The LFN may have analytics capabilities or functions that may perform data analytics using data from sources controlled by the LFN (eg, cameras, sensors, etc.), or may perform analytics on data received from other FEs or LFNs or the cloud.
[0108] Cameras: A LFN or FE may connect a small number or many cameras directly, or indirectly via another logical node. A camera function represents all cameras that feed data (e.g., images or videos) into the LFN. As such, the "camera" function shown above may represent the method (e.g., protocol or software) by which the LFN controls the camera or the actual data (images or videos) from the camera. Moreover, a camera function may also contain entities (e.g., software) that may process the raw data or may perform image processing or may process images that have potentially been processed at each physical camera.
[0109] Sensors: LFN can also have many sensors connected to it which can send data via wired or wireless means. Sensors can be speed sensors, temperature sensors, humidity sensors or any type of sensor. Sensors can use various protocols to send data (e.g. CoAP, HTTP, etc.). LFN can also have protocol processing capabilities that can receive and process messages sent using different protocols.
[0110] Protocol Handling: LFN may implement several protocols acting as a client or server or both. For example, LFN may be able to handle CoAP, HTTP or other protocols accordingly. LFN may also support other driving safety protocols, enabling it to receive and process messages indicating the occurrence of a collision, sudden stop, or road hazard notifications, etc. It should be noted that protocol handling function is a generic name for any function that implements any protocol (e.g. CoAP, HTTP, IEEE WAVE), protocol messages, and other application safety messages. There may be several protocol handling functions in LFN to support various protocol message processing. Although Figure 7 Only one implementation of the protocol processing function is shown in the form of "security protocol, such as IEEE WAVE", but this does not mean that LFN only supports this protocol.
[0111] Other fog services: LFN may support other native services that may be requested or consumed by vertical or other LFNs, FEs or clouds. For example, LFN may support tracking services that are used to track vehicles or people using several methods, such as image tracking, tracking using wireless technologies, etc. LFN may support a variety of such native services.
[0112] Actuator logic / control: Each fog node can have actuator logic to control the operation of mechanical objects such as doors (e.g. in a garage), camera heading, switching traffic lights, etc.
[0113] Fog resources: Each LFN can have computing and storage resources as well as a database.
[0114] Billing: Fog nodes can generate and maintain billing records for the services they provide to verticals or other fog nodes. For example, fog nodes can charge for storage usage by applications, analytics, or tracking services, etc.
[0115] Policies: Each fog node may have a policy function that contains the necessary policies to authorize and provide services to vertical or other fog nodes in accordance with service layer agreements (SLAs). For example, a policy may describe the allowed computing, storage, and analysis resources that can be provided to applications running on top of the fog node. Moreover, the policy may contain detailed information about the types of services that are allowed to be provided to other fog nodes or vertical applications. For example, the policy function may contain a fog service description for an application that may request a tracking service using fog. The description may indicate whether the following should be used to complete the tracking: visual or wireless sensing or both, possible locations, privacy issues related to the subject being tracked (for example, images of people detected in an area can be provided to public safety departments with blurred faces), etc. Other fog service descriptions may indicate the number of requests that can be handled, whether the service can be outsourced or obtained from other LFNs, etc. The policy may also contain a list of application IDs that are allowed to be hosted on the LFN.
[0116] Database: LFN may have database support for its local use or for vertical use. It may provide database services or it may use a database to store information about neighboring LFNs, the services they support and the locations that support these services.
[0117] Communication: Each fog node may support several communication protocols, or use different media and protocols for transmit (Tx) and receive (Rx) operations. For example, the LFN may support Ethernet connectivity (e.g., using smart cameras or other FEs), or a collection of wireless technologies (such as WiFi, cellular, Bluetooth, etc.). It should be noted that the Tx / Rx functionality may be an access point that is not physically located at the LFN. For example, the LFN may use a wired connection to connect to RSUs deployed on streets in the fog area. These access points may receive messages containing safety application messages (e.g., WAVE), and may send these messages to the LFN for the WAVE protocol processing function to process them accordingly. Similarly, the LFN may optionally make a local decision after processing the data received from the cameras, sensors, etc., and decide to send the message to all vehicles in the area. It should be noted that the Tx / Rx functionality (optionally using specific technologies such as WiFi and cellular) may be provided as a service to applications running on the LFN.
[0118] Other functions: LFN can also provide router and / or gateway functions for devices connected thereto. As such, LFN can support necessary IP protocols to support router functions or other related protocols, such as neighbor discovery, such as DHCP, DNS, etc.
[0119] It should be noted that the above functions can reside in Figure 7 As such, Figure 7 The examples are to illustrate how fog nodes can extract and share data, and are not meant to limit the placement of these functions in specific physical nodes. Thus, camera functions can be implemented on individual cameras, and the LFN can interact with the camera to obtain image and video data. Moreover, the camera function itself can be considered a fog node or FE.
[0120] The API may be used for communication between one or more of the functions or capabilities shown above. For example, a traffic assessment function or service that may be local to the LFN (e.g., it is outside the scope of an application layer running on top of the fog) may use data from speed sensors, cameras, and safety protocol processing functions to determine traffic conditions. As such, this service (although not in Figure 7 ) can use APIs to request data from these sources (e.g., cameras, sensors, and security protocol processing functions). Additionally or alternatively, these functions can interact with well-defined processes using well-defined interfaces.
[0121] LFN can also host applications, or provide an environment and resources for applications and verticals to run on LFN. These applications (generally referred to as the application layer) run on top of the above-mentioned fog functions or services and use these services or capabilities of LFN. The application layer can host many applications that use APIs, which use APIs to obtain raw data or processed data from LFN or alternatively from "things" under the control of LFN. For example, an application of a police department can request image data from a specific street when needed. LFN obtains data from the camera function (or alternatively from (one or more) cameras deployed in the identified street or address), which can be raw or processed images or videos. If authorized to obtain such data, LFN forwards the data to the application. As another example, a smart transportation application residing on LFN can request traffic information in a specific street in an area. The request can also contain a fog service description that indicates how this traffic information should be provided, such as using only a speed sensor that calculates the average vehicle speed or using video processing or both. If authorized, the LFN may acquire data from cameras and speed sensors deployed in the indicated area(s), process the data accordingly, and then forward the data to the application. It should be noted that processing the data may be done by a LFN that has the functionality to do so, or may be done by the "things" themselves. For example, cameras may have fog capabilities that allow them to process images. Additionally or alternatively, cameras may forward image and video data to a camera function in the LFN, which then processes the raw data and forwards it to the application layer or other LFNs as needed.
[0122] Management processes can be run between fog nodes or between the fog and the cloud. Management processes are related to the operation of fog nodes and therefore to the service layer. These processes may not necessarily provide services in the sense that they do not operate on or share actual data. These processes can be considered the "control plane" of fog operations. Moreover, some of these processes may be necessary before actual services are provided, while others may be used to verify the availability of fog nodes after performing key initial management processes. There are three example processes under management, namely fog capability discovery, fog connection verification, and fog capability status reporting. The following is a brief description of the example processes:
[0123] (1) Fog Capability Discovery: This process enables fog nodes and the cloud to discover each other's capabilities. Some example capabilities may include computing, storage, analysis, and different types of IoT devices and their current locations, and / or capabilities / constraints in supporting application instantiation (e.g., certain types of applications cannot be instantiated at some fog nodes). Other capabilities may be services provided natively by fog nodes, such as tracking, sending and receiving functions via different access technologies, processing and responding to secure application messages sent via IEEE WAVE, etc. Discovery can therefore become a prerequisite for provisioning services across fog nodes and for provisioning services to applications that may subsequently request services and data related to specific geographic locations or service points (e.g., buildings, vehicles, etc.).
[0124] (2) Fog connection verification: This process allows fog nodes to periodically verify their mutual availability. Once verified, fog nodes can use the verified connections to request, link, and share fog services in order to maintain a horizontal fog service layer.
[0125] (3) Fog Capability Status Reporting: A fog node can use this process to report changes in its capability status to other fog nodes or the cloud, where capability is any of the examples defined above. This reporting can follow explicit or implicit event subscriptions.
[0126] Before running the fog capability discovery process, it can be assumed that the LFN, FE and cloud have discovered each other. As part of the discovery process, the LFN may know the addresses of other neighboring LFNs. It should be noted that the fog-to-fog (F2F) interface (I / F) or the fog-to-cloud (F2C) I / F may be wired or wireless. The address of the LFN may include both a layer two (L2) address and / or an IP address.
[0127] It can be assumed that the LFN in question knows its own capabilities and the FEs connected to it and their capabilities before the LFN discovers the capabilities of other LFNs. For example, the LFN may know the number of cameras installed on each street, the capabilities of each camera, such as: support for static images, video streaming, facial detection algorithms, infrared capabilities, thermal detection, etc. It should also be noted that some of these functions may be implemented in the LFN or in the camera. The LFN may also know the location and capabilities of these "things", the identities of these things, the availability of data from these functions, etc.
[0128] In order to discover capabilities in neighboring fog nodes, the LFN may send a fog capability discovery request message to a target neighbor LFN whose address is known. In this message, the source LFN may indicate the following parameters in the message: LFN ID, LFN address, fog area covered by the LFN, a list of capabilities or services in the LFN, a list of applications currently instantiated and running on the LFN, each identified by a unique application ID (e.g., an ID representing YouTube, etc.). The target (e.g., the receiving LFN) may authorize the capability discovery request and respond with a fog capability discovery response message indicating the set of capabilities or services supported by the LFN. The response may also include: LFN ID, LFN address, fog area covered by the LFN, a list of capabilities or services in the LFN, a list of applications currently instantiated and running on the LFN, and the corresponding unique application IDs of these applications. After this process, both LFNs may update their local information about the neighbor LFN to include, among other things, the LFNs whose services have been discovered and address information. Figure 8 Example steps involved in the fog capability discovery process are shown.
[0129] In step 1, LFN 1 (source LFN) sends a fog capability discovery request to LFN 2 (target LFN) whose address may be known to LFN 1. The message may include the following information related to the source LFN: LFN ID, LFN address (e.g., IP address or L2 address or both), fog area indicating the area being served by the source LFN, (optionally) a list of capabilities supported in the source LFN, and a list of applications currently running on the source LFN.
[0130] NOTE: The "Supported Capabilities" information element included in the above message may represent a detailed list of supported services and "things" that may be used to provide data and where they are deployed. Examples of a list of capabilities are those previously described in the previous section, such as camera functionality, speed sensors, analytics, memory available to neighbor LFNs, specific protocol handling functionality (e.g., the LFN may indicate that it supports secure application protocols or WAVE messaging), access technologies for Tx / Rx functionality, other native services (such as tracking services, etc.). For each of these capabilities, the LFN may include a detailed list of fog service descriptions to describe in detail the exact type of data or services that the LFN can deliver. As an example, for purposes of illustration only, consider the camera functionality described previously. Supported capabilities for this functionality may include the following:
[0131] Name: This indicates the name of this feature (e.g. "Camera").
[0132] The location where each camera is deployed under the fog area covered by the LFN. The address can be, for example, a geographic location, or in the form of coordinates, or a street address with a postal code.
[0133] The type of data each camera can provide (e.g., images, videos, infrared images) and the type of processing that can be performed on the camera data (e.g., facial detection, license plate recognition, etc.).
[0134] Each camera is either fixed or can pan, zoom, or tilt (PTZ). If fixed, the direction the camera is pointing (e.g., north, south, etc.) or the tilt angle of the camera.
[0135] As another example, the supported capabilities information element related to the speed sensor may include any of the following:
[0136] Name: This indicates the name of this function (e.g. "Speed Sensor")
[0137] The location of each sensor deployed under the fog area covered by the LFN. The address can be a geographic location, either in the form of coordinates, or a street address with a zip code.
[0138] A method by which speed can be calculated (e.g., average speed within a certain time window), the periodicity with which the average speed can be calculated, the history of average speed information, the maximum elapsed time over which previous average speed calculations can be maintained, speed units that can be provided (such as Km / hr, Miles / hr, etc.).
[0139] A fog node may implicitly subscribe to notifications about the status of a particular service or "thing" during the fog capability discovery process. This implicit subscription is accomplished by including a Notification Subscription (Notif.Subs.) indication in the fog capability request message. The fog capability discovery response message may also include the result of this implicit subscription, i.e., a Notification Response (Notif.Rsp.) indicating whether the subscription was accepted. For example, a service / thing notification indication information element may be included in the fog capability discovery request message. This indicates to the target LFN that a status notification should be sent whenever the status of a particular service / function / thing in the target LFN changes. For example, if a camera under the control of the target LFN stops working, and the target LFN is aware of this, the target LFN checks all source LFNs that require such notifications. For each LFN that implicitly subscribes to such notifications, as described above, the target LFN may send a notification message indicating the following:
[0140] The name of the service or capability or functionality affected, such as the speed estimation service.
[0141] The location of each service for which such notifications are sent
[0142] A list of "things" (e.g., speed sensors, cameras, etc.) whose states have changed. It should be noted that the same notification process can be used to indicate that a service or thing is available or unavailable.
[0143] The location of each "thing" for which such a notification is sent. For example, if three cameras have stopped operating at different locations, each identified camera (or "thing" in general) can be associated with an operating state and a location.
[0144] In one embodiment, each capability or service or function may have its own unique information. For example, the tilt of a camera is camera specific information that may not be applicable to a speed sensor. As such, it is important to note that the discovered information provides a detailed description of the deployed "things", their locations, the types of data that can be extracted from them, and the types of processing that can be performed on the data. It should also be noted that it does not matter whether the processing of such data is performed in the LFN or in the "things" (and therefore the FE) themselves, as the data can come from the LFN (i.e., the "things") that connect to and control these data sources. Such information may also include a summary of supported services, data sources, or IoT devices. For example, in addition to (or instead of) indicating detailed information for each camera source, the LFN may also include information about the maximum number of supported cameras or other IoT devices connected to the LFN.
[0145] In step 2, upon receiving the discovery request message, the target LFN verifies whether it is authorized to provide the supported capabilities of the target LFN to the source LFN. Each LFN, and therefore the target LFN in this case (i.e., LFN 2), may contain a policy indicating which neighbor LFNs (represented by LFN IDs) are authorized to obtain this information. If this information is available, the target LFN determines whether the source LFN is authorized to discover the capabilities of the target LFN. The target LFN may also store the supported services in the source LFN.
[0146] In step 3, if the target LFN does not have authorization information for the source LFN, the target LFN may then contact the cloud node to request authorization for the source LFN. The target LFN sends a fog capability discovery authorization request message to the cloud. The message includes the LFN ID of the source LFN, its fog region, and its LFN address.
[0147] In step 4, the cloud may use its local policies and information to determine authorization and respond with a Fog Capability Discovery Authorization Response message indicating the result of the authorization.
[0148] In step 5, the target LFN may store the authorization result for the source LFN locally. The target LFN may then send a fog capability discovery response message to the source LFN. The message indicates the following information related to the target LFN (i.e., LFN 2): LFN ID, LFN address (e.g., IP address or L2 address or both), fog area indicating the area that the target LFN is serving, (optionally) a list of capabilities supported (and therefore authorized) in the target LFN, and a list of applications currently running on the target LFN and a reachability timer. These information elements other than the reachability timer have been described above. The reachability timer indicates the periodicity with which the source LFN can use to send messages to determine whether the target LFN is still reachable, as may be presented next. The source LFN stores the supported services in the target LFN.
[0149] If the source LFN (i.e., LFN 1) also implicitly subscribes to notifications about the status of services and / or "things" of the target LFNs, the target LFNs may also save this information so that when a specific capability or service or thing under the target LFN changes, a notification may be sent to all source LFNs that subscribe to this notification.
[0150] Although not shown in the above steps, the target LFN (i.e., LFN 2) may also confirm an implicit subscription to the target LFN capabilities, as described herein. For example, the target LFN may include a service / thing notification confirmation information element to confirm the processed subscription. Furthermore, the target LFN may also implicitly subscribe to similar notifications from the source LFN by including a separate service / thing notification indication information element in the fog capability discovery response message. The source LFN may not need to confirm such an implicit subscription. However, the source LFN saves this information and notifies the target LFN when the status of the capabilities it supports changes.
[0151] In order to maintain the availability of the fog service layer that depends on sharing data across fog nodes and across fog nodes and the cloud, fog nodes may need to periodically verify their interconnection. Therefore, this paper proposes a process by which fog nodes perform a simple "heartbeat" or request-response handshake that indicates the availability of neighbor fog nodes. It is important to note that this process may not indicate the availability of specific services or the availability of data from certain "things", but may only inform fog nodes that the control logic or local fog manager of each fog node is reachable. Based on this verification, the fog nodes determine the reachability and availability of neighbor LFNs and continue to communicate with each other to provide the fog service layer.
[0152] Each LFN may be configured to send a fog connection verification request message to each neighbor LFN. The process may be initiated periodically, and the LFN may be configured with the periodicity of this process. A cloud node or any fog node at a higher level than the LFN may use this information to configure the LFN. Alternatively, a fog node that performs a fog capability discovery process (as described above) may assume the role of the entity that initiates this process. It should be noted that a fog node, although not initiating a fog capability discovery process, may also be configured with a timer so that if a message is not received from a source fog node, the fog node in question may still send a message to verify the availability of the source fog node that actually previously initiated the fog discovery process. The periodicity of the process may be predefined or preconfigured in the LFN. Optionally, the response to the capability discovery process (as described above) may contain a periodicity suggested by the target LFN to which the source LFN sent the fog capability discovery request message. This was previously proposed as a reachability timer information element that the target LFN includes in the fog capability discovery response message. The LFN determines the periodicity of sending the fog connection verification message using any of the above options, and then sends the message to the target LFN. The example process of fog connection verification is shown in Fig. 9 It should be noted that the periodic timer (whether configured or based on the reachability timer information element) may be reset when a response is received from the target fog node for which the connection verification is being performed.
[0153] It should be noted that Fig. 9 The process shown in can be run between LFNs, between LFNs and fog nodes of different levels, or between LFNs and the cloud. It should be noted that each LFN can run this process with its neighbor LFNs.
[0154] In step 1, the LFN determines the time or periodicity to start the connection verification process using any of the methods described herein. The LFN may have a timer that protects the start time of this process, and the LFN may send the message described in step 2 below after its expiration. It should be noted that this message may also include information about the resource usage or availability of the LFN 1. For example, the LFN 1 may include information about some important resources (such as memory, CPU, battery, load level, etc.).
[0155] In step 2, the LFN sends a Fog Connectivity Verification Request message to the target cloud, fog node, or neighbor LFN. It should be noted that this message can be sent in a broadcast manner or to a set of nodes forming a specific fog group. The LFNs may contain such broadcast or group information that they can use. The response (i.e., the message described in step 3 below) may be sent in a unicast manner.
[0156] In step 3, the target node receives the message and updates the reachability of the source fog node indicating that it is still reachable. The target node responds to the source node with a fog connection verification response message. The target node can suggest different values for the reachability timer. The source node updates the reachability of this target LFN accordingly, and if a new reachability timer value is provided, the source node will use this value to update the periodicity of this process. It should be noted that this message may also include information about the resource usage or availability of LFN 1. For example, LFN 1 may include information about some important resources (such as memory, CPU, battery, load level, etc.).
[0157] This document describes an example process for reporting the status of at least one service provided by the LFN (e.g., infrared images of a tracking service or a camera service, etc.) or reporting the status of at least one "thing" (e.g., a camera, a speed sensor, a light sensor, etc.). The location of the "thing" or service in question is also included, for example, if a camera is reported to have stopped working, the location of the camera should also be reported so that the nodes receiving this notification can accurately understand how the fog service may be affected. It should be noted that the reported status can mean that the service or "thing" is no longer available, or that the service or "thing" is now available, or that a new service has been added, etc. Other states can also be defined accordingly.
[0158] Fig.10 An example process for reporting the status of at least one fog capability to other LFNs, fog nodes or clouds is shown. It should be noted that although implicit subscription to notifications has been described, it is also possible for an LFN, fog node or cloud to explicitly subscribe to notifications.
[0159] In step 1, a cloud node, fog node or LFN can explicitly subscribe to be notified about the status of certain fog capabilities. To do this, the node can send a fog capability status subscription request, indicating the location and the capability description associated with the location. As such, the fog node can include a list of services associated with the location for which notification is desired. The capability description describes the specific "thing" or service for which notification is desired. The LFN ID, LFN address and fog region are associated with the LFN 2.
[0160] In step 2, although not shown, the receiving LFN uses local policy to authorize the request. The receiving LFN (LFN 1 in this case) sends a "FOG CAPABILITY STATUS SUBSCRIBE RESPONSE" message that includes the results for each capability description listed. The LFN ID, LFN address, and fog region are associated with LFN 1.
[0161] In step 3, the LFN may have received an implicit or explicit subscription for notifications about the status of its capabilities at certain locations. Upon detecting a change in the status of a service (e.g., a tracking service) or a "thing" (e.g., a camera stopping or resuming its functionality), the source LFN (LFN 1) sends a fog capability status notification to the target LFNs that have subscribed to this notification. The message may include details of the service associated with this notification, the location, the actual status, and the time when this status changed. It should be noted again that different values may be defined for the status (e.g., "working", "not working", "on", "off", etc.).
[0162] In step 4, the target LFN (LFN 2, cloud or fog node) receives the message and processes it to determine the affected services and location. The LFN may have applications running on it or other FEs connected to it that are using any of the affected services. The LFN then notifies all applications or other FEs of the updated status regarding capabilities and location. The target LFN sends a Fog Capability Status Notification Acknowledge message to acknowledge the report. It should be noted that the receipt of this message may optionally reset the reachability timer.
[0163] It should be noted that at LFN 1, there may be applications running on the LFN that previously used any of these capabilities whose states have changed. Furthermore, the applications may have used the API to subscribe to notifications when the state of a capability or service at a particular location changes. As such, the LFN may also use the API to indicate to the application(s) which capabilities have had a state change, their location, actual state, and the time of the state change.
[0164] Following the capability discovery process, fog nodes can then interact with each other to obtain specific services. For example, fog nodes can use data from cameras and sensors under the control of the fog node. This information can be processed to determine the traffic load, which can then be provided to applications running on the fog node (e.g., smart transportation), or to public safety applications (such as ambulance services) for detecting and selecting routes with the shortest time to reach the destination. Another type of service that fog nodes can provide is data sharing between them. For example, an application can require data about the availability of parking spaces at a specific destination under the control of another LFN. The source LFN hosting the application can be triggered to obtain this service from the target LFN. The target LFN can monitor the availability of parking spaces and provide this information back to the source LFN, which in turn provides it to the application. Another example of a public safety transportation application is to request a fog node to use its Tx / Rx function to first receive a safety application message, determine the occurrence of a collision, and then report this event or a similar event to a safety application or department. In addition, fog nodes can broadcast messages to notify other vehicles of events and locations. The vehicle can then decide to use an alternative route and help public safety vehicles reach the scene with less congestion. Moreover, the fog node can share this information with neighboring fog nodes, allowing the vehicle to proactively choose a different route before entering the fog area where the accident occurred. This article discusses other examples and solutions for certain use cases. However, it is important to note that the solutions for fog computing presented in this article are not limited to the use case of smart transportation. Instead, this application is just an example to show the benefits of fog, and the proposed processes can be applied to all use cases because they focus on the interaction between fog nodes to extract, share, and analyze data in real time. Some example fog processes are discussed below:
[0165] (1) Fog service provisioning processes: These are processes performed between fog nodes with the goal of providing services to each other based on previous discovery of fog capabilities. Although these processes can be triggered by the application layer, these processes focus on fog interactions, making services available horizontally across and within the fog. Once a service reaches a fog node, the service or data can also be provided vertically if needed, or can be consumed locally by the fog node itself.
[0166] (a) Fog Service Request Process: defines the process by which a fog node includes a detailed fog service description (FSD) that is submitted to another fog node. The target fog node uses the FSD to fetch edge data from the specified locations (or FEs at these locations), processes it according to the FSD, and then sends it to the source fog node.
[0167] (b) Fog service recommendation process: allows fog nodes to recommend parameters for the overall enhanced operation of the collection of fog nodes that constitute the fog service layer. For example, a specific message can be broadcast across a series of fog nodes to control the speed of an autonomous vehicle in order to maintain a constant traffic flow in the area controlled by these fog nodes.
[0168] (2) Processes related to the application’s fog services: These are processes that have a closer interaction with the application layer, which in turn uses the fog service layer to dynamically activate or relocate its services horizontally across the fog area.
[0169] (a) Fog Application Instantiation: This process can allow applications to dynamically instantiate instances of the same application on other fog nodes based on user mobility and other information tracked by the application layer. This enables reducing the cost for application providers who pay for fog resources only when needed (e.g., instantiating applications and thus using fog resources only when users need them).
[0170] (b) Fog application user context relocation: This process can follow the instantiation process, or at least assume that the application instance is already running on the target fog node in the area where the user is moving to. The application can then use the fog service layer to transfer the user context to the target application instance on the target fog node. The target application instance can then continue to provide services to the user, thereby achieving full and seamless service availability during mobility.
[0171] (c) Fog services with application preparation based on predicted mobility patterns: This is the process that enables the application layer to instantiate (if needed) an application in several fog nodes in advance of the predicted mobility pattern. Moreover, the fog service layer enables sharing of important user information, thereby enabling these instances in the corresponding fog nodes to prepare (e.g. buffer video data) the service before the user moves to the area. Once located in the area of the new fog node, the application can simply forward the data to the user without having to wait for the user to request the service. Thus, the fog service layer enables a proactive service availability approach that avoids service interruptions due to user mobility.
[0172] The fog service request process is used between fog nodes or between fog nodes and the cloud to request a specific service. The service can be data from a camera, sensor, etc., and the data can be raw data or processed data. The service can also be related to analysis, for example, the fog node may have previously discovered that a specific neighboring fog node supports a specific analysis solution. The fog node can then perform this service request process to request this service. If accepted, the fog node can forward the data to the target LFN, which then performs analysis on the data and sends the results back. Other types of services can include requesting the target LFN to provide traffic information, which can be based on speed sensor readings, image processing, processing of WAVE messages, etc. A single service request process can list more than one service identified by a request ID. The service can also be associated with an address to which the source LFN expects the data or service to be sent. This address can include an IP address, a port number, a layer 2 address, an application layer identity, etc. The LFN that issues the request can also indicate the protocol and / or transport used for the service, such as SIP on UDP, etc.
[0173] In one aspect, an example method may include: receiving a request to provide a service from an application, wherein the request to provide a service includes a fog service description associated with the service; determining, based on the fog service description associated with the service, that a second local fog node is configured to provide the service; sending an indication of the request to provide the service to the second local fog node; receiving a service result from the second local fog node and based on the indication of the request to provide the service; sending the service result to the application; and updating information stored at the first local fog node to indicate that the second local fog node is configured to provide the service.
[0174] The request to provide the service may also include one or more of an identifier associated with the application and an identifier associated with the request to perform the service. The indication of the request to provide the service may include one or more of: an identifier associated with the first local fog node, an identifier of the fog region associated with the first local fog node, an identifier associated with the application, and an identifier associated with the request to perform the service. The updated information stored at the first local fog node may include one or more of an identifier associated with the second local fog node and an identifier associated with the request to perform the service.
[0175] The method may also include determining, before sending the indication of the request to provide the service, whether one or more policies stored at the first local fog node indicate that the application is authorized to receive the service. The second local fog node may determine, before sending the service result, whether one or more policies stored at the second local fog node indicate that the first local fog node is authorized to receive the service result. The second local fog node may be configured to send a request to the cloud node and to authorize the first local fog node to receive the service result in response to determining that one or more policies indicating that the first local fog node is authorized to receive the service result are not stored at the second local fog node.
[0176] An example interaction of services provided between functions within the LFN and between a source LFN and a target LFN is shown in FIG11 . It should be noted again that the functions within the LFN may actually be logical functions that do not reside in the LFN, and this example shows a Smart Transport Service (STS) hosted in the LFN only as an example. The STS represents a service that provides information about traffic, such as, but not limited to, a video stream of traffic on a particular street, traffic descriptions using speed sensors and images and possible safety application messages, traffic predictions, etc. Without explaining how the STS calculates the actual traffic data or information, the call flow illustrates the process. It can be assumed that LFN 1 with an STS (referred to as STS 1) has previously discovered that the STS capability or service (referred to as STS 3) is supported at LFN 3.
[0177] In step 1, an application hosted in the application layer scope of the LFN requests a service using a well-defined API. The application may be related to a smart transportation application for an autonomous vehicle. The request may include a list of: a fog service description (FSD) and a request ID. The fog service description contains location information associated with each service. The API request may also include the identity of the application requesting this service. It should be noted that although Figure 11 shows an application instance run by a fog node that requests a service from the LFN using an API, the same set of APIs may be used by applications running on mobile devices such as smart phones or in-vehicle devices. As such, it should be understood that Figure 11 is not intended to limit the use of such APIs to applications running only on the LFN, and the same APIs apply to any application running on a mobile device that interacts with the LFN.
[0178] In step 2, the LFN manager in LFN 1 processes the request and determines whether the service can be provided by LFN 1 or the target LFN based on the location information contained in the FSD. It is assumed that LFN 1 knows the LFNs responsible for providing the service in other locations or fog areas. As such, LFN manager 1 determines, based on this local information, that LFN 3 is the target LFN that provides the service. It should be noted that for simplicity, this call flow only shows one target LFN, however, the request may have FSDs in several locations, which may cause LFN 1 to contact more than one target LFN to provide the service. Although not shown in this step, LFN 1 may check its local policy to determine whether a particular application (identified by an application ID) is authorized to obtain the service. If this information is not available, LFN 1 may contact the cloud or fog node to authorize the request. The process of doing this is similar to 5a and 5b below, but the content may be different because the message may also include the application ID so that the cloud can perform service authorization. Moreover, the message name may be different.
[0179] In step 3, LFN 1 (i.e., LF manager 1) sends a fog service request message to the target LFN (here, LFN 3). The source LFN (here, LFN 1) can provide its LFN ID, fog region, and a list of the following: fog service description, request ID, source address (indicating the address that should be used to deliver data to the source LFN), the desired protocol to be used, etc. It should be noted that the "address" here can mean an IP address, a port number, a layer 2 address, etc. Although not shown in the figure, this message can also include an application ID to indicate to the target LFN the data or service triggered by and used by the specified application ID.
[0180] In step 4, the LFN 3 checks its local policy to determine whether the source LFN is allowed to obtain this service, optionally also for the indicated Application ID (if offered).
[0181] In step 5a, if the LFN 3 does not have this information, it can contact the cloud or fog node to authorize the request. The LFN 3 sends a Fog Service Authorization Request message to the cloud and indicates a list of FSDs and associated request IDs, source LFN IDs and optionally application IDs (if received in the above request).
[0182] In step 5b, the cloud node performs an authorization check and responds with a fog service authorization response that includes the authorization result for each FSD. This message may also include a reason code to indicate the reason for rejecting any FSD if the specific FSD is not allowed. If a specific FSD is allowed and granted, the accepted FSD may be different from the actually requested FSD.
[0183] In step 6, LFN 3 verifies the result of the authorization, and if no FSD is allowed, LFN 3 sends a fog service response message indicating the result, the value of which will be set to, for example, "rejected" or any other value indicating that the request is not authorized. The message may also include a reason code to describe the reason for the rejection. If this step occurs, the process ends.
[0184] In step 7, the LF manager 3 communicates with the policy function (here Policy 3) to log the incoming request with details such as FSD, request ID, source address to use, protocol, etc. This can be done by sending an Update Policy Request message to the policy function. The policy function can be considered as a dispatcher of services to services within the LFN or appropriate functions. It should be noted that this can be a logic function that can also be part of the LFN manager function. This call flow only shows an example of a possible implementation of the LFN logic and behavior for this use case.
[0185] In step 8, the policy 3 function analyzes the request and determines the list of target capabilities or functions or services responsible for handling this service based on the FSD. It can be assumed that there is only one FSD associated with the STS service (here STS 3). The policy function contacts the service or function of the entity (which can be the fog entity itself) or the STS (here STS 3). The policy function can send a service request message (which can also be implemented as a fog service request message), which can include the identity of the source LFN, the address that should be used to send data, the request ID, the protocol to be used, and the FSD.
[0186] In step 9, the STS 3 analyzes the request and responds with the following list: accepted FSDs, corresponding protocols to be used, target address (which is the address of the STS 3 itself), request ID and the results corresponding to each FSD.
[0187] In step 10, the policy function saves the accepted FSDs, request IDs, source and destination addresses for each request ID or FSD, the protocol to be used, and the result of the request (e.g., acceptance) as allowed by the STS 3. The policy function may send an update policy response message to the LFN 3 manager and forward the result associated with each FSD, request ID and corresponding destination address from which data may be sent, protocol to be used, etc.
[0188] In step 11, LF manager 3 sends a fog service response to LFN 1, which includes a list of one or more of the following: request ID, FSD, result, protocol and target address from which this service can be sent. At this point, LFN 1 and LFN 3 and the corresponding functions in these LFNs can know both the source address and the target address of the specific request, which is identified by the request ID and has an associated FSD and protocol to be used for service delivery. It should be noted that this step can imply the success of the process, and therefore means that step 6 may not have been performed (as this would mean rejecting the entire process).
[0189] In step 12, the LF manager 1 communicates with the policy function (here Policy 1) to record the pending services from the LFN 3 by sending an Update Policy Request message, which includes one or more of the following: request IDs (each associated with an FSD), associated source and destination addresses for each request, and a list of protocols associated with the FSD.
[0190] In step 13, the Policy 1 function analyzes the request and determines the list of target capabilities or functions or services responsible for handling (in this case, receiving) this service based on the FSD. Here, it is assumed that there is only one FSD associated with the STS service (here STS 1). The Policy function contacts the entity (which itself can be a fog entity) or service or function for the STS (here STS 1). The Policy 1 function sends a service request message (which can also be implemented as a fog service request message) and includes the identity of the target LFN, the fog area, the source and destination addresses of this service, the FSD, and at least one of the associated request ID and protocol. It should be noted that, although not shown, this message can also indicate to STS 1 that the destination of this data after receiving this data from LFN 3 is a local application. An application ID can also be provided in this message for subsequent data delivery (as described in step 17).
[0191] In step 14, the STS 1 function analyses the service request and adds / updates its local information so that it now includes the indicated service as well as the details provided in the message (eg FSD, addresses used, protocol etc.).
[0192] In step 15, the STS 1 responds with a service response message indicating the results associated with each request ID.
[0193] In step 16, the Policy 1 function updates the log for each Request ID with the indicated results and responds to the LFN 1 Manager with an Update Policy Response message indicating the results associated with each Request ID and FSD etc.
[0194] At this point, the LF manager 1 may know the result of each FSD associated with the request from the application in step 17. The LF manager 1 uses the application service response API to notify the application about the result of the initial service request.
[0195] In step 18, LFN 3 (optionally STS 3 function of LFN 3) receives data from the "thing" or other local capability and processes the data according to the FSD for each request ID. The data may then be delivered to the destination using the associated source and destination addresses and the selected protocol. A data delivery message may be sent, which may contain the content of the data and the associated request ID.
[0196] In step 19, LFN 1 (optionally the STS 1 function of LFN 1) receives the data for the associated request ID. STS 1 may know the destination of this data (e.g., an application running on a fog node). STS 1 may then forward the data and its associated request ID to the appropriate application using the well-known application data delivery API. STS 1 may also indicate the fog region and LFN ID from which the data was received. It should be noted that STS 1 may also perform some processing on the data according to the FSD and the policy associated with the FSD and the potential SLA agreement associated with the application making the request.
[0197] A process is disclosed that can be used to recommend service operations or parameters related to service provisioning. This process can be used to inform neighboring fog nodes of a selected operation of a fog node so that neighbors can consider operations with similar characteristics in order to provide similar services and quality of experience across fog deployment areas. An example use case that can benefit from this process is a fog node with an intelligent transportation service, which can detect traffic conditions and determine the optimal speed for autonomous vehicles to use within its fog area. However, in order to maintain a constant and uniform flow of traffic entering the area in question, the fog node then sends an operation recommendation (in this example, a recommended speed) to the neighboring fog node. In turn, the neighboring fog node considers this information and can fine-tune its operation based on this information. For example, the neighboring fog node can determine that the speed of vehicles entering the area of the source fog node is reduced. This makes the traffic flow entering and leaving the fog area where the recommendation was initiated uniform. It should be noted again that this process is explained using the example of a recommended speed for an autonomous vehicle, but this process is not limited to recommended speeds. Similarly, like the previous process, the fog node can include an FSD in the message sent to the neighboring fog node, where the FSD is interpreted as containing recommendations for specific services.
[0198] In one example, a first device may be configured to receive data corresponding to a service provided by the first device, update one or more parameters of the service provided by the first device based on the received data, and send information about the one or more updated parameters to a second device, which causes the second device to update one or more parameters of the service provided by the second device.
[0199] exist Fig.12 In the example of , the LFN may provide native Smart Transport Services (STS) independent of the Smart Transport Application running in the application layer scope of the LFN, but the Smart Transport Application may use the services of the STS. In this process and call flow, the STS may collect information or consume services of other capabilities of the LFN, such as services from camera and speed sensor functions and Tx / Rx functions of the LFN. It may be assumed that the STS is also capable of processing safety application messages that may be sent via WAVE messages. Fig.12 In the call flow shown, it can be assumed that the STS has requested services that use the camera and speed sensor capabilities.
[0200] In step 1a, the camera function may receive data for which a policy is created, such that the service must be delivered to the STS. The camera function may know the FSD associated with each request ID (similar to what has been described in steps 13-15 of FIG. 11 ). The camera function may process the data according to the FSD and may know the action associated with the data, for example, in this case the camera function should send the processed data to the STS.
[0201] In step 1b, similar to step 1a, the speed sensor function receives data for which a policy has been created and therefore a service must be delivered to the STS. The speed sensor function may know the FSD associated with each request ID (similar to what has been described in steps 13-15 of Figure 11). The speed sensor function may process the data according to the FSD and may know the operations associated with the data, for example, in this case the speed sensor function may send the processed data to the STS. The speed sensor function may then forward the data to the STS and include the request ID associated with the data. It should be noted again that the camera or speed sensor function may be a standalone FE that is not located in the LFN.
[0202] In step 2a, the camera function may then forward the data to the STS and include the request ID associated with the data. It should be noted again that the camera or speed sensor function may be a separate FE that is not located in the LFN.
[0203] In step 2b, the speed sensor function may then forward the data to the STS and may include a request ID associated with the data. It should be noted again that the camera or speed sensor function may be a standalone FE that is not located in the LFN.
[0204] In step 2c, the STS function may be able to receive a WAVE message carrying a safety application. The STS may receive a WAVE message indicating, for example, a hazard detected on the road or an accident reported by a vehicle.
[0205] In step 3, based on the information or services received in steps 2a, 2b and 2c, the STS determines that it is necessary to notify the vehicle to reduce its speed to avoid the risk and get out of the way of traffic. This determination is based on the logic of the STS.
[0206] In step 4, the STS uses the transmission function of the LFN to broadcast the recommended speed using one or more access technologies and protocols. For example, the STS uses the RSU with WiFi access technology capability to send a WAVE message. The WAVE message includes the recommended speed information, which the autonomous vehicle can receive and adjust its speed accordingly.
[0207] In step 5, based on the local policy of the STS and / or LFN, the STS sends a fog service recommendation message to the neighboring LFNs - but the process only shows one for the purpose of simplicity. It should be noted that this message can also be sent by the LF manager instead of the STS. In this case, the STS first communicates with the LF manager and provides the necessary information to be included. The message may include the FSD, LFN ID and the fog area associated with the originating LFN, where the FSD may in turn contain detailed information about the services for which the operation recommendation is included. It should be noted that the LFN and / or STS may have a list of neighbor LFNs to which this message should be sent. Alternatively, this message can be sent to the cloud, so this step takes into account the two options of the recipient being a neighbor LFN or a cloud node. If sent to the cloud, the cloud can forward the recommended operation to the necessary neighbor LFN based on its policy.
[0208] In step 6, if the message is sent to the cloud, the cloud can determine which neighbor LFNs should receive this message based on local policy. The cloud can then send a fog service operation recommendation message to the neighbor LFN (here LFN 3). It should be noted that this message can be sent to the LF manager, which then forwards the message to the appropriate function (e.g., another STS service in LFN 3) via the policy function as previously described in Figure 11 (e.g., steps 7 to 9). If the recipient is a LFN, the same applies to step 5 above.
[0209] In step 7, LFN 3 confirms receipt of the recommendation by sending a Fog Service Operation Recommendation Confirmation message back to the cloud.
[0210] In step 8, the fog node or cloud confirms receipt of the recommendation by sending a fog service operation proposal confirmation message back to the source LFN.
[0211] In step 9, the LFN may also send similar recommendations to applications that may benefit from this, such as smart transport applications. The LFN may have policies that define which applications such recommendations should be provided to. The STS may send an application service operation recommendation message to the application. This may include the FSD, the fog region, and the LFN ID from which it originated. Although it originates from the LFN, this information is helpful if the LFN first receives this information from a neighbor or from the cloud, and then forwards it to the application, which then knows that the information is related to another fog region and can therefore take necessary decisions as needed (e.g., notify the user of such recommendations before entering the region).
[0212] In step 10, the application responds with an application service operation recommendation confirmation message to confirm receipt of the recommended parameters.
[0213] Disclosed are processes for making application requests for services related to instantiating the same application in other fog nodes, and for moving the user's context from an application instance in one fog node to an application instance in another fog node at the application layer. It should be noted that the latter may be due to the mobility of the user actively using the service or application with all the context and details required by the service. For example, the user may be receiving a service from an intelligent transportation application or a navigation system. The user may have initiated this service in LFN 1, which has detailed information about the desired path, the desired service point where the user wants to park, and the desired service at the destination (such as finding a parking space below a certain cost, etc.). As the vehicle travels, this information can be passed to neighboring applications running on neighboring fog nodes. This is important because users can request updates to services (such as parking at a gas station, etc.) at any time. Disclosed are processes for instantiating applications in other fog nodes, relocating user application contexts across neighboring application instances and fog nodes, and finally fog nodes can request instantiation of services due to multiple requests from the application layer.
[0214] The decision to instantiate an application in a fog node can be made in the application layer. It can be assumed that the instance of the application currently running on the source fog node knows the fog area of the fog node on which it is hosted, and thus knows the fog area of the neighboring fog nodes. If the application is authorized to receive this information, the fog node can make this information available. The application instance can also know whether the neighboring fog node already has an instance of the same application running via the current hosting fog node. Based on the user's mobility, the application can request the fog service layer to instantiate the same application in a neighboring fog node to provide services to the user when he moves into the area. There are other reasons for triggering the instantiation of applications in fog nodes, and the decision to do so can be done on the cloud rather than being triggered by the application layer.
[0215] A process is disclosed for dynamic instantiation of application instances when a user moves from one fog region to another. The instantiation can be done via the cloud due to a request from an application running on a source LFN, and the application can be aware of the user's mobility and location. Figure 13 shows an example process.
[0216] In step 1, an application optionally uses the services of a fog node to track a vehicle. The application may contain user contexts that describe the services required by each user or vehicle. The application (in this case, a smart transportation application) may be aware that the vehicle is leaving the fog area of the fog node that currently hosts it (i.e., the application).
[0217] In step 2, the application may request the LFN to indicate whether neighboring or adjacent LFNs already host instances of the list of applications identified by the application ID. It should be noted that for this use case, there may be only one application ID identical to the smart transportation application, but the application may request to know whether other applications are also running, as they will typically share the same user information (such as email address, username, etc.). The application may use an application instance verification request API, which may include the current location of the vehicle, the destination of the vehicle, and at least one application ID that it wishes to know whether the same application has been instantiated in any fog node between the current location and the destination.
[0218] In step 3, the LF manager analyzes the location information and the destination. The LF manager determines a list of neighboring LFNs, or at least the next LFN, based on the location information of the vehicle and its destination. The LF manager may already know a list of applications already running on these neighbor LFNs.
[0219] In step 4, based on the determination in step 3, the LF manager responds to the application using API: Application Instance Verification Response, which may contain a list of: LFN, fog region, and a result for each application ID indicating whether the application is instantiated in the corresponding LFN ID.
[0220] In step 5, based on the received information, the application determines to instantiate the application in a specific LFN (e.g., the next adjacent LFN) to provide services to the user or vehicle. The application uses an API: Application Instantiation Request, which may include a list of: target LFNs and associated regions corresponding to the application ID indicated by the desired instantiation.
[0221] In step 6, LFN 1 sends a fog instantiate application request to the cloud, indicating the application ID as received from the application layer, the LFN ID and the list of target fog regions.
[0222] In step 7, the cloud node verifies its policy to authorize the request for each application.
[0223] In step 7a, if the request is not accepted (e.g., for all requested applications or for all target LFNs), the cloud may send a fog instantiated application response, which may include, for example, a request result which in this case would be set to "reject". The message may also indicate the reason for the rejection and whether and when to retry.
[0224] In step 8, if the request is granted and authorized, the cloud node retrieves the application software associated with each application ID that is allowed. This may be available locally at the cloud node, or the cloud node may obtain it from the main application server.
[0225] In step 9, the cloud node contacts each target LFN for which the request has been authorized. It should be noted that although Figure 13 shows only one target LFN 2 for simplicity, it will be appreciated that any number of target entities may be involved. The cloud sends a fog instantiate application request message, which includes application IDs (each ID is associated with an application software that should be instantiated) and a list of fog resources (such as memory, compute, allowed services (such as Tx / Rx functions), camera data, etc.) used to run or instantiate this application. It should be noted that it can be assumed that the cloud already has the application software provided by the application provider. If it is not available, the cloud can also contact the provider to obtain the software.
[0226] In step 10, LFN 2 determines whether the required resources can be used to instantiate (one or more) applications. If so, LFN 2 instantiates the application using the application software received from step 9. The actual available resources may also not match the expected resources. LFN 2 may have a policy that can, for example, help it determine whether the indicated application can be instantiated based on the available resources at the target LFN (compared to the resources required for the application to be instantiated). In addition, as an example, even if the available resources do not exactly match the required resources (such as in terms of memory), the LFN can still instantiate the application if the difference between the available resources and the required resources does not exceed a certain threshold (e.g., 90%). This threshold can be configured in the LFN. LFN 2 then instantiates (one or more) applications using the available resources or the resources that have been determined for each application.
[0227] In step 11, LFN 2 sends a fog instantiated application response message to the cloud, which may contain the application ID, the corresponding instantiation result, and optionally a list of actual resources for each application if different from previously requested resources.
[0228] In step 12 , the cloud node updates the list of instantiated applications on this LFN 2 .
[0229] In step 13, the cloud sends a fog instantiation application response back to the source LFN (here LFN 1). The message may include the application ID, the target LFN and fog region, and a list of instantiation request results. If the result is unsuccessful, the message may also include a reason code reflecting why the operation was unsuccessful, and may also include an instruction to retry later.
[0230] In step 14, the LFN updates its local information to reflect the application ID and status running on the corresponding target LFN for future requests from the application layer.
[0231] In step 15, the LFN Manager in LFN 1 uses the API: Application Instantiation Response to indicate to the application layer the result of the request, the fog region and target LFN ID on which the application has been instantiated, and the reason for such failure or rejection if unsuccessful. This API also indicates whether the application can be retried again for those applications that were not instantiated.
[0232] A process for cloud-triggered application instantiation in a fog node is disclosed. The determination to do so may be based on logic and local policies at the cloud. Again, this process may be presented with a use case in mind, but once a decision is made to instantiate an application in the cloud based on any use case, the process itself is applicable to that use case.
[0233] Here, we can assume that the cloud (or higher-level fog node) has performed a fog service request process using at least one LFN (LFN 1 in our example). The service may be related to the delivery of data from LFN 1 to the cloud, and the processing of safety application messages that may be sent using the WAVE protocol, where the data is related to traffic information from various sources (such as cameras, speed sensors). LFN 1 may send data related to each FSD in the request. The cloud receives data indicating, for example, an accident from LFN 1 (and possibly other LFNs). The service may also deliver camera images or videos showing the extent of the accident, so that it becomes necessary to divert all traffic away from the affected area. As such, the cloud node decides to do so, but first triggers the instantiation of the application in the LFNs adjacent to the affected fog area.
[0234] FIG14 shows an example process of instantiation of an application triggered by the cloud. In this flow, it can be assumed that the analyzed data from LFN 1 triggers the cloud to instantiate an application in another LFN (i.e., LFN 5). It should be noted that application instantiation can be done in several fog nodes, but this example only shows one target LFN for simplicity. After instantiation, the cloud node also uses the fog service operation recommendation process (as described above) to recommend a broadcast to divert traffic from the affected street or area under the control of LFN 1.
[0235] In step 1, it may have been assumed that the cloud has requested a service from LFN 1 using the fog service request process presented previously. As part of this service, the cloud receives data about the incident from LFN 1. Analysis of this data or service triggers the cloud to decide to divert traffic from the affected streets in the fog area of LFN 1.
[0236] In step 2, the cloud determines potential new routes that the vehicle may take based on local logic and policies. The cloud decides to instantiate one or more applications that are in use in LFN 1 on the fog nodes responsible for the fog area where the traffic diversion is expected to occur. This is important to achieve seamless service availability in the fog service layer so that any service that is in use in the fog area of LFN 1 is available in the new area where the diversion may occur.
[0237] Step 3 may be the same as step 8 in FIG. 13 .
[0238] Step 4 may be the same as step 9 in FIG. 13 .
[0239] Step 5 may be the same as step 10 in FIG. 13 .
[0240] Step 6 may be the same as step 11 in FIG. 13 .
[0241] Step 7 may be the same as step 12 in FIG. 13 .
[0242] In step 8, since the cloud decides to instantiate the application in the target fog node, the cloud may send a fog application instantiation notification message to LFN 1. The message may include the application ID and the corresponding LFN ID as well as a list of fog regions representing the LFNs on which the application has been instantiated.
[0243] In step 9, LFN 1 responds with a Fog Application Instantiation Notification Confirmation message to confirm receipt of the notification.
[0244] Step 10 may be the same as step 14 in FIG. 13 .
[0245] In step 11, LFN 1 (optionally, LF manager in LFN 1) notifies each application about instantiation of the same application (identified by similar application ID) about instantiation of the same application in the target LFN and corresponding fog area. This can be done using API: Application Instantiation Notification.
[0246] In step 12, the application responds via API: Application Instantiation Notification Confirm to confirm receipt of the notification. The application can now save this information reflecting the LFN that is running the same application identified by the Application ID.
[0247] In step 13, since it is assumed that the cloud is managing all LFNs, the cloud decides to divert traffic from the affected area based on local policy. The cloud uses the previously described action recommendation process to include the FSD necessary for this action. The cloud sends a fog service action recommendation message with the recommended parameters or actions to LFN 1. For example, the recommended parameters may indicate broadcasting a message in all or specific areas of the fog area of LFN 1, notifying vehicles to avoid certain streets completely.
[0248] In step 14, LFN 1 responds with a Fog Service Operation Recommendation Confirmation message to confirm receipt of the message.
[0249] In step 15, LFN 1 takes into account the recommended parameters and actions received from the cloud. As an example, the action may be to broadcast a message indicating that certain streets or areas need to be avoided. LFN 1 uses its send function to perform this operation.
[0250] Step 16 can be done with Fig.12 Same as step 9 in .
[0251] Step 17 can be done with Fig.12 Same as step 10 in .
[0252] An example process for instantiating an application in other fog nodes may be initiated by the LFN or by the cloud. After application instantiation, it may be desirable to move the application user context from one fog node to another so that the instantiated application provides services to the user in question who is moving across the fog region.
[0253] In one aspect, the source LFN may contact the target LFN directly to instantiate the application. It may be assumed that the source LFN has the application software locally and may provide the application software to the target LFN for instantiation. Alternatively, it may be the case that the target LFN has the application software locally, but has not yet instantiated it. The source LFN may provide an application ID, which the target LFN then uses to select the corresponding application software and instantiate the application accordingly.
[0254] Fig.15 An example call flow for instantiating an application at a target LFN using direct F2F communication is shown. It should be noted that the LFN (source or target) or the cloud may have application software templates or may exchange application templates, or the LFN may already have templates for certain applications locally. As such, the term "application software" may also refer to a template.
[0255] Step 1 may be the same as step 1 in FIG. 13 .
[0256] Step 2 may be the same as step 2 in FIG. 13 .
[0257] Step 3 may be the same as step 3 in FIG. 13 .
[0258] Step 4 may be the same as step 4 in FIG. 13 .
[0259] Step 5 may be the same as step 5 in FIG. 13 .
[0260] In step 6, the LFN may be configured to directly contact the target LFN for application instantiation, for example based on the application ID or based on the requesting application or other local policies or due to lack of connectivity to the FN or cloud. In this case, the source LFN sends a fog instantiation application request message to the target LFN. The message may include the source LFN ID and the fog region, and a list of one or more of the following: application IDs, optionally application software for each application ID, and application requirements for each application ID describing the fog resources required by the application.
[0261] In step 7, the target LFN may contact the FN or the cloud to authenticate the request and may therefore send a fog instantiation authorization request message including the source LFN ID and fog region, and a list of one or more of: application IDs, optionally application software for each application ID, and application requirements for each application ID describing the fog resources required by the application. If the source LFN did not send the application software and if the target LFN does not have the application software for a particular application ID, the source LFN may also include an application software indication for each application ID. This informs the cloud that application software is required at the target LFN.
[0262] In step 9, the cloud authorizes the request based on local policies and responds with a fog instantiation authorization request message, which includes a list of one or more of the following: application IDs, authorization results for each application, (if necessary) optional application software (as described above), and a description of each application's optional application requirements for the set of fog resources required to instantiate the corresponding application on the fog node.
[0263] In step 9, if the target LFN authorizes the request based on local policy or information or based on the above steps, the target LFN can use the application ID to retrieve the application software, assuming that the application software is available and is not provided by the source LFN or the cloud. It should be noted that the LFN may already have the application software it received from a higher level FN or the cloud and can retrieve the application software based on the application ID.
[0264] In step 10, the target LFN determines whether resources are available to instantiate each application.
[0265] The target LFN responds to the source LFN with a fog instantiation application response message in step 11. The message may include a list of one or more of the following: application IDs, the result of the application instantiation request for each application, and the actual fog resources used to instantiate each application.
[0266] Step 12 may be the same as step 14 in FIG. 13 .
[0267] Step 13 may be the same as step 15 in FIG. 13 .
[0268] A process is disclosed to solve a use case related to relocating an application user context from a source application instance running on a source fog node to a target application instance running on a target fog node. This context indicates the current state of a service for a particular user that needs to be relocated as the user moves from one fog area to another. In one embodiment, there are two ways to relocate the user context at the application layer. In both cases, the relocation of the user context is considered a service provided by the fog service layer. The first option for relocating the application user context is to reach the target fog node via the cloud. The second option is to relocate using a direct process between fog nodes.
[0269] It should be noted that although the following solution may involve the transfer of user context, the solution may also transfer application layer context and include application layer context. As such, the supporting services may be related to application user context or application context or both. The description of the solution using application user context should not be interpreted as a limitation on the solution.
[0270] Processes are disclosed for relocating application user contexts from a source fog node to a target fog node via a cloud node. These processes may be performed before the user actually moves into a new fog area, and may be decided to do so by the application layer. It may be assumed that the application layer tracks the user and is responsible for making this decision at the right time. The solution is simple in the sense that it relies on the fog service layer to move the application user context, and it is assumed that the target application instance is responsible for analyzing the context and then obtaining the necessary services for the user, just as the user was originally served at the target fog node. That is, the target application is responsible for interacting with the target fog node on which it is running in order to request the necessary fog services accordingly. As such, service delivery may not be performed for the user as part of mobility. Fig.16 The overall process of fog service is shown, which relocates application user context according to the request of application layer.
[0271] In step 1, the application layer decides to relocate the user's context to a target application running on a target fog node. The application can know that an instance of the same application is running on the target fog node. The application uses an API: Application User Context Relocation Request, which contains one or more of the following: target fog ID, target fog region, application ID, and application container that is only understood by the application layer and transparent to the fog service layer.
[0272] In step 2, LFN 1 verifies whether relocalization has to be done via the cloud or directly with the target fog. In this case, LFN 1 determines to do relocalization via the cloud based on its local policy.
[0273] In step 3, LFN 1 sends a fog application user context relocation request message to the cloud, which indicates the source LFN ID and fog area, the target LFN ID and fog area, the application ID, and the application container containing the application user context.
[0274] In step 4, the cloud verifies whether the target application ID is instantiated in the target fog node and also authorizes the request.
[0275] In step 5, if authorized, the cloud sends a fog application user context relocation request message to the target LFN, the fog application user context relocation request message indicating the source LFN ID and one or more of the fog area, the application ID, and the application container containing the application user context.
[0276] In step 6, the target LFN verifies whether the application identified by the application ID is indeed instantiated in this LFN.
[0277] In step 7, the LFN (e.g., LF manager) uses an API: Application User Context Relocation Notification, which includes one or more of the source LFN ID and fog region, application ID, and application container containing the user context. This API is used to notify the application that there is a user context transfer request from another application in another LFN.
[0278] In step 8, the application responds with an API: Application User Context Relocation Confirmation, which indicates the application ID and the result of the context relocation. This indicates the result of the context transfer, which, if successful, means that this application instance can now provide services to the specific set of users whose context has been transferred.
[0279] In step 9, the target LFN responds to the cloud with a fog application user context relocation response message, which includes one or more of the following: target LFN ID and fog area, application ID and relocation result of application user context.
[0280] In step 10, the cloud responds to the source LFN with a fog application user context relocation response message, which includes one or more of the following: target LFN ID and fog area, application ID, and relocation result.
[0281] In step 11, LFN 1 (e.g., LF manager in LFN 1) responds to the application using API: Application User Context Relocation Response, which contains one or more of the following: target fog ID, target fog area, application ID, and result of application user context relocation. This process makes the target application (on the target LFN) responsible for analyzing the context and determining the services that should be requested from the target fog node in order to make the user's service needs available in a seamless manner.
[0282] An example process for application user context relocation from an application instance across fog nodes using a direct process between LFNs is shown in Figure 17. This process also supports data or service forwarding from a source fog node to a target fog node whose fog area the user is moving into.
[0283] A user may have specific services that other users are not currently requesting. For example, a user may be interested in finding out the availability of parking spaces in a particular street in a city. As such, a camera image or sensor at a parking space on that street may send data back to a fog node to indicate whether a parking space is available. Moreover, the fog node responsible for these "things" on the street of interest is not yet the fog node where the user is located. For example, consider a situation where the user is currently located in fog region 1 under LFN 1. The user or vehicle is heading towards a destination or street in fog region 3 controlled by LFN 3. Although the user has not yet entered fog region 3, LFN 3 may be taking data and sending it to LFN 1 to notify the user of the availability of parking spaces even before reaching the destination. As such, this parking information service is not a one-time data sharing event, but can be carried out in real time as more parking spaces become free or run out. However, the user may actually begin to enter fog region 2 between fog region 1 and fog region 3. At this point, the user's application layer context should be moved to the application instance running in LFN 2. However, there is data or service for this user, and the service needs to continue in LFN 2. Although it is assumed that the application layer in LFN 2 interacts with LFN 2 to obtain the services necessary for this user, the time required to do so may be long. For example, since the user is about to leave the area, LFN 2 now needs to contact LFN 3 to obtain data about parking directly instead of sending this data to LFN 1. The process presented below enables LFN 1 to forward data or services to LFN 2 during a mobility event. This enables the application instance in LFN 2 to subsequently request services from LFN 2, and once the service is available for this user at LFN 2, stop forwarding data or services from LFN 1. This implements a "make before break" service handover and makes service mobility seamless. Figure 17 shows the process and steps required to relocate user contexts directly between fog nodes.
[0284] In the following process, it is assumed that a user is under LFN 1 using a smart transportation application that is also hosted on LFN 1. Furthermore, the application is consuming services from LFN 1, which has triggered LFN 1 to in turn obtain services from LFN 2 and LFN 3 using the previously described process. As such, LFN 1 is currently receiving services or data for a specific user. It should be noted that LFN 1 does not necessarily know which data will ultimately be provided to the user. This information is available at the application layer, which is considered the primary consumer of the fog service layer. Therefore, the decision to forward data is made by the application layer and supported by the fog service layer. Similarly, the decision to relocate the application layer context of the user is made by the application layer based on the user's location.
[0285] In step 1a, LFN 1 is receiving data from LFN 2.
[0286] In step 1b, LFN 1 is receiving data from LFN 3.
[0287] In step 1c, LFN 1 forwards the data to an application such as a smart transport application. The data (from both LFN 2 and LFN 3) is forwarded to the application.
[0288] In step 2, the application decides to relocate the user's application context due to mobility, for example, from fog area 1 to fog area 2. The application layer may be aware of the services of this user, which may be unique and may require "service mobility" across fog nodes. It should be noted that this may also be due to the fact that the user has paid a specific premium (for which this capability may be supported). The application uses the API: Application User Context Relocation Request, the content of which has been described previously. In addition, since the application requires this user to have "service mobility", the application may include a list of active request IDs and their corresponding FSDs. This list indicates the need for "service mobility". Although not shown, the API may also include an explicit "service mobility" indication that requests the fog node to forward data related to the indicated FSD to the target fog node.
[0289] In step 3, LFN 1 verifies whether relocalization must be performed via the cloud or directly with the target fog. In this case, LFN 1 determines to relocalize directly with the target fog node based on its local policy.
[0290] In step 4, the source LFN sends a fog application user context relocation request to the target fog node. The message may contain the source LFN ID and fog region, application ID and application container. The message may also contain a list of request IDs and data forwarding indications associated with the FSD. The data forwarding indication informs the target that the source fog node can support data forwarding as part of mobility.
[0291] In step 5, the target LFN verifies whether the application identified by the application ID is indeed instantiated in this LFN.
[0292] In step 6, if the policy does not allow such relocation, the fog node responds with a Fog Application User Context Relocation Response message, which includes the result (rejection in this case) and a reason code describing the reason for the rejection.
[0293] In step 7a, if relocation is authorized, the LFN (e.g., LF manager) uses the API: Application User Context Relocation Notification. In addition to what has been described previously, the API may also include a list of request IDs and data forwarding instructions associated with the FSD. The data forwarding instructions inform the application that the service layer supports service mobility as part of context relocation.
[0294] In step 7b, the application responds with an API: Application User Context Relocation Confirmation, which may include the application ID, the relocation result, and a list of request IDs and data forwarding requests associated with the FSDs. The data forwarding request (for each request ID and FSD) informs the fog node whether service mobility is required for each of the request IDs and FSDs.
[0295] In step 8, LFN 2 responds to LFN 1 with a fog application user context relocation response to the source fog node. In addition to what was previously described, the API may also include a list of request ID, FSD, and data forwarding request information elements. A data forwarding request is an indication of requesting data or service forwarding for the indicated request ID and FSD.
[0296] In step 9, LFN 1 (e.g., LF manager) determines that data from LFN 3 received at LFN 1 should be forwarded to LFN 2 as part of mobility. It should be noted that this determination is done based on each request ID and the data forwarding request indication of the FSD. It should be noted that this example only shows that data from LFN 3 should be forwarded. However, there may be local services from LFN 2 or other data from other LFNs that can also be forwarded. This example is for illustration and simplicity only.
[0297] In step 10, LFN 1 still continues to receive services from LFN 3 as previously indicated in step 1b. Up to now, LFN 3 may not be aware of the user's mobility. LFN 1 forwards the data to LFN 2, where the application user context is relocated. Data may also be forwarded to the application. The forwarded data is linked to a specific service identified by the request ID.
[0298] In step 11, LFN 1 (e.g., LF manager) responds to the application with API: Application User Context Relocation Response and indicates the result of the relocation. The API may also include a list of request IDs, FSDs, and data forwarding results. The data forwarding results indicate whether the data forwarding is successful or accepted for each request ID and FSD.
[0299] At this point, the application layer in LFN 2 may be acquiring the necessary services or data for the user in question from LFN 1, for example, via forwarding. While this helps with seamless mobility and service provisioning, the application layer may eventually request LFN 2 to acquire similar services so that the source of the service provider becomes LFN 2 instead of LFN 1. After the service is available at LFN 2, the data forwarding process may be terminated. The following steps are described accordingly.
[0300] In step 12, LFN 2 directly requests service from LFN 3 in order to finally stop data forwarding.
[0301] In step 13, LFN 3 starts delivering data to LFN 2 according to the FSD provided in the fog service request process.
[0302] In step 14, once LFN 2 starts to receive data directly from LFN 3, LFN 2 sends a fog service deactivate message to LFN 1. The message may include a request type and a request ID list. The request type indicates that data forwarding for the request ID list needs to be stopped.
[0303] In step 15, based on the received request ID list, LFN 1 determines to stop forwarding data corresponding to each request ID. In this case, LFN 1 stops forwarding data received from LFN 3 to LFN 2.
[0304] In step 16, LFN 1 sends a fog service deactivation confirmation message to inform the target LFN that the data corresponding to the request ID list may no longer be forwarded.
[0305] In step 17, based on currently active requests and FSD, data from LFN 3 may no longer be needed in LFN 1. LFN 1 may send a fog service deactivation message to LFN 3 and include a list of request IDs requesting service deactivation.
[0306] In step 18, LFN 3 sends a fog service deactivation confirmation message to LFN 1 and confirms the termination of the service corresponding to the request ID list.
[0307] After step 18 , the application instance may be acquiring all the data or services it needs from LFN 2 , which in turn acquires data directly from other sources and stops any indirect service provisioning via LFN 1 .
[0308] Example processes are disclosed for use cases involving application layer interactions with fog. It should be noted that while the process presents support services based on predicted mobility patterns, the process is also applicable to any other predictions that may affect the performance of fog nodes. For example, an LFN, FN, or cloud may predict an increase in load conditions on a specific LFN and may therefore decide to instantiate applications in other LFNs, etc. As such, the process is not limited to predictions at the application layer, or predictions made due to mobility. The predictions may be made by the LFN, FN, or cloud, and the processes for performing the solutions presented below may also be triggered and initiated by the LFN, FN, or cloud.
[0309] In this use case, it can be assumed that the mobility of the user is known. Given this assumption, the application layer can request the fog service layer to prepare specific services in advance. The prepared services can be hosted in fog nodes and therefore hosted in the fog area that the user is expected to traverse. For example, a passenger can use a video streaming application in a vehicle. The destination of the vehicle is known in advance, and the vehicle begins to access the service in fog area 1 served by LFN 1. The application instance (e.g., a streaming application in LFN 1) requests LFN 1 to transmit certain information with a list of target fog nodes and instances of the same application running in these fog nodes so that the fog service layer notifies the application layer when the expected user arrives in the fog area. Using this information, the application instance on the fog node can fetch the data (e.g., video streaming) that the user may need based on the estimated arrival time. Fig.18 A use case of a car driving in a specific direction as an example and how fog nodes are deployed in each area is shown.
[0310] Assume that the vehicle is currently located in fog region 1 under LFN 1 and is using a streaming application. For example, if the user is watching a movie and the user is currently one-fifth of the way through a one hundred minute long movie. Using the fog service layer, it can be estimated that within thirty minutes the user may be under fog region 2, and within sixty minutes the vehicle may be under fog region 3. As such, this information can be shared with application instances running in LFN 2 and LFN 3 under fog region 2 and fog region 3, respectively. Based on this estimate, the application layer on LFN 2 can start pulling out the video stream from approximately the thirty-fifth minute, while the application layer on LFN 3 can start pulling out content from the sixty-fifth minute, and so on. This content may be available locally or obtained from major content providers. This section describes the process of enabling the fog to provide a service that estimates the user's entry into certain fog regions, and shares application layer information between applications residing in different fog layers so that they can prepare content in advance. Figure 19 shows an example process for enabling such services across fog service layers.
[0311] In step 1, the user may already be using a streaming application that also knows the user's location, destination, and driving route, and therefore the fog regions that the user may be traveling through. The application may use the fog service layer or interact with other applications on the same fog node to obtain this information. Additionally or alternatively, the user may have provided this information via the application's graphical user interface.
[0312] In step 2, the application interacts with the LFN to obtain the average speed of the vehicle in each of the areas that the vehicle is expected to pass through (in this example, fog area 2 and fog area 3). It should be noted that this information can be obtained as the fog layer service described herein.
[0313] In step 3, the application uses the API: Application Prepare Service Request to request LFN 1 to prepare the target LFN and application instance on the LFN for the service in question. The API may also include the request ID, FSD, the current location of the vehicle, its destination, the average speed at this location (i.e., fog area 1), the application ID, the application container, and a list of fog areas that the car may pass through and the corresponding average speed for each area.
[0314] In step 4, the fog node sends a fog preparation service request message to the cloud. The message may include the source fog ID, fog region, request ID, FSD, the current location of the vehicle, its destination, the average speed at this location (i.e., fog region 1), application ID, application container, and a list of fog regions that the car may pass through and the corresponding average speed for each region.
[0315] In step 5, the cloud authorizes the request and determines the target fog node on which the service should be prepared.
[0316] The cloud also knows whether the application identified by the application ID has been instantiated in the target LFN in step 6. If not, the cloud initiates instantiation of the application as described herein.
[0317] In step 7, the cloud sends a fog preparation service request message to the target LFNs (here LFN 2 and LFN 3). The message may include the source fog ID, fog area, request ID, FSD, the current location of the vehicle, its destination, the average speed at this location (i.e., fog area 1), application ID, application container, and a list of fog areas that the car may pass through and the corresponding average speed for each area.
[0318] In step 8, LFN 2 uses the information provided to estimate the time it will take for the vehicle to enter its fog region. LFN 2 may use the average speed associated with LFN 2, or it may first calculate the most recent average speed and use that information. It may be assumed that LFN 2 has information about the extent of the fog region in its vicinity.
[0319] In step 9, the LFN 2 (e.g., LF Manager) uses the API: Application Preparation Service Notification to notify the application instance that a service needs to be prepared for a specific user. The API may also provide the application with the source fog ID, fog region, request ID, FSD, the current location of the vehicle, its destination, the estimated arrival time into this fog region, and the application container. The container contains application layer information that is transparent to the fog nodes, and this may include information about which part or type of service should be prepared, such as the length of the video, the current time of the stream, etc.
[0320] In step 10, the application responds with API: Application Ready Service Acknowledgement and includes the result and the request ID. The application may first perform step 12 before responding.
[0321] In step 11, LFN 2 responds to the cloud with a fog preparation service response message. The message may include a request ID and a result. Although not shown, the message may also include a target fog ID, fog area and optionally an application ID.
[0322] In step 12, the application uses the received information (e.g., estimated time, current location, etc.) and the FSD and application container to fetch (e.g., buffer) and prepare data or services for the user in question. It is assumed that the user can contact the application when the user enters this fog area, and the application then resumes providing services to the user.
[0323] Step 13: Similar to Step 8 to Step 11, but the interaction is between LFN 3 and the cloud. Also, the application instance in this LFN 3 takes similar actions as described in Step 12.
[0324] In step 14, the cloud aggregates all responses from each target LFN contacted to prepare the service.
[0325] The cloud node sends a fog preparation service response message to the source LFN in step 15. The message may include a request ID and a list of: target fog ID, fog region, and the result of the request for each fog node.
[0326] In step 15, the LFN (e.g., LF manager) notifies the application of the result of the request using the API: Application Prepare Service Response. The API may also include a request ID and a list of: target fog ID, fog area, and the result of the request for each fog node.
[0327] Some of the processes described herein may be implemented as oneM2M processes, specifically, management processes for fog capability discovery and fog capability status reporting.
[0328] Before discussing these processes in the oneM2M method, each fog node (or LFN, or FE) or cloud can be implemented as a CSEBase with the following new attributes: "lfnID", "fogArea" and "fogCapabilities". As described in this article, the "fogCapabilities" attribute contains all the capabilities of the fog node. For example, the capabilities may include all IoT devices or "things" (such as cameras, sensors, etc.) connected to the fog node, their locations and other specific capabilities. Other fog capabilities may also include native services provided by the fog node, such as tracking, supported access technologies for sending and receiving functions, support for specific protocol processing, etc. Alternatively, certain capabilities may be represented as oneM2M resources, such as AE, container or mgmtObj resources. Table 1 shows the attributes of the CSEBase resource, including the "lfnID", "fogArea" and "fogCapabilities" attributes, referring to the oneM2M technical specification oneM2M-TS-001-V3.5.
[0329] Table 1: Example attributes in CSEBase
[0330]
[0331]
[0332]
[0333] Fig. 20 An example resource tree in a fog node, LFN or cloud is shown. For simplicity, this resource tree only shows the above-mentioned new attributes.
[0334] Table 2 shows examples of possible capability parameters that may be included in the "fogCapabilities" attribute. It should be noted that the "fogCapabilities" attribute describes a list of fog capabilities supported by the fog node. Capabilities include any capabilities or services described herein. It should be noted that, where applicable, this may also include location information associated with the location of the capability. For example, a camera capability may include a camera and a corresponding deployment location and a list of any other services or capabilities supported by the camera. Another capability of a fog node may be analysis, which is not associated with location information because it resides in the fog node, and so on. As such, some fog capabilities or services may be associated with location information, while other fog capabilities or services are not associated with location information.
[0335] Table 2: Example parameters in the "fogCapabilities" property
[0336]
[0337] It should be noted that Table 2 only shows a small subset of the capabilities described herein, but all other described capabilities can be included, and different capabilities can also be defined and included.
[0338] The following Fig.21 The oneM2M retrieval operation shown in can be used to implement the fog capability discovery process described herein. Alternatively, if the fog capabilities are represented as oneM2M resources, oneM2M resource discovery can also be used to discover fog capabilities. It should be noted that it is assumed that the LFN and each CSEBase have discovered each other before this process.
[0339] The fog capability status reporting process described herein can be implemented using oneM2M update operations. Again, it is assumed that each LFN and CSEBase have discovered each other before this. Moreover, it is assumed that each LFN and CSEBase has at least one remoteCSE resource that corresponds to the resources and attributes of the neighboring LFN. For example, LFN 1 and LFN 2 have registered with each other before. In addition to Fig. 20 the new attributes shown in, LFN 1 can also have a remoteCSE resource for LFN 2. This remoteCSE can also have the same attributes as those shown in Fig. 20 . Similarly, LFN 2 can have a remoteCSE resource for LFN 1. Therefore, when any capability or service in an LFN changes, the LFN can use the oneM2M update operation to update the neighboring LFNs about the capabilities and services in the source LFN. Fig. 22 An example implementation of fog capability status reporting using the update operation is shown (assuming that two CSEBase entities have registered with each other).
[0340] OneM2M messages can be used to request the instantiation or deactivation (i.e., cancellation of instantiation) of an application that is already running on an LFN. For this purpose, we first describe the new attributes of the <software> resource defined in the oneM2M technical specification oneM2M-TS-001-V3.5.
[0341] Fig.23The resource tree shown in shows only the proposed new attributes, namely, authorizURI, appInstStatus and instDestination. It can be assumed that the AE has registered with the CSEBase representing the LFN and owns the software resources with the new attributes shown above. As such, the AE can use the oneM2M UPDATE message to request the CSE to instantiate an application or deactivate an application that is already running on the LFN. To instantiate an application, the AE updates the authorizURI attribute of the software resource so that the value points to the cloud node with which the target LFN will communicate in order to authorize the instantiation request. Moreover, the AE can set the appInstStatus attribute to a value indicating, for example, "instantiation". To deactivate an application, the AE can send a oneM2M UPDATE message and update the appInstStatus attribute to a value indicating, for example, "deactivation", while setting the authorizURI attribute to reflect the cloud node that the target LFN will contact to authorize the deactivation request. Table 3 describes Fig.23 New properties for software resources as shown in .
[0342] Table 3: Example of new resources in the software resource tree
[0343]
[0344] Fig.24 An example flow is shown by which an AE can send a oneM2M update message to CSEBase1 representing LFN 1 and update the attributes of the [software] resource accordingly (as described herein) for the purpose of instantiating an application to another fog node LFN 2. Fig.24 In this example, we assume that "node1" is the oneM2M node used for management purposes. <node>resource and can be placed directly under CSEBase1; alternatively, the resource "node1" can be placed as a child resource of CSEBase1 / remoteCSEforLFN 2, where remoteCSEforLFN 2 is oneM2M <remotecse>resource and refers to CSE on LFN 2.
[0345] To instantiate the application, the AE sends an update message and sets the values of the attributes as explained above. The AE sets the value of the authorizeURI attribute to point to the cloud node. Therefore, LFN 1 can use the value of this attribute to contact the cloud node for authorization. LFN 1 can also inform the cloud node of the address of the target fog node (i.e., the value of the instDestination attribute). The cloud node may then be able to contact the target fog node to instantiate the application onto it. As such, Fig.24 Step 2 of FIG. 13 may then correspond to steps 9, 10 and 11 of FIG. 13. In addition, Fig.24 Step 3 of may correspond to step 13 of FIG. 13 .
[0346] It should be noted that the FE can also function as an AE, and therefore the process proposed above will also apply to the FE communicating with the LFN.
[0347] Fig.25 and 26 An example of a potential GUI appearance is shown for displaying the hierarchy of LFNs, FNs and clouds, as well as FEs, resources and services connected to the LFNs.
[0348] Fig.25 An example hierarchy of deployed LFNs, FNs, and clouds is shown, the connections between them, and which FN controls certain LFNs. In addition, next to each LFN, there is a meter showing the performance level of that LFN when it is running. This performance level covers all resources of the LFN. For example, it can be the average of the performance of each resource in the LFN. The same performance meter is shown next to each FN and cloud.
[0349] In addition to the supported services and the list of FEs connected to the LFN, the user may also want to know more about the supported resources of the LFN and their usage levels. Then, the user can touch the screen, and in particular can touch the specific LFN of interest. For example, the user may want to verify the detailed information of LFN 1A. After touching the area of LFN 1A, a display containing the resources, services and FE information associated with this LFN can be provided to the user. Fig.26 An example display that this process may produce is shown.
[0350] It should be noted that Fig.26 is an example of possible display options, however, the actual display may contain a subset of this information or other information not shown above. In this example, the GUI shows three categories of information - LFN resources, LFN services, and fog entities. Resources can show the percentage of usage at the LFN for each supported resource, with two resources shown as examples, namely, memory and CPU. LFN resources can also indicate whether the LFN supports resources related to a specific access technology and an indication of whether the resource is enabled. The second category of information is the LFN services supported by the LFN, which may be analysis, tracking, image processing, and actuator control, etc. The user may be provided with a "View" button option that may provide further details about each service. The third category of information may be related to the FEs to which the LFN is connected. There may be a collection of speed sensors, temperature sensors, cameras, etc. connected to the LFN. The user can use the "View" button to view more details about these FEs, such as their location, status, ID, manufacturer, etc.
[0351] implement Figure 6 , 8 Any entity shown in steps 19, 21, 22, and 24-26 (such as a service layer, an application entity, a cloud node, a fog entity, a fog node, a local fog node, etc.) can be a logical entity that can be stored in a device or computer system (such as a computer system) configured for wireless and / or network communication. Fig.27C or Fig.27D The present invention is implemented in the form of software (i.e., computer executable instructions) stored in the memory of a computer or computer system (such as those shown in the drawings) and executed on its processor. That is, Figure 6 , 8 -19, 21, 22 and 24-26 shown in (one or more) can be stored in a device (such as Fig.27C or Fig.27D The computer system or device shown in the figure is implemented in the form of software (i.e., computer executable instructions) in the memory of the device, wherein the computer executable instructions, when executed by the processor of the device, perform Figure 6 , 8 -19, 21, 22 and the steps shown in 24-26. It should also be understood that Figure 6 , 8 Any of the sending and receiving steps shown in -19, 21, 22 and 24-26 may be performed by the communication circuitry of the device / entity under the control of the device's processor and computer-executable instructions (eg, software) executed thereon.
[0352] Fig.27A is a diagram of an exemplary machine-to-machine (M2M), Internet of Things (IoT), or World Wide Web of Things (WoT) communication system 10 in which one or more disclosed embodiments may be implemented. In general, M2M technology provides building blocks for IoT / WoT, and any M2M device, M2M gateway, M2M server, or M2M service platform may be a component or means of IoT / WoT and an IoT / WoT service layer, etc. Figure 1-26 Any entity shown in may include a network device of a communication system, such as Figures 27A-27D The network device shown in .
[0353] The service layer may be a functional layer within a network service architecture. The service layer is typically located above an application protocol layer (such as HTTP, CoAP, or MQTT) and provides value-added services to client applications. The service layer also provides an interface to a core network located at a lower resource layer (such as, for example, a control layer and a transport / access layer). The service layer supports multiple categories of (service) capabilities or functions, including service definition, service runtime enablement, policy management, access control, and service clustering. Recently, several industry standard organizations (e.g., oneM2M) have been developing an M2M service layer to address challenges associated with the integration of M2M-type devices and applications into deployments such as the Internet / web, cellular, enterprise, and home networks. The M2M service layer may provide access to a collection or group of the above capabilities or functions supported by the service layer for applications and / or various devices, wherein the service layer may be referred to as a CSE or SCL. Some examples include, but are not limited to, security, charging, data management, device management, discovery, provisioning, and connectivity management, which may be used in common by various applications. These capabilities or functions are available to such various applications via APIs using message formats, resource structures, and resource representations defined by the M2M service layer. CSE or SCL is a functional entity that may be implemented by hardware or software, and that provides (service) capabilities or functions (ie, functional interfaces between these functional entities) exposed to various applications and / or devices so that they use such capabilities or functions.
[0354] like Fig.27A As shown in , the M2M / IoT / WoT communication system 10 includes a communication network 12. The communication network 12 may be a fixed network (e.g., Ethernet, optical fiber, ISDN, PLC, etc.) or a wireless network (e.g., WLAN, cellular, etc.) or a network of heterogeneous networks. For example, the communication network 12 may be composed of multiple access networks that provide content such as voice, data, video, messaging, broadcasting, etc. to multiple users. For example, the communication network 12 may adopt one or more channel access methods, such as code division multiple access (CDMA), time division multiple access (TDMA), frequency division multiple access (FDMA), orthogonal FDMA (OFDMA), single carrier FDMA (SC-FDMA), etc. Further, for example, the communication network 12 may include other networks, such as a core network, the Internet, a sensor network, an industrial control network, a personal area network, a converged personal network, a satellite network, a home network, or an enterprise network.
[0355] like Fig.27A As shown in , the M2M / IoT / WoT communication system 10 may include an infrastructure domain and a field domain. The infrastructure domain refers to the network side of the end-to-end M2M deployment, and the field domain refers to the regional network usually behind the M2M gateway. Both the field domain and the infrastructure domain may include various different network devices of the network (e.g., servers, gateways, devices, etc.). For example, the field domain may include an M2M gateway 14 and a device 18. It will be appreciated that any number of M2M gateway devices 14 and M2M devices 18 may be included in the M2M / IoT / WoT communication system 10 as desired. Each of the M2M gateway device 14 and the M2M device 18 is configured to send and receive signals via the communication network 12 or a direct radio link using a communication circuit system.
[0356] The M2M gateway 14 allows wireless M2M devices (e.g., cellular and non-cellular) and fixed network M2M devices (e.g., PLC) to communicate through an operator network such as the communication network 12 or through a direct radio link. For example, the M2M device 18 can collect data and send data to the M2M application 20 or other M2M devices 18 via the communication network 12 or the direct radio link. The M2M device 18 can also receive data from the M2M application 20 or the M2M device 18. In addition, data and signals can be sent to and received from the M2M application 20 via the M2M service layer 22, as described below. The M2M device 18 and the gateway 14 can communicate via various networks, including, for example, cellular, WLAN, WPAN (e.g., Zigbee, 6LoWPAN, Bluetooth), direct radio links, and wirelines. Exemplary M2M devices include, but are not limited to, tablets, smartphones, medical devices, temperature and weather monitors, connected cars, smart meters, gaming consoles, personal digital assistants, health and fitness monitors, lights, thermostats, appliances, garage doors and other actuator-based devices, security devices, and smart sockets.
[0357] refer to Fig.27B , the M2M service layer 22 shown in the field domain provides services for the M2M applications 20, the M2M gateway 14 and the M2M devices 18, and the communication network 12. It will be understood that the M2M service layer 22 can communicate with any number of M2M applications, M2M gateways 14, M2M devices 18, and communication networks 12 as desired. The M2M service layer 22 can be implemented by one or more network devices of the network, and these nodes may include servers, computers, devices, etc. The M2M service layer 22 provides service capabilities suitable for the M2M devices 18, the M2M gateway 14, and the M2M applications 20. The functions of the M2M service layer 22 can be implemented in various ways, such as as a web server, in a cellular core network, in the cloud, etc.
[0358] Similar to the M2M service layer 22 shown, there is an M2M service layer 22' in the infrastructure domain. The M2M service layer 22' provides services for the M2M applications 20' and the underlying communication network 12 in the infrastructure domain. The M2M service layer 22' also provides services for the M2M gateways 14 and the M2M devices 18 in the field domain. It will be understood that the M2M service layer 22' can communicate with any number of M2M applications, M2M gateways, and M2M devices. The M2M service layer 22' can be interacted with by different service providers. The M2M service layer 22' can be implemented by one or more network devices of the network, wherein the network devices may include servers, computers, devices, virtual machines (e.g., cloud computing / storage farms, etc.), etc.
[0359] Also refer to Fig.27B , the M2M service layers 22 and 22' provide a set of core service delivery capabilities that different applications and industries can fully utilize. These service functions enable M2M applications 20 and 20' to interact with devices and perform functions such as data collection, data analysis, device management, security, billing, service / device discovery, etc. Basically, these service capabilities relieve the application of the burden of implementing these functions, thereby simplifying application development and reducing costs and time to market. The service layers 22 and 22' also enable the M2M applications 20 and 20' to communicate in association with the services provided by the service layers 22 and 22' over various networks (such as network 12).
[0360] The M2M applications 20 and 20' may include applications in various industries, such as, but not limited to, transportation, health and wellness, connected home, energy management, asset tracking, and security and monitoring. As mentioned above, the M2M service layer running between the devices, gateways, servers, and other network devices of the system supports functions such as, for example, data collection, device management, security, billing, location tracking / geofencing, device / service discovery, and legacy system integration, and provides these functions as services to the M2M applications 20 and 20'.
[0361] Generally speaking, such as Fig.27B The service layer 22 and 22' shown in the service layer 22 and 22' such as the service layer defines a software middleware layer, which supports value-added service capabilities through a set of application programming interfaces (APIs) and underlying networking interfaces. Both the ETSI M2M and oneM2M architectures define a service layer. The service layer of ETSI M2M is called the service capability layer (SCL). The SCL can be implemented in various different nodes of the ETSI M2M architecture. For example, an instance of the service layer can be implemented in an M2M device (where it is called a device SCL (DSCL)), in a gateway (where it is called a gateway SCL (GSCL)) and / or in a network node (where it is called a network SCL (NSCL)). The oneM2M service layer supports a set of public service functions (CSFs) (i.e., service capabilities). The instantiation of a set of one or more specific types of CSFs is called a public service entity (CSE), and the CSE can be hosted on different types of network nodes (e.g., infrastructure nodes, intermediate nodes, application-specific nodes). The third generation partnership project (3GPP) has also defined an architecture for machine type communication (MTC). In this architecture, the service layer and the service functions it provides are implemented as part of a service capability server (SCS). Whether implemented in the DSCL, GSCL, or NSCL of the ETSI M2M architecture, in the service capability server (SCS) of the 3GPP MTC architecture, in the CSF or CSE of the oneM2M architecture, or in some other node of the network, an instance of the service layer can be implemented as a logical entity (e.g., software, computer executable instructions, etc.) executed on one or more independent nodes (including servers, computers, and other computing devices or nodes) in the network or implemented as part of one or more existing nodes. As an example, an instance of the service layer or its components can be implemented in a network having the following Fig.27C or Fig.27D The general architecture shown in the figure is implemented in the form of software running on a network device (e.g., a server, a computer, a gateway, a device, etc.).
[0362] Additionally, the methods and functions described herein may be implemented as part of an M2M network that uses a service-oriented architecture (SOA) and / or a resource-oriented architecture (ROA) to access services.
[0363] Fig.27C is a block diagram of an example hardware / software architecture of a device of a network, wherein the device such as Figure 1-26 One of the entities shown in , which can operate as an M2M server, gateway, device or other network device in an M2M network, such as Fig.27A and 27B As shown in Fig.27D As shown in FIG. 1 , the network device 30 may include a processor 32, non-removable memory 44, removable memory 46, a speaker / microphone 38, a keypad 40, a display, a touchpad and / or an indicator 42, a power supply 48, a global positioning system (GPS) chipset 50, and other peripherals 52. The network device 30 may also include communication circuitry such as a transceiver 34 and a transmit / receive element 36. It will be appreciated that the network device 30 may include any sub-combination of the foregoing elements while remaining consistent with the embodiments. This network device may be a device that implements the message template management capabilities and methods described herein (such as with respect to Figure 1-26 The method shown and described herein operates as described herein.
[0364] The processor 32 may be a general purpose processor, a special purpose processor, a conventional processor, a digital signal processor (DSP), a plurality of microprocessors, one or more microprocessors associated with a DSP core, a controller, a microcontroller, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) circuit, any other type of integrated circuit (IC), a state machine, etc. In general, the processor 32 may execute computer executable instructions stored in a memory (e.g., memory 44 and / or memory 46) of the network device to perform various required functions of the network device. For example, the processor 32 may perform signal encoding, data processing, power control, input / output processing, and / or any other function that enables the network device 30 to operate in a wireless or wired environment. The processor 32 may run application layer programs (e.g., a browser) and / or radio access layer (RAN) programs and / or other communication programs. For example, the processor 32 may also perform security operations, such as authentication, security key negotiation, and / or encryption operations, such as at the access layer and / or application layer.
[0365] like Fig.27C As shown in FIG. 1 , processor 32 is coupled to its communication circuit system (e.g., transceiver 34 and transmit / receive element 36). By executing computer executable instructions, processor 32 can control the communication circuit system so that network device 30 communicates with other network devices via the network connected thereto. In particular, processor 32 can control the communication circuit system so as to execute the instructions herein (e.g., Figure 1-26 The sending and receiving steps described in the claims. Fig.27C The processor 32 and transceiver 34 are depicted as separate components, but it will be appreciated that the processor 32 and transceiver 34 may be integrated together in an electronic package or chip.
[0366] The sending / receiving element 36 can be configured to send signals to other network devices or receive signals from other network devices, and other network devices include M2M servers, gateways, equipment, etc. For example, in an embodiment, the sending / receiving element 36 can be an antenna configured to send and / or receive RF signals. The sending / receiving element 36 can support various networks and air interfaces, such as WLAN, WPAN, cellular, etc. For example, in an embodiment, the sending / receiving element 36 can be a transmitter / detector configured to, for example, send and / or receive IR, UV or visible light signals. In another embodiment, the sending / receiving element 36 can be configured to send and receive both RF and optical signals. It will be appreciated that the sending / receiving element 36 can be configured to send and / or receive any combination of wireless or wired signals.
[0367] Furthermore, although the transmit / receive element 36 is Fig.27C Although depicted as a single element in FIG. 3 , the network device 30 may include any number of transmit / receive elements 36. More specifically, the network device 30 may employ MIMO technology. Therefore, in an embodiment, the network device 30 may include two or more transmit / receive elements 36 (e.g., multiple antennas) for transmitting and receiving wireless signals.
[0368] The transceiver 34 may be configured to modulate signals to be transmitted by the transmit / receive element 36 and demodulate signals received by the transmit / receive element 36. As described above, the network device 30 may have multi-mode capabilities. Thus, for example, the transceiver 34 may include multiple transceivers for enabling the network device 30 to communicate via multiple RATs, such as UTRA and IEEE 802.11.
[0369] The processor 32 can access information from any type of suitable memory (such as non-removable memory 44 and / or removable memory 46), and store data in the memory. For example, the processor 32 can store session contexts in its memory, as described above. The non-removable memory 44 may include a random access memory (RAM), a read-only memory (ROM), a hard disk, or any other type of memory storage device. The removable memory 46 may include a subscriber identity module (SIM) card, a memory stick, a secure digital (SD) memory card, etc. In other embodiments, the processor 32 can access information from a memory that is not physically located on the network device 30 (such as on a server or a home computer), and store data in the memory. The processor 32 can be configured to control the lighting pattern, image or color on the display or indicator 42 to reflect the state of the device or configure the device, as well as particularly underlying networks, applications or other services that communicate with the network device. In one embodiment, the display / indicator 42 can present a graphical user interface shown in Figure 31 and described herein.
[0370] Processor 32 may receive power from power source 48 and may be configured to distribute and / or control power to other components in network device 30. Power source 48 may be any suitable device for powering network device 30. For example, power source 48 may include one or more dry cell batteries (e.g., nickel-cadmium (NiCd), nickel-zinc (NiZn), nickel metal hydride (NiMH), lithium ion (Li ion), etc.), solar cells, fuel cells, etc.
[0371] Processor 32 may also be coupled to a GPS chipset 50 that is configured to provide location information (e.g., longitude and latitude) regarding the current location of network device 30. It will be appreciated that network device 30 may acquire location information via any suitable location determination method while remaining consistent with an embodiment.
[0372] The processor 32 may also be coupled to other peripherals 52, which may include one or more software and / or hardware modules that provide additional features, functionality, and / or wired or wireless connectivity. For example, the peripherals 52 may include various sensors such as accelerometers, biometric (e.g., fingerprint) sensors, electronic compasses, satellite transceivers, sensors, digital cameras (for photos or videos), universal serial bus (USB) ports or other interconnect interfaces, vibration devices, television transceivers, hands-free headsets, Bluetooth modules, FM radio units, digital music players, media players, video game player modules, Internet browsers, and more.
[0373] The network device 30 may be implemented in other devices or equipment, such as sensors, consumer electronics, wearable devices (such as smart watches or smart clothing), medical or electronic health equipment, robots, industrial equipment, drones, vehicles (such as cars, trucks, trains, or airplanes). The network device 30 may be connected to other components, modules, or systems of such devices or equipment via one or more interconnect interfaces (such as an interconnect interface that may include one of the peripheral devices 52).
[0374] Fig.27D is a block diagram of an exemplary computing system 90, which may also be used to implement one or more network devices of a network, such as Figure 1-26 The entities shown in and described herein may operate as an M2M server, gateway, device or other network apparatus in an M2M network, such as Fig.27A and 27B As shown in .
[0375] The computing system 90 may include a computer or server and may be controlled primarily by computer-readable instructions, which may be in the form of software, wherever or by whatever means such software may be stored or accessed. Such computer-readable instructions may be executed within a processor such as a central processing unit (CPU) 91 to cause the computing system 90 to operate. In many known workstations, servers, and personal computers, the central processing unit 91 is implemented by a single-chip CPU called a microprocessor. In other machines, the central processing unit 91 may include multiple processors. A coprocessor 81 is an optional processor distinct from the main CPU 91 that performs additional functions or assists the CPU 91. The CPU 91 and / or the coprocessor 81 may receive, generate, and process data related to the disclosed systems and methods for E2E M2M service layer sessions, such as receiving session credentials or authenticating based on session credentials.
[0376] In operation, the CPU 91 fetches, decodes and executes instructions and transmits information to and from other resources via the computer's main data transfer path, the system bus 80. Such a system bus connects components in the computing system 90 and defines the medium for data exchange. The system bus 80 typically includes data lines for sending data, address lines for sending addresses, and control lines for sending interrupts and for operating the bus. An example of such a system bus 80 is a PCI (Peripheral Component Interconnect) bus.
[0377] The memory coupled to the system bus 80 includes a random access memory (RAM) 82 and a read-only memory (ROM) 93. Such memory includes a circuit system that allows information to be stored and retrieved. ROM 93 generally contains stored data that cannot be easily modified. The data stored in RAM 82 can be read or changed by CPU 91 or other hardware devices. Access to RAM 82 and / or ROM 93 can be controlled by a memory controller 92. The memory controller 92 can provide an address translation function that translates a virtual address into a physical address when an instruction is executed. The memory controller 92 can also provide a memory protection function that isolates processes within the system and isolates system processes from user processes. Therefore, a program running in the first mode can only access memory mapped by its own process virtual address space; unless memory sharing between processes has been set up, it cannot access memory within the virtual address space of another process.
[0378] In addition, the computing system 90 may include a peripheral device controller 83 that is responsible for transmitting instructions from the CPU 91 to peripheral devices such as a printer 94 , a keyboard 95 , a mouse 95 , and a disk drive 85 .
[0379] The display 86 controlled by the display controller 96 is used to display the visual output generated by the computing system 90. Such visual output may include text, graphics, animated graphics, and video. The display 86 may be implemented with a CRT-based video display, an LCD-based flat panel display, a gas plasma-based flat panel display, or a touch panel. The display controller 96 includes the electronic components required to generate the video signal sent to the display 86. In conjunction with the computer executable instructions executed by the CPU 91, the display 86 may generate and operate the graphical user interface described and shown in Figure 31 and the accompanying description thereof.
[0380] Additionally, computing system 90 may include communications circuitry such as, for example, network adapter 97, which may be used to connect computing system 90 to an external communications network, such as Figures 27A-27D The network 12 enables the computing system 90 to communicate with other devices of the network. Whether alone or in combination with the CPU 91, the communication circuit system can be used to perform the present invention (for example, in Figure 1-26 The sending and receiving steps described in the claims) and claims.
[0381] It should be understood that any or all of the systems, methods, and processes described herein may be implemented in the form of computer executable instructions (i.e., program code) stored on a computer-readable storage medium, which, when executed by a machine (such as an apparatus of an M2M network, including, for example, an M2M server, gateway, device, etc.), performs and / or implements the systems, methods, and processes described herein. Specifically, any of the above steps, operations, or functions may be implemented in the form of such computer executable instructions. Computer-readable storage media include volatile and non-volatile, removable and non-removable media implemented in any non-transient (i.e., tangible or physical) method or technology for storing information, but such computer-readable storage media do not include signals. Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other tangible or physical medium that can be used to store desired information and can be accessed by a computer.
[0382] The following is a list of acronyms related to service layer technologies that may appear in the above description. Unless otherwise noted, the acronyms used in this article refer to the corresponding terms listed below:
[0383] API Application Programming Interface
[0384] CoAP Constrained Application Protocol
[0385] CoRE Constrained RESTful Environment
[0386] CSE Public Service Entity
[0387] D2D Device to Device
[0388] DSRC Dedicated Short Range Communication
[0389] F2C Fog to Cloud
[0390] F2F Fog to Fog
[0391] FN Fog Node
[0392] FE Fog Entity
[0393] GUI Graphical User Interface
[0394] HTTP Hypertext Transfer Protocol
[0395] IEEE Institute of Electrical and Electronics Engineers
[0396] IoT
[0397] IP Internet Protocol
[0398] IPv6 Internet Protocol version 6
[0399] LFN Local FN
[0400] RSU Roadside Unit
[0401] WAVE Wireless Access in Vehicular Environments
[0402] WG Working Group
[0403] This written description uses examples to disclose the invention, including the best mode, and also to enable those skilled in the art to practice the invention, including making and using any devices or systems and performing any combined methods. The patentable scope of the invention is defined by the claims, and may include other examples that occur to those skilled in the art. These other examples are intended to be within the scope of the claims if they have elements that do not differ from the literal language of the claims, or if they include equivalent elements that do not differ substantially from the literal language of the claims.< / remotecse> < / node>
Claims
1. A method performed by a first local fog node, the method comprising: receiving a request to provide a service from an application hosted on a device interacting with a first local fog node, wherein the request to provide a service includes a fog service description associated with the service; determining, based on a fog service description associated with the service, that a second local fog node is configured to provide the service; sending an indication of a request to provide a service to a second local fog node; receiving a response message associated with a service from a second local fog node and based on an indication of a request to provide the service, wherein the service is provided by the second fog node, and each of the first local fog node and the second local fog node is a network node including a functionality that is closer to an application than a hoster of the service; updating information stored at the first local fog node to indicate that the second local fog node is configured to provide the service, wherein the information includes one or more of an identifier associated with the second local fog node and an identifier associated with the request to perform the service; and Sends a response message associated with the service to the application. 2 . The method of claim 1 , wherein the request to provide a service further comprises one or more of an identifier associated with the application and an identifier associated with the request to perform a service.
3. The method of claim 2, wherein the indication of the request to provide the service comprises one or more of: an identifier associated with the first local fog node, an identifier of the fog region associated with the first local fog node, an identifier associated with the application, and an identifier associated with the request to perform the service.
4. The method of claim 1 , further comprising determining whether one or more policies stored at the first local fog node indicate that the application is authorized to receive the service before sending the indication of the request to provide the service.
5. The method of claim 4, wherein the second local fog node determines whether one or more policies stored at the second local fog node indicate that the first local fog node is authorized to receive the response message associated with the service before sending the response message associated with the service.
6. A device comprising a processor and a memory, the memory storing computer executable instructions that, when executed by the processor, cause the device to implement a first local fog node, the first local fog node being configured to perform operations comprising: receiving a request to provide a service from an application hosted on a device interacting with a first local fog node, wherein the request to provide a service includes a fog service description associated with the service; determining, based on a fog service description associated with the service, that a second local fog node is configured to provide the service; sending an indication of a request to provide a service to a second local fog node; receiving a response message associated with a service from a second local fog node and based on an indication of a request to provide the service, wherein the service is provided by the second fog node, and each of the first local fog node and the second local fog node is a network node including a functionality that is closer to an application than a hoster of the service; updating information stored at the first local fog node to indicate that the second local fog node is configured to provide the service, wherein the information includes one or more of an identifier associated with the second local fog node and an identifier associated with the request to perform the service; and Sends a response message associated with the service to the application.
7. The apparatus of claim 6, wherein the request to provide the service further comprises one or more of an identifier associated with the application and an identifier associated with the request to perform the service.
8. The apparatus of claim 7, wherein the indication of the request to provide the service comprises one or more of: an identifier associated with the first local fog node, an identifier of the fog region associated with the first local fog node, an identifier associated with the application, and an identifier associated with the request to perform the service.
9. The apparatus of claim 6, wherein the instructions, when executed, further cause the first local fog node to perform operations comprising: determining whether one or more policies stored at the first local fog node indicate that the application is authorized to receive the service before sending the indication of the request to provide the service.
10. The apparatus of claim 9, wherein the second local fog node determines whether one or more policies stored at the second local fog node indicate that the first local fog node is authorized to receive the response message associated with the service before sending the response message associated with the service.
11. A computer-readable storage medium comprising computer-executable instructions, which when executed by a device cause the device to implement a first local fog node, the first local fog node being configured to perform operations comprising: receiving a request to provide a service from an application hosted on a device interacting with a first local fog node, wherein the request to provide a service includes a fog service description associated with the service; determining, based on a fog service description associated with the service, that a second local fog node is configured to provide the service; sending an indication of a request to provide a service to a second local fog node; receiving a response message associated with a service from a second local fog node and based on an indication of a request to provide the service, wherein the service is provided by the second fog node, and each of the first local fog node and the second local fog node is a network node including a functionality that is closer to an application than a hoster of the service; updating information stored at the first local fog node to indicate that the second local fog node is configured to provide the service, wherein the information includes one or more of an identifier associated with the second local fog node and an identifier associated with the request to perform the service; and Sends a response message associated with the service to the application.
12. The computer-readable storage medium of claim 11, wherein the request to provide a service further comprises one or more of an identifier associated with an application and an identifier associated with the request to perform the service.
13. The computer-readable storage medium of claim 12, wherein the indication of the request to provide the service comprises one or more of: an identifier associated with the first local fog node, an identifier of the fog region associated with the first local fog node, an identifier associated with the application, and an identifier associated with the request to perform the service.
14. The computer-readable storage medium of claim 11, wherein the instructions, when executed, further cause the first local fog node to perform operations comprising: determining whether one or more policies stored at the first local fog node indicate that the application is authorized to receive the service before sending the indication of the request to provide the service.
Citation Information
Patent Citations
Service layer southbound interface and quality of service
CN105493525A
Service layer interworking using mqtt protocol
CN106797391A
Method for supporting negotiation service at a service layer
CN107113182A
Cross Device Application Discovery And Control
US20160080475A1
