WO2018167838A1 - 中継装置及びデータ転送方法 - Google Patents

中継装置及びデータ転送方法 Download PDF

Info

Publication number
WO2018167838A1
WO2018167838A1 PCT/JP2017/010147 JP2017010147W WO2018167838A1 WO 2018167838 A1 WO2018167838 A1 WO 2018167838A1 JP 2017010147 W JP2017010147 W JP 2017010147W WO 2018167838 A1 WO2018167838 A1 WO 2018167838A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
low priority
priority frame
transfer
division size
Prior art date
Application number
PCT/JP2017/010147
Other languages
English (en)
French (fr)
Inventor
程光 馮
鹿島 和幸
竜介 川手
幸子 谷口
Original Assignee
三菱電機株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to JP2019505556A priority Critical patent/JP6752355B2/ja
Priority to PCT/JP2017/010147 priority patent/WO2018167838A1/ja
Publication of WO2018167838A1 publication Critical patent/WO2018167838A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Definitions

  • the present invention relates to a relay device that performs communication and a data transfer method in the relay device.
  • Ethernet registered trademark
  • the low-priority frame is divided and transmitted in the upstream device, and the low-priority frame is combined in the downstream device.
  • the communication that reduces the delay of the high priority frame and the fluctuation of the transfer interval is realized.
  • An object of the present invention is to reduce delay of a high priority frame and fluctuation of a transfer interval.
  • the relay device of the present invention is a relay device that performs communication using a plurality of types of frames, the frame identifying unit that identifies the type of the frame and forwards the frame according to the type, and the plurality of frames
  • a division size acquisition unit for transmitting a division size notification frame for notifying a division size of a low priority frame among the types of frames, and a priority higher than the low priority frame among the plurality of types of frames.
  • a shift register that transfers a high priority frame that is a high frame, a low priority frame processing unit that transfers the low priority frame, a transfer frame that controls the division size acquisition unit, the shift register, and the low priority frame processing unit
  • the divided low priority frame transferred from the selection unit and the low priority frame processing unit is transferred to the other low priority frame. Bound, characterized in that it comprises an output control unit for transferring the combined said low priority frame.
  • FIG. 1 It is a block diagram which shows roughly the structure of the relay apparatus which concerns on Embodiment 1 of this invention. It is a figure which shows an example of the specific hardware constitutions of a frame process part. It is a figure which shows an example of the data recording format (it is also called a frame format) in a division size notification frame. It is a sequence diagram which shows an example of the communication using the division
  • FIG. 6 is a diagram illustrating a frame output from a relay device when transfer contention between a low-priority frame and a high-priority frame occurs in the relay device according to Embodiment 1.
  • FIG. 10 is a sequence diagram illustrating an example of communication using a division size notification frame between two relay apparatuses in the second embodiment.
  • FIG. 10 is a sequence diagram illustrating another example of communication using a division size notification frame between two relay devices in the second embodiment. It is a flowchart which shows a part of frame transfer control in a transfer frame selection part.
  • FIG. FIG. 1 is a block diagram schematically showing the configuration of relay apparatus 1 according to Embodiment 1 of the present invention.
  • the relay device 1 performs communication (for example, communication relay) using a plurality of types of frames input to the relay device 1.
  • the plurality of types of frames include a low priority frame, a high priority frame, and a division size notification frame.
  • the low priority frame is a frame having a lower transfer priority than the high priority frame.
  • the high priority frame is a frame having a higher transfer priority than the low priority frame.
  • the division size notification frame is a frame for notifying the division size of the frame (for example, the low priority frame) (in this embodiment, the minimum frame length of the low priority frame).
  • the relay device 1 includes at least two input ports (first input port 9_1, second input port 9_2,..., And Nth input port 9_N; N is an integer of 3 or more), a frame identification unit 2, At least two frame processing units (first frame processing unit 3_1, second frame processing unit 3_2,..., And Nth frame processing unit 3_N; N is an integer of 3 or more), and at least two output ports (first 1 output port 10_1, second output port 10_2,..., And Nth output port 10_N, where N is an integer of 3 or more.
  • the number of frame processing units and output ports are the same.
  • One frame processing unit corresponds to one output port.
  • the first frame processing unit 3_1 corresponds to the first output port 10_1
  • the Nth frame processing unit 3_N corresponds to the Nth output port 10_N.
  • a frame as data output from one frame processing unit is output to the outside of the relay apparatus 1 through a corresponding output port.
  • the first frame processing unit 3_1 (hereinafter simply referred to as “frame processing unit 3_1”) corresponding to the first output port 10_1 will be described below.
  • the operations are the same as each other.
  • the frame identification unit 2 identifies the type of a frame (hereinafter also referred to as a reception frame) input to the relay device 1, and transfers the frame according to the type of the frame. Specifically, the frame identification unit 2 uses the address and identifier defined in the header or payload (data area excluding the header) of the received frame as a discrimination criterion, and uses the received frame as a high priority frame and a low priority frame. The frame is divided into frames or divided size notification frames and transferred to the frame processing unit 3_1.
  • the frame processing unit 3_1 includes a division size acquisition unit 4, a shift register 5, a low priority frame processing unit 6, a transfer frame selection unit 7, and an output control unit 8.
  • the received frame input to the frame processing unit 3_1 is output to the outside of the relay device 1 through a corresponding output port (in the present embodiment, the first output port 10_1) according to the control in the frame processing unit 3_1.
  • FIG. 2 is a diagram illustrating an example of a specific hardware configuration of the frame processing unit 3_1.
  • the frame processing unit 3_1 can be configured by, for example, a memory 3a and a processor 3b such as a CPU (Central Processing Unit). In this case, the function of the frame processing unit 3_1 is realized by the memory 3a and the processor 3b.
  • the specific hardware configuration of the frame processing unit 3_1 is not limited to the configuration illustrated in FIG.
  • the division size acquisition unit 4 is configured by, for example, a combination of a register and a logic circuit inside an FPGA (Field Programmable Gate Array).
  • the division size acquisition unit 4 sets information (for example, A [byte]) indicating the minimum frame length (the smallest frame length of the divided frames) that can be received by the relay device 1 in the division size notification frame f1.
  • the division size acquisition unit 4 sends the division size notification frame f 1 including information indicating the minimum frame length to the output control unit 8 in accordance with the output instruction from the transfer frame selection unit 7. Send to.
  • FIG. 3 is a diagram illustrating an example of a data recording format (also referred to as a frame format) in the division size notification frame f1.
  • the minimum frame length is set in the Data option area of the division size notification frame f1 as an LLDP (Link Layer Discovery Protocol) frame.
  • the minimum frame length is set in the option 1 item of the Data column of the division size notification frame f1.
  • a valid flag or invalid flag as a flag for setting validity or invalidity of the division size set in option 1 may be set in another option (for example, option 3).
  • FIG. 4 is a sequence diagram illustrating an example of communication (port link up processing) using a division size notification frame between two relay apparatuses (that is, the relay apparatus 1 as the preceding apparatus and the relay apparatus 1a as the succeeding apparatus). It is.
  • the relay device 1 a is a communication device that communicates with the relay device 1.
  • the relay device 1a has the same configuration and function as the relay device 1 according to the present embodiment.
  • the relay device 1 and the relay device 1a notify each other of the minimum frame length of the receivable low priority frame using the division size notification frame.
  • the relay device 1 notifies the relay device 1a that the minimum frame length of the low priority frame that can be received is X [bytes] using the division size notification frame f1.
  • the relay device 1a notifies the relay device 1 that the minimum frame length of the receivable low priority frame is A [bytes] using the division size notification frame f2.
  • the division size notification frame f2 can also be configured similarly to the example shown in FIG.
  • the relay device 1 When the relay device 1 receives the division size notification frame f2 from the relay device 1a, the division size notification frame f2 is transferred from the frame identification unit 2 to the division size acquisition unit 4, and the division size acquisition unit 4 transmits the division size notification frame f2. Based on the information set therein, the transfer frame selection unit 7 is notified that the minimum frame length of the low priority frame that can be received by the relay device 1a is A [bytes]. In this case, for example, when receiving the division size notification frame f2 from the relay device 1a, the division size acquisition unit 4 transfers the division size notification frame f2 to the transfer frame selection unit 7.
  • the division size acquisition unit 4 includes a division size notification frame reception timer for determining whether or not a division size notification frame f2 is received from another communication device (in this embodiment, the relay device 1a) that is a communication target. have. For example, when the relay device 1 performs the port link up process together with the relay device 1a, the division size notification frame reception timer is started at the timing when the relay device 1 transmits the division size notification frame f1.
  • the minimum frame length of the low priority frame that can be received by the relay device 1a is set to 64 [bytes], which is the division size defined by IEEE 802.3br, and is notified to the transfer frame selection unit 7.
  • the shift register 5 stores the high priority frame distributed by the frame identification unit 2. When the top of the high priority frame is input to the shift register 5, the shift register 5 sends a high priority frame input notification for notifying that the top of the high priority frame has been input to the shift register 5. Send to.
  • the shift register 5 transfers the high priority frame toward the output control unit 8 in accordance with the output instruction from the transfer frame selection unit 7.
  • a shift register 5 having a size defined by IEEE 802.3br is used.
  • the minimum frame length of the divided frames is A [bytes]
  • a shift of the number of stages indicated by A [bytes] ⁇ 2-1 + IFG (Inter Frame Gap) is performed.
  • the low priority frame processing unit 6 stores the low priority frames distributed by the frame identification unit 2. When the entire low-priority frame is stored in the low-priority frame processing unit 6, the low-priority frame processing unit 6 transmits a transfer request for the low-priority frame to the transfer frame selection unit 7, the low-priority frame total length, and the transfer The transfer frame selector 7 is notified of the completed low priority frame length and the transfer incomplete low priority frame length. While the low priority frame processing unit 6 stores the low priority frame, the low priority frame processing unit 6 transmits the low priority frame transfer request, the low priority frame total length, the transfer completed low priority frame length, and the transfer incomplete low Notification of the priority frame length is performed periodically.
  • the low-priority frame total length indicates the length of the first frame stored in the low-priority frame processing unit 6.
  • the transfer completed low priority frame length indicates the length of the low priority frame for which the transfer from the low priority frame processing unit 6 has been completed until the transfer of the low priority frame is interrupted.
  • the transfer incomplete low-priority frame length indicates the length of the low-priority frame that is not transferred among the low-priority frames stored in the low-priority frame processing unit 6, that is, the low-priority frame total length and the transfer-completed low-priority frame. Indicates the difference from the length.
  • the low priority frame processing unit 6 When the low priority frame processing unit 6 receives an output instruction (also referred to as transfer permission) from the transfer frame selection unit 7, the low priority frame processing unit 6 transfers the low priority frame toward the output control unit 8 in accordance with the output instruction from the transfer frame selection unit 7. To do.
  • the low priority frame processing unit 6 may divide the low priority frame into the division size (that is, the minimum frame length) of the low priority frame set by the transfer frame selection unit 7 and transfer the divided low priority frame. it can.
  • the transfer frame selection unit 7 controls the division size acquisition unit 4, the shift register 5, and the low priority frame processing unit 6. For example, when the transfer frame selection unit 7 requests a division size notification frame, the transfer frame selection unit 7 transmits an output instruction to the division size acquisition unit 4. The transfer frame selection unit 7 transmits an output instruction to the shift register 5 when requesting transfer of a high priority frame. The transfer frame selection unit 7 transfers the low priority frame based on the length of the low priority frame stored in the low priority frame processing unit 6 or the length of the low priority frame transferred from the low priority frame processing unit 6. Can be controlled.
  • the transfer frame selection unit 7 sets the division size of the low priority frame (that is, the length of the divided low priority frame).
  • the output control unit 8 controls the output of the frame to the outside of the relay device 1.
  • the output control unit 8 outputs a frame based on a control instruction from the transfer frame selection unit 7. Further, the output control unit 8 combines the divided low priority frame transferred from the low priority frame processing unit 6 with another low priority frame transferred from the low priority frame processing unit 6. The output control unit 8 transfers the combined low priority frame toward the other communication device (in this embodiment, the relay device 1a) through the first output port 10_1.
  • FIG. 5 is a flowchart showing frame transfer control in the transfer frame selection unit 7.
  • the transfer frame selection unit 7 transmits the division size notification frame f1 to the other communication device that is the communication target (in this embodiment, the relay device 1a).
  • the acquisition unit 4 is controlled (step S1).
  • the division size acquisition unit 4 transmits the division size notification frame f 1 in accordance with the output instruction from the transfer frame selection unit 7.
  • the division size acquisition unit 4 transfers the division size notification frame f2 to the transfer frame selection unit 7.
  • step S2 the transfer frame selection unit 7 determines whether or not the division size notification frame f2 has been received from the division size acquisition unit 4.
  • the transfer frame selection unit 7 When the transfer frame selection unit 7 has not received the division size notification frame f2 (NO in step S2), the transfer frame selection unit 7 sets the division size of the low priority frame to, for example, the minimum division defined in IEEE 802.3br. The size is set to 64 bytes (step S3), and the process transitions to step S5.
  • the transfer frame selection unit 7 When the transfer frame selection unit 7 has received the division size notification frame f2 (YES in step S2), the transfer frame selection unit 7 sets the division size of the low priority frame to A [ byte] (step S4). In the present embodiment, the transfer frame selection unit 7 sets the division size of the low priority frame to a size smaller than 64 bytes.
  • step S5 the transfer frame selection unit 7 determines whether a high priority frame input notification is received from the shift register 5. If transfer frame selection unit 7 has not received the high priority frame input notification from shift register 5 (NO in step S5), the process transitions to step S14.
  • step S5 If the transfer frame selection unit 7 has received a high priority frame input notification from the shift register 5 (YES in step S5), the process transitions to step S6.
  • step S6 the transfer frame selection unit 7 determines whether a low priority frame is being transferred from the low priority frame processing unit 6. If the low priority frame is not being transferred (NO in step S6), the process proceeds to step S13.
  • step S6 When the low priority frame is being transferred from the low priority frame processing unit 6 (YES in step S6), the process proceeds to step S7.
  • step S7 the transfer frame selection unit 7 determines whether the total length of the low priority frame is equal to or longer than a predetermined length B1 (2 ⁇ A [bytes] in the present embodiment). In other words, in the present embodiment, the transfer frame selection unit 7 determines whether the low priority frame total length is 2 ⁇ A [bytes] or more.
  • the transfer frame selection unit 7 includes the low priority frame processing unit 6 Is transmitted to the low-priority frame processing unit 6 so as to transfer all the low-priority frames stored in (step S9).
  • the low priority frame processing unit 6 transfers all the low priority frames in the low priority frame processing unit 6 toward the output control unit 8.
  • step S7 If the low-priority frame total length is equal to or longer than a predetermined length B1 (in this embodiment, 2 ⁇ A [bytes]) (YES in step S7), the process transitions to step S8.
  • a predetermined length B1 in this embodiment, 2 ⁇ A [bytes]
  • step S8 the transfer frame selection unit 7 determines in advance the length of a transfer incomplete frame (hereinafter referred to as “transfer incomplete frame length”) that is a low priority frame stored in the low priority frame processing unit 6. It is determined whether the length is greater than or equal to B2.
  • the predetermined length B2 is the minimum frame length notified from the division size acquisition unit 4. Therefore, in the present embodiment, since the predetermined length B2 is A [bytes], the transfer frame selection unit 7 determines whether the transfer incomplete frame length is equal to or longer than A [bytes].
  • the transfer frame selection unit 7 selects the low priority frame.
  • An output instruction is transmitted to the low priority frame processing unit 6 so as to transfer all the low priority frames stored in the processing unit 6 (step S9), and the process transitions to step S13.
  • step S8 If the untransferred frame length is equal to or longer than a predetermined length B2 (A [byte] in the present embodiment) (YES in step S8), the process proceeds to step S10.
  • the transfer frame selection unit 7 determines the length of the transfer completion frame that is the low priority frame transferred from the low priority frame processing unit 6 (hereinafter referred to as “transfer completion frame length”) in advance. It is determined whether B2 or more.
  • the predetermined length B2 is the minimum frame length notified from the division size acquisition unit 4 as described above. Therefore, in the present embodiment, the transfer frame selection unit 7 determines whether the transfer completion frame length is equal to or longer than A [bytes].
  • step S10 If the transfer completion frame length is equal to or longer than a predetermined length B2 (A [byte] in the present embodiment) (YES in step S10), the process transitions to step S12.
  • transfer frame selection unit 7 stores in low priority frame processing unit 6
  • the low-priority frame processing unit 6 transmits an output instruction to the low-priority frame processing unit 6 so as to transfer the low-priority frame up to the length B2 (A [byte] in the present embodiment) (step S11), and the process transitions to step S12. To do.
  • the low priority frame processing unit 6 transfers the low priority frame to the output control unit 8 up to the length B2.
  • the transfer frame selection unit 7 controls the low priority frame processing unit 6 so as to interrupt the transfer of the low priority frame, and acquires the division size of the low priority frame stored in the low priority frame processing unit 6.
  • the low-priority frame processing unit 6 is controlled so as to be divided into the minimum frame length (A [byte] in the present embodiment) that is the division size notified from the unit 4. In this case, the low priority frame processing unit 6 interrupts the transfer of the low priority frame and divides the low priority frame based on the division size.
  • step S13 the transfer frame selection unit 7 controls the shift register 5 to transfer all the high priority frames in the shift register 5.
  • step S13 after step S12, when the transfer of the low priority frame is interrupted the transfer frame selection unit 7 controls the shift register 5 to transfer all the high priority frames in the shift register 5. To do.
  • step S 13 specifically, the transfer frame selection unit 7 transmits an output instruction to the shift register 5.
  • the shift register 5 transfers all the high priority frames toward the output control unit 8.
  • step S14 the transfer frame selection unit 7 determines whether a low priority frame (including divided low priority frames) is stored in the low priority frame processing unit 6.
  • step S14 If no low priority frame (including divided low priority frames) is stored in the low priority frame processing unit 6 (NO in step S14), the process returns to step S5.
  • the transfer frame selection unit 7 controls the low-priority frame processing unit 6 so as to transfer a low-priority frame (that is, a divided low-priority frame) having a minimum frame length (A [byte] in the present embodiment) (step S15). ). Specifically, the transfer frame selection unit 7 transmits an output instruction to the low priority frame processing unit 6. The output control unit 8 combines the divided low priority frame transferred from the low priority frame processing unit 6 with another low priority frame transferred from the low priority frame processing unit 6. Further, the output control unit 8 transfers the combined low priority frame toward the relay device 1a through the first output port 10_1.
  • FIG. 6 is a diagram illustrating a frame output from the relay device when transfer contention between the low priority frame L and the high priority frame H occurs in the relay device according to the first comparative example.
  • the low priority frame L0 which is a discardable part of the low priority frame L
  • the output of the low priority frame L is interrupted.
  • the low-priority frame L0 output from the relay device is discarded by the subsequent device, and the low-priority frame L is output from the relay device after the high-priority frame H is output. Therefore, in the transfer method in the relay apparatus according to Comparative Example 1, the execution band is reduced.
  • FIG. 7 is a diagram illustrating a frame output from the relay device when transfer contention between the low priority frame L and the high priority frame H occurs in the relay device according to Comparative Example 2.
  • the transfer method defined in IEEE 802.3br is used.
  • the low priority frame L is divided and output from the relay apparatus, and the low priority frame divided by the subsequent apparatus is Joining is done. Thereby, discarding of low priority frames can be avoided.
  • the length of the divided frame of the low priority frame is defined as 64 bytes or more, so that a frame of 127 bytes or less cannot be divided.
  • FIG. 8 is a diagram illustrating a frame output from the relay device 1 when transfer contention between the low-priority frame and the high-priority frame occurs in the relay device 1 according to the present embodiment.
  • the minimum frame length that can be divided is A [bytes]
  • the maximum delay fluctuation of the high priority frame is A ⁇ 2-1 + IFG [bytes].
  • the division size of the low priority frame is set to A [bytes] based on the division size notification frame f2 received from the relay device 1a that is another communication device (step S4 in FIG. 5). Therefore, the division size of the low priority frame can be set smaller than 64 bytes according to the division size notification frame f2.
  • the relay apparatus 1 can reduce the delay time of the high priority frame and reduce the fluctuation of the transfer interval without discarding the low priority frame.
  • the low-priority frame divided by the relay device 1 may be combined with another low-priority frame by a subsequent device (for example, the relay device 1a).
  • a subsequent device for example, the relay device 1a.
  • Embodiment 2 the method of performing data transfer by setting the division size of the low-priority frame in the upstream device based on the minimum frame length (that is, A [byte]) that can be received by the downstream device.
  • a low-priority frame is assigned to the low-priority frame in the preceding apparatus and the subsequent apparatus based on the minimum frame length of the low-priority frame that can be divided in the preceding apparatus and the minimum frame length of the low-priority frame that can be divided in the succeeding apparatus.
  • a method for performing data transfer by setting the division size will be described.
  • an operation different from the operation of the relay device 1 according to the first embodiment will be described.
  • FIG. 9 shows communication (port link-up processing) using a division size notification frame between two relay devices in the second embodiment (that is, relay device 1 as the preceding device and relay device 1a as the succeeding device). It is a sequence diagram which shows an example.
  • FIG. 10 illustrates communication (port link-up processing) using the division size notification frame between the two relay apparatuses in the second embodiment (that is, the relay apparatus 1 as the preceding apparatus and the relay apparatus 1a as the succeeding apparatus). It is a sequence diagram which shows another example.
  • FIG. 11 is a flowchart showing a part of frame transfer control in the transfer frame selection unit 7. In the second embodiment, the processing in FIG. 11 is replaced with the processing from steps S1 to S4 shown in FIG.
  • the divided size notification frame f2 received from the relay device 1a as the downstream device when the relay device 1 as the upstream device performs port link up, the divided size notification frame f2 received from the relay device 1a as the downstream device.
  • the division size (that is, the minimum frame length) of the low priority frame is set based on (Step S4).
  • the division size that can be divided by the division size acquisition unit 4 of the relay apparatus 1 as the preceding apparatus is compared with the division size that can be divided by the relay apparatus 1a as the subsequent apparatus, and the low priority is given. Set the frame division size.
  • the one with the larger minimum frame length that can be divided is set as the division size of the low-priority frame in relay apparatuses 1 and 1a, and the setting notifications are performed. Accordingly, the minimum frame length of the low priority frame that can be divided by both the relay apparatuses 1 and 1a is set in the relay apparatuses 1 and 1a as the division size of the low priority frame.
  • the transfer frame selection unit 7 transmits the division size notification frame f1 to the other communication device that is the communication target (in this embodiment, the relay device 1a).
  • the acquisition unit 4 is controlled (step S21).
  • the division size notification frame f1 includes information indicating the minimum division size (that is, the minimum frame length X1 [byte]) of the low priority frame that can be divided by the relay device 1 (specifically, the low priority frame processing unit 6). included.
  • the division size acquisition unit 4 transmits the division size notification frame f1 to the relay device 1a in accordance with the output instruction from the transfer frame selection unit 7. As a result, as shown in FIG. 9, communication of the division size notification frames f1 and f2 is performed between the relay device 1 and the relay device 1a, and the minimum division sizes that can be divided are notified to each other.
  • the relay device 1a compares the minimum frame length X1 and the minimum frame length X2, and sets the larger one as the division size.
  • the division size acquisition unit 4 transfers the division size notification frame f2 to the transfer frame selection unit 7.
  • the division size notification frame f2 includes information indicating the minimum division size that can be divided by the relay device 1a (that is, the minimum frame length X2 [bytes]).
  • step S22 the transfer frame selection unit 7 determines whether or not the division size notification frame f2 has been received from the division size acquisition unit 4.
  • the division size of the low priority frame is set to, for example, 64 bytes that is the minimum division size defined by IEEE 802.3br. (Step S23), the process transitions to Step S5 (FIG. 5).
  • the transfer frame selection unit 7 compares the minimum frame length X1 and the minimum frame length X2 (step S24).
  • the transfer frame selection unit 7 sets the division size of the low priority frame to X2 [bytes] based on the division size notification frame f2. Then, the division size acquisition unit 4 is controlled to transmit the division size notification frame f1 to another communication device (in this embodiment, the relay device 1a) that is a communication target (step S25).
  • the division size notification frame f1 includes X2 [bytes] as information indicating the minimum frame length set in the relay device 1.
  • relay device 1 When minimum frame length X1 is smaller than minimum frame length X2 (YES in step S24), relay device 1 (specifically, division size acquisition unit 4) is set in relay device 1, as shown in FIG.
  • the division size (minimum frame length X2 [bytes]) to be notified is notified to the relay device 1a using the division size notification frame f3 (step S25).
  • the division size notification frame f3 can also be configured similarly to the example shown in FIG.
  • the transfer frame selection unit 7 sets the division size of the low priority frame to X1.
  • the relay device 1 receives the division size notification frame f4 from the relay device 1a, and is notified from the relay device 1a that the division size set in the relay device 1a is also X1.
  • the division size notification frame f4 can also be configured similarly to the example shown in FIG.
  • 1, 1a relay device 2 frame identification unit, 3_1, 3_2 frame processing unit, 4 division size acquisition unit, 5 shift register, 6 low priority frame processing unit, 7 transfer frame selection unit, 8 output control unit, 9_1, 9_2 input Port, 10_1, 10_2 output port.

