WO2018105197A1 - Ethernet switch - Google Patents

Ethernet switch Download PDF

Info

Publication number
WO2018105197A1
WO2018105197A1 PCT/JP2017/033519 JP2017033519W WO2018105197A1 WO 2018105197 A1 WO2018105197 A1 WO 2018105197A1 JP 2017033519 W JP2017033519 W JP 2017033519W WO 2018105197 A1 WO2018105197 A1 WO 2018105197A1
Authority
WO
WIPO (PCT)
Prior art keywords
header
frame
microcomputer
unit
ethernet switch
Prior art date
Application number
PCT/JP2017/033519
Other languages
French (fr)
Japanese (ja)
Inventor
昭光 井上
Original Assignee
株式会社デンソー
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2017168747A external-priority patent/JP2018098771A/en
Application filed by 株式会社デンソー filed Critical 株式会社デンソー
Publication of WO2018105197A1 publication Critical patent/WO2018105197A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Definitions

  • the present disclosure relates to an Ethernet switch that controls communication frames transmitted from a plurality of terminal devices to be transmitted to respective destinations.
  • Ethernet switch devices also called so-called hubs, have a security function.
  • a microcomputer constituting an Ethernet switch device authenticates a communication frame body at the first communication, learns and registers a MAC (Media Access Control) address, and thereafter passes through a microcomputer.
  • a technique for transferring a communication frame on the IC side which is an Ethernet switch is disclosed.
  • Patent Document 1 has a so-called layer 2 level security function.
  • a security check is performed on a communication frame transmitted via the Internet by radio from outside the vehicle, OTA (OverTAThe Air), etc.
  • OTA OverTAThe Air
  • the data included in the communication frame is large in size, for example, image data, the bandwidth of communication with the microcomputer is compressed, and the processing load on the microcomputer may increase. It becomes a problem.
  • This disclosure is intended to provide an Ethernet switch capable of performing a security check of a communication frame transmitted via the Internet without increasing the processing load on the microcomputer side.
  • the header information analysis unit analyzes information up to at least layer 3 with respect to the headers of communication frames transmitted from a plurality of terminal devices, and the analysis result transmission unit transmits the analysis results to the microcomputer. Send to.
  • the receiving unit receives control information generated by the microcomputer based on the analysis result.
  • the transmission control unit determines whether to transmit or discard the communication frame to a destination terminal device or to suspend transmission of the communication frame based on control information set in the reception unit.
  • the microcomputer can receive the analysis result including at least layer 3 information transmitted from the Ethernet switch, and can determine the handling of the communication frame based on the analysis result. Therefore, it is not necessary to transfer the main body of the communication frame to the microcomputer in order to perform a security check on the communication frame that has passed through the Internet, so that the processing load on the microcomputer can be reduced and the time required for transmission control can be reduced. it can.
  • the drawing in the first embodiment is a functional block diagram showing the configuration of the Ethernet switch device, It is a diagram conceptually explaining the function of the frame type analysis unit, It is a figure which shows the definition of FC code, It is a diagram showing a detailed configuration of the frame management register and its surroundings, It is a figure which shows a definition about the upper 2 bits of the 4-bit code which the microcomputer writes in the frame instruction register It is a figure which shows the definition about the lower 2 bits, Flow chart showing processing contents of ASIC and microcomputer Timing chart showing an example of communication contents between ASIC and microcomputer In 2nd Embodiment, it is a functional block diagram which shows the structure of an Ethernet switch apparatus, Flow chart showing processing contents of ASIC and microcomputer In 3rd Embodiment, it is a functional block diagram which shows the structure of an Ethernet switch apparatus, Flow chart showing processing contents of ASIC and microcomputer In 4th Embodi
  • an Ethernet switch device 1 for in-vehicle communication includes a microcomputer 2 and a dedicated ASIC (Application Specific IC) 3 that performs frame transfer processing at high speed by hardware processing.
  • the ASIC 3 includes, for example, five frame input / output ports 4 (1) to 4 (5), the ports 4 (1) to 4 (4) are for communication with the outside, and the port 4 (5) is a so-called MII. (Medeia Independent Interface) is used for communication between the ASIC 3 and the microcomputer 2.
  • the ports 4 (1) to 4 (4) are connected to an ECU (Electronic Control Unit) (not shown) as a communication terminal device, for example.
  • ECU Electronic Control Unit
  • Communication cables 5 (1) to 5 (4) are connected to ports 4 (1) to 4 (4), respectively, and PHY chips 6 (1) to 6 (4) and MACs 7 (1) to 7 (4) are transceivers. Connected through.
  • the port 4 (5) is connected to the MAC 9 built in the microcomputer 2 via the MAC 7 (5) and the communication line 8.
  • Port 4 (5) and MAC7 (5) correspond to a header transmission unit.
  • Port 4 is connected to terminal rx of MAC7.
  • the communication port 4 includes a frame forming unit 11, an L2 analyzing unit 12 and a FIFO (First In First Out) 13.
  • the communication frame received by the ASIC 3 at the ports 4 (1) to 4 (4) is packed by the frame forming unit 11 in units of 64 bits and written into the FIFO 13.
  • the header information of the frame is input to the L2 analysis unit 12, and the L2 analysis unit 12 performs analysis of layer 2 (the analysis result is indicated by L2ID). This code L2ID is also added to the header of the communication frame, and the communication frame is also written into the FIFO 13.
  • the frame analysis performed by the frame type analysis unit 18 will be described.
  • four decoders 14 (3) to 14 (0) corresponding to the respective bits FC (3: 0) of the frame category FC are provided.
  • IP Internet Protocol
  • Layer 4 Layer 4
  • TCP Transmission Control Protocol
  • the decoders 14 (3) to 14 (0 ) Is not subject to comparison. In this example, four conditions are set as hit conditions, and the outputs of the decoders 14 (3) to 14 (0) correspond to the respective bits of FC (3: 0).
  • the 48-bit source MAC address in layer 2 is compared with comparison data D2.
  • DoS attack candidate 2 is extracted, and the 8-bit protocol type in layer 2 and the 6-bit flag in layer 3 are compared with comparison data D2.
  • 16-bit Type / Length in layer 2 and 16-bit “full length” in layer 3 are compared with each comparison data D2 under hit condition 0.
  • FIG. 3 is an FC (3: 0) list showing these together. Further, as shown in this list, the DoS attack candidate 4 or the like may be extracted by a combination of 2 bits or more.
  • the frame stored in the FIFO 13 is arbitrated between the ports 4 (1) to 4 (5) in the arbiter 16, and then stored in the FIFO 17 in the next stage. Further, the arbiter 16 generates a total of 11 bits of tag (10: 0) indicating the number of the port 4 to which each frame is input by the upper 3 bits and indicating the frame arrival order for each port 4 by 8 bits. . Then, the concatenation of tag (10: 0) and FC (3: 0) is a 15-bit frame ID; FID (14: 0).
  • the frame output from the arbiter 16 is sorted by the frame type analysis unit 18, and the frame ID is input to the transfer control unit 19, the header transmission frame generation unit 20, and the frame management register 21.
  • information of layers 3 and 4 in the header is input to the L3 and 4 control unit 22.
  • a header and data excluding the frame ID are input to the transfer control unit 19 from the FIFO 17.
  • a communication frame is input from the transfer control unit 19 to the update control unit 23 and the routing table 24.
  • the L3 and 4 control unit 22 analyzes the information of layers 3 and 4, or refers to the routing table 24 based on the information, replaces the MAC address, and performs the L3 routing process or the like.
  • Information for processing the frame to control the update is input to the update control unit 23.
  • the update control unit 23 attaches the analysis information (L3, 4ID) to the FIFO 25 in the next stage and writes and updates the communication frame.
  • the communication frame stored in the FIFO 25 is written into the frame buffer 27 via the write control unit 26.
  • the frame buffer 27 is individually provided with buffers corresponding to the five ports 4 (1) to (5).
  • the communication frame stored in the frame buffer 27 is written to the FIFOs 29 (1) to 29 (5) via the read control unit 28.
  • the read controller 28 controls the reading of the communication frame stored in the frame buffer 27 according to the register value of the frame instruction register 30 to be written by the microcomputer 2 as will be described later.
  • a multiplexer 31 is disposed in the preceding stage of the FIFO 29 (5), and an Ethernet frame having only the communication frame from the read control unit 28 and the L2 to L4 header portions generated by the header transmission frame generation unit 20 as data.
  • a select signal based on the setting of the frame instruction register 30.
  • the 8-bit output terminals of the FIFOs 29 (1) to 29 (5) are connected to the terminals tx of the MACs 7 (1) to 7 (5), respectively.
  • the microcomputer 2 includes a CPU 32, a MAC controller 33 built in the microcomputer, and an SPI control unit 34.
  • the controller 33 is connected to the MAC 9 and controls data transfer performed by the CPU 32 through MII communication.
  • the controller 33 can also generate an interrupt to the INT control unit 32 ⁇ / b> I of the CPU 32.
  • the ASIC 3 generates an interrupt to the INT control unit 32I by writing to the write flag storage unit 35 attached to the frame management register 21.
  • the ASIC 3 includes a Tx control unit 36, an Rx control unit 37, and a clock control unit 38 corresponding to the SPI control unit 34.
  • a clock signal having a frequency of 10 MHz is input to the clock control unit 38 from the SPI control unit 34.
  • the Tx unit 36 serially transmits the data written in the frame management register 21 to the SPI control unit 34.
  • the communication data size is generally 16 bits or 32 bits.
  • the Rx control unit 37 serially receives the data transmitted from the SPI control unit 34 in synchronization with the clock signal. If the received data is an address specification value, it becomes an enable signal re indicating which register value of the frame management register 21 is read out, that is, what register value the microcomputer 2 receives. Alternatively, the address designation value is an enable signal we indicating which frame instruction register 30 is to be written to, that is, whether the microcomputer 2 side performs transmission. If the received data is write data to the frame instruction register 30, the received data is written to the frame instruction register 30 in which the enable signal we is active.
  • the SPI control unit 34 When receiving the data transmitted from the ASIC 3, the SPI control unit 34 causes the CPU 32 to generate an interrupt. When receiving the interrupt, the CPU 32 reads data written in a reception buffer (not shown) inside the SPI control unit 34. Further, the CPU 32 causes the ASIC 3 to transmit the data by writing the transmission data in a transmission buffer (not shown) inside the SPI control unit 34.
  • the frame management register 21 includes a plurality of registers in which a 15-bit frame ID is written, and a W flag storage unit 35 that is a write flag is provided for each register. These constitute a FIFO.
  • the W flag is set by hardware when the frame ID is written in the frame management register 21, and when the reading of the frame management register 21 by the microcomputer 2 is completed or when the transmission of the header to the microcomputer 2 by the MII is completed, by the hardware Cleared. Also, when the W flag after the FIFO has already been set when the W flag is cleared, that is, when the next FID is written in the frame management register 21, the interrupt output to the microcomputer 2 is once cleared, but is constant. It is set again after the passage of time.
  • the following configuration can be considered as a response when data is written to all of the frame management registers 21 as the FIFO.
  • the writing of the frame ID is prohibited, and an abnormal value such as $ AAA is inserted before the oldest frame ID.
  • the frame ID to be written is inserted after the newest frame ID, and the oldest frame ID is discarded.
  • the reading of the frame ID by the microcomputer 2 may be performed continuously for all the frame management registers 21. Further, when writing to and reading from the frame management register 21 occur simultaneously, arbitration is performed.
  • the microcomputer 2 reads the register value of the frame management register 21, that is, the FID (14: 0), and as a result of the determination, writes the 4-bit set value shown in FIGS.
  • the set value corresponds to control information.
  • the upper 2 bits of the 4 bits are a header transmission instruction code Tmii (1: 0), and are defined as follows.
  • Tmi (1: 0) Definition 00 Send entire frame to microcomputer 2 via MII 01 Send TCP header + L2, 3ID + FID to microcomputer 2 via MII 10 Send IP header + L2, 3ID + FID to microcomputer 2 via MII 11 To microcomputer 2 Do not send
  • the lower 2 bits are a frame transfer instruction code COD (1: 0), which is defined as follows.
  • the L2 analysis unit 12 analyzes the layer 2 and performs transfer destination search and abnormality detection (S2).
  • the communication frame with the L2ID as an analysis result is stored in the FIFO 13 (S3).
  • the arbitration in the arbiter 14 (S4) the communication frame of the port 4 that has won is stored in the FIFO 16 in the next stage (S5).
  • the frame type analysis unit 18 determines whether or not the frame is a write frame to the frame instruction register 30 (S7). If it is the writing frame (YES), writing is performed to the frame instruction register 30 (S26).
  • step S8 the processes in steps S8 to S10 are performed in parallel as follows.
  • the code Tmii (1: 0); COD (1: 0) is confirmed in accordance with the setting for the FID generated in step S6 of the current frame instruction register 30, and the transfer control unit 19 determines in accordance with the setting of COD (1: 0).
  • step S8 the L3 and 4 control unit 22 performs analysis routing processing based on the information of layers 3 and 4 (S11), and stores the communication frame in the frame buffer 27 (S12). Then, when a shaping process for assigning priorities to the stored communication frames is performed (S13; YES), processes such as transfer suspension and permission, and frame discarding are performed according to the contents of the frame instruction register 30 (S14).
  • step S10 After execution of step S10, an interrupt is generated for the microcomputer 2 (S21). Then, the microcomputer 2 reads the frame ID from the ASIC 3 via the SPI (S22), and determines whether or not to update the frame instruction register 30 (S23). Then, the 4-bit code as the determination result is transmitted to the ASIC 3 via the SPI and MII (S24, S25). After executing steps S24 and S25, the process proceeds to steps S26 and S1, respectively. The process corresponding to step S25 ⁇ S1 is a route via MII indicated by a broken line in FIG. If “NO” in the step S9, the process shifts to a step S23.
  • the initial value of the frame instruction register 30 corresponding to the port 4 (1) is “1100”, the transfer by MII is not performed, and the transfer of the communication frame is in the “pending” state.
  • “1” is set in bit 0 of the FID (FC), and the communication frame 1 is the DoS attack candidate 1.
  • data “$ 1011” is written in the frame management register 21 corresponding to the port 4 (1).
  • the upper 11 bits of tag: “$ 101” indicates the first communication frame of port 4 (1), and the lower 4 bits are FC “$ 1”.
  • the microcomputer 2 reads the register value “$ 1011” of the frame management register 21.
  • the communication frame 1 is determined to be “discarded”, and data “$ 000D” is written into the frame instruction register 30 corresponding to the port 4 (1).
  • the read control unit 28 does not perform transfer by MII according to the code “1101”, and the communication frame 1 is discarded.
  • the frame type analysis unit 18 of the ASIC 3 analyzes at least the information of the layer 3 or more about the header of the communication frame transmitted from the terminal device, and the Tx control unit 36 analyzes The result FID is transmitted to the microcomputer 2.
  • the Rx control unit 37 receives the header transmission instruction code Tmii and the frame transfer instruction code COD generated by the microcomputer 2 based on the analysis result, and sets the frame instruction register 30. Based on the code set at that time, the read control unit 28 and the transfer control unit 19 determine whether to transmit a communication frame to the destination terminal device or whether to defer transmission of the communication frame. .
  • the microcomputer 2 receives an analysis result including information of layer 3 or higher transmitted from the ASIC 3, and handles a communication frame based on the analysis result. Can be determined. Accordingly, since a security check is performed on a communication frame that has passed through the Internet, there is no need to transfer the main body of the communication frame to the microcomputer 2, so that the processing load on the microcomputer 2 can be reduced and the time required for transmission control can be reduced. . Further, since the frame type analysis unit 18 analyzes up to the layer 4 information for the header, it can also detect an abnormality in the TCP layer.
  • the Ethernet switch device 41 of the second embodiment is different in the configuration of the ASIC 42, and the frame type analysis unit 18, the transfer control unit 19, and the header transmission frame unit 20 are arranged on the upstream side of the arbiter 16. is doing.
  • step S7 the processing on the ASIC 42 side proceeds to step S7 after step S1 and step S6 are executed in parallel with step S2.
  • Steps S3 to S5 are executed between steps S8 and S11.
  • the same effect as that of the first embodiment can be obtained.
  • the Ethernet switch device 51 of the third embodiment shown in FIG. 11 includes a microcomputer 52 and an ASIC 53, which are obtained by deleting the configuration for performing communication via SPI from the configuration of the first embodiment. Therefore, transmission of the frame ID to the microcomputer 52 and writing performed by the microcomputer 52 to the frame instruction register 30 are all performed via the MII. In the flowchart shown in FIG. 12, steps S22 and S24 are deleted.
  • the Ethernet switch device 61 of the fourth embodiment shown in FIG. 13 includes a microcomputer 62 and an ASIC 63.
  • the input / output port 4 (5) is connected to the microcomputer 2 via the communication line 8, but in the fourth embodiment, these are not used for the control as the Ethernet switch shown in each embodiment. Accordingly, transmission of the frame ID to the microcomputer 52 and writing performed by the microcomputer 52 to the frame instruction register 30 are all performed via the SPI. In the flowchart shown in FIG. 14, steps S7, S9 and S25 are deleted.
  • the Ethernet switch device 71 of the fifth embodiment shown in FIG. 15 includes a microcomputer 72 and an ASIC 73.
  • the Ethernet switch device 71 has a configuration based on the Ethernet switch device 51 of the third embodiment.
  • the microcomputer 72 includes a routing table 74 for L3 routing that replaces the routing table 24 on the ASIC side.
  • the ASIC 73 includes a frame buffer 75 and a read control unit 76 in place of the frame buffer 27 and the read control unit 28, and a frame instruction register & header register 77 instead of the frame instruction register 30.
  • the ASIC 3 uses the routing table 24 to perform L3 routing by hard logic.
  • the microcomputer 72 performs L3 routing by software using the routing table 74.
  • the frame transfer instruction code COD (1: 0) 11 which is undefined in the first embodiment and the like, is defined as follows.
  • step S6 it is determined whether or not the frame is a frame for writing to the frame instruction register 30 or the header register (S31). If it is the writing frame (YES), writing is performed to the frame instruction register & header register 76 (S32), and the process proceeds to step S14 '.
  • step S ⁇ b> 14 ′ processing such as transfer suspension / permission and frame discarding is performed according to the contents of the frame instruction register & header register 77.
  • step S11 the ASIC 73 does not perform L3 routing.
  • step S14 ' is executed, "transfer destination search" is executed here, an output port is determined (S33), and the process proceeds to step S13.
  • step S9 the microcomputer 72 determines whether or not the destination MAC address of the header transmitted from the ASIC 73 is addressed to the switch device 71 (S34). If it is not addressed to the switch device 71 (NO), the process proceeds to step S23. If it is addressed to the switch device 71 (YES), the destination MAC address of the header is changed with reference to the routing table 74 (S35). Then, the header whose address has been changed is added to the value written in the frame instruction register 30, and the code is transmitted to the ASIC 73 by MII (S36). Note that the read control unit 75 re-calculates and generates FCS (Flame Check Sequence) because the destination MAC address is changed, and then transmits the communication frame.
  • FCS Freme Check Sequence
  • FIG. 18 shows a case where Switch_ECU 1 corresponding to the Ethernet switch device 71 serves as a router, and ECU_c belonging to network 2 transmits to ECU_f belonging to network 3.
  • the ECU_c refers to its own routing table and transmits a communication frame (ECU_c ⁇ ECU1 frame) with the destination MAC corresponding to the IP address “192.168.3.2/24” of the ECU_f as MACx to the Switch_ECU1.
  • the ASIC 73 transmits an Ethernet frame using the header including the MAC address and IP address of the communication frame and the frame analysis result (FID) as a payload to the microcomputer 72 via the MII (FIG. 17, S9; NO).
  • the microcomputer 73 refers to the routing table 74 and recognizes that the destination MAC setting value: MACf corresponding to the destination IP address “192.168.3.2/24” is changed to the destination MAC: MACf and the source MAC: MACx. (S35)
  • the frame instruction register write value is added to the header and returned to the ASIC 73 (S36).
  • the ASIC 73 replaces the header of the communication frame (ECU_c ⁇ ECU1 frame), regenerates the FCS, and transmits it to the ECU_f via the Switch_ECU2.
  • the microcomputer 72 refers to the table 74 for layer 3 routing and receives the header and the header analysis result (FID) from the ASIC 73, the destination included in the analysis result. If the MAC address is addressed to itself, the destination MAC address and source MAC address included in the header are converted with reference to the table 74, and the header with the converted MAC address is transmitted to the ASIC 73.
  • the ASIC 73 includes a register 77 for storing the header, and the read control unit 76 transmits a communication frame to the terminal device whose destination is the MAC address. Therefore, layer 3 routing can be performed by software processing of the microcomputer 72.
  • the Ethernet switch device 81 of the sixth embodiment shown in FIG. 19 is configured by an ASIC in which a microcomputer 72 is also mounted on the ASIC 73 of the fifth embodiment.
  • the header analysis may be performed up to level 3.
  • the configuration of the frame type analysis unit 18 illustrated in FIG. 2 is an example, and may be appropriately changed according to individual design. Communication interfaces other than Ethernet need not be limited to SPI.
  • the fifth and sixth embodiments may be applied to the first, second, or fourth embodiment. Depending on the number of gates constituting the ASIC, a specification without a tag indicating the frame arrival order may be used. Also, a specification without an FID or a specification without a “hold” setting for communication frame transfer may be used.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

