CN113453192A - Method and device for calculating service between vehicles - Google Patents

Method and device for calculating service between vehicles Download PDF

Info

Publication number
CN113453192A
CN113453192A CN202010219382.2A CN202010219382A CN113453192A CN 113453192 A CN113453192 A CN 113453192A CN 202010219382 A CN202010219382 A CN 202010219382A CN 113453192 A CN113453192 A CN 113453192A
Authority
CN
China
Prior art keywords
vehicle
service
message
calculation
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010219382.2A
Other languages
Chinese (zh)
Inventor
江磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
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 Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010219382.2A priority Critical patent/CN113453192A/en
Publication of CN113453192A publication Critical patent/CN113453192A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/46Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for vehicle-to-vehicle communication [V2V]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/18Service support devices; Network management devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention discloses a method and a device for calculating service between vehicles, and relates to the technical field of computers. A specific implementation mode of the method is applied to the client side and comprises the following steps: determining whether the vehicle is a service vehicle or a client vehicle according to business computing resources which can be provided by the vehicle; sending a calculation unloading message, and receiving a response unloading scheme message, wherein the unloading scheme message comprises a service calculation relation corresponding to a service vehicle and a client vehicle; and executing the business calculation task of the vehicle according to the business calculation relation. Another embodiment of the method is applied to a server, and includes: receiving a computation offload message, and sending an offload scheme message in response to the computation offload message. According to the implementation method, the characteristics that the processor of the vehicle has no power consumption limitation and has strong computing power are utilized, the service vehicle provides service calculation for one or more client vehicles based on resource scheduling of the server, and the performance and the real-time performance of vehicle service calculation are improved.

Description

