According to an embodiment, a switch device includes a memory and one or more hardware processors coupled to the memory. The one or more hardware processors are configured to function as a selection unit and a determination unit. The selection unit, based on task schedule information synchronized with transmission schedule information where transmission timing of first data is determined for each priority of the first data, selects a first task of executing transfer processing of the first data and calculates an end time of transfer processing executed by the selected first task. The determination unit, from the end time and a current time, determines whether transfer processing of the first data is executable. The first task selected by the selection unit, when the transfer processing is executable, executes the transfer processing of the first data based on the transmission schedule information.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A switch device comprising: a memory; and one or more hardware processors coupled to the memory and configured to function as: a selection unit that, based on task schedule information synchronized with transmission schedule information where transmission timing of first data is determined for each priority of the first data, selects a first task of executing transfer processing of the first data and calculates an end time of transfer processing executed by the selected first task; and a determination unit that, from the end time and a current time, determines whether transfer processing of the first data is executable, wherein the first task selected by the selection unit, when the transfer processing is executable, executes the transfer processing of the first data based on the transmission schedule information.
2. The device according to claim 1 , wherein the transmission schedule information and the task schedule information are synchronized by matching a start time of selection control of the first task with a start time of transmission timing control based on the transmission schedule information.
3. The device according to claim 1 , further comprising an interrupt processing unit that notifies, upon detecting input of the first data into a buffer referred to by the first task, the determination unit when an interrupt to the first task is enabled, wherein the selection unit, when selecting the first task, disables an interrupt to the first task to be selected, the first task selected by the selection unit, when the first data that is able to be transferred does not exist in the buffer during transfer processing, enables an interrupt and suspends transfer processing, and the determination unit, when notified by the interrupt processing unit, determines whether transfer processing of the first data is executable by the first task to which the interrupt has been enabled.
4. The device according to claim 3 , wherein the selection unit, when transfer processing of the first task is suspended, selects a second task of executing transfer processing of second data, and the second task selected by the selection unit executes transfer processing of the second data until the first task to which the interrupt has been enabled or a new first task is selected by the selection unit.
5. The device according to claim 4 , wherein the first task is a non-preemptive task, and the second task is a preemptive task.
6. The device according to claim 5 , wherein the transmission schedule information is a gate control list of IEEE 802.1 Qbv.
7. The device according to claim 6 , further comprising an alarm unit that, when the first data that is able to be transferred by the first task selected by the selection unit does not exist in the buffer and a state of the gate control list changes by the end time, notifies the interrupt processing unit at a time when a state of the gate control list changes, wherein the interrupt processing unit, when notified by the alarm unit, notifies the determination unit, and the determination unit determines, when notified by the interrupt processing unit, whether transfer processing of the first data is executable by the first task to which an interrupt has been enabled.
8. The device according to claim 1 , wherein a processor is allocated for each first task, the processor executing the first task, a buffer that holds the first data to be transferred is allocated for each combination of the processor and a transfer destination, a first task of receiving input of the first data and transferring the first data writes the first data and writing time of the first data in a buffer allocated to a processor on which the first task of receiving the input of the first data and transferring the first data is executed, and a first task of outputting the transferred first data to a transfer destination reads the first data in order of writing time, from a buffer allocated for each combination of the processor and the transfer destination.
9. A switching method comprising: selecting, by a selection unit, based on task schedule information synchronized with transmission schedule information where transmission timing of first data is determined for each priority of the first data, a first task of executing transfer processing of the first data and calculating an end time of transfer processing executed by the selected first task; determining, by a determination unit, from the end time and a current time, whether transfer processing of the first data is executable; and executing, by the first task selected by the selection unit, when transfer processing is executable, transfer processing of the first data based on the transmission schedule information.
10. A computer program product comprising a non-transitory computer-readable medium including programmed instructions, the instructions causing a computer to function as: a selection unit that, based on task schedule information synchronized with transmission schedule information where transmission timing of first data is determined for each priority of the first data, selects a first task of executing transfer processing of the first data and calculates an end time of transfer processing executed by the selected first task, and a determination unit that, from the end time and a current time, determines whether transfer processing of the first data is executable, wherein the first task selected by the selection unit, when the transfer processing is executable, executes transfer processing of the first data based on the transmission schedule information.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
February 21, 2019
January 5, 2021
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.