WO2022027224A1 - In-network computing power or resource service-oriented communication method - Google Patents

In-network computing power or resource service-oriented communication method Download PDF

Info

Publication number
WO2022027224A1
WO2022027224A1 PCT/CN2020/106797 CN2020106797W WO2022027224A1 WO 2022027224 A1 WO2022027224 A1 WO 2022027224A1 CN 2020106797 W CN2020106797 W CN 2020106797W WO 2022027224 A1 WO2022027224 A1 WO 2022027224A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
package
computing power
resource
computing
Prior art date
Application number
PCT/CN2020/106797
Other languages
French (fr)
Chinese (zh)
Inventor
雷凯
余锡权
徐婷
张梅梅
Original Assignee
北京大学深圳研究生院
深圳市智慧城市科技发展集团有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京大学深圳研究生院, 深圳市智慧城市科技发展集团有限公司 filed Critical 北京大学深圳研究生院
Priority to CN202080102877.5A priority Critical patent/CN116250219A/en
Priority to PCT/CN2020/106797 priority patent/WO2022027224A1/en
Publication of WO2022027224A1 publication Critical patent/WO2022027224A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Definitions

  • the invention relates to a communication method oriented to resource services in a network, in particular to a communication method oriented to computing power services in a network.
  • the core value of the network is to improve efficiency.
  • the telephone network improves the efficiency of human communication
  • the Internet improves the efficiency of human collaboration.
  • the basic topology abstraction of the traditional Internet architecture is the end-to-end model: the network is in the middle, the computing is in the periphery, and the host is fully connected to the logical virtual through the network.
  • edge computing or ubiquitous computing the topology becomes computing embedded in the middle of the network. From the perspective of completing the user's computing tasks, the embedded resources are no longer peer-to-peer, but need to consider differences in distance and network good or bad condition.
  • the widespread deployment of edge computing brings new opportunities and challenges to operator networks.
  • the development of edge computing promotes the integration of network domain computing at the basic resource level.
  • the present invention mainly provides a communication method oriented to in-network computing power service and a communication method oriented to in-network resource service, which will be described in detail below.
  • an embodiment provides a communication method for in-network computing power services, including:
  • the computing power task requirement package at least includes a name field, the type of computing task, the required computing power and data input fields; the name field of the computing power task requirement package is used to uniquely identify the computing power The task requirement package, the data input field is used to store the data to be calculated;
  • the computing power task result package includes a name field and a calculation result field
  • the name field of the computing power task result package is used to uniquely identify the computing power task result package
  • the calculation result field is used to store the calculation result.
  • the name field of the computing power task result package corresponds to the name field of the computing power task requirement package
  • the node After the computing task demand package is forwarded to any node in the network, when the node receives the computing task demand package, it determines whether it is by extracting the type of computing task and the computing power required in the computing task demand package. Able to complete the computing task requested by the computing power task requirement package; specifically, when the node judges that it has deployed the function corresponding to the type of computing task in the computing power task requirement package, and the function is greater than or equal to the computing task required in the computing power task requirement package. When the computing power is high, it is judged that it can complete the computing task requested by the computing power task demand package; otherwise, it is judged that it cannot be completed;
  • the node executes the corresponding computing task, and returns the calculation result through the computing power task result packet along the original path where the computing power task demand packet was forwarded;
  • the type of computing task in the package and the required computing power are used as the basis for routing and forwarding, and the computing power task demand package is forwarded to another node.
  • the computing power task requirement package further includes signature authentication information, which is used to indicate the authorization status of the sender of the computing power task requirement package;
  • the computing power task result package further includes signature authentication information, which is used to indicate the calculation result. Trusted situation.
  • an embodiment provides a communication method for in-network computing power services, the communication method is based on the communication of a computing power task demand package and a computing power task result package, and the computing power task demand package is used for Request calculation from the node in the network, and the computing power task result package stores the calculation result returned by the node in the network for the computing power task demand package; the communication method includes:
  • the node judges whether it can complete the computing task requested by the computing power task demand package;
  • the node executes the corresponding computing task, and returns the computing result through the computing power task result packet along the original path where the computing power task demand packet was forwarded;
  • the node continues to forward the computing power task demand package to other nodes in the network until a node in the network can complete the computing task requested by the computing power task demand package.
  • the node if it is judged that it cannot be completed, the node also marks the computing task requirement package as unsatisfied; when the node receives the corresponding computing task result package returned along the original path, the previous corresponding Records marked as unsatisfied are deleted.
  • the node when the node receives the corresponding computing power task result packet returned along the original path, it judges whether it has enough cache space, and if so, caches the computing power task result packet, otherwise, does not cache force task structure package; or,
  • the node that executes the computing task requested by the computing power task demand package after giving the computing power task result package, also judges whether it has enough cache space. If so, it caches the computing power task result package. Adjacent nodes cache computing power task result packets.
  • the computing power task requirement package at least includes a name field, the type of computing task and the required computing power, and the name field of the computing power task requirement package is used to uniquely identify the computing power task requirement package;
  • the power task result bag includes a name field and a calculation result field, and the name field of the calculation power task result bag is used to uniquely identify the calculation power task result bag, and the calculation result field is used to store the calculation result; the name of the calculation power task result bag The field corresponds to the name field of the computing power task requirement package.
  • the node in the network when the node in the network receives the computing power task demand package, it determines whether it can complete the computing power task demand package by extracting the type of the computing task and the required computing power in the computing power task demand package.
  • Computing tasks specifically, when a node in the network judges that it has deployed a function corresponding to the type of computing task in the computing power task demand package, and has a computing power greater than or equal to the computing power required in the computing power task demand package, it judges itself The computing task requested by the computing power task requirement package can be completed, otherwise, it is judged that it cannot be completed.
  • the node when the node judges that the computing task requested by the computing power task requirement package cannot be completed, the node uses the computing task type and required computing power in the computing power task requirement package as the basis for routing and forwarding, and sends the computing power task The demand packet is forwarded to another node.
  • the computing power task requirement package further includes a data input field and/or signature authentication information, the data input field of the computing power task requirement package is used to store the data to be calculated, and the signature authentication information is used to indicate the calculation
  • the authorization status of the sender of the power task demand package; the computing power task result package also includes signature authentication information, which is used to indicate that the calculation result is trustworthy.
  • an embodiment provides a communication method for in-network resource services.
  • the communication method communicates based on a resource task request package and a resource task result package, and the resource task request package is used to request an in-network node Resource task, the resource task result package stores the task result returned by the node in the network for the resource task request package, and the communication method includes:
  • the node determines whether it can complete the resource task requested by the resource task request package;
  • the node executes the corresponding resource task, and returns the task result through the resource task result package along the original path where the resource task request package was forwarded;
  • the node continues to forward the resource task request packet to other nodes in the network until a node in the network can complete the resource task requested by the resource task request packet.
  • the node if it is judged that it cannot be completed, the node also marks the resource task request package as unsatisfied; when the node receives the corresponding resource task result package returned along the original path, it marks the previous corresponding package as unsatisfied. Unsatisfied records are deleted.
  • the node when the node receives the corresponding resource task result package returned along the original path, it determines whether it has enough cache space, and if so, caches the resource task result package, otherwise, does not cache the resource task result package; or,
  • the node that executes the resource task requested by the resource task request package after giving the resource task result package, also judges whether it has enough cache space. If so, it caches the resource task result package. Resource task result package.
  • the resource task request package at least includes a name field, the type of resource task and the required amount of resources, and the name field of the resource task request package is used to uniquely identify the resource task request package;
  • the resource task result package Including a name field and a calculation result field, the name field of the resource task result bag is used to uniquely identify the resource task result bag, and the task result field is used to store the task result;
  • the name field of the resource task result bag and the resource task request bag are used. corresponding to the name field.
  • the node in the network when the node in the network receives the resource task requirement package, it determines whether it can complete the resource task requested by the resource task requirement package by extracting the resource task type and required resource amount in the resource task requirement package; Specifically, when a node in the network judges that it has deployed a function corresponding to the type of the resource task in the resource task demand package, and the amount of resources required in the resource task demand package is greater than or equal to that of the resource task demand package, it judges that it can complete the resource task demand. The resource task requested by the package, otherwise, it is judged that it cannot be completed.
  • the node when the node judges that the resource task requested by the resource task demand package cannot be completed, the node forwards the resource task demand package according to the type of resource task and the required amount of resources in the resource task demand package as the basis for routing and forwarding. to another node.
  • an embodiment provides a computer-readable storage medium comprising a program executable by a processor to implement the method described in any of the embodiments herein.
  • FIG. 1 is a schematic diagram of a resource task request package and a resource task result package according to an embodiment
  • FIG. 2 is a flow chart of a communication method oriented to resource services in a network according to an embodiment
  • FIG. 3 is a schematic diagram of forwarding of a computing power task request packet and a computing power task result packet according to an embodiment
  • FIG. 4 is a schematic diagram of a computing power task request package and a computing power task result package according to an embodiment
  • FIG. 5 is a flow chart of a communication method oriented to an in-network computing power service according to an embodiment
  • FIG. 6 is a flow chart of a communication method for in-network computing power services according to another embodiment
  • FIG. 7 is a schematic structural diagram of a communication device for routing and computing according to an embodiment
  • FIG. 8 is a schematic structural diagram of a communication device for routing and computing according to another embodiment.
  • connection and “connection” mentioned in this application, unless otherwise specified, include both direct and indirect connections (connections).
  • the computing power service network needs to coordinately consider the needs of the evolution of network and computing integration, and realize the network-wide optimization of ubiquitous links and computing power resources, flexible scheduling of computing power requirements, and reasonable distribution of computing power tasks.
  • the computing power service network realizes the global optimization of connection and computing power in the network through unified management and coordinated scheduling of multi-dimensional resources such as network, storage and computing power. There can be one or more targets for the computing power service network.
  • the network can perceive ubiquitous computing and services, and users do not need to care about the location and deployment status of computing resources in the network.
  • Another example is to realize flexible and dynamic service deployment: according to real-time resource status and user SLA (Service-Level Agreement, service-level agreement) requirements, flexibly schedule services to the optimal edge node.
  • SLA Service-Level Agreement, service-level agreement
  • the core value of the network is to improve efficiency.
  • the technical problem to be solved by the present invention is to design a reasonable and efficient communication method and communication device, which are used for resource service request and resource service response in the scenario of in-network resource service.
  • ICN Information Center Network
  • Information-Center Network Information-Center Network
  • NDN Named Data Network
  • CCN Content-Centric Networking
  • IP address and communication connection no longer exists in the network, and its network communication is based on two types of data packets, Interest packets (interest packets, in some cases can also be called as request packets) and Data packets (data packets), which are matched by full or relative names.
  • Interest packets are used to request data from the data requesting direction network, and data packets are the data returned by the data owner after receiving the request.
  • NDN is a pull-based architecture, in which users request data by sending Interest packets, and the corresponding data packets return along the same path, achieving good content distribution capabilities through the data's built-in caching function and flexible forwarding strategy layer .
  • the content-oriented network transmission characteristics of NDN enable it to be used for content distribution of massive data.
  • the Interest packet there are two types of data packets in the NDN network, one is the Interest packet, the other is the Data packet, and the two are matched according to the complete or relative name.
  • the network communication process is completely driven by the content consumer.
  • the requester sends an Interest packet to the network through one or more locally owned interfaces, names the data as a link, and uses a pull method to obtain the corresponding Data packet.
  • the Interest package mainly contains fields such as "Content Name”, “Selector”, and "Nonce”; the "Content Name” field is used to uniquely identify a content block; the “Selector” field is provided by the content consumer who generates the Interest package , which is mainly used to attach some additional information for forwarding decisions; the "Nonce” field is generated by the content consumer that generates the Interest packet, and is mainly used to prevent loops in the forwarding process of the Interest packet.
  • the Data package mainly includes "Content Name”, “Signature”, "Signed Info” and “Content”; the “Content Name” field corresponds to the "Content Name” in the Interest package one-to-one; the “Content” field carries a content block specific data. Since each Data packet needs to be signed by the content producer that generates this block to achieve the integrity and reliability of the content, the "Signature” field and the “Signed Info” field are respectively used to carry specific signature content and related Signer information.
  • a routing node in an NDN network When a routing node in an NDN network receives an Interest packet, it will perform the following actions:
  • the routing node uses the Longest Prefix Matching (LPM) method to retrieve the local FIB (Forwarding Information Base) table.
  • LPM Longest Prefix Matching
  • the forwarding strategy selects the forwarding interface and forwards the Interest packet, and then the Interest packet is discarded, thereby ending its processing flow in the routing node;
  • Each PIT entry has a life cycle. When this life cycle arrives, the corresponding PIT entry will be removed from the PIT table.
  • a routing node in an NDN network When a routing node in an NDN network receives a Data packet, it will perform the following operations:
  • NDN networks have the following disadvantages:
  • the interest package and data package of the NDN network both contain the name field, and the name field contains routing information. However, the data packet does not need to be routed, so there is additional redundant routing information in the data packet.
  • the interest package and data package of the NDN network can only be used to request content data. It cannot be directly used in the computing power service network to perform computing requests, computing execution and return of computing results for computing tasks.
  • Path caching is a simple approach that requires less computation and communication overhead of placing replicas in the network. Copies of content are cached at intermediate nodes in the path from the content provider to the user. However, due to the continuous accumulation of copies on the path, the content is redundant, which will seriously waste the storage space of the node and reduce the overall hit rate of the cache.
  • the present invention proposes a communication method oriented to in-network resource services, particularly a communication method oriented to in-network computing power services, which will be described in detail below.
  • the present invention constructs two kinds of data packages, namely, the resource task request package and the resource task result package.
  • the resource task request package is used to request resource tasks from the nodes in the network
  • the resource task result package stores the task results returned by the nodes in the network for the resource task request package.
  • a resource task request package can correspond to one or more resource task result packages.
  • the resource task request packet needs to find a routing path through routing.
  • the resource task result packet does not need to be routed, and is directly returned along the routing path of the resource task request packet.
  • the communication method is based on the pull (pull) communication model, that is, only when the user or the client application actively sends a resource task request packet, the nodes in the network will execute the resource task and return one or more resource task result packets to the user. .
  • the resource task request package at least includes a name field, the type of resource task and the required amount of resources; in some embodiments, the resource task request package may also include a data input field and/or signature authentication information .
  • the name field of the resource task request package used to uniquely identify the resource task request package; the name field may contain a timestamp and an identifier of the resource task requester.
  • the type of resource task in the resource task request package determines the tools required to implement the resource task.
  • the amount of resources required in the resource task request package may be a definite value, indicating the amount of resources required to complete the resource task.
  • the data input field of the resource task request package used to store the data required to execute the resource task.
  • the signature authentication information of the resource task request package is used to indicate the authorization status of the sender of the resource task request package.
  • the resource task result package includes a name field and a calculation result field; in some embodiments, the resource task result package further includes signature authentication information.
  • the name field of the resource task result package used to uniquely identify the resource task result package, and the word field may contain a timestamp and an identifier of the resource task requester.
  • the task result field of the resource task result package used to store the task result.
  • the name field of the resource task result package corresponds to the name field of the computing power task requirement package.
  • the resource task request packet contains routing information.
  • the combination of the two fields of the resource task type and the required resource amount is the basis for routing forwarding, while the resource task result packet does not need to contain additional routing information. , so there is no redundant routing information in the resource task result packet like the data packet in the NDN network.
  • the name field of the package used to identify the protocol package
  • the field used for routing and forwarding such as the above-mentioned resource task type and required resource amount
  • the communication method is based on resource task request package and resource task result package communication, the resource task request package is used to request resource tasks from nodes in the network, and the resource task result package is stored in the network.
  • the task result returned by the inner node for the resource task request package includes the following steps:
  • Step 100 Any node in the network (eg, node A) receives a resource task request packet.
  • Step 110 When any node in the network (eg, the above-mentioned node A) receives the resource task request package, the node (node A) determines whether it can complete the resource task requested by the resource task request package.
  • the node determines whether it can complete the resource task requested by the resource task request package.
  • the node in the network when the node in the network receives the resource task requirement package, it judges whether it can complete the resource task requested by the resource task requirement package by extracting the resource task type and required resource amount in the resource task requirement package; specifically , when the node in the network judges that it has deployed the function corresponding to the type of the resource task in the resource task demand package, and the amount of resources required in the resource task demand package is greater than or equal to The requested resource task, otherwise, it is judged that it cannot be completed.
  • Step 120 If the judgment can be completed, the node (node A) executes the corresponding resource task, and returns the task result through the resource task result packet along the original path where the resource task request packet was forwarded.
  • Step 130 If it is judged that it cannot be completed, the node (node A) continues to forward the resource task request packet to other nodes in the network until a node in the network can complete the resource task requested by the resource task request packet.
  • the node forwards the resource task request package to another node according to the type of the resource task and the required resource amount in the resource task request package as the routing and forwarding basis.
  • the node when the node judges that the resource task cannot be completed in step 130, the node also marks the resource task request package as unsatisfied; when the node receives the corresponding resource task result package returned along the original path, Records previously marked as unsatisfied will be deleted.
  • the node may adopt a strategy of not caching the resource task result package; in some embodiments, the node may also adopt a strategy of caching the resource task result package. Specifically, it may be further divided into paths (on -path) caching strategy and off-path caching strategy, as detailed below.
  • the node when the node receives the corresponding resource task result package returned along the original path, it determines whether it has enough cache space, and if so, caches the resource task result package, otherwise, does not cache the resource task result. Bag.
  • the node that executes the resource task requested by the resource task request package after giving the resource task result package, also judges whether it has enough cache space, and if so, caches the resource task result package, otherwise, then Notifies its neighbors to cache resource task result packets.
  • Such resources can be storage resources, bandwidth resources, and computing resources.
  • the following may take computing resources as an example for description.
  • the present invention constructs two kinds of data packets, namely the computing power task request package and the computing power task result package.
  • the computing power task demand package is used to request calculation from the nodes in the network, and the computing power task result package stores the calculation results returned by the nodes in the network for the computing power task demand package.
  • a computing power task request package can correspond to one or more computing power task result packages.
  • the two have an atomic correspondence; when one computing task request package corresponds to multiple computing power task result packages, the two have a composite correspondence.
  • the computing power task request packet needs to be routed to find a routing path.
  • the computing power task result packet does not need to be routed, and returns directly along the routing path of the computing power task request packet.
  • the communication method is based on the pull (pull) communication model, that is, only when the user or the client application actively sends a computing task request packet, the nodes in the network will perform the computing task and return one or more computing task results. package to users.
  • the computing power task can typically be, for example, tasks such as face recognition, speech recognition, and image recognition.
  • the computing power task request package at least includes a name field, the type of computing power task and the required computing power; in some embodiments, the computing power task request package may also include a data input field and/or Signature authentication information.
  • the name field of the computing power task request package used to uniquely identify the computing power task request package; the name field may contain a timestamp and an identifier of the computing task requester.
  • the type of computing task in the computing power task request package determine what the function to call is. For example, the type of computing task is a picture recognition, then the function that may need to be called is the function photoRecognition() of image recognition. If the computing task is a speech recognition, then the function that may need to be called is the function speechRecognition() of speech recognition.
  • the computing power required in the computing power task request package can be a definite value, indicating the computing power required to complete the computing task.
  • the data input field of the computing power task request package used to store the data required to perform the computing power task. Some computing tasks must have input data, then put the input data into the data input field. For example, if the computing task is image recognition, then the image to be recognized needs to be input into the data input field, and the input data of the subsequent image recognition function photoRecognition() is called from the data input field of the computing power task request package. image to be recognized.
  • the signature authentication information of the computing power task request package is used to indicate the authorization status of the sender of the computing power task request package. Requesters of network computing must be authorized.
  • the computing power task result package includes a name field and a calculation result field; in some embodiments, the computing power task result package further includes signature authentication information.
  • the name field of the computing power task result package used to uniquely identify the computing power task result package, and the word field may contain a timestamp and the identifier of the computing task requester.
  • the name field of the computing power task result package corresponds to the name field of the computing power task requirement package.
  • the task result field of the computing power task result package used to store the calculation results.
  • the task result field is variable in length; the calculation results expected by different computing tasks are different, so the length of the corresponding result field is also different, such as face recognition, image recognition and speech recognition.
  • the calculation results expected by the three computing tasks are likely to be different.
  • the signature authentication information of the computing power task result package used to indicate that the computing result is trustworthy. Signature authentication information This is to ensure that the calculation result must be trusted.
  • the computing power task request packet contains routing information.
  • the combination of the two fields of the computing task type and the required computing power is the basis for routing and forwarding, while the computing power task result packet does not need to contain additional information. Routing information, so there is no additional redundant routing information in the computing power task result packet like the data packet in the NDN network.
  • the name field of the packet used to identify the protocol packet
  • the field used for routing and forwarding such as the type of the above-mentioned computing task and the required computing power
  • a communication method for in-network computing power services is based on the communication of a computing power task demand package and a computing power task result package, the computing power task demand package is used to request calculation from a node in the network, and the computing power task result package is used to request calculation from a node in the network.
  • the calculation results returned by the nodes in the network for the computing power task demand package are stored.
  • the communication method includes the following steps:
  • Step 200 When any node (eg, node A) in the network receives the computing power task requirement package, the node (node A) determines whether it can complete the computing task requested by the computing power task requirement package.
  • the node determines whether it can complete the computing task requested by the computing power task requirement package.
  • the node in the network determines whether it can complete the computing task requested by the computing power task demand package by extracting the type of computing task and the required computing power in the computing power task demand package. Specifically, when the node in the network judges that it has deployed the function corresponding to the type of the computing task in the computing power task demand package, and has the computing power greater than or equal to the computing power required in the computing power task demand package, it judges that it can complete the task itself. The computing task requested by the computing power task requirement package, otherwise, it is judged that it cannot be completed.
  • Step 210 If the judgment can be completed, the node (node A) executes the corresponding computing task, and returns the computing result through the computing power task result packet along the original path where the computing power task demand packet was forwarded.
  • Step 220 If it is judged that it cannot be completed, the node (node A) continues to forward the computing power task demand package to other nodes in the network until a node in the network can complete the computing task requested by the computing power task demand package.
  • the node uses the computing task type and required computing power in the computing power task requirement package as the basis for routing and forwarding, and sends the computing power task request package forwarded to another node.
  • the node when the node judges that the computing task cannot be completed in step 220, the node also marks the computing task requirement package as unsatisfied; when the node receives the corresponding computing power task result package returned along the original path , the records previously marked as unsatisfied will be deleted.
  • the node may adopt a strategy of not caching the resource task result package; in some embodiments, the node may also adopt a strategy of caching the computing power task result package. Specifically, it can be divided into paths The (on-path) caching strategy and the off-path (off-path) caching strategy are described in detail below.
  • the node when the node receives the corresponding computing power task result package returned along the original path, it judges whether it has enough cache space, if so, caches the computing power task result package, otherwise, does not cache the computing power task result package. Force Task Structure Pack.
  • the node that executes the computing task requested by the computing power task requirement package after giving the computing power task result package, also judges whether it has enough cache space, and if so, caches the computing power task result package, On the contrary, it informs its adjacent nodes to cache the computing power task result packet.
  • Fig. 5 illustrates the communication method oriented to the computing power service in the network from the point of view of the nodes in the network. The following describes the communication method oriented to the computing power service in the network from the perspective of the user.
  • a communication method for in-network computing power services includes the following steps:
  • Step 300 Construct and issue a computing power task requirement package.
  • the description of the computing power task requirement package can refer to the description of Figure 4 above.
  • the computing power task requirement package includes at least the name field, the type of computing task, the required computing power and the data input field.
  • the computing power task requirement package can also include Signature authentication information.
  • Step 310 Receive a computing power task result package.
  • the description of the computing power task result package can refer to the description of FIG. 4 above.
  • the computing power task result package includes a name field and a calculation result field, and the name field of the computing power task result package and the name field of the computing power task requirement package.
  • the computing power task requirement package may also include signature authentication information.
  • step 310 How the computing power task demand packet sent in step 300 is forwarded and executed in the network, and how step 310 can receive the computing power task result packet forwarded from the node in the network, is described in detail in the method steps of FIG. 5 , For example, after the computing task demand package is forwarded to any node in the network, when the node receives the computing power task demand package, it can determine whether it is able to obtain the computing power by extracting the type of computing task and the required computing power in the computing task demand package.
  • the packet is returned along the original path where the computing power task demand packet was forwarded; when it is judged that it cannot be completed, the node uses the type of computing task and the required computing power in the computing power task demand packet as the basis for routing and forwarding, and sends the computing power task demand packet. forwarded to another node.
  • the nodes involved in the communication method for in-network computing power services can be routers or interactive machines, or pure computing nodes, which can be used for routing and computing. Please refer to FIG. 7 , it is advisable to define a node as a communication device for routing and computing.
  • This communication device can be functionally divided into four components: computing resource component 10, functional component 20, storage resource component 30 and functional modules 40.
  • the computing power resource component 10 represents the computing power available to the node.
  • the function component 20 represents the computing function deployed by the node.
  • a node may deploy one or more different computing functions, or none of the computing functions may be deployed.
  • the storage resource component 30 is used for storing calculation results or other data that needs to be stored.
  • the functional module 40 may include functional modules such as service orchestration, resource scheduling, forwarding of computing power requirements, and security authentication.
  • FIG. 8 is a schematic structural diagram of a communication device for routing and computing.
  • Routing module perform computing power demand scheduling and service orchestration.
  • Security authentication module perform security authentication on computing task requesters and computing results, the requester must be authorized, and the computing results must be trusted.
  • Forwarding module forwarding computing power requirements and forwarding calculation results.
  • Computing engine The computing power engine that performs computing tasks, including computing power.
  • Computing function library Deployed computing functions, possibly deploying multiple functions.
  • Routing/computation table FIB/CIB table, used for forwarding and execution of computing power task requirements.
  • Cache Cache computational data, or other data.
  • Physical high-speed switching fabric perform high-speed packet switching.
  • NIC network card physical network card.
  • a computing service network can be constructed.
  • the computing power service network realizes the global optimization of connection and computing power in the network, so that the operator network has the comprehensive service capability of ICT system integration and provides a consistent user experience.
  • both the interest package and the data package of the NDN network contain the name field, and the name field contains routing information.
  • the data packet does not need to be routed, so there is additional redundant routing information in the data packet.
  • the computing power task demand packet needs to be routed and forwarded, so it needs to contain routing information
  • the computing power task result packet does not need to be routed and forwarded, and directly follows the computing power task demand packet.
  • the original routing path is returned, so the computing power task result packet no longer contains redundant routing information.
  • the interest package and data package of the NDN network can only be used to request content data.
  • the present invention can be implemented for requesting computations, performing computations and returning computation results.
  • an NDN routing node When an NDN routing node receives an interest packet, it can only look up whether there is corresponding data in the cache through the name field. In the present invention, it is no longer necessary to search for data in the cache, but the node first judges whether the corresponding function (computing function) can be provided, and then judges whether it can provide sufficient computing power.
  • the data package of NDN can only be cached on-path path. Due to the continuous accumulation of copies on the path, the content is redundant, which will seriously waste the storage space of the node and reduce the overall hit rate of the cache. The calculation results are simultaneously cached on-path and off-path, and some cache optimizations are performed.
  • any tangible, non-transitory computer-readable storage medium may be used, including magnetic storage devices (hard disks, floppy disks, etc.), optical storage devices (CD to ROM, DVD, Blu Ray disks, etc.), flash memory, and/or the like .
  • These computer program instructions may be loaded on a general purpose computer, special purpose computer or other programmable data processing apparatus to form a machine such that the instructions executed on the computer or other programmable data processing apparatus may generate means for implementing the specified functions.
  • These computer program instructions may also be stored in a computer-readable memory that instructs a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable memory form a piece of Articles of manufacture, including implementing means for implementing specified functions.
  • Computer program instructions may also be loaded on a computer or other programmable data processing device to perform a series of operational steps on the computer or other programmable device to produce a computer-implemented process such that a process executed on the computer or other programmable device Instructions may provide steps for implementing specified functions.
  • the term “comprising” and any other variations thereof are non-exclusive inclusion, such that a process, method, article or device including a list of elements includes not only those elements, but also not expressly listed or included in the process , method, system, article or other elements of a device.
  • the term “coupled” and any other variations thereof refer to physical connections, electrical connections, magnetic connections, optical connections, communication connections, functional connections, and/or any other connection.