In the present invention a header information analysis unit (18) analyzes information up to at least layer 3 for the headers of communication frames transmitted from a plurality of terminal devices, and an analysis result transmission unit (4 (5), 7(5), 36) transmits the analysis result to a microcomputer (2, 52, 62, 72). A reception unit (37) then receives control information generated by the microcomputer on the basis of the analysis result. A transmission control unit (28, 76) determines whether to transmit the communication frames to a destination terminal device or discard the communication frames, or suspends transmission of the communication frames, on the basis of the control information set in the reception unit.

Description

イーサネットスイッチEthernet switch 関連出願の相互参照Cross-reference of related applications
 本出願は、2016年12月8日に出願された日本出願番号2016-238436号及び2017年9月1日に出願された日本出願番号2017-168747号に基づくもので、ここにその記載内容を援用する。 This application is based on Japanese Application No. 2016-238436 filed on Dec. 8, 2016 and Japanese Application No. 2017-168747 filed on Sep. 1, 2017. Incorporate.
 本開示は、複数の端末装置より送信される通信フレームを、それぞれの宛先に送信するように制御するイーサネットスイッチに関する。 The present disclosure relates to an Ethernet switch that controls communication frames transmitted from a plurality of terminal devices to be transmitted to respective destinations.
 所謂ハブとも称されるイーサネットスイッチ装置には、セキュリティ機能を備えたものがある。例えば特許文献1には、初回の通信時にイーサネットスイッチ装置を構成するマイクロコンピュータが通信フレーム本体を認証し、MAC(Media Access Control)アドレスを学習して登録しておき、以降はマイコンを介すことなくイーサネットスイッチであるIC側で通信フレームを転送する技術が開示されている。 Some Ethernet switch devices, also called so-called hubs, have a security function. For example, in Patent Document 1, a microcomputer constituting an Ethernet switch device authenticates a communication frame body at the first communication, learns and registers a MAC (Media Access Control) address, and thereafter passes through a microcomputer. A technique for transferring a communication frame on the IC side which is an Ethernet switch is disclosed.
