[2μ£Όμ°¨] CAN ν΅μ μ μ΄ν΄: CAN Protocol λ° ν΅μ μμ€ν & CAN Dos Attack
# CAN ν΅μ μ μ΄ν΄: CAN Protocol λ° ν΅μ μμ€ν & CAN Dos Attack
# CANκ³Ό CAN ν΅μ
- CAN (Controller Area Network)
: μ°¨λ λ° μ°μ μ© μ μ΄ μμ€ν μμ μ¬μ©λλ ν΅μ νλ‘ν μ½λ‘, κ° λͺ¨λ κ° λ°μ΄ν° ν΅μ μ μ΄μ©λλ€. CAN νλ‘ν μ½μ μ΄μ©ν ν΅μ μ λ°μ΄ν° μ μ‘μ μν΄ μ΄ 2κ°μ μ μ‘μ (CAN-Tx & CAN-Rx)μΌλ‘ μ§νλλλ°, μ΄λ‘ μΈν΄ λμ μ λ’°μ±κ³Ό μμ μ±μ 보μ₯ν μ μλ€.
+ μ°Έκ³ μλ£
: https://www.engineersgarage.com/can-protocol-understanding-the-controller-area-network-protocol/
CAN protocol: Understanding the controller area network
Controller Area Network or CAN protocol is a method of communication between various electronic devices like engine management systems, active suspension, ABS, gear control, lighting control, air conditioning, airbags, central locking etc embedded in an a
www.engineersgarage.com
# CAN Protocolμ μμΈμ νΉμ§
- CAN Protocolμ νΉμ§
κ³ μ ν΅μ | λΉ λ₯Έ λ°μ΄ν° μ μ‘ μ§μ |
μ€λ₯ 볡ꡬ λ° κ²μΆ κΈ°λ₯ μ§μ | λ°μ΄ν° μ μ‘ μ€ μ€λ₯ λ°μ μ μ€λ₯ μλ³ λ° μμ κΈ°λ₯ μ§μ |
λ©ν° λ§μ€ν° ν΅μ | λ€μμ λλ°μ΄μ€μ λμ λ°μ΄ν° μ μ‘ μ§μ |
μ μ μ λ ₯ μλΉ | λ°°ν°λ¦¬ μλͺ μ°μ₯ λ° μ μ λ ₯ μλΉ μ§μ |
μ°μ μμ κΈ°λ° ν΅μ | λ©μμ§ μ°μ μμ κΈ°λ°μ ν΅μ μ²λ¦¬ μ§μ |
μ λ’°μ μ΄κ³ μμ μ μΈ ν΅μ | μ¬λ¬ λ°©λ©΄μμ λμ μ λ’°μ± κ°μ§ ν΅μ μ§μ |
+ μ°Έκ³ μλ£
μ문보기 - ScienceON
scienceon.kisti.re.kr
- CAN Protocolμ ꡬμ±
CAN νλ‘ν μ½μ νμ€νλ νΉμ± μνΌλμ€λ₯Ό κ°μ§κ³ μλ μμ μΌμ΄λΈμ ν΅ν΄ λ°μ΄ν°λ₯Ό μ μ‘νλλ°, μ΄λ‘ μΈν΄ κ°μ’ μΈλΆ λ Έμ΄μ¦μ κ°ν μ΄λλ‘ λ³΄νΈλ°μ μ μλ€. λ CAN ν΅μ νλ‘ν μ½μμλ νλ μμ΄ λ°μ΄ν°μ μ μ‘ λ¨μμ΄λ€. νλμ νλ μμ μ΄ 6κ°μ§ μμλ‘ κ΅¬μ±λλλ°, κ·Έ λͺ©λ‘μ μλμ κ°λ€.
SOF | Identifier | Control Field |
EOF | Data Field | CRC |
μμμ μΈκΈλμλ―μ΄, CAN ν΅μ νλ‘ν μ½μμλ λ©μμ§λ₯Ό μλ³νλ μ©λλ‘ μλ³μλ₯Ό μ΄μ©νλ€. μ΄ μλ³μ(Identifier)μ 11 λλ 29λΉνΈμ κΈΈμ΄λ₯Ό κ°μ§κ³ μλ€. μλ³μλ κ°μ§λ λΉνΈμ κΈΈμ΄λ―Έλ€ λ€λ₯Έ μ΄λ¦μ κ°μ§λλ°, 11λΉνΈ μλ³μλ SID, 29λΉνΈ μλ³μλ Extended CAN( = EID )λΌλ λͺ μΉμΌλ‘ λΆλ¦°λ€. λ μ€λ₯ κ²μΆ λ° λ³΅κ΅¬ κΈ°λ₯μ μ§μνκΈ° μν΄ CAN ν΅μ μ CRC μ²λ¦¬ κΈ°λ²μ μ¬μ©νλ€. CRCλ Cyclic Redundancy Checkμ μ½μλ‘, λ°μ΄ν° μ μ‘ μ€ μ€λ₯ λ°μ μ νλ μ μ¬μ μ‘ λ° λ°μ΄ν°μ μ λ’°μ±μ 보μ₯νκΈ° μν κΈ°λ²μ΄λ€.
+ μ°Έκ³ μλ£
: http://www.fescaro.com/kr/insight/blog.php#content
κΈ°μ λΈλ‘κ·Έ - INSIGHT - νμ€μΉ΄λ‘(FESCARO) - μλμ°¨ μννΈμ¨μ΄ μ λ¬ΈκΈ°μ (μλμ°¨ μ¬μ΄λ²λ³΄μ, μ μ΄κΈ°,
νμ€μΉ΄λ‘λ μμ¨μ£Όνμ°¨, μ κΈ°μ°¨, 컀λ₯ν°λμΉ΄ λ± λ―Έλμ°¨μ λͺ¨λ SWμ루μ μ μ 곡ν©λλ€. μλμ°¨ μ¬μ΄λ²λ³΄μλΆν° κ²μ΄νΈμ¨μ΄ μ μ΄κΈ°, V2X, SDVκΉμ§ λ€κ°μ€λ λ―Έλμ°¨ μ°μ μ νμ μ μ£Όλν©λλ€.
www.fescaro.com
- CAN Protocolμ κ·κ²©κ³Ό λ²μ
: CAN νλ‘ν μ½μ ISO κ·κ²©μ λ°λΌ μ΄ 2κ°μ§λ‘ λΆλ₯λλλ°, μ΄λ€μ κ°κ° ν΅μ μλμμ ν° μ°¨μ΄λ₯Ό 보μΈλ€. ISO 11898μ κ²½μ° μ½ 1Mbps μ΄μμ μλλ₯Ό λΌ μ μκ³ , ISO 11519μ κ²½μ°λ κ³ μ 125kbpsμ ν΅μ μλλ°μ μ§μνμ§ λͺ»νλ€.
ISO κ·κ²©λΏλ§ μλλΌ μμμ μΈκΈλμλ μλ³μμ κΈΈμ΄μ λ°λΌμλ κ·κ²©κ³Ό λ²μ μ λλ μ μλ€. νμ€ CANμ κ²½μ°λ 2.0A λ²μ μΌλ‘ 11λΉνΈμ μλ³μμ κ΄λ ¨λμ΄ μλ€. λ°λλ‘ νμ₯ CANμ κ²½μ°λ 2.0B λ²μ μΌλ‘, 29λΉνΈμ μλ³μμ μ°κ΄μ΄ μλ€.
+ μ°Έκ³ μλ£
: https://www.kvaser.com/can-protocol-tutorial/
Controller Area Network (CAN BUS) Protocol
What is canbus? Take our free video course to learn about the can bus system, decoding, wiring diagram, analyzer, and the SAE vehicle bus J1939.
www.kvaser.com
# CAN ν΅μ κ³Ό λ©μμ§ μΆ©λ
: CAN ν΅μ μμλ λ©μμ§μ CAN IDκ° μμμλ‘ λ λμ μ°μ μμλ₯Ό κ°μ§λ©°, λ°μ΄ν°λ₯Ό μ μ‘νκΈ° μ μ¬μ©ν λ²μ€μ μ¬μ© μ¬λΆλ₯Ό λ¨Όμ κ²ν νλ€. μ΄λ νμν λ²μ€κ° μ΄λ―Έ λ€λ₯Έ μμμ μν΄ μ¬μ©λκ³ μλ κ²½μ°μλ λ©μΈμ§ κ°μ μΆ©λμ νΌνκΈ° μν΄ λ°μ΄ν°λ₯Ό μ μ‘νμ§ μλλ€. λ§μΌ λ©μμ§μ μΆ©λμ΄ λΆκ°νΌνκ² λ°μνμλ€λ©΄, λ λ©μΈμ§μ μ°μ μμλ₯Ό νλ³νμ¬ λ μ μ CAN IDκ°μ κ°μ§ λ©μμ§λ§ μ μ‘νλ€.
+ μ°Έκ³ μλ£
: https://copperhilltech.com/blog/controller-area-network-can-bus-bus-arbitration/
Controller Area Network (CAN Bus) - Bus Arbitration
The following is an excerpt from A Comprehensible Controller Area Network by Wilfried Voss. Since a serial communication system such as CAN is based on a two-wire connection between nodes in the network, i.e. all nodes are sharing the same physical commu
copperhilltech.com
# CAN Dos Attackκ³Ό ν΅μ μ·¨μ½μ
: CAN ν΅μ μμμ DoS 곡격μ λλΆλΆ CAN λ²μ€λ₯Ό ν¬ν¨ν¨ 물리μ μΈ μ κ·Όμ μꡬνλλ°, μ΄λ¬ν μ μ μ μ©ν μ μλ€. CAN λ²μ€μ λν΄ λ§μ μμ μ μ± λ°μ΄ν°λ₯Ό μ½μ νκ±°λ, νλ μ΄μμ λ Έλμμ ν΅μ μμμ νκ³μΉ μ΄μμ κ³Όλ€ν λ°μ΄ν° νλ μμ μμ±νλ λ°©μμΌλ‘μ κ³΅κ²©μ΄ κ°λ₯νλ€.
+ μ°Έκ³ μλ£
: https://www.ncsc.gov.uk/collection/denial-service-dos-guidance-collection
Denial of Service (DoS) guidance
Guidance to help organisations understand and mitigate DoS attacks.
www.ncsc.gov.uk
: https://www.cisa.gov/news-events/news/understanding-denial-service-attacks
Understanding Denial-of-Service Attacks | CISA
Denial-of-service attacks don’t just affect websites—individual home users can be victims too. Denial-of-service attacks can be difficult to distinguish from common network activity, but there are some indications that an attack is in progress.
www.cisa.gov
# CAN ν΅μ κ³Ό TCP/IP
TCPλ Transmission Control Protocolμ μ½μλ‘, λ€νΈμν¬ μμμ λ°μ΄ν°λ€μ μμ μ μΌλ‘ μ μ‘νκΈ° μν΄ μ¬μ©νλ μΈν°λ· νλ‘ν μ½ μ€μνΈ(IP suite) μ€ νλμ΄λ€. TCPλ μ μ‘ κ³μΈ΅, μ¦ Transport Layerμμ μλνλ€λ νΉμ§μ΄ μλ€. μΌλ°μ μΌλ‘ IP νλ‘ν μ½κ³Ό ν¨κ» μ¬μ©λλ©°, μΉ λΈλΌμ°μ λ° μΉ μλ² μ¬μ΄μ λ°μ΄ν° μ μ‘μ΄λ μ΄λ©μΌ μ μ‘ λ± λ€μν μΈν°λ· μλΉμ€μμ μ΄μ©λκ³ μλ€.
IPμ κ²½μ° Internet Protocolμ μ½μλ‘ μ΄ λν μΈν°λ· νλ‘ν μ½ μ€μνΈ μ€ νλμ΄λ€. TCPμ μ μ¬νκ² μΈν°λ· μμμ λ°μ΄ν° ν¨ν·μ μ μ‘νλ λ° μ¬μ©λλ νλ‘ν μ½μ΄λ€. IPλ λ°μ΄ν° ν¨ν·μ κ²½λ‘λ₯Ό κ²°μ νκ³ , ν¨ν·μ΄ 무μ¬ν λͺ©μ μ§κΉμ§ λλ¬ν μ μλλ‘ μ€κ° μ§μ μμ λΌμ°ν μ μννλ€. IPλ μΈν°λ· κ³μΈ΅(Internet Layer)μμ μλνλ©°, μμ κ³μΈ΅μμλ TCP, UDP(User Datagram Protocol) λ±μ νλ‘ν μ½λ€μ΄ μ΄μ©λλ€.
IP, TCPμ CANμ λ§€μ° μ μ¬νμ§λ§ κ°κΈ° μ°¨μ΄μ μ΄ μ‘΄μ¬νλ€. μ£Όλ μ°¨μ΄μ μ μ©λμ νλ‘ν μ½μ μ’ λ₯, μ리 μ²λ¦¬ λ° ν¨ν· μ μ‘ λ°©μκ³Ό μ°κ΄μ΄ κΉλ€. κ° μμλ€μ 곡ν΅μ κ³Ό μ°¨μ΄μ μ μλ νμ κ°λ€.
TCP | IP | CAN | |
μ¬μ© λΆμΌ λ° μμ | μΉ λΈλΌμ°μ λ° μ΄λ©μΌ | μΈν°λ· λ°μ΄ν° μ μ‘ | μ°¨λ λ΄λΆ ν΅μ λ° λ‘λ΄ μ μ΄ |
μ μ‘ μλ | λλ¦Ό | λΉ λ¦ | λΉ λ¦ |
μλ¬ μ²λ¦¬ | μλ¬ κ²μΆ λ° μ¬μ μ‘ μ§μ | μλ¬ κ²μΆ | μλ¬ κ²μΆ λ° μ¬μ μ‘ |
ν¨ν· μ μ‘ λ°©μ | μ°κ²°ν | λΉμ°κ²°ν | λΉμ°κ²°ν |
νλ‘ν μ½ μλ κ³μΈ΅ | μ μ‘ κ³μΈ΅ | μΈν°λ· κ³μΈ΅ | λ°μ΄ν° λ§ν¬ κ³μΈ΅ |
μ©λ | λ°μ΄ν°μ μμ μ μ μ‘ μ§μ | λ°μ΄ν° ν¨ν· λΌμ°ν | μ°¨λ λ΄λΆ ν΅ |
+ μ°Έκ³ μλ£
: https://www.techtarget.com/searchnetworking/definition/TCP
What is Transmission Control Protocol (TCP)? Definition from SearchNetworking
Explore how Transmission Control Protocol (TCP) works and how it compares to UDP, the OSI model and other protocols.
www.techtarget.com
: https://www.fortinet.com/resources/cyberglossary/tcp-ip
What is TCP/IP in Networking? | Fortinet
What is Transmission Control Protocol? Learn the meaning of Transmission Control Protocol and how TCP models enable applications and devices. β Click here!
www.fortinet.com
: https://www.hostinger.com/tutorials/tcp-protocol
TCP Protocol: Understanding What Transmission Control Protocol Is and How It Works
The TCP protocol is used on top of the IP to ensure reliable packet transmission. Learn what TCP protocol is and how it works in this article.
www.hostinger.com