Abstract

An in-network resource service-oriented communication method and an in-interwork computing power service-oriented communication method. Taking an in-network resource service as an example, a resource task request packet, a resource task result packet, and a corresponding forwarding strategy are constructed, so as to design a reasonable and efficient communication method and communication device used for resource service request and resource service response in an in-network resource service scenario.

Description

一种面向网内算力或资源服务的通信方法A communication method for in-network computing power or resource services 技术领域technical field
本发明涉及一种面向网内资源服务的通信方法,具体涉及一种面向网内算力服务的通信方法。The invention relates to a communication method oriented to resource services in a network, in particular to a communication method oriented to computing power services in a network.
背景技术Background technique
网络的核心价值是提高效率,电话网提高了人类沟通的效率,互联网提高了人类协同工作的效率。传统互联网架构的基本拓扑抽象是端到端模型:网络在中间、计算在外围,主机通过网络实现逻辑虚拟的全连接。而边缘计算或者泛在计算的场景中,拓扑变成了计算嵌在网络中间,从完成用户的计算任务的角度,嵌入的资源不再是对等关系,而是需要考虑距离的不同,以及网络状况的好坏。边缘计算的广泛部署给运营商网络带来新的机遇和挑战。边缘计算的发展促进基础资源层面网络域计算的融合,算力资源由“端”变“网”,逐渐实现智能化基础设施的全网覆盖。The core value of the network is to improve efficiency. The telephone network improves the efficiency of human communication, and the Internet improves the efficiency of human collaboration. The basic topology abstraction of the traditional Internet architecture is the end-to-end model: the network is in the middle, the computing is in the periphery, and the host is fully connected to the logical virtual through the network. In the scenario of edge computing or ubiquitous computing, the topology becomes computing embedded in the middle of the network. From the perspective of completing the user's computing tasks, the embedded resources are no longer peer-to-peer, but need to consider differences in distance and network good or bad condition. The widespread deployment of edge computing brings new opportunities and challenges to operator networks. The development of edge computing promotes the integration of network domain computing at the basic resource level.
技术问题technical problem
本发明主要提供一种面向网内算力服务的通信方法和一种面向网内资源服务的通信方法,下面具体说明。The present invention mainly provides a communication method oriented to in-network computing power service and a communication method oriented to in-network resource service, which will be described in detail below.
技术解决方案technical solutions
根据第一方面,一种实施例中提供一种面向网内算力服务的通信方法,包括:According to a first aspect, an embodiment provides a communication method for in-network computing power services, including:
构建并发出算力任务需求包,其中算力任务需求包至少包括名字字段、计算任务的类型、需要的算力和数据输入域;所述算力任务需求包的名字字段用于唯一标识算力任务需求包,数据输入域用于存放待计算的数据;Build and issue a computing power task requirement package, wherein the computing power task requirement package at least includes a name field, the type of computing task, the required computing power and data input fields; the name field of the computing power task requirement package is used to uniquely identify the computing power The task requirement package, the data input field is used to store the data to be calculated;
接收算力任务结果包,其中所述算力任务结果包包括名字字段和计算结果域,所述算力任务结果包的名字字段用于唯一标识算力任务结果包,计算结果域用于存放计算结果;所述算力任务结果包的名字字段与算力任务需求包的名字字段对应;Receive a computing power task result package, wherein the computing power task result package includes a name field and a calculation result field, the name field of the computing power task result package is used to uniquely identify the computing power task result package, and the calculation result field is used to store the calculation result. Result; the name field of the computing power task result package corresponds to the name field of the computing power task requirement package;
其中:in:
所述算务任务需求包被转发到网内任意一节点后,节点收到算力任务需求包时,通过提取算力任务需求包中的计算任务的类型和需要的算力,来判断自身是否能够完成算力任务需求包所请求的计算任务;具体地,当节点判断其自身部署有算力任务需求包中计算任务的类型所对应的函数,且有大于或等于算力任务需求包中需要的算力时,则判断自身能够完成算力任务需求包所请求的计算任务,反之,则判断不能够完成;After the computing task demand package is forwarded to any node in the network, when the node receives the computing task demand package, it determines whether it is by extracting the type of computing task and the computing power required in the computing task demand package. Able to complete the computing task requested by the computing power task requirement package; specifically, when the node judges that it has deployed the function corresponding to the type of computing task in the computing power task requirement package, and the function is greater than or equal to the computing task required in the computing power task requirement package. When the computing power is high, it is judged that it can complete the computing task requested by the computing power task demand package; otherwise, it is judged that it cannot be completed;
当判断能够完成,则节点执行相应的计算任务,并将计算结果通过算力任务结果包沿算力任务需求包被转发的原路径所返回;当判断不能够完成,则节点根据算力任务需求包中计算任务的类型和需要的算力作为路由转发依据,将算力任务需求包转发给另一节点。When it is judged that it can be completed, the node executes the corresponding computing task, and returns the calculation result through the computing power task result packet along the original path where the computing power task demand packet was forwarded; The type of computing task in the package and the required computing power are used as the basis for routing and forwarding, and the computing power task demand package is forwarded to another node.
一实施例中,所述算力任务需求包还包括签名认证信息,用于表示算力任务需求包发出者的授权情况;所述算力任务结果包还包括签名认证信息,用于表示计算结果可信任的情况。In one embodiment, the computing power task requirement package further includes signature authentication information, which is used to indicate the authorization status of the sender of the computing power task requirement package; the computing power task result package further includes signature authentication information, which is used to indicate the calculation result. Trusted situation.
根据第二方面,一种实施例中提供一种面向网内算力服务的通信方法,所述通信方法基于算力任务需求包和算力任务结果包通信,所述算力任务需求包用于向网内节点请求计算,所述算力任务结果包则存放有网内节点针对算力任务需求包所返回的计算结果;所述通信方法包括:According to a second aspect, an embodiment provides a communication method for in-network computing power services, the communication method is based on the communication of a computing power task demand package and a computing power task result package, and the computing power task demand package is used for Request calculation from the node in the network, and the computing power task result package stores the calculation result returned by the node in the network for the computing power task demand package; the communication method includes:
当网内任意一节点收到算力任务需求包时,该节点判断自身是否能够成完成算力任务需求包所请求的计算任务;When any node in the network receives the computing power task demand package, the node judges whether it can complete the computing task requested by the computing power task demand package;
如果判断能够完成,则该节点执行相应的计算任务,并将计算结果通过算力任务结果包沿算力任务需求包被转发的原路径所返回;If the judgment can be completed, the node executes the corresponding computing task, and returns the computing result through the computing power task result packet along the original path where the computing power task demand packet was forwarded;
如果判断不能够完成,则该节点继续将算力任务需求包转发到网内其他节点,直到网内有节点能够完成算力任务需求包所请求的计算任务为止。If it is judged that it cannot be completed, the node continues to forward the computing power task demand package to other nodes in the network until a node in the network can complete the computing task requested by the computing power task demand package.
一实施例中,如果判断不能够完成,则节点还在自身将算务任务需求包标记为未满足;当节点接收到沿原路径所返回的相应的算力任务结果包时,则将之前相应标记为未满足的记录删除。In one embodiment, if it is judged that it cannot be completed, the node also marks the computing task requirement package as unsatisfied; when the node receives the corresponding computing task result package returned along the original path, the previous corresponding Records marked as unsatisfied are deleted.
一实施例中,当节点接收到沿原路径所返回的相应的算力任务结果包时,判断自身是否有足够的缓存空间,如果有,则缓存算力任务结果包,反之,则不缓存算力任务结构包;或者,In one embodiment, when the node receives the corresponding computing power task result packet returned along the original path, it judges whether it has enough cache space, and if so, caches the computing power task result packet, otherwise, does not cache force task structure package; or,
执行算力任务需求包所请求的计算任务的节点,在给出算力任务结果包后,还判断自身是否有足够的缓存空间,如果有,则缓存算力任务结果包,反之,则通知其邻接节点缓存算力任务结果包。The node that executes the computing task requested by the computing power task demand package, after giving the computing power task result package, also judges whether it has enough cache space. If so, it caches the computing power task result package. Adjacent nodes cache computing power task result packets.
一实施例中,所述算力任务需求包至少包括名字字段、计算任务的类型和需要的算力,所述算力任务需求包的名字字段用于唯一标识算力任务需求包;所述算力任务结果包包括名字字段和计算结果域,所述算力任务结果包的名字字段用于唯一标识算力任务结果包,计算结果域用于存放计算结果;所述算力任务结果包的名字字段与算力任务需求包的名字字段对应。In one embodiment, the computing power task requirement package at least includes a name field, the type of computing task and the required computing power, and the name field of the computing power task requirement package is used to uniquely identify the computing power task requirement package; The power task result bag includes a name field and a calculation result field, and the name field of the calculation power task result bag is used to uniquely identify the calculation power task result bag, and the calculation result field is used to store the calculation result; the name of the calculation power task result bag The field corresponds to the name field of the computing power task requirement package.
一实施例中,网内节点收到算力任务需求包时,通过提取算力任务需求包中的计算任务的类型和需要的算力,来判断自身是否能够完成算力任务需求包所请求的计算任务;具体地,当网内节点判断其自身部署有算力任务需求包中计算任务的类型所对应的函数,且有大于或等于算力任务需求包中需要的算力时,则判断自身能够完成算力任务需求包所请求的计算任务,反之,则判断不能够完成。In one embodiment, when the node in the network receives the computing power task demand package, it determines whether it can complete the computing power task demand package by extracting the type of the computing task and the required computing power in the computing power task demand package. Computing tasks; specifically, when a node in the network judges that it has deployed a function corresponding to the type of computing task in the computing power task demand package, and has a computing power greater than or equal to the computing power required in the computing power task demand package, it judges itself The computing task requested by the computing power task requirement package can be completed, otherwise, it is judged that it cannot be completed.
一实施例中,当节点判断不能够完成算力任务需求包所请求的计算任务时,则节点根据算力任务需求包中计算任务的类型和需要的算力作为路由转发依据,将算力任务需求包转发给另一节点。In one embodiment, when the node judges that the computing task requested by the computing power task requirement package cannot be completed, the node uses the computing task type and required computing power in the computing power task requirement package as the basis for routing and forwarding, and sends the computing power task The demand packet is forwarded to another node.
一实施例中,所述算力任务需求包还包括数据输入域和/或签名认证信息,所述算力任务需求包的数据输入域用于存放待计算的数据,签名认证信息用于表示算力任务需求包发出者的授权情况;所述算力任务结果包还包括签名认证信息,用于表示计算结果可信任的情况。In one embodiment, the computing power task requirement package further includes a data input field and/or signature authentication information, the data input field of the computing power task requirement package is used to store the data to be calculated, and the signature authentication information is used to indicate the calculation The authorization status of the sender of the power task demand package; the computing power task result package also includes signature authentication information, which is used to indicate that the calculation result is trustworthy.
根据第三方面,一种实施例提供一种面向网内资源服务的通信方法,所述通信方法基于资源任务请求包和资源任务结果包通信,所述资源任务请求包用于向网内节点请求资源任务,所述资源任务结果包则存放有网内节点针对资源任务请求包所返回的任务结果,所述通信方法包括:According to a third aspect, an embodiment provides a communication method for in-network resource services. The communication method communicates based on a resource task request package and a resource task result package, and the resource task request package is used to request an in-network node Resource task, the resource task result package stores the task result returned by the node in the network for the resource task request package, and the communication method includes:
当网内任意一节点收到资源任务请求包时,该节点判断自身是否能够成完成资源任务请求包所请求的资源任务; When any node in the network receives the resource task request package, the node determines whether it can complete the resource task requested by the resource task request package;
如果判断能够完成,则该节点执行相应的资源任务,并将任务结果通过资源任务结果包沿资源任务请求包被转发的原路径所返回;If the judgment can be completed, the node executes the corresponding resource task, and returns the task result through the resource task result package along the original path where the resource task request package was forwarded;
如果判断不能够完成,则该节点继续将资源任务请求包转发到网内其他节点,直到网内有节点能够完成资源任务请求包所请求的资源任务为止。If it is judged that it cannot be completed, the node continues to forward the resource task request packet to other nodes in the network until a node in the network can complete the resource task requested by the resource task request packet.
一实施例中,如果判断不能够完成,则节点还在自身将资源任务请求包标记为未满足;当节点接收到沿原路径所返回的相应的资源任务结果包时,则将之前相应标记为未满足的记录删除。In one embodiment, if it is judged that it cannot be completed, the node also marks the resource task request package as unsatisfied; when the node receives the corresponding resource task result package returned along the original path, it marks the previous corresponding package as unsatisfied. Unsatisfied records are deleted.
一实施例中,当节点接收到沿原路径所返回的相应的资源任务结果包时,判断自身是否有足够的缓存空间,如果有,则缓存资源任务结果包,反之,则不缓存资源任务结果包;或者,In one embodiment, when the node receives the corresponding resource task result package returned along the original path, it determines whether it has enough cache space, and if so, caches the resource task result package, otherwise, does not cache the resource task result package; or,
执行资源任务请求包所请求的资源任务的节点,在给出资源任务结果包后,还判断自身是否有足够的缓存空间,如果有,则缓存资源任务结果包,反之,则通知其邻接节点缓存资源任务结果包。The node that executes the resource task requested by the resource task request package, after giving the resource task result package, also judges whether it has enough cache space. If so, it caches the resource task result package. Resource task result package.
一实施例中,所述资源任务请求包至少包括名字字段、资源任务的类型和需要的资源量,所述资源任务请求包的名字字段用于唯一标识资源任务请求包;所述资源任务结果包包括名字字段和计算结果域,所述资源任务结果包的名字字段用于唯一标识资源任务结果包,任务结果域用于存放任务结果;所述资源任务结果包的名字字段与资源任务请求包的名字字段对应。In one embodiment, the resource task request package at least includes a name field, the type of resource task and the required amount of resources, and the name field of the resource task request package is used to uniquely identify the resource task request package; the resource task result package Including a name field and a calculation result field, the name field of the resource task result bag is used to uniquely identify the resource task result bag, and the task result field is used to store the task result; the name field of the resource task result bag and the resource task request bag are used. corresponding to the name field.
一实施例中,网内节点收到资源任务需求包时,通过提取资源任务需求包中的资源任务的类型和需要的资源量,来判断自身是否能够完成资源任务需求包所请求的资源任务;具体地,当网内节点判断其自身部署有资源任务需求包中资源任务的类型所对应的函数,且有大于或等于资源任务需求包中需要的资源量时,则判断自身能够完成资源任务需求包所请求的资源任务,反之,则判断不能够完成。In one embodiment, when the node in the network receives the resource task requirement package, it determines whether it can complete the resource task requested by the resource task requirement package by extracting the resource task type and required resource amount in the resource task requirement package; Specifically, when a node in the network judges that it has deployed a function corresponding to the type of the resource task in the resource task demand package, and the amount of resources required in the resource task demand package is greater than or equal to that of the resource task demand package, it judges that it can complete the resource task demand. The resource task requested by the package, otherwise, it is judged that it cannot be completed.
一实施例中,当节点判断不能够完成资源任务需求包所请求的资源任务时,则节点根据资源任务需求包中资源任务的类型和需要的资源量作为路由转发依据,将资源任务需求包转发给另一节点。In one embodiment, when the node judges that the resource task requested by the resource task demand package cannot be completed, the node forwards the resource task demand package according to the type of resource task and the required amount of resources in the resource task demand package as the basis for routing and forwarding. to another node.
根据第四方面,一种实施例提供一种计算机可读存储介质,包括程序,所述程序能够被处理器执行以实现本文任一实施例所述的方法。According to a fourth aspect, an embodiment provides a computer-readable storage medium comprising a program executable by a processor to implement the method described in any of the embodiments herein.
附图说明Description of drawings
图1为一种实施例的资源任务请求包和资源任务结果包的示意图;1 is a schematic diagram of a resource task request package and a resource task result package according to an embodiment;
图2为一种实施例的面向网内资源服务的通信方法的流程图;2 is a flow chart of a communication method oriented to resource services in a network according to an embodiment;
图3为一种实施例的算力任务请求包和算力任务结果包的转发示意图;3 is a schematic diagram of forwarding of a computing power task request packet and a computing power task result packet according to an embodiment;
图4为一种实施例的算力任务请求包和算力任务结果包的示意图;4 is a schematic diagram of a computing power task request package and a computing power task result package according to an embodiment;
图5为一种实施例的面向网内算力服务的通信方法的流程图;5 is a flow chart of a communication method oriented to an in-network computing power service according to an embodiment;
图6为另一种实施例的面向网内算力服务的通信方法的流程图;FIG. 6 is a flow chart of a communication method for in-network computing power services according to another embodiment;
图7为一种实施例的用于路由和计算的通信装置的结构示意图;7 is a schematic structural diagram of a communication device for routing and computing according to an embodiment;
图8为另一种实施例的用于路由和计算的通信装置的结构示意图。FIG. 8 is a schematic structural diagram of a communication device for routing and computing according to another embodiment.
本发明的实施方式Embodiments of the present invention
下面通过具体实施方式结合附图对本发明作进一步详细说明。其中不同实施方式中类似元件采用了相关联的类似的元件标号。在以下的实施方式中,很多细节描述是为了使得本申请能被更好的理解。然而,本领域技术人员可以毫不费力的认识到,其中部分特征在不同情况下是可以省略的,或者可以由其他元件、材料、方法所替代。在某些情况下,本申请相关的一些操作并没有在说明书中显示或者描述,这是为了避免本申请的核心部分被过多的描述所淹没,而对于本领域技术人员而言,详细描述这些相关操作并不是必要的,他们根据说明书中的描述以及本领域的一般技术知识即可完整了解相关操作。The present invention will be further described in detail below through specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments have used associated similar element numbers. In the following embodiments, many details are described so that the present application can be better understood. However, those skilled in the art will readily recognize that some of the features may be omitted under different circumstances, or may be replaced by other elements, materials, and methods. In some cases, some operations related to the present application are not shown or described in the specification, in order to avoid the core part of the present application from being overwhelmed by excessive description, and for those skilled in the art, these are described in detail. The relevant operations are not necessary, and they can fully understand the relevant operations according to the descriptions in the specification and general technical knowledge in the field.
另外,说明书中所描述的特点、操作或者特征可以以任意适当的方式结合形成各种实施方式。同时,方法描述中的各步骤或者动作也可以按照本领域技术人员所能显而易见的方式进行顺序调换或调整。因此,说明书和附图中的各种顺序只是为了清楚描述某一个实施例,并不意味着是必须的顺序,除非另有说明其中某个顺序是必须遵循的。Additionally, the features, acts, or characteristics described in the specification may be combined in any suitable manner to form various embodiments. At the same time, the steps or actions in the method description can also be exchanged or adjusted in order in a manner obvious to those skilled in the art. Therefore, the various sequences in the specification and drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a necessary order unless otherwise stated, a certain order must be followed.
本文中为部件所编序号本身,例如“第一”、“第二”等,仅用于区分所描述的对象,不具有任何顺序或技术含义。而本申请所说“连接”、“联接”,如无特别说明,均包括直接和间接连接(联接)。The serial numbers themselves, such as "first", "second", etc., for the components herein are only used to distinguish the described objects, and do not have any order or technical meaning. The "connection" and "connection" mentioned in this application, unless otherwise specified, include both direct and indirect connections (connections).
在云计算、边缘计算的发展大趋势下,未来社会中会在靠近用户的不同距离遍布不同规模的资源例如算力资源,通过网络为用户提供各类个性化的服务。因此算力服务网络要求协同考虑网络和计算融合演进的需求,实现泛在链接和算力资源的全网优化、算力需求的灵活调度,算力任务的合理分布。算力服务网络通过对网络、存储和算力等多维度资源的统一管理和协同调度,实现连接和算力在网络的全局优化。算力服务网络的目标可以有一个或多个。例如实现用户体验一致性:网络可以感知无处不在的计算和服务,用户无需关心网络中的计算资源的位置和部署状态。再例如实现服务灵活动态部署:根据实时资源状态和用户SLA(Service-Level Agreement,服务等级协议)需求,灵活调度业务到最优的边缘节点上。Under the general development trend of cloud computing and edge computing, resources of different scales, such as computing resources, will be distributed at different distances close to users in the future society, and various personalized services will be provided to users through the network. Therefore, the computing power service network needs to coordinately consider the needs of the evolution of network and computing integration, and realize the network-wide optimization of ubiquitous links and computing power resources, flexible scheduling of computing power requirements, and reasonable distribution of computing power tasks. The computing power service network realizes the global optimization of connection and computing power in the network through unified management and coordinated scheduling of multi-dimensional resources such as network, storage and computing power. There can be one or more targets for the computing power service network. For example, to achieve user experience consistency: the network can perceive ubiquitous computing and services, and users do not need to care about the location and deployment status of computing resources in the network. Another example is to realize flexible and dynamic service deployment: according to real-time resource status and user SLA (Service-Level Agreement, service-level agreement) requirements, flexibly schedule services to the optimal edge node.
以上是以算力这种资源为例进行的举例和说明,其他资源例如存储资源和带宽资源也是类似的。如上所述,网络的核心价值是提高效率。针对网内资源服务场景下,特别是算力服务网络场景下,设计一个高效的资源服务请求和应答的通信逻辑是非常关键的。因此本发明要解决的技术问题是:设计一种合理高效的通信方法和通信装置,用于网内资源服务场景下的资源服务请求和资源服务应答。The above is an example and description using computing power as an example, and other resources such as storage resources and bandwidth resources are similar. As mentioned above, the core value of the network is to improve efficiency. For in-network resource service scenarios, especially in computing power service network scenarios, it is critical to design an efficient communication logic for resource service requests and responses. Therefore, the technical problem to be solved by the present invention is to design a reasonable and efficient communication method and communication device, which are used for resource service request and resource service response in the scenario of in-network resource service.
在介绍本发明之前,先对一些现有技术进行介绍。信息中心网络(ICN,Information-Center Network)架构,采用以信息为中心的通信方式替代现有的端到端的通信方式,其定义了网络层的协议。在ICN的这种模式中,数据位置的重要性被淡化,相对于物理逻辑而言,关注的是数据内容本身;在ICN中,用户只用关心任何网络节点迅速地获取数据(或者副本),不关心内容的位置。ICN的一个重要代表是,命名数据网络(NDN,Named Data Networking),亦称为Content-Centric Networking (CCN)。命名数据网络中所有的数据都是基于名字来标识,网络中不再存在IP地址和通信连接的概念,其网络通信基于两类数据包,Interest包(兴趣包,有些情况下也可称之为请求包)和Data包(数据包),两者根据完整或相对的名字进行匹配。兴趣包用于数据请求方向网络中请求数据,而数据包是数据拥有者收到请求后返回的数据。NDN是一种基于拉(pull)的架构,其中用户通过发送兴趣包来请求数据,相应的数据包沿相同路径返回,通过数据内置的缓存功能和灵活的转发策略层来获得良好的内容分发功能。NDN面向内容的网络传输特性使其能用于海量数据的内容分发。Before introducing the present invention, some prior art is introduced. Information Center Network (ICN, Information-Center Network) architecture, which uses information-centric communication to replace the existing end-to-end communication, which defines the protocol of the network layer. In this mode of ICN, the importance of data location is downplayed. Compared with physical logic, the focus is on the data content itself; in ICN, users only need to care about any network node to quickly obtain data (or copies), Don't care about the location of the content. An important representative of ICN is the Named Data Network (NDN, Named Data Networking), also known as Content-Centric Networking (CCN). All data in the named data network is identified based on the name. The concept of IP address and communication connection no longer exists in the network, and its network communication is based on two types of data packets, Interest packets (interest packets, in some cases can also be called as request packets) and Data packets (data packets), which are matched by full or relative names. Interest packets are used to request data from the data requesting direction network, and data packets are the data returned by the data owner after receiving the request. NDN is a pull-based architecture, in which users request data by sending Interest packets, and the corresponding data packets return along the same path, achieving good content distribution capabilities through the data's built-in caching function and flexible forwarding strategy layer . The content-oriented network transmission characteristics of NDN enable it to be used for content distribution of massive data.
如上所述,NDN网络中存在两种数据包类型,一类是Interest包,另一类是Data包,两者根据完整或相对的名字进行匹配。网络通信过程完全由内容消费者驱动,请求方通过本地拥有的一个或多个接口向网络中发送Interest包,以数据命名为纽带,采用拉(pull)的方式获取相应的Data包。具体地,Interest包主要包含“Content Name”、“Selector”和“Nonce”等字段;其中“Content Name”字段用于唯一地标识一个内容块;“Selector”字段由产生Interest包的内容消费者提供,主要是用于附加一些用于转发决策的额外信息;“Nonce”字段是由产生Interest包的内容消费者产生,主要用于防止Interest包在转发过程中出现环路。Data包主要包括“Content Name”、“Signature”、“Signed Info”和“Content”;其中“Content Name”字段与Interest包中的“Content Name”一一对应;“Content”字段携带着一个内容块的具体数据。由于每一个Data包都需要被产生这个块的内容生产者进行签名以实现内容的完整性和可靠性,因此,“Signature”字段和“Signed Info”字段分别用于携带具体的签名内容及相关的签名者信息。As mentioned above, there are two types of data packets in the NDN network, one is the Interest packet, the other is the Data packet, and the two are matched according to the complete or relative name. The network communication process is completely driven by the content consumer. The requester sends an Interest packet to the network through one or more locally owned interfaces, names the data as a link, and uses a pull method to obtain the corresponding Data packet. Specifically, the Interest package mainly contains fields such as "Content Name", "Selector", and "Nonce"; the "Content Name" field is used to uniquely identify a content block; the "Selector" field is provided by the content consumer who generates the Interest package , which is mainly used to attach some additional information for forwarding decisions; the "Nonce" field is generated by the content consumer that generates the Interest packet, and is mainly used to prevent loops in the forwarding process of the Interest packet. The Data package mainly includes "Content Name", "Signature", "Signed Info" and "Content"; the "Content Name" field corresponds to the "Content Name" in the Interest package one-to-one; the "Content" field carries a content block specific data. Since each Data packet needs to be signed by the content producer that generates this block to achieve the integrity and reliability of the content, the "Signature" field and the "Signed Info" field are respectively used to carry specific signature content and related Signer information.
当NDN网络中的路由节点接收到一个Interest包后,将执行以下操作:When a routing node in an NDN network receives an Interest packet, it will perform the following actions:
(1)使用接收到的Interest包中包含的“内容名字”字段来检索CS(Content Store,内容存储),查找该Interest包所对应的块是否存在于本地的CS。如果所请求的块存在,则生成一个对应的Data包并将该Data包通过接收到的Interest包到达的接口发送出去,然后将该Interest包丢弃;(1) Use the "Content Name" field contained in the received Interest packet to retrieve the CS (Content Store, content storage), to find out whether the block corresponding to the Interest package exists in the local CS. If the requested block exists, generate a corresponding Data packet and send the Data packet through the interface to which the received Interest packet arrives, and then discard the Interest packet;
(2)如果所请求的块不存在于本地CS,则去搜索PIT表,确认之前是否接收到与本次完全相同的Interest包。如果接收到的Interest包是第一次收到,一个包含有该Interest包的内容名字和接收到该Interest包接口的新PIT(Pending Interest Table,待定兴趣表)表项将被建立;(2) If the requested block does not exist in the local CS, search the PIT table to confirm whether the exact same Interest package as this time has been received before. If the received Interest package is received for the first time, a new PIT (Pending Interest Table) entry containing the content name of the Interest package and the interface that received the Interest package will be created;
(3)一旦在PIT表中新建一个表项,则表明接收到的Interest包将被进一步转发到被请求内容所在的位置。为了确定该Interest包将从哪一个或几个接口转发出去,路由节点使用“最长前缀匹配(Longest Prefix Matching,LPM)方法检索本地FIB(Forwarding Information Base,转发信息库)表,根据本地配置的转发策略选择转发接口并将该Interest包转发出去,然后该Interest包被丢弃,从而结束其在路由节点的处理流程;(3) Once a new entry is created in the PIT table, it indicates that the received Interest packet will be further forwarded to the location where the requested content is located. In order to determine which interface or interfaces the Interest packet will be forwarded from, the routing node uses the Longest Prefix Matching (LPM) method to retrieve the local FIB (Forwarding Information Base) table. The forwarding strategy selects the forwarding interface and forwards the Interest packet, and then the Interest packet is discarded, thereby ending its processing flow in the routing node;
(4)如果PIT表中已经存在一个对应的表项,则把这个Interest包到达的接口添加到该PIT表项中并将该Interest包丢弃;(4) If a corresponding entry already exists in the PIT table, add the interface to which the Interest packet arrives to the PIT entry and discard the Interest packet;
(5)每一个PIT表项都有一个生存周期,当这个生存周期到达后,对应的PIT表项将从PIT表中移除。(5) Each PIT entry has a life cycle. When this life cycle arrives, the corresponding PIT entry will be removed from the PIT table.
当NDN网络中的路由节点接收到一个Data包后,将执行以下操作:When a routing node in an NDN network receives a Data packet, it will perform the following operations:
(1)使用Data包中包含的“内容名字”字段检索本地的PIT表,确认该Data包是否有对应的Interest包存在PIT表中;(1) Use the "Content Name" field contained in the Data package to retrieve the local PIT table, and confirm whether the Data package has a corresponding Interest package stored in the PIT table;
(2)如果存在对应PIT表项,则将该Data包从对应PIT表项中包含的所有接口转发出去,同时删除该PIT表项;(2) If there is a corresponding PIT entry, forward the Data packet from all interfaces included in the corresponding PIT entry, and delete the PIT entry at the same time;
(3)如果不存在对应的PIT表项,则将收到的Data直接丢弃;(3) If there is no corresponding PIT entry, the received Data will be discarded directly;
(4)如果该路由节点本地CS的缓存替换策略决定缓存该Data包,则将该Data包插入到本地的CS中。(4) If the cache replacement policy of the local CS of the routing node decides to cache the Data packet, insert the Data packet into the local CS.
申请人参考了NDN网络的一些思想,对其加以借鉴和改进,提出了本发明,一些例子中也摒除了申请人研究NDN网络所认为其固有的一些缺点。申请人认为NDN网络具有以下缺点:The applicant refers to some ideas of the NDN network, draws lessons from and improves it, and proposes the present invention, and in some cases, some disadvantages that the applicant considers inherent in the study of the NDN network are also eliminated. Applicants believe that NDN networks have the following disadvantages:
(1)NDN网络的interest包和data包中均包含name域,而name域含有路由信息。但是data包并不需要进行路由,所以在导致在data包中额外的存在了冗余的路由信息。(1) The interest package and data package of the NDN network both contain the name field, and the name field contains routing information. However, the data packet does not need to be routed, so there is additional redundant routing information in the data packet.
(2)NDN网络的interest包和data包只能用于请求content数据。不能直接用于算力服务网络,进行算力任务的计算请求、计算执行以及计算结果的返回。(2) The interest package and data package of the NDN network can only be used to request content data. It cannot be directly used in the computing power service network to perform computing requests, computing execution and return of computing results for computing tasks.
(3)NDN的路由节点收到interest时,首先通过name在缓存中查找是否有相应的数据。这种处理方式不再适应于网内资源服务场景、特别是算力服务网络中计算任务和计算结果的处理逻辑。(3) When the routing node of NDN receives interest, it first checks whether there is corresponding data in the cache through name. This processing method is no longer suitable for in-network resource service scenarios, especially the processing logic of computing tasks and computing results in the computing power service network.
(4)NDN的data包只能采用的是路径缓存。路径缓存是一种简单的方法,它需要更少的计算和在网络中放置副本的通信开销。内容副本缓存在从内容提供者到用户的路径中的中间节点中。但是,由于路径上的副本不断累积,导致内容冗余,会严重浪费节点的存储空间,降低缓存的整体命中率。(4) The data package of NDN can only use the path cache. Path caching is a simple approach that requires less computation and communication overhead of placing replicas in the network. Copies of content are cached at intermediate nodes in the path from the content provider to the user. However, due to the continuous accumulation of copies on the path, the content is redundant, which will seriously waste the storage space of the node and reduce the overall hit rate of the cache.
本发明提出一种面向网内资源服务的通信方法,特别是一种面向网内算力服务的通信方法,下面具体说明。The present invention proposes a communication method oriented to in-network resource services, particularly a communication method oriented to in-network computing power services, which will be described in detail below.
针对网内资源服务的通信方法,本发明构建了两种数据包,即资源任务请求包和资源任务结果包。资源任务请求包用于向网内节点请求资源任务,资源任务结果包则存放有网内节点针对资源任务请求包所返回的任务结果。For the communication method of the resource service in the network, the present invention constructs two kinds of data packages, namely, the resource task request package and the resource task result package. The resource task request package is used to request resource tasks from the nodes in the network, and the resource task result package stores the task results returned by the nodes in the network for the resource task request package.
一个资源任务请求包可以对应一个或多个资源任务结果包。资源任务请求包需要经过路由寻找一条路由路径。资源任务结果包不需要经过路由,直接沿着资源任务请求包的路由路径返回。A resource task request package can correspond to one or more resource task result packages. The resource task request packet needs to find a routing path through routing. The resource task result packet does not need to be routed, and is directly returned along the routing path of the resource task request packet.
通信方法是基于pull(拉)的通信模型,即只有用户或者说用户端应用程序主动发出一个资源任务请求包,网络中的节点才会执行资源任务并返回一个或多个资源任务结果包给用户。The communication method is based on the pull (pull) communication model, that is, only when the user or the client application actively sends a resource task request packet, the nodes in the network will execute the resource task and return one or more resource task result packets to the user. .
请参照图1,一些实施例中,资源任务请求包至少包括名字字段、资源任务的类型和需要的资源量;一些实施例中,资源任务请求包还可以包括数据输入域和/或签名认证信息。具体地,资源任务请求包的名字字段:用于唯一标识资源任务请求包;名字字段可以包含时间戳和资源任务请求者的标识。资源任务请求包的资源任务的类型:决定了实现资源任务所需要的工具。资源任务请求包中需要的资源量,可以是一个确定的数值,表示完成资源任务所需要的资源量。资源任务请求包的数据输入域:用于存放执行资源任务所需要的数据。资源任务请求包的签名认证信息用于表示资源任务需求包发出者的授权情况。Referring to FIG. 1, in some embodiments, the resource task request package at least includes a name field, the type of resource task and the required amount of resources; in some embodiments, the resource task request package may also include a data input field and/or signature authentication information . Specifically, the name field of the resource task request package: used to uniquely identify the resource task request package; the name field may contain a timestamp and an identifier of the resource task requester. The type of resource task in the resource task request package: determines the tools required to implement the resource task. The amount of resources required in the resource task request package may be a definite value, indicating the amount of resources required to complete the resource task. The data input field of the resource task request package: used to store the data required to execute the resource task. The signature authentication information of the resource task request package is used to indicate the authorization status of the sender of the resource task request package.
一些实施例中,资源任务结果包包括名字字段和计算结果域;一些实施例中,资源任务结果包还包括签名认证信息。具体地,资源任务结果包的名字字段:用于唯一标识资源任务结果包,字字段可以包含时间戳和资源任务请求者的标识。资源任务结果包的任务结果域:用于存放任务结果。资源任务结果包的名字字段与算力任务需求包的名字字段对应。In some embodiments, the resource task result package includes a name field and a calculation result field; in some embodiments, the resource task result package further includes signature authentication information. Specifically, the name field of the resource task result package: used to uniquely identify the resource task result package, and the word field may contain a timestamp and an identifier of the resource task requester. The task result field of the resource task result package: used to store the task result. The name field of the resource task result package corresponds to the name field of the computing power task requirement package.
可以看到,资源任务请求包中包含了路由信息,其中资源任务的类型和需要的资源量这两个字段结合起来是路由转发的依据,而资源任务结果包中则不需要包含额外的路由信息,因此资源任务结果包中不像NDN网络中的data包一样额外存在冗余的路由信息。具体设计时,则是将包的名字字段(用于标识协议包)和用于路由转发的字段(例如上述的资源任务的类型和需要的资源量)分离开,这样资源任务结果包中就不再包含冗余的路由信息。It can be seen that the resource task request packet contains routing information. The combination of the two fields of the resource task type and the required resource amount is the basis for routing forwarding, while the resource task result packet does not need to contain additional routing information. , so there is no redundant routing information in the resource task result packet like the data packet in the NDN network. In the specific design, the name field of the package (used to identify the protocol package) and the field used for routing and forwarding (such as the above-mentioned resource task type and required resource amount) are separated, so that the resource task result package does not contain Include redundant routing information.
一些实施例的面向网内资源服务的通信方法,该通信方法基于资源任务请求包和资源任务结果包通信,资源任务请求包用于向网内节点请求资源任务,资源任务结果包则存放有网内节点针对资源任务请求包所返回的任务结果。请参照图2,通信方法包括以下步骤:The communication method for in-network resource service of some embodiments, the communication method is based on resource task request package and resource task result package communication, the resource task request package is used to request resource tasks from nodes in the network, and the resource task result package is stored in the network. The task result returned by the inner node for the resource task request package. Please refer to Fig. 2, the communication method includes the following steps:
步骤100:网内任意一节点(例如节点A)收到资源任务请求包。Step 100: Any node in the network (eg, node A) receives a resource task request packet.
步骤110:当网内任意一节点(例如上述的节点A)收到资源任务请求包时,该节点(节点A)判断自身是否能够成完成资源任务请求包所请求的资源任务。Step 110: When any node in the network (eg, the above-mentioned node A) receives the resource task request package, the node (node A) determines whether it can complete the resource task requested by the resource task request package.
具体地,网内节点收到资源任务需求包时,通过提取资源任务需求包中的资源任务的类型和需要的资源量,来判断自身是否能够完成资源任务需求包所请求的资源任务;具体地,当网内节点判断其自身部署有资源任务需求包中资源任务的类型所对应的函数,且有大于或等于资源任务需求包中需要的资源量时,则判断自身能够完成资源任务需求包所请求的资源任务,反之,则判断不能够完成。Specifically, when the node in the network receives the resource task requirement package, it judges whether it can complete the resource task requested by the resource task requirement package by extracting the resource task type and required resource amount in the resource task requirement package; specifically , when the node in the network judges that it has deployed the function corresponding to the type of the resource task in the resource task demand package, and the amount of resources required in the resource task demand package is greater than or equal to The requested resource task, otherwise, it is judged that it cannot be completed.
步骤120:如果判断能够完成,则该节点(节点A)执行相应的资源任务,并将任务结果通过资源任务结果包沿资源任务请求包被转发的原路径所返回。Step 120: If the judgment can be completed, the node (node A) executes the corresponding resource task, and returns the task result through the resource task result packet along the original path where the resource task request packet was forwarded.
步骤130:如果判断不能够完成,则该节点(节点A)继续将资源任务请求包转发到网内其他节点,直到网内有节点能够完成资源任务请求包所请求的资源任务为止。Step 130: If it is judged that it cannot be completed, the node (node A) continues to forward the resource task request packet to other nodes in the network until a node in the network can complete the resource task requested by the resource task request packet.
具体地,在节点判断不能够完成资源任务,节点根据资源任务需求包中资源任务的类型和需要的资源量作为路由转发依据,将资源任务需求包转发给另一节点。Specifically, when the node judges that the resource task cannot be completed, the node forwards the resource task request package to another node according to the type of the resource task and the required resource amount in the resource task request package as the routing and forwarding basis.
一些例子中,在步骤130当节点判断不能够完成资源任务时,则节点还在自身将资源任务请求包标记为未满足;当节点接收到沿原路径所返回的相应的资源任务结果包时,则将之前相应标记为未满足的记录删除。In some examples, when the node judges that the resource task cannot be completed in step 130, the node also marks the resource task request package as unsatisfied; when the node receives the corresponding resource task result package returned along the original path, Records previously marked as unsatisfied will be deleted.
针对返回的资源任务结果包,一些实施例中节点可以采取不缓存资源任务结果包的策略;一些实施例中节点也可以采取缓存资源任务结果包的策略,具体地,又可以分为路径(on-path)缓存策略和离路(off-path)缓存策略,下面具体说明。For the returned resource task result package, in some embodiments, the node may adopt a strategy of not caching the resource task result package; in some embodiments, the node may also adopt a strategy of caching the resource task result package. Specifically, it may be further divided into paths (on -path) caching strategy and off-path caching strategy, as detailed below.
一些实施例中,当节点接收到沿原路径所返回的相应的资源任务结果包时,判断自身是否有足够的缓存空间,如果有,则缓存资源任务结果包,反之,则不缓存资源任务结果包。In some embodiments, when the node receives the corresponding resource task result package returned along the original path, it determines whether it has enough cache space, and if so, caches the resource task result package, otherwise, does not cache the resource task result. Bag.
一些实施便中,执行资源任务请求包所请求的资源任务的节点,在给出资源任务结果包后,还判断自身是否有足够的缓存空间,如果有,则缓存资源任务结果包,反之,则通知其邻接节点缓存资源任务结果包。In some implementations, the node that executes the resource task requested by the resource task request package, after giving the resource task result package, also judges whether it has enough cache space, and if so, caches the resource task result package, otherwise, then Notifies its neighbors to cache resource task result packets.
以上是面向网内资源服务的通信方法的一些说明,这种资源可以是诸如存储资源、带宽资源和算力资源等,下面不妨以算力资源为例进行说明。The above are some descriptions of the communication methods for in-network resource services. Such resources can be storage resources, bandwidth resources, and computing resources. The following may take computing resources as an example for description.
针对网内算力服务的通信方法,本发明构建了两种数据包,即算力任务请求包和算力任务结果包。算力任务需求包用于向网内节点请求计算,算力任务结果包则存放有网内节点针对算力任务需求包所返回的计算结果。Aiming at the communication method of the computing power service in the network, the present invention constructs two kinds of data packets, namely the computing power task request package and the computing power task result package. The computing power task demand package is used to request calculation from the nodes in the network, and the computing power task result package stores the calculation results returned by the nodes in the network for the computing power task demand package.
一个算力任务请求包可以对应一个或多个算力任务结果包。当一个算力任务请求包对应一个算力任务结果包,则两者为原子对应关系;当一个算力任务请求包对应多个算力任务结果包,则两者为复合对应关系。请参照图3,算力任务请求包需要经过路由寻找一条路由路径。算力任务结果包不需要经过路由,直接沿着算力任务请求包的路由路径返回。A computing power task request package can correspond to one or more computing power task result packages. When one computing power task request package corresponds to one computing power task result package, the two have an atomic correspondence; when one computing task request package corresponds to multiple computing power task result packages, the two have a composite correspondence. Referring to Figure 3, the computing power task request packet needs to be routed to find a routing path. The computing power task result packet does not need to be routed, and returns directly along the routing path of the computing power task request packet.
通信方法是基于pull(拉)的通信模型,即只有用户或者说用户端应用程序主动发出一个算力任务请求包,网络中的节点才会执行算力任务并返回一个或多个算力任务结果包给用户。算力任务典型地例如可以是人脸识别任务、语音识别任务和图片识别等任务。The communication method is based on the pull (pull) communication model, that is, only when the user or the client application actively sends a computing task request packet, the nodes in the network will perform the computing task and return one or more computing task results. package to users. The computing power task can typically be, for example, tasks such as face recognition, speech recognition, and image recognition.
请参照图4,一些实施例中,算力任务请求包至少包括名字字段、算力任务的类型和需要的算力;一些实施例中,算力任务请求包还可以包括数据输入域和/或签名认证信息。Referring to FIG. 4 , in some embodiments, the computing power task request package at least includes a name field, the type of computing power task and the required computing power; in some embodiments, the computing power task request package may also include a data input field and/or Signature authentication information.
具体地,算力任务请求包的名字字段:用于唯一标识算力任务请求包;名字字段可以包含时间戳和计算任务请求者的标识。Specifically, the name field of the computing power task request package: used to uniquely identify the computing power task request package; the name field may contain a timestamp and an identifier of the computing task requester.
算力任务请求包的计算任务的类型:决定调用的函数function是什么。比如计算任务的类型是一个图片识别,那么可能需要调用的函数function就是图像识别的函数photoRecognition()。如果计算任务是一个语音识别,那么可能需要调用的函数function就是语音识别的函数speechRecognition()。The type of computing task in the computing power task request package: determine what the function to call is. For example, the type of computing task is a picture recognition, then the function that may need to be called is the function photoRecognition() of image recognition. If the computing task is a speech recognition, then the function that may need to be called is the function speechRecognition() of speech recognition.
算力任务请求包中需要的算力,可以是一个确定的数值,表示完成计算任务所需要的算力。The computing power required in the computing power task request package can be a definite value, indicating the computing power required to complete the computing task.
算力任务请求包的数据输入域:用于存放执行算力任务所需要的数据。有的计算任务必须有输入数据,那么就把输入数据放到数据输入域域。比如说计算任务是图片识别,那么要识别的那张图片就需要输入到数据输入域中,之后的图像识别的函数photoRecognition()的输入数据就从算力任务请求包的数据输入域调取相应的待识别的图片。The data input field of the computing power task request package: used to store the data required to perform the computing power task. Some computing tasks must have input data, then put the input data into the data input field. For example, if the computing task is image recognition, then the image to be recognized needs to be input into the data input field, and the input data of the subsequent image recognition function photoRecognition() is called from the data input field of the computing power task request package. image to be recognized.
算力任务请求包的签名认证信息用于表示算力任务需求包发出者的授权情况。网络计算的请求者必须经过授权。The signature authentication information of the computing power task request package is used to indicate the authorization status of the sender of the computing power task request package. Requesters of network computing must be authorized.
以上是算力任务请求包的一些说明。The above are some descriptions of the computing power task request package.
一些实施例中,算力任务结果包包括名字字段和计算结果域;一些实施例中,算力任务结果包还包括签名认证信息。In some embodiments, the computing power task result package includes a name field and a calculation result field; in some embodiments, the computing power task result package further includes signature authentication information.
具体地,算力任务结果包的名字字段:用于唯一标识算力任务结果包,字字段可以包含时间戳和计算任务请求者的标识。算力任务结果包的名字字段与算力任务需求包的名字字段对应。Specifically, the name field of the computing power task result package: used to uniquely identify the computing power task result package, and the word field may contain a timestamp and the identifier of the computing task requester. The name field of the computing power task result package corresponds to the name field of the computing power task requirement package.
算力任务结果包的任务结果域:用于存放计算结果。一些例子中,任务结果域是可变长的;不同的计算任务期待的计算结果是不一样的,所以对应的结果域的长度也是不一样的,比如说人脸识别、图片识别和语音识别这三个计算任务期待的计算结果大概率是不一样的。The task result field of the computing power task result package: used to store the calculation results. In some examples, the task result field is variable in length; the calculation results expected by different computing tasks are different, so the length of the corresponding result field is also different, such as face recognition, image recognition and speech recognition. The calculation results expected by the three computing tasks are likely to be different.
算力任务结果包的签名认证信息:用于表示计算结果可信任的情况。签名认证信息这是为了保证计算结果必须可信任。The signature authentication information of the computing power task result package: used to indicate that the computing result is trustworthy. Signature authentication information This is to ensure that the calculation result must be trusted.
可以看到,算力任务请求包中包含了路由信息,其中计算任务的类型和需要的算力这两个字段结合起来是路由转发的依据,而算力任务结果包中则不需要包含额外的路由信息,因此算力任务结果包中不像NDN网络中的data包一样额外存在冗余的路由信息。具体设计时,则是将包的名字字段(用于标识协议包)和用于路由转发的字段(例如上述的计算任务的类型和需要的算力)分离开,这样算力任务结果包中就不再包含冗余的路由信息。It can be seen that the computing power task request packet contains routing information. The combination of the two fields of the computing task type and the required computing power is the basis for routing and forwarding, while the computing power task result packet does not need to contain additional information. Routing information, so there is no additional redundant routing information in the computing power task result packet like the data packet in the NDN network. In the specific design, the name field of the packet (used to identify the protocol packet) and the field used for routing and forwarding (such as the type of the above-mentioned computing task and the required computing power) are separated, so that the computing power task result packet contains No longer contains redundant routing information.
一些实施例的面向网内算力服务的通信方法,该通信方法基于算力任务需求包和算力任务结果包通信,算力任务需求包用于向网内节点请求计算,算力任务结果包则存放有网内节点针对算力任务需求包所返回的计算结果。请参照图5,通信方法包括以下步骤:A communication method for in-network computing power services according to some embodiments, the communication method is based on the communication of a computing power task demand package and a computing power task result package, the computing power task demand package is used to request calculation from a node in the network, and the computing power task result package is used to request calculation from a node in the network. The calculation results returned by the nodes in the network for the computing power task demand package are stored. Please refer to FIG. 5, the communication method includes the following steps:
步骤200:当网内任意一节点(例如节点A)收到算力任务需求包时,该节点(节点A)判断自身是否能够成完成算力任务需求包所请求的计算任务。Step 200: When any node (eg, node A) in the network receives the computing power task requirement package, the node (node A) determines whether it can complete the computing task requested by the computing power task requirement package.
具体地,网内节点收到算力任务需求包时,通过提取算力任务需求包中的计算任务的类型和需要的算力,来判断自身是否能够完成算力任务需求包所请求的计算任务;具体地,当网内节点判断其自身部署有算力任务需求包中计算任务的类型所对应的函数,且有大于或等于算力任务需求包中需要的算力时,则判断自身能够完成算力任务需求包所请求的计算任务,反之,则判断不能够完成。Specifically, when the node in the network receives the computing power task demand package, it determines whether it can complete the computing task requested by the computing power task demand package by extracting the type of computing task and the required computing power in the computing power task demand package. Specifically, when the node in the network judges that it has deployed the function corresponding to the type of the computing task in the computing power task demand package, and has the computing power greater than or equal to the computing power required in the computing power task demand package, it judges that it can complete the task itself. The computing task requested by the computing power task requirement package, otherwise, it is judged that it cannot be completed.
步骤210:如果判断能够完成,则该节点(节点A)执行相应的计算任务,并将计算结果通过算力任务结果包沿算力任务需求包被转发的原路径所返回。Step 210 : If the judgment can be completed, the node (node A) executes the corresponding computing task, and returns the computing result through the computing power task result packet along the original path where the computing power task demand packet was forwarded.
步骤220:如果判断不能够完成,则该节点(节点A)继续将算力任务需求包转发到网内其他节点,直到网内有节点能够完成算力任务需求包所请求的计算任务为止。Step 220: If it is judged that it cannot be completed, the node (node A) continues to forward the computing power task demand package to other nodes in the network until a node in the network can complete the computing task requested by the computing power task demand package.
具体地,当节点判断不能够完成算力任务需求包所请求的计算任务时,则节点根据算力任务需求包中计算任务的类型和需要的算力作为路由转发依据,将算力任务需求包转发给另一节点。Specifically, when the node judges that the computing task requested by the computing power task requirement package cannot be completed, the node uses the computing task type and required computing power in the computing power task requirement package as the basis for routing and forwarding, and sends the computing power task request package forwarded to another node.
一些例子中,在步骤220当节点判断不能够完成计算任务时,则节点还在自身将算务任务需求包标记为未满足;当节点接收到沿原路径所返回的相应的算力任务结果包时,则将之前相应标记为未满足的记录删除。In some examples, when the node judges that the computing task cannot be completed in step 220, the node also marks the computing task requirement package as unsatisfied; when the node receives the corresponding computing power task result package returned along the original path , the records previously marked as unsatisfied will be deleted.
针对返回的算力任务结果包,一些实施例中节点可以采取不缓存资源任务结果包的策略;一些实施例中节点也可以采取缓存算力任务结果包的策略,具体地,又可以分为路径(on-path)缓存策略和离路(off-path)缓存策略,下面具体说明。For the returned computing power task result package, in some embodiments, the node may adopt a strategy of not caching the resource task result package; in some embodiments, the node may also adopt a strategy of caching the computing power task result package. Specifically, it can be divided into paths The (on-path) caching strategy and the off-path (off-path) caching strategy are described in detail below.
一些实施例中,当节点接收到沿原路径所返回的相应的算力任务结果包时,判断自身是否有足够的缓存空间,如果有,则缓存算力任务结果包,反之,则不缓存算力任务结构包。In some embodiments, when the node receives the corresponding computing power task result package returned along the original path, it judges whether it has enough cache space, if so, caches the computing power task result package, otherwise, does not cache the computing power task result package. Force Task Structure Pack.
一些实施例中,执行算力任务需求包所请求的计算任务的节点,在给出算力任务结果包后,还判断自身是否有足够的缓存空间,如果有,则缓存算力任务结果包,反之,则通知其邻接节点缓存算力任务结果包。In some embodiments, the node that executes the computing task requested by the computing power task requirement package, after giving the computing power task result package, also judges whether it has enough cache space, and if so, caches the computing power task result package, On the contrary, it informs its adjacent nodes to cache the computing power task result packet.
图5是从网内节点的角度来说明面向网内算力服务的通信方法,下面从用户的角度来说明面向网内算力服务的通信方法。Fig. 5 illustrates the communication method oriented to the computing power service in the network from the point of view of the nodes in the network. The following describes the communication method oriented to the computing power service in the network from the perspective of the user.
请参照图6,一些实施例中面向网内算力服务的通信方法,包括以下步骤:Referring to FIG. 6 , a communication method for in-network computing power services in some embodiments includes the following steps:
步骤300:构建并发出算力任务需求包。算力任务需求包的描述可以参见上文对图4的描述,例如算力任务需求包至少包括名字字段、计算任务的类型、需要的算力和数据输入域,算力任务需求包还可以包括签名认证信息。Step 300: Construct and issue a computing power task requirement package. The description of the computing power task requirement package can refer to the description of Figure 4 above. For example, the computing power task requirement package includes at least the name field, the type of computing task, the required computing power and the data input field. The computing power task requirement package can also include Signature authentication information.
步骤310:接收算力任务结果包。算力任务结果包的描述可以参见上文对图4的描述,例如算力任务结果包包括名字字段和计算结果域,所述算力任务结果包的名字字段与算力任务需求包的名字字段对应;算力任务需求包还可以包括签名认证信息。Step 310: Receive a computing power task result package. The description of the computing power task result package can refer to the description of FIG. 4 above. For example, the computing power task result package includes a name field and a calculation result field, and the name field of the computing power task result package and the name field of the computing power task requirement package. Correspondingly; the computing power task requirement package may also include signature authentication information.
步骤300发出的算力任务需求包如何在网内被转发以及执行,以及步骤310如何能够接收到从网内节点转发过来的算力任务结果包,在图5的方法步骤中有详细的描述,例如算务任务需求包被转发到网内任意一节点后,节点收到算力任务需求包时,通过提取算力任务需求包中的计算任务的类型和需要的算力,来判断自身是否能够完成算力任务需求包所请求的计算任务;具体地,当节点判断其自身部署有算力任务需求包中计算任务的类型所对应的函数,且有大于或等于算力任务需求包中需要的算力时,则判断自身能够完成算力任务需求包所请求的计算任务,反之,则判断不能够完成;当判断能够完成,则节点执行相应的计算任务,并将计算结果通过算力任务结果包沿算力任务需求包被转发的原路径所返回;当判断不能够完成,则节点根据算力任务需求包中计算任务的类型和需要的算力作为路由转发依据,将算力任务需求包转发给另一节点。How the computing power task demand packet sent in step 300 is forwarded and executed in the network, and how step 310 can receive the computing power task result packet forwarded from the node in the network, is described in detail in the method steps of FIG. 5 , For example, after the computing task demand package is forwarded to any node in the network, when the node receives the computing power task demand package, it can determine whether it is able to obtain the computing power by extracting the type of computing task and the required computing power in the computing task demand package. Complete the computing task requested by the computing power task requirement package; specifically, when the node judges that it has deployed the function corresponding to the type of computing task in the computing power task requirement package, and has a function greater than or equal to that required in the computing power task requirement package When the computing power is used, it is judged that it can complete the computing task requested by the computing power task demand package. Otherwise, it is judged that it cannot be completed; when the judgment can be completed, the node executes the corresponding computing task and passes the calculation result through the computing power task result. The packet is returned along the original path where the computing power task demand packet was forwarded; when it is judged that it cannot be completed, the node uses the type of computing task and the required computing power in the computing power task demand packet as the basis for routing and forwarding, and sends the computing power task demand packet. forwarded to another node.
面向网内算力服务的通信方法中所涉及到的节点,可以是路由器或交互机,也可以是纯计算节点,它们可以用来路由和计算。请参照图7,不妨将节点定义为用于路由和计算的通信装置,这种通信装置从功能上可以划分成四个部件:算力资源部件10、函数部件20、存储资源部件30和功能模块40。算力资源部件10代表节点可用的计算能力。函数部件20代表节点部署的计算功能,一个节点可以部署一个或多个不同的计算功能,也可以一个计算功能都不部署。存储资源部件30用于存储求计算结果或其他需要存储的数据。功能模块40可以包括服务编排、资源调度、算力需求转发和安全认证等功能模块。The nodes involved in the communication method for in-network computing power services can be routers or interactive machines, or pure computing nodes, which can be used for routing and computing. Please refer to FIG. 7 , it is advisable to define a node as a communication device for routing and computing. This communication device can be functionally divided into four components: computing resource component 10, functional component 20, storage resource component 30 and functional modules 40. The computing power resource component 10 represents the computing power available to the node. The function component 20 represents the computing function deployed by the node. A node may deploy one or more different computing functions, or none of the computing functions may be deployed. The storage resource component 30 is used for storing calculation results or other data that needs to be stored. The functional module 40 may include functional modules such as service orchestration, resource scheduling, forwarding of computing power requirements, and security authentication.
请参照图8,为用于路由和计算的通信装置的一种结构示意图。路由模块:进行算力需求调度、服务编排。安全认证模块:对计算任务请求者和计算结果进行安全认证,请求者必须经过授权,计算结果必须可信。转发模块:进行算力需求转发和计算结果转发。计算引擎:执行计算任务的算力引擎,包含算力。计算功能库:部署的计算功能,可能部署了多个函数function。路由/计算表:FIB/CIB表,用于进行算力任务需求的转发和执行。缓存:缓存计算数据,或其他数据。物理高速交换结构:进行高速的包交换。NIC网卡:物理网卡。Please refer to FIG. 8 , which is a schematic structural diagram of a communication device for routing and computing. Routing module: perform computing power demand scheduling and service orchestration. Security authentication module: perform security authentication on computing task requesters and computing results, the requester must be authorized, and the computing results must be trusted. Forwarding module: forwarding computing power requirements and forwarding calculation results. Computing engine: The computing power engine that performs computing tasks, including computing power. Computing function library: Deployed computing functions, possibly deploying multiple functions. Routing/computation table: FIB/CIB table, used for forwarding and execution of computing power task requirements. Cache: Cache computational data, or other data. Physical high-speed switching fabric: perform high-speed packet switching. NIC network card: physical network card.
通过以上的用于路由和计算的通信装置和面向网内算力服务的通信方法,可以构建算力服务网络。算力服务网络作为开放的基础设施,实现连接和算力在网络的全局优化,使得运营商网络具备ICT系统融合的综合服务能力,提供一致的用户体验。Through the above communication device for routing and calculation and the communication method for in-network computing service, a computing service network can be constructed. As an open infrastructure, the computing power service network realizes the global optimization of connection and computing power in the network, so that the operator network has the comprehensive service capability of ICT system integration and provides a consistent user experience.
从本发明可以看到,NDN网络的interest包和data包中均包含name域,而name域含有路由信息。但是data包并不需要进行路由,所以在导致在data包中额外的存在了冗余的路由信息。本发明设计的算力服务网络的数据包的时候,算力任务需求包需要进行路由转发,所以需要包含路由信息,而算力任务结果包不需要进行路由转发,直接沿着算力任务需求包的路由路径进行原路返回,所以算力任务结果包不再包含冗余的路由信息。NDN网络的interest包和data包只能用于请求content数据。但是本发明能够实现用于请求计算、执行计算和返回计算结果。NDN的路由节点收到interest包时,只能通过name字段在缓存中查找是否有相应的数据。而本发明不再需要在缓存中查找数据,而是节点首先判断能不能提供对应的函数function(计算功能),然后再判断能不能提供充足的算力。NDN的data包只能进行on-path路径缓存,由于路径上的副本不断累积,导致内容冗余,会严重浪费节点的存储空间,降低缓存的整体命中率,而本发明可以对算力任务的计算结果同时进行on-path路径缓存和off-path离路缓存,进行了一定的缓存优化。It can be seen from the present invention that both the interest package and the data package of the NDN network contain the name field, and the name field contains routing information. However, the data packet does not need to be routed, so there is additional redundant routing information in the data packet. When the computing power serves the data packets of the network designed by the present invention, the computing power task demand packet needs to be routed and forwarded, so it needs to contain routing information, and the computing power task result packet does not need to be routed and forwarded, and directly follows the computing power task demand packet. The original routing path is returned, so the computing power task result packet no longer contains redundant routing information. The interest package and data package of the NDN network can only be used to request content data. However, the present invention can be implemented for requesting computations, performing computations and returning computation results. When an NDN routing node receives an interest packet, it can only look up whether there is corresponding data in the cache through the name field. In the present invention, it is no longer necessary to search for data in the cache, but the node first judges whether the corresponding function (computing function) can be provided, and then judges whether it can provide sufficient computing power. The data package of NDN can only be cached on-path path. Due to the continuous accumulation of copies on the path, the content is redundant, which will seriously waste the storage space of the node and reduce the overall hit rate of the cache. The calculation results are simultaneously cached on-path and off-path, and some cache optimizations are performed.
本文参照了各种示范实施例进行说明。然而,本领域的技术人员将认识到,在不脱离本文范围的情况下,可以对示范性实施例做出改变和修正。例如,各种操作步骤以及用于执行操作步骤的组件,可以根据特定的应用或考虑与系统的操作相关联的任何数量的成本函数以不同的方式实现(例如一个或多个步骤可以被删除、修改或结合到其他步骤中)。Descriptions are made herein with reference to various exemplary embodiments. However, those skilled in the art will recognize that changes and modifications may be made to the exemplary embodiments without departing from the scope of this document. For example, the various operational steps, and the components used to perform the operational steps, may be implemented in different ways depending on the particular application or considering any number of cost functions associated with the operation of the system (eg one or more steps may be deleted, modified or incorporated into other steps).
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。另外,如本领域技术人员所理解的,本文的原理可以反映在计算机可读存储介质上的计算机程序产品中,该可读存储介质预装有计算机可读程序代码。任何有形的、非暂时性的计算机可读存储介质皆可被使用,包括磁存储设备(硬盘、软盘等)、光学存储设备(CD至ROM、DVD、Blu Ray盘等)、闪存和/或诸如此类。这些计算机程序指令可被加载到通用计算机、专用计算机或其他可编程数据处理设备上以形成机器,使得这些在计算机上或其他可编程数据处理装置上执行的指令可以生成实现指定的功能的装置。这些计算机程序指令也可以存储在计算机可读存储器中,该计算机可读存储器可以指示计算机或其他可编程数据处理设备以特定的方式运行,这样存储在计算机可读存储器中的指令就可以形成一件制造品,包括实现指定功能的实现装置。计算机程序指令也可以加载到计算机或其他可编程数据处理设备上,从而在计算机或其他可编程设备上执行一系列操作步骤以产生一个计算机实现的进程,使得在计算机或其他可编程设备上执行的指令可以提供用于实现指定功能的步骤。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. Additionally, as understood by those skilled in the art, the principles herein may be reflected in a computer program product on a computer-readable storage medium preloaded with computer-readable program code. Any tangible, non-transitory computer-readable storage medium may be used, including magnetic storage devices (hard disks, floppy disks, etc.), optical storage devices (CD to ROM, DVD, Blu Ray disks, etc.), flash memory, and/or the like . These computer program instructions may be loaded on a general purpose computer, special purpose computer or other programmable data processing apparatus to form a machine such that the instructions executed on the computer or other programmable data processing apparatus may generate means for implementing the specified functions. These computer program instructions may also be stored in a computer-readable memory that instructs a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable memory form a piece of Articles of manufacture, including implementing means for implementing specified functions. Computer program instructions may also be loaded on a computer or other programmable data processing device to perform a series of operational steps on the computer or other programmable device to produce a computer-implemented process such that a process executed on the computer or other programmable device Instructions may provide steps for implementing specified functions.
虽然在各种实施例中已经示出了本文的原理,但是许多特别适用于特定环境和操作要求的结构、布置、比例、元件、材料和部件的修改可以在不脱离本披露的原则和范围内使用。以上修改和其他改变或修正将被包含在本文的范围之内。Although the principles herein have been shown in various embodiments, many modifications may be made in structure, arrangement, proportions, elements, materials and components as are particularly suited to particular environmental and operating requirements without departing from the principles and scope of the present disclosure use. The above modifications and other changes or corrections are intended to be included within the scope of this document.
前述具体说明已参照各种实施例进行了描述。然而,本领域技术人员将认识到,可以在不脱离本披露的范围的情况下进行各种修正和改变。因此,对于本披露的考虑将是说明性的而非限制性的意义上的,并且所有这些修改都将被包含在其范围内。同样,有关于各种实施例的优点、其他优点和问题的解决方案已如上所述。然而,益处、优点、问题的解决方案以及任何能产生这些的要素,或使其变得更明确的解决方案都不应被解释为关键的、必需的或必要的。本文中所用的术语“包括”和其任何其他变体,皆属于非排他性包含,这样包括要素列表的过程、方法、文章或设备不仅包括这些要素,还包括未明确列出的或不属于该过程、方法、系统、文章或设备的其他要素。此外,本文中所使用的术语“耦合”和其任何其他变体都是指物理连接、电连接、磁连接、光连接、通信连接、功能连接和/或任何其他连接。The foregoing Detailed Description has been described with reference to various embodiments. However, those skilled in the art will recognize that various modifications and changes can be made without departing from the scope of the present disclosure. Accordingly, this disclosure is to be considered in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within its scope. Likewise, the advantages, other advantages, and solutions to problems of the various embodiments have been described above. However, the benefits, advantages, solutions to the problems, and any elements that give rise to these, or make them more explicit, should not be construed as critical, necessary, or essential. As used herein, the term "comprising" and any other variations thereof are non-exclusive inclusion, such that a process, method, article or device including a list of elements includes not only those elements, but also not expressly listed or included in the process , method, system, article or other elements of a device. Furthermore, as used herein, the term "coupled" and any other variations thereof refer to physical connections, electrical connections, magnetic connections, optical connections, communication connections, functional connections, and/or any other connection.
具有本领域技术的人将认识到,在不脱离本发明的基本原理的情况下,可以对上述实施例的细节进行许多改变。因此,本发明的范围应仅由权利要求确定。Those skilled in the art will recognize that many changes may be made to the details of the above-described embodiments without departing from the underlying principles of the invention. Accordingly, the scope of the invention should be determined only by the claims.

