WO2020150872A1 - Ethernet and controller area network protocol interconversion for in-vehicle networks - Google Patents

Ethernet and controller area network protocol interconversion for in-vehicle networks Download PDF

Info

Publication number
WO2020150872A1
WO2020150872A1 PCT/CN2019/072577 CN2019072577W WO2020150872A1 WO 2020150872 A1 WO2020150872 A1 WO 2020150872A1 CN 2019072577 W CN2019072577 W CN 2019072577W WO 2020150872 A1 WO2020150872 A1 WO 2020150872A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
ingress
egress
ethernet
ethernet frame
Prior art date
Application number
PCT/CN2019/072577
Other languages
French (fr)
Inventor
Hsiao-Ying Lin
Mingming Zhang
Yadong Wei
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Priority to CN201980089475.3A priority Critical patent/CN113302885A/en
Priority to PCT/CN2019/072577 priority patent/WO2020150872A1/en
Publication of WO2020150872A1 publication Critical patent/WO2020150872A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • H04L12/40182Flexible bus arrangements involving redundancy by using a plurality of communication lines

Definitions

  • the present disclosure relates to communication protocols, and in particular to the conversion between different communication protocols, such as those used in networks inside automobiles.
  • the present disclosure relates to OSI layer 2 conversion to/from Controller Area Network (abbreviated to CAN) frames and Ethernet frames, wherein priority of transmission information from an ingress (source) frame is expressed in the egress (output) frame after conversion.
  • the present disclosure further relates to switching and access control of ingress frames based on information in the ingress frame.
  • CAN network is a major in-vehicle network currently because of its simplicity, for communication with controllers in vehicles.
  • Automotive Ethernet network Due to high bandwidth requirements triggered by new applications, such as Advanced Driving Assistant Systems (abbreviated to ADAS) or high resolution navigation systems, Automotive Ethernet network is becoming more popular for in-vehicle networks. Automotive Ethernet may be defined with reference to sets of IEEE standards as discussed below.
  • ADAS Advanced Driving Assistant Systems
  • Automotive Ethernet may be defined with reference to sets of IEEE standards as discussed below.
  • FIG. 1 shows an example of the co-existence of CAN and Automotive Ethernet in a deployment scenario, such as an in-vehicle network, where CAN networks handles core vehicle functions, and automotive Ethernet supports external connectivity and advanced applications such as On-Board Diagnostics II (OBDI II) , Advanced Driving Assistant Systems (ADAS) , and Human Machine Interface (HMI) .
  • OBDI II On-Board Diagnostics II
  • ADAS Advanced Driving Assistant Systems
  • HMI Human Machine Interface
  • CAN is the main fieldbus for in-vehicle communications.
  • CAN protocol ISO 11898
  • the CAN frame format at the data link layer is shown in Figure 2.
  • the CAN frame format at data link layer has a start of frame (SOF) , an Identifier, a remote transmission request (RTR) code, control area, data area (i.e. payload) , cyclic redundancy check (CRC) , response (ACK) and the end of frame (EOF) .
  • SOF start of frame
  • RTR remote transmission request
  • CRC cyclic redundancy check
  • ACK end of frame
  • EEF end of frame
  • the CAN identifier (CAN ID) has two formats, 11 bits and 29 bits, and the data area is up to 8 bytes in the CAN standard.
  • Carmakers such as Audi or Toyota, define CAN identifiers. For example, they can define CAN identifier 0x010 for CAN frames of engine system. They also define how they interpret the data area. For example, the first byte of the data area means the current speed of CAN frames with identifier 0x010. The switch gateway needs to know at least those CAN IDs it handles. The manufacturers also define how they interpret the data area. For example, the first byte of the data area means the current speed of CAN frames with identifier 0x010.
  • the sender sends a CAN message
  • the receiver on the bus selects the CAN message to be received according to the CAN identifier.
  • the message corresponding to one CAN identifier may have more than two receivers.
  • the CAN ID determines the priority on CAN network. For instance, when the identifier value is 0, the CAN frame has the highest priority.
  • CAN ID 0x000 is smaller than CAN ID 0x001.
  • the transmission priority is guaranteed by hardware arbitrator.
  • CAN identifiers can be seen as priority tags in CAN frames.
  • Automotive Ethernet is different from legacy Ethernet. It aims at providing more accurate time synchronization and better quality of network service, such as guaranteed maximal latency and jitter. For a specified set of data streams, network resources can also be reserved in advance to ensure transmission quality.
  • IEEE provides an additional set of standards to form Automotive Ethernet, the so-called Audio/Video Bridging (AVB) .
  • a newer version is called AVB generation 2 or Time-Sensitive Networks (TSN) .
  • TSN Time-Sensitive Networks Table 1 below shows a comparison of legacy Ethernet and Automotive Ethernet mapped to layers of the OSI model.
  • IEEE 802.1Qat defines stream reservation protocol (SRP) . It classifies traffic into SR-Class A and SR-Class B. For up to 7 hops, traffic of SR-Class A is guaranteed to have at most 2ms latency while traffic of SR-Class B is guaranteed to have at most 50ms latency. IEEE 802.1Qat also identifies traffic by the stream ID. Traffic of a stream ID can be assigned with reserved network resources, such as reserved bandwidth of a whole transmission path, to guarantee the quality of network services, including low latency and jitter. IEEE 802.1Qav defines scheduling algorithms for legacy Ethernet and automotive Ethernet traffic, respectively.
  • SRP stream reservation protocol
  • Figure 3 shows the format of automotive Ethernet frame, where b stands for bit and B stands for byte.
  • the 3 bit User Priority in the Virtual Local Area Network (VLAN) tag gives 8 different values for priority in Ethernet networks. With a higher value in user priority, the frame has higher priority being sent in the network.
  • Automotive Ethernet can use two out of eight priority values, thus giving two possible priority levels. Others are reserved for legacy Ethernet, thus providing for at least six priority levels and possibly eight i.e. 0, 1, 2, 3, ..., 7.
  • User priority 0 is smaller than user priority 1 and so on.
  • Some existing conventional methods focus on conversion between legacy Ethernet and CAN. They use CAN over Ethernet for protocol conversion as shown in Figure 5.
  • CAN frames When converting CAN frames to Ethernet, one or more CAN frames are encapsulated into the payload part of Ethernet frame. Aggregating multiple CAN frames into one Ethernet frame can further decrease the transmission bandwidth overhead.
  • Ethernet frames to CAN frames the corresponding de-capsulation is performed.
  • Another existing conventional method provides for conversion between automotive Ethernet and CAN which is performed in application layer and one CAN frame maps to one Ethernet frame. Hence the latency introduced at the gateway switch is high and command options concerning transmission of the converted frame are limited.
  • Yet another existing conventional method provides for CAN-to-AVB protocol conversion.
  • a fixed number of CAN frames are aggregated into one Ethernet frame.
  • this conventional solution only the scheduling issue to lower the latency introduced by the conversion is addressed.
  • Ethernet has much higher bandwidth (e.g. at least 100M bps) than CAN buses (500K bps commonly in use) .
  • CAN buses 500K bps commonly in use
  • embodiments of the present disclosure thus provide methods, apparatus, and computer programs for protocol conversion in one or both directions between CAN frames and Ethernet frames.
  • Embodiments of the present disclosure further provide methods of switching of an egress frame, which is converted from an ingress frame, to defined ports, and also provide methods of access control on ingress frames. The methods are performed at the data link layer.
  • the present disclosure provides a method of protocol conversion, for vehicles, comprising
  • CAN Controller Area Networks
  • transmission priority is performed in a CAN network according to a value of the CAN identifier.
  • the frame bearing the lowest value of CAN identifier results in that frame being preferentially transmitted on that CAN bus when there are two or more frames on that CAN bus at the same time.
  • Transmission priority in Ethernet frames may be expressed by a value of the VLAN tag field. Comparatively higher values of the VLAN tag field result in the frame with the higher value of VLAN tag, compared to other Ethernet frames, being preferentially transmitted in the Ethernet network.
  • the protocol conversion may be performed by a gateway entity or function, which operates at the data link layer (OSI layer 2) and preferably no higher layers.
  • the gateway may have sub-modules which perform the functions such as conversion e.g. a secure mapping controller.
  • the gateway may be provided in hardware or software, and may comprise a logical entity.
  • the gateway may be disposed in a network, such as in a vehicle network, where there is co-existence of an Ethernet network and a CAN network which are interconnected.
  • the gateway may also be a switch, which performs access control and/or interface or port switching functions between the networks based on preconfigured information and parsing at layer 2 of the ingress frame.
  • the term gateway and switch may be used interchangeably or refer to their combination herein when referring to general functions.
  • the Ethernet network may comprise legacy Ethernet, and/or Automotive Ethernet.
  • Legacy Ethernet is Ethernet which is not Automotive Ethernet.
  • the VLAN tag When comprising legacy Ethernet, the VLAN tag, which is optional in legacy Ethernet, is present. Thus providing transmission priority information.
  • the CAN network may handle core vehicle functions, such as Vehicle Controller Unt, Body Controller, Battery Management Unit, Battery Controller Unit.
  • vehicle functions such as Vehicle Controller Unt, Body Controller, Battery Management Unit, Battery Controller Unit.
  • Automotive Ethernet network may provide external connectivity and advanced applications such as Human Machine Interface (HMI) and Advanced Driving Assistant Systems (ADAS) .
  • HMI Human Machine Interface
  • ADAS Advanced Driving Assistant Systems
  • the gateway or switch may have one ingress/egress Ethernet port, and one ingress/egress CAN port. Preferably, there are two ingress/egress CAN ports on the switch. Each CAN port may connect to a different CAN bus for different controllers.
  • the gateway or switch may have input and output buffers connected to each port.
  • the gateway or switch may obtain an ingress CAN frame by receiving the CAN frame at an ingress CAN port. By converting at the data link layer, the gateway or switch may only parse the frame at the data link layer or below layers.
  • CAN transceivers /controllers may support CAN2.0A and B standards, and Ethernet transceivers may support both legacy and automotive Ethernet.
  • the gateway or switch may be pre-configured with information about all possible values of CAN identifier or ways of identifying, classifying or grouping CAN identifiers.
  • the switch may output the egress Ethernet frame on a specified egress Ethernet port.
  • CAN transceivers support CAN2.0A and B standards and Ethernet transceivers support both legacy and automotive Ethernet.
  • the switch or gateway may perform functions of transmitting, parsing, assembling, as known to the skilled person on the frames.
  • the converting comprises
  • the mapping may be according to preconfiguration at the gateway or switch, such as provided by a table, rules or logic.
  • mapping may be performed in various ways. This is possible provided that entities on the target network are aware of the manner of mapping and so can parse the resulting expression of transmission priority.
  • the converting comprises mapping the value of the CAN identifier into a value of the User Priority field of the VLAN tag field.
  • the value of the CAN identifier is mapped to the VLAN tag field only, taking account of the priority levels available in the type of Ethernet frame.
  • a value of the VLAN tag may be mapped to the CAN ID in the reverse conversion direction.
  • the converting comprises mapping a smaller value of the CAN identifier to a larger value of the User Priority field.
  • mapping of the value of the CAN ID to expression in Ethernet frame header may be many to few or one.
  • mapping relationship may be few or one to many.
  • mapping to the User Priority field at most 8 possible values priority can be expressed.
  • mapping all possible values of CAN identifier are divided into two sub groups, and each sub-group is mapped respectively to a different value of the User Priority field.
  • mapping all possible values of CAN identifier are divided into eight sub groups, and each sub-group is mapped respectively to a different value of the User Priority field.
  • the method further comprises
  • the obtaining an ingress CAN frame comprises obtaining first and second ingress CAN frames, each comprising a first and second CAN frame header, wherein the first and second frame headers are the same, the method comprises:
  • the obtaining an ingress CAN frame comprises obtaining first and second ingress CAN frames, each comprising a first and second CAN identifier respectively having corresponding respective first and second values of the first and second CAN identifiers, wherein the first and second values both map to a same value of a User Priority field, the method comprises:
  • the conversion from CAN to Ethernet may be performed in various ways: 1) One CAN frame is encapsulated in one Ethernet frame. 2) Several CAN frames are encapsulated in one Ethernet frames. 3) Several CAN frames with a common header are decomposed and aggregated in one Ethernet frames. A metadata is embedded in the egress Ethernet frame in order to let the gateway switch differentiate different encapsulations.
  • ingress CAN frames can be aggregated in one egress Ethernet frame. This is more efficient. Further efficiencies arise if only the Data is kept. Further, ingress CAN frames which have similar levels of transmission priority importance can be transmitted together thus improving priority receipt in the Ethernet network.
  • each CAN ID is extracted and preserved. Further, the priority information expressed by the CAN IDs is preserved by mapping the CAN IDs to the User priority (and optionally other fields) . Thus all information is kept.
  • information about the ingress CAN frame into metadata in the egress Ethernet frame comprises information about one or each of the ingress CAN frames
  • the metadata comprises one or more of:
  • the manner refers to whether the CAN frame is encapsulated or the relevant field thereof e.g. payload Data is encapsulated only.
  • the timestamp is for marking the time of the generation of this Ethernet frame. It will give extra information, other than that in the embedded CAN frames.
  • the meta data may be embedded in payload of the Ethernet frame.
  • the ingress or egress Ethernet frame comprises a legacy Ethernet frame having a VLAN tag or an Automotive Ethernet frame.
  • Automotive Ethernet may be defined to mean the set of standards for AVB and legacy Ethernet above network layer 2 (data link layer) , plus optionally the special physical layer (100BASE-T1, IEEE 802.3bw) .
  • the method further comprises
  • the user priority value may determine the priority, and/or may determine the manner of broadcast on which egress CAN ports.
  • Conversion may be performed in both ways. For example, a diagnostic routine may result in ingress Ethernet frame comprising CAN frames which are converted and switched to the target buses. Returning CAN frame (s) containing report information from the controllers on the CAN network may be converted into Ethernet frame (s) .
  • the said more data link layer fields of the ingress Ethernet frame comprise Destination Address field, Source Address field, VLAN tag field, Ether-type field and fields of the IEEE 1722 data stream.
  • the Destination Address field and Source Address field contain MAC addresses.
  • the fields of the VLAN tag field comprise Tag Protocol ID, User Priority, Canonical Format Indicator, VLAN ID, and /or fields of the IEEE 1722 data stream comprise Header, Stream ID, Timestamp, Gateway Information and Packet Information fields. Some or all or these fields may also be used for switching to egress ports.
  • the converting, at the data link layer, the ingress Ethernet frame into an egress CAN frame comprises
  • the Data is Data which was previously extracted from a CAN frame and stored in the ingress Ethernet frame.
  • the converting at the data link layer comprises converting at the data link layer only. This may refer to without processing at a higher layer in a protocol stack.
  • the method further comprises
  • the switch may perform switching i.e. a transmission manner.
  • the User Priority is the reference field used together other fields such as with one or more MAC fields, Stream ID.
  • Preconfigured rules table or logic and so on may be used to determine the transmission manner.
  • Switching may be performed separately to either of access control and protocol conversion.
  • CAN frames may be represented by only having Data and optionally respective CAN ID in the ingress Ethernet frame.
  • a stream ID may refer to that in AVB.
  • the first or second transmission manners comprise
  • each CAN port is respectively for a different CAN bus.
  • Broadcast or multicast utilizes frame duplication by the switch. Multicast uses three ports. Broadcast or unicast uses at least two ports. Two CAN ports are a common configuration in automotive deployments.
  • the method further comprises
  • the third transmission manner is one of:
  • Ports may be connected to different buses or entities.
  • the method further comprises
  • Access control may employ white and /or black list filtering. If an ingress frame is blocked no further action is taken. Access control may be performed separately to either of switching and protocol conversion.
  • protocol conversion and optionally switching may then be performed.
  • Access control improves the security of the vehicle network to attack. Given that vehicles may be cars, bikes, planes, trains, buses and so on moving at speed in a congested environment, reducing success of malicious attacks is beneficial.
  • the information at the data link layer comprises the CAN identifier of the ingress CAN frame, or frame header information of the ingress Ethernet frame.
  • Frame header information may in particular comprise MAC address information.
  • the present disclosure provides a network gateway, for connection to an ingress/egress Ethernet port and ingress/egress CAN ports in a vehicle, wherein the gateway is configured to perform any method as disclosed herein.
  • the present disclosure provides a processor comprising a computation unit and memory, wherein the memory stores instructions for instructing the computation unit to perform the method as disclosed herein.
  • the present disclosure provides a method for switching to a target CAN bus, one or more CAN frames expressed in an ingress Ethernet frame, for in-vehicle networks, comprising
  • a CAN frame is expressed by being represented either in whole by encapsulation or in part, as disclosed herein. This method may be adapted according to the other methods as disclosed herein, for example to provide conversion whilst maintaining transmission priority, or access control on ingress frames.
  • protocol conversion can be efficiently performed without traversing the whole protocol stack and maintain transmission priority information.
  • Network security of the vehicle is improved, and frames after conversion can be delivered to targeted buses in the target network thus reducing message congestion and resource wastage.
  • FIG. 1a is an illustration of the co-existence of CAN and Automotive Ethernet in a deployment scenario such as an in-vehicle network according to the conventional art.
  • FIG. 1b is an schematic illustration of interconnected CAN and Automotive Ethernet networks in a vehicle according to the conventional art.
  • FIG. 2 is a schematic of CAN frame format at the data link layer.
  • FIG. 3 is a schematic of automotive Ethernet frame at the data link layer.
  • FIG. 4 is a comparison of layers of the OSI model, TCP/IP model and automotive Ethernet.
  • FIG. 5 is a flowchart of an embodiment of the method according to the present disclosure.
  • FIG. 6 is a flowchart of another embodiment of the method according to the present disclosure.
  • FIG. 7a is an illustration of a conversion module for converting between Ethernet and CAN frame format according to an embodiment of the present disclosure.
  • FIG. 7b is an illustration of a gateway switch for converting and switching between Ethernet and CAN frame format according to an embodiment of the present disclosure.
  • FIG. 8 is an exploded schematic of an automotive Ethernet frame at the data link layer illustrating reference fields.
  • FIG. s 9a-c are illustrations of different ways of converting CAN frames to Ethernet frames according to embodiments of the present disclosure.
  • FIG. s 10a-b are illustrations of different ways of performing access control between Ethernet and CAN networks according to embodiments of the present disclosure.
  • FIG. s1-3 are discussed in more detail in the Background section.
  • FIG. 1 shows a conversion device connecting an Automotive Ethernet network 30 and a CAN network 23, 27.
  • the conversion device 10 has functionality according to the conventional art as disclosed herein.
  • FIG 1b illustrates Automotive Ethernet 30 and CAN networks 23, 27 in a vehicle 40 interconnected by a conversion device 10 according to the conventional art.
  • FIG. 2 illustrates a typical CAN frame 50 at the data link layer, comprising various fields including the CAN identifier field 60 and Data field 70.
  • FIG. 3 illustrates the format of automotive Ethernet frame 80.
  • the 3 bit User Priority field 100 in the Virtual Local Area Network (VLAN) tag 90 gives 8 different values for priority in Ethernet networks.
  • the VLAN tag 90 is optional.
  • CAN standards ISO 11898-1 and ISO 11898-2 3 map to the physical and data link layers.
  • 100 BASE-T1 in IEEE 802.3bw-2015 maps to the physical layer.
  • AVB is shown as mapping to several layers. Of particular relevance in the present disclosure are the layers of AVB which map to the data link layer, including IEEE 1722 Layer-2 AVB Transport Protocol, IEEE 802.1AS Precision Time Protocol, IEEE 802.1Qav and IEEE 802.1 Qat.
  • FIG. 5 illustrates actions which may be performed in a first embodiment of the method according to the present disclosure. In this first embodiment, optional actions are illustrated by dotted lines.
  • the method acts upon an ingress CAN frame, and produces an egress Ethernet frame by converting the ingress CAN frame into the egress Ethernet frame.
  • the method of this first embodiment may be adapted to be performed on multiple ingress CAN frames.
  • the ingress CAN frames are represented in the egress Ethernet frame by extracting relevant information such as the CAN ID (which is converted and optionally also kept) and data fields, or extracting and converting the CAN ID and encapsulating each ingress CAN frame..
  • an ingress CAN frame comprising a CAN identifier in a frame header of the ingress CAN frame, where a value of the CAN identifier represents a transmission priority
  • a corresponding CAN identifier in the ingress CAN frame is obtained.
  • step 510 of performing access control for the ingress CAN frame occurs next in the method.
  • the ingress CAN frame may be parsed according to the fields in the CAN header, such as CAN ID, and according to a white list or blacklist. If on the white list, the CAN frame may be converted and /or switched. If on the black list, the CAN frame is not for the target network and is not converted nor switched.
  • the ingress CAN frame is converted into an egress Ethernet frame, based on the value of the CAN identifier such that a transmission priority is expressed in the egress Ethernet frame.
  • the value of the obtained CAN identifier is converted into one or more header fields at the data link layer in the corresponding egress Ethernet frame.
  • the conversion is performed according to a mapping.
  • the CAN identifier value may be mapped to the VLAN tag, and in particular to the User priority field therein.
  • a principle of mapping may be that a lower value of the CAN ID maps to a higher value in the User Priority tag.
  • Many CAN IDs may be mapped to one value of the VLAN tag or User Priority field. For example, one range of CAN IDs maps to one VLAN value, one CAN ID maps to another VLAN value, and another range of CAN IDs maps to another VLAN value. Other permutations and combinations of the mapping are possible.
  • Figures 9a-9c depict three different ways of converting ingress CAN frames.
  • the transmission manner of the converted Ethernet frame is determined 530. This may be according to a mapping, such that certain CAN ID 60 are mapped to certain corresponding egress Ethernet ports.
  • the method may alternatively, or in conjunction for bidirectional conversion, be performed on an ingress Ethernet frame and output one or more egress CAN frames.
  • the ingress Ethernet frame may include representations or encapsulations of one or more CAN frames.
  • the or each CAN frame is generated or de-encapsulated to become egress CAN frame (s) .
  • FIG. 6 illustrates actions which may be performed in a second embodiment of the method according to the present disclosure. In this second embodiment, optional actions are illustrated by dotted lines.
  • the method acts upon an ingress Ethernet frame, and produces an egress CAN frame by converting the ingress Ethernet frame into the egress CAN frame.
  • CAN frames can be represented in the ingress Ethernet frame. For example, there may be two or more CAN frames wholly encapsulated in the ingress Ethernet frame. In another example, only the data fields of several CAN frames may be stored in the ingress Ethernet frame. Optionally, their CAN IDs may also be stored in the ingress Ethernet frame. Otherwise, their CAN ID is expressed in the Ethernet field header as disclosed herein. Optionally, metadata as disclosed herein may be included in the Ethernet frame.
  • the value of the VLAN tag is obtained.
  • the value of the VLAN tag such as the User Priority, may also indicate via a mapping or rules which CAN ports to switch the represented CAN frames to.
  • step of performing access control 610 for the ingress Ethernet frame occurs next in the method of the second embodiment.
  • the ingress Ethernet frame may be parsed according to the fields in the Ethernet header such as VLAN tag and/or source address and/or destination address, according to a white list or blacklist. If on the white list, the Ethernet frame may be converted and /or switched. If on the blacklist, the Ethernet frame is not for the target network and is not converted nor switched. The target network is thus more secure.
  • the ingress Ethernet frame is converted into one or more CAN frames corresponding respectively to the CAN frames represented in the ingress Ethernet frame. This may comprise recreating the CAN frames according to their data and CAN IDs, or decapsulating the CAN frames.
  • the converting may be based on the value of the VLAN tag such that a transmission priority is expressed in the egress CAN frames via the CAN ID of each CAN frame.
  • the conversion is performed according to a mapping.
  • the conversion mapping operations may be the same as those in the first embodiment.
  • the transmission manner of the converted CAN frame (s) is determined 630.
  • the transmission manner of this embodiment may be applied to transmission manners in other embodiments as disclosed herein.
  • the transmission manner may be according to a mapping, such that the represented CAN frames are mapped to certain corresponding egress CAN ports. Mapping rules may be preconfigured.
  • the mapping be according to reference information in the layer 2 header of the ingress Ethernet frame, and also optionally according to information in the represented CAN frames.
  • the reference information may one or more of the fields identified in Figure 8.
  • two fields of the VLAN tag field of the ingress Ethernet frame are used, comprising the VLAN ID and the User Priority tag. For example, when the value of VLAN ID is zero and the User Priority value is zero, then the converted CAN frames are broadcast to all CAN buses.
  • the order of the determining 630 and the converting 620 can be interchanged or occur in parallel.
  • FIG. s 7a and 7b illustrate both ingress and egress frames 190, 210 and the corresponding respective egress frames 190, 210 converted therefrom.
  • the conversion may be in one or both directions.
  • the conversion is performed by a conversion unit such as a CAN –Ethernet gateway switch 110 or a secure mapping controller 120 inside the gateway switch 110.
  • the gateway switch is configured to perform the method of any embodiment as disclosed herein.
  • one Ethernet bus is in communication with the conversion unit via data buffer 130.
  • the conversion unit is in communication via respective buffers 140, 140 to two CAN ingress/egress ports 150, 160 which are for respective different CAN buses.
  • Incoming Ethernet frames can be stored by a buffer 130 in communication with an ingress/egress Ethernet port 170, 180.
  • ingress/egress refers to a port which is bidirectional. In the case of one directional conversion, the port may be unidirectional and is thus ingress or egress only.
  • the Ethernet frames 190 include representations 200 of CAN frames. Two representation manners are shown: in a first manner, one CAN frame is comprised in an Ethernet frame, whereas in a second manner, two or more CAN frames are comprised in the Ethernet frame 190.
  • the conversion unit converts the ingress Ethernet frames into egress CAN frames as disclosed in embodiments herein. Switching between the two buses may also be performed as disclosed herein.
  • the conversion unit converts the ingress CAN frames into an egress Ethernet frame or frames, as disclosed in embodiments herein.
  • two Ethernet buses are in communication with the gateway switch 110 via ports 170, 180 and data buffers 130, 130.
  • the gateway switch is in communication via respective buffers 140, 140 to two CAN ingress/egress ports 150, 160 which are for respective different CAN buses.
  • the secure mapping controller 120 performs conversion and /or switching between the ingress packets and egress packets according to preconfigured conversion rules and preconfigured switching rules.
  • FIG. 7b is a simplified representation compared to Figure 7a, in that multiple frames on one bus are not shown, nor is encapsulation of CAN frames. However, both can be used with this embodiment.
  • FIG. 8 illustrates the layer 2 fields of Ethernet frame header which can be used as reference information, as disclosed herein.
  • FIG. 8 illustrates both automotive Ethernet and legacy Ethernet fields.
  • the fields include: Destination Adress, Source Address, VLAN tag, Ether-type, IEEE 1722 data stream.
  • the VLAN tag field includes Tag Protocol, User Priority, Canonical Format Indicator, VLAN ID fields.
  • the IEEE 1722 data stream field includes Header, Stream ID, Timestamp, Gateway Information, Packet Information.
  • the Payload of IEEE 1722 data stream field may not be included as one of the reference fields.
  • FIG. s 9a-c illustrate three different manners of converting payload parts or all of ingress CAN frames into egress Ethernet frame.
  • the first way is one to one mapping, as shown in FIG. 9a, where one CAN frame 50 having a data field 70 is mapped to one Ethernet frame 220.
  • the metadata 250 contains a timestamp inserted by the gateway switch and a description including how many CAN frames are embedded in this Ethernet frame and how they are embedded. In this case the metadata would indicate only one.
  • the timestamp is for marking the time of the generation of this Ethernet frame. It will give extra information, other than about the embedded CAN frames.
  • the number of CAN frames is an indicator for the gateway switch to differentiate the encapsulation type.
  • the second way is to embed multiple CAN frames 50, 50 in one Ethernet frame 230.
  • any overhead from including the metadata is correspondingly lower on average.
  • the third way is for multiple CAN frames which have the same frame header. Multiple CAN payloads 70 are embedded in one Ethernet frame 240 while the identical or similar CAN frame headers of the ingress CAN frames are contained in the metadata. Each ingress CAN frame may have the same CAN ID.
  • the third way saves overhead compared to the first and second ways.
  • FIG. 10a illustrates a simple one to one transmission manner performed by the inter network gateway switch 110, as disclosed herein.
  • Switch rules decide which information from which interface flows to which interface (s) .
  • the gateway switch may also handle access control.
  • a filter can be a whitelist, a blacklist, a mixture of two lists, or a more flexible setting, such as passing the traffic to processes in higher layers.
  • the secure mapping controller 120 of the gateway switch 110 can use at least two different switch rules in determining the switching manner.
  • the first one is one to one.
  • the secure mapping controller makes the conversion and then puts the converted frame to a transmission buffer of the target interface.
  • the second switch rule is one to many as shown Figure 10b, in either direction. It can be multicast or broadcast. After the secure mapping controller makes the protocol conversion, the resulted frames are then broadcasted or multicasted.
  • a third embodiment relates to a diagnostic service.
  • a diagnostic request is applied on a vehicle for the status of the whole vehicle.
  • a command activating diagnostic process is launched into the vehicle. This command should be sent across Ethernet and CAN networks to all diagnosed controllers in the vehicle. Status information from those controllers should be transmitted back to the source sending the command.
  • the transmission priority is not critically high. Rather, the embodiment’s purpose is that the command should be broadcasted or multi-casted to the controllers being queried.
  • Table 2 below is an example about how to determine how to transmit this command from Ethernet to CAN networks.
  • the command in the form of an Ethernet frame bearing a representative CAN frame, enters the gateway switch from a first Ethernet interface, and then is converted into CAN frames.
  • Those CAN frames are then sent to a first CAN interface and a second CAN interface, such as shown in the left part of FIG. 10b.
  • the gateway switch analyzes the header part and if the user priority value is 3 and the CAN ID of the embedded CAN frame is 0x201, it de-encapsulates the CAN frame out and broadcast to all CAN buses.
  • the priority 3 shows a commonly used priority level for AVB traffic.
  • the CAN ID value is merely an example, and can be omitted.
  • the gateway switch To parse the CAN ID from the embedded CAN frame in the Ethernet frame, the gateway switch refers to the payload part of Ethernet frame.
  • CAN frames with certain CAN IDs are switched to Ethernet interface 1.
  • the Ethernet interface 2 and so on might not be used.
  • the CAN frames are aggregated into Ethernet frames with a stream ID A.
  • a fourth embodiment relates to a diagnostic request applied on a vehicle for the status of a specific controller for a certain time period.
  • a command activating diagnostic process is launched into a vehicle. This command is sent across Ethernet and CAN networks to a diagnosed controller. Hence, it only involves one-to-one mapping and unicasting, as shown in Table 4.
  • CAN to Ethernet In the return direction (CAN to Ethernet) , status information from the diagnosed controller is transmitted back to the source.
  • the CAN frames bearing the status information have the same CAN IDs.
  • those CAN frames are aggregated by using their payloads, i.e. the returning CAN frames are not wholly encapsulated.
  • Their common (i.e. identical) header will be embedded in the metadata part in resulting egress Ethernet frames. Examples of rules of aggregation are shown in Table 5.
  • a fifth embodiment relates to software over the air update. That is bulk data entering a vehicle such as for a controller.
  • the update package is downloading from the service provider into in-vehicle Ethernet network.
  • the controller being updated is in the CAN network.
  • the update package transmission uses stream reservation protocol where each Ethernet frame contains multiple CAN frames and a stream ID. Table 6 illustrates the applicable actions.
  • a sixth embodiment relates to access control.
  • Table 7 provides an example of the filtering actions taken.

