A vehicle-mounted system load balancing method, device and storage medium
By screening and marking network cards whose network quality is better than the preset threshold in the on-board system, load-balanced routing of live broadcast service data packets is realized, which solves the problem of unstable network quality of live broadcast service in high-speed railway environments, improves data transmission quality and stability.
Patent Information
- Application Number
- CN202211481237.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-24
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-11-24
AI Technical Summary
In a high-speed railway environment, the network quality of live broadcast services is unstable, and traditional load balancing technology cannot adapt, resulting in a decline in data transmission quality, and there is a lack of commercial solutions to ensure data acceleration of live broadcast sources.
By filtering the local port of the live broadcast service in the vehicle system, the network cards whose network quality is better than the preset threshold are screened, and tags are added to them, and the marked data packets are routed to these network cards, thereby achieving load-balanced routing of data packets.
It improves the transmission quality of live broadcast services, ensures the transmission bandwidth and stability of live broadcast data, and is suitable for multi-channel high-definition live broadcast requirements in high-speed railway scenarios.
Smart Images

Figure CN115834934B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a vehicle-mounted system load balancing method, device and storage medium. Background Art
[0002] 5G Smart Travel proposes the requirement of studying the train multimedia information service system based on 5G communication, aiming to realize 5G Internet access, high-definition video broadcasting, smart viewing and other services for passengers, and at the same time meet the needs of realizing ultra-high-definition studio live broadcast of high-speed trains (such as EMUs) based on 5G networks on high-speed railways (referred to as HSR). Since the high-speed railway carriages are running at very high speeds and over long distances, the coverage of various operators along the railway varies greatly, and the network quality is unstable, so it is necessary to make separate service quality assurance for the current on-board system on the high-speed railway.
[0003] The principle of implementing the high-speed rail live broadcast service is to run the SRS (SRS is the abbreviation of Simple Realtime Server) streaming software on the carriage server and then push it to the live broadcast terminal. The live broadcast scenario is a many-to-one service. The live broadcast data stream server address and server port are fixed, but the client (local) address and client (local) port are not fixed. If the traditional service identification based on server address or server port is used, it is impossible to achieve load balancing for multiple users and the transmission quality will be reduced.
[0004] The existing multi-NIC load balancing technology only sends data from the vehicle to the remote end. Through MPTCP technology, multiple network cards are used to simultaneously transmit single business data to improve the reliability of the data channel. However, in the case of live streaming broadcasting on the vehicle side, if the third-party server cannot be modified, the vehicle side has no choice but to intelligently select a channel for data transmission. Therefore, ordinary load balancing and network aggregation cannot adapt to this business. For the live channel broadcasting business in the high-speed railway scenario, the general data enhancement method will either increase the traffic consumption of data transmission, causing the vehicle-to-ground transmission channel to be occupied by more retransmitted data, or it can only guarantee the live broadcast business of the vehicle side to external users, and rely on the self-built server in the cloud to receive the data, which requires double the data cost. There is no commercial technical solution available for this scenario to accelerate the data of the live source at the remote end. Summary of the invention
[0005] In response to the above technical problems, an embodiment of the present invention provides a vehicle-mounted system load balancing method, device and storage medium to improve the transmission quality of live broadcast services.
[0006] In a first aspect, an embodiment of the present invention provides a vehicle system load balancing method, comprising:
[0007] Filter out the local port of the first live broadcast service;
[0008] Filter out a first network card whose network quality is greater than a first preset threshold;
[0009] Adding a first tag to the first live broadcast service corresponding to the local port;
[0010] The data packet including the first tag is routed to the first network card.
[0011] Preferably, filtering out the local port of the first live broadcast service includes:
[0012] A service monitoring program is started on the vehicle-mounted system device. If a first live broadcast service request is monitored, the local port of the first live broadcast service is filtered out.
[0013] Preferably, the step of screening out the first network card whose network quality is greater than a first preset threshold comprises:
[0014] Based on the pre-measured network qualities of different network cards, a first network card having a network quality greater than a first preset threshold is screened out.
[0015] It may also include: pre-evaluating a first quantity of live broadcast services, and determining that the number of network cards required to be used is the first quantity.
[0016] Preferably, the starting of the service monitoring program on the vehicle-mounted system device, if a first live broadcast service request is monitored, filtering out the local port of the first live broadcast service also includes:
[0017] If the Nth live broadcast service request is monitored, and N is less than or equal to the number K of network cards whose network quality is greater than the first preset threshold, the following processing is performed:
[0018] Filter out the local port of the Nth live broadcast service;
[0019] Filter out the Nth network card whose network quality is greater than a first preset threshold;
[0020] Adding an Nth mark to the Nth live broadcast service corresponding to the local port;
[0021] Routing the data packet including the Nth tag to the Nth network card;
[0022] Here, N is an integer greater than or equal to 2.
[0023] Further, if the Nth live broadcast service request is monitored, and N is greater than the number K of network cards whose network quality is greater than the first preset threshold, the following processing is performed:
[0024] Filter out the local port of the Nth live broadcast service;
[0025] Adding an Nth mark to the Nth live broadcast service corresponding to the local port;
[0026] Routing the Mth data packet including the Nth tag to the Pth network card;
[0027] Wherein, M is the number of the data packet including the Nth marker, and M is an integer greater than or equal to 0;
[0028] P=MOD(M,K)+1, where MOD means the remainder when M is divided by K.
[0029] In a second aspect, an embodiment of the present invention further provides a vehicle-mounted system load balancing device, comprising:
[0030] A service filtering module is configured to filter out a local port of a first live broadcast service;
[0031] A network card screening module, configured to screen out a first network card whose network quality is greater than a first preset threshold;
[0032] A tag adding module, configured to add a first tag to the first live broadcast service corresponding to the local port;
[0033] The data routing module is configured to route the data packet including the first tag to the first network card.
[0034] In a third aspect, an embodiment of the present invention further provides a vehicle-mounted system load balancing device, including: a memory, a processor, and a user interface;
[0035] The memory is used to store computer programs;
[0036] The user interface is used to interact with the user;
[0037] The processor is used to read the computer program in the memory, and when the processor executes the computer program, the vehicle-mounted system load balancing method provided by the present invention is implemented.
[0038] In a fourth aspect, an embodiment of the present invention further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and when the processor executes the computer program, the vehicle-mounted system load balancing method provided by the present invention is implemented.
[0039] Benefits: Using the vehicle-mounted system load balancing method provided by the present invention, network cards with transmission quality greater than a preset threshold are screened out according to the network quality of different network cards, and live broadcast services are identified. A specific identifier is added to the live broadcast service data packet, and the live broadcast service data packet including the specific identifier is routed to the screened out network card with transmission quality greater than the preset threshold, thereby routing data to the network card with good transmission quality, unblocking data congestion, and achieving load balancing.
[0040] This invention is a network data marking technology based on service differentiation. When the vehicle-side user establishes a connection to the remote end, it actively discovers and marks the data service, distinguishes between the ordinary data and the live broadcast data in the vehicle-to-ground transmission service, and load balances the marked live broadcast service to ensure that the live broadcast service obtains sufficient data transmission bandwidth, ensures the transmission quality and transmission bandwidth of the live broadcast data, and ensures the smoothness of the live broadcast picture.
[0041] This invention perfectly solves the problem of providing passengers with broadcasts of the Winter Olympics on the Beijing-Zhangjiakou High-Speed Railway, thereby improving signal stability and train-side data forwarding capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A schematic diagram of a vehicle system load balancing method provided by an embodiment of the present invention;
[0044] Figure 2 One of the schematic diagrams of the relationship between the live broadcast request and the network card routing provided in the embodiment of the present invention;
[0045] Figure 3 The second schematic diagram of the relationship between the live broadcast request and the network card routing provided by the embodiment of the present invention;
[0046] Figure 4 The third schematic diagram of the relationship between the live broadcast request and the network card routing provided by the embodiment of the present invention;
[0047] Figure 5 A schematic diagram of the structure of a vehicle-mounted system load balancing device provided by an embodiment of the present invention;
[0048] Figure 6 A schematic diagram of the structure of another vehicle-mounted system load balancing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] The following are explanations of some of the terms that appear in the text:
[0051] 1. In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0052] 2. In the embodiments of the present invention, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] It should be noted that the display order of the embodiments of the present invention only represents the chronological order of the embodiments, and does not represent the advantages or disadvantages of the technical solutions provided by the embodiments.
[0055] Embodiment 1
[0056] See also Figure 1 , a schematic diagram of a vehicle system load balancing method provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes steps S101 to S104:
[0057] S101, filtering out the local port of the first live broadcast service;
[0058] S102, screening out a first network card whose network quality is greater than a first preset threshold;
[0059] S103, adding a first mark to the first live broadcast service corresponding to the local port;
[0060] S104: Route the data packet including the first tag to the first network card.
[0061] In this embodiment, based on the pre-measured network quality of multiple network cards, different users' live broadcast service flows are loaded onto different network cards, so as to achieve the maximum network quality guarantee of the live broadcast service and meet the requirements of multi-channel high-definition live broadcast network on high-speed rail.
[0062] As a preferred example, in step S101 of this embodiment, filtering out the local port of the first live broadcast service includes:
[0063] A service monitoring program is started on the vehicle-mounted system device. If a first live broadcast service request is monitored, the local port of the first live broadcast service is filtered out.
[0064] The live broadcast scenario is a many-to-one service, and the live broadcast data stream server address and server port are fixed. In an embodiment of the present invention, a service monitoring program is installed and started on the vehicle-mounted device to monitor the live broadcast data stream. When a live broadcast service request is monitored, the local port of the live broadcast service request is filtered out. The method for monitoring the live broadcast data stream can be: identifying the live broadcast data stream by monitoring and filtering protocols such as RTMP, RTSP, HTTP, etc.
[0065] Specifically, as a preferred example, when the service monitoring program is started, the first live broadcast service request detected is called the first live broadcast service request. Since it is the first time that the live broadcast service request is detected, the first live broadcast service request is a new request, not an existing request. After the first live broadcast service request is detected, when the live broadcast service request is detected again, it is determined whether the first live broadcast service is a new request or an existing original request. If it is a new request, it can be called the second live broadcast service request. When the live broadcast service request is detected again, the same judgment as above is made as to whether it is a new request or an existing original request. If it is a new request, it can be called the third live broadcast service request, and so on.
[0066] For example, filter out the first live broadcast service request, the local port is 123; filter out the second live broadcast service request, the local port is 124.
[0067] In S102 of the embodiment of the present invention, the step of screening out the first network card whose network quality is greater than the first preset threshold includes:
[0068] Based on the pre-measured network qualities of different network cards, a first network card having a network quality greater than a first preset threshold is screened out.
[0069] Preferably, the first number of live broadcast services can be pre-evaluated, and the number of network cards required to be used can be determined to be the first number.
[0070] As a preferred example, the first number of live broadcast services pre-evaluated may be preset in the system according to demand, for example, the first number of live broadcast service requests pre-evaluated is 4, 4 is preset in the system, and the number of network cards required to be used is determined to be 4. The first number of live broadcast services may also be estimated based on the maximum number of live broadcast request channels in a fixed time interval in the past, for example, in the past day, the maximum number of live broadcast requests was 5, then the first number of live broadcast services is estimated to be 5, and the number of network cards required to be used is 5.
[0071] As a preferred example, based on the network quality of different network cards measured in advance, the first network card with a network quality greater than a first preset threshold is screened out. The first preset threshold of network quality can be the idle rate of the network card bandwidth, that is, the less the bandwidth of the network card is used, the greater the idle rate is, and the better the network quality is. The first preset threshold is the idle rate of the network card bandwidth, for example, 50%. Network cards with an idle rate greater than 50% are all network cards that meet the conditions. The first preset threshold of network quality can also be the current transmission rate of the network card, that is, the higher the transmission rate of the network card, the better the network quality is, for example, 5Mb / s. Network cards with a transmission rate greater than 5Mb / s are network cards that meet the conditions.
[0072] It should be noted that if the number of network cards that meet the network quality greater than the first threshold is greater than or equal to 2, they are sorted from high to low according to the network quality. The network card with the highest network quality is the first network card, the second network card with the second highest network quality is the second network card, and the Nth network card with the Nth highest network quality is the Nth network card, where N is less than or equal to the number of network cards. Taking the idle rate of network card bandwidth as an example, the first preset threshold is 50%, and the idle rate is sorted from high to low, as shown in the following table:
[0073] Table 1: Example of network quality ranking and network card number correspondence
[0074] Bandwidth idle rate Network card number 80% First network card 70% Second network card 65% The third network card 60% Fourth network card 51% Fifth network card
[0075] It should be noted that the pre-measured network quality of different network cards may be measured once every predetermined time interval, for example, once every hour, or once every 5 minutes, and the specific time interval is not limited.
[0076] In the embodiment S103 of the present invention, a first tag is added to the first live broadcast service corresponding to the local port, and the first tag can be a special value, such as 0x10, indicating a data packet of the first live broadcast service. As a preferred example, the data packet of the first live broadcast service can be marked by using the first tag through an IP table (iptables).
[0077] Correspondingly, a second tag is added to the second live broadcast operator, and the second tag can also be a special value, a value different from other tags, such as 0x20; a third tag is added to the third live broadcast operator, and the third tag is 0x30. Taking the 5-channel live broadcast service as an example, the tags are as follows:
[0078] Table 2 Live broadcast service and tag correspondence table
[0079] Live broadcast business mark First live broadcast service 0x10 Second live broadcast service 0x20 The third live broadcast service 0x30 Fourth live broadcast service 0x40 Fifth live broadcast service 0x50
[0080] It should be noted that the above Table 2 only provides one marking method, and there may be other marking methods, as long as one live broadcast service can be uniquely distinguished and no two markings are the same. This embodiment does not make any specific limitations.
[0081] In the embodiment S104 of the present invention, the data packet including the first mark is routed to the first network card, and the data packet of the first live broadcast service is marked with the first mark after the above step S103, and the data packet including the first mark is routed to the first network card. For example, the data packet marked as 0x10 is routed to network card 1, and the IP address of network card 1 is 7.7.8.201.
[0082] As a preferred example, when there are multiple live broadcast services, the network quality of the network cards screened out in S102 with network quality greater than the first preset threshold will be sorted from high to low, and the data packets will be routed to the screened network cards in the order in which the live broadcast services arrive. Taking 5 live broadcast services and 5 network cards with network quality greater than the first threshold as an example, the corresponding relationship between the data packet tag of the live broadcast service and the target network card for routing is shown in Table 3 below:
[0083] Table 3 Live broadcast service routing table
[0084] Live broadcast business mark Network card number First live broadcast service 0x10 First network card Second live broadcast service 0x20 Second network card The third live broadcast service 0x30 The third network card Fourth live broadcast service 0x40 Fourth network card Fifth live broadcast service 0x50 Fifth network card
[0085] It should be noted that, in this embodiment, after filtering out the first live broadcast service, when filtering out the Nth live broadcast service again, there are two cases according to the relationship between N and the number K of network cards whose network quality is greater than the first preset threshold:
[0086] Case 1: N is less than or equal to K, that is, the number of routes for the live broadcast service is less than or equal to the number of network cards K selected whose network quality is greater than the first preset threshold, then the following processing is performed:
[0087] Filter out the local port of the Nth live broadcast service;
[0088] Filter out the Nth network card whose network quality is greater than a first preset threshold;
[0089] Adding an Nth mark to the Nth live broadcast service corresponding to the local port;
[0090] Routing the data packet including the Nth tag to the Nth network card;
[0091] Here, N is an integer greater than or equal to 2.
[0092] like Figure 2 As shown in the figure, there are 3 live broadcast services, and the number of network cards screened out with network quality greater than the first preset threshold is 5, and they are sorted from high to low according to the network transmission quality as the first network card, the second network card, the third network card, the fourth network card, and the fifth network card. The data packets of the first live broadcast service are routed to the first network card, the data packets of the second live broadcast service are routed to the second network card, and the data packets of the third live broadcast service are routed to the third network card.
[0093] like Figure 3 An example is shown, there are 5 live broadcast services, the number of network cards screened out with network quality greater than the first preset threshold is 5, and they are sorted from high to low according to network transmission quality as the first network card, the second network card, the third network card, the fourth network card, and the fifth network card. The data packets of the first live broadcast service are routed to the first network card, the data packets of the second live broadcast service are routed to the second network card, the data packets of the third live broadcast service are routed to the third network card, the data packets of the fourth live broadcast service are routed to the fourth network card, and the data packets of the fifth live broadcast service are routed to the fifth network card.
[0094] Case 2: N is greater than K, that is, the number of live broadcast service channels is greater than the number of network cards K that have been screened out and whose network quality is greater than the first preset threshold. Then, the data packet of the Nth live broadcast service is cyclically directed to M cards. As a preferred example, starting from the first network card, the data packet is cyclically routed to the first to the Mth network cards, and the following processing is performed:
[0095] Filter out the local port of the Nth live broadcast service;
[0096] Adding an Nth mark to the Nth live broadcast service corresponding to the local port;
[0097] Routing the Mth data packet including the Nth tag to the Pth network card;
[0098] Wherein, M is the number of the data packet including the Nth marker, and M is an integer greater than or equal to 0;
[0099] P=MOD(M,K)+1, where MOD means the remainder when M is divided by K.
[0100] like Figure 4As shown, there are 6 live broadcast services, and the number of network cards screened out with network quality greater than the first preset threshold is 5, and they are sorted from high to low according to network transmission quality as the first network card, the second network card, the third network card, the fourth network card, and the fifth network card. The data packets of the first live broadcast service are routed to the first network card, the data packets of the second live broadcast service are routed to the second network card, the data packets of the third live broadcast service are routed to the third network card, the data packets of the fourth live broadcast service are routed to the fourth network card, and the data packets of the fifth live broadcast service are routed to the fifth network card.
[0101] For the data packets of the sixth live broadcast service, the data packet numbers start from 0 and increase to 0, 1, 2, 3, 4, 5, 6, 7, 8, etc. The network cards for data packet routing are as follows:
[0102] The 0th data packet is routed to P=MOD(0,5)+1=1, the 1st network card;
[0103] The first data packet is routed to P=MOD(1,5)+1=2, the second network card;
[0104] The second data packet is routed to P=MOD(2,5)+1=3, the third network card;
[0105] The third data packet is routed to P=MOD(3,5)+1=4, the fourth network card;
[0106] The fourth data packet is routed to P=MOD(4,5)+1=5, the fifth network card;
[0107] The fifth data packet is routed to P=MOD(5,5)+1=1, the first network card;
[0108] The sixth data packet is routed to P=MOD(6,5)+1=2, the second network card;
[0109] The 7th data packet is routed to P=MOD(7,5)+1=3, the 3rd network card;
[0110] The 8th data packet is routed to P=MOD(8,5)+1=4, the 4th network card;
[0111] And so on.
[0112] The Mth data packet is routed to P=MOD(M,5)+1, the Pth network card.
[0113] Through the method of this embodiment, based on the pre-measured network quality of different network cards, network cards with network quality greater than a preset threshold are screened out, and they are sorted from high to low according to the network quality. When the arrival of the live broadcast service is monitored, the live broadcast service is routed to the network card with the highest network quality, thereby achieving load balancing and improving the quality of live broadcast service transmission.
[0114] Embodiment 2
[0115] Based on the same inventive concept, the embodiment of the present invention also provides a vehicle-mounted system load balancing device, such as Figure 5 As shown, the device comprises:
[0116] The service filtering module 501 is configured to filter out the local port of the first live broadcast service;
[0117] The network card screening module 502 is configured to screen out a first network card whose network quality is greater than a first preset threshold;
[0118] A tag adding module 503 is configured to add a first tag to the first live broadcast service corresponding to the local port;
[0119] The data routing module 504 is configured to route the data packet including the first tag to the first network card.
[0120] It should be noted that the service filtering module 501 provided in this embodiment can implement all the functions included in step S101 in the first embodiment, solve the same technical problems, and achieve the same technical effects, which will not be repeated here; the local port may be a TCP network port.
[0121] It should be noted that the network card screening module 502 provided in this embodiment can realize all the functions included in step S102 in Example 1, solve the same technical problems, and achieve the same technical effects, which will not be repeated here; the network card is set on the network card load balancing server, and the network card load balancing server is a multi-network card gateway device. The device is a gateway device for high-speed rail carriages and has multiple 4G and 5G network cards. The problem solved by the present invention is also a method for optimizing data transmission loads of different network cards. The service data is first marked, and then the appropriate network card is selected according to the different network card traffic.
[0122] It should be noted that the tag adding module 503 provided in this embodiment can realize all the functions included in step S103 in the first embodiment, solve the same technical problems, and achieve the same technical effects, and will not be described in detail here.
[0123] It should be noted that the data routing module 504 provided in this embodiment can realize all the functions included in step S104 in the first embodiment, solve the same technical problems, and achieve the same technical effects, which will not be described in detail here.
[0124] It should be noted that the device provided in Example 2 and the method provided in Example 1 belong to the same inventive concept, solve the same technical problems, and achieve the same technical effects. The device provided in Example 2 can implement all the methods of Example 1, and the similarities will not be repeated here.
[0125] Embodiment 3
[0126] Based on the same inventive concept, the embodiment of the present invention also provides a vehicle-mounted system load balancing device, such as Figure 6 As shown, the device comprises:
[0127] It includes a memory 602, a processor 601 and a user interface 603;
[0128] The memory 602 is used to store computer programs;
[0129] The user interface 603 is used to interact with the user;
[0130] The processor 601 is configured to read the computer program in the memory 602. When the processor 601 executes the computer program, the following is achieved:
[0131] Filter out the local port of the first live broadcast service;
[0132] Filter out a first network card whose network quality is greater than a first preset threshold;
[0133] Adding a first tag to the first live broadcast service corresponding to the local port;
[0134] The data packet including the first tag is routed to the first network card.
[0135] Among them, Figure 6 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 601 and memory represented by memory 602. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The processor 601 is responsible for managing the bus architecture and general processing, and the memory 602 may store data used by the processor 601 when performing operations.
[0136] The processor 601 may be a CPU, an ASIC, an FPGA or a CPLD, and the processor 601 may also adopt a multi-core architecture.
[0137] When the processor 601 executes the computer program stored in the memory 602, any vehicle-mounted system load balancing method in the first embodiment is implemented.
[0138] It should be noted that the device provided in Example 3 and the method provided in Example 1 belong to the same inventive concept, solve the same technical problems, and achieve the same technical effects. The device provided in Example 3 can implement all the methods of Example 1, and the similarities will not be repeated here.
[0139] The present invention further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and when the processor executes the computer program, any vehicle-mounted system load balancing method in the first embodiment is implemented.
[0140] It should be noted that the division of units in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present invention may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0141] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0142] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0143] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0144] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A vehicle system load balancing method, characterized in that: include: Filter out the local port of the first live broadcast service; Filter out a first network card whose network quality is greater than a first preset threshold; Adding a first tag to the first live broadcast service corresponding to the local port; Routing the data packet including the first tag to the first network card; The local port for filtering out the first live broadcast service includes: Start a service monitoring program on the vehicle system device, and if a first live broadcast service request is monitored, filter out the local port of the first live broadcast service; The starting of the service monitoring program on the vehicle-mounted system device, if a first live broadcast service request is monitored, filtering out the local port of the first live broadcast service also includes: If the Nth live broadcast service request is monitored, and N is less than or equal to the number K of network cards whose network quality is greater than the first preset threshold, the following processing is performed: Filter out the local port of the Nth live broadcast service; Filter out the Nth network card whose network quality is greater than a first preset threshold; Adding an Nth mark to the Nth live broadcast service corresponding to the local port; Routing the data packet including the Nth tag to the Nth network card; Wherein, N is an integer greater than or equal to 2; If the Nth live broadcast service request is monitored, and N is greater than the number K of network cards whose network quality is greater than the first preset threshold, the following processing is performed: Filter out the local port of the Nth live broadcast service; Adding an Nth mark to the Nth live broadcast service corresponding to the local port; Routing the Mth data packet including the Nth tag to the Pth network card; Wherein, M is the number of the data packet including the Nth marker, and M is an integer greater than or equal to 0; P=MOD(M,K)+1, where MOD means the remainder when M is divided by K.
2. The method according to claim 1, characterized in that The step of screening out the first network card whose network quality is greater than the first preset threshold comprises: Based on the pre-measured network qualities of different network cards, a first network card having a network quality greater than a first preset threshold is screened out.
3. The method according to claim 2, characterized in that Also includes: A first quantity of live broadcast services is pre-evaluated, and the number of network cards to be used is determined to be the first quantity.
4. A vehicle-mounted system load balancing device, characterized in that: include: A service filtering module is configured to filter out a local port of a first live broadcast service; A network card screening module, configured to screen out a first network card whose network quality is greater than a first preset threshold; A tag adding module, configured to add a first tag to the first live broadcast service corresponding to the local port; a data routing module, configured to route the data packet including the first tag to the first network card; The local port for filtering out the first live broadcast service includes: Start a service monitoring program on the vehicle system device, and if a first live broadcast service request is monitored, filter out the local port of the first live broadcast service; The starting of the service monitoring program on the vehicle-mounted system device, if a first live broadcast service request is monitored, filtering out the local port of the first live broadcast service also includes: If the Nth live broadcast service request is monitored, and N is less than or equal to the number K of network cards whose network quality is greater than the first preset threshold, the following processing is performed: Filter out the local port of the Nth live broadcast service; Filter out the Nth network card whose network quality is greater than a first preset threshold; Adding an Nth mark to the Nth live broadcast service corresponding to the local port; Routing the data packet including the Nth tag to the Nth network card; Wherein, N is an integer greater than or equal to 2; If the Nth live broadcast service request is monitored, and N is greater than the number K of network cards whose network quality is greater than the first preset threshold, the following processing is performed: Filter out the local port of the Nth live broadcast service; Adding an Nth mark to the Nth live broadcast service corresponding to the local port; Routing the Mth data packet including the Nth tag to the Pth network card; Wherein, M is the number of the data packet including the Nth marker, and M is an integer greater than or equal to 0; P=MOD(M,K)+1, where MOD means the remainder when M is divided by K.
5. A vehicle-mounted system load balancing device, characterized in that: including a memory, a processor and a user interface; The memory is used to store computer programs; The user interface is used to interact with the user; The processor is used to read the computer program in the memory, and when the processor executes the computer program, it implements the vehicle-mounted system load balancing method as claimed in any one of claims 1 to 3.
6. A processor-readable storage medium, characterized in that: The processor-readable storage medium stores a computer program, and when the processor executes the computer program, the vehicle-mounted system load balancing method as claimed in any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Internet video direct broadcasting method and system
CN105392020A
Network video live broadcast relay device, relay control system, method and medium
CN109168011A
Method and System for Implementing Intelligent Network Services Automation
US20190319854A1
