Repeater
The relay device inspects multiple relay paths using a frame generation and determination mechanism, ensuring reliable communication by detecting abnormalities in relay routes across multiple ports.
Patent Information
- Application Number
- JP2020095559
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-06-01
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-06-01
AI Technical Summary
Existing technologies fail to effectively inspect relay devices with multiple relay paths, as they primarily focus on testing one relay path connecting one uplink and one downlink.
A relay device is configured to receive and relay communication frames, incorporating a frame generation, route selection, and frame determination mechanism to inspect relay routes from multiple reception ports to multiple transmission ports using test frames.
Enables comprehensive inspection of relay routes across multiple ports, allowing for quick detection of abnormalities and ensuring reliable communication between communication nodes.
Smart Images

Figure 00000008_0000 
Figure 00000008_0001 
Figure 00000009_0000
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a technique for inspecting a relay device that relays communication frames communicated between a plurality of communication nodes. [Background technology]
[0002] 2. Description of the Related Art Techniques for inspecting relay devices that relay communication frames communicated between a plurality of communication nodes are known. For example, the following Patent Document 1 describes a technology for performing self-diagnosis of communication in a relay device that performs bidirectional upstream and downstream communication by looping back a self-diagnosis test frame from one of the receiving path for upstream communication and the receiving path for downstream communication to the other, thereby performing self-diagnosis of both the upstream communication and the downstream communication simultaneously. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2007-74259 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, as a result of detailed investigation by the inventors, it was found that the technology described in Patent Document 1 performs self-diagnosis of a relay device by testing one relay path connecting one upstream receiving path and one downstream receiving path using a test frame, but does not anticipate testing of a relay device having multiple relay paths.
[0005] It is desirable to provide a technique for inspecting relay paths of a relay device from multiple receiving ports to multiple transmitting ports. [Means for solving the problem]
[0006] A relay device according to one embodiment of the present disclosure is a relay device (10) that receives a communication frame communicated between a plurality of communication nodes from one of a plurality of receiving ports (40) and relays the communication frame by transmitting it from one of a plurality of transmitting ports (50), and includes a frame generation unit (308), a route selection unit (108, 210, 212), and a frame determination unit (306).
[0007] A frame generating unit (308) generates and outputs a test frame for testing whether or not a relay path between a receiving port and a transmitting port is normal. A path selecting unit (108, 210, 212) causes the test frame output from the frame generating unit to pass through a relay path from a plurality of receiving ports to a plurality of transmitting ports.
[0008] A frame determination unit (306) determines whether the relay path is normal based on whether the check frame output from the frame generation unit and passed through the relay path is normally received. According to this configuration, in a relay device that receives a communication frame communicated between multiple communication nodes from one of multiple receiving ports and relays the relayed communication frame by transmitting it from one of multiple transmitting ports, it is possible to inspect the relay path from the multiple receiving ports to the multiple transmitting ports. [Brief description of the drawings]
[0009] [Figure 1] FIG. 2 is a block diagram showing a relay device according to the first embodiment. [Diagram 2] FIG. 4 is a block diagram showing a reception processing unit and a transmission processing unit. [Diagram 3] FIG. 4 is a block diagram showing the configuration of a transmission buffer. [Figure 4] FIG. 4 is a block diagram showing a relay processing unit. [Diagram 5] 1A and 1B are frame configuration diagrams showing a normal Ethernet frame and a check frame. [Figure 6] FIG. 4 is an explanatory diagram of a field of an inspection frame. [Figure 7]11 is another frame configuration diagram showing a normal Ethernet frame and a check frame. [Figure 8] 11 is a flowchart showing a relay inspection process of a relay device. [Figure 9] FIG. 11 is a block diagram showing a relay processing unit according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. [1. First embodiment] [1-1. Configuration] The relay device 10 shown in FIG. 1 includes a microcomputer 20 and a switch 30. Hereinafter, the microcomputer is also referred to as a microcomputer. The relay device 10 relays Ethernet frames communicated between multiple communication nodes in Ethernet (registered trademark), for example. The microcomputer 20 monitors and controls the switch 30.
[0011] The switch 30 includes a plurality of receiving ports 40 , a plurality of transmitting ports 50 , a receiving processing section 100 , a transmitting processing section 200 , and a relay processing section 300 . The multiple receiving ports 40 and the multiple transmitting ports 50 are each connected to a communication node or another relay device.
[0012] As shown in FIG. 2, the reception processing unit 100 includes a reception buffer 102, an arbitration unit 104, a transfer processing unit 106, and a frame return unit . The receiving buffer 102 is connected to each of the multiple receiving ports 40, and stores normal Ethernet frames received by the receiving ports 40 and check frames (described later) output from the transmission processing unit 200. Hereinafter, normal Ethernet frames are also referred to as normal frames.
[0013] The arbitration unit 104 selects, for example, in a round robin manner, between normal frames and check frames stored in the receiving buffer 102, and outputs the selected frame to the transfer processing unit 106. The transfer processing unit 106 executes layer 2 processing and layer 3 processing. Layer 2 is the data link layer of the OSI reference model, and layer 3 is the network layer of the OSI reference model.
[0014] As a layer 2 process, the forwarding processor 106 analyzes the header of the Ethernet frame and determines whether to unicast, broadcast, or multicast the normal frame. As a layer 3 process, the forwarding processor 106 searches the relay route table using the destination IP address as an index, and determines the destination VLAN.
[0015] The frame returning unit 108 determines to which receiving buffer 102 the check frame returned from the transmission processing unit 200 should be returned, based on the reception source information of the check frame, which will be described later. The transmission processing unit 200 includes a transmission buffer 202, a frame identification unit 210, and a frame return unit 212. Each transmission buffer 202 corresponds to one of the transmission ports 50. As shown in FIG. 3, the transmission buffer 202 includes a queue selection unit 204, a queue 206, and a queue output unit 208.
[0016] Although not explained in the configuration of a normal frame described later, when an Ethernet frame is a normal frame, the queue selection unit 204 selects to which queue 206 the normal frame should be output based on priority information in a predetermined field position of the normal field. The smaller the number, the higher the priority of the normal frame. In FIG. 3, queue 206 numbered 0 has the highest priority, and queue 206 numbered m has the lowest priority. Each queue 206 is a FIFO buffer.
[0017] Furthermore, in the configuration of a check frame described later, if the check frame is an Ethernet frame, the queue selector 204 selects to which queue 206 the check frame is to be output based on the value of the priority information of the check frame.
[0018] The queue output unit 208 extracts Ethernet frames from the high priority queue 206 and outputs them to the corresponding frame identification unit 210 . Frame identification unit 210 identifies whether an Ethernet frame output from transmission buffer 202 is a normal frame or a check frame. As will be described later, frame identification unit 210 determines that an Ethernet frame is a check frame if the valid / invalid bit at the beginning of the Ethernet frame is 1 or the type field is 0xFFFF.
[0019] The frame identification unit 210 outputs the normal frame to the transmission port 50, and outputs the check frame to the frame return unit 212. The frame return unit 212 outputs the check frame output from the frame identification unit 210 to the frame return unit 108 of the reception processing unit 100.
[0020] 4, relay processing unit 300 includes frame identification unit 302, frame buffer 304, frame determination unit 306, frame generation unit 308, and frame output unit 310. Frame identification unit 302 identifies whether an Ethernet frame input from reception processing unit 100 is a normal frame or a check frame.
[0021] The frame buffer 304 stores the normal frame identified by the frame identification unit 302. The frame determination unit 306 compares the check frame identified by the frame identification unit 302 with the check frame generated by the frame generation unit 308, for example, by calculating the exclusive OR of the data of both frames.
[0022] If the exclusive OR of the data of both frames is 0, frame determination unit 306 determines that the relay path of switch 30 from the inspection frame output from frame generation unit 308, returned from transmission processing unit 200 to reception processing unit 100, and until it reaches frame determination unit 306, as described below, is normal.
[0023] If the exclusive OR of the data of both frames is not 0, frame determination unit 306 determines that there is an abnormality somewhere in the relay path of switch 30 from when the inspection frame is output from frame generation unit 308, returned from transmission processing unit 200 to reception processing unit 100, and reaches frame determination unit 306.
[0024] Furthermore, the frame determination unit 306 determines whether or not the relay route through which the check frame passes is normal based on whether or not the frame determination unit 306 receives the check frame within a predetermined time after the frame generation unit 308 outputs the check frame.
[0025] The frame generating unit 308 generates a test frame in a relay test process that is executed at predetermined time intervals. The frame output unit 310 outputs the check frames to the transmission processing unit 200 with a higher priority than normal frames using an absolute priority algorithm or weighted round robin or the like.
[0026] Furthermore, in the case of a normal frame, the frame output unit 310 determines, based on the relay route table, which transmission buffer 202 in the transmission processing unit 200 to output the normal frame to. In the case of a check frame, the frame output unit 310 determines, based on destination information of the check frame (described later), which transmission buffer 202 in the transmission processing unit 200 to output the normal frame to.
[0027] Next, the structure of the check frame will be described with reference to Fig. 5 and Fig. 6. The check frame has a structure in which an 8-byte check frame header is added to the beginning of a normal frame. In this embodiment, the beginning of the Ethernet frame functions as a valid / invalid bit. If the valid / invalid bit is 0, it indicates that it is a normal frame, and if the valid / invalid bit is 1, it indicates that it is a check frame.
[0028] A test frame has a fixed length of 68 bytes. If the valid / invalid bit at the beginning of the Ethernet frame is 1 or the type field is 0xFF, it is indicated as a test frame.
[0029] Even if the inspection frame is mistakenly transmitted from transmission port 50 to another ECU or another relay device, the 6-byte destination field and the 6-byte source field are set to 0 so that the other ECU or another relay device does not process it as an Ethernet frame addressed to the own device.
[0030] For the 8-bit source information and 8-bit destination information in the check frame header, the bits corresponding to the receiving port and transmitting port are set to 1 in the frame generation unit 308. Therefore, in the check frame configuration shown in Fig. 5, 64 combinations can be set using the 8-bit source information and 8-bit destination information, i.e., the 8 receiving ports and 8 transmitting ports.
[0031] The 1-byte priority information of the check frame is set to any value between 0 and m depending on the priority of the queue 206 of the transmission buffer 202. For example, if the queue 206 is set to eight levels of priority, the priority information of the check frame is set to a value between 0x00 and 0x07.
[0032] Note that instead of the check frame configuration shown in Fig. 5, a check frame with the configuration shown in Fig. 7 may be used. The check frame in Fig. 7 employs the same configuration as a normal frame. The payload of the check frame in Fig. 7 corresponds to the check frame header of the check frame in Fig. 5. And the priority information of the check frame in Fig. 7 is set to the priority of the queue 206 described above.
[0033] [1-2. Processing] Next, the relay process executed by the relay device 10 will be described with reference to the flowchart of Fig. 8. The flowchart of Fig. 8 is executed at predetermined time intervals.
[0034] In S400, the frame generation unit 308 sets a predetermined value in each field of the check frame shown in Fig. 5 or 7 and outputs the check frame. The check frame output from the frame generation unit 308 is output to the queue 206 of the corresponding priority in the transmission buffer 202 corresponding to the corresponding transmission port 50 of the transmission processing unit 200, based on the destination information and priority information of the check frame.
[0035] In S402, frame identification unit 210 of transmission processing unit 200 identifies whether the Ethernet frame input from transmission buffer 202 is an inspection frame or a normal frame. If the determination in S404 is No, that is, if the input Ethernet frame is a normal frame and not an inspection frame, in S406 frame identification unit 210 outputs the normal frame to the corresponding transmission port 50 and transitions to the process of S402.
[0036] If the determination in S404 is Yes, that is, if the input Ethernet frame is a check frame, the check frame is output from the frame return section 212 of the transmission processing section 200 to the frame return section 108 of the reception processing section 100 in S408.
[0037] Based on the reception source information of the check frame, the frame return unit 108 of the reception processing unit 100 outputs the check frame to the corresponding reception buffer 102. The check frame output to the reception buffer 102 is output to the relay processing unit 300.
[0038] In S410, frame identification unit 302 of relay processing unit 300 identifies whether the Ethernet frame input from reception processing unit 100 is an inspection frame or a normal frame. If the determination in S412 is No, that is, if the input Ethernet frame is not an inspection frame but a normal frame, frame identification unit 302 outputs the input normal frame to frame buffer 304 in S414.
[0039] If the determination in S412 is Yes, that is, if the input Ethernet frame is a check frame, the frame identification unit 302 outputs the check frame to the frame determination unit 306 in S416.
[0040] In S418, the frame determination unit 306 determines whether or not the relay route through which the check frame output from the frame generation unit 308 has passed is normal, based on the following determination processes (1) and (2).
[0041] (1) The frame determination unit 306 calculates the exclusive OR of the check frame input from the frame identification unit 302 and the check frame input from the frame generation unit 308, and determines whether the check frame input from the frame identification unit 302 matches the check frame input from the frame generation unit 308. The frame determination unit 306 determines the frame to be normal if the calculated exclusive OR is 0, and determines the frame to be abnormal if the calculated exclusive OR is not 0.
[0042] (2) The frame determination unit 306 determines whether or not to input a check frame within a predetermined time after the check frame is output from the frame generation unit 308. If the frame determination unit 306 inputs a check frame within the predetermined time, it determines that the frame is normal, and if the frame determination unit 306 does not input a check frame within the predetermined time, it determines that an abnormality exists.
[0043] If the determination in S418 is Yes, that is, if the relay route through which the check frame passed is normal, the frame determination unit 306 transitions the process to S422. If the determination in S418 is No, that is, if the relay route through which the check frame passed is abnormal, the frame determination unit 306 notifies the microcomputer 20 of the occurrence of the abnormality by a heartbeat signal or an interrupt signal, and shifts the process to S422.
[0044] When the microcomputer 20 is notified of the abnormality by the switch 30, it restarts the switch 30, for example, by resetting the switch 30. In S422, the frame determination unit 306 discards the inspection frame input from the frame identification unit 302. In S424, the frame generation unit 308 determines whether or not all the queues 206 of the priority levels in the transmission buffer 202 currently being inspected have been inspected.
[0045] If the determination in S424 is No, that is, if there are queues 206 of a priority that have not been inspected remaining in the transmission buffer 202 currently being inspected, in S426 the frame generation unit 308 increments the priority information of the inspection frame in order to inspect the queue 206 with the next lowest priority, and transitions to processing in S400.
[0046] If the determination in S424 is Yes, that is, if all priority queues 206 have been inspected in the transmission buffer 202 currently being inspected, the frame generation unit 308 determines in S428 whether or not inspection has been completed for all relay routes set by combinations of the reception source information and the transmission destination information of the inspection frame, that is, combinations of the reception port 40 and the transmission port 50. If the determination in S428 is Yes, that is, if inspection of all relay routes has been completed, this process ends.
[0047] If the determination in S428 is No, that is, if there is a relay route for which inspection has not been completed, in S430, frame generation unit 308 shifts the bit that is set to 1 in either the source information or destination information of the inspection frame to set the next combination of receiving port 40 and transmitting port 50, and transitions to processing in S400.
[0048] [1-3. Effects] According to the first embodiment described above, the following effects can be obtained. (1) It is possible to inspect relay paths from multiple receiving ports 40 to multiple transmitting ports 50.
[0049] (2) Since the check frames are given priority over normal frames when circulating along the relay path, any abnormality in the relay path can be detected quickly. In the above first embodiment, the Ethernet frame corresponds to the communication frame, the frame returning units 108 and 212 correspond to the returning unit, and the frame returning units 108 and 212 and the frame identifying unit 210 correspond to the path selecting unit.
[0050] [2. Second embodiment] [2-1. Differences from the first embodiment] The second embodiment has a basic configuration similar to that of the first embodiment, and therefore differences will be described below. Note that the same reference numerals as those in the first embodiment indicate the same configuration, and the preceding description will be referred to.
[0051] In the first embodiment described above, the inspection frame does not pass through the frame buffer 304. In contrast, in the second embodiment shown in Fig. 9, when the arbitration unit 402 determines that the frame buffer 304 is not full, the Ethernet frame input from the reception processing unit 100 is output to the frame buffer 304 regardless of whether it is a normal frame or an inspection frame, which is different from the first embodiment.
[0052] An Ethernet frame output from frame buffer 304 is identified by frame identification unit 302 as being a normal frame or a check frame. Frame identification unit 302 outputs the Ethernet frame input from frame buffer 304 to frame output unit 310 if it is a normal frame, and outputs it to frame determination unit 306 if it is a check frame.
[0053] When frame buffer 304 is full, if the Ethernet frame input from reception processing unit 100 is a check frame, arbitration unit 402 outputs the check frame to frame determination unit 306. If the Ethernet frame input from reception processing unit 100 is a normal frame, arbitration unit 402 discards it.
[0054] [2-2. Effects] According to the second embodiment described above, in addition to the effects of the first embodiment, the following effects can be obtained.
[0055] (1) If the frame buffer 304 is not full, the inspection frame is output to the frame buffer 304, so that an abnormality in the frame buffer 304 can be detected. 3. Other embodiments Although the embodiments of the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments and can be implemented in various modified forms.
[0056] (1) In the above embodiment, the relay route of the Ethernet switch 30 as a relay device is inspected, but the present invention is not limited to this. For example, a relay device of a network other than Ethernet may inspect the relay route of its own device.
[0057] (2) In the above embodiment, the relay processing unit includes a frame generating unit and a frame determining unit, but this is not limited to the above. For example, the reception processing unit or the transmission processing unit may include a frame generating unit and a frame determining unit.
[0058] (3) The relay device and the method described in the present disclosure may be realized by a dedicated computer provided by configuring a processor and a memory programmed to execute one or more functions embodied in a computer program. Alternatively, the relay device and the method described in the present disclosure may be realized by a dedicated computer provided by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the relay device and the method described in the present disclosure may be realized by one or more dedicated computers configured by combining a processor and a memory programmed to execute one or more functions with a processor configured with one or more hardware logic circuits. In addition, the computer program may be stored in a computer-readable non-transitory tangible recording medium as instructions executed by a computer. The method for realizing the functions of each unit included in the relay device does not necessarily need to include software, and all of the functions may be realized using one or more hardware.
[0059] (4) Multiple functions possessed by one component in the above embodiments may be realized by multiple components, or one function possessed by one component may be realized by multiple components. Also, multiple functions possessed by multiple components may be realized by one component, or one function realized by multiple components may be realized by one component. Also, part of the configuration of the above embodiments may be omitted. Also, at least part of the configuration of the above embodiments may be added to or substituted for the configuration of another of the above embodiments.
[0060] (5) In addition to the relay device described above, the present disclosure can be realized in various forms, such as a system including the relay device as a component, a program for causing a computer to function as the relay device, a non-transient physical recording medium such as a semiconductor memory on which the program is recorded, and a relay inspection method. [Explanation of symbols]
[0061] 10: relay device, 30: switch, 40: receiving port, 50: transmitting port, 100: receiving processing unit, 108, 212: frame return unit (path selection unit, return unit), 200: transmitting processing unit, 210: frame identification unit (path selection unit), 300: relay processing unit, 302: frame identification unit, 306: frame determination unit, 308: frame generation unit
Claims
1. A relay device (10) that receives an ordinary frame communicated between a plurality of communication nodes from one of a plurality of receiving ports (40) and transmits and relays the ordinary frame from one of a plurality of transmitting ports (50), a frame generating unit (308) configured to generate and output a check frame for checking whether a relay path between the receiving port and the transmitting port is normal; a route selection unit (108, 210, 212) configured to pass the inspection frame output from the frame generation unit through the relay route between the plurality of receiving ports and the plurality of transmitting ports; a frame determination unit (306) configured to determine whether the relay path is normal or not based on whether the inspection frame output from the frame generation unit and passed through the relay path is normally input; Equipped with The route selection unit is a return unit (108, 212) that returns the inspection frame from the transmission port side to the reception port side and determines which reception buffer the inspection frame should be returned to among the reception buffers corresponding to the plurality of reception ports; a return frame identification unit (210) that identifies whether a frame that has passed through the relay path is the normal frame or the check frame, and outputs the normal frame to the transmission port, and outputs the check frame to the return unit; A relay device comprising:
2. The relay device according to claim 1 , A frame identification unit (302) configured to identify the normal frame and the check frame, transmit the check frame to the frame determination unit, and transmit the normal frame to the relay path leading to the transmission port. Relay device.
3. 3. The relay device according to claim 1, The frame determination unit is configured to determine whether or not the relay path is normal based on data of the inspection frame. Relay device.
4. The relay device according to claim 3, the frame determination unit is configured to determine whether or not the relay path is normal by comparing the inspection frame generated by the frame generation unit with the inspection frame input after passing through the relay path. Relay device.
5. The relay device according to any one of claims 1 to 4, the frame determination unit is configured to determine whether or not the relay path is normal based on whether or not the frame determination unit inputs the check frame within a predetermined time after the frame generation unit outputs the check frame. Relay device.
6. The relay device according to any one of claims 1 to 5, the route selection unit is configured to allow the check frame to pass through the relay route with priority over the normal frame. Relay device.
Citation Information
Patent Citations
Speech path testing device
JP1990218239A
Test system for ATM channel
JP1992105443A
Atm exchange and speech path continuity test method
JP1996204720A
System for controlling cell annulment
JP1998065701A
Transmission apparatus having self-diagnostic function
JP2007074259A