Landscapes

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

Abstract

For in-vehicle networks, a method of performing protocol conversion at the data link layer between Controller Area Networks, CAN, frames and Ethernet frames, based on the value of the CAN identifier such that the transmission priority is expressed in the egress Ethernet frame, and vice versa. Additional methods include switching between output ports for the converted egress frame and /or performing access control, both based on values in data link layer fields of the corresponding ingress frame.

Description

ETHERNET and CoNTROLLER AREA NETWORK PROTOCOL INTERCONVERSION FOR IN-VEHICLE NETWORKS TECHNICAL FIELD
The present disclosure relates to communication protocols, and in particular to the conversion between different communication protocols, such as those used in networks inside automobiles. In more detail, the present disclosure relates to OSI layer 2 conversion to/from Controller Area Network (abbreviated to CAN) frames and Ethernet frames, wherein priority of transmission information from an ingress (source) frame is expressed in the egress (output) frame after conversion. The present disclosure further relates to switching and access control of ingress frames based on information in the ingress frame.
BACKGROUND
CAN network is a major in-vehicle network currently because of its simplicity, for communication with controllers in vehicles.
Due to high bandwidth requirements triggered by new applications, such as Advanced Driving Assistant Systems (abbreviated to ADAS) or high resolution navigation systems, Automotive Ethernet network is becoming more popular for in-vehicle networks. Automotive Ethernet may be defined with reference to sets of IEEE standards as discussed below.
However, it takes time to make such an in-vehicle networking evolution. Co-existence of CAN and automotive Ethernet is a reality and will last for decades.
Figure 1 shows an example of the co-existence of CAN and Automotive Ethernet in a deployment scenario, such as an in-vehicle network, where CAN networks handles core vehicle functions, and automotive Ethernet supports external connectivity and advanced applications such as On-Board Diagnostics II (OBDI II) , Advanced Driving Assistant Systems (ADAS) , and Human Machine Interface (HMI) . The networks are interconnected by a conversion device. As exemplified, there are two CAN buses; on a first CAN bus a Vehicle Controller Unit, Body Controller and optionally other controllers are connected, whilst a Battery Management Unit, Battery Controller Unit and optionally other controllers are connected on a second CAN bus.
CAN is the main fieldbus for in-vehicle communications. CAN protocol (ISO 11898) defines the physical layer and the data link layer.
CAN frame format, at the data link layer according to the OSI model, is shown in Figure 2. As depicted, the CAN frame format at data link layer has a start of frame (SOF) , an Identifier, a remote transmission request (RTR) code, control area, data area (i.e. payload) , cyclic redundancy check (CRC) , response (ACK) and the end of frame (EOF) .
The CAN identifier (CAN ID) has two formats, 11 bits and 29 bits, and the data area is up to 8 bytes in the CAN standard.
Carmakers, such as Audi or Toyota, define CAN identifiers. For example, they can define CAN identifier 0x010 for CAN frames of engine system. They also define how they interpret the data area. For example, the first byte of the data area means the current speed of CAN frames with identifier 0x010. The switch gateway needs to know at least those CAN IDs it handles. The manufacturers also define how they interpret the data area. For example, the first byte of the data area means the current speed of CAN frames with identifier 0x010.
In the CAN bus communication process, the sender sends a CAN message, and the receiver on the bus selects the CAN message to be received according to the CAN identifier. The message corresponding to one CAN identifier may have more than two receivers. When two CAN frames from two nodes are going to be sent on the bus at the same time, one with a smaller value of CAN identifier gets higher transmission priority. The CAN ID determines the priority on CAN network. For instance, when the identifier value is 0, the CAN frame has the highest priority. CAN ID 0x000 is smaller than CAN ID 0x001. The transmission priority is guaranteed by hardware arbitrator. Hence, CAN identifiers can be seen as priority tags in CAN frames.
Automotive Ethernet is different from legacy Ethernet. It aims at providing more accurate time synchronization and better quality of network service, such as guaranteed maximal latency and jitter. For a specified set of data streams, network resources can also be reserved in advance to ensure transmission quality. IEEE provides an additional set of standards to form Automotive Ethernet, the so-called Audio/Video Bridging (AVB) . A newer version is called AVB generation 2 or Time-Sensitive Networks (TSN) . Table 1 below shows a comparison of legacy Ethernet and Automotive Ethernet mapped to layers of the OSI model.
Table 1
Figure PCTCN2019072577-appb-000001
In AVB, to achieve the goals of providing better quality of network services, new protocols and additional headers are defined. IEEE 802.1Qat defines stream reservation protocol (SRP) . It classifies traffic into SR-Class A and SR-Class B. For up to 7 hops,  traffic of SR-Class A is guaranteed to have at most 2ms latency while traffic of SR-Class B is guaranteed to have at most 50ms latency. IEEE 802.1Qat also identifies traffic by the stream ID. Traffic of a stream ID can be assigned with reserved network resources, such as reserved bandwidth of a whole transmission path, to guarantee the quality of network services, including low latency and jitter. IEEE 802.1Qav defines scheduling algorithms for legacy Ethernet and automotive Ethernet traffic, respectively.
Figure 3 shows the format of automotive Ethernet frame, where b stands for bit and B stands for byte. The 3 bit User Priority in the Virtual Local Area Network (VLAN) tag gives 8 different values for priority in Ethernet networks. With a higher value in user priority, the frame has higher priority being sent in the network. Automotive Ethernet can use two out of eight priority values, thus giving two possible priority levels. Others are reserved for legacy Ethernet, thus providing for at least six priority levels and possibly eight i.e. 0, 1, 2, 3, …, 7. User priority 0 is smaller than user priority 1 and so on.
Conventional solutions
There is no international or industrial standard for protocol conversion between automotive Ethernet and CAN.
Some existing conventional methods focus on conversion between legacy Ethernet and CAN. They use CAN over Ethernet for protocol conversion as shown in Figure 5. When converting CAN frames to Ethernet, one or more CAN frames are encapsulated into the payload part of Ethernet frame. Aggregating multiple CAN frames into one Ethernet frame can further decrease the transmission bandwidth overhead. When converting Ethernet frames to CAN frames, the corresponding de-capsulation is performed.
Another existing conventional method provides for conversion between automotive Ethernet and CAN which is performed in application layer and one CAN frame maps to one Ethernet frame. Hence the latency introduced at the gateway switch is high and command options concerning transmission of the converted frame are limited.
Yet another existing conventional method provides for CAN-to-AVB protocol conversion. A fixed number of CAN frames are aggregated into one Ethernet frame. However, in this conventional solution, only the scheduling issue to lower the latency introduced by the conversion is addressed.
SUMMARY
Amongst conventional protocol conversion methods, none of them consider preserving the property of the prioritized transmission from the source network frame in the target network frame. Without taking transmission priority into consideration, this causes a network unavailability issue. For instance, when the traffic in Ethernet network is heavy, and there is some urgent information needed to be sent from CAN network to another node in Ethernet network, the converted frame would be delayed by internal scheduling at the gateway switch and bandwidth competition when accessing Ethernet.
Another security concern comes from the asymmetric bandwidths. Ethernet has much higher bandwidth (e.g. at least 100M bps) than CAN buses (500K bps commonly in use) .  When there is no rigorous access control at the gateway switch, it is easy for attackers to launch denial-of-service attacks from Ethernet to paralyze CAN buses.
To address one or more of the foregoing issues, embodiments of the present disclosure thus provide methods, apparatus, and computer programs for protocol conversion in one or both directions between CAN frames and Ethernet frames. Embodiments of the present disclosure further provide methods of switching of an egress frame, which is converted from an ingress frame, to defined ports, and also provide methods of access control on ingress frames. The methods are performed at the data link layer.
In one aspect, the present disclosure provides a method of protocol conversion, for vehicles, comprising
- obtaining an ingress Controller Area Networks, CAN, frame comprising a CAN identifier in a frame header of the ingress CAN frame, where a value of the CAN identifier represents a transmission priority,
- Converting, at the data link layer, the ingress CAN frame into an egress Ethernet frame, based on the value of the CAN identifier such that the transmission priority is expressed in the egress Ethernet frame.
As discussed in the Background, transmission priority is performed in a CAN network according to a value of the CAN identifier. The frame bearing the lowest value of CAN identifier results in that frame being preferentially transmitted on that CAN bus when there are two or more frames on that CAN bus at the same time. There are many possible values of CAN identifier, as each may correspond to a target node in the CAN network.
Transmission priority in Ethernet frames may be expressed by a value of the VLAN tag field. Comparatively higher values of the VLAN tag field result in the frame with the higher value of VLAN tag, compared to other Ethernet frames, being preferentially transmitted in the Ethernet network.
The protocol conversion may be performed by a gateway entity or function, which operates at the data link layer (OSI layer 2) and preferably no higher layers. The gateway may have sub-modules which perform the functions such as conversion e.g. a secure mapping controller. The gateway may be provided in hardware or software, and may comprise a logical entity. The gateway may be disposed in a network, such as in a vehicle network, where there is co-existence of an Ethernet network and a CAN network which are interconnected. The gateway may also be a switch, which performs access control and/or interface or port switching functions between the networks based on preconfigured information and parsing at layer 2 of the ingress frame. The term gateway and switch may be used interchangeably or refer to their combination herein when referring to general functions.
The Ethernet network may comprise legacy Ethernet, and/or Automotive Ethernet. Legacy Ethernet is Ethernet which is not Automotive Ethernet.
When comprising legacy Ethernet, the VLAN tag, which is optional in legacy Ethernet, is present. Thus providing transmission priority information.
The CAN network may handle core vehicle functions, such as Vehicle Controller Unt, Body Controller, Battery Management Unit, Battery Controller Unit. The Automotive Ethernet network may provide external connectivity and advanced applications such as Human Machine Interface (HMI) and Advanced Driving Assistant Systems (ADAS) . The skilled person will be aware of other possibilities.
The gateway or switch may have one ingress/egress Ethernet port, and one ingress/egress CAN port. Preferably, there are two ingress/egress CAN ports on the switch. Each CAN port may connect to a different CAN bus for different controllers. The gateway or switch may have input and output buffers connected to each port.
The gateway or switch may obtain an ingress CAN frame by receiving the CAN frame at an ingress CAN port. By converting at the data link layer, the gateway or switch may only parse the frame at the data link layer or below layers.
CAN transceivers /controllers may support CAN2.0A and B standards, and Ethernet transceivers may support both legacy and automotive Ethernet.
The gateway or switch may be pre-configured with information about all possible values of CAN identifier or ways of identifying, classifying or grouping CAN identifiers.
After converting the ingress CAN frame into an Ethernet frame, the switch may output the egress Ethernet frame on a specified egress Ethernet port.
The system assumptions are that CAN transceivers support CAN2.0A and B standards and Ethernet transceivers support both legacy and automotive Ethernet.
The switch or gateway may perform functions of transmitting, parsing, assembling, as known to the skilled person on the frames.
In a possible design, the converting comprises
mapping the value of the CAN identifier into one or more data link layer fields of the egress Ethernet frame, said fields comprising VLAN tag field, Ethernet type field, stream ID field, source address field and destination address field.
The mapping may be according to preconfiguration at the gateway or switch, such as provided by a table, rules or logic.
Given the difference in number of bits for each of the possible target fields, and their possible combinations thereof compared to the fixed size of 11 or 29 bits of CAN ID, the mapping may be performed in various ways. This is possible provided that entities on the target network are aware of the manner of mapping and so can parse the resulting expression of transmission priority.
In a possible design, the converting comprises mapping the value of the CAN identifier into a value of the User Priority field of the VLAN tag field.
Preferably, the value of the CAN identifier is mapped to the VLAN tag field only, taking account of the priority levels available in the type of Ethernet frame.
Similarly, a value of the VLAN tag may be mapped to the CAN ID in the reverse conversion direction.
In a possible design, the converting comprises mapping a smaller value of the CAN identifier to a larger value of the User Priority field.
Due to the larger possible range of values of CAN ID, the mapping of the value of the CAN ID to expression in Ethernet frame header may be many to few or one. For mapping from VLAN ID to CAN ID, the mapping relationship may be few or one to many. When mapping to the User Priority field, at most 8 possible values priority can be expressed.
When user priority is 0 and the VLAN identifier is 0, this may be mapped to a certain value of CAN ID that broadcasts with priority the CAN frame (s) on a particular CAN bus.
In a possible design the mapping all possible values of CAN identifier are divided into two sub groups, and each sub-group is mapped respectively to a different value of the User Priority field.
This may be performed for AVB.
In a possible design the mapping all possible values of CAN identifier are divided into eight sub groups, and each sub-group is mapped respectively to a different value of the User Priority field.
This may be performed for legacy Ethernet.
In a possible design the method further comprises
transferring Data in a Data field of the ingress CAN frame into a payload field of the egress Ethernet frame;
or
encapsulating the ingress CAN frame in the egress Ethernet frame;
or
in the case that the obtaining an ingress CAN frame comprises obtaining first and second ingress CAN frames, each comprising a first and second CAN  frame header, wherein the first and second frame headers are the same, the method comprises:
transferring information about the ingress CAN frame into metadata in the egress Ethernet frame, and
transferring Data in a Data field of each of the ingress CAN frames into a payload field of the egress Ethernet frame;
or
in the case that the obtaining an ingress CAN frame comprises obtaining first and second ingress CAN frames, each comprising a first and second CAN identifier respectively having corresponding respective first and second values of the first and second CAN identifiers, wherein the first and second values both map to a same value of a User Priority field, the method comprises:
mapping the CAN identifier to the same value of a User Priority field,
transferring information about the ingress CAN frame into metadata in the egress Ethernet frame; and
encapsulating each ingress CAN frame in the egress Ethernet frame.
The conversion from CAN to Ethernet may be performed in various ways: 1) One CAN frame is encapsulated in one Ethernet frame. 2) Several CAN frames are encapsulated in one Ethernet frames. 3) Several CAN frames with a common header are decomposed and aggregated in one Ethernet frames. A metadata is embedded in the egress Ethernet frame in order to let the gateway switch differentiate different encapsulations.
When transferring Data in a Data field of the ingress CAN frame into a payload field of the egress Ethernet frame the other fields may be dropped or ignored, thus saving payload space. The value of the CAN identifier is mapped as disclosed herein.
Multiple ingress CAN frames can be aggregated in one egress Ethernet frame. This is more efficient. Further efficiencies arise if only the Data is kept. Further, ingress CAN frames which have similar levels of transmission priority importance can be transmitted together thus improving priority receipt in the Ethernet network.
When encapsulating CAN frames in the egress Ethernet frame, each CAN ID is extracted and preserved. Further, the priority information expressed by the CAN IDs is preserved by mapping the CAN IDs to the User priority (and optionally other fields) . Thus all information is kept.
In a possible design information about the ingress CAN frame into metadata in the egress Ethernet frame comprises information about one or each of the ingress CAN frames,
and the metadata comprises one or more of:
the header of an or each ingress CAN frame,
the number of CAN frames partially or wholly represented in the egress Ethernet frame,
a manner of how the CAN frames are comprised in the egress Ethernet frame, and
a timestamp of generation of the egress Ethernet frame.
The manner refers to whether the CAN frame is encapsulated or the relevant field thereof e.g. payload Data is encapsulated only.
The timestamp is for marking the time of the generation of this Ethernet frame. It will give extra information, other than that in the embedded CAN frames. The meta data may be embedded in payload of the Ethernet frame.
In a possible design the ingress or egress Ethernet frame comprises a legacy Ethernet frame having a VLAN tag or an Automotive Ethernet frame.
As used in the present disclosure, Automotive Ethernet may be defined to mean the set of standards for AVB and legacy Ethernet above network layer 2 (data link layer) , plus optionally the special physical layer (100BASE-T1, IEEE 802.3bw) .
In a possible design the method further comprises
- obtaining an ingress Ethernet frame,
- Converting, at the data link layer, the ingress Ethernet frame into an egress CAN frame, based on reference information provided from one or more data link layer fields of the ingress Ethernet frame.
In the Ethernet to CAN conversion, the user priority value may determine the priority, and/or may determine the manner of broadcast on which egress CAN ports.
Conversion may be performed in both ways. For example, a diagnostic routine may result in ingress Ethernet frame comprising CAN frames which are converted and switched to the target buses. Returning CAN frame (s) containing report information from the controllers on the CAN network may be converted into Ethernet frame (s) .
In a possible design the said more data link layer fields of the ingress Ethernet frame comprise Destination Address field, Source Address field, VLAN tag field, Ether-type field and fields of the IEEE 1722 data stream.
The Destination Address field and Source Address field contain MAC addresses.
In a possible design, the fields of the VLAN tag field comprise Tag Protocol ID, User Priority, Canonical Format Indicator, VLAN ID, and /or fields of the IEEE 1722 data stream comprise Header, Stream ID, Timestamp, Gateway Information and Packet Information fields. Some or all or these fields may also be used for switching to egress ports.
In a possible design the converting, at the data link layer, the ingress Ethernet frame into an egress CAN frame comprises
de-encapsulating a or each CAN frame from the ingress Ethernet frame into the or each corresponding egress CAN frame,
or comprises
transferring Data in the ingress Ethernet frame into a Data field of a created egress CAN frame, e.g. the Data is Data which was previously extracted from a CAN frame and stored in the ingress Ethernet frame.
In a possible design the converting at the data link layer comprises converting at the data link layer only. This may refer to without processing at a higher layer in a protocol stack.
In a possible design the method further comprises
- Determining, based on the reference information provided by the one or more data link layer fields of an or each ingress Ethernet frame, a first transmission manner for each egress CAN frame; and/or
- Determining, based on the reference information provided the by one or more data link layer fields of an or each ingress Ethernet frame, and based on a value of a CAN identifier for the or each CAN frame represented in each ingress Ethernet frame, a second transmission manner of each egress CAN frame.
- Determining, based on the reference information provided by the one or more data link layer fields of an or each ingress Ethernet frame and based on value of a stream ID, a third transmission manner for each egress CAN frame
Based on the determination, the switch may perform switching i.e. a transmission manner. Preferably the User Priority is the reference field used together other fields such as with one or more MAC fields, Stream ID. Preconfigured rules table or logic and so on may be used to determine the transmission manner.
Switching may be performed separately to either of access control and protocol conversion.
CAN frames may be represented by only having Data and optionally respective CAN ID in the ingress Ethernet frame.
A stream ID may refer to that in AVB.
In a possible design the first or second transmission manners comprise
unicast transmission of the egress CAN frame from a corresponding egress CAN port,
broadcast transmission from corresponding egress CAN ports, and
multicast transmission from corresponding egress CAN ports;
wherein each CAN port is respectively for a different CAN bus.
Broadcast or multicast utilizes frame duplication by the switch. Multicast uses three ports. Broadcast or unicast uses at least two ports. Two CAN ports are a common configuration in automotive deployments.
In a possible design the method further comprises
- Determining, based on the value of the CAN identifier of the or each ingress CAN frame, a third transmission manner for each corresponding egress ethernet frame;
- Wherein the third transmission manner is one of:
o unicast transmission of the egress ethernet frame from a corresponding egress ethernet port,
o broadcast transmission from corresponding egress ethernet ports, and
o multicast transmission from corresponding egress ethernet ports.
Ports may be connected to different buses or entities.
In a possible design the method further comprises
- Performing access control for an ingress CAN frame or an ingress Ethernet frame based on information at the data link layer of the respective ingress CAN frame or ingress Ethernet frame.
Access control may employ white and /or black list filtering. If an ingress frame is blocked no further action is taken. Access control may be performed separately to either of switching and protocol conversion.
If access control is passed, protocol conversion and optionally switching may then be performed.
Access control improves the security of the vehicle network to attack. Given that  vehicles may be cars, bikes, planes, trains, buses and so on moving at speed in a congested environment, reducing success of malicious attacks is beneficial.
In a possible design the information at the data link layer comprises the CAN identifier of the ingress CAN frame, or frame header information of the ingress Ethernet frame.
Frame header information may in particular comprise MAC address information.
In another aspect, the present disclosure provides a network gateway, for connection to an ingress/egress Ethernet port and ingress/egress CAN ports in a vehicle, wherein the gateway is configured to perform any method as disclosed herein.
In another aspect, the present disclosure provides a processor comprising a computation unit and memory, wherein the memory stores instructions for instructing the computation unit to perform the method as disclosed herein.
In another aspect the present disclosure provides a method for switching to a target CAN bus, one or more CAN frames expressed in an ingress Ethernet frame, for in-vehicle networks, comprising
- Determining, based on a reference information provided by the one or more data link layer fields of the ingress Ethernet frame, a first transmission manner for each egress CAN frame;
and/or
- Determining, based on the reference information provided the by one or more data link layer fields of the ingress Ethernet frame, and based on a value of a CAN identifier for the or each CAN frame represented in the ingress Ethernet frame, a second transmission manner of each egress CAN frame; and/or
- Determining, based on the reference information provided by the one or more data link layer fields of the ingress Ethernet frame and based on value of a stream ID, a third transmission manner for each egress CAN frame
- Transmitting the or each egress CAN frame according to the determined transmission manner.
A CAN frame is expressed by being represented either in whole by encapsulation or in part, as disclosed herein. This method may be adapted according to the other methods as disclosed herein, for example to provide conversion whilst maintaining transmission priority, or access control on ingress frames.
Compared with the conventional solutions, in the solutions provided in the present  disclosure, protocol conversion can be efficiently performed without traversing the whole protocol stack and maintain transmission priority information. Network security of the vehicle is improved, and frames after conversion can be delivered to targeted buses in the target network thus reducing message congestion and resource wastage.
BRIEF DESCRIPTION OF DRAWINGS
FIG. 1a is an illustration of the co-existence of CAN and Automotive Ethernet in a deployment scenario such as an in-vehicle network according to the conventional art.
FIG. 1b is an schematic illustration of interconnected CAN and Automotive Ethernet networks in a vehicle according to the conventional art.
FIG. 2 is a schematic of CAN frame format at the data link layer.
FIG. 3 is a schematic of automotive Ethernet frame at the data link layer.
FIG. 4 is a comparison of layers of the OSI model, TCP/IP model and automotive Ethernet.
FIG. 5 is a flowchart of an embodiment of the method according to the present disclosure.
FIG. 6 is a flowchart of another embodiment of the method according to the present disclosure.
FIG. 7a is an illustration of a conversion module for converting between Ethernet and CAN frame format according to an embodiment of the present disclosure.
FIG. 7b is an illustration of a gateway switch for converting and switching between Ethernet and CAN frame format according to an embodiment of the present disclosure.
FIG. 8 is an exploded schematic of an automotive Ethernet frame at the data link layer illustrating reference fields.
FIG. s 9a-c are illustrations of different ways of converting CAN frames to Ethernet frames according to embodiments of the present disclosure.
FIG. s 10a-b are illustrations of different ways of performing access control between Ethernet and CAN networks according to embodiments of the present disclosure.
DESCRIPTION OF EMBODIMENTS
To make objectives, technical solutions, and advantages of embodiments of the present invention clearer, the following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
Below is a brief explanation of FIG. s1-3, as these are discussed in more detail in the  Background section.
FIG. 1 shows a conversion device connecting an Automotive Ethernet network 30 and a  CAN network  23, 27. The conversion device 10 has functionality according to the conventional art as disclosed herein.
FIG 1b illustrates Automotive Ethernet 30 and CAN  networks  23, 27 in a vehicle 40 interconnected by a conversion device 10 according to the conventional art.
FIG. 2 illustrates a typical CAN frame 50 at the data link layer, comprising various fields including the CAN identifier field 60 and Data field 70.
FIG. 3 illustrates the format of automotive Ethernet frame 80. The 3 bit User Priority field 100 in the Virtual Local Area Network (VLAN) tag 90 gives 8 different values for priority in Ethernet networks. In legacy Ethernet frames the VLAN tag 90 is optional.
From the comparison shown in FIG. 4 it can be seen that CAN standards ISO 11898-1 and ISO 11898-2, 3 map to the physical and data link layers. In Ethernet, 100 BASE-T1 in IEEE 802.3bw-2015 maps to the physical layer. AVB is shown as mapping to several layers. Of particular relevance in the present disclosure are the layers of AVB which map to the data link layer, including IEEE 1722 Layer-2 AVB Transport Protocol, IEEE 802.1AS Precision Time Protocol, IEEE 802.1Qav and IEEE 802.1 Qat.
FIG. 5 illustrates actions which may be performed in a first embodiment of the method according to the present disclosure. In this first embodiment, optional actions are illustrated by dotted lines.
In general, the method acts upon an ingress CAN frame, and produces an egress Ethernet frame by converting the ingress CAN frame into the egress Ethernet frame. As disclosed herein, the method of this first embodiment may be adapted to be performed on multiple ingress CAN frames. In the case of multiple ingress CAN frames, the ingress CAN frames are represented in the egress Ethernet frame by extracting relevant information such as the CAN ID (which is converted and optionally also kept) and data fields, or extracting and converting the CAN ID and encapsulating each ingress CAN frame..
In the step of obtaining 500 an ingress CAN frame comprising a CAN identifier in a frame header of the ingress CAN frame, where a value of the CAN identifier represents a transmission priority, a corresponding CAN identifier in the ingress CAN frame is obtained.
Optionally, step 510 of performing access control for the ingress CAN frame occurs next in the method. The ingress CAN frame may be parsed according to the fields in the CAN header, such as CAN ID, and according to a white list or blacklist. If on the white list, the CAN frame may be converted and /or switched. If on the black list, the CAN frame is not for the target network and is not converted nor switched.
Then an action of converting 520, at the data link layer, is performed. The ingress CAN frame is converted into an egress Ethernet frame, based on the value of the CAN identifier such that a transmission priority is expressed in the egress Ethernet frame. The value of the obtained CAN identifier is converted into one or more header fields at the data link layer in the corresponding egress Ethernet frame. The conversion is performed according to a mapping. The CAN identifier value may be mapped to the VLAN tag, and in particular to  the User priority field therein. A principle of mapping may be that a lower value of the CAN ID maps to a higher value in the User Priority tag. Many CAN IDs may be mapped to one value of the VLAN tag or User Priority field. For example, one range of CAN IDs maps to one VLAN value, one CAN ID maps to another VLAN value, and another range of CAN IDs maps to another VLAN value. Other permutations and combinations of the mapping are possible.
In the converting 520, the payload is also converted. Figures 9a-9c depict three different ways of converting ingress CAN frames.
Then, the converted Ethernet frame is output.
Optionally, the transmission manner of the converted Ethernet frame is determined 530. This may be according to a mapping, such that certain CAN ID 60 are mapped to certain corresponding egress Ethernet ports.
Further implementation details of the method steps are provided in the Summary.
The method may alternatively, or in conjunction for bidirectional conversion, be performed on an ingress Ethernet frame and output one or more egress CAN frames. The ingress Ethernet frame may include representations or encapsulations of one or more CAN frames. In this case, the or each CAN frame is generated or de-encapsulated to become egress CAN frame (s) .
FIG. 6 illustrates actions which may be performed in a second embodiment of the method according to the present disclosure. In this second embodiment, optional actions are illustrated by dotted lines.
The method acts upon an ingress Ethernet frame, and produces an egress CAN frame by converting the ingress Ethernet frame into the egress CAN frame.
Multiple CAN frames can be represented in the ingress Ethernet frame. For example, there may be two or more CAN frames wholly encapsulated in the ingress Ethernet frame. In another example, only the data fields of several CAN frames may be stored in the ingress Ethernet frame. Optionally, their CAN IDs may also be stored in the ingress Ethernet frame. Otherwise, their CAN ID is expressed in the Ethernet field header as disclosed herein. Optionally, metadata as disclosed herein may be included in the Ethernet frame.
In the step of obtaining 600 an ingress Ethernet frame comprising a VLAN identifier in a frame header of the ingress Ethernet frame, where a value of the VLAN tag represents a transmission priority, the value of the VLAN tag is obtained. The value of the VLAN tag, such as the User Priority, may also indicate via a mapping or rules which CAN ports to switch the represented CAN frames to.
Optionally, step of performing access control 610 for the ingress Ethernet frame occurs next in the method of the second embodiment. The ingress Ethernet frame may be parsed  according to the fields in the Ethernet header such as VLAN tag and/or source address and/or destination address, according to a white list or blacklist. If on the white list, the Ethernet frame may be converted and /or switched. If on the blacklist, the Ethernet frame is not for the target network and is not converted nor switched. The target network is thus more secure.
Then an action of converting 620, at the data link layer, is performed. The ingress Ethernet frame is converted into one or more CAN frames corresponding respectively to the CAN frames represented in the ingress Ethernet frame. This may comprise recreating the CAN frames according to their data and CAN IDs, or decapsulating the CAN frames. Optionally, the converting may be based on the value of the VLAN tag such that a transmission priority is expressed in the egress CAN frames via the CAN ID of each CAN frame. The conversion is performed according to a mapping. The conversion mapping operations may be the same as those in the first embodiment.
Next, the transmission manner of the converted CAN frame (s) is determined 630. The transmission manner of this embodiment may be applied to transmission manners in other embodiments as disclosed herein. The transmission manner may be according to a mapping, such that the represented CAN frames are mapped to certain corresponding egress CAN ports. Mapping rules may be preconfigured. The mapping be according to reference information in the layer 2 header of the ingress Ethernet frame, and also optionally according to information in the represented CAN frames. The reference information may one or more of the fields identified in Figure 8. In an example, two fields of the VLAN tag field of the ingress Ethernet frame are used, comprising the VLAN ID and the User Priority tag. For example, when the value of VLAN ID is zero and the User Priority value is zero, then the converted CAN frames are broadcast to all CAN buses.
The order of the determining 630 and the converting 620 can be interchanged or occur in parallel.
Then, the converted Ethernet frame is output.
Further implementation details of the method steps are provided in the Summary.
FIG. s 7a and 7b illustrate both ingress and egress frames 190, 210 and the corresponding respective egress frames 190, 210 converted therefrom. The conversion may be in one or both directions. In one embodiment, the conversion is performed by a conversion unit such as a CAN –Ethernet gateway switch 110 or a secure mapping controller 120 inside the gateway switch 110. The gateway switch is configured to perform the method of any embodiment as disclosed herein.
In FIG. 7a, one Ethernet bus is in communication with the conversion unit via data buffer 130. The conversion unit is in communication via  respective buffers  140, 140 to two CAN ingress/ egress ports  150, 160 which are for respective different CAN buses.
Incoming Ethernet frames can be stored by a buffer 130 in communication with an ingress/ egress Ethernet port  170, 180. In this embodiment, ingress/egress refers to a port which is bidirectional. In the case of one directional conversion, the port may be unidirectional and is thus ingress or egress only.
The Ethernet frames 190 include representations 200 of CAN frames. Two representation manners are shown: in a first manner, one CAN frame is comprised in an Ethernet frame, whereas in a second manner, two or more CAN frames are comprised in the Ethernet frame 190.
When the Ethernet frames are ingress Ethernet frames, the conversion unit converts the ingress Ethernet frames into egress CAN frames as disclosed in embodiments herein. Switching between the two buses may also be performed as disclosed herein.
When the CAN frames are ingress CAN frames, the conversion unit converts the ingress CAN frames into an egress Ethernet frame or frames, as disclosed in embodiments herein.
In FIG. 7b, two Ethernet buses are in communication with the gateway switch 110 via  ports  170, 180 and  data buffers  130, 130. The gateway switch is in communication via  respective buffers  140, 140 to two CAN ingress/ egress ports  150, 160 which are for respective different CAN buses.
The secure mapping controller 120 performs conversion and /or switching between the ingress packets and egress packets according to preconfigured conversion rules and preconfigured switching rules.
FIG. 7b is a simplified representation compared to Figure 7a, in that multiple frames on one bus are not shown, nor is encapsulation of CAN frames. However, both can be used with this embodiment.
FIG. 8 illustrates the layer 2 fields of Ethernet frame header which can be used as reference information, as disclosed herein. FIG. 8 illustrates both automotive Ethernet and legacy Ethernet fields. The fields include: Destination Adress, Source Address, VLAN tag, Ether-type, IEEE 1722 data stream. The VLAN tag field includes Tag Protocol, User Priority, Canonical Format Indicator, VLAN ID fields. The IEEE 1722 data stream field includes Header, Stream ID, Timestamp, Gateway Information, Packet Information. The Payload of IEEE 1722 data stream field may not be included as one of the reference fields.
FIG. s 9a-c illustrate three different manners of converting payload parts or all of ingress CAN frames into egress Ethernet frame.
The first way is one to one mapping, as shown in FIG. 9a, where one CAN frame 50 having a data field 70 is mapped to one Ethernet frame 220. In this way, the metadata 250 contains a timestamp inserted by the gateway switch and a description including how many CAN frames are embedded in this Ethernet frame and how they are embedded. In this case the metadata would indicate only one. The timestamp is for marking the time of the generation of this Ethernet frame. It will give extra information, other than about the embedded CAN  frames. The number of CAN frames is an indicator for the gateway switch to differentiate the encapsulation type.
The second way, as shown in FIG. 9b, is to embed multiple CAN frames 50, 50 in one Ethernet frame 230. When more than one CAN frame is encapsulated, any overhead from including the metadata is correspondingly lower on average.
The third way, as shown in FIG. 9c, is for multiple CAN frames which have the same frame header. Multiple CAN payloads 70 are embedded in one Ethernet frame 240 while the identical or similar CAN frame headers of the ingress CAN frames are contained in the metadata. Each ingress CAN frame may have the same CAN ID. The third way saves overhead compared to the first and second ways.
FIG. 10a illustrates a simple one to one transmission manner performed by the inter network gateway switch 110, as disclosed herein. Switch rules decide which information from which interface flows to which interface (s) . The gateway switch may also handle access control. For each  interface  150, 160 170, 180 at the gateway switch, there is a filter based on layer 2 information. A filter can be a whitelist, a blacklist, a mixture of two lists, or a more flexible setting, such as passing the traffic to processes in higher layers.
The secure mapping controller 120 of the gateway switch 110 can use at least two different switch rules in determining the switching manner. The first one is one to one. When the ingress frame is allowed to flow to another interface i.e. passes access control, the secure mapping controller makes the conversion and then puts the converted frame to a transmission buffer of the target interface. The second switch rule is one to many as shown Figure 10b, in either direction. It can be multicast or broadcast. After the secure mapping controller makes the protocol conversion, the resulted frames are then broadcasted or multicasted.
To further illustrate applications of the method and gateway switch as disclosed herein, four further embodiments are provided.
A third embodiment relates to a diagnostic service. A diagnostic request is applied on a vehicle for the status of the whole vehicle. A command activating diagnostic process is launched into the vehicle. This command should be sent across Ethernet and CAN networks to all diagnosed controllers in the vehicle. Status information from those controllers should be transmitted back to the source sending the command.
In this third embodiment, the transmission priority is not critically high. Rather, the embodiment’s purpose is that the command should be broadcasted or multi-casted to the controllers being queried.
Table 2 below is an example about how to determine how to transmit this command from Ethernet to CAN networks.
The command, in the form of an Ethernet frame bearing a representative CAN frame, enters the gateway switch from a first Ethernet interface, and then is converted into CAN frames.
Those CAN frames are then sent to a first CAN interface and a second CAN interface, such as shown in the left part of FIG. 10b.
Table 2
Figure PCTCN2019072577-appb-000002
In more detail, when Ethernet frames arrive at Ethernet interface 1, the gateway switch analyzes the header part and if the user priority value is 3 and the CAN ID of the embedded CAN frame is 0x201, it de-encapsulates the CAN frame out and broadcast to all CAN buses. Here the priority 3 shows a commonly used priority level for AVB traffic. The CAN ID value is merely an example, and can be omitted.
To parse the CAN ID from the embedded CAN frame in the Ethernet frame, the gateway switch refers to the payload part of Ethernet frame.
Status information are collected back from the multiple controllers with different CAN IDs. To further save the bandwidth in Ethernet, those CAN frames with different CAN IDs are aggregated in fewer Ethernet frames. Moreover, to provide a better response quality in terms of stability, resulting Ethernet frames are assigned the same stream ID, such that stream reservation protocol can be applied on this stream ID. Examples of rules for aggregating CAN frames and giving a stream ID are shown in Table 3.
Table 3
Figure PCTCN2019072577-appb-000003
In the switch rules, CAN frames with certain CAN IDs are switched to Ethernet interface 1. The Ethernet interface 2 and so on might not be used. The CAN frames are aggregated into Ethernet frames with a stream ID A.
A fourth embodiment relates to a diagnostic request applied on a vehicle for the status of a specific controller for a certain time period. A command activating diagnostic process is launched into a vehicle. This command is sent across Ethernet and CAN networks to a diagnosed controller. Hence, it only involves one-to-one mapping and unicasting, as shown  in Table 4.
Table 4
Figure PCTCN2019072577-appb-000004
In the return direction (CAN to Ethernet) , status information from the diagnosed controller is transmitted back to the source. The CAN frames bearing the status information have the same CAN IDs. Hence, to further save the bandwidth in Ethernet, those CAN frames are aggregated by using their payloads, i.e. the returning CAN frames are not wholly encapsulated. Their common (i.e. identical) header will be embedded in the metadata part in resulting egress Ethernet frames. Examples of rules of aggregation are shown in Table 5.
Table 5
Figure PCTCN2019072577-appb-000005
A fifth embodiment relates to software over the air update. That is bulk data entering a vehicle such as for a controller. The update package is downloading from the service provider into in-vehicle Ethernet network. The controller being updated is in the CAN network. To ensure a stable transmission from Ethernet to CAN, the update package transmission uses stream reservation protocol where each Ethernet frame contains multiple CAN frames and a stream ID. Table 6 illustrates the applicable actions.
Table 6
Figure PCTCN2019072577-appb-000006
A sixth embodiment relates to access control. For each interface of the gateway switch, there is a filter or a set of filters. Table 7 provides an example of the filtering actions taken.
Table 7
Figure PCTCN2019072577-appb-000007
The foregoing disclosure merely discloses exemplary embodiments, and is not intended to limit the protection scope of the present invention. It will be appreciated by those skilled in the art that the foregoing embodiments and all or some of other embodiments and modifications which may be derived based on the scope of claims of the present invention will of course fall within the scope of the present disclosure.

