ring network

By introducing path search frames and optimizing communication scheduling in the ring network, the problems of insufficient communication efficiency and stability in the ring network are solved, and efficient and stable data transmission is achieved.

CN117749564BActive Publication Date: 2026-11-20KK TOSHIBA +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310058939.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2022-09-21
Filing Date
2023-01-16
Publication Date
2026-11-20
Estimated Expiration
2043-01-16

AI Technical Summary

Technical Problem

Existing ring networks are inadequate in terms of communication efficiency and stability, making it difficult to achieve efficient and stable data transmission.

Method used

By introducing Path Search Frames (RSF) into the ring network, each communication device sends and receives path information frames in clockwise and counterclockwise directions, collects path information and updates the path information table. Combined with the IEEE 802.1Qbv-2015 and IEEE 802.1AS-2020 standards, communication scheduling and clock synchronization are optimized, achieving efficient communication path decision-making.

Benefits of technology

It enables efficient and stable data transmission in ring networks, reduces frame looping in the network, and improves communication efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117749564B_ABST
    Figure CN117749564B_ABST
Patent Text Reader

Abstract

Embodiments provide a ring network capable of achieving efficient and stable communication. The ring network of the embodiments has a plurality of communication devices. The plurality of communication devices each has a first Ethernet interface and a second Ethernet interface connected with communication devices adjacent on one side and the other side, respectively, and a host device capable of transmitting and receiving data with other communication devices on the ring network using the first Ethernet interface and the second Ethernet interface. The plurality of communication devices includes a first communication device. The first communication device transmits a first frame from the second Ethernet interface of itself in a clockwise direction and a second frame from the first Ethernet interface of itself in a counterclockwise direction in a first period.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application enjoys priority based on Japanese Patent Application No. 2022-150217 (filed on September 21, 2022). This application incorporates the entire contents of that basic application by reference. Technical Field

[0002] The implementation involves a ring network. Background Technology

[0003] A ring topology network system (hereinafter referred to as "ring network") is known to be constructed by multiple devices with Ethernet interfaces. Summary of the Invention

[0004] The technical problem to be solved by this invention is to provide a ring network that can achieve efficient and stable communication.

[0005] The ring network of this embodiment includes multiple communication devices. Each of the multiple communication devices has a first Ethernet interface connected to a communication device adjacent on one side, a second Ethernet interface connected to a communication device adjacent on the other side, and a host device capable of using the first Ethernet interface and the second Ethernet interface to send and receive data with other communication devices on the ring network. The multiple communication devices include a first communication device. The first communication device sends a first frame clockwise from its own second Ethernet interface and a second frame counterclockwise from its own first Ethernet interface during a first period. Attached Figure Description

[0006] Figure 1 This is a schematic diagram illustrating an example of the overall structure of the ring network according to the first embodiment.

[0007] Figure 2 This is a block diagram illustrating an example of the hardware structure of the communication device according to the first embodiment.

[0008] Figure 3 This is a block diagram illustrating an example of the functional structure of the communication device according to the first embodiment.

[0009] Figure 4 This is a flowchart illustrating an example of a path information collection operation in a ring network according to the first embodiment.

[0010] Figure 5 This is a schematic diagram illustrating an example of the structure of a path search frame generated by the communication device according to the first embodiment.

[0011] Figure 6 This is a schematic diagram illustrating a specific example of path information collection operations in a ring network according to the first embodiment.

[0012] Figure 7 This is an example of a table representing the format of a path information table generated by the communication device according to the first embodiment.

[0013] Figure 8 This is a schematic diagram illustrating an example of the GCL configuration used in the ring network according to the first embodiment.

[0014] Figure 9 This is a flowchart illustrating an example of a transmission path determination operation in a ring network according to the first embodiment.

[0015] Figure 10 This is a block diagram illustrating an example of the functional structure of the communication device according to the second embodiment.

[0016] Figure 11 This is a flowchart illustrating an example of an anomaly detection operation in a ring network according to the second embodiment.

[0017] Figure 12 This is a schematic diagram illustrating the first example of an anomaly generated in the ring network according to the second embodiment.

[0018] Figure 13 This is an example of a table that represents the structure of a path information table generated corresponding to the first instance of an anomaly generated in the ring network involved in the second embodiment.

[0019] Figure 14 This is a schematic diagram representing a second example of an anomaly generated in the ring network according to the second embodiment.

[0020] Figure 15 This is an example of a table that represents the structure of a path information table generated corresponding to the second instance of an anomaly generated in the ring network involved in the second embodiment.

[0021] Figure 16 This is a schematic diagram representing a third example of an anomaly generated in the ring network involved in the second embodiment.

[0022] Figure 17 This is an example of a table that represents the structure of a path information table generated corresponding to the third example of an anomaly generated in the ring network involved in the second embodiment.

[0023] Figure 18 This is a schematic diagram representing the fourth example of an anomaly generated in the ring network according to the second embodiment.

[0024] Figure 19 This is an example of a table that represents the structure of a path information table generated corresponding to the fourth example of an anomaly generated in the ring network involved in the second embodiment.

[0025] Figure 20 This is a schematic diagram representing the fifth example of an anomaly generated in the ring network according to the second embodiment.

[0026] Figure 21 This is an example of a table that represents the structure of a path information table generated corresponding to the fifth example of an anomaly generated in the ring network involved in the second embodiment.

[0027] Figure 22 This is a schematic diagram illustrating an example of the structure of the ring network involved in the third embodiment.

[0028] Label Explanation

[0029] 1 Ring network; 2 Vehicle; 10 Communication device; 20 Host device; 21 CPU; 22 ROM; 23 RAM; 24 Functional unit; 25 Hardware interface; 31 CPU; 32 ROM; 33 RAM; 34 Hardware interface; 35, 36 Ethernet interface; 201 Data transceiver unit; 202 Time synchronization unit; 203 Path information collection unit; 204 Transmission path switching unit; 205 Anomaly detection unit; 301 Data transceiver unit; 302, 303 Signal processing unit; ETH Ethernet interface; 30 Communication IC. Detailed Implementation

[0030] Hereinafter, various embodiments will be described with reference to the accompanying drawings. Each embodiment illustrates an apparatus or method for embodying the technical concept of the invention. The drawings are schematic or conceptual. Depicting the structure has been appropriately omitted. In this specification, constituent elements having substantially the same function and structure are given the same reference numerals. Numbers, characters, etc., attached to the reference numerals are referred to by the same reference numerals and are used to distinguish similar elements from each other.

[0031] <1> First Embodiment

[0032] In the ring network 1 according to the first embodiment, each communication device 10 obtains communication path information by cyclically using frames that acquire communication path information. Furthermore, each communication device 10 determines the direction of traffic transmission based on the acquired communication path information. The ring network 1 according to the first embodiment will be described in detail below.

[0033] <1-1> structure

[0034] First, the structure of the ring network 1 according to the first embodiment will be described.

[0035] <1-1-1> Overall Structure of Ring Network 1

[0036] Figure 1 This is a schematic diagram illustrating an example of the overall structure of the ring network 1 according to the first embodiment. (See diagram below.) Figure 1 As shown, the ring network 1 includes multiple communication devices 10 connected in a ring. In this specification, a ring network constructed from eight communication devices 10A, 10B, 10C, 10D, 10E, 10F, 10G, and 10H will be used as an example. Furthermore, Ethernet (registered trademark) is a standard for computer networks.

[0037] Each communication device 10 has two Ethernet interfaces (ETH0 and ETH1). Ethernet interfaces ETH0 and ETH1 have different MAC addresses. Eight communication devices 10A to 10H are connected in a ring via Ethernet interfaces ETH. Specifically, ETH1 of communication device 10A is connected to ETH0 of communication device 10B, ..., ETH1 of communication device 10B is connected to ETH0 of communication device 10C, ..., ETH1 of communication device 10G is connected to ETH0 of communication device 10H, and ETH1 of communication device 10H is connected to ETH0 of communication device 10A. In this specification, two communication devices 10 connected without being connected via other communication devices 10 are referred to as "adjacent communication devices 10". In the ring network 1, any Ethernet frame sent from any communication device 10 is simply referred to as a "frame".

[0038] In ring network 1, frames are transmitted clockwise (CW) or counterclockwise (CCW) via either the Ethernet interface (ETH) of the sending source's communication device 10. Furthermore, if a frame sent from one of the sending source's communication devices is received by the ETH of another sending source's communication device 10, the sending source's communication device 10 discards the received frame. The sending source's communication device 10 determines whether the frame was sent via its own Ethernet interface (ETH) by referring to the sending source MAC address within the frame. Thus, ring network 1 can prevent the same frame from being looped multiple times within ring network 1.

[0039] In the ring network 1 described in this specification, communication between adjacent communication devices 10 via the Ethernet interface ETH conforms to the IEEE 802.11 standard. Frame transmission between adjacent communication devices 10 is implemented by the MAC (Media Access Control) layer. That is, each communication device 10 on the ring network 1 has an LSI (Large Scale Integration) capable of performing MAC layer processing.