特開2016-163245号公報JP 2016-163245 A
 特許文献1は、所謂レイヤ2レベルのセキュリティ機能を備えている。しかしながら、車外からの無線,OTA(Over The Air)等によるインターネットを経由して送信される通信フレームについてセキュリティチェックすることを想定すると、MACアドレスだけではチェックできない。したがって、その場合はマイコン側に通信フレーム本体を送信し、マイコン側でチェックする必要がある。すると、通信フレームに含まれているデータが、例えば画像データのようにサイズが大きいものであれば、マイコンとの間で行う通信の帯域が圧迫されると共に、マイコンの処理負担が増加することが問題となる。 Patent Document 1 has a so-called layer 2 level security function. However, assuming that a security check is performed on a communication frame transmitted via the Internet by radio from outside the vehicle, OTA (OverTAThe Air), etc., it is not possible to check only by the MAC address. Therefore, in this case, it is necessary to transmit the communication frame body to the microcomputer side and check on the microcomputer side. Then, if the data included in the communication frame is large in size, for example, image data, the bandwidth of communication with the microcomputer is compressed, and the processing load on the microcomputer may increase. It becomes a problem.
 本開示は、インターネットを経由して送信される通信フレームのセキュリティチェックを、マイクロコンピュータ側の処理負担を増大させずに行うことができるイーサネットスイッチを提供することを目的とする。 This disclosure is intended to provide an Ethernet switch capable of performing a security check of a communication frame transmitted via the Internet without increasing the processing load on the microcomputer side.
 本開示の一態様によれば、ヘッダ情報解析部は、複数の端末装置より送信された通信フレームのヘッダについて、少なくともレイヤ3までの情報を解析し、解析結果送信部は、解析結果をマイクロコンピュータに送信する。そして受信部は、前記解析結果に基づいてマイクロコンピュータが生成した制御情報を受信する。送信制御部は、受信部に設定されている制御情報に基づいて、前記通信フレームを宛先の端末装置に送信するか破棄するか,又は前記通信フレームの送信を保留するかを決定する。 According to one aspect of the present disclosure, the header information analysis unit analyzes information up to at least layer 3 with respect to the headers of communication frames transmitted from a plurality of terminal devices, and the analysis result transmission unit transmits the analysis results to the microcomputer. Send to. The receiving unit receives control information generated by the microcomputer based on the analysis result. The transmission control unit determines whether to transmit or discard the communication frame to a destination terminal device or to suspend transmission of the communication frame based on control information set in the reception unit.
 このように構成すれば、マイクロコンピュータは、イーサネットスイッチより送信される少なくともレイヤ3の情報を含む解析結果を受信し、その解析結果に基づいて通信フレームの取り扱いを決定できる。したがって、インターネットを経由して来た通信フレームについてセキュリティチェックを行うために、マイクロコンピュータへ通信フレームの本体を転送する必要が無く、マイクロコンピュータの処理負担を軽減できると共に、送信制御に要する時間を短縮できる。 With this configuration, the microcomputer can receive the analysis result including at least layer 3 information transmitted from the Ethernet switch, and can determine the handling of the communication frame based on the analysis result. Therefore, it is not necessary to transfer the main body of the communication frame to the microcomputer in order to perform a security check on the communication frame that has passed through the Internet, so that the processing load on the microcomputer can be reduced and the time required for transmission control can be reduced. it can.
 本開示についての上記目的およびその他の目的、特徴や利点は、添付の図面を参照しながら下記の詳細な記述により、より明確になる。その図面は、
第1実施形態において、イーサネットスイッチ装置の構成を示す機能ブロック図であり、 フレーム種別解析部の機能を概念的に説明する図であり、 FCコードの定義を示す図であり、 フレーム管理レジスタ及びその周辺の詳細構成を示す図であり、 マイコンがフレーム指示レジスタに書き込む4ビットコードの上位2ビットについて、定義を示す図であり、 同下位2ビットについて、定義を示す図であり、 ASIC及びマイコンの処理内容を示すフローチャート ASIC,マイコン間における通信内容の一例を示すタイミングチャート 第2実施形態において、イーサネットスイッチ装置の構成を示す機能ブロック図であり、 ASIC及びマイコンの処理内容を示すフローチャート 第3実施形態において、イーサネットスイッチ装置の構成を示す機能ブロック図であり、 ASIC及びマイコンの処理内容を示すフローチャート 第4実施形態において、イーサネットスイッチ装置の構成を示す機能ブロック図であり、 ASIC及びマイコンの処理内容を示すフローチャート 第5実施形態において、イーサネットスイッチ装置の構成を示す機能ブロック図であり、 マイコンがフレーム指示レジスタに書き込む4ビットコードの下位2ビット(11)について定義を示す図であり、 ASIC及びマイコンの処理内容を示すフローチャート ルーティングの一例を示す図であり、 第6実施形態において、イーサネットスイッチ装置の構成を示す機能ブロック図である。
The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description with reference to the accompanying drawings. The drawing
In the first embodiment, it is a functional block diagram showing the configuration of the Ethernet switch device, It is a diagram conceptually explaining the function of the frame type analysis unit, It is a figure which shows the definition of FC code, It is a diagram showing a detailed configuration of the frame management register and its surroundings, It is a figure which shows a definition about the upper 2 bits of the 4-bit code which the microcomputer writes in the frame instruction register It is a figure which shows the definition about the lower 2 bits, Flow chart showing processing contents of ASIC and microcomputer Timing chart showing an example of communication contents between ASIC and microcomputer In 2nd Embodiment, it is a functional block diagram which shows the structure of an Ethernet switch apparatus, Flow chart showing processing contents of ASIC and microcomputer In 3rd Embodiment, it is a functional block diagram which shows the structure of an Ethernet switch apparatus, Flow chart showing processing contents of ASIC and microcomputer In 4th Embodiment, it is a functional block diagram which shows the structure of an Ethernet switch apparatus, Flow chart showing processing contents of ASIC and microcomputer In 5th Embodiment, it is a functional block diagram which shows the structure of an Ethernet switch apparatus, It is a figure which shows a definition about the low-order 2 bits (11) of 4-bit code which a microcomputer writes in a flame | frame instruction | indication register, Flow chart showing processing contents of ASIC and microcomputer It is a figure which shows an example of routing, In 6th Embodiment, it is a functional block diagram which shows the structure of an Ethernet switch apparatus.
  (第1実施形態)
 図1に示すように、例えば車載通信用のイーサネットスイッチ装置1は、マイクロコンピュータ2と、ハード処理で高速にフレーム転送処理を行う専用ASIC(Application Specific IC)3とを備えている。ASIC3は、例えば5つのフレーム入出力ポート4(1)~4(5)を備え、ポート4(1)~4(4)が外部との通信用であり、ポート4(5)は、所謂MII(Medeia Independent Interface)を通してASIC3とマイコン2との通信に使用される。ポート4(1)~4(4)は、例えば通信端末装置としての図示しないECU(Electronic Control Unit)に接続されている。
