Program, server device, and data stream transmission method

JPWO2024084553A5Active Publication Date: 2024-09-11APTPOD INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023519393
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-10-17
Filing Date
2022-10-17
Publication Date
2024-09-11
Estimated Expiration
2042-10-17

AI Technical Summary

Technical Problem

Existing data transmission techniques, such as those described in Patent Document 1, are vulnerable to data structure breakdown due to marker loss or order changes during streaming communication, necessitating strict guarantees for data arrival and order, which restricts flexibility and efficiency.

Method used

A program for performing streaming communication using data blocks with data groups that include data type information and sequence numbers, allowing for flexible transmission protocols like UDP or TCP, with retransmission and acknowledgment mechanisms based on QoS, and using alias values to reduce data volume.

Benefits of technology

Maintains data structure integrity even with data loss or reordering, enabling efficient real-time or complete data transmission based on QoS, and allowing for flexible protocol selection and reduced data volume.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The server device (30) communicates with the client device (20A or 20B) in a streaming format. The streaming communication is performed using a data block including a plurality of data groups. Each of the plurality of data groups includes data type information and at least one data point associated with the data type information and acquired by the client device (20A or 20B).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to a technique for transmitting data.

Background Art

[0002] In data transmission between a server device and a client device, there is a known technique of creating and transmitting a section including data acquired by the client device and SOS (Start of Section) and EOS (End of Section) indicating section delimiters (for example, Patent Document 1).

Prior Art Documents

Patent Documents

[0003]

Patent Document 1

Summary of the Invention

Problems to be Solved by the Invention

[0004] However, in the technique described in Patent Document 1, since the section has a data structure using markers indicating delimiters with other sections, if a marker is missing or the order of markers changes during transmission, the section structure will break. In order to maintain the section structure, it is necessary to guarantee the arrival and order of data with a lower-level protocol, which restricted data transmission.

[0005] An object of this disclosure is to enable maintaining a data structure even if data is lost or the order of data changes during communication in a streaming format.

Means for Solving the Problems

[0006] One aspect of the present disclosure provides a program for causing a computer to perform a communication step of communicating with a client device in a streaming format, wherein the streaming communication is performed using a data block comprising a plurality of data groups, each of the plurality of data groups comprising data type information and at least one data point associated with the data type information, which is acquired by the client device.

[0007] The communication step includes a receiving step of receiving a plurality of data streams from a first client device, wherein the amount of data in each data stream may differ among the plurality of data streams.

[0008] The communication step includes a receiving step of receiving a plurality of data streams from a first client device, wherein the plurality of data streams have different transmission conditions, and each of the plurality of data streams may include data points corresponding to the transmission conditions of the data stream.

[0009] The communication step includes a receiving step of receiving a data stream from a first client device, wherein the data stream has transmission conditions, and if the reception of a first data block included in the data stream is not confirmed, the first data block may be retransmitted from the first client device at different timings depending on the transmission conditions of the data stream.

[0010] The communication step includes a receiving step of receiving a data stream from a first client device and a transmitting step of transmitting the data stream to a second client device, wherein the data block includes sequence numbers that are consecutive in the order of transmission from the first client device, data loss on a first communication path between the computer and the first or second client device is determined based on the presence or absence of an acknowledgment returned in response to the reception of the data block, and data loss on a second communication path from the first client device to the second client device via the computer may be determined using the sequence numbers.

[0011] The client device includes a first client device that transmits a data stream to the computer and a second client device that receives the data stream transferred from the computer, and the communication step may include a transmission step of transmitting a first dictionary used for converting data type information and a first alias value to the first client device in the communication between the first client device and the computer, and a reception step of receiving a second dictionary used for converting data type information and a second alias value from the second client device in the communication between the computer and the second client device.

[0012] The communication step includes a receiving step of receiving a plurality of data streams from a first client device, wherein the plurality of data streams include a first data stream having a first transmission condition that prioritizes real-time data transmission and a second data stream having a second transmission condition that prioritizes data transmission integrity, wherein after the transmission of the first data stream from the first client device is stopped depending on the bandwidth of the communication path between the computer and the first client device, and then the transmission is resumed, the first data stream may be transmitted from a portion corresponding to the time when the transmission was resumed, and after the transmission of the second data stream from the first client device is stopped depending on the bandwidth, and then the transmission is resumed, the second data stream may be transmitted from a portion corresponding to the time when the transmission was stopped.

[0013] The communication step includes a receiving step of receiving a data stream from a first client device, and the program may cause the computer to perform an adding step of adding information about communication between the computer and the first client device to the data blocks included in the data stream received in the receiving step.

[0014] Another aspect of the present disclosure provides a server device comprising communication means for communicating with a client device in a streaming format, wherein the streaming communication is performed using data blocks comprising a plurality of data groups, each of the plurality of data groups comprising data type information and at least one data point associated with the data type information, which is acquired by the client device.

[0015] Yet another aspect of the present disclosure includes a communication step of communicating with a client device in a streaming format, wherein the communication in the streaming format is performed using a data block including a plurality of data groups, and each of the plurality of data groups includes data type information and at least one data point associated with the data type information and acquired at the client device, and provides a method for transmitting a data stream.

Advantages of the Invention

[0016] According to the present disclosure, the data structure can be maintained even if data is lost or the order of data changes during communication in a streaming format.

Brief Description of the Drawings

[0017] [Figure 1] A diagram showing an example of a data communication system according to an embodiment. [Figure 2] A diagram showing an example of the functional configuration of a data communication system. [Figure 3] A diagram showing an example of the data structure of a chunk. [Figure 4] A diagram showing an example of the hardware configuration of a client device. [Figure 5] A diagram showing an example of the hardware configuration of a server device. [Figure 6] A sequence chart showing an example of the start processing of a stream. [Figure 7] A diagram showing an example of a dictionary for upstream. [Figure 8] A diagram showing an example of a dictionary for downstream. [Figure 9] A sequence chart showing an example of the process of transmitting a data stream. [Figure 10] A diagram for explaining an example of the distribution of data points. [Figure 11] A diagram showing an example of the transmission of a data stream. [Figure 12] A flowchart showing an example of the process of retransmitting a chunk. [Figure 13] A diagram for explaining an example of a process for determining data loss on a return communication path. [Figure 14] A flowchart showing an example of a process for limiting the data transmission amount according to the bandwidth.

Explanation of Signs

[0018] 1: Data communication system, 10: Sensor, 20: Client device, 21: Processor, 22: Memory, 23: Communication interface, 24: Input device, 25: Output device, 30: Server device, 31: Processor, 32: Memory, 33: Communication interface, 201: Start request means, 202: Acquisition means, 203: Distribution means, 204: Conversion means, 205: Generation means, 206: Transmission means, 207: Retransmission means, 208: Transmission limitation means, 211: Alias means, 212: Start request means, 213: Reception means, 214: Conversion means, 215: Output control means, 216: Loss determination means, 221: Client program, 222: Dictionary, 301: Alias means, 302: Start response means, 303: Reception means, 304: Conversion means, 305: Addition means, 306: Transmission means, 307: Confirmation response means, 321: Server program

Modes for Carrying Out the Invention

[0019] 1. Configuration FIG. 1 is a diagram showing an example of a data communication system 1 according to an embodiment. The data communication system 1 includes a plurality of client devices 20 and a server device 30. The plurality of client devices 20 include a client device 20A that functions as a transmission side and a client device 20B that functions as a reception side. A plurality of sensors 10 are connected to the client device 20A. The plurality of client devices 20 and the server device 30 are connected via a network 40. The network 40 includes, for example, a mobile communication network and the Internet.

[0020] Sensor 10 observes the target at constant or arbitrary non-uniform time intervals and outputs data obtained from the observation. For example, if the target of observation is an automobile, sensor 10 may include at least one of the following: accelerator sensor, brake sensor, steering sensor, speedometer, engine tachometer, fuel injection amount meter, thermometer, GPS (Global Positioning System), and camera.

