CN112799825A - Task processing method and network equipment - Google Patents

Task processing method and network equipment Download PDF

Info

Publication number
CN112799825A
CN112799825A CN201911106964.3A CN201911106964A CN112799825A CN 112799825 A CN112799825 A CN 112799825A CN 201911106964 A CN201911106964 A CN 201911106964A CN 112799825 A CN112799825 A CN 112799825A
Authority
CN
China
Prior art keywords
network device
network
identifier
determining
target
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201911106964.3A
Other languages
Chinese (zh)
Inventor
姚惠娟
蔡慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201911106964.3A priority Critical patent/CN112799825A/en
Priority to PCT/CN2020/120697 priority patent/WO2021093501A1/en
Publication of CN112799825A publication Critical patent/CN112799825A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a task processing method and network equipment. The method comprises the following steps: acquiring a task request sent by a terminal device, wherein the task request comprises a first service identifier or a first function identifier; determining at least one target network device corresponding to the first service identifier or the first function identifier; splitting the task request into at least one subtask request, and respectively sending the at least one subtask request to the at least one target network device; and respectively obtaining the calculation results of the at least one target network device, combining the at least one calculation result into a target calculation result, and sending the target calculation result to the terminal device.

Description

Task processing method and network equipment
Technical Field
The present invention relates to data communication network technology, and in particular, to a task processing method and network device.
Background
The traditional network is only a pipeline for providing data communication, is based on connection, is limited by a fixed network addressing mechanism, and often cannot meet the requirements of higher and more rigorous Quality of Experience (QoE). With the rapid development of cloud computing and edge computing, computing resources in a network are integrated into each corner of the network, so that each network node can become a resource provider, a user request can be satisfied by calling the nearest node resource and is not limited to a specific node, and waste of connection and network scheduling resources is avoided. In addition, with the development of micro services, a traditional client-server (client-server) mode is deconstructed, Application deconstruction functional components on a server side are distributed on a cloud platform and are uniformly scheduled by an Application Programming Interface (API) gateway (gateway), dynamic instantiation can be achieved as required, and business logic in the server is transferred to the client side. Therefore, future networks need to support the instantiation of an atomization algorithm in a ubiquitous computing resource as needed to realize Function as a service (Faas).
However, there is no effective solution for solving the problem of addressing based on function capability, i.e. task scheduling based on function capability.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a task processing method and a network device.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a task processing method, which comprises the following steps:
acquiring a task request sent by a terminal device, wherein the task request comprises a first service identifier or a first function identifier;
determining at least one target network device corresponding to the first service identifier or the first function identifier;
splitting the task request into at least one subtask request, and respectively sending the at least one subtask request to the at least one target network device;
and respectively obtaining the calculation results of the at least one target network device, combining the at least one calculation result into a target calculation result, and sending the target calculation result to the terminal device.
In the foregoing solution, before the obtaining of the task request sent by the terminal device, the method further includes:
information relating to network resources and computing resources of a plurality of network devices is obtained.
In the foregoing solution, in a case that the task request includes a first service identifier, the determining at least one target network device corresponding to the first service identifier or the first function identifier includes:
determining at least one first function identifier corresponding to the first service identifier based on a mapping relation between a service identifier and a function identifier obtained in advance;
and determining at least one target network device corresponding to the at least one first function identifier.
In the foregoing solution, the determining at least one target network device corresponding to the at least one first function identifier includes: determining at least one first network address corresponding to at least one first function identifier based on a mapping relation between the function identifiers and the network addresses obtained in advance;
and determining at least one target network device corresponding to the at least one first network address.
In the above scheme, the task request further includes a service type and/or a network quality requirement parameter; the determining at least one target network device corresponding to the at least one first network address includes:
determining at least one first network device corresponding to the at least one first network address;
determining at least one target network device from the at least one first network device that satisfies the traffic type and/or network quality requirement parameters based on the information about the network resources and computing resources.
In the above scheme, the method further comprises: obtaining the mapping relation between the service identifier and the function identifier in the network equipment and/or the mapping relation between the function identifier and the network address through the routing table updating message; the network address is a network address of the network device.
An embodiment of the present invention further provides a network device, where the network device includes: the device comprises an acquisition unit, a determination unit, a splitting unit and an aggregation unit; wherein,
the acquiring unit is used for acquiring a task request sent by the terminal equipment, wherein the task request comprises a first service identifier or a first function identifier;
the determining unit is configured to determine at least one target network device corresponding to the first service identifier or the first function identifier;
the splitting unit is configured to split the task request into at least one subtask request, and send the at least one subtask request to the at least one target network device respectively;
the aggregation unit is configured to obtain the computation results of the at least one target network device, combine the at least one computation result into a target computation result, and send the target computation result to the terminal device.
In the foregoing solution, the obtaining unit is further configured to obtain, before the task request sent by the terminal device is obtained, network resources of the plurality of network devices and relevant information of the computing resource.
In the foregoing solution, the determining unit is configured to determine, based on a mapping relationship between a service identifier and a function identifier obtained in advance, at least one first function identifier corresponding to a first service identifier when the task request includes the first service identifier; and determining at least one target network device corresponding to the at least one first function identifier.
In the foregoing solution, the determining unit is configured to determine, based on a mapping relationship between a function identifier and a network address obtained in advance, at least one first network address corresponding to the at least one first function identifier; and determining at least one target network device corresponding to the at least one first network address.
In the above scheme, the task request further includes a service type and/or a network quality requirement parameter;
the determining unit is further configured to determine at least one first network device corresponding to the at least one first network address; determining at least one target network device from the at least one first network device that satisfies the traffic type and/or network quality requirement parameters based on the information about the network resources and computing resources.
In the above solution, the obtaining unit is further configured to obtain, through a routing table update message, a mapping relationship between a service identifier and a function identifier in the network device, and/or a mapping relationship between a function identifier and a network address; the network address is a network address of the network device.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method described in the embodiments of the present invention.
The embodiment of the present invention further provides a network device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the method according to the embodiment of the present invention are implemented.
The task processing method and the network device provided by the embodiment of the invention comprise the following steps: acquiring a task request sent by a terminal device, wherein the task request comprises a first service identifier or a first function identifier; determining at least one target network device corresponding to the first service identifier or the first function identifier; splitting the task request into at least one subtask request, and respectively sending the at least one subtask request to the at least one target network device; and respectively obtaining the calculation results of the at least one target network device, combining the at least one calculation result into a target calculation result, and sending the target calculation result to the terminal device. By adopting the technical scheme of the embodiment of the invention, the target network equipment capable of providing the service (or the function) is determined by carrying the first service identifier or the first function identifier in the task request, the task request is split into at least one subtask request and is dispatched to at least one target network equipment for calculation, so that the flexible calling of the function as required is realized, namely the evolution towards the function, namely the service is realized.
Drawings
FIG. 1 is a first flowchart illustrating a task processing method according to an embodiment of the present invention;
FIG. 2 is a system architecture diagram of a task processing method application according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a task processing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a network device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware component structure of a network device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention provides a task processing method. FIG. 1 is a first flowchart illustrating a task processing method according to an embodiment of the present invention; as shown in fig. 1, the method includes:
step 101: acquiring a task request sent by a terminal device, wherein the task request comprises a first service identifier or a first function identifier;
step 102: determining at least one target network device corresponding to the first service identifier or the first function identifier;
step 103: splitting the task request into at least one subtask request, and respectively sending the at least one subtask request to the at least one target network device;
step 104: and respectively obtaining the calculation results of the at least one target network device, combining the at least one calculation result into a target calculation result, and sending the target calculation result to the terminal device.
The task processing method of the embodiment can be applied to network equipment. FIG. 2 is a system architecture diagram of a task processing method application according to an embodiment of the present invention; as shown in fig. 2, the system may include a terminal device 11 and a network device; the terminal device 11 may also be referred to as a client. Each network device can have computing resources, network resources and storage resources; wherein, the computing resources can also be called computing functions, the network resources can be called network transmission functions, and the storage resources can be used for storing data. It can be understood that each network device in this embodiment has a certain computing function, and can perform corresponding computing function for data; each network device in this embodiment may also have a network transmission function, and data transmission may be performed between network devices or between the terminal device 11 and an access network device; each network device in this embodiment also has a storage function, and can store specific data.
In this embodiment, the network device may be divided into an access node device 12 and a service node device 13 according to functional division; there may be one or more functional modules in the service node device 13, each of which may be used for processing a function. As an embodiment, the functional module may include a computer program, and the corresponding function is realized by executing the computer program. For example, a certain service node 13 has a functional module, which includes a face recognition algorithm, and can be used for recognizing a face image through executing the face recognition algorithm. Of course, the function of the functional module in the present embodiment is not limited to the above example, and any other functions are within the protection scope of the present embodiment.
In this embodiment, the function of the function module in the service node device 13 may be referred to as a computing function, or may be referred to as computing power, that is, the service node device 13 may have computing capabilities of various functions. The computing capability may be preset in the service node device 13, that is, the function module is preset in the service node device 13; alternatively, the computing capability may be provided in an external device connected to the service node device 13, that is, the function module may be provided in an external device connected to the service node device 13.
In this embodiment, the functional modules in the service node device 13 may be at least partially the same or different. For example, as shown in fig. 2, one service node device 13 has a function module 1(Func1) and a function module 2(Func 2); the other service node device 13 has a function module 3(Func3) and a function module 4(Func 4); wherein, the function module 1(Func1) and the function module 2(Func2) have different functions; function module 3(Func3) and function module 4(Func4) have different functions; the function modules 1(Func1) and 2(Func2) are completely different functions from the function modules 3(Func3) and 4(Func4), or have partially the same function, for example, the function module 2(Func2) and the function module 3(Func3) have the same function.
The task processing method of this embodiment is applied to the access node device 12, that is, the access node device 12 receives a task request of the terminal device 11, where the task request includes a first Service identifier (Service ID) or a first Function identifier (Function ID). As an implementation manner, the terminal device may determine a service identifier or a function identifier according to a service type of data to be transmitted (the determined service identifier is denoted as a first service identifier, and the determined function identifier is denoted as a first function identifier). Wherein the service identification and the function identification are related to the service type. In practical application, a mapping relationship between a service type and a service identifier may be preset in the terminal device, or a mapping relationship between a service type and a function identifier may be set, and after the service type corresponding to the data packet is determined, the corresponding first service identifier or first function identifier may be determined based on the service type. Wherein the determined number of the first function identifiers may be at least one.
In this embodiment, the access node device 12 supports joint scheduling of resources, and may directly address the serving node device 13 having a corresponding function (or service) through the first service identifier or the first function identifier carried in the task request.
In this embodiment, the access node device 12 stores a mapping relationship between the service identifier and the function identifier, and a mapping relationship between the function identifier and the network address. In the mapping relationship between the service identifiers and the function identifiers, one service identifier may correspond to at least one function identifier. In the mapping relation between the function identifiers and the network addresses, one function identifier can correspond to one network address; and one network address may correspond to at least one function identification.
In this embodiment, as an implementation manner, the mapping relationship between the service identifier and the function identifier and the mapping relationship between the function identifier and the network address are also stored in the access node device in a preconfigured manner. As another embodiment, the mapping relationship between the service identifier and the function identifier and the mapping relationship between the function identifier and the network address may also be obtained and stored from a service network node in a preset manner. Illustratively, the mapping relationship between the service identifier and the function identifier and the mapping relationship between the function identifier and the network address, which are sent by the service network node, may be obtained through the routing table update message.
In an optional embodiment of the present invention, in a case that the task request includes the first function identifier, the first network address corresponding to the first function identifier may be determined based on a mapping relationship between the function identifier and the network address, so as to determine the network device corresponding to the first network address.
In an optional embodiment of the present invention, in a case that the task request includes a first service identifier, the determining at least one target network device corresponding to the first service identifier or the first function identifier includes: determining at least one first function identifier corresponding to the first service identifier based on a mapping relation between a service identifier and a function identifier obtained in advance; and determining at least one target network device corresponding to the at least one first function identifier.
Wherein the determining at least one target network device corresponding to the at least one first function identifier includes: determining at least one first network address corresponding to at least one first function identifier based on a mapping relation between the function identifiers and the network addresses obtained in advance; and determining at least one target network device corresponding to the at least one first network address.
In an optional embodiment of the invention, the method further comprises: obtaining the mapping relation between the service identifier and the function identifier and/or the mapping relation between the function identifier and the network address in the network equipment through the routing table updating message; the network address is a network address of the network device.
In this embodiment, any network device (for example, the service node device 13) may broadcast a routing table update message to surrounding network devices in a broadcast manner, where a specific field or a reserved field in the routing table update message carries a mapping relationship between a service identifier and a function identifier in the service node device and/or a mapping relationship between a function identifier and a network address; the network device receiving the routing table updating message can add the mapping relation between the service identifier and the function identifier of the network device and/or the mapping relation between the function identifier and the network address in the routing table updating message to generate a new routing table updating message and further broadcast the routing table updating message; the access node device 12 receives the routing table update message broadcast by other network devices, and may sort the mapping relationship between the service identifier and the function identifier and/or the mapping relationship between the function identifier and the network address carried in the received routing table update message, to obtain the mapping relationship between the service identifier and the function identifier and/or the mapping relationship between the function identifier and the network address corresponding to the surrounding service node devices.
As an embodiment, the mapping relationship between the service identifier and the function identifier and/or the mapping relationship between the function identifier and the network address in the network device may be obtained through a Border Gateway Protocol (BGP) message. As an example, the mapping relationship between the service identifier and the function identifier and/or the mapping relationship between the function identifier and the network address may be carried in a TLV format in a path attributes (path attributes) field in a BGP update (BGP update) message shown in table 1 below; wherein T in TLV represents a type of data (Tag), L represents a Length of data (Length), and V represents a Value of data (Value). As another example, the service identifier and/or the function identifier may also be carried in a TLV format in a path attributes (path attributes) field in a BGP update (BGP update) message; the network equipment receiving the BGP upgrade (BGP update) message can determine the mapping relation between the service identifier and the function identifier according to the service identifier and the function identifier carried in the message; determining a mapping relation between the function identification and the network address based on the source network address corresponding to the message; or, the network device that receives the BGP update (BGP update) message may determine, according to the service identifier carried in the message, a mapping relationship between the function identifier and the network address based on a mapping relationship between the service identifier and the function identifier that are configured in advance, and the source network address corresponding to the message.
TABLE 1
Figure BDA0002271600970000081
In an optional embodiment of the present invention, before obtaining the task request sent by the terminal device, the method further includes: information relating to network resources and computing resources of a plurality of network devices is obtained.
In this embodiment, the network resource may represent a network transmission capability of the network device, and the network resource may include, for example, a bandwidth. The computing resources may represent computing power of the network device, which may represent computing speed, which may include processor parameters, memory parameters, and the like of the network device.
As an embodiment, a network device (e.g., an access node device) may obtain information about network resources and computing resources of a plurality of network devices via a routing table update message. Illustratively, the information related to the network resources and the computing resources of the network device may be carried in TLV format in a path attributes (path attributes) field in a BGP update (BGP update) message. It can be understood that, when the mapping relationship between the service identifier and the function identifier and/or the mapping relationship between the function identifier and the network address is transmitted through the related information of the network resource and the computing resource of the network device, or the service identifier and/or the function identifier are transmitted, the related information of the network resource and the computing resource of the corresponding network device is carried.
In an optional embodiment of the present invention, the task request further comprises a service type and/or a network quality requirement parameter; the determining at least one target network device corresponding to the at least one first network address includes: determining at least one first network device corresponding to the at least one first network address; determining at least one target network device from the at least one first network device that satisfies the traffic type and/or network quality requirement parameters based on the information about the network resources and computing resources.
In this embodiment, on one hand, a network device (for example, an access node device) may determine, based on at least one first function identifier carried in a task request, at least one corresponding first network address directly, or determine, based on a first service identifier carried in the task request, at least one corresponding first function identifier, and then determine, based on the at least one first function identifier, at least one corresponding first network address, and determine a network device (serving node device) corresponding to the at least one first network address; on the other hand, the access node device may select a target network device (target serving node device) from the determined at least one network device (serving node device) according to the obtained related information of the network resources and the computing resources of each network device (serving node device), split the task request into at least one subtask request, and send the at least one subtask request to the at least one target network device for computing; at least one calculation result is accordingly obtained. The network device (such as an access node device) combines at least one calculation result to obtain a target calculation result, and feeds the target calculation result back to the terminal device.
In this embodiment, the access node device may be a network device to which the terminal device first accesses (for example, a router device to which the terminal device first accesses), or the access node device may also be a controller device in the network. Under the condition that the access node device is the network device which is accessed to the terminal device for the first time, other network devices can transmit the mapping relation between the service identifier and the function identifier, the mapping relation between the function identifier and the network address, and the related information of network resources and computing resources of the other network devices in a broadcasting mode through the routing update message. Under the condition that the access node device is a controller device in a network, other network devices can actively send the mapping relation between the service identifier and the function identifier of the access node device, the mapping relation between the function identifier and the network address, and the related information of network resources and computing resources to the controller device. This is explained in detail below with reference to specific examples.
FIG. 3 is a flowchart illustrating a task processing method according to an embodiment of the present invention; the embodiment includes a network device 1 (denoted as R1), a network device 2 (denoted as R2), a network device 3 (denoted as R3), and a network device 4 (denoted as R4), where the access node device is the network device 1 (denoted as R1). As shown in fig. 3, the task processing method includes:
step 201a corresponds to a scenario in which the network device 1 (denoted as R1) is a network device (e.g., a router device) that is first accessed by the terminal device, and the updating of the network device state in this scenario may be performed through a route updating mechanism, which specifically includes:
step 2011 a: the network device 4(R4) transmits an update message by broadcasting, the update message being received by the network device 3 (R3); the update message includes information of the network device 4(R4), such as mapping information related to the service identifier and/or the function identifier of the network device 4(R4), and information related to the network resource and the computing resource of the network device 4 (R4);
step 2012 a: the network device 3(R3) transmits an update message by broadcasting, the update message being received by the network device 2 (R2); the update message may include information of network device 3(R3) and network device 4(R4), for example, may include mapping information related to service identifiers and/or function identifiers of network device 3(R3) and network device 4(R4), and information related to network resources and computing resources of network device 3(R3) and network device 4 (R4);
step 2013 a: the network device 2(R2) transmits an update message by broadcasting, the update message being received by the network device 1 (R1); the update message may include information of network device 2(R2), network device 3(R3), and network device 4(R4), for example, may include mapping information related to service identifiers and/or function identifiers of network device 2(R2), network device 3(R3), and network device 4(R4), and information related to network resources and computing resources of network device 2(R2), network device 3(R3), and network device 4 (R4);
step 201b corresponds to a scenario in which the network device 1 (denoted as R1) is a controller device, and the updating of the state of the network device in the scenario may be performed in a manner that each network device actively updates the controller device, which may specifically include:
step 2011 b: network device 4(R4) sends an update message directly to network device 1 (denoted as R1); the update message includes information of the network device 4(R4), such as mapping information related to the service identifier and/or the function identifier of the network device 4(R4), and information related to the network resource and the computing resource of the network device 4 (R4);
step 2012 b: network device 3(R3) sends an update message directly to network device 1 (denoted as R1); the update message includes information of the network device 3(R3), such as mapping information related to the service identifier and/or the function identifier of the network device 3(R3), and information related to the network resource and the computing resource of the network device 3 (R3);
step 2013 b: network device 2(R2) sends an update message directly to network device 1 (denoted as R1); the update message includes information of the network device 2(R2), such as mapping information related to the service identifier and/or the function identifier of the network device 2(R2), and information related to the network resource and the computing resource of the network device 2 (R2);
step 202: the method comprises the steps that a terminal device sends a task request to a network device 1, wherein the task request can comprise a first service identifier or at least one first function identifier;
step 203: the network device 1 determines at least one target network device corresponding to the first service identifier or the first function identifier, and splits the task request into at least one subtask request; the manner of determining at least one target network device may specifically refer to the foregoing embodiments, which are not described herein again;
step 204 a: the network equipment 1 sends a subtask request to the determined network equipment 2 to obtain a calculation result 1 fed back by the network equipment 2;
step 204 b: the network equipment 1 sends a subtask request to the determined network equipment 3 to obtain a calculation result 2 fed back by the network equipment 3;
step 205: the network equipment 1 aggregates the calculation result 1 and the calculation result 2 into a target calculation result;
step 206: the network device 1 sends the target calculation result to the terminal device.
By adopting the technical scheme of the embodiment of the invention, the target network equipment capable of providing the service (or the function) is determined by carrying the first service identifier or the first function identifier in the task request, the task request is split into at least one subtask request and is dispatched to at least one target network equipment for calculation, so that the flexible calling of the function as required is realized, namely the evolution towards the function, namely the service is realized.
The embodiment of the invention also provides network equipment. FIG. 4 is a schematic diagram of a network device according to an embodiment of the present invention; as shown in fig. 4, the network device includes: an acquisition unit 31, a determination unit 32, a splitting unit 33, and an aggregation unit 34; wherein,
the acquiring unit 31 is configured to acquire a task request sent by a terminal device, where the task request includes a first service identifier or a first function identifier;
the determining unit 32 is configured to determine at least one target network device corresponding to the first service identifier or the first function identifier;
the splitting unit 33 is configured to split the task request into at least one subtask request, and send the at least one subtask request to the at least one target network device respectively;
the aggregation unit 34 is configured to obtain the calculation results of the at least one target network device, combine the at least one calculation result into a target calculation result, and send the target calculation result to the terminal device.
In an optional embodiment of the present invention, the obtaining unit 31 is further configured to obtain related information of network resources and computing resources of a plurality of network devices before obtaining the task request sent by the terminal device.
In an optional embodiment of the present invention, the determining unit 32 is configured to determine, when the task request includes a first service identifier, at least one first function identifier corresponding to the first service identifier based on a mapping relationship between a service identifier and a function identifier obtained in advance; and determining at least one target network device corresponding to the at least one first function identifier.
In an optional embodiment of the present invention, the determining unit 32 is configured to determine, based on a mapping relationship between a pre-obtained function identifier and a network address, at least one first network address corresponding to the at least one first function identifier; and determining at least one target network device corresponding to the at least one first network address.
In an optional embodiment of the present invention, the task request further comprises a service type and/or a network quality requirement parameter;
the determining unit 32 is further configured to determine at least one first network device corresponding to the at least one first network address; determining at least one target network device from the at least one first network device that satisfies the traffic type and/or network quality requirement parameters based on the information about the network resources and computing resources.
In an optional embodiment of the present invention, the obtaining unit 31 is further configured to obtain, through a routing table update message, a mapping relationship between a service identifier and a function identifier in a network device, and/or a mapping relationship between a function identifier and a network address; the network address is a network address of the network device.
In the embodiment of the present invention, in practical application, the obtaining Unit 31, the determining Unit 32, the splitting Unit 33, and the aggregating Unit 34 in the network device may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU) or a Programmable Gate Array (FPGA) in the network device, in combination with a communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a standardized protocol, and the like) and a transceiver antenna.
It should be noted that: in the network device provided in the foregoing embodiment, when performing task processing, only the division of the program modules is described as an example, and in practical applications, the processing may be distributed to be completed by different program modules according to needs, that is, the internal structure of the network device is divided into different program modules to complete all or part of the processing described above. In addition, the network device and the task processing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Fig. 5 is a schematic diagram of a hardware structure of the network device according to the embodiment of the present invention, and as shown in fig. 5, the network device 40 includes a memory 42, a processor 41, and a computer program stored in the memory 42 and capable of running on the processor 41, and when the processor 41 executes the computer program, the steps of the task processing method according to the embodiment of the present invention are implemented.
Optionally, network device 40 also includes a communication interface 43. Various components within network device 40 may be coupled together by a bus system 44. It will be appreciated that the bus system 44 is used to enable communications among the components. The bus system 44 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 44 in fig. 5.
It will be appreciated that the memory 42 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 42 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiments of the present invention may be applied to the processor 41, or implemented by the processor 41. The processor 41 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 41. The Processor 41 described above may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 41 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in memory 42, where processor 41 reads the information in memory 42 and in combination with its hardware performs the steps of the method described above.
In an exemplary embodiment, the network Device 40 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the task processing method according to the embodiments of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (14)

