Information age optimization method, device, computer equipment and storage medium
Through multiple rounds of pre-deployment and sampling frequency adjustment algorithms, the network load problem caused by too fast device information collection frequency is solved, information processing delay and service delay are reduced, information timeliness and refined perception are improved, and data are ensured. Efficient transmission of packets.
Patent Information
- Application Number
- CN202210323496.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-29
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-03-29
AI Technical Summary
In the existing technology, device information collection frequency is too fast, resulting in excessive network load, which may lead to network congestion and the inability of data packets to effectively reach the destination node, affecting the timeliness of information and the accuracy of system decision-making.
Through multiple rounds of pre-deployment of the service function diagram, it is determined whether the device information age is lower than the maximum tolerated information age, and a sampling frequency adjustment algorithm is used to adjust the sampling frequency of devices that do not meet the conditions until the information age of all devices meets the maximum tolerated information age. , combining the distributed deployment method and the dichotomy method to adjust the sampling frequency.
It reduces the information processing delay and service delay, reduces the information age of the device, improves the refinement and timeliness of data, avoids network congestion, and ensures the effective transmission of data packets.
Smart Images

Figure CN114675845B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to information age optimization methods, devices, computer equipment and storage media. Background Art
[0002] A large number of devices need to be automated and intelligent. If the equipment is monitored in real time and predictive maintenance is achieved, the equipment can be operated efficiently, safely, reliably and at low cost. Monitoring equipment is inseparable from the Industrial Control System (ICS), which is a computer-based system used to monitor physical processes and is widely used in key national infrastructure industries such as energy, transportation, water conservancy, security, food, and large-scale manufacturing. Figure 1 The ICS architecture shown provides a good reference for the construction of ICS in various industries.
[0003] For monitoring systems, the timeliness of device information is an important performance indicator. If the destination of information receives outdated information, it may reduce the accuracy and reliability of system decisions and cause huge safety hazards. An important indicator for measuring the timeliness of information is the age of information (AoI), which is the time from the generation to the reception of the latest received data packet. After the data is generated, as time passes in one direction, the obsolescence of the data information also increases in one direction and continues to age. In addition, in order to implement accurate decision-making and control, the monitoring system requires refined perception of the data, that is, refined sampling of the data.
[0004] In order to perceive data in real time and in detail, existing methods generally expect information collection nodes to collect information as quickly as possible, that is, to set a higher sampling frequency. Due to limited network resources, when nodes collect information at a faster rate, it will cause a large network load and even cause network congestion, which will prevent data packets from effectively reaching the destination node. Summary of the invention
[0005] The purpose of the embodiments of the present application is to propose an information age optimization method, device, computer equipment and storage medium to solve the problem in the prior art that network resources are limited. When nodes collect information at a faster rate, it will cause a large network load and even cause network congestion, which will make it impossible for data packets to effectively reach the destination node.
[0006] In order to solve the above technical problems, the present application provides an information age optimization method, which adopts the following technical solution and includes the following steps:
[0007] Carry out the first round of pre-deployment of the service function diagram;
[0008] Based on the first round of pre-deployment, determine whether the current information age of each device is lower than the preset maximum tolerable information age of the device;
[0009] For devices that meet the maximum tolerable information age, no processing is performed. For devices that do not meet the maximum tolerable information age, the sampling frequency is adjusted using a sampling frequency adjustment algorithm.
[0010] A second round of pre-deployment is performed on the service function graph, and the sampling frequency of the devices that do not meet the conditions is adjusted until the information age of all devices meets the maximum tolerable information age.
[0011] Furthermore, the step of performing a first round of pre-deployment on the service function graph specifically includes:
[0012] The device makes a deployment request to the server;
[0013] The server decides whether to accept the deployment request from the device according to the revenue situation.
[0014] Furthermore, the step of judging whether the current information age of each device is lower than the preset maximum tolerable information age of the device according to the first round of pre-deployment situation specifically includes:
[0015] Preset the maximum tolerated information age for each device;
[0016] Each device is based on the formula Calculate the information age, where t represents the sampling frequency, T d It indicates the time from when a data packet is generated to when it is transmitted to the destination, that is, the service delay in the network;
[0017] The calculated information age is compared with the maximum tolerable information age to determine whether the current information age of each device is lower than the preset maximum tolerable information age of the device.
[0018] Furthermore, the step of not processing the devices that meet the maximum tolerable information age and adjusting the sampling frequency of the devices that do not meet the maximum tolerable information age using the sampling frequency adjustment algorithm specifically includes:
[0019] Find out the devices whose information age does not meet the maximum tolerable information age;
[0020] For devices that do not meet the maximum tolerated information age, the sampling frequency adjustment algorithm is called to make adjustments.
[0021] Furthermore, the parallel service chain is pre-deployed for a second round, and the sampling frequency of the devices that do not meet the conditions is adjusted until the information age of all devices meets the maximum tolerable information age.
[0022] S41, respectively calculate the deployment plan of each SFG to understand the demand release of each SFG for network resources;
[0023] S42, adjusting the sampling frequency of the device that does not meet the maximum tolerance AoI, and randomly increasing or decreasing the sampling frequency by 5% to 15% until all devices meet the maximum tolerance AoI requirement in an ideal network environment;
[0024] S43: if it is the first time to adjust the information age of the device, then execute step S44; otherwise, if it is determined that the device does not meet the maximum tolerance AoI for the first time, execute step S42; if the device information age does not meet the maximum tolerance AoI for the second time, the AoI of this round will be greater than or less than the AoI of the previous round. For devices with an AoI greater than the AoI of the previous round, the sampling frequency of the device is reversed from the original adjustment rule on the basis of the initial sampling frequency, that is, if the AoI of the previous round is increased, the AoI of this round will be decreased; if the AoI of the previous round is decreased, the AoI of this round will be increased; for AoI less than the AoI of the previous round, the same adjustment rule of the previous round is executed; if the device does not meet the maximum tolerance AoI for the third time or more, the sampling frequency is adjusted according to the three situations that the AoI of this round is greater than the AoI of the previous two rounds, less than the AoI of the previous two rounds, and between the AoI of the previous two rounds;
[0025] S44, under the given sampling frequency condition, all SFGs are deployed using a distributed game matching algorithm;
[0026] S45, recalculating the average AoI of each device;
[0027] S46. If the average AoI is improved compared with the previous round of deployment, continue to adjust the sampling frequency of the device with the largest AoI and repeat steps S43 to S45. Otherwise, terminate the algorithm.
[0028] Furthermore, the step of adjusting the sampling frequency according to the three situations that the AoI of this round is greater than the AoI of the previous two rounds, less than the AoI of the previous two rounds, and between the AoI of the previous two rounds specifically includes:
[0029] If the AoI of this round is greater than the AoI of the previous two rounds, the binary method is used to set the sampling frequency of the next round. The sampling frequency of the previous round is used as the end point, and the sampling frequency of the previous round is used as the starting point. Binary division is performed to determine the sampling frequency of the next round.
[0030] If the AoI of this round is smaller than the AoI of the previous two rounds, the same sampling rules as the previous round are executed to determine the sampling frequency of the next round;
[0031] If the AoI of this round is between the AoIs of the previous two rounds, the binary search method is used to determine the sampling frequency of the next round, with the larger sampling frequency of this round and the previous round as the end point and the smaller sampling frequency as the starting point.
[0032] In order to solve the above technical problems, the present application also provides an information age optimization device, which adopts the following technical solution, including:
[0033] A pre-deployment module is used to perform the first round of pre-deployment of the service function graph;
[0034] A judgment module, used to judge whether the current information age of each device is lower than a preset maximum tolerable information age of the device according to the first round of pre-deployment conditions;
[0035] An adjustment module is used for not processing the devices that meet the maximum tolerable information age, and for adjusting the sampling frequency of the devices that do not meet the maximum tolerable information age by using a sampling frequency adjustment algorithm;
[0036] A redeployment module is used to perform a second round of pre-deployment on the service function diagram and adjust the sampling frequency of devices that do not meet the conditions until the information age of all devices meets the maximum tolerable information age. Further, the deployment module includes:
[0037] Request module, used by the device to make deployment requests to the server;
[0038] The response module is used for the server to decide whether to accept the deployment request from the device according to the revenue situation.
[0039] In order to solve the above technical problems, the present application also provides a computer device, which adopts the technical solution described below, including a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the above-mentioned information age optimization method when executing the computer-readable instructions.
[0040] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, which adopts the technical solution described below. The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the above-mentioned information age optimization method are implemented.
[0041] Compared with the prior art, the present application has the following beneficial effects: by performing multiple rounds of pre-deployment of the service function graph, the sampling frequency of the devices that do not meet the maximum tolerable information age is adjusted by using a sampling frequency adjustment algorithm until the information age of all devices meets the maximum tolerable information age; the introduction of the service graph deployment process reduces the processing delay of the information, thereby reducing the service delay of the information in the edge network and reducing the information age of the device; the sampling frequency adjustment algorithm is used to adjust the sampling frequency by using a binary method, thereby reducing the average sampling frequency and improving the refinement of the data; the distributed deployment method of the service graph is combined with the sampling frequency adjustment algorithm to reduce the information age of the device, thereby improving the timeliness of the information and the refinement of the data perception. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0043] Figure 1 It is a schematic diagram of the industrial control system architecture in the prior art;
[0044] Figure 2 is an exemplary system architecture diagram to which the present application may be applied;
[0045] Figure 3 is a flow chart of an embodiment of the information age optimization method of the present application;
[0046] Figure 4 is the Service Function Map (SFG) of this application;
[0047] Figure 5 is a graph of the sampling frequency and average information age of this application;
[0048] Figure 6 The device information age of this application is greater than the previous two rounds of schematic diagrams;
[0049] Figure 7 The device information age of this application is less than the previous two rounds of schematic diagrams;
[0050] Figure 8 It is a schematic diagram that the device information age of this application is between the first two rounds;
[0051] Fig. 9 It is the calculation framework diagram of this application;
[0052] Fig.10It is a flow chart of the concurrent service graph distributed deployment and sampling frequency adjustment joint algorithm of this application;
[0053] Fig.11 is a structural schematic diagram of an embodiment of the information age optimization device of the present application;
[0054] Fig.12 It is a structural diagram of an embodiment of a computer device of the present application. DETAILED DESCRIPTION
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0056] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0057] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0058] like Figure 2 As shown, the system architecture 100 may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0059] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0060] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0061] The server 105 may be a server that provides various services, for example, a background server that provides support for pages displayed on the first terminal device 101 , the second terminal device 102 , and the third terminal device 103 .
[0062] It should be noted that the information age optimization method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the information age optimization device is generally set in the server / terminal device.
[0063] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0064] Embodiment 1
[0065] Continue to refer Figure 3 , shows a flow chart of an embodiment of the information age optimization method of the present application. The information age optimization method comprises the following steps:
[0066] Step S1, performing the first round of pre-deployment of the service function graph.
[0067] In this embodiment, step S1 further includes the steps of:
[0068] The device makes a deployment request to the server;
[0069] The server decides whether to accept the deployment request from the device according to the revenue situation.
[0070] The first round of pre-deployment of the service function diagram is completed before the equipment officially works. Before the equipment officially works, the information age optimization method of the present invention is used to continuously adjust the sampling frequency, and finally determine the sampling frequency of each device, and then the equipment starts to work officially.
[0071] Figure 4 is the service function graph (SFG) of this application. Figure 4 As shown in the figure, each device has a preference list for general servers, that is, which general server it is willing to be deployed on first and which server is the last choice. At the same time, each server has different degrees of benefits for accepting the deployment request of the device. There is also a device preference list for evaluating the benefits of the deployment request applied later and whether to reject the deployed request. The final result is that all devices have completed the deployment.
[0072] Gateway w will connect to different general servers, that is, access the network from different places, so the distance to other general servers is different, and the delay is also different. The shortest distance between the general server accessed by gateway w and other general servers in the network will be calculated through the Floyd algorithm, saved as a list, and then sorted in ascending order. The sorted list is the device's preference list.
[0073] The general server will evaluate the applications selected by the device and prioritize the SFGs used by the applications. Applications with high latency requirements have high priorities, while applications with low latency requirements have relatively low priorities. Therefore, the general server will prioritize the deployment of VNFs in SFGs with high priorities to ensure that data packets of applications with high latency requirements can be processed first to meet the needs of these devices. The general server preference list is a list formed by sorting by priority.
[0074] The process of requesting deployment on the device side is as follows: first, each device will send a deployment request to the first general server in its preference list. When the server satisfies the request and rejects the deployment request, the device in this round of deployment is abandoned. In the next round of deployment, the target server will be the next server in the device's preference list.
[0075] The process of requesting deployment on the server side is: when receiving a deployment request from the device side, there are two ways to handle the request according to its own resource situation. When the general server is not fully loaded, that is, it can meet the resources required for instantiating the request, it will directly accept the deployment request; when the general server is fully loaded, that is, it cannot meet the resources required for instantiating the request, there are two ways to handle the request. When the priority of the requested VNF is higher than some or all of the deployed requests, the request with the lowest priority among the deployed requests will be rejected and the current deployment request will be accepted; when the priority of the requested VNF (virtual network feature) is lower than all deployed requests, the current request will be directly rejected. Whether to queue up will be selected by the device.
[0076] Repeat the matching between the device side and the server side until the deployment requests of all devices are accepted.
[0077] In this embodiment, the electronic device (eg Figure 1 The server / terminal device shown in the figure can receive the information age optimization request through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAXX, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0078] Step S2: Based on the first round of pre-deployment, determine whether the current information age of each device is lower than the preset maximum tolerable information age of the device.
[0079] In this embodiment, step S2 further includes the steps of:
[0080] Preset the maximum tolerated information age for each device;
[0081] Each device is based on the formula Calculate the information age, where t represents the sampling frequency, T d It indicates the time from when a data packet is generated to when it is transmitted to the destination, that is, the service delay in the network;
[0082] The calculated information age is compared with the maximum tolerable information age to determine whether the current information age of each device is lower than the preset maximum tolerable information age of the device.
[0083] Step S3: No processing is performed on the devices that meet the maximum tolerable information age, and the sampling frequency of the devices that do not meet the maximum tolerable information age is adjusted using a sampling frequency adjustment algorithm.
[0084] In this embodiment, step S3 further includes the steps of:
[0085] Find out the devices whose information age does not meet the maximum tolerable information age;
[0086] For devices that do not meet the maximum tolerable information age, the sampling frequency adjustment algorithm is called for adjustment. The sampling frequency adjustment can be composed of several rounds. If a device does not meet the maximum tolerable information age for the third time or more, the entire device has at least undergone two frequency adjustments. The third frequency adjustment needs to refer to the impact of the previous two rounds of sampling frequency adjustments on the information age to determine the next round of adjustment strategy.
[0087] Step S4, performing a second round of pre-deployment on the parallelized service chain, and adjusting the sampling frequency of devices that do not meet the conditions until the information age of all devices meets the maximum tolerable information age.
[0088] Figure 5 This is a graph showing the relationship between the sampling frequency and the average information age of this application. First of all, considering that the performance of the device itself is limited and the efficiency of information processing is relatively low, it is considered to offload the data to the industrial edge computing (IEC) network for computing and processing to improve processing efficiency. In IEC, NFV (Network Functions Virtualization) technology decouples the network functions of data processing from proprietary hardware, thereby improving the flexibility of network management. Through the distributed deployment of the service function graph (SFG) in NFV, the service latency of data in the network can be reduced, thereby degrading the information age. For the sampling frequency, the relationship between the sampling frequency and the average information age is as follows: Figure 5 As shown in the figure, it is a parabolic relationship. When the sampling frequency is high, a large number of data packets will be transmitted in one sampling period. When a large number of devices transmit a large number of data packets at the same time, the processing performance of the network server node may be reduced. Data packets that are not processed in time will be queued for processing. Therefore, the queuing delay will cause the AoI to increase. When the sampling frequency is low, the sampling period will be relatively large, and the receiving end will need to wait for a long time before receiving a new data packet. During the waiting process, the AoI of the old data will continue to increase.
[0089] The sampling frequency adjustment process is:
[0090] (1) First, in an ideal network environment, the deployment plan of each SFG is calculated separately to understand the demand release of each SFG for network resources.
[0091] (2) The sampling frequency of the devices that do not meet the maximum tolerance AoI is adjusted. According to a certain probability, the sampling frequency is randomly increased or decreased by 5% to 15%, and 10% is taken here, until all devices can meet the maximum tolerance AoI requirements in an ideal network environment.
[0092] (3) If this is the first time to make adjustments, skip to (4), otherwise perform the following adjustments:
[0093] a) When the device fails to meet the maximum tolerance AoI for the first time: the adjustment rule of (2) is executed, i.e., the adjustment is randomly increased or decreased by 5% to 15%, where 10% is taken.
[0094] b) If the device fails to meet the maximum tolerance AoI for the second time, the AoI of this round may be greater or less than the AoI of the previous round. For devices with an AoI greater than the previous round, the sampling frequency of the device will be reversed from the original adjustment rules based on the initial sampling frequency, that is, if the previous round was increased, the current round will be decreased, and if the previous round was decreased, the current round will be increased. For devices with an AoI less than the previous round, the same adjustment rules of the previous round will be executed.
[0095] c) The device fails to meet the maximum tolerance AoI for the third time or more: At this time, the AoI will appear in three situations, all of which are greater than the AoI of the previous two rounds, all of which are less than the AoI of the previous two rounds, and between the AoI of the previous two rounds.
[0096] For the case where both are greater than the previous two rounds, such as Figure 6 As shown, Figure 6 If the device information age of this application is greater than that of the previous two rounds of schematic diagrams, the binary search method is used to set the sampling frequency of the next round. The sampling frequency of the previous round is taken as the end point, and the sampling frequency of the previous round is taken as the starting point. Binary search is performed to determine the sampling frequency of the next round.
[0097] For the case where both are less than, such as Figure 7 As shown, Figure 7 If the device information age of this application is less than that of the previous two rounds, the same sampling rules as the previous round are executed to determine the sampling frequency of the next round.
[0098] For situations in between, such as Figure 8 As shown, Figure 8 This is a schematic diagram of the device information age of this application being between the previous two rounds. The same binary method is used, with the larger sampling frequency of this round and the previous round as the end point and the smaller one as the starting point, and binary division is performed to determine the sampling frequency of the next round.
[0099] (4) Next, under the given sampling frequency condition, a distributed game matching algorithm is used to deploy all SFGs.
[0100] (5) Recalculate the average AoI of each device.
[0101] (6) If the average AoI is improved compared to the previous round of deployment, continue to adjust the sampling frequency of the device with the largest AoI and repeat (3) to (5); otherwise, terminate the algorithm.
[0102] Fig. 9 This is the calculation framework flow chart of this application. Fig. 9 As shown, SFG is first deployed, and for devices that do not meet the conditions, the sampling frequency is adjusted, and redeployed according to the new sampling frequency, and finally a satisfactory sampling frequency is obtained.
[0103] Fig.10 is a flow chart of the SFG and sampling frequency adjustment joint algorithm of the present application, such as Fig.10 As shown, the final sampling frequency is calculated, including the process:
[0104] Input: network topology (network_topo), device initial sampling frequency (list_original_T), device maximum tolerated AoI (list_MAX_AoI).
[0105] Output: The final sampling frequency of the device (list_final_T).
[0106] S101, stop<-False, stop is the stop mark of the sampling frequency algorithm.
[0107] S102: Calculate and obtain the preference lists of the device side and the server side, list_device_preference and list_sever_preference respectively.
[0108] Each device's service graph is expected to be deployed on a server with relatively low latency. There are many servers in the network, and the result of the calculation is actually the time from the device to the server to the destination. The server preference list is that deploying different SFGs will have different amounts of benefits.
[0109] S103 . Define a list to store the AoI of each device after SFG deployment, list_current_AoI.
[0110] S104, While (flag), do / / Start the loop operation to find the optimal sampling frequency, where flag refers to the indicator for determining whether the information age of all devices meets the requirement of being less than the maximum tolerable information age.
[0111] S105: Deploy the service function diagram.
[0112] S106. Calculate the AoI of each device and store it in list_current_AoI.
[0113] S107. if each element in list_current_AoI is less than or equal to the corresponding element in list_MAX_AoI, do.
[0114] list_current_AoI stores the current value of the information age of each device, and the element refers to the value of the information age.
[0115] S108. Assign the sampling frequency at this time to 1ist_final_T and output it.
[0116] S109, End.
[0117] S110, E1se.
[0118] S111. For devices that do not meet the AoI, adjust the sampling frequency according to the adjustment rules.
[0119] S112. Continue to execute steps S105 to S111.
[0120] It can be seen that the existing method obtains the optimal information update cycle by solving an optimization problem with minimizing the average information age or peak information age as the objective function. In order to ensure the timeliness of information, the current method minimizes the average AoI by optimizing the scheduling strategy of the node queue. The method based on the queue scheduling strategy optimization aims to find an optimal information scheduling strategy to reduce the queuing delay of the data, thereby reducing the service delay to minimize the average information age or peak information age. In addition, the sampling frequency will also have a significant impact on the size of the AoI. Therefore, in order to achieve the reduction of AoI and improve the degree of refined perception of data, the data transmission process and the sampling process need to be comprehensively considered.
[0121] In this embodiment, the service function graph is pre-deployed for multiple rounds, and the sampling frequency of the devices that do not meet the maximum tolerable information age is adjusted by using a sampling frequency adjustment algorithm until the information age of all devices meets the maximum tolerable information age; the deployment process of the service graph is introduced to reduce the processing delay of the information, thereby reducing the service delay of the information in the edge network and reducing the information age of the device; the sampling frequency adjustment algorithm is used to adjust the sampling frequency by using a binary search method, thereby reducing the average sampling frequency and improving the refinement of the data; the distributed deployment method of the service graph is combined with the sampling frequency adjustment algorithm to reduce the information age of the device, thereby improving the timeliness of the information and the refinement of the data perception.
[0122] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0123] The construction of smart cities is inseparable from the development of industrialization. Therefore, this application can be applied to the field of smart city construction, thereby promoting the construction of smart cities.
[0124] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0125] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0126] Embodiment 2
[0127] Further references Fig.11 , as a response to the above Figure 3 In order to realize the method shown in the figure, the present application provides an embodiment of an information age optimization device, and the device embodiment is Figure 3 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0128] like Fig.11 As shown, the information age optimization device 400 described in this embodiment includes: a pre-deployment module 401, a judgment module 402, an adjustment module 403 and a redeployment module 404. Among them:
[0129] A pre-deployment module 401 is used to perform a first round of pre-deployment of the service function graph;
[0130] A judgment module 402 is used to judge whether the current information age of each device is lower than a preset maximum tolerable information age of the device according to the first round of pre-deployment situation;
[0131] An adjustment module 403 is configured to not process the devices that meet the maximum tolerable information age, and to adjust the sampling frequency of the devices that do not meet the maximum tolerable information age using a sampling frequency adjustment algorithm;
[0132] The redeployment module 404 is used to perform a second round of pre-deployment on the service function graph and adjust the sampling frequency of the devices that do not meet the conditions until the information age of all devices meets the maximum tolerable information age.
[0133] In some optional implementations of this embodiment, the deployment module 404 further includes:
[0134] Request module, used by the device to make deployment requests to the server;
[0135] The response module is used for the server to decide whether to accept the deployment request from the device according to the revenue situation.
[0136] By adopting this embodiment, the service function graph is pre-deployed for multiple rounds, and the sampling frequency of the devices that do not meet the maximum tolerable information age is adjusted by using a sampling frequency adjustment algorithm until the information age of all devices meets the maximum tolerable information age; the deployment process of the service graph is introduced to reduce the processing delay of the information, thereby reducing the service delay of the information in the edge network and reducing the information age of the device; the sampling frequency adjustment algorithm is adopted to adjust the sampling frequency by using a binary method, thereby reducing the average sampling frequency and improving the refinement of the data; the distributed deployment method of the service graph is combined with the sampling frequency adjustment algorithm to reduce the information age of the device, thereby improving the timeliness of the information and the refinement of the data perception.
[0137] Embodiment 3
[0138] To solve the above technical problems, the present application also provides a computer device. Figure 6 , Figure 6 This is a basic structural block diagram of the computer device in this embodiment.
[0139] The computer device 6 includes a memory 61, a processor 62, and a network interface 63 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 6 having a component memory 61, a processor 62, and a network interface 63, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital processor (DSP), an embedded device, etc.
[0140] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0141] The memory 61 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 61 can be an internal storage unit of the computer device 6, such as a hard disk or memory of the computer device 6. In other embodiments, the memory 61 can also be an external storage device of the computer device 6, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 6. Of course, the memory 61 can also include both the internal storage unit of the computer device 6 and its external storage device. In this embodiment, the memory 61 is generally used to store the operating system and various application software installed on the computer device 6, such as computer-readable instructions of the information age optimization method, etc. In addition, the memory 61 can also be used to temporarily store various types of data that have been output or are to be output.
[0142] The processor 62 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 62 is generally used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is used to run computer-readable instructions stored in the memory 61 or process data, such as computer-readable instructions for running the information age optimization method.
[0143] The network interface 63 may include a wireless network interface or a wired network interface. The network interface 63 is generally used to establish a communication connection between the computer device 6 and other electronic devices.
[0144] By adopting this embodiment, the service function graph is pre-deployed for multiple rounds, and the sampling frequency of the devices that do not meet the maximum tolerable information age is adjusted by using a sampling frequency adjustment algorithm until the information age of all devices meets the maximum tolerable information age; the deployment process of the service graph is introduced to reduce the processing delay of the information, thereby reducing the service delay of the information in the edge network and reducing the information age of the device; the sampling frequency adjustment algorithm is adopted to adjust the sampling frequency by using a binary method, thereby reducing the average sampling frequency and improving the refinement of the data; the distributed deployment method of the service graph is combined with the sampling frequency adjustment algorithm to reduce the information age of the device, thereby improving the timeliness of the information and the refinement of the data perception.
[0145] Embodiment 4
[0146] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the information age optimization method as described above.
[0147] By adopting this embodiment, the service function graph is pre-deployed for multiple rounds, and the sampling frequency of the devices that do not meet the maximum tolerable information age is adjusted by using a sampling frequency adjustment algorithm until the information age of all devices meets the maximum tolerable information age; the deployment process of the service graph is introduced to reduce the processing delay of the information, thereby reducing the service delay of the information in the edge network and reducing the information age of the device; the sampling frequency adjustment algorithm is adopted to adjust the sampling frequency by using a binary method, thereby reducing the average sampling frequency and improving the refinement of the data; the distributed deployment method of the service graph is combined with the sampling frequency adjustment algorithm to reduce the information age of the device, thereby improving the timeliness of the information and the refinement of the data perception.
[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0149] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A method for optimizing information age, characterized in that: The steps include: S1. Perform the first round of pre-deployment of the service function diagram; S2. According to the first round of pre-deployment, determine whether the current information age of each device is lower than the preset maximum tolerable information age of the device; S3. For devices that meet the maximum tolerable information age, no processing is performed. For devices that do not meet the maximum tolerable information age, the sampling frequency of the devices is adjusted using a sampling frequency adjustment algorithm. S4, performing a second round of pre-deployment of the service function diagram, and adjusting the sampling frequency of devices that do not meet the conditions until the information age of all devices meets the maximum tolerable information age; The step S4 of performing a second round of pre-deployment on the service function diagram and adjusting the sampling frequency of devices that do not meet the conditions until the information age of all devices meets the maximum tolerable information age specifically includes: S41, respectively calculate the deployment plan of each SFG to understand the demand release of each SFG for network resources; S42, adjusting the sampling frequency of the devices that do not meet the maximum tolerance AoI, and randomly increasing or decreasing the sampling frequency by 5% to 15% until all devices meet the maximum tolerance AoI requirements in an ideal network environment; S43: If it is the first time to adjust the information age of the device, then execute step S44; otherwise, if it is determined that the device does not meet the maximum tolerance AoI for the first time, execute step S42; if the device information age does not meet the maximum tolerance AoI for the second time, the AoI of this round will be greater than or less than the AoI of the previous round. For devices with an AoI greater than the AoI of the previous round, the sampling frequency of the device is reversed from the original adjustment rule based on the initial sampling frequency, that is, if the previous round is an increase, the current round will be adjusted downward, and if the previous round is a decrease, the current round will be adjusted upward. For AoI less than the previous round, the same adjustment rule as the previous round is executed. If the device does not meet the maximum tolerance AoI for the third time or more, the sampling frequency is adjusted according to the three situations: the AoI of this round is greater than the AoI of the previous two rounds, the AoI of this round is less than the AoI of the previous two rounds, and the AoI is between the AoI of the previous two rounds; S44, under the given sampling frequency condition, all SFGs are deployed using a distributed game matching algorithm; S45, recalculating the average AoI of each device; S46. If the average AoI is improved compared to the previous round of deployment, continue to adjust the sampling frequency of the device with the largest AoI and repeat steps S43 to S45, otherwise terminate the algorithm; The steps of adjusting the sampling frequency according to the three situations that the AoI of this round is greater than the AoI of the previous two rounds, less than the AoI of the previous two rounds, and between the AoI of the previous two rounds specifically include: If the AoI of this round is greater than the AoI of the previous two rounds, the binary method is used to set the sampling frequency of the next round. The sampling frequency of the previous round is used as the end point, and the sampling frequency of the previous round is used as the starting point. Binary division is performed to determine the sampling frequency of the next round. If the AoI of this round is smaller than the AoI of the previous two rounds, the same sampling rules as the previous round are executed to determine the sampling frequency of the next round; If the AoI of this round is between the AoIs of the previous two rounds, the binary search method is used to determine the sampling frequency of the next round, with the larger sampling frequency of this round and the previous round as the end point and the smaller sampling frequency as the starting point.
2. The information age optimization method according to claim 1, characterized in that: The step S1 of performing the first round of pre-deployment of the service function diagram specifically includes: The device makes a deployment request to the server; The server decides whether to accept the deployment request from the device according to the revenue situation.
3. The information age optimization method according to claim 1, characterized in that: The step S2, judging whether the current information age of each device is lower than the preset maximum tolerable information age of the device according to the first round of pre-deployment, specifically includes: Preset the maximum tolerated information age for each device; Each device is based on the formula Calculate the information age, where t represents the sampling frequency, It indicates the time from when a data packet is generated to when it is transmitted to the destination, that is, the service delay in the network; The calculated information age is compared with the maximum tolerable information age to determine whether the current information age of each device is lower than the preset maximum tolerable information age of the device.
4. The information age optimization method according to claim 3, characterized in that: The step S3 of not processing the devices that meet the maximum tolerable information age and adjusting the sampling frequency of the devices that do not meet the maximum tolerable information age using the sampling frequency adjustment algorithm specifically includes: Find out the devices whose information age does not meet the maximum tolerable information age; For devices that do not meet the maximum tolerable information age, the sampling frequency adjustment algorithm is called to make adjustments.
5. An information age optimization device, characterized in that: The information age optimization method as claimed in any one of claims 1 to 4 comprises: A pre-deployment module is used to perform the first round of pre-deployment of the service function graph; A judgment module, used to judge whether the current information age of each device is lower than a preset maximum tolerable information age of the device according to the first round of pre-deployment conditions; An adjustment module is used for not processing the devices that meet the maximum tolerable information age, and for adjusting the sampling frequency of the devices that do not meet the maximum tolerable information age by using a sampling frequency adjustment algorithm; The redeployment module is used to perform a second round of pre-deployment on the service function diagram and adjust the sampling frequency of the devices that do not meet the conditions until the information age of all devices meets the maximum tolerable information age.
6. The information age optimization device according to claim 5, characterized in that: The pre-deployment module includes: Request module, used by the device to make deployment requests to the server; The response module is used for the server to decide whether to accept the deployment request from the device according to the revenue situation.
7. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the information age optimization method according to any one of claims 1 to 4 when executing the computer-readable instructions.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the information age optimization method according to any one of claims 1 to 4.