[0021] Client device 20A transmits data output from sensor 10 to server device 30 in real time via streaming communication. Server device 30 transfers data received from client device 20A to client device 20B in real time via streaming communication. "Streaming communication" here means performing at least one of transmission and reception with client device 20 using a data stream. In other words, communication is performed in streaming format using a data stream. "Data stream" here refers to a flow of data. Server device 30 transfers data to client device 20B and also stores this data. The data stored in server device 30 is used, for example, for analysis of the observed object later, so data integrity is required. Client device 20B outputs the data received from server device 30 in real time. In this way, the data transferred from server device 30 to client device 20B is used, for example, for remote monitoring, remote diagnosis, remote operation, etc., to understand or control the current status of the observed object from a remote location. The requirements for this data transfer may differ depending on the application, such as the requirement for low-latency transmission while tolerating data loss (prioritizing real-time performance over completeness) or the requirement for complete transmission while tolerating delay (prioritizing completeness over real-time performance). In the following explanation, the data flow transmitted from client device 20A to server device 30 is referred to as "upstream," and the data flow transmitted from server device 30 to client device 20B is referred to as "downstream."

[0022] Figure 2 shows an example of the functional configuration of the data communication system 1. The client device 20A functions as a start request means 201, an acquisition means 202, a distribution means 203, a conversion means 204, a generation means 205, a transmission means 206, a retransmission means 207, and a transmission restriction means 208. The client device 20A is an example of the first client device according to this disclosure.

[0023] The start request means 201 sends an upstream start request to the server device 30 when an upstream connection is initiated. When requesting the creation of an alias for the data ID of the data transmitted upstream, the upstream start request also serves as an alias request. When the upstream start request also serves as an alias request, the upstream start request includes a data ID list. This data ID list includes the data IDs for which aliases are to be created. If there are multiple data IDs for which aliases are to be created, the data ID list includes multiple data IDs. Each data ID consists of a data name and a data type. The data ID is an identifier that uniquely identifies the data. The data name is the name assigned to the data. The data type is type information that indicates the content and format of the data. Arbitrary strings can be used for the data name and data type.

[0024] The acquisition means 202 acquires multiple data sequences output from multiple sensors 10. A data sequence is, for example, a series of data bodies arranged in chronological order. The data body, also called the payload or data binary, is the main body of the data excluding additional information. For example, a data sequence output from an accelerator sensor includes the accelerator operation amount as the data body. One data body contains one accelerator operation amount. If a single sensor 10 outputs multiple values, such as when acceleration sensors output acceleration for three axes simultaneously, one data body may contain multiple values. If the data sequence does not contain time information, the acquisition means 202 adds time information to each data body included in the data sequence. The time information is, for example, a timestamp, indicating a time point associated with the data body. The time information indicates, for example, the time the data was acquired by the acquisition means 202. In this case, the time information may be expressed as the elapsed time from the date and time observation started to the date and time the data was acquired. Furthermore, the time information may not be limited to the time the data was acquired, but may also indicate the time the data was generated or the time the data occurred. A data point is formed by a set of data body and time information. In this context, a "data point" refers to data associated with a specific time point. Note that time information may be added by the sensor 10. In this case, the data sequence output from the sensor 10 will be a series of sets consisting of the data itself and time information.

[0025] Furthermore, the acquisition means 202 assigns a data ID to each data point. The data ID is information indicating the type of data and is an example of data type information related to this disclosure. Note that the data type information is not limited to the data ID, and may be other information such as a sensor ID, as long as it indicates the type of data. Strictly speaking, a data point is a concept that has data type information, the data itself, and time information, but as will be described later, when data points are grouped into a data point group for efficiency, the data type information of individual data points is aggregated into the data type information of the data point group. Note that the acquisition means 202 does not need to assign a data ID and time information to all data points output from multiple sensors 10, and may discard some of them.

[0026] The distribution means 203 distributes the data points acquired by the acquisition means 202 to multiple data streams based on the configuration information. The multiple data streams have different transmission conditions predetermined. In this embodiment, the transmission conditions include whether or not the data transmitted in that data stream is stored in the server device 30, the transmission frequency and maximum data amount of the data block, and QoS (Quality of Service) which represents the characteristics and performance of the service on that data stream. Note that the transmission conditions are not limited to these and may include other conditions. QoS includes unreliable and reliable conditions. Unreliable is a condition in which data may be lost but is transmitted without delay. Unreliable is a transmission condition that prioritizes real-time performance over the integrity of data transmission and is an example of the first transmission condition in this disclosure. Reliable is a condition in which data may be delayed but is transmitted without loss. Reliable is a transmission condition that prioritizes integrity over the real-time performance of data transmission and is an example of the second transmission condition in this disclosure. Note that QoS may include types other than unreliable and reliable. Each data stream is assigned either an unreliable or reliable QoS. The configuration information sets the destination for each data point based on the transmission conditions of the data stream. This configuration information is created, for example, by the administrator of the server device 30 and stored in the memory 22 of the client device 20A beforehand. For example, in the configuration information, continuous value data that can be easily interpolated from preceding and succeeding values ​​even if data loss occurs, such as control information and analog signals where real-time data transmission is required, is set to a data stream with an unreliable QoS. On the other hand, in the configuration information, sequential time-series data that requires complete data transmission, and non-continuous value data that is difficult to interpolate, such as string messages, are set to a data stream with a reliable QoS. It should be noted that some of the distributed data points may not be distributed to any data stream.

[0027] The conversion means 204 converts the data ID contained in the data point into an alias value. The alias value is a numerical value used in place of the data ID when transmitting data. Upstream, the alias value is assigned by the server device 30 in response to an alias request from the client device 20A. As described above, since arbitrary strings are used for the data name and data type, using numerical alias values ​​instead reduces the amount of data and improves transmission efficiency. Note that the data type of the information used as the alias value is not limited to numbers; for example, it may be any short string.

[0028] The generation means 205 generates chunks that constitute a data stream. Each data stream contains multiple chunks. The data stream is processed in chunk units, including sending, receiving, and retransmitting. A chunk is an example of a data block according to this disclosure.

[0029] Figure 3 shows an example of a chunk data structure. Each chunk contains a sequence number and multiple data point groups. The sequence number is a non-negative integer indicating the transmission order in the same data stream from the client device 20A. Multiple chunks included in the same data stream are assigned sequence numbers that are consecutive in their transmission order. A data point group refers to a collection of multiple data points that have the same data type information. In this example, a data point group is a group of data points that have the same data ID. A data point acquired by the acquisition means 202 belongs to a data point group corresponding to its data ID. A data point group is an example of a data group relating to this disclosure. Each data point group contains a data ID and at least one data point. The data ID is an identifier that uniquely identifies a data point belonging to the corresponding data point group. As described above, the data ID consists of a data name and a data type. A data point is a set of data body and time information belonging to the corresponding data point group.

[0030] Returning to Figure 2, the transmission means 206 transmits a data stream to the server device 30 using chunks generated by the generation means 205 via streaming communication. For example, the data stream is continuously generated data such as continuous measurement values ​​and includes time information such as timestamps. The transmission means 206 may transmit multiple data streams. The transmission means 206 can use protocols such as UDP (User Datagram Protocol), which is suitable for real-time transmission but does not guarantee data arrival, TCP (Transmission Control Protocol), WebSocket, which guarantees data arrival, or QUIC, which allows switching between guaranteeing arrival and not guaranteeing arrival, as underlying communication protocols.

[0031] The retransmission means 207 retransmits to the server device 30 any chunks included in the data stream transmitted by the transmission means 206 that have not been received by the server device 30. However, the retransmission means 207 varies the timing of retransmission depending on the QoS of the data stream to which the chunk belongs. If the QoS of the data stream to which the chunk belongs is unreliable, the retransmission means 207 retransmits the chunk at a predetermined timing that does not interfere with the transmission of subsequent chunks, for example, when there is sufficient communication bandwidth or when instructed by the user. This is because data streams with unreliable QoS require real-time data transmission, so if a chunk is not received, it is preferable to prioritize the transmission of subsequent chunks without delay rather than retransmitting that chunk. On the other hand, if the QoS of the data stream to which the chunk belongs is reliable, the retransmission means 207 retransmits the chunk as soon as it is determined that the chunk was not received. This is because, in data streams where QoS is reliable, data transmission integrity is required. Therefore, if a chunk is not received, it is preferable to ensure that all chunks are transmitted, even if this means a slight delay in the transmission of subsequent chunks by sharing bandwidth.