Claims (22)

  1. A method of protocol conversion, for vehicles, comprising
    - obtaining an ingress Controller Area Networks, CAN, frame comprising a CAN identifier in a frame header of the ingress CAN frame, where a value of the CAN identifier represents a transmission priority,
    - Converting, at the data link layer, the ingress CAN frame into an egress Ethernet frame, based on the value of the CAN identifier such that a transmission priority is expressed in the egress Ethernet frame.
  2. The method according to claim 1, wherein the converting comprises
    mapping the value of the CAN identifier into one or more data link layer fields of the egress Ethernet frame, said fields comprising VLAN tag field, Ethernet type field, stream ID field, source address field and destination address field.
  3. The method according to claim 2, wherein the converting comprises mapping the value of the CAN identifier into a value of the User Priority field of the VLAN tag field.
  4. The method according to any of claims 1-2, wherein the converting comprises mapping a smaller value of the CAN identifier to a larger value of the User Priority field.
  5. The method according to any of claims 2-4, wherein in the mapping all possible values of CAN identifier are divided into two sub groups, and each sub-group is mapped respectively to a different value of the User Priority field.
  6. The method according to any of claims 2-5, wherein in the mapping all possible values of CAN identifier are divided into eight sub groups, and each sub-group is mapped respectively to a different value of the User Priority field.
  7. The method according to any preceding claim, further comprising
    transferring Data in a Data field of the ingress CAN frame into a payload field of the egress Ethernet frame;
    or
    encapsulating the ingress CAN frame in the egress Ethernet frame;
    or
    in the case that the obtaining an ingress CAN frame comprises obtaining first and second ingress CAN frames, each comprising a first and second CAN frame header, wherein the first and second frame headers are the same, the method comprises:
    transferring information about the ingress CAN frame into metadata in the egress Ethernet frame, and
    transferring Data in a Data field of each of the ingress CAN frames into a payload field of the egress Ethernet frame;
    or
    in the case that the obtaining an ingress CAN frame comprises obtaining first and second ingress CAN frames, each comprising a first and second CAN identifier respectively having corresponding respective first and second values of the first and second CAN identifiers, wherein the first and second values both map to a same value of a User Priority field, the method comprises:
    mapping the CAN identifier to the same value of a User Priority field,
    transferring information about the ingress CAN frame into metadata in the egress Ethernet frame; and
    encapsulating each ingress CAN frame in the egress Ethernet frame.
  8. The method according to claim 7, wherein the information about the ingress CAN frame into metadata in the egress Ethernet frame comprises information about one or each of the ingress CAN frames,
    and the metadata comprises one or more of:
    the header of ingress CAN frame,
    the number of CAN frames represented in the egress Ethernet frame,
    a manner of how the CAN frames are comprised in the egress Ethernet frame, and
    a timestamp of generation of the egress Ethernet frame.
  9. The method according to any preceding claim, wherein an ingress or egress Ethernet frame comprises a legacy Ethernet frame having a VLAN tag or an Automotive Ethernet frame.
  10. The method according to any preceding claim, further comprising
    - obtaining an ingress Ethernet frame,
    - Converting, at the data link layer, the ingress Ethernet frame into an egress CAN frame, based on reference information provided from one or more data link layer fields of the ingress Ethernet frame.
  11. The method according to claim 10, wherein the said more data link layer fields of the ingress Ethernet frame comprise Destination Address field, Source Address field, VLAN tag field, Ether-type field and fields of the IEEE 1722 data stream.
  12. The method according to claim 11, wherein the fields of the VLAN tag field comprise Tag Protocol ID, User Priority, Canonical Format Indicator, VLAN ID, and /or fields of the IEEE 1722 data stream comprise Header, Stream ID, Timestamp, Gateway Information and Packet Information fields.
  13. The method according to any of claims 10-12, wherein the converting, at the data link layer, the ingress Ethernet frame into an egress CAN frame comprises
    de-encapsulating a or each CAN frame from the ingress Ethernet frame into the corresponding egress CAN frame,
    or comprises
    transferring Data in the ingress Ethernet frame into a Data field of the egress CAN frame, e.g. the Data is Data which was previously extracted from a CAN frame and stored in the ingress Ethernet frame.
  14. The method according to any preceding claim, wherein the converting at the data link layer comprises converting at the data link layer only, such as without processing at a higher layer in a protocol stack.
  15. The method according to any preceding claim, further comprising
    - Determining, based on the reference information provided by the one or more data link layer fields of an or each ingress Ethernet frame, a first transmission manner for each egress CAN frame; and/or
    - Determining, based on the reference information provided by the one or more data link layer fields of an or each ingress Ethernet frame, and based on a value of a CAN identifier for the or each CAN frame represented in each ingress Ethernet frame, a second transmission manner of each egress CAN frame.
    - Determining, based on the reference information provided by the one or more data link layer fields of an or each ingress Ethernet frame and based on value of a stream ID, a third transmission manner for each egress CAN frame.
  16. The method according to claim 15, wherein the first or second transmission manners comprise
    unicast transmission of the egress CAN frame from a corresponding egress CAN port,
    broadcast transmission from corresponding egress CAN ports, and
    multicast transmission from corresponding egress CAN ports;
    wherein each CAN port is respectively for a different CAN bus.
  17. The method according to any preceding claim, further comprising
    - Determining, based on the value of the CAN identifier of the or each ingress CAN frame, a third transmission manner for each corresponding egress ethernet frame;
    - Wherein the third transmission manner is one of:
    ○ unicast transmission of the egress ethernet frame from a corresponding egress ethernet port,
    ○ broadcast transmission from corresponding egress ethernet ports, and
    ○ multicast transmission from corresponding egress ethernet ports.
  18. The method according to any preceding claim, further comprising
    - Performing access control for an ingress CAN frame or an ingress Ethernet frame based on information at the data link layer of the respective ingress CAN frame or ingress Ethernet frame.
  19. The method according to claim 18, wherein the information at the data link layer comprises the CAN identifier of the ingress CAN frame, or frame header information of the ingress Ethernet frame.
  20. A network gateway, for connection to an ingress/egress Ethernet port and ingress/egress CAN ports in a vehicle, wherein the gateway is configured to perform the method of any one of the preceding claims.
  21. A processor comprising a computation unit and memory, wherein the memory stores instructions for instructing the computation unit to perform the method of any one of the preceding claims.
  22. A method for switching to a target CAN bus, one or more CAN frames expressed in an ingress Ethernet frame, for in-vehicle networks, comprising
    - Determining, based on a reference information provided by the one or more data link layer fields of the ingress Ethernet frame, a first transmission manner for each egress CAN frame;
    and/or
    - Determining, based on the reference information provided the by one or more data link layer fields of the ingress Ethernet frame, and based on a value of a CAN identifier for the or each CAN frame represented in the ingress Ethernet frame, a second transmission manner of each egress CAN frame; and/or
    - Determining, based on the reference information provided by the one or more data link layer fields of the ingress Ethernet frame and based on value of a stream ID, a third transmission manner for each egress CAN frame
    - Transmitting the or each egress CAN frame according to the determined transmission manner.