Abstract

中継装置(1)は、フレーム識別部(2)と、分割サイズ取得部(4)と、シフトレジスタ(5)と、低優先フレーム処理部(6)と、転送フレーム選択部(7)と、出力制御部(8)とを有する。フレーム識別部(2)は、フレームの種別を識別し、種別に応じてフレームを転送する。分割サイズ取得部(4)は、低優先フレームの分割サイズを通知するための分割サイズ通知フレームを送信する。シフトレジスタ(5)は、高優先フレームを転送する。低優先フレーム処理部(6)は、低優先フレームを転送する。転送フレーム選択部(7)は、分割サイズ取得部(4)、シフトレジスタ(5)、及び低優先フレーム処理部(6)を制御する。出力制御部(8)は、低優先フレーム処理部から転送された、分割された低優先フレームを、他の低優先フレームと結合し、結合された低優先フレームを転送する。

Description

中継装置及びデータ転送方法
 本発明は、通信を行う中継装置及びその中継装置におけるデータ転送方法に関する。
 従来、車、列車、又は工場などに用いられるネットワークは、伝送容量、遅延、又は信頼性などの要求に応じて異なる規格のネットワークが用いられてきた。近年、これらのネットワークにイーサネット(登録商標)を用いることでネットワークの大容量化及び経済化が検討されている。
 ネットワークにおける通信を中継する中継装置をイーサネット(登録商標)に接続するためには、ネットワーク上の他の機器が要求するリアルタイム性能を満たすことが求められている。例えば、リアルタイム処理が求められる高優先フレームが低優先フレームと競合した場合でも高優先フレームの遅延を低減し、且つ転送間隔の揺らぎが少ない転送方式が求められている。このような要求に対して、前段装置(すなわち、送信側装置)としての中継装置において、高優先フレームと低優先フレームとが競合したときに、低優先フレームの転送を前段装置で中断し、すでに前段装置から転送された低優先フレームは後段装置(すなわち、受信側装置)としての中継装置で廃棄することにより、高優先フレームの遅延を低減し、且つ転送間隔の揺らぎを低減する転送方式が提案されている(例えば、特許文献1)。
 一方、IEEE(The Institute of Electrical and Electronics Engineers,Inc.)802.3brで規定された転送方式では、前段装置で低優先フレームを分割して送信し、後段装置で低優先フレームの結合を行うことで、高優先フレームの遅延を低減し、且つ転送間隔の揺らぎを低減する通信を実現している。