[0032] The transmission restriction means 208 stops or restarts the transmission of the data stream depending on the bandwidth of the communication path between the client device 20A and the server device 30. If the bandwidth of the communication path between the client device 20A and the server device 30 is insufficient, the transmission restriction means 208 stops the transmission of the data stream. Subsequently, when the bandwidth shortage of the communication path between the client device 20A and the server device 30 is resolved, the transmission restriction means 208 restarts the transmission of the data stream. However, the content of the data transmitted after the restart of transmission differs depending on the QoS of the data stream. If the QoS of the data stream is unreliable, when the transmission of the data stream is restarted, the transmission restriction means 208 causes the data stream to be transmitted from the latest chunk at the time the transmission was restarted. For data streams with unreliable QoS, chunks generated while the transmission was stopped are not transmitted in real time. On the other hand, if the QoS of the data stream is reliable, when the transmission of the data stream is restarted, the transmission restriction means 208 causes the data stream to be transmitted from the chunk at the time the transmission was stopped. For data streams where QoS is reliable, chunks generated while transmission is stopped are also transmitted.

[0033] The server device 30 functions as an alias means 301, a start response means 302, a receiving means 303, a conversion means 304, an addition means 305, a transmission means 306, and an acknowledgment response means 307.

[0034] The aliasing means 301 creates an alias for the data ID in response to an alias request from the client device 20A. Specifically, the aliasing means 301 assigns an alias value to the data ID for which an alias request has been received from the client device 20A, and adds the data ID, the data name and data type that constitute it, and its alias value to the upstream dictionary 322, associating them. The upstream dictionary 322 is used for converting between the data ID and the alias value in communication between the client device 20A and the server device 30. In addition, as will be described later, the aliasing means 301 stores the downstream dictionary 222 sent from the client device 20B in the memory 32. The downstream dictionary 222 is used for converting between the data ID and the alias value in communication between the server device 30 and the client device 20B.

[0035] When upstream initiation occurs, the initiation response means 302 sends a response to the upstream initiation request sent from the client device 20A to the client device 20A. If an alias has been created for a data ID by the alias means 301, this response includes an upstream dictionary 322 containing the alias value assigned to the data ID. If aliases have been created for multiple data IDs, the upstream dictionary 322 contains multiple alias values. Furthermore, as will be described later, when a downstream initiation request is sent from the client device 20B, the initiation response means 302 receives this downstream initiation request and sends a response to this downstream initiation request to the client device 20B. If an alias for a data ID has been created by the client device 20B before downstream initiation, this initiation request includes a downstream dictionary 222 containing the alias value assigned to the data ID. If aliases have been created for multiple data IDs, the downstream dictionary 222 contains multiple alias values.

[0036] The receiving means 303 receives the data stream transmitted from the client device 20A using chunks via streaming communication. The receiving means 303 may receive multiple data streams transmitted from the client device 20A.

[0037] The conversion means 304 converts alias values ​​contained in chunks of the data stream received by the receiving means 303 into data IDs, based on the upstream dictionary 322. The conversion means 304 also converts data IDs contained in chunks of the data stream to be transferred to the client device 20B into alias values, based on the downstream dictionary 222.

[0038] The addition means 305 adds upstream information to each chunk of the data stream to be transferred to the client device 20B from among the multiple data streams received by the receiving means 303. The upstream information is information regarding the upstream communication between the client device 20A and the server device 30. The upstream information is used to determine which data stream the chunk transferred to the client device 20B by the downstream was transmitted from upstream. The upstream information includes a session ID, a stream ID, and the source client device ID. The session ID is an identifier that uniquely identifies the session to which the data stream belongs. Here, "session" refers to a collection of data points grouped according to predetermined rules. For example, as an example of predetermined rules, a collection of data points acquired by one client device 20 that have a common date and time as the basis for time information can be considered a session. The stream ID is an identifier that uniquely identifies the upstream data stream. The source client device ID is an identifier that uniquely identifies the client device 20 that transmitted the data stream.

[0039] The transmission means 306 transmits a data stream to the client device 20B using chunks via streaming communication. The transmission means 306 can use protocols such as UDP, which is suitable for real-time transmission but does not guarantee data delivery, TCP (Transmission Control Protocol), WebSocket, which guarantees data delivery, and QUIC, which allows switching between guaranteeing delivery and not guaranteeing delivery, as underlying communication protocols.

[0040] The acknowledgment means 307 sends a chunk acknowledgment to the client device 20 in response to the receipt of the chunk. The acknowledgment is information indicating that the chunk has been successfully received. For example, an ACK (ACKnowledgement) may be used for this acknowledgment. The acknowledgment means 307 may send a combined acknowledgment for the reception of multiple chunks. For example, the acknowledgment means 307 may send a combined acknowledgment for the reception of a predetermined number of chunks, or send a combined acknowledgment for the reception of at least one chunk at predetermined intervals.

[0041] The client device 20B functions as an alias means 211, a start request means 212, a receiving means 213, a conversion means 214, an output control means 215, and a missing information determination means 216. The client device 20B is an example of a second client device according to this disclosure.

[0042] The aliasing means 211 creates aliases for the data IDs of data transmitted downstream. Specifically, the aliasing means 211 assigns an alias value to the data ID for which an alias is to be created, and adds the data name and data type that constitute the data ID and their alias value to the downstream dictionary 222, associating them. As described above, the downstream dictionary 222 is used for converting between data IDs and alias values ​​in communication between the server device 30 and the client device 20B.

[0043] The start request means 212 sends a downstream start request to the server device 30 when a downstream process is initiated. If the alias means 211 has created an alias for a data ID, the downstream start request includes a downstream dictionary 322 containing the alias value assigned to the data ID. If aliases for multiple data IDs have been created, the downstream dictionary 322 includes multiple alias values. The downstream start request also requests the server device 30 to specify the type of data that the client device 20B wants to acquire. The server device 30 does not forward all data streams received from the client device 20A; rather, data streams other than those requested for acquisition in the downstream start request from the client device 20B are filtered by the server device 30, and only the data streams requested for acquisition by the client device 20B are forwarded to the client device 20B. The filter request used for this filtering includes multiple filter definitions. The filter definition includes the client device ID of the client device 20, which is the source of the data to be acquired, and the data ID of the data to be acquired. Furthermore, in the data ID used for filter requests, wildcards that match multiple data names and data types may be used as a method for specifying data names and data types.

[0044] The receiving means 213 receives the data stream transmitted from the server device 30 using chunks via streaming communication. As described above, the server device 30 performs filtering in response to the downstream start request, so chunks containing only data not requested by the client device 20B are filtered out, leaving them empty. Even in such cases, the server device 30 sends the empty chunk to the client device 20B. Therefore, the chunks received by the receiving means 213 downstream may be empty. The reason for sending empty chunks in this way is that if empty chunks were not sent, it would be indistinguishable from data loss on the communication path.

[0045] The conversion means 214 converts the alias values ​​contained in the chunks of the data stream received by the receiving means 213 into data IDs, based on the downstream dictionary 222.

[0046] The output control means 215 causes the data stream received by the receiving means 213 to be output to the output device 25 in real time.

[0047] The data loss detection means 216 uses the sequence numbers included in the chunk to determine data loss on an end-to-end loopback communication path composed of upstream and downstream. This loopback communication path is a communication path from client device 20A to client device 20B via server device 30, and is an example of a second communication path according to this disclosure. As described above, when transmitted from client device 20A, multiple chunks included in the same data stream are assigned sequence numbers that are consecutive in the order of transmission. When client device 20B receives the data, if there are missing sequence numbers among the chunks included in the same data stream, it indicates that the chunk in that data stream is missing somewhere on the loopback communication path. Therefore, the data loss detection means 216 determines that if there are missing sequence numbers among the chunks included in the same data stream, the chunk included in that data stream is missing on the loopback communication path.