1. A method for processing a task, the method comprising:
acquiring a task request sent by a terminal device, wherein the task request comprises a first service identifier or a first function identifier;
determining at least one target network device corresponding to the first service identifier or the first function identifier;
splitting the task request into at least one subtask request, and respectively sending the at least one subtask request to the at least one target network device;
and respectively obtaining the calculation results of the at least one target network device, combining the at least one calculation result into a target calculation result, and sending the target calculation result to the terminal device.
2. The method of claim 1, wherein before obtaining the task request sent by the terminal device, the method further comprises:
information relating to network resources and computing resources of a plurality of network devices is obtained.
3. The method according to claim 1 or 2, wherein in a case that a first service identifier is included in the task request, the determining at least one target network device corresponding to the first service identifier or the first function identifier comprises:
determining at least one first function identifier corresponding to the first service identifier based on a mapping relation between a service identifier and a function identifier obtained in advance;
and determining at least one target network device corresponding to the at least one first function identifier.
4. The method of claim 3, wherein the determining that the at least one first function identifier corresponds to at least one target network device comprises:
determining at least one first network address corresponding to at least one first function identifier based on a mapping relation between the function identifiers and the network addresses obtained in advance;
and determining at least one target network device corresponding to the at least one first network address.
5. The method of claim 4, wherein the task request further comprises a traffic type and/or a network quality requirement parameter; the determining at least one target network device corresponding to the at least one first network address includes:
determining at least one first network device corresponding to the at least one first network address;
determining at least one target network device from the at least one first network device that satisfies the traffic type and/or network quality requirement parameters based on the information about the network resources and computing resources.
6. The method of claim 4, further comprising:
obtaining the mapping relation between the service identifier and the function identifier in the network equipment and/or the mapping relation between the function identifier and the network address through the routing table updating message; the network address is a network address of the network device.
7. A network device, characterized in that the network device comprises: the device comprises an acquisition unit, a determination unit, a splitting unit and an aggregation unit; wherein,
the acquiring unit is used for acquiring a task request sent by the terminal equipment, wherein the task request comprises a first service identifier or a first function identifier;
the determining unit is configured to determine at least one target network device corresponding to the first service identifier or the first function identifier;
the splitting unit is configured to split the task request into at least one subtask request, and send the at least one subtask request to the at least one target network device respectively;
the aggregation unit is configured to obtain the computation results of the at least one target network device, combine the at least one computation result into a target computation result, and send the target computation result to the terminal device.
8. The network device according to claim 7, wherein the obtaining unit is further configured to obtain information related to network resources and computing resources of a plurality of network devices before obtaining the task request sent by the terminal device.
9. The network device according to claim 7 or 8, wherein the determining unit is configured to determine, when the task request includes a first service identifier, at least one first function identifier corresponding to the first service identifier based on a mapping relationship between a service identifier and a function identifier obtained in advance; and determining at least one target network device corresponding to the at least one first function identifier.
10. The network device according to claim 9, wherein the determining unit is configured to determine at least one first network address corresponding to the at least one first function identifier based on a mapping relationship between a function identifier obtained in advance and a network address; and determining at least one target network device corresponding to the at least one first network address.
11. The network device of claim 10, wherein the task request further comprises a traffic type and/or a network quality requirement parameter;
the determining unit is further configured to determine at least one first network device corresponding to the at least one first network address; determining at least one target network device from the at least one first network device that satisfies the traffic type and/or network quality requirement parameters based on the information about the network resources and computing resources.
12. The network device according to claim 10, wherein the obtaining unit is further configured to obtain, through a routing table update message, a mapping relationship between a service identifier and a function identifier in the network device, and/or a mapping relationship between a function identifier and a network address; the network address is a network address of the network device.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
14. A network device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the processor executes the program.
CN201911106964.3A 2019-11-13 2019-11-13 Task processing method and network equipment Pending CN112799825A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911106964.3A CN112799825A (en) 2019-11-13 2019-11-13 Task processing method and network equipment
PCT/CN2020/120697 WO2021093501A1 (en) 2019-11-13 2020-10-13 Task processing method and network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911106964.3A CN112799825A (en) 2019-11-13 2019-11-13 Task processing method and network equipment