Method and device for calculating service between vehicles
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for calculating business between vehicles.
Background
In a network, a large number of terminal devices and access devices, including vehicle devices, exist, and with the development of hardware and network communication technologies, the terminal devices have increasingly powerful functions and have the capability of executing more complex tasks, and in a framework of fog computing, the powerful terminal devices can be used as servers to provide computing services.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the application based on the fog calculation, the mobile phone is generally used as a terminal device, which is limited by power consumption, and the performance of a mobile phone processor is weak, so that the mobile phone is generally not considered as a fog server, and when the terminal device is a vehicle, the communication and business calculation between the vehicle are generally processed by a drive test unit.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for calculating a service between vehicles, which can utilize the characteristics that a processor of a vehicle has no power consumption limitation and has strong calculation capability, set the vehicle as a service vehicle or a client vehicle according to a calculation resource of the vehicle, and provide service calculation for one or more client vehicles based on resource scheduling of a server, thereby improving performance and real-time performance of vehicle service calculation.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for calculating a vehicle-to-vehicle service, which is applied to a client, including: acquiring service computing resources of a vehicle, wherein the service computing resources comprise service computing resources required by local services of the vehicle and service computing resources which can be provided; determining whether the vehicle is a service vehicle or a customer vehicle based on whether the available business computing resources are greater than a predefined threshold; sending a calculation unloading message, and receiving an unloading scheme message responding to the calculation unloading message, wherein the unloading scheme message comprises a service calculation relation corresponding to the service vehicle and one or more client vehicles; and executing the business calculation task of the vehicle according to the business calculation relation.
Optionally, the method of inter-vehicle traffic calculation,
the computing offload message includes: the unique identification of the vehicle, available service computing resources of the vehicle, and driving state information of the vehicle.
Optionally, the method of inter-vehicle traffic calculation,
the computing offload message further comprises: the vehicle may be the customer vehicle or the service vehicle.
Optionally, the method of inter-vehicle traffic calculation,
the offload scenario message also includes available communication resources between the service vehicle and the client vehicle according to the business computation relationship.
Optionally, the method of inter-vehicle traffic calculation,
the offload scenario message indicates a server responsible for performing the business computing tasks for the client vehicle when computing offload or communication resource allocation fails.
Optionally, the method of inter-vehicle traffic calculation,
the offload scenario message indicates a server responsible for performing the business calculation task for the client vehicle when the service vehicle fails to perform the business calculation for the client vehicle.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for calculating a vehicle-to-vehicle service, which is applied to a server, including: receiving a computation offload message, the computation offload message comprising: a unique identification of a vehicle, a service computing resource available to the vehicle, travel state information of the vehicle, whether the vehicle is a service vehicle or a customer vehicle, wherein it is determined whether the vehicle is available as the service vehicle or the customer vehicle based on whether the available service computing resource is greater than a predefined threshold; and determining and sending an unloading scheme message responding to the calculation unloading message according to the calculation unloading message, wherein the unloading scheme message comprises a business calculation relation corresponding to the service vehicle and one or more client vehicles.
Optionally, the method of inter-vehicle traffic calculation,
the offload scenario message also includes available communication resources between the service vehicle and the client vehicle according to the business computation relationship.
Optionally, the method of inter-vehicle traffic calculation,
the offload scenario message indicates a server responsible for performing the business computing tasks for the client vehicle when computing offload or communication resource allocation fails.
Optionally, the method of inter-vehicle traffic calculation,
the offload scenario message indicates a server responsible for performing the business calculation task for the client vehicle when the service vehicle fails to perform the business calculation for the client vehicle.
In order to achieve the above object, according to a second aspect of the embodiments of the present invention, there is provided an apparatus for calculating a vehicle-to-vehicle service, which is applied to a client, including: the system comprises a vehicle type determining module, a calculation relation determining module and a business calculation executing module; the vehicle type determining module is used for acquiring service computing resources of a vehicle, wherein the service computing resources comprise service computing resources required by local services of the vehicle and service computing resources which can be provided; determining whether the vehicle is a service vehicle or a customer vehicle based on whether the available business computing resources are greater than a predefined threshold; the calculation relation determining module is used for sending a calculation unloading message and receiving an unloading scheme message responding to the calculation unloading message, wherein the unloading scheme message comprises a service calculation relation corresponding to the service vehicle and one or more client vehicles; and the business calculation execution module is used for executing the business calculation task of the vehicle according to the business calculation relation.
Optionally, the inter-vehicle business computation apparatus, wherein,
the computing offload message includes: the unique identification of the vehicle, available service computing resources of the vehicle, and driving state information of the vehicle.
Optionally, the inter-vehicle business computation apparatus, wherein,
the computing offload message further comprises: the vehicle may be the customer vehicle or the service vehicle.
Optionally, the inter-vehicle business computation apparatus, wherein,
the offload scenario message also includes available communication resources between the service vehicle and the client vehicle according to the business computation relationship.
Optionally, the inter-vehicle business computation apparatus, wherein,
the offload scenario message indicates a server responsible for performing the business computing tasks for the client vehicle when computing offload or communication resource allocation fails.
Optionally, the inter-vehicle business computation apparatus, wherein,
the offload scenario message indicates a server responsible for performing the business calculation task for the client vehicle when the service vehicle fails to perform the business calculation for the client vehicle.
In order to achieve the above object, according to a second aspect of the embodiments of the present invention, there is provided an inter-vehicle service calculation apparatus, applied to a server, including: a calculation message processing module and an unloading message generating module; wherein, the computation message processing module is configured to receive a computation offload message, where the computation offload message includes: a unique identification of a vehicle, a service computing resource available to the vehicle, travel state information of the vehicle, whether the vehicle is a service vehicle or a customer vehicle, wherein it is determined whether the vehicle is available as the service vehicle or the customer vehicle based on whether the available service computing resource is greater than a predefined threshold; the unloading scheme message generating module is used for determining and sending an unloading scheme message responding to the calculation unloading message according to the calculation unloading message, wherein the unloading scheme message comprises a service calculation relation corresponding to the service vehicle and one or more client vehicles.
Optionally, the inter-vehicle business computation apparatus, wherein,
the offload scenario message also includes available communication resources between the service vehicle and the client vehicle according to the business computation relationship.
Optionally, the inter-vehicle business computation apparatus, wherein,
the offload scenario message indicates a server responsible for performing the business computing tasks for the client vehicle when computing offload or communication resource allocation fails.
Optionally, the inter-vehicle business computation apparatus, wherein,
the offload scenario message indicates a server responsible for performing the business calculation task for the client vehicle when the service vehicle fails to perform the business calculation for the client vehicle.
To achieve the above object, according to a third aspect of the embodiments of the present invention, there is provided an electronic device for vehicle-to-vehicle service calculation, applied to a client or a server, including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method as in any one of the above-described methods of inter-vehicle service computing.
To achieve the above object, according to a fourth aspect of the embodiments of the present invention, there is provided a computer readable medium having stored thereon a computer program, characterized in that, when applied to a client or a server, the program is executed by a processor to implement the method as any one of the above-mentioned methods of inter-vehicle service calculation.
One embodiment of the above invention has the following advantages or benefits: application to the client: acquiring service computing resources of a vehicle, wherein the service computing resources comprise service computing resources required by local services of the vehicle and service computing resources which can be provided; determining whether the vehicle is a service vehicle or a customer vehicle based on whether the available business computing resources are greater than a predefined threshold; sending a calculation unloading message, and receiving an unloading scheme message responding to the calculation unloading message, wherein the unloading scheme message comprises a service calculation relation corresponding to the service vehicle and one or more client vehicles; and executing the business calculation task between the service vehicle and the client vehicle according to the business calculation relation. Application to a server: receiving a computation offload message, the computation offload message comprising: a unique identification of a vehicle, a service computing resource available to the vehicle, travel state information of the vehicle, whether the vehicle is a service vehicle or a customer vehicle, wherein it is determined whether the vehicle is available as the service vehicle or the customer vehicle based on whether the available service computing resource is greater than a predefined threshold; and determining and sending an unloading scheme message responding to the calculation unloading message according to the calculation unloading message, wherein the unloading scheme message comprises a business calculation relation corresponding to the service vehicle and one or more client vehicles. Therefore, the method and the system have the advantages that the processor of the vehicle is not limited by power consumption and has strong computing power, the vehicle is determined to be the service vehicle or the client vehicle according to the computing resources of the vehicle, the service vehicle provides service computation for one or more client vehicles based on the resource scheduling of the server, and the performance and the real-time performance of the vehicle service computation are improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic flowchart of a method for calculating inter-vehicle services applied to a client according to a first embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for calculating inter-vehicle services applied to a server according to a second embodiment of the present invention;
FIG. 3 is a schematic flow diagram of interaction between vehicles provided by one embodiment of the present invention;
FIGS. 4A and 4B are schematic diagrams illustrating a method for determining a business calculation relationship between vehicles according to an embodiment of the present invention
FIG. 5 is a schematic diagram of interaction between vehicles based on a mobile communication network according to an embodiment of the present invention
FIG. 6 is a block diagram of an inter-vehicle service computing system for a client according to an embodiment of the present invention;
FIG. 7 is a block diagram of an inter-vehicle service computing system applied to a server according to an embodiment of the present invention;
FIG. 8 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 9 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As shown in fig. 1, an embodiment of the present invention provides a method for calculating a service between vehicles, which is applied to a client, and the method includes the following steps:
step S101: acquiring service computing resources of a vehicle, wherein the service computing resources comprise service computing resources required by local services of the vehicle and service computing resources which can be provided; determining whether the vehicle is a service vehicle or a customer vehicle based on whether the available business computing resources are greater than a predefined threshold.
Specifically, the acquired service computing resources of the vehicle include a central processing unit utilization rate, a memory utilization rate, a process number and the like in a predefined time period, and the service computing resources include service computing resources required by the vehicle to execute local services and service computing resources which can be provided for other vehicles.
Further, the predefined threshold of the available service computing resource is a threshold set corresponding to the index such as the utilization rate of the central processing unit, the utilization rate of the memory, the number of processes, and the like, for example, when the utilization rate of the central processing unit obtained after calculating the utilization rate of the central processing unit required by the local service resource is 50%, assuming that the predefined threshold of the utilization rate of the central processing unit of the available service computing resource is 90%, the utilization rate of the central processing unit of the vehicle at that time is not greater than the threshold of the utilization rate of the central processing unit, the vehicle is considered to be an available service vehicle, and the vehicle provided with the service computing service is a client vehicle; it is understood that the above-mentioned central processing unit utilization rate is only an example, the service computing resources are set by one or more comprehensive indicators including central processing unit utilization rate, memory utilization rate, process number, etc., the predefined threshold is also set according to an actual scenario and is variable, and the range of the service computing resources that can be provided may be 0% to 100%; the invention does not limit the specific indexes of the business computing resources and the values of the predefined threshold value range of each index. Further, one or more customer vehicles may be provided with business calculations based on the business computing resources of the service vehicle, it being understood that the service vehicle and the customer vehicle are also dynamically switched due to the dynamic changes in the business computing resources contained by the vehicles, e.g., one vehicle is a service vehicle during one time period and a customer vehicle during another time period.
The method comprises the steps that service computing resources of a vehicle are obtained, wherein the service computing resources comprise service computing resources required by local services of the vehicle and service computing resources which can be provided; determining whether the vehicle is a service vehicle or a customer vehicle based on whether the available business computing resources are greater than a predefined threshold.
Step S102: and sending a calculation unloading message, and receiving an unloading scheme message responding to the calculation unloading message, wherein the unloading scheme message comprises a business calculation relation corresponding to the service vehicle and one or more client vehicles.
Specifically, the calculating the offload packet includes: the unique identification of the vehicle, available service computing resources of the vehicle, and driving state information of the vehicle. The unique identification of the vehicle indicates an identification for distinguishing vehicles and whether the vehicle is a service vehicle or a customer vehicle, i.e. the computing offload message further comprises: whether the vehicle is available as the customer vehicle or the service vehicle;
the service computing resource of the vehicle is consistent with the description of the step S101, and is not described herein again; the driving state information of the vehicle comprises geographical position information and self-driving motion state information, which are acquired by the vehicle through a navigation system: for example, the speed and direction of the vehicle, the acceleration and direction of the vehicle, etc., and the specific type of the driving state information of the vehicle is not limited by the present invention;
further, the offload scenario message also includes available communication resources between the service vehicle and the client vehicle according to the business computation relationship.
Specifically, on the basis of determining the service calculation relationship between the service vehicle and one or more client vehicles, the offloading scheme message further includes communication resources for performing communication between the service vehicle and the client vehicles, for example, performing communication by using wireless communication, where the communication resources include frequency bands, time slots, codewords, spatial angles, and the like used for communication.
Step S103: and executing the business calculation task of the vehicle according to the business calculation relation.
Specifically, a client vehicle sends a calculation task message to a corresponding service vehicle, the service vehicle executes one or more business calculation tasks requested by the client vehicle, and returns a business calculation result message corresponding to the business calculation tasks to the client vehicle.
Further, the business calculation tasks comprise local business calculation tasks, and when the vehicle is a service vehicle, the business calculation tasks comprise the local business calculation tasks of the service vehicle and the business calculation tasks executed for other client vehicles; for example, the local service calculation task of the client vehicle is to run a picture processing program script and required data, and after the service vehicle receives a request for running the picture processing program script and the required data sent by the client vehicle, the service vehicle executes service calculation to obtain a result and returns the service calculation result to the client vehicle sending the request, it can be understood that the service vehicle also asynchronously executes the local service calculation task; namely, the business calculation task of the vehicle is executed according to the business calculation relation.
Further, when the computation offload or the communication resource allocation fails, the offload solution message indicates a server responsible for performing a business computation task of the client vehicle; the offload scenario message also indicates a server responsible for performing business calculation tasks for the client vehicle when the service vehicle fails to perform business calculations for the client vehicle.
Specifically, the server may be a server providing business computation in network infrastructure, for example, a cloud computing server, a fog computing server, a dedicated computing server, and the like, and the present invention does not limit the network used and the type of the server deployed in the network infrastructure and the specific computing service provided.
As shown in fig. 2, an embodiment of the present invention provides a method for calculating a service between vehicles, which is applied to a server, and the method includes the following steps:
step S201: receiving a computation offload message, the computation offload message comprising: a unique identification of a vehicle, a service computing resource available to a vehicle, driving status information of a vehicle, whether a vehicle is a service vehicle or a customer vehicle, wherein it is determined whether the vehicle is a service vehicle or a customer vehicle depending on whether the available service computing resource is greater than a predefined threshold.
Specifically, the detailed description of the calculation offload packet and the description of the available service computing resources are consistent with step S101, and are not described herein again.
Step S202: and determining and sending an unloading scheme message responding to the calculation unloading message according to the calculation unloading message, wherein the unloading scheme message comprises a business calculation relation corresponding to the service vehicle and one or more client vehicles.
Specifically, for example, the computation offload message is received and processed by a decision entity deployed in a server, and the decision entity forms the offload scheme message based on the computation offload message by using a computation offload algorithm and a resource allocation algorithm.
The decision entity is a centralized vehicle service calculation processing unit deployed in a server, and forms the unloading scheme message based on the calculation unloading message by using a calculation unloading algorithm and a resource allocation algorithm;
specifically, a calculation offload algorithm is illustrated, such as a calculation offload algorithm that uses the most customer vehicles and the least service vehicles, the algorithm including the steps of:
1) and sequencing all client vehicles from large to small according to the sizes of the business calculation tasks.
2) And sequencing all the service vehicles from small to large according to the size of the service computing resource.
3) And according to the ordered sequence, sequentially judging for each client vehicle: finding a service vehicle which can meet the calculation of the client vehicle, wherein the residual calculation resource of the service vehicle is as small as possible; if the computing resources of the service vehicle are found, subtracting the computing task of the client vehicle from the computing resources of the service vehicle to obtain the remaining computing resources of the service vehicle; if not, no service vehicle can provide calculation service for the client vehicle; and reordering the service vehicles according to the size of the residual computing resources to continue searching.
And the resource allocation algorithm is executed by the decision entity, and allocates available communication resources for the communication between the vehicles according to the service calculation relation, for example, frequency bands, time slots, code words, space angles and the like required by wireless communication are allocated.
Further, when the computation offload or the communication resource allocation fails, the offload solution message indicates a server responsible for performing a business computation task of the client vehicle; the offload scenario message also indicates a server responsible for performing business calculation tasks for the client vehicle when the service vehicle fails to perform business calculations for the client vehicle.
The present invention does not limit the calculation offload algorithm and the resource allocation algorithm.
As shown in fig. 3, an embodiment of the present invention provides a schematic flow chart of vehicle-to-vehicle interaction, and the flow chart may include the following steps:
step S301: the service vehicle and the client vehicle send calculation unloading messages to a decision entity contained in the server.
Specifically, the calculating the offload packet includes: the computing offload message includes: the unique identification of the vehicle, the available service computing resources of the vehicle and the running state information of the vehicle; the computing offload message further comprises: whether the vehicle is available as the customer vehicle or the service vehicle; the description of the unique identifier of the vehicle, the service computing resource of the vehicle, and the driving state information of the vehicle is consistent with steps S101 to S102, and is not repeated here.
Further, the calculating the offload message further includes: the vehicle may be the customer vehicle or the service vehicle.
Step S302: the decision entity comprised by the server performs the calculation offloading and resource allocation algorithm.
Specifically, the decision entity forms the offloading scheme message based on the computation offloading message by using a computation offloading algorithm and a resource allocation algorithm, where the offloading scheme message includes a business computation relationship corresponding to the service vehicle and one or more client vehicles.
The determination of the correspondence between the service vehicle and the client vehicle using the computational offload algorithm is illustrated below in conjunction with fig. 4A and 4B.
As shown in fig. 4A, the boxes represent service vehicles, the circles represent customer vehicles, the numbers in the boxes represent identification of the service vehicles, the letters in the circles represent identification of the customer vehicles, that is, fig. 4A contains 4 service vehicles and 5 customer vehicles, and the dotted lines represent possible matching relationships between the service vehicles and the customer vehicles; it is to be understood that a service vehicle may provide service calculations for one or more customer vehicles, preferably a customer vehicle receives service calculations provided by a service vehicle;
after passing through the calculation offloading algorithm of the decision entity, the service calculation relationship corresponding to the service vehicle and one or more of the client vehicles is determined, as shown in fig. 4B, where the solid lines indicate the correspondence of the service calculation between the service vehicle and the client vehicle, for example, the client vehicle a sends a service calculation request to the service vehicle 2, the service vehicle 2 processes the service calculation request, and returns a calculation result message to the client vehicle a. The service vehicle performs one or more business calculation tasks requested by the client vehicle and returns business calculation results corresponding to the business calculation tasks to the client vehicle.
Namely, the business calculation task of the vehicle is executed according to the business calculation relation.
Step S303: the decision entity contained in the server sends corresponding unloading scheme messages to the service vehicle and the client vehicle.
Specifically, the offload scenario message also includes available communication resources between the service vehicle and the client vehicle according to the business computation relationship.
Further, when the computation offload or the communication resource allocation fails, the offload solution message indicates a server responsible for performing a business computation task of the client vehicle; the offload scenario message indicates a server responsible for performing the business calculation task for the client vehicle when the service vehicle fails to perform the business calculation for the client vehicle.
Specifically, the decision entity operates a calculation unloading algorithm among vehicles according to the collected calculation unloading messages, determines which service vehicle provides calculation service for which client vehicle, when the client vehicle is too far away from the service vehicle, the service calculation task of the client vehicle cannot be executed by the service vehicle, and the unloading scheme message indicates a server responsible for executing the service calculation task of the client vehicle; further, the decision entity allocates available communication resources for inter-vehicle communication that can establish a business calculation relationship according to an inter-vehicle resource allocation algorithm, and when the communication resources cannot meet the inter-vehicle communication, the offloading scheme message indicates a server responsible for executing a business calculation task of the client vehicle. That is, when the computation offload or the communication resource allocation fails, the offload solution message indicates a server responsible for performing the business computation task of the client vehicle; the offload scenario message indicates a server responsible for performing the business calculation task for the client vehicle when the service vehicle fails to perform the business calculation for the client vehicle.
Step S304: and the client vehicle sends a local service calculation task request to the corresponding service vehicle according to the unloading scheme message.
Specifically, the unloading scheme message includes a business calculation relationship corresponding to the service vehicle and one or more client vehicles; the offloading scheme message also includes available communication resources between the service vehicle and the client vehicle according to the business computation relationship; according to the unloading scheme message, the client vehicle sends a local service calculation task request to a service vehicle corresponding to the client vehicle, the service vehicle executes one or more local service calculation tasks requested by the client vehicle, and returns a service calculation result message corresponding to the local service calculation task request to the client vehicle.
Step S305: the service vehicle executes the local business computation task request sent by the corresponding client vehicle.
Step S306: the service vehicle sends the calculation result message of the local service calculation task request sent by the corresponding client vehicle to the client vehicle to complete the service calculation between the vehicles
As shown in FIG. 5, an embodiment of the present invention provides a schematic diagram of a mobile communication network based inter-vehicle interaction;
specifically, as shown in fig. 5, a computation offload message sent by a service vehicle or a client vehicle is received and processed by a decision entity included in a server, the decision entity performs service communication with the vehicle by using a mobile communication network, and the decision entity and the vehicle complete communication through a centralized unit and a distributed unit of a base station included in the mobile communication network.
Further, the computation offload message is received and processed by a decision entity, and the decision entity forms the offload scheme message based on the computation offload message by using a computation offload algorithm and a resource allocation algorithm.
As shown in the schematic architecture diagram of fig. 5, the present embodiment is preferably implemented by a fifth generation mobile communication network, in which the fifth generation mobile communication base station is divided into a centralized unit and a distributed unit. The distributed units process a bottom layer protocol, the centralized units process a high layer protocol, preferably, the centralized units are deployed in an aggregation machine room, the distributed units are deployed in an access machine room, one centralized unit can control a plurality of distributed units and vehicles within the range of the distributed units, and one distributed unit provides mobile communication resources for the vehicles within the range of the distributed unit; the present invention is not limited to the particular mobile communication network used.
Further, when the computation offload or the communication resource allocation fails, the offload solution message indicates a server responsible for performing a business computation task of the client vehicle; the offload scenario message indicating a server responsible for performing business calculation tasks for the client vehicle when the service vehicle fails to perform business calculations for the client vehicle; for example, the server is a cloud server, a fog server, an exclusive server, and the like, which are deployed in a fifth generation mobile communication network and provide service computing, and the type of the communication network, the type of the server deployed in the network infrastructure, and the specific computing service provided by the server are not limited in the present invention.
As shown in fig. 6, an embodiment of the present invention provides an apparatus 600 for computing a vehicle-to-vehicle service, which is applied to a client, and includes: a computing resource obtaining module 601, a computing relationship determining module 602 and a business computing executing module 603; wherein the content of the first and second substances,
the computing resource obtaining module 601 is configured to obtain a service computing resource of a vehicle, where the service computing resource includes a service computing resource required by a local service of the vehicle and a service computing resource that can be provided; determining whether the vehicle is a service vehicle or a customer vehicle based on whether the available business computing resources are greater than a predefined threshold;
the computation relationship determining module 602 is configured to send a computation offload message, and receive an offload scheme message in response to the computation offload message, where the offload scheme message includes a service computation relationship corresponding to the service vehicle and one or more client vehicles;
the service calculation executing module 603 is configured to execute a service calculation task of the vehicle according to the service calculation relationship.
Optionally, the calculating relationship determining module 602 includes that the calculating an offload packet includes: the unique identification of the vehicle, available service computing resources of the vehicle, and driving state information of the vehicle.
Optionally, the computation relationship determining module 602, including the computation offload packet, further includes: the vehicle may be the customer vehicle or the service vehicle.
Optionally, the calculation relationship determining module 602, including the offloading scheme message, further includes available communication resources between the service vehicle and the client vehicle according to the business calculation relationship.
Optionally, the computation relationship determining module 602 is configured to, when a computation offload fails or a communication resource allocation fails, instruct a server responsible for performing a business computation task of the client vehicle by the offload solution message.
Optionally, the calculation relationship determination module 602 includes the uninstallation scheme message indicating a server responsible for performing the business calculation task of the client vehicle when the service vehicle fails to perform the business calculation of the client vehicle.
As shown in fig. 7, an embodiment of the present invention provides an apparatus 700 for calculating a vehicle-to-vehicle service, which is applied to a server, and includes: a computation message processing module 701 and an offload message generation module 702; wherein the content of the first and second substances,
the computation message processing module 701 is configured to receive a computation offload message, where the computation offload message includes: a unique identification of a vehicle, a service computing resource available to the vehicle, travel state information of the vehicle, whether the vehicle is a service vehicle or a customer vehicle, wherein it is determined whether the vehicle is available as the service vehicle or the customer vehicle based on whether the available service computing resource is greater than a predefined threshold;
the offload message generating module 702 is configured to determine and send an offload scheme message in response to the calculated offload message according to the calculated offload message, where the offload scheme message includes a service computation relationship corresponding to the service vehicle and one or more client vehicles.
Optionally, the unloading message generating module 702 includes the unloading plan message and also includes available communication resources between the service vehicle and the client vehicle according to the business computation relationship.
Optionally, the offload message generation module 702 is configured to, when the computation offload fails or the communication resource allocation fails, instruct a server responsible for performing a business computation task of the client vehicle by the offload solution message.
Optionally, the offload message generation module 702 includes the offload solution message indicating a server responsible for performing the business calculation task for the client vehicle when the service vehicle fails to perform the business calculation for the client vehicle.
The embodiment of the invention also provides electronic equipment for calculating the service between the vehicles, which is applied to a server or a client and comprises the following components: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the method provided by any one of the above embodiments.
The embodiment of the invention also provides a computer readable medium, which is applied to a server or a client and is stored with a computer program, and the computer program is executed by a processor to realize the method provided by any one of the above embodiments.
Fig. 8 shows an exemplary system architecture 800 of an inter-vehicle service calculation method or an inter-vehicle service calculation apparatus of an embodiment of the present invention that can be applied to a server or a client.
As shown in fig. 8, the system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. The network 804 serves to provide a medium for communication links between the terminal devices 801, 802, 803 and the server 805. Network 804 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 801, 802, 803 to interact with a server 805 over a network 804 to receive or send messages or the like. Various communication client applications, such as a web browser application, a search application, an instant messaging tool, a mailbox client, and the like, may be installed on the terminal devices 801, 802, 803.
The terminal devices 801, 802, 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, vehicles, desktop computers, and the like.
The server 805 may be a server that provides various services, for example, processes a calculation offload message sent by a user using the terminal devices 801, 802, 803, and feeds back an offload scenario message to the vehicle.
It should be noted that the method for calculating the inter-vehicle service applied to the server provided by the embodiment of the present invention is generally executed by the server 805, and accordingly, the apparatus for calculating the inter-vehicle service applied to the server is generally disposed in the server 805; the method applied to the vehicle-to-vehicle service calculation of the client provided by the embodiment of the invention is generally executed by the terminal devices 801, 802 and 803, and correspondingly, the device applied to the vehicle-to-vehicle service calculation of the client is generally arranged in the terminal devices 801, 802 and 803.
It should be understood that the number of terminal devices, networks, and servers in fig. 8 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 9, shown is a block diagram of a computer system 900 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 9, the computer system 900 includes a Central Processing Unit (CPU)901 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage section 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for the operation of the system 900 are also stored. The CPU 901, ROM 902, and RAM 903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
The following components are connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The above-described functions defined in the system of the present invention are executed when the computer program is executed by a Central Processing Unit (CPU) 901.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units described in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware. The described modules and/or units may also be provided in a processor, and may be described as: an apparatus for calculating vehicle-to-vehicle business, applied to a client, comprises: the system comprises a vehicle category determining module, a calculation relation determining module and a business calculation executing module. The names of these modules do not, in some cases, constitute a limitation on the modules themselves, and for example, a business computation execution module may also be described as a "module that a service vehicle requests to execute a business computation task based on a computation message task of a client vehicle".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: applied to a client, comprising: acquiring service computing resources of a vehicle, wherein the service computing resources comprise service computing resources required by local services of the vehicle and service computing resources which can be provided; determining whether the vehicle is a service vehicle or a customer vehicle based on whether the available business computing resources are greater than a predefined threshold; sending a calculation unloading message, and receiving an unloading scheme message responding to the calculation unloading message, wherein the unloading scheme message comprises a service calculation relation corresponding to the service vehicle and one or more client vehicles; executing the business calculation task of the vehicle according to the business calculation relation; applied to a server, comprising: receiving a computation offload message, the computation offload message comprising: a unique identification of a vehicle, a service computing resource available to the vehicle, travel state information of the vehicle, whether the vehicle is a service vehicle or a customer vehicle, wherein it is determined whether the vehicle is available as the service vehicle or the customer vehicle based on whether the available service computing resource is greater than a predefined threshold; and determining and sending an unloading scheme message responding to the calculation unloading message according to the calculation unloading message, wherein the unloading scheme message comprises a business calculation relation corresponding to the service vehicle and one or more client vehicles.
According to the technical scheme of the embodiment of the invention, the characteristics that a processor of the vehicle has no power consumption limitation and can have strong computing power can be utilized, the vehicle is set to be a service vehicle or a client vehicle according to computing resources of the vehicle, the service vehicle provides service computing for one or more client vehicles based on resource scheduling of the server, and the performance and the real-time performance of vehicle service computing are improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (16)