[0048] In Figure 2, an example is shown where client device 20A has the function of an upstream transmitter and client device 20B has the function of a downstream receiver. However, a single client device 20 may have both the function of an upstream transmitter and the function of a downstream receiver.

[0049] Figure 4 shows an example of the hardware configuration of the client device 20. The client device 20 comprises a processor 21, memory 22, a communication interface 23, an input device 24, and an output device 25. The parts of the client device 20 are connected via a bus. The processor 21 performs various calculations by executing programs and controls the parts of the client device 20. The processor 21 includes, for example, one or more CPUs (Central Processing Units). The memory 22 stores various programs, including the client program 221, and various data. The client program 221 is a program that enables the client device 20 to perform the functions described above. The memory 22 includes, for example, at least one of ROM (Read Only Memory), RAM (Random Access Memory), HDD (Hard Disk Drive), and SSD (Solid State Drive). The communication interface 23 communicates data with the server device 30 via the network 40. The communication interface 23 also communicates data with the sensor 10. The input device 24 accepts input from the user and external systems. The input device 24 includes, for example, at least one of a mouse, keyboard, and operation buttons. The output device 25 outputs various types of information to the user and external systems. This output includes presentation to the user, output to external systems for use in control, and conversion processing for linking with other programs. The output device 25 includes, for example, at least one of a liquid crystal display and an organic EL (electroluminescence) display.

[0050] The distribution means 203, conversion means 204, generation means 205, and transmission restriction means 208 shown in Figure 2 are implemented by the processor 21 of client device 20A executing the client program 221 stored in memory 22. The start request means 201, acquisition means 202, transmission means 206, and retransmission means 207 shown in Figure 2 are implemented by the communication interface 23 of client device 20A under the control of the processor 21 executing the client program 221 stored in memory 22 of client device 20A. The alias means 211, conversion means 214, output control means 215, and missing data determination means 216 shown in Figure 2 are implemented by the processor 21 of client device 20B executing the client program 221 stored in memory 22. The start request means 212 and receiving means 213 shown in Figure 2 are implemented by the communication interface 23 of client device 20B under the control of the processor 21 executing the client program 221 stored in memory 22 of client device 20B.

[0051] Figure 5 shows an example of the hardware configuration of a server device 30. The server device 30 comprises a processor 31, memory 32, and a communication interface 33. The various parts of the server device 30 are connected via a bus. The server device 30 is an example of a computer according to this disclosure. The processor 31 performs various calculations by executing programs and controls the various parts of the server device 30. The processor 31 includes, for example, one or more CPUs. The memory 32 stores various programs, including the server program 321, and various data. The server program 321 is a program that enables the server device 30 to perform the functions described above. The memory 32 includes, for example, at least one of ROM, RAM, HDD, and SSD. The communication interface 33 communicates data with the client device 20 via the network 40. The communication interface 33 is an example of a communication means according to this disclosure.

[0052] The aliasing means 301, conversion means 304, and addition means 305 shown in Figure 2 are realized by the processor 31 executing the server program 321 stored in memory 32. The start response means 302, receiving means 303, transmitting means 306, and acknowledgment response means 307 shown in Figure 2 are realized by the communication interface 33 under the control of the processor 31 executing the server program 321 stored in the memory 32 of the server device 30.

[0053] 2.Operation 2.1 Stream Startup Process Figure 6 is a sequence chart showing an example of the stream initiation process. This process is performed when starting an upstream or downstream stream. Here, we assume that a data stream sent from client device 20A to server device 30 is transferred from server device 30 to client device 20B. First, we will explain the upstream initiation process.

[0054] In step S101, the start request means 201 of the client device 20A sends an upstream start request to the server device 30. If the request is to create an alias for the data ID of the data to be sent upstream, the upstream start request includes a data ID list. For example, the data ID list includes a data ID consisting of a data name "Data001" and a data type "Type001".

[0055] In step S102, if the alias means 301 of the server device 30 also serves as an alias request, it creates an upstream dictionary 322 in response to this alias request and stores it in memory 32. In this way, the upstream dictionary 322 is created by the receiving server device 30.

[0056] Figure 7 shows an example of an upstream dictionary 322. The dictionary 322 stores alias values ​​for data IDs, associated with the data names and data types that constitute those data IDs. Here, we assume that the data ID list includes a data ID consisting of the data name "Data001" and the data type "Type001". First, the aliasing means 301 assigns the alias value "001" to this data ID. Next, the aliasing means 301 associates this alias value "001", the data name "Data001", and the data type "Type001" and adds them to the dictionary 322.

[0057] Returning to Figure 6, in step S103, the start response means 302 of the server device 30 sends a response to the upstream start request to the client device 20A. If a dictionary 322 for the upstream has been created in response to the alias request, this response includes the created dictionary 322 for the upstream.

[0058] In step S104, the start request means 201 of the client device 20A receives a response from the server device 30. This initiates upstream communication between the client device 20A and the server device 30. If the response includes an upstream dictionary 322, this upstream dictionary 322 is stored in the memory 22 of the client device 20A. As a result, the same upstream dictionary 322 is stored in both the server device 30 and the client device 20A.

[0059] Next, we will explain the downstream initiation process. In the example shown in Figure 6, the downstream initiation process is performed after the upstream initiation process, but these processes can be performed in either order or in parallel.

[0060] In step S105, when creating an alias for the data ID of data transmitted downstream, the aliasing means 211 of the client device 20B creates a dictionary 222 for downstream and stores it in memory 22. In this way, in the downstream, the downstream dictionary 222 is created on the receiving side, the client device 20B.

[0061] Figure 8 shows an example of a downstream dictionary 222. The dictionary 222 stores alias values ​​for data IDs, associated with the data names and data types that constitute those data IDs. Here, we assume that a data ID consisting of the data name "Data001" and the data type "Type001" is the target of aliasing. First, the aliasing means 211 assigns the alias value "011" to this data ID. Next, the aliasing means 211 associates this alias value "011" with the data name "Data001" and the data type "Type001" and adds them to the dictionary 222.

[0062] Returning to Figure 6, in step S106, the start request means 212 of the client device 20B sends a downstream start request to the server device 30. If the downstream dictionary 222 was created by the client device 20B before the downstream start, the downstream start request includes the created downstream dictionary 222.

[0063] In step S107, the start response means 302 of the server device 30 receives a downstream start request from the client device 20B. If the downstream start request includes the downstream dictionary 222, this downstream dictionary 222 is stored in the memory 32. As a result, the same downstream dictionary 222 is stored in both the server device 30 and the client device 20B.

[0064] In step S108, the start response means 302 of the server device 30 sends a response to the downstream start request to the client device 20B. The response sent from the server device 30 is received by the start request means 212 of the client device 20B. This initiates the downstream connection between the server device 30 and the client device 20B.

[0065] 2.2 Sending Data Streams Figure 9 is a sequence chart showing an example of the process for sending a data stream. The process shown in Figure 9 is performed after the stream initiation process described above is completed.

[0066] In step S111, the acquisition means 202 of the client device 20A acquires multiple data streams output from multiple sensors 10. If the data stream does not contain time information, the acquisition means 202 adds time information to each data body included in the data stream. As a result of this process, the data stream contains multiple data points, each consisting of a data body and time information. The acquisition means 202 also adds a data ID to each data point.

[0067] In step S112, the distribution means 203 of the client device 20A distributes multiple data points to multiple data streams based on the configuration information stored in the memory 22.

[0068] Figure 10 illustrates an example of data point distribution. In this example, three data streams are output to the client device 20A from three data sources 51. These data sources 51 are, for example, different sensors 10. Alternatively, the data sources 51 may be a bus to which multiple sensors 10 are connected. Subsequently, each data point included in the three data streams output from the three data sources 51 is distributed to four data streams based on configuration information. Each data stream has predetermined transmission conditions, including either reliable or unreliable QoS. The configuration information sets the destination for each data point based on the transmission conditions of the data stream.