Claims (16)

  1. 一种面向网内算力服务的通信方法,其特征在于,包括:A communication method for in-network computing power services, comprising:
    构建并发出算力任务需求包,其中算力任务需求包至少包括名字字段、计算任务的类型、需要的算力和数据输入域;所述算力任务需求包的名字字段用于唯一标识算力任务需求包,数据输入域用于存放待计算的数据;Build and issue a computing power task requirement package, wherein the computing power task requirement package at least includes a name field, the type of computing task, the required computing power and data input fields; the name field of the computing power task requirement package is used to uniquely identify the computing power The task requirement package, the data input field is used to store the data to be calculated;
    接收算力任务结果包,其中所述算力任务结果包包括名字字段和计算结果域,所述算力任务结果包的名字字段用于唯一标识算力任务结果包,计算结果域用于存放计算结果;所述算力任务结果包的名字字段与算力任务需求包的名字字段对应;Receive a computing power task result package, wherein the computing power task result package includes a name field and a calculation result field, the name field of the computing power task result package is used to uniquely identify the computing power task result package, and the calculation result field is used to store the calculation result. Result; the name field of the computing power task result package corresponds to the name field of the computing power task requirement package;
    其中:in:
    所述算务任务需求包被转发到网内任意一节点后,节点收到算力任务需求包时,通过提取算力任务需求包中的计算任务的类型和需要的算力,来判断自身是否能够完成算力任务需求包所请求的计算任务;具体地,当节点判断其自身部署有算力任务需求包中计算任务的类型所对应的函数,且有大于或等于算力任务需求包中需要的算力时,则判断自身能够完成算力任务需求包所请求的计算任务,反之,则判断不能够完成;After the computing task demand package is forwarded to any node in the network, when the node receives the computing task demand package, it determines whether it is by extracting the type of computing task and the computing power required in the computing task demand package. Able to complete the computing task requested by the computing power task requirement package; specifically, when the node judges that it has deployed the function corresponding to the type of computing task in the computing power task requirement package, and the function is greater than or equal to the computing task required in the computing power task requirement package. When the computing power is high, it is judged that it can complete the computing task requested by the computing power task demand package; otherwise, it is judged that it cannot be completed;
    当判断能够完成,则节点执行相应的计算任务,并将计算结果通过算力任务结果包沿算力任务需求包被转发的原路径所返回;当判断不能够完成,则节点根据算力任务需求包中计算任务的类型和需要的算力作为路由转发依据,将算力任务需求包转发给另一节点。When it is judged that it can be completed, the node executes the corresponding computing task, and returns the calculation result through the computing power task result packet along the original path where the computing power task demand packet was forwarded; The type of computing task in the package and the required computing power are used as the basis for routing and forwarding, and the computing power task demand package is forwarded to another node.
  2. 如权利要求1所述的通信方法,其特征在于,所述算力任务需求包还包括签名认证信息,用于表示算力任务需求包发出者的授权情况;所述算力任务结果包还包括签名认证信息,用于表示计算结果可信任的情况。The communication method according to claim 1, wherein the computing power task requirement package further includes signature authentication information, which is used to indicate the authorization status of the sender of the computing power task requirement package; the computing power task result package further includes Signature authentication information, used to indicate that the calculation result is trustworthy.
  3. 一种面向网内算力服务的通信方法,其特征在于,所述通信方法基于算力任务需求包和算力任务结果包通信,所述算力任务需求包用于向网内节点请求计算,所述算力任务结果包则存放有网内节点针对算力任务需求包所返回的计算结果;所述通信方法包括:A communication method for in-network computing power services, characterized in that the communication method is based on the communication of a computing power task demand package and a computing power task result package, and the computing power task demand package is used to request calculation from an in-network node, The computing power task result package stores the calculation results returned by the nodes in the network for the computing power task demand package; the communication method includes:
    当网内任意一节点收到算力任务需求包时,该节点判断自身是否能够成完成算力任务需求包所请求的计算任务;When any node in the network receives the computing power task demand package, the node judges whether it can complete the computing task requested by the computing power task demand package;
    如果判断能够完成,则该节点执行相应的计算任务,并将计算结果通过算力任务结果包沿算力任务需求包被转发的原路径所返回;If the judgment can be completed, the node executes the corresponding computing task, and returns the computing result through the computing power task result packet along the original path where the computing power task demand packet was forwarded;
    如果判断不能够完成,则该节点继续将算力任务需求包转发到网内其他节点,直到网内有节点能够完成算力任务需求包所请求的计算任务为止。If it is judged that it cannot be completed, the node continues to forward the computing power task demand package to other nodes in the network until a node in the network can complete the computing task requested by the computing power task demand package.
  4. 如权利要求3所述的通信方法,其特征在于,如果判断不能够完成,则节点还在自身将算务任务需求包标记为未满足;当节点接收到沿原路径所返回的相应的算力任务结果包时,则将之前相应标记为未满足的记录删除。The communication method according to claim 3, wherein if it is judged that it cannot be completed, the node also marks the computing task requirement package as unsatisfied; when the node receives the corresponding computing power returned along the original path When the task result package is completed, the records previously marked as unsatisfied will be deleted.
  5. 如权利要求3或4所述的通信方法,其特征在于,当节点接收到沿原路径所返回的相应的算力任务结果包时,判断自身是否有足够的缓存空间,如果有,则缓存算力任务结果包,反之,则不缓存算力任务结构包;或者,The communication method according to claim 3 or 4, characterized in that when the node receives the corresponding computing power task result packet returned along the original path, it judges whether it has enough cache space, and if so, caches the computing power. The power task result package, otherwise, the power task structure package is not cached; or,
    执行算力任务需求包所请求的计算任务的节点,在给出算力任务结果包后,还判断自身是否有足够的缓存空间,如果有,则缓存算力任务结果包,反之,则通知其邻接节点缓存算力任务结果包。The node that executes the computing task requested by the computing power task demand package, after giving the computing power task result package, also judges whether it has enough cache space. If so, it caches the computing power task result package. Adjacent nodes cache computing power task result packets.
  6. 如权利要求3所述的通信方法,其特征在于,所述算力任务需求包至少包括名字字段、计算任务的类型和需要的算力,所述算力任务需求包的名字字段用于唯一标识算力任务需求包;所述算力任务结果包包括名字字段和计算结果域,所述算力任务结果包的名字字段用于唯一标识算力任务结果包,计算结果域用于存放计算结果;所述算力任务结果包的名字字段与算力任务需求包的名字字段对应。The communication method according to claim 3, wherein the computing power task requirement package at least includes a name field, the type of computing task and the required computing power, and the name field of the computing power task requirement package is used to uniquely identify A computing power task requirement package; the computing power task result package includes a name field and a calculation result field, the name field of the computing power task result package is used to uniquely identify the computing power task result package, and the calculation result field is used to store the calculation result; The name field of the computing power task result package corresponds to the name field of the computing power task requirement package.
  7. 如权利要求6所述的装通信方法,其特征在于,网内节点收到算力任务需求包时,通过提取算力任务需求包中的计算任务的类型和需要的算力,来判断自身是否能够完成算力任务需求包所请求的计算任务;具体地,当网内节点判断其自身部署有算力任务需求包中计算任务的类型所对应的函数,且有大于或等于算力任务需求包中需要的算力时,则判断自身能够完成算力任务需求包所请求的计算任务,反之,则判断不能够完成。The device communication method according to claim 6, wherein when the node in the network receives the computing power task demand package, it determines whether it is itself by extracting the type of the computing task and the required computing power in the computing power task demand package. Able to complete the computing task requested by the computing power task demand package; specifically, when the node in the network determines that it has deployed a function corresponding to the type of computing task in the computing power task demand package, and has a value greater than or equal to the computing power task demand package When the computing power is required in the computing power, it is judged that it can complete the computing task requested by the computing power task demand package, and vice versa, it is judged that it cannot be completed.
  8. 如权利要求6或7所述的装通信方法,其特征在于,当节点判断不能够完成算力任务需求包所请求的计算任务时,则节点根据算力任务需求包中计算任务的类型和需要的算力作为路由转发依据,将算力任务需求包转发给另一节点。The communication method according to claim 6 or 7, wherein when the node judges that the computing task requested by the computing power task demand package cannot be completed, the node is based on the type and needs of the computing task in the computing power task demand package. The computing power is used as the basis for routing and forwarding, and the computing power task demand packet is forwarded to another node.
  9. 如权利要求6所述的通信方法,其特征在于,所述算力任务需求包还包括数据输入域和/或签名认证信息,所述算力任务需求包的数据输入域用于存放待计算的数据,签名认证信息用于表示算力任务需求包发出者的授权情况;所述算力任务结果包还包括签名认证信息,用于表示计算结果可信任的情况。The communication method according to claim 6, wherein the computing power task requirement package further includes a data input field and/or signature authentication information, and the data input field of the computing power task requirement package is used to store the data to be calculated. data, and the signature authentication information is used to indicate the authorization status of the sender of the computing power task demand package; the computing power task result package also includes signature authentication information, which is used to indicate that the calculation result is trustworthy.
  10. 一种面向网内资源服务的通信方法,其特征在于,所述通信方法基于资源任务请求包和资源任务结果包通信,所述资源任务请求包用于向网内节点请求资源任务,所述资源任务结果包则存放有网内节点针对资源任务请求包所返回的任务结果,所述通信方法包括:A communication method oriented to resource services in a network, characterized in that the communication method is based on resource task request packet and resource task result packet communication, the resource task request packet is used to request resource tasks from nodes in the network, and the resource The task result package stores the task result returned by the in-network node for the resource task request package, and the communication method includes:
    当网内任意一节点收到资源任务请求包时,该节点判断自身是否能够成完成资源任务请求包所请求的资源任务; When any node in the network receives the resource task request package, the node determines whether it can complete the resource task requested by the resource task request package;
    如果判断能够完成,则该节点执行相应的资源任务,并将任务结果通过资源任务结果包沿资源任务请求包被转发的原路径所返回;If the judgment can be completed, the node executes the corresponding resource task, and returns the task result through the resource task result package along the original path where the resource task request package was forwarded;
    如果判断不能够完成,则该节点继续将资源任务请求包转发到网内其他节点,直到网内有节点能够完成资源任务请求包所请求的资源任务为止。If it is judged that it cannot be completed, the node continues to forward the resource task request packet to other nodes in the network until a node in the network can complete the resource task requested by the resource task request packet.
  11. 如权利要求10所述的通信方法,其特征在于,如果判断不能够完成,则节点还在自身将资源任务请求包标记为未满足;当节点接收到沿原路径所返回的相应的资源任务结果包时,则将之前相应标记为未满足的记录删除。The communication method according to claim 10, wherein if it is judged that it cannot be completed, the node also marks the resource task request package as unsatisfied; when the node receives the corresponding resource task result returned along the original path When the package is included, the records that were previously marked as unsatisfied will be deleted.
  12. 如权利要求10或11所述的通信方法,其特征在于,当节点接收到沿原路径所返回的相应的资源任务结果包时,判断自身是否有足够的缓存空间,如果有,则缓存资源任务结果包,反之,则不缓存资源任务结果包;或者,The communication method according to claim 10 or 11, wherein when the node receives the corresponding resource task result package returned along the original path, it judges whether it has enough cache space, and if so, caches the resource task result package, otherwise, the resource task result package is not cached; or,
    执行资源任务请求包所请求的资源任务的节点,在给出资源任务结果包后,还判断自身是否有足够的缓存空间,如果有,则缓存资源任务结果包,反之,则通知其邻接节点缓存资源任务结果包。The node that executes the resource task requested by the resource task request package, after giving the resource task result package, also judges whether it has enough cache space. If so, it caches the resource task result package. Resource task result package.
  13. 如权利要求10所述的通信方法,其特征在于,所述资源任务请求包至少包括名字字段、资源任务的类型和需要的资源量,所述资源任务请求包的名字字段用于唯一标识资源任务请求包;所述资源任务结果包包括名字字段和计算结果域,所述资源任务结果包的名字字段用于唯一标识资源任务结果包,任务结果域用于存放任务结果;所述资源任务结果包的名字字段与资源任务请求包的名字字段对应。The communication method according to claim 10, wherein the resource task request package at least includes a name field, the type of resource task and the required amount of resources, and the name field of the resource task request package is used to uniquely identify the resource task request package; the resource task result package includes a name field and a calculation result field, the name field of the resource task result package is used to uniquely identify the resource task result package, and the task result field is used to store the task result; the resource task result package The name field of the resource task request packet corresponds to the name field.
  14. 如权利要求13所述的通信方法,其特征在于,网内节点收到资源任务需求包时,通过提取资源任务需求包中的资源任务的类型和需要的资源量,来判断自身是否能够完成资源任务需求包所请求的资源任务;具体地,当网内节点判断其自身部署有资源任务需求包中资源任务的类型所对应的函数,且有大于或等于资源任务需求包中需要的资源量时,则判断自身能够完成资源任务需求包所请求的资源任务,反之,则判断不能够完成。The communication method according to claim 13, wherein when the node in the network receives the resource task requirement package, it judges whether it can complete the resource by extracting the resource task type and required resource amount in the resource task requirement package. The resource task requested by the task requirement package; specifically, when a node in the network judges that it has deployed a function corresponding to the type of resource task in the resource task requirement package, and there is a resource greater than or equal to the amount of resources required in the resource task requirement package , then it is judged that it can complete the resource task requested by the resource task demand package; otherwise, it is judged that it cannot be completed.
  15. 权利要求13或14所述的通信方法,其特征在于,当节点判断不能够完成资源任务需求包所请求的资源任务时,则节点根据资源任务需求包中资源任务的类型和需要的资源量作为路由转发依据,将资源任务需求包转发给另一节点。The communication method according to claim 13 or 14 is characterized in that, when the node judges that the resource task requested by the resource task requirement package cannot be completed, then the node takes the type of the resource task and the required resource amount in the resource task requirement package as the Based on routing and forwarding, the resource task request packet is forwarded to another node.
  16. 一种计算机可读存储介质,其特征在于,包括程序,所述程序能够被处理器执行以实现如权利要求1至15中任一项所述的方法。A computer-readable storage medium, characterized by comprising a program that can be executed by a processor to implement the method according to any one of claims 1 to 15.