1. A method for calculating service between vehicles is applied to a client and comprises the following steps:
acquiring service computing resources of a vehicle, wherein the service computing resources comprise service computing resources required by local services of the vehicle and service computing resources which can be provided;
determining whether the vehicle is a service vehicle or a customer vehicle based on whether the available business computing resources are greater than a predefined threshold;
sending a calculation unloading message, and receiving an unloading scheme message responding to the calculation unloading message, wherein the unloading scheme message comprises a service calculation relation corresponding to the service vehicle and one or more client vehicles;
and executing the business calculation task of the vehicle according to the business calculation relation.
2. The method of claim 1,
the computing offload message includes: the unique identification of the vehicle, the service computing resources available by the vehicle and the running state information of the vehicle.
3. The method of claim 2,
the computing offload message further comprises: the vehicle may be the customer vehicle or the service vehicle.
4. The method of claim 1,
the offload scenario message also includes available communication resources between the service vehicle and the client vehicle according to the business computation relationship.
5. The method of claim 4,
the offload scenario message indicates a server responsible for performing the business computing tasks for the client vehicle when computing offload or communication resource allocation fails.
6. The method of claim 4,
the offload scenario message indicates a server responsible for performing the business calculation task for the client vehicle when the service vehicle fails to perform the business calculation for the client vehicle.
7. A method for calculating service between vehicles is characterized in that the method is applied to a server and comprises the following steps:
receiving a computation offload message, the computation offload message comprising: a unique identification of a vehicle, a service computing resource available to the vehicle, travel state information of the vehicle, whether the vehicle is a service vehicle or a customer vehicle, wherein it is determined whether the vehicle is available as the service vehicle or the customer vehicle based on whether the available service computing resource is greater than a predefined threshold;
and determining and sending an unloading scheme message responding to the calculation unloading message according to the calculation unloading message, wherein the unloading scheme message comprises a business calculation relation corresponding to the service vehicle and one or more client vehicles.
8. The method of claim 7,
the offload scenario message also includes available communication resources between the service vehicle and the client vehicle according to the business computation relationship.
9. The method of claim 8,
the offload scenario message indicates a server responsible for performing the business computing tasks for the client vehicle when computing offload or communication resource allocation fails.
10. The method of claim 8,
the offload scenario message indicates a server responsible for performing the business calculation task for the client vehicle when the service vehicle fails to perform the business calculation for the client vehicle.
11. An apparatus for computing service between vehicles, which is applied to a client, comprises: the system comprises a vehicle type determining module, a calculation relation determining module and a business calculation executing module; the vehicle type determining module is used for acquiring service computing resources of a vehicle, wherein the service computing resources comprise service computing resources required by local services of the vehicle and service computing resources which can be provided; determining whether the vehicle is a service vehicle or a customer vehicle based on whether the available business computing resources are greater than a predefined threshold; the calculation relation determining module is used for sending a calculation unloading message and receiving an unloading scheme message responding to the calculation unloading message, wherein the unloading scheme message comprises a service calculation relation corresponding to the service vehicle and one or more client vehicles; and the business calculation execution module is used for executing the business calculation task of the vehicle according to the business calculation relation.
12. An apparatus for calculating service between vehicles, which is applied to a server, comprises: a calculation message processing module and an unloading message generating module; wherein, the computation message processing module is configured to receive a computation offload message, where the computation offload message includes: a unique identification of a vehicle, a service computing resource available to the vehicle, travel state information of the vehicle, whether the vehicle is a service vehicle or a customer vehicle, wherein it is determined whether the vehicle is available as the service vehicle or the customer vehicle based on whether the available service computing resource is greater than a predefined threshold; the unloading message generating module is used for determining and sending an unloading scheme message responding to the calculation unloading message according to the calculation unloading message, wherein the unloading scheme message comprises a service calculation relation corresponding to the service vehicle and one or more client vehicles.
13. An electronic device, applied to a client, includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. An electronic device, applied to a server, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 7-10.
15. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 6, for application to a client.
16. A computer-readable medium, on which a computer program is stored, for application to a server, which program, when executed by a processor, carries out the method according to any one of claims 7-10.
CN202010219382.2A 2020-03-25 2020-03-25 Method and device for calculating service between vehicles Pending CN113453192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010219382.2A CN113453192A (en) 2020-03-25 2020-03-25 Method and device for calculating service between vehicles

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010219382.2A CN113453192A (en) 2020-03-25 2020-03-25 Method and device for calculating service between vehicles