[0040] In the ring network 1 of this specification, all communication devices 10 share the same time. That is, in the embodiments described below, clock synchronization of each communication device 10 is assumed to be achieved. The method for clock synchronization among multiple communication devices 10 follows, for example, IEEE 802.1AS-2020 (Timing and Synchronization). IEEE 802.1AS-2020 is for systems using Ethernet for communication and specifies a protocol for accurately synchronizing clocks. Through IEEE 802.1AS-2020, it is possible to identify and share the same time among multiple communication devices 10. In addition, the ring network 1 in this specification follows TSN (Time Sensitive Networking). TSN is a set of network standards that enables the synchronization of time in data communication and ensures real-time performance.

[0041] In the ring network 1 described in this specification, frames transmitted by the sending communication device 10 are sent from the corresponding Ethernet interface ETH according to the GCL (Gate Control List). The GCL is a transmission schedule assigned to each communication device 10. The GCL is shared by all Ethernet interfaces ETH on the ring network 1. In other words, the same GCL is pre-configured in the MAC layer of each communication device 10. The method of setting the GCL follows, for example, IEEE 802.1Qbv-2015 (Enhancements for Scheduled Traffic). IEEE 802.1Qbv-2015 specifies the transmission of traffic with different priorities based on the schedule (GCL). According to IEEE 802.1Qbv-2015, each communication device 10 can transmit high-priority frames with low latency while allowing the transmission of low-priority frames without guarantees (best effort).

[0042] <1-1-2> Hardware Structure of Communication Device 10

[0043] Figure 2 This is a block diagram illustrating an example of the hardware structure of the communication device 10 according to the first embodiment. For example... Figure 2As shown, the communication device 10 includes, for example, a host device 20 and a communication IC 30. The host device 20 and the communication IC 30 are configured to communicate. The connection between the host device 20 and the communication IC 30 follows, for example, SAS (serial attached SCSI (small computer system interface)), SATA (serial ATA (advanced technology attachment)), or PCIe... TM Any of the following: (peripheral component interconnect express).

[0044] The host device 20 is a device for processing communication traffic on the ring network 1. The host device 20 may include a camera, a sensor, a communication module, a central processing unit, etc. For example, in the ring network 1, different functions are assigned to the host devices 20 of each communication device 10. The host device 20 may have, for example, a CPU (Central Processing Unit) 21, a ROM (Read Only Memory) 22, a RAM (Random Access Memory) 23, a functional unit 24, and a hardware interface (I / F) 25.

[0045] CPU 21 is an integrated circuit capable of executing various programs. CPU 21 controls the overall operation of host device 20. ROM 22 is a non-volatile semiconductor memory. ROM 22 stores programs, control data, etc., used to control host device 20. RAM 23 is, for example, a volatile semiconductor memory. RAM 23 is used as the working area of ​​CPU 21. Functional unit 24 is a structure for implementing the functions assigned to communication device 10. Different devices can be assigned to each communication device 10 as functional unit 24. Hardware I / F 25 is a circuit used for transmitting and receiving data (communication data) with communication IC 30.

[0046] Communication IC 30 is an LSI capable of transmitting and receiving communication traffic in each communication device 10. Communication IC 30 transmits communication traffic received from host device 20 to other communication devices 10. Communication IC 30 transmits communication traffic received from one adjacent communication device 10 destined for another communication device 10 to another adjacent communication device 10. Communication IC 30 transmits communication traffic received from other communication devices 10 destined for itself to host device 20. Communication IC 30 includes, for example, a CPU 31, ROM 32, RAM 33, hardware interface (I / F) 34, Ethernet interface (I / F) 35, and Ethernet interface (I / F) 36.

[0047] CPU 31 is an integrated circuit capable of executing various programs. CPU 31 controls the overall operation of communication IC 30. ROM 32 is a non-volatile semiconductor memory. ROM 32 stores programs, control data, etc., used to control communication IC 30. RAM 33 is, for example, a volatile semiconductor memory. RAM 33 is used as the working area of ​​CPU 31. Hardware I / F 34 is the circuit used for transmitting and receiving data with host device 20. That is, the hardware I / F 34 of communication IC 30 is connected to the hardware I / F 25 of host device 20.

[0048] Ethernet I / F35 and 36 are respectively network interfaces used for communication between communication devices 10 within the ring network 1. Ethernet I / F35 and 36 are respectively connected to... Figure 1 The previously described Ethernet interfaces ETH0 and ETH1 correspond. Specifically, Ethernet I / F 35 is connected to ETH1 of the adjacent communication device 10 on one side. Ethernet I / F 36 is connected to ETH0 of the adjacent communication device 10 on the other side. Different MAC addresses are assigned to Ethernet I / F 35 and 36. In the ring network 1, the MAC addresses assigned to each Ethernet I / F are inherent addresses.

[0049] <1-1-3> Functional Structure of Communication Device 10

[0050] Figure 3 This is a block diagram illustrating an example of the functional structure of the communication device 10 according to the first embodiment. For example... Figure 3 As shown, the host device 20 functions as a computer, for example, equipped with a data transceiver unit 201, a timing synchronization unit 202, a path information collection unit 203, and a transmission path switching unit 204. The communication IC 30 functions as a computer, equipped with a data transceiver unit 301 and signal processing units 302 and 303. The data transceiver units 201 and 301 are functional blocks corresponding to hardware I / F 25 and hardware I / F 34, respectively. The timing synchronization unit 202, the path information collection unit 203, and the transmission path switching unit 204 are functional blocks mainly implemented by the CPU 21. The signal processing units 302 and 303 are functional blocks corresponding to Ethernet interfaces ETH0 and EHT1, respectively.

[0051] In communication device 10, communication traffic (data) between host device 20 and communication IC 30 is conducted via data transceiver units 201 and 301. The timing synchronization unit 202 of host device 20 performs processing related to timing synchronization within the ring network 1. The path information collection unit 203 collects path information from path search frames (RSF) and updates the path information table RI based on the collected path information. The path search frame (RSF) is an Ethernet frame used to search for paths on the ring network 1 and to collect information related to each communication device 10. The path information table RI includes parameters related to communication paths within the ring network 1. The path information table RI is stored, for example, in RAM 23. When host device 20 generates traffic to other communication devices 10, the transmission path switching unit 204 determines the transmission path for that traffic based on the information recorded in the path information table RI.

[0052] The signal processing units 302 and 303 of the communication IC 30 each function as a MAC layer. Each of the signal processing units 302 and 303 generates frames based on traffic received from the host device 20 or from other communication devices 10, and sends the generated frames to adjacent communication devices 10. Furthermore, the signal processing units 302 and 303 respectively transmit data contained in frames destined for their respective communication devices 10 or broadcast to the host device 20. The MAC layers of the signal processing units 302 and 303 are configured with the same GCL (Global Chaining). That is, based on the scheduling specified by the same GCL within the ring network 1, signal processing unit 302 (ETH0) sends frames to a communication device 10 adjacent on one side, and signal processing unit 303 (ETH1) sends frames to a communication device 10 adjacent on the other side.

[0053] <1-2> Actions

[0054] Next, the operation of the ring network 1 according to the first embodiment will be described. Each communication device 10 of the ring network 1 performs a path collection operation to update the path information table RI. Furthermore, when transmitting traffic to other communication devices 10, each communication device 10 of the ring network 1 performs a transmission path determination operation, thereby determining the transmission path of the traffic based on the updated path information table RI. Hereinafter, the path collection operation and the transmission path determination operation will each be described in detail.

[0055] <1-2-1> Path Information Collection Action

[0056] Figure 4 This is a flowchart illustrating an example of path information collection operations in the ring network 1 according to the first embodiment. Hereinafter, refer to... Figure 4The process of collecting path information in the ring network 1 according to the first embodiment will be described.

[0057] Each communication device 10, referring to the current time and GCL, begins transmission when it is confirmed that it is in the period of transmitting the path search frame (RSF) assigned to it. Figure 4 A series of processes (start). In the following, the period during which the path search frame RSF will be assigned is also called "transmission scheduling".

[0058] First, the communication device 10 assigned a transmission schedule (the communication device 10 of the sending source) simultaneously transmits a path search frame RSF from Ethernet interface ETH0 in a counter-clockwise direction (CCW) and from Ethernet interface ETH1 in a clockwise direction (CW) (S10). At this time, the communication device 10 of the sending source designates the MAC address of the Ethernet interface ETH used in transmitting the path search frame RSF as the sending source MAC address, and designates the MAC address of the other Ethernet interface ETH of the communication device 10 of the sending source as the sending destination MAC address. Furthermore, the transmission timing of the path search frame RSF from Ethernet interfaces ETH0 and ETH1 can be staggered, but is preferably approximately simultaneous. The path search frame RSF can be generated based on an instruction from the host device 20, or it can be spontaneously generated by the Ethernet interface ETH or the CPU 31 based on the GCL.

[0059] Furthermore, the communication device 10 (other than the transmitting source within the ring network 1) that receives the path search frame RSF records the MAC address and receiving timestamp of the receiving Ethernet interface ETH, and the MAC address and sending timestamp of the transmitting Ethernet interface ETH, and then transmits the recorded path search frame RSF to the next communication device 10 (S11). The sending timestamp indicates the time when the transmitting Ethernet interface ETH sends the path search frame RSF. The receiving timestamp indicates the time when the receiving Ethernet interface ETH receives the path search frame RSF.

