COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM

The communication control device optimizes data transmission by combining data with varying priorities using threshold-based selection, reducing overhead and ensuring timely delivery of urgent data while maintaining communication performance.

JP7571660B2Active Publication Date: 2024-10-23DENSO CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2021084837
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-05-19
Publication Date
2024-10-23
Estimated Expiration
2041-05-19

AI Technical Summary

Technical Problem

Existing communication control methods incur significant overhead when transmitting highly urgent data due to frequent process switching, which is not adequately addressed by existing packet memory management strategies.

Method used

A communication control device that combines data with varying priorities to optimize transmission, using threshold-based selection to minimize overhead and ensure timely delivery of urgent data, employing a storage unit, acquisition unit, and a combination data generation unit to manage data transmission.

Benefits of technology

The solution effectively reduces overhead and prevents delays in transmitting urgent data by combining data with low and high priorities, thereby maintaining communication performance and preventing packet loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007571660000001
    Figure 0007571660000001
  • Figure 0007571660000002
    Figure 0007571660000002
  • Figure 0007571660000003
    Figure 0007571660000003
Patent Text Reader

Abstract

To provide an apparatus with suppressed overhead.SOLUTION: A communication control apparatus 10 includes: a storage unit 102 which stores first data; an acquisition unit 101 which acquires a new data element as second data; a selection unit 1031 which selects, when priority for transmitting the second data is higher than a predetermined reference value, first data, as connection destination data, out of multiple pieces of first data, for which a sum of first data size of the first data and second data size of the second data is smaller than a first threshold value, or selects, when the priority is lower than the predetermined reference value, first data of the above multiple pieces of first data, as connection destination data, for which the sum of the data sizes is smaller than a second threshold value; a combined data generation unit 1032 which combines the connection destination data with the second data to generate combined data, and stores the combined data, as first data, in the storage unit; and a transmission unit 104 which transmits at least one first data, out of the multiple pieces of first data, as transmission data.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a communication control device, a communication control method, and a communication control program for controlling data transmission in a communication device. [Background technology]

[0002] In general, in an electronic control device having a communication function, when data is generated in a user space such as an application, a data transmission process is performed via the kernel to transmit the data using a communication path. In the kernel, a process being executed is switched to a transmission process to perform the data transmission process, but if small data generated in the user space is frequently transmitted to the kernel, the communication performance may be degraded due to the overhead associated with the process switching.

[0003] In view of this, it is known that a method is used to reduce overhead and prevent a degradation of communication functions by combining multiple small data sizes generated in user space and sending the combined data to the kernel. In addition, it is also known that, in addition to this method, when data requiring urgent processing arrives, data transmission processing is forcibly performed.

[0004] For example, Patent Document 1 describes a method of combining multiple data into one large data block, and when the size of the data block exceeds a threshold value or when the data block being combined contains highly urgent data, a memory suitable for the size of the data block being combined is selected from packet memories with different memory capacities, and the data block being combined is transferred to the selected packet memory. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2008-11015 A Summary of the Invention [Problem to be solved by the invention]

[0006] Here, the present inventors have found the following problem. According to the method described in Patent Document 1, by using packet memories with different memory capacities, it is not necessary to search for unused areas in the memory, and the amount of processing can be reduced. However, when urgent data is received continuously, the data is transferred each time, so the overhead caused by continuously sending data to the kernel cannot be sufficiently reduced. Therefore, it is desirable to perform communication control that has the effect of reducing overhead even when urgent data is received continuously.

[0007] Therefore, an object of the present invention is to provide a communication control device and the like that can transmit urgent data without delay while suppressing an increase in overhead. [Means for solving the problem]

[0008] The transmission control device according to the present disclosure includes: A storage unit (102) storing a plurality of first data including one or more data elements; An acquisition unit (101) that acquires a new data element as second data; When the priority of transmitting the second data is higher than a predetermined reference value, select, from among the plurality of first data, a first data having a first data size and a second data size of the second data that is smaller than a first threshold value as a combination data; When the priority is lower than the predetermined reference value, a first data item having a sum of the first data size and the second data size smaller than a second threshold value that is larger than the first threshold value is selected as a merged data item from among the plurality of first data items. A selection unit (1031); a combined data generating unit (1032) that combines the combined data with the second data to generate combined data and stores the combined data in the storage unit as first data; A transmission unit (104) that transmits at least one of the plurality of first data as transmission data. 、 When the priority is lower than the predetermined reference value and the destination data includes the data element having a priority higher than the predetermined reference value, the selection unit further determines whether or not a sum of the first data size and the second data size of the destination data is smaller than the first threshold value; If the sum is smaller than the first threshold, the combined data generation unit generates the combined data by combining the combined data with the second data; If the sum is greater than the first threshold, the transmission unit transmits the combined data as the transmission data.

[0009] In addition, the claims and the numbers in parentheses attached to the constituent elements of the invention described in this section indicate the correspondence between the present invention and the embodiments described below, and are not intended to limit the present invention. Effect of the Invention

[0010] With the above-described configuration, the communication control device of the present disclosure can suppress an increase in overhead by combining low-priority data with other data and transmitting it until it reaches a large data size, and further combining high-priority data with other data and transmitting it without delay. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a block diagram showing an example of the configuration of a communication control device according to the first and second embodiments; [Diagram 2] FIG. 1 is a diagram for explaining data stored in a storage unit of a communication control device according to the first and second embodiments. [Diagram 3] FIG. 1 is a diagram for explaining data stored in a storage unit of a communication control device according to the first and second embodiments. [Figure 4] FIG. 1 is a diagram for explaining the operation of the communication control device according to the first and second embodiments. [Diagram 5] FIG. 11 is a diagram for explaining combined data generated by the communication control device of the second embodiment. [Figure 6] FIG. 11 is a diagram for explaining combined data generated by the communication control device of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[0013] The present invention means the invention described in the claims or in the Summary of the Invention section, and is not limited to the following embodiments. Furthermore, at least the words in quotation marks mean the words described in the claims or in the Summary of the Invention section, and are not limited to the following embodiments.