PCT/CN2020/106797 2020-08-04 2020-08-04 In-network computing power or resource service-oriented communication method WO2022027224A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080102877.5A CN116250219A (en) 2020-08-04 2020-08-04 Communication method for network computing power or resource service
PCT/CN2020/106797 WO2022027224A1 (en) 2020-08-04 2020-08-04 In-network computing power or resource service-oriented communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/106797 WO2022027224A1 (en) 2020-08-04 2020-08-04 In-network computing power or resource service-oriented communication method

Publications (1)

Publication Number Publication Date
WO2022027224A1 true WO2022027224A1 (en) 2022-02-10

Family

ID=80119214

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/106797 WO2022027224A1 (en) 2020-08-04 2020-08-04 In-network computing power or resource service-oriented communication method

Country Status (2)

Country Link
CN (1) CN116250219A (en)
WO (1) WO2022027224A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844888A (en) * 2022-04-01 2022-08-02 杭州安存网络科技有限公司 Computer and processing method thereof
CN114884861A (en) * 2022-07-11 2022-08-09 军事科学院系统工程研究院网络信息研究所 Information transmission method and system based on intra-network computation
CN115051988A (en) * 2022-06-07 2022-09-13 瞳见科技有限公司 Fusion scheduling system based on distributed computing power
CN115118784A (en) * 2022-06-30 2022-09-27 中国电信股份有限公司 Computing resource scheduling method, device and system
CN115242865A (en) * 2022-07-11 2022-10-25 北京邮电大学 Switching standard of remote video manual service
CN115623602A (en) * 2022-12-19 2023-01-17 浪潮通信信息系统有限公司 Resource reselection method and device
CN116938934A (en) * 2023-09-19 2023-10-24 江苏嘉擎信息技术有限公司 Task switching control method and system based on message

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150207754A1 (en) * 2014-01-21 2015-07-23 Unicorn Media, Inc. Load balancing for mesh computing
CN107135268A (en) * 2017-05-22 2017-09-05 南京大学 Distributed task scheduling computational methods based on information centre's network
CN109981460A (en) * 2019-03-19 2019-07-05 北京邮电大学 A kind of service-oriented converged network, calculating, storage integral method and device
CN110659110A (en) * 2018-06-28 2020-01-07 厦门本能管家科技有限公司 Block chain based distributed computing method and system
CN110875945A (en) * 2018-09-04 2020-03-10 京东方科技集团股份有限公司 Method, apparatus and medium for task processing on a generic service entity

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150207754A1 (en) * 2014-01-21 2015-07-23 Unicorn Media, Inc. Load balancing for mesh computing
CN107135268A (en) * 2017-05-22 2017-09-05 南京大学 Distributed task scheduling computational methods based on information centre's network
CN110659110A (en) * 2018-06-28 2020-01-07 厦门本能管家科技有限公司 Block chain based distributed computing method and system
CN110875945A (en) * 2018-09-04 2020-03-10 京东方科技集团股份有限公司 Method, apparatus and medium for task processing on a generic service entity
CN109981460A (en) * 2019-03-19 2019-07-05 北京邮电大学 A kind of service-oriented converged network, calculating, storage integral method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844888A (en) * 2022-04-01 2022-08-02 杭州安存网络科技有限公司 Computer and processing method thereof
CN114844888B (en) * 2022-04-01 2024-01-19 杭州安存网络科技有限公司 Power computer and processing method thereof
CN115051988A (en) * 2022-06-07 2022-09-13 瞳见科技有限公司 Fusion scheduling system based on distributed computing power
CN115118784A (en) * 2022-06-30 2022-09-27 中国电信股份有限公司 Computing resource scheduling method, device and system
CN114884861A (en) * 2022-07-11 2022-08-09 军事科学院系统工程研究院网络信息研究所 Information transmission method and system based on intra-network computation
CN114884861B (en) * 2022-07-11 2022-09-30 军事科学院系统工程研究院网络信息研究所 Information transmission method and system based on intra-network computation
CN115242865A (en) * 2022-07-11 2022-10-25 北京邮电大学 Switching standard of remote video manual service
CN115623602A (en) * 2022-12-19 2023-01-17 浪潮通信信息系统有限公司 Resource reselection method and device
CN115623602B (en) * 2022-12-19 2023-04-07 浪潮通信信息系统有限公司 Resource reselection method and device
CN116938934A (en) * 2023-09-19 2023-10-24 江苏嘉擎信息技术有限公司 Task switching control method and system based on message
CN116938934B (en) * 2023-09-19 2023-12-22 江苏嘉擎信息技术有限公司 Task switching control method and system based on message

