An intelligent traceability tracking system for commodity supply chains
By cooperating with the acquisition of traceability data and analysis modules, edge and central resources are reasonably allocated, which solves the problem of improper resource allocation in commodity supply chain traceability data processing and improves the stability and efficiency of the intelligent traceability and tracking system.
Patent Information
- Application Number
- CN202410903241.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-08
AI Technical Summary
In the existing commodity supply chain traceability data processing, data transmission consumes a large amount of network bandwidth and the cloud computing model increases the risk of data leakage, and different edge servers have different computing resource requirements for the central server, resulting in unstable operation of the intelligent traceability and tracking system and data processing Decreased efficiency and reduced service quality.
The traceability data is obtained through the data acquisition module. The edge resource analysis module obtains the basic configuration and resource reservation coefficient of the target edge server. The central resource analysis module obtains the central resource scheduling coefficient. The computing resource allocation module allocates computing resources and reasonably allocates edge and central resources. resources to ensure system stability.
It achieves a reasonable allocation of edge server resources, reduces the load pressure on the central server, improves the operating efficiency and stability of the traceability and tracking system, and avoids waste of resources.
Smart Images

Figure CN118446718B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of edge computing resource management technology, and in particular to an intelligent traceability tracking system for a commodity supply chain. Background Art
[0002] The intelligent traceability and tracking system for the commodity supply chain, relying on cutting-edge technologies such as blockchain, RFID, the Internet of Things, big data, and artificial intelligence, has achieved accurate and transparent tracking of commodities from production to sales, significantly improving the controllability and credibility of the supply chain.
[0003] Regarding the processing of traceability data in conventional commodity supply chains, it usually relies on each edge node to upload the relevant data detected by the Internet of Things to the network in real time, and then transmit this data to the cloud through the network for centralized calculation and processing. However, given the wide distribution of commodity supply chains and the huge amount of traceability data, a large amount of network bandwidth resources will be consumed during the data transmission process. In addition, since the cloud computing model requires all data to be transmitted to the cloud for processing, this also increases the security risk of data leakage, so cloud-edge collaboration is usually adopted. However, different edge servers have different requirements for the computing resources of the central server, and they will change over time. Unreasonable resource allocation methods can easily lead to unstable operation of the intelligent traceability tracking system, reduced data processing efficiency and reduced service quality. Summary of the invention
[0004] In order to solve the technical problem that the existing computing resource allocation method affects the performance of the intelligent traceability tracking system, the purpose of the present invention is to provide an intelligent traceability tracking system for a commodity supply chain. The technical solution adopted is as follows:
[0005] Data acquisition module: used to obtain the traceability data of the preset historical time of the commodity supply chain; the traceability data at least includes the demand for computing resources of the traceability data and the distribution of traceability nodes; select any edge server as the target edge server; select any computing resource as the target resource;
[0006] Edge resource analysis module: used to obtain the basic allocation of the target resources of the target edge server according to the demand of the traceability data processed by the target edge server for the target resources; obtain the resource reservation coefficient of the target edge server according to the quantity characteristics of the traceability data corresponding to the newly added traceability nodes of the target edge server and the distribution characteristics of the traceability data corresponding to the downstream traceability nodes of each newly added traceability node;
[0007] Central resource analysis module: used to obtain the central resource scheduling coefficient of the target edge server in a preset future period according to the quantity characteristics of the traceability data that the target edge server needs to process in a preset future period;
[0008] Computing resource allocation module: used to allocate computing resources to the target resources corresponding to the target edge server based on the basic configuration amount and the resource reservation coefficient of the target resources corresponding to the target edge server, combined with the schedulable resource amount of the target resources corresponding to the central server and the central resource scheduling coefficient of the preset future time period.
[0009] Furthermore, the method for obtaining the basic allocation amount of the target resource includes:
[0010] According to the concentrated characteristics of the demand of the traceability data for the target resource, obtaining the unit target resource consumption of each traceability data for the target resource;
[0011] In the preset historical time, the basic allocation amount of the target resource of the target edge server is obtained according to the amount of the traceability data processed by the target edge server in each preset time period and the unit target resource consumption.
[0012] Furthermore, the method for obtaining the resource reservation coefficient includes:
[0013] According to the number of traceability data corresponding to each newly added traceability node, combined with the total number of traceability nodes in the supply chain where the newly added traceability node is located, the first stable parameter of each newly added traceability node is obtained; the number of traceability data corresponding to the newly added traceability node is positively correlated with the first stable parameter; the total number of traceability nodes in the supply chain where the newly added traceability node is located is negatively correlated with the first stable parameter;
[0014] According to the number of downstream traceability nodes of each newly added traceability node, combined with the discrete characteristics of the traceability data corresponding to the downstream traceability node, the second stable parameter of each newly added traceability node is obtained; the number of the downstream traceability nodes is positively correlated with the second stable parameter; the discrete characteristics of the traceability data corresponding to the downstream traceability node are negatively correlated with the second stable parameter;
[0015] The traceability data further includes supply chain links; the industry richness of the target edge server is obtained according to the types of supply chain links included in the target edge server and the total number of types of supply chain links; the types of the supply chain links are positively correlated with the industry richness; the total number of types of the supply chain links is negatively correlated with the industry richness;
[0016] According to the first stable parameter and the second stable parameter of all newly added nodes of the target edge server, combined with the industry richness, the resource reservation coefficient of the target edge server is obtained; the first stable parameter, the second stable parameter and the industry richness are all negatively correlated with the resource reservation coefficient.
[0017] Furthermore, the method for obtaining the central resource scheduling coefficient includes:
[0018] The traceability data also includes commodity transportation routes; according to the probability that the commodity transportation route passes through each of the traceability nodes, the transportation possibility corresponding to each traceability node and each batch of commodity goods is obtained;
[0019] According to the traceability nodes that the target edge server may receive commodities in a preset future period, the transportation possibility corresponding to each traceability node and each batch of commodities, and the quantity of traceability data of each batch of commodities, the quantity parameter of the traceability data that the target edge server needs to process in the preset future period is obtained;
[0020] The central resource scheduling coefficient is obtained according to the quantity parameter of the traceability data that needs to be processed by all the target edge servers within a preset future time period; the quantity parameter is positively correlated with the central resource scheduling coefficient.
[0021] Furthermore, the central resource scheduling coefficient is normalized, and the sum of the central resource scheduling coefficients of all edge servers in the same preset future time period is 1.
[0022] Furthermore, the method for allocating computing resources to the target resources corresponding to the target edge server includes:
[0023] Acquire the edge basic target resource amount corresponding to the target edge server according to the basic allocation amount of the target resource corresponding to the target edge server and the resource reservation coefficient;
[0024] According to the schedulable resource amount of the target resource corresponding to the central server and the central resource scheduling coefficient of the preset future time period, the central scheduling target resource amount corresponding to the target edge server is obtained;
[0025] The edge basic target resource amount and the central scheduling target resource amount corresponding to the target edge server are integrated to obtain resource parameters of the target resources of the target edge server in a preset future time period.
[0026] Further, after allocating computing resources to the target resources corresponding to the target edge server, the method further includes:
[0027] The preset future time period is continuously updated, and the allocation of the target resource corresponding to the target edge server is updated each time the preset future time period is updated; the update interval is the length of the preset future time period.
[0028] Furthermore, the preset future time period is consistent with the length of the preset time period.
[0029] Furthermore, the length of the preset historical time is 1 year.
[0030] Furthermore, the preset time period has a value range of [1,24], in hours.
[0031] The present invention has the following beneficial effects:
[0032] The present invention first obtains traceability data through a data acquisition module to provide a data basis for subsequent analysis; further determines the target edge server and target resources to facilitate analysis one by one; further uses the edge resource analysis module to obtain the basic allocation amount and resource reservation coefficient of the target resources of the target edge server, deploys basic resources for the edge server to maintain the normal processing tasks of commodity traceability data, and reserves computing resources for the edge server through the resource reservation coefficient to maintain the stability of the edge server, determines the resource allocation of the edge server from the edge end, and prepares for the final determination of the resource allocation result and ensuring the stability of the intelligent traceability system; further uses the central resource analysis module to obtain the central resource scheduling coefficient of the target edge server in a preset future time period to cope with the computing resource requirements of different edge servers at different times, improve the stability of the intelligent traceability tracking system, and avoid resource waste; finally, uses the computing resource allocation module to allocate computing resources to the target resources corresponding to the target edge server. The present invention conducts an in-depth analysis from the perspective of historical traceability data to determine the basic resource requirements and reserved resource coefficients of the edge servers; and from the perspective of the computing pressure that the edge servers may be subjected to in future periods, determines the central resource scheduling coefficients of the central server for different edge servers, thereby achieving a reasonable allocation of computing resources for the edge servers, effectively reducing the load pressure of the central server, and improving the operating efficiency and stability of the entire traceability tracking system. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 A system block diagram of an intelligent traceability tracking system for a commodity supply chain provided by an embodiment of the present invention;
[0035] Figure 2 A schematic diagram of cloud-edge collaboration provided by an embodiment of the present invention;
[0036] Figure 3A flowchart of a method for obtaining a resource reservation coefficient provided by an embodiment of the present invention;
[0037] Figure 4 A schematic diagram of a commodity supply chain provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, features and effects of an intelligent traceability tracking system for a commodity supply chain proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0039] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0040] The specific scheme of the intelligent traceability tracking system for a commodity supply chain provided by the present invention is described in detail below with reference to the accompanying drawings.
[0041] See also Figure 1 , which shows a system block diagram of an intelligent traceability tracking system for a commodity supply chain provided by an embodiment of the present invention. The system includes: a data acquisition module 101, an edge resource analysis module 102, a central resource analysis module 103 and a computing resource allocation module 104.
[0042] Data acquisition module 101: used to obtain the traceability data of the preset historical time of the commodity supply chain; the traceability data at least includes the demand for computing resources and the distribution of traceability nodes of the traceability data; select any edge server as the target edge server; select any computing resource as the target resource.
[0043] In the embodiment of the present invention, the traceability data of a preset historical time is first obtained to provide a data basis for subsequent analysis.
[0044] In one embodiment of the present invention, the relevant supply chain information of a commodity includes at least multiple traceability nodes such as the raw material supplier, processing manufacturer, wholesaler, and retailer of the commodity; these nodes contain a large amount of traceability data, including at least production date, batch number, quality inspection results, transportation method, transportation route, and data related to the demand for computing resources and the distribution of traceability nodes of the traceability data; wherein the computing resources include at least memory resources, disk storage resources, and computing power resources.
[0045] It should be noted that the demand for computing resources of traceability data is obtained by the computing resources consumed or occupied when processing traceability data. For example, if 100 traceability data are processed at a time, 20MB of memory resources are occupied, then the demand for memory resources for each of the 100 traceability data is 0.2MB. The distribution of traceability nodes at least includes the geographical location of the traceability nodes, the location of the traceability nodes in the supply chain, and the relationship between the traceability nodes and the edge servers.
[0046] In the embodiment of the present invention, the intelligent traceability tracking system adopts the cloud-edge collaboration method, please refer to Figure 2 , which shows a cloud-edge collaboration schematic diagram provided by an embodiment of the present invention, and the relevant data detection and processing work is handed over to the edge processors belonging to each region. These edge processors can process data nearby, reduce the burden of network transmission, and reduce the risk of data leakage during data transmission. Ultimately, the data results processed by the edge processor will be uniformly uploaded to the central processor, thereby realizing centralized management and analysis of data. In this way, the data processing efficiency can be improved, and the data processing pressure of the central processor can be effectively reduced, thereby achieving high-precision, low-consumption, fast response and low-latency processing effects.
[0047] Edge resource analysis module 102: used to obtain the basic allocation of target resources of the target edge server according to the demand for target resources of the traceability data processed by the target edge server; obtain the resource reservation coefficient of the target edge server according to the quantity characteristics of the traceability data corresponding to the newly added traceability nodes of the target edge server and the distribution characteristics of the traceability data corresponding to the downstream traceability nodes of each newly added traceability node.
[0048] In order to more reasonably deploy corresponding computing resources for edge servers, it is first necessary to analyze the traceability data historically processed by the cloud computing processing center, and deploy basic resources for the edge servers according to the amount of data of related processing tasks in the region to maintain normal processing tasks of commodity traceability data. Therefore, according to the demand for target resources for the traceability data processed by the target edge server, the basic allocation of target resources for the target edge server is obtained.
[0049] Preferably, in one embodiment of the present invention, considering that the data formats of different traceability data are consistent, and the processing purposes and requirements are consistent, the requirements of different traceability data for target resources are similar; considering that the computing resources of edge servers at different times are different, it is necessary to continuously update and adjust the resource allocation method of the central server to different edge servers, and when analyzing the basic matching amount of the computing resources of the edge servers, the traceability data is analyzed at the same time interval, based on which, according to the concentrated characteristics of the requirements of the traceability data for the target resources, the unit target resource consumption of each traceability data for the target resources is obtained;
[0050] In the preset historical time, the basic allocation amount of the target resources of the target edge server is obtained according to the amount of traceability data processed by the target edge server in each preset time period and the unit target resource consumption.
[0051] As an example, the average value of the demand of traceability data for target resources is taken as the unit target resource consumption, and the concentrated characteristics of the demand of traceability data for target resources are characterized by the average value; the average value of the product of the number of traceability data processed by the target edge server in each preset time period and the unit target resource consumption is taken as the basic configuration quantity of the target resources of the target edge server.
[0052] As another example, the unit target resource consumption is obtained by weighted summing up the mode and the average of the traceability data's demand for the target resources, and the mode and the average jointly characterize the concentrated characteristics of the traceability data's demand for the target resources; in other examples, implementers can also analyze the concentrated characteristics of the traceability data's demand for the target resources by clustering, and obtain the unit target resource consumption with the cluster center of the largest cluster.
[0053] It should be noted that, in one embodiment of the present invention, the length of the preset historical time is 1 year; the update interval of the central resource allocation method can be [1,24], in hours, so the value range of the preset time period is [1,24], in hours. In an example, 24 hours is taken, that is, the demand characteristics of the target resources for the target edge server processing the traceability data every day in the past year are analyzed to obtain the basic configuration of the target resources of the target edge server.
[0054] In other embodiments of the present invention, implementers can adjust the length of the preset historical time and the value of the preset time period.
[0055] As the sales market continues to change, the relevant transportation conditions between commodity supply chains will also change accordingly, and the traceability data processed by the edge server will also change accordingly. The basic resources are difficult to cope with the sudden increase in data changes. Therefore, it is necessary to configure appropriate resource reservations for the edge server to alleviate the pressure on the edge server when facing a surge in data.
[0056] Considering that when the supply chain changes, the reduction of traceability nodes will only lead to a reduction in the data that the edge server needs to process, and will not affect the edge server, when analyzing data surges and resource reservation characteristics, analysis is performed through the addition of new traceability nodes; considering that the quantity characteristics of the traceability data corresponding to the newly added traceability nodes and the distribution characteristics of the traceability data corresponding to the downstream traceability nodes of the newly added traceability nodes will affect the processing pressure of the edge server, the resource reservation coefficient of the target edge server is obtained based on the quantity characteristics of the traceability data corresponding to the newly added traceability nodes of the target edge server and the distribution characteristics of the traceability data corresponding to the downstream traceability nodes of each newly added traceability node.
[0057] It should be noted that based on the traceability nodes contained in the starting point of the preset historical time, the traceability nodes that newly appear within the preset historical time are the newly added traceability nodes.
[0058] Preferably, in one embodiment of the present invention, please refer to Figure 3 , which shows a flow chart of a method for obtaining a resource reservation coefficient provided by an embodiment of the present invention, specifically comprising:
[0059] Step S301: According to the amount of traceability data corresponding to each newly added traceability node and the total number of traceability nodes in the supply chain where the newly added traceability node is located, the first stable parameter of each newly added traceability node is obtained.
[0060] Considering that the more traceability data corresponding to the newly added traceability nodes, the more regular the newly added traceability points are, the less likely data surges will cause edge server overload, and the more stable they are; at the same time, the shorter the supply chain, the fewer the total number of traceability nodes in the supply chain, the less likely the supply chain is to have anomalies, and the more stable the newly added traceability nodes are, so the number of traceability data corresponding to the newly added traceability nodes is positively correlated with the first stability parameter; the total number of traceability nodes in the supply chain where the newly added traceability nodes are located is negatively correlated with the first stability parameter. The larger the first stability parameter, the more stable the newly added traceability nodes are, the fewer reserved resources are required, and the smaller the resource reservation coefficient is.
[0061] As an example, the ratio of the number of traceability data corresponding to each newly added traceability node to the total number of traceability nodes in the supply chain where the newly added traceability node is located is used as the first stable parameter of each newly added traceability node. The number of traceability data corresponding to the newly added traceability node is used as the numerator to correspond to a positive correlation with the first stable parameter, and the total number of traceability nodes in the supply chain where the newly added traceability node is located is used as the denominator to correspond to a negative correlation with the first stable parameter.
[0062] In other embodiments of the present invention, the implementer may also use other correlation mapping functions to perform positive correlation mapping or negative correlation mapping to obtain the first stable parameter. , negative correlation function ,in Indicated by natural constant The exponential function of base .
[0063] Step S302: According to the number of downstream traceability nodes of each newly added traceability node and in combination with the discrete features of the traceability data corresponding to the downstream traceability nodes, the second stable parameter of each newly added traceability node is obtained.
[0064] It should be noted that the downstream direction refers to the direction in which goods flow toward the customer end of the supply chain. Figure 4 , which shows a schematic diagram of a commodity supply chain provided by an embodiment of the present invention, Figure 4 It includes five links of the supply chain: suppliers, manufacturers, wholesalers, retailers and customers. The arrows represent logistics, which is the circulation process of goods in the supply chain. Since the traceability data needs to be recorded at each traceability node and uploaded to the server, the traceability nodes only include suppliers, manufacturers, wholesalers and retailers, but not customers. The corresponding manufacturer is the downstream traceability node of the supplier, the wholesaler is the downstream traceability node of the manufacturer, and the retailer is the downstream traceability node of the wholesaler. At the same time, in order to analyze the stability of retailers, customers are regarded as the downstream traceability nodes of retailers.
[0065] Considering that the more downstream traceability nodes of the newly added traceability nodes, the more sales channels there are for the goods, the stronger the stability of the newly added traceability nodes; the more evenly the traceability data of the downstream traceability nodes are distributed, the less obvious the discrete characteristics are, which reflects that when an abnormal problem occurs in a certain supply chain link downstream, the smaller the impact on the upstream supply chain link, and the stronger the stability of the newly added traceability nodes, so the number of downstream traceability nodes is positively correlated with the second stability parameter; the discrete characteristics of the traceability data corresponding to the downstream traceability nodes are negatively correlated with the second stability parameter. The larger the second stability parameter, the stronger the stability of the newly added traceability nodes, the fewer reserved resources are required, and the smaller the resource reservation coefficient.
[0066] As an example, the range of the number of traceability data of all downstream traceability nodes of the newly added traceability node is obtained, the discrete characteristics are characterized by the range, and the ratio of the number of downstream traceability nodes of the newly added traceability node to the range of the number of traceability data of all downstream traceability nodes is taken as the second stability parameter; wherein, the larger the range, the more unbalanced the number of commodities sent by the current newly added traceability node to the downstream traceability nodes, the more obvious the discrete characteristics, when abnormal problems occur downstream, the more easily the current newly added traceability node is affected, the worse the stability, the smaller the second stability parameter, the more computing resources need to be reserved, and the larger the resource reservation coefficient; the more downstream traceability nodes there are, the more sales channels of commodities there are for the newly added traceability node, the stronger the stability, the larger the second stability parameter, and the smaller the resource reservation coefficient.
[0067] In other examples, the discrete characteristics of the traceability data may be represented by other discrete characteristic parameters such as the variance of the number of traceability data of all downstream traceability nodes; other related mapping functions may also be used to perform positive correlation mapping or negative correlation mapping to obtain a second stable parameter.
[0068] Step S303: The traceability data also includes supply chain links; the industry richness of the target edge server is obtained according to the types of supply chain links included in the target edge server and the total number of types of supply chain links.
[0069] Considering that the more types of traceability nodes the target edge server contains, the larger the total number of types of supply chain links is, the more mature the industrial structure in the region is, the more stable the commodity supply chain structure is, the greater the industry richness is, the more stable the traceability data is, and the smaller the resource reservation coefficient is. Therefore, the types of supply chain links are positively correlated with industry richness; the total number of types of supply chain links is negatively correlated with industry richness.
[0070] As an example, the ratio of the types of supply chain links included in the target edge server to the total number of types of supply chain links is used as the industry richness of the target edge server.
[0071] As another example, considering that the stability of the downstream traceability nodes of the traceability nodes within the service area covered by the edge server will also affect the stability of the supply chain, analogous to the second stability parameter, according to the number of downstream traceability nodes of each traceability node contained in the target edge server and the discrete characteristics of the traceability data corresponding to the downstream traceability nodes, the third stable sub-parameter of each traceability node is obtained, and the sum of the third stable sub-parameters of the traceability nodes contained in the target edge server is taken as the third stable parameter, and the product of the third stable parameter and the industry richness is taken as the supply chain stability parameter. In the subsequent step S304, the resource reservation coefficient is obtained instead of the industry richness.
[0072] Step S304: Obtain a resource reservation coefficient of the target edge server according to the first stable parameters and the second stable parameters of all newly added nodes of the target edge server in combination with the industry richness.
[0073] The first stability parameter analyzes the stability of the newly added traceability nodes from the perspective of the newly added traceability nodes themselves; the second stability parameter analyzes the stability of the newly added traceability nodes from the perspective of the stability of the commodity sales of the newly added traceability nodes; the industry richness analyzes the stability of the regional supply system from the perspective of the overall stability of the supply chain contained in the area covered by the edge server; therefore, according to the first stability parameter and the second stability parameter of all the newly added nodes of the target edge server, combined with the industry richness, the resource reservation coefficient of the target edge server is obtained. The stronger the stability of the target edge server, the less likely it is to be disturbed by the sudden increase of traceability data, and the fewer reserved resources are needed, so the first stability parameter, the second stability parameter and the industry richness are all negatively correlated with the resource reservation coefficient.
[0074] As an example, the product of the first stability parameter, the second stability parameter and the industry richness is negatively correlated and normalized to obtain the resource reservation coefficient: The calculation form is represents the product of the first stability parameter, the second stability parameter and the industry richness, Represents the standard normalization function.
[0075] In other examples, implementers may also use other negative correlation mapping functions such as , obtain the resource reservation coefficient.
[0076] The central resource analysis module 103 is used to obtain the central resource scheduling coefficient of the target edge server in a preset future period according to the quantity characteristics of the traceability data that the target edge server needs to process in the preset future period.
[0077] After analyzing the basic resources and reserved resources of the edge server, it is necessary to analyze the resource scheduling of the central server to cope with the computing resource requirements of different edge servers at different times. Considering that the quantity characteristics of the traceability data that the target edge server needs to process in the preset future period determines the central resource scheduling, the central resource scheduling coefficient of the target edge server in the preset future period is obtained according to the quantity characteristics of the traceability data that the target edge server needs to process in the preset future period.
[0078] Preferably, in one embodiment of the present invention, considering that commodity transport vehicles travel through various traceability nodes and upload traceability data to edge servers around relevant traceability nodes for processing, this will cause an increase in the amount of data processed by the edge servers in the area. If there is a large amount of sudden increase in data in a single time period, it will cause the edge servers in the area to overload the amount of data processed. The acquisition of transportation node paths for a single batch of goods may include multiple types, and the probability of tracing nodes being passed on the commodity transportation route is different. For example, the traceability data in the historical time period has two transportation routes, namely ABCD and ABCE. After the commodity is transported to node C, it may be transported to node D or node E. In the historical traceability data, there are 10 times of arrival at node D and 40 times of arrival at node E. Then the transportation probability of this batch of goods corresponding to node D is 0.2, and the transportation probability of this batch of goods corresponding to node E is 0.8; the probability of this batch of goods arriving at nodes A, B, and C is 1.
[0079] Therefore, the traceability data also includes the commodity transportation routes. According to the probability that the commodity transportation routes pass through each traceability node, the transportation possibility corresponding to each traceability node and each batch of commodities is obtained, providing a basis for analyzing the quantity of commodities that the target edge server may receive within a preset future period.
[0080] It should be noted that when the edge server is reserving resources, it has reserved computing resources in advance for the situation where new traceability nodes appear. Therefore, when analyzing transportation possibilities, the situation where new traceability nodes appear is not considered, that is, it is assumed that no new transportation routes will appear.
[0081] After obtaining the transportation possibility, the quantity parameters of the traceability data that the target edge server needs to process within the preset future time period can be obtained based on the traceability nodes that the target edge server may receive commodities within the preset future time period, the transportation possibility corresponding to each traceability node and each batch of commodities, and the amount of traceability data for each batch of commodities. The server pressure that the target edge server may be subjected to in the preset future time period can be characterized with the help of the quantity parameters.
[0082] As an example: The calculation formula for the quantity parameter includes: ;in Indicates the serial number of the edge server; Indicates The number parameters corresponding to the edge servers in the preset future time period; Indicates The number of traceability nodes that may receive goods from an edge server in a preset future period; Indicates the serial number of the traceability node; Indicates The edge server The number of batches of goods that a traceability node may receive; The serial number indicating the batch of goods; Indicates The edge server The traceability node may receive The possibility of transporting bulk commodity goods; Indicates The edge server The traceability node may receive The quantity of goods in a batch of commodity goods.
[0083] In the calculation formula of quantity parameters, The larger it is, the more likely the traceability node of the edge server is to receive the goods, and the larger the quantity parameter is; The larger it is, the more goods the traceability node may receive, and the larger the quantity parameter is. The quantity parameter is the predicted expected value of the number of goods received by the edge server in the preset future period. The larger the quantity parameter is, the greater the service pressure on the edge server in the preset future period.
[0084] It should be noted that, without considering the addition of new traceability nodes in a preset future time period, the geographical locations between the traceability nodes are known, and the route of commodity transportation is known. The existing technology can easily obtain the time when each batch of commodities arrives at each traceability node, thereby obtaining the traceability nodes that the target edge server may receive the commodities in the preset future time period, and the commodities that each traceability node may receive; as an example, prediction can be made through the temporal convolutional network model commonly used in existing navigation technology; as another example, the average transportation time between different traceability nodes in the historical traceability data can be called, and prediction can be made based on the average transportation time. These are all technical means well known to those skilled in the art and will not be elaborated here.
[0085] After calculating the quantity parameters of the traceability data that the edge server needs to process within the preset future period, the central resource scheduling coefficient can be obtained based on the quantity parameters of the traceability data that all target edge servers need to process within the preset future period; the quantity parameters are positively correlated with the central resource scheduling coefficient.
[0086] It should be noted that the central resource scheduling coefficient is normalized, and the sum of the central resource scheduling coefficients of all edge servers in the same preset future time period is 1.
[0087] As an example, the ratio of the quantity parameter corresponding to the target edge server to the sum of the quantity parameters of all edge servers is used as the central resource scheduling coefficient corresponding to the target edge server.
[0088] Computing resource allocation module 104: used to allocate computing resources to the target resources corresponding to the target edge server according to the basic configuration amount and resource reservation coefficient of the target resources corresponding to the target edge server, combined with the schedulable resource amount of the target resources corresponding to the central server and the central resource scheduling coefficient of the preset future time period.
[0089] Considering that the basic allocation amount and resource reservation coefficient corresponding to the target resources of the target edge server determine the resource allocation situation at the edge, the schedulable resource amount of the central server for the target resources determines the total amount of resources that the central server can schedule, and the central resource scheduling coefficient corresponding to the target edge server in the preset future time period corresponds to the resource inclination characteristics of the central server, the target resources corresponding to the target edge server are calculated and allocated according to the basic allocation amount and resource reservation coefficient corresponding to the target resources of the target edge server, combined with the schedulable resource amount of the target resources corresponding to the central server and the central resource scheduling coefficient of the preset future time period.
[0090] Preferably, in one embodiment of the present invention, firstly, according to the basic allocation amount and resource reservation coefficient of the target resource corresponding to the target edge server, the edge basic target resource amount corresponding to the target edge server is obtained to represent the resource amount of the target resource of the edge server;
[0091] As an example, the edge basic target resource amount may be: ,in Indicates the serial number of the edge server; Indicates The resource reservation coefficient of each edge server; Indicates The edge server The basic allocation of target resources; Indicates The edge server The marginal basic target resource volume of the target resource.
[0092] As another example, the implementer can also set the resource reservation of the edge server through the control coefficient. For example, if the resource reservation is not more than 30% of the basic allocation, the control coefficient can be set. , the edge basic target resource volume is .
[0093] Further, according to the schedulable resource amount of the target resource corresponding to the central server and the central resource scheduling coefficient of the preset future time period, the central scheduling target resource amount corresponding to the target edge server is obtained to represent the allocation result of the central server to the target resource;
[0094] As an example, the central scheduling target resource amount may be: ;in Indicates the serial number of the edge server; Indicates The number parameters corresponding to the edge servers in the preset future time period; Represents the sum of the quantity parameters corresponding to all edge servers in a preset future period; Indicates The central resource scheduling coefficient corresponding to each edge server in a preset future period; The central server can schedule The total amount of target resources; Indicates that the central server The edge servers are allocated in the preset future time period. The central scheduling target resource quantity corresponding to the target resource.
[0095] As another example, implementers can also allocate a portion of the central server's schedulable resources for emergency preparedness considerations instead of allocating all of them, and reserve a portion for real-time emergency response, for example, allocating 80% and reserving 20%, which can be calculated by the allocation coefficient , the central dispatch target resource quantity is .
[0096] Finally, the edge basic target resource volume and the central scheduling target resource volume corresponding to the target edge server are integrated to obtain the resource parameters of the target resources of the target edge server in the preset future time period.
[0097] As an example, the sum of the edge basic target resource amount and the central scheduling target resource amount corresponding to the target edge server is used as the resource parameter of the target resource of the target edge server in a preset future time period.
[0098] Traverse all types of computing resources and all edge servers, obtain the allocation results of all types of computing resources of all edge servers within a preset future time period, and continuously update the preset future time period. After each update of the preset future time period, update the allocation results of each computing resource corresponding to the edge server to ensure the stability and reliability of the traceability tracking system.
[0099] It should be noted that the update interval is the length of the preset future period; the length of the preset future period is consistent with the length of the preset period.
[0100] As an example, the future period is preset to 1 day, and the central server updates the target resource allocation plan for each edge server once a day to determine the computing resource allocation results for the next day, which is similar to the weather forecast updated every day. It should be noted that the update time point can be set by yourself, and the computing resource allocation results for the next day are updated at 23:00 every night.
[0101] In summary, the present invention aims at the technical problem that the existing computing resource allocation method affects the performance of the intelligent traceability tracking system, and proposes an intelligent traceability tracking system for the commodity supply chain. The present invention first obtains traceability data and determines the target edge server and target resources through the data acquisition module; further uses the edge resource analysis module to obtain the basic allocation amount and resource reservation coefficient of the target resources of the target edge server; further uses the central resource analysis module to obtain the central resource scheduling coefficient of the target edge server in the preset future time period; finally, the computing resource allocation module is used to allocate computing resources to the target resources corresponding to the target edge server. The present invention conducts an in-depth analysis from the perspective of historical traceability data, determines the basic resource requirements and reserved resource coefficients of the edge server; and from the perspective of the computing pressure that the edge server may be subjected to in the future period, determines the central resource scheduling coefficient of the central server for different edge servers, realizes the reasonable allocation of computing resources of the edge server, effectively reduces the load pressure of the central server, and improves the operation efficiency and stability of the entire traceability tracking system.
[0102] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0103] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. An intelligent traceability tracking system for a commodity supply chain, characterized in that: The system comprises: Data acquisition module: used to obtain the traceability data of the preset historical time of the commodity supply chain; the traceability data at least includes the demand for computing resources of the traceability data and the distribution of traceability nodes; select any edge server as the target edge server; select any computing resource as the target resource; Edge resource analysis module: used to obtain the basic allocation of the target resources of the target edge server according to the demand of the traceability data processed by the target edge server for the target resources; obtain the resource reservation coefficient of the target edge server according to the quantity characteristics of the traceability data corresponding to the newly added traceability nodes of the target edge server and the distribution characteristics of the traceability data corresponding to the downstream traceability nodes of each newly added traceability node; Central resource analysis module: used to obtain the central resource scheduling coefficient of the target edge server in a preset future period according to the quantity characteristics of the traceability data that the target edge server needs to process in a preset future period; A computing resource allocation module is used to allocate computing resources to the target resource corresponding to the target edge server according to the basic allocation amount and the resource reservation coefficient of the target resource corresponding to the target edge server, combined with the schedulable resource amount of the target resource corresponding to the central server and the central resource scheduling coefficient of the preset future time period; The method for obtaining the basic allocation amount of the target resource includes: According to the concentrated characteristics of the demand of the traceability data for the target resource, obtaining the unit target resource consumption of each traceability data for the target resource; In the preset historical time, according to the amount of the traceability data processed by the target edge server in each preset time period and the unit target resource consumption, the basic allocation amount of the target resource of the target edge server is obtained. The method for obtaining the resource reservation coefficient includes: According to the number of traceability data corresponding to each newly added traceability node, combined with the total number of traceability nodes in the supply chain where the newly added traceability node is located, the first stable parameter of each newly added traceability node is obtained; the number of traceability data corresponding to the newly added traceability node is positively correlated with the first stable parameter; the total number of traceability nodes in the supply chain where the newly added traceability node is located is negatively correlated with the first stable parameter; According to the number of downstream traceability nodes of each newly added traceability node, combined with the discrete characteristics of the traceability data corresponding to the downstream traceability node, the second stable parameter of each newly added traceability node is obtained; the number of the downstream traceability nodes is positively correlated with the second stable parameter; the discrete characteristics of the traceability data corresponding to the downstream traceability node are negatively correlated with the second stable parameter; The traceability data further includes supply chain links; the industry richness of the target edge server is obtained according to the types of supply chain links included in the target edge server and the total number of types of supply chain links; the types of the supply chain links are positively correlated with the industry richness; the total number of types of the supply chain links is negatively correlated with the industry richness; According to the first stable parameter and the second stable parameter of all newly added nodes of the target edge server, combined with the industry richness, the resource reservation coefficient of the target edge server is obtained; the first stable parameter, the second stable parameter and the industry richness are all negatively correlated with the resource reservation coefficient; the method for obtaining the central resource scheduling coefficient includes: The traceability data also includes commodity transportation routes; according to the probability that the commodity transportation route passes through each of the traceability nodes, the transportation possibility corresponding to each traceability node and each batch of commodity goods is obtained; According to the traceability nodes that the target edge server may receive commodities in a preset future period, the transportation possibility corresponding to each traceability node and each batch of commodities, and the quantity of traceability data of each batch of commodities, the quantity parameter of the traceability data that the target edge server needs to process in the preset future period is obtained; According to the quantity parameter of the traceability data that needs to be processed by all the target edge servers within a preset future period, the central resource scheduling coefficient is obtained; the quantity parameter is positively correlated with the central resource scheduling coefficient; The method for allocating computing resources to the target resources corresponding to the target edge server includes: Acquire the edge basic target resource amount corresponding to the target edge server according to the basic allocation amount of the target resource corresponding to the target edge server and the resource reservation coefficient; According to the schedulable resource amount of the target resource corresponding to the central server and the central resource scheduling coefficient of the preset future time period, the central scheduling target resource amount corresponding to the target edge server is obtained; The edge basic target resource amount and the central scheduling target resource amount corresponding to the target edge server are integrated to obtain resource parameters of the target resources of the target edge server in a preset future time period.
2. The intelligent traceability tracking system for a commodity supply chain according to claim 1 is characterized in that: The central resource scheduling coefficient is normalized, and the sum of the central resource scheduling coefficients of all edge servers in the same preset future time period is 1.
3. The intelligent traceability tracking system for a commodity supply chain according to claim 1 is characterized in that: After allocating computing resources to the target resource corresponding to the target edge server, the method further includes: The preset future time period is continuously updated, and the allocation of the target resource corresponding to the target edge server is updated each time the preset future time period is updated; the update interval is the length of the preset future time period.
4. The intelligent traceability tracking system for a commodity supply chain according to claim 1 is characterized in that: The preset future time period is consistent with the length of the preset time period.
5. The intelligent traceability tracking system for a commodity supply chain according to claim 1 is characterized in that: The length of the preset historical time is 1 year.
6. The intelligent traceability tracking system for a commodity supply chain according to claim 1 is characterized in that: The value range of the preset time period is [1,24], and the unit is hour.