Publications (1)

Publication Number Publication Date
CN113453192A true CN113453192A (en) 2021-09-28

Family

ID=77807502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010219382.2A Pending CN113453192A (en) 2020-03-25 2020-03-25 Method and device for calculating service between vehicles

Country Status (1)

Country Link
CN (1) CN113453192A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108921437A (en) * 2018-07-10 2018-11-30 电子科技大学 It is a kind of based on mist calculate more vehicles between more calculating task dispatching methods
US20190159277A1 (en) * 2018-01-23 2019-05-23 Intel Corporation Enhancing f1 application protocol (f1-ap) interfaces in a multi-hop relay network with centralized unit (cu) and distributed unit (du)
CN110035410A (en) * 2019-03-07 2019-07-19 中南大学 Federated resource distribution and the method and system of unloading are calculated in a kind of vehicle-mounted edge network of software definition
US20200019445A1 (en) * 2018-07-12 2020-01-16 Toyota Jidosha Kabushiki Kaisha Managing Computational Tasks in Vehicle Context

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190159277A1 (en) * 2018-01-23 2019-05-23 Intel Corporation Enhancing f1 application protocol (f1-ap) interfaces in a multi-hop relay network with centralized unit (cu) and distributed unit (du)
CN108921437A (en) * 2018-07-10 2018-11-30 电子科技大学 It is a kind of based on mist calculate more vehicles between more calculating task dispatching methods
US20200019445A1 (en) * 2018-07-12 2020-01-16 Toyota Jidosha Kabushiki Kaisha Managing Computational Tasks in Vehicle Context
CN110035410A (en) * 2019-03-07 2019-07-19 中南大学 Federated resource distribution and the method and system of unloading are calculated in a kind of vehicle-mounted edge network of software definition