(First embodiment)
As shown in FIG. 1, for example, an Ethernet switch device 1 for in-vehicle communication includes a microcomputer 2 and a dedicated ASIC (Application Specific IC) 3 that performs frame transfer processing at high speed by hardware processing. The ASIC 3 includes, for example, five frame input / output ports 4 (1) to 4 (5), the ports 4 (1) to 4 (4) are for communication with the outside, and the port 4 (5) is a so-called MII. (Medeia Independent Interface) is used for communication between the ASIC 3 and the microcomputer 2. The ports 4 (1) to 4 (4) are connected to an ECU (Electronic Control Unit) (not shown) as a communication terminal device, for example.
 ポート4(1)~4(4)にはそれぞれ通信ケーブル5(1)~5(4)が、トランシーバであるPHYチップ6(1)~6(4)及びMAC7(1)~7(4)を介して接続されている。ポート4(5)は、MAC7(5)及び通信線8を介してマイコン2が内蔵しているMAC9に接続されている。ポート4(5)及びMAC7(5)は、ヘッダ送信部に相当する。ポート4は、MAC7の端子rxに接続されている。 Communication cables 5 (1) to 5 (4) are connected to ports 4 (1) to 4 (4), respectively, and PHY chips 6 (1) to 6 (4) and MACs 7 (1) to 7 (4) are transceivers. Connected through. The port 4 (5) is connected to the MAC 9 built in the microcomputer 2 via the MAC 7 (5) and the communication line 8. Port 4 (5) and MAC7 (5) correspond to a header transmission unit. Port 4 is connected to terminal rx of MAC7.
 通信ポート4は、フレーム形成部11,L2解析部12及びFIFO(First In First Out)13を備えている。ASIC3がポート4(1)~4(4)にて受信した通信フレームは、フレーム形成部11により64ビット単位でパッキング(Packing)されて、FIFO13に書き込まれて行く。また、フレームのヘッダ情報はL2解析部12に入力され、L2解析部12は、レイヤ2の解析を行う(解析結果をL2IDで示す)。このコードL2IDも上記通信フレームのヘッダに追加され、当該通信フレームもFIFO13に書き込まれて行く。 The communication port 4 includes a frame forming unit 11, an L2 analyzing unit 12 and a FIFO (First In First Out) 13. The communication frame received by the ASIC 3 at the ports 4 (1) to 4 (4) is packed by the frame forming unit 11 in units of 64 bits and written into the FIFO 13. The header information of the frame is input to the L2 analysis unit 12, and the L2 analysis unit 12 performs analysis of layer 2 (the analysis result is indicated by L2ID). This code L2ID is also added to the header of the communication frame, and the communication frame is also written into the FIFO 13.
 ここで、フレーム種別解析部18で行われるフレーム解析について説明する。図2に示すように、フレームカテゴリFCの各ビットFC(3:0)に対応する4つのデコーダ14(3)~14(0)を設ける。フレームのヘッダには、レイヤ2;イーサネット,レイヤ3;IP(Internet Protocol),レイヤ4;TCP(Transmission Control Protocol)の3つのレイヤがある。これらと、初期設定において比較値が書き込まれる比較テーブル15の値とを、デコーダ14(3)~14(0)によって比較し、デコードする。 Here, the frame analysis performed by the frame type analysis unit 18 will be described. As shown in FIG. 2, four decoders 14 (3) to 14 (0) corresponding to the respective bits FC (3: 0) of the frame category FC are provided. There are three layers in the header of the frame: Layer 2; Ethernet, Layer 3; IP (Internet Protocol), Layer 4; TCP (Transmission Control Protocol). These are compared with the values of the comparison table 15 in which the comparison values are written in the initial setting by the decoders 14 (3) to 14 (0) and decoded.
 比較テーブル15は、ヘッダの中からヒット条件として選択した各ビットに対応した比較レジスタを有している。各比較レジスタは、比較データD2を比較対象とするか否かを指定するためのビットDCが設けられており、2ビット構成となっている。図2に示すデコード表のように、DC=0であれば対応する比較データD2を有効とし、DC=1であれば対応する比較データD2を無効として、以下デコーダ14(3)~14(0)の比較対象とはしない。この例では、ヒット条件として4つの条件を設定しており、デコーダ14(3)~14(0)のそれぞれの出力がFC(3:0)の各ビットに対応している。 The comparison table 15 has a comparison register corresponding to each bit selected as a hit condition from the header. Each comparison register is provided with a bit DC for designating whether or not the comparison data D2 is to be compared, and has a 2-bit configuration. As shown in the decoding table of FIG. 2, when DC = 0, the corresponding comparison data D2 is validated, and when DC = 1, the corresponding comparison data D2 is invalidated. Hereinafter, the decoders 14 (3) to 14 (0 ) Is not subject to comparison. In this example, four conditions are set as hit conditions, and the outputs of the decoders 14 (3) to 14 (0) correspond to the respective bits of FC (3: 0).
  <デコーダ14(3)>
 ここでは、例えば侵入検知候補1を抽出するため、レイヤ2における48ビットの送信元MACアドレスと比較データD2とを比較する。
<Decoder 14 (3)>
Here, for example, in order to extract intrusion detection candidate 1, the 48-bit source MAC address in layer 2 is compared with comparison data D2.
  <デコーダ14(2)>
 ここでは、例えばDoS(Denial of Service)攻撃候補3を抽出するため、レイヤ2における48ビットの宛先MACアドレスと比較データD2と比較する。
<Decoder 14 (2)>
Here, for example, in order to extract DoS (Denial of Service) attack candidate 3, the 48-bit destination MAC address in layer 2 is compared with comparison data D2.
  <デコーダ14(1)>
 ここでは、例えばDoS攻撃候補2を抽出するため、レイヤ2における8ビットのプロトコルタイプ及びレイヤ3における6ビットのフラグと比較データD2と比較する。
<Decoder 14 (1)>
Here, for example, DoS attack candidate 2 is extracted, and the 8-bit protocol type in layer 2 and the 6-bit flag in layer 3 are compared with comparison data D2.
  <デコーダ14(0)>
 ここでは、例えばDoS攻撃候補1を抽出するため、レイヤ2における16ビットのType/Length及びレイヤ3における16ビットの「全長」と、ヒット条件0の各比較データD2とを比較する。図3は、これらをまとめて示すFC(3:0)一覧表である。また、この一覧表に示すように、2ビット以上の組合せによってDoS攻撃候補4等を抽出しても良い。