Publications (1)

Publication Number Publication Date
CN112799825A true CN112799825A (en) 2021-05-14

Family

ID=75803153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911106964.3A Pending CN112799825A (en) 2019-11-13 2019-11-13 Task processing method and network equipment

Country Status (2)

Country Link
CN (1) CN112799825A (en)
WO (1) WO2021093501A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347171A (en) * 2021-05-28 2021-09-03 杭州萤石软件有限公司 Internet of things equipment disposal method and method for setting equipment resources in internet of things equipment
CN113452758A (en) * 2021-06-04 2021-09-28 中国联合网络通信集团有限公司 Service access method and device
CN115361280A (en) * 2022-08-15 2022-11-18 中国联合网络通信集团有限公司 Calculation network calling method, device, equipment and storage medium
WO2024093859A1 (en) * 2022-11-04 2024-05-10 中国联合网络通信集团有限公司 Service function orchestration method and system, electronic device, and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115955671A (en) * 2021-10-09 2023-04-11 华为技术有限公司 Communication method and device
CN114296357B (en) * 2021-12-01 2024-07-19 青岛海尔科技有限公司 Processing method and device of functional data, electronic equipment and storage medium
CN117319388A (en) * 2022-06-21 2023-12-29 维沃移动通信有限公司 Force calculation service method, device and terminal
CN114866417B (en) * 2022-07-05 2022-09-06 上海有孚智数云创数字科技有限公司 Method, system, medium, and apparatus for determining an organization network configuration
CN116456496B (en) * 2023-06-15 2023-11-14 阿里巴巴(中国)有限公司 Resource scheduling method, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106533973A (en) * 2016-11-04 2017-03-22 华为技术有限公司 Method and system for distributing service message, and equipment
CN106815061A (en) * 2015-12-01 2017-06-09 阿里巴巴集团控股有限公司 A kind of method for processing business and device
CN108683613A (en) * 2018-05-10 2018-10-19 Oppo广东移动通信有限公司 A kind of method, apparatus and computer storage media of scheduling of resource
US20190051181A1 (en) * 2016-04-19 2019-02-14 Huawei Technologies Co., Ltd. Traffic service obtaining method and related device
CN110231987A (en) * 2019-06-21 2019-09-13 深圳市网心科技有限公司 A kind of data processing method and relevant apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729106B (en) * 2017-10-27 2021-07-16 伊姆西Ip控股有限责任公司 Method, system and computer program product for processing computing tasks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815061A (en) * 2015-12-01 2017-06-09 阿里巴巴集团控股有限公司 A kind of method for processing business and device
US20190051181A1 (en) * 2016-04-19 2019-02-14 Huawei Technologies Co., Ltd. Traffic service obtaining method and related device
CN106533973A (en) * 2016-11-04 2017-03-22 华为技术有限公司 Method and system for distributing service message, and equipment
CN108683613A (en) * 2018-05-10 2018-10-19 Oppo广东移动通信有限公司 A kind of method, apparatus and computer storage media of scheduling of resource
CN110231987A (en) * 2019-06-21 2019-09-13 深圳市网心科技有限公司 A kind of data processing method and relevant apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347171A (en) * 2021-05-28 2021-09-03 杭州萤石软件有限公司 Internet of things equipment disposal method and method for setting equipment resources in internet of things equipment
CN113347171B (en) * 2021-05-28 2022-07-05 杭州萤石软件有限公司 Internet of things equipment disposal method and method for setting equipment resources in internet of things equipment
CN113452758A (en) * 2021-06-04 2021-09-28 中国联合网络通信集团有限公司 Service access method and device
CN115361280A (en) * 2022-08-15 2022-11-18 中国联合网络通信集团有限公司 Calculation network calling method, device, equipment and storage medium
CN115361280B (en) * 2022-08-15 2023-11-28 中国联合网络通信集团有限公司 Method, device, equipment and storage medium for invoking calculation power network
WO2024093859A1 (en) * 2022-11-04 2024-05-10 中国联合网络通信集团有限公司 Service function orchestration method and system, electronic device, and storage medium