[0014] The configurations and methods described in the dependent claims are optional configurations and methods in the invention described in the independent claims. The configurations and methods of the embodiments corresponding to the configurations and methods described in the dependent claims, and the configurations and methods described only in the embodiments without being described in the claims, are optional configurations and methods in the present invention. The configurations and methods described in the embodiments when the description of the claims is broader than the description of the embodiments are also optional configurations and methods in the present invention in the sense that they are examples of the configurations and methods of the present invention. In either case, by being described in the independent claims, they become essential configurations and methods of the present invention.

[0015] The effects described in the embodiments are effects obtained when the configurations of the embodiments are provided as examples of the present invention, and are not necessarily effects that the present invention possesses.

[0016] When there are multiple embodiments, the configurations disclosed in each embodiment are not limited to each embodiment, but can be combined across the embodiments. For example, a configuration disclosed in one embodiment may be combined with another embodiment. Also, configurations disclosed in each of the multiple embodiments may be collected and combined.

[0017] The problem described in the section on problems that the invention is intended to solve is not a publicly known problem, but was discovered independently by the inventor, and this, together with the configuration and method of the present invention, is a fact that affirms the inventive step of the invention.

[0018] 1. Embodiment 1 (1) Configuration of communication control device 10 The configuration of a communication control device 10 according to the first embodiment will be described with reference to Fig. 1. The communication control device 10 includes an acquisition unit 101, a storage unit 102, a control unit 103, and a transmission unit 104.

[0019] The acquisition unit 101 is a data acquisition unit that acquires new data elements (corresponding to "second data"). For example, every time an application installed in a communication terminal device (not shown) including the communication control device 10 generates a new data element, the acquisition unit 101 acquires the new data element from the application. Alternatively, the acquisition unit 101 may acquire a data element from a device different from the communication control device 10 via a network. In the following embodiment, the data element newly acquired by the acquisition unit 101 is referred to as acquired data.

[0020] Although not shown in FIG. 1, the data elements newly acquired by the acquisition unit 101 may be temporarily stored in a FIFO (First In First Out) memory until they are saved in the storage unit 102 under the control of the control unit 103.

[0021] The storage unit 102 is a memory that stores a plurality of data (corresponding to "first data") including one or a plurality of data elements. The storage unit 102 is assumed to be a volatile memory such as a DRAM or an SRAM, but may be a non-volatile memory such as a flash memory or a hard disk (HDD). In the following embodiment, each of the plurality of data stored in the storage unit 102 is referred to as stored data.

[0022] 2 and 3 are diagrams for explaining the storage data stored in the storage unit 102. In the example shown in FIG. 2 and FIG. 3, the storage unit 102 has buffers #1 to #n, and each buffer stores storage data. Therefore, the storage unit 102 can store a maximum of n pieces of storage data. The data elements included in the storage data are data elements previously acquired by the acquisition unit 101. The number of data elements constituting the storage data is arbitrary, and the data may include multiple data elements as in the case of the storage data in buffer #1, or may include only one data element as in the case of the storage data in buffer #3. Each data element constituting the storage data has information indicating the priority of transmitting the data element itself.