<Decoder 14 (0)>
Here, for example, in order to extract DoS attack candidate 1, 16-bit Type / Length in layer 2 and 16-bit “full length” in layer 3 are compared with each comparison data D2 under hit condition 0. FIG. 3 is an FC (3: 0) list showing these together. Further, as shown in this list, the DoS attack candidate 4 or the like may be extracted by a combination of 2 bits or more.
 加えて、図2に示す構成について、ロジックゲート数の削減を図るのであれば、例えば比較テーブル15における比較データD2及び指定ビットDCを固定化して、書き込み可能なレジスタを廃止したり、デコーダ14においてDC値を比較する部分を削除すれば良い。 In addition, in the configuration shown in FIG. 2, if the number of logic gates is to be reduced, for example, the comparison data D2 and the designated bit DC in the comparison table 15 are fixed and the writable register is abolished, or in the decoder 14 What is necessary is just to delete the part which compares DC value.
 再び図1を参照する。FIFO13に格納されたフレームは、アービタ16においてポート4(1)~4(5)間で調停が行われた後、次段のFIFO17に格納される。また、アービタ16では、各フレームが入力されたポート4の番号を上位3ビットで示し、ポート4毎のフレーム着順を介8ビットで示す合計11ビットのtag(10:0)が生成される。そして、このtag(10:0)とFC(3:0)とを連結したものを、15ビットのフレームID;FID(14:0)とする。 Refer to FIG. 1 again. The frame stored in the FIFO 13 is arbitrated between the ports 4 (1) to 4 (5) in the arbiter 16, and then stored in the FIFO 17 in the next stage. Further, the arbiter 16 generates a total of 11 bits of tag (10: 0) indicating the number of the port 4 to which each frame is input by the upper 3 bits and indicating the frame arrival order for each port 4 by 8 bits. . Then, the concatenation of tag (10: 0) and FC (3: 0) is a 15-bit frame ID; FID (14: 0).
 アービタ16より出力されたフレームは、フレーム種別解析部18において振り分けられ、フレームIDが転送制御部19,ヘッダ送信フレーム生成部20及びフレーム管理レジスタ21に入力される。また、ヘッダのうちレイヤ3及び4の情報は、L3,4制御部22に入力される。転送制御部19には、FIFO17よりフレームIDを除くヘッダやデータが入力される。転送制御部19からは、更新制御部23及びルーティングテーブル24に通信フレームが入力される。 The frame output from the arbiter 16 is sorted by the frame type analysis unit 18, and the frame ID is input to the transfer control unit 19, the header transmission frame generation unit 20, and the frame management register 21. In addition, information of layers 3 and 4 in the header is input to the L3 and 4 control unit 22. A header and data excluding the frame ID are input to the transfer control unit 19 from the FIFO 17. A communication frame is input from the transfer control unit 19 to the update control unit 23 and the routing table 24.
 L3,4制御部22は、レイヤ3及び4の情報を解析したり、同情報に基づき、ルーティングテーブル24を参照してMACアドレスを置換し、L3ルーティング処理を実施する等、レイヤ3以上の転送を制御するためにフレームを加工する情報を更新制御部23に入力する。更新制御部23は、次段のFIFO25に上記の解析情報(L3,4ID)を付して通信フレームを書き込んで更新する。FIFO25に格納された通信フレームは、書込み制御部26を介してフレームバッファ27に書き込まれる。フレームバッファ27は、5つのポート4(1)~(5)に対応するバッファを個別に備えている。 The L3 and 4 control unit 22 analyzes the information of layers 3 and 4, or refers to the routing table 24 based on the information, replaces the MAC address, and performs the L3 routing process or the like. Information for processing the frame to control the update is input to the update control unit 23. The update control unit 23 attaches the analysis information (L3, 4ID) to the FIFO 25 in the next stage and writes and updates the communication frame. The communication frame stored in the FIFO 25 is written into the frame buffer 27 via the write control unit 26. The frame buffer 27 is individually provided with buffers corresponding to the five ports 4 (1) to (5).
 フレームバッファ27に格納された通信フレームは、読出し制御部28を介してFIFO29(1)~29(5)に書き込まれる。読出し制御部28は、後述するようにマイコン2により書き込みが行われるフレーム指示レジスタ30のレジスタ値に応じて、フレームバッファ27に格納された通信フレームの読み出しを制御する。尚、FIFO29(5)の前段にはマルチプレクサ31が配置されており、読出し制御部28からの通信フレームと、ヘッダ送信フレーム生成部20で生成されたL2~L4ヘッダ部のみをデータに持つイーサフレームとが選択的に入力され、フレーム指示レジスタ30の設定に基づいたセレクト信号で選択される。FIFO29(1)~29(5)の8ビットの出力端子は、それぞれMAC7(1)~7(5)の端子txに接続されている。 The communication frame stored in the frame buffer 27 is written to the FIFOs 29 (1) to 29 (5) via the read control unit 28. The read controller 28 controls the reading of the communication frame stored in the frame buffer 27 according to the register value of the frame instruction register 30 to be written by the microcomputer 2 as will be described later. Note that a multiplexer 31 is disposed in the preceding stage of the FIFO 29 (5), and an Ethernet frame having only the communication frame from the read control unit 28 and the L2 to L4 header portions generated by the header transmission frame generation unit 20 as data. Are selectively input and selected by a select signal based on the setting of the frame instruction register 30. The 8-bit output terminals of the FIFOs 29 (1) to 29 (5) are connected to the terminals tx of the MACs 7 (1) to 7 (5), respectively.
 ASIC3とマイコン2との間は、別途SPI(Serial Protocol Interface)によっても通信を行う。マイコン2は、CPU32,マイコン内蔵のMAC用コントローラ33及びSPI制御部34を備えている。コントローラ33は、MAC9に接続されており、CPU32がMII通信により行うデータ転送を制御する。コントローラ33は、MAC9を介してデータを受信すると、CPU32のINT制御部32Iに対して割り込みを発生させることもできる。 Communicating between the ASIC 3 and the microcomputer 2 is also performed separately by SPI (Serial Protocol Interface). The microcomputer 2 includes a CPU 32, a MAC controller 33 built in the microcomputer, and an SPI control unit 34. The controller 33 is connected to the MAC 9 and controls data transfer performed by the CPU 32 through MII communication. When the controller 33 receives data via the MAC 9, the controller 33 can also generate an interrupt to the INT control unit 32 </ b> I of the CPU 32.
 ASIC3は、フレーム管理レジスタ21に付随する書き込みフラグ格納部35に書き込みを行うことで、前記INT制御部32Iに対して割り込みを発生させる。ASIC3は、前記SPI制御部34に対応するTx制御部36,Rx制御部37及びクロック制御部38を備えている。クロック制御部38には、SPI制御部34より例えば周波数10MHzのクロック信号が入力される。前記クロック信号に同期して、Tx部36は、フレーム管理レジスタ21に書き込まれたデータをSPI制御部34に対してシリアルに送信する。尚、通信データサイズは16ビット又は32ビットが一般的である。 The ASIC 3 generates an interrupt to the INT control unit 32I by writing to the write flag storage unit 35 attached to the frame management register 21. The ASIC 3 includes a Tx control unit 36, an Rx control unit 37, and a clock control unit 38 corresponding to the SPI control unit 34. For example, a clock signal having a frequency of 10 MHz is input to the clock control unit 38 from the SPI control unit 34. In synchronization with the clock signal, the Tx unit 36 serially transmits the data written in the frame management register 21 to the SPI control unit 34. The communication data size is generally 16 bits or 32 bits.
 Rx制御部37は、SPI制御部34より送信されたデータを前記クロック信号に同期してシリアルに受信する。受信データがアドレス指定値であれば、そのアドレスにより、何れのフレーム管理レジスタ21のレジスタ値を読み出すか,つまりマイコン2側が何れのレジスタ値を受信するかのイネーブル信号reとなる。または、前記アドレス指定値は、何れのフレーム指示レジスタ30に書き込みを行うか、つまりマイコン2側が送信を行うかのイネーブル信号weとなる。また、受信データがフレーム指示レジスタ30への書き込みデータであれば、上記イネーブル信号weがアクティブとなるフレーム指示レジスタ30に受信データを書き込む。 The Rx control unit 37 serially receives the data transmitted from the SPI control unit 34 in synchronization with the clock signal. If the received data is an address specification value, it becomes an enable signal re indicating which register value of the frame management register 21 is read out, that is, what register value the microcomputer 2 receives. Alternatively, the address designation value is an enable signal we indicating which frame instruction register 30 is to be written to, that is, whether the microcomputer 2 side performs transmission. If the received data is write data to the frame instruction register 30, the received data is written to the frame instruction register 30 in which the enable signal we is active.
 SPI制御部34は、ASIC3より送信されたデータを受信すると、CPU32に割り込みを発生させる。CPU32は、その割り込みを受け付けると、SPI制御部34内部の図示しない受信バッファに書き込まれたデータを読み出す。またCPU32は、SPI制御部34内部の図示しない送信バッファに送信データを書き込むことで、前記データをASIC3に送信させる。 When receiving the data transmitted from the ASIC 3, the SPI control unit 34 causes the CPU 32 to generate an interrupt. When receiving the interrupt, the CPU 32 reads data written in a reception buffer (not shown) inside the SPI control unit 34. Further, the CPU 32 causes the ASIC 3 to transmit the data by writing the transmission data in a transmission buffer (not shown) inside the SPI control unit 34.
 図4に示すように、フレーム管理レジスタ21は、15ビットのフレームIDが書き込まれる複数のレジスタを備え、各レジスタに対応して書き込みフラグであるWフラグの格納部35が設けられている。これらによりFIFOが構成されている。Wフラグは、フレーム管理レジスタ21にフレームIDが書き込まれるとハードウェアによりセットされ、マイコン2によるフレーム管理レジスタ21の読み出しが完了するか、MIIによるマイコン2へのヘッダの送信が完了するとハードウェアによりクリアされる。また、Wフラグのクリア時に、既にFIFO後続のWフラグが立っていた場合、つまりフレーム管理レジスタ21に次のFIDが書き込まれていた場合、マイコン2への割込み出力は一旦クリアされるが、一定時間の経過後に再度セットされる。 As shown in FIG. 4, the frame management register 21 includes a plurality of registers in which a 15-bit frame ID is written, and a W flag storage unit 35 that is a write flag is provided for each register. These constitute a FIFO. The W flag is set by hardware when the frame ID is written in the frame management register 21, and when the reading of the frame management register 21 by the microcomputer 2 is completed or when the transmission of the header to the microcomputer 2 by the MII is completed, by the hardware Cleared. Also, when the W flag after the FIFO has already been set when the W flag is cleared, that is, when the next FID is written in the frame management register 21, the interrupt output to the microcomputer 2 is once cleared, but is constant. It is set again after the passage of time.
 尚、FIFOとしてのフレーム管理レジスタ21の全てに書き込みが行われた場合の対応としては、例えば以下の構成が考えられる。
 1)フレームIDの書き込みを禁止し、一番古いフレームIDの前に例えば$AAA等の異常値を挿入する。
 2)フレームIDの書き込みを禁止し、一番新しいフレームIDを異常値に書き換える。
 3)書き込み対象のフレームIDを、一番新しいフレームIDの後に挿入して、一番古いフレームIDを破棄する。
Note that, for example, the following configuration can be considered as a response when data is written to all of the frame management registers 21 as the FIFO.
1) The writing of the frame ID is prohibited, and an abnormal value such as $ AAA is inserted before the oldest frame ID.
2) Prohibit writing of frame ID and rewrite newest frame ID to abnormal value.
3) The frame ID to be written is inserted after the newest frame ID, and the oldest frame ID is discarded.
 その他、マイコン2によるフレームIDの読み出しを、フレーム管理レジスタ21の全てについて連続的に行うようにしても良い。また、フレーム管理レジスタ21への書き込みと読出しとが同時に発生した際には、調停を行うようにする。 In addition, the reading of the frame ID by the microcomputer 2 may be performed continuously for all the frame management registers 21. Further, when writing to and reading from the frame management register 21 occur simultaneously, arbitration is performed.
 マイコン2は、フレーム管理レジスタ21のレジスタ値,つまりFID(14:0)を読み出して判定を行った結果、フレーム指示レジスタ30に対して図5及び図6に示す4ビットの設定値を書き込む。前記設定値は制御情報に相当する。図5に示すように、前記4ビットのうち上位2ビットはヘッダ送信指示コードTmii(1:0)であり、以下のように定義される。
   Tmii(1:0)       定義
      00     フレーム全体をMII経由でマイコン2に送付
      01     TCPヘッダ+L2,3ID+FIDを
             MII経由でマイコン2に送付
      10     IPヘッダ+L2,3ID+FIDを
             MII経由でマイコン2に送付
      11     マイコン2への送付はしない
The microcomputer 2 reads the register value of the frame management register 21, that is, the FID (14: 0), and as a result of the determination, writes the 4-bit set value shown in FIGS. The set value corresponds to control information. As shown in FIG. 5, the upper 2 bits of the 4 bits are a header transmission instruction code Tmii (1: 0), and are defined as follows.
Tmi (1: 0) Definition 00 Send entire frame to microcomputer 2 via MII 01 Send TCP header + L2, 3ID + FID to microcomputer 2 via MII 10 Send IP header + L2, 3ID + FID to microcomputer 2 via MII 11 To microcomputer 2 Do not send
 また図6に示すように、下位2ビットはフレーム転送指示コードCOD(1:0)であり、以下のように定義される。
   COD(1:0)        定義
      00     フレームバッファからの転送禁止(保留)
      01     フレームを廃棄
      10     フレームバッファからの転送許可
      11     ――――――――――
