# 本地互联网络

本地互联网络（LIN）是一种用于汽车网络的低成本、低速串行总线协议，其中单个指挥官（主）节点通过单根导线以最高 20 kbit/s 的比特率轮询响应者（从）节点。<sup>[1](https://saemobilus.sae.org/papers/introduction-local-interconnect-network-2000-01-0153)</sup><sup> • </sup><sup>[2](https://www.iso.org/standard/85128.html)</sup> 它于 1999 年作为一种 A 类多路复用协议被创建，面向带宽需求低且成本至关重要的车身与舒适性电子设备，并且在几乎所有现代车辆架构中与 CAN 互补。<sup>[1](https://saemobilus.sae.org/papers/introduction-local-interconnect-network-2000-01-0153)</sup><sup> • </sup><sup>[3](https://www.infineon.com/products/transceivers/automotive)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 1999 年 6 月由五家欧洲主要汽车制造商、一家半导体供应商和一家工具供应商共同商定的规范<sup>[1](https://saemobilus.sae.org/papers/introduction-local-interconnect-network-2000-01-0153)</sup> |
| 数据速率 | 1 至 20 kbit/s；上限由单线介质上的电磁干扰（EMI）决定<sup>[1](https://saemobilus.sae.org/papers/introduction-local-interconnect-network-2000-01-0153)</sup><sup> • </sup><sup>[4](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A17987%3A-7%3Aed-2%3Av1%3Aen)</sup> |
| 拓扑 | 单线总线，一个指挥官和多个响应者；一家供应商称 1 个主节点加最多 16 个从节点，而一项安全研究描述集群最多支持 15 个从节点<sup>[3](https://www.infineon.com/products/transceivers/automotive)</sup><sup> • </sup><sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9504381/)</sup> |
| 帧结构 | 指挥官发送帧头（间隔场、同步场、受保护标识符）；被寻址的响应者回复 1 至 8 个数据字节加校验和<sup>[6](https://onlinedocs.microchip.com/oxy/GUID-BF0CC5BA-1C78-4CCE-9C55-E847CB1F91C0-en-US-5/GUID-5A0B2CC1-CBE3-4A83-9491-DDA98FCD5776.html)</sup> |
| 调度 | 确定性调度表保证延迟并防止总线过载；LIN 时基通常为 5 或 10 ms<sup>[7](https://developerhelp.microchip.com/xwiki/bin/view/applications/lin/data-link-layer/)</sup> |
| 标准化 | LIN 联盟规范 1.3 至 2.2A（2010 年），随后是 ISO 17987 第 1 至 7 部分（2016 年），其中若干部分的第二版于 2025 年发布<sup>[8](https://www.lin-cia.org/standards/)</sup><sup> • </sup><sup>[9](https://developerhelp.microchip.com/xwiki/bin/view/applications/lin/overview/)</sup> |
| 典型用途 | 车身、内饰和舒适性应用：座椅控制、空调、照明和车门模块<sup>[3](https://www.infineon.com/products/transceivers/automotive)</sup> |

## 历史

LIN 于 1999 年 6 月由五家欧洲主要汽车制造商、一家半导体供应商和一家工具供应商组成的联盟定义，他们就 A 类多路复用协议的规范达成一致。所述设计目标是基于通用 UART/SCI 接口硬件的低成本硅片、从节点无需晶体或陶瓷谐振器的自同步、有保证的延迟时间，以及基于增强型 ISO 9141 的低成本单线实现，速度最高 20 kbit/s，受 EMI 限制。<sup>[1](https://saemobilus.sae.org/papers/introduction-local-interconnect-network-2000-01-0153)</sup>

LIN 联盟首先发布 1.3 版，2003 年发布 2.0 版，2006 年发布 2.1 版。2.2A 版于 2010 年联盟关闭后问世，至今仍是最广泛实现的版本之一。与此同时，SAE 制定了 J2602 系列推荐实践，于 2004 年首次发布，并于 2012 年基于 LIN 2.0 更新。<sup>[8](https://www.lin-cia.org/standards/)</sup> 2013 年，该规范被转录为 ISO 标准，ISO 17987 标准第 1 至 7 部分于 2016 年发布。<sup>[9](https://developerhelp.microchip.com/xwiki/bin/view/applications/lin/overview/)</sup>

## 协议工作原理

LIN 采用单主多从的介质访问方案，无仲裁。指挥官通过轮询响应者来控制总线：每次消息传输都始于指挥官发送由间隔场、同步场和标识符场组成的帧头。同步场为整个总线设定时钟，因此从节点据此调整其波特率，无需自备谐振器。帧头之后，被寻址的响应者发送 1 至 8 个数据字节加校验和；给定标识符只能有一个响应者应答，这消除了冲突管理的需要。<sup>[1](https://saemobilus.sae.org/papers/introduction-local-interconnect-network-2000-01-0153)</sup><sup> • </sup><sup>[6](https://onlinedocs.microchip.com/oxy/GUID-BF0CC5BA-1C78-4CCE-9C55-E847CB1F91C0-en-US-5/GUID-5A0B2CC1-CBE3-4A83-9491-DDA98FCD5776.html)</sup><sup> • </sup><sup>[10](https://ww1.microchip.com/downloads/jp/AppNotes/00729a.pdf)</sup>

受保护标识符携带 6 位消息标识符和 2 位奇偶校验位。标识符 0 至 59 承载信号数据，60 和 61 承载诊断数据，62 保留给用户自定义扩展，63 保留给未来的协议增强。<sup>[11](https://www.ni.com/en-us/innovations/white-papers/09/introduction-to-the-local-interconnect-network--lin--bus.html)</sup> 校验和有两种形式：经典校验和仅覆盖数据字节，用于 LIN 1.x 从节点以及主请求帧和从响应帧；增强校验和还覆盖受保护标识符，用于 LIN 2.x 从节点。帧标识符 60（0x3C）和 61（0x3D）始终使用经典校验和。<sup>[7](https://developerhelp.microchip.com/xwiki/bin/view/applications/lin/data-link-layer/)</sup>

**调度表。** LIN 的一个关键特性是指挥官按照预定义的调度表工作，调度表定义了消息的顺序和时间网格。这使总线具有确定性：信号传播时间可预先计算，总线永不过载，也不会丢失帧。帧时隙按 LIN 时基调度，通常为 5 或 10 ms，规范允许每个 UART 字节最多 40% 的时间余量，因为 LIN 从节点通常使用低成本、较低速度的微控制器。<sup>[7](https://developerhelp.microchip.com/xwiki/bin/view/applications/lin/data-link-layer/)</sup><sup> • </sup><sup>[12](https://www.es.mdh.se/pdf_publications/813.pdf)</sup>

整个集群配置，包括节点、信号、帧和调度表，都在 LIN 描述文件（LDF）中描述，这是一个 ASCII 文本文件，可通过合适的工具从中生成 ANSI-C 驱动代码和头文件。<sup>[13](https://developerhelp.microchip.com/xwiki/bin/view/applications/lin/ldf/)</sup>

## 物理层与收发器

ISO 17987-4 规定了 LIN 通信系统的 12 V 和 24 V 电气物理层，专为比特率最高 20 kbit/s 的低成本网络设计，每个接收器和发送器均通过单根以地为参考的导线连接。<sup>[2](https://www.iso.org/standard/85128.html)</sup> LIN 收发器位于协议控制器和总线之间：它将控制器的发送数据流转换为具有受控压摆率和波形整形的总线信号，以最小化电磁发射，并检测总线数据并将其传递给微控制器。<sup>[14](https://www.nxp.com/products/interfaces/automotive-lin-solutions/lin-transceiver%3ATJA1020?tab=Buy_Parametric_Tab)</sup>

商用收发器增加了汽车环境所需的故障安全和电源功能。典型功能包括睡眠模式下的极低电流消耗及本地和远程唤醒、在故障将总线拉低时释放总线的发送数据显性超时、符合 ISO 7637 的瞬态保护、总线端子短路保护，以及未供电时的被动行为。<sup>[14](https://www.nxp.com/products/interfaces/automotive-lin-solutions/lin-transceiver%3ATJA1020?tab=Buy_Parametric_Tab)</sup> 恩智浦（NXP）、英飞凌（Infineon）和[德州仪器](https://www.edgepedia.org/zh/texas-instruments)（Texas Instruments）等供应商提供单路、双路和四路 LIN 收发器及 LIN 系统基础芯片，通过 [AEC-Q100](https://www.edgepedia.org/zh/aec-q100) 认证，并符合 LIN 2.x、ISO 17987-4 和 SAE J2602。<sup>[15](https://www.nxp.com/products/interfaces/automotive-lin-solutions%3AMC_53488)</sup><sup> • </sup><sup>[3](https://www.infineon.com/products/transceivers/automotive)</sup>

## 标准化

ISO 17987 系列涵盖七个 OSI 层的要求及相应的一致性测试计划，由 ISO 技术委员会 TC 22 的第 31 分委员会（数据通信）维护。<sup>[8](https://www.lin-cia.org/standards/)</sup><sup> • </sup><sup>[16](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A17987%3A-1%3Aed-2%3Av1%3Aen)</sup> 第 1 部分给出一般信息和使用案例定义，第 2 部分为传输协议和网络层服务，第 3 部分为协议规范，第 4 部分为电气物理层，第 5 部分（技术报告）为应用编程接口，第 6 和第 7 部分为协议和物理层一致性测试规范；第 8 部分涵盖直流电力线 LIN（DC-LIN）。<sup>[8](https://www.lin-cia.org/standards/)</sup><sup> • </sup><sup>[4](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A17987%3A-7%3Aed-2%3Av1%3Aen)</sup>

若干部分的第二版于 2025 年发布：第 2 部分于 2025 年 6 月，第 3 部分于 2025 年 7 月，第 4 部分于 2025 年 6 月，第 6 部分于 2025 年 5 月，第 7 部分于 2025 年。新版将术语主和从替换为包容性术语指挥官和响应者，增加了更多自动寻址方法，并引入了编辑性澄清。<sup>[8](https://www.lin-cia.org/standards/)</sup><sup> • </sup><sup>[17](https://www.iso.org/standard/85126.html)</sup><sup> • </sup><sup>[18](https://www.iso.org/cms/live/live/en/sites/isoorg/contents/data/standard/08/51/85127.html?browse=tc)</sup> 第 2 部分传输层面向诊断运行在 CAN 等骨干总线上、且系统构建者希望在 LIN 子总线集群上具有相同诊断能力的系统；其消息与 ISO 15765-2 中的消息相同，由诊断帧承载。<sup>[17](https://www.iso.org/standard/85126.html)</sup> SAE J2602 系列正在审查中，将引用 ISO 17987 系列。<sup>[8](https://www.lin-cia.org/standards/)</sup>

## 与 CAN 和 FlexRay 的比较

CAN、FlexRay 和 LIN 是现代车辆中常用的数字通信协议，现代车辆最多包含 70 个电子控制单元。2020 年 SAE 的一项比较研究测量了可靠性和延迟方面的性能，发现 CAN 在基于优先级的实时通信方面具有优势，FlexRay 在所有事件具有同等优先级时表现良好，而 LIN 是三种协议中成本最低的，但同时也不可靠。<sup>[19](https://saemobilus.sae.org/papers/state-art-survey-comparison-can-flexray-lin-protocol-simulation-lin-protocol-2020-01-1293)</sup> 在大多数架构中，CAN 在差分总线上处理对错误敏感的时间关键数据，而 LIN 在 12 V 单线总线上管理较低优先级的功能。<sup>[3](https://www.infineon.com/products/transceivers/automotive)</sup>

LIN 的优势源于其简单性：低成本、单线减少线束布线、无需外部振荡器的自同步、缓解 EMI 的低速，以及在开发良好的系统中无冲突的确定性方案。其劣势也源于同样的选择：低速和低带宽使其不适用于安全关键系统，指挥官-响应者方案使事件驱动通信受制于指挥官控制的调度（该调度支持事件触发帧用于偶发响应者传输），而如果指挥官丢失，整个集群将失效，因为没有任何东西驱动总线。<sup>[20](https://www.ti.com/lit/an/slla383a/slla383a.pdf?ts=1779907759431)</sup>

## 安全性

LIN 2.2A 规范不包含任何计算机安全条款，这使网络暴露于攻击之下，而协议的约束使添加安全性变得困难：消息加密和认证是处理器密集型任务，超出了 LIN 节点中使用的大多数 8 位微控制器的能力，且响应数据字段限制为 8 字节。提议的对策还必须适应约 20 ms 的响应时间预算。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9504381/)</sup> 研究已演示了利用 LIN 错误处理机制的攻击，其中攻击者停止通信并发送虚假响应替代有效响应，并提出了对策。<sup>[21](https://www.jstage.jst.go.jp/article/ipsjjip/25/0/25_220/_article/-char/en)</sup> 学术提案包括基于哈希的消息认证码结合时间戳机制，以在现有物理层和数据格式内提供认证、完整性和重放攻击拒绝。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC9504381/)</sup>

## References

1. [von der Wense, H., "Introduction to Local Interconnect Network," SAE 2000 World Congress, SAE International](https://saemobilus.sae.org/papers/introduction-local-interconnect-network-2000-01-0153)
2. [ISO 17987-4:2025, Road vehicles — Local Interconnect Network (LIN) — Part 4: Electrical physical layer (EPL) specification 12 V/24 V, ISO](https://www.iso.org/standard/85128.html)
3. [Automotive transceivers, Infineon Technologies](https://www.infineon.com/products/transceivers/automotive)
4. [ISO 17987-7, Open Platform, Introduction, ISO](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A17987%3A-7%3Aed-2%3Av1%3Aen)
5. [Paez, F. and Kaschel, H., "Design and Testing of a Computer Security Layer for the LIN Bus," Sensors (PMC)](https://pmc.ncbi.nlm.nih.gov/articles/PMC9504381/)
6. [30.6.3.5 LIN Commander, Microchip onlinedocs](https://onlinedocs.microchip.com/oxy/GUID-BF0CC5BA-1C78-4CCE-9C55-E847CB1F91C0-en-US-5/GUID-5A0B2CC1-CBE3-4A83-9491-DDA98FCD5776.html)
7. [Local Interconnect Network (LIN) Data Link Layer, Microchip Developer Help](https://developerhelp.microchip.com/xwiki/bin/view/applications/lin/data-link-layer/)
8. [LIN standards and specifications, CAN in Automation (LIN CiA)](https://www.lin-cia.org/standards/)
9. [LIN Overview, Microchip Developer Help](https://developerhelp.microchip.com/xwiki/bin/view/applications/lin/overview/)
10. [AN729, LIN Protocol Implementation Using PICmicro MCUs, Microchip](https://ww1.microchip.com/downloads/jp/AppNotes/00729a.pdf)
11. [Introduction to the LIN Bus Protocol, National Instruments](https://www.ni.com/en-us/innovations/white-papers/09/introduction-to-the-local-interconnect-network--lin--bus.html)
12. [LIN, a low-cost communication network (Mälardalen University publication)](https://www.es.mdh.se/pdf_publications/813.pdf)
13. [LIN Description File (LDF), Microchip Developer Help](https://developerhelp.microchip.com/xwiki/bin/view/applications/lin/ldf/)
14. [TJA1020 LIN transceiver, NXP Semiconductors](https://www.nxp.com/products/interfaces/automotive-lin-solutions/lin-transceiver%3ATJA1020?tab=Buy_Parametric_Tab)
15. [Automotive LIN Solutions, NXP Semiconductors](https://www.nxp.com/products/interfaces/automotive-lin-solutions%3AMC_53488)
16. [ISO 17987-1:2025, Road vehicles — LIN — Part 1: General information and use case definition, ISO Open Platform](https://www.iso.org/obp/ui?_escaped_fragment_=iso%3Astd%3Aiso%3A17987%3A-1%3Aed-2%3Av1%3Aen)
17. [ISO 17987-2:2025, Road vehicles — LIN — Part 2: Transport protocol and network layer services, ISO](https://www.iso.org/standard/85126.html)
18. [ISO 17987-3:2025, Road vehicles — LIN — Part 3: Protocol specification, ISO](https://www.iso.org/cms/live/live/en/sites/isoorg/contents/data/standard/08/51/85127.html?browse=tc)
19. [Hafeez, A. et al., "State of the Art Survey on Comparison of CAN, FlexRay, LIN Protocol and Simulation of LIN Protocol," SAE 2020](https://saemobilus.sae.org/papers/state-art-survey-comparison-can-flexray-lin-protocol-simulation-lin-protocol-2020-01-1293)
20. [LIN Protocol and Physical Layer Requirements (SLLA383A), Texas Instruments](https://www.ti.com/lit/an/slla383a/slla383a.pdf?ts=1779907759431)
21. ["Automotive Attacks and Countermeasures on LIN-Bus," IPSJ Journal of Information Processing](https://www.jstage.jst.go.jp/article/ipsjjip/25/0/25_220/_article/-char/en)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026; Oct 21, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Networking fundamentals and architecture › Networking fundamentals overview

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/local-interconnect-network

English original: https://www.edgepedia.org/local-interconnect-network