国際公開第2015/163094号
 しかしながら、低優先フレームを後段装置で廃棄する場合、実行帯域が低下するという問題がある。一方、IEEE802.3brで規定された転送方式では、低優先フレームの分割フレームの長さが64byte(バイト)以上と定義されているため、127byte以下のフレームは分割することができない。そのため、IEEE802.3brで規定された転送方式では、高優先フレームと、127byte以下のフレーム長である低優先フレームとが競合した場合、その低優先フレームを全て転送した後でなければ高優先フレームを転送できず、高優先フレームの遅延及び転送間隔の揺らぎが発生するという問題がある。
 本発明の目的は、高優先フレームの遅延及び転送間隔の揺らぎを低減することである。
 本発明の中継装置は、複数の種別のフレームを用いて通信を行う中継装置であって、前記フレームの前記種別を識別し、前記種別に応じて前記フレームを転送するフレーム識別部と、前記複数の種別のフレームのうちの低優先フレームの分割サイズを通知するための分割サイズ通知フレームを送信する分割サイズ取得部と、前記複数の種別のフレームのうちの、前記低優先フレームよりも優先度が高いフレームである高優先フレームを転送するシフトレジスタと、前記低優先フレームを転送する低優先フレーム処理部と、前記分割サイズ取得部、前記シフトレジスタ、及び前記低優先フレーム処理部を制御する転送フレーム選択部と、前記低優先フレーム処理部から転送された、分割された前記低優先フレームを、他の前記低優先フレームと結合し、結合された前記低優先フレームを転送する出力制御部とを備えることを特徴とする。
 本発明によれば、高優先フレームの遅延及び転送間隔の揺らぎを低減することができる。