Further, as shown in FIG. 6, the lower 2 bits are a frame transfer instruction code COD (1: 0), which is defined as follows.
COD (1: 0) Definition 00 Transfer from frame buffer prohibited (pending)
01 Discard frame 10 Permit transfer from frame buffer 11 ――――――――――
 次に、本実施形態の作用について説明する。図7に示すように、ASIC3は、入出力ポート4において通信フレームを受信すると(S1)L2解析部12でレイヤ2の解析を行い、転送先の検索や異常検知を実施する(S2)。解析結果であるL2IDが付された通信フレームは、FIFO13に格納される(S3)。アービタ14における調停の結果(S4)、「勝ち」となったポート4の通信フレームが次段のFIFO16に格納される(S5)。 Next, the operation of this embodiment will be described. As shown in FIG. 7, when the ASIC 3 receives a communication frame at the input / output port 4 (S1), the L2 analysis unit 12 analyzes the layer 2 and performs transfer destination search and abnormality detection (S2). The communication frame with the L2ID as an analysis result is stored in the FIFO 13 (S3). As a result of the arbitration in the arbiter 14 (S4), the communication frame of the port 4 that has won is stored in the FIFO 16 in the next stage (S5).
 続いて、フレーム種別解析部18においてカテゴリの分類と、フレームIDの生成とが行われると(S6)、フレーム指示レジスタ30への書込みフレームか否かを判断する(S7)。前記書込みフレームであれば(YES)フレーム指示レジスタ30に書き込みを行う(S26)。 Subsequently, when the category classification and the generation of the frame ID are performed in the frame type analysis unit 18 (S6), it is determined whether or not the frame is a write frame to the frame instruction register 30 (S7). If it is the writing frame (YES), writing is performed to the frame instruction register 30 (S26).
 一方、ステップS7において前記書込みフレームでなければ(NO)、以下のようにステップS8~S10の処理を並行的に行う。現在のフレーム指示レジスタ30のステップS6で生成したFIDに対する設定に従いコードTmii(1:0);COD(1:0)の確認を行い、COD(1:0)の設定に従って転送制御部19でのフレーム処理を行う(S8)。Tmii≠(1,1)であればTmiiの設定に従いマイコン2に対しMII経由でヘッダを送信し(S9)、フレーム管理レジスタ21にフレームIDを書き込む(S10)。但し、Tmii=(1,1)であればMII経由でのヘッダ送信波行わない。 On the other hand, if it is not the writing frame in step S7 (NO), the processes in steps S8 to S10 are performed in parallel as follows. The code Tmii (1: 0); COD (1: 0) is confirmed in accordance with the setting for the FID generated in step S6 of the current frame instruction register 30, and the transfer control unit 19 determines in accordance with the setting of COD (1: 0). Frame processing is performed (S8). If Tmi ≠ (1, 1), the header is transmitted to the microcomputer 2 via the MII according to the setting of Tmi (S9), and the frame ID is written in the frame management register 21 (S10). However, if Tmii = (1, 1), the header transmission wave via MII is not performed.
 ステップS8の実行後は、L3,4制御部22においてレイヤ3,4の情報に基づく解析ルーティング処理等を行い(S11)、通信フレームをフレームバッファ27に保存する(S12)。そして、保存されている通信フレームについて優先順位を付与するシェーピング処理を行うと(S13;YES)、フレーム指示レジスタ30の内容に従って転送の保留や許可,フレーム破棄等の処理を行う(S14)。 After execution of step S8, the L3 and 4 control unit 22 performs analysis routing processing based on the information of layers 3 and 4 (S11), and stores the communication frame in the frame buffer 27 (S12). Then, when a shaping process for assigning priorities to the stored communication frames is performed (S13; YES), processes such as transfer suspension and permission, and frame discarding are performed according to the contents of the frame instruction register 30 (S14).
 ステップS10の実行後は、マイコン2に対して割込みを発生させる(S21)。すると、マイコン2は、ASIC3よりSPI経由でフレームIDを読込んで(S22)、フレーム指示レジスタ30を更新するか否かを判断する(S23)。そして、判断結果としての4ビットのコードをSPI経由,及びMII経由でASIC3に送信する(S24,S25)。ステップS24,S25の実行後は、それぞれステップS26,S1に移行する。尚、ステップS25→S1に対応する処理は、図1に破線で示すMII経由でのルートになる。また、ステップS9で「NO」の場合は、ステップS23に移行する。 After execution of step S10, an interrupt is generated for the microcomputer 2 (S21). Then, the microcomputer 2 reads the frame ID from the ASIC 3 via the SPI (S22), and determines whether or not to update the frame instruction register 30 (S23). Then, the 4-bit code as the determination result is transmitted to the ASIC 3 via the SPI and MII (S24, S25). After executing steps S24 and S25, the process proceeds to steps S26 and S1, respectively. The process corresponding to step S25 → S1 is a route via MII indicated by a broken line in FIG. If “NO” in the step S9, the process shifts to a step S23.
 図8に示す例では、ポート4(1)に対応するフレーム指示レジスタ30の初期値が「1100」であり、MIIによる転送は行わず、通信フレームの転送は「保留」の状態である。そして、ポート4(1)で受信した通信フレーム1におけるフレーム種別解析部18による解析の結果、FID(FC)のビット0に「1」が立ち、通信フレーム1はDoS攻撃候補1であったとする。すると、ポート4(1)に対応するフレーム管理レジスタ21にデータ「$1011」を書き込む。上位11ビットのtag:「$101」はポート4(1)の第1通信フレームであることを示し、下位4ビットはFC「$1」である。 In the example shown in FIG. 8, the initial value of the frame instruction register 30 corresponding to the port 4 (1) is “1100”, the transfer by MII is not performed, and the transfer of the communication frame is in the “pending” state. As a result of analysis by the frame type analysis unit 18 in the communication frame 1 received at the port 4 (1), “1” is set in bit 0 of the FID (FC), and the communication frame 1 is the DoS attack candidate 1. . Then, data “$ 1011” is written in the frame management register 21 corresponding to the port 4 (1). The upper 11 bits of tag: “$ 101” indicates the first communication frame of port 4 (1), and the lower 4 bits are FC “$ 1”.
 それから、ASIC3がマイコン2に割込みを発生させると、マイコン2はフレーム管理レジスタ21のレジスタ値「$1011」を読み込む。ステップS23における判定の結果、通信フレーム1は「破棄」と判定し、ポート4(1)に対応するフレーム指示レジスタ30にデータ「$000D」を書き込む。すると、読出し制御部28は、コード「1101」に従いMIIによる転送は行わず、通信フレーム1は破棄される。 Then, when the ASIC 3 causes the microcomputer 2 to generate an interrupt, the microcomputer 2 reads the register value “$ 1011” of the frame management register 21. As a result of the determination in step S23, the communication frame 1 is determined to be “discarded”, and data “$ 000D” is written into the frame instruction register 30 corresponding to the port 4 (1). Then, the read control unit 28 does not perform transfer by MII according to the code “1101”, and the communication frame 1 is discarded.
 以上のように本実施形態によれば、ASIC3のフレーム種別解析部18は、端末装置より送信された通信フレームのヘッダについて、少なくともレイヤ3以上の情報までを解析し、Tx制御部36は、解析結果であるFIDをマイコン2に送信する。そしてRx制御部37が、前記解析結果に基づいてマイコン2が生成したヘッダ送信指示コードTmii及びフレーム転送指示コードCODを受信し、フレーム指示レジスタ30を設定する。読出し制御部28,転送制御部19は、その時点で設定されている前記コードに基づいて、通信フレームを宛先の端末装置に送信するか否か,又は通信フレームの送信を保留するかを決定する。 As described above, according to the present embodiment, the frame type analysis unit 18 of the ASIC 3 analyzes at least the information of the layer 3 or more about the header of the communication frame transmitted from the terminal device, and the Tx control unit 36 analyzes The result FID is transmitted to the microcomputer 2. The Rx control unit 37 receives the header transmission instruction code Tmii and the frame transfer instruction code COD generated by the microcomputer 2 based on the analysis result, and sets the frame instruction register 30. Based on the code set at that time, the read control unit 28 and the transfer control unit 19 determine whether to transmit a communication frame to the destination terminal device or whether to defer transmission of the communication frame. .
 すなわち、イーサネットスイッチ装置1をマイコン2及びASIC3で構成する際に、マイコン2は、ASIC3より送信されるレイヤ3以上の情報を含む解析結果を受信し、その解析結果に基づいて通信フレームの取り扱いを決定できる。したがって、インターネットを経由して来た通信フレームについてセキュリティチェックを行うため、マイコン2に通信フレームの本体を転送する必要が無く、マイコン2の処理負担を軽減できると共に、送信制御に要する時間を短縮できる。
 また、フレーム種別解析部18は、前記ヘッダについて、レイヤ4の情報までを解析するので、TCPの階層についても異常検知を行うことができる。
That is, when the Ethernet switch device 1 is composed of the microcomputer 2 and the ASIC 3, the microcomputer 2 receives an analysis result including information of layer 3 or higher transmitted from the ASIC 3, and handles a communication frame based on the analysis result. Can be determined. Accordingly, since a security check is performed on a communication frame that has passed through the Internet, there is no need to transfer the main body of the communication frame to the microcomputer 2, so that the processing load on the microcomputer 2 can be reduced and the time required for transmission control can be reduced. .
Further, since the frame type analysis unit 18 analyzes up to the layer 4 information for the header, it can also detect an abnormality in the TCP layer.
  (第2実施形態)
 以下、第1実施形態と同一部分には同一符号を附して説明を省略し、異なる部分について説明する。図9に示すように、第2実施形態のイーサネットスイッチ装置41は、ASIC42の構成が異なっており、フレーム種別解析部18,転送制御部19及びヘッダ送信フレーム部20をアービタ16の前段側に配置している。
(Second Embodiment)
Hereinafter, the same parts as those in the first embodiment are denoted by the same reference numerals, description thereof will be omitted, and different parts will be described. As shown in FIG. 9, the Ethernet switch device 41 of the second embodiment is different in the configuration of the ASIC 42, and the frame type analysis unit 18, the transfer control unit 19, and the header transmission frame unit 20 are arranged on the upstream side of the arbiter 16. is doing.
 このように構成される場合、ASIC42側の処理は図10に示すように、ステップS1の実行後に、ステップS2と共にステップS6が並行的に実行された後、ステップS7に移行する。そして、ステップS3~S5については、ステップS8,S11の間で実行される。このように構成される第2実施形態による場合も、第1実施形態と同様の効果が得られる。 In the case of such a configuration, as shown in FIG. 10, the processing on the ASIC 42 side proceeds to step S7 after step S1 and step S6 are executed in parallel with step S2. Steps S3 to S5 are executed between steps S8 and S11. In the case of the second embodiment configured as described above, the same effect as that of the first embodiment can be obtained.
  (第3実施形態)
 図11に示す第3実施形態のイーサネットスイッチ装置51は、マイコン52及びASIC53を備えており、これらは第1実施形態の構成からSPI経由で通信を行う構成を削除したものとなっている。したがって、マイコン52へのフレームIDの送信や、マイコン52がフレーム指示レジスタ30に行う書込みは、全てMII経由で行われる。図12に示すフローチャートでは、ステップS22及びS24が削除されている。
