CN116319711A - Service request processing method, vehicle and computer readable storage medium - Google Patents

Service request processing method, vehicle and computer readable storage medium Download PDF

Info

Publication number
CN116319711A
CN116319711A CN202310258893.9A CN202310258893A CN116319711A CN 116319711 A CN116319711 A CN 116319711A CN 202310258893 A CN202310258893 A CN 202310258893A CN 116319711 A CN116319711 A CN 116319711A
Authority
CN
China
Prior art keywords
application
network interface
service request
target
downloader
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
CN202310258893.9A
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.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Motors 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 Guangzhou Xiaopeng Motors Technology Co Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN202310258893.9A priority Critical patent/CN116319711A/en
Publication of CN116319711A publication Critical patent/CN116319711A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a service request processing method, a vehicle and a computer readable storage medium, and relates to the technical field of vehicles, wherein the method comprises the following steps: creating a plurality of downloader applications; for each downloadable application, assigning a process identifier to the downloadable application, and binding the process identifier with one network interface, so that each downloadable application can be mutually bound with each network interface; when a service request is received, determining a corresponding downloader application based on a network interface which is bound by a network interface identifier in the service request and a process identifier of each downloader application, and enabling the downloader application to complete service processing of the service request through the bound network interface. Therefore, the application program in the vehicle can flexibly call different network interfaces through the network interface identification so as to process the self request and flow; and therefore, the situation that the network interface needs to process various types of traffic and requests due to the binding of the process number of the application program and the network port is avoided.

Description