本発明の実施の形態1に係る中継装置の構成を概略的に示すブロック図である。 フレーム処理部の具体的なハードウェア構成の一例を示す図である。 分割サイズ通知フレームにおけるデータ記録形式(フレームフォーマットともいう)の一例を示す図である。 2台の中継装置間における分割サイズ通知フレームを用いた通信の一例を示すシーケンス図である。 転送フレーム選択部におけるフレーム転送制御を示すフローチャートである。 比較例1に係る中継装置で低優先フレーム及び高優先フレームの転送競合が発生したときの中継装置から出力されるフレームを示す図である。 比較例2に係る中継装置で低優先フレーム及び高優先フレームの転送競合が発生したときの中継装置から出力されるフレームを示す図である。 実施の形態1に係る中継装置で低優先フレーム及び高優先フレームの転送競合が発生したときの中継装置から出力されるフレームを示す図である。 実施の形態2における2台の中継装置間における分割サイズ通知フレームを用いた通信の一例を示すシーケンス図である。 実施の形態2における2台の中継装置間における分割サイズ通知フレームを用いた通信の他の例を示すシーケンス図である。 転送フレーム選択部におけるフレーム転送制御の一部を示すフローチャートである。
 以下に、本発明の実施の形態に係る中継装置1及び中継装置1におけるデータ転送方法を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。