[0069] As an example, consider a user who wants to check the data output from the accelerator sensor and brake sensor in real time with as little latency as possible, but only needs to store the data output from the speedometer in the server device 30, and wants to acquire the data output from the GPS without any loss and perform some kind of sequential processing. In this case, the configuration information sets the destination of the data points in the data streams output from the accelerator sensor and the data points in the data streams output from the brake sensor to a data stream where QoS is unreliable. On the other hand, the configuration information sets the destination of the data points in the data streams output from the GPS to a data stream where QoS is reliable. Furthermore, the destination of the data points in the data streams output from the speedometer can be set to any QoS. Note that, for the sake of simplicity, the data distribution is set based only on QoS here, but in reality, the transmission conditions include several conditions other than QoS, such as whether or not to store in the server device 30, so the destination of the data points will be set taking into account not only QoS but also other conditions.

[0070] In another example, consider the case where video data is output from the camera. Video data in a compressed codec format such as H.264 includes metadata, keyframes, and subframes. Of these, metadata and keyframes, if lost, can significantly affect image quality, or in the worst case, make video decoding impossible, but because they occur infrequently, they are suitable for reliable transmission where transmission without loss is prioritized. On the other hand, subframes have little impact on image quality if lost, but because they occur frequently and tend to strain bandwidth, they are suitable for unreliable transmission where loss is tolerated and real-time performance is prioritized. In this case, the configuration information sets the destination of metadata and keyframes from the video data output from the camera to a data stream where QoS is reliable. On the other hand, the configuration information sets the destination of subframes from the video data output from the camera to a data stream where QoS is unreliable.

[0071] More specifically, when the distribution means 203 of the client device 20A acquires a data sequence from the data source 51, it acquires a data point from this data sequence. Next, the distribution means 203 selects a data stream that is configured in the configuration information as the destination for the data ID of this data point. Subsequently, the distribution means 203 determines whether a buffer for the data point group to which this data point belongs exists in the buffer of the selected data stream. If a buffer for the data point group to which this data point belongs exists, the distribution means 203 stores the data point in that buffer. On the other hand, if a buffer for the data point group to which this data point belongs does not exist, the distribution means 203 creates a new data point group buffer for the selected data stream and stores the data point in that buffer. When data points are grouped into a data point group, the data IDs of individual data points are aggregated into the data ID of the data point group for efficiency. That is, the data IDs are removed from individual data points and assigned to the data point group collectively.

[0072] Returning to Figure 9, in step S113, the conversion means 204 of the client device 20A converts the data ID of the data point group to an alias value based on the upstream dictionary 322 stored in memory 22. For example, if the upstream dictionary 322 contains the alias value and data ID of the dictionary 322 shown in Figure 7, the conversion means 204 converts the data ID, which consists of the data name "Data001" and the data type "Type001", to the alias value "001".

[0073] In step S114, the generation means 205 of the client device 20A generates chunks of data stream. As shown in Figure 3, a chunk includes a sequence number and multiple data point groups. Multiple chunks included in the same data stream are assigned sequence numbers that are consecutive in the order of their transmission. For example, the first chunk generated in a given data stream is assigned the sequence number "1". Subsequently, each time a new chunk is generated in the same data stream, the sequence number included in the chunk is incremented by 1. The sequence number can be any consecutive number that is incremented according to a predetermined rule, and the increment amount does not necessarily have to be 1. Each data point group includes a data ID and at least one data point. When the amount of data in the buffer of each data stream exceeds a predetermined amount, or when a predetermined time has elapsed since the transmission of the previous chunk, the generation means 205 stores the data point groups stored in the buffer into chunks. Furthermore, the timing for storing data points in a chunk is not limited to the timing described above. For example, it may be at any interval where the elapsed time since the previous chunk transmission is uneven, or the timing may be arbitrarily determined by user instructions.

[0074] Multiple data streams have different chunk generation conditions defined depending on the transmission conditions. These chunk generation conditions include, for example, when the chunk size reaches a predetermined amount or when a predetermined time has elapsed since the last chunk generation. Since the chunk generation conditions differ for each data stream, the number of data points included in a chunk, i.e., the amount of data, differs depending on the data stream, as shown in Figure 10. For example, the predetermined amount and predetermined time for data streams where QoS is reliable are greater than the predetermined amount and predetermined time for data streams where QoS is unreliable. As a result, in data streams where QoS is reliable, chunks with a large number of data points are transmitted at relatively long time intervals. In other words, chunks in data streams where QoS is reliable have a larger amount of data and longer transmission intervals compared to chunks in data streams where QoS is unreliable. On the other hand, in data streams where QoS is unreliable, chunks with a small number of data points are transmitted at relatively short time intervals. In other words, chunks of a data stream where QoS is unreliable have a smaller data volume and shorter transmission intervals compared to chunks of a data stream where QoS is reliable.

[0075] It should be noted that the difference in chunk size depending on QoS is a general trend, and it is not necessarily required to follow this trend. For example, when transmitting data where completeness is prioritized over real-time performance, a data stream with reliable QoS is suitable, and for the transmission of such data, it is appropriate to set the chunk data size large and the transmission interval long. Therefore, in data streams with reliable QoS, there is a tendency for the chunk data size to be large and the transmission interval to be long, but it is also acceptable to set transmission conditions with small data size and short transmission interval in a data stream with reliable QoS. Furthermore, as shown in Figure 10, the chunk size may differ within the same stream.

[0076] Returning to Figure 9, in step S115, the transmitting means 206 of the client device 20A sends multiple data streams to the server device 30 chunk by chunk. The transmitting means 206 starts transmitting the data streams before completing the acquisition of the entire data sequence. The multiple data streams transmitted from the client device 20A are received by the receiving means 303 of the server device 30.

[0077] Figure 11 shows an example of data stream transmission. Although only two data streams are shown in Figure 11, there may be three or more data streams. The transmission means 206 can use protocols such as UDP, which is suitable for real-time transmission but does not guarantee data arrival, TCP (Transmission Control Protocol), which guarantees data arrival, WebSocket, or QUIC, which allows switching between guaranteeing arrival and not guaranteeing arrival, as underlying communication protocols. The transmission means 206 transmits multiple chunks generated in multiple data streams sequentially according to the underlying communication protocol. At this time, the data components contained in each chunk are transmitted together in the same data stream. As shown in Figure 3, chunks do not contain markers to indicate the demarcation between other chunks. Therefore, even if the order of data is changed or part of the data is lost, the structure of the chunk is maintained.

[0078] Returning to Figure 9, in step S116, the conversion means 304 of the server device 30 converts the alias values ​​contained in the chunks of the received data stream into data IDs based on the upstream dictionary 322 stored in memory 32. For example, the conversion means 304 converts the alias value "001" contained in the chunk into a data ID consisting of the data name "Data001" and the data type "Type001" based on the upstream dictionary 322 shown in Figure 7.

[0079] Here, each data point group has predetermined processing to be performed by the server device 30 based on the data stream transmission conditions. Data streams for which the processing to be stored in the server device 30 is predetermined are stored in memory 32. On the other hand, data streams for which acquisition is requested in the downstream start request from the client device 20B are processed from step S117 onwards in order to be transferred to the client device 20B. Note that the processing performed by the server device 30 is not limited to saving or transferring to the downstream.

[0080] In step S117, the addition means 305 of the server device 30 acquires chunks of the data stream to be transferred to the client device 20B and adds upstream information to each acquired chunk. The upstream information includes the session ID, the stream ID, and the ID of the source client device.

[0081] In step S118, the conversion means 304 of the server device 30 converts the data IDs contained in the chunks into alias values ​​based on the downstream dictionary 222 stored in the memory 32. For example, if the downstream dictionary 222 contains the alias values ​​and data IDs shown in Figure 8, the conversion means 304 converts the data ID, which consists of the data name "Data001" and the data type "Type001" contained in the chunk, into the alias value "011".

[0082] Returning to Figure 9, in step S119, the transmitting means 306 of the server device 30 transmits the data stream chunk by chunk to the client device 20B. The transmitting means 306 starts transmitting the data stream before it has finished receiving the entire data stream. The data stream transmitted from the server device 30 is received by the receiving means 213 of the client device 20B.

[0083] In step S120, the conversion means 214 of the client device 20B converts alias values ​​contained in chunks of the received data stream into data IDs based on the downstream dictionary 222 stored in memory 22. For example, the conversion means 214 converts the alias value "011" contained in a chunk into a data ID consisting of the data name "Data001" and the data type "Type001" based on the downstream dictionary 222 shown in Figure 8.

