Relay device, communication system, control method, and control program
The relay device stabilizes communication by managing data transmission through strategic allocation based on set limits and historical data, addressing the issue of IoT devices exceeding communication line capacity.
Patent Information
- Application Number
- JP2021079696
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-05-10
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-05-10
AI Technical Summary
The increase in IoT devices leads to increased communication demands that can exceed the upper limits of communication lines, causing instability or slowdowns, which affects stable data transmission between IoT devices and servers.
A relay device manages communication by calculating and allocating data transmission based on transmission control information, including a validity period and periodic communication amounts, to ensure data is transmitted within the set limits, using a storage unit to store resource and history information, and a management control unit to update transmission strategies.
This approach stabilizes communication by ensuring data is transmitted efficiently within the communication limits, preventing slowdowns and interruptions.
Smart Images

Figure 0007577024000012 
Figure 0007577024000013 
Figure 0007577024000014
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a relay device, a communication system, a control method, and a control program. [Background technology]
[0002] The number of IoT (Internet of Things) devices is increasing. For example, an IoT device is a sensor. Data obtained by measurement by the sensor may be transmitted to a server. The server may receive similar data from multiple sensors. A technology for managing multiple sensors in groups has been proposed (see Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2018-11122 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, with the increase in IoT devices, the amount of communication from IoT devices to servers is also increasing. IoT devices and servers may communicate with each other via communication lines that have an upper limit on the amount of communication. For example, IoT devices and servers communicate with each other via mobile data communication lines. In a communication line where an upper limit is set for the amount of data transmitted, if the amount of data transmitted exceeds the upper limit, communication will be temporarily disabled. Or, if the amount of data transmitted exceeds the upper limit, the communication speed will slow down. Thus, if the amount of data transmitted exceeds the upper limit, there is a problem that stable communication cannot be realized.
[0005] An object of the present disclosure is to achieve stable communication. [Means for solving the problem]
[0006] A relay device according to an embodiment of the present disclosure is provided. The relay device relays data between a plurality of terminal devices and a server. The relay device includes a transmission control unit that transmits data received from the plurality of terminal devices to the server via a communication line in which an upper limit is set for an upstream communication volume, which is a communication volume from the relay device to the server, based on transmission control information, and a storage unit that stores resource information, which is information including the transmission control information, a valid period in which the upper limit is set, and a first periodic communication volume, which is the upstream communication volume per set period, and history information indicating the data volume of data received from the plurality of terminal devices, and calculates a remaining valid period based on the valid period and information indicating the current time, and calculates the remaining valid period based on the remaining valid period and the first periodic communication volume. a management control unit that calculates a first remaining upstream communication volume, which is the communication volume until an upper limit is reached, calculates a total reception volume, which is the amount of data that the relay device is estimated to receive from the multiple terminal devices during the remaining valid period, based on the history information, and if the total reception volume is greater than the first remaining upstream communication volume, allocates a communication volume to each of the multiple terminal devices based on the first remaining upstream communication volume, calculates a transmission period and a transmission volume per time for transmitting data to the server based on an allocated communication volume, which is the communication volume allocated to each of the multiple terminal devices, and updates the transmission control information to information including the transmission period and the transmission volume per time. Effect of the Invention
[0007] According to the present disclosure, stable communication can be achieved. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 illustrates a communication system according to a first embodiment. [Diagram 2] FIG. 2 is a diagram illustrating hardware included in the gateway device of the first embodiment. [Diagram 3] 2 is a block diagram showing the functions of the gateway device according to the first embodiment. FIG. [Figure 4] FIG. 4 is a diagram illustrating an example of communication control information according to the first embodiment. [Diagram 5] FIG. 4 is a diagram showing an example of history information according to the first embodiment. [Figure 6] FIG. 4 is a diagram illustrating an example of resource information according to the first embodiment. [Figure 7] FIG. 4 is a diagram illustrating an example of transmission control information according to the first embodiment. [Figure 8] 4 is a flowchart illustrating an example of a process executed by the gateway device according to the first embodiment. [Figure 9] 13 is a flowchart (part 1) illustrating an example of processing executed by a gateway device according to the second embodiment. [Figure 10] 13 is a second flowchart illustrating an example of a process executed by the gateway device according to the second embodiment. [Figure 11] FIG. 11 is a block diagram showing the functions of a gateway device according to a third embodiment. [Figure 12] FIG. 13 is a diagram illustrating an example of resource information according to the third embodiment. [Figure 13] FIG. 13 is a diagram showing an example of server management information according to the third embodiment. [Figure 14] FIG. 11 is a block diagram showing the functions of a server according to the third embodiment. [Figure 15] FIG. 11 is a diagram showing an example of communication control information held by a server of the third embodiment. [Figure 16] FIG. 13 is a diagram showing an example of history information held by a server of the third embodiment. [Figure 17] FIG. 11 is a diagram illustrating an example of resource information held by a server according to a third embodiment. [Figure 18] FIG. 13 is a diagram showing an example of transmission control information held by a server of the third embodiment. [Figure 19] 13 is a flowchart (part 1) illustrating an example of processing executed by a gateway device according to the third embodiment. [Figure 20] 13 is a flowchart (part 2) illustrating an example of a process executed by the gateway device according to the third embodiment. [Figure 21] 13 is a flowchart (part 3) illustrating an example of a process executed by the gateway device according to the third embodiment. [Figure 22]13 is a flowchart showing an example of processing executed by a server according to the third embodiment. [Figure 23] FIG. 13 is a diagram illustrating an example of a communication system according to a fourth embodiment. [Figure 24] 13 is a flowchart illustrating an example of a process executed by a virtual server according to the fourth embodiment. [Diagram 25] 13 is a flowchart showing an example of a process executed by a gateway device according to a fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment will be described with reference to the drawings. The following embodiment is merely an example, and various modifications are possible within the scope of the present disclosure.
[0010] Embodiment 1 1 is a diagram showing a communication system according to the embodiment 1. The communication system includes a gateway device 100, a server 200, and terminal devices 300a, 300b, and 300c. The gateway device 100 and the server 200 are connected via a network 10, which is a communication line with an upper limit set on the communication volume. For example, the network 10 is a mobile data communication line. The gateway device 100 and the terminal devices 300a, 300b, and 300c are connected via a network 20. The gateway device 100 and the terminal devices 300a, 300b, and 300c may also be directly connected. The network 10 and the network 20 are wired networks or wireless networks.
[0011] The gateway device 100 is a device that executes the control method. The gateway device 100 is also called a relay device. The gateway device 100 relays data between the server 200 and the terminal devices 300a, 300b, and 300c.
[0012] Here, the terminal devices 300a, 300b, and 300c are collectively referred to as the terminal device 300. For example, the terminal device 300 is an IoT device. Specifically, the terminal device 300 is a camera, a temperature sensor, a human presence sensor, a solar radiation sensor, a GPS (Global Positioning System) sensor, or the like. In addition, for example, the terminal device 300 is a sensor that notifies the state of a facility or device. The terminal device 300 transmits data to the gateway device 100 via the network 20. The gateway device 100 transmits data to the server 200 via the network 10.
[0013] Next, the hardware of the gateway device 100 will be described. 2 is a diagram showing hardware included in the gateway device of the embodiment 1. The gateway device 100 includes a processor 101, a volatile storage device 102, and a non-volatile storage device 103.
[0014] The processor 101 controls the entire gateway device 100. For example, the processor 101 is a CPU (Central Processing Unit) or an FPGA (Field Programmable Gate Array). The processor 101 may be a multiprocessor. The gateway device 100 may have a processing circuit. The processing circuit may be a single circuit or a composite circuit.
[0015] The volatile storage device 102 is a main storage device of the gateway device 100. For example, the volatile storage device 102 is a random access memory (RAM). The non-volatile storage device 103 is an auxiliary storage device of the gateway device 100. For example, the non-volatile storage device 103 is a hard disk drive (HDD) or a solid state drive (SSD). Like the gateway device 100, the server 200 includes a processor, a volatile storage device, and a non-volatile storage device.
[0016] Next, the functions of the gateway device 100 will be described. 3 is a block diagram showing functions of the gateway device according to the embodiment 1. The gateway device 100 includes a storage unit 110, a storage unit 120, a communication control unit 130, a transmission control unit 140, and a management control unit 150.
[0017] The storage unit 110 and the accumulation unit 120 may be realized as a storage area secured in the volatile storage device 102 or the non-volatile storage device 103 . A part or all of the communication control unit 130, the transmission control unit 140, and the management control unit 150 may be realized by a processing circuit. Also, a part or all of the communication control unit 130, the transmission control unit 140, and the management control unit 150 may be realized as a module of a program executed by the processor 101. For example, the program executed by the processor 101 is also called a control program. For example, the control program is recorded on a recording medium.
[0018] The storage unit 110 stores communication control information 111, history information 112, resource information 113, and transmission control information 114. Details of the communication control information 111, history information 112, resource information 113, and transmission control information 114 will be described later. The communication control unit 130 receives data from the terminal device 300. The communication control unit 130 performs processing based on the communication control information 111. An example of the communication control information 111 will now be described.
[0019] 4 is a diagram showing an example of communication control information according to the first embodiment. The communication control information 111 is stored in the storage unit 110. The communication control information 111 has items such as a communication ID (identifier), an IP (Internet Protocol) address, a terminal device, a communication mode, a reception cycle, a reception amount / times, and an action.
[0020] In the communication ID field, a communication identifier is registered. In the IP address field, an IP address is registered. In the terminal device field, a type or name of the terminal device 300 is registered. In the communication mode field, whether the terminal device 300 transmits data periodically is registered. In the communication mode field, whether the terminal device 300 transmits data when an event occurs is registered. In the reception cycle field, a reception cycle is registered. For example, a reception cycle of "30 seconds" indicates that the communication control unit 130 receives data from the terminal device 300 at a "30 second" cycle. In the reception amount / time field, an amount of data received by the communication control unit 130 per time is registered. In the action field, a control content of the communication control unit 130 is registered. For example, in the action field, "transparent", "discard", or "compress" is registered. "Transparent" indicates that the data received by the communication control unit 130 is stored in the storage unit 120 and the data is immediately transmitted. "Discard" indicates that the communication control unit 130 discards the data received. For example, data from temperature sensor A2 is discarded because it is included in the data from temperature sensor A1. "Compression" indicates that the data received by communication control unit 130 is compressed. For example, the data from camera A3 (e.g., video) is large in volume, so the data from camera A3 is compressed. Communication control unit 130 stores the compressed data in storage unit 120. As indicated by the communication control information 111, the terminal device can be identified from the communication ID.
[0021] The communication control unit 130 registers the amount of data received from the terminal device 300 in the history information 112. The communication control unit 130 also registers the amount of data transmitted to the terminal device 300 in the history information 112. An example of the history information 112 will now be given.
[0022] Fig. 5 is a diagram showing an example of history information in the first embodiment. History information 112 is stored in the storage unit 110. History information 112 is created for each communication ID. Fig. 5 shows an example of history information 112 which is information indicating information on data transmission and reception by the communication control unit 130 for communication ID "1001". The history information 112 has the following items: communication ID, date, time, transmission amount, reception amount, cumulative transmission amount, and cumulative reception amount.
[0023] The communication ID field registers a communication identifier. The date field registers a date. The time field registers a time. The transmission volume field registers the volume of data transmitted by the communication control unit 130 to the terminal device 300. The reception volume field registers the volume of data received by the communication control unit 130 from the terminal device 300. The cumulative transmission volume field registers the cumulative transmission volume. The cumulative reception volume field registers the cumulative reception volume. In this manner, the history information 112 registers the amounts of data received from the terminal devices 300a, 300b, and 300c.
[0024] The transmission control unit 140 transmits the data stored in the storage unit 120 to the server 200 based on the transmission control information 114. In other words, the transmission control unit 140 transmits the data received from the terminal devices 300a, 300b, and 300c to the server 200 via the network 10 based on the transmission control information 114. The transmission control unit 140 registers the amount of data transmitted to the server 200 in the history information 112. In addition, a reception control unit, which will be described later, receives data from the server 200. The reception control unit registers the amount of data received from the server 200 in the history information 112. In this way, the transmission control information 114 and information on data transmission and reception by the reception control unit are registered in the history information 112. Note that detailed functions of the reception control unit will be described in the third embodiment.
[0025] The management control unit 150 manages the resource information 113. Here, an example of the resource information 113 will be given.
[0026] 6 is a diagram showing an example of resource information according to the first embodiment. The resource information 113 is stored in the storage unit 110. The resource information 113 has items such as validity period, upper limit of upstream communication volume, remaining upstream communication volume, and upstream communication volume / day.
[0027] In the field of validity period, the validity period of the resource is registered. That is, in the field of validity period, the period in which the upper limit is set is registered. As described above, the resource information 113 has the field of the upper limit of upstream communication volume. First, the upstream communication volume is the communication volume from the gateway device 100 to the server 200. Then, in the field of the upper limit of upstream communication volume, the upper limit of the communication from the gateway device 100 to the server 200 is registered. In the field of the remaining upstream communication volume, the communication volume that can be communicated from the gateway device 100 to the server 200 is registered. In other words, in the field of the remaining upstream communication volume, the communication volume until the upper limit is reached is registered. In the field of the upstream communication volume / day, the communication volume that can be communicated from the gateway device 100 to the server 200 per day is registered. Moreover, the upstream communication volume / day may be expressed as the upstream communication volume per set period. The set period may be days, hours, etc. Furthermore, the upstream communication volume per set period is also called the first periodic communication volume.
[0028] The information on the validity period and the upper limit of the upload traffic volume may be acquired by the gateway device 100 from an external device, or may be stored in the storage unit 110 in advance. The management control unit 150 may delete the record for the day on which the validity period has elapsed from the history information 112. When deleting a record, the management control unit 150 updates the cumulative transmission amount and the cumulative reception amount in accordance with the deletion.
[0029] The management and control unit 150 may update the transmission control information 114 based on the resource information 113. Here, an example of the transmission control information 114 will be shown.
[0030] 7 is a diagram showing an example of transmission control information according to the first embodiment. The transmission control information 114 is stored in the storage unit 110. The transmission control information 114 has items such as a communication ID, a storage period, a storage amount / time, an allocated communication amount, a transmission period, and a transmission amount / time.
[0031] In the communication ID field, a communication identifier is registered. In the storage cycle field, a cycle in which the communication control unit 130 stores data in the storage unit 120 is registered. In the storage amount / time field, the amount of data stored in the storage unit 120 by the communication control unit 130 per time is registered. In the allocated communication amount field, a communication amount allocated to each communication ID based on the remaining upstream communication amount is registered. In other words, in the allocated communication amount field, a communication amount allocated to each of the terminal devices 300a to 300c based on the remaining upstream communication amount is registered. In the transmission cycle field, a cycle in which the transmission control unit 140 transmits data to the server 200 is registered. In the transmission amount / time field, the transmission amount per time is registered.
[0032] Next, the process executed by the gateway device 100 will be described with reference to a flowchart. FIG. 8 is a flowchart illustrating an example of a process executed by the gateway device according to the first embodiment. (Step S11) The management control unit 150 identifies a record corresponding to the current date with reference to the resource information 113. For example, if the current date is "2021 / 02 / 12", the management control unit 150 identifies a record with a start date of "2021 / 02 / 12".
[0033] (Step S12) The management control unit 150 determines whether the upper upload communication volume of the record identified this time is the same as the upper upload communication volume identified last time. For example, the record identified this time is a record with a start date of "2021 / 02 / 12". The record identified last time is a record with a start date of "2021 / 01 / 11". The management control unit 150 determines whether the upper upload communication volume of the record with a start date of "2021 / 02 / 12" is the same as the upper upload communication volume of the record with a start date of "2021 / 01 / 11". If the condition is met, the process proceeds to step S14. If the condition is not met, the process proceeds to step S13.
[0034] (Step S13) The management control unit 150 calculates the "upload traffic volume / day" based on the upper limit of the upload traffic volume and the validity period of the currently identified record. The management control unit 150 registers the calculated "upload traffic volume / day" in the currently identified record.
[0035] (Step S14) The management control unit 150 calculates the remaining validity period based on the validity period and the information indicating the current date. That is, the management control unit 150 calculates the number of days remaining in the validity period. The management control unit 150 calculates the remaining upstream communication volume based on the remaining valid period and the "upstream communication volume / day" of the record identified in step S11. In detail, the management control unit 150 calculates the remaining upstream communication volume by multiplying the remaining valid period and the "upstream communication volume / day". The management control unit 150 registers the calculated remaining upstream communication volume in the record identified in step S11. Here, the calculated remaining upstream communication volume is also referred to as a first remaining upstream communication volume.
[0036] (Step S15) Based on the history information 112, the management control unit 150 calculates a total reception amount, which is the amount of data that the gateway device 100 is estimated to receive from the terminal devices 300a to 300c during the remaining valid period. That is, based on the history information 112, the management control unit 150 calculates a total reception amount, which is the amount of data to be received from the terminal devices 300a to 300c corresponding to the number of remaining days in the valid period. For example, if the number of remaining days in the valid period is 10 days, the management control unit 150 calculates the total amount of data received from the terminal devices 300a to 300c from the current day up to 10 days ago as the total reception amount. Note that when the total reception amount is calculated, the history information of the terminal device 300 (i.e., the communication ID) currently being used is used.
[0037] Furthermore, if there is insufficient history information, the management control unit 150 may supplement it. For example, it is assumed that the number of remaining days is 10 days. It is also assumed that only the history of the human presence sensor A4 for two days is registered in the history information 112. The management control unit 150 calculates the reception amount for eight days (= the reception amount for two days x 4) based on the history for two days, and calculates the total reception amount based on the reception amount based on the history for two days and the reception amount for eight days. In this way, the management control unit 150 estimates the total amount of data to be received during the remaining days within the valid period.
[0038] (Step S16) The management control unit 150 compares the total reception amount with the remaining upstream communication amount. The management control unit 150 determines whether or not the total reception amount is larger than the remaining upstream communication amount. If the total reception volume is equal to or less than the remaining upstream communication volume, the management control unit 150 determines that there is a margin in the communication volume. Then, the process proceeds to step S19. If the total reception volume is greater than the remaining upstream communication volume, the management control unit 150 determines that there is a possibility that the upstream upper limit communication volume will be exceeded. Then, the process proceeds to step S17.
[0039] (Step S17) The management control unit 150 allocates communication volume to each of the terminal devices 300a to 300c based on the remaining upstream communication volume. In detail, the management control unit 150 updates the allocated communication volume for each communication ID based on the remaining upstream communication volume. For example, the management control unit 150 updates the allocated communication volume for each communication ID by allocating the remaining upstream communication volume to each communication ID based on the ratio of the accumulated volume per unit time. The update process will be described in detail. First, it is assumed that the terminal devices 300a to 300c are connected to the gateway device 100. Also, the action corresponding to the terminal devices 300a to 300c is "transparent". The management control unit 150 calculates the accumulated volume ds(X) per unit time in any terminal device X using formula (1). Here, t indicates the accumulation period. s indicates the accumulated volume / time.
[0040]
number
[0041] The management control unit 150 can calculate the accumulation amount ds per unit time of each of the terminal devices 300a to 300c by using formula (1). The accumulation amount ds per unit time of the terminal device 300a is set to ds(A). The accumulation amount ds per unit time of the terminal device 300b is set to ds(B). The accumulation amount ds per unit time of the terminal device 300c is set to ds(C). Here, when a minimum transmission amount or a maximum transmission period is specified by the terminal device, formula (1) may be appropriately changed. The management control unit 150 calculates the allocation P(X) of an arbitrary terminal device X using equation (2).
[0042]
number
[0043] The management control unit 150 calculates the allocated communication volume D(X) of an arbitrary terminal device X (that is, an arbitrary communication ID) by using the formula (3), where S indicates the remaining upstream communication volume.
[0044]
number
[0045] In this way, by using equation (3), the allocated communication amount for each of the terminal devices 300a to 300c is calculated.
[0046] Furthermore, the management control unit 150 may update the allocated communication volume for each communication ID by allocating the remaining upstream communication volume to each communication ID based on the ratio of the accumulation period. For example, the remaining upstream communication volume is set to 1 GB. The accumulation period of the terminal device 300a is set to 30 seconds. The accumulation period of the terminal device 300b is set to 30 seconds. The accumulation period of the terminal device 300c is set to 40 seconds. The management control unit 150 allocates 0.3 GB to the terminal device 300a. The management control unit 150 allocates 0.3 GB to the terminal device 300b. The management control unit 150 allocates 0.4 GB to the terminal device 300c.
[0047] Furthermore, the management control unit 150 may update the allocated communication volume for each communication ID by allocating the remaining upstream communication volume to each communication ID based on the ratio of the accumulated volumes. For example, the remaining upstream communication volume is assumed to be 1 GB. The accumulated volume of terminal device 300a is assumed to be 2 KB. The accumulated volume of terminal device 300b is assumed to be 7 KB. The accumulated volume of terminal device 300c is assumed to be 1 KB. The management control unit 150 allocates 0.2 GB to terminal device 300a. The management control unit 150 allocates 0.7 GB to terminal device 300b. The management control unit 150 allocates 0.1 GB to terminal device 300c.
[0048] The management and control unit 150 updates the allocated communication amount in the transmission control information 114 by performing an update process. The management control unit 150 calculates the allocated communication volume based on the accumulation period, accumulation amount / time, etc., which reflect the current state of data reception from the terminal device 300, thereby realizing allocation suited to the current state.
[0049] (Step S18) The management control unit 150 calculates the transmission period and the transmission amount per time based on the allocated communication volume. A method for calculating the transmission period and the transmission amount per time will be described in detail. The management control unit 150 uses the formula (4) to calculate the transmission period and the transmission amount per time. Note that T indicates the remaining valid period, st indicates the transmission period, and ss indicates the transmission amount per time.
[0050]
number
[0051] Moreover, equation (4) can be changed to equation (5).
[0052]
number
[0053] The management and control unit 150 calculates the transmission cycle st(X) and the transmission amount per time ss(X) that satisfy the formula (5). There are three calculation methods. First, as a first calculation method, the management control unit 150 substitutes the accumulated amount / times s(X) into the transmission amount / times ss(X) in the formula (5) to calculate the transmission cycle st(X). The management control unit 150 sets the accumulated amount / times s(X) as the transmission amount / times ss(X).
[0054] As a second calculation method, the management control unit 150 substitutes the accumulation period t(X) into the transmission period st(X) in equation (5) to calculate the transmission amount / times ss(X). The management control unit 150 sets the accumulation period t(X) as the transmission period st(X).
[0055] As a third calculation method, the management control unit 150 substitutes the accumulation period t(X) into the transmission period st(X) in equation (5), and substitutes the accumulation amount / times s(X) into the transmission amount / times ss(X) in equation (5). The management control unit 150 increases the accumulation period t(X) at a constant rate K, and decreases the accumulation amount / times s(X) at the same rate K. In this manner, the management control unit 150 changes the rate K and repeats the process until the inequality in equation (5) is satisfied. The management control unit 150 calculates the transmission period st(X) and the transmission amount / times ss(X) when the inequality in equation (5) is satisfied.
[0056] The management and control unit 150 updates the transmission control information 114 to information including the calculated transmission cycle st(X) and transmission amount / times ss(X).
[0057] (Step S19) The management control unit 150 waits for a certain period of time. After waiting, the process proceeds to step S11.
[0058] The transmission control unit 140 transmits the data based on the updated transmission control information 114. When the data to be transmitted is an image, the transmission control unit 140 may lower the resolution of the image. The transmission control unit 140 transmits the image with the lowered resolution to the server 200. This allows the gateway device 100 to reduce the amount of data to be transmitted to the server 200.
[0059] Transmission control unit 140 may transmit a plurality of data collectively to server 200. The plurality of data is one data whose header includes an IP address, and one or more data whose header does not include an IP address. The IP addresses in the headers of the one or more data are deleted by transmission control unit 140. In this way, by transmitting the plurality of data collectively, transmission control unit 140 can reduce the amount of data compared to transmitting the data one by one.
[0060] In the resource information 113 of FIG. 6, the valid period is expressed in days. The valid period may be expressed in hours. For example, the valid period is from 0:00 AM to 11:59 PM. When the valid period is expressed in hours, for example, the process of FIG. 8 is executed in 30-minute cycles. Here, the start date, start time, etc. of the valid period may be expressed as the start point. The expiration date, expiration time, etc. of the valid period may be expressed as the expiration point. Also, the current date, current time, etc. may be expressed as the current point.
[0061] Here, if the updated transmission cycle becomes longer than the transmission cycle before the update, the amount of data that the gateway device 100 transmits to the server 200 during the remaining valid period will be reduced. Therefore, the gateway device 100 suppresses the cumulative transmission amount from exceeding the upper upload communication amount. According to the first embodiment, the gateway device 100 can realize stable communication by the suppression.
[0062] Furthermore, if the "transmission amount / time" after the update is smaller than the "transmission amount / time" before the update, the amount of data that the gateway device 100 transmits to the server 200 during the remaining valid period will be reduced. Therefore, the gateway device 100 suppresses the cumulative transmission amount from exceeding the upper upload communication amount. According to the first embodiment, the gateway device 100 can achieve stable communication by this suppression.
[0063] In addition, the terminal device 300 may have the same functions as the gateway device 100 .
[0064] Embodiment 2 Next, a description will be given of embodiment 2. In embodiment 2, differences from embodiment 1 will be mainly described. In embodiment 2, descriptions of matters common to embodiment 1 will be omitted.
[0065] Next, the process executed by the gateway device 100 will be described with reference to a flowchart. Fig. 9 is a flowchart (part 1) showing an example of processing executed by the gateway device of the second embodiment. The processing in Fig. 9 differs from the processing in Fig. 8 in that steps S13a to 13f are executed. Therefore, steps S13a to 13f will be explained in Fig. 9. Explanation of the processing other than steps S13a to 13f will be omitted.
[0066] (Step S13a) The management control unit 150 calculates the elapsed time from the start date of the validity period to the current date based on the validity period. The calculation process will be described in detail. The management control unit 150 detects the start date of the record identified in step S11 (i.e., the record corresponding to the validity period including the current date). For example, the management control unit 150 detects the start date "2021 / 02 / 12". The management control unit 150 calculates the elapsed period by subtracting the start date from the current date.
[0067] (Step S13b) Based on the history information 112 including the amount of data transmitted by the transmission control unit 140 to the server 200 during the elapsed period, the management control unit 150 detects the cumulative amount of data transmitted by the transmission control unit 140 to the server 200 during the elapsed period as an actual value. (Step S13c) The management control unit 150 calculates a reference value by multiplying the "upstream communication volume / day" in the resource information 113 by the elapsed period. The reference value theoretically indicates the cumulative transmission volume that the transmission control unit 140 transmits to the server 200. Therefore, the reference value may be called a theoretical value.
[0068] (Step S13d) The management control unit 150 judges whether or not the value obtained by dividing the performance value by the reference value is equal to or greater than a preset threshold value N. Note that the threshold value N may be decreased as the valid period decreases. If the value is smaller than the threshold value N, the management control unit 150 determines that the performance value and the reference value do not deviate from each other. Then, the process proceeds to step S14. If the value is equal to or greater than the threshold value N, the management control unit 150 determines that the performance value and the reference value are different from each other. Then, the process proceeds to step S13e.
[0069] (Step S13e) The management control unit 150 subtracts the actual value from the upper limit upstream communication volume in the resource information 113. This calculates the actual remaining upstream communication volume. The management control unit 150 corrects the remaining upstream communication volume in the resource information 113 using the actual remaining upstream communication volume. That is, the management control unit 150 updates the remaining upstream communication volume of the record identified in step S11 to the actual remaining upstream communication volume. The actual remaining upstream communication volume is also referred to as the second remaining upstream communication volume.
[0070] (Step S13f) The management control unit 150 calculates the upstream communication amount / day based on the actual remaining upstream communication amount, the expiration date of the valid period, and the current date. In detail, the management control unit 150 calculates the upstream communication amount / day using the formula (6). The upstream communication amount / day is also called the second periodic communication amount.
[0071]
number
[0072] The management control unit 150 uses the calculated "upstream communication volume / day" to correct the "upstream communication volume / day" in the resource information 113. That is, the management control unit 150 updates the "upstream communication volume / day" in the record identified in step S11 to the calculated "upstream communication volume / day". Then, the process proceeds to step S14.
[0073] 10 is a flowchart (part 2) showing an example of the process executed by the gateway device according to the embodiment 2. Steps S14 to S19 in FIG. 10 are the same as steps S14 to S19 in FIG.
[0074] For example, in step S14, the management control unit 150 calculates the remaining upstream communication volume based on the remaining valid period and the "upstream communication volume / day" of the record identified in step S11. The remaining upstream communication volume is also called the third remaining upstream communication volume. In this way, steps S14 to S19 in Fig. 10 are the same as steps S14 to S19 in Fig. 8. Therefore, a description of steps S14 to S19 in Fig. 10 will be omitted.
[0075] According to the second embodiment, when the actual value and the reference value are different, the gateway device 100 corrects the remaining upstream communication volume in the resource information 113. Then, the gateway device 100 uses the corrected remaining upstream communication volume to perform control so as not to exceed the upper limit upstream communication volume. Therefore, the gateway device 100 can realize stable communication.
[0076] Embodiment 3 Next, a description will be given of embodiment 3. In embodiment 3, differences from embodiments 1 and 2 will be mainly described. In embodiment 3, descriptions of matters common to embodiments 1 and 2 will be omitted.
[0077] Here, the total value of the upstream communication volume and the downstream communication volume may be compared with the upper limit of the communication volume of the network 10. If the total value exceeds the upper limit, stable communication cannot be realized in the network 10. Therefore, in the third embodiment, a method for realizing stable communication will be described.
[0078] In the first and second embodiments, a case where one server is included in the communication system is described. In the third embodiment, a case where multiple servers are included in the communication system is described. The gateway device 100 relays data between multiple terminal devices and multiple servers. The multiple servers have the same function. Therefore, the following mainly describes server 200, which is one of the multiple servers. Also, server 200 may be connected to a gateway device other than gateway device 100. Here, server 200 is also called a first server.
[0079] Fig. 11 is a block diagram showing the functions of a gateway device according to the third embodiment. The components in Fig. 11 that are the same as those in Fig. 3 are given the same reference numerals as those in Fig. 3. The gateway device 100 further includes a reception control unit 160. A part or all of the reception control unit 160 may be realized by a processing circuit. Also, a part or all of the reception control unit 160 may be realized as a program module executed by the processor 101.
[0080] The reception control unit 160 receives data from a plurality of servers. The reception control unit 160 stores the received data in the storage unit 120. The reception control unit 160 also registers in the history information 112 the amount of data in question. Further items are added to the resource information 113 of the third embodiment. An example of the resource information 113 is shown below.
[0081] Fig. 12 is a diagram showing an example of resource information according to the third embodiment. Items of the upper limit of upstream communication volume, the remaining upstream communication volume, and the upstream communication volume / day are omitted in the resource information 113 in Fig. 12. The resource information 113 further has items of the upper limit of downstream communication volume, the remaining downstream communication volume, the downstream communication volume / day, the upper limit of downstream communication volume, the remaining communication volume, and the communication volume / day.
[0082] The downstream upper limit communication volume field registers an upper limit value of communication from multiple servers to the gateway device 100. The downstream remaining communication volume field registers the communication volume that can be communicated from multiple servers to the gateway device 100. The downstream communication volume / day field registers the communication volume that can be communicated from multiple servers to the gateway device 100 per day.
[0083] The upper limit communication volume field is registered with the sum of the upper limit communication volume for uploading and the upper limit communication volume for downloading. The remaining communication volume field is registered with the sum of the remaining upstream communication volume and the remaining downstream communication volume. The communication volume / day field is registered with the sum of the upstream communication volume / day and the downstream communication volume / day. The communication volume / day is also referred to as the first periodic communication volume.
[0084] Moreover, the storage unit 110 further stores server management information 115. An example of the server management information 115 is shown below.
[0085] 13 is a diagram showing an example of server management information according to the third embodiment. The server management information 115 is stored in the storage unit 110. The server management information 115 has items such as a server ID, a validity period, an upper limit of downstream communication volume, a remaining downstream communication volume, and a downstream communication volume / day.
[0086] The server ID field registers the server identifier. The validity period field registers the validity period of the resources of each server. The downstream upper limit communication volume field registers the upper limit of communication from each server to the gateway device 100. The downstream remaining communication volume field registers the communication volume that can be communicated from each server to the gateway device 100. The downstream communication volume / day field registers the communication volume that can be communicated from each server to the gateway device 100 per day.
[0087] Next, the functions of the server 200 will be described.
[0088] 14 is a block diagram showing the functions of the server according to the embodiment 3. The server 200 includes a storage unit 210, an accumulation unit 220, a transmission control unit 230, a reception control unit 240, and a management control unit 250.
[0089] The storage unit 210 and the accumulation unit 220 may be realized as a storage area secured in a volatile storage device or a non-volatile storage device that the server 200 has. Some or all of the transmission control unit 230, the reception control unit 240, and the management control unit 250 may be realized by a processing circuit included in the server 200. In addition, some or all of the transmission control unit 230, the reception control unit 240, and the management control unit 250 may be realized as program modules executed by a processor included in the server 200.
[0090] The storage unit 210 stores communication control information 211, history information 212, resource information 213, and transmission control information 214. Details of the communication control information 211, history information 212, resource information 213, and transmission control information 214 will be described later. For example, the transmission control unit 230 transmits request information to the gateway device 100 by using the communication control information 211. Here, an example of the communication control information 211 will be given.
[0091] 15 is a diagram showing an example of communication control information held by the server of the embodiment 3. The communication control information 211 is stored in the storage unit 210. The communication control information 211 has items of a gateway device ID / communication ID, an IP address, and request information.
[0092] In the gateway device ID / communication ID field, a gateway device or communication ID is registered. In the IP address field, an IP address is registered. In the request information field, information indicating a request to the gateway device 100 or the terminal device 300 is registered. For example, the request is a request to transmit the status of the gateway device 100, a request to transmit weather information for the location where the gateway device 100 is installed, a request to transmit data measured by the terminal device 300, etc.
[0093] For example, the transmission control unit 230 registers the amount of data transmitted to the gateway device 100 in the history information 212 . For example, the reception control unit 240 stores the data received from the gateway device 100 in the storage unit 220. In addition, the reception control unit 240 registers the amount of data received from the gateway device 100 in the history information 212. Here, an example of the history information 212 will be given.
[0094] 16 is a diagram showing an example of history information held by the server of the third embodiment. The history information 212 is stored in the storage unit 210. The history information 212 has items such as a gateway device ID, a date, a time, a transmission amount, a reception amount, a cumulative transmission amount, and a cumulative reception amount.
[0095] In the gateway device ID field, an identifier of the gateway device is registered. In the date field, a date is registered. In the time field, a time is registered. For example, in the transmission volume field, the amount of data transmitted by the transmission control unit 230 to the gateway device 100 is registered. For example, in the reception volume field, the amount of data received by the reception control unit 240 from the gateway device 100 is registered. In the cumulative transmission volume field, the cumulative transmission volume is registered. In the cumulative reception volume field, the cumulative reception volume is registered.
[0096] The reception control unit 240 receives the server management information 115 from the gateway device 100. The reception control unit 240 extracts information on the server ID of the server 200 from the server management information 115. The reception control unit 240 stores the extracted information in the storage unit 210 as resource information 213. An example of the resource information 213 is shown below.
[0097] 17 is a diagram showing an example of resource information stored in the server of the embodiment 3. The resource information 213 has items such as a gateway device ID, a validity period, an upper limit of downstream communication volume, a remaining downstream communication volume, and a downstream communication volume / day.
[0098] In the gateway device ID field, an identifier of the gateway device is registered. In the validity period field, a validity period of the resource is registered. For example, in the downstream upper limit communication volume field, an upper limit value of communication from the server 200 to the gateway device 100 is registered. For example, in the downstream remaining communication volume field, a communication volume that can be communicated from the server 200 to the gateway device 100 is registered. For example, in the downstream communication volume / day field, a communication volume that can be communicated from the server 200 to the gateway device 100 per day is registered.
[0099] Moreover, the transmission control unit 230 transmits data using the transmission control information 214. Here, an example of the transmission control information 214 will be given.
[0100] 18 is a diagram showing an example of transmission control information stored in the server of the third embodiment. The transmission control information 214 is stored in the storage unit 210. The transmission control information 214 has items such as a gateway device ID, a communication ID, a storage period, a storage amount / time, an allocated communication amount, a transmission period, and a transmission amount / time.
[0101] The gateway device ID field registers an identifier of the gateway device. The communication ID field registers an identifier of the communication. The storage period field registers a period in which the reception control unit 240 stores data in the storage unit 220. The storage amount / time field registers the amount of data that the reception control unit 240 stores in the storage unit 220 per time. The allocated communication amount field registers the communication amount allocated for each communication ID based on the remaining downlink communication amount. The transmission period field registers a period in which the transmission control unit 230 transmits data. The transmission amount / time field registers the amount of data that the transmission control unit 230 transmits per time.
[0102] The management and control unit 250 updates the allocated communication volume for each communication ID in the transmission control information 214 based on the remaining downstream communication volume in the resource information 213. The method of updating is the same as the method in which the management and control unit 150 updates the allocated communication volume for each communication ID in the transmission control information 114 based on the remaining upstream communication volume.
[0103] The management and control unit 250 calculates the transmission period and the transmission amount per time based on the allocated communication amount of the transmission control information 214. The calculation method is the same as the method in which the management and control unit 150 calculates the transmission period and the transmission amount per time based on the allocated communication amount of the transmission control information 114.
[0104] Next, the process executed by the gateway device 100 will be described with reference to a flowchart. FIG. 19 is a flowchart (part 1) illustrating an example of processing executed by the gateway device according to the third embodiment. (Step S21) The management control unit 150 refers to the resource information 113 and identifies a record that corresponds to the current date.
[0105] (Step S22) The management control unit 150 judges whether the upper limit traffic volume of the currently specified record is the same as the upper limit traffic volume specified previously. If the condition is met, the process proceeds to step S24. If the condition is not met, the process proceeds to step S23. (Step S23) The management control unit 150 calculates the communication amount / day based on the upper limit communication amount and the validity period of the currently identified record. The management control unit 150 registers the calculated “communication amount / day” in the currently identified record.
[0106] (Step S24) The management control unit 150 calculates the elapsed time from the start date of the validity period to the current date, based on the validity period. (Step S25) Based on history information 112 including the amount of data transmitted by transmission control unit 140 to server 200 and the amount of data received by reception control unit 160 from multiple servers, management control unit 150 detects, as an actual value, the sum of the cumulative amount of data transmitted by transmission control unit 140 to server 200 within the elapsed period and the cumulative amount of data received by reception control unit 160 from multiple servers.
[0107] (Step S26) The management control unit 150 calculates a reference value by multiplying the "communication volume / day" in the resource information 113 by the elapsed period. (Step S27) The management control unit 150 judges whether or not the value obtained by dividing the performance value by the reference value is equal to or greater than a preset threshold value N. Note that the threshold value N may be decreased as the valid period decreases. If the value is smaller than the threshold value N, the process proceeds to step S21. If the value is equal to or greater than the threshold value N, the management control unit 150 determines that the performance value and the reference value are different. Then, the process proceeds to step S28.
[0108] (Step S28) The management control unit 150 subtracts the performance value from the upper limit communication volume in the resource information 113. As a result, the actual remaining communication volume is calculated. The management control unit 150 corrects the remaining communication volume in the resource information 113 by using the actual remaining communication volume. That is, the management control unit 150 updates the remaining communication volume in the record identified in step S21 to the actual remaining communication volume.
[0109] (Step S29) The management control unit 150 calculates the communication amount / day based on the actual remaining communication amount, the expiration date of the valid period, and the current date. In detail, the management control unit 150 calculates the communication amount / day using the formula (7). The communication amount / day is also called the second periodic communication amount.
[0110]
number
[0111] The management control unit 150 uses the calculated "communication volume / day" to correct the "communication volume / day" in the resource information 113. That is, the management control unit 150 updates the "communication volume / day" in the record identified in step S21 to the calculated "communication volume / day". Then, the process proceeds to step S31.
[0112] FIG. 20 is a second flowchart illustrating an example of the process executed by the gateway device according to the third embodiment. (Step S31) The management control unit 150 allocates the "communication volume / day" in the resource information 113 to an upstream communication volume / day and a downstream communication volume / day. The upstream communication volume / day is also called an upstream periodic communication volume. The downstream communication volume / day is also called a downstream periodic communication volume.
[0113] The method of allocation will be described in detail. For example, the management control unit 150 calculates a ratio based on the cumulative "upstream communication volume / day" from one month ago and the cumulative "downstream communication volume / day" from one month ago, and allocates the "communication volume / day" in the resource information 113 to the upstream communication volume / day and the downstream communication volume / day according to the calculated ratio.
[0114] Also, for example, the management control unit 150 acquires the cumulative "upstream communication volume / day" for the past 12 months and the cumulative "downstream communication volume / day" for the past 12 months, calculates the ratio for each month, and allocates the "communication volume / day" in the resource information 113 to upstream communication volume / day and downstream communication volume / day according to the average of the 12 ratios.
[0115] Also, for example, the management control unit 150 calculates a ratio based on the "upstream communication volume / day" one day before and the "downstream communication volume / day" one day before, and allocates the "communication volume / day" of the resource information 113 to the upstream communication volume / day and the downstream communication volume / day according to the ratio. Also, the management control unit 150 may calculate a ratio based on the "upstream communication volume / day" one hour before and the "downstream communication volume / day" one hour before, and allocate the "communication volume / day" of the resource information 113 to the upstream communication volume / day and the downstream communication volume / day according to the ratio. In this way, the management control unit 150 can make an allocation that matches the most recent situation by using the most recent history.
[0116] (Step S32) The management control unit 150 calculates the remaining validity period based on the validity period and the current date. That is, the management control unit 150 calculates the number of days remaining in the validity period. The management control unit 150 calculates the remaining upstream communication amount based on the allocated "upstream communication amount / day" and the remaining valid period. The management control unit 150 registers the calculated remaining upstream communication amount in the record specified in step S21. Here, the calculated remaining upstream communication amount is also referred to as a first remaining upstream communication amount.
[0117] The management control unit 150 calculates the remaining downstream communication amount based on the allocated "downstream communication amount / day" and the remaining valid period. The management control unit 150 registers the calculated remaining downstream communication amount in the record identified in step S21.
[0118] (Step S33) The management and control unit 150 calculates a total reception amount, which is the amount of data that the gateway device 100 is estimated to receive from the terminal devices 300a to 300c during the remaining valid period, based on the history information 112. The total reception amount is also called a first total reception amount.
[0119] (Step S34) The management control unit 150 compares the total reception amount with the remaining upstream communication amount. The management control unit 150 determines whether or not the total reception amount is larger than the remaining upstream communication amount. If the total reception volume is equal to or less than the remaining upstream communication volume, the management control unit 150 determines that there is a margin in the communication volume. Then, the process proceeds to step S41. If the total reception volume is greater than the remaining upstream communication volume, the management control unit 150 determines that there is a possibility that the upstream upper limit communication volume will be exceeded. Then, the process proceeds to step S35.
[0120] (Step S35) The management and control unit 150 allocates communication traffic to each of the terminal devices 300a to 300c based on the remaining upstream communication traffic. The management and control unit 150 registers information on the allocated communication traffic in the transmission control information 114. As a result, the allocated communication traffic in the transmission control information 114 is updated. (Step S36) The management and control unit 150 calculates the transmission period and the amount of transmission per time based on the allocated communication volume. The management and control unit 150 updates the transmission control information 114 to information including the calculated transmission period and the “amount of transmission per time”.
[0121] FIG. 21 is a flowchart (part 3) illustrating an example of the process executed by the gateway device according to the third embodiment. (Step S41) The management control unit 150 calculates a total reception amount, which is the amount of data that the gateway device 100 is estimated to receive from multiple servers during the remaining valid period, based on the history information 112. The total reception amount is also called a second total reception amount.
[0122] (Step S42) The management control unit 150 compares the total reception amount with the remaining downlink communication amount. The management control unit 150 determines whether or not the total reception amount is larger than the remaining downlink communication amount. If the total reception amount is equal to or less than the remaining downlink communication amount, the management control unit 150 determines that there is a margin in the communication amount. Then, the process proceeds to step S46. If the total reception volume is greater than the remaining downstream communication volume, the management control unit 150 determines that there is a possibility that the downstream upper limit communication volume will be exceeded. Then, the process proceeds to step S43.
[0123] (Step S43) The management control unit 150 allocates a communication amount to each of the multiple servers based on the remaining downstream communication amount calculated in step S32. In detail, the management control unit 150 updates the remaining downstream communication amount for each server ID based on the remaining downstream communication amount.
[0124] For example, the management control unit 150 updates the remaining downstream communication volume for each server ID by allocating the remaining downstream communication volume to each server based on the ratio of the reception volume per unit time. The update process will be described in detail. First, it is assumed that three servers are connected to the gateway device 100. The management control unit 150 calculates the reception volume ds(Y) per unit time from any server Y using equation (8). Here, t indicates the reception cycle. The reception cycle is the cycle in which the gateway device 100 receives data from server Y. s indicates the reception volume / time. The reception volume / time is the amount of data that the gateway device 100 receives from server Y per time.
[0125]
number
[0126] The management control unit 150 can calculate the reception amount ds per unit time corresponding to each of the three servers by using formula (8). The reception amount ds per unit time corresponding to the first server is set to ds(L). The reception amount ds per unit time corresponding to the second server is set to ds(M). The reception amount ds per unit time corresponding to the third server is set to ds(N). The management control unit 150 calculates the allocation P(Y) of an arbitrary server Y by using the formula (9).
[0127]
number
[0128] The management control unit 150 uses formula (10) to calculate the remaining downstream communication traffic D(Y) of an arbitrary server Y. Note that S indicates the remaining downstream communication traffic calculated in step S32.
[0129]
number
[0130] In this way, by using formula (10), the remaining downstream communication traffic of each of the multiple servers is calculated.
[0131] Furthermore, the management control unit 150 may update the remaining downstream communication volume for each server ID by allocating the remaining downstream communication volume to each server ID based on the ratio of the reception cycles received from a plurality of servers. Furthermore, the management control unit 150 may update the remaining downstream communication volume for each server ID by allocating the remaining downstream communication volume to each server ID based on the ratio of the accumulated volume of data received from a plurality of servers.
[0132] By the update process of the management control unit 150, the remaining downstream communication volume in the server management information 115 is updated.
[0133] (Step S44) The management control unit 150 calculates the downstream communication amount / day based on the remaining downstream communication amount and the remaining validity period. For example, the management control unit 150 calculates the amount of data that the server 200 transmits to the gateway device 100 per day based on the remaining downstream communication amount allocated to the server 200 and the remaining validity period. The downstream communication amount / day is also called server periodic communication amount. The management control unit 150 calculates the downstream communication amount / day for each server ID. The management control unit 150 updates the "downstream traffic volume / day" in the server management information 115 to the calculated "downstream traffic volume / day."
[0134] (Step S45) The transmission control unit 140 transmits the server management information 115 to a plurality of servers. (Step S46) The management control unit 150 waits for a certain period of time. After waiting, the process proceeds to step S21.
[0135] Next, the process executed by the server 200 will be described with reference to a flowchart. Fig. 22 is a flowchart showing an example of a process executed by the server according to the third embodiment. The process in Fig. 22 is executed for each gateway device ID. In the following description, a case where the process is executed for the gateway device ID of the gateway device 100 will be described. (Step S51) The management control unit 250 refers to the resource information 213 and identifies a record that corresponds to the current date.
[0136] (Step S52) The management control unit 250 judges whether the downstream upper limit traffic volume of the record specified this time is the same as the downstream upper limit traffic volume specified last time. If the condition is satisfied, the process proceeds to step S54. If the condition is not satisfied, the process proceeds to step S53. (Step S53) The management control unit 250 calculates the "downstream communication volume / day" based on the downstream upper limit communication volume and the validity period of the currently identified record. The management control unit 250 registers the calculated "downstream communication volume / day" in the currently identified record.
[0137] (Step S54) The management control unit 250 calculates the remaining validity period based on the validity period and the current date. That is, the management control unit 250 calculates the number of days remaining in the validity period. The management control unit 250 calculates the remaining downstream communication volume based on the remaining valid period and the "downstream communication volume / day".
[0138] (Step S55) Based on the history information 212, the management and control unit 250 calculates a total reception amount, which is the amount of data that the server 200 is estimated to receive from the gateway device 100 during the remaining valid period.
[0139] (Step S56) The management control unit 250 compares the total reception amount with the remaining downlink communication amount. The management control unit 250 determines whether or not the total reception amount is larger than the remaining downlink communication amount. If the total reception amount is equal to or less than the remaining downstream communication amount, the management control unit 250 determines that there is a margin in the communication amount. Then, the process proceeds to step S59. If the total reception volume is greater than the remaining downstream communication volume, the management and control unit 250 determines that there is a possibility that the downstream upper limit communication volume will be exceeded. Then, the process proceeds to step S57.
[0140] (Step S57) The management and control unit 250 allocates communication traffic to each of the terminal devices 300a to 300c based on the remaining downlink communication traffic. The allocation method is the same as the allocation method in step S17. By the processing of the management and control unit 250, the allocated communication traffic of the transmission control information 214 is updated. (Step S58) The management control unit 250 calculates the transmission period and the transmission amount per time based on the allocated communication amount. The calculation method of the transmission period and the transmission amount per time is the same as the calculation method of the transmission period and the transmission amount per time in step S18. The management and control unit 250 updates the transmission control information 214 to information including the calculated transmission period and transmission amount / times.
[0141] (Step S59) The management control unit 250 waits for a certain period of time. After waiting, the process proceeds to step S51. The transmission control unit 230 transmits the data based on the updated transmission control information 214.
[0142] According to the third embodiment, the gateway device 100 performs upstream communication in consideration of upstream communication and downstream communication so as not to exceed the upper limit of the network 10. Also, the server 200 transmits data to the gateway device 100 based on the server management information 115 or the resource information 213. In this way, the communication system can perform stable communication by communicating between the gateway device 100 and the server 200 so as not to exceed the upper limit of the network 10.
[0143] Embodiment 4 Next, a fourth embodiment will be described. In the fourth embodiment, differences from the third embodiment will be mainly described. In the fourth embodiment, descriptions of the same matters as the third embodiment will be omitted.
[0144] 23 is a diagram illustrating an example of a communication system according to the fourth embodiment. The communication system includes gateway devices 100 and 100a and a server 200. In the server 200, virtual servers 201 and 202 are constructed based on the resources of the server 200. The virtual servers may be called virtual machines.
[0145] The virtual server 201 is connected to the gateway devices 100 and 100a via a communication line on which an upper limit is set for the communication volume. The virtual server 202 is connected to the gateway devices 100 and 100a via a communication line on which an upper limit is set for the communication volume.
[0146] Virtual server 201 and virtual server 202 transmit data to gateway devices 100 and 100a based on transmission control information 214. For example, virtual server 201 transmits data to gateway device 100 based on the record of communication ID "1001" in transmission control information 214. Note that the gateway device ID of gateway device 100 is "100", for example. Virtual server 202 transmits data to gateway device 100 based on the record of communication ID "1002" in transmission control information 214.
[0147] The virtual server 201 and the virtual server 202 have the same functions. The gateway device 100 and the gateway device 100a have the same functions. Therefore, in the following description, the gateway device 100 and the virtual server 201 are mainly used to describe the processing.
[0148] Next, the process executed by the virtual server 201 will be described with reference to a flowchart. Fig. 24 is a flowchart showing an example of a process executed by a virtual server according to the embodiment 4. The process in Fig. 24 is executed periodically. (Step S61) The virtual server 201 receives the virtual server transmission amount from each of the gateway devices 100 and 100a. The virtual server transmission amount is the amount of data transmitted by the virtual server 201.
[0149] (Step S62) The virtual server 201 calculates the total value using the two virtual server transmission amounts. (Step S63) The virtual server 201 compares the total value with a predetermined specified transmission amount. For example, the specified transmission amount is the maximum transmission amount that the virtual server 201 can transmit. The virtual server 201 determines whether the total value is greater than the specified transmission amount. If the total value is greater than the specified transmission amount, the process proceeds to step S64. If the total value is equal to or less than the specified transmission amount, the process ends.
[0150] (Step S64) Virtual server 201 calculates the scheduled downstream communication volume to gateway devices 100, 100a. That is, virtual server 201 calculates the scheduled communication volume to be transmitted to gateway devices 100, 100a. The calculation method will be specifically described. The virtual server transmission volume received from gateway device 100 is assumed to be 4 GB. The virtual server transmission volume received from gateway device 100a is assumed to be 6 GB. The specified transmission volume is assumed to be 5 GB. Virtual server 201 calculates the scheduled downstream communication volume by allocating the specified transmission volume based on the ratio of the virtual server transmission volumes. As a result, the scheduled downstream communication volume to gateway device 100 becomes 2 GB. The scheduled downstream communication volume to gateway device 100a becomes 3 GB.
[0151] (Step S65) The virtual server 201 transmits the estimated downstream communication volume to the gateway devices 100 and 100a. As a result, the gateway device 100 receives the scheduled downstream communication volume from the virtual server 201. In addition, the gateway device 100 receives the scheduled downstream communication volume from the virtual server 202.
[0152] Next, the process executed by the gateway device 100 will be described with reference to a flowchart. Fig. 25 is a flowchart showing an example of a process executed by the gateway device of the fourth embodiment. The process in Fig. 25 differs from the process in Fig. 20 in that step S31a is executed. Therefore, step S31a will be described in Fig. 25. Descriptions of the processes other than step S31a will be omitted.
[0153] (Step S31a) The management control unit 150 calculates the remaining upstream communication volume based on the scheduled downstream communication volume received from virtual server 201, the scheduled downstream communication volume received from virtual server 202, and the remaining communication volume of resource information 113. Specifically, the management control unit 150 calculates the remaining upstream communication volume using formula (11). Here, the remaining upstream communication volume is also referred to as the second remaining upstream communication volume. The remaining upstream communication volume is denoted as Ru. The remaining communication volume of resource information 113 is denoted as R. The scheduled downstream communication volume is denoted as S. i is an integer equal to or greater than 1.
[0154]
number
[0155] In this way, the remaining upstream communication volume Ru is calculated. The management control unit 150 calculates a total value Rd using the scheduled downstream communication volume received from the virtual server 201 and the scheduled downstream communication volume received from the virtual server 202. The management control unit 150 allocates the "communication volume / day" in the resource information 113 to the upstream communication volume / day and the downstream communication volume / day based on the ratio between the remaining upstream communication volume Ru and the total value Rd.
[0156] According to the fourth embodiment, the gateway device 100 allocates the "communication volume / day" in the resource information 113 to the upstream communication volume / day and the downstream communication volume / day, taking into consideration the scheduled downstream communication volume. Then, the server 200 transmits data to the gateway device 100 based on the server management information 115 (i.e., the resource information 213) generated based on the downstream communication volume / day. In this way, the communication system can perform stable communication by communicating between the gateway device 100 and the server 200 so as not to exceed the upper limit of the network 10.
[0157] The features of each of the embodiments described above can be combined with each other as appropriate. [Explanation of symbols]
[0158] 10 network, 20 network, 100, 100a gateway device, 101 processor, 102 volatile storage device, 103 non-volatile storage device, 110 storage unit, 111 communication control information, 112 history information, 113 resource information, 114 transmission control information, 115 server management information, 120 storage unit, 130 communication control unit, 140 transmission control unit, 150 management control unit, 160 reception control unit, 200 server, 201, 202 virtual server, 210 storage unit, 211 communication control information, 212 history information, 213 resource information, 214 transmission control information, 220 storage unit, 230 transmission control unit, 240 reception control unit, 250 management control unit, 300a, 300b, 300c Terminal device.
Claims
1. A relay device that relays data between a plurality of terminal devices and a server, a transmission control unit that transmits the data received from the plurality of terminal devices to the server via a communication line in which an upper limit is set for an upstream communication volume, which is a communication volume from the relay device to the server, based on the transmission control information; a storage unit that stores the transmission control information, resource information that is information including a validity period that is a period during which the upper limit is set, and a first periodic communication volume that is the upstream communication volume per set period, and history information that indicates a data volume of data received from the plurality of terminal devices; a management control unit that calculates a remaining valid period based on the valid period and information indicating a current time, calculates a first remaining upstream communication volume, which is a communication volume until the upper limit is reached, based on the remaining valid period and the first periodic communication volume, calculates a total reception volume, which is a data volume that the relay device is estimated to receive from the multiple terminal devices during the remaining valid period, based on the history information, and if the total reception volume is greater than the first remaining upstream communication volume, allocates a communication volume to each of the multiple terminal devices based on the first remaining upstream communication volume, calculates a transmission period and a transmission volume per time for transmitting data to the server based on an allocated communication volume, which is the communication volume allocated to each of the multiple terminal devices, and updates the transmission control information to information including the transmission period and the transmission volume per time; A relay device having the above configuration.
2. the history information includes the upstream communication volume during a period that has elapsed from a start point of the validity period to the present time, The management control unit: Detecting a cumulative transmission amount, which is the upstream communication amount during the elapsed period, as a performance value based on the history information; calculating a reference value by multiplying the first periodic communication amount by the elapsed period; If the actual value is different from the reference value, a second remaining upstream communication volume is calculated by subtracting the actual value from the upper limit of the upstream communication volume; Calculating a second periodic communication volume, which is the upstream communication volume per the set period, based on the second remaining upstream communication volume, the expiration time of the valid period, and the current time; Calculating a third remaining upstream communication volume, which is a communication volume until the upper limit is reached, based on the remaining valid period and the second periodic communication volume; when the total reception amount is greater than the third remaining upstream communication amount, allocating a communication amount to each of the plurality of terminal devices based on the third remaining upstream communication amount; The relay device according to claim 1 .
3. a first server of the plurality of servers; a relay device which relays data between a plurality of terminal devices and the plurality of servers, transmits data received from the plurality of terminal devices to the first server based on transmission control information via a communication line in which an upper limit is set for communication volume, and stores the transmission control information, resource information which is information including a valid period during which the upper limit is set and a first periodic communication volume which is a communication volume per set period, and history information which indicates the volume of data received from the plurality of terminal devices, an upstream communication volume which is a communication volume to the first server during an elapsed period from a start point of the valid period to a current time, and a downstream communication volume which is a communication volume from the plurality of servers during the elapsed period; Including, The relay device is Detecting, based on the history information, a total value of a cumulative transmission amount, which is the upstream communication amount during the elapsed period, and a cumulative reception amount, which is the downstream communication amount during the elapsed period, as an actual value; calculating a reference value by multiplying the first periodic communication amount by the elapsed period; If the actual value is different from the reference value, the actual value is subtracted from the upper limit of the communication volume to calculate a remaining communication volume; Calculating a second periodic communication volume, which is a communication volume per set period, based on the remaining communication volume, the expiration time of the valid period, and the current time; allocating the second periodic communication volume to an upstream periodic communication volume, which is the upstream communication volume per set period, and a downstream periodic communication volume, which is the downstream communication volume per set period; Calculating a remaining validity period based on the validity period and the information indicating the current time; Calculating a first remaining upstream communication volume based on the remaining valid period and the upstream periodic communication volume; Calculating a remaining downstream communication amount based on the remaining valid period and the downstream cycle communication amount; calculating a first total reception amount, which is an amount of data that the relay device is estimated to receive from the plurality of terminal devices during the remaining valid period, based on the history information; When the first total reception amount is larger than the first remaining upstream communication amount, allocate a communication amount to each of the plurality of terminal devices based on the first remaining upstream communication amount; Calculating a transmission period and a transmission amount per transmission for transmitting data to the first server based on an allocated communication amount, which is a communication amount allocated to each of the plurality of terminal devices; updating the transmission control information to information including the transmission period and the transmission amount per transmission; calculating a second total reception amount, which is an amount of data that the relay device is estimated to receive from the plurality of servers during the remaining valid period, based on the history information; If the second total reception amount is greater than the remaining downstream communication amount, allocate a communication amount to each of the plurality of servers based on the remaining downstream communication amount; calculating a server periodic communication volume, which is a data volume of data to be transmitted from the first server to the relay device per the set period, based on the communication volume allocated to the first server and the remaining valid period; Transmitting the server periodic traffic to the first server; The first server comprises: When the server periodic communication traffic is received, the server periodic communication traffic is transmitted to the relay device based on the server periodic communication traffic. Communication systems.
4. The first server comprises: Building a plurality of virtual servers based on the resources of the first server; The plurality of virtual servers include transmitting to the relay device a downstream traffic volume that is a traffic volume that the plurality of virtual servers plan to transmit to the relay device; The relay device is When the downstream communication volume is received from each of the plurality of virtual servers, a second remaining upstream communication volume is calculated based on the plurality of downstream communication volume plans and the remaining communication volume; allocating the second periodic communication volume to the upstream periodic communication volume and the downstream periodic communication volume based on a ratio between the second remaining upstream communication volume and a total value of the scheduled downstream communication volume; The communication system according to claim 3.
5. A relay device that transmits data received from a plurality of terminal devices to the server via a communication line in which an upper limit is set for an upstream communication volume, which is a communication volume for communication to the server, Calculating the remaining validity period based on the validity period for which the upper limit is set and information indicating the current time; Calculating a first remaining upstream communication volume, which is a communication volume until the upper limit is reached, based on the remaining valid period and a first periodic communication volume, which is the upstream communication volume per set period; calculating a total reception amount, which is an amount of data that the relay device is estimated to receive from the plurality of terminal devices during the remaining valid period, based on history information indicating an amount of data received from the plurality of terminal devices; If the total reception amount is greater than the first remaining upstream communication amount, allocate a communication amount to each of the plurality of terminal devices based on the first remaining upstream communication amount; Calculating a transmission period and a transmission amount per transmission for transmitting data to the server based on an allocated communication amount, which is a communication amount allocated to each of the plurality of terminal devices; transmitting the data received from the plurality of terminal devices to the server based on transmission control information, the transmission control information being information including the transmission period and the transmission amount per transmission; Control methods.
6. A relay device that transmits data received from a plurality of terminal devices to the server via a communication line in which an upper limit is set on the upstream communication volume, which is the communication volume of communication to the server, Calculating the remaining validity period based on the validity period for which the upper limit is set and information indicating the current time; Calculating a first remaining upstream communication volume, which is a communication volume until the upper limit is reached, based on the remaining valid period and a first periodic communication volume, which is the upstream communication volume per set period; Calculating a total reception amount, which is an amount of data that the relay device is estimated to receive from the plurality of terminal devices during the remaining valid period, based on history information indicating an amount of data received from the plurality of terminal devices; If the total reception amount is greater than the first remaining upstream communication amount, allocate a communication amount to each of the plurality of terminal devices based on the first remaining upstream communication amount; Calculating a transmission period and a transmission amount per transmission for transmitting data to the server based on an allocated communication amount, which is a communication amount allocated to each of the plurality of terminal devices; transmitting the data received from the plurality of terminal devices to the server based on transmission control information, which is information including the transmission period and the amount of transmission per transmission; A control program that executes a process.
Citation Information
Patent Citations
Internet connection system
JP2006101563A
Communication control method and communication control device
JP2016042679A
Tie-up service providing method
JP2016208131A
Communication device
JP2018011122A
Communication amount management device, communication amount management method, communication amount management system, and communication amount management program
JP2018182516A