[0060] Then, the communication device 10, the source of the path search frame RSF, receives both the path search frame RSF transmitted in the counter-clockwise direction (CCW) and the path search frame RSF transmitted in the clockwise direction (CW), and updates the path information table RI based on the received path search frame RSF (S12). Specifically, in the communication device 10, the information contained in the path search frame RSF received by the Ethernet interface ETH of the communication IC 30 is transmitted to the host device 20. Furthermore, the path information collection unit 203 of the host device 20 calculates the transmission time corresponding to each MAC address based on the reception timestamp and transmission timestamp recorded by each communication device 10, and records the calculation result in the path information table RI. This "transmission time" is, for example, calculated by subtracting the transmission time of the path search frame RSF from the reception or transmission timestamp.

[0061] (1: Structure of the Path Search Frame RSF)

[0062] Figure 5 This is a schematic diagram illustrating an example of the structure of a path search frame (RSF) generated by the communication device 10 according to the first embodiment. Figure 5 As shown, the path search frame RSF contains a preamble, SFD (Start Frame Delimiter), destination MAC address, source MAC address, Ethernet type, payload, and FCS (Frame Check Sequence).

[0063] The preamble indicates the start of the frame. The SFD is a specific string of bits configured at the end of the preamble. The preamble and SFD are appended to the beginning of the data transmission unit in the Ethernet frame. The destination MAC address indicates the MAC address of the frame's destination. The source MAC address indicates the MAC address of the frame's source. The Ethernet type, for example, indicates the protocol encapsulated in the frame's payload. A separate Ethernet type is used in the Path Search Frame (RSF). For example, the Ethernet type used in the RSF is 0x88B6 (IEEE Std 802 - Local Experimental Ethertype), defined by IEEE 802 Numbers. The payload contains the data body of the target data. The FCS, configured at the end of the frame, is used to verify that the received frame contains no errors.

[0064] Additionally, the payload of the path search frame RSF may include multiple timestamp sets. Each timestamp set is information appended to the payload of the path search frame RSF as it passes through a communication device 10. The timestamp sets include the MAC address and receive timestamp of the Ethernet interface ETH on the receiving side of the communication device 10 transmitting the path search frame RSF, and the MAC address and send timestamp of the Ethernet interface ETH on the sending side. Furthermore, the number of timestamp sets included in the payload varies depending on the number of communication devices 10 transmitting the path search frame RSF. Specifically, the number of timestamp sets included in the payload corresponds to the number of communication devices 10 traversed during the path information collection operation until the path search frame RSF, sent from the sending source communication device 10, returns to the sending source communication device 10.

[0065] Furthermore, the receive timestamp and transmit timestamp inserted into the path search frame RSF can also be the times when the path search frame RSF was received and transmitted during the previous path search operation. In this case, for example, the Ethernet interface ETH of each communication device 10 stores the information of the path search frame RSF from the transmitting source, as well as the receive timestamp and transmit timestamp. Moreover, when the Ethernet interface ETH of each communication device 10 receives a path search frame RSF from another communication device 10, it appends the receive timestamp and transmit timestamp of the path search frame RSF previously received from that transmitting source to the payload of the path search frame RSF, referring to the information of the transmitting source.

[0066] (2: Specific examples of path search actions)

[0067] Figure 6 This is a schematic diagram illustrating a specific example of path information collection operations in the ring network 1 according to the first embodiment. Figure 6 In the example shown, communication device 10A corresponds to communication device 10, which is the source of the path search frame RSF. Furthermore, in the following description, the case where communication device 10A is the source of the path search frame RSF is illustrated, but other communication devices 10 can also perform the same operations as communication device 10A.

[0068] When communication device 10A initiates path search, its Ethernet interface ETH0 designates Ethernet interfaces ETH0 and ETH1 as the source and destination MAC addresses, respectively, and transmits a path search frame RSF in a counter-clockwise direction (CCW). Simultaneously, its Ethernet interface ETH1 designates Ethernet interfaces ETH1 and ETH0 as the source and destination MAC addresses, respectively, and transmits a path search frame RSF in a clockwise direction (CW). The transmission timing of the path search frames RSF from Ethernet interfaces ETH0 and ETH1 is, for example, simultaneous.

[0069] The payload of the path search frame RSF transmitted from communication device 10A in the clockwise direction CW and counterclockwise direction CCW is inserted into the path of all communication devices 10 except itself in the ring network 1. This includes the MAC address and receive timestamp of the Ethernet interface ETH on the receiving side, and the MAC address and send timestamp of the Ethernet interface ETH on the sending side. In this specification, the send timestamp and receive timestamp in the clockwise direction CW of communication device 10i (i is any one of A to H) are defined as "T". i、TX、CW "and "T i、RX、CW Similarly, the transmit timestamp and receive timestamp on the counterclockwise CCW in communication device 10i are defined as "T". i、TX、CCW "and "T i、RX、CCW ".

[0070] Specifically, for example, when a path search frame RSF sent in the counter-clockwise direction CCW passes through communication device 10H, communication device 10H appends the MAC address of the Ethernet interface ETH1 on the receiving side, the receiving timestamp T, and other parameters to the payload of the path search frame RSF in the following order. H、RX、CCW The MAC address and transmission timestamp T of the Ethernet interface ETH0 on the transmitting side. H、TX、CCW For example, when a path search frame RSF sent in the clockwise direction (CW) passes through communication device 10B, communication device 10B appends the MAC address of the receiving Ethernet interface ETH0, the receiving timestamp T, and other parameters to the payload of the path search frame RSF in the following order: B、RX、CW The MAC address and transmission timestamp T of the Ethernet interface ETH1 on the transmitting side. B、TX、CW .

[0071] In this example, the path search frame RSF transmitted in the counter-clockwise direction CCW is sequentially transmitted via multiple communication devices 10H, 10G, 10F, 10E, 10D, 10C, and 10B arranged in the counter-clockwise direction CCW, and finally received by the Ethernet interface ETH1 of communication device 10A. Conversely, the path search frame RSF transmitted in the clockwise direction CW is sequentially transmitted via multiple communication devices 10B, 10C, 10D, 10F, 10G, and 10H arranged in the clockwise direction CW, and finally received by the Ethernet interface ETH0 of communication device 10A. Furthermore, communication device 10A reads the information contained in the payloads of both the path search frame RSFs that have circulated along the counter-clockwise direction CCW on the ring network 1 and the path search frame RSFs that have circulated along the clockwise direction CW on the ring network 1. Therefore, the communication device 10A can obtain identification information (MAC address), receiving timestamp, and sending timestamp related to all communication devices 10 on their respective communication paths in the clockwise direction CW and the counterclockwise direction CCW, and can update the path information table RI.

[0072] (3: Structure of the Path Information Table RI)

[0073] Figure 7 This is an example of a table representing the format of a path information table RI generated by the communication device 10 according to the first embodiment. Figure 7 This corresponds to the path information table RI generated by the communication device 10A. The communication device 10A can generate a path search frame RSF that has circulated in the ring network 1 along the clockwise direction CW and the path search frame RSF that has circulated in the ring network 1 along the counterclockwise direction CCW. Figure 7 The path information table RI is shown. Furthermore, for other communication devices 10, a path information table RI containing the MAC addresses and timestamps of communication devices 10 other than itself can be generated in the same manner as communication device 10A. Hereinafter, the MAC address of the Ethernet interface ETH on the receiving side of communication device 10i (i being any one of A to H) will be recorded as "10i-ERX". Additionally, the MAC address of the Ethernet interface ETH on the transmitting side of communication device 10i will be recorded as "10i-ETX".

[0074] like Figure 7As shown, the path information table RI of communication device 10A stores information related to the hop count HN, MAC address, and transmission time, respectively, in association with the clockwise direction CW and the counterclockwise direction CCW, based on communication device 10A. The hop count HN is the number of transmission relay devices traversed until reaching the communication target on the communication network. That is, in this specification, it corresponds to the number of communication devices 10 traversed until reaching the communication device 10 at the transmission destination on the ring network 1. Furthermore, in this specification, bridging transmissions between the Ethernet interfaces ETH0 and ETH1 of the same communication device 10 are also considered hops.

[0075] First, the information associated with the clockwise direction CW is explained. HN=1 corresponds to MAC address 10B-ERX (ETH0 of communication device 10B). HN=2 corresponds to MAC address 10B-ETX (ETH1 of communication device 10B). HN=3 corresponds to MAC address 10C-ERX (ETH0 of communication device 10C). The correspondence for other numbers is the same. HN=12 corresponds to MAC address 10G-ETX (ETH1 of communication device 10G). HN=13 corresponds to MAC address 10H-ERX (ETH0 of communication device 10H). HN=14 corresponds to MAC address 10H-ETX (ETH1 of communication device 10H). The transmission time on the clockwise direction CW is calculated by the difference between the receive timestamp or send timestamp and the send timestamp of ETH1 of communication device 10A. Specifically, the transmission time corresponding to 10B-ERX on the clockwise direction CW is calculated by T... B、RX、CW -T A、TX、CW To calculate. The transmission time corresponding to 10B-ETX in the clockwise CW direction is calculated via T. B、TX、CW -T A、TX、CW To calculate. The transmission time corresponding to 10C-ERX in the clockwise direction CW is calculated via T. C、RX、CW -T A、TX、CW The corresponding relationships for other numbers are calculated in the same way. The transmission time corresponding to 10H-ETX in the clockwise direction CW is calculated via T. H、TX、CW -T A、TX、CW Let's calculate it.

[0076] Next, the information associated with the counter-clockwise CCW is explained. HN=1 corresponds to MAC address 10H-ERX (ETH1 of communication device 10H). HN=2 corresponds to MAC address 10H-ETX (ETH0 of communication device 10H). HN=3 corresponds to MAC address 10G-ERX (ETH1 of communication device 10G). ... HN=12 corresponds to MAC address 10C-ETX (ETH0 of communication device 10C). HN=13 corresponds to MAC address 10B-ERX (ETH1 of communication device 10B). HN=14 corresponds to MAC address 10B-ETX (ETH0 of communication device 10B). The transmission time on the counter-clockwise CCW is calculated by the difference between the receive timestamp or send timestamp and the send timestamp of ETH0 of communication device 10A. Specifically, the transmission time corresponding to 10H-ERX on the counter-clockwise CCW is calculated by T... H、RX、CCW -T A、TX、CCW To calculate. The transmission time corresponding to 10H-ETX in the counterclockwise CCW direction is calculated via T. H、TX、CCW -T A、TX、CCW To calculate. The transmission time corresponding to 10G-ERX in the counterclockwise CCW direction is obtained through T. G、RX、CCW -T A、TX、CCW To calculate... The transmission time corresponding to 10B-ETX in the counter-clockwise CCW direction is calculated via T... B、TX、CCW -T A、TX、CCW Let's calculate it.

[0077] (4: GCL (Gate Control List) settings)

[0078] Figure 8 This is a schematic diagram illustrating an example of the GCL configuration used in the ring network 1 according to the first embodiment. Figure 8 As shown, a predetermined scheduling period is set via GCL. Within the scheduling period, periods during which communication transmission is permitted (Open) and prohibited (Close) are set according to the priority and type of the communication traffic. The permission and prohibition of communication transmission can be set by the communication device 10. The period during which communication transmission is permitted (the transmittable period) is also called a slot. The slot is set, for example, in correspondence with the bidirectional (clockwise CW and counterclockwise CCW) path search frame RSF transmission of each communication device 10. Furthermore, the path search frame RSF from each communication device 10 is transmitted in the corresponding slot.

[0079] In this example, eight time slots are configured corresponding to the eight communication devices 10A to 10H. Specifically, the scheduling period includes service periods SP1 to SP8. Within each service period SP, time slots are allocated for transmitting traffic to the high-priority frames (HPF) containing high-priority traffic, the medium-priority frames (MPF) containing medium-priority traffic, the low-priority frames (LPF) containing low-priority traffic, and the path search frames (RSF). Furthermore, in the time slot allocated to the path search frames (RSF) during service period SP1, the transmitting source is only communication device 10A. In the time slot allocated to the path search frames (RSF) during service period SP2, the transmitting source is only communication device 10B. The correspondence for other numbers is the same. In the time slot allocated to the path search frames (RSF) during service period SP8, the transmitting source is only communication device 10H.

[0080] During each service period, the SP is allocated a time slot for transmitting Path Search Frames (RSFs). Path Search Frames (RSFs) transmitted from a single source circulate within the ring network 1. Thus, multiple Path Search Frames (RSFs) from different communication devices 10 at the transmitting source can be transmitted in a manner that does not compete for time slots or interfere with other traffic. Furthermore, Path Search Frames (RSFs) are periodically transmitted from the Ethernet interfaces (ETH) of all communication devices 10 on the ring network 1 through repeated scheduling cycles. Therefore, in each communication device 10, through… Figure 4 The processing in S12 shown recalculates the transmission time information related to all communication devices 10 within the ring network 1 other than itself, based on the latest timestamp, in the path information table RI.

[0081] In addition, Figure 8 The illustration shows a case where time slots for performing path information collection operations are allocated according to communication device 10, but it is not limited to this. Multiple communication devices 10 may also be allowed to communicate within a time slot allocated to the path search frame RSF. Within the time slot allocated to the path search frame RSF, it is sufficient to suppress communication contention within the time slot. By allowing communication from multiple communication devices 10 within this time slot, the ring network 1 can shorten the update cycle of the path information table RI.

[0082] <1-2-2> The teleportation path determines the action.

[0083] Figure 9 This is a flowchart illustrating an example of the transmission path determination operation in the ring network according to the first embodiment. Hereinafter, refer to... Figure 9 The process of determining the transmission path in the ring network 1 according to the first embodiment will be described.

[0084] When each communication device 10 transmits traffic based on GCL, it begins Figure 9 A series of processes (beginning).

[0085] First, the communication device 10 refers to the path information table RI to determine whether "TTcw = TTccw" is satisfied (S20). When a frame is transmitted in the clockwise direction (CW), TTcw is the time (transmission time) until the communication device 10's Ethernet interface ETH0 reaches the destination of the transmitted data. When a frame is transmitted in the counter-clockwise direction (CCW), TTccw is the time (transmission time) until the communication device 10's Ethernet interface ETH1 reaches the destination of the transmitted data.

[0086] If the condition “TTcw=TTccw” is not met in the processing of S20 (S20: No), the communication device 10 refers to the path information table RI to determine whether “TTcw<TTccw” is met (S21).

[0087] If the condition "TTcw < TTccw" is met in the processing of S21 (S21: Yes), the communication device 10 determines the transmission direction of the frame to be clockwise CW (S22), and ends the process. Figure 9 The series of processes (end).

[0088] If the condition "TTcw < TTccw" is not met in the processing of S21 (S21: No), the communication device 10 determines the transmission direction of the frame to be counterclockwise CCW (S23), and ends the process. Figure 9 The series of processes (end).

[0089] If the condition "TTcw = TTccw" is met during processing in S20 (S20: Yes), the communication device 10 refers to the path information table RI to determine whether "HNcw = HNccw" is met (S24). When transmitting frames in the clockwise direction (CW), HNcw is the hop count HN up to the Ethernet interface ETH0 of the communication device 10, the destination of the transmitted traffic. When transmitting frames in the counter-clockwise direction (CCW), HNccw is the hop count HN up to the Ethernet interface ETH1 of the communication device 10, the destination of the transmitted traffic.

[0090] If the condition "HNcw = HNccw" is met in the processing of S24 (S24: Yes), the communication device 10 determines the transmission direction of the frame to be clockwise CW (S25), and ends the process. Figure 9 The series of processes (end).

[0091] If the condition “HNcw = HNccw” is not met in the processing of S24 (S24: No), the communication device 10 refers to the path information table RI to determine whether “HNcw < HNccw” is met (S26).

[0092] If the condition "HNcw < HNccw" is met in the processing of S26 (S26: Yes), the communication device 10 determines the transmission direction of the frame to be clockwise CW (S27), and ends the process. Figure 9 The series of processes (end).

[0093] If the condition "HNcw < HNccw" is not met in the processing of S26 (S26: No), the communication device 10 determines the transmission direction of the frame to be counterclockwise CCW (S28), and ends the process. Figure 9 The series of processes (end).

[0094] As explained above, each communication device 10 can determine the transmission direction of the traffic based on the path information table RI when transmitting any frame to another communication device 10 specified by the destination MAC address. Then, each communication device 10 transmits the frame in the determined transmission direction.

[0095] Furthermore, each communication device 10 transmits a frame received by one party's Ethernet interface ETH to either the host device 20 or the communication device 10 connected to the other party's Ethernet interface ETH, based on the destination MAC address contained in the frame header. In the case of broadcast packets, the communication device 10 may also transmit a frame received by one party's Ethernet interface ETH to both the host device 20 and the communication device 10 connected to the other party's Ethernet interface ETH.

[0096] Furthermore, the above explanation exemplifies the case where HNcw = HNccw in the S24 process, and the transmission direction is determined to be clockwise (CW), but it is not limited to this. In the case of HNcw = HNccw, the transmission direction can also be determined to be counterclockwise (CCW). The transmission direction of a frame can be arbitrarily designed when the transmission time and hop number are the same in both clockwise (CW) and counterclockwise (CCW) directions.

[0097] <1-3> Effects of the first embodiment

[0098] According to the ring network 1 of the first embodiment, efficient and stable communication can be achieved. The effects of the first embodiment will be explained in detail below.

[0099] As a network system used in automobiles (vehicles), ring networks are known to include multiple communication devices with Ethernet interfaces. Furthermore, in ring networks, the increased complexity of communication between multiple devices necessitates the achievement of efficient and stable communication.

[0100] Therefore, each communication device 10 of the ring network 1 according to the first embodiment follows the TSN and uses a dedicated Ethernet frame (Path Search Frame RSF) to obtain path information within the ring network 1. Specifically, each communication device 10 transmits a Path Search Frame RSP in a bidirectional manner through a path information collection operation, and receives bidirectional Path Search Frame RSFs that have circulated within the ring network 1. Furthermore, each communication device 10 obtains the identification information (MAC address), the position (hop count HN) up to each communication device 10, and the transmission time (receive timestamp and send timestamp) of any communication device 10 on the ring network 1 from the received bidirectional Path Search Frame RSFs, and records them in the path information table RI.

[0101] Each communication device 10 can perform path information collection without hindering other communication locations through advanced traffic control based on TSN. Furthermore, in the ring network 1, all communication devices 10 have the same time through time synchronization. Therefore, each communication device 10 can calculate and compare the transmission time between arbitrary locations based on information obtained from path search frames (RSF) that have been circulated within the ring network 1.

[0102] Furthermore, in the ring network 1 according to the first embodiment, each communication device 10 determines the optimal transmission path based on the path information (MAC address / number of hops (relays) / transmission time) recorded in the path information table RI. Specifically, each communication device 10 compares the number of hops and transmission time in the MAC address of the Ethernet interface ETH on the receiving side of the communication device 10 in the clockwise direction (CW) with the number of hops and transmission time in the MAC address of the Ethernet interface ETH on the receiving side in the counterclockwise direction (CCW). Then, each communication device 10 determines the communication path with the shorter transmission time between the clockwise direction (CW) and the counterclockwise direction (CCW).

[0103] As a result, each communication device 10 of the ring network 1 according to the first embodiment can determine the transmission path that can transmit communication data in the shortest time. Therefore, the ring network 1 according to the first embodiment can achieve efficient communication. In addition, when the transmission time of each communication device is equal in both directions, the path with fewer hops is determined as the communication path. As a result, the ring network 1 can suppress the number of communication devices 10 that a frame passes through, and can achieve stable communication.

[0104] <2> Second Implementation Method

[0105] In the second embodiment, each communication device 10 in the ring network 1 determines the presence or absence of faults or delays on the ring network 1 based on the reception status of its own path search frame RSF and the reception status of path search frame RSF sent from other communication devices 10. Furthermore, each communication device 10 in the ring network 1 according to the second embodiment determines the transmission direction of communication traffic based on the state of faults and delays. The ring network 1 according to the second embodiment will be described in detail below.

[0106] <2-1> structure

[0107] The structure of the ring network 1 in the second embodiment is the same as that in the first embodiment, except for the functional structure of the communication device 10.

[0108] (Functional structure of communication device 10)

[0109] Figure 10 This is a block diagram illustrating an example of the functional structure of the communication device 10 according to the second embodiment. For example... Figure 10 As shown, in the communication device 10 according to the second embodiment, the host device 20 further includes an anomaly detection unit 205. The anomaly detection unit 205 refers to the path information table RI to detect whether a fault or delay has occurred within the ring network 1. Furthermore, if a fault or delay has occurred, the anomaly detection unit 205 determines the location where the fault or delay occurred. Further, in the second embodiment, the path information table RI also records information indicating the transmission status of frames for corresponding MAC addresses.

[0110] The transmission status of a path search frame (RSF) can be expressed using three options: "Can (transmittable)," "Cannot (not transmit)," and "Delayed (transmission delayed)." A transmission status of "Can" indicates that the communication device 10 storing the path information table RI can send a frame to the corresponding MAC address. A transmission status of "Cannot" indicates that the communication device 10 storing the path information table RI cannot send a frame to the corresponding MAC address. A transmission status of "Delayed" indicates that the transmission of frames for the corresponding MAC address in the communication device 10 storing the path information table RI is delayed.

[0111] <2-2> Actions

[0112] In the second embodiment, after the ring network 1 sends path search frames RSF along the clockwise direction (CW) and the counterclockwise direction (CCW) during the path information collection operation, it performs an anomaly determination operation to determine the presence or absence of faults and delays on the ring network 1. The anomaly determination operation and the method for determining the location of the anomaly in the second embodiment will be described below.

[0113] <2-2-1> Abnormal Detection Action

[0114] Figure 11 This is a flowchart illustrating an example of anomaly detection operations in a ring network according to the second embodiment. Hereinafter, refer to... Figure 11 The flow of the anomaly detection operation in the ring network 1 according to the second embodiment will be described.

[0115] When the path information collection action S10 is being processed, the communication device 10 begins the abnormal judgment action (start).

[0116] First, the communication device 10 confirms whether it can receive bidirectional (clockwise CW and counterclockwise CCW) path search frames RSF within the timeout period (S30). The timeout period corresponds to a threshold for determining whether a fault has occurred on the ring network 1. An example of setting the timeout period will be described later.

[0117] If a bidirectional path search frame RSF is received within the timeout period during the processing of S30 (S30: Yes), the communication device 10 determines that no fault has occurred on the ring network 1. Furthermore, the communication device 10 is configured to determine the transmission direction of frames based on the bidirectional transmission time and hop count HN when transmitting future traffic (S31). This setting corresponds to the transmission path determination operation described in the first embodiment. When the processing of S31 is completed, the communication device 10 terminates. Figure 11 The series of processes (end).

[0118] If a bidirectional path search frame (RSF) cannot be received within the timeout period during processing in S30 (S30: No), the communication device 10 determines that a fault or delay has occurred on the ring network 1. Furthermore, the communication device 10 determines the location of the fault or delay within the ring network 1 (i.e., the location of the anomaly) (S32).

[0119] After processing S32 is completed and the location of the anomaly is determined, the communication device 10 is configured to consider the fault or delay when sending future communication traffic to determine the transmission direction of the frame (S33). Specific examples of the method for determining the location of the anomaly and the method for determining the transmission direction of the frame considering the fault or delay will be described later. When processing S33 is completed, the communication device 10 terminates. Figure 11 The series of processes (end).

[0120] (Example of timeout setting)

[0121] Here, an example of setting the timeout period will be explained. In this example, the case where any communication device 10i begins transmitting the nth (n is an integer of 3 or more) path search frame RSF in both directions. Hereinafter, the timeout period in the clockwise direction CW will be defined as "Timeout". i、CW The timeout period on the counter-clockwise CCW is defined as "Timeout". i、CCW The following formula represents "dir" as either clockwise (CW) or counterclockwise (CCW). "T" i、TX、dir "(n)" represents the moment when the nth path search frame is sent from any communication device 10i. i、RX、dir "(n)" represents the moment when any communication device 10i receives the nth path search frame.

[0122] In the following equation (1), Timeout is represented. i、CW and Timeout i、CCW .

[0123] Timeout i,dir =μ i,dir (n,m)+3σ i,dir (n,m)…(1)

[0124] The μ contained in equation (1) i、dir (n, m) can be calculated using the following formula (2).

[0125]

[0126] The σ contained in equation (1) i、dir (n, m) can be calculated using the following formula (3).

[0127]

[0128] As shown in equation (1), the timeout period is calculated by summing the moving average of the path search frames RSF that have been cyclically executed on the ring network 1 from the (n-1-m)th to the (n-1)th time in the communication device 10i, the time required for the cyclic execution, and three times their standard deviation, where m is a positive integer. Therefore, the communication device 10i can, when the path search frame RSF has been transmitted, determine the timeout period based on the path search frame RSF at "T i、TX、dir (n)+Timeout i、dir "The fact that the Ethernet interface ETH of the receiving side of the communication device 10i has been reached indicates that no fault has occurred on the ring network 1."

[0129] <2-2-2> Methods for determining the location of an anomaly

[0130] Next, the method for determining the location of anomalies in the ring network 1 according to the second embodiment will be described. If any communication device 10i fails to receive its own Ethernet interface ETH before the timeout period, it is determined that a fault has occurred on the ring network 1. Furthermore, in the ring network 1 according to the second embodiment, each communication device 10 can determine the location of anomalies (faults or delays) on the ring network 1 by analyzing the reception status of path search frames RSF sent from other communication devices 10. Moreover, each communication device 10 in the second embodiment can determine the communication path for the communication traffic based on the occurrence of faults and delays on the ring network 1.

[0131] The following examples, from the first to the fifth, and their detection methods, are explained as specific examples of anomalies (faults or delays) that occur on ring network 1.

[0132] (Example 1)

[0133] Figure 12 This is a schematic diagram illustrating a first example of an anomaly occurring in the ring network 1 according to the second embodiment. The first example corresponds to a situation where the line between two adjacent communication devices 10 is interrupted. Figure 12 The example illustrates a malfunction caused by a disconnection of the line between communication devices 10D and 10E. The following describes the situation with communication device 10A. Figure 12 The method for determining the location of the anomaly will be explained. Communication device 10A can estimate the location of the fault based on the reception status of path search frames RSF sent from other communication devices 10 in both the clockwise direction (CW) and the counterclockwise direction (CCW) and the path information table RI.

[0134] First, the method for determining whether a path search frame (RSF) sent from any communication device 10i has reached communication device 10A is explained. The time in each Ethernet interface (ETH) of communication device 10A is defined as "t". A、dir If the following equation (4) is satisfied, the communication device 10A determines that the path search frame RSF sent from any communication device 10i in the direction indicated by "dir" has not reached the communication device 10A. Furthermore, the method of using equation (4) to confirm whether the path search frame RSF has arrived can also be used in the second to fifth examples described below.

