CPC H04L 12/4645 (2013.01) [B60R 16/023 (2013.01)] | 13 Claims |
1. A switch device used in a vehicle in which a plurality of function units and a diagnosis device are installed, the switch device comprising:
a plurality of communication ports;
a memory; and
a processor coupled to the memory and configured to:
relay a frame, which has been transmitted from a function unit and to which information including an ID (Identifier) of a VLAN (Virtual Local Area Network) is added, to another function unit via a communication port;
determine that the frame is to be duplicated based at least in part on a source address and a destination address of the frame;
when the diagnosis device is connected to another switch device, duplicate the frame to be relayed via a designated communication port among the plurality of communication ports, and generate a duplicate frame for diagnosis that is a frame obtained by adding, to a duplicate frame obtained through the duplication, specific information indicating that the duplicate frame for diagnosis should be transmitted to the diagnosis device;
store a diagnosis flag provided for each frame; and
when the specific information has been added to the frame received by the processor from the other switch device, determine that the frame received is the duplicate frame for diagnosis, and set, to ON, a diagnosis flag of the frame that has been determined as the duplicate frame for diagnosis, wherein
when the diagnosis flag is ON, the processor outputs the duplicate frame for diagnosis from a communication port corresponding to the diagnosis device among the plurality of communication ports.
|