Also Published As

Publication number Publication date
CN116250219A (en) 2023-06-09

Similar Documents

Publication Publication Date Title
WO2022027224A1 (en) In-network computing power or resource service-oriented communication method
US9838333B2 (en) Software-defined information centric network (ICN)
US10194414B2 (en) Information centric networking based service centric networking
CN106031130B (en) Content distribution network framework with edge proxies
CN112470436A (en) Multi-cloud connectivity using SRV6 and BGP
US9094303B2 (en) Method for managing network system
US9871850B1 (en) Enhanced browsing using CDN routing capabilities
JP2017517170A (en) Method and communication unit for service implementation in an NFV system
US10931559B2 (en) Distribution of network-policy configuration, management, and control using model-driven and information-centric networking
EP2947845B1 (en) Border property validation for named data networks
WO2011150830A1 (en) Method and node for obtaining the content and content network
WO2016059537A1 (en) Ccn name patterns
Nicolaescu et al. Store edge networked data (SEND): A data and performance driven edge storage framework
WO2016131171A1 (en) Operation method and device for vnf package
Amadeo et al. SDN-managed provisioning of named computing services in edge infrastructures
Badshah et al. An improved method to deploy cache servers in software defined network-based information centric networking for big data
Kim et al. Media-oriented service composition with service overlay networks: Challenges, approaches and future trends
US20220012110A1 (en) Networking-related system call interception and modification
Song et al. Exploring Reliable Decentralized Networks with Smart Collaborative Theory
Alberti et al. Performance evaluation of NovaGenesis information-centric network
Rabah et al. A service oriented broker-based approach for dynamic resource discovery in virtual networks
Nakanishi et al. A container-based content delivery method for edge cloud over wide area network
Amadeo et al. Towards software-defined fog computing via named data networking
Nascimento et al. A programmable network architecture for information centric network using data replication in private clouds
Ohshima et al. Construction of routing information knowledge base towards wide area network management

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20947945

Country of ref document: EP

Kind code of ref document: A1