実施の形態1.
 図1は、本発明の実施の形態1に係る中継装置1の構成を概略的に示すブロック図である。
 中継装置1は、中継装置1に入力される複数の種別のフレームを用いて通信(例えば、通信の中継)を行う。複数の種別のフレームは、低優先フレーム、高優先フレーム、及び分割サイズ通知フレームを含む。低優先フレームは、高優先フレームよりも転送の優先度が低いフレームである。高優先フレームは、低優先フレームよりも転送の優先度が高いフレームである。分割サイズ通知フレームは、フレーム(例えば、低優先フレーム)の分割サイズ(本実施の形態では、低優先フレームの最小フレーム長)を通知するためのフレームである。
 中継装置1は、少なくとも2つの入力ポート(第1の入力ポート9_1,第2の入力ポート9_2,…,及び第Nの入力ポート9_N;Nは3以上の整数)と、フレーム識別部2と、少なくとも2つのフレーム処理部(第1のフレーム処理部3_1,第2のフレーム処理部3_2,…,及び第Nのフレーム処理部3_N;Nは3以上の整数)と、少なくとも2つの出力ポート(第1の出力ポート10_1,第2の出力ポート10_2,…,及び第Nの出力ポート10_N;Nは3以上の整数)とを有する。
 中継装置1において、フレーム処理部及び出力ポートの数は互いに同じである。1つのフレーム処理部は、1つの出力ポートに対応する。例えば、第1のフレーム処理部3_1は、第1の出力ポート10_1に対応し、第Nのフレーム処理部3_Nは、第Nの出力ポート10_Nに対応する。1つのフレーム処理部から出力されたデータとしてのフレームは、対応する出力ポートを通して中継装置1の外部に出力される。
 フレーム処理部に関し、以下では、第1の出力ポート10_1に対応する第1のフレーム処理部3_1(以下、単に「フレーム処理部3_1」という)について説明するが、各フレーム処理部の構成及び基本的な動作は互いに同じである。
 フレーム識別部2は、中継装置1に入力されたフレーム(以下、受信フレームともいう)の種別を識別し、フレームの種別に応じてフレームを転送する。具体的には、フレーム識別部2は、受信フレームのヘッダ又はペイロード(ヘッダを除いたデータ領域)に定義されているアドレス及び識別子を判別基準として用いて、受信フレームを、高優先フレーム、低優先フレーム、又は分割サイズ通知フレームに振り分け、フレーム処理部3_1に向けて転送する。
 フレーム処理部3_1は、分割サイズ取得部4と、シフトレジスタ5と、低優先フレーム処理部6と、転送フレーム選択部7と、出力制御部8とを有する。
 フレーム処理部3_1に入力された受信フレームは、フレーム処理部3_1内の制御に従って、対応する出力ポート(本実施の形態では、第1の出力ポート10_1)を通して中継装置1の外部へ出力される。
 図2は、フレーム処理部3_1の具体的なハードウェア構成の一例を示す図である。
 フレーム処理部3_1は、例えば、メモリ3a及びCPU(Central Processing Unit)などのプロセッサ3bによって構成することができる。この場合、フレーム処理部3_1の機能は、メモリ3a及びプロセッサ3bによって実現される。ただし、フレーム処理部3_1の具体的なハードウェア構成は、図2に示される構成に限られない。
 分割サイズ取得部4は、例えば、FPGA(Field Programmable Gate Array)内部のレジスタ及び論理回路の組み合わせで構成される。
 分割サイズ取得部4は、中継装置1が受信可能な最小フレーム長(分割されたフレームの最も小さいフレーム長)を示す情報(例えば、A[byte])を、分割サイズ通知フレームf1に設定する。分割サイズ取得部4は、中継装置1についてのポートリンクアップを行うときに、転送フレーム選択部7からの出力指示に従って、最小フレーム長を示す情報を含む分割サイズ通知フレームf1を出力制御部8に向けて送信する。
 図3は、分割サイズ通知フレームf1におけるデータ記録形式(フレームフォーマットともいう)の一例を示す図である。
 最小フレーム長は、LLDP(Link Layer Discovery Protocol)フレームとしての分割サイズ通知フレームf1のDataのオプション領域に設定される。例えば、図3に示されるように、最小フレーム長は、分割サイズ通知フレームf1のData欄のオプション1の項目に設定される。さらに、オプション1に設定された分割サイズの有効又は無効を設定するフラグとして有効フラグ又は無効フラグを、他のオプション(例えば、オプション3)に設定してもよい。
 図4は、2台の中継装置(すなわち、前段装置としての中継装置1及び後段装置としての中継装置1a)間における分割サイズ通知フレームを用いた通信(ポートリンクアップ処理)の一例を示すシーケンス図である。中継装置1aは、中継装置1と通信を行う通信装置である。中継装置1aは、本実施の形態に係る中継装置1と同じ構成及び機能を有する。
 中継装置1が中継装置1aと共にポートリンクアップ処理を行うとき、中継装置1及び中継装置1aは、受信可能な低優先フレームの最小フレーム長を、分割サイズ通知フレームを用いて互いに通知する。図4に示される例では、中継装置1は、受信可能な低優先フレームの最小フレーム長がX[byte]であることを、分割サイズ通知フレームf1を用いて中継装置1aに通知する。中継装置1aは、受信可能な低優先フレームの最小フレーム長がA[byte]であることを、分割サイズ通知フレームf2を用いて中継装置1に通知する。分割サイズ通知フレームf2も図3に示される例と同様に構成することができる。
 中継装置1が中継装置1aから分割サイズ通知フレームf2を受信すると、分割サイズ通知フレームf2がフレーム識別部2から分割サイズ取得部4に転送され、分割サイズ取得部4は、分割サイズ通知フレームf2の中に設定されている情報に基づいて、中継装置1aが受信可能な低優先フレームの最小フレーム長がA[byte]であることを転送フレーム選択部7に通知する。この場合、例えば、分割サイズ取得部4は、中継装置1aから分割サイズ通知フレームf2を受信すると、分割サイズ通知フレームf2を転送フレーム選択部7に転送する。
 分割サイズ取得部4は、通信対象である他の通信装置(本実施の形態では、中継装置1a)から分割サイズ通知フレームf2を受信しているかどうかを判定するための分割サイズ通知フレーム受信タイマーを持っている。例えば、中継装置1が中継装置1aと共にポートリンクアップ処理を行うとき、中継装置1が分割サイズ通知フレームf1を送信するタイミングで分割サイズ通知フレーム受信タイマーが起動される。
 分割サイズ取得部4に設定されている時間インターバル内で、中継装置1が中継装置1aから分割サイズ通知フレームf2を受信していない場合は、中継装置1aが受信可能な低優先フレームの最小フレーム長(すなわち、分割可能な最小フレーム長)を、例えば、IEEE802.3brで規定された分割サイズである64[byte]に設定して転送フレーム選択部7に通知する。
 シフトレジスタ5には、フレーム識別部2で振り分けられた高優先フレームが格納される。シフトレジスタ5に高優先フレームの先頭が入力されたとき、シフトレジスタ5は、高優先フレームの先頭がシフトレジスタ5に入力されたことを通知するための高優先フレーム入力通知を転送フレーム選択部7に送信する。シフトレジスタ5は、転送フレーム選択部7からの出力指示に従って、高優先フレームを出力制御部8に向けて転送する。
 本実施の形態では、IEEE802.3brで規定されたサイズで構成されたシフトレジスタ5を用いる。この場合、シフトレジスタ5では、分割されたフレームの最小フレーム長をA[byte]とすると、A[byte]×2-1+IFG(Inter Frame Gap)で示される段数のシフトが行われる。
 低優先フレーム処理部6には、フレーム識別部2で振り分けられた低優先フレームが格納される。低優先フレーム処理部6に低優先フレームの全体が格納されたとき、低優先フレーム処理部6は、低優先フレームの転送要求を転送フレーム選択部7に送信すると共に、低優先フレーム全長と、転送完了低優先フレーム長と、転送未完了低優先フレーム長とを転送フレーム選択部7に通知する。低優先フレーム処理部6は、低優先フレーム処理部6に低優先フレームが格納されている間、低優先フレームの転送要求と、低優先フレーム全長、転送完了低優先フレーム長、及び転送未完了低優先フレーム長の通知とを定期的に行う。
 低優先フレーム全長は、低優先フレーム処理部6に格納された先頭の1フレームの長さを示す。転送完了低優先フレーム長は、低優先フレームの転送が中断されたときまでに低優先フレーム処理部6からの転送が完了された低優先フレームの長さを示す。転送未完了低優先フレーム長は、低優先フレーム処理部6に格納された低優先フレームのうち転送がされていない低優先フレームの長さを示し、すなわち、低優先フレーム全長と転送完了低優先フレーム長との差分を示す。
 低優先フレーム処理部6は、転送フレーム選択部7から出力指示(転送許可ともいう)を受信したとき、転送フレーム選択部7からの出力指示に従って、低優先フレームを出力制御部8に向けて転送する。低優先フレーム処理部6は、転送フレーム選択部7によって設定された低優先フレームの分割サイズ(すなわち、最小フレーム長)に低優先フレームを分割し、分割された低優先フレームの転送を行うことができる。
 転送フレーム選択部7は、分割サイズ取得部4、シフトレジスタ5、及び低優先フレーム処理部6を制御する。例えば、転送フレーム選択部7は、分割サイズ通知フレームを要求するとき、分割サイズ取得部4に出力指示を送信する。転送フレーム選択部7は、高優先フレームの転送を要求するとき、シフトレジスタ5に出力指示を送信する。転送フレーム選択部7は、低優先フレーム処理部6に格納されている低優先フレームの長さ又は低優先フレーム処理部6から転送された低優先フレームの長さに基づいて低優先フレームの転送を制御することができる。
 さらに、転送フレーム選択部7は、低優先フレームの分割サイズ(すなわち、分割された低優先フレームの長さ)を設定する。
 出力制御部8は、中継装置1の外部へのフレームの出力を制御する。本実施の形態では、出力制御部8は、転送フレーム選択部7の制御指示に基づいて、フレームを出力する。さらに、出力制御部8は、低優先フレーム処理部6から転送された、分割された低優先フレームを、低優先フレーム処理部6から転送された他の低優先フレームと結合する。出力制御部8は、結合された低優先フレームを、第1の出力ポート10_1を通して他の通信装置(本実施の形態では、中継装置1a)に向けて転送する。
 図5は、転送フレーム選択部7におけるフレーム転送制御を示すフローチャートである。
 中継装置1がポートリンクアップを行うとき、転送フレーム選択部7は、分割サイズ通知フレームf1を通信対象である他の通信装置(本実施の形態では、中継装置1a)に送信するように分割サイズ取得部4を制御する(ステップS1)。分割サイズ取得部4は、転送フレーム選択部7からの出力指示に従って、分割サイズ通知フレームf1を送信する。分割サイズ取得部4は、中継装置1aから分割サイズ通知フレームf2を受信すると、分割サイズ通知フレームf2を転送フレーム選択部7に転送する。
 ステップS2では、転送フレーム選択部7は、分割サイズ取得部4から分割サイズ通知フレームf2を受信したかどうか判定する。
 転送フレーム選択部7が分割サイズ通知フレームf2を受信していない場合(ステップS2においてNO)、転送フレーム選択部7は、低優先フレームの分割サイズを、例えば、IEEE802.3brで規定された最小分割サイズである64byteに設定し(ステップS3)、処理はステップS5に遷移する。
 転送フレーム選択部7が分割サイズ通知フレームf2を受信している場合(ステップS2においてYES)、転送フレーム選択部7は、その分割サイズ通知フレームf2に基づいて、低優先フレームの分割サイズをA[byte]に設定する(ステップS4)。本実施の形態では、転送フレーム選択部7は、低優先フレームの分割サイズを64byteよりも小さいサイズに設定する。
 ステップS5では、転送フレーム選択部7は、シフトレジスタ5から高優先フレーム入力通知を受信したか判定する。転送フレーム選択部7がシフトレジスタ5から高優先フレーム入力通知を受信していない場合(ステップS5においてNO)、処理はステップS14に遷移する。
 転送フレーム選択部7がシフトレジスタ5から高優先フレーム入力通知を受信している場合(ステップS5においてYES)、処理はステップS6に遷移する。
 ステップS6では、転送フレーム選択部7は、低優先フレーム処理部6から低優先フレームが転送中であるか判定する。低優先フレームが転送中ではない場合(ステップS6においてNO)、処理はステップS13に遷移する。
 低優先フレーム処理部6から低優先フレームが転送中である場合(ステップS6においてYES)、処理はステップS7に遷移する。
 ステップS7では、転送フレーム選択部7は、低優先フレーム全長が予め定められた長さB1(本実施の形態では、2×A[byte])以上か判定する。すなわち、本実施の形態では、転送フレーム選択部7は、低優先フレーム全長が2×A[byte]以上か判定する。
 低優先フレーム全長が予め定められた長さB1(本実施の形態では、2×A[byte])未満である場合(ステップS7においてNO)、転送フレーム選択部7は、低優先フレーム処理部6に格納されている低優先フレームを全て転送するように低優先フレーム処理部6へ出力指示を送信する(ステップS9)。低優先フレーム処理部6は、転送フレーム選択部7から出力指示を受信すると、低優先フレーム処理部6内の全ての低優先フレームを出力制御部8に向けて転送する。
 低優先フレーム全長が予め定められた長さB1(本実施の形態では、2×A[byte])以上である場合(ステップS7においてYES)、処理はステップS8に遷移する。
 ステップS8では、転送フレーム選択部7は、低優先フレーム処理部6に格納されている低優先フレームである転送未完了フレームの長さ(以下、「転送未完了フレーム長」という)が予め定められた長さB2以上であるか判定する。予め定められた長さB2は、分割サイズ取得部4から通知された最小フレーム長である。したがって、本実施の形態では、予め定められた長さB2はA[byte]であるので、転送フレーム選択部7は、転送未完了フレーム長がA[byte]以上であるか判定する。
 転送未完了フレーム長が予め定められた長さB2(本実施の形態では、分割サイズであるA[byte])未満である場合(ステップS8においてNO)、転送フレーム選択部7は、低優先フレーム処理部6に格納されている低優先フレームを全て転送するように低優先フレーム処理部6へ出力指示を送信し(ステップS9)、処理はステップS13に遷移する。
 転送未完了フレーム長が予め定められた長さB2(本実施の形態では、A[byte])以上である場合(ステップS8においてYES)、処理はステップS10に遷移する。
 ステップS10では、転送フレーム選択部7は、低優先フレーム処理部6から転送された低優先フレームである転送完了フレームの長さ(以下、「転送完了フレーム長」という)が予め定められた長さB2以上であるか判定する。予め定められた長さB2は、上述のように、分割サイズ取得部4から通知された最小フレーム長である。したがって、本実施の形態では、転送フレーム選択部7は、転送完了フレーム長がA[byte]以上であるか判定する。
 転送完了フレーム長が予め定められた長さB2(本実施の形態では、A[byte])以上である場合(ステップS10においてYES)、処理はステップS12に遷移する。
 転送完了フレーム長が予め定められた長さB2(本実施の形態では、A[byte])未満である場合(ステップS10においてNO)、転送フレーム選択部7は、低優先フレーム処理部6に格納されている低優先フレームを長さB2(本実施の形態では、A[byte])まで転送するように低優先フレーム処理部6へ出力指示を送信し(ステップS11)、処理はステップS12に遷移する。低優先フレーム処理部6は、転送フレーム選択部7から出力指示を受信すると、低優先フレームを長さB2まで出力制御部8に向けて転送する。
 ステップS12では、転送フレーム選択部7は、低優先フレームの転送を中断するように低優先フレーム処理部6を制御し、低優先フレーム処理部6に格納されている低優先フレームを、分割サイズ取得部4から通知された分割サイズである最小フレーム長(本実施の形態では、A[byte])に分割するように低優先フレーム処理部6を制御する。この場合、低優先フレーム処理部6は、低優先フレームの転送を中断し、分割サイズに基づいて低優先フレームを分割する。
 ステップS13では、転送フレーム選択部7は、シフトレジスタ5内の全ての高優先フレームを転送するようにシフトレジスタ5を制御する。特に、ステップS12の後のステップS13では、低優先フレームの転送が中断しているとき、転送フレーム選択部7は、シフトレジスタ5内の全ての高優先フレームを転送するようにシフトレジスタ5を制御する。
 ステップS13では、具体的には、転送フレーム選択部7は、シフトレジスタ5に出力指示を送信する。シフトレジスタ5は、転送フレーム選択部7から出力指示を受信すると、全ての高優先フレームを出力制御部8に向けて転送する。
 ステップS14では、転送フレーム選択部7は、低優先フレーム処理部6に低優先フレーム(分割された低優先フレームを含む)が格納されているか判定する。
 低優先フレーム処理部6に低優先フレーム(分割された低優先フレームを含む)が格納されていない場合(ステップS14においてNO)、処理はステップS5に戻る。
 低優先フレーム処理部6に低優先フレーム(分割された低優先フレームを含む)が格納されている場合(ステップS14においてYES)、シフトレジスタ5から高優先フレームが転送された後に、転送フレーム選択部7は、最小フレーム長(本実施の形態では、A[byte])の低優先フレーム(すなわち、分割された低優先フレーム)の転送を行うように低優先フレーム処理部6を制御する(ステップS15)。具体的には、転送フレーム選択部7は、低優先フレーム処理部6に出力指示を送信する。出力制御部8は、低優先フレーム処理部6から転送された、分割された低優先フレームを、低優先フレーム処理部6から転送された他の低優先フレームと結合する。さらに、出力制御部8は、結合された低優先フレームを、第1の出力ポート10_1を通して中継装置1aに向けて転送する。
 本発明の実施の形態に係る中継装置1の効果について以下に説明する。
 図6は、比較例1に係る中継装置で低優先フレームL及び高優先フレームHの転送競合が発生したときの中継装置から出力されるフレームを示す図である。
 比較例1に係る中継装置では、低優先フレームL及び高優先フレームHの転送競合が発生したとき、低優先フレームLのうちの廃棄可能な部分である低優先フレームL0が中継装置から出力されるとともに、低優先フレームLの出力が中断される。中継装置から出力された低優先フレームL0は後段装置で廃棄され、低優先フレームLは、高優先フレームHが出力された後に中継装置から出力される。そのため、比較例1に係る中継装置における転送方式では実行帯域が低下する。
 図7は、比較例2に係る中継装置で低優先フレームL及び高優先フレームHの転送競合が発生したときの中継装置から出力されるフレームを示す図である。
 比較例2に係る中継装置では、IEEE802.3brで規定された転送方式が用いられる。比較例2に係る中継装置では、低優先フレームL及び高優先フレームHの転送競合が発生したとき、低優先フレームLを分割して中継装置から出力し、後段装置で分割された低優先フレームの結合が行われる。これにより、低優先フレームの廃棄を回避することができる。しかしながら、IEEE802.3brで規定された転送方式では、低優先フレームの分割フレームの長さが64byte以上と定義されているため、127byte以下のフレームは分割することができない。そのため、比較例2に係る中継装置では、高優先フレームHと、127byte以下のフレーム長である低優先フレームLとが競合した場合、その低優先フレームLを全て転送した後でなければ高優先フレームHを転送できない。したがって、低優先フレームLの長さが127byteであるとき、t1=127+IFG[byte]のデータ送信時間の遅延及び転送間隔の揺らぎが発生する。
 図8は、本実施の形態に係る中継装置1で低優先フレーム及び高優先フレームの転送競合が発生したときの中継装置1から出力されるフレームを示す図である。
 本実施の形態に係る中継装置1では、分割可能な最小フレーム長は、A[byte]であり、高優先フレームの最大遅延揺らぎはA×2-1+IFG[byte]である。本実施の形態では、他の通信装置である中継装置1aから受信した分割サイズ通知フレームf2に基づいて、低優先フレームの分割サイズを、A[byte]に設定する(図5におけるステップS4)。したがって、分割サイズ通知フレームf2に従って低優先フレームの分割サイズを64byteよりも小さく設定することができる。
 したがって、最小フレーム長A[byte]を、64[byte]よりも小さくすることにより高優先フレームの最大遅延時間及び最大揺らぎの合計t2を、比較例2に係る中継装置における高優先フレームの遅延時間及び揺らぎ、すなわちt1=127+IFG[byte]よりも小さくすることができる。その結果として、本実施の形態に係る中継装置1は、低優先フレームの廃棄を行わずに、高優先フレームの遅延時間を低減し転送間隔の揺らぎを低減することができる。
 ただし、中継装置1で分割された低優先フレームを、後段装置(例えば、中継装置1a)で他の低優先フレームと結合してもよい。これにより、比較例1に係る中継装置に比べて低優先フレームの実効帯域を保つことができる。
実施の形態2.
 上述の実施の形態1では、後段装置が受信可能な最小フレーム長(すなわち、A[byte])に基づいて、前段装置において低優先フレームの分割サイズを設定しデータ転送を行う方法について説明した。実施の形態2では、前段装置での分割可能な低優先フレームの最小フレーム長と、後段装置での分割可能な低優先フレームの最小フレーム長とに基づいて、前段装置及び後段装置において低優先フレームの分割サイズを設定しデータ転送を行う方法について説明する。実施の形態2では、実施の形態1に係る中継装置1の動作と異なる動作について説明する。
 図9は、実施の形態2における2台の中継装置(すなわち、前段装置としての中継装置1及び後段装置としての中継装置1a)間における分割サイズ通知フレームを用いた通信(ポートリンクアップ処理)の一例を示すシーケンス図である。
 図10は、実施の形態2における2台の中継装置(すなわち、前段装置としての中継装置1及び後段装置としての中継装置1a)間における分割サイズ通知フレームを用いた通信(ポートリンクアップ処理)の他の例を示すシーケンス図である。
 図11は、転送フレーム選択部7におけるフレーム転送制御の一部を示すフローチャートである。実施の形態2では、図11における処理は、図5に示されるステップS1からS4までの処理と置き換えられる。
 実施の形態1では、図5に示されるステップS1からS4までの処理において、前段装置としての中継装置1がポートリンクアップを行うとき、後段装置としての中継装置1aから受信した分割サイズ通知フレームf2に基づいて低優先フレームの分割サイズ(すなわち、最小フレーム長)を設定する(ステップS4)。一方、実施の形態2では、前段装置としての中継装置1の分割サイズ取得部4が分割可能な分割サイズと、後段装置としての中継装置1aが分割可能な分割サイズとを比較して、低優先フレームの分割サイズを設定する。具体的には、中継装置1及び1aにおいて、分割可能な最小フレーム長が大きい方を、中継装置1及び1aにおける低優先フレームの分割サイズとして設定し、互いに設定の通知を行う。これにより、中継装置1及び1aの両方が分割可能な低優先フレームの最小フレーム長が、低優先フレームの分割サイズとして中継装置1及び1aにおいて設定される。
 中継装置1がポートリンクアップを行うとき、転送フレーム選択部7は、分割サイズ通知フレームf1を通信対象である他の通信装置(本実施の形態では、中継装置1a)に送信するように分割サイズ取得部4を制御する(ステップS21)。分割サイズ通知フレームf1には、中継装置1(具体的には、低優先フレーム処理部6)が分割可能な低優先フレームの最小分割サイズ(すなわち、最小フレーム長X1[byte])を示す情報が含まれる。
 分割サイズ取得部4は、転送フレーム選択部7からの出力指示に従って、分割サイズ通知フレームf1を中継装置1aに向けて送信する。これにより図9に示されるように、中継装置1と中継装置1aとの間で、分割サイズ通知フレームf1及びf2の通信が行われ、分割可能な最小分割サイズを互いに通知し合う。中継装置1aは、最小フレーム長X1と最小フレーム長X2とを比較し、大きい方を分割サイズとして設定する。分割サイズ取得部4は、中継装置1aから分割サイズ通知フレームf2を受信すると、分割サイズ通知フレームf2を転送フレーム選択部7に転送する。分割サイズ通知フレームf2には、中継装置1aが分割可能な最小分割サイズ(すなわち、最小フレーム長X2[byte])を示す情報が含まれる。
 ステップS22では、転送フレーム選択部7は、分割サイズ取得部4から分割サイズ通知フレームf2を受信したかどうか判定する。
 転送フレーム選択部7が分割サイズ通知フレームf2を受信していない場合(ステップS22においてNO)、低優先フレームの分割サイズを、例えば、IEEE802.3brで規定された最小分割サイズである64byteに設定し(ステップS23)、処理はステップS5(図5)に遷移する。
 転送フレーム選択部7が分割サイズ通知フレームf2を受信している場合(ステップS22においてYES)、転送フレーム選択部7は、最小フレーム長X1と最小フレーム長X2とを比較する(ステップS24)。
 最小フレーム長X1が最小フレーム長X2よりも小さい場合(ステップS24においてYES)、転送フレーム選択部7は、その分割サイズ通知フレームf2に基づいて、低優先フレームの分割サイズを、X2[byte]に設定し、分割サイズ通知フレームf1を通信対象である他の通信装置(本実施の形態では、中継装置1a)に送信するように分割サイズ取得部4を制御する(ステップS25)。この場合、分割サイズ通知フレームf1には、中継装置1で設定される最小フレーム長を示す情報としてX2[byte]が含まれている。
 最小フレーム長X1が最小フレーム長X2よりも小さい場合(ステップS24においてYES)、図9に示されるように、中継装置1(具体的には、分割サイズ取得部4)は、中継装置1において設定する分割サイズ(最小フレーム長X2[byte])を、分割サイズ通知フレームf3を用いて中継装置1aに通知する(ステップS25)。分割サイズ通知フレームf3も図3に示される例と同様に構成することができる。
 最小フレーム長X1が最小フレーム長X2以上である場合(ステップS24においてNO)、転送フレーム選択部7は、低優先フレームの分割サイズを、X1に設定する。この場合、図10に示されるように、中継装置1は、中継装置1aから分割サイズ通知フレームf4を受信し、中継装置1aで設定される分割サイズもX1であることを中継装置1aから通知される。分割サイズ通知フレームf4も図3に示される例と同様に構成することができる。
 実施の形態2によれば、実施の形態1で説明した効果と同じ効果を得ることができる。
 1,1a 中継装置、 2 フレーム識別部、 3_1,3_2 フレーム処理部、 4 分割サイズ取得部、 5 シフトレジスタ、 6 低優先フレーム処理部、 7 転送フレーム選択部、 8 出力制御部、 9_1,9_2 入力ポート、 10_1,10_2 出力ポート。