Also Published As

Publication number Publication date
WO2021093501A1 (en) 2021-05-20

Similar Documents

Publication Publication Date Title
CN112799825A (en) Task processing method and network equipment
US11456930B2 (en) Network resource management method, apparatus, and system
US20200195511A1 (en) Network management method and related device
US20200304508A1 (en) Method and device for providing authentication in network-based media processing (nbmp) system
EP3291499A1 (en) Method and apparatus for network service capacity expansion
CN109547531B (en) Data processing method and device and computing equipment
US11432137B2 (en) Service notification method for mobile edge host and apparatus
US20210410057A1 (en) Service Discovery Extension in a 5G Mobile Communication Network
CN110278161B (en) Message distribution method, device and system based on user mode protocol stack
CN113268308B (en) Information processing method, device and storage medium
CN114025021A (en) Communication method, system, medium and electronic device across Kubernetes cluster
US20230161541A1 (en) Screen projection method and system
CN111770122A (en) Service communication agent SCP registration method, service calling method and network equipment
CN110740464A (en) NF service discovery method and device
CN115114222A (en) Market quotation snapshot distribution method and related device
CN115268949A (en) Mirror preheating method, device, equipment and storage medium
CN112714146B (en) Resource scheduling method, device, equipment and computer readable storage medium
US11252457B2 (en) Multimedia streaming and routing apparatus and operation method of the same
CN113746851B (en) Proxy system and method supporting real-time analysis of GRPC request
CN116233481A (en) Media stream transmission method, media server and communication system
US10904719B2 (en) Message shunting method, device and system based on user mode protocol stack
CN115617537A (en) Data transmission method and device and storage medium
US20230046570A1 (en) Method and network entity for service api publishing
WO2024174737A1 (en) Method and apparatus for setting process priority level in container
CN117040842A (en) Gray gateway issuing method, device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210514

RJ01 Rejection of invention patent application after publication