[0084] In step S121, the output control means 215 of the client device 20B causes the data stream to be output to the output device 25 in real time. Before completing the reception of the entire data stream, the output control means 215 causes the data stream to be output to the output device 25, and when a new chunk is received, it updates the output content of the output device 25 according to that chunk. For example, if a display is used as the output device 25, images and graphs visualizing the information observed by each sensor 10, such as the amount of accelerator operation measured by the accelerator sensor, the amount of brake operation measured by the brake sensor, and location information determined by GPS, are displayed.

[0085] In step S122, the acknowledgment means 307 of the server device 30 determines whether the conditions for sending an acknowledgment are met. The conditions for sending an acknowledgment are, for example, that the amount of data in the buffer storing the chunk processing results exceeds a predetermined amount, or that a predetermined time has elapsed since the previous chunk was sent. The acknowledgment means 307 stores the chunk processing results in the buffer, and if the amount of data in this buffer exceeds a predetermined amount, or if a predetermined time has elapsed since the previous chunk was sent, it determines that the conditions for sending an acknowledgment are met (the determination in step S122 is YES). In this case, in step S123, the acknowledgment means 307 sends an acknowledgment including the processing results stored in the buffer to the client device 20A. This allows for a collective acknowledgment indicating the reception of multiple chunks. On the other hand, if the conditions for sending an acknowledgment are not met (the determination in step S122 is NO), the process in step S123 is skipped. Note that an acknowledgment may be sent each time a chunk is received. The client device 20B may also send an acknowledgment for chunk reception to the server device 30, similar to the server device 30. In step S124, the retransmission means 207 of the client device 20A checks for data loss on the upstream communication path based on whether or not an acknowledgment has been received from the server device 30 (details will be described later).

[0086] In step S125, the data loss detection means 216 of the client device 20B confirms the sequence number and upstream information included in the chunk of data stream received from the server device 30. In step S126, the data loss detection means 216 of the client device 20B confirms data loss on the loopback communication path based on this sequence number and upstream information (details will be described later).

[0087] The process from steps S111 to S126 is repeated while the sensor 10 is observing the target.

[0088] 2.3 Retransmission Process Figure 12 is a flowchart illustrating an example of the process by which client device 20A retransmits chunks. This process is initiated each time a chunk is sent from client device 20A to server device 30.

[0089] In step S201, the retransmission means 207 of the client device 20A determines whether it has received an acknowledgment from the server device 30 indicating receipt of the chunk within a predetermined time after sending the chunk. If an acknowledgment indicating receipt of the chunk is received within the predetermined time (determination in step S201 is YES), this process ends. On the other hand, if an acknowledgment indicating receipt of the chunk is not received within the predetermined time (determination in step S201 is NO), the retransmission means 207 determines the QoS of the data stream to which the chunk belongs (step S202).

[0090] If the QoS of the data stream is reliable (the determination in step S202 is "reliable"), in step S203, the retransmission means 207 retransmits the chunk for which no acknowledgment was received before the next chunk is transmitted. On the other hand, if the QoS of the data stream is unreliable (the determination in step S202 is "unreliable"), in step S204, the retransmission means 207 retransmits the chunk for which no acknowledgment was received at a predetermined timing. This predetermined timing is later than the timing at which the chunk is retransmitted in step S203, for example, when there is sufficient communication bandwidth or when instructed by the user. When the QoS of the data stream is unreliable, the retransmission of the chunk of that data stream is for the purpose of storing the data in the server device 30, not for the purpose of transferring the data. Therefore, the retransmission of a chunk of a data stream with unreliable QoS does not necessarily have to use the communication protocol used for streaming communication; a different communication protocol may be used.

[0091] 2.4 Data Missing Data Detection Figure 13 illustrates an example of a process for determining data loss on a loopback communication path. In this example, it is assumed that multiple chunks contained in data streams 55 and 56 transmitted from client device 20A and data stream 57 transmitted from client device 20C are transferred as data stream 58 from server device 30 to client device 20B and received by client device 20B.

[0092] As described above, each chunk of the data stream 58 transmitted from the server device 30 to the client device 20B contains upstream information. In this example, the upstream information of the chunks that were included in the data stream 55 downstream includes the client device ID of client device 20A and the stream ID of data stream 55. The upstream information of the chunks that were included in the data stream 56 upstream includes the client device ID of client device 20A and the stream ID of data stream 56. The upstream information of the chunks that were included in the data stream 57 upstream includes the client device ID of client device 20C and the stream ID of data stream 57.

[0093] Furthermore, as shown in Figure 13, each chunk contains a sequence number. In this example, multiple chunks in data stream 55 contain the consecutive sequence numbers "1", "2", and "3". Similarly, multiple chunks in data stream 56 contain the consecutive sequence numbers "1", "2", and "3". Multiple chunks in data stream 57 contain the consecutive sequence numbers "1", "2", and "3".

[0094] The data loss detection means 216 of the client device 20B determines data loss on the loopback communication path based on the sequence number and upstream information contained in the chunks of the data stream 58 received from the server device 30. In the example shown in Figure 13, after a chunk containing the stream ID and sequence number "1" of the data stream 55 is received, a chunk containing the stream ID and sequence number "2" of the data stream 55 is not received, and a chunk containing the stream ID and sequence number "3" of the data stream 55 is received. In this way, if sequence number "2" is missing from the chunks contained in the data stream 55, it indicates that the chunk with sequence number "2" contained in the data stream 55 is missing on the loopback communication path. In this case, the data loss detection means 216 determines that the chunk with sequence number "2" contained in the data stream 55 transmitted from the client device 20A is missing on the loopback communication path. Note that the method for determining loss is not limited to the above method in which a loss is determined when a larger sequence number is received without a certain sequence number being received, resulting in a missing sequence number. For example, one could use a method that waits for a predetermined sequence number to be received and determines that a sequence number is missing if it is not received within that predetermined time.

[0095] If a chunk is found to be missing, the client device 20B may, for example, consider the communication quality to be degraded and switch to fail-safe operation. Alternatively, the client device 20B may notify the server device 30 of the determination result, present it to the user via the output device 25, or fill in the missing value from the preceding or following chunks.

[0096] As described above, since the server device 30 provides acknowledgments, the client device 20A can determine data loss on the upstream communication path based on whether or not an acknowledgment is returned from the server device 30. For example, if the server device 30 does not return an acknowledgment for a certain chunk, the client device 20A determines that this chunk is missing on the upstream communication path. Similarly, the server device 30 can also determine data loss on the downstream communication path based on whether or not an acknowledgment is returned from the client device 20B. Both the upstream and downstream communication paths are communication paths between the server device 30 and the client device 20A or 20B, and are examples of the first communication paths related to this disclosure.

[0097] However, if, for example, data loss occurs on the upstream communication path but not on the downstream communication path, the method for determining data loss on the downstream communication path described above will not detect the data loss. Therefore, the client device 20B cannot recognize that data loss occurred on the upstream communication path. To address this, the client device 20B determines data loss on the loopback communication path using a method different from the method for determining data loss on the upstream or downstream communication path described above, namely a method using sequence numbers. This allows the client device 20B to recognize data loss even when data loss occurs on the upstream communication path. The loopback communication path is an example of a second communication path according to this disclosure.

[0098] As a method for determining data loss on a loopback communication path using sequence numbers, if an acknowledgment indicating the receipt of a chunk within a predetermined time is not received from the server device 30, the client device 20A notifies the server device 30 of the chunk's loss, and the server device 30 notifies the client device 20B of the chunk's loss. More specifically, in response to the notification from the client device 20A, the server device 30 notifies the client device 20B of the stream ID and sequence number of the stream to which the missing chunk belongs. Upon receiving this notification, the data loss determination means 216 of the client device 20B determines that the chunk corresponding to the sequence number in the data stream indicated by the stream ID is missing. Even with such a method, data loss on a loopback communication path can be determined using sequence numbers.