(Third embodiment)
The Ethernet switch device 51 of the third embodiment shown in FIG. 11 includes a microcomputer 52 and an ASIC 53, which are obtained by deleting the configuration for performing communication via SPI from the configuration of the first embodiment. Therefore, transmission of the frame ID to the microcomputer 52 and writing performed by the microcomputer 52 to the frame instruction register 30 are all performed via the MII. In the flowchart shown in FIG. 12, steps S22 and S24 are deleted.
  (第4実施形態)
 図13に示す第4実施形態のイーサネットスイッチ装置61は、マイコン62及びASIC63を備えている。入出力ポート4(5)は、通信線8を介してマイコン2に接続されているが、第4実施形態では、これらを各実施形態で示したイーサネットスイッチとしての制御には使用しない。したがって、マイコン52へのフレームIDの送信や、マイコン52がフレーム指示レジスタ30に行う書込みは、全てSPI経由で行われる。図14に示すフローチャートでは、ステップS7,S9及びS25が削除されている。
(Fourth embodiment)
The Ethernet switch device 61 of the fourth embodiment shown in FIG. 13 includes a microcomputer 62 and an ASIC 63. The input / output port 4 (5) is connected to the microcomputer 2 via the communication line 8, but in the fourth embodiment, these are not used for the control as the Ethernet switch shown in each embodiment. Accordingly, transmission of the frame ID to the microcomputer 52 and writing performed by the microcomputer 52 to the frame instruction register 30 are all performed via the SPI. In the flowchart shown in FIG. 14, steps S7, S9 and S25 are deleted.
  (第5実施形態)
 図15に示す第5実施形態のイーサネットスイッチ装置71は、マイコン72及びASIC73を備えている。イーサネットスイッチ装置71は、第3実施形態のイーサネットスイッチ装置51をベースとした構成である。マイコン72は、ASIC側のルーティングテーブル24に替わるL3ルーティング用のルーティングテーブル74を備えている。また、ASIC73は、フレームバッファ27,読出制御部28に替わるフレームバッファ75,読出制御部76を備え、フレーム指示レジスタ30に替えてフレーム指示レジスタ&ヘッダレジスタ77を備えている。
(Fifth embodiment)
The Ethernet switch device 71 of the fifth embodiment shown in FIG. 15 includes a microcomputer 72 and an ASIC 73. The Ethernet switch device 71 has a configuration based on the Ethernet switch device 51 of the third embodiment. The microcomputer 72 includes a routing table 74 for L3 routing that replaces the routing table 24 on the ASIC side. The ASIC 73 includes a frame buffer 75 and a read control unit 76 in place of the frame buffer 27 and the read control unit 28, and a frame instruction register & header register 77 instead of the frame instruction register 30.
 例えば第1実施形態では、ASIC3がルーティングテーブル24を用いてハードロジックによりL3ルーティングを行っていた。これに対して第5実施形態では、マイコン72がルーティングテーブル74を用いて、ソフトウェアによりL3ルーティングを行う。 For example, in the first embodiment, the ASIC 3 uses the routing table 24 to perform L3 routing by hard logic. On the other hand, in the fifth embodiment, the microcomputer 72 performs L3 routing by software using the routing table 74.
 図16に示すように、第1実施形態等では未定義であったフレーム転送指示コードCOD(1:0)=11は、以下のように定義される。
   COD(1:0)        定義
      11     ヘッダレジスタによりヘッダの付替え,
             FCS再生後フレームバッファからの転送許可
As shown in FIG. 16, the frame transfer instruction code COD (1: 0) = 11, which is undefined in the first embodiment and the like, is defined as follows.
COD (1: 0) Definition 11 Header replacement by header register,
Permit transfer from frame buffer after FCS playback
 次に、第5実施形態の作用について説明する。図17に示すように、ステップS2に替わるステップS2’では「転送先検索」を実行しない。そして、ステップS6を実行すると、フレーム指示レジスタ30又はヘッダレジスタへの書込みフレームか否かを判断する(S31)。前記書込みフレームであれば(YES)フレーム指示レジスタ&ヘッダレジスタ76に書き込みを行い(S32)、ステップS14’に移行する。ステップS14’では、フレーム指示レジスタ&ヘッダレジスタ77の内容に従って転送の保留や許可,フレーム破棄等の処理を行う。 Next, the operation of the fifth embodiment will be described. As shown in FIG. 17, "transfer destination search" is not executed in step S2 'instead of step S2. When step S6 is executed, it is determined whether or not the frame is a frame for writing to the frame instruction register 30 or the header register (S31). If it is the writing frame (YES), writing is performed to the frame instruction register & header register 76 (S32), and the process proceeds to step S14 '. In step S <b> 14 ′, processing such as transfer suspension / permission and frame discarding is performed according to the contents of the frame instruction register & header register 77.
 尚、ステップS11において、ASIC73はL3ルーティングを行わない。ステップS14’を実行すると、ここで「転送先検索」を実行し、出力ポートを決定してから(S33)ステップS13に移行する。 In step S11, the ASIC 73 does not perform L3 routing. When step S14 'is executed, "transfer destination search" is executed here, an output port is determined (S33), and the process proceeds to step S13.
 また、ステップS9で(NO)と判断すると、マイコン72は、ASIC73より送信されたヘッダの宛先MACアドレスがスイッチ装置71宛か否かを判断する(S34)。スイッチ装置71宛でなければ(NO)ステップS23に移行する。スイッチ装置71宛であれば(YES)ルーティングテーブル74を参照して、ヘッダの宛先MACアドレスを変更する(S35)。それから、フレーム指示レジスタ30への書込値にアドレスを変更したヘッダを加えて、MIIによりコードをASIC73に送信する(S36)。尚、読出制御部75では、宛先MACアドレスが変更されたことでFCS(Flame Check Sequence)を再計算して生成してから通信フレームを送信する。 If it is determined NO in step S9, the microcomputer 72 determines whether or not the destination MAC address of the header transmitted from the ASIC 73 is addressed to the switch device 71 (S34). If it is not addressed to the switch device 71 (NO), the process proceeds to step S23. If it is addressed to the switch device 71 (YES), the destination MAC address of the header is changed with reference to the routing table 74 (S35). Then, the header whose address has been changed is added to the value written in the frame instruction register 30, and the code is transmitted to the ASIC 73 by MII (S36). Note that the read control unit 75 re-calculates and generates FCS (Flame Check Sequence) because the destination MAC address is changed, and then transmits the communication frame.
 図18はL3ルーティングの一例として、イーサネットスイッチ装置71に相当するSwitch_ECU1がルータとなり、ネットワーク2に属するECU_cがネットワーク3に属するECU_fに送信を行う場合を示す。
・ECU_cは、自身のルーティングテーブルを参照し、ECU_fのIPアドレス「192.168.3.2/24」に対応する宛先MACをMACxとした通信フレーム(ECU_c→ECU1フレーム)をSwitch_ECU1に送信する。
・ASIC73は、通信フレームのMACアドレス,IPアドレスを含んだヘッダ及びフレーム解析結果(FID)をペイロードとしたイーサネットフレームを、MII経由でマイコン72に送信する(図17,S9;NO)。
・マイコン73は、ルーティングテーブル74を参照し、宛先IPアドレス
「192.168.3.2/24」に対応する宛先MAC設定値:MACfであることを認識し、宛先MAC:MACf,ソースMAC:MACxに変更した(S35)ヘッダに、フレーム指示レジスタ書込み値を加えてASIC73に返信する(S36)。
・ASIC73は、上記通信フレーム(ECU_c→ECU1フレーム)のヘッダを付替え、FCSを再生成し、Switch_ECU2を経由してECU_fに送信する。
As an example of L3 routing, FIG. 18 shows a case where Switch_ECU 1 corresponding to the Ethernet switch device 71 serves as a router, and ECU_c belonging to network 2 transmits to ECU_f belonging to network 3.
The ECU_c refers to its own routing table and transmits a communication frame (ECU_c → ECU1 frame) with the destination MAC corresponding to the IP address “192.168.3.2/24” of the ECU_f as MACx to the Switch_ECU1.
The ASIC 73 transmits an Ethernet frame using the header including the MAC address and IP address of the communication frame and the frame analysis result (FID) as a payload to the microcomputer 72 via the MII (FIG. 17, S9; NO).
The microcomputer 73 refers to the routing table 74 and recognizes that the destination MAC setting value: MACf corresponding to the destination IP address “192.168.3.2/24” is changed to the destination MAC: MACf and the source MAC: MACx. (S35) The frame instruction register write value is added to the header and returned to the ASIC 73 (S36).
The ASIC 73 replaces the header of the communication frame (ECU_c → ECU1 frame), regenerates the FCS, and transmits it to the ECU_f via the Switch_ECU2.
 以上のように第5実施形態によれば、マイコン72は、レイヤ3ルーティング用のテーブル74を参照し、ASIC73よりヘッダ及びヘッダの解析結果(FID)を受信するとその解析結果に含まれている宛先MACアドレスが自身宛てであれば、テーブル74を参照してヘッダに含まれている宛先MACアドレスとソースMACアドレスを変換し、変換したMACアドレスを付与したヘッダをASIC73に送信する。そして、ASIC73は、前記ヘッダを格納するレジスタ77を備え、読出制御部76は、MACアドレスが宛先となる端末装置に通信フレームを送信する。したがって、マイコン72のソフトウェア処理によってレイヤ3ルーティングを行うことができる。 As described above, according to the fifth embodiment, when the microcomputer 72 refers to the table 74 for layer 3 routing and receives the header and the header analysis result (FID) from the ASIC 73, the destination included in the analysis result. If the MAC address is addressed to itself, the destination MAC address and source MAC address included in the header are converted with reference to the table 74, and the header with the converted MAC address is transmitted to the ASIC 73. The ASIC 73 includes a register 77 for storing the header, and the read control unit 76 transmits a communication frame to the terminal device whose destination is the MAC address. Therefore, layer 3 routing can be performed by software processing of the microcomputer 72.
  (第6実施形態)
 図19に示す第6実施形態のイーサネットスイッチ装置81は、第5実施形態のASIC73に、マイコン72も搭載してなるASICで構成されている。