Claims (11)

  1.  複数の種別のフレームを用いて通信を行う中継装置であって、
     前記フレームの前記種別を識別し、前記種別に応じて前記フレームを転送するフレーム識別部と、
     前記複数の種別のフレームのうちの低優先フレームの分割サイズを通知するための分割サイズ通知フレームを送信する分割サイズ取得部と、
     前記複数の種別のフレームのうちの、前記低優先フレームよりも優先度が高いフレームである高優先フレームを転送するシフトレジスタと、
     前記低優先フレームを転送する低優先フレーム処理部と、
     前記分割サイズ取得部、前記シフトレジスタ、及び前記低優先フレーム処理部を制御する転送フレーム選択部と、
     前記低優先フレーム処理部から転送された、分割された前記低優先フレームを、他の前記低優先フレームと結合し、結合された前記低優先フレームを転送する出力制御部と
    を備えることを特徴とする中継装置。
  2.  前記転送フレーム選択部は、前記低優先フレーム処理部に格納されている前記低優先フレームの長さに基づいて、前記低優先フレームの転送を制御することを特徴とする請求項1に記載の中継装置。
  3.  前記転送フレーム選択部は、前記分割された低優先フレームの長さである分割サイズを設定することを特徴とする請求項1又は2に記載の中継装置。
  4.  前記分割サイズは、64バイトよりも小さいことを特徴とする請求項3に記載の中継装置。
  5.  前記転送フレーム選択部は、前記中継装置と通信を行う通信装置から受信した分割サイズ通知フレームに基づいて前記分割サイズを設定する請求項3に記載の中継装置。
  6.  前記分割サイズは、前記通信装置が受信可能な前記低優先フレームの最小フレーム長であることを特徴とする請求項5に記載の中継装置。
  7.  前記分割サイズは、前記中継装置及び前記通信装置が分割可能な前記低優先フレームの最小フレーム長であることを特徴とする請求項5に記載の中継装置。
  8.  前記低優先フレーム処理部から転送された前記低優先フレームの長さが前記分割サイズ以上である場合、前記転送フレーム選択部は、前記低優先フレームの転送を中断するように前記低優先フレーム処理部を制御し、前記低優先フレーム処理部に格納されている前記低優先フレームを、前記分割サイズに分割するように前記低優先フレーム処理部を制御することを特徴とする請求項3から7のいずれか1項に記載の中継装置。
  9.  前記低優先フレームの転送が中断しているとき、前記転送フレーム選択部は、前記シフトレジスタ内の全ての前記高優先フレームを転送するように前記シフトレジスタを制御することを特徴とする請求項8に記載の中継装置。
  10.  前記低優先フレーム処理部に前記分割された低優先フレームが格納されている場合、前記シフトレジスタから前記高優先フレームが転送された後に、前記転送フレーム選択部は、前記分割された低優先フレームの転送を行うように前記低優先フレーム処理部を制御することを特徴とする請求項9に記載の中継装置。
  11.  複数の種別のフレームを用いて通信装置と通信を行う中継装置におけるデータ転送方法であって、
     前記通信装置から受信した、前記複数の種別のフレームのうちの分割サイズ通知フレームに基づいて、前記複数の種別のフレームのうちの低優先フレームの分割サイズを設定するステップと、
     前記分割サイズに基づいて前記低優先フレームを分割するステップと、
     分割された前記低優先フレームの転送を行うステップと、
     分割された前記低優先フレームを、他の前記低優先フレームと結合するステップと、
    結合された前記低優先フレームを前記通信装置に向けて転送するステップと
     を備えることを特徴とするデータ転送方法。
