JP2021034863A - Relay and communication system - Google Patents

Relay and communication system Download PDF

Info

Publication number
JP2021034863A
JP2021034863A JP2019152772A JP2019152772A JP2021034863A JP 2021034863 A JP2021034863 A JP 2021034863A JP 2019152772 A JP2019152772 A JP 2019152772A JP 2019152772 A JP2019152772 A JP 2019152772A JP 2021034863 A JP2021034863 A JP 2021034863A
Authority
JP
Japan
Prior art keywords
communication
priority
communication packet
priority information
packet
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
JP2019152772A
Other languages
Japanese (ja)
Other versions
JP7299106B2 (en
Inventor
洋一 小松
Yoichi Komatsu
洋一 小松
圭助 寺田
Keisuke Terada
圭助 寺田
茂樹 佐野
Shigeki Sano
茂樹 佐野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yazaki Corp
Original Assignee
Yazaki Corp
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 Yazaki Corp filed Critical Yazaki Corp
Priority to JP2019152772A priority Critical patent/JP7299106B2/en
Publication of JP2021034863A publication Critical patent/JP2021034863A/en
Application granted granted Critical
Publication of JP7299106B2 publication Critical patent/JP7299106B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

To make it possible to improve an allocation system for packet priority order to minimize communication delay of packets in TSN.SOLUTION: A relay for relaying communication packets having priority information for transferring the communication packets in priority order using a communication method having a communication cycle including a dedicated communication time band corresponding to the priority information includes a switch processing unit that when a communication packet having highest priority information is received within a time limit before finish time of a dedicated communication time band corresponding to the highest priority information, outputs the communication packet to a preferential buffer unit corresponding to the highest priority information of the communication packet, lowers the communication packet's priority information to priority information having the next priority, and additionally outputs the communication packet to a buffer unit of an output buffer unit corresponding to the lowered priority information.SELECTED DRAWING: Figure 6

Description

本発明は、中継器および通信システムに関する。 The present invention relates to repeaters and communication systems.

従来から、IEEE(Institute of Electrical and Electronics Engineers)規格においてTSN(Time Sensitive Networking)が検討されてきている。TSNはフィールド規格ではなく、IEEE802.1を拡張する複数種類のさまざまな技術規格のセットであり、イーサネット(登録商標)ベースのネットワーク技術と組み合わせが可能である。TSNを構成する技術規格のなかにはIEEE802.1AS(Timing and Synchronization)、IEEE802.1Qbv(Time Aware Shaper)が含まれる。 Conventionally, TSN (Time Sensitive Networking) has been studied in the IEEE (Institute of Electrical and Electronics Engineers) standard. TSN is not a field standard, but a set of various technical standards that extend IEEE 802.1 and can be combined with Ethernet®-based network technology. The technical standards constituting the TSN include IEEE802.1AS (Timening and Synchronization) and IEEE802.1Qbv (Time Aware Shiper).

IEEE802.1AS(Timing and Synchronization)はネットワーク内の時刻同期を改善する技術であり、時間リレー機能を実装する。ネットワーク内で時刻のグランドマスターのポートがクロックマスター(CM)となり、それを接続したスイッチのポートがクロックスレーブ(CS)になる。スイッチ内でCSから他のポートのCMに時間をリレーし、CMの先にはノードやカスケードでスイッチがCSとして接続され、時間リレーが行われる技術である。 IEEE802.1AS (Timing and Synchronization) is a technology for improving time synchronization in a network, and implements a time relay function. In the network, the port of the time grand master becomes the clock master (CM), and the port of the switch to which it is connected becomes the clock slave (CS). This is a technology in which time is relayed from CS to CM of another port in the switch, and the switch is connected as CS by a node or cascade at the end of CM, and time relay is performed.

IEEE802.1Qbv(Time Aware Shaper)は、通信フレームをトラフィッククラスで区別するとともに、1周期に対しトラフィッククラスごとの通信時間帯を割り当てる。ただし、優先度の低い通信フレームが割当時間帯の終わる直前に送信が始まると後続の時間帯に入り込むので、時間帯終了前にガードバンドという最大フレーム長の送信時間に相当する通信できない時間帯を作成する場合がある。 IEEE802.1Qbv (Time Aware Shiper) distinguishes communication frames by traffic class and allocates a communication time zone for each traffic class for one cycle. However, if transmission of a low-priority communication frame starts immediately before the end of the allocated time zone, it will enter the subsequent time zone. May be created.

このように、TSNはIEEEでの規格化が進められている高速・低遅延のネットワーク規格であり、高いリアルタイム性が求められるオーディオ/ビデオ配信用ネットワークや車載ネットワーク、産業用ネットワークでの利用が期待されている。また、上述したように、TSNでは、ネットワークに参加する全端末で時刻同期を行い、優先度によってパケットを送信できる時間を分割することで、高優先度に設定した通信の帯域を確保している。 In this way, TSN is a high-speed, low-latency network standard that is being standardized by the IEEE, and is expected to be used in audio / video distribution networks, in-vehicle networks, and industrial networks that require high real-time performance. Has been done. Further, as described above, in TSN, the communication band set to the high priority is secured by synchronizing the time with all the terminals participating in the network and dividing the time during which the packet can be transmitted according to the priority. ..

TSNの時間分割方法の説明として、VLAN(Virtual Local Area Network)プライオリティ番号(PCP: Priority Code Point)で優先度を定めた例を説明する。一例として、優先度がもっとも高い通信を、VLANプライオリティ番号を7とし、6、5、4と番号の降順に優先度が下がり、VLANプライオリティ番号0がもっとも優先度が低い通信としている。 As an explanation of the time division method of TSN, an example in which priority is determined by a VLAN (Virtual Local Area Network) priority number (PCP: Priority Code Point) will be described. As an example, the communication with the highest priority has a VLAN priority number of 7, the priority decreases in descending order of numbers 6, 5, 4, and the VLAN priority number 0 is the communication with the lowest priority.

VLANプライオリティ番号7の通信パケットは各サイクルの先頭の時間帯に割り当てられ、この時間帯を高優先度通信専用時間帯とも称する。すなわち、高優先度通信専用時間帯は、VLANプライオリティ番号7の通信パケットのみが送受信できる時間帯であって、他のVLANプライオリティ番号6〜0の通信パケットは送受信できない時間帯である。VLANプライオリティ番号6〜0の通信パケットは、各サイクルの高優先度通信専用時間帯に後続する時間帯に割り当てられ、送受信が許可される。なお、各サイクルで送信できなかった通信パケットは次のサイクルで送信する。例えば、高優先度通信専用時間帯に通信パケットの送信が完了しない場合には、当該通信パケットは、次のサイクルの高優先度通信専用時間帯に送信される。 The communication packet of VLAN priority number 7 is assigned to the time zone at the beginning of each cycle, and this time zone is also referred to as a high priority communication dedicated time zone. That is, the high-priority communication dedicated time zone is a time zone in which only the communication packet of the VLAN priority number 7 can be transmitted and received, and the communication packet of other VLAN priority numbers 6 to 0 cannot be transmitted and received. The communication packets having the VLAN priority numbers 6 to 0 are assigned to the time zone following the high priority communication dedicated time zone of each cycle, and transmission / reception is permitted. Communication packets that could not be transmitted in each cycle are transmitted in the next cycle. For example, when the transmission of the communication packet is not completed in the high priority communication dedicated time zone, the communication packet is transmitted in the high priority communication dedicated time zone of the next cycle.

IEEE802.1Qbv(http://www.ieee802.org/1/pages/802.1bv.html)IEEE802.1Qbv (http://www.ieee802.org/1/pages/802.1bv.html)

しかし、上記従来技術の開示によれば、伝搬遅延などにより、高優先度通信専用時間内で送れなかった通信パケットは、次サイクルの高優先度通信専用時間になるまで中継器のバッファから出力できず、リアルタイム性を大きく損なってしまうという課題があった。そこで、本発明はこのような課題を解決する手段を提供することを目的とする。 However, according to the above disclosure of the prior art, communication packets that could not be sent within the high priority communication dedicated time due to propagation delay or the like can be output from the buffer of the repeater until the high priority communication dedicated time of the next cycle is reached. However, there was a problem that the real-time property was greatly impaired. Therefore, an object of the present invention is to provide a means for solving such a problem.

本発明の態様に係わる中継器は、通信パケットを優先度順に伝送するための優先度情報を有する前記通信パケットに対して、前記優先度情報に対応する専用の通信時間帯を通信サイクルに含む通信方式を用いて、前記通信パケットを中継する中継器であって、入力された前記通信パケットから前記通信パケットの前記優先度情報を抽出し、前記優先度情報に対応する、出力バッファ部のバッファ部に前記通信パケットを出力するスイッチ処理部を含み、前記スイッチ処理部は、最高の優先度情報を有する前記通信パケットを前記最高の優先度情報に対応する専用の通信時間帯の終了時刻から遡った制限時間内に受信した場合には、前記通信パケットの前記最高の優先度情報に対応する、出力バッファ部の優先用バッファ部に出力し、前記通信パケットの前記優先度情報を次の優先度の優先度情報に下げ、前記通信パケットを前記下げられた優先度情報に対応する、前記出力バッファ部のバッファ部にも出力することが好ましい。 The repeater according to the aspect of the present invention is a communication cycle including a dedicated communication time zone corresponding to the priority information for the communication packet having priority information for transmitting the communication packet in the order of priority. A repeater that relays the communication packet by using the method, extracts the priority information of the communication packet from the input communication packet, and corresponds to the priority information, the buffer unit of the output buffer unit. Includes a switch processing unit that outputs the communication packet, and the switch processing unit traces the communication packet having the highest priority information back from the end time of the dedicated communication time zone corresponding to the highest priority information. If it is received within the time limit, it is output to the priority buffer section of the output buffer section corresponding to the highest priority information of the communication packet, and the priority information of the communication packet is of the next priority. It is preferable to lower the priority information and output the communication packet to the buffer section of the output buffer section corresponding to the lowered priority information.

前記制限時間は、最高の優先度情報を有する通信パケットが自中継器から送信宛の通信端末に転送されるまでの時間であることが好ましい。 The time limit is preferably the time until the communication packet having the highest priority information is transferred from the self-repeater to the communication terminal addressed to transmission.

前記下げられた優先度情報に対応する、前記出力バッファ部のバッファ部は通常用バッファ部であり、前記通常用バッファ部には、優先度情報が書き換えられていない前記通常用バッファ部の優先度情報に対応する通信パケットも格納されることが好ましい。 The buffer section of the output buffer section corresponding to the lowered priority information is a normal buffer section, and the priority of the normal buffer section in which the priority information is not rewritten in the normal buffer section. It is preferable that the communication packet corresponding to the information is also stored.

前記スイッチ処理部は、前記優先用バッファ部に格納された前記最高の優先度情報を有する通信パケットを送信し、前記最高の優先度情報に対応する専用の通信時間帯に当該通信パケットが送信完了した場合には、前記通常用バッファ部に格納された前記優先度情報が書き換えられた通信パケットを削除することが好ましい。 The switch processing unit transmits a communication packet having the highest priority information stored in the priority buffer unit, and the communication packet is transmitted in a dedicated communication time zone corresponding to the highest priority information. If this is the case, it is preferable to delete the communication packet in which the priority information stored in the normal buffer unit has been rewritten.

前記スイッチ処理部は、前記優先用バッファ部に格納された前記最高の優先度情報を有する通信パケットの送信が前記最高の優先度情報に対応する専用の通信時間帯に完了しない場合には、前記通常用バッファ部に格納された前記優先度情報が書き換えられた通信パケットを送信し、前記優先用バッファ部に格納された前記最高の優先度情報を有する通信パケットを削除することが好ましい。 When the switch processing unit does not complete the transmission of the communication packet having the highest priority information stored in the priority buffer unit in the dedicated communication time zone corresponding to the highest priority information, the switch processing unit said. It is preferable to transmit the communication packet in which the priority information stored in the normal buffer unit is rewritten, and delete the communication packet having the highest priority information stored in the priority buffer unit.

前記スイッチ処理部は、1通信サイクルの終了時に、優先度情報が書き換えられた通信パケットが、書き換えられた優先度情報に対応する、前記出力バッファ部のバッファ部に存在する場合には、当該通信パケットの優先度情報を書き換えられる前の優先度情報に戻し、当該通信パケットを書き換えられる前の優先度情報に対応する、前記出力バッファ部のバッファ部に移動させることが好ましい。 At the end of one communication cycle, the switch processing unit performs the communication when the communication packet whose priority information has been rewritten exists in the buffer unit of the output buffer unit corresponding to the rewritten priority information. It is preferable to return the priority information of the packet to the priority information before being rewritten and move the communication packet to the buffer unit of the output buffer unit corresponding to the priority information before being rewritten.

前記スイッチ処理部は、1通信サイクルの開始時に、前記優先用バッファ部に格納された最高の優先度情報を有する通信パケットが存在する場合には、当該最高の優先度情報を有する通信パケットを、前記最高の優先度情報に対応する専用の通信時間帯に送信することが好ましい。 At the start of one communication cycle, the switch processing unit transfers the communication packet having the highest priority information stored in the priority buffer unit to the communication packet having the highest priority information. It is preferable to transmit in a dedicated communication time zone corresponding to the highest priority information.

前記通信方式は、最も優先度が高い通信パケットを伝送するための高優先度通信時間帯およびその他の優先度を有する通信パケットを伝送するための通信時間帯を前記通信サイクルに有し、前記高優先度通信時間帯は各通信サイクルの先頭に位置することが好ましい。 The communication method has a high priority communication time zone for transmitting a communication packet having the highest priority and a communication time zone for transmitting a communication packet having another priority in the communication cycle, and the high priority communication method is provided. The priority communication time zone is preferably located at the beginning of each communication cycle.

本発明の他の態様に係わる通信システムは、少なくとも一つ以上の前記中継器と、前記中継器に直接的または間接的に接続される、前記通信パケットを送受信する少なくとも一つ以上の通信端末を含むことが好ましい。 A communication system according to another aspect of the present invention comprises at least one or more repeaters and at least one or more communication terminals that are directly or indirectly connected to the repeaters and that transmit and receive the communication packets. It is preferable to include it.

本発明によれば、高優先度に設定した通信パケットが、伝搬遅延により高優先度通信専用時間内に送れなくなった場合には、中継器で優先度を一段下げることで、遅延を最小限にし、高優先度通信専用時間帯の通信資源を効率的に使用することが可能となる。 According to the present invention, when a communication packet set to a high priority cannot be sent within the high priority communication dedicated time due to propagation delay, the delay is minimized by lowering the priority by one step with a repeater. , It becomes possible to efficiently use the communication resources in the high priority communication dedicated time zone.

本実施形態に係わる通信システムのネットワークの構成の一例を示す図である。It is a figure which shows an example of the network structure of the communication system which concerns on this embodiment. 本実施形態に係わる通信システムの通信サイクルの一例を示す図である。It is a figure which shows an example of the communication cycle of the communication system which concerns on this embodiment. 本実施形態に係わる通信システムに含まれる中継器の一例を示すブロック図である。It is a block diagram which shows an example of the repeater included in the communication system which concerns on this embodiment. (a)本実施形態に係わる優先度の切り替え処理時間を説明するための模式図である。(b)本実施形態に係わる制限時間を説明するための模式図である。(c)本実施形態に係わる制限時間の演算方法を説明するための模式図である。(A) It is a schematic diagram for demonstrating the priority switching processing time which concerns on this Embodiment. (B) It is a schematic diagram for demonstrating the time limit which concerns on this Embodiment. (C) It is a schematic diagram for demonstrating the calculation method of the time limit which concerns on this Embodiment. 実施形態に係わる中継器の一部の動作例を示すフローチャートである。It is a flowchart which shows the operation example of a part of the repeater which concerns on embodiment. 実施形態に係わる中継器の一部の動作例を示すフローチャートである。It is a flowchart which shows the operation example of a part of the repeater which concerns on embodiment. (a)実施形態に係わる中継器の一部の動作例を説明する模式図である。(b)実施形態に係わる中継器の一部の動作例を説明する模式図である。(c)実施形態に係わる中継器の一部の動作例を説明する模式図である。(A) It is a schematic diagram explaining a part operation example of the repeater which concerns on embodiment. (B) It is a schematic diagram explaining a part operation example of the repeater which concerns on embodiment. (C) It is a schematic diagram explaining a part operation example of the repeater which concerns on embodiment. 本実施形態に係わる優先番号の変更履歴の検出を説明する模式図である。It is a schematic diagram explaining the detection of the change history of the priority number which concerns on this embodiment. 本実施形態に係わる通信システムの動作の一例を説明する図である。It is a figure explaining an example of the operation of the communication system which concerns on this embodiment. 本実施形態の中継器の機能を有する電子機器を含む車載ネットワークの一例を示す図である。It is a figure which shows an example of the in-vehicle network including the electronic device which has the function of the repeater of this embodiment.

(通信システムおよび通信サイクルの概要)
図1に本実施形態に係る通信システム1000の一例を図示する。通信システム1000には、通信端末1〜N+1(Nは1以上の自然数)と、通信端末1〜N+1間で送受信される通信パケットを中継する中継器C100、中継器C200および中継器C300が含まれる。図1では、中継器が3台開示されているが1台以上であれば任意の数の中継器が配置されてよい。なお、通信パケットは有線または無線で伝送されることが可能である。
(Overview of communication system and communication cycle)
FIG. 1 illustrates an example of the communication system 1000 according to the present embodiment. The communication system 1000 includes communication terminals 1 to N + 1 (N is a natural number of 1 or more), and a repeater C100, a repeater C200, and a repeater C300 that relay communication packets transmitted and received between the communication terminals 1 to N + 1. .. In FIG. 1, three repeaters are disclosed, but any number of repeaters may be arranged as long as there is one or more repeaters. The communication packet can be transmitted by wire or wirelessly.

図2に通信システム1000において送受信される通信パケットの送受信サイクルの一例を図示する。各通信サイクルは、通信パケットが送受信されるべき優先度に基づいて通信期間が区分されている。すなわち、通信システム1000において送受信される通信パケットには、通信パケットが送受信されるべき優先度を示す優先度情報がヘッダー等の情報として含まれ、優先度情報に基づいて送受信サイクルが構成される。図2の通信システム1000では、VLANプライオリティ番号(PCP(Priority Code Point))で優先度情報を定めた例を示している。 FIG. 2 illustrates an example of a transmission / reception cycle of communication packets transmitted / received in the communication system 1000. Each communication cycle is divided into communication periods based on the priority in which communication packets should be transmitted and received. That is, the communication packet transmitted / received in the communication system 1000 includes priority information indicating the priority at which the communication packet should be transmitted / received as information such as a header, and a transmission / reception cycle is configured based on the priority information. In the communication system 1000 of FIG. 2, an example in which priority information is determined by a VLAN priority number (PCP (Priority Code Point)) is shown.

優先度情報の一例として、VLANプライオリティ番号としてプライオリティ0〜7が設定され、プライオリティ7が最も優先度が高く、番号の降順に優先度が低くなり、プライオリティ0が最も優先度が低い構成を示す。各通信サイクルの先頭には、優先度情報としてプライオリティ7を有する通信パケットだけが送受信される専用の通信時間帯t1およびt3が設けられる。すなわち、通信サイクルNの先頭には専用の通信時間帯t1が設けられ、通信サイクルN+1の先頭には専用の通信時間帯t3が設けられる。なお、通信時間帯t1およびt3を高優先度通信専用時間帯と称する場合がある。 As an example of priority information, prioritys 0 to 7 are set as VLAN priority numbers, priority 7 has the highest priority, priority decreases in descending order of numbers, and priority 0 indicates the lowest priority configuration. At the head of each communication cycle, dedicated communication time zones t1 and t3 are provided in which only communication packets having priority 7 are transmitted / received as priority information. That is, a dedicated communication time zone t1 is provided at the beginning of the communication cycle N, and a dedicated communication time zone t3 is provided at the beginning of the communication cycle N + 1. The communication time zones t1 and t3 may be referred to as high priority communication dedicated time zones.

また、各通信サイクルには、優先度情報としてプライオリティ6〜0を有する通信パケットだけが送受信される専用の通信時間帯t2およびt4が設けられる。通信サイクルNには専用の通信時間帯t2が設けられ、通信サイクルN+1には専用の通信時間帯t4が設けられる。図2においては、通信時間帯t2およびt4は1区分として示されているが、プライオリティ6〜0のそれぞれに対応する時間帯がさらに細かく区分されて設けられていてもよい。さらに、複数のプライオリティをまとめて専用の時間帯が設けられていてもよい。例えば、プライオリティ6〜4の通常の優先度に対応する専用の時間帯と、プライオリティ3〜0の低優先度に対応する専用の時間帯とを設ける構成とすることも可能である。 Further, each communication cycle is provided with dedicated communication time zones t2 and t4 in which only communication packets having priority 6 to 0 are transmitted / received as priority information. The communication cycle N is provided with a dedicated communication time zone t2, and the communication cycle N + 1 is provided with a dedicated communication time zone t4. In FIG. 2, the communication time zones t2 and t4 are shown as one division, but the time zones corresponding to the respective priorities 6 to 0 may be further divided and provided. Further, a dedicated time zone may be provided for a plurality of priorities collectively. For example, it is possible to provide a dedicated time zone corresponding to the normal priority of the priority 6 to 4 and a dedicated time zone corresponding to the low priority of the priority 3 to 0.

本実施形態に係る通信システム1000によれば、高優先度に設定した通信パケットが、伝搬遅延により高優先度通信専用時間内に送れなくなった場合には、中継器で優先度を一段下げることで、遅延を最小限にすることが可能になる。以下に詳細を説明する。 According to the communication system 1000 according to the present embodiment, when the communication packet set to the high priority cannot be sent within the high priority communication dedicated time due to the propagation delay, the priority is lowered by one step by the repeater. , It becomes possible to minimize the delay. Details will be described below.

(実施形態に係る中継器の構成例)
図3は、実施形態に係るスイッチングHUBやルータ、ゲートウェイ等の中継器C100の構成イメージをブロック図で示したものである。なお、中継器C200および中継器C300も中継器C100と同一の構成を有する。
(Example of configuration of repeater according to the embodiment)
FIG. 3 is a block diagram showing a configuration image of a repeater C100 such as a switching HUB, a router, and a gateway according to the embodiment. The repeater C200 and the repeater C300 also have the same configuration as the repeater C100.

中継器C100は入力ポート部C111、入力バッファ部C120、スイッチ処理部C130、出力バッファ部C140、タイマー部C150および出力ポート部C112を含んで構成される。なお、ネットワークの使用状況や中継器の処理の状況により、中継器C100では即座にスイッチ処理やネットワークへの通信パケットの出力ができないこともあるため、中継器C100内に入出力用にバッファを持つ構成としている。さらに、出力バッファ部C140については、1つの出力ポート部C112に対して複数のバッファを持ち、バッファからの出力順を調整することで、通信パケットの優先制御を行う構成としている。なお、本実施形態に係るスイッチ処理部C130および出力バッファ部C140は、高優先度通信専用時間内に送信できなくなった通信パケットがある場合には、通信パケットの優先度を一段下げることで、通信遅延を最小限にする機能を有する。詳細については後述する。 The repeater C100 includes an input port unit C111, an input buffer unit C120, a switch processing unit C130, an output buffer unit C140, a timer unit C150, and an output port unit C112. Depending on the network usage status and the repeater processing status, the repeater C100 may not be able to immediately perform switch processing or output communication packets to the network. Therefore, the repeater C100 has a buffer for input / output. It has a structure. Further, the output buffer unit C140 has a plurality of buffers for one output port unit C112, and by adjusting the output order from the buffers, priority control of communication packets is performed. The switch processing unit C130 and the output buffer unit C140 according to the present embodiment communicate by lowering the priority of the communication packet by one step when there is a communication packet that cannot be transmitted within the high priority communication dedicated time. It has a function to minimize the delay. Details will be described later.

入力ポート部C111には前段の通信端末や中継器等の電子機器から送信される通信パケットが随時入力される。 Communication packets transmitted from electronic devices such as communication terminals and repeaters in the previous stage are input to the input port unit C111 at any time.

入力バッファ部C120には、入力ポート部C111に入力された通信パケットが中継器C100の後段の処理が実行されるまでバッファリングされる。 The communication packet input to the input port unit C111 is buffered in the input buffer unit C120 until the subsequent processing of the repeater C100 is executed.

スイッチ処理部C130は、入力バッファ部C120にバッファリングされた通信パケットの宛先アドレスを抽出し、当該宛先アドレスを有する端末に対する接続先である出力ポート部C112に対応する出力バッファ部C140に通信パケットを出力する。 The switch processing unit C130 extracts the destination address of the communication packet buffered in the input buffer unit C120, and sends the communication packet to the output buffer unit C140 corresponding to the output port unit C112 which is the connection destination to the terminal having the destination address. Output.

この場合に、スイッチ処理部C130は通信パケットのVLANプライオリティ番号も抽出し、VLANプライオリティ番号に対応した出力バッファ部C140のバッファに当該通信パケットを出力する。 In this case, the switch processing unit C130 also extracts the VLAN priority number of the communication packet and outputs the communication packet to the buffer of the output buffer unit C140 corresponding to the VLAN priority number.

従来技術の方法では、スイッチ処理部C130は、VLANプライオリティ番号7で示される高優先度通信専用時間の終了後に、VLANプライオリティ番号7の通信パケットの優先番号の切り替え処理を実行していた。しかし、優先番号の切り替え処理時間CTの終了後に通信パケットの送信処理が開始されるために、通信パケットの送信処理が遅れてしまうという課題があった。図4(a)に通信パケットの送信処理が遅れてしまうことを説明する模式図を示す。図4(a)において、優先番号の切り替え処理時間CTがなければ、タイミングのt1から通信パケットの送信処理を開始できるが、優先番号の切り替え処理時間CTがあるために、タイミングのt2から通信パケットの送信処理が開始される。すなわち、高優先度通信専用時間の終了後の優先番号の切り替え処理時間CTの経過後に、優先番号が切り替えられた通信パケットの送信が開始される。そこで、本実施形態では、以下に説明する制限時間LTを用いる構成を採用する。 In the method of the prior art, the switch processing unit C130 executes the switching process of the priority number of the communication packet of the VLAN priority number 7 after the end of the high priority communication dedicated time indicated by the VLAN priority number 7. However, since the communication packet transmission processing is started after the priority number switching processing time CT is completed, there is a problem that the communication packet transmission processing is delayed. FIG. 4A shows a schematic diagram illustrating that the transmission processing of the communication packet is delayed. In FIG. 4A, if there is no priority number switching processing time CT, the communication packet transmission processing can be started from timing t1, but since there is priority number switching processing time CT, the communication packet is started from timing t2. Transmission processing is started. That is, after the priority number switching processing time CT has elapsed after the end of the high priority communication dedicated time, the transmission of the communication packet whose priority number has been switched is started. Therefore, in the present embodiment, a configuration using the time limit LT described below is adopted.

上述したように、本実施形態では、スイッチ処理部C130は、高優先度通信専用時間において制限時間LTを演算する。制限時間LTは、高優先度通信専用時間内の時間であるが、高優先度通信専用時間の終了時刻から一定の範囲の時間帯である。例えば、制限時間LTは、高優先度通信専用時間内で通信パケットの通信が完了しない可能性がある時間帯をあらわす。一例として、図4(b)に、N番目の通信サイクルN、制限時間LT、高優先度通信専用時間等の関係を示す。高優先度通信専用時間は、VLANプライオリティ番号7で示される時間帯であり、制限時間LTは高優先度通信専用時間の終了時刻から一定の範囲の時間帯となっている。なお、制限時間LTが終了するとVLANプライオリティ番号6から0で示される通信パケットを送信できる時間帯となる。 As described above, in the present embodiment, the switch processing unit C130 calculates the time limit LT in the high priority communication dedicated time. The time limit LT is a time within the high priority communication dedicated time, but is a time zone within a certain range from the end time of the high priority communication dedicated time. For example, the time limit LT represents a time zone in which communication of communication packets may not be completed within the high priority communication dedicated time. As an example, FIG. 4B shows the relationship between the Nth communication cycle N, the time limit LT, the high priority communication dedicated time, and the like. The high-priority communication-only time is the time zone indicated by the VLAN priority number 7, and the time limit LT is a time zone within a certain range from the end time of the high-priority communication-only time. When the time limit LT ends, it becomes a time zone in which the communication packet indicated by the VLAN priority numbers 6 to 0 can be transmitted.

図4(c)に、制限時間LTの演算方法の一例を示す。VLANプライオリティ番号7の通信パケットが通信端末Nから中継器C100、中継器C200および中継器C300を介して通信端末N+1に送信され場合の制限時間LTの演算方法の一例である。通信端末Nと中継器C100の間、中継器C100と中継器C200の間、中継器C200と中継器C300の間、および、中継器C300と通信端末N+1との間の回線速度は同一であるとする。また、中継器C100、中継器C200および中継器C300における通信パケットの転送時間は同一または異なる時間であるものとする。VLANプライオリティ番号7の通信パケットのサイズを回線速度で除算した時間が装置間の転送時間となるので、制限時間LTは以下の式(1)であらわされる。
制限時間LT=(通信パケットサイズ/回線速度)×(経由する中継器の台数+1)+(経由する各中継器の転送時間の合計)−−−(1)
FIG. 4C shows an example of the calculation method of the time limit LT. This is an example of a method of calculating the time limit LT when a communication packet having a VLAN priority number 7 is transmitted from the communication terminal N to the communication terminal N + 1 via the repeater C100, the repeater C200, and the repeater C300. The line speeds between the communication terminal N and the repeater C100, between the repeater C100 and the repeater C200, between the repeater C200 and the repeater C300, and between the repeater C300 and the communication terminal N + 1 are the same. To do. Further, it is assumed that the transfer times of the communication packets in the repeater C100, the repeater C200 and the repeater C300 are the same or different times. Since the time obtained by dividing the size of the communication packet of the VLAN priority number 7 by the line speed is the transfer time between the devices, the time limit LT is expressed by the following equation (1).
Time limit LT = (communication packet size / line speed) x (number of repeaters passing through + 1) + (total transfer time of each repeater passing through) --- (1)

例えば、転送する通信パケットのサイズが100[byte]、回線速度が100[Mbps]、経由する中継器が3台あり、各中継器の転送時間が1.0[マイクロ秒]の場合に式(1)から制限時間LTを演算する。この場合には、制限時間LT=(100[byte]/100×10×8[byte/sec])×(3+1)+1.0×10−6×3=3.5[マイクロ秒]となる。なお、上記数値は通信端末Nにおける制限時間LTであって、中継器100、中継器200および中継器300における制限時間LTは異なる。例えば、中継器200の制限時間LTは、(100[byte]/100×10×8[byte/sec])×(1+1)+1.0×10−6×2=2.25[マイクロ秒]となる。このように、各中継器は、自中継器における制限時間LTを演算することが可能になる。 For example, when the size of the communication packet to be transferred is 100 [byte], the line speed is 100 [Mbps], there are three repeaters passing through, and the transfer time of each repeater is 1.0 [microsecond], the formula ( Calculate the time limit LT from 1). In this case, the time limit LT = (100 [byte] / 100 × 10 6 × 8 [byte / sec]) × (3 + 1) + 1.0 × 10-6 × 3 = 3.5 [microseconds]. .. The above numerical value is the time limit LT in the communication terminal N, and the time limit LT in the repeater 100, the repeater 200, and the repeater 300 is different. For example, the time limit LT of the repeater 200 is (100 [byte] / 100 × 10 6 × 8 [byte / sec]) × (1 + 1) + 1.0 × 10-6 × 2 = 2.25 [microseconds]. It becomes. In this way, each repeater can calculate the time limit LT in the own repeater.

スイッチ処理部C130は、VLANプライオリティ番号7の通信パケットを転送する場合に、制限時間LT以内の時間帯である場合には、当該通信パケットを優先用バッファ部C141に格納するとともに、VLANプライオリティ番号を1つ下げる。そして、VLANプライオリティ番号を7から6に1つ下げた通信パケットを通常用バッファ部C142に格納する。スイッチ処理部C130は、優先用バッファ部C141からVLANプライオリティ番号7の通信パケットを通信し、通信が失敗した場合は通常用バッファ部C142からVLANプライオリティ番号を7から6に1つ下げた通信パケットを通信する。スイッチ処理部C130は、いずれかの通信が成功したら、通信に成功していない優先用バッファ部C141または通常用バッファ部C142に格納されている通信パケットを削除する。 When the switch processing unit C130 transfers the communication packet of the VLAN priority number 7, if the time zone is within the time limit LT, the switch processing unit C130 stores the communication packet in the priority buffer unit C141 and sets the VLAN priority number. Lower by one. Then, the communication packet in which the VLAN priority number is lowered by one from 7 to 6 is stored in the normal buffer unit C142. The switch processing unit C130 communicates the communication packet of the VLAN priority number 7 from the priority buffer unit C141, and when the communication fails, the communication packet in which the VLAN priority number is lowered by one from the normal buffer unit C142 to 6 is transmitted. connect. When any communication is successful, the switch processing unit C130 deletes the communication packet stored in the priority buffer unit C141 or the normal buffer unit C142 that has not succeeded in communication.

出力バッファ部C140には、一例として、優先用バッファ部C141、通常用バッファ部C142、低速用バッファ部C143が含まれる。優先用バッファ部C141は、VLANプライオリティ番号の優先度が最も高い通信パケットが格納されるバッファ部である。 As an example, the output buffer unit C140 includes a priority buffer unit C141, a normal buffer unit C142, and a low speed buffer unit C143. The priority buffer unit C141 is a buffer unit in which communication packets having the highest priority of the VLAN priority number are stored.

例えば、VLANプライオリティ番号が7である通信パケットが、最も高い通信優先度を有する場合にはVLANプライオリティ番号7の通信パケットは優先用バッファ部C141に記憶される。通常用バッファ部C142および低速用バッファ部C143に格納される通信パケットは、その他のVLANプライオリティ番号に対応する。例えば、VLANプライオリティ番号7から降順に通信優先度が下がる場合には、通常用バッファ部C142はVLANプライオリティ番号6〜4の通信パケットを格納するバッファとして機能する。また、低速用バッファ部C143はVLANプライオリティ番号3〜0の通信パケットを格納するバッファとして機能するが、これに限定されるわけではない。 For example, when the communication packet having the VLAN priority number 7 has the highest communication priority, the communication packet having the VLAN priority number 7 is stored in the priority buffer unit C141. The communication packets stored in the normal buffer unit C142 and the low-speed buffer unit C143 correspond to other VLAN priority numbers. For example, when the communication priority is lowered in descending order from the VLAN priority number 7, the normal buffer unit C142 functions as a buffer for storing the communication packets of the VLAN priority numbers 6 to 4. Further, the low-speed buffer unit C143 functions as a buffer for storing communication packets having VLAN priority numbers 3 to 0, but the present invention is not limited to this.

このように、スイッチ処理部C130は、VLANプライオリティ番号7の通信パケットを検出した場合には、当該通信パケットを優先用バッファ部C141に出力する。 In this way, when the switch processing unit C130 detects the communication packet of the VLAN priority number 7, the switch processing unit C130 outputs the communication packet to the priority buffer unit C141.

出力バッファ部C140は、通信フレームの各サイクルの先頭にある高優先度通信専用時間帯に優先用バッファ部C141に格納されている通信パケットを出力ポート部C112に出力する。また、出力バッファ部C140は、各サイクルの高優先度通信専用時間帯以外の時間帯に、通常用バッファ部C142および低速用バッファ部C143に格納されている通信パケットを優先度順に出力ポート部C112に出力する。 The output buffer unit C140 outputs the communication packet stored in the priority buffer unit C141 to the output port unit C112 during the high priority communication dedicated time zone at the beginning of each cycle of the communication frame. Further, the output buffer unit C140 outputs communication packets stored in the normal buffer unit C142 and the low speed buffer unit C143 in order of priority in a time zone other than the high priority communication dedicated time zone of each cycle. Output to.

例えば、通常用バッファ部C142にVLANプライオリティ番号6〜4の通信パケットがある場合には、最初に、通常用バッファ部C142はVLANプライオリティ番号6の通信パケットを出力ポート部C112に出力する。次に、通常用バッファ部C142は、VLANプライオリティ番号5の通信パケットを出力ポート部C112に出力し、その次にVLANプライオリティ番号4の通信パケットを出力ポート部C112に出力する。 For example, when the normal buffer unit C142 has communication packets having VLAN priority numbers 6 to 4, the normal buffer unit C142 first outputs the communication packet having the VLAN priority number 6 to the output port unit C112. Next, the normal buffer unit C142 outputs the communication packet of the VLAN priority number 5 to the output port unit C112, and then outputs the communication packet of the VLAN priority number 4 to the output port unit C112.

また、例えば、低速用バッファ部C143にVLANプライオリティ番号3〜0の通信パケットがある場合には、最初に、低速用バッファ部C143はVLANプライオリティ番号3の通信パケットを出力ポート部C112に出力する。次に、低速用バッファ部C143は、VLANプライオリティ番号2の通信パケットを出力ポート部C112に出力し、その次にVLANプライオリティ番号1の通信パケットを出力ポート部C112に出力する。最後に、低速用バッファ部C143はVLANプライオリティ番号0の通信パケットを出力ポート部C112に出力する。 Further, for example, when the low-speed buffer unit C143 has a communication packet having a VLAN priority number 3 to 0, the low-speed buffer unit C143 first outputs the communication packet having a VLAN priority number 3 to the output port unit C112. Next, the low-speed buffer unit C143 outputs the communication packet of the VLAN priority number 2 to the output port unit C112, and then outputs the communication packet of the VLAN priority number 1 to the output port unit C112. Finally, the low-speed buffer unit C143 outputs the communication packet having the VLAN priority number 0 to the output port unit C112.

さらに、優先用バッファ部C141に格納されている通信パケットを出力ポート部C112に出力した場合に、高優先度通信専用時間帯に当該通信パケットを中継器C100から出力できない場合がある。このような場合に、従来では、当該通信パケットは次のサイクルの高優先度通信専用時間帯まで通信を待つ必要があった。しかし、本実施形態では、一例として、スイッチ処理部C130が、当該通信パケットのVLANプライオリティ番号を7から6に引き下げて、同じサイクルの高優先度通信専用時間帯以外の時間帯に当該通信パケットを出力するように機能する。スイッチ処理部C130の当該機能によって、当初、VLANプライオリティ番号7の高優先度を有していた通信パケットの通信遅延を低減することが可能になる。なお、VLANプライオリティ番号を7から6に引き下げられた通信パケットが伝送される高優先度通信専用時間帯以外の時間帯は、VLANプライオリティ番号6に対応する時間帯である。また、スイッチ処理部C130は、VLANプライオリティ番号を7から6に引き下げられた通信パケットを、優先用バッファ部C141に格納された状態から通常用バッファ部C142に移動させる。 Further, when the communication packet stored in the priority buffer unit C141 is output to the output port unit C112, the communication packet may not be output from the repeater C100 during the high priority communication dedicated time zone. In such a case, conventionally, it has been necessary for the communication packet to wait for communication until the high priority communication dedicated time zone of the next cycle. However, in the present embodiment, as an example, the switch processing unit C130 lowers the VLAN priority number of the communication packet from 7 to 6, and sets the communication packet in a time zone other than the high priority communication dedicated time zone of the same cycle. It works to output. The function of the switch processing unit C130 makes it possible to reduce the communication delay of the communication packet having the high priority of the VLAN priority number 7 at the beginning. The time zone other than the high-priority communication dedicated time zone in which the communication packet whose VLAN priority number is lowered from 7 to 6 is transmitted is the time zone corresponding to the VLAN priority number 6. Further, the switch processing unit C130 moves the communication packet whose VLAN priority number has been lowered from 7 to 6 from the state stored in the priority buffer unit C141 to the normal buffer unit C142.

さらに、VLANプライオリティ番号は7から6に引き下げる場合に限定されるわけではない。例えば、スイッチ処理部C130は、高優先度通信専用時間帯に送信できないVLANプライオリティ番号7の通信パケットを通常用バッファ部C142または低速用バッファ部C143に設定されているVLANプライオリティ番号を抽出する。スイッチ処理部C130は、抽出されたVLANプライオリティ番号の中で最も高い優先度のVLANプライオリティ番号に書き換えて、優先用バッファ部C141から通常用バッファ部C142に移動させる。 Furthermore, the VLAN priority number is not limited to the case of reducing from 7 to 6. For example, the switch processing unit C130 extracts the VLAN priority number set in the normal buffer unit C142 or the low speed buffer unit C143 for the communication packet of the VLAN priority number 7 that cannot be transmitted in the high priority communication dedicated time zone. The switch processing unit C130 rewrites the extracted VLAN priority number to the highest priority VLAN priority number and moves it from the priority buffer unit C141 to the normal buffer unit C142.

さらに、本実施形態では、VLANプライオリティ番号が7から6に引き下げられた通信パケットが、複数の中継器を経由する間に、他の通信などの影響によって、同一の通信サイクル内で通常用バッファ部C142に残ってしまう場合が想定される。通常用バッファ部C142に当該通信パケットが残ってしまうと、次の通信サイクルの高優先度通信専用時間帯の次の時間帯で送信されることが想定されるために、リアルタイム性が損なわれる場合が発生する。そこで、本実施形態では、通信サイクルの終了時に通常用バッファ部C142にVLANプライオリティ番号が7から6に引き下げられた通信パケットが残ってしまう場合に、VLANプライオリティ番号を6から7に戻す構成とした。さらに、本実施形態では、VLANプライオリティ番号を6から7に戻した通信パケットを優先用バッファ部C141に格納する構成とし、次の通信サイクルの高優先度通信専用時間帯に送信される構成にした。 Further, in the present embodiment, the communication packet whose VLAN priority number has been lowered from 7 to 6 passes through the plurality of repeaters, and due to the influence of other communications or the like, the normal buffer unit within the same communication cycle. It is assumed that it may remain in C142. If the communication packet remains in the normal buffer unit C142, it is assumed that the communication packet will be transmitted in the time zone next to the high priority communication dedicated time zone of the next communication cycle, so that the real-time property is impaired. Occurs. Therefore, in the present embodiment, when a communication packet whose VLAN priority number has been lowered from 7 to 6 remains in the normal buffer unit C142 at the end of the communication cycle, the VLAN priority number is returned from 6 to 7. .. Further, in the present embodiment, the communication packet in which the VLAN priority number is returned from 6 to 7 is stored in the priority buffer unit C141, and is transmitted in the high priority communication dedicated time zone of the next communication cycle. ..

タイマー部C150は、他の中継器および通信端末と同期を取る機能を有する。したがって、通信サイクルの開始時刻および終了時刻、ならびに、高優先度通信専用時間帯の開始時刻および終了時刻等の時刻は各中継器および通信端末において同期している。 The timer unit C150 has a function of synchronizing with other repeaters and communication terminals. Therefore, the start time and end time of the communication cycle, and the start time and end time of the high priority communication dedicated time zone are synchronized in each repeater and communication terminal.

(実施形態に係る中継器の動作のフローチャート)
次に、図5および図6を参照して、実施形態に係る中継器C100の動作のフローチャートの一例を示す。中継器C100における図5および図6の処理手順は、中継器C100が有するコンピュータのROM(Read Only Memory)に格納されたプログラムにしたがいCPU(Central Processing Unit)が実行する。
(Flowchart of operation of repeater according to embodiment)
Next, with reference to FIGS. 5 and 6, an example of a flowchart of the operation of the repeater C100 according to the embodiment is shown. The processing procedure of FIGS. 5 and 6 in the repeater C100 is executed by the CPU (Central Processing Unit) according to the program stored in the ROM (Read Only Memory) of the computer included in the repeater C100.

なお、以下の処理手順の一部または全部は、例えば、DSP(Digital Signal Processor)やASIC(Application Specific Integrated Circuit)等のハードウェアにより実行させられる。但し本実施例では、ROMのプログラムにしたがってCPUが実行する形態とした場合について説明する。 In addition, a part or all of the following processing procedure is executed by hardware such as DSP (Digital Signal Processor) and ASIC (Application Specific Integrated Circuit), for example. However, in this embodiment, a case where the CPU executes according to the ROM program will be described.

図5は入力バッファ部C120の動作のフローチャートの一例であり、図6はスイッチ処理部C130および出力バッファ部C140の動作のフローチャートの一例である。図5および図6の動作は非同期で動作することができるが、同期して動作することも可能である。 FIG. 5 is an example of a flowchart of the operation of the input buffer unit C120, and FIG. 6 is an example of a flowchart of the operation of the switch processing unit C130 and the output buffer unit C140. The operations of FIGS. 5 and 6 can be operated asynchronously, but can also be operated synchronously.

最初に、図5の入力バッファ部C120の動作のフローチャートの一例について説明する。 First, an example of a flowchart of the operation of the input buffer unit C120 of FIG. 5 will be described.

ステップS510において、入力バッファ部C120は入力ポート部C111に通信パケットが入力されたか否かを判定する。入力ポート部C111に通信パケットが入力された場合(ステップS510:YES)には、入力バッファ部C120はステップS520に進む。入力ポート部C111に通信パケットが入力されていない場合(ステップS510:NO)には、入力バッファ部C120はステップS510を繰り返す。 In step S510, the input buffer unit C120 determines whether or not a communication packet has been input to the input port unit C111. When a communication packet is input to the input port unit C111 (step S510: YES), the input buffer unit C120 proceeds to step S520. When no communication packet is input to the input port unit C111 (step S510: NO), the input buffer unit C120 repeats step S510.

ステップS520において、入力バッファ部C120は入力ポート部C111に入力された通信パケットを入力バッファ部C120に記憶する。入力バッファ部C120はFIFO(First In、 First Out)タイプのバッファであるが、これに限定されるわけではない。次に、入力バッファ部C120はステップS510に戻り、処理を継続する。 In step S520, the input buffer unit C120 stores the communication packet input to the input port unit C111 in the input buffer unit C120. The input buffer unit C120 is a FIFO (First In, First Out) type buffer, but is not limited to this. Next, the input buffer unit C120 returns to step S510 and continues the process.

次に、図6のスイッチ処理部C130および出力バッファ部C140の動作のフローチャートの一例について説明する。図6のフローチャートは、1通信サイクルの間の処理を示し、1通信サイクルの開始時点からの動作を示している。 Next, an example of a flowchart of the operation of the switch processing unit C130 and the output buffer unit C140 of FIG. 6 will be described. The flowchart of FIG. 6 shows the processing during one communication cycle, and shows the operation from the start time of one communication cycle.

中継器C100における図6の処理手順は、中継器C100が有するコンピュータのROM(Read Only Memory)に格納されたプログラムにしたがいCPU(Central Processing Unit)が実行する。 The processing procedure of FIG. 6 in the repeater C100 is executed by the CPU (Central Processing Unit) according to the program stored in the ROM (Read Only Memory) of the computer included in the repeater C100.

なお、以下の処理手順の一部または全部は、例えば、DSP(Digital Signal Processor)やASIC(Application Specific Integrated Circuit)等のハードウェアにより実行できる。但し本実施例では、ROMのプログラムにしたがってCPUが実行する形態とした場合について説明する。 In addition, a part or all of the following processing procedure can be executed by hardware such as DSP (Digital Signal Processor) and ASIC (Application Specific Integrated Circuit). However, in this embodiment, a case where the CPU executes according to the ROM program will be described.

ステップS601において、スイッチ処理部C130は優先用バッファ部C141に前のサイクルにおいて記憶された通信パケットが存在するか否かを判定する。優先用バッファ部C141に前のサイクルの通信パケットが存在する場合(ステップS601:YES)には、スイッチ処理部C130はステップS604に進む。優先用バッファ部C141に前のサイクルの通信パケットが存在しない場合(ステップS601:NO)には、スイッチ処理部C130はステップS602に進む。なお、中継器C100が通信システム1000の初段に位置する場合には、サイクルの開始時に優先用バッファ部C141に通信パケットが残っていることは想定していない。詳細については後述する。 In step S601, the switch processing unit C130 determines whether or not the communication packet stored in the previous cycle exists in the priority buffer unit C141. When the communication packet of the previous cycle exists in the priority buffer unit C141 (step S601: YES), the switch processing unit C130 proceeds to step S604. If the communication packet of the previous cycle does not exist in the priority buffer unit C141 (step S601: NO), the switch processing unit C130 proceeds to step S602. When the repeater C100 is located at the first stage of the communication system 1000, it is not assumed that communication packets remain in the priority buffer unit C141 at the start of the cycle. Details will be described later.

ステップS602において、スイッチ処理部C130は入力バッファ部C120に通信パケットが記憶されたか否かを判定する。入力バッファ部C120に通信パケットが記憶された場合(ステップS602:YES)には、スイッチ処理部C130はステップS604に進む。入力バッファ部C120に通信パケットが記憶されていない場合(ステップS602:NO)には、スイッチ処理部C130はステップS603に進む。 In step S602, the switch processing unit C130 determines whether or not the communication packet is stored in the input buffer unit C120. When the communication packet is stored in the input buffer unit C120 (step S602: YES), the switch processing unit C130 proceeds to step S604. If the communication packet is not stored in the input buffer unit C120 (step S602: NO), the switch processing unit C130 proceeds to step S603.

ステップS603において、スイッチ処理部C130はタイマー部C150を参照して、通信パケットを送信するための1サイクルが終了したか否かを判定する。TSNでは通信システム1000のすべての中継器で同期が取れているので、各中継器で通信パケットを送信するための1サイクルの開始時刻と終了時刻を認識することが可能になっている。通信パケットを送信するための1サイクルが終了した場合(ステップS603:YES)には、スイッチ処理部C130は処理を終了する。通信パケットを送信するための1サイクルが終了していない場合(ステップS603:NO)には、スイッチ処理部C130はステップS602に戻り、通信パケットの入力を待機する。 In step S603, the switch processing unit C130 refers to the timer unit C150 and determines whether or not one cycle for transmitting the communication packet has been completed. Since the TSN is synchronized with all the repeaters of the communication system 1000, it is possible for each repeater to recognize the start time and end time of one cycle for transmitting a communication packet. When one cycle for transmitting the communication packet is completed (step S603: YES), the switch processing unit C130 ends the processing. If one cycle for transmitting the communication packet is not completed (step S603: NO), the switch processing unit C130 returns to step S602 and waits for the input of the communication packet.

ステップS604において、スイッチ処理部C130は高優先度通信専用時間か否かを判定する。高優先度通信専用時間に送信できる通信パケットは最高優先番号を有する通信パケットであるため、ステップS604からステップS605の処理に進む通信パケットは最高優先番号を有する通信パケットである。通信パケットが高優先度通信専用時間の中にある場合(ステップS604:YES)には、スイッチ処理部C130はステップS605に進む。高優先度通信専用時間ではない通信パケットである場合(ステップS604:NO)には、スイッチ処理部C130はステップS618に進む。 In step S604, the switch processing unit C130 determines whether or not the time is dedicated to high priority communication. Since the communication packet that can be transmitted during the high priority communication dedicated time is the communication packet having the highest priority number, the communication packet that proceeds from step S604 to the process of step S605 is the communication packet having the highest priority number. When the communication packet is in the high priority communication dedicated time (step S604: YES), the switch processing unit C130 proceeds to step S605. When the communication packet is not the high priority communication dedicated time (step S604: NO), the switch processing unit C130 proceeds to step S618.

ステップS605において、スイッチ処理部C130はタイマー部C150を参照して、高優先度通信専用時間の中の制限時間内であるか否かを判定する。制限時間内である場合(ステップS605:YES)には、通信パケットの通信処理に余裕がないためにスイッチ処理部C130はステップS606に進む。制限時間内ではない場合(ステップS605:NO)には、通信パケットの通信処理に余裕があるためにスイッチ処理部C130はステップS615に進む。 In step S605, the switch processing unit C130 refers to the timer unit C150 and determines whether or not it is within the time limit within the high priority communication dedicated time. If it is within the time limit (step S605: YES), the switch processing unit C130 proceeds to step S606 because there is no margin in the communication processing of the communication packet. If it is not within the time limit (step S605: NO), the switch processing unit C130 proceeds to step S615 because there is a margin in the communication processing of the communication packet.

ステップS606において、スイッチ処理部C130は通信パケットを優先用バッファ部C141に格納する。制限時間内であっても、優先用バッファ部C141から出力された通信パケットが高優先度通信専用時間の間に通信が完了する場合があるので、スイッチ処理部C130は通信パケットを優先用バッファ部C141に格納する。次に、スイッチ処理部C130はステップS607に進む。 In step S606, the switch processing unit C130 stores the communication packet in the priority buffer unit C141. Even within the time limit, the communication packet output from the priority buffer unit C141 may complete the communication during the high priority communication dedicated time. Therefore, the switch processing unit C130 sets the communication packet as the priority buffer unit. Store in C141. Next, the switch processing unit C130 proceeds to step S607.

ステップS607において、スイッチ処理部C130は優先用バッファ部C141に格納した通信パケットのコピーを作成する。次に、スイッチ処理部C130はステップS608に進む。 In step S607, the switch processing unit C130 creates a copy of the communication packet stored in the priority buffer unit C141. Next, the switch processing unit C130 proceeds to step S608.

ステップS608において、スイッチ処理部C130はコピーされた通信パケットの優先番号の書き換えを実施する。例えば、スイッチ処理部C130はVLANプライオリティ番号を最高優先度から次の優先度に書き換える。優先番号の書き換え処理の一例の詳細については、図8等を参照して後述する。次に、スイッチ処理部C130はステップS609に進む。 In step S608, the switch processing unit C130 rewrites the priority number of the copied communication packet. For example, the switch processing unit C130 rewrites the VLAN priority number from the highest priority to the next priority. Details of an example of the priority number rewriting process will be described later with reference to FIG. 8 and the like. Next, the switch processing unit C130 proceeds to step S609.

ステップS609において、スイッチ処理部C130は優先番号が書き換えられた通信パケットを通常用バッファ部C142に格納する。優先用バッファ部C141から出力された通信パケットが高優先度通信専用時間の間に通信が完了しない場合に、スイッチ処理部C130は優先番号が書き換えられた通信パケットを通常用バッファ部C142から出力する。次に、スイッチ処理部C130はステップS610に進む。 In step S609, the switch processing unit C130 stores the communication packet whose priority number has been rewritten in the normal buffer unit C142. When the communication packet output from the priority buffer unit C141 does not complete the communication during the high priority communication dedicated time, the switch processing unit C130 outputs the communication packet whose priority number has been rewritten from the normal buffer unit C142. .. Next, the switch processing unit C130 proceeds to step S610.

ステップS610において、制限時間内であっても通信が完了する場合があるので、スイッチ処理部C130は優先用バッファ部C141に格納した通信パケットを出力ポート部C112に出力する。次に、スイッチ処理部C130はステップS611に進む。 In step S610, communication may be completed even within the time limit, so the switch processing unit C130 outputs the communication packet stored in the priority buffer unit C141 to the output port unit C112. Next, the switch processing unit C130 proceeds to step S611.

ステップS611において、ステップS610で出力された通信パケットが高優先度通信専用時間の間に通信が完了したか否かを判定する。高優先度通信専用時間の間に通信パケットの通信が完了した場合(ステップS611:YES)には、スイッチ処理部C130はステップS612に進む。高優先度通信専用時間の間に通信パケットの通信が完了しない場合(ステップS611:NO)には、スイッチ処理部C130はステップS613に進む。 In step S611, it is determined whether or not the communication packet output in step S610 has completed communication during the high priority communication dedicated time. When the communication of the communication packet is completed during the high priority communication dedicated time (step S611: YES), the switch processing unit C130 proceeds to step S612. If the communication of the communication packet is not completed during the high priority communication dedicated time (step S611: NO), the switch processing unit C130 proceeds to step S613.

ステップS612において、高優先度通信専用時間の間に最高優先度の通信パケットの通信が完了しているので、スイッチ処理部C130は当該通信パケットの優先度を書き換えた通常用バッファ部C142に格納されている通信パケットを削除する。これによって、スイッチ処理部C130は同一のデータを有する通信パケットが二重に送信されることを防止する。次に、スイッチ処理部C130はステップS601に戻る。 In step S612, since the communication of the highest priority communication packet is completed during the high priority communication dedicated time, the switch processing unit C130 is stored in the normal buffer unit C142 in which the priority of the communication packet is rewritten. Delete the communication packet that is being used. As a result, the switch processing unit C130 prevents the communication packet having the same data from being transmitted twice. Next, the switch processing unit C130 returns to step S601.

ステップS613において、高優先度通信専用時間の間に最高優先度の通信パケットの通信が完了しなかったので、スイッチ処理部C130は当該通信パケットの優先度を書き換えた通常用バッファ部C142に格納されている通信パケットを出力する。この場合には、出力された通信パケットが通常用バッファ部C142に対応する時間帯の間に通信が完了する場合と、通信が完了しない場合があるが、いずれの場合にも、スイッチ処理部C130はステップS614に進む。 In step S613, since the communication of the highest priority communication packet was not completed during the high priority communication dedicated time, the switch processing unit C130 is stored in the normal buffer unit C142 in which the priority of the communication packet is rewritten. Output the communication packet that is being used. In this case, the output communication packet may or may not be completed during the time period corresponding to the normal buffer unit C142. In either case, the switch processing unit C130. Proceeds to step S614.

ステップS614において、ステップS613にて出力された通信パケットの通信完了の成否に関わらず、スイッチ処理部C130は当該通信パケットの優先度を書き換える前の最高優先度の優先用バッファ部C141に格納されている通信パケットを削除する。これによって、スイッチ処理部C130は同一のデータを有する通信パケットが二重に送信されることを防止する。ステップS613にて出力された通信パケットの通信が完了していない場合には、後述するステップS622からステップS624において、当該通信パケットは通常用バッファ部C142から優先用バッファ部C141に格納される。したがって、ステップS614において、ステップS613にて出力された通信パケットの通信が完了していない場合にも、優先度を書き換える前の最高優先度の優先用バッファ部C141に格納されている通信パケットを削除する。次に、スイッチ処理部C130はステップS601に戻る。 In step S614, the switch processing unit C130 is stored in the highest priority priority buffer unit C141 before rewriting the priority of the communication packet, regardless of the success or failure of the communication completion of the communication packet output in step S613. Delete the communication packet. As a result, the switch processing unit C130 prevents the communication packet having the same data from being transmitted twice. If the communication of the communication packet output in step S613 is not completed, the communication packet is stored in the priority buffer unit C141 from the normal buffer unit C142 in steps S622 to S624 described later. Therefore, in step S614, even if the communication of the communication packet output in step S613 is not completed, the communication packet stored in the priority buffer unit C141 of the highest priority before rewriting the priority is deleted. To do. Next, the switch processing unit C130 returns to step S601.

ステップS615において、スイッチ処理部C130は優先用バッファ部C141に前のサイクルにおいて記憶された通信パケットが存在するか否かを判定する。優先用バッファ部C141に前のサイクルの通信パケットが存在する場合(ステップS615:YES)には、スイッチ処理部C130はステップS617に進む。優先用バッファ部C141に前のサイクルの通信パケットが存在しない場合(ステップS615:NO)には、スイッチ処理部C130はステップS616に進む。 In step S615, the switch processing unit C130 determines whether or not the communication packet stored in the previous cycle exists in the priority buffer unit C141. When the communication packet of the previous cycle exists in the priority buffer unit C141 (step S615: YES), the switch processing unit C130 proceeds to step S617. If the communication packet of the previous cycle does not exist in the priority buffer unit C141 (step S615: NO), the switch processing unit C130 proceeds to step S616.

ステップS616において、スイッチ処理部C130は最高優先度のVLANプライオリティ番号を有する通信パケットを入力バッファ部C120から優先用バッファ部C141に格納する。次に、スイッチ処理部C130はステップS617に進む。 In step S616, the switch processing unit C130 stores the communication packet having the highest priority VLAN priority number from the input buffer unit C120 to the priority buffer unit C141. Next, the switch processing unit C130 proceeds to step S617.

ステップS617において、スイッチ処理部C130は最高優先度のVLANプライオリティ番号を有する通信パケットを優先用バッファ部C141から出力ポート部C112に出力する。次に、スイッチ処理部C130はステップS601に戻る。 In step S617, the switch processing unit C130 outputs the communication packet having the highest priority VLAN priority number from the priority buffer unit C141 to the output port unit C112. Next, the switch processing unit C130 returns to step S601.

ステップS618において、スイッチ処理部C130は入力バッファ部C120から抽出した通信パケットのVLANプライオリティ番号を抽出する。次に、スイッチ処理部C130はステップS619に進む。 In step S618, the switch processing unit C130 extracts the VLAN priority number of the communication packet extracted from the input buffer unit C120. Next, the switch processing unit C130 proceeds to step S619.

ステップS619において、スイッチ処理部C130は最高優先度ではないVLANプライオリティ番号を有する通信パケットを通常用バッファ部C142または低速用バッファ部C143に格納する。例えば、VLANプライオリティ番号7から降順に通信優先度が下がる場合には、通常用バッファ部C142はVLANプライオリティ番号6〜4に対応し、低速用バッファ部C143はVLANプライオリティ番号3〜0に対応する。しかし、通常用バッファ部C142または低速用バッファ部C143とVLANプライオリティ番号との関係はこれに限定されるわけではない。次に、スイッチ処理部C130はステップS620に進み、処理を継続する。 In step S619, the switch processing unit C130 stores the communication packet having the VLAN priority number which is not the highest priority in the normal buffer unit C142 or the low speed buffer unit C143. For example, when the communication priority decreases from the VLAN priority number 7 in descending order, the normal buffer unit C142 corresponds to the VLAN priority numbers 6 to 4, and the low speed buffer unit C143 corresponds to the VLAN priority numbers 3 to 0. However, the relationship between the normal buffer unit C142 or the low speed buffer unit C143 and the VLAN priority number is not limited to this. Next, the switch processing unit C130 proceeds to step S620 to continue the processing.

ステップS620において、スイッチ処理部C130は、通常用バッファ部C142または低速用バッファ部C143から通信パケットを出力ポート部C112に出力する。一例として、通常用バッファ部C142から通信パケットを出力できる時間帯と、低速用バッファ部C143から通信パケットを出力できる時間帯とが異なる場合がある。次に、スイッチ処理部C130はステップS621に進む。 In step S620, the switch processing unit C130 outputs a communication packet from the normal buffer unit C142 or the low speed buffer unit C143 to the output port unit C112. As an example, the time zone in which the communication packet can be output from the normal buffer unit C142 and the time zone in which the communication packet can be output from the low speed buffer unit C143 may be different. Next, the switch processing unit C130 proceeds to step S621.

ステップS621において、スイッチ処理部C130は、現在の通信サイクルが終了したか否かを判定する。現在の通信サイクルが終了した場合(ステップS621:YES)には、スイッチ処理部C130はステップS622に進み、通信パケットの優先番号の書き換えをチェックする。現在の通信サイクルが終了していない場合(ステップS621:NO)には、スイッチ処理部C130はステップS602に進み、処理を継続する。 In step S621, the switch processing unit C130 determines whether or not the current communication cycle has ended. When the current communication cycle ends (step S621: YES), the switch processing unit C130 proceeds to step S622 and checks for rewriting the priority number of the communication packet. If the current communication cycle has not ended (step S621: NO), the switch processing unit C130 proceeds to step S602 to continue processing.

ステップS622において、スイッチ処理部C130は、通常用バッファ部C142または低速用バッファ部C143に通信パケットが送信されずに残っている場合に、当該通信パケットの優先番号の書き換えの変更履歴が有るか否かを判定する。通信パケットの優先番号の書き換えの変更履歴が有る場合(ステップS622:YES)には、スイッチ処理部C130はステップS623に進む。通信パケットの優先番号の書き換えの変更履歴が無い場合(ステップS622:NO)には、スイッチ処理部C130は現在の通信サイクルの処理を終了し、次の通信サイクルの処理を開始する。 In step S622, when the communication packet remains without being transmitted to the normal buffer unit C142 or the low-speed buffer unit C143, the switch processing unit C130 has a change history of rewriting the priority number of the communication packet. Is determined. If there is a change history of rewriting the priority number of the communication packet (step S622: YES), the switch processing unit C130 proceeds to step S623. When there is no change history of rewriting the priority number of the communication packet (step S622: NO), the switch processing unit C130 ends the processing of the current communication cycle and starts the processing of the next communication cycle.

ステップS623において、スイッチ処理部C130は、優先番号の書き換えの変更履歴が有る通信パケットの優先番号を元の優先番号に書き換える。一例として、優先番号が7から6に書き換えられた通信パケットが通常用バッファ部C142または低速用バッファ部C143に有る場合には、スイッチ処理部C130は、当該通信パケットの優先番号を6から7に書き換える。次に、スイッチ処理部C130はステップS624に進む。 In step S623, the switch processing unit C130 rewrites the priority number of the communication packet having the change history of rewriting the priority number to the original priority number. As an example, when a communication packet whose priority number has been rewritten from 7 to 6 exists in the normal buffer unit C142 or the low-speed buffer unit C143, the switch processing unit C130 changes the priority number of the communication packet from 6 to 7. rewrite. Next, the switch processing unit C130 proceeds to step S624.

ステップS624において、スイッチ処理部C130は、ステップS623において優先番号が書き換えられた通信パケットを、書き換えられた優先番号に対応する出力バッファ部C140に移動させて、格納する。一例として、ステップS623において優先番号が6から7に書き換えられた通常用バッファ部C142に格納されていた通信パケットを、スイッチ処理部C130は優先用バッファ部C141に移動させて、格納する。このように、スイッチ処理部C130は、高優先度通信専用時間で伝送されていた通信パケットが高優先度通信専用時間の時間内で送信できずに優先番号が下がった場合に、次のサイクルにおいて優先的に高優先度通信専用時間で送信されるようにする。 In step S624, the switch processing unit C130 moves the communication packet whose priority number has been rewritten in step S623 to the output buffer unit C140 corresponding to the rewritten priority number and stores it. As an example, the switch processing unit C130 moves the communication packet stored in the normal buffer unit C142 whose priority number has been rewritten from 6 to 7 in step S623 to the priority buffer unit C141 and stores it. In this way, when the communication packet transmitted in the high priority communication dedicated time cannot be transmitted within the high priority communication dedicated time and the priority number is lowered, the switch processing unit C130 performs the next cycle. Priority is given to transmission in the high-priority communication-only time.

図7(a)は、図6のステップS606からステップS609の動作を説明するための模式図の一例である。ステップS606において、スイッチ処理部C130は通信パケットP81を優先用バッファ部C141に格納する。ステップS607において、スイッチ処理部C130は優先用バッファ部C141に格納した通信パケットP81のコピーをスイッチ処理部C130に作成する。ステップS608において、スイッチ処理部C130はコピーされた通信パケットの優先番号の書き換えを実施する。例えば、図7(a)においては、スイッチ処理部C130はVLANプライオリティ番号を最高優先度の7から次の優先度の6に書き換える。ステップS609において、スイッチ処理部C130は優先番号が書き換えられた通信パケットを通常用バッファ部C142に格納する。 FIG. 7A is an example of a schematic diagram for explaining the operation of steps S606 to S609 of FIG. In step S606, the switch processing unit C130 stores the communication packet P81 in the priority buffer unit C141. In step S607, the switch processing unit C130 creates a copy of the communication packet P81 stored in the priority buffer unit C141 in the switch processing unit C130. In step S608, the switch processing unit C130 rewrites the priority number of the copied communication packet. For example, in FIG. 7A, the switch processing unit C130 rewrites the VLAN priority number from the highest priority 7 to the next priority 6. In step S609, the switch processing unit C130 stores the communication packet whose priority number has been rewritten in the normal buffer unit C142.

図7(b)は、図6のステップS612の動作を説明するための模式図の一例である。ステップS612において、高優先度通信専用時間の間に最高優先度の通信パケットの通信が完了しているので、スイッチ処理部C130は当該通信パケットの優先度を書き換えた通常用バッファ部C142に格納されている通信パケットを削除する。図7(b)では、優先用バッファ部C141に格納した優先度が7の通信パケットP81の通信が成功すると、送信完了の割り込み通知が、出力バッファ部C140からスイッチ処理部C130に伝送される。送信完了の割り込み通知を受信したスイッチ処理部C130は、当該通信パケットの優先度が7から6に書き換えられた通常用バッファ部C142に格納されている通信パケットを削除する命令を通常用バッファ部C142に伝送する。通常用バッファ部C142は、優先度が7から6に書き換えられた通信パケットを削除する。これによって、スイッチ処理部C130は同一のデータを有する通信パケットが二重に送信されることを防止する。 FIG. 7B is an example of a schematic diagram for explaining the operation of step S612 of FIG. In step S612, since the communication of the highest priority communication packet is completed during the high priority communication dedicated time, the switch processing unit C130 is stored in the normal buffer unit C142 in which the priority of the communication packet is rewritten. Delete the communication packet that is being used. In FIG. 7B, when the communication of the communication packet P81 having a priority of 7 stored in the priority buffer unit C141 is successful, the transmission completion interrupt notification is transmitted from the output buffer unit C140 to the switch processing unit C130. Upon receiving the transmission completion interrupt notification, the switch processing unit C130 issues an instruction to delete the communication packet stored in the normal buffer unit C142 in which the priority of the communication packet is rewritten from 7 to 6 in the normal buffer unit C142. To transmit to. The normal buffer unit C142 deletes the communication packet whose priority has been rewritten from 7 to 6. As a result, the switch processing unit C130 prevents the communication packet having the same data from being transmitted twice.

図7(c)は、図6のステップS614の動作の一部を説明するための模式図の一例である。ステップS614では以下の処理を実行する。すなわち、高優先度通信専用時間の次の時間帯に通信パケットの通信が完了しているか否かに関わらず、スイッチ処理部C130は当該通信パケットの優先度を書き換える前の最高優先度の優先用バッファ部C141に格納されている通信パケットを削除する。図7(c)では、高優先度通信専用時間の次の時間帯に通信パケットの通信が完了した場合について説明する。通常用バッファ部C142に格納した優先度が6の通信パケットP81の通信が成功すると、送信完了の割り込み通知が、出力バッファ部C140からスイッチ処理部C130に伝送される。送信完了の割り込み通知を受信したスイッチ処理部C130は、当該通信パケットの優先度が書き換えられる前の優先用バッファ部C141に格納されている通信パケットを削除する命令を優先用バッファ部C141に伝送する。優先用バッファ部C141は、優先度が6に書き換えられ前の優先度が7の通信パケットを削除する。これによって、スイッチ処理部C130は同一のデータを有する通信パケットが二重に送信されることを防止する。なお、高優先度通信専用時間の次の時間帯に通信パケットの通信が完了しない場合には、送信未完了の割り込み通知が発生する。送信未完了の割り込み通知を受信したスイッチ処理部C130は、当該通信パケットの優先度が書き換えられる前の優先用バッファ部C141に格納されている通信パケットを削除する命令を優先用バッファ部C141に伝送する。ステップS613にて出力された通信パケットの通信が完了していない場合には、前述したステップS622からステップS624において、当該通信パケットは通常用バッファ部C142から優先用バッファ部C141に格納される。したがって、次の通信サイクルにおいて、高優先度通信専用時間に優先的に当該通信パケットが送信される。 FIG. 7C is an example of a schematic diagram for explaining a part of the operation of step S614 of FIG. In step S614, the following processing is executed. That is, regardless of whether or not the communication of the communication packet is completed in the time zone next to the high priority communication dedicated time, the switch processing unit C130 is for prioritizing the highest priority before rewriting the priority of the communication packet. The communication packet stored in the buffer unit C141 is deleted. FIG. 7C describes a case where communication of the communication packet is completed in the time zone next to the high priority communication dedicated time. When the communication of the communication packet P81 having a priority of 6 stored in the normal buffer unit C142 is successful, the transmission completion interrupt notification is transmitted from the output buffer unit C140 to the switch processing unit C130. Upon receiving the transmission completion interrupt notification, the switch processing unit C130 transmits an instruction to delete the communication packet stored in the priority buffer unit C141 before the priority of the communication packet is rewritten to the priority buffer unit C141. .. The priority buffer unit C141 deletes the communication packet whose priority is rewritten to 6 and the previous priority is 7. As a result, the switch processing unit C130 prevents the communication packet having the same data from being transmitted twice. If the communication packet communication is not completed in the time zone next to the high priority communication dedicated time, an interrupt notification of incomplete transmission is generated. Upon receiving the interrupt notification of incomplete transmission, the switch processing unit C130 transmits an instruction to delete the communication packet stored in the priority buffer unit C141 before the priority of the communication packet is rewritten to the priority buffer unit C141. To do. If the communication of the communication packet output in step S613 is not completed, the communication packet is stored in the priority buffer unit C141 from the normal buffer unit C142 in steps S622 to S624 described above. Therefore, in the next communication cycle, the communication packet is preferentially transmitted during the high priority communication dedicated time.

図8は、通信パケット内に元の優先度情報を格納する方法の一例を示し、MAC-in-MAC(IEEE802.1ah)で通信フレームのカプセル化を行う手法を利用する例である。図8の通信フレームのカプセル化によって、通信パケットの優先度情報の書き換えの有無および元の優先度情報の判定をスイッチ処理部C130が行うことが可能になる。しかし、優先度情報の書き換えの有無および元の優先度情報の判定処理は、通信フレームのカプセル化に限定されるわけではない。 FIG. 8 shows an example of a method of storing the original priority information in a communication packet, and is an example of using a method of encapsulating a communication frame by MAC-in-MAC (IEEE802.1ah). By encapsulating the communication frame of FIG. 8, the switch processing unit C130 can determine whether or not the priority information of the communication packet is rewritten and the original priority information. However, the presence / absence of rewriting of the priority information and the determination process of the original priority information are not limited to the encapsulation of the communication frame.

図8において、通信パケットの優先度情報を7から6に引き下げた場合の通信フレームの構成例を示す。優先度情報の書き換えは、元の優先度情報が格納されているヘッダーでは行わず、新たに優先度情報が格納されるヘッダーを追加する。新たな優先度情報が格納されるヘッダーの前には、元の通信フレームの宛先アドレスと送信先アドレスが書き込まれ、カプセル化が実行される。通信パケットの優先度は新たな優先度情報が格納されているヘッダーで判定される。また、優先度の変更履歴の有無は、新たな優先度情報が格納されているヘッダーの次の宛先アドレスの有無によって判定される。新たな優先度情報が格納されているヘッダーの次に宛先アドレスが存在する場合には、宛先アドレスの隣の送信先アドレスの隣の優先度情報が格納されているヘッダーの優先度情報によって、通信パケットの元の優先度が判定される。 FIG. 8 shows a configuration example of a communication frame when the priority information of the communication packet is lowered from 7 to 6. The priority information is not rewritten in the header in which the original priority information is stored, but a new header in which the priority information is stored is added. The destination address and destination address of the original communication frame are written before the header in which the new priority information is stored, and encapsulation is executed. The priority of the communication packet is determined by the header in which the new priority information is stored. Further, the presence / absence of the priority change history is determined by the presence / absence of the destination address next to the header in which the new priority information is stored. If the destination address exists next to the header in which the new priority information is stored, communication is performed by the priority information in the header in which the priority information next to the destination address next to the destination address is stored. The original priority of the packet is determined.

以上のように、本実施形態の構成によれば、高優先度通信専用時間内の制限時間になった場合には、スイッチ処理部C130は、当該通信パケットを優先用バッファ部C141に格納するとともに、VLANプライオリティ番号を1つ下げる。そして、スイッチ処理部C130は、VLANプライオリティ番号を7から6に1つ下げた通信パケットを通常用バッファ部C142に格納する。スイッチ処理部C130は、優先用バッファ部C141からVLANプライオリティ番号7の通信パケットを通信し、通信が失敗した場合は通常用バッファ部C142からVLANプライオリティ番号を7から6に1つ下げた通信パケットを通信する。スイッチ処理部C130は、いずれかの通信が成功したら、通信に成功していない優先用バッファ部C141または通常用バッファ部C142に格納されている通信パケットを削除する。また、通常用バッファ部C142からの通信が失敗した場合にも、優先用バッファ部C141に格納されているVLANプライオリティ番号が書き換えられる前の通信パケットを削除する。これによって、スイッチ処理部C130は同一のデータを有する通信パケットが二重に送信されることを防止する。また、スイッチ処理部C130は高優先度通信専用時間が終了する前に、上記処理を実行するために、VLANプライオリティ番号の書き換え処理等による遅延が発生しないので、リアルタイム性を改善することが可能になる。 As described above, according to the configuration of the present embodiment, when the time limit within the high priority communication dedicated time is reached, the switch processing unit C130 stores the communication packet in the priority buffer unit C141. , Decrease the VLAN priority number by one. Then, the switch processing unit C130 stores the communication packet in which the VLAN priority number is lowered by one from 7 to 6 in the normal buffer unit C142. The switch processing unit C130 communicates the communication packet of the VLAN priority number 7 from the priority buffer unit C141, and when the communication fails, the communication packet in which the VLAN priority number is lowered by one from the normal buffer unit C142 to 6 is transmitted. connect. When any communication is successful, the switch processing unit C130 deletes the communication packet stored in the priority buffer unit C141 or the normal buffer unit C142 that has not succeeded in communication. Further, even when the communication from the normal buffer unit C142 fails, the communication packet before the VLAN priority number stored in the priority buffer unit C141 is rewritten is deleted. As a result, the switch processing unit C130 prevents the communication packet having the same data from being transmitted twice. Further, since the switch processing unit C130 executes the above processing before the high priority communication dedicated time ends, there is no delay due to the rewriting processing of the VLAN priority number and the like, so that the real-time performance can be improved. Become.

また、優先順位が書き換えられた通信パケットが現在のサイクル内で送信できない場合は、次の通信サイクルの高優先度通信専用時間の後の時間帯に送信されることになるので、リアルタイム性が損なわれてしまう。そこで、上記実施形態によれば、優先順位が書き換えられた通信パケットの優先順位を元の優先順位に書き換え、元の優先順位が例えば最高順位であれば、通信パケットを優先用バッファ部C141に移動させて、格納する。したがって、次の通信サイクルで、当該通信パケットは高優先度通信専用時間において優先的に送信されることが可能になる。 In addition, if the communication packet whose priority has been rewritten cannot be transmitted within the current cycle, it will be transmitted in the time zone after the high priority communication dedicated time of the next communication cycle, so that the real-time property is impaired. It will be lost. Therefore, according to the above embodiment, the priority of the communication packet whose priority has been rewritten is rewritten to the original priority, and if the original priority is, for example, the highest priority, the communication packet is moved to the priority buffer unit C141. Let and store. Therefore, in the next communication cycle, the communication packet can be preferentially transmitted in the high priority communication dedicated time.

図9は、通信端末Nから通信端末N+1にVLANプライオリティ番号7の通信パケットを送信する場合の本実施形態の動作を上位概念化した図である。 FIG. 9 is a higher-level conceptual diagram of the operation of the present embodiment when a communication packet having a VLAN priority number 7 is transmitted from the communication terminal N to the communication terminal N + 1.

通信端末NからVLANプライオリティ番号7を有する通信パケットP1sが中継器C100に送信される。通信パケットP1sを受信した中継器C100は通信パケットP1sを高優先度通信専用時間帯に送信可能であるので、通信パケットP1sを通信パケットP1s’として中継器C200に送信する。通信パケットP1s’を受信した中継器C200は通信パケットP1s’を高優先度通信専用時間帯に送信可能であるので、通信パケットP1s’を通信パケットP1s’’として中継器C300に送信する。 The communication packet P1s having the VLAN priority number 7 is transmitted from the communication terminal N to the repeater C100. Since the repeater C100 that has received the communication packet P1s can transmit the communication packet P1s in the high priority communication dedicated time zone, the communication packet P1s is transmitted to the repeater C200 as the communication packet P1s'. Since the repeater C200 that has received the communication packet P1s'can transmit the communication packet P1s' in the high priority communication dedicated time zone, the communication packet P1s' is transmitted to the repeater C300 as the communication packet P1s ″.

通信パケットP1s’’を受信した中継器C300は通信パケットP1s’’を高優先度通信専用時間帯に送信することが不可能であるので、通信パケットP1s’’のVLANプライオリティ番号を7から6に下げる。中継器C300はVLANプライオリティ番号が6となった通信パケットP1s’’を通信パケットP1s’’’として、VLANプライオリティ番号6に対応する通信時間帯で通信端末N+1に送信する。 Since the repeater C300 that has received the communication packet P1s'' cannot transmit the communication packet P1s'' in the high priority communication dedicated time zone, the VLAN priority number of the communication packet P1s'' is changed from 7 to 6. Lower. The repeater C300 transmits the communication packet P1s ″ having the VLAN priority number 6 as the communication packet P1s ″ to the communication terminal N + 1 in the communication time zone corresponding to the VLAN priority number 6.

以上説明したように、高優先度に設定した通信パケットが、伝搬遅延により高優先度通信専用時間内に送れなくなった場合には、中継器で優先度を一段下げることで、遅延を最小限にすることが可能になる。また、TSNの高優先度通信専用時間帯において通信パケットの数および通信間隔を調節する必要がなくなるので、通信資源を効率的に使用することが可能となる。 As described above, when a communication packet set to high priority cannot be sent within the high priority communication dedicated time due to propagation delay, the delay is minimized by lowering the priority one step at the repeater. It becomes possible to do. Further, since it is not necessary to adjust the number of communication packets and the communication interval in the high priority communication dedicated time zone of TSN, communication resources can be used efficiently.

(変形例)
以上の説明では、本実施形態に係るTSNの改良された機能を中継器に実装した場合を説明してきたが、当該TSNの改良された機能は車載ネットワークにおいても利用することが可能である。
(Modification example)
In the above description, the case where the improved function of the TSN according to the present embodiment is implemented in the repeater has been described, but the improved function of the TSN can also be used in the in-vehicle network.

図10は車載ネットワークの一例を図示するものである。図10の構成には、カメラS100、ECU(Electronic Control Unit:E100、E200、E300、E400)、センサS200、SW(車載スイッチングハブ:A100、A200)が含まれる。さらに、図10の構成には、GW(車載ゲートウェイ:A300)、RT(車載ルータ:A400)、通信モジュールT100、GWに接続されるCAN(Controller Area Network:N100)が含まれる。 FIG. 10 illustrates an example of an in-vehicle network. The configuration of FIG. 10 includes a camera S100, an ECU (Electronic Control Unit: E100, E200, E300, E400), a sensor S200, and a SW (vehicle-mounted switching hub: A100, A200). Further, the configuration of FIG. 10 includes a GW (vehicle-mounted gateway: A300), an RT (vehicle-mounted router: A400), a communication module T100, and a CAN (Controller Area Network: N100) connected to the GW.

図10の車載ネットワークでは、当該TSNの改良された機能は、車載スイッチングハブA100、A200、車載ゲートウェイA300および車載ルータA400に実装することが可能である。 In the vehicle-mounted network of FIG. 10, the improved functions of the TSN can be implemented in the vehicle-mounted switching hubs A100 and A200, the vehicle-mounted gateway A300, and the vehicle-mounted router A400.

したがって、ECU(E100、E200、E300、E400)、通信モジュールT100およびCAN(N100)間で高優先度に設定された通信パケットが、伝搬遅延により高優先度通信専用時間内に送れなくなった場合には、以下の処理を実行する。すなわち、高優先度に設定された通信パケットの優先度を一段下げる処理を実行することで、遅延を最小限にすることが可能になる。また、TSNの高優先度通信専用時間帯において通信パケットの数および通信間隔を調節する必要がなくなるので、通信資源を効率的に使用することが可能となる。 Therefore, when a communication packet set to a high priority between the ECUs (E100, E200, E300, E400), the communication module T100 and the CAN (N100) cannot be sent within the high priority communication dedicated time due to propagation delay. Executes the following processing. That is, the delay can be minimized by executing the process of lowering the priority of the communication packet set to the high priority by one step. Further, since it is not necessary to adjust the number of communication packets and the communication interval in the high priority communication dedicated time zone of TSN, communication resources can be used efficiently.

なお、上述した実施形態では、VLANプライオリティ番号が7である通信パケットの優先度を1つ下げる例について説明したが、VLANプライオリティ番号が6〜1の通信パケットの優先度を1つ下げる構成とすることも可能である。この場合には、VLANプライオリティ番号ごとに専用の通信時間帯が設定されていてもよい。また、複数のVLANプライオリティ番号ごとに専用の通信時間帯が設定されていてもよい。 In the above-described embodiment, an example in which the priority of the communication packet having the VLAN priority number of 7 is lowered by one has been described, but the priority of the communication packet having the VLAN priority number of 6 to 1 is lowered by one. It is also possible. In this case, a dedicated communication time zone may be set for each VLAN priority number. Further, a dedicated communication time zone may be set for each of a plurality of VLAN priority numbers.

なお、各通信パケットには、VLANプライオリティ番号の他にサイクル番号を特定するためのサイクル番号識別子が含まれる構成とすることも可能である。 It is also possible to configure each communication packet to include a cycle number identifier for specifying the cycle number in addition to the VLAN priority number.

以下に、本実施形態の中継器C100および通信システム1000の特徴について記載する。 The features of the repeater C100 and the communication system 1000 of this embodiment will be described below.

本開示の第1の態様に係る中継器C100は、通信パケットを優先度順に伝送するための優先度情報を有する通信パケットに対して、優先度情報に対応する専用の通信時間帯を通信サイクルに含む通信方式を用いる。通信パケットを中継する中継器C100は、入力された通信パケットから通信パケットの優先度情報を抽出し、優先度情報に対応する、出力バッファ部C140のバッファ部に通信パケットを出力するスイッチ処理部C130を含む。スイッチ処理部C130は、最高の優先度情報を有する通信パケットを最高の優先度情報に対応する専用の通信時間帯の終了時刻から遡った制限時間内に受信した場合には、以下の処理を実行する。最高の優先度情報を有する通信パケットを、最高の優先度情報に対応する、出力バッファ部C140の優先用バッファ部C141に出力する。また、通信パケットの優先度情報を次の優先度の優先度情報に下げ、通信パケットを下げられた優先度情報に対応する、出力バッファ部C140のバッファ部にも出力する。 The repeater C100 according to the first aspect of the present disclosure sets a dedicated communication time zone corresponding to the priority information in the communication cycle for the communication packet having the priority information for transmitting the communication packet in the order of priority. Use the including communication method. The repeater C100 that relays the communication packet extracts the priority information of the communication packet from the input communication packet, and outputs the communication packet to the buffer unit of the output buffer unit C140 corresponding to the priority information. including. When the switch processing unit C130 receives the communication packet having the highest priority information within the time limit retroactive from the end time of the dedicated communication time zone corresponding to the highest priority information, the switch processing unit C130 executes the following processing. To do. The communication packet having the highest priority information is output to the priority buffer unit C141 of the output buffer unit C140 corresponding to the highest priority information. Further, the priority information of the communication packet is lowered to the priority information of the next priority, and the communication packet is output to the buffer section of the output buffer section C140 corresponding to the lowered priority information.

上記構成によれば、高優先度に設定した通信パケットが、伝搬遅延により高優先度通信専用時間内に送れなくなった場合には、中継器で優先度を一段下げることで、遅延を最小限にし、高優先度通信専用時間帯の通信資源を効率的に使用することが可能となる。 According to the above configuration, when a communication packet set to a high priority cannot be sent within the high priority communication dedicated time due to propagation delay, the delay is minimized by lowering the priority one step at the repeater. , It becomes possible to efficiently use the communication resources in the high priority communication dedicated time zone.

本開示の第2の態様に係る中継器C100は、第1の態様に係る中継器C100に関し、制限時間は、最高の優先度情報を有する通信パケットが自中継器から送信宛の通信端末に転送されるまでの時間である。 The repeater C100 according to the second aspect of the present disclosure relates to the repeater C100 according to the first aspect, and the time limit is such that the communication packet having the highest priority information is transferred from the self-repeater to the communication terminal to be transmitted. It is the time until it is done.

上記構成によれば、最高の優先度情報を有する通信パケットを送信する場合に制限時間LT内である場合には、通信パケットの通信が未完了になる可能性がある。この場合に、通信パケットを優先用バッファ部C141と、下げられた優先度情報に対応するバッファ部に格納することで、通信パケットの通信が完了する確率を高めることが可能になる。 According to the above configuration, when the communication packet having the highest priority information is transmitted and the time limit is within the LT, the communication of the communication packet may be incomplete. In this case, by storing the communication packet in the priority buffer unit C141 and the buffer unit corresponding to the lowered priority information, it is possible to increase the probability that the communication of the communication packet is completed.

本開示の第3の態様に係る中継器C100は、第1の態様または第2の態様に係る中継器C100に関し、下げられた優先度情報に対応する、出力バッファ部C140のバッファ部は通常用バッファ部C142である。通常用バッファ部C142には、優先度情報が書き換えられていない通常用バッファ部C142の優先度情報に対応する通信パケットも格納される。 The repeater C100 according to the third aspect of the present disclosure corresponds to the lowered priority information with respect to the repeater C100 according to the first aspect or the second aspect, and the buffer part of the output buffer part C140 is for normal use. The buffer unit C142. Communication packets corresponding to the priority information of the normal buffer unit C142 whose priority information has not been rewritten are also stored in the normal buffer unit C142.

上記構成によれば、制限時間LT内に最高の優先度情報を有する通信パケットを送信する場合には、優先用バッファ部C141に格納し、最高の優先度情報の次の優先度に優先度情報に書き換えて、通常用バッファ部C142にも格納する。したがって、最高の優先度情報を有する通信パケットを高優先度通信専用時間または高優先度通信専用時間の次の時間帯に送信できる場合があるので、最高の優先度に設定した通信パケットの伝搬遅延を最小限にすることが可能になる。 According to the above configuration, when a communication packet having the highest priority information is transmitted within the time limit LT, it is stored in the priority buffer unit C141, and the priority information is set to the next priority of the highest priority information. Is rewritten to and stored in the normal buffer unit C142. Therefore, the communication packet having the highest priority information may be transmitted in the time zone next to the high priority communication dedicated time or the high priority communication dedicated time, so that the propagation delay of the communication packet set to the highest priority may be delayed. Can be minimized.

本開示の第4の態様に係る中継器C100は、第3の態様に係る中継器C100に関し、スイッチ処理部C130は、優先用バッファ部C141に格納された最高の優先度情報を有する通信パケットを送信する。スイッチ処理部C130は、最高の優先度情報に対応する専用の通信時間帯に通信パケットが送信完了した場合には、通常用バッファ部C142に格納された優先度情報が書き換えられた通信パケットを削除する。 The repeater C100 according to the fourth aspect of the present disclosure relates to the repeater C100 according to the third aspect, and the switch processing unit C130 transmits a communication packet having the highest priority information stored in the priority buffer unit C141. Send. When the communication packet is completed in the dedicated communication time zone corresponding to the highest priority information, the switch processing unit C130 deletes the communication packet in which the priority information stored in the normal buffer unit C142 is rewritten. To do.

上記構成によれば、制限時間LT内に最高の優先度情報を有する通信パケットの送信が完了する場合には、通信パケットの二重送信を防ぐために、通常用バッファ部C142に格納された優先度情報が書き換えられた通信パケットを削除する。 According to the above configuration, when the transmission of the communication packet having the highest priority information within the time limit LT is completed, the priority stored in the normal buffer unit C142 is stored in order to prevent double transmission of the communication packet. Delete the communication packet whose information has been rewritten.

上記の制限時間LTは、高優先度通信専用時間内で通信を終了することができない理論的な値となる。つまり、理論的には上記制限時間LTを過ぎた場合は、通信パケットの優先度を下げ、一段下のバッファに格納する処理を行うべきである。しかし、通常、中継器C100の転送時間は常に一定ではなく、処理負荷などによって変化するため、上記制限時間LTを過ぎていても、高優先度通信専用時間内での通信が完了する可能性も考えられる。このため高優先度通信専用時間内での通信は試みるべきであり、通信が成功すれば、遅延時間を最小にして通信を完了させることが可能となる。 The above time limit LT is a theoretical value at which communication cannot be terminated within the high priority communication dedicated time. That is, theoretically, when the time limit LT is exceeded, the priority of the communication packet should be lowered and the process of storing the communication packet in the buffer one step lower should be performed. However, normally, the transfer time of the repeater C100 is not always constant and changes depending on the processing load or the like. Therefore, even if the time limit LT is exceeded, communication may be completed within the high priority communication dedicated time. Conceivable. Therefore, communication should be attempted within the high priority communication dedicated time, and if the communication is successful, the communication can be completed with the minimum delay time.

本開示の第5の態様に係る中継器C100は、第4の態様に係る中継器C100に関し、スイッチ処理部C130は、優先用バッファ部C141に格納された最高の優先度情報を有する通信パケットの送信を送信する。スイッチ処理部C130は、当該通信パケットが最高の優先度情報に対応する専用の通信時間帯に完了しない場合には、通常用バッファ部C142に格納された優先度情報が書き換えられた通信パケットを送信する。そして、スイッチ処理部C130は、優先用バッファ部C141に格納された最高の優先度情報を有する通信パケットを削除する。 The repeater C100 according to the fifth aspect of the present disclosure relates to the repeater C100 according to the fourth aspect, and the switch processing unit C130 is a communication packet having the highest priority information stored in the priority buffer unit C141. Send a send. If the communication packet is not completed in the dedicated communication time zone corresponding to the highest priority information, the switch processing unit C130 transmits a communication packet in which the priority information stored in the normal buffer unit C142 is rewritten. To do. Then, the switch processing unit C130 deletes the communication packet having the highest priority information stored in the priority buffer unit C141.

上記構成によれば、制限時間LT内に最高の優先度情報を有する通信パケットの送信が完了しない場合には通常用バッファ部C142に格納された優先度情報が書き換えられた通信パケットを送信し、優先用バッファ部C141に格納された通信パケットを削除する。この構成によって、通信パケットの二重送信を防ぐことが可能になる。また、高優先度通信専用時間内での通信を試みつつ、通信が完了できなかった場合は、無駄な遅延時間を必要とせず優先度を下げる処理を行えるため、遅延時間を最小にして通信を完了させることが可能となる。 According to the above configuration, when the transmission of the communication packet having the highest priority information within the time limit LT is not completed, the communication packet in which the priority information stored in the normal buffer unit C142 is rewritten is transmitted. The communication packet stored in the priority buffer unit C141 is deleted. This configuration makes it possible to prevent double transmission of communication packets. In addition, if communication cannot be completed while trying to communicate within the high-priority communication dedicated time, the priority can be lowered without requiring unnecessary delay time, so communication is performed with the delay time minimized. It will be possible to complete.

本開示の第6の態様に係る中継器C100は、第1の態様から第5の態様に係る中継器C100のいずれかに関する。スイッチ処理部C130は、1通信サイクルの終了時に、優先度情報が書き換えられた通信パケットが、書き換えられた優先度情報に対応する、出力バッファ部C140のバッファ部に存在するか否かを判定する。優先度情報が書き換えられた通信パケットが、存在する場合には、当該通信パケットの優先度情報を書き換えられる前の優先度情報に戻し、当該通信パケットを書き換えられる前の優先度情報に対応する、出力バッファ部C140のバッファ部に移動させる。 The repeater C100 according to the sixth aspect of the present disclosure relates to any of the repeaters C100 according to the first to fifth aspects. At the end of one communication cycle, the switch processing unit C130 determines whether or not the communication packet whose priority information has been rewritten exists in the buffer unit of the output buffer unit C140 corresponding to the rewritten priority information. .. If there is a communication packet whose priority information has been rewritten, the priority information of the communication packet is returned to the priority information before being rewritten, and the communication packet corresponds to the priority information before being rewritten. Move to the buffer section of the output buffer section C140.

1通信サイクルの終了時に、優先度情報が書き換えられた通信パケットが、出力バッファ部C140の低優先度のバッファ部に存在する場合には、次の通信サイクルにおいて、当該通信パケットの送信タイミングが遅れてしまう。しかし、上記構成によれば、優先度情報を書き換えられる前の優先度情報に戻し、書き換えられる前の優先度情報に対応する高優先度のバッファ部に移動するので、送信タイミングが遅れずにリアルタイム性を損なわないようにすることが可能である。 If a communication packet whose priority information has been rewritten exists in the low priority buffer section of the output buffer section C140 at the end of one communication cycle, the transmission timing of the communication packet is delayed in the next communication cycle. It ends up. However, according to the above configuration, the priority information is returned to the priority information before being rewritten and moved to the high priority buffer unit corresponding to the priority information before being rewritten, so that the transmission timing is not delayed and is real-time. It is possible not to impair the sex.

本開示の第7の態様に係る中継器C100は、第6の態様に係る中継器C100に関する。スイッチ処理部C130は、1通信サイクルの開始時に優先用バッファ部C141に格納された最高の優先度情報を有する通信パケットが存在する場合には、当該最高の優先度情報を有する通信パケットを、最高の優先度情報に対応する専用の通信時間帯に送信する。 The repeater C100 according to the seventh aspect of the present disclosure relates to the repeater C100 according to the sixth aspect. When the communication packet having the highest priority information stored in the priority buffer unit C141 exists at the start of one communication cycle, the switch processing unit C130 sets the communication packet having the highest priority information to the highest. It is transmitted in the dedicated communication time zone corresponding to the priority information of.

上記構成によれば、優先度情報が書き換えられる前の最高の優先度情報に戻った通信パケットは、最高の優先度情報に対応する専用の通信時間帯に送信されるので、送信タイミングが遅れずにリアルタイム性を損なわないようにすることが可能である。 According to the above configuration, the communication packet returning to the highest priority information before the priority information is rewritten is transmitted in the dedicated communication time zone corresponding to the highest priority information, so that the transmission timing is not delayed. It is possible not to impair the real-time property.

本開示の第8の態様に係る中継器C100は、第1の態様から第7の態様に係る中継器C100のいずれかに関する。通信方式は、最も優先度が高い通信パケットを伝送するための高優先度通信時間帯およびその他の優先度を有する通信パケットを伝送するための通信時間帯を通信サイクルに有し、高優先度通信時間帯は各通信サイクルの先頭に位置する。 The repeater C100 according to the eighth aspect of the present disclosure relates to any of the repeaters C100 according to the first to seventh aspects. The communication method has a high-priority communication time zone for transmitting the communication packet having the highest priority and a communication time zone for transmitting a communication packet having other priority in the communication cycle, and high-priority communication. The time zone is located at the beginning of each communication cycle.

上記構成によれば、通信サイクルには、最も優先度が高い通信パケットを伝送するための高優先度通信時間帯が設けられているので、緊急な通信を必要とする通信パケット等の重要な通信パケットの伝送の遅延を低減することが可能になる。また、上記構成によれば、通信サイクルの先頭に緊急な通信を必要とする通信パケット等の重要な通信パケットの通信時間帯が設けられるので、優先的に当該通信パケットが送信されることが可能になる。さらに、当該優先度から優先度を下げられた通信パケットも迅速に送信されることが期待されるので通信性能の向上が可能となる。 According to the above configuration, since the communication cycle is provided with a high priority communication time zone for transmitting the communication packet having the highest priority, important communication such as a communication packet requiring urgent communication is provided. It is possible to reduce the delay in packet transmission. Further, according to the above configuration, since the communication time zone of an important communication packet such as a communication packet requiring urgent communication is provided at the beginning of the communication cycle, the communication packet can be preferentially transmitted. become. Further, since it is expected that the communication packet whose priority is lowered from the priority is also transmitted quickly, the communication performance can be improved.

本開示の第9の態様に係る通信システム1000は、第1の態様から第8の態様のいずれかに記載の中継器C100と、中継器C100に直接的または間接的に接続される、通信パケットを送受信する少なくとも一つ以上の通信端末Nを含む。 The communication system 1000 according to the ninth aspect of the present disclosure is a communication packet directly or indirectly connected to the repeater C100 according to any one of the first to eighth aspects and the repeater C100. Includes at least one or more communication terminals N for transmitting and receiving.

上記構成によれば、高優先度に設定した通信パケットが、伝搬遅延により高優先度通信専用時間内に送れなくなった場合には、中継器で優先度を一段下げることで、遅延を最小限にし、高優先度通信専用時間帯の通信資源を効率的に使用することが可能となる。 According to the above configuration, when a communication packet set to a high priority cannot be sent within the high priority communication dedicated time due to propagation delay, the delay is minimized by lowering the priority one step at the repeater. , It becomes possible to efficiently use the communication resources in the high priority communication dedicated time zone.

以上説明したように、本実施形態によって、TSNの高優先度通信専用時間内で送信できなかった通信パケットの遅延を最小限に抑えることが可能になる。遅延の発生頻度、影響、および、許容時間はネットワークの設計およびアプリケーションによって異なってくるが、本実施形態を導入することによって得られる効果がある。車両関連であれば、ADASや自動運転など、遅延が致命的となるアプリケーションの普及が進むことが想定されるので、本実施形態を導入することによって得られる効果は大きい。 As described above, according to the present embodiment, it is possible to minimize the delay of the communication packet that could not be transmitted within the high priority communication dedicated time of the TSN. The frequency, impact, and permissible time of delay will vary depending on the network design and application, but the effects obtained by introducing this embodiment will be obtained. In the case of vehicle-related applications, it is expected that applications such as ADAS and autonomous driving, in which delays are fatal, will become widespread, and therefore, the effect obtained by introducing this embodiment is great.

また、以上説明したように、本実施形態によって、TSNの高優先度通信専用時間の帯域を効率的に利用することが可能になる。最適な帯域は、端末数、通信量、それぞれのアプリケーションが必要とする帯域によって異なってくるが、本実施形態を導入することによって効果が得られる。IT系ネットワークおよび車載ネットワーク共に今後も通信量の増加が懸念されるので、本実施形態を導入することによって得られる効果は大きい。特に、車両関連であれば、ADAS、自動運転、および、V2Xによる情報の取得/送信など、これまで搭載されていなかったアプリケーションの普及が進み、通信量の増加が想定されるので、本実施形態を導入することによって得られる効果は大きい。 Further, as described above, according to the present embodiment, it is possible to efficiently use the band of the high priority communication dedicated time of the TSN. The optimum band differs depending on the number of terminals, the amount of communication, and the band required by each application, but the effect can be obtained by introducing this embodiment. Since there is a concern that the amount of communication will continue to increase in both the IT network and the in-vehicle network, the effect obtained by introducing this embodiment is great. In particular, in the case of vehicle-related applications, applications that have not been installed so far, such as ADAS, autonomous driving, and acquisition / transmission of information by V2X, are becoming more widespread, and it is expected that the amount of communication will increase. The effect obtained by introducing is great.

以上、さまざまな実施例を説明したが、それらの実施例の一部または全部を組み合わせて新たな実施例とすることもできる。 Although various examples have been described above, some or all of these examples can be combined into new examples.

C100、C200、C300 中継器
C111 入力ポート部
C112 出力ポート部
C120 入力バッファ部
C130 スイッチ処理部
C140 出力バッファ部
C141 優先用バッファ部
C142 通常用バッファ部
C143 低速用バッファ部
1000 通信システム
C100, C200, C300 Repeater C111 Input port part C112 Output port part C120 Input buffer part C130 Switch processing part C140 Output buffer part C141 Priority buffer part C142 Normal buffer part C143 Low speed buffer part 1000 Communication system

Claims (9)

通信パケットを優先度順に伝送するための優先度情報を有する前記通信パケットに対して、前記優先度情報に対応する専用の通信時間帯を通信サイクルに含む通信方式を用いて、前記通信パケットを中継する中継器であって、
入力された前記通信パケットから前記通信パケットの前記優先度情報を抽出し、前記優先度情報に対応する、出力バッファ部のバッファ部に前記通信パケットを出力するスイッチ処理部を含み、
前記スイッチ処理部は、最高の優先度情報を有する前記通信パケットを前記最高の優先度情報に対応する専用の通信時間帯の終了時刻から遡った制限時間内に受信した場合には、前記通信パケットの前記最高の優先度情報に対応する、出力バッファ部の優先用バッファ部に出力し、前記通信パケットの前記優先度情報を次の優先度の優先度情報に下げ、前記通信パケットを前記下げられた優先度情報に対応する、前記出力バッファ部のバッファ部にも出力する中継器。
For the communication packet having priority information for transmitting the communication packet in the order of priority, the communication packet is relayed by using a communication method in which a communication cycle includes a dedicated communication time zone corresponding to the priority information. It is a repeater that
A switch processing unit that extracts the priority information of the communication packet from the input communication packet and outputs the communication packet to the buffer unit of the output buffer unit corresponding to the priority information is included.
When the switch processing unit receives the communication packet having the highest priority information within the time limit retroactive from the end time of the dedicated communication time zone corresponding to the highest priority information, the communication packet Output to the priority buffer unit of the output buffer unit corresponding to the highest priority information, the priority information of the communication packet is lowered to the priority information of the next priority, and the communication packet is lowered. A repeater that outputs to the buffer section of the output buffer section corresponding to the priority information.
前記制限時間は、最高の優先度情報を有する通信パケットが自中継器から送信宛の通信端末に転送されるまでの時間である請求項1に記載の中継器。 The repeater according to claim 1, wherein the time limit is the time until a communication packet having the highest priority information is transferred from the self-repeater to the communication terminal addressed to transmission. 前記下げられた優先度情報に対応する、前記出力バッファ部のバッファ部は通常用バッファ部であり、前記通常用バッファ部には、優先度情報が書き換えられていない前記通常用バッファ部の優先度情報に対応する通信パケットも格納される請求項1または2に記載の中継器。 The buffer section of the output buffer section corresponding to the lowered priority information is a normal buffer section, and the priority of the normal buffer section in which the priority information is not rewritten in the normal buffer section. The repeater according to claim 1 or 2, wherein a communication packet corresponding to the information is also stored. 前記スイッチ処理部は、前記優先用バッファ部に格納された前記最高の優先度情報を有する通信パケットを送信し、前記最高の優先度情報に対応する専用の通信時間帯に当該通信パケットが送信完了した場合には、前記通常用バッファ部に格納された前記優先度情報が書き換えられた通信パケットを削除する請求項3に記載の中継器。 The switch processing unit transmits a communication packet having the highest priority information stored in the priority buffer unit, and the communication packet is transmitted in a dedicated communication time zone corresponding to the highest priority information. If this is the case, the repeater according to claim 3, wherein the communication packet in which the priority information stored in the normal buffer unit is rewritten is deleted. 前記スイッチ処理部は、前記優先用バッファ部に格納された前記最高の優先度情報を有する通信パケットの送信が前記最高の優先度情報に対応する専用の通信時間帯に完了しない場合には、前記通常用バッファ部に格納された前記優先度情報が書き換えられた通信パケットを送信し、前記優先用バッファ部に格納された前記最高の優先度情報を有する通信パケットを削除する請求項4に記載の中継器。 When the switch processing unit does not complete the transmission of the communication packet having the highest priority information stored in the priority buffer unit in the dedicated communication time zone corresponding to the highest priority information, the switch processing unit said. The fourth aspect of claim 4, wherein the communication packet in which the priority information is rewritten stored in the normal buffer unit is transmitted, and the communication packet having the highest priority information stored in the priority buffer unit is deleted. Repeater. 前記スイッチ処理部は、1通信サイクルの終了時に、優先度情報が書き換えられた通信パケットが、書き換えられた優先度情報に対応する、前記出力バッファ部のバッファ部に存在する場合には、当該通信パケットの優先度情報を書き換えられる前の優先度情報に戻し、当該通信パケットを書き換えられる前の優先度情報に対応する、前記出力バッファ部のバッファ部に移動させる請求項1から請求項5のいずれか一項に記載の中継器。 At the end of one communication cycle, the switch processing unit performs the communication when the communication packet whose priority information has been rewritten exists in the buffer unit of the output buffer unit corresponding to the rewritten priority information. Any of claims 1 to 5 in which the priority information of the packet is returned to the priority information before being rewritten and the communication packet is moved to the buffer section of the output buffer section corresponding to the priority information before being rewritten. The repeater described in item 1. 前記スイッチ処理部は、1通信サイクルの開始時に、前記優先用バッファ部に格納された最高の優先度情報を有する通信パケットが存在する場合には、当該最高の優先度情報を有する通信パケットを、前記最高の優先度情報に対応する専用の通信時間帯に送信する請求項6に記載の中継器。 At the start of one communication cycle, the switch processing unit transfers the communication packet having the highest priority information stored in the priority buffer unit to the communication packet having the highest priority information. The repeater according to claim 6, which transmits in a dedicated communication time zone corresponding to the highest priority information. 前記通信方式は、最も優先度が高い通信パケットを伝送するための高優先度通信時間帯およびその他の優先度を有する通信パケットを伝送するための通信時間帯を前記通信サイクルに有し、前記高優先度通信時間帯は各通信サイクルの先頭に位置する請求項1から請求項7のいずれか一項に記載の中継器。 The communication method has a high priority communication time zone for transmitting a communication packet having the highest priority and a communication time zone for transmitting a communication packet having another priority in the communication cycle, and the high priority communication method is provided. The repeater according to any one of claims 1 to 7, wherein the priority communication time zone is located at the head of each communication cycle. 請求項1から請求項8のいずれか一項に記載の中継器と、
前記中継器に直接的または間接的に接続される、前記通信パケットを送受信する少なくとも一つ以上の通信端末を含むことを特徴とする通信システム。
The repeater according to any one of claims 1 to 8.
A communication system including at least one communication terminal that transmits and receives the communication packet, which is directly or indirectly connected to the repeater.
JP2019152772A 2019-08-23 2019-08-23 Repeaters and communication systems Active JP7299106B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019152772A JP7299106B2 (en) 2019-08-23 2019-08-23 Repeaters and communication systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019152772A JP7299106B2 (en) 2019-08-23 2019-08-23 Repeaters and communication systems

Publications (2)

Publication Number Publication Date
JP2021034863A true JP2021034863A (en) 2021-03-01
JP7299106B2 JP7299106B2 (en) 2023-06-27

Family

ID=74678578

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019152772A Active JP7299106B2 (en) 2019-08-23 2019-08-23 Repeaters and communication systems

Country Status (1)

Country Link
JP (1) JP7299106B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452591A (en) * 2021-06-21 2021-09-28 合安科技技术有限公司 Loop control method and device based on CAN bus continuous data frame
WO2023203884A1 (en) * 2022-04-22 2023-10-26 日立Astemo株式会社 Communication device and in-vehicle electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003143167A (en) * 2001-11-02 2003-05-16 Matsushita Electric Ind Co Ltd Communication method, communication device and communication system
JP2007506364A (en) * 2003-09-17 2007-03-15 リヴュリット コミュニケーションズ インコーポレイテッド How to empirically schedule network packets
JP2017532870A (en) * 2015-02-13 2017-11-02 ミツビシ・エレクトリック・アールアンドディー・センター・ヨーロッパ・ビーヴィMitsubishi Electric R&D Centre Europe B.V. Data frame traffic shaping method in network, device and computer program product
JP2018129661A (en) * 2017-02-08 2018-08-16 日本電信電話株式会社 Signal transfer device and signal transfer method
JP2019004379A (en) * 2017-06-16 2019-01-10 日本電信電話株式会社 Communication device and signal transfer method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003143167A (en) * 2001-11-02 2003-05-16 Matsushita Electric Ind Co Ltd Communication method, communication device and communication system
JP2007506364A (en) * 2003-09-17 2007-03-15 リヴュリット コミュニケーションズ インコーポレイテッド How to empirically schedule network packets
JP2017532870A (en) * 2015-02-13 2017-11-02 ミツビシ・エレクトリック・アールアンドディー・センター・ヨーロッパ・ビーヴィMitsubishi Electric R&D Centre Europe B.V. Data frame traffic shaping method in network, device and computer program product
JP2018129661A (en) * 2017-02-08 2018-08-16 日本電信電話株式会社 Signal transfer device and signal transfer method
JP2019004379A (en) * 2017-06-16 2019-01-10 日本電信電話株式会社 Communication device and signal transfer method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452591A (en) * 2021-06-21 2021-09-28 合安科技技术有限公司 Loop control method and device based on CAN bus continuous data frame
CN113452591B (en) * 2021-06-21 2023-04-07 合安科技技术有限公司 Loop control method and device based on CAN bus continuous data frame
WO2023203884A1 (en) * 2022-04-22 2023-10-26 日立Astemo株式会社 Communication device and in-vehicle electronic device

Also Published As

Publication number Publication date
JP7299106B2 (en) 2023-06-27

Similar Documents

Publication Publication Date Title
US7801173B2 (en) Communication message conversion apparatus and communication message conversion method
JP4808513B2 (en) System-on-chip global asynchronous communication architecture
JP5080448B2 (en) Method and apparatus for synchronizing two bus systems and configuration comprising two bus systems
CN110545152B (en) Upper computer with real-time transmission function in Ethernet and Ethernet system
JP2535615B2 (en) Data synchronous transmission system
JP2019121822A (en) On-vehicle system, gateway, relay device, program, information processing method, information processing system, and vehicle
JP5849786B2 (en) Data block output device, communication system, data block output method, and communication method
RU2415511C2 (en) Gateway for automatically routing messages between buses
JP6500123B2 (en) In-vehicle gateway device and in-vehicle network system
US8315274B2 (en) System and method for supporting synchronous system communications and operations
US9585053B2 (en) Communication network and method for transmitting data packets in the communication network
JP7299106B2 (en) Repeaters and communication systems
CN110546926B (en) Reducing packet delay variation of time sensitive packets
CN111585862A (en) Method and device for realizing network intercommunication between EtherCAT and TSN
TWI756666B (en) Method implemented by computer means of a communicating entity in a packet-switched network, and computer program and computer-readable non-transient recording medium thereof, and communicating entity of a packet-switched network
JP2003198584A (en) Method and apparatus for setting up isochronous data stream connection
JP7207882B2 (en) Wireless communication terminal and communication control method
EP1030482B1 (en) Data repeater and multiplex communication system using the same
JP7294949B2 (en) Repeaters and communication systems
JP5372699B2 (en) In-vehicle network device
CN114531943B (en) Data transmission method and automation communication network
US20220050440A1 (en) Communication Device and Method for Data Transmission within an Industrial Communication Network
JP2010212938A (en) Ring type network system
WO2023040650A1 (en) Message period determination method and apparatus related thereto
CN114826821B (en) Communication method and system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220711

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230411

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230420

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230531

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230613

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230615

R150 Certificate of patent or registration of utility model

Ref document number: 7299106

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150