Service request processing method, vehicle and computer readable storage medium
Technical Field
The present invention relates to the field of vehicle technologies, and in particular, to a method for processing a service request, a vehicle, and a computer readable storage medium.
Background
With the continuous upgrade of vehicle design, two or more network cards (Network Interface Controller, NIC) are usually disposed in a vehicle, where one network card is used to meet the use requirement of the vehicle, for example, to download vehicle-mounted system upgrade packages and vehicle-mounted firmware packages, and other network cards are used to meet the entertainment requirement of users in the vehicle, such as downloading movies and browsing social networking sites.
In the related art, the process number of the application program may be bound to a specific network card/network interface, so that traffic/requests of different kinds of applications can be processed by the specific network card. However, there are some applications that need to download the resources of the vehicle-mounted system at one time and download the entertainment resources at another time, thereby causing the erroneous use of the network card.
Disclosure of Invention
Provided are a service request processing method, a vehicle, and a computer-readable storage medium.
The processing method of the service request is applied to a vehicle, the vehicle comprises at least two network interfaces, different network interfaces are used for processing requests and traffic of different service types, and the method comprises the following steps:
Creating a plurality of downloader applications;
distributing process identifiers for each of the downloader applications, and binding the process identifiers with one network interface, wherein the process identifiers of at least two of the downloader applications are bound with different network interfaces;
and responding to the service request, calling the corresponding downloading device application based on the network interface identifier in the service request and the network interface bound by the process identifier of each downloading device application so as to complete the service processing of the service request through the corresponding network interface.
In the service request processing method provided by the application, a plurality of downloader applications are firstly created; then, aiming at each downloadable application, distributing a process identifier for the downloadable application, and binding the process identifier with one network interface, so that each downloadable application can be mutually bound with each network interface; and finally, when the service request is received, determining a network interface matched with the network interface identifier in the service request based on the network interface identifier in the service request and the network interface bound by the process identifier of each downloader application, and determining the downloader application corresponding to the process identifier bound with the matched network interface, so that the downloader application completes the service processing of the service request through the bound network interface.
Therefore, the application program in the vehicle can flexibly call different network interfaces through the network interface identification so as to process own request and flow; therefore, the method and the device also avoid the situation that one network interface possibly processes various types of traffic and requests to be sent because the process number of the application program is bound with the network port, and ensure the correct use of the network interface.
The service request comprises a data download service request, and the plurality of download applications comprise a first download application and a plurality of second download applications;
the responding to the service request, based on the network interface identifier in the service request and the network interface bound by the process identifier of each downloader application, calls the corresponding downloader application to complete the service processing of the service request through the corresponding network interface, and comprises the following steps:
responding to the data downloading service request, and carrying out interface identification on the data downloading service request based on the first loader application;
if the network interface identification is identified, determining a target network interface matched with the network interface identification from all the network interfaces bound by the second downloader application;
Using one second downloading device bound with the target network interface in all the second downloading device applications as a first target downloading device application;
and completing the service processing of the data download service request based on the network interface bound by the first target downloader application.
Therefore, the embodiment of the application enables each data downloading service request to be distributed to the correct first target downloading application based on the setting of the first downloading application and the second downloading application, and avoids the situation that each downloading application needs to realize the network interface analysis function, thereby improving the processing efficiency of the data downloading service request and ensuring the processing accuracy of the data downloading service request.
Before the network interface bound based on the first target downloader application completes the service processing of the data download service request, the method further includes:
and if the network interface identification is not identified, taking the first downloading device application as the first target downloading device application.
Therefore, the embodiment of the application enables the data downloading service request which does not carry the network interface identifier to be effectively processed, and further ensures the robustness of the downloading function in the vehicle.
The method further comprises the steps of:
if the service corresponding to the data download service request is not processed within the preset duration, using one of the second downloadable applications bound with the target network interface as a new first target downloadable application in the other second downloadable applications except the first target downloadable application;
and completing the service processing of the data download service request based on the network interface bound by the new first target downloading device application.
Therefore, the embodiment of the application enables the processing of the data downloading service request to be completed based on a plurality of application of the downloader, reduces the occurrence probability of the condition that the first target downloader is applied to run incorrectly due to accidents, and further causes the failure of processing the data downloading service request, thereby ensuring the stable processing of the data downloading service request.
Each second downloader application is configured with a corresponding priority;
if the service corresponding to the data download service request is not processed within the preset duration, using one of the second downloadable applications bound with the target network interface as a new first target downloadable application in the other second downloadable applications except the first target downloadable application, including:
And if the service corresponding to the data download service request is not processed within the preset duration, taking the second downloadable which has the highest priority and is bound with the target network interface in other second downloadable applications except the first target downloadable application as a new first target downloadable application.
In this way, the embodiment of the application enables the second downloader application with the highest priority to process the data downloading service request under the condition that the data downloading service request is not processed within the preset time length, thereby improving the probability that the data downloading service request is processed normally and quickly.
The at least two network interfaces comprise a first network interface and a second network interface, the plurality of downloader applications comprise a first downloader application and a plurality of second downloader applications, and the service request comprises a non-data download type service request;
the method further comprises the steps of, before the response to the service request, calling the corresponding downloader application to complete the service processing of the service request through the corresponding network interface based on the network interface identifier in the service request and the network interface bound by the process identifier of each downloader application:
Configuring a corresponding proxy server for each second downloader application, and binding the first network interface and the second network interface with the proxy server;
the responding to the service request, based on the network interface identifier in the service request and the network interface bound by the process identifier of each downloader application, calls the corresponding downloader application to complete the service processing of the service request through the corresponding network interface, and comprises the following steps:
responding to a non-data downloading service request, and taking one second downloading device application of all the second downloading device applications as a second target downloading device application;
determining a target proxy server corresponding to the second target downloader application;
identifying a first flow and a second flow corresponding to the non-data download service request by using the target proxy server;
the first traffic is processed based on the first network interface to which the target proxy server is bound, and the second traffic is processed based on the second network interface to which the target proxy server is bound.
Therefore, when one service request corresponds to a plurality of types of traffic, the embodiment of the application completes the identification and division of the traffic based on the pre-configured proxy server in the second downloader application, and delivers the traffic of different types to different types of network interfaces for processing, thereby ensuring the correct use of the network card.
The configuring a corresponding proxy server for each second downloader application, binding the first network interface and the second network interface with the proxy server, includes:
binding the second downloader application with a port number for each of the second downloader applications;
respectively distributing each port number to one proxy server, and binding the first network interface and the second network interface with the proxy server;
the determining the target proxy server corresponding to the second target downloader application includes:
and taking the proxy server bound with the port number bound with the second target downloader application in all the proxy servers as a target proxy server.
In this way, the embodiment of the application realizes the binding of the proxy server and the second downloader application through the port number, so that the second downloader application can accurately call the proxy server.
The method further comprises the steps of:
if the non-data downloading service request does not finish processing within a preset time length, one second downloading device application in the other second downloading device applications except the second target downloading device application is used as a new second target downloading device application;
And returning to the step of determining the target proxy server corresponding to the second target downloading device application based on the new second target downloading device application.
Therefore, after the non-data downloading service request is not normally processed due to unexpected errors, the application of the second target downloading device selected based on the new selection is continuously processed, so that the probability of normally processing the non-data downloading service request is improved, and the effective processing of the non-data downloading service request is ensured.
The application also provides a vehicle, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer program realizes the processing method of the service request when being executed by the processor.
The present application also provides a computer readable storage medium storing a computer program which, when executed by one or more processors, implements the above-described method of processing a service request.
In the vehicle and the computer-readable storage medium provided by the present application, a plurality of downloader applications are first created; then, aiming at each downloadable application, distributing a process identifier for the downloadable application, and binding the process identifier with one network interface, so that each downloadable application can be mutually bound with each network interface; and finally, when the service request is received, determining a network interface matched with the network interface identifier in the service request based on the network interface identifier in the service request and the network interface bound by the process identifier of each downloader application, and determining the downloader application corresponding to the process identifier bound with the matched network interface, so that the downloader application completes the service processing of the service request through the bound network interface.
Therefore, the application program in the vehicle can flexibly call different network interfaces through the network interface identification so as to process own request and flow; therefore, the method and the device also avoid the situation that one network interface possibly processes various types of traffic and requests to be sent because the process number of the application program is bound with the network port, and ensure the correct use of the network interface.
Additional aspects and advantages of embodiments of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of embodiments of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart of a method for processing a service request;
FIG. 2 is a flow chart of a method of processing a service request;
FIG. 3 is a flow chart of a method of processing a service request;
fig. 4 is a flow chart of a processing method of a service request.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the embodiments of the present application and are not to be construed as limiting the embodiments of the present application.
In order to more clearly describe the various embodiments provided in this application, a brief description of the related art is provided herein as follows:
with the continuous upgrade of vehicle design, two or more network cards (Network Interface Controller, NIC) are usually disposed in a vehicle, where one network card is used to meet the use requirement of the vehicle, for example, to download vehicle-mounted system upgrade packages and vehicle-mounted firmware packages, and other network cards are used to meet the entertainment requirement of users in the vehicle, such as downloading movies and browsing social networking sites.
It will be appreciated that, due to the differences in the data transmission speeds, charging rules, and support bus types of the different network cards, the different network cards are often configured to handle different types of traffic/requests, such as the network card for downloading the vehicle system resources and the network card for downloading the entertainment resources described above.
Further, to ensure that one network card can only be used to handle a specific type of traffic/request, the process number of the application may be bound to a specific network card/network interface, such as binding the process number (processidentify) of the game application to the entertainment resource network card (i.e., the network card used to download the entertainment resource). Furthermore, when the game application is started, the flow and the request related to the game application are processed by the entertainment resource network card, so that the single network card can process the single type of flow and the request.
However, there is a part of application programs that need to download the vehicle-mounted system resources at one time and needs to download the entertainment resources at another time, for example, if the vehicle-mounted system related application is bound with the system resource network card (i.e., the network card for downloading the vehicle-mounted system resources) for the vehicle-mounted system theme application, when the vehicle-mounted system performs the system upgrade data packet, the system resource network card will correctly process the related request and flow of the system upgrade data packet; when the user wants to download the self-selected resources such as wallpaper pictures, icon patterns, boot music and the like through the relevant application of the vehicle-mounted system, the self-selected resources are classified into entertainment resources or non-vehicle-mounted system resources, but the self-selected resources still complete flow and request processing through the system resource network card. In other words, there are cases where the network card is used erroneously.
Referring to fig. 1, fig. 1 is a flow chart of a service request processing method of the present application, that is, the present application provides a service request processing method, which is applied to a vehicle, and the vehicle includes at least two network interfaces, and different network interfaces are used for processing requests and traffic of different service types.
That is, the vehicle in the embodiment of the present application will be provided with two or more network cards, where different network cards are invoked through different network interfaces, and are used to process requests and flows of different service types after the invocation.
It should be understood that, in the embodiment of the present application, the relationship between each network card/network interface and the requests and flows of different service types is what can be set according to the actual situation. For example, the vehicle may include an entertainment resource network interface for downloading entertainment resources and a system resource network interface for downloading system resources, whereby entertainment resource related requests and traffic are handled by the entertainment resource network interface and system resource related requests and traffic are handled by the system resource network interface.
Based on the above settings, the service request processing method provided in the embodiment of the present application includes:
0110, create multiple downloader applications.
It will be appreciated that in the related art, only one downloader application is typically launched and running after the on-board system is running. In this embodiment, the on-board system will start/run/create multiple downloadable applications after running, and different downloadable applications are used to invoke different network interfaces.
It will be appreciated that the number of creation of the downloader applications is what can be set according to the actual situation, and in some of the described ways, since two network interfaces are provided in the vehicle, the present application will create two downloader applications to call the two network interfaces respectively. In yet other embodiments, to enable processing of high concurrency requests, where only two network interfaces are provided within the vehicle, six downloader applications are created to cooperatively process the high concurrency requests.
It is also understood that the relationship between the individual downloadable applications created is also what can be set according to the actual situation. The plurality of downloadable applications created in the present application may include a master node downloadable application and a plurality of slave node downloadable applications, where the master node downloadable application forwards the request and the traffic to the corresponding one or more slave node downloadable applications according to a preset routing rule after receiving the request and the traffic.
0120, distributing process identifiers for the downloadable applications according to each of the downloadable applications, and binding the process identifiers with one network interface, wherein the process identifiers of at least two of the downloadable applications are bound with different network interfaces.
That is, embodiments of the present application will assign different process identifications to each of the downloader applications so that each of the downloader applications can be invoked with its corresponding process identification. Meanwhile, the embodiment of the application also binds the process identifier of each downloadable application with each network interface, and further, different downloadable applications and different network interfaces can be related through the process identifier. It will be appreciated that each downloader application may be viewed as a dedicated call channel for the network interface to which its process identification is bound.
It should be noted that, although the process identifier in the embodiment of the present application can represent a process executed by the downloader application, it is not equal to the process number (Process Identification), and it can be used as a user number (userididentification).
It should be further noted that, in the embodiment of the present application, the process identifier is actually bound to the network interface identifier of the network interface, in other words, each downloader application implements binding between itself and the network interface through the process identifier and the network interface identifier.
0130, responding to the service request, calling the corresponding downloading device application based on the network interface identifier in the service request and the network interface bound with the process identifier of each downloading device application so as to complete the service processing of the service request through the corresponding network interface.
That is, when an application program needs to perform, for example, an add-delete-modify-check service or other download service, and further generate a corresponding service request, it needs to specify which network interface the application program will complete the service processing through, in other words, the service request generated by the application program needs to include a network interface identifier to indicate the network interface corresponding to the service of the application program.
Then, the vehicle in the manner described herein will determine, based on the network interface identifiers in the service request, a network interface matching the network interface identifier in the service request from the network interface identifiers of the respective network interfaces of the vehicle.
Then, because each network interface is bound with a process identifier of one downloader application, the vehicle in the embodiment of the application determines the process identifier bound with the network interface based on the matched network interface, further obtains the downloader application corresponding to the process identifier, and uses the downloader application as the downloader application corresponding to the service request.
And finally, calling the network interface bound by the process identifier of the corresponding downloading device application, thereby completing the service processing corresponding to the service request.
Therefore, when some application programs need to process own requests and traffic through one network interface at a certain moment and need to process own requests and traffic through another network interface at another moment, service requests containing different network interface identifications can be generated at different moments, and further different moments occur, the vehicle in the embodiment of the application will call different downloader applications, so that the network interface designated by the service requests can complete corresponding service processing.
In this way, the application program in the vehicle can flexibly process the request and the flow of the application program through different network interfaces; therefore, the embodiment of the application also avoids the situation that one network interface possibly processes various types of traffic and requests due to the binding of the process number of the application program and the network port, and ensures the correct use of the network interface.
Optionally, referring to fig. 2, fig. 2 is a flow chart of a processing method of a service request, that is, the service request includes a data download service request, and the plurality of downloader applications includes a first downloader application and a plurality of second downloader applications;
furthermore, the 0130 described above includes:
0131, responding to a data downloading service request, and carrying out interface identification on the data downloading service request based on a first loader application;
0132, if the network interface identification is identified, determining a target network interface matched with the network interface identification from all the network interfaces bound by the second downloader application;
0133, taking one second downloading device which is bound with the target network interface in the process identification in all second downloading device applications as a first target downloading device application;
0134, completing service processing of the data download service request based on the network interface bound by the first target downloader application.
It should be noted that, the first loader application in the embodiment of the present application is mainly used for forwarding a data download service request, that is, the first loader application is used for analyzing the data download service request, so as to identify the network interface identifier in the data download service request, and determine the identifier matched with the identified network interface identifier from the identifiers of all the network interfaces, so as to obtain the network interface corresponding to the identifier, that is, the target network interface. Moreover, after the target network interface is determined, the first downloader application also takes the second downloader application corresponding to the process identifier bound by the target network interface as the first target downloader, so that the first downloader application completes the service processing of the data download service request based on the target network interface bound by the first downloader application.
Further, the second downloader application in the embodiment of the present application is configured to complete, when receiving a data download service request forwarded by the first downloader application, a data download service corresponding to the data download service request through a network interface bound by itself and itself. It will be appreciated that the first and respective second downloadable applications may be considered as clusters, the first downloadable application may be considered as a master node in a cluster, and the respective second downloadable application may be considered as a slave node in a cluster.
Alternatively, when the developer of other application programs installed in the vehicle writes the code, the implementation of the downloading function of the application is usually completed based on a standard downloading device calling interface, in other words, the application program will call the native/standard downloading device application in the vehicle-mounted system through the standard downloading device calling interface. Thus, the first downloader application may be a native downloader application of the in-vehicle system, and the second downloader application may be a downloader application generated by derivation and/or instantiation in accordance with embodiments of the present application. Therefore, other applications can directly use the service request processing method provided by the application without corresponding adaptation processing, the adaptation cost is eliminated, and the input-output specific energy is ensured.
It should be further noted that, the data download service request in the embodiment of the present application refers to a service request for downloading a specific file/data, such as downloading movies, music, font style resource packages, on-vehicle firmware upgrade packages, on-vehicle system upgrade packages, and other data.
Further, in the processing of the data download service request in the embodiment of the present application, the vehicle downloads one or more files/data with the same type/purpose from one or more network addresses, for example, a plurality of film files are downloaded (i.e. distributed downloaded) from a plurality of network addresses based on one data download service request, and each film file obtained by downloading is used to integrate into a complete film, and the film and the plurality of film files are all "meeting the entertainment requirement of the user". As another example, after downloading an on-board firmware upgrade package from a network address, the on-board firmware upgrade package is used to upgrade firmware in the vehicle, i.e., to "meet the use needs of the vehicle"
It is conceivable that the downloading can be accomplished through a network interface in one or more download files corresponding to a data download-type service request. Thus, the embodiment of the application identifies the network interface identifier in the data download service request by the first loader, and forwards the data download service request to the corresponding second loader application (i.e. the first target loader application) based on the identified network interface identifier, so that the second loader application completes the data download service by one network interface bound by itself.
Therefore, the embodiment of the application enables each data downloading service request to be distributed to the correct first target downloading application based on the setting of the first downloading application and the second downloading application, and avoids the situation that each downloading application needs to realize the network interface analysis function, thereby improving the processing efficiency of the data downloading service request and ensuring the processing accuracy of the data downloading service request.
Optionally, before the above 0134, in order to ensure efficient processing of the data download service request, the method provided in the present application further includes:
and if the network interface identification is not identified, taking the first downloading device application as the first target downloading device application.
That is, for a special data download service request, that is, a data download service request that does not carry a network interface identifier, a corresponding processing manner is set in the embodiment of the present application, so as to ensure that whether the data download service request carries the network interface identifier or not will all be correspondingly processed.
Specifically, when the first downloader application analyzes the data downloading service request, but after the analysis is completed, the network interface identifier is not found to be carried in the data downloading service request, or in other words, the parameter value corresponding to the network interface identifier is NULL, the embodiment of the application considers that the target network interface corresponding to the data downloading service request is the same as the network interface bound by the first downloader application, that is, when the network interface identifier is not carried, the default data downloading service request is processed by the first downloader application. And the first downloader application takes the first downloader application as a first target downloader application corresponding to the data downloading service request, and completes corresponding data downloading based on the network interface bound by the process identifier of the first downloader application.
Therefore, the embodiment of the application enables the data downloading service request which does not carry the network interface identifier to be effectively processed, and further ensures the robustness of the downloading function in the vehicle.
Optionally, in order to solve the problem of service request processing failure or untimely caused by unexpected situations, please refer to fig. 3, fig. 3 is a flow chart of a service request processing method in the present application, that is, the service request processing method provided in the present application further includes:
0140, if the service corresponding to the data download service request is not processed within the preset time, using one second download device bound with the target network interface as a new first target download device application in other second download device applications except the first target download device application;
0150, completing service processing of the data download service request based on the network interface bound by the new first target downloader application.
It can be understood that, in the related art, the service request generally feeds back the processing completion message to the request initiator after normal processing, and therefore, in this embodiment of the present application, after sending the data download service request to the first target downloader application, the processing completion message corresponding to the data download service request is continuously detected. If the processing completion message is detected within the preset time length, the data downloading service request is indicated to be processed normally. If the processing completion message is not detected within the preset time, the data downloading service request is not processed normally due to unexpected errors.
In view of this situation, the embodiment of the present application sets a corresponding remedy, that is, after the data download service request is not processed within the preset duration, the vehicle will select one second download application again from the other second download applications except the first target download application, and uses the selected second download application as the new first target download. Further, the new first target downloader application is utilized to process data download type service requests that were not previously processed normally.
It should be understood that, if the newly selected first target loader application still cannot normally process the data download service request, that is, the data download service request is still unprocessed within the new preset duration, the embodiment of the present application will select the new second loader application as the new first target loader again from the other second loader applications except the first target loader application selected twice.
Therefore, the embodiment of the application enables the processing of the data downloading service request to be completed based on a plurality of application of the downloader, reduces the occurrence probability of the condition that the first target downloader is applied to run incorrectly due to accidents, and further causes the failure of processing the data downloading service request, thereby ensuring the stable processing of the data downloading service request.
In addition, it can be understood that the preset duration in the embodiment of the present application is a content that can be set according to actual situations, and the preset duration is exemplified as 1 minute or 2 minutes.
Optionally, to further provide effective processing of the data download service request, for a situation that a service corresponding to the data download service request is not processed within a preset duration, one of the downloadable applications may be selected from all the downloadable applications except the first target downloadable application to be used as a new first target downloadable application. That is, the case where the network interface is not compliant is not considered any more, but the "priority completion service request" is taken as a prerequisite.
Optionally, to avoid excessive consumption of system resources, if a data download service request does not complete corresponding service processing within a long time, for example, within 3 minutes or 5 minutes, a request processing failure message is directly sent to an initiator of the data download service request, and related operations of the data download service request are terminated.
Optionally, in order to enable the data download service request to be processed quickly, each second downloader application is configured with a corresponding priority;
If the service corresponding to the data download service request is not processed within the preset time, the process identifier of one second download device bound with the target network interface in other second download device applications except the first target download device application is used as a new first target download device application, which comprises the following steps:
if the service corresponding to the data download service request is not processed within the preset time, the second downloading device with the highest priority and the process identifier bound with the target network interface in other second downloading device applications except the first target downloading device application is used as the new first target downloading device application.
That is, the new first target downloader application will complete the selection/selection based on priority, the higher the priority the more likely it is to be selected as the new first target downloader application.
It should be understood that in the embodiment of the present application, the priority can reflect the processing efficiency of the second downloader application to some extent. The higher the priority, the more computing resources and/or bandwidth resources are occupied by the second downloader application, so the higher the processing efficiency of the second downloader application.
In this way, the embodiment of the application enables the second downloader application with the highest priority to process the data downloading service request under the condition that the data downloading service request is not processed within the preset time length, thereby improving the probability that the data downloading service request is processed normally and quickly.
Optionally, the processing efficiency of the data download service request is further improved, and when the first target loader application is allocated to the data download service request for the first time, the processing is also completed based on the priority order. That is, the first downloader application will pick the second downloader application with the highest priority from all the second downloader applications, and the process identification binds with the target interface identification as the first target downloader application.
Furthermore, it will be understood that any one of the downloader applications can only process a preset number of requests at the same time, so when the second downloader with the highest priority is already processing the preset number of requests, that is, the second downloader applications are fully loaded, the embodiment of the present application will traverse each second downloader application according to the priority order and the loading condition to select the second downloader application with the highest priority and not fully loaded as the first target downloader application.
Optionally, the service request of part of the application program needs to be processed by two or more network interfaces at the same time, that is, the service request of the application program corresponds to two or more types of traffic, and the processing of the request and the traffic may not be completed well through the second downloader/the first downloader bound with the single network interface. In order to solve the above-mentioned problems, please refer to fig. 4, fig. 4 is a flow chart of a processing method of the service request. Specifically, the at least two network interfaces include a first network interface and a second network interface, the plurality of downloader applications includes a first downloader application and a plurality of second downloader applications, and the service request includes a non-data download type service request.
Furthermore, before the 0130, the method for processing a service request provided in the present application further includes:
0160, for each second downloader application, configuring a corresponding proxy server for the second downloader application, and binding the first network interface and the second network interface with the proxy server.
Furthermore, the 0130 described above includes:
0135, responding to the non-data download service request, and taking one second downloading device application of all second downloading device applications as a second target downloading device application;
0136, determining a target proxy server corresponding to the second target downloading device application;
0137, identifying a first flow and a second flow corresponding to the non-data download service request by using the target proxy server;
0138, processing the first traffic based on the first network interface of the target proxy binding and processing the second traffic based on the second network interface of the target proxy binding.
It should be noted that, the non-data download service request refers to a service request for incompletely downloading a file or data, such as a request related to browsing a web page, and includes downloading and uploading resources, but when the web page is closed, related resources downloaded previously are deleted. Furthermore, because the non-data download service request may need to acquire data from different network interfaces, such as acquiring vehicle-related data from a system resource network interface and acquiring advertisement-related data from an entertainment resource network interface, the vehicle-related content and advertisement content may be displayed on the web page at the same time.
In view of this, the present application configures a proxy server in each second downloader in advance, and further, when the second downloader application needs to perform service processing, that is, the second downloader application is selected as the second target downloader application, uploading and downloading of relevant data will be completed by the proxy server bound through the port number for the second target downloader application.
Further, in the embodiment of the present application, the proxy server is further bound with a first network interface and a second network interface, and is further configured to identify and divide different types of traffic corresponding to the non-data download service request, and further, after the proxy server identifies the first traffic and the second traffic corresponding to the non-data download service request, the proxy server completes processing of the first traffic based on the first network interface bound by itself, and completes processing of the second traffic based on the second network interface bound by itself.
It will be appreciated that the second downloader application in this application is actually binding with multiple network interfaces through a proxy server.
In addition, it should be further understood that, because the configuration of the proxy server for the native download application of the vehicle-mounted system is complex, in the embodiment of the present application, the configuration and application of the proxy server are performed only for the second download application, that is, the new download application derived based on the native download application/the first download application, so as to reduce the configuration and use difficulty of the download application.
In addition, it should be understood that, if the third network interface is installed in the vehicle and the non-data downloading service request includes the third traffic, and the third traffic needs to be processed through the third network interface, the proxy server identifies the first traffic, the second traffic, and the third traffic in the non-data downloading service request, so as to complete corresponding processing through the first network interface, the second network interface, and the third network interface.
In addition, the first traffic may be a system resource related traffic, the second traffic may be an entertainment resource related traffic, the first network interface may be a system resource network interface, and the second network interface may be an entertainment resource network interface.
Therefore, when one service request corresponds to a plurality of types of traffic, the embodiment of the application completes the identification and division of the traffic based on the pre-configured proxy server in the second downloader application, and delivers the traffic of different types to different types of network interfaces for processing, thereby ensuring the correct use of the network card.
Optionally, the 0160 includes:
binding the second downloader application with one port number for each second downloader application;
each port number is assigned to a proxy server, and both the first network interface and the second network interface are bound to the proxy server.
Furthermore, the 0136 includes:
and taking the proxy server bound with the port number bound with the second target downloading device application in all proxy servers as a target proxy server.
That is, the embodiment of the application realizes the binding of the proxy server and the second downloader by using the port number of the proxy server, and further enables the second downloader to call the proxy server bound by itself through the port so as to complete the processing of the service request.
Specifically, the port number bound by the second downloader indicates that the second downloader will receive and upload data through the port-mapped network interface, and when the port is bound with the proxy server, the second downloader will accept and upload data from the proxy server binding the plurality of network interfaces. In addition, because the proxy server identifies and divides the traffic corresponding to the non-data download service request, different network interfaces correspondingly process different traffic and feed back different data.
In this way, the embodiment of the application enables the second target downloader application to accurately call the proxy server based on the port number.
Optionally, the method for processing the service request provided by the present application further includes:
if the non-data downloading service request does not complete the processing within the preset time, one second downloading device application is used as a new second target downloading device application from other second downloading device applications except the second target downloading device application;
And returning to the step of determining the target proxy server corresponding to the second target downloading device application based on the new second target downloading device application.
That is, similar to the foregoing timeout processing flow for completion of the data download service request, the present embodiment also provides a corresponding timeout processing flow for the non-data download service request, that is, when the feedback information of completion of the non-data download service request is not detected within the preset duration, the present embodiment will select a new second target loader application again to complete the non-data download service request that is not processed previously.
Therefore, after the non-data downloading service request is not normally processed due to unexpected errors, the application of the second target downloading device based on new selection is continuously processed, so that the probability of normally processing the non-data downloading service request is improved, and the effective processing of the non-data downloading service request is ensured.
In addition, the selection process of the second target loader application and the new second target loader application may also use priority, i.e. the higher the priority, the more likely the second loader application is to be selected as the second target loader application and/or the new second target loader application. For specific details, reference may be made to the content related to the first target downloader application, which is not described herein.
The embodiment of the application also provides a vehicle, which comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processing method of the service request is realized.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the processing method of the service request is realized.
In the vehicle and the computer-readable storage medium provided by the present application, a plurality of downloader applications are first created; then, aiming at each downloadable application, distributing a process identifier for the downloadable application, and binding the process identifier with one network interface, so that each downloadable application can be mutually bound with each network interface; and finally, when the service request is received, determining a network interface matched with the network interface identifier in the service request based on the network interface identifier in the service request and the network interface bound by the process identifier of each downloader application, and determining the downloader application corresponding to the process identifier bound with the matched network interface, so that the downloader application completes the service processing of the service request through the bound network interface.
Therefore, the application program in the vehicle can flexibly call different network interfaces through the network interface identification so as to process own request and flow; therefore, the method and the device also avoid the situation that one network interface possibly processes various types of traffic and requests to be sent because the process number of the application program is bound with the network port, and ensure the correct use of the network interface.
In the description of the present specification, reference to the description of the terms "in one example," "illustratively," and the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present application, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present application.