Similar Documents

Publication Publication Date Title
CN109408205B (en) Task scheduling method and device based on hadoop cluster
CN109033001B (en) Method and apparatus for allocating GPUs
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
CN110391938B (en) Method and apparatus for deploying services
CN109218356B (en) Method and apparatus for managing stateful applications on a server
CN112379982B (en) Task processing method, device, electronic equipment and computer readable storage medium
CN113849312A (en) Data processing task allocation method and device, electronic equipment and storage medium
CN111431730B (en) Service processing method, system, computer equipment and readable medium
CN113553178A (en) Task processing method and device and electronic equipment
CN111580974B (en) GPU instance allocation method, device, electronic equipment and computer readable medium
CN115237589A (en) SR-IOV-based virtualization method, device and equipment
CN107342929B (en) Method, device and system for sending new message notification
CN112152879B (en) Network quality determination method, device, electronic equipment and readable storage medium
CN112306685A (en) Task isolation method and device, electronic equipment and computer readable medium
CN113792869B (en) Video processing method and device based on neural network chip and electronic equipment
CN112667368A (en) Task data processing method and device
CN114640681B (en) Data processing method and system
CN113453192A (en) Method and device for calculating service between vehicles
CN113127561B (en) Method and device for generating service single number, electronic equipment and storage medium
CN111694670B (en) Resource allocation method, apparatus, device and computer readable medium
CN114301980A (en) Method, device and system for scheduling container cluster and computer readable medium
CN109471574B (en) Method and device for configuring resources
CN109614137B (en) Software version control method, device, equipment and medium
CN113518183A (en) Camera calling method and device and electronic equipment
CN111970338A (en) Request processing method and device based on cloud function and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination