KR102357938B1 - Operation method of communication node for mirroring in vehicle network - Google Patents
Operation method of communication node for mirroring in vehicle network Download PDFInfo
- Publication number
- KR102357938B1 KR102357938B1 KR1020170095325A KR20170095325A KR102357938B1 KR 102357938 B1 KR102357938 B1 KR 102357938B1 KR 1020170095325 A KR1020170095325 A KR 1020170095325A KR 20170095325 A KR20170095325 A KR 20170095325A KR 102357938 B1 KR102357938 B1 KR 102357938B1
- Authority
- KR
- South Korea
- Prior art keywords
- communication node
- function
- port
- communication
- mirroring
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/20—Support for services
- H04L49/208—Port mirroring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/35—Switches specially adapted for specific applications
- H04L49/354—Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]
Abstract
차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법이 개시된다. 본 발명에 따른 통신 노드의 동작 방법은 이더넷 기반의 차량 네트워크에 포함된 복수의 통신 노드들 중 제1 통신 노드의 동작 방법으로서, 복수의 통신 노드들 중 제2 통신 노드로부터 차량의 제1 기능의 동작을 나타내는 제1 메시지를 수신하는 단계, 복수의 통신 노드들 중 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드를 판단하는 단계, 복수의 통신 노드들 중 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드를 판단하는 단계 및 적어도 하나의 통신 노드로부터 수신되는 제2 메시지가 상기 제3 통신 노드로 미러링되도록 제1 기능에 대한 포트 미러링을 설정하는 단계를 포함한다.A method of operating a communication node for mirroring in a vehicle network is disclosed. The method of operating a communication node according to the present invention is a method of operating a first communication node among a plurality of communication nodes included in an Ethernet-based vehicle network, wherein the first function of the vehicle is performed from a second communication node among the plurality of communication nodes. Receiving a first message indicating the operation, determining a third communication node performing a second function corresponding to the first function among the plurality of communication nodes, data related to the second function among the plurality of communication nodes determining at least one communication node providing
Description
본 발명은 네트워크에서 스위치의 미러링(mirroring)을 위한 통신 노드의 동작 방법에 관한 것으로, 더욱 상세하게는 이더넷 기반의 차량 네트워크에서 이더넷 스위치의 미러링 기능을 통해 차량 전장 시스템을 구현하기 위한 통신 노드의 동작 방법에 관한 것이다.The present invention relates to a method of operating a communication node for mirroring of a switch in a network, and more particularly, to an operation of a communication node for implementing a vehicle electric system system through a mirroring function of an Ethernet switch in an Ethernet-based vehicle network it's about how
차량용 부품의 전자화가 급속도로 진행됨에 따라 차량에 탑재되는 전자 장치의 종류와 수가 크게 증가되고 있다. 전자 장치는 크게 파워트레인(power train) 제어 시스템, 바디(body) 제어 시스템, 새시(chassis) 제어 시스템, 차량 네트워크(network), 멀티미디어(multimedia) 시스템 등에서 사용될 수 있다. 파워트레인 제어 시스템은 엔진 제어 시스템, 자동 변속 제어 시스템 등을 의미할 수 있다. 바디 제어 시스템은 바디 전장품 제어 시스템, 편의 장치 제어 시스템, 램프(lamp) 제어 시스템 등을 의미할 수 있다. 새시 제어 시스템은 조향 장치 제어 시스템, 브레이크(brake) 제어 시스템, 서스팬션(suspension) 제어 시스템 등을 의미할 수 있다. 차량 네트워크는 CAN(controller area network), 플렉스레이(FlexRay) 기반의 네트워크, MOST(media oriented system transport) 기반의 네트워크 등을 의미할 수 있다. 멀티미디어 시스템은 항법 장치 시스템, 텔레메틱스(telematics) 시스템, 인포테인먼트(infotainment) 시스템 등을 의미할 수 있다.2. Description of the Related Art As electronic parts for vehicles are rapidly progressing, the types and number of electronic devices mounted on vehicles are greatly increasing. The electronic device may be largely used in a power train control system, a body control system, a chassis control system, a vehicle network, a multimedia system, and the like. The powertrain control system may refer to an engine control system, an automatic shift control system, or the like. The body control system may refer to a body electronic device control system, a convenience device control system, a lamp control system, and the like. The chassis control system may mean a steering system control system, a brake control system, a suspension control system, or the like. The vehicle network may refer to a controller area network (CAN), a FlexRay-based network, a media oriented system transport (MOST)-based network, and the like. The multimedia system may refer to a navigation device system, a telematics system, an infotainment system, or the like.
이러한 시스템들 및 시스템들 각각을 구성하는 전자 장치들은 차량 네트워크를 통해 연결되어 있으며, 전자 장치들 각각의 기능을 지원하기 위한 차량 네트워크가 요구되고 있다. CAN은 최대 1Mbps의 전송 속도를 지원할 수 있으며, 충돌된 프레임(frame)의 자동 재전송, CRC(cyclic redundancy check) 기반의 오류 검출 등을 지원할 수 있다. 플렉스레이 기반의 네트워크는 최대 10Mbps의 전송 속도를 지원할 수 있으며, 2채널을 통한 데이터의 동시 전송, 동기 방식의 데이터 전송 등을 지원할 수 있다. MOST 기반의 네트워크는 고품질의 멀티미디어를 위한 통신 네트워크로, 최대 150Mbps의 전송 속도를 지원할 수 있다.These systems and electronic devices constituting each of the systems are connected through a vehicle network, and a vehicle network for supporting the respective functions of the electronic devices is required. CAN may support a transmission rate of up to 1 Mbps, and may support automatic retransmission of a collision frame, error detection based on a cyclic redundancy check (CRC), and the like. A FlexRay-based network can support a transmission rate of up to 10 Mbps, and can support simultaneous data transmission through two channels, synchronous data transmission, and the like. The MOST-based network is a communication network for high-quality multimedia and can support transmission rates of up to 150Mbps.
한편, 차량의 텔레메틱스 시스템, 인포테인먼트 시스템, 향상된 안전 시스템 등은 높은 전송 속도, 시스템 확장성 등을 요구하며, CAN, 플렉스레이 기반의 네트워크 등은 이를 충분히 지원하지 못한다. MOST 기반의 네트워크는 CAN 및 플렉스레이 기반의 네트워크에 비해 높은 전송 속도를 지원할 수 있으나, 차량의 모든 네트워크에 MOST 기반의 네트워크가 적용되기 위해서는 많은 비용이 소모된다. 이러한 문제들에 의해, 차량 네트워크로 이더넷(ethernet) 기반의 네트워크가 고려될 수 있다. 이더넷 기반의 네트워크는 한 쌍의 권선을 통한 양방향 통신을 지원할 수 있으며, 최대 10Gbps의 전송 속도를 지원할 수 있다.On the other hand, a vehicle's telematics system, infotainment system, and improved safety system require high transmission speed and system scalability, and CAN and FlexRay-based networks do not sufficiently support this. A MOST-based network can support a higher transmission speed than a CAN- and FlexRay-based network, but it consumes a lot of cost to apply the MOST-based network to all networks of a vehicle. Due to these problems, an Ethernet-based network may be considered as a vehicle network. An Ethernet-based network can support bidirectional communication through a pair of windings, and can support transmission rates of up to 10 Gbps.
구체적으로, 이더넷 기반의 차량 네트워크는 이더넷 기반의 통신이 가능한 스위치(switch)를 통해 차량의 전장 시스템을 구현할 수 있다. 예를 들어, 스위치는 차량 네트워크에 포함된 전자 장치를 통해 수신되는 데이터를 처리하고, 처리된 데이터를 출력 가능한 전자 장치로 전송하는 기능을 수행함으로써 전장 시스템의 구현할 수 있다. 그러나, 최근 차량 네트워크에 포함된 전자 장치의 수가 증가하고, 이에 따라 처리되어야 하는 데이터가 증가함으로써 차량의 전장 시스템을 구현하기 어려운 문제가 있다.Specifically, the Ethernet-based vehicle network may implement an electric vehicle system of the vehicle through a switch capable of Ethernet-based communication. For example, the switch may implement an electric vehicle system by processing data received through an electronic device included in the vehicle network and transmitting the processed data to an outputable electronic device. However, as the number of electronic devices included in the vehicle network increases in recent years, and thus data to be processed increases, it is difficult to implement an electric vehicle system.
상기와 같은 문제점을 해결하기 위한 본 발명의 목적은 이더넷 기반의 차량 네트워크에서 이더넷 스위치의 미러링 기능을 통해 차량 전장 시스템을 구현하기 위한 통신 노드의 동작 방법을 제공하는 데 있다.An object of the present invention to solve the above problems is to provide a method of operating a communication node for implementing a vehicle electric system system through a mirroring function of an Ethernet switch in an Ethernet-based vehicle network.
상기 목적을 달성하기 위한 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법은 이더넷(ethernet) 기반의 차량 네트워크에 포함된 복수의 통신 노드들 중 제1 통신 노드의 동작 방법으로서, 상기 복수의 통신 노드들 중 제2 통신 노드로부터 차량의 제1 기능의 동작을 나타내는 제1 메시지를 수신하는 단계, 상기 복수의 통신 노드들 중 상기 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드를 판단하는 단계, 상기 복수의 통신 노드들 중 상기 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드를 판단하는 단계 및 상기 적어도 하나의 통신 노드로부터 수신되는 제2 메시지가 상기 제3 통신 노드로 미러링(mirroring)되도록 상기 제1 기능에 대한 포트 미러링을 설정하는 단계를 포함한다.In order to achieve the above object, a method of operating a communication node for mirroring in a vehicle network according to an embodiment of the present invention for achieving the above object is a method of operating a first communication node among a plurality of communication nodes included in an Ethernet-based vehicle network. receiving a first message indicating the operation of a first function of the vehicle from a second communication node of the plurality of communication nodes, performing a second function corresponding to the first function of the plurality of communication nodes Determining a third communication node to: determining at least one communication node providing data related to the second function among the plurality of communication nodes, and a second message received from the at least one communication node and configuring port mirroring for the first function to be mirrored to the third communication node.
여기서, 상기 제3 통신 노드를 판단하는 단계는 상기 차량에서 수행되는 복수의 기능들 각각에 대한 기능 코드(function code), 상기 기능 코드 각각에 대한 타겟 주소(target address) 및 상기 기능 코드 각각에 대한 VLAN ID(Virtual LAN identifier)가 포함된 제1 테이블을 기반으로 상기 제3 통신 노드를 판단할 수 있다.Here, the determining of the third communication node includes a function code for each of a plurality of functions performed in the vehicle, a target address for each of the function codes, and a function code for each of the function codes. The third communication node may be determined based on the first table including a virtual LAN identifier (VLAN ID).
여기서, 상기 제3 통신 노드를 판단하는 단계는 상기 제1 테이블에서 상기 제1 기능의 기능 코드에 상응하는 타겟 주소를 확인하는 단계 및 상기 확인된 타겟 주소가 지시하는 통신 노드를 상기 제1 기능에 상응하는 제2 기능을 수행하는 상기 제3 통신 노드로 판단하는 단계를 포함할 수 있다.Here, the step of determining the third communication node includes: checking a target address corresponding to the function code of the first function in the first table; and assigning the communication node indicated by the checked target address to the first function and determining that the third communication node performs a corresponding second function.
여기서, 상기 적어도 하나의 통신 노드를 판단하는 단계는 상기 제1 통신 노드에 포함된 복수의 포트(port)들의 포트 번호, 상기 복수의 포트들을 통해 연결된 통신 노드의 MAC 주소(MAC address) 및 상기 복수의 포트들을 통해 연결된 통신 노드의 VLAN ID를 포함하는 제2 테이블을 기반으로 상기 적어도 하나의 통신 노드를 판단할 수 있다.Here, the determining of the at least one communication node includes port numbers of a plurality of ports included in the first communication node, a MAC address of a communication node connected through the plurality of ports, and the plurality of ports. The at least one communication node may be determined based on a second table including VLAN IDs of communication nodes connected through ports of .
여기서, 상기 적어도 하나의 통신 노드를 판단하는 단계는 상기 제2 테이블에서 상기 제1 기능의 기능 코드에 상응하는 VLAN ID와 동일한 VLAN ID를 가지는 적어도 하나의 포트를 확인하는 단계 및 상기 확인된 포트를 통해 연결된 통신 노드를 상기 제2 기능과 관련된 데이터를 제공하는 상기 적어도 하나의 통신 노드로 판단하는 단계를 포함할 수 있다.Here, the determining of the at least one communication node includes: identifying at least one port having the same VLAN ID as the VLAN ID corresponding to the function code of the first function in the second table; It may include determining a communication node connected through the at least one communication node providing data related to the second function.
여기서, 상기 포트 미러링을 설정하는 단계는 상기 제1 통신 노드 및 상기 제3 통신 노드 간을 연결하는 포트를 상기 제1기능의 미러링을 위한 대상 포트(target port)로 설정하는 단계 및 상기 제1 통신 노드 및 상기 적어도 하나의 통신 노드 간을 연결하는 포트를 상기 제1 기능의 미러링을 위한 미러링 포트(mirroring port)로 설정하는 단계를 포함할 수 있다.Here, the step of setting the port mirroring includes the steps of setting a port connecting between the first communication node and the third communication node as a target port for mirroring of the first function and the first communication and setting a port connecting a node and the at least one communication node as a mirroring port for mirroring of the first function.
여기서, 상기 제1 통신 노드의 동작 방법은 상기 적어도 하나의 통신 노드로부터 상기 미러링 포트를 통해 상기 제2 메시지를 수신하는 경우, 상기 제2 메시지를 상기 대상 포트를 통해 상기 제3 통신 노드로 전송하는 단계를 더 포함할 수 있다.Here, in the method of operating the first communication node, when receiving the second message from the at least one communication node through the mirroring port, transmitting the second message to the third communication node through the target port It may include further steps.
여기서, 상기 제1 통신 노드는 상기 차량 네트워크에 포함된 스위치(switch)이고, 상기 제2 통신 노드, 상기 제3 통신 노드 및 상기 적어도 하나의 통신 노드는 상기 제1 통신 노드에 연결된 엔드 노드(end node)일 수 있다.Here, the first communication node is a switch included in the vehicle network, and the second communication node, the third communication node, and the at least one communication node are end nodes connected to the first communication node. node).
상기 목적을 달성하기 위한 본 발명의 다른 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법은 이더넷(ethernet) 기반의 차량 네트워크에 포함된 복수의 통신 노드들 중 제1 통신 노드의 동작 방법으로서, 상기 복수의 통신 노드들 중 적어도 하나의 통신 노드로부터 차량의 기능과 관련된 데이터가 포함된 메시지를 수신하는 단계, 상기 기능에 대한 포트 미러링(port mirroring)의 설정 여부를 판단하는 단계 및 상기 기능에 대한 포트 미러링의 설정 여부에 기초하여 상기 메시지를 처리하는 단계를 포함한다.In order to achieve the above object, a method of operating a communication node for mirroring in a vehicle network according to another embodiment of the present invention is a method of operating a first communication node among a plurality of communication nodes included in an Ethernet-based vehicle network. Receiving a message including data related to a vehicle function from at least one communication node among the plurality of communication nodes, determining whether to set port mirroring for the function, and the function and processing the message based on whether or not port mirroring is configured for the .
여기서, 상기 포트 미러링의 설정 여부를 판단하는 단계는 상기 제1 통신 노드 및 상기 적어도 하나의 통신 노드 간을 연결하는 포트가 상기 기능의 미러링을 위한 미러링 포트(mirroring port)인 경우, 상기 기능에 대한 포트 미러링이 설정된 것으로 판단할 수 있다.Here, in the step of determining whether to set the port mirroring, when the port connecting between the first communication node and the at least one communication node is a mirroring port for mirroring of the function, the function for the It can be determined that port mirroring is set.
여기서, 상기 포트 미러링의 설정 여부를 판단하는 단계는 상기 제1 통신 노드 및 상기 적어도 하나의 통신 노드 간을 연결하는 포트가 상기 기능의 미러링을 위한 미러링 포트가 아닌 경우, 상기 기능에 대한 포트 미러링이 설정되지 않은 것으로 판단할 수 있다.Here, in the step of determining whether to set the port mirroring, if the port connecting between the first communication node and the at least one communication node is not a mirroring port for mirroring of the function, port mirroring for the function is It can be judged that it is not set.
여기서, 상기 메시지를 처리하는 단계는 상기 기능에 대한 포트 미러링이 설정된 경우, 상기 기능의 미러링을 위한 대상 포트(target port)를 통해 연결된 제3 통신 노드로 상기 메시지를 전송할 수 있다.Here, in the step of processing the message, when port mirroring for the function is set, the message may be transmitted to a third communication node connected through a target port for mirroring of the function.
여기서, 상기 메시지를 처리하는 단계는 상기 기능에 대한 포트 미러링이 설정되지 않은 경우, 상기 메시지를 삭제할 수 있다.Here, in the step of processing the message, when port mirroring for the function is not set, the message may be deleted.
여기서, 상기 제1 통신 노드는 상기 차량 네트워크에 포함된 스위치(switch)이고, 상기 적어도 하나의 통신 노드 및 상기 제2 통신 노드는 상기 제1 통신 노드에 연결된 엔드 노드(end node)일 수 있다.Here, the first communication node may be a switch included in the vehicle network, and the at least one communication node and the second communication node may be end nodes connected to the first communication node.
상기 목적을 달성하기 위한 본 발명의 또 다른 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 수행하는 통신 노드는 이더넷(ethernet) 기반의 차량 네트워크의 제1 통신 노드로서, 프로세서(processor) 및 상기 프로세서를 통해 실행되는 적어도 하나의 명령이 저장된 메모리(memory)를 포함하고, 상기 적어도 하나의 명령은 상기 복수의 통신 노드들 중 제2 통신 노드로부터 차량의 제1 기능의 동작을 나타내는 제1 메시지를 수신하고, 상기 복수의 통신 노드들 중 상기 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드를 판단하고, 상기 복수의 통신 노드들 중 상기 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드를 판단하고, 상기 적어도 하나의 통신 노드로부터 수신되는 제2 메시지가 상기 제3 통신 노드로 미러링(mirroring)되도록 상기 제1 기능에 대한 포트 미러링을 설정하고, 그리고 상기 적어도 하나의 통신 노드로부터 상기 제2 메시지를 수신하는 경우, 상기 제2 메시지를 상기 설정된 포트 미러링을 기반으로 상기 제3 통신 노드로 전송하도록 실행된다.In order to achieve the above object, a communication node performing a method of operating a communication node for mirroring in a vehicle network according to another embodiment of the present invention for achieving the above object is a first communication node of an Ethernet-based vehicle network, and a processor (processor) ) and a memory (memory) in which at least one command executed through the processor is stored, wherein the at least one command represents a first operation of a first function of the vehicle from a second communication node among the plurality of communication nodes Receive 1 message, determine a third communication node performing a second function corresponding to the first function among the plurality of communication nodes, and provide data related to the second function among the plurality of communication nodes determine at least one communication node to: configure port mirroring for the first function such that a second message received from the at least one communication node is mirrored to the third communication node; and When receiving the second message from the communication node of , it is executed to transmit the second message to the third communication node based on the configured port mirroring.
여기서, 상기 적어도 하나의 명령은 상기 제3 통신 노드를 판단하는 과정에서 상기 차량에서 수행되는 복수의 기능들 각각에 대한 기능 코드(function code), 상기 기능 코드 각각에 대한 타겟 주소(target address) 및 상기 기능 코드 각각에 대한 VLAN ID(Virtual LAN identifier)가 포함된 제1 테이블을 기반으로 상기 제3 통신 노드를 판단하도록 실행될 수 있다.Here, the at least one command includes a function code for each of a plurality of functions performed in the vehicle in the process of determining the third communication node, a target address for each of the function codes, and and determine the third communication node based on a first table including a virtual LAN identifier (VLAN ID) for each of the function codes.
여기서, 상기 적어도 하나의 명령은 상기 제3 통신 노드를 판단하는 과정에서 상기 제1 테이블에서 상기 제1 기능의 기능 코드에 상응하는 타겟 주소를 확인하고, 그리고 상기 확인된 타겟 주소가 지시하는 통신 노드를 상기 제1 기능에 상응하는 제2 기능을 수행하는 상기 제3 통신 노드로 판단하도록 실행될 수 있다.Here, the at least one command identifies a target address corresponding to the function code of the first function in the first table in the process of determining the third communication node, and a communication node indicated by the identified target address may be executed to determine as the third communication node performing a second function corresponding to the first function.
여기서, 상기 적어도 하나의 명령은 상기 적어도 하나의 통신 노드를 판단하는 과정에서 상기 제1 통신 노드에 포함된 복수의 포트(port)들의 포트 번호, 상기 복수의 포트들을 통해 연결된 통신 노드의 MAC 주소(MAC address) 및 상기 복수의 포트들을 통해 연결된 통신 노드의 VLAN ID를 포함하는 제2 테이블을 기반으로 상기 적어도 하나의 통신 노드를 판단하도록 실행될 수 있다.Here, the at least one command is a port number of a plurality of ports included in the first communication node in the process of determining the at least one communication node, a MAC address of a communication node connected through the plurality of ports ( MAC address) and a second table including VLAN IDs of communication nodes connected through the plurality of ports to determine the at least one communication node.
여기서, 상기 적어도 하나의 명령은 상기 적어도 하나의 통신 노드를 판단하는 과정에서 상기 제2 테이블에서 상기 제1 기능의 기능 코드에 상응하는 VLAN ID와 동일한 VLAN ID를 가지는 적어도 하나의 포트를 확인하고, 그리고 상기 확인된 포트를 통해 연결된 통신 노드를 상기 제2 기능과 관련된 데이터를 제공하는 상기 적어도 하나의 통신 노드로 판단하도록 실행될 수 있다.Here, the at least one command identifies at least one port having the same VLAN ID as the VLAN ID corresponding to the function code of the first function in the second table in the process of determining the at least one communication node, and determine a communication node connected through the identified port as the at least one communication node providing data related to the second function.
여기서, 상기 적어도 하나의 명령은 상기 포트 미러링을 설정하는 과정에서 상기 제1 통신 노드 및 상기 제3 통신 노드 간을 연결하는 포트를 상기 제1기능의 미러링을 위한 대상 포트(target port)로 설정하고, 그리고 상기 제1 통신 노드 및 상기 적어도 하나의 통신 노드 간을 연결하는 포트를 상기 제1 기능의 미러링을 위한 미러링 포트(mirroring port)로 설정하도록 실행될 수 있다.Here, the at least one command sets a port connecting between the first communication node and the third communication node as a target port for mirroring of the first function in the process of setting the port mirroring, and , and setting a port connecting the first communication node and the at least one communication node as a mirroring port for mirroring of the first function.
본 발명에 의하면, 차량 네트워크에서 데이터를 처리하기 위해 소요되는 시간을 감소시킬 수 있고, 이를 통해 차량의 전장 시스템을 구현하기 위한 효율을 향상시킬 수 있는 효과가 있다. 또한, 본 발명에 따른 통신 노드의 동작 방법은 이더넷 기반의 통신 방식 이외의 통신 방식을 통해 수신된 데이터를 별도의 게이트웨이에 의한 처리 없이 처리할 수 있는 효과가 있다.According to the present invention, it is possible to reduce the time required to process data in the vehicle network, thereby improving the efficiency for implementing the vehicle electric system. In addition, the method of operating a communication node according to the present invention has the effect of processing data received through a communication method other than the Ethernet-based communication method without processing by a separate gateway.
도 1은 차량 네트워크의 토폴로지에 대한 일 실시예를 도시한 블록도이다.
도 2는 차량 네트워크를 구성하는 통신 노드의 구조에 대한 일 실시예를 도시한 블록도이다.
도 3은 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 설명하기 위한 블록도이다.
도 4는 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 도시한 흐름도이다.
도 5는 도 4에 도시된 통신 노드의 동작 방법에서 제3 통신 노드를 판단하는 방법을 도시한 흐름도이다.
도 6은 도 4에 도시된 통신 노드의 동작 방법에서 적어도 하나의 통신 노드를 판단하는 방법을 도시한 흐름도이다.
도 7은 도 4에 도시된 통신 노드의 동작 방법에서 포트 미러링을 설정하는 방법을 도시한 흐름도이다.
도 8은 본 발명의 다른 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 도시한 흐름도이다.
도 9는 본 발명의 또 다른 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 설명하기 위한 블록도이다.1 is a block diagram illustrating an embodiment of a topology of a vehicle network.
2 is a block diagram illustrating an embodiment of a structure of a communication node constituting a vehicle network.
3 is a block diagram illustrating a method of operating a communication node for mirroring in a vehicle network according to an embodiment of the present invention.
4 is a flowchart illustrating a method of operating a communication node for mirroring in a vehicle network according to an embodiment of the present invention.
5 is a flowchart illustrating a method of determining a third communication node in the operation method of the communication node shown in FIG. 4 .
6 is a flowchart illustrating a method of determining at least one communication node in the method of operating a communication node shown in FIG. 4 .
7 is a flowchart illustrating a method of setting port mirroring in the operating method of the communication node shown in FIG.
8 is a flowchart illustrating a method of operating a communication node for mirroring in a vehicle network according to another embodiment of the present invention.
9 is a block diagram for explaining a method of operating a communication node for mirroring in a vehicle network according to another embodiment of the present invention.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다.Since the present invention can have various changes and can have various embodiments, specific embodiments are illustrated in the drawings and described in detail. However, this is not intended to limit the present invention to specific embodiments, and it should be understood to include all modifications, equivalents and substitutes included in the spirit and scope of the present invention.
제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.Terms such as first, second, etc. may be used to describe various elements, but the elements should not be limited by the terms. The above terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, a first component may be referred to as a second component, and similarly, a second component may also be referred to as a first component. and/or includes a combination of a plurality of related listed items or any of a plurality of related listed items.
어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.When an element is referred to as being “connected” or “connected” to another element, it is understood that it may be directly connected or connected to the other element, but other elements may exist in between. it should be On the other hand, when it is said that a certain element is "directly connected" or "directly connected" to another element, it should be understood that the other element does not exist in the middle.
본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the present application are only used to describe specific embodiments, and are not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly dictates otherwise. In the present application, terms such as “comprise” or “have” are intended to designate that a feature, number, step, operation, component, part, or combination thereof described in the specification exists, but one or more other features It should be understood that this does not preclude the existence or addition of numbers, steps, operations, components, parts, or combinations thereof.
다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가진 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless defined otherwise, all terms used herein, including technical and scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Terms such as those defined in a commonly used dictionary should be interpreted as having a meaning consistent with the meaning in the context of the related art, and should not be interpreted in an ideal or excessively formal meaning unless explicitly defined in the present application. does not
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 본 발명을 설명함에 있어 전체적인 이해를 용이하게 하기 위하여 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in more detail with reference to the accompanying drawings. In describing the present invention, in order to facilitate the overall understanding, the same reference numerals are used for the same components in the drawings, and duplicate descriptions of the same components are omitted.
도 1은 차량 네트워크의 토폴로지(network topology)의 일 실시예를 도시한 블록도이다.1 is a block diagram illustrating an embodiment of a network topology of a vehicle network.
도 1을 참조하면, 차량 네트워크를 구성하는 통신 노드(communication node)는 게이트웨이(gateway), 스위치(switch)(또는, 브릿지(bridge)) 또는 엔드 노드(end node) 등을 의미할 수 있다. 게이트웨이(100)는 적어도 하나의 스위치(110, 110-1, 110-2, 120, 130)와 연결될 수 있으며, 서로 다른 네트워크를 연결할 수 있다. 예를 들어, 게이트웨이(100)는 CAN(controller area network)(또는, 플렉스레이(FlexRay), MOST(media oriented system transport), LIN(local interconnect network) 등) 프로토콜(protocol)을 지원하는 스위치와 이더넷(ethernet) 프로토콜을 지원하는 스위치 간을 연결할 수 있다. 스위치들(110, 110-1, 110-2, 120, 130) 각각은 적어도 하나의 엔드 노드(111, 112, 113, 121, 122, 123, 131, 132, 133)와 연결될 수 있다. 스위치들(110, 110-1, 110-2, 120, 130) 각각은 엔드 노드(111, 112, 113, 121, 122, 123, 131, 132, 133)를 상호 연결할 수 있고, 자신과 연결된 엔드 노드(111, 112, 113, 121, 122, 123, 131, 132, 133)를 제어할 수 있다.Referring to FIG. 1 , a communication node constituting a vehicle network may mean a gateway, a switch (or a bridge), an end node, or the like. The
엔드 노드(111, 112, 113, 121, 122, 123, 131, 132, 133)는 차량에 포함된 각종 장치를 제어하는 ECU(electronic control unit)를 의미할 수 있다. 예를 들어, 엔드 노드(111, 112, 113, 121, 122, 123, 131, 132, 133)는 인포테인먼트(infotainment) 장치(예를 들어, 디스플레이(display) 장치, 내비게이션(navigation) 장치, 어라운드 뷰 모니터링(around view monitoring) 장치) 등을 구성하는 ECU를 의미할 수 있다.The
한편, 차량 네트워크를 구성하는 통신 노드들(즉, 게이트웨이, 스위치, 엔드 노드 등)은 스타(star) 토폴로지, 버스(bus) 토폴로지, 링(ring) 토폴로지, 트리(tree) 토폴로지, 메쉬(mesh) 토폴로지 등으로 연결될 수 있다. 또한, 차량 네트워크를 구성하는 통신 노드들 각각은 CAN 프로토콜, 플렉스레이 프로토콜, MOST 프로토콜, LIN 프로토콜, 이더넷 프로토콜 등을 지원할 수 있다. 본 발명에 따른 실시예들은 앞서 설명된 네트워크 토폴로지에 적용될 수 있으며, 본 발명에 따른 실시예들이 적용되는 네트워크 토폴로지는 이에 한정되지 않고 다양하게 구성될 수 있다.On the other hand, communication nodes (ie, gateways, switches, end nodes, etc.) constituting the vehicle network include a star topology, a bus topology, a ring topology, a tree topology, and a mesh. It can be connected by topology or the like. In addition, each of the communication nodes constituting the vehicle network may support a CAN protocol, a FlexRay protocol, a MOST protocol, a LIN protocol, an Ethernet protocol, and the like. Embodiments according to the present invention may be applied to the network topology described above, and the network topology to which embodiments according to the present invention are applied is not limited thereto and may be configured in various ways.
도 2는 차량 네트워크를 구성하는 통신 노드의 구조에 대한 일 실시예를 도시한 블록도이다.2 is a block diagram illustrating an embodiment of a structure of a communication node constituting a vehicle network.
도 2를 참조하면, 차량 네트워크를 구성하는 통신 노드(200)는 PHY 계층 유닛(physical layer unit)(210) 및 컨트롤러(controller) 유닛(220)을 포함할 수 있다. 또한, 통신 노드(200)는 파워(power)를 공급하는 레귤레이터(regulator)(미도시)를 더 포함할 수 있다. 이때, 컨트롤러 유닛(220)은 MAC(medium access control) 계층을 포함하여 구현될 수 있다. PHY 계층 유닛(210)은 다른 통신 노드로부터 신호를 수신할 수 있거나, 다른 통신 노드로 신호를 전송할 수 있다. 컨트롤러 유닛(220)은 PHY 계층 유닛(210)을 제어할 수 있고, 다양한 기능들(예를 들어, 인포테인먼트 기능 등)을 수행할 수 있다. PHY 계층 유닛(210)과 컨트롤러 유닛(220)은 하나의 SoC(System on Chip)로 구현될 수도 있고, 별도의 칩으로 구성될 수도 있다.Referring to FIG. 2 , the
PHY 계층 유닛(210)과 컨트롤러 유닛(220)은 매체 독립 인터페이스(media independent interface, MII)(230)를 통해 연결될 수 있다. MII(230)는 IEEE 802.3에 규정된 인터페이스를 의미할 수 있으며, PHY 계층 유닛(210)과 컨트롤러 유닛(220) 간의 데이터 인터페이스 및 관리 인터페이스로 구성될 수 있다. MII(230) 대신에 RMII(reduced MII), GMII(gigabit MII), RGMII(reduced GMII), SGMII(serial GMII), XGMII(10 GMII) 중 하나의 인터페이스가 사용될 수 있다. 데이터 인터페이스는 전송 채널(channel) 및 수신 채널을 포함할 수 있으며, 채널들 각각은 독립적인 클럭(clock), 데이터 및 제어 신호를 가질 수 있다. 관리 인터페이스는 2-신호 인터페이스로 구성될 수 있으며, 하나는 클럭을 위한 신호이고 다른 하나는 데이터를 위한 신호일 수 있다.The
PHY 계층 유닛(210)은 PHY 계층 인터페이스 유닛(211), PHY 계층 프로세서(processor)(212) 및 PHY 계층 메모리(memory)(213) 등을 포함할 수 있다. PHY 계층 유닛(210)의 구성은 이에 한정되지 않으며, PHY 계층 유닛(210)은 다양하게 구성될 수 있다. PHY 계층 인터페이스 유닛(211)은 컨트롤러 유닛(220)으로부터 수신된 신호를 PHY 계층 프로세서(212)로 전송할 수 있고, PHY 계층 프로세서(212)로부터 수신된 신호를 컨트롤러 유닛(220)에 전송할 수 있다. PHY 계층 프로세서(212)는 PHY 계층 인터페이스 유닛(211) 및 PHY 계층 메모리(213) 각각의 동작을 제어할 수 있다. PHY 계층 프로세서(212)는 전송할 신호의 변조 또는 수신된 신호의 복조를 수행할 수 있다. PHY 계층 프로세서(212)는 신호를 입력 또는 출력하도록 PHY 계층 메모리(213)를 제어할 수 있다. PHY 계층 메모리(213)는 수신된 신호를 저장할 수 있고, PHY 계층 프로세서(212)의 요청에 따라 저장된 신호를 출력할 수 있다.The
컨트롤러 유닛(220)은 MII(230)를 통해 PHY 계층 유닛(210)에 대한 모니터링 및 제어를 수행할 수 있다. 컨트롤러 유닛(220)은 컨트롤러 인터페이스 유닛(221), 컨트롤러 프로세서(222), 주 메모리(223) 및 보조 메모리(224) 등을 포함할 수 있다. 컨트롤러 유닛(220)의 구성은 이에 한정되지 않으며, 컨트롤러 유닛(220)은 다양하게 구성될 수 있다. 컨트롤러 인터페이스 유닛(221)은 PHY 계층 유닛(210)(즉, PHY 계층 인터페이스 유닛(211)) 또는 상위 계층(미도시)으로부터 신호를 수신할 수 있고, 수신된 신호를 컨트롤러 프로세서(222)에 전송할 수 있고, 컨트롤러 프로세서(222)로부터 수신된 신호를 PHY 계층 유닛(210) 또는 상위 계층에 전송할 수 있다. 컨트롤러 프로세서(222)는 컨트롤러 인터페이스 유닛(221), 주 메모리(223) 및 보조 메모리(224)를 제어하기 위한 독립된 메모리 컨트롤 로직(control logic) 또는 통합 메모리 컨트롤 로직을 더 포함할 수 있다. 메모리 컨트롤 로직은 주 메모리(223) 및 보조 메모리(224)에 포함되어 구현될 수도 있으며, 또는 컨트롤러 프로세서(222)에 포함되어 구현될 수도 있다.The
주 메모리(223) 및 보조 메모리(224) 각각은 컨트롤러 프로세서(222)에 의해 처리된 신호를 저장할 수 있고, 컨트롤러 프로세서(222)의 요청에 따라 저장된 신호를 출력할 수 있다. 주 메모리(223)는 컨트롤러 프로세서(222)의 동작을 위해 필요한 데이터를 일시 저장하는 휘발성 메모리(예를 들어, RAM(random access memory) 등)를 의미할 수 있다. 보조 메모리(224)는 운영체제 코드(operating system code)(예를 들어, 커널(kernel) 및 디바이스 드라이버(device driver))와 컨트롤러 프로세서(220)의 기능을 수행하기 위한 응용 프로그램(application program) 코드 등이 저장되는 비휘발성 메모리를 의미할 수 있다. 비휘발성 메모리로 빠른 처리 속도를 가지는 플래쉬 메모리(flash memory)가 사용될 수 있고, 또는 대용량의 데이터 저장을 위한 하드 디스크 드라이브(hard disc drive, HDD), CD-ROM(compact disc-read only memory) 등이 사용될 수 있다. 컨트롤러 프로세서(222)는 통상적으로 적어도 하나의 프로세싱 코어(core)를 포함하는 로직 회로로 구성될 수 있다. 컨트롤러 프로세서(222)로 ARM(Advanced RISC Machines Ltd.) 계열의 코어, 아톰(atom) 계열의 코어 등이 사용될 수 있다.Each of the
아래에서는, 차량 네트워크에 속하는 통신 노드와 이에 대응하는 상대(counterpart) 통신 노드에서 수행되는 방법이 설명될 것이다. 이하에서, 제1 통신 노드에서 수행되는 방법(예를 들어, 신호의 전송 또는 수신)이 설명되는 경우에도 이에 대응하는 제2 통신 노드는 제1 통신 노드에서 수행되는 방법과 상응하는 방법(예를 들어, 신호의 수신 또는 전송)을 수행할 수 있다. 즉, 제1 통신 노드의 동작이 설명된 경우에 이에 대응하는 제2 통신 노드는 제1 통신 노드의 동작과 상응하는 동작을 수행할 수 있다. 반대로, 제2 통신 노드의 동작이 설명된 경우에 이에 대응하는 제1 통신 노드는 스위치의 동작과 상응하는 동작을 수행할 수 있다.In the following, a communication node belonging to a vehicle network and a method performed in a corresponding counterpart communication node will be described. Hereinafter, even when a method (eg, transmission or reception of a signal) performed in the first communication node is described, the second communication node corresponding thereto is a method (eg, a method corresponding to the method performed in the first communication node) For example, reception or transmission of a signal) may be performed. That is, when the operation of the first communication node is described, the corresponding second communication node may perform the operation corresponding to the operation of the first communication node. Conversely, when the operation of the second communication node is described, the corresponding first communication node may perform the operation corresponding to the operation of the switch.
도 3은 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 설명하기 위한 블록도이다.3 is a block diagram illustrating a method of operating a communication node for mirroring in a vehicle network according to an embodiment of the present invention.
도 3을 참조하면, 차량 네트워크는 스위치 1(310), 엔드 노드 1(311), 엔드 노드 2(312), 엔드 노드 3(313) 및 엔드 노드 4(314) 등을 포함할 수 있다. 스위치 1(310)은 도 1에 도시된 스위치와 동일 또는 유사한 기능들을 수행할 수 있고, 엔드 노드들(311, 312, 313, 314)은 도 1에 도시된 엔드 노드와 동일 또는 유사한 기능을 수행할 수 있다. 스위치 1(310) 및 엔드 노드들(311, 312, 313, 314) 각각은 도 2에 도시된 통신 노드와 동일 또는 유사하게 구성될 수 있다.Referring to FIG. 3 , the vehicle network may include a
스위치 1(310)은 복수의 포트들(310-1, 310-2, 310-3, 310-4)을 포함할 수 있다. 스위치 1(310)의 포트 1(310-1)은 엔드 노드 1(311)의 포트 1(311-1)과 연결될 수 있고, 스위치 1(310)의 포트 1(310-1) 및 엔드 노드 1(311)의 포트 1(311-1) 간에 링크가 형성될 수 있다. 스위치 1(310)의 포트 2(310-2)는 엔드 노드 2(312)의 포트 1(312-1)과 연결될 수 있고, 스위치 1(310)의 포트 2(310-2) 및 엔드 노드 2(312)의 포트 1(312-1) 간에 링크가 형성될 수 있다. 스위치 1(310)의 포트 3(310-3)은 엔드 노드 3(313)의 포트 1(313-1)과 연결될 수 있고, 스위치 1(310)의 포트 3(310-3) 및 엔드 노드 3(313)의 포트 1(313-1) 간에 링크가 형성될 수 있다. 스위치 1(310)의 포트 4(310-4)는 엔드 노드 4(314)의 포트 1(314-1)과 연결될 수 있고, 스위치 1(310)의 포트 4(310-4) 및 엔드 노드 4(314)의 포트 1(314-1) 간에 링크가 형성될 수 있다. 이하에서는, 도 3을 참조하여 설명된 차량 네트워크에서 수행되는 본 발명의 일 실시예에 따른 미러링을 위한 통신 노드의 동작 방법이 도 4 내지 도 7을 참조하여 구체적으로 설명될 수 있다. The
도 4는 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 도시한 흐름도이다.4 is a flowchart illustrating a method of operating a communication node for mirroring in a vehicle network according to an embodiment of the present invention.
도 4를 참조하면, 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법은 제1 통신 노드에서 수행될 수 있다. 제1 통신 노드는 도 1 및 도 3을 참조하여 설명된 스위치를 의미할 수 있고, 도 2를 참조하여 설명된 통신 노드의 구조와 유사 또는 동일한 구조를 가질 수 있다. 본 발명의 일 실시예에 따른 차량 네트워크는 복수의 통신 노드들을 포함할 수 있다. 여기서, 차량 네트워크에 포함된 복수의 통신 노드들은 도 3을 참조하여 설명된 스위치 1(310) 및 스위치 1(310)에 연결된 엔드 노드들(311, 312, 313, 314)을 포함할 수 있다.Referring to FIG. 4 , a method of operating a communication node for mirroring in a vehicle network according to an embodiment of the present invention may be performed in a first communication node. The first communication node may refer to the switch described with reference to FIGS. 1 and 3 , and may have a structure similar to or the same as that of the communication node described with reference to FIG. 2 . A vehicle network according to an embodiment of the present invention may include a plurality of communication nodes. Here, the plurality of communication nodes included in the vehicle network may include the
차량 네트워크에 포함된 복수의 통신 노드들 중 제2 통신 노드는 제1 통신 노드에 연결된 엔드 노드 1(311)을 의미할 수 있다. 예를 들어, 제2 통신 노드는 차량에서 수행되는 복수의 기능들(기어, 속도 및 방향의 제어 등) 중 하나인 제1 기능을 수행하는 ECU를 의미할 수 있다.The second communication node among the plurality of communication nodes included in the vehicle network may refer to the
제2 통신 노드는 차량의 제1 기능의 동작을 수행하는 경우, 제1 기능의 동작을 나타내는 지시자가 포함된 제1 메시지를 생성할 수 있다. 이후, 제2 통신 노드는 차량의 제1 기능의 동작을 나타내는 지시자가 포함된 제1 메시지를 제1 통신 노드로 전송할 수 있다. 이후, 제1 통신 노드는 복수의 통신 노드들 중 제2 통신 노드로부터 차량의 제1 기능의 동작을 나타내는 제1 메시지를 수신할 수 있다(S410). 이후, 제1 통신 노드는 제1 메시지에 포함된 제1 기능의 동작을 나타내는 지시자를 확인할 수 있고, 확인된 지시자를 통해 차량에서 제1 기능이 동작되었음을 인지할 수 있다.When the second communication node performs the operation of the first function of the vehicle, the second communication node may generate a first message including an indicator indicating the operation of the first function. Thereafter, the second communication node may transmit a first message including an indicator indicating the operation of the first function of the vehicle to the first communication node. Thereafter, the first communication node may receive the first message indicating the operation of the first function of the vehicle from the second communication node among the plurality of communication nodes ( S410 ). Thereafter, the first communication node may identify an indicator indicating the operation of the first function included in the first message, and may recognize that the first function has been operated in the vehicle through the checked indicator.
이후, 제1 통신 노드는 복수의 통신 노드들 중 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드를 판단할 수 있다(S420). 여기서, 제1 기능에 상응하는 제2 기능은 차량에서 수행되는 복수의 기능들 중 제1 기능과 관련된 기능을 의미할 수 있다. 예를 들어, 제2 통신 노드가 차량의 차량의 기어(gear)이고, 제1 기능이 차량의 후진을 의미하는 "R(reverse)"로 동작하는 기능인 경우, 제2 기능은 차량의 후방에서 촬영된 영상을 출력하는 기능을 의미할 수 있다. 즉, 제3 통신 노드는 차량의 후방에서 촬영된 영상을 출력 가능한 디스플레이 장치를 의미할 수 있다. 제2 통신 노드가 차량의 방향을 제어하는 조향 장치(예를 들어, 핸들(handle))이고, 제1 기능이 차량의 방향을 좌측 또는 우측으로 제어하는 기능인 경우, 제2 기능은 차량의 좌측 또는 우측에서 촬영된 영상을 출력하는 기능을 의미할 수 있다. 즉, 제3 통신 노드는 차량의 후방에서 촬영된 영상을 출력 가능한 디스플레이 장치를 의미할 수 있다.Thereafter, the first communication node may determine a third communication node performing a second function corresponding to the first function among the plurality of communication nodes ( S420 ). Here, the second function corresponding to the first function may mean a function related to the first function among a plurality of functions performed in the vehicle. For example, when the second communication node is a gear of a vehicle of a vehicle, and the first function is a function to operate in "R (reverse)" meaning reverse of the vehicle, the second function is photographed from the rear of the vehicle It may mean a function of outputting an image. That is, the third communication node may refer to a display device capable of outputting an image photographed from the rear of the vehicle. When the second communication node is a steering device (eg, a handle) that controls the direction of the vehicle, and the first function is a function to control the direction of the vehicle to the left or right, the second function is to the left or right side of the vehicle It may mean a function of outputting an image photographed from the right side. That is, the third communication node may refer to a display device capable of outputting an image photographed from the rear of the vehicle.
제1 통신 노드는 차량에서 수행되는 복수의 기능들 각각에 대한 기능 코드(function code), 기능 코드 각각에 대한 타겟 주소(target address) 및 기능 코드 각각에 대한 VLAN ID(Virtual LAN identifier)가 포함된 제1 테이블을 기반으로 제3 통신 노드를 판단할 수 있다. 제1 통신 노드에서 제3 통신 노드를 판단하는 구체적인 방법은 이하에서 도 5를 참조하여 설명될 수 있다.The first communication node includes a function code for each of a plurality of functions performed in the vehicle, a target address for each function code, and a VLAN ID (Virtual LAN identifier) for each function code. A third communication node may be determined based on the first table. A specific method of determining the third communication node in the first communication node may be described below with reference to FIG. 5 .
도 5는 도 4에 도시된 통신 노드의 동작 방법에서 제3 통신 노드를 판단하는 방법을 도시한 흐름도이다.5 is a flowchart illustrating a method of determining a third communication node in the operating method of the communication node shown in FIG. 4 .
도 5를 참조하면, 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 수행하는 제1 통신 노드는 제1 테이블에 포함된 정보에 기초하여 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드를 판단할 수 있다. 제1 통신 노드에서 제3 통신 노드를 판단하기 위해 참고하는 제1 테이블은 이하의 표 1과 같이 나타낼 수 있다.Referring to FIG. 5 , a first communication node performing a method of operating a communication node for mirroring in a vehicle network according to an embodiment of the present invention includes a first communication node corresponding to a first function based on information included in a first table. 2 It is possible to determine a third communication node that performs the function. The first table referred to by the first communication node to determine the third communication node may be shown in Table 1 below.
상기 표 1은 제1 통신 노드에서 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드를 판단하기 위해 참고되는 제1 테이블의 일 실시예를 의미할 수 있다. 제1 테이블은 차량에서 수행되는 복수의 기능들에 대한 기능 코드, 기능 코드에 대한 설명(description), 기능 코드에 대한 타겟 주소 및 VLAN ID 등을 포함할 수 있다. 제1 통신 노드는 제1 테이블에 기초하여 제1 기능의 기능 코드를 확인할 수 있다. 예를 들어, 제1 통신 노드는 제1 기능이 차량의 기어가 전진을 의미하는 "D(drive)" 또는 후진을 의미하는 "R(reverse)"로 동작하는 기능인 경우, 차량의 전방 또는 후방을 촬영하는 기능인 서라운드 뷰(surround view)와 관련된 기능이 요구되는 것을 판단할 수 있다. 이에 따라, 제1 통신 노드는 제1 테이블을 참고하여 제1 기능의 기능 코드를 서라운드 뷰에 상응하는 기능 코드인 "2"로 판단할 수 있다.Table 1 may mean an embodiment of the first table referred to in order to determine a third communication node that performs a second function corresponding to the first function in the first communication node. The first table may include a function code for a plurality of functions performed in the vehicle, a description of the function code, a target address for the function code, a VLAN ID, and the like. The first communication node may identify the function code of the first function based on the first table. For example, when the first function is a function that the gear of the vehicle operates as "D (drive)" meaning forward or "R (reverse)" meaning reverse, the first communication node may communicate with the front or rear of the vehicle. It may be determined that a function related to a surround view, which is a function of photographing, is required. Accordingly, the first communication node may determine the function code of the first function as "2", which is the function code corresponding to the surround view, with reference to the first table.
이후, 제1 통신 노드는 제1 테이블에서 제1 기능의 기능 코드에 상응하는 타겟 주소를 확인할 수 있다(S421). 예를 들어, 제1 통신 노드는 제1 기능의 기능 코드인 "2"에 상응하는 타겟 주소인 "01-10-AO-CO-00-02"를 확인할 수 있다. 이후, 제1 통신 노드는 확인된 타겟 주소가 지시하는 통신 노드를 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드로 판단할 수 있다(S422). 즉, 제1 통신 노드는 "2"에 상응하는 타겟 주소인 "01-10-A0-C0-00-02"가 지시하는 통신 노드를 상기 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드로 판단할 수 있다.Thereafter, the first communication node may check the target address corresponding to the function code of the first function from the first table (S421). For example, the first communication node may identify the target address "01-10-AO-CO-00-02" corresponding to "2", which is the function code of the first function. Thereafter, the first communication node may determine the communication node indicated by the confirmed target address as the third communication node performing the second function corresponding to the first function ( S422 ). That is, the first communication node refers to a communication node indicated by “01-10-A0-C0-00-02”, which is a target address corresponding to “2”, to a third communication node that performs a second function corresponding to the first function. It can be determined as a communication node.
다시, 도 4를 참조하면 제1 통신 노드는 복수의 통신 노드들 중 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드를 판단할 수 있다(S430). 예를 들어, 제1 기능이 차량의 기어가 전진을 의미하는 "D(drive)" 또는 후진을 의미하는 "R(reverse)"로 동작하는 기능이고, 제2 기능이 차량의 후방에서 촬영된 영상을 출력하는 기능인 경우, 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드는 차량의 후방을 촬영 가능한 카메라(camera)를 의미할 수 있다. 제1 기능이 차량의 방향을 좌측 또는 우측으로 제어하는 기능이고, 제2 기능은 차량의 좌측 또는 우측에서 촬영된 영상을 출력하는 기능인 경우, 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드는 차량의 좌측 또는 우측을 촬영 가능한 카메라를 의미할 수 있다.Referring again to FIG. 4 , the first communication node may determine at least one communication node providing data related to the second function among the plurality of communication nodes ( S430 ). For example, the first function is a function in which the gear of the vehicle operates as "D (drive)" meaning forward or "R (reverse)" meaning reverse, and the second function is an image taken from the rear of the vehicle In the case of a function of outputting , at least one communication node providing data related to the second function may mean a camera capable of photographing the rear of the vehicle. When the first function is a function to control the direction of the vehicle to the left or right, and the second function is a function to output an image photographed from the left or right side of the vehicle, at least one communication node that provides data related to the second function may mean a camera capable of photographing the left or right side of the vehicle.
구체적으로, 제1 통신 노드는 제1 통신 노드에 포함된 복수의 포트들의 포트 번호, 복수의 포트들을 통해 연결된 통신 노드의 MAC 주소(MAC address) 및 복수의 포트들을 통해 연결된 통신 노드의 VLAN ID를 포함하는 제2 테이블을 기반으로 적어도 하나의 통신 노드를 판단할 수 있다. 제1 통신 노드에서 적어도 하나의 통신 노드를 판단하는 구체적인 방법은 이하에서 도 6을 참조하여 설명될 수 있다.Specifically, the first communication node includes port numbers of a plurality of ports included in the first communication node, MAC addresses of communication nodes connected through the plurality of ports, and VLAN IDs of communication nodes connected through the plurality of ports. At least one communication node may be determined based on the included second table. A specific method of determining at least one communication node in the first communication node may be described below with reference to FIG. 6 .
도 6은 도 4에 도시된 통신 노드의 동작 방법에서 적어도 하나의 통신 노드를 판단하는 방법을 도시한 흐름도이다.6 is a flowchart illustrating a method of determining at least one communication node in the method of operating a communication node shown in FIG. 4 .
도 6을 참조하면, 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 수행하는 제1 통신 노드는 제2 테이블에 포함된 정보에 기초하여 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드를 판단할 수 있다. 제1 통신 노드에서 적어도 하나의 통신 노드를 판단하기 위해 참고하는 제2 테이블은 이하의 표 2와 같이 나타낼 수 있다.Referring to FIG. 6 , a first communication node performing a method of operating a communication node for mirroring in a vehicle network according to an embodiment of the present invention transmits data related to a second function based on information included in a second table. It is possible to determine at least one communication node that provides. The second table referred to by the first communication node to determine at least one communication node may be shown in Table 2 below.
상기 표 2는 제1 통신 노드에서 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드를 판단하기 위해 참고되는 제2 테이블의 일 실시예를 의미할 수 있다. 예를 들어, 제2 테이블은 제1 통신 노드에 포함된 복수의 포트들의 포트 번호, 복수의 포트들을 통해 연결된 통신 노드의 MAC 주소 및 복수의 포트들을 통해 연결된 통신 노드의 VLAN ID 등을 포함할 수 있다. 제1 통신 노드는 제2 테이블에서 제1 기능의 기능 코드에 상응하는 VLAN ID와 동일한 VLAN ID를 가지는 적어도 하나의 포트를 확인할 수 있다(S431). 구체적으로, 제1 통신 노드는 제1 테이블을 통해 기능 코드 "2"에 상응하는 VLAN ID가 "2"임을 확인할 수 있다. 이후, 제1 통신 노드는 제2 테이블에서 2, 3 및 4의 포트 번호를 가지는 포트가 VLAIN ID인 VLAN ID "2"를 가지는 포트임을 확인할 수 있다.Table 2 may refer to an embodiment of the second table referenced in order to determine at least one communication node that provides data related to the second function in the first communication node. For example, the second table may include port numbers of a plurality of ports included in the first communication node, MAC addresses of communication nodes connected through the plurality of ports, and VLAN IDs of communication nodes connected through a plurality of ports. have. The first communication node may identify at least one port having the same VLAN ID as the VLAN ID corresponding to the function code of the first function in the second table (S431). Specifically, the first communication node may confirm that the VLAN ID corresponding to the function code "2" is "2" through the first table. Thereafter, the first communication node can confirm that the ports having
이후, 제1 통신 노드는 확인된 포트를 통해 연결된 통신 노드를 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드로 판단할 수 있다(S432). 구체적으로, 제1 통신 노드는 2, 3, 및 4의 포트 번호를 가지는 포트를 통해 연결된 통신 노드의 MAC 주소를 확인할 수 있다. 이후, 제1 통신 노드는 2, 3, 및 4의 포트 번호를 가지는 포트의 MAC 주소 중에서 타겟 주소에 상응하는 MAC 주소를 제외한 나머지 MAC 주소를 가지는 통신 노드를 확인할 수 있다. 이후, 제1 통신 노드는 나머지 MAC 주소를 가지는 통신 노드를 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드로 판단할 수 있다.Thereafter, the first communication node may determine the communication node connected through the identified port as at least one communication node providing data related to the second function ( S432 ). Specifically, the first communication node may check the MAC address of the connected communication node through ports having port numbers of 2, 3, and 4. Thereafter, the first communication node may identify communication nodes having the remaining MAC addresses except for the MAC addresses corresponding to the target addresses among the MAC addresses of ports having port numbers of 2, 3, and 4. Thereafter, the first communication node may determine the communication node having the remaining MAC address as at least one communication node providing data related to the second function.
예를 들어, 제1 통신 노드는 2, 3 및 4의 포트 번호를 가지는 각 포트의 MAC 주소인 "01-10-AO-CO-00-02", "01-10-AO-CO-00-03" 및 "01-10-AO-CO-00-04"에서 2의 포트 번호를 가지는 포트의 MAC 주소인 "01-10-AO-CO-00-02"는 타겟 주소에 상응하는 MAC 주소임을 확인할 수 있다. 이후, 제1 통신 노드는 01-10-AO-CO-00-02", "01-10-AO-CO-00-03" 및 "01-10-AO-CO-00-04"에서 타겟 주소에 상응하는 MAC 주소인 "01-10-AO-CO-00-02"을 제외한 "01-10-AO-CO-00-03" 및 "01-10-AO-CO-00-04"의 주소를 가지는 통신 노드를 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드로 판단할 수 있다.For example, the first communication node is the MAC address of each port having port numbers of 2, 3 and 4, "01-10-AO-CO-00-02", "01-10-AO-CO-00- 03" and "01-10-AO-CO-00-04" to indicate that "01-10-AO-CO-00-02", which is the MAC address of the port with a port number of 2, is the MAC address corresponding to the target address. can be checked Thereafter, the first communication node sends the target address at 01-10-AO-CO-00-02", "01-10-AO-CO-00-03" and "01-10-AO-CO-00-04" Addresses of "01-10-AO-CO-00-03" and "01-10-AO-CO-00-04" excluding "01-10-AO-CO-00-02" which is the corresponding MAC address of may be determined as at least one communication node providing data related to the second function.
다시, 도 4를 참조하면, 제1 통신 노드는 적어도 하나의 통신 노드로부터 수신되는 제2 메시지를 제3 통신 노드로 미러링(mirroring)되도록 제1 기능에 대한 포트 미러링(port mirroring)을 설정할 수 있다(S440). 제1 통신 노드에서 제1 기능에 대한 포트 미러링을 설정하는 구체적인 방법은 이하에서 도 7을 참조하여 설명될 수 있다.Again, referring to FIG. 4 , the first communication node may set port mirroring for the first function so that the second message received from at least one communication node is mirrored to the third communication node. (S440). A specific method of setting port mirroring for the first function in the first communication node may be described below with reference to FIG. 7 .
도 7은 도 4에 도시된 통신 노드의 동작 방법에서 포트 미러링을 설정하는 방법을 도시한 흐름도이다.7 is a flowchart illustrating a method of setting port mirroring in the operating method of the communication node shown in FIG.
도 7을 참조하면, 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 수행하는 제1 통신 노드는 제1 통신 노드 및 제3 통신 노드 간을 연결하는 포트를 제1 기능의 미러링을 위한 대상 포트(target port)로 설정할 수 있다(S441). 구체적으로, 제1 통신 노드는 제1 테이블에 기초하여 판단된 제3 통신 노드의 MAC 주소를 제2 테이블에서 확인할 수 있고, 확인된 제3 통신 노드의 MAC 주소에 상응하는 포트를 확인할 수 있다. 이후, 제1 통신 노드는 확인된 포트를 제1 통신 노드에 포함된 복수의 포트들 중 제1 통신 노드 및 제3 통신 노드 간을 연결하는 포트로 확인할 수 있고, 확인된 포트를 제1 기능의 미러링을 위한 대상 포트로 설정할 수 있다.Referring to FIG. 7 , a first communication node performing a method of operating a communication node for mirroring in a vehicle network according to an embodiment of the present invention connects a port connecting between the first communication node and the third communication node to the first communication node. It can be set as a target port for function mirroring (S441). Specifically, the first communication node may check the MAC address of the third communication node determined based on the first table in the second table, and may identify a port corresponding to the MAC address of the identified third communication node. Thereafter, the first communication node may identify the identified port as a port connecting between the first communication node and the third communication node among a plurality of ports included in the first communication node, and determine the identified port as the port of the first function. It can be set as the target port for mirroring.
예를 들어, 제1 통신 노드를 도 3에 도시된 스위치 1(310)이라고 하면, 제3 통신 노드는 스위치 1(310)에 연결된 엔드 노드 2(312)라고 할 수 있다. 이와 같은 경우, 스위치 1(310)은 제1 테이블에서 제1 기능에 상응하는 기능 코드를 확인할 수 있고, 확인된 기능 코드에 상응하는 타겟 주소를 확인할 수 있다. 이후, 스위치 1(310)은 확인된 타겟 주소가 지시하는 통신 노드를 확인할 수 있고, 확인된 통신 노드인 엔드 노드 2(312)를 제1 기능에 상응하는 제2 기능을 수행하는 통신 노드로 판단할 수 있다. 이후, 스위치 1(310)은 제1 테이블에 기초하여 판단된 엔드 노드 2(312)의 MAC 주소를 제2 테이블에서 확인할 수 있고, 확인된 엔드 노드 2(312)의 MAC 주소에 상응하는 포트가 포트 2(310-2)임을 확인할 수 있다. 이후, 스위치 1(310)은 확인된 포트 2(310-2)를 제1 기능의 미러링을 위한 대상 포트로 설정할 수 있다.For example, if the first communication node is referred to as the
이후, 제1 통신 노드는 제1 통신 노드 및 적어도 하나의 통신 노드 간을 연결하는 포트를 제1 기능의 미러링을 위한 미러링 포트로 설정할 수 있다(S442). 구체적으로, 제1 통신 노드는 제2 테이블에 기초하여 제1 통신 노드에 포함된 복수의 포트들 중 적어도 하나의 통신 노드의 포트를 확인할 수 있다. 이후, 제1 통신 노드는 확인된 적어도 하나의 통신 노드의 포트를 제1 기능의 미러링을 위한 미러링 포트로 설정할 수 있다.Thereafter, the first communication node may set a port connecting the first communication node and the at least one communication node as a mirroring port for mirroring of the first function ( S442 ). Specifically, the first communication node may identify a port of at least one communication node among a plurality of ports included in the first communication node based on the second table. Thereafter, the first communication node may set the identified port of at least one communication node as a mirroring port for mirroring of the first function.
예를 들어, 제1 통신 노드를 도 3에 도시된 스위치 1(310)이라고 하면, 적어도 하나의 통신 노드는 스위치 1(310)에 연결된 엔드 노드 3(313) 및 엔드 노드 4(314)라고 할 수 있다. 이와 같은 경우, 스위치 1(310)은 제1 테이블에서 제1 기능에 상응하는 기능 코드를 확인할 수 있고, 확인된 기능 코드에 상응하는 VLAN ID를 확인할 수 있다. 이후, 스위치 1(310)은 제2 테이블에서 확인된 VLAN ID와 동일한 VLAN ID를 가지는 통신 노드를 확인할 수 있다. 즉, 스위치 1(310)은 제2 테이블에서 제1 기능의 코드에 상응하는 VLAN ID와 동일한 VLAN ID를 가지는 엔드 노드 2(312), 엔드 노드 3(313) 및 엔드 노드 4(314)를 확인할 수 있다. 이때, 스위치 1(310)은 엔드 노드 2(312), 엔드 노드 3(313) 및 엔드 노드 4(314) 중에서 MAC 주소가 타겟 주소인 엔드 노드 2(312)를 제외한 나머지 엔드 노드 3(313) 및 엔드 노드 4(314)에 대한 포트를 제1 기능의 미러링을 위한 미러링 포트로 설정할 수 있다. 즉, 스위치 1(310)은 스위치 1(310)에 포함된 포트들(310-1, 310-2, 310-3, 310-4) 중에서 엔드 노드 3(313) 및 엔드 노드 4(314)와 연결된 포트 3(310-3) 및 포트 4(310-4)를 제1 기능의 미러링을 위한 미러링 포트로 설정할 수 있다.For example, if the first communication node is referred to as the
다시, 도 4를 참조하면 제1 통신 노드는 적어도 하나의 통신 노드로부터 미러링 포트를 통해 제2 메시지가 수신되는 경우, 제2 메시지를 대상 포트롤 통해 제3 통신 노드로 전송할 수 있다(S450). 여기서, 제2 메시지는 제2 기능과 관련된 데이터를 포함할 수 있다. 예를 들어, 제2 기능이 차량의 후방에서 촬영된 영상을 출력하는 기능인 경우, 제2 메시지는 제2 기능과 관련된 데이터인 차량의 후방에서 촬영된 영상에 대한 데이터를 포함할 수 있다.Referring again to FIG. 4 , when the second message is received from at least one communication node through the mirroring port, the first communication node may transmit the second message to the third communication node through the target port ( S450 ). Here, the second message may include data related to the second function. For example, when the second function is a function of outputting an image photographed from the rear of the vehicle, the second message may include data regarding the image photographed from the rear of the vehicle, which is data related to the second function.
또한, 제1 통신 노드를 도 3에 도시된 스위치 1(310)이라고 하면, 적어도 하나의 통신 노드는 스위치 1(310)에 연결된 엔드 노드 3(313) 및 엔드 노드 4(314)라고 할 수 있다. 이와 같은 경우, 엔드 노드 3(313) 및 엔드 노드 4(314)는 제2 기능과 관련된 데이터가 포함된 제2 메시지를 생성할 수 있다. 이후, 엔드 노드 3(313) 및 엔드 노드 4(314)는 생성된 제2 메시지를 스위치 1(310)로 전송할 수 있다.In addition, if the first communication node is referred to as the
구체적으로, 엔드 노드 3(313)은 제2 기능과 관련된 데이터가 포함된 제2 메시지를 생성할 수 있고, 생성된 제2 메시지를 포트 1(313-1)을 통해 스위치 1(310)로 전송할 수 있다. 이후, 스위치 1(310)은 엔드 노드 3(313)의 포트 1(313-1)과 연결된 포트 1(310-3)을 통해 엔드 노드 3(313)으로부터 제2 메시지를 수신할 수 있다. 또한, 엔드 노드 4(314)는 제2 기능과 관련된 데이터가 포함된 제2 메시지를 생성할 수 있고, 생성된 제2 메시지를 포트 1(314-1)을 통해 스위치 1(310)로 전송할 수 있다. 이후, 스위치 1(310)은 엔드 노드 3(313)의 포트 1(313-1)과 연결된 포트 4(310-4)를 통해 엔드 노드 4(314)로부터 제2 메시지를 수신할 수 있다.Specifically, the
이후, 스위치 1(310)은 엔드 노드 3(313) 및 엔드 노드 4(314)로부터 제2 메시지가 제1 기능의 미러링을 위한 미러링 포트인 포트 3(310-3) 및 포트 4(310-4)를 통해 수신되었음을 확인할 수 있다. 이후, 스위치 1(310)은 제2 메시지를 제1 기능의 미러링을 위한 대상 포트인 포트 2(310-2)를 통해 엔드 노드 2(312)로 전송할 수 있다. 이후, 엔드 노드 2(312)는 스위치 1(310)의 포트 2(310-2)와 연결된 포트 1(312-1)을 통해 스위치 1(310)로부터 제2 메시지를 수신할 수 있다. 이후, 엔드 노드 2(312)는 수신된 제2 메시지를 처리할 수 있다. 예를 들어, 엔드 노드 2(312)가 영상을 출력 가능한 디스플레이 장치이고, 제2 메시지에 영상 데이터가 포함된 경우, 엔드 노드 2(312)는 제2 메시지에 포함된 영상 데이터를 출력할 수 있다.Thereafter, the
도 3 내지 도 7을 참조하여 상술한 바와 같이, 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 수행하는 제1 통신 노드는 제1 기능에 대한 포트 미러링을 설정할 수 있다. 이와 같이 설정되는 포트 미러링에 기초하여 제1 통신 노드에서 메시지를 처리하는 방법은 이하에서 도 8을 참조하여 구체적으로 설명될 수 있다.As described above with reference to FIGS. 3 to 7 , the first communication node performing the method of operating a communication node for mirroring in a vehicle network according to an embodiment of the present invention may set port mirroring for the first function. have. A method of processing a message in the first communication node based on the port mirroring set in this way may be described in detail with reference to FIG. 8 below.
도 8은 본 발명의 다른 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 도시한 흐름도이다.8 is a flowchart illustrating a method of operating a communication node for mirroring in a vehicle network according to another embodiment of the present invention.
도 8을 참조하면, 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법은 제1 통신 노드에서 수행될 수 있다. 제1 통신 노드는 도 1 및 도 3을 참조하여 설명된 스위치를 의미할 수 있고, 도 2를 참조하여 설명된 통신 노드의 구조와 유사 또는 동일한 구조를 가질 수 있다. 본 발명의 일 실시예에 따른 차량 네트워크는 복수의 통신 노드들을 포함할 수 있다. 여기서, 차량 네트워크에 포함된 복수의 통신 노드들은 도 3을 참조하여 설명된 스위치 1(310) 및 스위치 1(310)에 연결된 엔드 노드들(311, 312, 313, 314)을 포함할 수 있다.Referring to FIG. 8 , a method of operating a communication node for mirroring in a vehicle network according to an embodiment of the present invention may be performed in a first communication node. The first communication node may refer to the switch described with reference to FIGS. 1 and 3 , and may have a structure similar to or the same as that of the communication node described with reference to FIG. 2 . A vehicle network according to an embodiment of the present invention may include a plurality of communication nodes. Here, the plurality of communication nodes included in the vehicle network may include the
차량 네트워크에 포함된 복수의 통신 노드들 적어도 하나의 통신 노드는 차량의 기능과 관련된 데이터가 포함된 메시지를 생성할 수 있다. 이후, 적어도 하나의 통신 노드는 생성된 메시지를 제1 통신 노드로 전송할 수 있다. 이후, 제1 통신 노드는 적어도 하나의 통신 노드로부터 차량의 기능과 관련된 데이터가 포함된 메시지를 수신할 수 있다(S810). 여기서, 적어도 하나의 통신 노드는 제1 통신 노드에 연결된 엔드 노드를 의미할 수 있고, 차량에서 수행되는 복수의 기능들 중 적어도 하나의 기능을 수행할 수 있다.A plurality of communication nodes included in the vehicle network At least one communication node may generate a message including data related to a function of the vehicle. Thereafter, the at least one communication node may transmit the generated message to the first communication node. Thereafter, the first communication node may receive a message including data related to a vehicle function from at least one communication node ( S810 ). Here, the at least one communication node may mean an end node connected to the first communication node, and may perform at least one function among a plurality of functions performed in the vehicle.
이후, 제1 통신 노드는 수신된 메시지에 포함된 차량의 기능과 관련된 데이터를 확인할 수 있고, 확인된 기능에 대한 포트 미러링의 설정 여부를 판단할 수 있다. 구체적으로, 제1 통신 노드는 제1 통신 노드에 포함된 복수의 포트들 중 적어도 하나의 통신 노드에 대한 포트가 미러링 포트인지를 확인할 수 있다(S820). 즉, 제1 통신 노드는 제1 통신 노드에 포함된 복수의 포트들 중 적어도 하나의 통신 노드와 연결된 포트가 미러링 포트로 설정된 포트인지를 확인할 수 있다.Thereafter, the first communication node may check data related to the function of the vehicle included in the received message, and may determine whether port mirroring is set for the checked function. Specifically, the first communication node may determine whether a port for at least one communication node among a plurality of ports included in the first communication node is a mirroring port (S820). That is, the first communication node may check whether a port connected to at least one communication node among a plurality of ports included in the first communication node is a port set as a mirroring port.
이후, 제1 통신 노드는 제1 통신 노드 및 적어도 하나의 통신 노드 간을 연결하는 포트가 확인된 기능의 미러링을 위한 미러링 포트인 경우, 확인된 기능에 대한 포트 미러링이 설정된 것으로 판단할 수 있다. 반면, 제1 통신 노드는 제1 통신 노드 및 적어도 하나의 통신 노드 간을 연결하는 포트가 확인된 기능의 미러링을 위한 미러링 포트가 아닌 경우, 확인된 기능에 대한 포트 미러링이 설정되지 않은 것으로 판단할 수 있다.Thereafter, when the port connecting the first communication node and the at least one communication node is a mirroring port for mirroring of the confirmed function, the first communication node may determine that port mirroring for the confirmed function is set. On the other hand, when the port connecting between the first communication node and the at least one communication node is not a mirroring port for mirroring of the confirmed function, the first communication node determines that port mirroring for the confirmed function is not set. can
이후, 제1 통신 노드는 확인된 기능에 대한 포트 미러링의 설정 여부에 기초하여 메시지를 처리할 수 있다. 구체적으로, 제1 통신 노드는 확인된 기능에 대한 포트 미러링이 설정된 경우, 확인된 기능에 대한 대상 포트를 통해 차량의 기능과 관련된 데이터가 포함된 메시지를 제3 통신 노드로 전송할 수 있다(S830). 여기서, 제3 통신 노드는 제1 통신 노드에 포함된 복수의 포트들 중 포트 미러링을 위한 대상 포트를 통해 연결된 통신 노드를 의미할 수 있다. 한편, 제1 통신 노드는 확인된 기능에 대한 포트 미러링이 설정되지 않은 경우, 차량의 기능과 관련된 데이터가 포함된 메시지를 삭제할 수 있다(S840).Thereafter, the first communication node may process the message based on whether port mirroring is set for the confirmed function. Specifically, when port mirroring for the confirmed function is set, the first communication node may transmit a message including data related to the vehicle function to the third communication node through the target port for the confirmed function (S830) . Here, the third communication node may mean a communication node connected through a target port for port mirroring among a plurality of ports included in the first communication node. Meanwhile, when port mirroring for the confirmed function is not set, the first communication node may delete a message including data related to the vehicle function ( S840 ).
상술한 바와 같은 방법을 통해, 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 수행하는 제1 통신 노드는 차량에서 수행되는 복수의 기능들 중 포트 미러링이 설정된 기능이 존재하는 경우, 설정된 포트 미러링에 기초하여 해당 기능과 관련된 메시지를 처리할 수 있다. 구체적으로, 제1 통신 노드에서 포트 미러링에 기초하여 해당 기능과 관련된 메시지를 처리하는 방법은 이하에서 설명될 수 있다.Through the method as described above, the first communication node performing the method of operating the communication node for mirroring in the vehicle network according to an embodiment of the present invention has a port mirroring set function among a plurality of functions performed in the vehicle. If present, a message related to the corresponding function can be processed based on the configured port mirroring. Specifically, a method of processing a message related to a corresponding function based on port mirroring in the first communication node may be described below.
예를 들어, 도 2를 참조하여 설명된 바와 같이 제1 통신 노드는 PHY 계층 유닛 및 컨트롤러 유닛을 포함할 수 있다. 제1 통신 노드는 PHY 계층 유닛을 통해 적어도 하나의 통신 노드로부터 차량의 기능과 관련된 데이터가 포함된 메시지를 수신할 수 있다. 이후, 제1 통신 노드의 PHY 계층 유닛을 통해 수신된 메시지는 컨트롤러 유닛으로 전송되지 않고, 포트 미러링을 위한 대상 포트를 통해 연결된 제3 통신 노드의 PHY 계층 유닛으로 전송될 수 있다. 즉, 제1 통신 노드는 포트 미러링이 설정된 차량의 기능과 관련된 데이터가 포함된 메시지를 PHY 계층 유닛을 통해 수신하는 경우, 해당 메시지를 컨트롤러 유닛으로 전송하지 않고 대상 포트를 통해 연결된 제3 통신 노드의 PHY 계층 유닛으로 전송할 수 있다.For example, as described with reference to FIG. 2 , the first communication node may include a PHY layer unit and a controller unit. The first communication node may receive a message including data related to a function of the vehicle from at least one communication node through the PHY layer unit. Thereafter, the message received through the PHY layer unit of the first communication node may not be transmitted to the controller unit, but may be transmitted to the PHY layer unit of the third communication node connected through the target port for port mirroring. That is, when the first communication node receives a message including data related to the function of the vehicle for which port mirroring is set through the PHY layer unit, the third communication node connected through the target port does not transmit the message to the controller unit. It can be transmitted to the PHY layer unit.
도 9는 본 발명의 또 다른 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 설명하기 위한 블록도이다.9 is a block diagram for explaining a method of operating a communication node for mirroring in a vehicle network according to another embodiment of the present invention.
도 9를 참조하면, 차량 네트워크는 스위치 1(910), 스위치 2(910), 스위치 3(930), 엔드 노드 1(911), 엔드 노드 2(912), 엔드 노드 3(921) 엔드 노드 4(922), 엔드 노드 5(931) 및 엔드 노드 6(932) 등을 포함할 수 있다. 스위치들(910, 920, 930)은 도 1에 도시된 스위치와 동일 또는 유사한 기능들을 수행할 수 있고, 엔드 노드들(911, 912, 921, 922, 931, 932)은 도 1에 도시된 엔드 노드와 동일 또는 유사한 기능을 수행할 수 있다. 스위치들(910, 920, 930) 및 엔드 노드들(911, 912, 921, 922, 931, 932) 각각은 도 2에 도시된 통신 노드와 동일 또는 유사하게 구성될 수 있다.Referring to FIG. 9 , the vehicle network includes a
스위치 1(910)은 복수의 포트들(910-1, 910-2, 910-3, 910-4)을 포함할 수 있다. 스위치 1(910)의 포트 1(910-1)은 엔드 노드 1(911)의 포트 1(911-1)과 연결될 수 있고, 스위치 1(910)의 포트 1(910-1) 및 엔드 노드 1(911)의 포트 1(911-1) 간에 링크가 형성될 수 있다. 스위치 1(910)의 포트 2(910-2)는 엔드 노드 2(912)의 포트 1(912-1)과 연결될 수 있고, 스위치 1(910)의 포트 2(910-2) 및 엔드 노드 2(912)의 포트 1(912-1) 간에 링크가 형성될 수 있다. 스위치 1(910)의 포트 3(910-3)은 스위치 2(920)의 포트 1(920-1)과 연결될 수 있고, 스위치 1(910)의 포트 3(910-3) 및 스위치 2(920)의 포트 1(920-1) 간에 링크가 형성될 수 있다. 스위치 1(910)의 포트 4(910-4)는 스위치 3(930)의 포트 1(930-1)과 연결될 수 있고, 스위치 1(910)의 포트 4(910-4) 및 스위치 3(930)의 포트 1(930-1) 간에 링크가 형성될 수 있다.The
스위치 2(920)는 복수의 포트들(920-1, 920-2, 920-3)을 포함할 수 있다. 스위치 2(920)의 포트 1(920-1)은 스위치 1(910)의 포트 2(910-2)와 연결될 수 있고, 스위치 2(920)의 포트 1(920-1) 및 스위치 1(910)의 포트 2(910-2) 간에 링크가 형성될 수 있다. 스위치 2(920)의 포트 2(920-2)는 엔드 노드 3(921)의 포트 1(921-1)과 연결될 수 있고, 스위치 2(920)의 포트 2(920-2) 및 엔드 노드 3(921)의 포트 1(921-1) 간에 링크가 형성될 수 있다. 스위치 2(920)의 포트 3(920-3)은 엔드 노드 4(922)의 포트 1(922-1)과 연결될 수 있고, 스위치 2(920)의 포트 3(920-3) 및 엔드 노드 4(922)의 포트 1(922-1) 간에 링크가 형성될 수 있다.The
스위치 3(930)은 복수의 포트들(930-1, 930-2, 930-3)을 포함할 수 있다. 스위치 3(930)의 포트 1(930-1)은 스위치 1(910)의 포트 4(910-4)와 연결될 수 있고, 스위치 3(930)의 포트 1(930-1) 및 스위치 1(910)의 포트 4(910-4) 간에 링크가 형성될 수 있다. 스위치 3(930)의 포트 2(930-2)는 엔드 노드 5(931)의 포트 1(931-1)과 연결될 수 있고, 스위치 3(930)의 포트 2(930-2) 및 엔드 노드 5(931)의 포트 1(931-1) 간에 링크가 형성될 수 있다. 스위치 3(930)의 포트 3(930-3)은 엔드 도느 6(932)의 포트 1(932-1)과 연결될 수 있고, 스위치 3(930)의 포트 3(930-3) 및 엔드 노드 6(932)의 포트 1(932-1) 간에 링크가 형성될 수 있다.The
상술한 바와 같은 연결 구조를 가지는 차량 네트워크에서 스위치 1(910)은 도 4 내지 도 7을 참조하여 설명된 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법 및 도 8을 참조하여 설명된 본 발명의 다른 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 수행할 수 있다. 즉, 스위치 1(910)은 도 4 내지 도 8을 참조하여 설명된 통신 노드의 동작 방법에 포함된 각 단계들을 수행할 수 있다. 다만, 도 9에 도시된 바와 같이, 차량 네트워크에 복수의 스위치들이 포함되는 경우, 스위치 1(910)에서 수행되는 통신 노드의 동작 방법에 차이가 있을 수 있으며, 이는 이하에서 구체적으로 설명될 수 있다.In the vehicle network having the above-described connection structure, the
스위치 1(910)은 엔드 노드 1(911)로부터 포트 1(910-1)을 통해 차량에서 수행되는 복수의 기능들 중 하나인 제1 기능의 동작을 나타내는 제1 메시지를 수신할 수 있다. 이후, 스위치 1(910)은 제1 메시지가 나타내는 제1 기능을 확인할 수 있고, 제1 테이블(예를 들어, 도 5를 참조하여 설명된 제1 테이블)에서 확인된 제1 기능에 상응하는 기능 코드를 확인할 수 있다. 이후, 스위치 1(910)은 제1 테이블에서 제1 기능의 기능 코드에 상응하는 타겟 주소를 확인할 수 있다. 이후, 스위치 1(910)은 타겟 주소가 지시하는 통신 노드인 엔드 노드 2(912)를 제1 기능에 상응하는 제2 기능을 수행하는 통신 노드로 판단할 수 있다.The
이후, 스위치 1(910)은 제1 테이블에서 제1 기능의 기능 코드에 상응하는 VLAN ID를 확인할 수 있고, 제2 테이블에서 제1 기능의 기능 코드에 상응하는 VLAN ID와 동일한 ID를 가지는 통신 노드인 엔드 노드 3(921), 엔드 노드 (922), 엔드 노드 (931) 및 엔드 노드 6(932)를 확인할 수 있다. 이후, 스위치 1(910)은 확인된 엔드 노드 3(921), 엔드 노드 (922), 엔드 노드 (931) 및 엔드 노드 6(932)를 제2 기능과 관련된 데이터를 제공하는 통신 노드로 판단할 수 있다.Thereafter, the
이때, 스위치 1(910)은 제2 테이블에서 엔드 노드 3(921) 및 엔드 노드4(922)의 MAC 주소를 확인할 수 있고, 확인된 MAC 주소에 기초하여 엔드 노드 3(921) 및 엔드 노드 4(922)가 스위치 2(920)에 연결되어 있음을 확인할 수 있다. 이후, 스위치 1(910)은 스위치 1(910)에 포함된 복수의 포트들(910-1, 910-2, 910-3, 910-4) 중에서 포트 3(910-3)을 스위치 2(920)에 연결되었음을 확인할 수 있다. 이후, 스위치 1(910)은 제1 기능에 대한 미러링의 수행을 지시하는 지시자가 포함된 메시지를 생성할 수 있고, 생성된 메시지를 포트 3(910-3)을 통해 스위치 2(920)로 전송할 수 있다.In this case, the
이후, 스위치 2(920)는 포트 1(920-1)을 통해 스위치 1(910)로부터 제1 기능에 대한 미러링의 수행을 지시하는 지시자가 포함된 메시지를 수신할 수 있다. 이후, 스위치 2(920)는 수신된 메시지에서 제1 기능을 확인할 수 있고, 확인된 제1 기능에 대한 포트 미러링을 설정할 수 있다. 스위치 2(920)에서 제1 기능에 대한 포트 미러링을 설정하는 구체적인 방법은 도 4 내지 도 7을 참조하여 설명한 바와 동일할 수 있다. 예를 들어, 스위치 2(920)에 포함된 복수의 포트들(920-1, 920-2, 920-3) 중에서 스위치 1(910)과 연결된 포트 1(920-1)은 제1 기능의 미러링을 위한 대상 포트로 설정될 수 있고, 엔드 노드 3(9210)과 연결된 포트 2(920-2) 및 엔드 노드 4(922)와 연결된 포트 3(920-3)은 제1 기능의 미러링을 위한 미러링 포트로 설정될 수 있다. 이에 따라, 스위치 2(920)은 엔드 노드 3(921) 및 엔드 노드 4(922)로부터 제1 기능에 상응하는 제2 기능과 관련된 데이터가 포함된 메시지를 수신하는 경우, 수신된 메시지를 대상 포트로 설정된 포트 1(920-1)을 통해 스위치 1(910)로 전송할 수 있다.Thereafter, the
이와 동일한 방법을 통해, 스위치 1(910)은 스위치 3(930)를 통해 연결된 엔드 노드 5(931) 및 엔드 노드 6(932)에 제1 기능에 대한 미러링의 수행을 지시할 수 있고, 스위치 3(930)은 엔드 노드 5(931) 및 엔드 노드 6(932)로부터 제1 기능에 상응하는 제2 기능과 관련된 데이터가 포함된 메시지가 수신되는 경우, 수신된 메시지를 스위치 1(910)로 전송할 수 있다.Through the same method,
한편, 스위치 1(910)은 제2 테이블에서 엔드 노드 2(912)의 MAC 주소에 상응하는 포트를 확인할 수 있고, 확인된 포트를 제1 기능의 미러링을 위한 대상 포트로 설정할 수 있다. 즉, 스위치 1(910)은 제2 테이블에 기초하여 스위치 1(910)에 포함된 복수의 포트들(910-1, 910-2, 910-3, 910-4) 중에서 스위치 1(910) 및 엔드 노드 2(912) 간을 연결하는 포트가 포트 2(910-2)임을 확인할 수 있고, 확인된 포트 2(910-2)를 제1 기능의 미러링을 위한 대상 포트로 설정할 수 있다.Meanwhile, the
이후, 스위치 1(910)은 스위치 1(910)에 포함된 복수의 포트들(910-1, 910-2, 910-3, 910-4) 중에서 스위치 2(920)와 연결된 포트 3(910-3) 및 스위치 3(930)과 연결된 포트 4(910-4)를 제1 기능의 미러링을 위한 미러링 포트로 설정할 수 있다. 이후, 스위치 1(910)은 스위치 2(920) 및 스위치 3(930)으로부터 제1 기능에 상응하는 제2 기능과 관련된 데이터가 포함된 메시지를 수신하는 경우, 수신된 메시지를 제1 기능의 미러링을 위한 대상 포트로 설정된 포트 2(910-2)를 통해 엔드 노드 2(912)로 전송할 수 있다.Then, the
본 발명에 따른 방법들은 다양한 컴퓨터 수단을 통해 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 컴퓨터 판독 가능 매체에 기록되는 프로그램 명령은 본 발명을 위해 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다.The methods according to the present invention may be implemented in the form of program instructions that can be executed by various computer means and recorded in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, etc. alone or in combination. The program instructions recorded on the computer-readable medium may be specially designed and configured for the present invention, or may be known and available to those skilled in the art of computer software.
컴퓨터 판독 가능 매체의 예에는 롬(rom), 램(ram), 플래시 메모리(flash memory) 등과 같이 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러(compiler)에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터(interpreter) 등을 사용해서 컴퓨터에 의해 실행될 수 있는 고급 언어 코드를 포함한다. 상술한 하드웨어 장치는 본 발명의 동작을 수행하기 위해 적어도 하나의 소프트웨어 모듈로 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.Examples of computer-readable media include hardware devices specially configured to store and carry out program instructions, such as ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine language codes such as those generated by a compiler, but also high-level language codes that can be executed by a computer using an interpreter or the like. The hardware device described above may be configured to operate as at least one software module to perform the operations of the present invention, and vice versa.
이상 실시예를 참조하여 설명하였지만, 해당 기술 분야의 숙련된 당업자는 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.Although it has been described with reference to the above embodiments, it will be understood by those skilled in the art that various modifications and changes can be made to the present invention without departing from the spirit and scope of the present invention as set forth in the claims below. will be able
Claims (20)
상기 복수의 통신 노드들 중 제2 통신 노드로부터 차량의 제1 기능의 동작을 나타내는 제1 메시지를 수신하는 단계;
상기 차량에서 수행되는 복수의 기능들 각각에 대한 기능 코드(function code)를 포함하는 제1 테이블을 기반으로 상기 복수의 통신 노드들 중 상기 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드를 판단하는 단계;
상기 복수의 통신 노드들 중 상기 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드를 판단하는 단계; 및
상기 적어도 하나의 통신 노드로부터 수신되는 제2 메시지가 상기 제3 통신 노드로 미러링(mirroring)되도록 상기 제1 기능에 대한 포트 미러링을 설정하는 단계를 포함하고,
상기 제3 통신 노드를 판단하는 단계는 상기 제1 테이블에서 상기 제1 기능의 기능 코드에 상응하는 타겟 주소를 확인하는 단계를 포함하는 제1 통신 노드의 동작 방법.A method of operating a first communication node among a plurality of communication nodes included in an Ethernet-based vehicle network, the method comprising:
receiving a first message indicating operation of a first function of the vehicle from a second communication node of the plurality of communication nodes;
Third communication for performing a second function corresponding to the first function among the plurality of communication nodes based on a first table including a function code for each of the plurality of functions performed in the vehicle determining a node;
determining at least one communication node providing data related to the second function among the plurality of communication nodes; and
configuring port mirroring for the first function such that a second message received from the at least one communication node is mirrored to the third communication node;
The determining of the third communication node includes identifying a target address corresponding to the function code of the first function in the first table.
상기 제3 통신 노드를 판단하는 단계는,
상기 기능 코드 각각에 대한 타겟 주소(target address) 및 상기 기능 코드 각각에 대한 VLAN ID(Virtual LAN identifier)가 포함된 제1 테이블을 기반으로 상기 제3 통신 노드를 판단하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method according to claim 1,
Determining the third communication node comprises:
First communication, characterized in that the third communication node is determined based on a first table including a target address for each of the function codes and a virtual LAN identifier (VLAN ID) for each of the function codes. How the node works.
상기 제3 통신 노드를 판단하는 단계는,
상기 확인된 타겟 주소가 지시하는 통신 노드를 상기 제1 기능에 상응하는 제2 기능을 수행하는 상기 제3 통신 노드로 판단하는 단계를 포함하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.3. The method according to claim 2,
Determining the third communication node comprises:
and determining the communication node indicated by the identified target address as the third communication node performing a second function corresponding to the first function.
상기 적어도 하나의 통신 노드를 판단하는 단계는,
상기 제1 통신 노드에 포함된 복수의 포트(port)들의 포트 번호, 상기 복수의 포트들을 통해 연결된 통신 노드의 MAC 주소(MAC address) 및 상기 복수의 포트들을 통해 연결된 통신 노드의 VLAN ID를 포함하는 제2 테이블을 기반으로 상기 적어도 하나의 통신 노드를 판단하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.3. The method according to claim 2,
Determining the at least one communication node comprises:
Port numbers of a plurality of ports included in the first communication node, MAC addresses of communication nodes connected through the plurality of ports, and VLAN IDs of communication nodes connected through the plurality of ports The operating method of the first communication node, characterized in that determining the at least one communication node based on a second table.
상기 적어도 하나의 통신 노드를 판단하는 단계는,
상기 제2 테이블에서 상기 제1 기능의 기능 코드에 상응하는 VLAN ID와 동일한 VLAN ID를 가지는 적어도 하나의 포트를 확인하는 단계; 및
상기 확인된 포트를 통해 연결된 통신 노드를 상기 제2 기능과 관련된 데이터를 제공하는 상기 적어도 하나의 통신 노드로 판단하는 단계를 포함하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.5. The method according to claim 4,
Determining the at least one communication node comprises:
identifying at least one port having the same VLAN ID as the VLAN ID corresponding to the function code of the first function in the second table; and
and determining a communication node connected through the identified port as the at least one communication node providing data related to the second function.
상기 포트 미러링을 설정하는 단계는,
상기 제1 통신 노드 및 상기 제3 통신 노드 간을 연결하는 포트를 상기 제1기능의 미러링을 위한 대상 포트(target port)로 설정하는 단계; 및
상기 제1 통신 노드 및 상기 적어도 하나의 통신 노드 간을 연결하는 포트를 상기 제1 기능의 미러링을 위한 미러링 포트(mirroring port)로 설정하는 단계를 포함하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method according to claim 1,
The step of setting the port mirroring is,
setting a port connecting between the first communication node and the third communication node as a target port for mirroring of the first function; and
Method of operating a first communication node comprising the step of setting a port connecting between the first communication node and the at least one communication node as a mirroring port for mirroring of the first function .
상기 제1 통신 노드의 동작 방법은,
상기 적어도 하나의 통신 노드로부터 상기 미러링 포트를 통해 상기 제2 메시지를 수신하는 경우, 상기 제2 메시지를 상기 대상 포트를 통해 상기 제3 통신 노드로 전송하는 단계를 더 포함하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.7. The method of claim 6,
The method of operation of the first communication node,
When receiving the second message from the at least one communication node through the mirroring port, the method further comprising the step of transmitting the second message to the third communication node through the target port How communication nodes work.
상기 제1 통신 노드는,
상기 차량 네트워크에 포함된 스위치(switch)이고, 상기 제2 통신 노드, 상기 제3 통신 노드 및 상기 적어도 하나의 통신 노드는 상기 제1 통신 노드에 연결된 엔드 노드(end node)인 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method according to claim 1,
The first communication node,
A switch included in the vehicle network, wherein the second communication node, the third communication node, and the at least one communication node are end nodes connected to the first communication node 1 How communication nodes work.
프로세서(processor); 및
상기 프로세서를 통해 실행되는 적어도 하나의 명령이 저장된 메모리(memory)를 포함하고,
상기 적어도 하나의 명령은,
상기 복수의 통신 노드들 중 제2 통신 노드로부터 차량의 제1 기능의 동작을 나타내는 제1 메시지를 수신하고;
상기 차량에서 수행되는 복수의 기능들 각각에 대한 기능 코드를 포함하는 제1 테이블을 기반으로 상기 복수의 통신 노드들 중 상기 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드를 판단하고;
상기 제1 통신 노드에 포함된 복수의 포트들을 통해 연결된 통신 노드의 VLAN ID를 포함하는 제2 테이블을 기반으로 상기 복수의 통신 노드들 중 상기 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드를 판단하고;
상기 적어도 하나의 통신 노드로부터 수신되는 제2 메시지가 상기 제3 통신 노드로 미러링(mirroring)되도록 상기 제1 기능에 대한 포트 미러링을 설정하고; 그리고
상기 적어도 하나의 통신 노드로부터 상기 제2 메시지를 수신하는 경우, 상기 제2 메시지를 상기 설정된 포트 미러링을 기반으로 상기 제3 통신 노드로 전송하도록 실행되고,
상기 적어도 하나의 통신 노드를 판단하는 경우, 상기 제2 테이블에 상기 제1 기능의 기능 코드에 상응하는 VLAN ID와 동일한 VLAN ID를 가지는 적어도 하나의 포트를 확인하는 명령을 포함하는 제1 통신 노드.As a first communication node among a plurality of communication nodes included in an Ethernet-based vehicle network,
processor; and
At least one instruction executed through the processor comprises a memory (memory) stored,
The at least one command is
receive a first message indicating operation of a first function of the vehicle from a second communication node of the plurality of communication nodes;
Determining a third communication node performing a second function corresponding to the first function among the plurality of communication nodes based on a first table including a function code for each of the plurality of functions performed in the vehicle, ;
At least one communication node that provides data related to the second function among the plurality of communication nodes based on a second table including VLAN IDs of communication nodes connected through a plurality of ports included in the first communication node to judge;
configure port mirroring for the first function such that a second message received from the at least one communication node is mirrored to the third communication node; and
when receiving the second message from the at least one communication node, transmit the second message to the third communication node based on the configured port mirroring,
and a command for identifying at least one port having the same VLAN ID as the VLAN ID corresponding to the function code of the first function in the second table when determining the at least one communication node.
상기 적어도 하나의 명령은,
상기 제3 통신 노드를 판단하는 과정에서 상기 기능 코드 각각에 대한 타겟 주소(target address) 및 상기 기능 코드 각각에 대한 VLAN ID(Virtual LAN identifier)가 포함된 제1 테이블을 기반으로 상기 제3 통신 노드를 판단하도록 실행되는 것을 특징으로 하는 제1 통신 노드.16. The method of claim 15,
The at least one command is
In the process of determining the third communication node, the third communication node is based on a first table including a target address for each of the function codes and a virtual LAN identifier (VLAN ID) for each of the function codes. A first communication node, characterized in that is executed to determine.
상기 적어도 하나의 명령은,
상기 제3 통신 노드를 판단하는 과정에서 상기 제1 테이블에서 상기 제1 기능의 기능 코드에 상응하는 타겟 주소를 확인하고; 그리고
상기 확인된 타겟 주소가 지시하는 통신 노드를 상기 제1 기능에 상응하는 제2 기능을 수행하는 상기 제3 통신 노드로 판단하도록 실행되는 것을 특징으로 하는 제1 통신 노드.17. The method of claim 16,
The at least one command is
checking a target address corresponding to the function code of the first function in the first table in the process of determining the third communication node; and
and determining that the communication node indicated by the identified target address is the third communication node performing a second function corresponding to the first function.
상기 적어도 하나의 명령은,
상기 적어도 하나의 통신 노드를 판단하는 과정에서 상기 제1 통신 노드에 포함된 복수의 포트(port)들의 포트 번호 및 상기 복수의 포트들을 통해 연결된 통신 노드의 MAC 주소(MAC address) 를 포함하는 제2 테이블을 기반으로 상기 적어도 하나의 통신 노드를 판단하도록 실행되는 것을 특징으로 하는 제1 통신 노드.17. The method of claim 16,
The at least one command is
A second including port numbers of a plurality of ports included in the first communication node and a MAC address of a communication node connected through the plurality of ports in the process of determining the at least one communication node and determine the at least one communication node based on a table.
상기 적어도 하나의 명령은,
상기 적어도 하나의 통신 노드를 판단하는 과정에서 상기 확인된 포트를 통해 연결된 통신 노드를 상기 제2 기능과 관련된 데이터를 제공하는 상기 적어도 하나의 통신 노드로 판단하도록 실행되는 것을 특징으로 하는 제1 통신 노드.19. The method of claim 18,
The at least one command is
In the process of determining the at least one communication node, a communication node connected through the identified port is determined as the at least one communication node providing data related to the second function. .
상기 적어도 하나의 명령은,
상기 포트 미러링을 설정하는 과정에서 상기 제1 통신 노드 및 상기 제3 통신 노드 간을 연결하는 포트를 상기 제1기능의 미러링을 위한 대상 포트(target port)로 설정하고; 그리고
상기 제1 통신 노드 및 상기 적어도 하나의 통신 노드 간을 연결하는 포트를 상기 제1 기능의 미러링을 위한 미러링 포트(mirroring port)로 설정하도록 실행되는 것을 특징으로 하는 제1 통신 노드.16. The method of claim 15,
The at least one command is
setting a port connecting between the first communication node and the third communication node as a target port for mirroring of the first function in the process of setting the port mirroring; and
and setting a port connecting between the first communication node and the at least one communication node as a mirroring port for mirroring of the first function.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710928633.2A CN107920033B (en) | 2016-10-07 | 2017-09-30 | Method for operating a communication node for mirroring in a vehicle network and communication node |
US15/722,945 US10764210B2 (en) | 2016-10-07 | 2017-10-02 | Operation method of communication node for mirroring in vehicle network |
DE102017123270.2A DE102017123270A1 (en) | 2016-10-07 | 2017-10-06 | Operating method of a communication node for mirroring in a vehicle network |
JP2017195864A JP7028598B2 (en) | 2016-10-07 | 2017-10-06 | First communication node and its operation method |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR20160130032 | 2016-10-07 | ||
KR1020160130032 | 2016-10-07 |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20180038957A KR20180038957A (en) | 2018-04-17 |
KR102357938B1 true KR102357938B1 (en) | 2022-02-03 |
Family
ID=62083300
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020170095325A KR102357938B1 (en) | 2016-10-07 | 2017-07-27 | Operation method of communication node for mirroring in vehicle network |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR102357938B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113923080B (en) * | 2021-10-11 | 2023-12-19 | 中认车联网技术服务(深圳)有限公司 | Video signal monitoring platform based on vehicle-mounted Ethernet and data analysis method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150071115A1 (en) * | 2012-05-16 | 2015-03-12 | Bayerische Motoren Werke Aktiengesellschaft | Data Logging or Stimulation in Automotive Ethernet Networks Using the Vehicle Infrastructure |
US20160065409A1 (en) * | 2014-08-27 | 2016-03-03 | Hyundai Motor Company | Operation method of communication node in network |
-
2017
- 2017-07-27 KR KR1020170095325A patent/KR102357938B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150071115A1 (en) * | 2012-05-16 | 2015-03-12 | Bayerische Motoren Werke Aktiengesellschaft | Data Logging or Stimulation in Automotive Ethernet Networks Using the Vehicle Infrastructure |
US20160065409A1 (en) * | 2014-08-27 | 2016-03-03 | Hyundai Motor Company | Operation method of communication node in network |
Also Published As
Publication number | Publication date |
---|---|
KR20180038957A (en) | 2018-04-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10382221B2 (en) | Communication method based on automotive safety integrity level in vehicle network and apparatus for the same | |
KR102400730B1 (en) | Method for time synchronization between communication nodes in network | |
KR102337548B1 (en) | Method for diagnosing network and apparatus for the same | |
KR102294634B1 (en) | Operation method of communication node in network | |
KR102217255B1 (en) | Operation method of communication node in network | |
KR102390465B1 (en) | Method for power management in network and apparatus for the same | |
KR20170101046A (en) | Communication method in divided vehicle network | |
KR102293037B1 (en) | Operation method of communication node in network | |
KR102234210B1 (en) | Security method for ethernet based network | |
KR102452615B1 (en) | Method for transmitting data based on priority in network | |
KR102352527B1 (en) | Method for communication based on automotive safety integrity level in automotive network and apparatus for the same | |
KR20170087602A (en) | Method for converting operation mode in network | |
KR20180136645A (en) | Operation method of communication node for diagnosing in vehicle network | |
KR102300764B1 (en) | Diagnostic methods and devices in vehicle network | |
JP2017204857A (en) | Method for setting stream communication path in network | |
JP7028598B2 (en) | First communication node and its operation method | |
KR102390481B1 (en) | Operation method of communication node in network | |
KR102357938B1 (en) | Operation method of communication node for mirroring in vehicle network | |
KR102446092B1 (en) | Method for diagnosing link status in network | |
KR102355085B1 (en) | Operation method of communication node for selective wakeup in vehicle network | |
KR102313636B1 (en) | Operation method of communication node for time sinchronizating in vehicle network | |
KR102342000B1 (en) | Method and apparatus for playing contents based on presentation time in automotive network | |
KR102228331B1 (en) | Operation method of communication node in network | |
KR102610921B1 (en) | Method and apparatus for setting backup path in automotive network | |
KR102233213B1 (en) | Method for setting communication path of stream in network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |