WO2014016916A1 - Communication device and relay device - Google Patents
Communication device and relay device Download PDFInfo
- Publication number
- WO2014016916A1 WO2014016916A1 PCT/JP2012/068770 JP2012068770W WO2014016916A1 WO 2014016916 A1 WO2014016916 A1 WO 2014016916A1 JP 2012068770 W JP2012068770 W JP 2012068770W WO 2014016916 A1 WO2014016916 A1 WO 2014016916A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- priority
- unit
- downlink
- transmission
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2458—Modification of priorities while in transit
Definitions
- the present invention relates to a communication system in which messages are transmitted / received to / from a plurality of terminal devices.
- the present invention relates to a smart meter automatic meter reading system in which messages are transmitted / received to / from a plurality of smart meters, for example.
- smart meter automatic meter reading systems such as electric power, gas, and water using smart meters (hereinafter also simply referred to as “meters”) are being introduced.
- a smart meter, a relay device, a message transmission / reception device, and an application server device are connected by a tree structure network.
- the smart meter and the relay device have low calculation capability, and there are restrictions on the execution of processing.
- the smart meter and the relay device are connected by a network
- the relay device and the message transmitting / receiving device are connected by a network
- the message transmitting / receiving device and the application server device are connected by a network.
- Each network has a different bandwidth, communication speed, communication medium, and communication method
- the smart meter automatic meter reading system is a system composed of heterogeneous networks.
- an application program hereinafter simply referred to as “application” executed on the application server device and the smart meter exchange data such as meter reading values and control information such as open / close control by message communication. To do.
- the messages to be handled include messages in the upstream direction (meter, direction from relay device to application) and messages in the downstream direction (direction from application to relay device, meter).
- the one-way message is a message for spontaneously transmitting a message from a meter or a relay device, or a message for unidirectionally instructing control from an application.
- the bidirectional message includes a message for giving an instruction to the meter or the relay device by the application and a message returned as a response by the meter or the relay device.
- the smart meter automatic meter reading system has a feature that there are a time zone with a large amount of communication and a time zone with a small amount of communication, and the amount of communication is uneven. Furthermore, many-to-one communication with millions of message communications within a certain period of time, such as periodic meter reading, one-to-one communication for obtaining information of one meter with application, meter and relay device There is a one-to-many communication such as firmware update. There are various application characteristics, including applications that require throughput, applications that require response performance, and applications that have restrictions that must be completed within a certain period of time. In the smart meter automatic meter reading system, it is necessary for such a highly restrictive device to effectively control the message priority in accordance with the application of various characteristics on the heterogeneous and asymmetric network.
- Patent Document 1 describes a priority control method for an application that must finish processing within a certain time. More specifically, in Patent Document 1, a high-priority transmission queue is selected from among transmission queues classified by priority for messages with a small difference between the transmission deadline and the current time (remaining time), and the remaining time is small. Messages are sent preferentially.
- the priority order is determined only by whether or not the remaining time is smaller than the threshold value. For this reason, a message whose remaining time is slightly larger than the threshold value (referred to as “message A”) is stored in the low priority queue, and is thereafter kept in the low priority queue. A message that occurs after message A and whose remaining time is smaller than the threshold value is stored in a high priority queue and is transmitted before message A. For this reason, even if the remaining time of the message A becomes smaller than the threshold due to the passage of time, a situation in which the message A is not transmitted occurs, and the priority control for keeping the transmission time limit does not function sufficiently.
- each wireless communication device performs priority determination only with the remaining time, and thus there is a problem that fine adjustment cannot be performed when a large number of messages with transmission deadlines occur, There is a problem that the priority of the message is fixed and flexible control is not possible.
- the main purpose of the present invention is to solve the above-mentioned problems, and it is a main object to flexibly adjust the priority of messages according to the situation.
- the communication device is Receiving a downlink message to the terminal device, storing the received downlink message, selecting a priority downlink message to be transmitted to the terminal device preferentially from the stored downlink messages based on the priority of the downlink message;
- a message transmission unit that transmits a downlink message with a priority set to a relay device that prioritizes the selected priority downlink message and transmits the message to the terminal device;
- An extraction condition designating part for designating an extraction condition for extracting a downstream message whose priority is to be adjusted;
- a downlink message that matches the extraction condition specified by the extraction condition specifying unit is extracted, and a priority downlink message is assigned to the extracted downlink message using a priority different from the priority set for the downlink message.
- An instruction command generator for generating an instruction command for instructing the relay device to select;
- an instruction command transmission unit that transmits the instruction command generated by the instruction command generation unit to the relay device.
- the priority of the message can be flexibly adjusted according to the situation.
- FIG. 3 is a diagram illustrating a configuration example of a message transmission / reception device according to Embodiments 1 and 2.
- FIG. 3 is a diagram illustrating a configuration example of a relay device according to the first and second embodiments.
- FIG. 4 is a diagram illustrating an example of a priority information table according to the first embodiment.
- FIG. FIG. 5 is a diagram showing an example of a priority change information table according to the first embodiment.
- FIG. 4 shows an example of an application table according to the first embodiment.
- FIG. 3 is a diagram showing an example of a message transmission request format according to the first embodiment.
- FIG. 4 shows an example of a message reception request format according to the first embodiment.
- FIG. 6 is a diagram showing an example of a transmission message format according to the first embodiment.
- FIG. 4 is a flowchart showing an example of priority adjustment processing according to the first embodiment. The flowchart figure which shows the example of the priority adjustment necessity check (difference in the number of transmission / reception) which concerns on Embodiment 1.
- FIG. 6 is a flowchart showing an example of priority adjustment necessity check (message reception speed) according to the first embodiment.
- FIG. 5 is a flowchart showing an example of priority adjustment necessity check (reception remaining time) according to the first embodiment.
- FIG. 5 is a flowchart showing an example of priority lowering processing according to the first embodiment.
- FIG. 9 is a flowchart showing an example of processing for adjusting the transmission order of priority adjustment messages according to the second embodiment.
- the flowchart figure which shows the example of the relay apparatus load table update process (pending message number) which concerns on Embodiment 2.
- FIG. The flowchart figure which shows the example of the relay apparatus load table update process (message processing time required) which concerns on Embodiment 2.
- FIG. 1 The flowchart figure which shows the example of the priority adjustment message process (1) which concerns on Embodiment 2.
- Embodiment 1 a smart meter automatic meter reading system will be described.
- the message transmission / reception device deployed in the center determines the progress of message communication and issues a priority adjustment instruction to the relay device. Then, the relay device adjusts the priority according to an instruction from the message transmission / reception device. By these procedures, effective and fine priority control can be performed.
- FIG. 1 is a schematic diagram of a smart meter automatic meter reading system according to the present embodiment.
- a smart meter automatic meter reading system includes a smart meter 40, a relay device 30, a message transmission / reception device 20, and an application server device 10 connected via a network having a tree structure.
- the smart meter 40 measures the usage amount of power, gas, water, and the like, and transmits / receives the message transmission / reception device 20, the message transmission / reception device 20, and the smart meter 40 to one or more applications operating on the application server device 10. Message communication is performed via the relay device 30 provided in between.
- the smart meter 40 corresponds to an example of a terminal device.
- an application relating to automatic meter reading operates.
- the application server device 10 transmits a message transmission request (hereinafter also simply referred to as “transmission request”) to the message transmission / reception device 20 by executing the application.
- the application server device 10 transmits a message transmission request to the message transmission / reception device 20, and requests the message transmission / reception device 20 to transmit a message to the plurality of smart meters 40.
- the application server device 10 receives a message from the smart meter 40 from the message transmission / reception device 20.
- the application server device 10 corresponds to an example of a host device.
- the message transmitting / receiving device 20 controls the application on the application server device 10 and message communication with the relay device 30. More specifically, the message transmission / reception device 20 receives a message transmission request from the application server device 10.
- the message transmission request includes one or more transmission messages.
- a transmission message is also called a downstream message.
- the message transmission / reception device 20 extracts a transmission message from the message transmission request, and transmits the extracted transmission message to the relay device 30.
- a transmission request ID that is an ID (Identifier) of the message transmission request and a priority specified in the message transmission request are set.
- the message transmission / reception device 20 receives a reception message from the smart meter 40 from the relay device 30 and transmits the received reception message to the application server device 10.
- the received message is also called an upstream message.
- the message transmitting / receiving device 20 adjusts the priority of the transmission message and the reception message.
- the message transmission / reception device 20 corresponds to an example of a communication device.
- the relay device 30 relays a message with the smart meter 40. More specifically, the relay device 30 receives a downlink message from the message transmission / reception device 20, accumulates the received downlink message in a priority-specific queue, and stores the downlink message accumulated in the highest priority queue. Send to the smart meter 40 with priority. A downlink message stored in the highest priority queue, that is, a downlink message transmitted with priority to the smart meter 40 is also referred to as a priority downlink message. Further, the relay device 30 receives upstream messages from the plurality of smart meters 40, accumulates the received upstream messages in priority-specific queues, and gives priority to downstream messages stored in the highest priority queue. The message is transmitted to the message transmitting / receiving device 20. An upstream message stored in the highest priority queue, that is, an upstream message transmitted with priority to the message transmitting / receiving device 20 is also referred to as a priority upstream message.
- FIG. 2 is a system configuration diagram showing a configuration example of the message transmitting / receiving apparatus 20 according to the present embodiment.
- the priority control processing unit 24 performs priority control of message communication.
- the transmission request reception unit 26 receives a message transmission request from the application server device 10, extracts a transmission message addressed to the smart meter 40 from the message transmission request, and transfers the extracted transmission message to the priority control processing unit 24.
- the message temporary storage unit 27 temporarily stores a plurality of transmission messages extracted by the transmission request reception unit 26 when the transmission request reception unit 26 receives a message transmission request including transmission messages for the plurality of smart meters 40. To do.
- the timer unit 25 gives the timing to take out the transmission message from the message temporary storage unit 27 and transfer it to the priority control processing unit 24.
- the message transmission unit 21 receives the transmission message from the priority control processing unit 24 and transmits the transmission message to the relay device 30. Note that the message transmission unit 21 also functions as an instruction command transmission unit, as will be described later.
- the reception request reception unit 22 receives a message reception request including one or more reception messages from the relay device 30 and transfers the message reception request to the priority control processing unit 24.
- the reception request reception unit 22 corresponds to an example of a message reception unit.
- the message delivery unit 28 transmits the message reception request received from the priority control processing unit 24 to the application server device 10.
- the load information storage unit 23 stores load information periodically transmitted from the relay device 30 and message processing capability information for each relay device type. Details of the load information storage unit 23 will be described in the second embodiment.
- the priority adjustment data storage unit 29 stores priority adjustment data referred to by the priority control processing unit 24.
- the priority control processing unit 24 includes a plurality of downlink queues 241, a plurality of uplink queues 244, a priority adjustment unit 242, and a progress information management unit 243.
- the downstream queue 241 is a queue for storing downstream messages from the application server device 10 to the relay device 30, that is, downstream messages to the smart meter 40 extracted by the transmission request receiving unit 26.
- the downlink queue 241 is provided for each priority.
- the upstream queue 244 is a queue for storing upstream messages from the relay device 30 to the application server device 10, that is, upstream messages from the smart meter 40.
- the upstream queue 244 is provided for each priority.
- the progress information management unit 243 for each transmission request ID, the number of transmitted messages transmitted by the message transmitting unit 21, the number of received messages received by the reception request receiving unit 22, the message reception speed of the received messages, the number of remaining received messages, the transmission request It manages message communication progress information such as time and the remaining time until the reception deadline time.
- the priority adjustment unit 242 performs priority adjustment based on the progress information.
- the priority adjustment unit 242 analyzes the progress information and specifies an extraction condition for extracting a downlink message that is a target of priority adjustment. More specifically, the priority adjustment unit 242 selects a specific transmission request ID and specifies an extraction condition for extracting a downlink message in which the selected transmission request ID is set. Then, the priority adjustment unit 242 extracts the downlink message in which the selected transmission request ID is set, and uses a priority different from the priority described in the downlink message for the extracted downlink message.
- An instruction command hereinafter referred to as “priority adjustment message” for instructing the relay device 30 to select a priority downlink message is generated.
- the priority adjustment message is transmitted from the message transmission unit 21 to the relay device 30.
- the same transmission request ID and priority as those of the downstream message transmission request ID and priority are set for the upstream message.
- the priority adjustment unit 242 selects the transmission request ID used for the bidirectional message, the priority adjustment message is also applied to the uplink message.
- the priority adjustment message is extracted by using the priority that is different from the priority set for the uplink message, by extracting the uplink message in which the corresponding transmission request ID is set. It also includes an instruction to select an upstream message.
- the downlink message in the bidirectional message is a downlink message requesting a response from the smart meter 40, and corresponds to a response request downlink message.
- the priority adjustment unit 242 corresponds to an example of an extraction condition designation unit and an instruction command generation unit.
- the downlink queue 241 and the uplink queue 244 of the priority control processing unit 24 are configured by a plurality of queues for each priority, but may be realized by one queue.
- one downlink queue 241 is divided into areas for each priority, and the downlink message input from the transmission request receiving unit 26 is stored in the corresponding priority area.
- one upstream queue 244 is divided into areas for each priority, and the upstream message input from the reception request receiving unit 22 is stored in the corresponding priority area.
- the down queue 241 and the up queue 244 may be realized by one queue. In this case, one queue is divided into an area for downlink messages and an area for uplink messages, and further, an area for downlink messages is divided for each priority, and an area for uplink messages is divided for each priority. .
- a plurality of applications are running on the application server device 10, and the application requests the message transmission / reception device 20 to send a message to the smart meter 40 during processing to be executed.
- the content of the message depends on processing executed by the application, and includes, for example, a control message to the smart meter 40, an information acquisition request from the smart meter 40, and the like.
- the format of a message transmission request for an application requesting message transmission to the message transmission / reception device 20 is, for example, as shown in FIG.
- the message transmission request includes a header portion including information necessary for controlling message communication, and a data portion including one or more transmission messages to be transmitted and a transmission destination ID.
- a transmission message is transmitted to the smart meter 40
- the meter ID of the smart meter 40 of the transmission destination is entered in the transmission destination ID.
- the header part includes, for example, an application ID, message type, transmission message size, total number of transmission messages, response message reception deadline time, and priority.
- the application ID uniquely represents the application that has requested the message transmission.
- the message type represents the type of transmission message (one-way message or two-way message).
- the unit transmission message size represents the size of data combining one transmission message and a transmission destination ID.
- the total number of transmission messages represents the total number of transmission messages included in the data part of the message transmission request.
- the response message reception deadline time represents the time limit for the application to receive a response (uplink message) from the smart meter 40 to the transmission message (response request downlink message).
- the priority is a priority in communication of a transmission message specified by the application.
- the data part includes a set of transmission message IDs and transmission destination IDs for designating transmission destinations for the total number of transmission messages.
- the transmission request receiving unit 26 receives a message transmission request from an application.
- the transmission request receiving unit 26 assigns a transmission request ID of the received message transmission request.
- the transmission request reception unit 26 converts the message transmission request into a downlink message having the format shown in FIG. 13 when the data part of the received message transmission request includes only one set of transmission destination ID and transmission message. Then, the downlink message is transferred to the priority control processing unit 24.
- a header part includes a transmission destination ID, a transmission request ID, a message type, a transmission message size, a response message reception deadline time, and a priority
- a data part includes a transmission message included in the message transmission request. .
- the transmission destination ID, message type, transmission message size, response message reception deadline time, and priority in the header are values included in the message transmission request (FIG. 11).
- the transmission request ID is a value numbered by the transmission request reception unit 26 when a message transmission request is received.
- the transmission request reception unit 26 divides the data into combinations of individual transmission destination IDs and transmission messages.
- the transmission request reception part 26 produces
- a message transmission request including a plurality of transmission messages is referred to as a composite message transmission request, and a message transmission request including a plurality of bidirectional transmission messages (response request downlink messages) is referred to as a composite response request message transmission request.
- the transmission request reception unit 26 calculates an interval time when the downlink message is transferred to the priority control processing unit 24 from the total number of transmission messages included in the header part and the response message reception deadline, and sends the interval time to the timer unit 25.
- the interval time may be obtained by, for example, dividing the time obtained by subtracting the margin time required for the response from the remaining time until the response message reception deadline by the total number of transmitted messages. Alternatively, a predetermined interval time may be used.
- the timer unit 25 sends a timing signal notifying that the transfer time has arrived to the transmission request receiving unit 26 every set interval time.
- the transmission request reception unit 26 that has received the timing signal extracts one downlink message from the message temporary storage unit 27 and transfers the extracted downlink message to the priority control processing unit 24.
- the priority control processing unit 24 inserts the transmission message transferred from the transmission request receiving unit 26 at the tail of the queue with the corresponding priority in the down queue 241.
- the message transmission unit 21 extracts a transmission message from the head of the queue having the highest priority among the downlink queues 241. If the queue with the highest priority is empty, the transmission message is extracted from the head of the queue with the next highest priority. Next, the message transmission unit 21 reads the transmission destination ID from the extracted transmission message, searches the meter relay device correspondence table shown in FIG. 5 for the relay device ID corresponding to the corresponding transmission destination ID, and finds the relay device ID found. A transmission message is transmitted to the relay device 30 corresponding to the above.
- the relay device 30 transmits a message reception request including one or more uplink messages to the message transmitting / receiving device 20.
- the upstream message is a message received by the relay device 30 from the smart meter 40. For example, a message representing an event that has occurred regularly or irregularly in the smart meter 40, or a response to a message from the application (response request downstream message). Message.
- the format of the message reception request that the message transmitting / receiving apparatus 20 receives from the relay apparatus 30 is, for example, as shown in FIG.
- the message reception request includes a header portion including information necessary for control of message communication, and a data portion including one or more received messages and a transmission source ID.
- the meter ID of the smart meter 40 of the transmission source is entered in the transmission source ID.
- the header part includes, for example, a transmission request ID or application ID, a message type, a unit received message size, the total number of received messages, a response message reception deadline, and a priority.
- the transmission request ID is used when the upstream message is a response message to the response request downstream message. In the transmission request ID column, the same value as the transmission request ID (FIG. 13) of the response request downlink message is described.
- the application ID is used when the upstream message is a message transmitted from the smart meter 40 (when it is not a response message to the response request downstream message).
- the application ID uniquely represents the destination application of the upstream message.
- FIG. 13 illustrates a downlink message in which the application ID is not described. However, when the application ID is described in the downlink message, the same application ID is described in the uplink message that is response data. Also good.
- the message type represents the type of received message (one-way message or two-way message).
- the unit received message size represents the size of data that combines one received message and the transmission source ID.
- the total number of received messages represents the total number of received messages included in the data part of the message reception request.
- the response message reception time limit represents a time limit for receiving the received message by the application.
- the priority represents a priority in communication of the received message.
- the received message is a response message to the response request downlink message
- the same value as the priority (FIG. 13) described in the response request downlink message is described in the priority column.
- the data portion includes a set of sender IDs indicating the main body of the received message and the sender for the total number of received messages.
- the reception request receiving unit 22 receives a message reception request from the relay device 30.
- the reception request reception unit 22 transfers the message reception request as it is to the priority control processing unit 24 when the data portion of the received message reception request includes only one set of the transmission source ID and the reception message.
- the reception request reception unit 22 divides the data into combinations of individual transmission source IDs and reception messages.
- the reception request receiving unit 22 adds the header information and the transmission source ID of the message reception request to the received message for each set of the transmission source ID and the reception message, and adds the header information and the transmission source ID.
- the received message is transferred to the priority control processing unit 24.
- the priority control processing unit 24 inserts the received message transferred from the reception request receiving unit 22 at the tail of the corresponding priority queue in the upstream queue 244.
- the message delivery unit 28 extracts a received message from the head of the queue having the highest priority among the upstream queues 244. If the queue with the highest priority is empty, the received message is extracted from the head of the queue with the next highest priority. Next, the message delivery unit 28 reads the transmission request ID or application ID from the received received message, and delivers the received message to the corresponding application.
- the progress information management unit 243 manages data in the priority information table of the priority adjustment data storage unit 29.
- FIG. 4 shows an example of the priority information table.
- the record of the priority information table is created for each message transmission request from the application.
- the data items of the priority information table include application ID, transmission request ID, transmission request time, priority, communication direction, transmission number, reception number, previous reception number, reception speed, remaining received message number, priority adjustment index, The reception deadline time is included.
- application ID the ID of the application that is the transmission source of the message transmission request, that is, the application ID described in the message transmission request is described.
- the transmission request ID column a transmission request ID uniquely assigned when a message transmission request is received is described.
- the priority column the priority specified by the application, that is, the priority described in the message transmission request is described.
- the communication direction column describes the communication direction of the message described in the message transmission request, that is, bidirectional or unidirectional.
- the transmission number column the number of messages transmitted as downlink messages from the message transmission unit 21 among the transmission messages requested by the message transmission request is described.
- the reception number column the number of messages whose response is received by the reception request receiving unit 22 among the transmission messages requested by the message transmission request is described.
- the previous received number column when the received number is updated, the received number before the update is described. The value of the previous reception number is used to calculate the reception speed.
- the reception speed column the number of received messages per unit time is described.
- the remaining number of received messages column the number of received messages to be received after the present is described.
- the priority adjustment index column an index for instructing priority adjustment is described.
- the reception deadline time column the time at which the response of the response request downstream message must be received by the application is described. However, the reception number, the previous reception number, the reception speed, and the reception deadline time are used only when the communication direction is bidirectional.
- the progress information management unit 243 is called when the transmission request reception unit 26 receives a message transmission request from an application, and a new record in which the transmission request ID numbered by the transmission request reception unit 26 is described is given priority information. Create in the table. At this time, the progress information management unit 243 extracts the application ID, the response message reception deadline time, and the priority from the header part of the message transmission request, and the application ID, the reception deadline time, and the priority of the corresponding record in the priority information table, respectively. Write to each column. Also, the progress information management unit 243 takes out the message type, identifies the communication direction, and writes it in the data item of the communication direction.
- the progress information management unit 243 extracts the total number of transmitted messages and writes it in the column of the number of remaining received messages.
- “0” (zero) is written in the column of the number of remaining received messages.
- the progress information management unit 243 writes “0” (zero) in the columns of the transmission number, the reception number, the previous reception number, and the priority adjustment index.
- the progress information management unit 243 is called each time a transmission message is transmitted from the message transmission unit 21 of the message transmission / reception device 20, and increments the number of transmissions of the record of the corresponding transmission request ID.
- the progress information management unit 243 is called every time the reception request reception unit 22 of the message transmitting / receiving apparatus 20 receives a reception message, increments the reception number of the record of the corresponding transmission request ID, and decrements the number of remaining reception messages. .
- the progress information management unit 243 receives a timing signal from the timer unit 25 at certain intervals, for example, every minute, calculates the current reception speed in response to a transmission request with a bidirectional communication direction, and receives priority information. Update the reception speed column in the table. At this time, the progress information management unit 243 copies the data in the reception number column to the previous reception number column before updating the reception speed column. The reception speed is obtained by dividing the difference between the reception number and the previous reception number by the timing signal interval.
- the priority adjustment unit 242 uses the data in the priority information table to determine whether or not priority adjustment is necessary for each transmission request. If priority adjustment is necessary, the priority adjustment unit 242 creates a priority adjustment message and creates the created priority. The degree adjustment message is transferred to the message transmission unit 21. The message transmission unit 21 transmits a priority adjustment message to the designated relay device 30.
- FIG. 14 is a flowchart illustrating an example of priority adjustment operation by the priority adjustment unit 242. It is assumed that the priority adjustment index of the priority information table is “0” (zero) for all transmission request IDs.
- the priority adjustment unit 242 is called by a periodic timing signal from the timer unit 25.
- the priority adjustment unit 242 first reads the record of the first transmission request ID in the priority information table (S11). At this time, if there is no data in the reception time limit column (NO in S12), it is determined that priority adjustment is unnecessary, and the priority adjustment unit 242 reads the record of the next transmission request ID (S11). ). Even if there is data in the reception deadline time column (YES in S12), if the priority adjustment index has already been "+1"("+1" in S13), whether or not priority adjustment is necessary is determined. The priority adjustment unit 242 determines that the determination has been made, and reads the record of the next transmission request ID (S11).
- the priority adjustment unit 242 executes a priority adjustment necessity check process (S14), and determines whether to adjust the priority. To do.
- the priority adjustment unit 242 writes “+1” in the priority adjustment index column of the transmission request ID in the priority information table (S16).
- a priority adjustment message is created in the transmission message format of FIG. 13 (S17).
- a priority adjustment message is created for each relay device 30. That is, a case where a plurality of transmission messages addressed to the plurality of smart meters 40 are included in the transmission request in which the record is read in S11, and message communication with the plurality of smart meters 40 is relayed by the plurality of relay devices 30.
- the priority adjustment unit 242 generates a priority adjustment message for each relay device 30.
- the transmission request ID of the header part of the priority adjustment message the transmission request ID of the record read from the priority information table in S11 is entered. Further, a relay device ID is entered in the transmission destination ID, and a type code indicating that it is a priority adjustment message is entered in the message type. Further, the size of the priority adjustment message is set in the transmission message size, and “high” is set in the priority.
- a priority adjustment index value (“+1”) is entered in the transmission message of the data part.
- the priority adjustment unit 242 creates a priority adjustment message for all the relay devices 30, and transfers the created priority adjustment message to the message transmission unit 21 (S18).
- the priority adjustment unit 242 executes the above procedure for all transmission request IDs in the priority information table (S19).
- the message transmission unit 21 transmits a priority adjustment message to the relay device 30.
- FIG. 15 is a flowchart showing an example of the priority adjustment necessity check process in S14 of FIG.
- FIG. 15 shows an example in which the priority of the message of the transmission request that is the object of determination in S14 is increased when the difference between the number of transmissions and the number of receptions exceeds a predetermined constant level.
- the priority adjustment unit 242 reads the transmission / reception number difference threshold of the application ID from the application table shown in FIG. 7 (S1411).
- the priority adjustment unit 242 calculates the difference between the number of downlink messages transmitted to the relay device 30 and the number of uplink messages received from the relay device 30 (S1412), and the value exceeds the transmission / reception number difference threshold. If YES (YES in S1413), it is determined to adjust the priority (S1414). On the other hand, when the calculated value does not exceed the transmission / reception number difference threshold (NO in S1413), it is determined that the priority is not adjusted (S1415).
- the priority adjustment necessity check process in FIG. 15 is applied to bidirectional message communication in which a plurality of downlink messages are transmitted and a plurality of uplink messages are responded. In other words, the priority adjustment necessity check process in FIG. 15 is applied to the composite response request downstream message transmission request.
- FIG. 16 is a flowchart showing another example of the priority adjustment necessity check process in S14 of FIG.
- the priority of the message of the transmission request that is the object of determination in S14 is increased. An example is shown.
- the priority adjustment unit 242 determines a message necessary for completing reception by the reception deadline time from the difference between the reception deadline time and the current time and the number of remaining received messages.
- the reception speed is calculated (S1421).
- the priority adjustment unit 242 compares the calculated reception speed with the reception speed in the priority information table, and determines that the priority is adjusted when the calculated reception speed is larger (YES in S1422). (S1423). On the other hand, if the calculated reception speed is not large (NO in S1422), it is determined that the priority is not adjusted (S1424). As described above, in the priority adjustment necessity check process of FIG.
- the reception speed of the uplink message is measured for each transmission request, and when the reception of the uplink message is continued at the measured reception speed, all the uplink messages It is determined whether or not the reception is completed by the reception completion deadline.
- a transmission request in which reception of all uplink messages is not completed before the reception completion deadline is set as a priority adjustment target.
- the priority adjustment necessity check process of FIG. 16 is also applied to the composite response request downstream message transmission request, as in the case of FIG.
- FIG. 17 is a flowchart showing another example of the priority adjustment necessity check process in S14 of FIG.
- FIG. 17 shows an example in which the priority of the message of the transmission request that is the target of the determination in S14 is increased when the remaining time until the reception deadline time decreases.
- the priority adjustment unit 242 first calculates the remaining reception time from the difference between the reception deadline time and the current time (S1431). Next, the priority adjustment unit 242 calculates the total reception time from the difference between the transmission request time and the reception deadline time (S1432), and when the remaining reception time is less than a certain ratio (for example, 10%) of the transmission / reception time (S1433). And YES), it is determined to adjust the priority (S1434). On the other hand, if the remaining reception time is not less than a certain ratio (for example, 10%) of the transmission / reception time (NO in S1433), it is determined that the priority is not adjusted (S1435).
- the priority adjustment necessity check process of FIG. 17 is also applied to the composite response request downstream message transmission request, as in the case of FIGS. 15 and 16.
- the priority adjustment unit 242 determines to adjust the priority for one transmission request 1, there is another transmission request 2 that has already been adjusted in priority so as to increase the priority.
- An operation when priority adjustment is performed to lower the priority of the transmission request 2 when the reception deadline time of the request 2 is later than the reception deadline time of the transmission request 1 will be described.
- FIG. 18 is a flowchart of the priority lowering process.
- the priority adjustment unit 242 reads the record of the first transmission request ID in the priority information table (S21). At this time, if there is no data in the reception time limit column (NO in S22), the priority adjustment unit 242 determines that priority adjustment is unnecessary and reads the record of the next transmission request ID. If there is data in the column of the reception deadline time (YES in S22) and the priority adjustment index is “+1” (“+1” in S23), this transmission request is a candidate for transmission request 2.
- the priority adjustment unit 242 compares the reception deadline time of the transmission request 1 with the reception deadline time of the transmission request 2 (S24), and if the reception deadline time of the transmission request 2 is later than the reception deadline time of the transmission request 1 If so, it is determined that priority adjustment for lowering priority is necessary for transmission request 2 (YES in S25). In the priority lowering process, the priority adjustment unit 242 corrects the priority adjustment index column of the transmission request 2 in the priority information table to “0” (S26), and the priority adjustment message in the transmission message format of FIG. Is created (S27). At this time, the transmission request ID of the transmission request 2 is entered in the transmission request ID of the header part.
- a relay device ID is entered in the transmission destination ID, and a type code indicating that it is a priority adjustment message is entered in the message type. Further, the size of the priority adjustment message is set in the transmission message size, and “high” is set in the priority. A priority adjustment index value (“0”) is entered in the transmission message of the data part.
- the priority adjustment unit 242 creates a priority adjustment message for all the relay devices 30, and transfers the created priority adjustment message to the message transmission unit 21 (S28).
- the above procedure is executed for all transmission request IDs in the priority information table (S29).
- the priority adjustment message created in S27 is a command for invalidating the priority adjustment message (priority adjustment message in which “+1” is described in the data portion) that has been transmitted to the relay apparatus 30 for the transmission request 2. This corresponds to an example of an invalid command.
- FIG. 3 is a system configuration diagram illustrating a configuration example of the relay device 30.
- the downlink message receiving unit 37 receives a message from the message transmitting / receiving device 20.
- the downlink message reception unit 37 receives a priority adjustment message (instruction command) in addition to the downlink message addressed to the smart meter 40, and also functions as an instruction command reception unit.
- the priority control processing unit 35 controls the priority of message relay.
- the priority control processing unit 35 includes a downlink queue 351 and an uplink queue 353 for each priority, and a priority change unit 352 that performs priority change processing.
- the downlink queue 351 and the uplink queue 353 of the priority control processing unit 35 are configured by a plurality of queues for each priority, but may be realized by one queue. Further, the down queue 351 and the up queue 353 may be realized by one queue.
- the downlink queue 351 corresponds to an example of a downlink message storage unit.
- the upstream queue 353 corresponds to an example of an upstream message storage unit.
- the priority changing unit 352 corresponds to an example of a priority downlink message selecting unit together with the downlink message transmitting unit 31.
- the priority changing unit 352 corresponds to an example of a priority uplink message selection unit together with the uplink message transmission unit 38.
- the downlink message transmission unit 31 transmits a downlink message to the smart meter 40.
- the downlink message transmission unit 31 selects a downlink message stored in the downlink queue 351 with the highest priority, and transmits the selected downlink message to the smart meter 40 with priority. For this reason, the downlink message transmission unit 31 corresponds to an example of a priority downlink message selection unit.
- the upstream message receiving unit 32 receives an upstream message from the smart meter 40.
- the upstream message transmission unit 38 transmits the upstream message to the message transmission / reception device 20.
- the upstream message transmission unit 38 selects an upstream message stored in the upstream queue 353 having the highest priority and transmits the selected upstream message to the message transmitting / receiving apparatus 20 with priority. For this reason, the uplink message transmission unit 38 corresponds to an example of a priority uplink message selection unit.
- the priority change data storage unit 36 stores a priority change information table (FIG. 6) to be referred to when the priority control processing unit 35 determines priority change.
- the load information generation unit 33 generates load information for the relay device 30.
- the timer unit 34 provides the load information generation unit 33 with a load information generation timing signal. Details of the load information generation unit 33 and the timer unit 34 will be described in the second embodiment.
- the downlink message receiving unit 37 inserts the downlink message received from the message transmitting / receiving apparatus 20 at the tail of the downlink queue 351 according to the priority described in the header part. Further, when the downlink message reception unit 37 receives the priority adjustment message, the downlink message reception unit 37 outputs the priority adjustment message to the priority change unit 352.
- the downlink message transmission unit 31 extracts a downlink message from the head of the queue with the highest priority among the downlink queues 351. If the queue with the highest priority is empty, the downlink message transmission unit 31 extracts the downlink message from the head of the queue with the next highest priority. Next, the downlink message transmission unit 31 transmits the extracted downlink message to the smart meter 40 indicated by the transmission destination ID in the downlink message.
- the upstream message receiving unit 32 inserts the upstream message received from the smart meter 40 at the tail of the upstream queue 353 according to the priority set in the header part.
- the upstream message transmission unit 38 extracts an upstream message from the head of the queue having the highest priority among the upstream queues 353. If the queue with the highest priority is empty, the upstream message is extracted from the head of the queue with the next highest priority. Next, the upstream message transmission unit 38 transmits the extracted upstream message to the message transmission / reception device 20. When a plurality of uplink messages having a common transmission request ID are present at the same timing, the uplink message transmitting unit 38 collects the plurality of uplink messages in a message reception request format shown in FIG. Send.
- the downlink message receiving unit 37 when receiving the priority adjustment message from the message transmitting / receiving device 20, the downlink message receiving unit 37 outputs the priority adjustment message to the priority changing unit 352 and calls the priority changing unit 352.
- the priority change part 352 follows the information in the header part. A new entry for the transmission request ID is added.
- the priority change unit 352 refers to the priority adjustment index value (“+1” or “0”) in the data part of the priority adjustment message, and sets the value stored in the priority change data storage unit 36. If it is different, update this.
- 25 and 27 are diagrams illustrating an example of the priority change information table.
- the meaning of each table item in the priority change information table is the same as that of the priority information table (FIG. 4) of the message transmitting / receiving device 20.
- FIG. 24 and FIG. 26 are diagrams showing a situation before and after the priority changing unit 352 changes the priority. 24 and 26 show an example in which the priority has three levels of high, medium, and low.
- FIG. 24 shows the situation in the downstream queue 351 of the relay device 30 at a certain time
- FIG. 25 shows the situation of the priority change information table at the time of FIG.
- data as shown in FIG. 25 is stored in the priority change information table.
- this downstream message is inserted at the tail of the queue (medium) with one higher priority.
- a new message is inserted at the end of the queue (medium) having a higher priority.
- the downlink message transmitting unit 31 extracts the downlink message from the downlink queue 351 after the priority of the downlink message is adjusted by the priority changing unit 352.
- the priority changing unit 352 extracts a downlink message in which the transmission request ID indicated in the priority adjustment message is set from the downlink messages stored in the downlink queue 351. Then, when the downlink message transmission unit 31 extracts the downlink message from the downlink queue 351, the priority changing unit 352 uses a priority different from the priority set for the downlink message for the extracted downlink message. Make adjustments as required. Similarly, the priority changing unit 352 extracts an uplink message in which the transmission request ID indicated in the priority adjustment message is set from the uplink messages stored in the uplink queue 353.
- the priority changing unit 352 uses a priority different from the priority set for the upstream message for the extracted upstream message. Make adjustments as required.
- the priority changing unit 352 stores the message in a queue having a higher priority than the original priority without changing the priority described in the message. The degree itself may be rewritten.
- the message transmission / reception device 20 determines the priority according to the difference in the number of bidirectional messages transmitted / received in the message transmission / reception device 20, the message reception speed, and the degree of progress indicated by the remaining message reception time.
- the relay apparatus 30 is instructed to change the priority using the adjustment index. Further, the relay device 30 changes the priority of the message held in both the upstream and downstream queues according to the priority adjustment index. For this reason, the priority of message communication can be effectively controlled without imposing an excessive load on the relay device 30.
- the message transmitting / receiving apparatus 20 adjusts the priority so that the priority is increased for a transmission request for which a reception deadline time is earlier than a transmission request whose priority is already adjusted to increase the priority. If so, the priority is adjusted so as to lower the priority. Therefore, fine priority control of message communication can be performed.
- a smart meter measures the usage of electricity, gas, water, etc.
- the smart meter automatic meter reading system that performs message communication via the message transmission / reception device provided in the center system and the relay device provided between the message transmission / reception device and the smart meter has been described.
- the application on the application server device 10 includes information on the reception deadline time in the message transmission request sent to the data transmitting / receiving device,
- the data transmitting / receiving device determines the necessity of priority adjustment from the progress information management unit that holds the progress information of the message communication between the application and the smart meter, and determines the necessity of priority adjustment from the progress information of the message communication.
- the priority changing unit of the priority control processing unit included in the relay device is: Change the priority of processing for downstream messages from the data transmitter / receiver to the relay device, Further, it has been described that when the target message of the priority adjustment instruction from the message transmission / reception device is a bidirectional message, the priority of processing for the upstream message from the relay device to the data transmission / reception device is changed.
- the progress information management unit of the priority control processing unit included in the data transmitting / receiving device is: As message communication progress information, the number of transmissions for each message transmission request from the application and the number of receptions are retained.
- the priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is: Explained that when the difference between the number of transmissions and the number of receptions exceeds a predetermined level, the relay device is instructed to adjust the priority so as to increase the priority of the message sent in the transmission request. .
- the progress information management unit of the priority control processing unit included in the data transmitting / receiving device is: As message communication progress information, the message reception speed and the number of remaining received messages for each message transmission request from the application are retained.
- the priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is: If the message reception speed is lower than the message reception speed necessary to process the number of remaining received messages by the reception deadline time, the priority is given to the relay device so as to increase the priority of the message transmitted by the transmission request.
- the progress information management unit of the priority control processing unit included in the data transmitting / receiving device is: As the message communication progress information, the transmission request reception time at which the message transmission request is received and the remaining time until the reception deadline time are retained,
- the priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is: When the remaining time until the reception deadline time falls below a certain percentage of the time from the reception request reception time to the reception deadline time, the priority is adjusted to the relay device so as to increase the priority of the message transmitted by the transmission request.
- I will give instructions.
- the priority control processing unit included in the data transmitting / receiving device is: For a message transmission request from another application, when the priority adjustment instruction is given to the relay device to increase the priority of the message to be sent, If the reception deadline time of the message transmission request that is trying to adjust the priority to increase the priority is earlier than the reception deadline time of the other application, It has been described that the priority adjustment instruction is issued so as to lower the priority of the message transmitted by the other application.
- Embodiment 2 when transmitting and receiving a priority adjustment message to a plurality of relay apparatuses 30, the message transmitting / receiving apparatus 20 transmits the priority adjustment message to all the relay apparatuses 30 at the same timing.
- the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30 based on the performance and load status of the relay device 30.
- a configuration example of the message transmission / reception device 20 according to the present embodiment is as shown in FIG. 2, and a configuration example of the relay device 30 according to the present embodiment is as shown in FIG.
- the priority adjustment unit 242 determines the processing load for the downstream message and the upstream message for each relay device 30. And the priority adjustment part 242 determines the transmission order of the priority adjustment message in the some relay apparatus 30 so that a priority adjustment message may be transmitted from the relay apparatus 30 with a high processing load.
- the priority adjustment unit 242 also functions as a transmission order determination unit. Further, the message transmission unit 21 transmits a priority adjustment message to the plurality of relay devices 30 according to the transmission order determined by the priority adjustment unit 242.
- FIG. 8 shows a priority information table in the case where the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30.
- the priority adjustment table of FIG. 8 is obtained by adding a relay device load level column to the priority information table of FIG.
- the columns other than the relay device load level are the same as those in the priority information table of FIG.
- the relay device load level indicates the load level of the relay device that has already transmitted the priority adjustment message, and the larger the value, the higher the load level. For example, when the relay device load level is “3”, it indicates that the priority adjustment message has already been transmitted to the relay device 30 having a load level higher than “3”. “0” (zero) indicates that the priority adjustment message has been transmitted to all the relay apparatuses 30.
- the value of the relay device load level in the priority adjustment table is “3”
- a priority adjustment message is transmitted to the relay device 30 whose load level is “3” in the relay device load table (FIG. 10) described later.
- the value of the relay device load level in the priority adjustment table is decremented to “2”
- a priority adjustment message is transmitted to the relay device 30 whose load level is “2” in the relay device load table (FIG. 10). Is done.
- the value of the relay device load level in the priority adjustment table is decremented, and priority adjustment messages are transmitted in order from the relay device 30 with the highest load level.
- the value of the relay device load level in the priority adjustment table is either “1” or “0”.
- the relay apparatus specification table (FIG. 9) described later has only one load threshold.
- the load threshold value of the relay device specification table (FIG. 9) has three levels (“0 ”To“ 1 ”,“ 1 ”to“ 2 ”,“ 2 ”to“ 3 ”).
- the load information storage unit 23 includes a relay device load table as shown in FIG.
- the relay device ID is an ID that uniquely identifies the relay device 30.
- the relay device type ID is an ID that uniquely identifies the type of the relay device 30.
- the number of held messages is the number of messages held in the upstream queue 353 and downstream queue 351 of the relay device 30 and indicates the load status of the relay device 30.
- the number of pending messages is periodically transmitted from the relay device 30 to the message transmitting / receiving device 20 as a load information message.
- the load level is obtained by dividing the load status of the relay device 30 into levels. It shows that the load of the relay apparatus 30 is so high that the value of a load level is high.
- the load level history describes the load level before the update when the load level is updated.
- the load information storage unit 23 includes a relay device specification table as shown in FIG.
- the relay device specification table holds specification information for each relay device type for all relay devices 30 used in the smart meter automatic meter reading system.
- the relay device type ID is an ID that uniquely identifies the type of the relay device 30.
- the relay device type is a model number assigned to the relay device 30.
- the load threshold is a threshold for the number of held messages set for each relay device type. When the number of held messages at a certain point exceeds this threshold, it is determined that the load on the relay device 30 is high. .
- the processing throughput is the message processing capability of the relay device 30 set for each relay device type.
- the reception request receiving unit 22 When receiving the load information message from the relay device 30, the reception request receiving unit 22 displays the data on the number of held messages in the message in the column of the number of held messages of the corresponding relay device 30 in the relay device load table of the load information storage unit 23. Write to.
- the priority adjustment unit 242 transmits a priority adjustment message to the relay device 30
- the priority adjustment unit 242 transmits the priority adjustment message in two stages according to the load status of the relay device 30. For this reason, as described above, the relay device load level of the priority information table takes one of the values “1” and “0”, and a record for the transmission request is newly created in the priority information table. Is initialized to “0”.
- FIG. 19 is a flowchart when the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30.
- the priority adjustment unit 242 is called by a periodic timing signal from the timer unit 25.
- the priority adjustment unit 242 first updates the load level and load level history information in the relay device load table (FIG. 10) according to the value of the number of pending messages (S31).
- the priority adjustment unit 242 reads the record of the first transmission request ID in the priority information table (S32).
- the priority adjustment unit 242 determines that priority adjustment is unnecessary and reads the record of the next transmission request ID (S32). ). If there is data in the reception deadline time column (YES in S33) and the priority adjustment index is “0” (“0” in S34), the priority adjustment unit 242 performs priority adjustment necessity check processing.
- the priority adjustment necessity check process (S35) is the same as S14 in FIG. 14, and for example, the processes shown in FIGS. 15 to 17 are performed. If it is determined that priority adjustment is necessary (YES in S36), the priority adjustment unit 242 writes “+1” in the priority adjustment index column of the transmission request ID in the priority information table, and further relay device “1” is written in the load level column (S37). Next, the priority adjustment unit 242 executes priority adjustment message processing (1) and transmits a priority adjustment message to the relay device 30 with a high load (S38).
- the priority adjustment unit 242 The load level is referred to (S40).
- the relay device load level is “0” (“0” in S40)
- the priority adjustment unit 242 determines the priority information table.
- the record of the next transmission request ID is read.
- the priority adjustment unit 242 updates the relay device load level to “0” (S41)
- a priority adjustment message is transmitted to the relay device 30 that has not transmitted the priority adjustment message (S42).
- the priority adjustment unit 242 executes the above processing for all transmission request IDs in the priority information table (S39).
- FIG. 20 is a flowchart of the relay device load table update process (S31) in the case where the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30 according to the number of pending messages of the relay device 30. It is.
- the priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S3111). Next, the priority adjustment unit 242 writes the value of the load level column in the read record into the load level history column of the corresponding record in the relay device load table (S3112). Next, the priority adjustment unit 242 reads the load threshold of the corresponding relay device type from the relay device specification table (FIG. 9) using the value of the relay device type ID column in the read record as a key (S3113). . Next, the priority adjustment unit 242 compares the number of held messages in the relay device load table with the load threshold (S3114).
- the priority adjusting unit 242 “1” is written in the load level column of the corresponding record (S3116). On the other hand, if the number of pending messages is not greater than the load threshold (NO in S3115), “0” (zero) is written in the load level column of the corresponding record in the relay device load table (S3117). The priority adjustment unit 242 executes the above processing for all the relay device IDs in the relay device load table (S3118).
- FIG. 21 illustrates a relay device load table when the priority adjustment unit 242 adjusts the order in which the priority adjustment messages are transmitted to the relay device 30 according to the message processing time calculated from the number of pending messages of the relay device 30. It is a flowchart of an update process (S31).
- the priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S3121). Next, the priority adjustment unit 242 writes the value of the load level column in the read record in the load level history column of the corresponding record in the relay device load table (S3122). Next, the priority adjustment unit 242 reads the processing throughput of the corresponding relay device type from the relay device specification table using the value of the relay device type ID column in the read record as a key (S3123). Next, the priority adjustment unit 242 calculates the message processing time from the number of pending messages in the relay device load table and the processing throughput (S3124).
- the load level column is set to “1” for the relay devices 30 having a long message processing time among all the relay devices 30, and the remaining relay devices 30 are used.
- Other determination methods such as setting the load level column of “0” may be used.
- FIG. 22 is a flowchart of the priority adjustment message process (1) (S38) of FIG.
- the priority adjustment message process (1) is executed in the process of adjusting the order in which the priority adjustment unit 242 transmits the priority adjustment messages to the relay device 30.
- the priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S3801). When the load level column is “0” (“0” in S3802), the priority adjustment unit 242 determines that the priority adjustment message is not transmitted to the corresponding relay device 30, and reads the next record. When the load level column is “1” (“1” in S3802), the priority adjustment unit 242 creates a priority adjustment message (S3803), and transfers the created priority adjustment message to the message transmission unit 21. (S3804). The priority adjustment unit 242 executes the above process for all the relay device IDs in the relay device load table (S3805).
- FIG. 23 is a flowchart of the priority adjustment message process (2).
- the priority adjustment message process (2) is executed in the process of adjusting the order in which the priority adjustment unit 242 transmits the priority adjustment messages to the relay device 30.
- the priority adjustment unit 242 first reads the record of the first relay device ID in the relay device load table (FIG. 10) (S4201).
- the priority adjustment unit 242 determines that the priority adjustment message has already been transmitted to the relay device 30, and reads the next record.
- the load level history column is “0” (“0” in S4202)
- a priority adjustment message is created (S4203), and the created priority adjustment message is transferred to the message transmission unit 21 (S4204).
- the priority adjustment unit 242 executes the above processing for all relay device IDs in the relay device load table (S4205).
- the timer unit 34 sends to the load information generation unit 33 a timing signal notifying that the time for executing the load information generation processing has come at every set interval time.
- the load information generation unit 33 that has received the timing signal adds up the number of messages held in the upstream queue 353 and the downstream queue 351 at that time, and creates and creates a load information message including data of the integration result
- the load information message is transferred to the upstream message receiving unit 32.
- the uplink message receiving unit 32 inserts the load information message received from the load information generating unit 33 at the tail of the uplink queue according to the priority set in the header part.
- the message transmitting / receiving apparatus 20 operates to adjust the priority adjustment order according to the specifications and load status of the relay apparatus 30, and therefore, the relay apparatuses 30 having different performances are mixed. Even in the smart meter automatic meter reading system, the priority of message communication can be controlled effectively.
- the relay device further A load information transmitting unit that periodically transmits the number of pending messages as message processing load information in the relay device to the message transmitting and receiving device;
- the message transmission / reception device further includes: It has been described that a relay device load information storage unit that stores load information transmitted from a plurality of relay devices is provided.
- the priority adjustment unit of the priority control processing unit of the message transmitting / receiving device is: It has been described that when a priority adjustment instruction is given to a relay device, the instructions are given in order from the relay device with the largest number of pending messages.
- the relay device load information storage unit of the message transmitting / receiving device further includes: Holds processing throughput as message processing capability information for each relay device type,
- the priority adjustment unit of the priority control processing unit of the message transmitting / receiving device is: Obtain the message processing time required to process all pending messages from the pending message count and processing throughput of each relay device, It has been described that when a priority adjustment instruction is given to a relay device, the instructions are given in order from the relay device having the longest message processing time.
- the message transmission / reception device 20 and the relay device 30 are computers, and each element of the message transmission / reception device 20 and the relay device 30 can be realized by a program.
- an arithmetic device 901, an external storage device 902, a main storage device 903, a communication device 904, and an input / output device 905 are connected to the bus.
- the arithmetic device 901 is a CPU (Central Processing Unit) that executes a program.
- the external storage device 902 is, for example, a ROM (Read Only Memory), a flash memory, or a hard disk device.
- the main storage device 903 is a RAM (Random Access Memory). "Load information storage unit 23”, “Priority adjustment data storage unit 29”, “Priority change data storage unit 36”, “Downstream queue 241", “Upstream queue 244", "Downstream queue 351”, “Upstream queue 353 "Is realized by the external storage device 902 or the main storage device 903, for example.
- the communication device 904 corresponds to the physical layers of “ ⁇ transmitting unit”, “ ⁇ receiving unit”, “ ⁇ accepting unit”, and “ ⁇ distributing unit”.
- the input / output device 905 is, for example, a mouse, a keyboard, a display device, or the like.
- the program is normally stored in the external storage device 902, and is loaded into the main storage device 903 and sequentially read into the arithmetic device 901 and executed.
- the program will be described as “ ⁇ part (except for“ load information storage unit 23 ”,“ priority adjustment data storage unit 29 ”,“ priority change data storage unit 36 ”, and so on)) shown in FIG. It is a program that realizes the function.
- an operating system (OS) is also stored in the external storage device 902. At least a part of the OS is loaded into the main storage device 903, and the arithmetic device 901 executes “OS” shown in FIG. ”Is executed.
- Information, data, signal values, and variable values indicating the results of the processes described as “reception of”, “transmission of”, and the like are stored in the main storage device 903 as files. Further, the encryption key / decryption key, random number value, and parameter may be stored in the main storage device 903 as a file.
- the configuration in FIG. 28 is merely an example of the hardware configuration of the message transmission / reception device 20 and the relay device 30, and the hardware configuration of the message transmission / reception device 20 and the relay device 30 is limited to the configuration described in FIG. Alternatively, other configurations may be used. Also, the application server apparatus 10 shown in the first and second embodiments may have the hardware configuration shown in FIG. 28 or may have another hardware configuration.
- processing procedure of the message transmitting / receiving device 20 and the relay device 30 shown in the first and second embodiments can be regarded as an information processing method.
- the message transmitting / receiving device 20 and the relay device 30 used in the smart meter automatic meter reading system have been described.
- the contents shown in the present embodiment are applied to communication systems other than the smart meter automatic meter reading system. Is also applicable.
- 10 application server device 20 message transmission / reception device, 21 message transmission unit, 22 reception request reception unit, 23 load information storage unit, 24 priority control processing unit, 25 timer unit, 26 transmission request reception unit, 27 temporary message storage unit, 28 Message distribution unit, 29 priority adjustment data storage unit, 30 relay device, 31 downlink message transmission unit, 32 uplink message reception unit, 33 load information generation unit, 34 timer unit, 35 priority control processing unit, 36 priority change data storage Section, 37 downstream message receiving section, 38 upstream message transmission section, 40 smart meter, 50 wide area network, 60 meter network, 241 downstream queue, 242 priority adjustment section, 243 progress information management section, 244 upstream queue, 351 downstream -Menu, 352 priority changing section, 353 upstream queue.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
- Small-Scale Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
本発明は、例えば、複数のスマートメータとの間でメッセージの送受信が行われるスマートメータ自動検針システムに関する。 The present invention relates to a communication system in which messages are transmitted / received to / from a plurality of terminal devices.
The present invention relates to a smart meter automatic meter reading system in which messages are transmitted / received to / from a plurality of smart meters, for example.
スマートメータ自動検針システムでは、スマートメータ、中継装置、メッセージ送受信装置、アプリケーションサーバ装置が、ツリー構造のネットワークで接続される。
スマートメータは数百万台以上、中継装置は数千~数万台、メッセージ送受信装置は数台~十台、アプリケーションサーバ装置10は数台~数十台程度で構成される。
スマートメータや、中継装置の計算能力は低く、処理の実行に制約がある。
スマートメータ自動検針システムでは、スマートメータと中継装置との間がネットワークで接続され、中継装置とメッセージ送受信装置との間がネットワークで接続され、メッセージ送受信装置とアプリケーションサーバ装置との間がネットワークで接続されている。
それぞれのネットワークは、帯域幅、通信速度、通信媒体、通信方式が異なっており、スマートメータ自動検針システムは、非均質なネットワークで構成されるシステムである。
また、スマートメータ自動検針システムでは、アプリケーションサーバ装置上で実行されるアプリケーションプログラム(以下、単に「アプリケーション」という)とスマートメータが、検針値等のデータ、開閉制御等の制御情報をメッセージ通信によりやりとりする。
取り扱われるメッセージには、上り方向(メータ、中継装置からアプリケーションへの方向)のメッセージと下り方向(アプリケーションから中継装置、メータへの方向)のメッセージがある。
また、スマートメータ自動検針システムでは、一方向メッセージと双方向メッセージが混在し、また、上り方向メッセージと、下り方向メッセージの通信量は非対称である。
なお、一方向メッセージは、メータや中継装置から自発的にメッセージを送信するメッセージ、あるいはアプリケーションから一方的に制御指示をするメッセージである。
双方向メッセージは、アプリケーションがメータや中継装置に指示を与えるメッセージと、メータや中継装置が応答として返すメッセージとからなる。
また、スマートメータ自動検針システムでは、通信量が多い時間帯と、少ない時間帯があり、通信量が不均一であるという特徴がある。
さらに、定期検針のように一定時間内に数百万件以上のメッセージ通信がある多対1の通信、アプリケーションがある1台のメータの情報を取得する1対1の通信、メータや中継装置のファームウェア更新のような1対多の通信が存在する。
アプリケーションの特性は多様で、スループットを要求するアプリケーション、応答性能を要求するアプリケーション、一定時間内に処理が終わらなければならない制約があるアプリケーションなどが混在している。
スマートメータ自動検針システムでは、このような制約の大きい機器が、非均質で非対称なネットワーク上で、様々な特性のアプリケーションに合せて、効果的にメッセージの優先度制御を行う必要がある。 In various countries, smart meter automatic meter reading systems such as electric power, gas, and water using smart meters (hereinafter also simply referred to as “meters”) are being introduced.
In the smart meter automatic meter reading system, a smart meter, a relay device, a message transmission / reception device, and an application server device are connected by a tree structure network.
There are several million or more smart meters, thousands to tens of thousands of relay devices, several to tens of message transmission / reception devices, and several to tens of
The smart meter and the relay device have low calculation capability, and there are restrictions on the execution of processing.
In the smart meter automatic meter reading system, the smart meter and the relay device are connected by a network, the relay device and the message transmitting / receiving device are connected by a network, and the message transmitting / receiving device and the application server device are connected by a network. Has been.
Each network has a different bandwidth, communication speed, communication medium, and communication method, and the smart meter automatic meter reading system is a system composed of heterogeneous networks.
In the smart meter automatic meter reading system, an application program (hereinafter simply referred to as “application”) executed on the application server device and the smart meter exchange data such as meter reading values and control information such as open / close control by message communication. To do.
The messages to be handled include messages in the upstream direction (meter, direction from relay device to application) and messages in the downstream direction (direction from application to relay device, meter).
In the smart meter automatic meter-reading system, one-way messages and two-way messages are mixed, and the traffic of upstream messages and downstream messages is asymmetric.
The one-way message is a message for spontaneously transmitting a message from a meter or a relay device, or a message for unidirectionally instructing control from an application.
The bidirectional message includes a message for giving an instruction to the meter or the relay device by the application and a message returned as a response by the meter or the relay device.
In addition, the smart meter automatic meter reading system has a feature that there are a time zone with a large amount of communication and a time zone with a small amount of communication, and the amount of communication is uneven.
Furthermore, many-to-one communication with millions of message communications within a certain period of time, such as periodic meter reading, one-to-one communication for obtaining information of one meter with application, meter and relay device There is a one-to-many communication such as firmware update.
There are various application characteristics, including applications that require throughput, applications that require response performance, and applications that have restrictions that must be completed within a certain period of time.
In the smart meter automatic meter reading system, it is necessary for such a highly restrictive device to effectively control the message priority in accordance with the application of various characteristics on the heterogeneous and asymmetric network.
より具体的には、特許文献1では、伝送期限と現在時刻の差(残り時間)が少ないメッセージには、優先順位別の送信キューのうち高い優先順位の送信キューが選択され、残り時間が少ないメッセージが優先的に送信されるようにしている。 For example,
More specifically, in
このため、残り時間が閾値よりも僅かに大きいメッセージ(「メッセージA」という)は、低優先順位のキューに格納され、以後、低優先順位のキューに留め置かれる。
メッセージAよりも後に発生した、残り時間が閾値よりも小さいメッセージは、高優先度順位のキューに格納され、メッセージAよりも先に送信されることになる。
このため、時間の経過によりメッセージAの残り時間が閾値よりも小さくなってもメッセージAが送信されない事態が生じ、伝送期限を守るための優先制御が十分に機能しない。
このように、特許文献1では、個々の無線通信装置が、残り時間のみで優先度判定を行うので、伝送期限のあるメッセージが大量に発生した場合にきめ細かい調整ができないという課題があり、また、メッセージの優先度が固定されてしまい、柔軟な制御ができないという課題がある。 However, in
For this reason, a message whose remaining time is slightly larger than the threshold value (referred to as “message A”) is stored in the low priority queue, and is thereafter kept in the low priority queue.
A message that occurs after message A and whose remaining time is smaller than the threshold value is stored in a high priority queue and is transmitted before message A.
For this reason, even if the remaining time of the message A becomes smaller than the threshold due to the passage of time, a situation in which the message A is not transmitted occurs, and the priority control for keeping the transmission time limit does not function sufficiently.
As described above, in
端末装置への下りメッセージを受信し、受信した下りメッセージを記憶し、記憶している下りメッセージの中から優先して端末装置に送信する優先下りメッセージを下りメッセージの優先度に基づいて選択し、選択した優先下りメッセージを優先して端末装置に送信する中継装置に、優先度が設定されている下りメッセージを送信するメッセージ送信部と、
優先度の調整の対象となる下りメッセージを抽出するための抽出条件を指定する抽出条件指定部と、
前記抽出条件指定部により指定された抽出条件に合致する下りメッセージを抽出し、抽出した下りメッセージに対しては当該下りメッセージに設定されている優先度とは異なる優先度を用いて優先下りメッセージを選択するよう前記中継装置に指示する指示コマンドを生成する指示コマンド生成部と、
前記指示コマンド生成部により生成された指示コマンドを前記中継装置に送信する指示コマンド送信部とを有することを特徴とする。 The communication device according to the present invention is
Receiving a downlink message to the terminal device, storing the received downlink message, selecting a priority downlink message to be transmitted to the terminal device preferentially from the stored downlink messages based on the priority of the downlink message; A message transmission unit that transmits a downlink message with a priority set to a relay device that prioritizes the selected priority downlink message and transmits the message to the terminal device;
An extraction condition designating part for designating an extraction condition for extracting a downstream message whose priority is to be adjusted;
A downlink message that matches the extraction condition specified by the extraction condition specifying unit is extracted, and a priority downlink message is assigned to the extracted downlink message using a priority different from the priority set for the downlink message. An instruction command generator for generating an instruction command for instructing the relay device to select;
And an instruction command transmission unit that transmits the instruction command generated by the instruction command generation unit to the relay device.
本実施の形態では、スマートメータ自動検針システムについて説明する。
本実施の形態では、センターに配備されたメッセージ送受信装置が、メッセージ通信の進捗度合いを判断し、優先度調整の指示を中継装置に出す。
そして、中継装置は、メッセージ送受信装置からの指示に従って優先度を調整する。
これらの手順により、効果的、かつきめ細かい優先度制御を行うことができる。
In this embodiment, a smart meter automatic meter reading system will be described.
In the present embodiment, the message transmission / reception device deployed in the center determines the progress of message communication and issues a priority adjustment instruction to the relay device.
Then, the relay device adjusts the priority according to an instruction from the message transmission / reception device.
By these procedures, effective and fine priority control can be performed.
図1において、スマートメータ自動検針システムは、スマートメータ40、中継装置30、メッセージ送受信装置20、アプリケーションサーバ装置10が、ツリー構造のネットワークで接続されている。 FIG. 1 is a schematic diagram of a smart meter automatic meter reading system according to the present embodiment.
In FIG. 1, a smart meter automatic meter reading system includes a
スマートメータ40は、端末装置の例に相当する。 The
The
アプリケーションサーバ装置10は、アプリケーションの実行により、メッセージ送信依頼(以下、単に「送信依頼」ともいう)をメッセージ送受信装置20に送信する。
アプリケーションサーバ装置10は、メッセージ送信依頼をメッセージ送受信装置20に送信して、複数のスマートメータ40へのメッセージの送信をメッセージ送受信装置20に依頼する。
また、アプリケーションサーバ装置10は、メッセージ送受信装置20から、スマートメータ40からのメッセージを受信する。
アプリケーションサーバ装置10は、上位装置の例に相当する。 In the
The
The
In addition, the
The
より具体的には、メッセージ送受信装置20は、アプリケーションサーバ装置10からメッセージ送信依頼を受信する。
メッセージ送信依頼には、1つ以上の送信メッセージが含まれている。
なお、送信メッセージを下りメッセージともいう。
メッセージ送受信装置20は、メッセージ送信依頼から送信メッセージを抽出し、抽出した送信メッセージを中継装置30に送信する。
送信メッセージには、メッセージ送信依頼のID(Identifier)である送信依頼IDとメッセージ送信依頼で指定されている優先度とが設定される。
また、メッセージ送受信装置20は、中継装置30から、スマートメータ40からの受信メッセージを受信し、受信した受信メッセージをアプリケーションサーバ装置10に送信する。
なお、受信メッセージを上りメッセージともいう。
また、メッセージ送受信装置20は、送信メッセージ及び受信メッセージについての優先度の調整を行う。
メッセージ送受信装置20は、通信装置の例に相当する。 The message transmitting / receiving
More specifically, the message transmission /
The message transmission request includes one or more transmission messages.
A transmission message is also called a downstream message.
The message transmission /
In the transmission message, a transmission request ID that is an ID (Identifier) of the message transmission request and a priority specified in the message transmission request are set.
Further, the message transmission /
The received message is also called an upstream message.
In addition, the message transmitting / receiving
The message transmission /
より具体的には、中継装置30は、メッセージ送受信装置20から下りメッセージを受信し、受信した下りメッセージを優先度別のキューに蓄積し、最も高い優先度のキューに蓄積されている下りメッセージを優先してスマートメータ40に送信する。
最も高い優先度のキューに蓄積されている下りメッセージ、すなわちスマートメータ40に優先して送信される下りメッセージを、優先下りメッセージともいう。
また、中継装置30は、複数のスマートメータ40から上りメッセージを受信し、受信した上りメッセージを優先度別のキューに蓄積し、最も高い優先度のキューに蓄積されている下りメッセージを優先してメッセージ送受信装置20に送信する。
最も高い優先度のキューに蓄積されている上りメッセージ、すなわちメッセージ送受信装置20に優先して送信される上りメッセージを、優先上りメッセージともいう。 The
More specifically, the
A downlink message stored in the highest priority queue, that is, a downlink message transmitted with priority to the
Further, the
An upstream message stored in the highest priority queue, that is, an upstream message transmitted with priority to the message transmitting / receiving
なお、メッセージ送信部21は、後述するように、指示コマンド送信部としても機能する。 The
Note that the
なお、受信依頼受付部22は、メッセージ受信部の例に相当する。 The reception
The reception
なお、負荷情報格納部23の詳細は、実施の形態2で説明する。 The load
Details of the load
下りキュー241は、優先度ごとに設けられている。 The
The
上りキュー244は、優先度ごとに設けられている。 The
The
優先度調整部242は、進捗情報を解析して、優先度の調整の対象となる下りメッセージを抽出するための抽出条件を指定する。
より具体的には、優先度調整部242は、特定の送信依頼IDを選択し、選択した送信依頼IDが設定されている下りメッセージを抽出する旨の抽出条件を指定する。
そして、優先度調整部242は、選択した送信依頼IDが設定されている下りメッセージを抽出し、抽出した下りメッセージに対して当該下りメッセージに記述されている優先度とは異なる優先度を用いて優先下りメッセージを選択するよう中継装置30に指示する指示コマンド(以下、「優先度調整メッセージ」という)を生成する。
優先度調整メッセージは、メッセージ送信部21から中継装置30に送信される。
双方向メッセージの場合は、下りメッセージの送信依頼IDと優先度と同じ送信依頼IDと優先度が上りメッセージにも設定されている。
優先度調整部242が、双方向メッセージに用いられている送信依頼IDを選択した場合は、優先度調整メッセージは、上りメッセージにも適用される。
つまり、優先度調整メッセージは、該当する送信依頼IDが設定されている上りメッセージを抽出し、抽出した上りメッセージに対して当該上りメッセージに設定されている優先度とは異なる優先度を用いて優先上りメッセージを選択する旨の指示も含む。
なお、双方向メッセージにおける下りメッセージは、スマートメータ40からの応答を要求する下りメッセージであり、応答要求下りメッセージに相当する。
また、優先度調整部242は、抽出条件指定部及び指示コマンド生成部の例に相当する。 The
The
More specifically, the
Then, the
The priority adjustment message is transmitted from the
In the case of a bidirectional message, the same transmission request ID and priority as those of the downstream message transmission request ID and priority are set for the upstream message.
When the
In other words, the priority adjustment message is extracted by using the priority that is different from the priority set for the uplink message, by extracting the uplink message in which the corresponding transmission request ID is set. It also includes an instruction to select an upstream message.
The downlink message in the bidirectional message is a downlink message requesting a response from the
The
この場合は、1つの下りキュー241を優先度ごとの領域に区分し、送信依頼受付部26から入力した下りメッセージを対応する優先度の領域に格納するようにする。
同様に、1つの上りキュー244を優先度ごとの領域に区分し、受信依頼受付部22から入力した上りメッセージを対応する優先度の領域に格納するようにする。
また、下りキュー241と上りキュー244を1つのキューで実現してもよい。
この場合は、1つのキューを下りメッセージ用の領域と上りメッセージ用の領域に区分し、更に、下りメッセージ用の領域を優先度ごとに区分し、上りメッセージ用の領域を優先度ごとに区分する。 The
In this case, one
Similarly, one
Further, the
In this case, one queue is divided into an area for downlink messages and an area for uplink messages, and further, an area for downlink messages is divided for each priority, and an area for uplink messages is divided for each priority. .
まず、アプリケーションサーバ装置10から中継装置30へ下りメッセージを送信する場合の、メッセージ送受信装置20の基本動作について説明する。 Next, the operation will be described.
First, the basic operation of the message transmission /
メッセージの内容はアプリケーションが実行する処理に依存し、例えばスマートメータ40への制御メッセージ、スマートメータ40からの情報取得要求などがある。
アプリケーションがメッセージ送受信装置20にメッセージ送信を依頼するメッセージ送信依頼の形式は、例えば図11のようになっている。 A plurality of applications are running on the
The content of the message depends on processing executed by the application, and includes, for example, a control message to the
The format of a message transmission request for an application requesting message transmission to the message transmission /
スマートメータ40へ送信メッセージを送信する場合、送信先IDには送信先のスマートメータ40のメータIDが入る。
ヘッダ部には、例えば、アプリケーションID、メッセージ種別、送信メッセージサイズ、総送信メッセージ数、応答メッセージ受信期限時刻、優先度が含まれる。
アプリケーションIDは、メッセージ送信依頼を行ったアプリケーションを一意に表す。
メッセージ種別は、送信メッセージの種別(一方向メッセージか、双方向メッセージか)を表す。
単位送信メッセージサイズは、1つの送信メッセージと送信先IDを合せたデータの大きさを表す。
総送信メッセージ数は、メッセージ送信依頼のデータ部に含まれる送信メッセージの総数を表す。
応答メッセージ受信期限時刻は、送信メッセージ(応答要求下りメッセージ)に対するスマートメータ40からの応答(上りメッセージ)をアプリケーションが受け取る期限の時刻を表す。
優先度は、アプリケーションが指定する送信メッセージの通信における優先度である。
データ部には、送信メッセージの本体と送信先を指定する送信先IDの組が、総送信メッセージ数分だけ含まれる。 The message transmission request includes a header portion including information necessary for controlling message communication, and a data portion including one or more transmission messages to be transmitted and a transmission destination ID.
When a transmission message is transmitted to the
The header part includes, for example, an application ID, message type, transmission message size, total number of transmission messages, response message reception deadline time, and priority.
The application ID uniquely represents the application that has requested the message transmission.
The message type represents the type of transmission message (one-way message or two-way message).
The unit transmission message size represents the size of data combining one transmission message and a transmission destination ID.
The total number of transmission messages represents the total number of transmission messages included in the data part of the message transmission request.
The response message reception deadline time represents the time limit for the application to receive a response (uplink message) from the
The priority is a priority in communication of a transmission message specified by the application.
The data part includes a set of transmission message IDs and transmission destination IDs for designating transmission destinations for the total number of transmission messages.
送信依頼受付部26は、受け付けたメッセージ送信依頼の送信依頼IDを採番する。
また、送信依頼受付部26は、受け付けたメッセージ送信依頼のデータ部に送信先IDと送信メッセージの組が1つだけ含まれる場合には、メッセージ送信依頼を図13に示す形式の下りメッセージに変換し、下りメッセージを優先制御処理部24へ転送する。
下りメッセージでは、ヘッダ部として、送信先ID、送信依頼ID、メッセージ種別、送信メッセージサイズ、応答メッセージ受信期限時刻、優先度が含まれ、データ部として、メッセージ送信依頼に含まれる送信メッセージが含まれる。
ヘッダ部の送信先ID、メッセージ種別、送信メッセージサイズ、応答メッセージ受信期限時刻、優先度は、メッセージ送信依頼(図11)に含まれている値である。
送信依頼IDは、メッセージ送信依頼の受け付け時に送信依頼受付部26が採番した値である。
一方、受け付けたメッセージ送信依頼のデータ部に送信先IDと送信メッセージの組が複数含まれる場合には、送信依頼受付部26は、個々の送信先IDと送信メッセージの組に分割する。
そして、送信依頼受付部26は、送信先IDと送信メッセージの組ごとに、図13に示す形式の下りメッセージを生成する。
その後、送信依頼受付部26は、生成した下りメッセージのそれぞれを、メッセージ一時格納部27に格納する。
なお、送信メッセージが複数含まれるメッセージ送信依頼を、複合メッセージ送信依頼といい、また、双方向の送信メッセージ(応答要求下りメッセージ)が複数含まれるメッセージ送信依頼を、複合応答要求メッセージ送信依頼という。 In the message transmitting / receiving
The transmission
Also, the transmission
In the downlink message, a header part includes a transmission destination ID, a transmission request ID, a message type, a transmission message size, a response message reception deadline time, and a priority, and a data part includes a transmission message included in the message transmission request. .
The transmission destination ID, message type, transmission message size, response message reception deadline time, and priority in the header are values included in the message transmission request (FIG. 11).
The transmission request ID is a value numbered by the transmission
On the other hand, if the data portion of the received message transmission request includes a plurality of combinations of transmission destination IDs and transmission messages, the transmission
And the transmission
Thereafter, the transmission
A message transmission request including a plurality of transmission messages is referred to as a composite message transmission request, and a message transmission request including a plurality of bidirectional transmission messages (response request downlink messages) is referred to as a composite response request message transmission request.
応答メッセージ受信期限が指定されていない場合には、送信依頼受付部26は、メッセージ送信依頼に含まれる送信メッセージから生成した全ての下りメッセージを優先制御処理部24へ転送する。
インターバル時間は、例えば、応答メッセージ受信期限までの残り時間から応答に必要な余裕時間を差し引いた時間を総送信メッセージ数で除して求めてもよい。
あるいは、あらかじめ決められたインターバル時間を使ってもよい。
タイマー部25は設定されたインターバル時間ごとに、転送時刻が来たことを知らせるタイミング信号を送信依頼受付部26に送る。
タイミング信号を受け取った送信依頼受付部26は、メッセージ一時格納部27から一つの下りメッセージを取り出し、取り出した下りメッセージを優先制御処理部24へ転送する。 Next, the transmission
When the response message reception deadline is not specified, the transmission
The interval time may be obtained by, for example, dividing the time obtained by subtracting the margin time required for the response from the remaining time until the response message reception deadline by the total number of transmitted messages.
Alternatively, a predetermined interval time may be used.
The
The transmission
もし優先度の最も高いキューが空の場合には、次に優先度の高いキューの先頭から送信メッセージを取り出す。
次に、メッセージ送信部21は、取り出した送信メッセージから送信先IDを読み出し、図5に示すメータ中継装置対応テーブルから該当する送信先IDに対応する中継装置IDを検索し、見つかった中継装置IDに対応する中継装置30に送信メッセージを送信する。 The
If the queue with the highest priority is empty, the transmission message is extracted from the head of the queue with the next highest priority.
Next, the
上り方向のメッセージは、スマートメータ40から中継装置30が受信したメッセージであり、例えばスマートメータ40で定期または不定期に発生したイベントを表すメッセージや、アプリケーションからのメッセージ(応答要求下りメッセージ)に対する応答メッセージである。
メッセージ送受信装置20が中継装置30から受信するメッセージ受信依頼の形式は、例えば図12のようになっている。 The
The upstream message is a message received by the
The format of the message reception request that the message transmitting / receiving
スマートメータ40からのメッセージ受信の場合、送信元IDには送信元のスマートメータ40のメータIDが入る。
ヘッダ部には、例えば、送信依頼ID又はアプリケーションID、メッセージ種別、単位受信メッセージサイズ、総受信メッセージ数、応答メッセージ受信期限、優先度が含まれる。
送信依頼IDは、上りメッセージが応答要求下りメッセージに対する応答メッセージである場合に用いられる。
送信依頼IDの欄には、応答要求下りメッセージの送信依頼ID(図13)と同じ値が記述される。
アプリケーションIDは、上りメッセージがスマートメータ40から発信されたメッセージである場合(応答要求下りメッセージに対する応答メッセージではない場合)に用いられる。
アプリケーションIDは、上りメッセージの送信先のアプリケーションを一意に表す。
なお、図13にはアプリケーションIDが記述されていない下りメッセージが例示されているが、下りメッセージにアプリケーションIDが記述されている場合は、応答データである上りメッセージに同じアプリケーションIDが記述されていてもよい。
メッセージ種別は、受信メッセージの種別(一方向メッセージか、双方向メッセージか)を表す。
単位受信メッセージサイズは、1つの受信メッセージと送信元IDを合せたデータの大きさを表す。
総受信メッセージ数は、メッセージ受信依頼のデータ部に含まれる受信メッセージの総数を表す。
応答メッセージ受信期限は、受信メッセージをアプリケーションが受け取る期限の時刻を表す。
受信メッセージが応答要求下りメッセージに対する応答メッセージである場合は、応答メッセージ受信期限の欄には、応答要求下りメッセージに記述されていた応答メッセージ受信期限(図13)と同じ値が記述される。
優先度は、受信メッセージの通信における優先度を表す。
受信メッセージが応答要求下りメッセージに対する応答メッセージである場合は、優先度の欄には、応答要求下りメッセージに記述されていた優先度(図13)と同じ値が記述される。
データ部には、受信メッセージの本体と送信元を示す送信元IDの組が、総受信メッセージ数分だけ含まれる。 The message reception request includes a header portion including information necessary for control of message communication, and a data portion including one or more received messages and a transmission source ID.
In the case of receiving a message from the
The header part includes, for example, a transmission request ID or application ID, a message type, a unit received message size, the total number of received messages, a response message reception deadline, and a priority.
The transmission request ID is used when the upstream message is a response message to the response request downstream message.
In the transmission request ID column, the same value as the transmission request ID (FIG. 13) of the response request downlink message is described.
The application ID is used when the upstream message is a message transmitted from the smart meter 40 (when it is not a response message to the response request downstream message).
The application ID uniquely represents the destination application of the upstream message.
FIG. 13 illustrates a downlink message in which the application ID is not described. However, when the application ID is described in the downlink message, the same application ID is described in the uplink message that is response data. Also good.
The message type represents the type of received message (one-way message or two-way message).
The unit received message size represents the size of data that combines one received message and the transmission source ID.
The total number of received messages represents the total number of received messages included in the data part of the message reception request.
The response message reception time limit represents a time limit for receiving the received message by the application.
When the received message is a response message to the response request downlink message, the same value as the response message reception deadline (FIG. 13) described in the response request downlink message is described in the response message reception deadline column.
The priority represents a priority in communication of the received message.
When the received message is a response message to the response request downlink message, the same value as the priority (FIG. 13) described in the response request downlink message is described in the priority column.
The data portion includes a set of sender IDs indicating the main body of the received message and the sender for the total number of received messages.
受信依頼受付部22は、受け付けたメッセージ受信依頼のデータ部に送信元IDと受信メッセージの組が1つだけ含まれる場合には、メッセージ受信依頼をそのまま優先制御処理部24へ転送する。
受け付けたメッセージ受信依頼のデータ部に送信元IDと受信メッセージの組が複数含まれる場合には、受信依頼受付部22は、個々の送信元IDと受信メッセージの組に分割する。
そして、受信依頼受付部22は、送信元IDと受信メッセージの組ごとに、受信メッセージにメッセージ受信依頼のヘッダ部の情報と送信元IDを付加し、ヘッダ部の情報と送信元IDが付加された受信メッセージを優先制御処理部24へ転送する。
優先制御処理部24は、受信依頼受付部22から転送された受信メッセージを上りキュー244の該当する優先度のキューの最後尾に挿入する。 In the message transmitting / receiving
The reception
When the data portion of the received message reception request includes a plurality of sets of transmission source IDs and reception messages, the reception
The reception
The priority
もし優先度の最も高いキューが空の場合には、次に優先度の高いキューの先頭から受信メッセージを取り出す。
次に、メッセージ配信部28は、取り出した受信メッセージから送信依頼ID又はアプリケーションIDを読み出し、該当するアプリケーションに受信メッセージを配信する。 The
If the queue with the highest priority is empty, the received message is extracted from the head of the queue with the next highest priority.
Next, the
優先度情報テーブルのレコードは、アプリケーションからのメッセージ送信依頼単位で作られる。
優先度情報テーブルのデータ項目には、アプリケーションID、送信依頼ID、送信依頼時刻、優先度、通信方向、送信数、受信数、前回受信数、受信速度、残受信メッセージ数、優先度調整指標、受信期限時刻が含まれる。
アプリケーションIDの欄には、メッセージ送信依頼の送信元のアプリケーションのID、つまり、メッセージ送信依頼に記述されているアプリケーションIDが記述される。
送信依頼IDの欄には、メッセージ送信依頼の受付時に一意に採番された送信依頼IDが記述される。
優先度の欄には、アプリケーションが指定した優先度、つまり、メッセージ送信依頼に記述されている優先度が記述される。
通信方向の欄には、メッセージ送信依頼に記述されるメッセージの通信方向、つまり、双方向か一方向かが記述される。
送信数の欄には、メッセージ送信依頼で依頼された送信メッセージのうちメッセージ送信部21から下りメッセージとして送信されたメッセージ数が記述される。
受信数の欄には、メッセージ送信依頼で依頼された送信メッセージのうち受信依頼受付部22でその応答が受信されたメッセージ数が記述される。
前回受信数の欄には、受信数が更新される際に、更新前の受信数が記述される。
前回受信数の値は、受信速度を計算するために用いられる。
受信速度の欄には、単位時間あたりの受信メッセージ数が記述される。
残受信メッセージ数の欄には、現在以降に受信すべき受信メッセージの数が記述される。
優先度調整指標の欄には、優先度の調整を指示するための指標が記述される。
受信期限時刻の欄には、応答要求下りメッセージの応答がアプリケーションにより受信されなければならない時刻が記述される。
ただし、受信数、前回受信数、受信速度、受信期限時刻は、通信方向が双方向の場合のみに使用される。 FIG. 4 shows an example of the priority information table.
The record of the priority information table is created for each message transmission request from the application.
The data items of the priority information table include application ID, transmission request ID, transmission request time, priority, communication direction, transmission number, reception number, previous reception number, reception speed, remaining received message number, priority adjustment index, The reception deadline time is included.
In the column of application ID, the ID of the application that is the transmission source of the message transmission request, that is, the application ID described in the message transmission request is described.
In the transmission request ID column, a transmission request ID uniquely assigned when a message transmission request is received is described.
In the priority column, the priority specified by the application, that is, the priority described in the message transmission request is described.
The communication direction column describes the communication direction of the message described in the message transmission request, that is, bidirectional or unidirectional.
In the transmission number column, the number of messages transmitted as downlink messages from the
In the reception number column, the number of messages whose response is received by the reception
In the previous received number column, when the received number is updated, the received number before the update is described.
The value of the previous reception number is used to calculate the reception speed.
In the reception speed column, the number of received messages per unit time is described.
In the remaining number of received messages column, the number of received messages to be received after the present is described.
In the priority adjustment index column, an index for instructing priority adjustment is described.
In the reception deadline time column, the time at which the response of the response request downstream message must be received by the application is described.
However, the reception number, the previous reception number, the reception speed, and the reception deadline time are used only when the communication direction is bidirectional.
このとき、進捗情報管理部243は、メッセージ送信依頼のヘッダ部から、アプリケーションID、応答メッセージ受信期限時刻、優先度を取り出し、それぞれ優先度情報テーブルの該当レコードのアプリケーションID、受信期限時刻、優先度の各カラムに書き込む。
また、進捗情報管理部243は、メッセージ種別を取り出し、通信方向を識別して通信方向のデータ項目に書き込む。
また、進捗情報管理部243は、通信方向が双方向の場合、総送信メッセージ数を取り出し、残受信メッセージ数のカラムに書き込む。
通信方向が一方向の場合は、残受信メッセージ数のカラムには「0」(ゼロ)を書き込む。
また、進捗情報管理部243は、送信数、受信数、前回受信数、優先度調整指標のカラムには「0」(ゼロ)を書き込む。 The progress
At this time, the progress
Also, the progress
Further, when the communication direction is bidirectional, the progress
When the communication direction is one direction, “0” (zero) is written in the column of the number of remaining received messages.
Further, the progress
また、進捗情報管理部243は、メッセージ送受信装置20の受信依頼受付部22が受信メッセージを受け付ける度に呼び出され、該当する送信依頼IDのレコードの受信数をインクリメントし、残受信メッセージ数をデクリメントする。 The progress
The progress
このとき、進捗情報管理部243は、受信速度のカラムを更新する前に、受信数のカラムのデータを前回受信数のカラムにコピーする。
受信速度は、受信数と前回受信数との差をタイミング信号の間隔で割ることにより求める。 In addition, the progress
At this time, the progress
The reception speed is obtained by dividing the difference between the reception number and the previous reception number by the timing signal interval.
メッセージ送信部21は、指定された中継装置30に優先度調整メッセージを送信する。 The
The
優先度情報テーブルの優先度調整指標は、全ての送信依頼IDについて「0」(ゼロ)であると仮定する。 FIG. 14 is a flowchart illustrating an example of priority adjustment operation by the
It is assumed that the priority adjustment index of the priority information table is “0” (zero) for all transmission request IDs.
優先度調整部242は、まず、優先度情報テーブルの最初の送信依頼IDのレコードを読み込む(S11)。
このとき、受信期限時刻のカラムにデータがない場合(S12でNO)は、優先度調整が不要であると判断して、優先度調整部242は、次の送信依頼IDのレコードを読み込む(S11)。
受信期限時刻のカラムにデータがある場合(S12でYES)でも、もし、優先度調整指標がすでに「+1」となっていた場合(S13で「+1」)には、優先度調整の要否を判定済みであると判断して、優先度調整部242は、次の送信依頼IDのレコードを読み込む(S11)。
優先度調整指標が「0」の場合(S13で「0」)には、優先度調整部242は、優先度調整要否チェック処理を実行し(S14)、優先度調整をするかどうかを判断する。
優先度調整が必要と判断した場合(S15でYES)には、優先度調整部242は、優先度情報テーブルの当該送信依頼IDの優先度調整指標のカラムに「+1」と書き込み(S16)、図13の送信メッセージ形式で優先度調整メッセージを作成する(S17)。 The
The
At this time, if there is no data in the reception time limit column (NO in S12), it is determined that priority adjustment is unnecessary, and the
Even if there is data in the reception deadline time column (YES in S12), if the priority adjustment index has already been "+1"("+1" in S13), whether or not priority adjustment is necessary is determined. The
When the priority adjustment index is “0” (“0” in S13), the
When it is determined that priority adjustment is necessary (YES in S15), the
つまり、S11でレコードが読み込まれた送信依頼に複数のスマートメータ40宛ての複数の送信メッセージが含まれており、これら複数のスマートメータ40とのメッセージ通信が複数の中継装置30により中継される場合は、優先度調整部242は、中継装置30ごとに優先度調整メッセージを生成する。
優先度調整メッセージのヘッダ部の送信依頼IDには、S11で優先度情報テーブルから読み込んだレコードの送信依頼IDを入れる。
また、送信先IDには中継装置ID、メッセージ種別には優先度調整メッセージであることを示す種別コードを入れる。
また、送信メッセージサイズには優先度調整メッセージのサイズ、優先度には「高」を入れる。
データ部の送信メッセージには、優先度調整指標値(「+1」)を入れる。
このようにして、優先度調整部242は、全ての中継装置30について優先度調整メッセージを作成し、作成した優先度調整メッセージをメッセージ送信部21に転送する(S18)。
優先度調整部242は、以上の手順を優先度情報テーブルの全ての送信依頼IDについて実行する(S19)。 A priority adjustment message is created for each
That is, a case where a plurality of transmission messages addressed to the plurality of
In the transmission request ID of the header part of the priority adjustment message, the transmission request ID of the record read from the priority information table in S11 is entered.
Further, a relay device ID is entered in the transmission destination ID, and a type code indicating that it is a priority adjustment message is entered in the message type.
Further, the size of the priority adjustment message is set in the transmission message size, and “high” is set in the priority.
A priority adjustment index value (“+1”) is entered in the transmission message of the data part.
In this way, the
The
図15では、送信数と受信数の差があらかじめ決められた一定水準値を超えた場合に、S14の判断の対象としている送信依頼のメッセージの優先度を上げる例を示している。 FIG. 15 is a flowchart showing an example of the priority adjustment necessity check process in S14 of FIG.
FIG. 15 shows an example in which the priority of the message of the transmission request that is the object of determination in S14 is increased when the difference between the number of transmissions and the number of receptions exceeds a predetermined constant level.
次に、優先度調整部242は、中継装置30への下りメッセージの送信数と中継装置30からの上りメッセージの受信数の差を計算し(S1412)、その値が送受信数差異閾値を超えていた場合(S1413でYES)に、優先度を調整するという判断をする(S1414)。
一方、計算した値が送受信数差異閾値を超えていない場合(S1413でNO)は、優先度を調整しないという判断をする(S1415)。
このように、図15の優先度調整要否チェック処理は、複数の下りメッセージが送信され、更に、複数の上りメッセージが応答される双方向のメッセージ通信に適用される。
換言すると、図15の優先度調整要否チェック処理は、複合応答要求下りメッセージ送信依頼に適用される。 In the priority adjustment necessity check process of FIG. 15, first, the
Next, the
On the other hand, when the calculated value does not exceed the transmission / reception number difference threshold (NO in S1413), it is determined that the priority is not adjusted (S1415).
As described above, the priority adjustment necessity check process in FIG. 15 is applied to bidirectional message communication in which a plurality of downlink messages are transmitted and a plurality of uplink messages are responded.
In other words, the priority adjustment necessity check process in FIG. 15 is applied to the composite response request downstream message transmission request.
図16では、メッセージ受信速度が受信期限時刻までに残受信メッセージ数を処理するために必要なメッセージ受信速度を下回っていた場合に、S14の判断の対象としている送信依頼のメッセージの優先度を上げる例を示している。 FIG. 16 is a flowchart showing another example of the priority adjustment necessity check process in S14 of FIG.
In FIG. 16, when the message reception speed is lower than the message reception speed necessary for processing the number of remaining received messages by the reception deadline time, the priority of the message of the transmission request that is the object of determination in S14 is increased. An example is shown.
次に、優先度調整部242は、計算した受信速度と、優先度情報テーブルの受信速度を比較し、計算した受信速度のほうが大きい場合(S1422でYES)に、優先度を調整するという判断をする(S1423)。
一方、計算した受信速度が大きくない場合(S1422でNO)は、優先度を調整しないという判断をする(S1424)。
このように、図16の優先度調整要否チェック処理では、送信依頼ごとに、上りメッセージの受信速度を計測し、計測した受信速度で上りメッセージの受信が続けられた場合に、全ての上りメッセージの受信が受信完了期限までに完了するか否かを判断する。
そして、全ての上りメッセージの受信が受信完了期限までに完了しない送信依頼を優先度調整の対象とする。
図16の優先度調整要否チェック処理も、図15の場合と同様に、複合応答要求下りメッセージ送信依頼に適用される。 In the priority adjustment necessity check process of FIG. 16, first, the
Next, the
On the other hand, if the calculated reception speed is not large (NO in S1422), it is determined that the priority is not adjusted (S1424).
As described above, in the priority adjustment necessity check process of FIG. 16, the reception speed of the uplink message is measured for each transmission request, and when the reception of the uplink message is continued at the measured reception speed, all the uplink messages It is determined whether or not the reception is completed by the reception completion deadline.
A transmission request in which reception of all uplink messages is not completed before the reception completion deadline is set as a priority adjustment target.
The priority adjustment necessity check process of FIG. 16 is also applied to the composite response request downstream message transmission request, as in the case of FIG.
図17では、受信期限時刻までの残り時間が少なくなった場合に、S14の判断の対象としている送信依頼のメッセージの優先度を上げる例を示している。 FIG. 17 is a flowchart showing another example of the priority adjustment necessity check process in S14 of FIG.
FIG. 17 shows an example in which the priority of the message of the transmission request that is the target of the determination in S14 is increased when the remaining time until the reception deadline time decreases.
次に、優先度調整部242は、送信依頼時刻と受信期限時刻との差分から総受信時間を計算し(S1432)、受信残り時間が送受信時刻の一定割合(例えば10%)より少ない場合(S1433でYES)に、優先度を調整するという判断をする(S1434)。
一方、受信残り時間が送受信時刻の一定割合(例えば10%)よりも少なくない場合(S1433でNO)は、優先度を調整しないという判断をする(S1435)。
図17の優先度調整要否チェック処理も、図15及び図16の場合と同様に、複合応答要求下りメッセージ送信依頼に適用される。 In the priority adjustment necessity check process of FIG. 17, the
Next, the
On the other hand, if the remaining reception time is not less than a certain ratio (for example, 10%) of the transmission / reception time (NO in S1433), it is determined that the priority is not adjusted (S1435).
The priority adjustment necessity check process of FIG. 17 is also applied to the composite response request downstream message transmission request, as in the case of FIGS. 15 and 16.
図18は、優先度引き下げ処理のフローチャートである。 When the
FIG. 18 is a flowchart of the priority lowering process.
このとき、受信期限時刻のカラムにデータがない場合(S22でNO)は、優先度調整部242は、優先度調整が不要であると判断して、次の送信依頼IDのレコードを読み込む。
受信期限時刻のカラムにデータがある場合(S22でYES)で、優先度調整指標が「+1」となっていた場合(S23で「+1」)、この送信依頼が送信依頼2の候補となる。
優先度調整部242は、送信依頼1の受信期限時刻と、送信依頼2の受信期限時刻を比較し(S24)、もし送信依頼2の受信期限時刻が送信依頼1の受信期限時刻よりも遅い時刻だった場合、送信依頼2について優先度引き下げの優先度調整が必要と判断する(S25でYES)。
優先度引き下げ処理は、優先度調整部242が、優先度情報テーブルの送信依頼2の優先度調整指標のカラムを「0」に修正し(S26)、図13の送信メッセージ形式で優先度調整メッセージを作成する(S27)。
このとき、ヘッダ部の送信依頼IDには、送信依頼2の送信依頼IDを入れる。
また、送信先IDには中継装置ID、メッセージ種別には優先度調整メッセージであることを示す種別コードを入れる。
また、送信メッセージサイズには優先度調整メッセージのサイズ、優先度には「高」を入れる。
データ部の送信メッセージには、優先度調整指標値(「0」)を入れる。
このようにして、優先度調整部242は、全ての中継装置30について優先度調整メッセージを作成し、作成した優先度調整メッセージをメッセージ送信部21に転送する(S28)。
以上の手順を優先度情報テーブルの全ての送信依頼IDについて実行する(S29)。
なお、S27で作成する優先度調整メッセージは、送信依頼2について中継装置30に送信済みの優先度調整メッセージ(データ部に「+1」が記述された優先度調整メッセージ)を無効にするコマンドであり、無効コマンドの例に相当する。 In the priority lowering process, first, the
At this time, if there is no data in the reception time limit column (NO in S22), the
If there is data in the column of the reception deadline time (YES in S22) and the priority adjustment index is “+1” (“+1” in S23), this transmission request is a candidate for transmission request 2.
The
In the priority lowering process, the
At this time, the transmission request ID of the transmission request 2 is entered in the transmission request ID of the header part.
Further, a relay device ID is entered in the transmission destination ID, and a type code indicating that it is a priority adjustment message is entered in the message type.
Further, the size of the priority adjustment message is set in the transmission message size, and “high” is set in the priority.
A priority adjustment index value (“0”) is entered in the transmission message of the data part.
In this way, the
The above procedure is executed for all transmission request IDs in the priority information table (S29).
The priority adjustment message created in S27 is a command for invalidating the priority adjustment message (priority adjustment message in which “+1” is described in the data portion) that has been transmitted to the
下りメッセージ受信部37は、スマートメータ40宛ての下りメッセージの他、優先度調整メッセージ(指示コマンド)も受信し、指示コマンド受信部としても機能する。 In FIG. 3, the downlink
The downlink
優先制御処理部35は、優先度ごとの下りキュー351および上りキュー353と、優先度変更の処理を行う優先度変更部352からなる。
優先制御処理部35の下りキュー351、上りキュー353は、優先度ごとに複数のキューで構成されているが、1つのキューで実現してもよい。
また、下りキュー351と上りキュー353を1つのキューで実現してもよい。
下りキュー351は、下りメッセージ記憶部の例に相当する。
また、上りキュー353は、上りメッセージ記憶部の例に相当する。
更に、優先度変更部352は、下りメッセージ送信部31とともに、優先下りメッセージ選択部の例に相当する。
また、優先度変更部352は、上りメッセージ送信部38とともに、優先上りメッセージ選択部の例に相当する。 The priority
The priority
The
Further, the
The
The
Further, the
The
下りメッセージ送信部31は、最も優先度の高い下りキュー351に蓄積されている下りメッセージを選択し、選択した下りメッセージを優先してスマートメータ40に送信する。
このため、下りメッセージ送信部31は、優先下りメッセージ選択部の例に相当する。 The downlink
The downlink
For this reason, the downlink
上りメッセージ送信部38は、最も優先度の高い上りキュー353に蓄積されている上りメッセージを選択し、選択した上りメッセージを優先してメッセージ送受信装置20に送信する。
このため、上りメッセージ送信部38は、優先上りメッセージ選択部の例に相当する。 The upstream
The upstream
For this reason, the uplink
タイマー部34は、負荷情報生成部33に負荷情報の生成のタイミング信号を与える。
負荷情報生成部33及びタイマー部34の詳細は、実施の形態2で説明する。 The load
The
Details of the load
また、下りメッセージ受信部37は、優先度調整メッセージを受信した場合は、優先度調整メッセージを優先度変更部352に出力する。 The downlink
Further, when the downlink
もし優先度の最も高いキューが空の場合には、下りメッセージ送信部31は、次に優先度の高いキューの先頭から下りメッセージを取り出す。
次に、下りメッセージ送信部31は、下りメッセージ内の送信先IDが示すスマートメータ40に、取り出した下りメッセージを送信する。 The downlink
If the queue with the highest priority is empty, the downlink
Next, the downlink
もし優先度の最も高いキューが空の場合には、次に優先度の高いキューの先頭から上りメッセージを取り出す。
次に、上りメッセージ送信部38は、取り出した上りメッセージをメッセージ送受信装置20に送信する。
なお、上りメッセージ送信部38は、共通する送信依頼IDの複数の上りメッセージが同じタイミングで存在する場合は、複数の上りメッセージをまとめて図12に示すメッセージ受信依頼の形式で複数の上りメッセージを送信する。 The upstream
If the queue with the highest priority is empty, the upstream message is extracted from the head of the queue with the next highest priority.
Next, the upstream
When a plurality of uplink messages having a common transmission request ID are present at the same timing, the uplink
優先度変更部352は、優先度調整メッセージのヘッダ部に設定された送信依頼IDが優先度変更データ記憶部36の優先度変更情報テーブル(図6)に存在しない場合、ヘッダ部の情報にしたがって新たに当該送信依頼IDのエントリを追加する。
次に、優先度変更部352は、優先度調整メッセージのデータ部の優先度調整指標値(「+1」又は「0」)を参照し、優先度変更データ記憶部36に保存されている値と異なる場合、これを更新する。 As described above, when receiving the priority adjustment message from the message transmitting / receiving
When the transmission request ID set in the header part of the priority adjustment message does not exist in the priority change information table (FIG. 6) of the priority change
Next, the
優先度変更情報テーブルの各テーブル項目の意味は、メッセージ送受信装置20の優先度情報テーブル(図4)と同じである。 25 and 27 are diagrams illustrating an example of the priority change information table.
The meaning of each table item in the priority change information table is the same as that of the priority information table (FIG. 4) of the message transmitting / receiving
図24と図26では、優先度が、高、中、低の三段階である例を示している。 FIG. 24 and FIG. 26 are diagrams showing a situation before and after the
24 and 26 show an example in which the priority has three levels of high, medium, and low.
例えば、優先度=高のキュー(高)には送信依頼ID=0002の下りメッセージが入っている。
また、キュー(中)には送信依頼ID=0003の下りメッセージ、キュー(低)には送信依頼IDが0004、0001、0004の下りメッセージがこの順番で入っている。
また、優先度変更情報テーブルには、図25のようなデータが格納されている。 FIG. 24 shows the situation in the
For example, a downstream message with a transmission request ID = 0002 is contained in a queue with high priority = high (high).
The queue (middle) contains downstream messages with transmission request ID = 0003, and the queue (low) contains downstream messages with
Further, data as shown in FIG. 25 is stored in the priority change information table.
優先度変更情報テーブルの送信依頼ID=0001の優先度調整指標カラムには「0」が入っている(図25)ため、優先度調整指標が変更になっている。
優先度調整メッセージの受信により、優先度変更情報テーブルは図27に示すように更新される。
優先度変更部352は、優先度調整メッセージ(図26の符号701)を入力し、キュー(低)に入っている送信依頼ID=0001の下りメッセージ(図26の符号702)を取り出し、優先度調整指標=+1の指示にしたがって、この下りメッセージを優先度が一つ高いキュー(中)の最後尾に挿入する。
同様にして、優先度変更部352は、上りキュー353に入っている送信依頼ID=0001の上りメッセージ(不図示)についても、優先度が一つ高いキュー(中)の最後尾に挿入する。
下りメッセージ受信部37および上りメッセージ受信部32は、新たなメッセージ(例えば、図26の符号703)を受信した場合、優先度変更情報テーブルから送信依頼ID=0001のレコードの優先度調整指標を読み出し、その指示(+1)にしたがって、新たなメッセージを優先度が一つ高いキュー(中)の最後尾に挿入する。
そして、下りメッセージ送信部31は、優先度変更部352により下りメッセージの優先度の調整が行われた後の下りキュー351から下りメッセージを取り出す。 At this time, let us consider a case where the downlink
Since “0” is entered in the priority adjustment index column of the transmission request ID = 0001 in the priority change information table (FIG. 25), the priority adjustment index is changed.
By receiving the priority adjustment message, the priority change information table is updated as shown in FIG.
The
Similarly, the
When receiving a new message (for example,
Then, the downlink
送信依頼ID=0001の下りメッセージ(符号702、703)は、優先度変更部352による優先度の調整が行われる前はキュー(低)に蓄積されていたため、下りメッセージ受信部37により取出されるまでは長時間を要する。
しかし、優先度変更部352による優先度の調整の後は、送信依頼ID=0001の下りメッセージ(符号702、703)はキュー(中)に蓄積されているので短時間で取り出されることになる。
このように、優先度変更部352は、下りキュー351に記憶されている下りメッセージの中から優先度調整メッセージに示される送信依頼IDが設定されている下りメッセージを抽出する。
そして、優先度変更部352は、下りメッセージ送信部31が下りキュー351から下りメッセージを取り出す際に、抽出した下りメッセージに対して当該下りメッセージに設定されている優先度とは異なる優先度が用いられるような調整を行う。
同様に、優先度変更部352は、上りキュー353に記憶されている上りメッセージの中から優先度調整メッセージに示される送信依頼IDが設定されている上りメッセージを抽出する。
そして、優先度変更部352は、上りメッセージ送信部38が上りキュー353から上りメッセージを取り出す際に、抽出した上りメッセージに対して当該上りメッセージに設定されている優先度とは異なる優先度が用いられるような調整を行う。
なお、本実施の形態では、優先度変更部352は、メッセージに記述されている優先度を変更せずに、メッセージを本来の優先度よりも高い優先度のキューに格納するが、メッセージの優先度自体を書き換えるようにしてもよい。 For example, in the
Since the downlink messages (
However, after the priority adjustment by the
As described above, the
Then, when the downlink
Similarly, the
Then, when the upstream
In the present embodiment, the
また、中継装置30が優先度調整指標にしたがって、上り、下り双方のキュー内で保留されているメッセージの優先度を変更する。
このため、中継装置30に過大な負荷をかけることなく、効果的にメッセージ通信の優先度を制御することができる。 As described above, according to the present embodiment, the message transmission /
Further, the
For this reason, the priority of message communication can be effectively controlled without imposing an excessive load on the
このため、きめ細かなメッセージ通信の優先度制御を行うことができる。 Further, the message transmitting / receiving
Therefore, fine priority control of message communication can be performed.
スマートメータ、中継装置、メッセージ送受信装置、アプリケーションサーバ装置10から構成され、
スマートメータは電力、ガス、水道等の使用量を測定し、
アプリケーションサーバ装置10上で動作する1つ以上のアプリケーションとスマートメータとの間で、
センターシステムに配備されるメッセージ送受信装置と、メッセージ送受信装置とスマートメータ間に配備される中継装置を経由して、メッセージ通信を行うスマートメータ自動検針システムを説明した。 As described above, in the present embodiment,
It consists of a smart meter, a relay device, a message transmission / reception device, and an
A smart meter measures the usage of electricity, gas, water, etc.
Between one or more applications running on the
The smart meter automatic meter reading system that performs message communication via the message transmission / reception device provided in the center system and the relay device provided between the message transmission / reception device and the smart meter has been described.
アプリケーションサーバ装置10上のアプリケーションは、データ送受信装置に対して送るメッセージ送信依頼の中に受信期限時刻の情報を含め、
データ送受信装置は、アプリケーションとスマートメータとの間のメッセージ通信の進捗情報を保持する進捗情報管理部と、メッセージ通信の進捗情報から優先度調整の要否を判定して中継装置に優先度調整の指示を行う優先度調整部を備えた優先制御処理部を具備し、
中継装置は、メッセージ送受信装置からの優先度調整指示にしたがってメッセージ処理の優先度を変更する優先度変更部を備えた優先制御処理部を具備することを説明した。 In the present embodiment,
The application on the
The data transmitting / receiving device determines the necessity of priority adjustment from the progress information management unit that holds the progress information of the message communication between the application and the smart meter, and determines the necessity of priority adjustment from the progress information of the message communication. A priority control processing unit including a priority adjustment unit for giving an instruction;
It has been described that the relay device includes a priority control processing unit including a priority changing unit that changes the priority of message processing in accordance with a priority adjustment instruction from the message transmitting / receiving device.
中継装置が具備する優先制御処理部の優先度変更部は、
データ送受信装置から中継装置への下り方向メッセージに対する処理の優先度を変更し、
さらに、メッセージ送受信装置からの優先度調整指示の対象メッセージが双方向メッセージだった場合に、中継装置からデータ送受信装置への上り方向メッセージに対する処理の優先度を変更することを説明した。 In the present embodiment,
The priority changing unit of the priority control processing unit included in the relay device is:
Change the priority of processing for downstream messages from the data transmitter / receiver to the relay device,
Further, it has been described that when the target message of the priority adjustment instruction from the message transmission / reception device is a bidirectional message, the priority of processing for the upstream message from the relay device to the data transmission / reception device is changed.
データ送受信装置が具備する優先制御処理部の進捗情報管理部は、
メッセージ通信の進捗情報として、アプリケーションからのメッセージ送信依頼ごとの送信数、および受信数を保持し、
データ送受信装置が具備する優先制御処理部の優先度調整部は、
送信数と受信数の差があらかじめ決められた一定水準値を超えた場合に、当該送信依頼で送信するメッセージの優先度を上げるように、中継装置に優先度調整の指示を行うことを説明した。 In the present embodiment,
The progress information management unit of the priority control processing unit included in the data transmitting / receiving device is:
As message communication progress information, the number of transmissions for each message transmission request from the application and the number of receptions are retained.
The priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is:
Explained that when the difference between the number of transmissions and the number of receptions exceeds a predetermined level, the relay device is instructed to adjust the priority so as to increase the priority of the message sent in the transmission request. .
データ送受信装置が具備する優先制御処理部の進捗情報管理部は、
メッセージ通信の進捗情報として、アプリケーションからのメッセージ送信依頼ごとのメッセージ受信速度と、残受信メッセージ数を保持し、
データ送受信装置が具備する優先制御処理部の優先度調整部は、
メッセージ受信速度が受信期限時刻までに残受信メッセージ数を処理するために必要なメッセージ受信速度を下回っていた場合に、当該送信依頼で送信するメッセージの優先度を上げるように、中継装置に優先度調整の指示を行うことを説明した。 In the present embodiment,
The progress information management unit of the priority control processing unit included in the data transmitting / receiving device is:
As message communication progress information, the message reception speed and the number of remaining received messages for each message transmission request from the application are retained.
The priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is:
If the message reception speed is lower than the message reception speed necessary to process the number of remaining received messages by the reception deadline time, the priority is given to the relay device so as to increase the priority of the message transmitted by the transmission request. Explained to give instructions for adjustment.
データ送受信装置が具備する優先制御処理部の進捗情報管理部は、
メッセージ通信の進捗情報として、メッセージ送信依頼を受け付けた送信依頼受付時刻と、受信期限時刻までの残り時間を保持し、
データ送受信装置が具備する優先制御処理部の優先度調整部は、
受信期限時刻までの残り時間が、送信依頼受付時刻から受信期限時刻までの時間の一定割合を下回った場合に、当該送信依頼で送信するメッセージの優先度を上げるように、中継装置に優先度調整の指示を行うことを説明した。 In the present embodiment,
The progress information management unit of the priority control processing unit included in the data transmitting / receiving device is:
As the message communication progress information, the transmission request reception time at which the message transmission request is received and the remaining time until the reception deadline time are retained,
The priority adjustment unit of the priority control processing unit included in the data transmitting / receiving device is:
When the remaining time until the reception deadline time falls below a certain percentage of the time from the reception request reception time to the reception deadline time, the priority is adjusted to the relay device so as to increase the priority of the message transmitted by the transmission request. Explained that I will give instructions.
データ送受信装置が具備する優先制御処理部は、
すでに別のアプリケーションからのメッセージ送信依頼について、送信するメッセージの優先度を上げるよう中継装置に優先度調整指示をしているとき、
優先度を上げるように優先度調整をしようとしているメッセージ送信依頼の受信期限時刻が、上記別のアプリケーションの受信期限時刻よりも早い時刻だった場合に、
上記別のアプリケーションが送信するメッセージの優先度を下げるよう優先度調整指示を行うことを説明した。 In the present embodiment,
The priority control processing unit included in the data transmitting / receiving device is:
For a message transmission request from another application, when the priority adjustment instruction is given to the relay device to increase the priority of the message to be sent,
If the reception deadline time of the message transmission request that is trying to adjust the priority to increase the priority is earlier than the reception deadline time of the other application,
It has been described that the priority adjustment instruction is issued so as to lower the priority of the message transmitted by the other application.
実施の形態1では、メッセージ送受信装置20は、優先度調整メッセージを複数の中継装置30に送信する場合は、すべての中継装置30に同じタイミングで優先度調整メッセージを送信していた。
本実施の形態では、優先度調整部242が、中継装置30の性能や負荷状況から、中継装置30に優先度調整メッセージを送信する順序を調整する動作を説明する。 Embodiment 2. FIG.
In the first embodiment, when transmitting and receiving a priority adjustment message to a plurality of
In the present embodiment, an operation will be described in which the
なお、本実施の形態では、メッセージ送受信装置20において、優先度調整部242は、下りメッセージと上りメッセージに対する処理の処理負荷を中継装置30ごとに判定する。
そして、優先度調整部242は、処理負荷が高い中継装置30から優先度調整メッセージが送信されるように複数の中継装置30における優先度調整メッセージの送信順序を決定する。
本実施の形態では、優先度調整部242は送信順序決定部としても機能する。
また、メッセージ送信部21は、優先度調整部242により決定された送信順序に従って、複数の中継装置30に優先度調整メッセージを送信する。 A configuration example of the message transmission /
In the present embodiment, in the message transmitting / receiving
And the
In the present embodiment, the
Further, the
中継装置負荷レベル以外のカラムは、図4の優先度情報テーブルと同じである。
中継装置負荷レベルは、すでに優先度調整メッセージを送信済みの中継装置の負荷レベルを示しており、値が大きくなるほど負荷レベルが高いことを意味する。
例えば、中継装置負荷レベルが「3」であった場合、負荷レベルが「3」より上の中継装置30に対してすでに優先度調整メッセージを送信済みであることを示す。
「0」(ゼロ)は全ての中継装置30に対して優先度調整メッセージを送信済みであることを示す。
優先度調整テーブルの中継装置負荷レベルの値が「3」の場合は、後述する中継装置負荷テーブル(図10)の負荷レベルが「3」の中継装置30に対して優先度調整メッセージが送信される。
次に、優先度調整テーブルの中継装置負荷レベルの値は「2」にデクリメントされ、中継装置負荷テーブル(図10)の負荷レベルが「2」の中継装置30に対して優先度調整メッセージが送信される。
このように、優先度調整テーブルの中継装置負荷レベルの値はデクリメントされていき、負荷レベルの高い中継装置30から順に優先度調整メッセージが送信される。
なお、以下では、説明の簡明化のため、優先度調整テーブルの中継装置負荷レベルの値は、「1」と「0」のいずれかとする。
このため、後述する中継装置仕様テーブル(図9)の負荷閾値は1つだけである。
優先度調整テーブルの中継装置負荷レベルを、例えば、「0」、「1」、「2」、「3」とする場合は、中継装置仕様テーブル(図9)の負荷閾値は3段階(「0」から「1」への閾値、「1」から「2」への閾値、「2」から「3」への閾値)となる。 The priority adjustment table of FIG. 8 is obtained by adding a relay device load level column to the priority information table of FIG.
The columns other than the relay device load level are the same as those in the priority information table of FIG.
The relay device load level indicates the load level of the relay device that has already transmitted the priority adjustment message, and the larger the value, the higher the load level.
For example, when the relay device load level is “3”, it indicates that the priority adjustment message has already been transmitted to the
“0” (zero) indicates that the priority adjustment message has been transmitted to all the
When the value of the relay device load level in the priority adjustment table is “3”, a priority adjustment message is transmitted to the
Next, the value of the relay device load level in the priority adjustment table is decremented to “2”, and a priority adjustment message is transmitted to the
In this way, the value of the relay device load level in the priority adjustment table is decremented, and priority adjustment messages are transmitted in order from the
In the following, for simplicity of explanation, the value of the relay device load level in the priority adjustment table is either “1” or “0”.
For this reason, the relay apparatus specification table (FIG. 9) described later has only one load threshold.
When the relay device load level of the priority adjustment table is set to, for example, “0”, “1”, “2”, “3”, the load threshold value of the relay device specification table (FIG. 9) has three levels (“0 ”To“ 1 ”,“ 1 ”to“ 2 ”,“ 2 ”to“ 3 ”).
中継装置IDは、中継装置30を一意に識別するIDである。
中継装置型式IDは、その中継装置30の型式を一意に識別するIDである。
保留メッセージ数は、その中継装置30の上りキュー353および下りキュー351に保留されているメッセージ数であり、中継装置30の負荷状況を示す。
保留メッセージ数は、中継装置30が定期的にメッセージ送受信装置20に負荷情報メッセージとして送信する。
負荷レベルは中継装置30の負荷状況をレベル分けしたものである。
負荷レベルの値が高いほど、中継装置30の負荷が高いことを示す。
負荷レベル履歴は、負荷レベルが更新される際に、更新前の負荷レベルが記述される。 The load
The relay device ID is an ID that uniquely identifies the
The relay device type ID is an ID that uniquely identifies the type of the
The number of held messages is the number of messages held in the
The number of pending messages is periodically transmitted from the
The load level is obtained by dividing the load status of the
It shows that the load of the
The load level history describes the load level before the update when the load level is updated.
中継装置仕様テーブルは、スマートメータ自動検針システムで使用されている全ての中継装置30について、その中継装置の型式ごとに仕様の情報を保持する。
中継装置型式IDは、中継装置30の型式を一意に識別するIDである。
中継装置型式は、中継装置30に付与されている型式番号である。
負荷閾値は、それぞれの中継装置型式ごとに設定された、保留メッセージ数の閾値であり、ある時点での保留メッセージ数がこの閾値を超えた場合、その中継装置30の負荷が高いと判断される。
処理スループットは、中継装置型式ごとに設定された、中継装置30のメッセージ処理能力である。 The load
The relay device specification table holds specification information for each relay device type for all
The relay device type ID is an ID that uniquely identifies the type of the
The relay device type is a model number assigned to the
The load threshold is a threshold for the number of held messages set for each relay device type. When the number of held messages at a certain point exceeds this threshold, it is determined that the load on the
The processing throughput is the message processing capability of the
このため、優先度情報テーブルの中継装置負荷レベルは、前述したように、「1」および「0」のどちらかの値をとり、優先度情報テーブルに送信依頼に対するレコードが新規に作成される場合は、「0に」初期化されている。 In the present embodiment, as an example, when the
For this reason, as described above, the relay device load level of the priority information table takes one of the values “1” and “0”, and a record for the transmission request is newly created in the priority information table. Is initialized to “0”.
優先度調整部242は、まず、中継装置負荷テーブル(図10)の負荷レベルおよび、負荷レベル履歴の情報を、保留メッセージ数の値にしたがって更新する(S31)。
次に、優先度調整部242は、優先度情報テーブルの最初の送信依頼IDのレコードを読み込む(S32)。
このとき、受信期限時刻のカラムにデータがない場合(S33でNO)は、優先度調整部242は、優先度調整が不要であると判断して、次の送信依頼IDのレコードを読み込む(S32)。
受信期限時刻のカラムにデータがあり(S33でYES)、かつ優先度調整指標が「0」だった場合(S34で「0」)は、優先度調整部242は、優先度調整要否チェック処理を実行し(S35)、優先度調整をするかどうかを判断する。
優先度調整要否チェック処理(S35)は、図14のS14と同様であり、例えば、図15~図17に示す処理が行われる。
優先度調整が必要と判断した場合(S36でYES)には、優先度調整部242は、優先度情報テーブルの当該送信依頼IDの優先度調整指標のカラムに「+1」と書き込み、さらに中継装置負荷レベルのカラムに「1」と書き込む(S37)。
次に、優先度調整部242は、優先度調整メッセージ処理(1)を実行して、負荷の高い中継装置30に対して優先度調整メッセージを送信する(S38)。
一方、受信期限時刻のカラムにデータがあり(S33でYES)、かつ優先度調整指標がすでに「+1」となっていた場合(S34で「+1」)は、優先度調整部242は、中継装置負荷レベルを参照する(S40)。
中継装置負荷レベルが「0」の場合(S40で「0」)は、すでに全ての中継装置30に優先度調整メッセージを送付したものと判断して、優先度調整部242は、優先度情報テーブルの次の送信依頼IDのレコードを読み込む。
中継装置負荷レベルが「1」の場合は、優先度調整部242は、中継装置負荷レベルを「0」に更新した上(S41)で、優先度調整メッセージ処理(2)を実行して、まだ優先度調整メッセージを送信していない中継装置30に対して優先度調整メッセージを送信する(S42)。
優先度調整部242は、以上の処理を、優先度情報テーブルの全ての送信依頼IDに対して実行する(S39)。 The
The
Next, the
At this time, if there is no data in the column of the reception deadline time (NO in S33), the
If there is data in the reception deadline time column (YES in S33) and the priority adjustment index is “0” (“0” in S34), the
The priority adjustment necessity check process (S35) is the same as S14 in FIG. 14, and for example, the processes shown in FIGS. 15 to 17 are performed.
If it is determined that priority adjustment is necessary (YES in S36), the
Next, the
On the other hand, if there is data in the column of the reception deadline time (YES in S33) and the priority adjustment index is already “+1” (“+1” in S34), the
When the relay device load level is “0” (“0” in S40), it is determined that the priority adjustment message has already been sent to all the
When the relay device load level is “1”, the
The
次に、優先度調整部242は、読み込んだレコードの中の負荷レベルカラムの値を中継装置負荷テーブルの該当レコードの負荷レベル履歴カラムに書き込む(S3112)。
次に、優先度調整部242は、読み込んだレコードの中の中継装置型式IDカラムの値をキーにして、中継装置仕様テーブル(図9)から該当する中継装置型式の負荷閾値を読み出す(S3113)。
次に、優先度調整部242は、中継装置負荷テーブルの保留メッセージ数と負荷閾値を比較し(S3114)、保留メッセージ数が負荷閾値よりも大きい場合(S3115でYES)は、中継装置負荷テーブルの該当レコードの負荷レベルカラムに「1」を書き込む(S3116)。
一方、保留メッセージ数が負荷閾値よりも大きくない場合(S3115でNO)は、中継装置負荷テーブルの該当レコードの負荷レベルカラムに「0」(ゼロ)を書き込む(S3117)。
優先度調整部242は、以上の処理を、中継装置負荷テーブルの全ての中継装置IDに対して実行する(S3118)。 The
Next, the
Next, the
Next, the
On the other hand, if the number of pending messages is not greater than the load threshold (NO in S3115), “0” (zero) is written in the load level column of the corresponding record in the relay device load table (S3117).
The
次に、優先度調整部242は、読み込んだレコードの中の負荷レベルカラムの値を中継装置負荷テーブルの該当レコードの負荷レベル履歴カラムに書き込む(S3122)。
次に、優先度調整部242は、読み込んだレコードの中の中継装置型式IDカラムの値をキーにして、中継装置仕様テーブルから該当する中継装置型式の処理スループットを読み出す(S3123)。
次に、優先度調整部242は、中継装置負荷テーブルの保留メッセージ数と処理スループットからメッセージ処理所要時間を計算する(S3124)。
計算したメッセージ処理所要時間が、例えば、あらかじめ決められたメッセージ処理所要時間の閾値よりも大きい場合は、中継装置負荷テーブルの該当レコードの負荷レベルカラムに「1」、小さい場合は「0」(ゼロ)を書き込む(S3125、S3126)。
ただし、あらかじめ決められたメッセージ処理所要時間を使わずに、全ての中継装置30のうちメッセージ処理所要時間の大きい半分の中継装置30に対して負荷レベルカラムを「1」に、残りの中継装置30の負荷レベルカラムを「0」にするなど、そのほかの判定方法を使用してもかまわない。 The
Next, the
Next, the
Next, the
For example, when the calculated message processing time is larger than a predetermined message processing time threshold, “1” is entered in the load level column of the corresponding record in the relay device load table, and “0” (zero) is smaller. ) Is written (S3125, S3126).
However, without using the predetermined message processing time, the load level column is set to “1” for the
優先度調整メッセージ処理(1)では、優先度調整部242は、まず中継装置負荷テーブル(図10)の最初の中継装置IDのレコードを読み込む(S3801)。
負荷レベルカラムが「0」の場合(S3802で「0」)は、優先度調整部242は、該当中継装置30に優先度調整メッセージを送信しないと判断し、次のレコードを読み込む。
負荷レベルカラムが「1」の場合(S3802で「1」)は、優先度調整部242は、優先度調整メッセージを作成し(S3803)、作成した優先度調整メッセージをメッセージ送信部21へ転送する(S3804)。
優先度調整部242は、以上の処理を中継装置負荷テーブルの全ての中継装置IDに対して実行する(S3805)。 The priority adjustment message process (1) is executed in the process of adjusting the order in which the
In the priority adjustment message process (1), the
When the load level column is “0” (“0” in S3802), the
When the load level column is “1” (“1” in S3802), the
The
優先度調整メッセージ処理(2)は、優先度調整部242が中継装置30に優先度調整メッセージを送信する順序を調整する処理の中で実行される。
優先度調整メッセージ処理(2)では、優先度調整部242は、まず中継装置負荷テーブル(図10)の最初の中継装置IDのレコードを読み込む(S4201)。
負荷レベル履歴カラムが「1」の場合(S4202で「1」)は、優先度調整部242は、すでに該当中継装置30に優先度調整メッセージを送信済みであると判断し、次のレコードを読み込む。
負荷レベル履歴カラムが「0」の場合(S4202で「0」)は、優先度調整メッセージを作成し(S4203)、作成した優先度調整メッセージをメッセージ送信部21へ転送する(S4204)。
優先度調整部242は、以上の処理を中継装置負荷テーブルの全ての中継装置IDに対して実行する(S4205)。 FIG. 23 is a flowchart of the priority adjustment message process (2).
The priority adjustment message process (2) is executed in the process of adjusting the order in which the
In the priority adjustment message process (2), the
When the load level history column is “1” (“1” in S4202), the
When the load level history column is “0” (“0” in S4202), a priority adjustment message is created (S4203), and the created priority adjustment message is transferred to the message transmission unit 21 (S4204).
The
タイミング信号を受け取った負荷情報生成部33は、その時点での上りキュー353と下りキュー351に保留されているメッセージ数を積算し、積算結果のデータを含む負荷情報メッセージを作成して、作成した負荷情報メッセージを上りメッセージ受信部32へ転送する。
上りメッセージ受信部32は、負荷情報生成部33から受け取った負荷情報メッセージを、ヘッダ部に設定された優先度にしたがって、上りキューの最後尾に挿入する。 The
The load
The uplink
中継装置は、更に、
メッセージ送受信装置に対して中継装置でのメッセージ処理の負荷情報として保留メッセージ数を定期的に送信する負荷情報送信部を具備し、
メッセージ送受信装置は、更に、
複数の中継装置から送信された負荷情報を格納する中継装置負荷情報格納部を具備することを説明した。 As described above, in the present embodiment,
The relay device further
A load information transmitting unit that periodically transmits the number of pending messages as message processing load information in the relay device to the message transmitting and receiving device;
The message transmission / reception device further includes:
It has been described that a relay device load information storage unit that stores load information transmitted from a plurality of relay devices is provided.
メッセージ送受信装置の優先制御処理部の優先度調整部は、
中継装置に優先度調整の指示を行うときに、保留メッセージ数が多い中継装置から順に指示を行うことを説明した。 In the present embodiment,
The priority adjustment unit of the priority control processing unit of the message transmitting / receiving device is:
It has been described that when a priority adjustment instruction is given to a relay device, the instructions are given in order from the relay device with the largest number of pending messages.
メッセージ送受信装置の中継装置負荷情報格納部は、更に、
中継装置の型式ごとにメッセージ処理能力の情報として処理スループットを保持し、
メッセージ送受信装置の優先制御処理部の優先度調整部は、
それぞれの中継装置の保留メッセージ数と処理スループットから保留メッセージを全て処理するためのメッセージ処理所要時間を求め、
中継装置に優先度調整の指示を行うときに、メッセージ処理所要時間の大きい中継装置から順に指示を行うことを説明した。 In this embodiment,
The relay device load information storage unit of the message transmitting / receiving device further includes:
Holds processing throughput as message processing capability information for each relay device type,
The priority adjustment unit of the priority control processing unit of the message transmitting / receiving device is:
Obtain the message processing time required to process all pending messages from the pending message count and processing throughput of each relay device,
It has been described that when a priority adjustment instruction is given to a relay device, the instructions are given in order from the relay device having the longest message processing time.
メッセージ送受信装置20及び中継装置30はコンピュータであり、メッセージ送受信装置20及び中継装置30の各要素をプログラムで実現することができる。
メッセージ送受信装置20及び中継装置30のハードウェア構成としては、バスに、演算装置901、外部記憶装置902、主記憶装置903、通信装置904、入出力装置905が接続されている。 Finally, a hardware configuration example of the message transmission /
The message transmission /
As a hardware configuration of the message transmission /
外部記憶装置902は、例えばROM(Read Only Memory)やフラッシュメモリ、ハードディスク装置である。
主記憶装置903は、RAM(Random Access Memory)である。
「負荷情報格納部23」、「優先度調整データ記憶部29」、「優先度変更データ記憶部36」、「下りキュー241」、「上りキュー244」、「下りキュー351」、「上りキュー353」は、例えば、外部記憶装置902又は主記憶装置903で実現される。
通信装置904は、「~送信部」「~受信部」、「~受付部」及び「~配信部」の物理層に対応する。
入出力装置905は、例えばマウス、キーボード、ディスプレイ装置等である。 The
The
The
"Load
The
The input /
プログラムは、図1に示す「~部(但し、「負荷情報格納部23」、「優先度調整データ記憶部29」、「優先度変更データ記憶部36」を除く、以下同様)」として説明している機能を実現するプログラムである。
更に、外部記憶装置902にはオペレーティングシステム(OS)も記憶されており、OSの少なくとも一部が主記憶装置903にロードされ、演算装置901はOSを実行しながら、図1に示す「~部」の機能を実現するプログラムを実行する。
また、実施の形態1及び2の説明において、「~の判断」、「~の判定」、「~の抽出」、「~の選択」、「~の設定」、「~の指定」、「~の更新」、「~の作成」、「~の生成」、「~の決定」、「~の入力」、「~の出力」。「~の受信」、「~の送信」等として説明している処理の結果を示す情報やデータや信号値や変数値が主記憶装置903にファイルとして記憶されている。
また、暗号鍵・復号鍵や乱数値やパラメータが、主記憶装置903にファイルとして記憶されてもよい。 The program is normally stored in the
The program will be described as “˜part (except for“ load
Further, an operating system (OS) is also stored in the
In the description of the first and second embodiments, “determining”, “determining”, “extracting”, “selecting”, “setting of”, “specifying”, “ Update "," Create "," Generate "," Determine "," Input "," Output ". Information, data, signal values, and variable values indicating the results of the processes described as “reception of”, “transmission of”, and the like are stored in the
Further, the encryption key / decryption key, random number value, and parameter may be stored in the
また、実施の形態1及び2に示したアプリケーションサーバ装置10も、図28のハードウェア構成をしていてもよいし、他のハードウェア構成であってもよい。 The configuration in FIG. 28 is merely an example of the hardware configuration of the message transmission /
Also, the
Claims (15)
- 端末装置への下りメッセージを受信し、受信した下りメッセージを記憶し、記憶している下りメッセージの中から優先して端末装置に送信する優先下りメッセージを下りメッセージの優先度に基づいて選択し、選択した優先下りメッセージを優先して端末装置に送信する中継装置に、優先度が設定されている下りメッセージを送信するメッセージ送信部と、
優先度の調整の対象となる下りメッセージを抽出するための抽出条件を指定する抽出条件指定部と、
前記抽出条件指定部により指定された抽出条件に合致する下りメッセージを抽出し、抽出した下りメッセージに対しては当該下りメッセージに設定されている優先度とは異なる優先度を用いて優先下りメッセージを選択するよう前記中継装置に指示する指示コマンドを生成する指示コマンド生成部と、
前記指示コマンド生成部により生成された指示コマンドを前記中継装置に送信する指示コマンド送信部とを有することを特徴とする通信装置。 Receiving a downlink message to the terminal device, storing the received downlink message, selecting a priority downlink message to be transmitted to the terminal device preferentially from the stored downlink messages based on the priority of the downlink message; A message transmission unit that transmits a downlink message with a priority set to a relay device that prioritizes the selected priority downlink message and transmits the message to the terminal device;
An extraction condition designating part for designating an extraction condition for extracting a downstream message whose priority is to be adjusted;
A downlink message that matches the extraction condition specified by the extraction condition specifying unit is extracted, and a priority downlink message is assigned to the extracted downlink message using a priority different from the priority set for the downlink message. An instruction command generator for generating an instruction command for instructing the relay device to select;
A communication device comprising: an instruction command transmission unit that transmits the instruction command generated by the instruction command generation unit to the relay device. - 前記通信装置は、更に、
所定の上位装置から、下りメッセージの送信依頼であるメッセージ送信依頼を受け付ける送信依頼受付部を有し、
前記メッセージ送信部は、
前記送信依頼受付部によりメッセージ送信依頼が受け付けられる度に、メッセージ送信依頼のID(Identifier)である送信依頼IDと、メッセージ送信依頼で指定されている優先度とが設定されている下りメッセージを前記中継装置に送信し、
前記送信依頼受付部により受け付けられたメッセージ送信依頼が複数の端末装置への複数の下りメッセージの送信を依頼する複合メッセージ送信依頼である場合に、前記複合メッセージ送信依頼の送信依頼IDと前記複合メッセージ送信依頼で指定されている優先度とがそれぞれに共通に設定されている複数の下りメッセージを前記中継装置に送信し、
前記抽出条件指定部は、
複合メッセージ送信依頼の送信依頼IDが設定されている下りメッセージを抽出する旨の抽出条件を指定することを特徴とする請求項1に記載の通信装置。 The communication device further includes:
A transmission request receiving unit that receives a message transmission request that is a transmission request for a downlink message from a predetermined host device;
The message sending unit
Each time a message transmission request is received by the transmission request reception unit, a downstream message in which a transmission request ID that is an ID (Identifier) of the message transmission request and a priority specified in the message transmission request is set. To the relay device,
When the message transmission request received by the transmission request reception unit is a composite message transmission request for requesting transmission of a plurality of downlink messages to a plurality of terminal devices, the transmission request ID of the composite message transmission request and the composite message A plurality of downlink messages, each of which is commonly set with the priority specified in the transmission request, is transmitted to the relay device;
The extraction condition designating unit
2. The communication apparatus according to claim 1, wherein an extraction condition for extracting a downlink message in which a transmission request ID of a composite message transmission request is set is designated. - 前記メッセージ送信部は、
端末装置からの応答を要求する下りメッセージを、応答要求下りメッセージとして前記中継装置に送信し、
前記中継装置は、
端末装置から送信された、優先度が設定されている上りメッセージを受信し、
応答要求下りメッセージをいずれかの端末装置に送信した場合に、応答要求下りメッセージの送信先の端末装置から応答要求下りメッセージに対する応答として送信された、応答要求下りメッセージと同じ優先度が設定されている上りメッセージを受信し、
受信した上りメッセージを記憶し、記憶している上りメッセージの中から、優先して前記通信装置に送信する優先上りメッセージを、上りメッセージの優先度に基づいて選択し、選択した優先上りメッセージを優先して前記通信装置に送信し、
前記抽出条件指定部は、
特定の属性を有する応答要求下りメッセージを抽出する旨の抽出条件を指定し、
前記指示コマンド生成部は、
前記抽出条件指定部により抽出条件として指定された前記特定の属性を有する応答要求下りメッセージを抽出し、抽出した応答要求下りメッセージに対しては当該応答要求下りメッセージに設定されている優先度とは異なる優先度を用いて優先下りメッセージを選択するよう指示し、更に、前記特定の属性を有する応答要求下りメッセージの上りメッセージを抽出し、抽出した上りメッセージに対しては当該上りメッセージに設定されている優先度とは異なる優先度を用いて優先上りメッセージを選択するよう指示する指示コマンドを生成することを特徴とする請求項1又は2に記載の通信装置。 The message sending unit
A downlink message requesting a response from the terminal device is transmitted to the relay device as a response request downlink message,
The relay device is
Receives an upstream message with priority set sent from the terminal device,
When a response request downlink message is transmitted to one of the terminal devices, the same priority is set as the response request downlink message transmitted as a response to the response request downlink message from the terminal device to which the response request downlink message is transmitted. Receive upstream messages,
The received uplink message is stored, and from among the stored uplink messages, a priority uplink message to be preferentially transmitted to the communication device is selected based on the priority of the uplink message, and the selected priority uplink message is prioritized. And transmit to the communication device,
The extraction condition designating unit
Specify extraction conditions to extract response request downstream messages with specific attributes,
The instruction command generation unit
The response request downlink message having the specific attribute specified as the extraction condition by the extraction condition specifying unit is extracted, and for the extracted response request downlink message, the priority set in the response request downlink message is Instructs to select a priority downlink message using different priorities, further extracts an uplink message of the response request downlink message having the specific attribute, and is set to the uplink message for the extracted uplink message 3. The communication apparatus according to claim 1, wherein an instruction command for instructing to select a priority uplink message is generated using a priority different from a priority that is present. - 前記通信装置は、更に、
所定の上位装置から、下りメッセージの送信依頼であるメッセージ送信依頼を受け付ける送信依頼受付部を有し、
前記メッセージ送信部は、
前記送信依頼受付部によりメッセージ送信依頼が受け付けられる度に、メッセージ送信依頼のIDである送信依頼IDと、メッセージ送信依頼で指定されている優先度とが設定されている下りメッセージを前記中継装置に送信し、
前記送信依頼受付部により受け付けられたメッセージ送信依頼が複数の端末装置への複数の応答要求下りメッセージの送信を依頼する複合応答要求メッセージ送信依頼である場合に、前記複合応答要求メッセージ送信依頼の送信依頼IDと前記複合応答要求メッセージ送信依頼で指定されている優先度とがそれぞれに共通に設定されている複数の応答要求下りメッセージを前記中継装置に送信し、
前記抽出条件指定部は、
複合応答要求メッセージ送信依頼の送信依頼IDが設定されている応答要求下りメッセージを抽出する旨の抽出条件を指定することを特徴とする請求項3に記載の通信装置。 The communication device further includes:
A transmission request receiving unit that receives a message transmission request that is a transmission request for a downlink message from a predetermined host device;
The message sending unit
Each time a message transmission request is received by the transmission request receiving unit, a downlink message in which a transmission request ID that is an ID of the message transmission request and a priority specified in the message transmission request is set is sent to the relay device. Send
Transmission of the composite response request message transmission request when the message transmission request received by the transmission request reception unit is a composite response request message transmission request for requesting transmission of a plurality of response request downlink messages to a plurality of terminal devices. A plurality of response request downlink messages in which the request ID and the priority specified in the composite response request message transmission request are respectively set in common are transmitted to the relay device;
The extraction condition designating unit
4. The communication apparatus according to claim 3, wherein an extraction condition for extracting a response request downstream message in which a transmission request ID of a composite response request message transmission request is set is designated. - 前記通信装置は、更に、
前記中継装置から、上りメッセージを受信するメッセージ受信部を有し、
前記抽出条件指定部は、
複合応答要求メッセージ送信依頼ごとに、対応する応答要求下りメッセージの前記中継装置への送信量と、対応する上りメッセージの前記中継装置からの受信量とを比較し、
応答要求下りメッセージの送信量と上りメッセージの受信量との差が所定の閾値を超えている複合応答要求メッセージ送信依頼を選択し、
選択した複合応答要求メッセージ送信依頼の送信依頼IDが設定されている応答要求下りメッセージを抽出する旨の抽出条件を指定することを特徴とする請求項4に記載の通信装置。 The communication device further includes:
A message receiving unit for receiving an upstream message from the relay device;
The extraction condition designating unit
For each composite response request message transmission request, compare the transmission amount of the corresponding response request downlink message to the relay device and the reception amount of the corresponding uplink message from the relay device,
Select a composite response request message transmission request in which the difference between the transmission amount of the response request downlink message and the reception amount of the uplink message exceeds a predetermined threshold,
5. The communication apparatus according to claim 4, wherein an extraction condition for extracting a response request downlink message in which a transmission request ID of a selected composite response request message transmission request is set is designated. - 前記送信依頼受付部は、
上りメッセージの受信完了期限が指定されている複合応答要求メッセージ送信依頼を受け付け、
前記抽出条件指定部は、
複合応答要求メッセージ送信依頼ごとに、対応する上りメッセージの受信速度を計測し、計測した受信速度で上りメッセージの受信が続けられた場合に、全ての上りメッセージの受信が受信完了期限までに完了するか否かを判断し、
全ての上りメッセージの受信が受信完了期限までに完了しない複合応答要求メッセージ送信依頼を選択し、
選択した複合応答要求メッセージ送信依頼の送信依頼IDが設定されている応答要求下りメッセージを抽出する旨の抽出条件を指定することを特徴とする請求項4又は5に記載の通信装置。 The transmission request reception unit
Accepts a request to send a composite response request message that specifies the deadline for receiving upstream messages,
The extraction condition designating unit
For each composite response request message transmission request, the reception speed of the corresponding upstream message is measured, and when the reception of the upstream message is continued at the measured reception speed, the reception of all the upstream messages is completed by the reception completion deadline. Whether or not
Select a composite response request message transmission request that does not complete reception of all upstream messages by the reception completion deadline,
The communication apparatus according to claim 4 or 5, wherein an extraction condition for extracting a response request downlink message in which a transmission request ID of a selected composite response request message transmission request is set is designated. - 前記送信依頼受付部は、
上りメッセージの受信完了期限が指定されている複合応答要求メッセージ送信依頼を受け付け、
前記抽出条件指定部は、
複合応答要求メッセージ送信依頼ごとに、受信完了期限までの残り時間を算出し、
算出した残り時間が所定レベル以下の複合応答要求メッセージ送信依頼を選択し、
選択した複合応答要求メッセージ送信依頼の送信依頼IDが設定されている応答要求下りメッセージを抽出する旨の抽出条件を指定することを特徴とする請求項4~6のいずれかに記載の通信装置。 The transmission request reception unit
Accepts a request to send a composite response request message that specifies the deadline for receiving upstream messages,
The extraction condition designating unit
For each composite response request message transmission request, calculate the remaining time until the reception completion deadline,
Select the composite response request message send request whose calculated remaining time is below the specified level,
7. The communication apparatus according to claim 4, wherein an extraction condition for extracting a response request downstream message in which a transmission request ID of the selected composite response request message transmission request is set is designated. - 前記通信装置は、
それぞれが、端末装置への下りメッセージを受信し、受信した下りメッセージを記憶し、記憶している下りメッセージの中から優先して端末装置に送信する優先下りメッセージを下りメッセージの優先度に基づいて選択し、選択した優先下りメッセージを優先して端末装置に送信する複数の中継装置と接続されており、
前記メッセージ送信部は、
前記複数の中継装置に、下りメッセージを送信し、
前記指示コマンド送信部は、
前記指示コマンド生成部により生成された指示コマンドを前記複数の中継装置に送信することを特徴とする請求項1~7のいずれかに記載の通信装置。 The communication device
Each receives a downlink message to the terminal device, stores the received downlink message, and sends a priority downlink message to the terminal device preferentially from the stored downlink messages based on the priority of the downlink message Selected and connected to a plurality of relay devices that transmit the selected priority downlink message with priority to the terminal device,
The message sending unit
A downlink message is transmitted to the plurality of relay devices;
The instruction command transmission unit
8. The communication apparatus according to claim 1, wherein the instruction command generated by the instruction command generation unit is transmitted to the plurality of relay apparatuses. - 前記通信装置は、
それぞれが、下りメッセージを端末装置に送信するとともに、端末装置から送信された上りメッセージを受信する複数の中継装置と接続されており、
前記通信装置は、更に、
下りメッセージと上りメッセージに対する処理の処理負荷を中継装置ごとに判定し、
処理負荷が高い中継装置から指示コマンドが送信されるように前記複数の中継装置における指示コマンドの送信順序を決定する送信順序決定部を有し、
前記指示コマンド送信部は、
前記送信順序決定部により決定された送信順序に従って、前記複数の中継装置に指示コマンドを送信することを特徴とする請求項8に記載の通信装置。 The communication device
Each is connected to a plurality of relay devices that transmit a downlink message to the terminal device and receive an uplink message transmitted from the terminal device,
The communication device further includes:
Determine the processing load for downstream messages and upstream messages for each relay device,
A transmission order determining unit that determines the transmission order of the instruction commands in the plurality of relay apparatuses so that the instruction commands are transmitted from the relay apparatus having a high processing load;
The instruction command transmission unit
The communication apparatus according to claim 8, wherein an instruction command is transmitted to the plurality of relay apparatuses according to a transmission order determined by the transmission order determination unit. - 前記通信装置は、
それぞれが、端末装置から受信した上りメッセージを記憶した後に前記通信装置に上りメッセージを送信する複数の中継装置と接続されており、
前記送信順序決定部は、
中継装置ごとに、中継装置で記憶されている下りメッセージと上りメッセージの量を監視し、
記憶されている下りメッセージと上りメッセージの量が多いほど、処理負荷が高いと判定することを特徴とする請求項9に記載の通信装置。 The communication device
Each is connected to a plurality of relay devices that transmit an uplink message to the communication device after storing the uplink message received from the terminal device,
The transmission order determination unit
For each relay device, monitor the amount of downstream messages and upstream messages stored in the relay device,
10. The communication apparatus according to claim 9, wherein it is determined that the processing load is higher as the amount of stored downstream messages and upstream messages is larger. - 前記通信装置は、
それぞれが、端末装置から受信した上りメッセージを記憶した後に前記通信装置に上りメッセージを送信する複数の中継装置と接続されており、
前記送信順序決定部は、
中継装置ごとに、中継装置で記憶されている下りメッセージと上りメッセージの量と、中継装置の処理スループットとを用いて、中継装置で記憶されている下りメッセージと上りメッセージの送信が完了するまでの所要時間を算出し、
算出した所要時間が長いほど、処理負荷が高いと判定することを特徴とする請求項9又は10に記載の通信装置。 The communication device
Each is connected to a plurality of relay devices that transmit an uplink message to the communication device after storing the uplink message received from the terminal device,
The transmission order determination unit
For each relay device, using the amount of downlink message and uplink message stored in the relay device and the processing throughput of the relay device, the transmission of the downlink message and uplink message stored in the relay device is completed. Calculate the time required,
The communication apparatus according to claim 9 or 10, wherein the longer the calculated required time is, the higher the processing load is determined. - 前記指示コマンド生成部は、
いずれかの送信依頼IDを対象とする指示コマンドが前記指示コマンド送信部により前記中継装置に送信された後に、別の送信依頼IDを対象とする指示コマンドを生成する場合に、
前記中継装置に送信済みの指示コマンドを無効にする無効コマンドを生成し、生成した無効コマンドを前記指示コマンド送信部から前記中継装置に送信させ、前記別の送信依頼IDを対象とする新たな指示コマンドを生成し、生成した新たな指示コマンドを前記指示コマンド送信部から前記中継装置に送信させることを特徴とする請求項2に記載の通信装置。 The instruction command generation unit
When an instruction command targeting any one of the transmission request IDs is generated by the instruction command transmitting unit after being transmitted to the relay device by the instruction command transmitting unit,
Generate an invalid command that invalidates the instruction command that has been transmitted to the relay device, cause the generated invalid command to be transmitted from the instruction command transmission unit to the relay device, and generate a new instruction for the other transmission request ID The communication apparatus according to claim 2, wherein a command is generated, and the generated new instruction command is transmitted from the instruction command transmission unit to the relay apparatus. - 複数の端末装置と通信装置とに接続されている中継装置であって、
送信依頼IDと優先度とが設定されている前記複数の端末装置への下りメッセージを、前記通信装置から受信する下りメッセージ受信部と、
前記下りメッセージ受信部により受信された下りメッセージを記憶する下りメッセージ記憶部と、
前記下りメッセージ記憶部に記憶されている下りメッセージの中から、優先して端末装置に送信する優先下りメッセージを、下りメッセージの優先度に基づいて選択する優先下りメッセージ選択部と、
前記優先下りメッセージ選択部により選択された優先下りメッセージを優先して、前記下りメッセージ記憶部に記憶されている下りメッセージを、送信先の端末装置に送信する下りメッセージ送信部と、
優先度の調整の対象となる送信依頼IDが示される指示コマンドを前記通信装置から受信する指示コマンド受信部とを有し、
前記優先下りメッセージ選択部は、
前記指示コマンド受信部により指示コマンドが受信された場合に、前記下りメッセージ記憶部に記憶されている下りメッセージの中から指示コマンドに示される送信依頼IDが設定されている下りメッセージを抽出し、抽出した下りメッセージに対して当該下りメッセージに設定されている優先度とは異なる優先度を用いて優先下りメッセージを選択することを特徴とする中継装置。 A relay device connected to a plurality of terminal devices and communication devices,
A downlink message receiving unit that receives, from the communication device, downlink messages to the plurality of terminal devices in which transmission request IDs and priorities are set;
A downlink message storage unit for storing a downlink message received by the downlink message reception unit;
A priority downlink message selection unit that selects a priority downlink message to be transmitted to the terminal device preferentially from the downlink messages stored in the downlink message storage unit based on the priority of the downlink message;
A downlink message transmission unit that prioritizes the priority downlink message selected by the priority downlink message selection unit and transmits the downlink message stored in the downlink message storage unit to a destination terminal device;
An instruction command receiving unit that receives from the communication device an instruction command indicating a transmission request ID that is a target of priority adjustment;
The priority downlink message selection unit
When an instruction command is received by the instruction command receiving unit, a downlink message in which a transmission request ID indicated in the instruction command is set is extracted from the downlink messages stored in the downlink message storage unit and extracted. A relay device, wherein a priority downlink message is selected for a downlink message using a priority different from a priority set for the downlink message. - 前記下りメッセージ受信部は、
送信依頼IDと優先度とが設定されている、端末装置からの応答を要求する応答要求下りメッセージを、前記通信装置から受信する場合があり、
前記下りメッセージ送信部は、
前記下りメッセージ受信部により応答要求下りメッセージが受信された場合に、応答要求下りメッセージを、送信先の端末装置に送信し、
前記中継装置は、更に、
端末装置から送信された、優先度が設定されている上りメッセージを受信し、
前記下りメッセージ送信部から応答要求下りメッセージが送信された場合に、応答要求下りメッセージの送信先の端末装置から応答要求下りメッセージに対する応答として送信された、応答要求下りメッセージと同じ送信依頼IDと優先度とが設定されている上りメッセージを受信する上りメッセージ受信部と、
前記上りメッセージ受信部により受信された上りメッセージを記憶する上りメッセージ記憶部と、
前記上りメッセージ記憶部に記憶されている上りメッセージの中から、優先して前記通信装置に送信する優先上りメッセージを、上りメッセージの優先度に基づいて選択する優先上りメッセージ選択部と、
前記優先上りメッセージ選択部により選択された優先上りメッセージを優先して、前記上りメッセージ記憶部に記憶されている上りメッセージを、前記通信装置に送信する上りメッセージ送信部とを有し、
前記指示コマンド受信部は、
応答要求下りメッセージに用いられる送信依頼IDが示される指示コマンドを、前記通信装置から受信し、
前記優先上りメッセージ選択部は、
前記指示コマンド受信部により指示コマンドが受信された場合に、前記上りメッセージ記憶部に記憶されている上りメッセージの中から指示コマンドに示される送信依頼IDが設定されている上りメッセージ抽出し、抽出した上りメッセージに対して当該上りメッセージに設定されている優先度とは異なる優先度を用いて優先上りメッセージを選択することを特徴とする請求項13に記載の中継装置。 The downlink message receiver is
A response request downlink message for requesting a response from a terminal device in which a transmission request ID and priority are set may be received from the communication device,
The downlink message transmitter is
When a response request downlink message is received by the downlink message receiving unit, a response request downlink message is transmitted to the terminal device of the transmission destination,
The relay device further includes:
Receives an upstream message with priority set sent from the terminal device,
When a response request downlink message is transmitted from the downlink message transmission unit, the same transmission request ID and priority as the response request downlink message transmitted as a response to the response request downlink message from the terminal device to which the response request downlink message is transmitted An upstream message receiver for receiving an upstream message for which the degree is set;
An upstream message storage for storing upstream messages received by the upstream message receiver;
A priority uplink message selection unit that selects a priority uplink message to be preferentially transmitted to the communication device from uplink messages stored in the uplink message storage unit based on the priority of the uplink message;
An uplink message transmission unit that prioritizes the priority uplink message selected by the priority uplink message selection unit and transmits the uplink message stored in the uplink message storage unit to the communication device;
The instruction command receiving unit
An instruction command indicating a transmission request ID used in a response request downlink message is received from the communication device,
The priority uplink message selection unit includes:
When the instruction command is received by the instruction command receiving unit, the uplink message in which the transmission request ID indicated by the instruction command is set is extracted from the uplink messages stored in the uplink message storage unit and extracted. The relay apparatus according to claim 13, wherein a priority uplink message is selected for an uplink message using a priority different from a priority set for the uplink message. - 前記優先下りメッセージ選択部は、
前記指示コマンド受信部により指示コマンドが受信された後に前記下りメッセージ受信部により受信され、前記下りメッセージ記憶部に記憶された下りメッセージの中から、前記指示コマンドに示される送信依頼IDが設定されている下りメッセージを抽出し、抽出した下りメッセージに対して当該下りメッセージに設定されている優先度とは異なる優先度を用いて優先下りメッセージを選択し、
前記優先上りメッセージ選択部は、
前記指示コマンド受信部により指示コマンドが受信された後に前記上りメッセージ受信部により受信され、前記上りメッセージ記憶部に記憶された上りメッセージの中から、前記指示コマンドに示される送信依頼IDが設定されている上りメッセージを抽出し、抽出した上りメッセージに対して当該上りメッセージに設定されている優先度とは異なる優先度を用いて優先上りメッセージを選択することを特徴とする請求項14に記載の中継装置。 The priority downlink message selection unit
After the instruction command is received by the instruction command receiving unit, the transmission request ID indicated by the instruction command is set from the downlink messages received by the downlink message receiving unit and stored in the downlink message storage unit. A downlink message is selected, a priority downlink message is selected using a priority different from the priority set for the downlink message for the extracted downlink message,
The priority uplink message selection unit includes:
After the instruction command is received by the instruction command receiver, the transmission request ID indicated by the instruction command is set from the uplink messages received by the uplink message receiver and stored in the uplink message storage. 15. The relay according to claim 14, wherein an uplink message is extracted, and a priority uplink message is selected using a priority different from the priority set for the uplink message for the extracted uplink message. apparatus.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201280074857.7A CN104487954A (en) | 2012-07-25 | 2012-07-25 | Communication device and relay device |
PCT/JP2012/068770 WO2014016916A1 (en) | 2012-07-25 | 2012-07-25 | Communication device and relay device |
JP2012557328A JP5436701B1 (en) | 2012-07-25 | 2012-07-25 | Communication device and relay device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2012/068770 WO2014016916A1 (en) | 2012-07-25 | 2012-07-25 | Communication device and relay device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014016916A1 true WO2014016916A1 (en) | 2014-01-30 |
Family
ID=49996752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2012/068770 WO2014016916A1 (en) | 2012-07-25 | 2012-07-25 | Communication device and relay device |
Country Status (3)
Country | Link |
---|---|
JP (1) | JP5436701B1 (en) |
CN (1) | CN104487954A (en) |
WO (1) | WO2014016916A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019145909A (en) * | 2018-02-16 | 2019-08-29 | 日本電気株式会社 | Data processing device, data processing method, and program |
CN111782395A (en) * | 2020-06-30 | 2020-10-16 | 北京思特奇信息技术股份有限公司 | Message processing shunt control method and system |
JP2021193788A (en) * | 2020-10-26 | 2021-12-23 | 東京瓦斯株式会社 | Remote control device |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106162874B (en) * | 2015-04-10 | 2021-10-26 | 中兴通讯股份有限公司 | Downlink information receiving method, device and user equipment |
JP2017147662A (en) * | 2016-02-18 | 2017-08-24 | 株式会社オートネットワーク技術研究所 | Repeating device |
US11477124B2 (en) * | 2018-06-15 | 2022-10-18 | Nippon Telegraph And Telephone Corporation | Network management system, management device, relay device, method, and program |
JP7338586B2 (en) * | 2020-08-07 | 2023-09-05 | トヨタ自動車株式会社 | In-vehicle network system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002111890A (en) * | 2000-10-02 | 2002-04-12 | Osaka Gas Co Ltd | Communication substitute device and system thereof |
JP2003283556A (en) * | 2002-03-26 | 2003-10-03 | Hitachi Ltd | Data communication repeater and system |
JP2009267496A (en) * | 2008-04-22 | 2009-11-12 | Nakayo Telecommun Inc | Light termination device and data relay method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4831218B2 (en) * | 2009-08-06 | 2011-12-07 | コニカミノルタビジネステクノロジーズ株式会社 | Image processing apparatus, control method therefor, and control program |
JP2011223694A (en) * | 2010-04-06 | 2011-11-04 | Sumitomo Wiring Syst Ltd | Electrical connection box |
-
2012
- 2012-07-25 WO PCT/JP2012/068770 patent/WO2014016916A1/en active Application Filing
- 2012-07-25 JP JP2012557328A patent/JP5436701B1/en active Active
- 2012-07-25 CN CN201280074857.7A patent/CN104487954A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002111890A (en) * | 2000-10-02 | 2002-04-12 | Osaka Gas Co Ltd | Communication substitute device and system thereof |
JP2003283556A (en) * | 2002-03-26 | 2003-10-03 | Hitachi Ltd | Data communication repeater and system |
JP2009267496A (en) * | 2008-04-22 | 2009-11-12 | Nakayo Telecommun Inc | Light termination device and data relay method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019145909A (en) * | 2018-02-16 | 2019-08-29 | 日本電気株式会社 | Data processing device, data processing method, and program |
CN111782395A (en) * | 2020-06-30 | 2020-10-16 | 北京思特奇信息技术股份有限公司 | Message processing shunt control method and system |
CN111782395B (en) * | 2020-06-30 | 2024-01-05 | 北京思特奇信息技术股份有限公司 | Shunting control method and system for message processing |
JP2021193788A (en) * | 2020-10-26 | 2021-12-23 | 東京瓦斯株式会社 | Remote control device |
Also Published As
Publication number | Publication date |
---|---|
CN104487954A (en) | 2015-04-01 |
JPWO2014016916A1 (en) | 2016-07-07 |
JP5436701B1 (en) | 2014-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5436701B1 (en) | Communication device and relay device | |
KR101770673B1 (en) | Power balancing to increase workload density and improve energy efficiency | |
WO2018120993A1 (en) | Method and device for allocating distributed system task | |
CN112165691B (en) | Content delivery network scheduling method, device, server and medium | |
CN109936473B (en) | Deep learning prediction-based distributed computing system and operation method thereof | |
JP6378057B2 (en) | Connection control device, connection control method, connection control system, and computer program | |
JP2010238051A (en) | Load balancing program and load balancing apparatus | |
CN101577681A (en) | Flow control method, device and system | |
CN101354664A (en) | Method and apparatus for interrupting load equilibrium of multi-core processor | |
CN104243405A (en) | Request processing method, device and system | |
KR101817437B1 (en) | Method and apparatus for controlling data transmission | |
CN102326369B (en) | Queue scheduling method and apparatus | |
WO2012050912A1 (en) | System and method for proactive resource allocation | |
CN102970250A (en) | Method and apparatus for bandwidth allocation in distributed router system and network device | |
WO2018123030A1 (en) | Priority control method and data processing system | |
CN114629906B (en) | Reliable cloud container cluster resource scheduling method and device based on deep reinforcement learning | |
JP2005510957A (en) | Hierarchical credit queuing for traffic shaping | |
US9323271B2 (en) | Electricity management apparatus and electricity management method | |
US10397797B2 (en) | Devices, systems, and methods for resource allocation of shared spectrum | |
CN105721901A (en) | Video transcoder adaption method, device and system | |
CN111770026B (en) | Network flow control method and device | |
JPWO2013080419A1 (en) | Traffic management apparatus, system, method, and traffic management program | |
CN109792411B (en) | Apparatus and method for managing end-to-end connections | |
JP5997659B2 (en) | Distributed processing system and distributed processing method | |
JP5351839B2 (en) | Order processing method, program, and network system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
ENP | Entry into the national phase |
Ref document number: 2012557328 Country of ref document: JP Kind code of ref document: A |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12881673 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: IDP00201405719 Country of ref document: ID |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12881673 Country of ref document: EP Kind code of ref document: A1 |