[0135] (t A,dir -T i,TX,dir (n))>μ i,A,dir (n, m) + 3σ i,A,dir (n, m)…(4)

[0136] The μ contained in equation (4)i、A、dir (n, m) can be calculated using the following formula (5).

[0137]

[0138] The σ contained in equation (4) i、A、dir (n, m) can be calculated using the following formula (6).

[0139]

[0140] When the line between communication devices 10D and 10E is interrupted, communication device 10A can receive path search frames RSF sent from communication devices 10E to 10H in the clockwise direction (CW), but cannot receive path search frames RSF sent from communication devices 10B to 10D. Conversely, communication device 10A can receive path search frames RSF sent from communication devices 10B to 10D in the counter-clockwise direction (CW), but cannot receive path search frames RSF sent from communication devices 10E to 10H.

[0141] Furthermore, communication device 10A updates the path information table RI based on the reception status of path information tables RI from other communication devices 10. An example of the structure of the path information table RI in the first example is shown in... Figure 13 .like Figure 13 As shown, in this example, in the clockwise direction (CW), the MAC addresses of the ETH (Ethernet Array) on the transmitting and receiving sides of communication devices 10B-10D are recorded as "transferable". In the clockwise direction (CW), the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10E-10H are recorded as "non-transferable". Furthermore, in the counter-clockwise direction (CCW), the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10H-10E are recorded as "transferable". In the counter-clockwise direction (CCW), the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10B-10D are recorded as "non-transferable".

[0142] Based on the updated path information table RI and the arrival status of path search frames RSF from other communication devices 10, communication device 10A can infer that a fault has occurred between communication devices 10D and 10E in the clockwise direction (CW) and between communication devices 10E and 10D in the counterclockwise direction (CCW). That is, communication device 10A can deduce that a fault has occurred in the bidirectional communication between communication devices 10D and 10E.

[0143] Furthermore, communication device 10A can determine the optimal transmission path for frames based on the updated path information table RI. For example, when traffic to communication device 10D is generated, communication device 10A determines the transmission direction of the frame to communication device 10D to be a clockwise direction CW that avoids the fault location, regardless of transmission time and hop count. Similarly, when traffic to communication device 10E is generated, communication device 10A determines the transmission direction of the frame to communication device 10E to be a counterclockwise direction CCW that avoids the fault location, regardless of transmission time and hop count.

[0144] (Example 2)

[0145] Figure 14 This is a schematic diagram illustrating a second example of an anomaly occurring in the ring network 1 according to the second embodiment. This second example corresponds to a situation where frames cannot be transmitted between two adjacent communication devices 10 in only one direction. Figure 14 The example illustrates a situation where a fault occurs during communication from communication device 10E to communication device 10D. Hereinafter, the fault in communication device 10A is determined to be caused by... Figure 14 The method for identifying the location of the abnormality will be explained.

[0146] In the event of a communication failure between communication device 10E and communication device 10D, communication device 10A is able to receive path search frames (RSF) transmitted from communication devices 10B to 10H in the clockwise direction (CW). That is, in this example, all communication devices 10 are able to transmit frames as usual in the clockwise direction (CW). On the other hand, in the counter-clockwise direction (CW), communication device 10A can receive path search frames (RSF) transmitted from communication devices 10E to 10H, but cannot receive path search frames (RSF) transmitted from communication devices 10B to 10D.

[0147] Furthermore, communication device 10A updates the path information table RI based on the reception status of path information tables RI from other communication devices 10. An example of the structure of the path information table RI in the second example is shown in... Figure 15 .like Figure 15 As shown, in this example, in the clockwise direction (CW), the MAC addresses of the ETH (Ethernet Array) on the transmitting and receiving sides of all communication devices 10B-10H (excluding itself) are recorded as transmittable. Additionally, in the counter-clockwise direction (CCW), the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10H-10E are recorded as transmittable. In the counter-clockwise direction (CCW), the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10B-10D are recorded as non-transmittable.

[0148] Based on the updated path information table RI, communication device 10A can infer that a fault occurred only in the counterclockwise direction CCW between communication devices 10E and 10D.

[0149] Furthermore, the communication device 10A can determine the optimal transmission path for a frame based on the updated path information table RI. For example, when traffic to the communication device 10D is generated, the communication device 10A determines the transmission path for the frame to the communication device 10D through the transmission path determination operation described in the first embodiment. Then, if the determined transmission path includes a detected fault location, the communication device 10A considers the fault location and changes the transmission path to a clockwise direction CW.

[0150] (Example 3)

[0151] Figure 16 This is a schematic diagram illustrating a third example of an anomaly occurring in the ring network 1 according to the second embodiment. This third example corresponds to a situation where frames cannot be transmitted between Ethernet interfaces ETH0 and ETH1 within a communication device 10 (i.e., bridging transmission cannot be performed within the communication device 10). Figure 16 The example illustrates a scenario where a fault occurs between ETH0 and ETH1 within communication device 10D. However, this example assumes that data transmission can proceed normally between each Ethernet interface ETH and the host device 20 within communication device 10D. Hereinafter, communication device 10A will be defined... Figure 16 The method for identifying the location of the abnormality will be explained.

[0152] In the event of a fault between ETH0 and ETH1 within communication device 10D, in the clockwise direction (CW), communication device 10A can receive path search frames (RSF) transmitted from communication devices 10D to 10H, but cannot receive path search frames (RSF) transmitted from communication devices 10B and 10C. Conversely, in the counter-clockwise direction (CW), communication device 10A can receive path search frames (RSF) transmitted from communication devices 10B to 10D, but cannot receive path search frames (RSF) transmitted from communication devices 10E to 10H.

[0153] Furthermore, communication device 10A updates the path information table RI based on the reception status of path information tables RI from other communication devices 10. An example of the structure of the path information table RI in the third example is shown in... Figure 17 .like Figure 17As shown, in this example, in the clockwise direction (CW), the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10B and 10C, and the MAC address of the ETH on the receiving side of communication device 10D, are recorded as "transferable". In the clockwise direction (CW), the MAC addresses of the ETH on the transmitting side of communication device 10D, and the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10E to 10H, are recorded as "non-transferable". Furthermore, in the counter-clockwise direction (CCW), the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10H to 10E, and the MAC address of the ETH on the receiving side of communication device 10D, are recorded as "transferable". In the counter-clockwise direction (CCW), the MAC addresses of the ETH on the transmitting side of communication device 10D, and the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10B and 10C, are recorded as "non-transferable".

[0154] Based on the updated path information table RI, communication device 10A can infer that a fault has occurred between communication devices 10D and 10E in the clockwise direction (CW), and can infer that a fault has occurred between communication devices 10E and 10D in the counterclockwise direction (CCW). Furthermore, communication device 10A can receive path search frames (RSF) sent bidirectionally from communication device 10D; therefore, it can also infer that communication devices 10C and 10D, and communication devices 10D and 10E, are normally connected. Based on the above, communication device 10A can infer that the bridging transmission between Ethernet interfaces ETH0 and ETH1 in communication device 10D is not performing correctly.

[0155] Furthermore, communication device 10A can determine the optimal transmission path for frames based on the updated path information table RI. For example, if traffic to communication device 10D occurs, communication device 10A does not need to consider the fault in the frame transmission of communication device 10D. Therefore, it determines the transmission path for frames to communication device 10D through the transmission path determination operation described in the first embodiment. On the other hand, communication device 10A first determines the transmission path for frames to other communication devices that have not experienced a fault through the transmission path determination operation described in the first embodiment. Then, if the determined transmission path includes the fault location (communication device 10D), communication device 10A changes to a transmission path that does not include the fault location to transmit the frame.

[0156] (Case 4)

[0157] Figure 18 This is a schematic diagram illustrating the fourth example of an anomaly occurring in the ring network 1 according to the second embodiment. The fourth example corresponds to a situation where the internal operation of a communication device 10 malfunctions. Figure 18The example illustrates a situation where the internal operation of communication device 10D malfunctions. However, in this example, it is assumed that each Ethernet interface ETH of communication device 10D is normally connected to the Ethernet interface ETH of the adjacent communication device 10. Hereinafter, communication device 10A will be determined... Figure 18 The method for identifying the location of the abnormality will be explained.

[0158] If the internal operation of communication device 10D malfunctions, in the clockwise direction (CW), communication device 10A can receive path search frames (RSF) sent from communication devices 10E to 10H, but cannot receive path search frames (RSF) sent from communication devices 10B to 10D. Conversely, in the counter-clockwise direction (CW), communication device 10A can receive path search frames (RSF) sent from communication devices 10B and 10C, but cannot receive path search frames (RSF) sent from communication devices 10D to 10H.

[0159] Furthermore, communication device 10A updates the path information table RI based on the reception status of path information tables RI from other communication devices 10. An example of the structure of the path information table RI in Example 4 is shown in... Figure 19 .like Figure 19 As shown, in this example, in the clockwise direction (CW), the MAC addresses of the ETH (Ethernet) on the transmitting and receiving sides of communication devices 10B and 10C are recorded as "transferable". Additionally, in the clockwise direction (CW), the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10D to 10H are recorded as "non-transferable". Furthermore, in the counter-clockwise direction (CCW), the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10H to 10E are recorded as "transferable". Additionally, in the counter-clockwise direction (CCW), the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10B to 10D are recorded as "non-transferable".

[0160] Based on the updated path information table RI, communication device 10A can infer that a fault has occurred between communication devices 10C and 10D in the clockwise direction (CW), and can infer that a fault has occurred between communication devices 10E and 10D in the counterclockwise direction (CCW). Furthermore, communication device 10A cannot receive the path search frame RSF sent bidirectionally from communication device 10D; therefore, it can infer that frames cannot be transmitted between communication devices 10C and 10E, which include communication device 10D. In other words, communication device 10A can infer that it cannot transmit frames bidirectionally when transmitting frames to communication device 10D.

[0161] Furthermore, the communication device 10A can determine the optimal transmission path for a frame based on the updated path information table RI. For example, in the case of traffic to a location other than the communication device 10D, the communication device 10A first determines the transmission path of the frame through the transmission path determination operation described in the first embodiment. Then, if the determined transmission path includes the detected fault location (communication device 10D), the communication device 10A changes to a transmission path that does not include the fault location to transmit the frame.

[0162] (Example 5)

[0163] Figure 20 This is a schematic diagram illustrating the fifth example of an anomaly occurring in the ring network 1 according to the second embodiment. The fifth example corresponds to a case where a frame transmission delay occurs in a certain path on the ring network 1. Figure 20 The example illustrates a case where the bridging transmission between Ethernet interfaces ETH0 and ETH1 of communication device 10F takes longer than usual. However, in this example, it is assumed that the path search frame RSF sent from communication device 10A is received by communication device 10A in a manner that satisfies equation (1). Hereinafter, communication device 10A is determined... Figure 20 The method for identifying the location of the abnormality will be explained.

[0164] In this example, communication device 10A can receive path search frames RSF from all communication devices 10 except itself in the clockwise direction CW and the counterclockwise direction CCW, in a manner that satisfies equation (1). On the other hand, communication device 10A receives path search frames RSF transmitted from communication devices 10B to 10E in the clockwise direction CW and from communication devices 10G and 10H in the counterclockwise direction CW, respectively, while satisfying equation (4).

[0165] Furthermore, communication device 10A updates the path information table RI based on the reception status of path information tables RI from other communication devices 10. An example of the structure of the path information table RI in Example 5 is shown in... Figure 21 .like Figure 21As shown, in this example, in the clockwise direction (CW), the MAC addresses of the ETH (Ethernet) on the transmitting and receiving sides of communication devices 10B-10E, and the MAC address of the ETH on the receiving side of communication device 10F, are recorded as transmittable. In the clockwise direction (CW), the MAC addresses of the ETH on the transmitting side of communication device 10F, and the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10G and 10H, are recorded as transmittable. Additionally, in the counter-clockwise direction (CCW), the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10H and 10G, and the MAC address of the ETH on the receiving side of communication device 10F, are recorded as transmittable. In the counter-clockwise direction (CCW), the MAC addresses of the ETH on the transmitting side of communication device 10F, and the MAC addresses of the ETH on the transmitting and receiving sides of communication devices 10F-10B, are recorded as transmittable.

[0166] Based on the updated path information table RI, communication device 10A can infer that a larger-than-normal delay occurs in the transmission of frames between communication devices 10E and 10F in the clockwise direction (CW), and in the transmission of frames between communication devices 10G and 10F in the counter-clockwise direction (CCW). Furthermore, since communication device 10A can receive path search frames RSF transmitted bidirectionally from communication device 10F as usual, it can infer that a larger-than-normal delay occurs in the bridging transmission between Ethernet interfaces ETH0 and ETH1 of communication device 10F.

[0167] Furthermore, communication device 10A can determine the optimal transmission path for a frame based on the updated path information table RI. Specifically, when communication device 10A includes communication device 10 on the ring network 1 where a delay has occurred, it performs a transmission path determination operation that takes the delay into account. For example, when traffic to communication device 10D is generated, communication device 10A first compares the bidirectional transmission time to communication device 10D as in the transmission path determination operation of the first embodiment. Here, when the counterclockwise direction CCW is selected, the transmission path from communication device 10A to communication device 10D includes communication device 10F. In this case, communication device 10A also considers the delay generated in communication device 10F when determining the transmission path. The delay time generated in communication device 10F is Delay. F、dir It is represented by the following equation (7).

[0168]

[0169] As shown by equation (7), the delay time Delay generated by the communication device 10F in the counterclockwise direction CCW is... F、CCWThe transmission path can be calculated based on the time from the path search frame RSF sent in the counter-clockwise CCW to the communication device 10A, which is adjacent to the ETH on the receiving side of the communication device 10F. Furthermore, the communication device 10A adds the calculated delay time to the transmission time to the communication device 10D in the counter-clockwise CCW and compares the transmission time to the communication device 10D in both directions. The communication device 10A then determines the frame transmission path in the direction with the shorter transmission time. In this way, the communication device 10A can determine the optimal transmission path for a frame even when a frame transmission delay occurs in a certain path on the ring network 1.

[0170] Furthermore, the delay time of any communication device 10i other than communication device 10F can be calculated using the same method as in equation (7). In this case, in equation (7), the portion corresponding to communication device 10G is replaced with the value of the communication device 10 adjacent to the receiving side ETH of communication device 10i in both directions. In the fifth example, each communication device 10 considers the delay time in the case of communication device 10 that has caused the delay, and the transmission path of the frame can be determined in the direction with the shorter transmission time.

[0171] <2-3> Effects of the second implementation method

[0172] The effects of the ring network 1 according to the second embodiment will be explained below.

[0173] In the event of a fault in an Ethernet communication path, including a ring network, multiple communication paths can be selected using protocols such as RSTP (Rapid Spanning Tree Protocol). However, RSTP does not consider transmission time between communication paths, making it difficult to select paths that take into account factors such as transmission efficiency between communication paths and localized faults caused by abnormal transmission delays. Furthermore, in the case of a localized fault, bypassing the fault location to transmit frames can be considered. However, such bypassing is performed near the fault location, which may result in the selection of a communication path requiring a longer transmission time than usual.

[0174] Therefore, the ring network 1 according to the second embodiment determines the presence and location of anomalies (faults or delays) on the communication path based on the result of circling the path search frame RSF on the ring network 1. Furthermore, in the second embodiment, the transmission path determination operation described in the first embodiment is also utilized to determine the transmission direction of the frame based on the presence or absence of faults on the communication path.

[0175] Therefore, in the second embodiment, each communication device 10 can select the optimal communication path that avoids the fault location. That is, in the second embodiment, even if an anomaly occurs on the ring network 1, each communication device 10 can select the path with shorter transmission time to transmit the frame to any communication device 10. Therefore, the ring network 1 according to the second embodiment can achieve communication that is as efficient as that in the first embodiment and more stable than that in the first embodiment.

[0176] <3> Third Implementation Method

[0177] The third embodiment relates to a specific example of a vehicle-mounted version of the ring network 1 described in the first and second embodiments. The third embodiment will be described in detail below.

[0178] <3-1> Structure

[0179] Figure 22 This is a schematic diagram illustrating an example of the structure of the ring network 1 according to the third embodiment. Figure 22 As shown, the ring network 1 is mounted on vehicle 2. Figure 22 The top of the paper corresponds to the front of the vehicle body of vehicle 2. Vehicle 2 is equipped with communication devices 10A to 10H in the same manner as in the first and second embodiments.

[0180] In the third embodiment, communication device 10A is disposed on the front right side of vehicle 2, functioning as a front monitoring unit and a telematics unit. The front monitoring unit is, for example, a camera capable of capturing images of the front of the vehicle. The telematics unit is a communication module (e.g., GPS) capable of communicating with external devices. Communication device 10B is disposed on the right side of vehicle 2, functioning as a side monitoring unit. The side monitoring unit of communication device 10B is, for example, a camera capable of capturing images of the right side of the vehicle. Communication device 10C is disposed on the rear right side of vehicle 2, functioning as a rear monitoring unit. The rear monitoring unit is, for example, a camera capable of capturing images of the rear of the vehicle. Communication device 10D is disposed on the rear center of vehicle 2, functioning as a first central processing unit. The first central processing unit is, for example, a first computer used for controlling vehicle 2. Communication device 10E is disposed on the rear left side of vehicle 2, functioning as a rear monitoring unit. Communication device 10F is disposed on the left side of vehicle 2, functioning as a side monitoring unit. The side monitoring unit of communication device 10F is, for example, a camera capable of capturing images of the left side of the vehicle body. Communication device 10G is positioned on the front left side of vehicle 2 and functions as a front monitoring unit and navigation unit. The navigation unit is, for example, a vehicle navigation system that guides the driver's direction of travel based on the vehicle 2's position and destination. Communication device 10H is positioned on the front center of vehicle 2 and functions as a second central processing unit. The second central processing unit is, for example, a first computer used in the control of vehicle 2.