Claims (10)

1. A method of processing a service request, characterized in that it is applied to a vehicle, said vehicle comprising at least two network interfaces, different ones of said network interfaces being adapted to process requests and traffic of different service types, said method comprising:
creating a plurality of downloader applications;
Distributing process identifiers for each of the downloader applications, and binding the process identifiers with one network interface, wherein the process identifiers of at least two of the downloader applications are bound with different network interfaces;
and responding to the service request, calling the corresponding downloading device application based on the network interface identifier in the service request and the network interface bound by the process identifier of each downloading device application so as to complete the service processing of the service request through the corresponding network interface.
2. The method for processing a service request according to claim 1, wherein the service request comprises a data download type service request, and the plurality of downloader applications comprises a first downloader application and a plurality of second downloader applications;
the responding to the service request, based on the network interface identifier in the service request and the network interface bound by the process identifier of each downloader application, calls the corresponding downloader application to complete the service processing of the service request through the corresponding network interface, and comprises the following steps:
responding to the data downloading service request, and carrying out interface identification on the data downloading service request based on the first loader application;
If the network interface identification is identified, determining a target network interface matched with the network interface identification from all the network interfaces bound by the second downloader application;
using one second downloading device bound with the target network interface in all the second downloading device applications as a first target downloading device application;
and completing the service processing of the data download service request based on the network interface bound by the first target downloader application.
3. The method according to claim 2, wherein before the service processing of the data download type service request is completed based on the network interface to which the first target downloader application is bound, the method further comprises:
and if the network interface identification is not identified, taking the first downloading device application as the first target downloading device application.
4. The method for processing a service request according to claim 2, wherein the method further comprises:
if the service corresponding to the data download service request is not processed within the preset duration, using one of the second downloadable applications bound with the target network interface as a new first target downloadable application in the other second downloadable applications except the first target downloadable application;
And completing the service processing of the data download service request based on the network interface bound by the new first target downloading device application.
5. The method according to claim 4, wherein each of the second downloader applications is configured with a corresponding priority;
if the service corresponding to the data download service request is not processed within the preset duration, using one of the second downloadable applications bound with the target network interface as a new first target downloadable application in the other second downloadable applications except the first target downloadable application, including:
and if the service corresponding to the data download service request is not processed within the preset duration, taking the second downloadable which has the highest priority and is bound with the target network interface in other second downloadable applications except the first target downloadable application as a new first target downloadable application.
6. The method of claim 1, wherein the at least two network interfaces comprise a first network interface and a second network interface, the plurality of downloader applications comprise a first downloader application and a plurality of second downloader applications, and the service request comprises a non-data download type service request;
The method further comprises the steps of, before the response to the service request, calling the corresponding downloader application to complete the service processing of the service request through the corresponding network interface based on the network interface identifier in the service request and the network interface bound by the process identifier of each downloader application:
configuring a corresponding proxy server for each second downloader application, and binding the first network interface and the second network interface with the proxy server;
the responding to the service request, based on the network interface identifier in the service request and the network interface bound by the process identifier of each downloader application, calls the corresponding downloader application to complete the service processing of the service request through the corresponding network interface, and comprises the following steps:
responding to a non-data downloading service request, and taking one second downloading device application of all the second downloading device applications as a second target downloading device application;
determining a target proxy server corresponding to the second target downloader application;
identifying a first flow and a second flow corresponding to the non-data download service request by using the target proxy server;
The first traffic is processed based on the first network interface to which the target proxy server is bound, and the second traffic is processed based on the second network interface to which the target proxy server is bound.
7. The method according to claim 6, wherein for each of the second downloadable applications, configuring a corresponding proxy server for the second downloadable application, and binding the first network interface and the second network interface with the proxy server, includes:
binding the second downloader application with a port number for each of the second downloader applications;
respectively distributing each port number to one proxy server, and binding the first network interface and the second network interface with the proxy server;
the determining the target proxy server corresponding to the second target downloader application includes:
and taking the proxy server bound with the port number bound with the second target downloader application in all the proxy servers as a target proxy server.
8. The method for processing a service request according to claim 6, further comprising:
If the non-data downloading service request does not finish processing within a preset time length, one second downloading device application in the other second downloading device applications except the second target downloading device application is used as a new second target downloading device application;
and returning to the step of determining the target proxy server corresponding to the second target downloading device application based on the new second target downloading device application.
9. A vehicle comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, implements the method of processing a service request according to any one of claims 1-8.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by one or more processors, implements the method of processing a service request according to any of claims 1-8.
CN202310258893.9A 2023-03-16 2023-03-16 Service request processing method, vehicle and computer readable storage medium Pending CN116319711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310258893.9A CN116319711A (en) 2023-03-16 2023-03-16 Service request processing method, vehicle and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310258893.9A CN116319711A (en) 2023-03-16 2023-03-16 Service request processing method, vehicle and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116319711A true CN116319711A (en) 2023-06-23