[0099] 2.5 Updating the dictionary during the stream The upstream dictionary 322 or the downstream dictionary 222 may be updated during upstream communication or downstream communication, respectively. First, the method for updating the upstream dictionary 322 during upstream communication will be described. When this update is performed, the chunk sent from the client device 20A also serves as an alias request. When a chunk serves as an alias request, a data ID list is attached to the chunk. This data ID list includes data IDs for which aliases will be newly created. When a chunk serves as an alias request, the alias means 301 of the server device 30 assigns an alias value to the data IDs included in the data ID list in response to this alias request, and adds the data name and data type constituting this data ID and its alias value to the dictionary 322 in association with it. In addition, the updated upstream dictionary 322 is newly included in the acknowledgment sent from the server device 30 to the client device 20A. If the acknowledgment includes the upstream dictionary 322, this upstream dictionary 322 is stored in the memory 22 of the client device 20A. This allows the upstream dictionary 322 to be updated during upstream communication. Note that, instead of sending the entire dictionary, only the updated portion of the upstream dictionary 322 sent from the server device 30 to the client device 20A in response to the acknowledgment may be sent.

[0100] Next, a method for updating the downstream dictionary 222 during downstream communication will be described. When this update is performed, the alias means 211 of the client device 20B assigns an alias value to the data ID for which a new alias is to be created during downstream communication, and adds the data name and data type that constitute this data ID and their alias value to the downstream dictionary 222 in association with each other. In addition, the updated downstream dictionary 222 is newly included in the acknowledgment sent from the client device 20B to the server device 30. If the downstream dictionary 222 is included in the acknowledgment, this downstream dictionary 222 is stored in the memory 32. This makes it possible to update the downstream dictionary 222 during downstream communication. Note that, as with upstream, instead of sending the entire dictionary, only the updated portion of the downstream dictionary 222 sent from the client device 20B to the server device 30 by acknowledgment may be sent.

[0101] 2.6 Limiting data transmission volume based on bandwidth Figure 14 is a flowchart illustrating an example of a process that limits the amount of data transmitted based on bandwidth. This process is initiated at predetermined time intervals during the transmission of a data stream. Each data stream is also assigned a priority in advance. This priority is recorded, for example, in the configuration file of the client device 20A.

[0102] In step S301, the transmission limiting means 208 of the client device 20A determines whether the ratio of the receiving rate of the server device 30 to the transmission request rate of the client device 20A (receiving rate / transmission request rate) is below a threshold. The transmission request rate is the rate at which the client device 20A requested transmission. The receiving rate is the rate at which the server device 30 actually received the data. The receiving rate is measured by the server device 30 at predetermined time intervals and transmitted to the client device 20A. If the ratio of the receiving rate to the transmission request rate is below a threshold, it indicates that the bandwidth of the communication path between the client device 20A and the server device 30 is insufficient. In addition to the ratio of the transmission request rate to the receiving rate, the difference (transmission request rate - receiving rate) may also be used to determine if there is insufficient bandwidth.

[0103] If the ratio of the receive rate to the send request rate is below a threshold (the determination in step S301 is YES), in step S302, the transmission limiting means 208 of the client device 20A stops the transmission of the data stream with the lowest priority among the data streams currently being transmitted. Here, if the QoS of the data stream is unreliable, chunks generated while the transmission of the data stream is stopped are discarded. On the other hand, if the QoS of the data stream is reliable, chunks generated while the transmission of the data stream is stopped are temporarily stored in the memory 22 of the client device 20A.

[0104] After processing in step S302, the process returns to step S301. Then, the process in step S302 is repeated until the ratio of the receive rate to the send request rate exceeds a threshold. This stops the transmission of data streams in order from the lowest priority.

[0105] On the other hand, when the bandwidth shortage is resolved, the determination in step S301 described above becomes NO. In this case, in step S303, the transmission limiting means 208 of the client device 20A resumes transmission of the data stream with the highest priority among the data streams whose transmission has been stopped. Here, if the QoS of the data stream is unreliable, when the transmission of the data stream is resumed, the data stream will transmit starting from the chunks generated after the transmission was resumed. Chunks generated while the transmission was stopped will not be transmitted. On the other hand, if the QoS of the data stream is reliable, when the transmission of the data stream is resumed, the data stream will first transmit the chunks stored in the memory 22 of the client device 20A that were generated while the transmission was stopped, and then the chunks generated after the restart will be transmitted. Thus, for data streams with reliable QoS, chunks generated while the transmission was stopped are also transmitted, so it can be said that the transmission is delayed.

[0106] After processing in step S303, the process returns to step S301. Then, the process in step S303 is repeated until the ratio of the receive rate to the send request rate reaches a threshold. This allows transmission to resume in order, starting with the data streams with the highest priority.

[0107] Furthermore, even for data streams where QoS is unreliable, chunks generated while transmission is stopped may be stored in the memory 22 of the client device 20A and transmitted at a predetermined timing after the resumption of data stream transmission, such as when there is sufficient communication bandwidth available or when instructed by the user.

[0108] Furthermore, the process of limiting the amount of data transmitted according to the bandwidth may be performed not only by the client device 20A but also by the server device 30. In this case, the server device 30 limits the amount of data transmitted by stopping or restarting the transmission of downstream data according to the downstream bandwidth, similar to the client device 20A.

[0109] According to the embodiments described above, since the chunks that form the unit for transmitting the data stream have a data structure that does not use markers to indicate the demarcation between other chunks, the data structure can be maintained even if part of a chunk is lost or the order of data within a chunk changes during data transmission. With this data structure, there is no need to guarantee the transmission order or arrival of data, so a communication protocol that is suitable for real-time transmission but does not have arrival guarantees or retransmission control can be adopted as a lower-level protocol. In addition, since the chunks have a data structure in which data points with the same data ID are grouped into one data point group, and only one data ID is stored in the data point group, the amount of data can be reduced compared to a data structure in which each data point has a data ID.

[0110] Furthermore, since the amount of data in each chunk can be varied depending on the data stream, various streams suitable for different requirements can be provided. For example, by shortening the predetermined time included in the chunk generation conditions (hereinafter referred to as "buffer time"), a data stream with a small amount of data in each chunk can be realized. This data stream contributes to the real-time nature of data transmission because it has less delay due to the buffer time. Conversely, by lengthening the buffer time, a data stream with a large amount of data in each chunk can be realized. As the amount of data in each chunk increases, the effect of reducing redundant data such as data IDs becomes greater, and this data stream can improve both data reduction and data transmission efficiency.

[0111] Furthermore, by distributing data points across multiple data streams based on the transmission conditions of the data streams, data points can be transmitted according to various requirements.

[0112] Furthermore, chunks of data streams where QoS is reliable are immediately retransmitted if their reception is not confirmed, while chunks of data streams where QoS is unreliable are retransmitted at a predetermined time afterward if their reception is not confirmed. This allows for data to be retransmitted at a time appropriate to the QoS of the data stream.

[0113] Furthermore, by determining whether or not an acknowledgment response indicating chunk reception is sent, data stream loss on the upstream or downstream communication path can be detected. Additionally, by using the sequence number contained in the chunk to determine data stream loss on the loopback communication path, the client device 20B can recognize data stream loss on the loopback communication path.

[0114] Furthermore, since an alias value with reduced data size is used instead of a data ID consisting of a data name and data type that can be any string, the amount of data in the data stream can be reduced and transmission efficiency can be improved.

[0115] Furthermore, if the bandwidth of the communication path is insufficient, transmission of data streams will be stopped in order from the lowest priority. By suppressing the transmission of low-priority data according to the bandwidth of the communication path, delays and loss of high-priority data can be avoided. When the bandwidth shortage of the communication path is resolved, transmission will resume in order from the highest priority data streams. When data stream transmission is resumed, for data streams with unreliable QoS, chunks generated while transmission was stopped will not be transmitted, and chunks generated after transmission resumes will be transmitted in real time. On the other hand, for data streams with reliable QoS, both chunks generated while transmission was stopped and chunks generated after transmission resumes will be transmitted. In this way, data stream transmission can be resumed in a manner that corresponds to the QoS of the data stream.