[0023] 2 and 3, a single storage unit 102 has multiple buffers (#1 to #n), and each of the multiple buffers stores data. However, the communication control device 10 may have multiple storage units, and each of the multiple storage units may store data.

[0024] The control unit 103 controls the operations of the acquisition unit 101, the storage unit 102, and the transmission unit 104. The control unit 103 also realizes a combined data selection unit 1031, a combined data generation unit 1032, and a transmission data selection unit 1033 by itself.

[0025] The combined data selection unit 1031 (corresponding to the "selection unit") selects one piece of saved data from among the multiple pieces of saved data stored in the storage unit 102, based on the data size (corresponding to the "first data size") of each piece of saved data stored in the storage unit 102, the "priority" of the acquired data, and the data size (corresponding to the "second data size") of the acquired data. The saved data selected by the combined data selection unit 1031 is a candidate for data to be combined with the acquired data by the combined data generation unit 1032, which will be described later. Therefore, the data selected by the combined data selection unit 1031 can be said to be combined data of the acquired data.

[0026] Here, the "priority" is an index indicating the order of priority for transmitting data. This index is set based on a predetermined evaluation criterion, such as the allowable delay time of data or the type of data.

[0027] Specifically, the combined data selection unit 1031 judges whether the priority of transmitting the acquired data is higher than a "predetermined" "reference value." If it is judged that the priority of the acquired data is higher than the predetermined reference value, the combined data selection unit 1031 selects, as combined data, the stored data whose sum of the data size of the stored data and the data size of the acquired data is smaller than a preset threshold data size (hereinafter, a first threshold) from among the multiple stored data stored in the buffer of the storage unit 102.

[0028] Here, "predetermined" includes a case where it is always constant, as well as a case where it is uniquely determined depending on conditions. The "reference value" is not limited to a number, but may be expressed in multiple levels, such as a, b, and c. The term "more than" encompasses both cases where the value is the same as the comparison target and cases where the value is not the same.

[0029] On the other hand, if it is determined that the priority of the acquired data is lower than a predetermined reference value, the combined data selection unit 1031 selects as combined data the stored data from among the multiple stored data stored in the buffer of the storage unit 102, the stored data whose sum of the data size of the stored data and the data size of the acquired data is a predetermined threshold data size and is smaller than a threshold value (hereinafter referred to as the second threshold value) that is larger than the above-mentioned first threshold value.

[0030] The combined data selection unit 1031 further determines whether the selected combined data includes a data element having a higher priority than a predetermined reference value. If the selected combined data includes a data element having a higher priority, the combined data selection unit 1031 further determines whether the sum of the data size of the selected combined data and the data size of the acquired data is smaller than a first threshold value. If it is determined that the sum of the data sizes is smaller than the first threshold value, the combined data selection unit 1031 finally determines the selected combined data as the combined data to which the acquired data is to be combined. On the other hand, if it is determined that the sum of the data size of the selected combined data and the data size of the acquired data is larger than the first threshold value, the combined data selection unit 1031 determines that there is no saved data to which the acquired data is to be combined.

[0031] If the destination data selection unit 1031 determines that the priority of the acquired data is higher than a predetermined reference value and there is no stored data in the storage unit 102 whose sum of data sizes is smaller than a first threshold value, and if the destination data selection unit 1031 determines that the priority of the acquired data is lower than a predetermined reference value and there is no stored data whose sum of data sizes is smaller than a second threshold value, the destination data selection unit 1031 determines that there is no stored data to which the acquired data can be merged.

[0032] The first threshold is set to, for example, the value of the MTU (Maximum Transmission Unit). The stored data including the high-priority data element is combined with other data elements until the data size becomes smaller than the first threshold, and then transmitted. Data with a data size equal to or larger than the MTU is fragmented when transmitted, so that packet loss may occur on the transmission path. If packet loss occurs, all data will be retransmitted, which may lead to transmission delays. Therefore, by making the data size of the stored data including the high-priority data element smaller than the MTU, it is possible to prevent transmission delays from occurring in the high-priority data element.

[0033] On the other hand, the second threshold is set to an arbitrary value. The larger the value set for the second threshold, the more data can be transmitted collectively, and therefore an increase in overhead and, in turn, a decrease in communication performance can be suppressed. However, the larger the value of the second threshold, the higher the possibility of packet loss of fragmented data, and, in turn, the higher the possibility of transmission delays. Therefore, it is desirable to set the second threshold in consideration of communication performance and the effect of packet loss.

[0034] The first threshold and the second threshold are not limited to fixed values, and may be values ​​that change dynamically depending on the processing load of the kernel and the load of the transmission path, for example.

[0035] The combined data generating unit 1032 generates combined data by combining the combined data selected by the combined data selecting unit 1031 with the acquired data. The generated combined data is stored as new saved data in the buffer in which the saved data selected as the combined data was stored.

[0036] Furthermore, when the combined data selection unit 1031 determines that there is no saved data to which the acquired data can be combined, the combined data generation unit 1032 stores the acquired data acquired by the acquisition unit 101 in a buffer as saved data. When it is determined that there is no saved data to which the acquired data can be combined, one saved data of the multiple saved data stored in the saving unit 102 is transmitted from the transmitting unit 104. Therefore, the buffer to which the acquired data is to be saved is the buffer in which the saved data transmitted from the transmitting unit 104 was saved.

[0037] The transmission data selection unit 1033 selects at least one of the plurality of pieces of stored data stored in the buffer of the storage unit 102 as transmission data to be transmitted by the transmission unit 104 described later. The selection of stored data by the transmission data selection unit 1033 will be described later.

[0038] The transmitting unit 104 "transmits" the stored data selected by the transmission data selecting unit 1033 as transmission data. In this embodiment, it is assumed that the transmitting unit 104 has a function of transmitting the transmission data to the kernel of the communication control device 10, that is, a function of transferring the transmission data inside the communication control device 10. However, the transmitting unit 104 may itself have a function as a communication interface for the communication control device 10 and transmit the transmission data as an IP packet to another communication device via a network.

[0039] Here, "transmit" includes not only transmitting transmission data to another communication device via a network, but also transmitting data to a communication device having a function for transmitting transmission data to another communication device.

[0040] (2) Selection of destination data by destination data selection unit 1031 The selection of stored data to be combined with acquired data by the combined data selection unit 1031 will be further described.

[0041] First, a case will be described in which the acquisition unit 101 acquires a data element with a higher priority than a predetermined reference value while the storage unit 102 stores each of the stored data shown in FIG. 2. In this case, since the data size of the stored data in the buffer #1 exceeds the first threshold, the sum of the data size of the stored data and the data size of the acquired data naturally exceeds the first threshold. In addition, the sum of the data size of the stored data in the buffer #2 and the data size of the acquired data also exceeds the first threshold. On the other hand, the sum of the data size of the stored data in the buffer #3 or the buffer #n and the data size of the acquired data does not exceed the first threshold. Therefore, the destination data selection unit 1032 selects the stored data in the buffer #3 or the buffer #n as the destination data to be combined with the acquired data.

[0042] As shown in FIG. 2, when there are a plurality of stored data whose sum of data sizes does not exceed the first threshold, any method can be used to select one of the stored data as the merged data.

[0043] For example, the combined data selection unit 1031 selects the stored data with the largest data size as the combined data from among a plurality of stored data whose sum of data sizes does not exceed the first threshold. In this case, in the example of Fig. 2, the combined data selection unit 1031 selects the stored data in buffer #n. By selecting the stored data with a large data size as the data to be combined with the acquired data, the data size of the stored data will be closer to the first threshold or the second threshold in descending order of data size, and thus the data will be more likely to be transmitted as transmission data earlier.

[0044] In another example, the merged data selection unit 1031 may select, as a merged data of the acquired data, the stored data including the data element with the highest priority among a plurality of stored data whose sum of data sizes does not exceed the first threshold. For example, when the priority is set based on the allowable delay time, it can be said that the shorter the time until the allowable delay time of the data is reached, the higher the priority of transmitting the data. Therefore, by selecting the stored data including such priority data as a merged data of the acquired data, the data size of the stored data including the data element with the highest priority becomes closer to the first threshold or the second threshold, and thus the data is more likely to be transmitted earlier as the transmission data.

[0045] Next, a case will be described in which the acquisition unit 101 acquires a data element with a priority lower than a predetermined reference value while the storage unit 102 stores each of the stored data shown in FIG. 2. In this case, the sum of the data size of the stored data in the buffer #1 and the data size of the acquired data exceeds the second threshold. On the other hand, the sum of the data size of the stored data in the buffer #2, #3, or #n and the data size of the acquired data does not exceed the second threshold. Therefore, the destination data selection unit 1032 selects the stored data in the buffer #2, #3, or #n as the destination data to be merged with the acquired data. When there are multiple pieces of stored data whose sum of data sizes does not exceed the second threshold, the method of selecting one piece of stored data from among the stored data is the same as in the case of the first threshold. Here, the stored data in the buffer #2, which has the largest data size, is selected as the destination data to be merged with the acquired data.

[0046] Next, the combined data selection unit 1031 judges whether the selected combined data includes a data element having a priority higher than a predetermined reference value. In the example of Fig. 2, the stored data in the buffer #2 does not include a data element having a priority higher than a predetermined reference value. Therefore, the combined data selection unit 1031 finally selects the stored data in the buffer #2 as the combined data of the acquired data.

[0047] FIG. 3 shows an example in which the stored data stored in buffer #2 is different from that in FIG. 2. In FIG. 3, the stored data in buffer #2 includes a data element having a higher priority than a predetermined reference value. In the case of the stored data in FIG. 3, the combined data selection unit 1031 judges whether the sum of the data size of the stored data in buffer #2 and the data size of the acquired data is lower than a first threshold value. In the example of FIG. 3, since the sum of the data sizes is greater than the first threshold value, the combined data selection unit 1031 judges that there is no stored data to which the acquired data can be combined. In the example of FIG. 3, if the sum of the data sizes is smaller than the first threshold, the merged data selection unit 1031 finally determines the data stored in the selected buffer #2 as the merged data of the acquired data.

[0048] (3) Selection of transmission data by the transmission data selection unit 1033 Next, the selection of transmission data to be transmitted from the transmitting unit 104 by the transmission data selecting unit 1033 will be further described.

[0049] The transmission data selection unit 1033 selects, as transmission data, one of the multiple pieces of stored data stored in the storage unit 102, for example, by the method exemplified below. For example, the transmission data selection unit 1033 selects the stored data having the largest data size as the transmission data. This allows the size of data to be transmitted to the kernel to be increased, thereby suppressing overhead. Alternatively, the stored data having the largest data size may be selected as the transmission data from among the stored data including data elements having a priority higher than a predetermined reference value. In another example, the stored data including the data element having the highest priority may be selected as the transmission data. However, the stored data selected when a specific condition is satisfied is not selected by the above-described method, but the specific stored data is selected as the transmission data.

[0050] The transmission data selection unit 1033 selects transmission data when the combined data selection unit 1031 determines that there is no saved data to which the acquired data can be combined. Specifically, the timing at which the transmission data selection unit 1033 selects transmission data is as follows. (a) A case in which the priority of the acquired data is higher than a predetermined reference value and there is no stored data whose sum of data sizes is smaller than a first threshold value. (b) The priority of the acquired data is lower than a predetermined reference value, and there is no stored data whose sum of data sizes is smaller than a second threshold value. (c) The priority of the acquired data is lower than a predetermined reference value, and the stored data whose sum of data sizes is smaller than a second threshold includes a data element with a priority higher than a predetermined reference value, and further, the sum of data sizes is greater than the first threshold. In the case of (c), the transmission data selection unit 1033 selects, as the transmission data, the stored data selected by the combined data selection unit 1031. However, when the combined data selection unit 1031 selects the stored data by considering only the data size, the transmission data selection unit 1033 may reselect the stored data by further considering the priority.

[0051] The transmission data selection unit 1033 may further select transmission data at the following timings in addition to the above timings (a) to (c). (d) When the acquisition unit 101 does not acquire a new data element (e) When data including data for which the tolerable delay time has been reached is stored in the storage unit 102 (f) When a predetermined time has elapsed since the transmitter 104 transmitted the previous transmission data In addition, (e) is not limited to data that has reached the allowable delay time, but may be a case where the time until the allowable delay time is reached is less than a predetermined time and stored data including a data element approaching the allowable delay time is stored. In the case of (e), the transmission data selection unit 1033 selects the stored data including a data element approaching the allowable delay time as the transmission data.

[0052] (4) Operation of the communication control device 10 Next, the operation of the communication control device 10 of this embodiment will be described with reference to Fig. 4. Note that the following operation not only shows a data transmission control method in the communication control device 10, but also shows the processing procedure of a data transmission control program executed by the communication control device 10. The order of these processes is not limited to the order shown in Fig. 4. In other words, the order may be changed as long as there is no constraint such as a relationship in which a certain step utilizes the result of the previous step. The above applies not only to this embodiment, but also to the modified examples of this embodiment and other embodiments.

[0053] The acquisition unit 101 acquires a new data element transmitted from an application or another communication device as acquired data (S101). The merged data selection unit 1031 determines whether the priority of transmitting the acquired data acquired in S101 is higher than a predetermined reference value (S102). If the priority of the acquired data is higher than a predetermined reference value (S102: Yes), the merged data selection unit 1031 further determines whether there is stored data for which the sum of the data size of the acquired data and the data size of the stored data stored in the storage unit 102 is smaller than a first threshold value (S103).

[0054] If there is stored data whose sum of data sizes is smaller than the first threshold (S103: Yes), the merged data selection unit 1031 selects the stored data whose sum of data sizes is smaller than the first threshold as the stored data to be merged with the acquired data (S104). Then, the combined data generating unit 1032 combines the acquired data with the stored data selected by the combined data selecting unit 1031 to generate combined data, and stores the generated combined data in the storage unit 102 as stored data (S105).

[0055] On the other hand, if there is no stored data whose sum of data sizes is smaller than the first threshold (S103: No), the merged data selection unit 1031 determines that there is no stored data to which the acquired data can be merged. Then, the transmission data selection unit 1033 selects one of the stored data stored in the storage unit 102 as the transmission data (S106). The transmitting unit 104 transmits the transmission data selected in S106 (S107). Then, the combined data generating unit 1032 stores the acquired data as saved data in the buffer in which the transmitted data was stored (S108).

[0056] In S102, if the priority of the data is lower than a predetermined reference value (S102: No), the merged data selection unit 1031 determines whether there is stored data whose sum of the data size of the acquired data and the data size of the stored data stored in the storage unit 102 is smaller than a second threshold value (S109). If there is stored data whose sum of data sizes is smaller than the second threshold (S109: Yes), the merged data selection unit 1031 selects the stored data smaller than the second threshold as the stored data to be merged with the acquired data (S110). Next, the merged data selection unit 1031 determines whether or not the stored data selected in S110 includes a data element having a priority higher than a predetermined reference value (S111). If the result of the determination in S111 is that the acquired data does not contain a data element with a high priority, the combined data generation unit 1032 combines the acquired data with the stored data selected by the combined data selection unit 1031 to generate combined data, and stores the generated combined data in the storage unit 102 as stored data (S112).

[0057] If there is no stored data whose sum of data sizes is smaller than the second threshold value (S109: No), the merged data selection unit 1031 determines that there is no stored data to which the acquired data can be merged. In this case, the same processes as those in S106 to S108 described above are performed.

[0058] On the other hand, if the result of the determination in S111 is that a data element with a high priority is included, the combined data selection unit 1031 further determines whether the sum of the data size of the saved data selected in S110 and the data size of the acquired data is smaller than a first threshold value (S113). Here, if the data size and the sum are smaller than the first threshold, the process of S112 is performed, that is, the acquired data and the selected stored data are combined to generate combined data, and the generated combined data is stored in the storage unit 102 (S112). If the sum of the data sizes is greater than the first threshold, the above-mentioned processes of S106 to S108 are performed. In this case, the transmission data selected in S106 is the storage data selected in S110.

[0059] (5) Summary As described above, according to this embodiment, a data element with high priority is combined with other data elements so that the data size is smaller than the first threshold value and then transmitted. This makes it possible to suppress overhead and suppress deterioration of communication performance even when high priority data elements are acquired frequently. Furthermore, by setting the first threshold value to the MTU, it is possible to prevent packet loss during transmission of data including a high priority data element and to prevent transmission delays associated with packet loss.

[0060] Furthermore, according to this embodiment, low-priority data elements can be combined with other data elements up to a data size larger than the first threshold, thereby making it possible to reduce overhead associated with data transmission processing.

[0061] 2. Embodiment 2 In the first embodiment, the transmission unit 104 transmitted the stored data stored in each buffer of the storage unit 102 as the transmission data. In the present embodiment, a configuration will be described in which new data is generated based on the stored data stored in the storage unit 102, and the transmission unit 104 transmits the newly generated data as the transmission data. This embodiment is applied to the case where the priority of the acquired data is higher than a predetermined reference value.

[0062] The configuration of the communication control device 10 of this embodiment is the same as that of the first embodiment except for the cases described below, so the communication control device 10 of this embodiment will be described with reference to FIG.

[0063] The combined data generating unit 1032 of this embodiment generates new saved data using a method described below. In this embodiment, it is desirable for the saving unit 102 to have an empty spare buffer in order to save the saved data newly generated by the combined data generating unit 1032.

[0064] (1) Method 1 Method 1 for generating new combined data by combined data generating unit 1032 will be described with reference to FIG.

[0065] In the method 1, similarly to the first embodiment, the transmission data selection unit 1033 selects one of the plurality of pieces of storage data. FIG. 5a shows a state in which the transmission data selection unit 1033 selects the storage data stored in the buffer #1. When the transmission data selection unit 1033 selects the storage data stored in the buffer #1, the combined data generation unit 1032 extracts a part of the storage data (corresponding to "partial data") so that the sum of the data size of the part of the storage data stored in the buffer #1 and the data size of the acquired data is smaller than a first threshold value. Then, the combined data generation unit 1032 combines the extracted part of the storage data with the acquired data to generate new combined data. FIG. 5a shows the combined data generated by combining the part of the storage data with the acquired data. Note that it is preferable that the part of the storage data is extracted in order from the oldest data element of the storage data.

[0066] FIG. 5b shows a state in which the newly generated combined data is stored in the spare buffer, and buffer #1 stores stored data in which some data has been extracted from the stored data originally stored in buffer #1. When the combined data generating unit 1032 generates the combined data and stores it in the spare buffer, the transmitting unit 104 immediately transmits the combined data stored in the spare buffer as transmission data.

[0067] Here, "immediately" includes the case where the combined data is generated and necessary preparations are made.

[0068] In the example of the first embodiment, when a data element with a high priority is acquired, and there is no stored data to which the data element can be combined, one of the multiple stored data is sent, and the acquired data is stored in the free buffer. However, in this case, since the data element with a high priority is positioned at the beginning of the stored data, it may take some time for the stored data including the data element to be combined with other data elements and transmitted.

[0069] Therefore, according to method 1 of this embodiment, when a high-priority data element is acquired, a portion of the stored data already stored in the storage unit 102 is extracted, and the extracted portion of the stored data is combined with the newly acquired data to generate new combined data, and this combined data is immediately transmitted, making it possible to transmit the newly acquired high-priority data without delay.

[0070] (2) Method 2 Next, a second method for generating new combined data by the combined data generating unit 1032 will be described with reference to FIG. In method 2, similarly to method 1, the transmission data selection unit 1033 selects one of a plurality of pieces of stored data. FIG. 6a shows a state in which the transmission data selection unit 1033 selects the stored data stored in the buffer #1. When the transmission data selection unit 1033 selects the stored data stored in the buffer #1, the combined data generation unit 1032 extracts only data elements (corresponding to "high priority data") whose priority is higher than a predetermined reference value from the stored data stored in the buffer #1. Then, the combined data generation unit 1032 generates combined data by combining the data size of the extracted high priority data element with the acquired data. Note that, when the stored data stored in the buffer #1 includes many high priority data elements, the combined data generation unit 1032 extracts the high priority data element so that the sum of the data size of the data element and the data size of the acquired data is smaller than a first threshold value.

[0071] FIG. 6b shows a state in which the newly generated combined data is stored in the spare buffer, and buffer #1 stores stored data in which high priority data elements have been extracted from the stored data originally stored in buffer #1. As soon as the combined data generating unit 1032 generates the combined data and stores it in the spare buffer, the generating unit 104 transmits the combined data stored in the spare buffer as transmission data.

[0072] 6, the combined data generating unit 1032 extracts only data elements with high priority included in one buffer (buffer #1) to generate new combined data. However, the combined data generating unit 1032 may extract data elements with high priority from each of a plurality of stored data to generate new combined data.

[0073] As with method 1, in method 2, when high-priority data is acquired, new combined data including that data is generated and the combined data is immediately transmitted, making it possible to transmit the newly acquired high-priority data without delay.

[0074] 3. Summary The features of the communication control device and the like in each embodiment of the present invention have been described above.

[0075] The terms used in each embodiment are merely examples and may be replaced with synonymous terms or terms having the same functions.

[0076] The block diagrams used to explain the embodiments classify and organize the configuration of the device by function. The blocks showing the respective functions are realized by any combination of hardware or software. In addition, since the block diagrams show the functions, they can also be understood as disclosures of a method invention and a program invention that realizes the method.

[0077] The order of the functional blocks that can be understood as the processes, flows, and methods described in each embodiment may be changed as long as there are no constraints such as a relationship in which one step utilizes the results of another step prior to it.

[0078] The terms first, second, through Nth (N is an integer) used in each embodiment and in the claims are used to distinguish two or more configurations or methods of the same type, and do not limit the order or superiority or inferiority.

[0079] Moreover, examples of the configuration of the communication control device of the present invention include the following. Examples of the component form include a semiconductor element, an electronic circuit, a module, and a microcomputer. Examples of semi-finished products include electronic control units (ECUs (Electric Control Units)) and system boards. Finished product forms include mobile phones, smartphones, tablets, personal computers (PCs), workstations, and servers. Other examples include devices with communication functions, such as video cameras, still cameras, and car navigation systems.

[0080] Furthermore, necessary functions such as an antenna and a communication interface may be added to the communication control device.

[0081] In addition, the present invention can be realized not only by dedicated hardware having the configuration and functions described in each embodiment, but also as a combination of a program for realizing the present invention recorded on a recording medium such as a storage unit or a hard disk, and general-purpose hardware having a dedicated or general-purpose CPU and storage unit capable of executing the program.

[0082] A program stored in a non-transient physical recording medium (for example, an external storage device (hard disk, USB storage unit, CD / BD, etc.) or an internal storage device (RAM, ROM, etc.)) of dedicated or general-purpose hardware can also be provided to the dedicated or general-purpose hardware via a recording medium, or via a communication line from a server without using a recording medium. This makes it possible to always provide the latest functions through program upgrades. [Industrial Applicability]

[0083] The present invention is directed to a communication control device for controlling communications of a general-purpose communication device. [Explanation of symbols]

[0084] 10 communication control device, 101 data acquisition unit, 102 storage unit, 1031 combined data selection unit, 1032 combined data generation unit, transmission unit 104

Claims

1. A storage unit (102) storing a plurality of first data including one or more data elements; An acquisition unit (101) that acquires a new data element as second data; When the priority of transmitting the second data is higher than a predetermined reference value, select, from among the plurality of first data, a first data having a first data size and a second data size of the second data that are smaller than a first threshold value as a combination data; When the priority is lower than the predetermined reference value, a first data item having a sum of the first data size and the second data size smaller than a second threshold value, the second threshold value being larger than the first threshold value, is selected as a merged data item from among the plurality of first data items. A selection unit (1031); a combined data generating unit (1032) that combines the combined data with the second data to generate combined data and stores the combined data in the storage unit as first data; A transmission unit (104) that transmits at least one of the plurality of first data as transmission data; Equipped with When the priority is lower than the predetermined reference value and the destination data includes the data element having a priority higher than the predetermined reference value, the selection unit further determines whether or not a sum of the first data size and the second data size of the destination data is smaller than the first threshold value; If the sum is smaller than the first threshold, the combined data generation unit generates the combined data by combining the combined data and the second data; If the sum is greater than the first threshold, the transmission unit transmits the combined data as the transmission data. Communications control device.

2. A storage unit (102) storing a plurality of first data including one or more data elements; An acquisition unit (101) that acquires a new data element as second data; When the priority of transmitting the second data is higher than a predetermined reference value, select, from among the plurality of first data, a first data having a first data size and a second data size of the second data that are smaller than a first threshold value as a combination data; When the priority is lower than the predetermined reference value, a first data item having a sum of the first data size and the second data size smaller than a second threshold value, the second threshold value being larger than the first threshold value, is selected as a merged data item from among the plurality of first data items. A selection unit (1031); a combined data generating unit (1032) that combines the combined data with the second data to generate combined data and stores the combined data in the storage unit as first data; A transmission unit (104) that transmits at least one of the plurality of first data as transmission data; Equipped with If there is no first data whose priority is lower than the predetermined reference value and whose sum is smaller than the second threshold value, The transmission unit transmits one of the plurality of first data as the transmission data, The combined data generation unit stores the second data in the storage unit as first data. Communications control device.

3. the transmitting unit transmits, as the transmission data, the first data having the largest first data size among the plurality of first data; 3. The communication control device according to claim 2.

4. A storage unit (102) storing a plurality of first data including one or more data elements; An acquisition unit (101) that acquires a new data element as second data; When the priority of transmitting the second data is higher than a predetermined reference value, select, from among the plurality of first data, a first data having a first data size and a second data size of the second data that are smaller than a first threshold value as a combination data; When the priority is lower than the predetermined reference value, a first data item having a sum of the first data size and the second data size smaller than a second threshold value, the second threshold value being larger than the first threshold value, is selected as a merged data item from among the plurality of first data items. A selection unit (1031); a combined data generating unit (1032) that combines the combined data with the second data to generate combined data and stores the combined data in the storage unit as first data; A transmission unit (104) that transmits at least one of the plurality of first data as transmission data; Equipped with If there is no first data whose priority is higher than the predetermined reference value and whose sum is smaller than the first threshold value, the transmitting unit transmits, as the transmission data, a first data item having a largest first data size among the plurality of first data items; The combined data generation unit stores the second data in the storage unit as first data. Communications control device.

5. the transmitting unit transmits, as the transmission data, the first data further including a data element having a priority higher than the predetermined reference value among the plurality of first data; 5. The communication control device according to claim 3 or 4.

6. A storage unit (102) storing a plurality of first data including one or more data elements; An acquisition unit (101) that acquires a new data element as second data; When the priority of transmitting the second data is higher than a predetermined reference value, select, from among the plurality of first data, a first data having a first data size and a second data size of the second data that are smaller than a first threshold value as a combination data; When the priority is lower than the predetermined reference value, a first data item having a sum of the first data size and the second data size smaller than a second threshold value, the second threshold value being larger than the first threshold value, is selected as a merged data item from among the plurality of first data items. A selection unit (1031); a combined data generating unit (1032) that combines the combined data with the second data to generate combined data and stores the combined data in the storage unit as first data; A transmission unit (104) that transmits at least one of the plurality of first data as transmission data; Equipped with If there is no first data whose priority is higher than the predetermined reference value and whose sum is smaller than the first threshold value, the combined data generation unit extracts partial data, the part of the first data having a sum of a data size of the part of the first data and a data size of the second data being smaller than the first threshold value, and combines the partial data with the second data to generate combined data; the transmitting unit transmits the combined data as the transmission data immediately after the combined data is generated. Communications control device.

7. A storage unit (102) storing a plurality of first data including one or more data elements; An acquisition unit (101) that acquires a new data element as second data; When the priority of transmitting the second data is higher than a predetermined reference value, select, from among the plurality of first data, a first data having a first data size and a second data size of the second data that are smaller than a first threshold value as a combination data; When the priority is lower than the predetermined reference value, a first data item having a sum of the first data size and the second data size smaller than a second threshold value, the second threshold value being larger than the first threshold value, is selected as a merged data item from among the plurality of first data items. A selection unit (1031); a combined data generating unit (1032) that combines the combined data with the second data to generate combined data and stores the combined data in the storage unit as first data; A transmission unit (104) that transmits at least one of the plurality of first data as transmission data; Equipped with If there is no first data whose priority is higher than the predetermined reference value and whose sum is smaller than the first threshold value, the combined data generation unit extracts high priority data, which is a data element having a priority higher than the predetermined reference value from among the data elements included in the first data, and the sum of a data size of the high priority data and the second data size is smaller than the first threshold value, and generates combined data by combining the high priority data and the second data; the transmitting unit transmits the combined data as the transmission data immediately after the combined data is generated. Communications control device.

8. The first threshold is a maximum transmission unit (MTU). The communication control device according to any one of claims 1 to 7.

9. A communication control method executed by a communication control device having a storage unit storing a plurality of first data including one or more data elements, A new data element is acquired as a second data (S101); When the priority of transmitting the second data is higher than a predetermined reference value (S102), Among the plurality of first data, a first data in which a sum of a first data size of the first data and a second data size of the second data is smaller than a first threshold is selected as a combination target data (S103, S104); The combined data is generated by combining the combined data with the second data, and the combined data is stored in the storage unit as first data (S105); If the priority is lower than the predetermined reference value (S102), Among the plurality of first data, a first data whose sum of the first data size and the second data size is smaller than a second threshold value that is larger than the first threshold value is selected as a merge destination data (S109, S110); If the destination data includes the data element having a priority higher than the predetermined reference value, it is further determined whether the sum of the first data size and the second data size of the destination data is smaller than the first threshold value (S111, S113); If the sum is smaller than the first threshold, the destination data and the second data are combined to generate the combined data, and the combined data is stored in the storage unit as first data (S112); If the sum is greater than the first threshold, the combined data is transmitted as transmission data (S107); Communications control method.

10. A communication control program executable on a communication control device having a storage unit storing a plurality of first data including one or more data elements, A new data element is acquired as a second data (S101); When the priority of transmitting the second data is higher than a predetermined reference value (S102), Among the plurality of first data, a first data in which a sum of a first data size of the first data and a second data size of the second data is smaller than a first threshold is selected as a combination target data (S103, S104); The combined data is generated by combining the combined data with the second data, and the combined data is stored in the storage unit as first data (S105); If the priority is lower than the predetermined reference value (S102), Among the plurality of first data, a first data whose sum of the first data size and the second data size is smaller than a second threshold value that is larger than the first threshold value is selected as a merge destination data (S109, S110); If the destination data includes the data element having a priority higher than the predetermined reference value, it is further determined whether the sum of the first data size and the second data size of the destination data is smaller than the first threshold value (S111, S113); If the sum is smaller than the first threshold, the destination data and the second data are combined to generate the combined data, and the combined data is stored in the storage unit as first data (S112); If the sum is greater than the first threshold, the combined data is transmitted as transmission data (S107); A communication control program that causes the communication control device to execute a process.

11. A communication control method executed by a communication control device having a storage unit storing a plurality of first data including one or more data elements, A new data element is acquired as a second data (S101); When the priority of transmitting the second data is higher than a predetermined reference value (S102), Among the plurality of first data, a first data in which a sum of a first data size of the first data and a second data size of the second data is smaller than a first threshold is selected as a combination target data (S103, S104); The combined data is generated by combining the combined data with the second data, and the combined data is stored in the storage unit as first data (S105); If the priority is lower than the predetermined reference value (S102), Among the plurality of first data, a first data whose sum of the first data size and the second data size is smaller than a second threshold value that is larger than the first threshold value is selected as a merge destination data (S109, S110); If there is no first data whose sum is smaller than the second threshold value, one of the first data is transmitted as transmission data (S109, S107), and the second data is stored in the storage unit as the first data (S108). Communications control method.

12. A communication control method executed by a communication control device having a storage unit storing a plurality of first data including one or more data elements, A new data element is acquired as a second data (S101); When the priority of transmitting the second data is higher than a predetermined reference value (S102), Among the plurality of first data, a first data in which a sum of a first data size of the first data and a second data size of the second data is smaller than a first threshold is selected as a combination data (S103, S104), the combination data is generated by combining the combination data with the second data, and the combination data is stored in the storage unit as the first data (S105), If there is no first data whose sum is smaller than the first threshold value, transmit the first data whose first data size is the largest among the plurality of first data as transmission data (S106, S107), and store the second data as the first data in the storage unit (S108); If the priority is lower than the predetermined reference value (S102), Among the plurality of first data, a first data whose sum of the first data size and the second data size is smaller than a second threshold value that is larger than the first threshold value is selected as a merge destination data (S109, S110); Communications control method.

13. A communication control method executed by a communication control device having a storage unit storing a plurality of first data including one or more data elements, A new data element is acquired as a second data (S101); When the priority of transmitting the second data is higher than a predetermined reference value (S102), Among the plurality of first data, a first data in which a sum of a first data size of the first data and a second data size of the second data is smaller than a first threshold is selected as a combination data (S103, S104), the combination data is generated by combining the combination data with the second data, and the combination data is stored in the storage unit as the first data (S105), If there is no first data whose sum is smaller than the first threshold value, extracting partial data whose sum of a data size of a portion of the first data and a data size of the second data is smaller than the first threshold value, combining the partial data with the second data to generate combined data, and immediately transmitting the combined data as transmission data after the combined data is generated; If the priority is lower than the predetermined reference value (S102), Among the plurality of first data, a first data whose sum of the first data size and the second data size is smaller than a second threshold value that is larger than the first threshold value is selected as a merge destination data (S109, S110); Communications control method.

14. A communication control method executed by a communication control device having a storage unit storing a plurality of first data including one or more data elements, A new data element is acquired as a second data (S101); When the priority of transmitting the second data is higher than a predetermined reference value (S102), Among the plurality of first data, a first data in which a sum of a first data size of the first data and a second data size of the second data is smaller than a first threshold is selected as a combination data (S103, S104), the combination data is generated by combining the combination data with the second data, and the combination data is stored in the storage unit as the first data (S105), if there is no first data having the sum smaller than the first threshold value, extracting high priority data, which is a data element having a priority higher than the predetermined reference value among the data elements included in the first data, and the sum of the data size of the high priority data and the second data size is smaller than the first threshold value, combining the high priority data and the second data to generate combined data, and immediately after generating the combined data, transmitting the combined data as transmission data; If the priority is lower than the predetermined reference value (S102), Among the plurality of first data, a first data whose sum of the first data size and the second data size is smaller than a second threshold value that is larger than the first threshold value is selected as a merge destination data (S109, S110); Communications control method.

15. A communication control program executable on a communication control device having a storage unit storing a plurality of first data including one or more data elements, A new data element is acquired as a second data (S101); When the priority of transmitting the second data is higher than a predetermined reference value (S102), Among the plurality of first data, a first data in which a sum of a first data size of the first data and a second data size of the second data is smaller than a first threshold is selected as a combination target data (S103, S104); The combined data is generated by combining the combined data with the second data, and the combined data is stored in the storage unit as first data (S105); If the priority is lower than the predetermined reference value (S102), Among the plurality of first data, a first data whose sum of the first data size and the second data size is smaller than a second threshold value that is larger than the first threshold value is selected as a merge destination data (S109, S110); If there is no first data whose sum is smaller than the second threshold value, one of the first data is transmitted as transmission data (S109, S107), and the second data is stored in the storage unit as the first data (S108). A communication control program that causes the communication control device to execute a process.

16. A communication control program executable on a communication control device having a storage unit storing a plurality of first data including one or more data elements, A new data element is acquired as a second data (S101); When the priority of transmitting the second data is higher than a predetermined reference value (S102), Among the plurality of first data, a first data in which a sum of a first data size of the first data and a second data size of the second data is smaller than a first threshold is selected as a combination data (S103, S104), the combination data is generated by combining the combination data with the second data, and the combination data is stored in the storage unit as the first data (S105), If there is no first data whose sum is smaller than the first threshold value, transmit the first data whose first data size is the largest among the plurality of first data as transmission data (S106, S107), and store the second data as the first data in the storage unit (S108); If the priority is lower than the predetermined reference value (S102), Among the plurality of first data, a first data whose sum of the first data size and the second data size is smaller than a second threshold value that is larger than the first threshold value is selected as a merge destination data (S109, S110); A communication control program that causes the communication control device to execute a process.

17. A communication control program executable on a communication control device having a storage unit storing a plurality of first data including one or more data elements, A new data element is acquired as a second data (S101); When the priority of transmitting the second data is higher than a predetermined reference value (S102), Among the plurality of first data, a first data in which a sum of a first data size of the first data and a second data size of the second data is smaller than a first threshold is selected as a combination data (S103, S104), the combination data is generated by combining the combination data with the second data, and the combination data is stored in the storage unit as the first data (S105), If there is no first data whose sum is smaller than the first threshold value, extracting partial data whose sum of a data size of a portion of the first data and a data size of the second data is smaller than the first threshold value, combining the partial data with the second data to generate combined data, and immediately transmitting the combined data as transmission data after the combined data is generated; If the priority is lower than the predetermined reference value (S102), Among the plurality of first data, a first data whose sum of the first data size and the second data size is smaller than a second threshold value that is larger than the first threshold value is selected as a merge destination data (S109, S110); A communication control program that causes the communication control device to execute a process.

18. A communication control program executable on a communication control device having a storage unit storing a plurality of first data including one or more data elements, A new data element is acquired as a second data (S101); When the priority of transmitting the second data is higher than a predetermined reference value (S102), Among the plurality of first data, a first data in which a sum of a first data size of the first data and a second data size of the second data is smaller than a first threshold is selected as a combination data (S103, S104), the combination data is generated by combining the combination data with the second data, and the combination data is stored in the storage unit as the first data (S105), if there is no first data having the sum smaller than the first threshold value, extracting high priority data, which is a data element having a priority higher than the predetermined reference value among the data elements included in the first data, and the sum of the data size of the high priority data and the second data size is smaller than the first threshold value, combining the high priority data and the second data to generate combined data, and immediately after generating the combined data, transmitting the combined data as transmission data; If the priority is lower than the predetermined reference value (S102), Among the plurality of first data, a first data whose sum of the first data size and the second data size is smaller than a second threshold value that is larger than the first threshold value is selected as a merge destination data (S109, S110); A communication control program that causes the communication control device to execute a process.

Citation Information

Patent Citations

  • Radio transmitting method, radio transmitter, and wireless LAN system

    JP2006135486A

  • Packet processing method and packet processing apparatus

    JP2008011015A

  • Transmission device, transmission method, program, storage medium memorizing program, and integrated circuit

    JP2009147598A

  • Terminal device, relay device, communication device, communication system, communication method and program

    JP2019057825A

  • Packet processing device and packet processing method

    JP2020182027A