Family

ID=86781142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310258893.9A Pending CN116319711A (en) 2023-03-16 2023-03-16 Service request processing method, vehicle and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116319711A (en)

Similar Documents

Publication Publication Date Title
CN113296792B (en) Storage method, device, equipment, storage medium and system
CN110463162B (en) Application deployment method, device and system
US5832191A (en) Method and apparatus for automatically enabling communication with a network printer
US8103760B2 (en) Dynamic provisioning of service components in a distributed system
CN111290838B (en) Application access request processing method and device based on container cluster
EP4207707A1 (en) Data transmission system, data transmission method, smart vehicle and device
CN107193609B (en) Function module calling method and device in application and electronic equipment
CN104750555A (en) Management method and device for progresses in Android program
CN104750528A (en) Management method and device for components in Android program
CN110908753A (en) Intelligent fusion cloud desktop server, client and system
MXPA03008532A (en) Dynamically downloading and executing system services on a wireless device.
US20210203714A1 (en) System and method for identifying capabilities and limitations of an orchestration based application integration
CN113190282A (en) Android operating environment construction method and device
CN112055066B (en) Communication method, communication device, diagnosis device, and computer-readable storage medium
CN110297658A (en) Functional unit sharing method, device and computer equipment
CN113961301A (en) Virtual network card binding and unbinding method and device, computing node and storage medium
CN115277671A (en) OTA (over the air) upgrading method and device for vehicle, vehicle and storage medium
CN115268949A (en) Mirror preheating method, device, equipment and storage medium
CN110045998A (en) Load the method and device of dynamic base
CN116319711A (en) Service request processing method, vehicle and computer readable storage medium
CN115277391B (en) Network configuration method, device, cluster and storage medium
CN106445599B (en) Application program upgrading method and device and terminal
CN115665231A (en) Service creation method, device and computer-readable storage medium
CN113076128B (en) Method, device, electronic equipment and storage medium for robot configuration
JP4063573B2 (en) Device driver installation / execution method, installation / execution method, and program

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