PCT/CN2019/072577 2019-01-21 2019-01-21 Ethernet and controller area network protocol interconversion for in-vehicle networks WO2020150872A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980089475.3A CN113302885A (en) 2019-01-21 2019-01-21 Ethernet and controller area network protocol conversion for vehicular networks
PCT/CN2019/072577 WO2020150872A1 (en) 2019-01-21 2019-01-21 Ethernet and controller area network protocol interconversion for in-vehicle networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/072577 WO2020150872A1 (en) 2019-01-21 2019-01-21 Ethernet and controller area network protocol interconversion for in-vehicle networks

Publications (1)

Publication Number Publication Date
WO2020150872A1 true WO2020150872A1 (en) 2020-07-30

Family

ID=71735869

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/072577 WO2020150872A1 (en) 2019-01-21 2019-01-21 Ethernet and controller area network protocol interconversion for in-vehicle networks

Country Status (2)

Country Link
CN (1) CN113302885A (en)
WO (1) WO2020150872A1 (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073238A (en) * 2020-09-03 2020-12-11 通号城市轨道交通技术有限公司 Network configuration management system
CN113595914A (en) * 2021-09-08 2021-11-02 南昌智能新能源汽车研究院 Static vehicle-mounted Ethernet switch message forwarding method, system and computer
CN113923172A (en) * 2021-07-28 2022-01-11 北京大学 FF field bus switch implementation method with time certainty
US20220231917A1 (en) * 2019-09-20 2022-07-21 Sonatus, Inc. System, method, and apparatus to support mixed network communications on a vehicle
WO2023004801A1 (en) * 2021-07-30 2023-02-02 华为技术有限公司 Task processing method and apparatus
WO2023151762A1 (en) * 2022-02-09 2023-08-17 Continental Automotive Technologies GmbH Motor vehicle gateway
CN116633716A (en) * 2023-05-24 2023-08-22 北京辉羲智能科技有限公司 Service-oriented CAN XL and Ethernet bridge chip
EP4218167A4 (en) * 2020-09-18 2023-10-25 Huawei Technologies Co., Ltd. Intrusion monitoring system, method and related products
EP4304136A1 (en) * 2022-07-08 2024-01-10 Nxp B.V. Control area network devices and method
EP4376363A1 (en) * 2022-11-22 2024-05-29 Continental Automotive Technologies GmbH A method and an arrangement for transporting ip packets over spi
US12046085B2 (en) 2019-09-20 2024-07-23 Sonatus, Inc. System, method, and apparatus for managing vehicle data collection
EP4241423A4 (en) * 2020-11-09 2024-08-14 Argo Ai Llc Systems and methods for obtaining data from multiple internal vehicle networks
US12094259B2 (en) 2020-03-06 2024-09-17 Sonatus, Inc. System, method, and apparatus for managing vehicle automation
US12103479B2 (en) 2023-01-06 2024-10-01 Sonatus, Inc. System, method, and apparatus for managing vehicle automation

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338831B (en) * 2021-12-02 2024-07-30 中国科学院空间应用工程与技术中心 Gateway communication method, communication equipment and storage medium
CN114301946B (en) * 2021-12-30 2023-06-16 湖南大学 Vehicle-mounted heterogeneous network system taking TSN as backbone network and vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119267A (en) * 2007-08-28 2008-02-06 杭州电子科技大学 CAN bus based signal real-time processing method
US20130136117A1 (en) * 2011-11-28 2013-05-30 Qualcomm Incorporated Wireless bridging in a hybrid communication network
CN105978778A (en) * 2016-07-01 2016-09-28 南京理工大学 Ethernet and serial port/CAN protocol conversion device based on STM32
CN106209758A (en) * 2014-11-18 2016-12-07 现代自动车株式会社 Method and apparatus with AVB technology interactive work disposal SOME/IP stream
WO2017140367A1 (en) * 2016-02-18 2017-08-24 Renesas Electronics Corporation Message handler
US20180091421A1 (en) * 2016-09-27 2018-03-29 Gigamon Inc. Flexible Inline Arrangements for Guiding Traffic Through Network Tools

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546118B (en) * 2012-03-12 2015-08-12 国家广播电影电视总局广播电视规划院 Business in a kind of C-DOCSIS system forwards and priority mapping method
KR101578064B1 (en) * 2013-11-01 2015-12-16 (주)티에이치엔 Method for transmitting packet and apparatuses using the same
CN108900400A (en) * 2018-06-22 2018-11-27 长春工业大学 A kind of CAN-Ethernet gateway Time-Series analysis strategy applied to automotive networking

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119267A (en) * 2007-08-28 2008-02-06 杭州电子科技大学 CAN bus based signal real-time processing method
US20130136117A1 (en) * 2011-11-28 2013-05-30 Qualcomm Incorporated Wireless bridging in a hybrid communication network
CN106209758A (en) * 2014-11-18 2016-12-07 现代自动车株式会社 Method and apparatus with AVB technology interactive work disposal SOME/IP stream
WO2017140367A1 (en) * 2016-02-18 2017-08-24 Renesas Electronics Corporation Message handler
CN105978778A (en) * 2016-07-01 2016-09-28 南京理工大学 Ethernet and serial port/CAN protocol conversion device based on STM32
US20180091421A1 (en) * 2016-09-27 2018-03-29 Gigamon Inc. Flexible Inline Arrangements for Guiding Traffic Through Network Tools

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11943109B2 (en) 2019-09-20 2024-03-26 Sonatus, Inc. System, method, and apparatus for extra vehicle communications control
US12095622B2 (en) 2019-09-20 2024-09-17 Sonatus, Inc. System, method, and apparatus for extra vehicle communications control
US20220231917A1 (en) * 2019-09-20 2022-07-21 Sonatus, Inc. System, method, and apparatus to support mixed network communications on a vehicle
US12073665B2 (en) 2019-09-20 2024-08-27 Sonatus, Inc. System, method, and apparatus for managing vehicle data collection
US12073664B2 (en) 2019-09-20 2024-08-27 Sonatus, Inc. System, method, and apparatus for managing vehicle data collection
US12058003B2 (en) 2019-09-20 2024-08-06 Sonatus, Inc. System, method, and apparatus to support mixed network communications on a vehicle
US12046086B2 (en) 2019-09-20 2024-07-23 Sonatus, Inc. System, method, and apparatus for managing vehicle data collection
US12047238B2 (en) * 2019-09-20 2024-07-23 Sonatus, Inc. System, method, and apparatus to support mixed network communications on a vehicle
US12046085B2 (en) 2019-09-20 2024-07-23 Sonatus, Inc. System, method, and apparatus for managing vehicle data collection
US12003374B2 (en) 2019-09-20 2024-06-04 Sonatus, Inc. System, method, and apparatus for extra vehicle communications control
US12094259B2 (en) 2020-03-06 2024-09-17 Sonatus, Inc. System, method, and apparatus for managing vehicle automation
CN112073238B (en) * 2020-09-03 2023-07-21 通号城市轨道交通技术有限公司 Network configuration management system
CN112073238A (en) * 2020-09-03 2020-12-11 通号城市轨道交通技术有限公司 Network configuration management system
EP4218167A4 (en) * 2020-09-18 2023-10-25 Huawei Technologies Co., Ltd. Intrusion monitoring system, method and related products
EP4241423A4 (en) * 2020-11-09 2024-08-14 Argo Ai Llc Systems and methods for obtaining data from multiple internal vehicle networks
CN113923172B (en) * 2021-07-28 2022-10-21 北京大学 FF field bus switch with time certainty
CN113923172A (en) * 2021-07-28 2022-01-11 北京大学 FF field bus switch implementation method with time certainty
WO2023004801A1 (en) * 2021-07-30 2023-02-02 华为技术有限公司 Task processing method and apparatus
CN113595914A (en) * 2021-09-08 2021-11-02 南昌智能新能源汽车研究院 Static vehicle-mounted Ethernet switch message forwarding method, system and computer
WO2023151762A1 (en) * 2022-02-09 2023-08-17 Continental Automotive Technologies GmbH Motor vehicle gateway
EP4304136A1 (en) * 2022-07-08 2024-01-10 Nxp B.V. Control area network devices and method
EP4376363A1 (en) * 2022-11-22 2024-05-29 Continental Automotive Technologies GmbH A method and an arrangement for transporting ip packets over spi
WO2024110545A1 (en) * 2022-11-22 2024-05-30 Continental Automotive Technologies GmbH A method and an arrangement for transporting ip packets over spi
US12103479B2 (en) 2023-01-06 2024-10-01 Sonatus, Inc. System, method, and apparatus for managing vehicle automation
CN116633716A (en) * 2023-05-24 2023-08-22 北京辉羲智能科技有限公司 Service-oriented CAN XL and Ethernet bridge chip

Also Published As

Publication number Publication date
CN113302885A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
WO2020150872A1 (en) Ethernet and controller area network protocol interconversion for in-vehicle networks
US11876879B2 (en) Message handler
US7440405B2 (en) Apparatus and method for packet forwarding with quality of service and rate control
US10841230B1 (en) Intelligent controller and sensor network bus, system and method
KR102164032B1 (en) Network devices and how to select transmission of network devices
US11089140B2 (en) Intelligent controller and sensor network bus, system and method including generic encapsulation mode
GB2462060A (en) Emulated LAN (ELAN) including specifying ports of a service member set and flooding a packet to the permitted members of the set.
US20220239528A1 (en) Relay device, vehicle, communication method, and communication program
CN112448981B (en) Method and device for transmitting data
WO2024001701A1 (en) Data processing method, apparatus and system
CN114866621B (en) TSN and 1553B protocol safety conversion device and method
WO2022116895A1 (en) Bier packet forwarding method, device, and system
WO2021254454A1 (en) Bier oam detection method, and device and system
CN117014384A (en) Message transmission method and message forwarding equipment
Cisco Remote Source-Route Bridging Commands
CN110493191B (en) Windows platform data forwarding method and device, electronic equipment and readable storage medium
Cisco Remote Source-Route Bridging Commands
Cisco Remote Source-Route Bridging Commands
Cisco Remote Source-Route Bridging Commands
WO2021055205A1 (en) Intelligent controller and sensor network bus, system and method including generic encapsulation mode
Kern et al. An automated data structure migration concept—From CAN to Ethernet/IP in automotive embedded systems (CANoverIP)
Cena et al. Composite CAN XL-Ethernet Networks for Next-Gen Automotive and Automation Systems
US20230412501A1 (en) Data processing method and apparatus, and chip
CN111193671B (en) Message processing method and device and readable storage medium
EP4254880A1 (en) Hardware ethernet header verification

Legal Events

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

Ref document number: 19911671

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19911671

Country of ref document: EP

Kind code of ref document: A1