[0181] In the ring network 1 according to the third embodiment, the GCL, which is common to all communication devices 10, is configured with time slots for high-priority frames (HPF), medium-priority frames (MPF), low-priority frames (LPF), and path search frames (RSF), similar to the first embodiment. In vehicle 2, the high-priority frame (HPF) is used, for example, in communication with the ECU (Engine Control Unit). In vehicle 2, the medium-priority frame (MPF) is used, for example, in communication of control signals for doors, etc. In vehicle 2, the low-priority frame (LPF) is used, for example, in internet access. In vehicle 2, the path search frame (RSF) is used to perform the path information collection operation and the path decision transmission operation described in the first and second embodiments.

[0182] Furthermore, the structure of the ring network 1 described above is merely one example. The functions allocated to each communication device 10 in the case of the ring network 1 in vehicle 2 can also be configured in other ways.

[0183] <3-2> Effects of the third implementation method

[0184] As explained above, in the third embodiment, the ring network 1 described in the first and second embodiments is utilized in the vehicular communication network system conforming to TSN. Therefore, the vehicle 2 according to the third embodiment enables more efficient and stable communication between the various communication devices 10. Consequently, the vehicle 2 according to the third embodiment improves the vehicle's safety performance.

[0185] <4> Others

[0186] In ring network 1, the CPU 21 of the host device 20 and the CPU 31 of the communication IC 30 can each be other circuits. For example, the host device 20 and the communication IC 30 can each have an MPU (Micro Processing Unit) instead of a CPU. The processes described in the embodiments can also be implemented by dedicated hardware. The processes of the host device 20 and the communication IC 30 can be a mixture of software-executed processes and hardware-executed processes, or only one of them.

[0187] In the above embodiments, the flowcharts used in the description of the actions are merely examples. The processing order of the actions described in the embodiments can be changed to the extent possible, and other processes can be added. For example, the flowcharts for the path information collection action and the path determination transmission action described in the first embodiment are merely examples. Furthermore, the Ethernet frame format described in the first embodiment is merely an example. As long as the ring network 1 can perform the actions described in the embodiments, other formats can be applied to the path search frame RSF. In the above embodiments, the ring network 1 may include 3 or more communication devices 10.

[0188] In this specification, "clockwise CW" corresponds to the direction in which frames are transmitted from one adjacent communication device 10 in a ring-shaped network 1 to another, and the frames circulate within the ring network 1. "Counterclockwise CCW" corresponds to the direction in which frames are transmitted from one adjacent communication device 10 in a ring-shaped network 1 to another, and the frames circulate within the ring network 1. In this specification, the same definition applies to the transmission direction of the communication devices 10 in the ring network 1 across the multiple communication devices 10. In this specification, "approximately simultaneous" means that the time difference is less than a predetermined time. For example, the timing of the transmission of path search frames RSF based on Ethernet interfaces ETH0 and ETH1 is approximately simultaneous, meaning that the difference between the transmission time of the RSF based on ETH0 and the transmission time of the RSF based on ETH1 is less than a predetermined time. In this specification, this predetermined time is at least less than the length of the time slot allocated by the GCL to the path search frame RSF.

[0189] Several embodiments of the present invention have been described above, but these embodiments are merely illustrative and not intended to limit the scope of the invention. These new embodiments can be implemented in a wide variety of other ways, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and / or variations thereof are included within the scope and spirit of the invention, and are included within the scope of the invention as described in the claims and its equivalents.

Claims

1. A ring network comprising multiple communication devices, Each of the plurality of communication devices has a first Ethernet interface connected to a communication device adjacent on one side, a second Ethernet interface connected to a communication device adjacent on the other side, and a host device. The host device is capable of using the first Ethernet interface and the second Ethernet interface to send and receive data with other communication devices on the ring network. The plurality of communication devices includes a first communication device, which transmits a first frame clockwise from its own second Ethernet interface and a second frame counterclockwise from its own first Ethernet interface during a first period. The plurality of communication devices includes a second communication device. The second communication device, Upon receiving the first frame generated by the first communication device, the device appends its own MAC address of its first Ethernet interface, the receiving timestamp of the first frame, its own MAC address of its second Ethernet interface, and the sending timestamp of the first frame to the payload of the first frame, and then transmits the first frame to the communication device adjacent in the clockwise direction. Upon receiving the second frame generated by the first communication device, the MAC address of its own second Ethernet interface, the receiving timestamp of the second frame, the MAC address of its own first Ethernet interface, and the sending timestamp of the second frame are appended to the payload of the second frame, and the second frame is sent to the communication device adjacent in the counterclockwise direction.

2. The ring network according to claim 1, The timing of the transmission of the first frame and the second frame by the first communication device is approximately simultaneous.

3. The ring network according to claim 1, The first frame and the second frame have the same Ethernet type.

4. The ring network according to claim 1, The first communication device stores a path information table, which records information related to frame transmission in the clockwise direction to the plurality of communication devices other than itself, and information related to frame transmission in the counterclockwise direction to the plurality of communication devices other than itself. In the first communication device, the host device updates the path information table based on the information contained in the payload of the first frame received by the first Ethernet interface and the information contained in the payload of the second frame received by the second Ethernet interface.

5. The ring network according to claim 4, The first communication device, Based on the difference between the timestamp of the second communication device's reception in the clockwise direction and the time when its second Ethernet interface transmitted the first frame, the transmission time of the frame in the clockwise direction to the second communication device is calculated, and the calculated result is recorded in the path information table. Based on the difference between the timestamp of the second communication device's reception in the counter-clockwise direction and the time when the second frame was sent by its own first Ethernet interface, the transmission time of the frame in the counter-clockwise direction to the second communication device is calculated, and the calculated result is recorded in the path information table.

6. The ring network according to claim 5, When the first communication device generates a communication to the second communication device, it determines the transmission path of the communication based on the path information table, choosing the direction with the shorter transmission time to the second communication device, either clockwise or counterclockwise.

7. The ring network according to claim 5, The first communication device records in the path information table a number of hops based on the number of Ethernet interfaces traversed until reaching the second communication device, in association with the MAC addresses of the first and second Ethernet interfaces of the second communication device.

8. The ring network according to claim 7, When the first communication device generates a communication to the second communication device and the transmission times for the clockwise and counterclockwise directions recorded in the path information table are the same, it determines the transmission path of the communication in the direction with fewer jumps between the clockwise and counterclockwise directions.

9. The ring network according to claim 7, When the first communication device generates a communication to the second communication device, the transmission times for the clockwise and counterclockwise directions recorded in the path information table are the same, and the number of jumps for the clockwise and counterclockwise directions is the same, the first communication device determines the transmission path of the communication in the clockwise direction.

10. The ring network according to claim 1, The first communication device detects whether a fault has occurred on the network based on whether it can receive each frame of the first frame and the second frame within a timeout period starting from the transmission of each frame of the first frame and the second frame.

11. The ring network according to claim 1, The plurality of communication devices each have the opportunity to transmit, from their own second Ethernet interface in the clockwise direction, the first frame which designates their own first Ethernet interface as the destination, and from their own first Ethernet interface in the counterclockwise direction, the second frame which designates their own second Ethernet interface as the destination. The first communication device determines the location of the fault on the network based on the reception status of the first frame and the second frame generated by other communication devices.

12. The ring network according to claim 11, The plurality of communication devices includes a second communication device. When the first communication device generates a communication to the second communication device, it determines the transmission path of the communication in the direction that does not contain faults in the communication path between the first communication device and the second communication device, either clockwise or counterclockwise.

13. The ring network according to claim 11, The first communication device stores a path information table, which records information related to frame transmission in the clockwise direction to the plurality of communication devices other than itself, and information related to frame transmission in the counterclockwise direction to the plurality of communication devices other than itself. In the first communication device, the host device updates the path information table based on the information contained in the payload of the first frame received by the first Ethernet interface and the information contained in the payload of the second frame received by the second Ethernet interface.

14. The ring network according to claim 13, Based on the reception status of the first frame and the second frame from other communication devices, the first communication device records at least one of the following information in the path information table: whether the frame can be transmitted and information related to the frame delay, corresponding to the clockwise direction and the counterclockwise direction, respectively.

15. The ring network according to claim 14, The plurality of communication devices includes a second communication device. When the first communication device generates a communication to the second communication device, it determines either the clockwise or counterclockwise direction as the transmission direction of the communication based on the path information table. If the determined transmission direction contains a fault, it changes the transmission direction to a direction that does not contain a fault or a direction with a shorter transmission time.

16. The ring network according to claim 1, Each of the plurality of communication devices discards a received frame if it is received by the other of the first and second Ethernet interfaces if the frame is identical to a frame sent from one of the first and second Ethernet interfaces.

17. The ring network according to claim 16, When the host device of the first communication device receives the first frame and the second frame generated by itself, it obtains information related to communication devices other than itself from the first frame and the second frame.

18. The ring network according to claim 1, The multiple communication devices share a periodic transmission schedule. The transmission schedule includes the first period and the third period, the third period being allocated to communication of frames other than the first frame and the second frame.

19. The ring network according to claim 1, The multiple communication devices are mounted on the vehicle. The host device of each of the plurality of communication devices is used for the control of the vehicle.

Citation Information

Patent Citations

  • Path delay determination in ring networks

    EP3070886A1

  • Communication system, communication apparatus, communication method, and program

    US20210314186A1

  • Data transmission method, device, and system

    US20220294663A1