(Sixth embodiment)
The Ethernet switch device 81 of the sixth embodiment shown in FIG. 19 is configured by an ASIC in which a microcomputer 72 is also mounted on the ASIC 73 of the fifth embodiment.
  (その他の実施形態)
 ヘッダの解析は、少なくともレベル3まで行うようにすれば良い。
 図2に示すフレーム種別解析部18の構成は一例であり、個別の設計に応じて適宜変更すれば良い。
 イーサネット以外の通信インターフェイスは、SPIに限る必要は無い。
 第5,第6実施形態を、第1,第2又は第4実施形態に適用しても良い。
 ASICを構成するゲート数によっては、フレーム着順を示すtagを付さない仕様でも良い。また、FIDを付さない仕様や、通信フレームの転送の「保留」設定が無い仕様でも良い。
(Other embodiments)
The header analysis may be performed up to level 3.
The configuration of the frame type analysis unit 18 illustrated in FIG. 2 is an example, and may be appropriately changed according to individual design.
Communication interfaces other than Ethernet need not be limited to SPI.
The fifth and sixth embodiments may be applied to the first, second, or fourth embodiment.
Depending on the number of gates constituting the ASIC, a specification without a tag indicating the frame arrival order may be used. Also, a specification without an FID or a specification without a “hold” setting for communication frame transfer may be used.
 本開示は、実施例に準拠して記述されたが、本開示は当該実施例や構造に限定されるものではないと理解される。本開示は、様々な変形例や均等範囲内の変形をも包含する。加えて、様々な組み合わせや形態、さらには、それらに一要素のみ、それ以上、あるいはそれ以下、を含む他の組み合わせや形態をも、本開示の範疇や思想範囲に入るものである。
 
Although the present disclosure has been described with reference to the embodiments, it is understood that the present disclosure is not limited to the embodiments and structures. The present disclosure includes various modifications and modifications within the equivalent range. In addition, various combinations and forms, as well as other combinations and forms including only one element, more or less, are within the scope and spirit of the present disclosure.

Claims (6)

  1.  イーサネット(登録商標)を介して通信を行う複数の端末装置が接続される複数のポート(4)と、
     前記端末装置より送信された通信フレームのヘッダについて、少なくともレイヤ3までの情報を解析するヘッダ情報解析部(18)と、
     前記解析の結果をマイクロコンピュータ(2,52,62,72)に送信する解析結果送信部(4(5),7(5),36)と、
     前記マイクロコンピュータが前記解析の結果に基づいて生成した制御情報を受信する受信部(37)と、
     前記受信部に設定された制御情報に基づいて、前記通信フレームを宛先の端末装置に送信するか否か,又は前記通信フレームの送信を保留するかを決定する送信制御部(28,76)とを備えるイーサネットスイッチ。
    A plurality of ports (4) to which a plurality of terminal devices communicating via Ethernet (registered trademark) are connected;
    A header information analysis unit (18) for analyzing information up to at least layer 3 with respect to the header of the communication frame transmitted from the terminal device;
    An analysis result transmitter (4 (5), 7 (5), 36) for transmitting the analysis result to the microcomputer (2, 52, 62, 72);
    A receiving unit (37) for receiving control information generated by the microcomputer based on the result of the analysis;
    A transmission control unit (28, 76) for determining whether to transmit the communication frame to a destination terminal device or whether to defer transmission of the communication frame based on control information set in the reception unit; Ethernet switch with.
  2.  前記ヘッダ情報解析部は、前記ヘッダについて、少なくともレイヤ4までの情報を解析する請求項1記載のイーサネットスイッチ。 The Ethernet switch according to claim 1, wherein the header information analysis unit analyzes information up to at least layer 4 with respect to the header.
  3.  前記マイクロコンピュータ(52)と前記送信部及び受信部(4(5),7(5))とは、何れもイーサネットを介して前記解析結果の送信及び前記制御情報の受信を行う請求項1又は2記載のイーサネットスイッチ。 The microcomputer (52), the transmission unit and the reception unit (4 (5), 7 (5)) both transmit the analysis result and receive the control information via Ethernet. 2. Ethernet switch according to 2.
  4.  前記マイクロコンピュータ(2,62)と通信を行う、イーサネット以外の通信インターフェイス(35,36)を備え、
     前記送信部及び受信部は、前記通信インターフェイスを介して前記解析結果の送信及び前記制御情報の受信を行う請求項1又は2記載のイーサネットスイッチ。
    A communication interface (35, 36) other than Ethernet for communicating with the microcomputer (2, 62),
    The Ethernet switch according to claim 1, wherein the transmission unit and the reception unit transmit the analysis result and receive the control information via the communication interface.
  5.  前記マイクロコンピュータ(2,52)に、前記イーサネットを介して前記ヘッダ又は当該ヘッダ及び前記解析結果を送信するヘッダ送信部(4(5),7(5))を備える請求項1から4の何れか一項に記載のイーサネットスイッチ。 Any one of Claim 1 to 4 provided with the header transmission part (4 (5), 7 (5)) which transmits the said header or the said header, and the said analysis result to the said microcomputer (2, 52) via the said Ethernet. The Ethernet switch according to item 1.
  6.  前記マイクロコンピュータ(72)は、レイヤ3ルーティング用のテーブルを備え、前記ヘッダ及びヘッダの解析結果を受信すると、前記ヘッダに含まれている宛先MACアドレスが自身宛てであれば、前記テーブルを参照して前記ヘッダに含まれている宛先MACアドレスとソースMACアドレスとを変換して、変換したMACアドレスを付与したヘッダを送信し、
     前記ヘッダを格納するヘッダレジスタ(77)を備え、
     前記送信制御部(76)は、フレームバッファに格納されている通信フレームにおいて、そのヘッダを前記ヘッダレジスタに格納されたヘッダに付け替えた上でFCS(Flame Check Sequence)を再生成して通信フレームを送信する請求項1から5の何れか一項に記載のイーサネットスイッチ。
     
    The microcomputer (72) includes a table for layer 3 routing. When the header and the header analysis result are received, the microcomputer (72) refers to the table if the destination MAC address included in the header is addressed to itself. The destination MAC address and the source MAC address included in the header are converted, and the header with the converted MAC address is transmitted,
    A header register (77) for storing the header;
    In the communication frame stored in the frame buffer, the transmission control unit (76) replaces the header with the header stored in the header register, regenerates the FCS (Flame Check Sequence), and generates the communication frame. The Ethernet switch according to claim 1, which transmits the Ethernet switch.
PCT/JP2017/033519 2016-12-08 2017-09-15 Ethernet switch WO2018105197A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2016-238436 2016-12-08
JP2016238436 2016-12-08
JP2017168747A JP2018098771A (en) 2016-12-08 2017-09-01 Ethernet switch
JP2017-168747 2017-09-01

Publications (1)

Publication Number Publication Date
WO2018105197A1 true WO2018105197A1 (en) 2018-06-14

Family

ID=62491840

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2017/033519 WO2018105197A1 (en) 2016-12-08 2017-09-15 Ethernet switch

Country Status (1)

Country Link
WO (1) WO2018105197A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003018196A (en) * 2001-04-27 2003-01-17 Fujitsu Ltd Packet transfer device, semiconductor device, and packet transfer system
JP2004080487A (en) * 2002-08-20 2004-03-11 Nec Corp Packet transfer system, packet transfer method solution server, dns server, network system, and program
JP2007318582A (en) * 2006-05-29 2007-12-06 Nippon Telegr & Teleph Corp <Ntt> Bridge device
JP2015231131A (en) * 2014-06-04 2015-12-21 株式会社ギデオン Network relay device, ddos protection method employing the device, and load distribution method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003018196A (en) * 2001-04-27 2003-01-17 Fujitsu Ltd Packet transfer device, semiconductor device, and packet transfer system
JP2004080487A (en) * 2002-08-20 2004-03-11 Nec Corp Packet transfer system, packet transfer method solution server, dns server, network system, and program
JP2007318582A (en) * 2006-05-29 2007-12-06 Nippon Telegr & Teleph Corp <Ntt> Bridge device
JP2015231131A (en) * 2014-06-04 2015-12-21 株式会社ギデオン Network relay device, ddos protection method employing the device, and load distribution method

Similar Documents

Publication Publication Date Title
US10764181B2 (en) Pipelined evaluations for algorithmic forwarding route lookup
JP4974078B2 (en) Data processing device
US8228908B2 (en) Apparatus for hardware-software classification of data packet flows
EP1718008B1 (en) Gateway apparatus and routing method
CN101160825B (en) System and method for efficient traffic processing
US9300597B2 (en) Statistics module for network processors in virtual local area networks
US7346059B1 (en) Header range check hash circuit
JP2017212724A (en) Gateway device, on-vehicle network system, transfer method, and program
US9860168B1 (en) Network packet header modification for hardware-based packet processing
US20180367338A1 (en) Programmable tunnel creation for hardware-based packet processing
US10397116B1 (en) Access control based on range-matching
US9979648B1 (en) Increasing entropy across routing table segments
US11294841B1 (en) Dynamically configurable pipeline
WO2017203902A1 (en) Gateway device, in-vehicle network system, transfer method, and program
US20120174216A1 (en) Security protocol processing for anti-replay protection
US8792511B2 (en) System and method for split ring first in first out buffer memory with priority
US9985885B1 (en) Aggregating common portions of forwarding routes
CN113498595B (en) PCIe-based data transmission method and device
US20060114895A1 (en) CPU transmission of unmodified packets
CN115733832A (en) Computing device, message receiving method, programmable network card and storage medium
US20150003237A1 (en) Traffic Data Pre-Filtering
WO2018105197A1 (en) Ethernet switch
JP2007228227A (en) Communication device
US11159456B2 (en) Control apparatus
JP2018098771A (en) Ethernet switch

Legal Events

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

Ref document number: 17879376

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17879376

Country of ref document: EP

Kind code of ref document: A1