KR20180038957A - 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
- KR20180038957A KR20180038957A KR1020170095325A KR20170095325A KR20180038957A KR 20180038957 A KR20180038957 A KR 20180038957A KR 1020170095325 A KR1020170095325 A KR 1020170095325A KR 20170095325 A KR20170095325 A KR 20170095325A KR 20180038957 A KR20180038957 A KR 20180038957A
- Authority
- KR
- South Korea
- Prior art keywords
- communication node
- function
- port
- mirroring
- communication
- 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
Description
본 발명은 네트워크에서 스위치의 미러링(mirroring)을 위한 통신 노드의 동작 방법에 관한 것으로, 더욱 상세하게는 이더넷 기반의 차량 네트워크에서 이더넷 스위치의 미러링 기능을 통해 차량 전장 시스템을 구현하기 위한 통신 노드의 동작 방법에 관한 것이다.BACKGROUND OF THE
차량용 부품의 전자화가 급속도로 진행됨에 따라 차량에 탑재되는 전자 장치의 종류와 수가 크게 증가되고 있다. 전자 장치는 크게 파워트레인(power train) 제어 시스템, 바디(body) 제어 시스템, 새시(chassis) 제어 시스템, 차량 네트워크(network), 멀티미디어(multimedia) 시스템 등에서 사용될 수 있다. 파워트레인 제어 시스템은 엔진 제어 시스템, 자동 변속 제어 시스템 등을 의미할 수 있다. 바디 제어 시스템은 바디 전장품 제어 시스템, 편의 장치 제어 시스템, 램프(lamp) 제어 시스템 등을 의미할 수 있다. 새시 제어 시스템은 조향 장치 제어 시스템, 브레이크(brake) 제어 시스템, 서스팬션(suspension) 제어 시스템 등을 의미할 수 있다. 차량 네트워크는 CAN(controller area network), 플렉스레이(FlexRay) 기반의 네트워크, MOST(media oriented system transport) 기반의 네트워크 등을 의미할 수 있다. 멀티미디어 시스템은 항법 장치 시스템, 텔레메틱스(telematics) 시스템, 인포테인먼트(infotainment) 시스템 등을 의미할 수 있다.BACKGROUND ART [0002] With the rapid progress of electronicization of vehicle parts, the types and number of electronic devices mounted on vehicles have been greatly increased. Electronic devices can 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 mean an engine control system, an automatic shift control system, and the like. The body control system may refer to a body electrical equipment control system, a convenience device control system, a lamp control system, and the like. The chassis control system may refer to a steering control system, a brake control system, a suspension control system, and the like. The vehicle network may refer to a controller area network (CAN), a FlexRay-based network, or a MOST (media oriented system transport) based network. The multimedia system may refer to a navigation system, a telematics system, an infotainment system, or the like.
이러한 시스템들 및 시스템들 각각을 구성하는 전자 장치들은 차량 네트워크를 통해 연결되어 있으며, 전자 장치들 각각의 기능을 지원하기 위한 차량 네트워크가 요구되고 있다. CAN은 최대 1Mbps의 전송 속도를 지원할 수 있으며, 충돌된 프레임(frame)의 자동 재전송, CRC(cyclic redundancy check) 기반의 오류 검출 등을 지원할 수 있다. 플렉스레이 기반의 네트워크는 최대 10Mbps의 전송 속도를 지원할 수 있으며, 2채널을 통한 데이터의 동시 전송, 동기 방식의 데이터 전송 등을 지원할 수 있다. MOST 기반의 네트워크는 고품질의 멀티미디어를 위한 통신 네트워크로, 최대 150Mbps의 전송 속도를 지원할 수 있다.The electronic devices constituting each of these systems and systems are connected through a vehicle network, and a vehicle network is required to support the functions of each of the electronic devices. CAN can support transmission rates of up to 1Mbps, support automatic retransmission of collided frames, and support CRC (cyclic redundancy check) based error detection. FlexRay-based networks can support transmission speeds of up to 10 Mbps, support simultaneous transmission of data over two channels, and synchronous data transmission. 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, vehicle telematics systems, infotainment systems, and enhanced safety systems require high transmission speeds and system scalability, and CAN and FlexRay-based networks do not fully support them. MOST-based networks can support higher transmission speeds than CAN- and FlexRay-based networks, but MOST-based networks are costly for all vehicle networks. Due to these problems, an ethernet-based network can be considered as a vehicle network. An Ethernet-based network can support bidirectional communication through a pair of windings and can support transmission rates up to 10 Gbps.
구체적으로, 이더넷 기반의 차량 네트워크는 이더넷 기반의 통신이 가능한 스위치(switch)를 통해 차량의 전장 시스템을 구현할 수 있다. 예를 들어, 스위치는 차량 네트워크에 포함된 전자 장치를 통해 수신되는 데이터를 처리하고, 처리된 데이터를 출력 가능한 전자 장치로 전송하는 기능을 수행함으로써 전장 시스템의 구현할 수 있다. 그러나, 최근 차량 네트워크에 포함된 전자 장치의 수가 증가하고, 이에 따라 처리되어야 하는 데이터가 증가함으로써 차량의 전장 시스템을 구현하기 어려운 문제가 있다.Specifically, an Ethernet-based vehicle network can implement an electric vehicle system through a switch capable of Ethernet-based communication. For example, a switch may be implemented in a full-field system by performing the function of processing data received via an electronic device contained in a vehicle network and transmitting the processed data to an outputable electronic device. However, in recent years, the number of electronic devices included in the vehicle network has increased, and accordingly, data to be processed has increased, so that it is difficult to realize an electric vehicle system of a vehicle.
상기와 같은 문제점을 해결하기 위한 본 발명의 목적은 이더넷 기반의 차량 네트워크에서 이더넷 스위치의 미러링 기능을 통해 차량 전장 시스템을 구현하기 위한 통신 노드의 동작 방법을 제공하는 데 있다.SUMMARY OF THE INVENTION It is an object of the present invention to provide a method of operating a communication node for implementing a vehicular electric field 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 기능에 대한 포트 미러링을 설정하는 단계를 포함한다.According to another aspect of the present invention, there is provided a method of operating a communication node for mirroring in a vehicle network, the method comprising: operating the first communication node among a plurality of communication nodes included in an ethernet- Receiving a first message indicating an operation of a first function of a vehicle from a second one of the plurality of communication nodes, performing a second function corresponding to the first one of the plurality of communication nodes Determining at least one communication node that provides data associated with the second one of the plurality of communication nodes, and determining a second message received from the at least one communication node And setting 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 step of determining the third communication node may include a function code for each of a plurality of functions performed in the vehicle, a target address for each of the function codes, The third communication node can be determined based on the first table including the VLAN ID (Virtual LAN identifier).
여기서, 상기 제3 통신 노드를 판단하는 단계는 상기 제1 테이블에서 상기 제1 기능의 기능 코드에 상응하는 타겟 주소를 확인하는 단계 및 상기 확인된 타겟 주소가 지시하는 통신 노드를 상기 제1 기능에 상응하는 제2 기능을 수행하는 상기 제3 통신 노드로 판단하는 단계를 포함할 수 있다.Wherein the step of determining the third communication node comprises the steps of: identifying a target address corresponding to the function code of the first function in the first table; and determining a communication node indicated by the identified target address in the first function And determining the third communication node to perform the corresponding second function.
여기서, 상기 적어도 하나의 통신 노드를 판단하는 단계는 상기 제1 통신 노드에 포함된 복수의 포트(port)들의 포트 번호, 상기 복수의 포트들을 통해 연결된 통신 노드의 MAC 주소(MAC address) 및 상기 복수의 포트들을 통해 연결된 통신 노드의 VLAN ID를 포함하는 제2 테이블을 기반으로 상기 적어도 하나의 통신 노드를 판단할 수 있다.The determining of the at least one communication node may include determining a port number 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 second table including the VLAN ID of the communication node connected through the ports of the at least one communication node.
여기서, 상기 적어도 하나의 통신 노드를 판단하는 단계는 상기 제2 테이블에서 상기 제1 기능의 기능 코드에 상응하는 VLAN ID와 동일한 VLAN ID를 가지는 적어도 하나의 포트를 확인하는 단계 및 상기 확인된 포트를 통해 연결된 통신 노드를 상기 제2 기능과 관련된 데이터를 제공하는 상기 적어도 하나의 통신 노드로 판단하는 단계를 포함할 수 있다.Wherein determining the at least one communication node comprises: identifying at least one port having a VLAN ID equal to a VLAN ID corresponding to a function code of the first function in the second table; And determining that the connected communication node is the at least one communication node providing data associated with the second function.
여기서, 상기 포트 미러링을 설정하는 단계는 상기 제1 통신 노드 및 상기 제3 통신 노드 간을 연결하는 포트를 상기 제1기능의 미러링을 위한 대상 포트(target port)로 설정하는 단계 및 상기 제1 통신 노드 및 상기 적어도 하나의 통신 노드 간을 연결하는 포트를 상기 제1 기능의 미러링을 위한 미러링 포트(mirroring port)로 설정하는 단계를 포함할 수 있다.The setting of the port mirroring may include setting a port connecting between the first communication node and the third communication node as a target port for mirroring the first function, And setting a port connecting the node and the at least one communication node to a mirroring port for mirroring the first function.
여기서, 상기 제1 통신 노드의 동작 방법은 상기 적어도 하나의 통신 노드로부터 상기 미러링 포트를 통해 상기 제2 메시지를 수신하는 경우, 상기 제2 메시지를 상기 대상 포트를 통해 상기 제3 통신 노드로 전송하는 단계를 더 포함할 수 있다.Wherein the method of operating the first communication node further comprises: when receiving the second message from the at least one communication node via the mirroring port, transmitting the second message to the third communication node via the target port Step < / RTI >
여기서, 상기 제1 통신 노드는 상기 차량 네트워크에 포함된 스위치(switch)이고, 상기 제2 통신 노드, 상기 제3 통신 노드 및 상기 적어도 하나의 통신 노드는 상기 제1 통신 노드에 연결된 엔드 노드(end node)일 수 있다.Wherein 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 (end node.
상기 목적을 달성하기 위한 본 발명의 다른 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법은 이더넷(ethernet) 기반의 차량 네트워크에 포함된 복수의 통신 노드들 중 제1 통신 노드의 동작 방법으로서, 상기 복수의 통신 노드들 중 적어도 하나의 통신 노드로부터 차량의 기능과 관련된 데이터가 포함된 메시지를 수신하는 단계, 상기 기능에 대한 포트 미러링(port mirroring)의 설정 여부를 판단하는 단계 및 상기 기능에 대한 포트 미러링의 설정 여부에 기초하여 상기 메시지를 처리하는 단계를 포함한다.According to another aspect of the present invention, there is provided a method of operating a communication node for mirroring in a vehicle network, the method comprising: operating a first communication node among a plurality of communication nodes included in an ethernet- The method comprising: receiving a message including data related to a function of a vehicle from at least one of the plurality of communication nodes; determining whether port mirroring is set for the function; And processing the message based on whether or not port mirroring is set for the port mirroring.
여기서, 상기 포트 미러링의 설정 여부를 판단하는 단계는 상기 제1 통신 노드 및 상기 적어도 하나의 통신 노드 간을 연결하는 포트가 상기 기능의 미러링을 위한 미러링 포트(mirroring port)인 경우, 상기 기능에 대한 포트 미러링이 설정된 것으로 판단할 수 있다.The step of determining whether the port mirroring is established may include a step of, when a port connecting between the first communication node and the at least one communication node is a mirroring port for mirroring the function, It can be determined that port mirroring is set.
여기서, 상기 포트 미러링의 설정 여부를 판단하는 단계는 상기 제1 통신 노드 및 상기 적어도 하나의 통신 노드 간을 연결하는 포트가 상기 기능의 미러링을 위한 미러링 포트가 아닌 경우, 상기 기능에 대한 포트 미러링이 설정되지 않은 것으로 판단할 수 있다.If the port connecting the first communication node and the at least one communication node is not a mirroring port for mirroring the function, the step of determining whether or not the port mirroring is established may include: It can be determined that it is not set.
여기서, 상기 메시지를 처리하는 단계는 상기 기능에 대한 포트 미러링이 설정된 경우, 상기 기능의 미러링을 위한 대상 포트(target port)를 통해 연결된 제3 통신 노드로 상기 메시지를 전송할 수 있다.Here, the processing of the message may transmit the message to a third communication node connected through a target port for mirroring the function, when port mirroring for the function is set.
여기서, 상기 메시지를 처리하는 단계는 상기 기능에 대한 포트 미러링이 설정되지 않은 경우, 상기 메시지를 삭제할 수 있다.Here, the processing of the message may delete the message if port mirroring for the function is not set.
여기서, 상기 제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 an end node connected to the first communication node.
상기 목적을 달성하기 위한 본 발명의 또 다른 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 수행하는 통신 노드는 이더넷(ethernet) 기반의 차량 네트워크의 제1 통신 노드로서, 프로세서(processor) 및 상기 프로세서를 통해 실행되는 적어도 하나의 명령이 저장된 메모리(memory)를 포함하고, 상기 적어도 하나의 명령은 상기 복수의 통신 노드들 중 제2 통신 노드로부터 차량의 제1 기능의 동작을 나타내는 제1 메시지를 수신하고, 상기 복수의 통신 노드들 중 상기 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드를 판단하고, 상기 복수의 통신 노드들 중 상기 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드를 판단하고, 상기 적어도 하나의 통신 노드로부터 수신되는 제2 메시지가 상기 제3 통신 노드로 미러링(mirroring)되도록 상기 제1 기능에 대한 포트 미러링을 설정하고, 그리고 상기 적어도 하나의 통신 노드로부터 상기 제2 메시지를 수신하는 경우, 상기 제2 메시지를 상기 설정된 포트 미러링을 기반으로 상기 제3 통신 노드로 전송하도록 실행된다.According to another aspect of the present invention, there is provided a communication node for performing a method of operating a communication node for mirroring in a vehicle network, the communication node being a first communication node of an Ethernet-based vehicle network, And a memory in which at least one instruction executed via the processor is stored, wherein the at least one instruction is an instruction from the second communication node of the plurality of communication nodes to indicate an operation of the first function of the
여기서, 상기 적어도 하나의 명령은 상기 제3 통신 노드를 판단하는 과정에서 상기 차량에서 수행되는 복수의 기능들 각각에 대한 기능 코드(function code), 상기 기능 코드 각각에 대한 타겟 주소(target address) 및 상기 기능 코드 각각에 대한 VLAN ID(Virtual LAN identifier)가 포함된 제1 테이블을 기반으로 상기 제3 통신 노드를 판단하도록 실행될 수 있다.Here, the at least one command may include 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 to determine the third communication node based on a first table including a VLAN ID (Virtual LAN identifier) for each of the function codes.
여기서, 상기 적어도 하나의 명령은 상기 제3 통신 노드를 판단하는 과정에서 상기 제1 테이블에서 상기 제1 기능의 기능 코드에 상응하는 타겟 주소를 확인하고, 그리고 상기 확인된 타겟 주소가 지시하는 통신 노드를 상기 제1 기능에 상응하는 제2 기능을 수행하는 상기 제3 통신 노드로 판단하도록 실행될 수 있다.Wherein the at least one command identifies a target address corresponding to a function code of the first function in the first table in the process of determining the third communication node, As the third communication node performing the second function corresponding to the first function.
여기서, 상기 적어도 하나의 명령은 상기 적어도 하나의 통신 노드를 판단하는 과정에서 상기 제1 통신 노드에 포함된 복수의 포트(port)들의 포트 번호, 상기 복수의 포트들을 통해 연결된 통신 노드의 MAC 주소(MAC address) 및 상기 복수의 포트들을 통해 연결된 통신 노드의 VLAN ID를 포함하는 제2 테이블을 기반으로 상기 적어도 하나의 통신 노드를 판단하도록 실행될 수 있다.Here, the at least one command may include a port number of a plurality of ports included in the first communication node in determining the at least one communication node, a MAC address of a communication node connected through the plurality of ports, MAC address) and a VLAN ID of a communication node connected through the plurality of ports.
여기서, 상기 적어도 하나의 명령은 상기 적어도 하나의 통신 노드를 판단하는 과정에서 상기 제2 테이블에서 상기 제1 기능의 기능 코드에 상응하는 VLAN ID와 동일한 VLAN ID를 가지는 적어도 하나의 포트를 확인하고, 그리고 상기 확인된 포트를 통해 연결된 통신 노드를 상기 제2 기능과 관련된 데이터를 제공하는 상기 적어도 하나의 통신 노드로 판단하도록 실행될 수 있다.Wherein 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 the 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)로 설정하도록 실행될 수 있다.Herein, 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 the first function in the process of setting the port mirroring And a port connecting the first communication node and the at least one communication node to a mirroring port for mirroring the first function.
본 발명에 의하면, 차량 네트워크에서 데이터를 처리하기 위해 소요되는 시간을 감소시킬 수 있고, 이를 통해 차량의 전장 시스템을 구현하기 위한 효율을 향상시킬 수 있는 효과가 있다. 또한, 본 발명에 따른 통신 노드의 동작 방법은 이더넷 기반의 통신 방식 이외의 통신 방식을 통해 수신된 데이터를 별도의 게이트웨이에 의한 처리 없이 처리할 수 있는 효과가 있다.According to the present invention, it is possible to reduce the time required to process data in a vehicle network, thereby improving the efficiency of implementing an electric vehicle 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 another 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 showing 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 for determining a third communication node in the method of operation of the communication node shown in FIG.
6 is a flowchart illustrating a method for determining at least one communication node in the method of operation of the communication node shown in FIG.
7 is a flowchart illustrating a method of setting port mirroring in the method of operation 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 illustrating a method of operating a communication node for mirroring in a vehicle network according to another embodiment of the present invention.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다.While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the invention is not intended to be limited to the particular embodiments, but includes all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.
제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.The terms first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, the first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component. And / or < / RTI > includes any combination of a plurality of related listed items or any of a plurality of related listed items.
어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.It is to be understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, . On the other hand, when an element is referred to as being "directly connected" or "directly connected" to another element, it should be understood that there are no other elements in between.
본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terminology used in this application is used only to describe a specific embodiment and is not intended to limit the invention. The singular expressions include plural expressions unless the context clearly dictates otherwise. In the present application, the terms "comprises" or "having" and the like are used to specify that there is a feature, a number, a step, an operation, an element, a component or a combination thereof described in the specification, But do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.
다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가진 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless defined otherwise, all terms used herein, including technical or 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 commonly used dictionaries should be interpreted as having a meaning consistent with the meaning in the context of the relevant art and are to be interpreted in an ideal or overly formal sense unless explicitly defined in the present application Do not.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 본 발명을 설명함에 있어 전체적인 이해를 용이하게 하기 위하여 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In order to facilitate the understanding of the present invention, the same reference numerals are used for the same constituent elements in the drawings and redundant explanations for the same constituent elements are omitted.
도 1은 차량 네트워크의 토폴로지(network topology)의 일 실시예를 도시한 블록도이다.1 is a block diagram illustrating one 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)를 제어할 수 있다.1, a communication node constituting a vehicle network may refer to 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 프로토콜, 이더넷 프로토콜 등을 지원할 수 있다. 본 발명에 따른 실시예들은 앞서 설명된 네트워크 토폴로지에 적용될 수 있으며, 본 발명에 따른 실시예들이 적용되는 네트워크 토폴로지는 이에 한정되지 않고 다양하게 구성될 수 있다.The communication nodes (i.e., gateways, switches, end nodes, etc.) that constitute the vehicle network may be a star topology, a bus topology, a ring topology, a tree topology, Topology, and so on. Further, each of the communication nodes constituting the vehicle network may support the CAN protocol, the FlexRay protocol, the MOST protocol, the LIN protocol, the Ethernet protocol, and the like. Embodiments according to the present invention can be applied to the network topology described above, and the network topology to which the embodiments according to the present invention are applied is not limited to this, and can be variously configured.
도 2는 차량 네트워크를 구성하는 통신 노드의 구조에 대한 일 실시예를 도시한 블록도이다.2 is a block diagram showing 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, a
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 통신 노드는 스위치의 동작과 상응하는 동작을 수행할 수 있다.Hereinafter, a method performed in a communication node belonging to a vehicle network and a corresponding counterpart communication node will be described. Hereinafter, even when a method (e.g., transmission or reception of a signal) to be performed at the first communication node is described, the corresponding second communication node can perform a method corresponding to the method performed at the first communication node For example, receiving or transmitting a signal). That is, when the operation of the first communication node is described, the corresponding second communication node can perform an 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 can 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에 도시된 통신 노드와 동일 또는 유사하게 구성될 수 있다.3, the vehicle network may include
스위치 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을 참조하여 구체적으로 설명될 수 있다.
도 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 similar or identical structure to that of the communication node described with reference to Fig. 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를 의미할 수 있다.A second one of the plurality of communication nodes included in the vehicle network may refer to end
제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, it may generate the first message including the indicator indicating the operation of the first function. Thereafter, the second communication node may transmit a first message to the first communication node, the first message including an indicator indicating an operation of the first function of the vehicle. Thereafter, the first communication node may receive a first message indicating operation of the first function of the vehicle from the second one of the plurality of communication nodes (S410). Thereafter, the first communication node can confirm the indicator indicating the operation of the first function included in the first message, and can recognize that the first function has been operated in the vehicle through the confirmed 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 that performs a second function corresponding to the first one of 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 the vehicle, and the first function is a function of operating as "R (reverse) " And a function of outputting a video image. That is, the third communication node may mean a display device capable of outputting an image photographed from the rear of the vehicle. If the second communication node is a steering device (for example, a handle) for controlling the direction of the vehicle and the first function is the function of controlling the direction of the vehicle to the left or right, And a function of outputting an image photographed on the right side. That is, the third communication node may mean 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 of the function codes, and a VLAN ID (Virtual LAN identifier) for each of the function codes The third communication node can be determined based on the first table. A specific method of determining the third communication node at the first communication node may be described below with reference to FIG.
도 5는 도 4에 도시된 통신 노드의 동작 방법에서 제3 통신 노드를 판단하는 방법을 도시한 흐름도이다.5 is a flowchart illustrating a method for determining a third communication node in the method of operation of the communication node shown in FIG.
도 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 node corresponding to a first function based on information included in a first table, 2 < / RTI > function. The first table to be referred to by the first communication node to determine the third communication node may be represented as 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 above may refer to an embodiment of a first table that is referenced to determine a third communication node that performs a second function at a first communication node corresponding to a first function. 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, and a VLAN ID. The first communication node can identify the function code of the first function based on the first table. For example, when the first function is a function that operates as "D (drive) " in which the gear of the vehicle means forward or" It can be determined that a function related to a surround view, which is a function of shooting, is required. Accordingly, the first communication node can determine the function code of the first function as "2" corresponding to the surround view by referring 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 통신 노드로 판단할 수 있다.Then, the first communication node can confirm the target address corresponding to the function code of the first function in the first table (S421). For example, the first communication node can identify the target address "01-10-AO-CO-00-02" corresponding to "2" Thereafter, the first communication node may determine that the communication node indicated by the identified target address is a third communication node that performs a second function corresponding to the first function (S422). That is, the first communication node transmits a communication node indicated by "01-10-A0-C0-00-02" as the target address corresponding to "2 & 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 a second one of the plurality of communication nodes (S430). For example, if the first function is a function to operate as "D (drive) " which means that the gear of the vehicle advances or" The at least one communication node providing data related to the second function may mean a camera capable of photographing the rear of the vehicle. The first function is a function for controlling the direction of the vehicle to the left or right and the second function is a function for outputting a photographed image on the left or right side of the vehicle, 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 transmits the port number of the plurality of ports included in the first communication node, the MAC address of the communication node connected through the plurality of ports, and the VLAN ID of the communication node connected through the plurality of ports And determine at least one communication node based on the second table including the second table. A specific method of determining at least one communication node at the first communication node may be described below with reference to Fig.
도 6은 도 4에 도시된 통신 노드의 동작 방법에서 적어도 하나의 통신 노드를 판단하는 방법을 도시한 흐름도이다.6 is a flowchart illustrating a method for determining at least one communication node in the method of operation of the communication node shown in FIG.
도 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 exemplary 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 to provide. The second table for referring to at least one communication node in the first communication node may be represented as 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 above may refer to one embodiment of a second table that is referenced to determine at least one communication node that provides data associated with a second function at a first communication node. For example, the second table may include a port number of a plurality of ports included in the first communication node, a MAC address of a communication node connected through a plurality of ports, and a VLAN ID of a communication node connected through a plurality of ports have. The first communication node can 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 can 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 port having the
이후, 제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 that the communication node connected through the identified port is at least one communication node providing data related to the second function (S432). Specifically, the first communication node can confirm the MAC address of the communication node connected through the port having the
예를 들어, 제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 transmits the MAC addresses of 01-10-AO-CO-00-02, 01-10-AO-CO-00- 01-10-AO-CO-00-02 ", which is the MAC address of the port having the
다시, 도 4를 참조하면, 제1 통신 노드는 적어도 하나의 통신 노드로부터 수신되는 제2 메시지를 제3 통신 노드로 미러링(mirroring)되도록 제1 기능에 대한 포트 미러링(port mirroring)을 설정할 수 있다(S440). 제1 통신 노드에서 제1 기능에 대한 포트 미러링을 설정하는 구체적인 방법은 이하에서 도 7을 참조하여 설명될 수 있다.4, a first communication node may establish port mirroring for a first function to mirror a second message received from at least one communication node to a third communication node (S440). A specific method of setting the port mirroring for the first function at the first communication node can be described below with reference to FIG.
도 7은 도 4에 도시된 통신 노드의 동작 방법에서 포트 미러링을 설정하는 방법을 도시한 흐름도이다.7 is a flowchart illustrating a method of setting port mirroring in the method of operation 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 includes a first communication node and a third communication node, And may be set as a target port for mirroring the function (S441). Specifically, the first communication node can confirm the MAC address of the third communication node determined on the basis of the first table in the second table, and confirm the port corresponding to the MAC address of the third communication node. Thereafter, the first communication node can identify the identified port as a port connecting between the first communication node and the third communication node among the plurality of ports included in the first communication node, It can be set as a 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 the
이후, 제1 통신 노드는 제1 통신 노드 및 적어도 하나의 통신 노드 간을 연결하는 포트를 제1 기능의 미러링을 위한 미러링 포트로 설정할 수 있다(S442). 구체적으로, 제1 통신 노드는 제2 테이블에 기초하여 제1 통신 노드에 포함된 복수의 포트들 중 적어도 하나의 통신 노드의 포트를 확인할 수 있다. 이후, 제1 통신 노드는 확인된 적어도 하나의 통신 노드의 포트를 제1 기능의 미러링을 위한 미러링 포트로 설정할 수 있다.Then, the first communication node can set the port connecting between the first communication node and the at least one communication node to the mirroring port for the mirroring of the first function (S442). Specifically, the first communication node can identify a port of at least one of the plurality of ports included in the first communication node based on the second table. Then, the first communication node may set the port of the identified at least one communication node as a mirroring port for the 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 기능의 미러링을 위한 미러링 포트로 설정할 수 있다.3, the at least one communication node is referred to as an end node 3 (313) and an end node 4 (314) connected to the switch 1 (310) . In this case, the
다시, 도 4를 참조하면 제1 통신 노드는 적어도 하나의 통신 노드로부터 미러링 포트를 통해 제2 메시지가 수신되는 경우, 제2 메시지를 대상 포트롤 통해 제3 통신 노드로 전송할 수 있다(S450). 여기서, 제2 메시지는 제2 기능과 관련된 데이터를 포함할 수 있다. 예를 들어, 제2 기능이 차량의 후방에서 촬영된 영상을 출력하는 기능인 경우, 제2 메시지는 제2 기능과 관련된 데이터인 차량의 후방에서 촬영된 영상에 대한 데이터를 포함할 수 있다.4, if a second message is received from the at least one communication node via the mirroring port, the first communication node may transmit the second message to the third communication node through the target port role (S450). Here, the second message may include data related to the second function. For example, if the second function is a function of outputting an image photographed at the rear of the vehicle, the second message may include data of the image photographed at 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)로 전송할 수 있다.3, at least one communication node may be referred to as an end node 3 (313) and an end node 4 (314) connected to the switch 1 (310) . In such a case, 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,
도 3 내지 도 7을 참조하여 상술한 바와 같이, 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 수행하는 제1 통신 노드는 제1 기능에 대한 포트 미러링을 설정할 수 있다. 이와 같이 설정되는 포트 미러링에 기초하여 제1 통신 노드에서 메시지를 처리하는 방법은 이하에서 도 8을 참조하여 구체적으로 설명될 수 있다.As described above with reference to Figures 3 to 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 may set port mirroring for the first function have. A method of processing a message at the first communication node based on the port mirroring thus set can be described in detail below with reference to FIG.
도 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 similar or identical structure to that of the communication node described with reference to Fig. 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 the function of the vehicle. Thereafter, at least one communication node may transmit the generated message to the first communication node. Then, the first communication node may receive a message including data related to the function of the vehicle 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 of a plurality of functions performed in the vehicle.
이후, 제1 통신 노드는 수신된 메시지에 포함된 차량의 기능과 관련된 데이터를 확인할 수 있고, 확인된 기능에 대한 포트 미러링의 설정 여부를 판단할 수 있다. 구체적으로, 제1 통신 노드는 제1 통신 노드에 포함된 복수의 포트들 중 적어도 하나의 통신 노드에 대한 포트가 미러링 포트인지를 확인할 수 있다(S820). 즉, 제1 통신 노드는 제1 통신 노드에 포함된 복수의 포트들 중 적어도 하나의 통신 노드와 연결된 포트가 미러링 포트로 설정된 포트인지를 확인할 수 있다.Then, the first communication node can check data related to the function of the vehicle included in the received message, and determine whether port mirroring is set for the identified function. Specifically, the first communication node can check whether the port for at least one of the plurality of ports included in the first communication node is a mirroring port (S820). That is, the first communication node can confirm that the port connected to at least one of the plurality of ports included in the first communication node is the port set as the mirroring port.
이후, 제1 통신 노드는 제1 통신 노드 및 적어도 하나의 통신 노드 간을 연결하는 포트가 확인된 기능의 미러링을 위한 미러링 포트인 경우, 확인된 기능에 대한 포트 미러링이 설정된 것으로 판단할 수 있다. 반면, 제1 통신 노드는 제1 통신 노드 및 적어도 하나의 통신 노드 간을 연결하는 포트가 확인된 기능의 미러링을 위한 미러링 포트가 아닌 경우, 확인된 기능에 대한 포트 미러링이 설정되지 않은 것으로 판단할 수 있다.Thereafter, the first communication node may determine that port mirroring for the identified function is set when the port connecting the first communication node and the at least one communication node is a mirroring port for mirroring the identified function. On the other hand, if the port connecting the first communication node and the at least one communication node is not a mirroring port for mirroring the identified function, the first communication node determines that port mirroring for the identified function is not set .
이후, 제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 identified function. Specifically, when the port mirroring for the identified function is set, the first communication node may transmit a message including data related to the function of the vehicle to the third communication node through the target port for the identified function (S830) . Here, the third communication node may refer to a communication node connected through a target port for port mirroring among a plurality of ports included in the first communication node. Meanwhile, if the port mirroring for the identified function is not set, the first communication node may delete the message including the data related to the function of the vehicle (S840).
상술한 바와 같은 방법을 통해, 본 발명의 일 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 수행하는 제1 통신 노드는 차량에서 수행되는 복수의 기능들 중 포트 미러링이 설정된 기능이 존재하는 경우, 설정된 포트 미러링에 기초하여 해당 기능과 관련된 메시지를 처리할 수 있다. 구체적으로, 제1 통신 노드에서 포트 미러링에 기초하여 해당 기능과 관련된 메시지를 처리하는 방법은 이하에서 설명될 수 있다.Through the above-described method, 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 function of setting port mirroring among a plurality of functions performed in a vehicle If so, it can process messages related to that function based on the set port mirroring. Specifically, a method of processing a message related to the function based on port mirroring at the first communication node can 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 the function of the vehicle from at least one communication node through the PHY layer unit. Thereafter, the message received via the PHY layer unit of the first communication node may be transmitted to the PHY layer unit of the third communication node connected through the target port for port mirroring, without being forwarded to the controller unit. That is, when the first communication node receives a message including data related to the function of the vehicle on which the port mirroring is set, through the PHY layer unit, the first communication node transmits the message to the third communication node PHY layer unit.
도 9는 본 발명의 또 다른 실시예에 따른 차량 네트워크에서 미러링을 위한 통신 노드의 동작 방법을 설명하기 위한 블록도이다.9 is a block diagram illustrating 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에 도시된 통신 노드와 동일 또는 유사하게 구성될 수 있다.9, the vehicle network includes
스위치 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 a vehicle network having a connection structure as described above, 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 기능을 수행하는 통신 노드로 판단할 수 있다.
이후, 스위치 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 switch 1 (910) can confirm the VLAN ID corresponding to the function code of the first function in the first table, and the VLAN ID corresponding to the function code of the first function in the second
이때, 스위치 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)로 전송할 수 있다.At this time, 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)로 전송할 수 있다.In the same manner,
한편, 스위치 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 기능의 미러링을 위한 대상 포트로 설정할 수 있다.On the other hand, 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 can be implemented in the form of program instructions that can be executed through various computer means and recorded on a computer readable medium. The computer readable medium may include program instructions, data files, data structures, and the like, alone or in combination. The program instructions recorded on the computer readable medium may be those specially designed and constructed for the present invention or may be available to those skilled in the computer software.
컴퓨터 판독 가능 매체의 예에는 롬(rom), 램(ram), 플래시 메모리(flash memory) 등과 같이 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러(compiler)에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터(interpreter) 등을 사용해서 컴퓨터에 의해 실행될 수 있는 고급 언어 코드를 포함한다. 상술한 하드웨어 장치는 본 발명의 동작을 수행하기 위해 적어도 하나의 소프트웨어 모듈로 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.Examples of computer readable media include hardware devices that are specially configured to store and execute program instructions, such as ROM, RAM, flash memory, and the like. Examples of program instructions include machine language code such as those generated by a compiler, as well as high-level language code that can be executed by a computer using an interpreter or the like. The hardware devices described above may be configured to operate with at least one software module to perform the operations of the present invention, and vice versa.
이상 실시예를 참조하여 설명하였지만, 해당 기술 분야의 숙련된 당업자는 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined in the appended claims. It will be possible.
Claims (20)
상기 복수의 통신 노드들 중 제2 통신 노드로부터 차량의 제1 기능의 동작을 나타내는 제1 메시지를 수신하는 단계;
상기 복수의 통신 노드들 중 상기 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드를 판단하는 단계;
상기 복수의 통신 노드들 중 상기 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드를 판단하는 단계; 및
상기 적어도 하나의 통신 노드로부터 수신되는 제2 메시지가 상기 제3 통신 노드로 미러링(mirroring)되도록 상기 제1 기능에 대한 포트 미러링을 설정하는 단계를 포함하는 제1 통신 노드의 동작 방법.A method of operating a first one of a plurality of communication nodes included in an ethernet-based vehicle network,
Receiving a first message indicating an operation of a first function of the vehicle from a second one of the plurality of communication nodes;
Determining a third one of the plurality of communication nodes to perform a second function corresponding to the first function;
Determining at least one communication node providing data associated with the second one of the plurality of communication nodes; And
Establishing 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.
상기 제3 통신 노드를 판단하는 단계는,
상기 차량에서 수행되는 복수의 기능들 각각에 대한 기능 코드(function code), 상기 기능 코드 각각에 대한 타겟 주소(target address) 및 상기 기능 코드 각각에 대한 VLAN ID(Virtual LAN identifier)가 포함된 제1 테이블을 기반으로 상기 제3 통신 노드를 판단하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method according to claim 1,
Wherein the determining of the third communication node comprises:
(1) including 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 VLAN ID (Virtual LAN identifier) for each of the function codes And determining the third communication node based on the table.
상기 제3 통신 노드를 판단하는 단계는,
상기 제1 테이블에서 상기 제1 기능의 기능 코드에 상응하는 타겟 주소를 확인하는 단계; 및
상기 확인된 타겟 주소가 지시하는 통신 노드를 상기 제1 기능에 상응하는 제2 기능을 수행하는 상기 제3 통신 노드로 판단하는 단계를 포함하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method of claim 2,
Wherein the determining of the third communication node comprises:
Identifying a target address corresponding to a function code of the first function in the first table; And
And determining that the communication node indicated by the identified target address is the third communication node that performs a second function corresponding to the first function.
상기 적어도 하나의 통신 노드를 판단하는 단계는,
상기 제1 통신 노드에 포함된 복수의 포트(port)들의 포트 번호, 상기 복수의 포트들을 통해 연결된 통신 노드의 MAC 주소(MAC address) 및 상기 복수의 포트들을 통해 연결된 통신 노드의 VLAN ID를 포함하는 제2 테이블을 기반으로 상기 적어도 하나의 통신 노드를 판단하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method of claim 2,
Wherein determining the at least one communication node comprises:
A port number 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 a VLAN ID of a communication node connected through the plurality of ports, And determining the at least one communication node based on a second table.
상기 적어도 하나의 통신 노드를 판단하는 단계는,
상기 제2 테이블에서 상기 제1 기능의 기능 코드에 상응하는 VLAN ID와 동일한 VLAN ID를 가지는 적어도 하나의 포트를 확인하는 단계; 및
상기 확인된 포트를 통해 연결된 통신 노드를 상기 제2 기능과 관련된 데이터를 제공하는 상기 적어도 하나의 통신 노드로 판단하는 단계를 포함하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method of claim 4,
Wherein 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
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,
Wherein the setting of the port mirroring comprises:
Setting a port connecting between the first communication node and the third communication node as a target port for mirroring the first function; And
And setting a port connecting between the first communication node and the at least one communication node as a mirroring port for mirroring the first function. .
상기 제1 통신 노드의 동작 방법은,
상기 적어도 하나의 통신 노드로부터 상기 미러링 포트를 통해 상기 제2 메시지를 수신하는 경우, 상기 제2 메시지를 상기 대상 포트를 통해 상기 제3 통신 노드로 전송하는 단계를 더 포함하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method of claim 6,
The method of claim 1,
Further comprising, when receiving the second message from the at least one communication node via the mirroring port, transmitting the second message to the third communication node via the destination port. A method of operating a communication node.
상기 제1 통신 노드는,
상기 차량 네트워크에 포함된 스위치(switch)이고, 상기 제2 통신 노드, 상기 제3 통신 노드 및 상기 적어도 하나의 통신 노드는 상기 제1 통신 노드에 연결된 엔드 노드(end node)인 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method according to claim 1,
Wherein the first communication node comprises:
Wherein 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. 1 method of operating a communication node.
상기 복수의 통신 노드들 중 적어도 하나의 통신 노드로부터 차량의 기능과 관련된 데이터가 포함된 메시지를 수신하는 단계;
상기 기능에 대한 포트 미러링(port mirroring)의 설정 여부를 판단하는 단계; 및
상기 기능에 대한 포트 미러링의 설정 여부에 기초하여 상기 메시지를 처리하는 단계를 포함하는 제1 통신 노드의 동작 방법.A method of operating a first one of a plurality of communication nodes included in an ethernet-based vehicle network,
Receiving a message including data related to a function of a vehicle from at least one of the plurality of communication nodes;
Determining whether port mirroring is set for the function; And
And processing the message based on whether to set up port mirroring for the function.
상기 포트 미러링의 설정 여부를 판단하는 단계는,
상기 제1 통신 노드 및 상기 적어도 하나의 통신 노드 간을 연결하는 포트가 상기 기능의 미러링을 위한 미러링 포트(mirroring port)인 경우, 상기 기능에 대한 포트 미러링이 설정된 것으로 판단하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method of claim 9,
Wherein the determining whether the port mirroring is set comprises:
Wherein if the port connecting the first communication node and the at least one communication node is a mirroring port for mirroring the function, it is determined that the port mirroring for the function is set. A method of operating a communication node.
상기 포트 미러링의 설정 여부를 판단하는 단계는,
상기 제1 통신 노드 및 상기 적어도 하나의 통신 노드 간을 연결하는 포트가 상기 기능의 미러링을 위한 미러링 포트가 아닌 경우, 상기 기능에 대한 포트 미러링이 설정되지 않은 것으로 판단하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method of claim 9,
Wherein the determining whether the port mirroring is set comprises:
Wherein if the port connecting the first communication node and the at least one communication node is not a mirroring port for mirroring the function, it determines that port mirroring for the function is not set. How the node works.
상기 메시지를 처리하는 단계는,
상기 기능에 대한 포트 미러링이 설정된 경우, 상기 기능의 미러링을 위한 대상 포트(target port)를 통해 연결된 제3 통신 노드로 상기 메시지를 전송하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method of claim 9,
Wherein processing the message comprises:
And if the port mirroring for the function is set, sending the message to a third communication node connected through a target port for mirroring the function.
상기 메시지를 처리하는 단계는,
상기 기능에 대한 포트 미러링이 설정되지 않은 경우, 상기 메시지를 삭제하는 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method of claim 9,
Wherein processing the message comprises:
And if the port mirroring for the function is not set, deletes the message.
상기 제1 통신 노드는,
상기 차량 네트워크에 포함된 스위치(switch)이고, 상기 적어도 하나의 통신 노드 및 상기 제2 통신 노드는 상기 제1 통신 노드에 연결된 엔드 노드(end node)인 것을 특징으로 하는 제1 통신 노드의 동작 방법.The method of claim 10,
Wherein the first communication node comprises:
Wherein the first communication node is a switch included in the vehicle network and the at least one communication node and the second communication node are end nodes connected to the first communication node. .
프로세서(processor); 및
상기 프로세서를 통해 실행되는 적어도 하나의 명령이 저장된 메모리(memory)를 포함하고,
상기 적어도 하나의 명령은,
상기 복수의 통신 노드들 중 제2 통신 노드로부터 차량의 제1 기능의 동작을 나타내는 제1 메시지를 수신하고;
상기 복수의 통신 노드들 중 상기 제1 기능에 상응하는 제2 기능을 수행하는 제3 통신 노드를 판단하고;
상기 복수의 통신 노드들 중 상기 제2 기능과 관련된 데이터를 제공하는 적어도 하나의 통신 노드를 판단하고;
상기 적어도 하나의 통신 노드로부터 수신되는 제2 메시지가 상기 제3 통신 노드로 미러링(mirroring)되도록 상기 제1 기능에 대한 포트 미러링을 설정하고; 그리고
상기 적어도 하나의 통신 노드로부터 상기 제2 메시지를 수신하는 경우, 상기 제2 메시지를 상기 설정된 포트 미러링을 기반으로 상기 제3 통신 노드로 전송하도록 실행되는 제1 통신 노드.A first communication node in an ethernet-based vehicle network,
A processor; And
Wherein at least one instruction executed through the processor includes a memory,
Wherein the at least one instruction comprises:
Receive a first message indicating an operation of a first function of the vehicle from a second one of the plurality of communication nodes;
Determining a third one of the plurality of communication nodes to perform a second function corresponding to the first function;
Determining at least one communication node providing data associated with the second one of the plurality of communication nodes;
Establish 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
And to send the second message to the third communication node based on the established port mirroring when receiving the second message from the at least one communication node.
상기 적어도 하나의 명령은,
상기 제3 통신 노드를 판단하는 과정에서 상기 차량에서 수행되는 복수의 기능들 각각에 대한 기능 코드(function code), 상기 기능 코드 각각에 대한 타겟 주소(target address) 및 상기 기능 코드 각각에 대한 VLAN ID(Virtual LAN identifier)가 포함된 제1 테이블을 기반으로 상기 제3 통신 노드를 판단하도록 실행되는 것을 특징으로 하는 제1 통신 노드.16. The method of claim 15,
Wherein the at least one instruction comprises:
A function code for each of a plurality of functions performed in the vehicle in a process of determining the third communication node, a target address for each of the function codes, and a VLAN ID Wherein the first communication node is executed to determine the third communication node based on a first table including a virtual LAN identifier.
상기 적어도 하나의 명령은,
상기 제3 통신 노드를 판단하는 과정에서 상기 제1 테이블에서 상기 제1 기능의 기능 코드에 상응하는 타겟 주소를 확인하고; 그리고
상기 확인된 타겟 주소가 지시하는 통신 노드를 상기 제1 기능에 상응하는 제2 기능을 수행하는 상기 제3 통신 노드로 판단하도록 실행되는 것을 특징으로 하는 제1 통신 노드.18. The method of claim 16,
Wherein the at least one instruction comprises:
Identifying 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 to determine that the communication node indicated by the identified target address is the third communication node that performs a second function corresponding to the first function.
상기 적어도 하나의 명령은,
상기 적어도 하나의 통신 노드를 판단하는 과정에서 상기 제1 통신 노드에 포함된 복수의 포트(port)들의 포트 번호, 상기 복수의 포트들을 통해 연결된 통신 노드의 MAC 주소(MAC address) 및 상기 복수의 포트들을 통해 연결된 통신 노드의 VLAN ID를 포함하는 제2 테이블을 기반으로 상기 적어도 하나의 통신 노드를 판단하도록 실행되는 것을 특징으로 하는 제1 통신 노드.18. The method of claim 16,
Wherein the at least one instruction comprises:
The method of claim 1, further comprising: determining a port number of a plurality of ports included in the first communication node, a MAC address of a communication node connected through the plurality of ports, To determine the at least one communication node based on a second table including a VLAN ID of the connected communication node via the first table.
상기 적어도 하나의 명령은,
상기 적어도 하나의 통신 노드를 판단하는 과정에서 상기 제2 테이블에서 상기 제1 기능의 기능 코드에 상응하는 VLAN ID와 동일한 VLAN ID를 가지는 적어도 하나의 포트를 확인하고; 그리고
상기 확인된 포트를 통해 연결된 통신 노드를 상기 제2 기능과 관련된 데이터를 제공하는 상기 적어도 하나의 통신 노드로 판단하도록 실행되는 것을 특징으로 하는 제1 통신 노드.19. The method of claim 18,
Wherein the at least one instruction 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 in the process of determining the at least one communication node; And
And determine that the communication node connected through the identified port is 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,
Wherein the at least one instruction comprises:
Setting a port connecting between the first communication node and the third communication node as a target port for mirroring the first function in the process of setting the port mirroring; And
And to set a port connecting between the first communication node and the at least one communication node as a mirroring port for mirroring 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 |
JP2017195864A JP7028598B2 (en) | 2016-10-07 | 2017-10-06 | First communication node and its operation method |
DE102017123270.2A DE102017123270A1 (en) | 2016-10-07 | 2017-10-06 | Operating method of a communication node for mirroring in a vehicle network |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020160130032 | 2016-10-07 | ||
KR20160130032 | 2016-10-07 |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20180038957A true KR20180038957A (en) | 2018-04-17 |
KR102357938B1 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113923080A (en) * | 2021-10-11 | 2022-01-11 | 中认车联网技术服务(深圳)有限公司 | 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 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113923080A (en) * | 2021-10-11 | 2022-01-11 | 中认车联网技术服务(深圳)有限公司 | Video signal monitoring platform based on vehicle-mounted Ethernet and data analysis method |
CN113923080B (en) * | 2021-10-11 | 2023-12-19 | 中认车联网技术服务(深圳)有限公司 | Video signal monitoring platform based on vehicle-mounted Ethernet and data analysis method |
Also Published As
Publication number | Publication date |
---|---|
KR102357938B1 (en) | 2022-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107819736B (en) | Communication method and device based on automobile safety integrity level in vehicle network | |
KR102400730B1 (en) | Method for time synchronization between communication nodes in network | |
US10693668B2 (en) | Operation method of communication node in network | |
KR102337548B1 (en) | Method for diagnosing network and apparatus for the same | |
KR20170101046A (en) | Communication method in divided vehicle network | |
KR102352527B1 (en) | Method for communication based on automotive safety integrity level in automotive network and apparatus for the same | |
KR102217255B1 (en) | Operation method of communication node in network | |
KR102452615B1 (en) | Method for transmitting data based on priority in network | |
KR102293037B1 (en) | Operation method of communication node in network | |
KR20170011826A (en) | Security method for ethernet based network | |
KR20180029854A (en) | Diagnostic methods and devices in vehicle network | |
JP2017204857A (en) | Method for setting stream communication path in network | |
CN207926623U (en) | Vehicle netbios and automobile | |
JP7028598B2 (en) | First communication node and its operation method | |
KR102390481B1 (en) | Operation method of communication node in network | |
KR102446092B1 (en) | Method for diagnosing link status in network | |
KR20170101048A (en) | Method for releasing resource reservation in network | |
KR102357938B1 (en) | Operation method of communication node for mirroring in vehicle network | |
KR102355085B1 (en) | Operation method of communication node for selective wakeup in vehicle network | |
KR102162288B1 (en) | Communication method based on multi path in network | |
KR102362611B1 (en) | Method for transmitting and receiving data in automotive network and apparatus for the same | |
KR20180057503A (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 | |
KR102250450B1 (en) | Operation method of communication node for detecting fail in network | |
KR102228331B1 (en) | Operation method of communication node 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 |