PCT/JP2017/010147 2017-03-14 2017-03-14 中継装置及びデータ転送方法 WO2018167838A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019505556A JP6752355B2 (ja) 2017-03-14 2017-03-14 中継装置及びデータ転送方法
PCT/JP2017/010147 WO2018167838A1 (ja) 2017-03-14 2017-03-14 中継装置及びデータ転送方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2017/010147 WO2018167838A1 (ja) 2017-03-14 2017-03-14 中継装置及びデータ転送方法

Publications (1)

Publication Number Publication Date
WO2018167838A1 true WO2018167838A1 (ja) 2018-09-20

Family

ID=63521871

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2017/010147 WO2018167838A1 (ja) 2017-03-14 2017-03-14 中継装置及びデータ転送方法

Country Status (2)

Country Link
JP (1) JP6752355B2 (ja)
WO (1) WO2018167838A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021090726A1 (ja) * 2019-11-08 2021-05-14 ソニー株式会社 情報処理装置、情報処理方法、およびプログラム

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63276395A (ja) * 1987-05-07 1988-11-14 Fujitsu Ltd 空間スイッチ
JP2007288491A (ja) * 2006-04-17 2007-11-01 Nippon Telegr & Teleph Corp <Ntt> フレームの分割回路、該分割回路を用いた伝送システム及び方法
JP2013187766A (ja) * 2012-03-08 2013-09-19 Fujitsu Ltd データブロック出力装置、通信システム、データブロック出力方法、及び通信方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63276395A (ja) * 1987-05-07 1988-11-14 Fujitsu Ltd 空間スイッチ
JP2007288491A (ja) * 2006-04-17 2007-11-01 Nippon Telegr & Teleph Corp <Ntt> フレームの分割回路、該分割回路を用いた伝送システム及び方法
JP2013187766A (ja) * 2012-03-08 2013-09-19 Fujitsu Ltd データブロック出力装置、通信システム、データブロック出力方法、及び通信方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021090726A1 (ja) * 2019-11-08 2021-05-14 ソニー株式会社 情報処理装置、情報処理方法、およびプログラム

Also Published As

Publication number Publication date
JP6752355B2 (ja) 2020-09-09
JPWO2018167838A1 (ja) 2019-07-04

Similar Documents

Publication Publication Date Title
US11477107B2 (en) Method for data communication in an industrial network, control method, device, computer program and computer-readable medium
US7697529B2 (en) Fabric channel control apparatus and method
CN100451975C (zh) 实现多核cpu进行报文联合处理的系统及方法
EP3474496B1 (en) Transfer device and frame transfer method
WO2011108174A1 (ja) 中継器
US11513985B2 (en) RoCE over wireless
TWI665896B (zh) 用以傳輸通訊訊號訊框之方法、實體及程式
JP2013534103A (ja) 少なくとも部分的なフレーム送信の割り込み
US20200351215A1 (en) Data Stream Sending Method and System, and Device
US8838782B2 (en) Network protocol processing system and network protocol processing method
EP2911353B1 (en) Method and device for flow path negotiation in link aggregation group
WO2018167838A1 (ja) 中継装置及びデータ転送方法
JP6847334B2 (ja) ネットワーク装置、ネットワークシステム、ネットワーク方法、およびネットワークプログラム
US20180026864A1 (en) Communication apparatus, communication system, and communication method
EP3166257A1 (en) Start-up triggering in an ethernet-based in-vehicle network
JP2007088709A (ja) パケット通信装置およびその処理方法
EP2953299B1 (en) Protection switching method, system and node
CN102055657A (zh) Fc数据报文的负载分担方法和fc交换机系统
US10594607B2 (en) Switching apparatus, switching apparatus group, data transmission method, and computer system
JP6437175B1 (ja) ネットワーク管理システムおよびネットワーク管理方法
CN116346720A (zh) 一种传输信息的装置和方法
JP2009206900A (ja) データ転送装置
US20080205567A1 (en) Methods and Receives of Data Transmission Using Clock Domains
JP2009267822A (ja) 通信装置
JP6482487B2 (ja) 通信装置および切替制御方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17900919

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019505556

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17900919

Country of ref document: EP

Kind code of ref document: A1