[0116] Furthermore, since the downstream chunks contain upstream information, the client device 20B can recognize information regarding the upstream communication between the client device 20A and the server device 30, and determine which data stream upstream the chunks sent downstream originated from.

[0117] 3. Variant This disclosure is not limited to the embodiments described above. The embodiments described above may be modified as follows. Furthermore, two or more of the following modifications may be combined.

[0118] In the embodiments described above, the data structure of the data stream is not limited to the data structure shown in Figure 3. The data structure of the data stream may be any data structure that can transmit data in a streaming format.

[0119] In the embodiments described above, the hardware configuration of the data communication system 1 is not limited to the examples described in the embodiments above. The client device 20 and the server device 30 may be configured to include one or more of the hardware configurations described above, or they may be configured to omit some of the hardware configurations.

[0120] In the embodiments described above, the means for realizing the functions of the data communication system 1 are not limited to the examples described in the embodiments above. Some of the functions of the server device 30 may be realized by the client device 20. Some of the functions of the client device 20 may be realized by the server device 30. Each functional configuration may be realized by one device, or by two or more devices connected to each other. The processors 21 and 31 of the client device 20 and the server device 30 may be implemented by at least one of the following hardware: a microprocessor, a digital signal processor (DSP), an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), or an FPGA (Field Programmable Gate Array), and some or all of each functional configuration may be realized by such hardware.

[0121] The processing steps performed in the data communication system 1 are not limited to the examples described in the embodiments above. These processing steps may be replaced as long as they do not conflict. Another aspect of this disclosure may be provided as a method comprising the processing steps performed in the data communication system 1.

[0122] This disclosure may be provided as a program to be executed on a client device 20 or a server device 30. This program may be downloaded via a communication line such as the Internet. Alternatively, these programs may be provided recorded on a computer-readable recording medium such as a magnetic recording medium (magnetic tape, magnetic disk, etc.), an optical recording medium (optical disk, etc.), a magneto-optical recording medium, or a semiconductor memory.

[0123] Note 1 A program for causing a computer to perform a communication step in which it communicates with a client device in a streaming format, wherein the communication step includes a receiving step of receiving a plurality of data streams from a first client device, the plurality of data streams having different transmission conditions, and each of the plurality of data streams includes a data point corresponding to the transmission conditions of the data stream.

[0124] Note 2 A program for causing a computer to perform a communication step in which it communicates with a client device in a streaming format, wherein the communication step includes a receiving step of receiving a data stream from a first client device, the data stream has transmission conditions, and if the reception of a first data block included in the data stream is not confirmed, the program retransmits the first data block from the first client device at different timings depending on the transmission conditions of the data stream.

[0125] Note 3 A program for causing a computer to perform a communication step for communicating with a client device in a streaming format, wherein the communication in a streaming format is performed using data blocks, the communication step includes a receiving step for receiving a data stream from a first client device, and a transmitting step for transmitting the data stream to a second client device, the data blocks include sequence numbers that are consecutive in the order of transmission from the first client device, data loss on a first communication path between the computer and the first client device or the second client device is determined based on the presence or absence of an acknowledgment returned in response to the reception of the data block, and data loss on a second communication path from the first client device to the second client device via the computer is determined using the sequence numbers.

[0126] Note 4 A program for causing a computer to perform a communication step in which it communicates with a client device in a streaming format, wherein the communication in a streaming format is performed using data blocks including data groups, the data groups include data type information, the client device includes a first client device that transmits a data stream to the computer, and a second client device that receives the data stream transferred from the computer, and the communication step is a program that includes a transmission step of transmitting a first dictionary used for converting the data type information to a first alias value to the first client device in the communication between the first client device and the computer, and a reception step of receiving a second dictionary used for converting the data type information to a second alias value from the second client device in the communication between the computer and the second client device.

[0127] Note 5 A program for causing a computer to perform a communication step in which it communicates with a client device in a streaming format, wherein the communication step includes a receiving step of receiving a plurality of data streams from a first client device, the plurality of data streams including a first data stream having a first transmission condition that prioritizes real-time data transmission and a second data stream having a second transmission condition that prioritizes data transmission integrity, wherein when the transmission of the first data stream from the first client device is stopped in accordance with the bandwidth of the communication path between the computer and the first client device and then resumed, the first data stream is transmitted from a portion corresponding to the time when the transmission was resumed, and when the transmission of the second data stream from the first client device is stopped in accordance with the bandwidth and then resumed, the second data stream is transmitted from a portion corresponding to the time when the transmission was stopped.

[0128] Note 6 A program for causing a computer to perform a communication step for communicating with a client device in a streaming format, wherein the communication step includes a receiving step for receiving a data stream from a first client device and a transmitting step for transmitting the data stream to a second client device, and the program for causing the computer to further perform an adding step for adding information relating to communication between the computer and the first client device to data blocks included in the data stream received in the receiving step.

Claims

1. On the computer, A program for executing a communication step of performing streaming communication with a client device, The streaming communication is performed using a data block including a plurality of data groups; Each of the plurality of data groups includes data type information and at least one data point associated with the data type information and acquired by the client device; The communicating step includes a receiving step of receiving a plurality of data streams from a first client device; the plurality of data streams have different transmission conditions; Each of the plurality of data streams includes data points according to the transmission condition of the data stream. program.

2. The communicating step includes a receiving step of receiving a plurality of data streams from a first client device; The amount of data of the data blocks included in each of the multiple data streams varies. The program according to claim 1.

3. The communicating step includes a receiving step of receiving a data stream from a first client device; the data stream has a transmission condition; If reception of a first data block included in the data stream is not confirmed, the first data block is retransmitted from the first client device at a different timing depending on the transmission condition of the data stream. The program according to claim 1.

4. The communicating step includes a receiving step of receiving a data stream from a first client device and a transmitting step of transmitting the data stream to a second client device; the data blocks include sequence numbers that are consecutive in order of transmission from the first client device; a data loss on a first communication path between the computer and the first client device or the second client device is determined based on the presence or absence of an acknowledgement response returned in response to reception of the data block; A data loss on a second communication path from the first client device through the computer to the second client device is determined using the sequence number. The program according to claim 1.

5. The client devices include a first client device that transmits a data stream to the computer, and a second client device that receives the data stream transferred from the computer; The communication step includes: a transmitting step of transmitting, to the first client device, a first dictionary used for converting between the data type information and a first alias value in the communication between the first client device and the computer; and receiving, from the second client device, a second dictionary used for converting between the data type information and a second alias value in the communication between the computer and the second client device. The program according to claim 1.

6. The communicating step includes a receiving step of receiving a plurality of data streams from a first client device; the plurality of data streams include a first data stream having a first transmission condition that prioritizes real-time data transmission and a second data stream having a second transmission condition that prioritizes completeness of data transmission; when transmission of the first data stream from the first client device is stopped in accordance with a bandwidth of a communication path between the computer and the first client device and then the transmission is resumed, the first data stream is transmitted from a portion corresponding to a time point when the transmission is resumed; When the transmission of the second data stream from the first client device is stopped according to the bandwidth and then resumed, the second data stream is transmitted from a portion according to the time when the transmission was stopped. The program according to claim 1.

7. The communicating step includes a receiving step of receiving a data stream from a first client device; The computer includes: an adding step of adding information regarding the communication between the computer and the first client device to the data block included in the data stream received in the receiving step; The program according to claim 1, further comprising:

8. A communication means for performing communication with a client device in a streaming format, The streaming communication is performed using a data block including a plurality of data groups; Each of the plurality of data groups includes data type information and at least one data point associated with the data type information and acquired by the client device; the communication includes receiving a plurality of data streams from a first client device; the plurality of data streams have different transmission conditions; Each of the plurality of data streams includes data points according to the transmission condition of the data stream. Server device.

9. A communication step of performing communication with a client device in a streaming format, The streaming communication is performed using a data block including a plurality of data groups; Each of the plurality of data groups includes data type information and at least one data point associated with the data type information and acquired by the client device; The communicating step includes a receiving step of receiving a plurality of data streams from a first client device; the plurality of data streams have different transmission conditions; Each of the plurality of data streams includes data points according to the transmission condition of the data stream. A method for transmitting data streams.