CN109992387B - Terminal collaborative task processing method and device and electronic equipment - Google Patents

Terminal collaborative task processing method and device and electronic equipment Download PDF

Info

Publication number
CN109992387B
CN109992387B CN201910257826.9A CN201910257826A CN109992387B CN 109992387 B CN109992387 B CN 109992387B CN 201910257826 A CN201910257826 A CN 201910257826A CN 109992387 B CN109992387 B CN 109992387B
Authority
CN
China
Prior art keywords
task
equipment
processed
processing
amount
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.)
Active
Application number
CN201910257826.9A
Other languages
Chinese (zh)
Other versions
CN109992387A (en
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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201910257826.9A priority Critical patent/CN109992387B/en
Publication of CN109992387A publication Critical patent/CN109992387A/en
Application granted granted Critical
Publication of CN109992387B publication Critical patent/CN109992387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • G06F9/4862Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration the task being a mobile agent, i.e. specifically designed to migrate

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 provides a terminal cooperative task processing method, a device and electronic equipment, which are applied to first equipment in a cellular network, wherein the method comprises the following steps: acquiring the task quantity of a task to be processed and equipment in a communication range of the equipment with the task to be processed; the method comprises the steps of obtaining available resources of equipment within a communication range of the equipment with the task to be processed, and determining processing equipment for processing the task to be processed based on the available resources of the equipment within the communication range of the equipment with the task to be processed and the task amount of the task to be processed; determining the task amount allocated to the processing equipment based on the task amount of the tasks to be processed and the available resources of the processing equipment; and indicating the equipment with the task to be processed, splitting the task to be processed according to the distributed task amount, and sending the split task corresponding to the distributed task amount to the processing equipment, so that the task processing of the auxiliary access equipment can be realized, and the load of the access equipment is reduced.

Description

Terminal collaborative task processing method and device and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a terminal-coordinated task, and an electronic device.
Background
As a large number of wireless devices access a wireless network, a great pressure is placed on the wireless network, and in order to relieve the pressure, related research and development personnel are developing a 5G network, and by evolving the wireless network from 4G to 5G, the pressure on the wireless network can be fully relieved, for example, by using a new 5G technology such as NOMA technology and Massive MIMO technology, the utilization efficiency of spectrum resources and space resources can be greatly improved.
However, an access device, as a hardware device for providing wireless network access for a wireless device, generally has a certain limitation due to constraints such as hardware conditions, and when there are many wireless devices accessing the access device, the load of the access device is increased, and the communication quality of each wireless device accessing the access device is poor.
Disclosure of Invention
The embodiment of the invention aims to provide a terminal cooperative task processing method, a terminal cooperative task processing device and electronic equipment, so as to assist access equipment to perform task processing and reduce the load of the access equipment. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a terminal-coordinated task processing method, which is applied to a first device in a cellular network, where the cellular network includes multiple devices, and the method includes:
acquiring the task quantity of a task to be processed and equipment in a communication range of the equipment with the task to be processed;
the method comprises the steps of obtaining available resources of equipment within a communication range of the equipment with the task to be processed, and determining processing equipment for processing the task to be processed based on the available resources of the equipment within the communication range of the equipment with the task to be processed and the task amount of the task to be processed;
determining the task amount allocated to the processing equipment based on the task amount of the tasks to be processed and the available resources of the processing equipment;
and indicating the equipment with the task to be processed, splitting the task to be processed according to the distributed task amount, and sending the split task corresponding to the distributed task amount to the processing equipment.
In a second aspect, an embodiment of the present invention further provides a terminal-coordinated task processing apparatus, which is applied to a first device in a cellular network, where the cellular network includes a plurality of devices, and the apparatus includes:
the task amount obtaining module is used for obtaining the task amount of the task to be processed and equipment in a communication range of the equipment with the task to be processed;
the processing equipment determining module is used for acquiring available resources of equipment within the communication range of the equipment with the task to be processed, and determining processing equipment for processing the task to be processed based on the available resources of the equipment within the communication range of the equipment with the task to be processed and the task amount of the task to be processed;
the task amount determining module is used for determining the task amount distributed to the processing equipment based on the task amount of the task to be processed and the available resources of the processing equipment;
and the indicating module is used for indicating the equipment with the task to be processed, splitting the task to be processed according to the distributed task quantity and sending the task which is obtained by splitting and corresponds to the distributed task quantity to the processing equipment.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and a processor for implementing the steps of the terminal-coordinated task processing method described above when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for processing a task in cooperation with a terminal described above are implemented.
According to the terminal-collaborative task processing method, the terminal-collaborative task processing device and the electronic equipment, when a user side device in the cellular network has a task to be processed, the task amount of the task to be processed and the equipment in the communication range of the equipment with the task to be processed can be obtained first; then, available resources of equipment in a communication range of the equipment with the task to be processed are obtained, the processing equipment for processing the task to be processed is determined based on the available resources of the equipment in the communication range of the equipment with the task to be processed and the task quantity of the task to be processed, then the task quantity allocated to the processing equipment is determined based on the task quantity of the task to be processed and the available resources of the processing equipment, finally, the equipment with the task to be processed is indicated, the task to be processed is split according to the allocated task quantity, and the split task corresponding to the allocated task quantity is sent to the processing equipment. Therefore, when the customer premise equipment in the cellular network has the task to be processed, the task to be processed is distributed to other customer premise equipment in the cellular network, the distributed task is processed by the other customer premise equipment, the task to be processed is not required to be completely sent to the access equipment, and the access equipment processes the task to be processed. Therefore, the auxiliary access equipment can process tasks, and the load of the access equipment is reduced. Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a first implementation of a task processing method for terminal cooperation according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating dividing regional sub-networks in a task processing method for terminal cooperation according to an embodiment of the present invention;
fig. 3 is a flowchart of a second implementation manner of a task processing method for terminal cooperation according to an embodiment of the present invention;
fig. 4a is a schematic diagram of a first communication manner of a communication task in a task processing method of terminal cooperation according to an embodiment of the present invention;
fig. 4b is a schematic diagram of a second communication method of a communication task in a task processing method with terminal cooperation according to an embodiment of the present invention;
fig. 5 is a flowchart of a task processing method for terminal cooperation according to a third implementation manner of the embodiment of the present invention;
fig. 6 is a flowchart of a fourth implementation manner of a task processing method for terminal cooperation according to an embodiment of the present invention;
fig. 7 is a flowchart of a task processing method for terminal cooperation according to a fifth implementation manner in the embodiment of the present invention;
fig. 8 is a schematic structural diagram of a task processing device with terminal coordination according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for processing a task in terminal cooperation, and an electronic device, so as to assist an access device in performing task processing and reduce a load of the access device.
First, a task processing method for terminal cooperation according to an embodiment of the present invention is described below, as shown in fig. 1, which is a flowchart of a first implementation of the task processing method for terminal cooperation according to the embodiment of the present invention, where the method may be applied to a first device in a cellular network, and the cellular network may include a plurality of devices, and the method may include:
s110, acquiring the task quantity of the task to be processed and the equipment in the communication range of the equipment with the task to be processed.
S120, obtaining available resources of the equipment in the communication range of the equipment with the task to be processed, and determining the processing equipment for processing the task to be processed based on the available resources of the equipment in the communication range of the equipment with the task to be processed and the task amount of the task to be processed.
S130, determining the task quantity distributed to the processing equipment based on the task quantity of the tasks to be processed and the available resources of the processing equipment.
And S140, indicating the equipment with the task to be processed, splitting the task to be processed according to the distributed task quantity, and sending the split task corresponding to the distributed task quantity to the processing equipment.
In some examples, the plurality of devices in the cellular network described above may include customer premises equipment and access equipment. The first device may be an access device or a customer premise equipment with a task to be processed.
When the first device is an access device, the access device may obtain the task amount of the task to be processed from the user side where the task to be processed exists.
In some examples, the ue having the pending task may actively send a task allocation request carrying a task amount of the pending task to the access device. The access device can also poll each user terminal device in a polling mode to determine whether a task to be processed exists, and actively acquire the task amount of the task to be processed from the user terminal with the task to be processed when the task to be processed exists.
After the access device obtains the task amount of the task to be processed, in order to determine which client devices to allocate the task to be processed, the access device may first determine devices within a communication range of the device having the task to be processed.
In some examples, the devices within the communication range of the device with the task to be processed may be determined based on the location information of the device with the task to be processed, the communication range of the device with the task to be processed, and the location information of each of the plurality of devices except the device with the task to be processed.
In some examples, the access device may store location information of each ue, and may also send a location information obtaining request to each ue to obtain the location information of each ue.
In still other examples, the ue device with the pending task may discover the ue device within the one-hop communication range by sensing, and then send a location information obtaining request to the ue device within the one-hop communication range to obtain the location information of the ue device within the one-hop communication range. After receiving the location information of the ue within the one-hop communication range of the ue, the ue having the task to be processed may send the received location information to the access device.
By calculating the distance between the position information of the device with the task to be processed and the position information of each device except the device with the task to be processed in the plurality of devices, the device within the one-hop communication range of the device with the task to be processed can be determined, and the device within the communication range of the device with the task to be processed can be further determined.
In some examples, the access device may also be determined to be a device within communication range of the device with the pending task when the access device is also within one-hop communication range of the device with the pending task.
In still other examples, it may be possible that the access terminal may also determine location information for each customer premises device by sensing a received signal strength, RSSI, of each customer premises device.
After determining the devices within the communication range of the device with the task to be processed, the processing device for processing the task to be processed may be determined based on the available resources of each device within the communication range of the device with the task to be processed and the task amount of the task to be processed.
In some examples, the access device may send an available resource acquisition request to each device within a communication range of the device in which the pending task exists, so as to acquire available resources of each device.
In some examples, a plurality of devices may be selected from the devices within the communication range of the device with the task to be processed, then the available resources of the selected devices are summed and compared with the task amount of the task to be processed, when the total available resources obtained after summing are less than the task amount of the task to be processed, at least one device may be continuously selected, then the available resources of the selected devices are continuously summed, and the above comparison is repeated until the total available resources of the selected devices are greater than or equal to the task amount of the task to be processed.
In some examples, available resources of each device in the devices within the communication range of the device in which the task to be processed exists may be further sorted, then the device with the largest available resource is selected as the processing device, then the devices are sequentially selected according to the order of the available resources from large to small, and after each selection is completed, the available resources of the selected devices may be summed to determine whether the total available resources of the selected devices are greater than or equal to the task amount of the task to be processed.
If not, the selection is continued until the total available resources of the selected device are greater than or equal to the task amount of the task to be processed.
After the selection is completed, the finally selected plurality of devices may be determined as the processing devices.
In some examples, after selecting one device as a processing device, the access device may further send a task processing cooperation request to the selected device to determine a device that can process the task to be processed, and after receiving feedback information that agrees to cooperate and sent by the selected device, may determine the selected device as the processing device.
After the access device determines the processing devices, in order to enable the determined processing devices to process the task to be processed together, the access device may allocate a task amount to each determined processing device.
Specifically, since the access device has already acquired the available resources of each device in the device within the communication range of the device having the task to be processed, after the processing device is determined, the available resources of each processing device may be determined. Therefore, different task amounts can be allocated to the respective processing devices based on the available resources of the respective processing devices and the task amounts of the tasks to be processed.
Then, the distributed task amount may be sent to the device having the task to be processed to indicate the device having the task to be processed, the task to be processed is split according to the task amount distributed to each processing device, and then the split task corresponding to the task amount of each processing device is sent to the corresponding processing device.
And when the first equipment is customer premise equipment, the equipment with the task to be processed is the first equipment. At this time, the device having the to-be-processed task may acquire the task amount of the to-be-processed task from itself.
In some examples, when the first device has a task to be processed, the task amount of the task to be processed may be estimated, for example, when the task to be processed is a communication task, the task to be processed may estimate a bandwidth, a delay, and the like required by the communication task. When the task to be processed is a computing task, the total rate required to process the computing task, the total amount of computation of the computing task, and the like may be estimated.
After the first device obtains the task amount of the to-be-processed task from itself, the device in the communication range may be determined based on the location information of the device in which the to-be-processed task exists, the communication range of the device in which the to-be-processed task exists, and the location information of each device of the plurality of devices other than the device in which the to-be-processed task exists.
In some examples, the first device may send a location information acquisition request to an access device to acquire location information of each device in the cellular network, and by calculating a distance between the location information of the device with the task to be processed and location information of each device of the plurality of devices except the device with the task to be processed, a device within a one-hop communication range of the device with the task to be processed may be determined, and thus a device within the communication range may be determined.
In still other examples, the first device may further discover a ue within the one-hop communication range thereof through sensing, and then send a location information obtaining request to the ue within the one-hop communication range thereof, so as to obtain location information of the ue within the one-hop communication range thereof.
In still other examples, it is also possible that the first device determines the location information of each ue by sensing the RSSI of each ue.
In some examples, after determining the processing device, the first device may further send a task processing cooperation request to the processing device to request to cooperatively process the to-be-processed task device.
After determining the devices within the communication range of the device with the task to be processed, the processing device for processing the task to be processed may be determined based on the available resources of each device within the communication range of the device with the task to be processed and the task amount of the task to be processed.
In some examples, the access device may send an available resource acquisition request to each device within a communication range of the device in which the pending task exists, so as to acquire available resources of each device.
After the first device determines the processing devices, in order to enable the determined processing devices to process the task to be processed together, the first device may allocate a task amount to each determined processing device.
Specifically, since the first device has already acquired the available resources of each device in the devices within the sub-communication range, after the processing devices are determined, the available resources of each processing device may be determined. Therefore, different task amounts can be allocated to the respective processing devices based on the available resources of the respective processing devices and the task amounts of the tasks to be processed.
In some examples, the first device may further send, to the access device, an acquisition request for acquiring available resources of each device within its communication range, so that the access device sends, to each device within its communication range, the acquisition request for the available resources, so that the available resources of each device within its communication range may be acquired.
After allocating different task amounts to each processing device, the first device may instruct itself to split the task to be processed according to the allocated task amounts, and then send the split task corresponding to the task amount of each processing device to the corresponding processing device.
In still other examples, when there are more customer premises devices in the cellular network, the cellular network may be further divided into a plurality of regional sub-networks based on location information, concentration, etc. of the individual customer premises devices in the cellular network.
After the cellular network is divided, one ue may also be periodically selected as the centralized control device in each local sub-network to implement functions similar to those of the access device, for example, the centralized control device may obtain location information of each ue in the local sub-network, allocate a task to be processed of a device having the task to be processed in the local sub-network, and the like, and the centralized control device may also implement communication with the access device in the cellular network.
For example, it is possible to divide the area sub-networks in the cellular network shown in fig. 2, divide each customer premises equipment in the cellular network into 3 area sub-networks, and select customer premises equipment 210, customer premises equipment 220, and customer premises equipment 240 as centralized control devices of each area sub-network among the 3 area sub-networks. Thus, the ue 210 can communicate with each ue in its local sub-network, obtain the location information of each ue in its local sub-network, allocate the task to be processed of the device having the task to be processed in its local sub-network, and the ue 210 can also communicate with the access device 230.
In some examples, the centralized control device may further maintain a member list, where the member list may store identification information of each ue in the local sub-network where the user equipment is located, and when a user equipment does not belong to the local sub-network due to movement, the centralized control device may delete the identification information of the user equipment not belonging to the local sub-network from the member list, and correspondingly, when a user equipment joins the local sub-network due to movement, the centralized control device may add the identification information of the user equipment joining the local sub-network to the member list.
By the embodiment of the invention, when the user end equipment in the cellular network has the tasks to be processed, the tasks to be processed are distributed to other user end equipment in the cellular network, and the distributed tasks are processed by the other user end equipment, so that the access equipment does not need to send all the tasks to be processed to the access equipment and processes the tasks to be processed. Therefore, the auxiliary access equipment can process tasks, and the load of the access equipment is reduced.
On the basis of the task processing method for terminal cooperation shown in fig. 1, an embodiment of the present invention further provides a possible implementation manner, as shown in fig. 3, which is a flowchart of a second implementation manner of the task processing method for terminal cooperation according to the embodiment of the present invention, where the method may include:
s310, acquiring the data volume of the communication data of the communication task and the devices in the communication range of the devices with the communication task.
The tasks to be processed comprise: a communication task, the communication task comprising at least: a source address and a destination address.
S320, acquiring the available data volume of the device in the communication range of the device with the communication task, and determining the processing device for processing the communication task based on the available data volume of the device in the communication range of the device with the communication task and the data volume of the communication data of the communication task.
S330, determining the data amount allocated to the processing device based on the data amount of the communication data and the available data amount of the processing device.
And S340, indicating the equipment with the communication task, splitting the communication data according to the distributed data volume, and sending the split communication data to the processing equipment, so that the processing equipment forwards the split communication data to the equipment corresponding to the target address according to the target address.
In some examples, the to-be-processed task of the embodiment of the present invention may be a communication task, and may also be a caching task or a computing task.
When the pending task is a communication task, the communication task may further include at least a source address and a destination address of the communication.
In some examples, the end device to which the target address corresponds may be a customer premises device in the cellular network. Or may not be customer premises equipment in the cellular network.
When the terminal device corresponding to the destination address is a user end device in the cellular network, the first device may split the communication data based on the determined processing device and then based on the data volume of the communication data and the available data volume of the processing device.
In some examples, the communication data may be split in the form of data packets.
For example, assuming that the data volume of the communication task is 50M, the available data volume of the first processing device is 15M, the available data volume of the second processing device is 20M, and the available data volume of the third processing device is 30M, a data volume of 10M may be allocated to the first processing device, a data volume of 15M may be allocated to the second processing device, and a data volume of 25M may be allocated to the third processing device. The addresses of the first processing device, the second processing device, and the third processing device may then be used as transit addresses.
And then taking the transit address as a source address, and continuously searching the transit address through the steps until the equipment corresponding to the target address is searched.
For example, in the cellular network shown in fig. 4a, a client device 410 with a communication task is allocated to multiple processing devices that reach the client device 420 corresponding to the destination address, so as to achieve the communication task cooperatively.
When the device corresponding to the target address is a device outside the cellular network, for example, the user end device 420 shown in fig. 4b, one user end device in the cellular network where the user end device 410 having the communication task is located may be used as the device 430 corresponding to the first target address, the communication task may be transmitted to the device 430 corresponding to the first target address by using the above steps S210 to S240, then the base station may communicate with the cellular network where the device corresponding to the target address is located based on the internet 460, the television network 470, the communication satellite 450 or the communication drone 480, and then the communication task may be transmitted to the user end device or the access device in the cellular network where the device corresponding to the target address is located, and the communication task may be transmitted to the device 420 corresponding to the target address by using the above steps S210 to S240.
In some examples, before communication between the ue devices, a frequency band used for communication may be predetermined to avoid collision with a frequency band used by another device, so as to avoid a problem of transmission failure caused by frequency band occupation. For example, frequency band sensing may be performed first, and when an unoccupied frequency band is sensed, the unoccupied frequency band may be adopted for communication.
In some examples, the user end device may further perform data transmission in a frequency hopping manner during communication. When the cellular network is divided into a plurality of regional subnetworks, different frequency hopping patterns may be set for each regional subnetwork to reduce interference between the regional subnetworks.
In some examples, it is also possible that the subscriber device with the communication task determines the currently available frequency hopping pattern through self-perception, and the centralized control device assigns a frequency hopping pattern to the subscriber device with the communication task.
On the basis of the task processing method for terminal cooperation shown in fig. 1, an embodiment of the present invention further provides a possible implementation manner, as shown in fig. 5, which is a flowchart of a third implementation manner of the task processing method for terminal cooperation according to the embodiment of the present invention, where the method may include:
s510, acquiring the task quantity of the cache task and equipment in the communication range of the equipment with the cache task;
s520, obtaining the available storage space of the equipment in the communication range of the equipment with the cache task, and determining the processing equipment for processing the cache task based on the available storage space of the equipment in the communication range of the equipment with the cache task and the task amount of the cache task;
s530, determining a buffer amount distributed to the processing equipment based on the task amount of the buffer task and the available storage space of the processing equipment;
and S540, indicating the equipment with the cache task, splitting the cache task according to the allocated cache amount, and sending the split cache task to the processing equipment, so that the processing equipment caches the split cache task.
In some examples, when the task to be processed is a cache task, the acquired task amount of the cache task is a storage space occupied by cache contents. Therefore, the processing device may be a device capable of caching the caching task.
Based on the above description, the first device may be an access device, or may be a device with a caching task.
When the first device is an access device, the access device may send an available storage space acquisition request to a device within a communication range of the device having the cache task, so that a processing device that processes the cache task may be determined based on the available storage space and a task amount of the cache task, and after the processing device that processes the cache task is determined, different cache amounts may be allocated to the respective processing devices based on the available storage space of the respective processing devices and the task amount of the cache task.
After the allocation is completed, the buffer amount allocated to each processing device may be sent to the client device having the buffer task. After receiving the allocated cache amount sent by the access device, the user end device having the cache task may split the cache task based on the allocated cache amount, and then send the cache task obtained by splitting to a device corresponding to the cache amount of the cache task obtained by splitting.
When the first device is a device with a cache task, the device with the cache task may obtain, from the access device, an available storage space of each device within a communication range of the access device, and then, after determining a processing device that processes the cache task, may determine a cache amount allocated to the processing device based on a task amount of the cache task and the available storage space of each processing device.
After the allocation is completed, the device having the cache task may split the cache task based on the allocated cache amount, and then send the cache task obtained by the splitting to the device corresponding to the cache amount of the cache task obtained by the splitting.
In some examples, when determining the processing device that processes the caching task, it may also be possible to select based on the amount of available communication data of the device in which the caching task exists.
In still other examples, different processing devices may have preferences for different cached content. In this regard, when the task amount of the caching task is acquired, the caching content type of the caching task may be acquired at the same time. Then, the to-be-determined processing device for caching the caching task is determined based on the available resources of the device within the communication range of the device with the caching task and the task amount of the caching task.
Therefore, the processing device capable of caching can be preliminarily determined, then the caching content preference of the processing device to be determined can be obtained, and the processing device is determined based on the caching content preference of the processing device to be determined and the caching content type of the caching task.
By the embodiment of the invention, when the cache content corresponding to the cache task is cached in the subsequent steps, the content preferred by each processing device is cached.
In some examples, the cache content preferences of the processing device to be determined may be obtained from the access device when obtaining the cache content preferences of the processing device to be determined. The access device stores the cache content preference of each device to be determined. The cache content preference of each to-be-determined processing device stored in the access device may be obtained by self analysis and sent to the access device, or obtained by analyzing historical cache content in each to-be-determined processing device by the access device.
In some examples, cache content preferences of each to-be-determined processing device may also be obtained from the respective to-be-determined processing device.
In some examples, when determining the processing device, the determination may also be made based on a remaining power of the processing device to be determined, which is also possible.
In still other examples, when the cellular network is divided into a plurality of regional subnetworks, it is also possible that the centralized control device in each of the regional subnetworks may also serve as the first device described above. In this way, a resource list may be maintained in the centralized control device, where the resource list may include cache content preferences, available storage space, remaining power, and the like of each customer premise device in the local sub-network, and the resource list may be actively updated or passively updated by the centralized control device.
In still other examples, after sending the caching task to the processing device, the device with the caching task may locally maintain a first caching list, where the first caching list may record an allocated task amount and identification information of the processing device that caches the task corresponding to the allocated task amount, so that after receiving the content obtaining request corresponding to the caching content of the caching task, the device with the caching task determines that the content processing device corresponding to the content obtaining request is cached.
In still other examples, the processing device may cache content sent by different devices having cache tasks, and then locally maintain a second cache list, where the second cache list may record identification information of the device sending the cache content, a keyword of the sent cache content, and the like, so that after receiving a content obtaining request and querying itself for cache content corresponding to the content obtaining request, the processing device may further determine the device sending the cache content corresponding to the content obtaining request, and further query for a processing device caching other cache content related to the cache content.
In some examples, the processing device may further be configured with an expiration time of the cached content, and when the content cached by itself reaches the expiration time, the cached content reaching the expiration time may be deleted, so that new cached content may be cached.
In still other examples, it is also possible that the processing device may sort the content cached by itself in order of the popularity of the content from high to low, and then delete one or more cached content with lower ranking when the available storage space exceeds a preset storage alert threshold.
On the basis of the task processing method for terminal cooperation shown in fig. 1, an embodiment of the present invention further provides a possible implementation manner, as shown in fig. 6, which is a flowchart of a fourth implementation manner of the task processing method for terminal cooperation according to the embodiment of the present invention, where the method may include:
s610, acquiring the task amount of the calculation task and equipment in the communication range of the equipment with the calculation task;
s620, acquiring available resources of equipment in the communication range of the equipment with the computing task, and determining processing equipment for processing the computing task based on the available resources of the equipment in the communication range of the equipment with the computing task and the task amount of the computing task;
s630, determining the calculation amount distributed to the processing equipment based on the task amount of the calculation task and the available calculation resources of the processing equipment;
and S640, indicating the equipment with the computing task, splitting the computing task according to the distributed computing amount, and sending the split computing task to the processing equipment, so that the processing equipment performs computing processing on the split computing task.
In some examples, when the pending task is a computing task, then the task amount of the computing task may be obtained. In some examples, the task volume of the computing task may be estimated by the device in which the computing task exists itself.
Based on the above description, the first device may be an access device or a device with a computing task.
Based on the above description, the first device may be an access device or a device with a computing task.
When the first device is an access device, the access device may acquire a task amount of the computing task from a device having the computing task, and then may send an available computing resource acquisition request to a device within a communication range of the device having the computing task, so as to determine a processing device that processes the computing task based on the available computing resource and the task amount of the computing task, and after determining a processing device that processes the computing task, may determine a computing amount allocated to the processing device based on the task amount of the computing task and available computing resources of each processing device.
After the allocation is completed, the calculation amount allocated to each processing device may be sent to the customer premise equipment having the calculation task. After receiving the distributed computation amount sent by the access device, the user end device having the computation task may split the computation task based on the distributed computation amount, and then send the split computation task to a device corresponding to the computation amount of the split computation task.
When the first device is a device with a computing task, the device with the computing task may obtain, from the access device, available computing resources of each device within a communication range of the device, and then, after determining a processing device for processing the computing task, may determine a computing amount allocated to the processing device based on a task amount of the computing task and the available computing resources of each processing device.
After the allocation is completed, the device having the computing task may split the computing task based on the allocated computing amount, and then send the split computing task to the device corresponding to the computing amount of the split computing task.
In still other examples, when the cellular network is divided into a plurality of regional subnetworks, it is also possible that the centralized control device in each of the regional subnetworks may also serve as the first device described above. In this way, the centralized control device may implement the same or similar functions as the access device, for example, may determine the processing devices, and may allocate the calculation amount to each processing device. This is all possible.
In some examples, the device with the computing task may send the same computing task obtained after splitting to a plurality of processing devices, and the plurality of processing devices process the same computing task obtained after splitting so as to process the accuracy of the result.
In still other examples, when there is a precedence order among the plurality of split-up calculation tasks, it may be also possible that, after the processing device that processes the calculation task obtained by the previous split-up obtains the processing result, the processing result is sent to the processing device that processes the calculation task obtained by the subsequent split-up.
In still other examples, when the processing device is processing a current computing task, if there is a computing task to be processed, it may first determine time consumption of the computing task to be processed, and then determine whether to interrupt the current computing task to process the computing task based on the time consumption and a latency requirement of the current computing task. When the time consumption exceeds the time delay consumption of the current computing task, the processing device may allocate the computing task to be processed to another device for processing by using the above steps S610 to S640, and may also forward the current computing task to another device for processing by using the above steps S610 to S640.
In still other examples, in determining the amount of computation to allocate to the processing device, the computation rate, the available amount of power, and the latency requirement of the computation task for the processing device may be obtained first, and then the amount of computation to allocate to the processing device may be determined based on the task amount, the latency requirement, and the computation rate and the available amount of power for the computation task for the processing device.
When there are multiple devices with computing tasks and the processing devices determined for the multiple devices with computing tasks are the same, an optimal processing device may be selected by one device with computing tasks, and then, by one device of the other devices with computing tasks, an optimal processing device other than the optimal processing device may be selected from the multiple processing devices. And repeating the selection action until all the processing devices are selected or all the devices with the computing tasks are selected to complete the processing devices.
In some examples, in order to determine the allocation mode in which the calculation amount allocated to each processing device is optimal, the following steps may be further adopted to determine the calculation amount allocated to the processing device:
and step A, distributing the calculation tasks for multiple times according to the number of the processing devices to obtain the calculation amount distributed to each processing device during each distribution.
Step B, for each allocation, calculating the time overhead and the energy overhead of the processing device for processing the allocated calculation amount based on the calculation rate of each processing device and the calculation amount allocated to the processing device;
step C, calculating the total time cost and the total energy cost of all processing devices for processing the distributed calculated amount aiming at each distribution;
step D, selecting total time cost which is less than or equal to the time delay requirement of the calculation task and has the minimum weighted value of the total time cost and the total energy cost from a plurality of total time costs and total energy costs obtained by multiple distribution;
and E, determining the calculated amount distributed to each processing device as the calculated amount distributed to the processing device corresponding to the total time cost and the total energy cost with the minimum weighted value of the selected total time cost and the total energy cost.
In some examples, the respective processing devices may be allocated with the calculation amount once, and then the time overhead and the energy overhead for each processing device to process the allocated calculation amount may be calculated based on the calculation rate of each processing device and the calculation amount allocated to each processing device. The total time overhead and total energy overhead for all processing devices at that time of allocation is then calculated.
In some examples, when the multiple processing devices are simultaneously processing the assigned computing tasks, the maximum time overhead may be taken as the total time overhead.
And then distributing the calculated amount to each processing device once, and calculating the total time overhead and the total energy overhead of all the processing devices during the distribution based on the steps B to C.
And repeating the steps, thereby obtaining the total time cost and the total energy cost corresponding to the repeated distribution of the calculated amount.
After the total time overhead and the total energy overhead corresponding to the multiple times of calculation amount distribution are obtained, the total time overhead can be selected to be less than or equal to the time delay requirement of the calculation task, and the total time overhead and the total energy overhead with the minimum weighted values of the total time overhead and the total energy overhead are selected, and then the distributed calculation amount corresponding to the total time overhead and the total energy overhead with the minimum weighted values of the selected total time overhead and the total energy overhead is determined as the calculation amount distributed to the processing equipment.
In this way, it can be achieved that the amount of computation allocated to the respective processing devices is overall optimal. Thus, the time and energy expenditure for processing the computing tasks by the respective processing device can be saved.
In still other examples, the client device may be configured with a wireless transmission unit, a task allocation unit, a buffer unit and/or a calculation unit to perform the processing of the different tasks.
In still other examples, when a client device has a communication task, a computing task, and a caching task at the same time, the three tasks may have different priorities, for example, the priority of the communication task is greater than the priority of the computing task, and the priority of the computing task is greater than the priority of the caching task. The user end device may first allocate a communication task, then allocate a calculation task, and finally allocate a cache task by using the terminal cooperation task processing method of the embodiment of the present invention.
In some examples, when processing a split task sent by a computing task, a processing device necessarily consumes energy of the processing device itself, or occupies a bandwidth of the processing device, or occupies a storage space of the processing device, and thus, the processing device may be rewarded according to an amount of tasks allocated to the processing of the processing device.
For example, when the processing device processes an assigned communication task, the processing device may be provided with a network traffic reward or a network billing reward, etc., corresponding to the data volume of the communication task.
When the processing device processes the assigned computing task, the processing device may be provided with a fee reward or the like corresponding to the calculated amount of the assigned computing task.
When the processing device processes the allocated cache task, the processing device may be provided with a network rate award or the like corresponding to a cache amount of the allocated cache task.
Therefore, the enthusiasm of other user side equipment in the cellular network to participate in task processing can be improved, the occupation of the access equipment is further reduced, and the load of the access equipment is rewarded.
On the basis of the task processing method for terminal cooperation shown in fig. 1, an embodiment of the present invention further provides a possible implementation manner, as shown in fig. 7, which is a flowchart of a fifth implementation manner of the task processing method for terminal cooperation according to the embodiment of the present invention, where the method may include:
s710, sending an authentication code of the device with the task to be processed to the access device, so that the access device authenticates the authentication code of the device with the task to be processed, and after the authentication is passed, sending the authentication code of the device with the task to be processed to a second device, wherein the second device is a device except the device with the task to be processed and the access device, and the authentication code at least comprises identification information of the device and identification information of a cellular network;
s720, receiving the authentication code of the second device sent by the access device, and sending a connection request to the second device based on the identification information of the second device in the authentication code of the second device, wherein the connection request carries the authentication code of the device with the task to be processed.
And S730, after receiving verification feedback information sent by the second device, establishing communication connection with the second device, wherein the verification feedback information is sent after the second device is verified based on the authentication code in the connection request and the authentication code sent by the access device.
In some examples, to improve the security of the cellular network, the client device may be authenticated before establishing the connection, and the connection may be established after the authentication is passed.
Specifically, each customer premise equipment may first send its own authentication code to the access equipment. When a user end device needs to establish connection with another user end device, a connection request carrying an authentication code of the user end device can be sent to the other user end device, after the other user end device receives the connection request, the authentication code of the user end device sending the connection request can be obtained from the access device, then the authentication code obtained from the access device is compared with the authentication code in the connection request, when the comparison is the same, feedback information that the verification is passed can be fed back, and when the comparison is different, feedback information that the verification is not passed can be fed back.
After receiving the feedback information that the verification passes, the ue device sending the connection request may establish a connection with the other ue device.
In still other examples, the other client device may further record time information and location information of the connection request sent by the client device sending the connection request. A threshold number of connections and a trust list may also be set in the further client device, and the further client device may be exempt from authentication for the client devices in the trust list.
When the number of times that the ue sending the connection request sends the connection request to the other ue reaches the connection number threshold at the same or similar time and at the same or similar location, the other ue may add the ue sending the connection request to the trusted list, so as to avoid the authentication of the ue sending the connection request when the ue sending the connection request sends the connection request next time.
S740, acquiring the task amount of the task to be processed and the equipment in the communication range of the equipment with the task to be processed;
s750, acquiring available resources of equipment in a communication range of the equipment with the task to be processed, and determining processing equipment for processing the task to be processed based on the available resources of the equipment in the communication range of the equipment with the task to be processed and the task amount of the task to be processed;
s760, determining the task quantity distributed to the processing equipment based on the task quantity of the tasks to be processed and the available resources of the processing equipment;
and S770, indicating the equipment with the to-be-processed task, splitting the to-be-processed task according to the distributed task amount, and sending the split task corresponding to the distributed task amount to the processing equipment.
It is to be understood that, steps S740 to S770 may refer to steps S110 to S140 in the first implementation of the terminal cooperation task processing method according to the embodiment of the present invention, and are not described herein again.
By the embodiment of the invention, each user side device can safely perform task cooperative processing, and the safety of each user side device in a cellular network is improved.
Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides a terminal-coordinated task processing apparatus, as shown in fig. 8, which is a schematic structural diagram of a terminal-coordinated task processing apparatus according to an embodiment of the present invention, where the apparatus may be applied to a first device in a cellular network, and the cellular network includes a plurality of devices, and the apparatus includes:
a task amount obtaining module 810, configured to obtain a task amount of a task to be processed and a device within a communication range of a device having the task to be processed;
a processing device determining module 820, configured to obtain available resources of a device within a communication range of the device where the to-be-processed task exists, and determine a processing device that processes the to-be-processed task based on the available resources of the device within the communication range of the device where the to-be-processed task exists and a task amount of the to-be-processed task;
a task amount determining module 830, configured to determine a task amount allocated to the processing device based on a task amount of the task to be processed and an available resource of the processing device;
the indicating module 840 is configured to indicate a device having a to-be-processed task, split the to-be-processed task according to the allocated task amount, and send the split task corresponding to the allocated task amount to the processing device.
The task processing device with terminal cooperation provided by the embodiment of the invention can firstly acquire the task amount of the task to be processed and the equipment in the communication range of the equipment with the task to be processed when the user side equipment in the cellular network has the task to be processed; then, available resources of equipment in a communication range of the equipment with the task to be processed are obtained, the processing equipment for processing the task to be processed is determined based on the available resources of the equipment in the communication range of the equipment with the task to be processed and the task quantity of the task to be processed, then the task quantity allocated to the processing equipment is determined based on the task quantity of the task to be processed and the available resources of the processing equipment, finally, the equipment with the task to be processed is indicated, the task to be processed is split according to the allocated task quantity, and the split task corresponding to the allocated task quantity is sent to the processing equipment. Therefore, when the customer premise equipment in the cellular network has the task to be processed, the task to be processed is distributed to other customer premise equipment in the cellular network, the distributed task is processed by the other customer premise equipment, the task to be processed is not required to be completely sent to the access equipment, and the access equipment processes the task to be processed. Therefore, the auxiliary access equipment can process tasks, and the load of the access equipment is reduced.
In some examples, the pending task includes: a communication task, the communication task comprising at least: a source address and a destination address;
the processing device determining module 820 is specifically configured to:
acquiring the available data volume of the equipment within the communication range of the equipment with the communication task, and determining the processing equipment for processing the communication task based on the available data volume of the equipment within the communication range of the equipment with the communication task and the data volume of the communication data of the communication task;
the task amount determining module 830 is specifically configured to:
determining an amount of data allocated to the processing device based on the amount of data of the communication data and the amount of data available to the processing device;
the indicating module 840 is specifically configured to:
indicating equipment with a task to be processed, splitting communication data according to the distributed data volume, and sending the split communication data to processing equipment, so that the processing equipment forwards the split communication data to equipment corresponding to a target address according to the target address.
In some examples, the pending task includes: caching tasks;
the processing device determining module 820 is specifically configured to:
the method comprises the steps of obtaining available storage space of equipment within a communication range of the equipment with the cache task, and determining processing equipment for processing the cache task based on the available storage space of the equipment within the communication range of the equipment with the cache task and the task amount of the cache task;
the task amount determining module 830 is specifically configured to:
determining a buffer amount allocated to the processing equipment based on the task amount of the buffer task and the available storage space of the processing equipment;
the indicating module 840 is specifically configured to:
and indicating equipment with the task to be processed, splitting the cache task according to the allocated cache amount, and sending the cache task obtained by splitting to the processing equipment, so that the processing equipment caches the cache task obtained by splitting.
In some examples, the task amount obtaining module 810 is specifically configured to:
obtaining task amount of cache task, cache content type and equipment in communication range of equipment with cache task
A processing device determination module 820 comprising:
the device to be determined processing sub-module is used for determining the device to be determined for caching the caching task based on available resources of the device in the communication range of the device with the caching task and the task amount of the caching task;
and the processing equipment determining submodule is used for acquiring the cache content preference of the processing equipment to be determined and determining the processing equipment based on the cache content preference of the processing equipment to be determined and the cache content type of the cache task.
In some examples, the plurality of devices includes at least: accessing the device; at this time, the first device is a device with a task to be processed;
the task amount determining module 830 is specifically configured to:
the method comprises the steps of obtaining cache content preference of processing equipment from access equipment, determining a cache amount distributed to the processing equipment based on the content type of a cache task and the task quantity of the cache task, the available storage space and the cache content preference of the processing equipment, wherein the available storage space and the cache content preference of each processing equipment are stored in the access equipment, and the available storage space is regularly updated to the access equipment by each processing equipment; or
The cache content preference of the processing device is obtained from each processing device, and the cache amount distributed to the processing device is determined based on the content type of the cache task and the task amount of the cache task, the available storage space of the processing device and the cache content preference.
In some examples, the pending task includes: calculating a task;
the processing device determining module 820 is specifically configured to:
acquiring available computing resources of equipment within the communication range of the equipment with the computing task, and determining processing equipment for processing the computing task based on the available computing resources of the equipment within the communication range of the equipment with the computing task and the task amount of the computing task;
the task amount determining module 830 is specifically configured to:
determining a computation amount allocated to the processing device based on a task amount of the computation task and available computation resources of the processing device;
the indicating module 840 is specifically configured to:
and indicating the equipment with the computing task, splitting the computing task according to the distributed computing amount, and sending the split computing task to the processing equipment, so that the processing equipment performs computing processing on the split computing task.
In some examples, the available computing resources include: the calculation rate, the available power, and the time delay requirement of the calculation task, and the task amount determining module 830 are specifically configured to:
and determining the calculation amount distributed to the processing equipment based on the task amount of the calculation task, the time delay requirement of the calculation task, the calculation rate and the available electric quantity of the processing equipment.
In some examples, the first device is a device with a computing task, and the task amount determining module 830 is specifically configured to:
distributing the calculation tasks for multiple times according to the number of the processing equipment to obtain the calculated amount distributed to each processing equipment during each distribution;
for each allocation, calculating a time overhead and an energy overhead for the processing device to process the allocated computation amount based on the computation rate of each processing device and the computation amount allocated to the processing device;
for each allocation, calculating a total time overhead and a total energy overhead for all processing devices to process the allocated computational volume;
selecting total time cost which is less than or equal to the time delay requirement of the calculation task and has the smallest weighted value of the total time cost and the total energy cost from a plurality of total time costs and total energy costs obtained by multiple distribution;
and determining the calculated amount distributed to each processing device as the calculated amount distributed to the processing devices corresponding to the total time cost and the total energy cost with the minimum weighted value of the selected total time cost and the selected total energy cost.
In some examples, the apparatus further comprises:
the authentication code sending module is used for sending the authentication code of the equipment with the task to be processed to the access equipment so that the access equipment authenticates the authentication code of the equipment with the task to be processed, and sending the authentication code of the equipment with the task to be processed to second equipment after the authentication is passed, wherein the second equipment is equipment except the equipment with the task to be processed and the access equipment in the plurality of equipment, and the authentication code at least comprises identification information of the equipment and identification information of a cellular network;
the authentication code receiving module is used for receiving an authentication code of the second device sent by the access device and sending a connection request to the second device based on identification information of the second device in the authentication code of the second device, wherein the connection request carries the authentication code of the device with the task to be processed;
and the communication establishing module is used for establishing communication connection with the second equipment after receiving verification feedback information sent by the second equipment, wherein the verification feedback information is sent after the second equipment is verified based on the authentication code in the connection request and the authentication code sent by the access equipment.
An embodiment of the present invention further provides an electronic device, as shown in fig. 9, which includes a processor 901, a communication interface 902, a memory 903, and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete mutual communication through the communication bus 904,
a memory 903 for storing computer programs;
the processor 901 is configured to implement the following steps when executing the program stored in the memory 903:
acquiring the task quantity of a task to be processed and equipment in a communication range of the equipment with the task to be processed;
the method comprises the steps of obtaining available resources of equipment within a communication range of the equipment with the task to be processed, and determining processing equipment for processing the task to be processed based on the available resources of the equipment within the communication range of the equipment with the task to be processed and the task amount of the task to be processed;
determining the task amount allocated to the processing equipment based on the task amount of the tasks to be processed and the available resources of the processing equipment;
and indicating the equipment with the task to be processed, splitting the task to be processed according to the distributed task amount, and sending the split task corresponding to the distributed task amount to the processing equipment.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
According to the electronic device provided by the embodiment of the invention, when a user end device in the cellular network has a task to be processed, the task amount of the task to be processed and the device in the communication range of the device with the task to be processed can be obtained firstly; then, available resources of equipment in a communication range of the equipment with the task to be processed are obtained, the processing equipment for processing the task to be processed is determined based on the available resources of the equipment in the communication range of the equipment with the task to be processed and the task quantity of the task to be processed, then the task quantity allocated to the processing equipment is determined based on the task quantity of the task to be processed and the available resources of the processing equipment, finally, the equipment with the task to be processed is indicated, the task to be processed is split according to the allocated task quantity, and the split task corresponding to the allocated task quantity is sent to the processing equipment. Therefore, when the customer premise equipment in the cellular network has the task to be processed, the task to be processed is distributed to other customer premise equipment in the cellular network, the distributed task is processed by the other customer premise equipment, the task to be processed is not required to be completely sent to the access equipment, and the access equipment processes the task to be processed. Therefore, the auxiliary access equipment can process tasks, and the load of the access equipment is reduced.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented:
acquiring the task quantity of a task to be processed and equipment in a communication range of the equipment with the task to be processed;
the method comprises the steps of obtaining available resources of equipment within a communication range of the equipment with the task to be processed, and determining processing equipment for processing the task to be processed based on the available resources of the equipment within the communication range of the equipment with the task to be processed and the task amount of the task to be processed;
determining the task amount allocated to the processing equipment based on the task amount of the tasks to be processed and the available resources of the processing equipment;
and indicating the equipment with the task to be processed, splitting the task to be processed according to the distributed task amount, and sending the split task corresponding to the distributed task amount to the processing equipment.
The computer-readable storage medium provided in the embodiment of the present invention may be configured to, when a user end device in the cellular network has a task to be processed, first obtain a task amount of the task to be processed and a device within a communication range of the device having the task to be processed; then, available resources of equipment in a communication range of the equipment with the task to be processed are obtained, the processing equipment for processing the task to be processed is determined based on the available resources of the equipment in the communication range of the equipment with the task to be processed and the task quantity of the task to be processed, then the task quantity allocated to the processing equipment is determined based on the task quantity of the task to be processed and the available resources of the processing equipment, finally, the equipment with the task to be processed is indicated, the task to be processed is split according to the allocated task quantity, and the split task corresponding to the allocated task quantity is sent to the processing equipment. Therefore, when the customer premise equipment in the cellular network has the task to be processed, the task to be processed is distributed to other customer premise equipment in the cellular network, the distributed task is processed by the other customer premise equipment, the task to be processed is not required to be completely sent to the access equipment, and the access equipment processes the task to be processed. Therefore, the auxiliary access equipment can process tasks, and the load of the access equipment is reduced.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (9)

1. A task processing method for terminal cooperation, which is applied to a first device in a cellular network, where the cellular network includes a plurality of devices, and the plurality of devices at least include: accessing the device; the method comprises the following steps:
sending an authentication code of a device with a task to be processed to the access device, so that the access device authenticates the authentication code of the device with the task to be processed, and after the authentication is passed, sending the authentication code of the device with the task to be processed to a second device, wherein the second device is a device except the device with the task to be processed and the access device, and the authentication code at least comprises identification information of the device and identification information of the cellular network;
receiving an authentication code of the second device sent by the access device, and sending a connection request to the second device based on identification information of the second device in the authentication code of the second device, wherein the connection request carries the authentication code of the device with the task to be processed;
after receiving verification feedback information sent by the second device, establishing communication connection with the second device, wherein the verification feedback information is sent by the second device after verification is carried out on the basis of an authentication code in the connection request and an authentication code sent by the access device;
acquiring the task quantity of the task to be processed and the equipment within the communication range of the equipment with the task to be processed;
acquiring available resources of the equipment within the communication range of the equipment with the task to be processed, and determining the processing equipment for processing the task to be processed based on the available resources of the equipment within the communication range of the equipment with the task to be processed and the task amount of the task to be processed;
determining the task amount distributed to the processing equipment based on the task amount of the task to be processed and the available resources of the processing equipment;
and indicating the equipment with the task to be processed, splitting the task to be processed according to the distributed task amount, and sending the split task corresponding to the distributed task amount to the processing equipment.
2. The method of claim 1, wherein the pending task comprises: a communication task, the communication task comprising at least: a source address and a destination address;
the acquiring available resources of the device within the communication range of the device with the task to be processed, and determining the processing device for processing the task to be processed based on the available resources of the device within the communication range of the device with the task to be processed and the task amount of the task to be processed, includes:
acquiring the available data volume of the equipment within the communication range of the equipment with the communication task, and determining the processing equipment for processing the communication task based on the available data volume of the equipment within the communication range of the equipment with the communication task and the data volume of the communication data of the communication task;
the determining the task amount allocated to the processing device based on the task amount of the task to be processed and the available resources of the processing device includes:
determining an amount of data allocated to the processing device based on the amount of data of the communication data and the amount of data available to the processing device;
the indicating the device with the task to be processed splits the task to be processed according to the allocated task amount, and sends the split task corresponding to the allocated task amount to the processing device, including:
and indicating the equipment with the communication task, splitting the communication data according to the distributed data volume, and sending the split communication data to the processing equipment, so that the processing equipment forwards the split communication data to the equipment corresponding to the target address according to the target address.
3. The method of claim 1, wherein the pending task comprises: caching tasks;
the acquiring available resources of the device within the communication range of the device with the task to be processed, and determining the processing device for processing the task to be processed based on the available resources of the device within the communication range of the device with the task to be processed and the task amount of the task to be processed, includes:
acquiring the available storage space of the equipment within the communication range of the equipment with the cache task, and determining the processing equipment for processing the cache task based on the available storage space of the equipment within the communication range of the equipment with the cache task and the task amount of the cache task;
the determining the task amount allocated to the processing device based on the task amount of the task to be processed and the available resources of the processing device includes:
determining a buffer amount allocated to the processing device based on the task amount of the buffer task and the available storage space of the processing device;
the indicating the device with the task to be processed splits the task to be processed according to the allocated task amount, and sends the split task corresponding to the allocated task amount to the processing device, including:
and indicating the equipment with the cache task, splitting the cache task according to the allocated cache amount, and sending the cache task obtained by splitting to the processing equipment, so that the processing equipment caches the cache task obtained by splitting.
4. The method according to claim 3, wherein the acquiring the task amount of the task to be processed and the devices within the communication range of the device in which the task to be processed exists comprises:
acquiring the task amount of a cache task, the type of cache content and equipment in the communication range of the equipment with the cache task;
the determining, based on the available resources of the device within the communication range of the device having the to-be-processed task and the task amount of the to-be-processed task, a processing device that processes the to-be-processed task includes:
determining to-be-determined processing equipment for caching the caching task based on the available resources of the equipment within the communication range of the equipment with the caching task and the task quantity of the caching task;
and obtaining the cache content preference of the processing equipment to be determined, and determining the processing equipment based on the cache content preference of the processing equipment to be determined and the cache content type of the cache task.
5. The method of claim 1, wherein the pending task comprises: calculating a task;
the acquiring available resources of the device within the communication range of the device with the task to be processed, and determining the processing device for processing the task to be processed based on the available resources of the device within the communication range of the device with the task to be processed and the task amount of the task to be processed, includes:
acquiring available computing resources of the equipment within the communication range of the equipment with the computing task, and determining processing equipment for processing the computing task based on the available computing resources of the equipment within the communication range of the equipment with the computing task and the task amount of the computing task;
the determining the task amount allocated to the processing device based on the task amount of the task to be processed and the available resources of the processing device includes:
determining a computation amount allocated to the processing device based on a task amount of the computation task and available computation resources of the processing device;
the indicating the device with the task to be processed splits the task to be processed according to the allocated task amount, and sends the split task corresponding to the allocated task amount to the processing device, including:
and indicating the equipment with the computing task, splitting the computing task according to the distributed computing amount, and sending the split computing task to the processing equipment, so that the processing equipment performs computing processing on the split computing task.
6. The method of claim 5, wherein the available computing resources comprise: calculating a rate, an available power amount, and a latency requirement of the calculation task, wherein determining a calculation amount allocated to the processing device based on a task amount of the calculation task and an available calculation resource of the processing device comprises:
and determining the calculation amount distributed to the processing equipment based on the task amount of the calculation task, the time delay requirement of the calculation task, the calculation rate of the processing equipment and the available electric quantity.
7. The method of claim 6, wherein the first device is the device in which the computing task exists, and wherein determining the amount of computation to allocate to the processing device based on the amount of the computing task, the latency requirement of the computing task, the computation rate of the processing device, and the available power comprises:
distributing the computing tasks for multiple times according to the number of the processing devices to obtain the computing amount distributed to each processing device during each distribution;
for each allocation, calculating the time overhead and the energy overhead of processing the allocated calculation amount by the processing device based on the calculation rate of each processing device and the calculation amount allocated to the processing device;
for each allocation, calculating a total time overhead and a total energy overhead for all of the processing devices to process the allocated computational volume;
selecting total time cost which is less than or equal to the time delay requirement of the calculation task and has the smallest weighted value of the total time cost and the total energy cost from a plurality of total time costs and total energy costs obtained by multiple distribution;
and determining the calculated amount distributed to each processing device as the calculated amount distributed to the processing devices corresponding to the total time cost and the total energy cost with the minimum weighted value of the selected total time cost and the selected total energy cost.
8. A task processing apparatus with coordinated terminal, applied to a first device in a cellular network, wherein the cellular network includes a plurality of devices, and the plurality of devices at least include: accessing the device; the device comprises:
an authentication code sending module, configured to send an authentication code of a device having a to-be-processed task to the access device, so that the access device authenticates the authentication code of the device having the to-be-processed task, and after the authentication is passed, send the authentication code of the device having the to-be-processed task to a second device, where the second device is a device of the multiple devices except the device having the to-be-processed task and the access device, and the authentication code at least includes identification information of the device and identification information of the cellular network;
an authentication code receiving module, configured to receive an authentication code of the second device sent by the access device, and send a connection request to the second device based on identification information of the second device in the authentication code of the second device, where the connection request carries the authentication code of the device having the task to be processed;
the communication establishing module is used for establishing communication connection with the second equipment after receiving verification feedback information sent by the second equipment, wherein the verification feedback information is sent after the second equipment is verified based on an authentication code in the connection request and an authentication code sent by the access equipment;
the task amount obtaining module is used for obtaining the task amount of a task to be processed and equipment in a communication range of the equipment with the task to be processed;
a processing device determining module, configured to obtain available resources of the device within the communication range of the device in which the task to be processed exists, and determine, based on the available resources of the device within the communication range of the device in which the task to be processed exists and the task amount of the task to be processed, a processing device that processes the task to be processed;
the task quantity determining module is used for determining the task quantity distributed to the processing equipment based on the task quantity of the tasks to be processed and the available resources of the processing equipment;
and the indicating module is used for indicating the equipment with the task to be processed, splitting the task to be processed according to the distributed task amount, and sending the split task corresponding to the distributed task amount to the processing equipment.
9. An electronic device, characterized in that the electronic device comprises: comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete the communication with each other through the communication bus,
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 7 when executing a program stored in the memory.
CN201910257826.9A 2019-04-01 2019-04-01 Terminal collaborative task processing method and device and electronic equipment Active CN109992387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910257826.9A CN109992387B (en) 2019-04-01 2019-04-01 Terminal collaborative task processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910257826.9A CN109992387B (en) 2019-04-01 2019-04-01 Terminal collaborative task processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109992387A CN109992387A (en) 2019-07-09
CN109992387B true CN109992387B (en) 2021-09-24

Family

ID=67131971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910257826.9A Active CN109992387B (en) 2019-04-01 2019-04-01 Terminal collaborative task processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109992387B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399218B (en) * 2019-07-18 2021-09-21 北京邮电大学 Data scheduling method and device
CN110968459B (en) 2019-11-29 2020-12-11 成都星时代宇航科技有限公司 Satellite data processing method and device and satellite backup subsystem
CN111031350B (en) * 2019-12-24 2022-04-12 北京奇艺世纪科技有限公司 Transcoding resource scheduling method, electronic device and computer readable storage medium
CN113660726A (en) * 2020-05-12 2021-11-16 华为技术有限公司 Resource allocation method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239403A (en) * 2014-07-23 2014-12-24 张业军 Cloud computing-based collaboration collecting and editing auxiliary system
CN106502266A (en) * 2016-11-30 2017-03-15 中国航空工业集团公司沈阳飞机设计研究所 A kind of multi-machine collaborative operation command control system
CN107087019A (en) * 2017-03-14 2017-08-22 西安电子科技大学 A kind of end cloud cooperated computing framework and task scheduling apparatus and method
CN107135268A (en) * 2017-05-22 2017-09-05 南京大学 Distributed task scheduling computational methods based on information centre's network
CN107241767A (en) * 2017-06-14 2017-10-10 广东工业大学 The method and device that a kind of mobile collaboration is calculated
CN107249217A (en) * 2017-05-25 2017-10-13 东南大学 The Joint Task unloading of ad hoc mobile cloud network and resource allocation methods
CN107995660A (en) * 2017-12-18 2018-05-04 重庆邮电大学 Support Joint Task scheduling and the resource allocation methods of D2D- Edge Servers unloading
CN108541027A (en) * 2018-04-24 2018-09-14 南京邮电大学 A kind of communication computing resource method of replacing based on edge cloud network
CN109005572A (en) * 2018-08-20 2018-12-14 重庆邮电大学 The access discharging method of mobile cloud service based on game theory
CN109067842A (en) * 2018-07-06 2018-12-21 电子科技大学 Calculating task discharging method towards car networking
CN109474681A (en) * 2018-11-05 2019-03-15 安徽大学 Resource allocation methods, system and the server system of mobile edge calculations server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150091837A (en) * 2014-02-04 2015-08-12 한국전자통신연구원 Method for managing network resources of wireless terminal in heterogeneous network environment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239403A (en) * 2014-07-23 2014-12-24 张业军 Cloud computing-based collaboration collecting and editing auxiliary system
CN106502266A (en) * 2016-11-30 2017-03-15 中国航空工业集团公司沈阳飞机设计研究所 A kind of multi-machine collaborative operation command control system
CN107087019A (en) * 2017-03-14 2017-08-22 西安电子科技大学 A kind of end cloud cooperated computing framework and task scheduling apparatus and method
CN107135268A (en) * 2017-05-22 2017-09-05 南京大学 Distributed task scheduling computational methods based on information centre's network
CN107249217A (en) * 2017-05-25 2017-10-13 东南大学 The Joint Task unloading of ad hoc mobile cloud network and resource allocation methods
CN107241767A (en) * 2017-06-14 2017-10-10 广东工业大学 The method and device that a kind of mobile collaboration is calculated
CN107995660A (en) * 2017-12-18 2018-05-04 重庆邮电大学 Support Joint Task scheduling and the resource allocation methods of D2D- Edge Servers unloading
CN108541027A (en) * 2018-04-24 2018-09-14 南京邮电大学 A kind of communication computing resource method of replacing based on edge cloud network
CN109067842A (en) * 2018-07-06 2018-12-21 电子科技大学 Calculating task discharging method towards car networking
CN109005572A (en) * 2018-08-20 2018-12-14 重庆邮电大学 The access discharging method of mobile cloud service based on game theory
CN109474681A (en) * 2018-11-05 2019-03-15 安徽大学 Resource allocation methods, system and the server system of mobile edge calculations server

Also Published As

Publication number Publication date
CN109992387A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN109992387B (en) Terminal collaborative task processing method and device and electronic equipment
Chen et al. Edge-CoCaCo: Toward joint optimization of computation, caching, and communication on edge cloud
CN110418418B (en) Wireless resource scheduling method and device based on mobile edge calculation
CN109862592B (en) Resource management and scheduling method in mobile edge computing environment based on multi-base-station cooperation
US11706630B2 (en) Spectrum management device, system and method, and computer-readable storage medium
CN109348264B (en) Video resource sharing method and device, storage medium and electronic equipment
Zhang et al. DMRA: A decentralized resource allocation scheme for multi-SP mobile edge computing
CN113596863A (en) Method, apparatus and medium for determining user plane function and providing information
CN113329435A (en) Wireless communication method, system and wireless communication terminal
De Pellegrini et al. A pricing scheme for content caching in 5G mobile edge clouds
CN114095869A (en) Method, device and system for scheduling multi-access edge computing nodes for terminal
KR20220048484A (en) A system for providing accurate communication delay guarantee of request response for distributed services
CN117311296B (en) Industrial model-based high-strength production line collaborative optimization and energy efficiency management method
CN111741512A (en) Private network access method and device
Mahbub et al. Joint energy and latency-sensitive computation and communication resource allocation for multi-access edge computing in a two-tier 5G HetNet
CN111510491B (en) Resource access method, cache server, storage medium and electronic device
US12010596B2 (en) Control device configured for and method of determining a data format
CN102404374B (en) System and method for providing network content resources
CN112685163A (en) Computing unloading method based on mobile edge computing and mobile edge computing server
Gong et al. Vehicular Cloud Forming and Task Scheduling for Energy-Efficient Cooperative Computing
CN112769962B (en) Parameter distribution method, equipment and storage medium for application of Internet of things
CN111277982B (en) Face retrieval method and system for reducing IOT platform server consumption
CN105704701A (en) Method, device, and system for sharing cloud SIM card
CN107172667B (en) Management method, system, electronic equipment and the mobile terminal of access point cluster
CN112073275B (en) Content distribution method and device for ultra-dense network UDN

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
GR01 Patent grant
GR01 Patent grant