Data link establishment method, communication device, communication system and storage medium
By determining the resource status of data nodes in the network and orchestrating data processing roles, the problem that data production capacity in the prior art cannot meet the needs is solved, and the reasonable establishment of data links and the satisfaction of data needs is achieved.
Patent Information
- Application Number
- CN202311013682.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-11
- Publication Date
- 2025-02-18
AI Technical Summary
In the prior art, data producers and data consumers are bound to network nodes, and only match and establish transmission links based on physical connection relationships, resulting in data production capacity being unable to meet data needs. How to reasonably establish data links in the network become Technical issues that need to be solved urgently.
By determining the resource status of each data node in the network, orchestrating the data processing role of the data node, and establishing a data link based on the resource status and processing roles, the reasonable establishment of the data link is achieved.
Establishing a data link between data producers and data consumers whose data production capacity and data needs matches, improves the rationality of the data link and ensures that data needs are met.
Smart Images

Figure CN119484607A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data link establishment method, a communication device, a communication system and a storage medium. Background Art
[0002] In the related art, it is necessary to match data producers with data consumers to produce the data required by the data consumers, and to establish a transmission link between the data consumers and the data producers to transmit the data produced by the data producers.
[0003] Currently, data producers and data consumers are bound to network nodes. Currently, they can only match and establish transmission links based on the physical connection relationship between the network nodes to which they belong. However, the data production capacity of data producers in network nodes with physical connection relationships may not meet the data needs of data consumers. Therefore, how to reasonably establish data links in the network has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application provide a data link establishment method, a communication device, a communication system and a storage medium, which can reasonably establish a data link in a network.
[0005] On the one hand, a method for establishing a data link is provided, comprising: determining the resource status of each data node in the network; arranging the data processing role of each data node according to the resource status of each data node; and establishing a data link in the network according to the resource status of each data node and the data processing role of each data node.
[0006] On the other hand, another method for establishing a data link is provided, comprising: sending the resource status of the data nodes in the network nodes so that the data processing role of each data node is arranged according to the resource status of each data node in the network, and a data link in the network is established; performing data processing according to the data processing role of each data node in the network and the data link in the network.
[0007] On the other hand, a data link establishment device is provided, comprising: a processing unit and a communication unit; the communication unit is used to determine the resource status of each data node in the network; the processing unit is used to arrange the data processing role of each data node according to the resource status of each data node; the processing unit is also used to establish a data link in the network according to the resource status of each data node and the data processing role of each data node.
[0008] On the other hand, another data link establishment device is provided, including: a processing unit and a communication unit; the communication unit is used to send the resource status of the data nodes in the network nodes, so that the data processing role of each data node in the network is arranged according to the resource status of each data node in the network, and the data link in the network is established; the processing unit is used to perform data processing according to the data processing role of each data node in the network and the data link in the network.
[0009] On the other hand, a data link establishment system is provided, comprising: a data link establishment device and multiple network nodes; the data link establishment device is used to execute the data link establishment method as described in the above one aspect; any network node among the multiple network nodes is used to execute the data link establishment method as described in the above another aspect.
[0010] On the other hand, a communication device is provided, comprising: a memory and a processor; the memory and the processor are coupled; the memory is used to store a computer program; and the processor implements the data link establishment method described in any of the above embodiments when executing the computer program.
[0011] On the other hand, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the data link establishment method described in any of the above embodiments is implemented.
[0012] On the other hand, a computer program product is provided, which includes computer program instructions, and when the computer program instructions are executed by a processor, the data link establishment method described in any of the above embodiments is implemented.
[0013] In the embodiment of the present application, the data link establishment device arranges the data processing role of each data node according to the resource status of each data node in the network, and then establishes the data link according to the resource status and data processing role of the data node. In this way, when establishing the data link, the data link establishment device can simultaneously establish the data link in combination with the resource status and data processing role of the data node, so that the data link can be established between the data producer and the data consumer whose data production capacity and data demand match, which increases the rationality of the established data link. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in some embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only drawings of some embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0015] Figure 1A flowchart of a method for establishing a data link provided in some embodiments of the present application;
[0016] Figure 2 A system architecture diagram of a communication system provided in some embodiments of the present application;
[0017] Figure 3A A schematic diagram of the structure of a network node provided in some embodiments of the present application;
[0018] Figure 3B A system architecture diagram of another communication system provided for some embodiments of the present application;
[0019] Figure 4 A flowchart of a method for establishing a data link provided in some embodiments of the present application;
[0020] Figure 5 A flowchart of a method for establishing a data link provided in some embodiments of the present application;
[0021] Figure 6 A flowchart of a method for establishing a data link provided in some embodiments of the present application;
[0022] Figure 7 A flowchart of a method for establishing a data link provided in some embodiments of the present application;
[0023] Figure 8 A flowchart of a method for establishing a data link provided in some embodiments of the present application;
[0024] Fig. 9 A flowchart of a method for establishing a data link provided in some embodiments of the present application;
[0025] Fig.10 A schematic diagram of the structure of a communication device provided in some embodiments of the present application;
[0026] Fig.11 A schematic diagram of the structure of another communication device provided in some embodiments of the present application;
[0027] Fig.12 A schematic diagram of the hardware structure of a communication device provided in some embodiments of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0030] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0031] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "multiple" means two or more.
[0032] In wireless network architectures including but not limited to 4th generation mobile communication technology (4G) and 5th generation mobile communication technology (5G) networks, data is transmitted between network nodes through fixed point-to-point transmission channels. Since the data production function and data consumption function of network nodes are usually fixed, the data production function and data consumption function between nodes also have a fixed transmission relationship between network nodes.
[0033] In the related art, it is necessary to match data producers with data consumers to produce the data required by the data consumers, and to establish a transmission link between the data consumers and the data producers to transmit the data produced by the data producers.
[0034] Currently, data producers and data consumers are bound to network nodes. Currently, they can only match and establish transmission links based on the physical connection relationship between the network nodes to which they belong. However, the data production capacity of data producers in network nodes with physical connection relationships may not meet the data needs of data consumers. Therefore, how to reasonably establish data links in the network has become a technical problem that needs to be solved urgently.
[0035] In order to solve the technical problems existing in the above-mentioned prior art, the embodiment of the present application provides a data link establishment method, which arranges the data processing role of each data node according to the resource status of each data node in the network, and then establishes the data link according to the resource status and data processing role of the data node. In this way, when establishing a data link, the data link can be established in combination with the resource status and data processing role of the data node at the same time, so that a data link can be established between a data producer and a data consumer whose data production capacity matches data demand, thereby increasing the rationality of the established data link.
[0036] Figure 1 FIG. 1 is a flow chart showing a method for establishing a data link according to an embodiment of the present application. Figure 1 As shown, the data link establishment method provided in the embodiment of the present application can be specifically implemented through the following S101-S103.
[0037] S101. A data link establishing device determines a resource status of each data node in a network.
[0038] As an example, a data node may be a data producer or a data consumer in a network node. The resource status of each data node includes the resource status of each module in the network node.
[0039] In some embodiments, the data link establishment device obtains the resource status of the modules in each network node through the data plane proxy module in each network node in the network, and then determines the resource status of each data node in the network.
[0040] S102: The data link establishing device arranges the data processing role of each data node according to the resource status of each data node.
[0041] In some embodiments, the data processing roles include: data processing nodes and data demand nodes. Correspondingly, the resource status includes: resource available status and resource demand status. The data link establishment device arranges the data nodes with resource available status as data processing nodes; arranges the data nodes with resource demand status as data demand nodes.
[0042] It can be understood that the resource status of the data node is a resource available status, indicating that the data production resources of the data node have not been fully occupied. At this time, the data link establishment device determines the data node as a data processing node, so that the node can subsequently produce data according to its available data production resources. The resource status of the data node is a resource demand status, indicating that the data demand of the data node has not been met. At this time, the data link establishment device determines the data node as a data demand node, so that the data processing node can produce data for it according to the data demand of the data demand node.
[0043] In some specific embodiments, the data link establishment device determines a data producer whose data production resources have not been fully occupied as a data processing node. The data link establishment device determines a data consumer whose data demand has not been met as a data demand node.
[0044] S103: The data link establishing device establishes a data link in the network according to the resource status of each data node and the data processing role of each data node.
[0045] In some embodiments, the data link establishment device determines the resources required by the data demand node, and then matches the data demand node with a data processing node that can meet its data demand from multiple data processing nodes. A data link is established between the data demand node and the data processing node that can meet its data demand. The data link establishment device traverses the data demand nodes in the network until each data demand node is matched with a data processing node that meets its data demand and a data link is established.
[0046] In the embodiment of the present application, the data link establishment device arranges the data processing role of each data node according to the resource status of each data node in the network, and then establishes the data link according to the resource status and data processing role of the data node. In this way, when establishing the data link, the data link establishment device can simultaneously establish the data link in combination with the resource status and data processing role of the data node, so that the data link can be established between the data producer and the data consumer whose data production capacity and data demand match, which increases the rationality of the established data link.
[0047] The data link establishment method provided in the embodiment of the present application can be applied to Figure 2 In the communication system shown, Figure 2 The system architecture diagram of the communication system provided in the embodiment of the present application is as follows: Figure 2 As shown, the communication system includes: a data link establishment device 201, a network node 202 and a network node 203. Each network node includes one or more data nodes.
[0048] It can be understood that the communication system in the embodiment of the present application may include one or more network nodes. Figure 2 Only two network nodes are used as an example for explanation.
[0049] Among them, the data link establishment device 201 is used to obtain the resource status of the data nodes in the network nodes in the network, and according to the resource status of multiple data nodes in the network, arrange the data processing roles of the data nodes, and establish the data link in the network according to the data processing roles and resource status.
[0050] The network node is a network node that carries a data node, wherein the data node may be a data producer with data production capability, or a data consumer with data demand.
[0051] It is understandable that a network node may have both data consumers and data producers, or a network node may have only data consumers, or a network node 202 may have only data producers. This application does not limit this.
[0052] In some embodiments, in addition to data nodes, the network nodes may also deploy multiple data services. The data services in the network nodes include at least one of the following: data collection services, data storage services, data plane proxy services, data application programming interface API services, and data forwarding services.
[0053] The data services in the network nodes can be implemented through the corresponding unit modules. For example, the function of the data collection service is implemented through the data collection module, the function of the data storage service is implemented through the data storage module, the function of the data plane proxy service is implemented through the data plane proxy module, the function of the data API interface service is implemented through the data API interface module, and the function of the data forwarding service is implemented through the data forwarding module.
[0054] like Figure 3A As shown, it is a schematic diagram of the structure of a network node 202 after deploying data services provided by an embodiment of the present application. Figure 3A As shown, the modules used to implement the data service function in the network node 202 are: data acquisition module 2021, data storage module 2022, data plane proxy module 2023, data API interface module 2024, and data forwarding module 2025. In addition, the network node also includes a data producer module 2026 for implementing the data production capability of the data producer, and a data consumer module 2027 for implementing the data consumption capability of the data consumer. Optionally, the network node also includes a data preprocessing module 2028 for preprocessing the data.
[0055] Combination Figure 3A ,like Figure 3B As shown, it is a system architecture diagram of a communication system after data services are deployed in the network node 202. Among them, the data plane proxy module 2023 is used to provide data plane proxy services. For example, the parameters of each module in the network node 202 are obtained and reported to the data link establishment device 201. The strategy arranged by the data link establishment device 201 is obtained, and the strategy is adjusted to a strategy executable by each module in the network node 202 and then sent to each module in the network node 202.
[0056] Specifically, the data plane proxy module 2023 is used to obtain the resource status of the data node in the network node 202 and report it to the data link establishment device 201. For example, the data plane proxy module 2023 obtains the data requirements of the data consumer module 2027 and the data processing capabilities of the data producer module 2026. The data plane proxy module 2023 is also used to obtain the service capabilities of each data service module in the network node 202. For example, the data acquisition capability of the data acquisition module 2021, the data storage capability of the data storage module 2022, the API interface forwarding capability of the data API interface module 2024, and the data forwarding capability of the data forwarding module 2025 are obtained. In addition, the data plane proxy module 2023 can also obtain the identification information and transmission information of each network node 202. After the data plane proxy module 2023 obtains the above information in the network node, it sends the above information to the data link establishment device 201.
[0057] It is understandable that when the parameters in the network node 202 are changed, the data plane proxy module 2023 can also obtain the changed parameters and re-report the changed parameters in the network node 202 to the data link establishing device 201 .
[0058] In addition, the data plane proxy module 2023 is also used to convert the data processing strategy issued by the data link establishment device 201 into a strategy that can be executed by each data service module and issue it to the corresponding data service module. For example, the data plane proxy module 2023 converts the data processing strategy into a data collection strategy, a data storage strategy, a data API interface strategy, a data forwarding strategy, and a data extraction strategy. The data plane proxy module 2023 issues the data collection strategy to the data collection module 2021, the data storage strategy to the data storage module 2022, the data API interface strategy to the data API interface module 2024, the data forwarding strategy to the data forwarding module 2025, and the data extraction strategy to the data consumer module 2027. The data collection module 2021 is used to collect data produced by the data producer. Specifically, the data collection module 2021 reports its own data collection capability for executing data collection tasks to the data plane proxy module 2023; for example, it reports the collection tasks of several types of data that can be processed by itself, and the amount or speed of the data that can be collected. After receiving the data collection strategy sent by the data plane proxy module 2023, the data collection strategy is executed to collect data produced by the data producer.
[0059] In some embodiments, after receiving the data collection strategy issued by the data plane proxy module 2023, the data collection module 2021 determines the data production task of the data producer according to the data collection strategy and issues the data production task to the data producer. After the data producer completes the production, the required data is collected from the data producer and the collected data is forwarded to the data storage module 2022.
[0060] The data storage module 2022 is used to store the data received from the data acquisition module 2021. Specifically, the data storage module 2022 reports its own data storage capacity to the data plane proxy module 2023; for example, reports the maximum amount of its own storage. After receiving the data storage policy issued by the data plane proxy module 2023, the policy is executed.
[0061] In some embodiments, the data storage policy is used to indicate the maximum storage quantity allocated by the data storage module 2022 to the corresponding network node 202. After receiving the data forwarded by the data acquisition module 2021, the network node 202 to which the data acquisition module belongs is determined, and then the maximum storage quantity allocated to the network node 202 is determined. In the case where the sum of the amount of data currently stored for the network node 202 and the amount of data to be stored this time is not greater than the maximum storage quantity allocated for the network node 202, the data forwarded by the data acquisition module 2021 this time is stored.
[0062] The data API interface module 2024 is used to forward data based on the data API interface. Specifically, the data API interface module 2024 reports its own data API interface parameters to the data plane proxy module 2023. After receiving the data API interface strategy issued by the data plane proxy module 2023, the data consumer module 2027 is provided with an API interface for extracting data according to the data API interface strategy.
[0063] In some embodiments, when the data consumer module 2027 and the API interface module 2024 are in the same network node 202, the data API interface module 2024 directly forwards data to the data consumer module 2027 according to the API interface indicated in the data API interface policy. When the data consumer module 2027 and the API interface module 2024 are not in the same network node 202, the data API interface module 2024 forwards data to the data forwarding module 2025 according to the API interface indicated in the data API interface policy, so that the data forwarding module 2025 forwards data to the data consumer module 2027 according to the data forwarding policy.
[0064] The data forwarding module 2025 is used to forward data based on the data link. Specifically, the data forwarding module 2025 reports its own data forwarding capability to the data plane proxy module 2023. After receiving the data forwarding strategy issued by the data plane proxy module 2023, data forwarding is performed based on the data forwarding strategy. After receiving the data forwarded from the data API interface module 2024, the identifier of the network node 202 to which the data consumer module 2027 corresponding to the data belongs is determined, the corresponding forwarding strategy is determined according to the identifier of the network node 202, and the data is sent to the data consumer module 2027 in the network node 202 according to the data link in the forwarding strategy.
[0065] The data producer module 2026 is used to produce data for the data consumer. Specifically, the data producer module 2026 reports its own data production capability to the data plane proxy module 2023. After receiving the data production task issued by the data acquisition module, the data is produced based on the data production task and sent to the data acquisition module 2021.
[0066] The data consumer module 2027 is a data consumer that performs data consumption. Specifically, the data consumer module 2027 reports its own data needs to the data plane proxy module 2023. After receiving the data extraction strategy from the data plane proxy module, the data consumer module 2027 determines the network node 202 from which the required data is extracted according to the data extraction strategy. In the case where the data consumer module 2027 needs to provide the required data from the same network node 202, the data consumer module 2027 sends a data extraction request to the data API interface module of the network node 202, and the data extraction request includes the parameters of the data to be extracted (such as data content and data rules); the data consumer module 2027 obtains the data forwarded by the data API interface based on the data extraction request. In the case where the data consumer module 2027 needs to obtain the required data from different network nodes 202, the data consumer module 2027 sends a data extraction request to the data API interface module of the different network node 202, and the data consumer module 2027 obtains the data forwarded by the different network node 202 through the data API interface module and the data forwarding module in sequence.
[0067] Above, combined Figure 2 , Figure 3A and Figure 3B The system architecture diagram of the communication system provided in the embodiment of the present application is described in detail.
[0068] In some embodiments, in combination Figure 1 ,like Figure 4As shown, the process of the data link establishment device in the above S101 determining the resource status of each data node in the network can be specifically implemented by the following S401 and S402:
[0069] S401. The data link establishing device determines the data service deployed in each network node.
[0070] The data service includes at least one of the following: data collection service, data storage service, data plane proxy service, data application programming interface API service, and data forwarding service.
[0071] In some embodiments, after the network node is connected to the network, each module in the network node reports the capabilities and requirements of the module to the data plane proxy module in the network node. After the data plane proxy module summarizes the capabilities and requirements of each module, it sends the summarized capabilities and requirements of each module to the data link establishment device. The data link establishment device determines the data service deployed in the network node according to the capabilities and requirements of each module.
[0072] As an example, in Example 1, the network includes a data link establishment device and a network node A, and the network node A includes: a data acquisition module, a data storage module, a data plane proxy module, a data API interface module, and a data forwarding module. In addition, the network node A also includes a data producer module and a data consumer module.
[0073] After network node A is connected to the network, each module in the network node reports the capabilities and requirements of the module to the data plane proxy module in the network node.
[0074] Among them, the data consumer module in network node A reports to the data plane proxy module that the type of data it needs is (Data_A), and the number of required data is: 2000 data items are needed every day. The data producer module in network node A reports to the data plane proxy module that the data types it can produce include: Data_A, Data_C, and the maximum data production capacity is 120 items / hour. The data acquisition module in network node A reports to the data plane proxy module its data acquisition capability that can simultaneously manage the acquisition tasks of two types of data. The data storage module in network node A reports to the data plane proxy module its data storage capability that can store up to 10,000 data items. In some embodiments, the data API interface module and the data forwarding module in network node A may also report their capabilities to the data plane proxy module.
[0075] The data plane proxy module in the network node A sends the data obtained from the network node A to the data link establishment device. For example, the content sent by the data plane proxy module in the network node A to the data link establishment device includes: data processing capability {the producible data types are Data_A and Data_C, the data models of Data_A and Data_C, the production specification is 120 items / hour, and the storage specification is 10,000 items}, data demand {Data_A data, 2,000 items per day}, and network node identification {network node A, transmission address address_A}.
[0076] The data link establishing device determines the data service deployed in the network node according to the reported content.
[0077] S402: The data link establishing device determines the resource status of each data node according to the corresponding relationship between each data node in each network node and the data service in each network node.
[0078] In some embodiments, the data node is a data producer or a data consumer in a network node. The resource status of the data node includes the resource status of the data node and the resource status of each data service in the network node to which the data node belongs.
[0079] Specifically, the data link establishment device determines the resource status of the data producer according to the data production capacity of the data producer and the service capacity of each data service in the network node to which the data producer belongs. The data link establishment device determines the resource status of the data consumer according to the data demand of the data consumer.
[0080] In combination with the above example 1, the data link establishment device determines the resource status of the data producer in network node A as follows: the data types that the data producer can produce include: Data_A, Data_C, and the maximum data production capacity is 120 items / hour; the data acquisition module simultaneously manages the acquisition tasks of two types of data; the data storage module reports to the data plane agent module that it can store up to 10,000 items of data.
[0081] The data link establishing device determines that the data consumer resource status in the network node A is: the required data type is (Data_A), and 2000 data are required every day.
[0082] In an embodiment of the present application, the data link establishment device can comprehensively consider the production capacity of the data producer in the network node, the service capacity of each service node, and the data demand of the data demand node to determine the resource status of each data node.
[0083] After the data link establishment device arranges the data processing roles of the various data nodes, the data link establishment device may further match data demand nodes and data processing nodes whose resource demand amounts and available resource amounts match.
[0084] like Figure 4 As shown, the process of the data link establishment device matching the data demand node and the data processing node whose resource demand and available resource quantity match can be specifically implemented by the following S403:
[0085] S403, the data link establishing device establishes an association relationship between each data demand node and each data processing node according to the resource demand of each data demand node and the resource available of each data processing node.
[0086] The available resources of the associated data processing nodes are used to meet the resource requirements of the data demand nodes.
[0087] In combination with the above example 1, after obtaining the content reported by the data plane proxy module of network node A, the data link establishment device determines that the data demand of the data consumer in network node A has not been met, and the data producer in network node A still has available data production capacity. The data link establishment device arranges the data consumer in network node A as a data demand node and arranges the data producer in network node A as a data processing node.
[0088] The data link establishment device finds that the data production capacity of the data producer in the network node A can meet the data demand of the data consumer in the network node A, and the data collection and data storage capacity in the network node A can also meet the data demand of the data consumer in the network node A. The data link establishment device establishes an association relationship between the data producer and the data consumer in the network node A, so that the data producer in the network node A produces the required data for the data consumer in the network node A.
[0089] In the embodiment of the present application, the data link establishment device establishes an association relationship between each data demand node and each data processing node, and the available resources of the data processing nodes with the association relationship are used to meet the resource demand of the data demand node. Therefore, in the embodiment of the present application, data consumers can be matched with data producers who can meet their data needs, thereby ensuring that the data needs of data consumers in the network can be met, thereby making the data link established between data consumers and data producers more reasonable.
[0090] After the data link establishment device matches the data demand node and the data processing node whose resource demand and available resource amount match, the data link establishment device can send the corresponding scheduling results to the data demand node and the data processing node respectively so that the data demand node and the data processing node perform data processing according to the scheduling results. Figure 4 As shown, the process can be specifically implemented through the following S404-S406.
[0091] S404. The data link establishing device generates a first orchestration result corresponding to each data demand node and a second orchestration result corresponding to each data processing node according to the association relationship between each data demand node and each data processing node.
[0092] The first orchestration result is used to indicate the association relationship between the data demand node and the data processing node; the second orchestration result is used to indicate the data processing strategy of the data processing node for processing the data demand of the data demand node with the association relationship.
[0093] In combination with the above Example 1, the first orchestration result generated by the data link establishment device for the data consumer in network node A is used to indicate that the data demand of the data consumer in network node A can be met, and the data consumer in network node A extracts the required amount of data Data_A from the data producer of network node A through the data API interface.
[0094] The second arrangement result generated by the data link establishment device for the data producer in the network node A includes a data processing strategy for processing the data demand of the data consumer in the network node A. For example, the specific data processing strategy includes: producing data Data_A at 100 pieces / hour, producing 2400 pieces of data per day; storing 2400 pieces of Data_A data per day; providing an interface service for extracting Data_A data; and no data forwarding strategy.
[0095] S405: The data link establishing device sends the corresponding first orchestration result to each data demand node, so that the data demand node determines the corresponding data processing node according to the first orchestration result.
[0096] S406: The data link establishing device sends the corresponding second orchestration result to each data processing node, so that the data processing node processes the data demand of the associated data demand node according to the data processing strategy in the second orchestration result.
[0097] In some embodiments, the data link establishing device stores the data processing capabilities of each data processing node and the data requirements of the data requirement nodes.
[0098] After the data link establishing device sends the first scheduling result to the data demanding node, the data demand of the first data demanding node is marked as satisfied.
[0099] After the data link establishment device sends the second orchestration result to the data processing node, it will deduct the data processing capacity of the data processing node that needs to be occupied in this orchestration process from the data processing capacity of the data processing node stored in itself. In this way, when it is necessary to train data processing capacity for other data demand nodes next time, the data link establishment device can directly allocate it according to the marked remaining data processing capacity.
[0100] In an embodiment of the present application, the data link establishment device sends corresponding orchestration results to the data demand node and the data processing node respectively, so that the data processing node produces data according to the orchestration results, and the data demand node obtains data according to the orchestration results, thereby meeting the data demand of the data demand node.
[0101] In some embodiments, after the data link establishing device establishes an association relationship between each data demand node and the corresponding data processing node, the data link establishing device establishes a data link between the data demand node and the data processing node having the association relationship, thereby completing the process of establishing a data link in the network.
[0102] In the embodiment of the present application, the process of establishing the data link by the data link establishing device is different depending on whether the associated data demand node and the data processing node are in the same network node. The following will explain the different situations.
[0103] Case 1: The data demand node and the data processing node in the same network node are associated.
[0104] In case 1, the process of the data link establishing device establishing the data link between the data demand node and the data processing node can be specifically implemented by the following S407:
[0105] S407: The data link establishing device establishes a data link according to the data API interface parameters in the same network node.
[0106] Specifically, when the data demand node and the data processing node in the same network node have an association relationship, the data demand node can directly obtain the required data from the data processing node of this node. Different modules in the same node can directly transmit data through the data API interface in the node.
[0107] Therefore, in this situation 1, the data link establishment device can directly establish the data link according to the parameters of the data API interface in the same network node. After that, the data demand node directly extracts the required data through the data API interface in the same network node.
[0108] In combination with the above example 1, the data link establishment device establishes a data link between the data producer and the data consumer in the network node A according to the data API interface in the network node A. After that, the data consumer in the network node A can directly extract the required data through the data API interface in the data link.
[0109] Case 2: The associated data demand node and data processing node are located in different network nodes.
[0110] In case 2, the process of the data link establishing device establishing the data link between the data demand node and the data processing node can be specifically implemented by the following S408:
[0111] S408. The data link establishing device establishes a data link according to the data API interface parameters of the network node to which the data processing node belongs and the transmission links between different network nodes.
[0112] Specifically, when the associated data demand node and data processing node are in different network nodes, the data demand node cannot directly obtain the required data from the node, but needs to obtain the required data from the network node to which the data processing node belongs. Since different network nodes are connected through transmission links, the data link establishment device needs to consider the transmission link between network nodes in addition to the data API interface in the network node when establishing the data link. So that the data produced by the data processing node can be forwarded to the data demand node through the data API interface and the transmission link.
[0113] In an embodiment of the present application, the data link establishment device uses different methods to establish data links between data demand nodes and data processing nodes in different situations, so that the data link establishment device can choose an appropriate method to establish a data link according to different situations.
[0114] In an embodiment of the present application, after the data link establishment device establishes the data link, if the resource status of the data node in the network changes, the data link establishment device can also rearrange the data processing roles and establish the data link according to the changed resource status, which is described in detail below.
[0115] Combination Figure 1 ,like Figure 5As shown, when the resource status changes, the data link establishment device can rearrange the data processing roles and the process of establishing the data link according to the updated resource status, which can be specifically implemented through the following S501 and S502.
[0116] S501: The data link establishing device obtains a changed resource status.
[0117] The resource status change includes: the resource status of the data node changes; or a new data node is added to the network, and the new data node has a new resource status.
[0118] In some embodiments, when the resource status in the network changes, the data plane proxy module in the network node where the resource status has changed can obtain the changed resource status of the network node and send the changed resource status to the data link establishment device.
[0119] As an example 2, in combination with example 1, a network node B is newly added to the network of example 2. The network node B only includes a data consumer module and a data plane proxy module.
[0120] After network node B is connected to the network, the data consumer module of network node B reports its data demand to the data plane proxy module of network node B. For example, the data consumer module of network node B reports to the data plane proxy module of network node B that the type of data it needs is (Data_C), and the amount of data required is: 1000 pieces of data are needed every day.
[0121] There is no data producer module in network node B, and the data production content is empty.
[0122] The data plane proxy module in the network node B sends the data obtained from the network node B to the data link establishment device. For example, the content sent by the data plane proxy module in the network node B to the data link establishment device includes: data processing capability {the type of producible data is empty, the production specification is empty, and the storage specification is empty}, data demand {Data_C data, 1000 per day}, and network node identification {network node B, transmission address address_B}.
[0123] The data link establishing device determines, based on the requirements of the data consumer module of the network node B, that the resource status in the current network has changed.
[0124] S502: When the link in the current network does not satisfy the changed resource status, the data link establishing device rearranges the data processing role of each data node in the network and reestablishes the data link in the network.
[0125] Among them, the process of the data link establishment device re-arranging the data processing roles of each data node in the network and re-establishing the data link in the network can refer to the above S101-S103, and the process of the data link establishment device arranging the data processing roles of each data node in the network and establishing the data link in the network in S401-S408, which will not be repeated in this application.
[0126] As an example, in combination with the above example 2, after network node B is added to the network, since the data demand of the data consumer module in network node B has not been met, and there is no data link established in the network for the data consumer in network node B. At this time, the data link establishment device re-arranges the data processing roles of each data node in the network and re-establishes the data link in the network.
[0127] Specifically, the data link establishment device determines that while the data producer in network node A produces data for the data consumer of the data producer in network node A, its remaining available resources can also meet the resource requirements of the data consumer of network node B. That is, the production capacity of the data producer in network node A, the data collection capacity of the data collection module, and the storage capacity of the data storage module can further meet the resource requirements of the data consumer in network node B while meeting the resource requirements of the data consumer in network node A.
[0128] At this time, the data link establishment device determines to arrange the data consumer in network node B as a data demand node, keeps the data producer in network node A as a data processing node, and the data consumer in network node A as a data demand node. The data link establishment device adds a data link between the data consumer in network node B and the data producer in network node A.
[0129] In some embodiments, the data link establishing device further establishes an association relationship between the data consumer in network node B and the data producer in network node A, and generates a first orchestration result for the data consumer in network node B, and updates a second orchestration result for the data producer in network node A based on the needs of the data consumer in network node A and the needs of the data consumer in network node B.
[0130] The first orchestration result of the data consumer in network node B is used to indicate that its data demand can be met. The data consumer in network node B extracts the required amount of data Data_C from the data producer of network node A through the data API interface and the transmission link between network node A and network node B.
[0131] The updated second arrangement result of the data producer in the network node A includes the data processing strategy of the data consumer in the network node A and the data processing strategy of the data consumer in the network node B. For example, the data processing strategy in the updated second arrangement result of the data producer in the network node A is: produce data Data_A at 100 pieces / hour, produce 2400 pieces of data every day, and store 2400 pieces of Data_A data every day; produce data Data_C at 50 pieces / hour, produce 1200 pieces of data every day; store 1200 pieces of Data_C data every day; provide an interface service for extracting Data_A data, and provide an interface service for extracting Data_C data; forward Data_C from the network node A to the network node B.
[0132] The data link establishing device sends the updated second orchestration result to the data producer in the network node A, and sends the first orchestration result of the data consumer in the network node B to the data consumer in the network node B.
[0133] It should be pointed out that in the above Example 2, only the case where a new network node is added, causing the resource status in the network to change, is used as an example for explanation. In the actual process, there are also cases where the data node resources in the network node change. For example, the data demand of the data consumer in network node A changes, or the capacity of the data producer or the capacity of the data service in network node A changes. The specific process can be understood by referring to the change in the resource status in the network caused by the addition of a new network node, and this application will not go into details.
[0134] In an embodiment of the present application, when the resource status in the network changes, the data link establishment device can rearrange the data processing roles of the data nodes and re-establish the links according to the changed resource status, thereby improving the flexibility and timeliness of processing data needs.
[0135] The data link establishment method performed by the data link establishment device in the embodiment of the present application is described in detail above.
[0136] In addition, the network node in the present application can also execute a corresponding data link establishment method so that the network node performs data processing according to the arrangement result of the data link establishment device and the established link.
[0137] like Figure 6 As shown, the data link establishment method provided in the embodiment of the present application also includes the following S601-S602 implementation.
[0138] S601. A network node sends resource status of data nodes in the network so that data processing roles of various data nodes in the network are arranged according to the resource status of various data nodes in the network, and data links in the network are established.
[0139] Among them, the data plane agent in each network node in the network obtains the resource status of the data node in the network node and reports it to the data link establishment device. The specific implementation process can refer to the description of the data plane agent module in the previous text and will not be repeated here.
[0140] S602: The network node performs data processing according to the data processing role of the data node and the data link in the network.
[0141] In an embodiment of the present application, the network node reports the resource status to the data link establishment device, and performs data processing according to the data processing role arranged by the data link establishment device and the data link in the established network, which can make the nodes in the network easier to manage uniformly.
[0142] Combination Figure 6 ,like Figure 7 As shown, before the above S601, the data service may be pre-deployed in the network node. The method of deploying the data service in the network node may be specifically implemented through the following S701 and S702.
[0143] S701. A network node obtains a data service deployed in the network node.
[0144] The data service includes at least one of the following: data collection service, data storage service, data plane proxy service, data application programming interface API service, and data forwarding service;
[0145] S702: The network node determines the resource status of the data node according to the correspondence between the data service in the network node and the data node in the network node.
[0146] Among them, the understanding of data services in the network and the understanding between the resource status of data nodes and data services can also refer to the description of related content in the previous article, which will not be repeated here.
[0147] In the embodiment of the present application, the data processing role of the data node in the network node can be a data processing node or a data demand node. When the data processing role of the data node is different, the network node performs data processing in different ways, which is described below in different scenarios.
[0148] Scenario 1: The data processing role of the data node in the network node is the data processing node.
[0149] In scenario 1, the data processing node needs to produce data based on the link established by the data link establishment device and the orchestration result sent.
[0150] Combination Figure 7 ,like Figure 8 As shown, the process of data processing by the network node in scenario 1 includes the following S801-S803, which are described in detail below:
[0151] S801. A network node receives a second orchestration result.
[0152] For understanding of the second arrangement result, reference may be made to the descriptions in S404 and S502 above, which will not be repeated here.
[0153] S802. The network node adjusts the data processing strategy to a strategy executable by the data capability corresponding to the data processing node based on the data plane proxy module.
[0154] S803: The network node processes the target data based on the executable policy.
[0155] The executable policies include: data collection policies executable by data collection services and data storage policies executable by data storage services. In this case, the network node calls the data collection service to execute the data collection policy to collect the target data produced by the data processing node; the network node calls the data storage service to execute the storage policy to store the collected target data.
[0156] In addition, when the data demand node and the data processing node have an association relationship in the same network node, the executable strategies also include: the data API interface strategy executable by the data API service; at this time, the network node calls the data API service to execute the data API interface strategy to forward the target data through the target API interface, and the target API interface is the API interface in the same network node.
[0157] As an example, in the case where the data demand node and the data processing node in the same network node have an association relationship, combined with Example 1 and the above S404. For the second orchestration result of the data producer in the network node A recorded in S404, the data plane proxy module in the network node A adjusts the second orchestration result to a policy executable by each module in the network node A.
[0158] Exemplarily, the executable strategy obtained after the data plane proxy module adjusts the second orchestration result is shown in the following Table 1:
[0159] Table 1
[0160]
[0161]
[0162] In addition, when the associated data demand node and data processing node are in different network nodes, the policies executable by the data capability also include: data API interface policies executable by the data API service, and data forwarding policies executable by the data forwarding capability. In this case, the network node calls the data API service to execute the data API interface policy, and calls the data forwarding service to execute the data forwarding policy to forward the target data through the target API interface and the target transmission path. The target API interface is the API interface in the network node to which the data processing node belongs, and the target transmission path is the transmission path between different network nodes.
[0163] As another example, when the associated data demand node and the data processing node are in different network nodes, combined with Example 2 and the above S502, for the updated second orchestration result of the data producer in network node A recorded in S502, the data plane proxy module in network node A adjusts the updated second orchestration result to an updated executable policy of each module in network node A.
[0164] Exemplarily, the updated executable policy obtained after the data plane proxy module adjusts the updated second orchestration result is shown in the following Table 2:
[0165] Table 2
[0166]
[0167]
[0168] Scenario 2: The data processing role of the data node in the network node is the data demand node.
[0169] In scenario 2, the data demand node needs to obtain the required data based on the link established by the data link establishment device and the orchestration result sent.
[0170] Combination Figure 7 ,like Fig. 9 As shown, the process of data processing by the network node in scenario 2 includes the following S901 and S902, which are described in detail below:
[0171] S901. A network node receives a first orchestration result.
[0172] For understanding of the first arrangement result, reference may be made to the descriptions in S404 and S502 above, which will not be repeated here.
[0173] S902: The network node verifies, based on the first orchestration result, whether the received data is data sent by a data processing node having an associated relationship.
[0174] In some embodiments, the first orchestration result is used to indicate the network node identifier to which the data producer associated with the data consumer belongs. After receiving the first orchestration result, the data consumer extracts the network node identifier in the first orchestration result, and verifies whether the data comes from the network node to which the data producer associated with the data consumer belongs according to the network node identifier. If so, the verification is successful. If not, the verification fails.
[0175] In some other embodiments, after receiving the first orchestration result, the network node adjusts the first orchestration result into a policy executable by the data consumer module through the data plane proxy module, and sends it to the data consumer, so that the data consumer verifies the data according to the executable policy.
[0176] As an example, in the case where the data demand node and the data processing node in the same network node have an association relationship, combined with Example 1 and the above S404. For the first orchestration result of the data consumer in network node A recorded in S404, the data plane proxy module in network node A adjusts the first orchestration result to a policy executable by the data consumer module in network node A.
[0177] Exemplarily, the executable strategy obtained after the data plane proxy module adjusts the orchestration result in the first orchestration result of the data consumer in the network node A is shown in the following Table 3:
[0178] Table 3
[0179]
[0180] As another example, when the associated data demand node and the data processing node are located in different network nodes, in combination with Example 2 and the above S502, with respect to the first orchestration result of the data consumer in the network node B recorded in S502, the data plane proxy module in the network node B adjusts the first orchestration result of the data consumer in the network node B to an executable policy of the data consumer module in the network node B.
[0181] Exemplarily, the data plane proxy module adjusts the first orchestration result of the data consumer in the network node B to obtain an executable strategy as shown in the following Table 4:
[0182] Table 4
[0183]
[0184]
[0185] In the above, the process of data processing by the network node in the scenarios where the data node is a data processing node and the data node is a data demand node is described respectively.
[0186] In some embodiments, when the data link establishment device sends an orchestration policy to a network node, the orchestration policies of all data nodes in the network node may be uniformly sent to the network node, and the data plane proxy module in the network node may make uniform adjustments.
[0187] As an example, in the case where the data demand node and the data processing node in the same network node have an associated relationship, combined with Example 1 and the above S404. For the first orchestration result of the data consumer in network node A and the second orchestration result of the data producer in network node A recorded in S404, the data plane proxy module in network node A adjusts them and adjusts them to a policy executable by each module in network node A.
[0188] Exemplarily, the executable strategy obtained after the data plane proxy module adjusts the first orchestration result of the data consumer in the network node A and the second orchestration result of the data producer in the network node A is shown in the following Table 5:
[0189] Table 5
[0190]
[0191]
[0192] As another example, when the associated data demand node and data processing node are in different network nodes, combined with Example 2 and the above S502, the data plane proxy module in network node A adjusts the first orchestration result of the data consumer in network node A and the updated second orchestration result of the data producer in network node A recorded in S502 to a policy executable by each module in network node A.
[0193] Exemplarily, the executable strategy obtained after the data plane proxy module adjusts the first orchestration result of the data consumer in the network node A and the updated second orchestration result of the data producer in the network node A is shown in the following Table 6:
[0194] Table 6
[0195]
[0196]
[0197] As another example, when the associated data demand node and the data processing node are located in different network nodes, in combination with Example 2 and the above S502, with respect to the first orchestration result of the data consumer in the network node B recorded in S502, the data plane proxy module in the network node B adjusts the first orchestration result of the data consumer in the network node B and adjusts it into an executable policy of the data consumer module in the network node B.
[0198] Exemplarily, the data plane proxy module adjusts the first orchestration result of the data consumer in the network node B to obtain an executable strategy as shown in the following Table 7:
[0199] Table 7
[0200]
[0201]
[0202] Among them, since there is no data service module and data producer in the network node B, the data plane proxy module has no corresponding second orchestration result.
[0203] It can be understood that, in combination with Tables 1 to 7 above, after the data plane proxy module adjusts the orchestration results into executable policies of each module, it sends the corresponding executable policies to each module respectively, so that each model executes its corresponding executable policy.
[0204] It is understandable that, in order to realize the above functions, the communication device includes a hardware structure and / or software module corresponding to each function. It should be easily appreciated by those skilled in the art that, in conjunction with the algorithm steps of each example described in the embodiments of the present application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0205] The embodiment of the present application can divide the functional modules of the communication device according to the above method embodiment. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one functional module. The above integrated module can be implemented in the form of hardware or software. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.
[0206] Fig.10 1 is a schematic diagram of the structure of a communication device provided in an embodiment of the present application. The communication device can execute the data link establishment method performed by the data link establishment device provided in the above method embodiment. Fig.10 As shown, the communication device includes: a communication unit 1001 and a processing unit 1002.
[0207] The communication unit 1001 is used to determine the resource status of each data node in the network.
[0208] The processing unit 1002 is used to arrange the data processing role of each data node according to the resource status of each data node.
[0209] The processing unit 1002 is further configured to establish a data link in the network according to the resource status of each data node and the data processing role of each data node.
[0210] In some embodiments, the processing unit 1002 is further specifically used to: determine the data services deployed in each network node, wherein the data services include at least one of the following: data collection service, data storage service, data plane proxy service, data application programming interface API service, and data forwarding service; determine the resource status of each data node according to the correspondence between each data node in each network node and the data service in each network node.
[0211] In some embodiments, data processing roles include: data processing nodes and data demand nodes; resource status includes: resource available status and resource demand status; processing unit 1002 is specifically used to: arrange data nodes with resource status of resource available status into data processing nodes; arrange data nodes with resource status of resource demand status into data demand nodes.
[0212] In some embodiments, the processing unit 1002 is specifically used to: establish an association relationship between each data demand node and each data processing node based on the resource demand of each data demand node and the resource availability of each data processing node; wherein the resource availability of the data processing node with the association relationship is used to meet the resource demand of the data demand node.
[0213] In some embodiments, the processing unit 1002 is specifically used to: when the data demand node and the data processing node have an associated relationship in the same network node, establish a data link according to the data API interface parameters in the same network node; when the associated data demand node and the data processing node are in different network nodes, establish a data link according to the data API interface parameters of the network node to which the data processing node belongs, and the transmission link between different network nodes.
[0214] In some embodiments, the processing unit 1002 is further used to: after establishing the association relationship between each data demand node and each data processing node, the method also includes: generating a first orchestration result corresponding to each data demand node and a second orchestration result corresponding to each data processing node according to the association relationship between each data demand node and each data processing node; wherein the first orchestration result is used to indicate the association relationship between the data demand node and the data processing node; the second orchestration result is used to indicate the data processing strategy of the data processing node for processing the data demand of the data demand node with the associated relationship; sending the corresponding first orchestration result to each data demand node so that the data demand node determines the corresponding data processing node according to the first orchestration result; sending the corresponding second orchestration result to each data processing node so that the data processing node processes the data demand of the data demand node with the associated relationship according to the data processing strategy in the second orchestration result.
[0215] In some embodiments, the processing unit 1002 is also used to: obtain a changed resource status; if the link in the current network does not satisfy the changed resource status, rearrange the data processing roles of each data node in the network and re-establish the data link in the network; wherein the resource status change includes: the resource status of the data node changes; or, a new data node is added to the network, and the new data node has a new resource status.
[0216] Fig.11 is a schematic diagram of the structure of another communication device provided in an embodiment of the present application. The communication device can execute the data link establishment method executed by the network node provided in the above method embodiment. Fig.11 As shown, the communication device includes: a communication unit 1101 and a processing unit 1102 .
[0217] The communication unit 1101 is used to send the resource status of the data nodes in the network nodes, so as to arrange the data processing role of each data node according to the resource status of each data node in the network and establish a data link in the network.
[0218] The processing unit 1102 is used to perform data processing according to the data processing role of each data node in the network and the data links in the network.
[0219] In some embodiments, the communication unit 1101 is also used to obtain data services deployed in the network node; wherein the data services include at least one of the following: data acquisition service, data storage service, data plane proxy service, data application programming interface API service, and data forwarding service; the processing unit 1102 is also used to determine the resource status of the data node based on the correspondence between the data service in the network node and the data node in the network node.
[0220] In some embodiments, the communication unit 1101 is further used to receive a second orchestration result from the data link establishing device; the second orchestration result is used to indicate a data processing strategy for the data processing node to process the data demand of a data demand node with an associated relationship; wherein the available resources of the data processing node meet the resource demand of the data demand node with an associated relationship; the processing unit 1102 is further used to adjust the data processing strategy to an executable strategy for the data capability corresponding to the data processing node based on the data plane proxy module; and process the target data based on the executable strategy.
[0221] In some embodiments, executable policies include: data collection policies executable by a data collection service, and data storage policies executable by a data storage service; processing unit 1102 is specifically used to: call the data collection service to execute the data collection policy to collect target data produced by the data processing node; call the data storage service to execute the storage policy to store the collected target data.
[0222] In some embodiments, when the data demand node and the data processing node have an association relationship in the same network node, the executable strategy also includes: a data API interface strategy executable by the data API service; the processing unit 1102 is also used to: call the data API service to execute the data API interface strategy to forward the target data through the target API interface, and the target API interface is the API interface in the same network node.
[0223] In some embodiments, when the associated data demand node and data processing node are in different network nodes, the strategies executable by the data capability also include: data API interface strategies executable by the data API service, and data forwarding strategies executable by the data forwarding capability; the processing unit 1102 is also used to: call the data API service to execute the data API interface strategy, and call the data forwarding service to execute the data forwarding strategy, so as to forward the target data through the target API interface and the target transmission path, the target API interface is the API interface in the network node to which the data processing node belongs, and the target transmission path is the transmission path between different network nodes.
[0224] In some embodiments, the communication unit 1101 is further used to receive a first orchestration result; the first orchestration result is used to indicate an association relationship between a data demand node and a data processing node; wherein the available resources of the data processing node with the association relationship meet the resource demand of the data demand node; the processing unit 1102 is further used to verify, based on the first orchestration result, whether the received data is data sent by the data processing node with the association relationship.
[0225] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides another possible structure of the communication device involved in the above-mentioned embodiment. Fig.12 As shown, the communication device includes: a processor 1202 and a bus 1204. Optionally, the communication device may further include a memory 1201; optionally, the communication device may further include a communication interface 1203.
[0226] Processor 1202 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present application. The processor 1202 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present application. Processor 1202 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0227] The communication interface 1203 is used to connect with other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0228] The memory 1201 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0229] As a possible implementation, the memory 1201 may exist independently of the processor 1202, and the memory 1201 may be connected to the processor 1202 via a bus 1204 for storing instructions or program codes. When the processor 1202 calls and executes the instructions or program codes stored in the memory 1201, the data link establishment method provided in the embodiment of the present application can be implemented.
[0230] In another possible implementation, the memory 1201 may also be integrated with the processor 1202 .
[0231] The bus 1204 may be an extended industry standard architecture (EISA) bus, etc. The bus 1204 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0232] Some embodiments of the present application provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium), which stores computer program instructions. When the computer program instructions are executed on a computer, the computer executes the data link establishment method as described in any of the above embodiments.
[0233] Exemplarily, the above-mentioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks or magnetic tapes, etc.), optical disks (e.g., compact disks (CD), digital versatile disks (DVD), etc.), smart cards and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks or key drives, etc.). The various computer-readable storage media described in this application may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.
[0234] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the data link establishment method described in any of the above embodiments.
[0235] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data link establishment method, characterized in that: The method comprises: Determine the resource status of each data node in the network; Arrange the data processing role of each of the data nodes according to the resource status of each of the data nodes; A data link in the network is established according to the resource status of each of the data nodes and the data processing role of each of the data nodes.
2. The method according to claim 1, characterized in that Determining the resource status of each data node in the network includes: Determine the data services deployed in each network node, wherein the data services include: data collection service, data storage service, data plane proxy service, data application programming interface API service, and data forwarding service; The resource status of each of the data nodes is determined according to the corresponding relationship between each of the data nodes in the network nodes and the data services in the network nodes.
3. The method according to claim 2, characterized in that The data processing roles include: data processing nodes and data demand nodes; the resource status includes: resource availability status and resource demand status; the data processing roles of each data node are arranged according to the resource status of each data node, including: Arrange the data nodes whose resource status is in the resource available status as data processing nodes; The data nodes whose resource status is the resource demand status are arranged as data demand nodes.
4. The method according to claim 3, characterized in that After arranging the data processing roles of the data nodes according to the resource status of the data nodes, the method further includes: According to the resource demand of each data demand node and the available resource of each data processing node, establishing an association relationship between each data demand node and each data processing node; The available resources of the associated data processing nodes are used to meet the resource requirements of the data demand nodes.
5. The method according to claim 4, characterized in that The step of establishing a data link in the network according to the resource status of each of the data nodes and the data processing role of each of the data nodes includes: In the case where the data demand node and the data processing node are associated with each other in the same network node, the data link is established according to the data API interface parameters in the same network node; In the case where the associated data demand node and the data processing node are located in different network nodes, the data link is established according to the data API interface parameters of the network node to which the data processing node belongs and the transmission link between the different network nodes.
6. The method according to claim 5, characterized in that After establishing the association relationship between each data demand node and each data processing node, the method further includes: According to the association relationship between each data demand node and each data processing node, a first orchestration result corresponding to each data demand node and a second orchestration result corresponding to each data processing node are generated; wherein the first orchestration result is used to indicate the association relationship between the data demand node and the data processing node; and the second orchestration result is used to indicate the data processing strategy of the data processing node for processing the data demand of the data demand node with the associated relationship; Sending a corresponding first orchestration result to each of the data demand nodes, so that the data demand node determines a corresponding data processing node according to the first orchestration result; The corresponding second orchestration result is sent to each of the data processing nodes, so that the data processing node processes the data demand of the data demand node having an associated relationship according to the data processing strategy in the second orchestration result.
7. The method according to claim 1, characterized in that When the resource state changes, the method further includes: Get the changed resource status; When the links in the current network do not satisfy the changed resource status, rearrange the data processing roles of the data nodes in the network and re-establish the data links in the network; The resource status change includes: the resource status of the data node changes; or a new data node is added to the network, and the new data node has a new resource status.
8. A data link establishment method, characterized in that: Applied to a network node, the method comprises: Sending resource status of data nodes in the network nodes, so that data processing roles of each data node in the network are arranged according to the resource status of each data node in the network, and a data link in the network is established; Data processing is performed according to the data processing role of each of the data nodes in the network and the data links in the network.
9. The method according to claim 8, characterized in that Before sending the resource status of the data node in the network node, the method further includes: Acquire data services deployed in the network node; wherein the data services include: data collection services, data storage services, data plane proxy services, data application programming interface API services, and data forwarding services; The resource status of the data node is determined according to the correspondence between the data service in the network node and the data node in the network node.
10. The method according to claim 9, characterized in that The method further comprises: Receive a second orchestration result; the second orchestration result is used to indicate a data processing strategy for the data processing node to process the data demand of the data demand node with an associated relationship; wherein the available resources of the data processing node meet the resource demand of the data demand node with an associated relationship; Invoke the data plane proxy service to adjust the data processing strategy to a strategy executable by the data capability corresponding to the data processing node; Based on the executable policy, the target data is processed.
11. The method according to claim 10, characterized in that The executable policies include: data collection policies executable by the data collection service, and data storage policies executable by the data storage service; and processing the target data based on the executable policies includes: Calling the data collection service to execute the data collection strategy to collect the target data produced by the data processing node; The data storage service is called to execute the storage strategy to store the collected target data.
12. The method according to claim 11, characterized in that The executable strategy also includes: a data API interface strategy executable by the data API service, and the method also includes: The data API service is called to execute the data API interface policy to forward the target data through a target API interface, where the target API interface is an API interface in the same network node.
13. The method according to claim 11, characterized in that The policies executable by the data capability also include: data API interface policies executable by the data API service, and data forwarding policies executable by the data forwarding capability; The method further comprises: The data API service is called to execute the data API interface strategy, and the data forwarding service is called to execute the data forwarding strategy, so as to forward the target data through the target API interface and the target transmission path, wherein the target API interface is the API interface in the network node to which the data processing node belongs, and the target transmission path is the transmission path between the different network nodes.
14. The method according to claim 9, characterized in that The method further comprises: Receive a first orchestration result; the first orchestration result is used to indicate the association relationship between the data demand node and the data processing node; wherein the available resources of the associated data processing node meet the resource demand of the data demand node; Based on the first orchestration result, it is verified whether the received data is data sent by the data processing node having an associated relationship.
15. A communication system, characterized in that: include: A data link establishing device and a plurality of network nodes; The data link establishment device is used to execute the data link establishment method as described in any one of claims 1-7; any network node among the multiple network nodes is used to execute the data link establishment method as described in any one of claims 8-14.
16. A communication device, characterized in that: include: Memory and processor; Memory and processor coupling; The memory is used to store instructions executable by the processor; When the processor executes the instruction, the data link establishment method according to any one of claims 1 to 14 is performed.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is enabled to execute the data link establishment method according to any one of claims 1 to 14.