# 输入/输出

输入/输出（I/O）是计算机与外部世界之间传输数据的过程，以及用于这种通信的设备和所涉及的数据。<sup>[1](https://csrc.nist.gov/glossary/term/Input_Output)</sup> 该术语既涵盖系统边界处的物理设备，如键盘、显示器和网络适配器，也涵盖在这些设备与处理器、内存之间搬运数据的子系统和互连。

| 关键事实 | 详情 |
|---|---|
| 定义 | 用于与计算机通信的设备以及通信中所涉及数据的统称<sup>[1](https://csrc.nist.gov/glossary/term/Input_Output)</sup> |
| 数据通路 | 计算机总线将输入和输出子系统以及辅助存储子系统连接到处理器和主存，双向传输数据<sup>[2](https://www.open.edu/openlearn/mod/oucontent/view.php?id=109019&section=5)</sup> |
| 信号转换 | I/O子系统在计算机总线上的二进制信号与特定输入或输出设备所使用的信号之间进行转换<sup>[2](https://www.open.edu/openlearn/mod/oucontent/view.php?id=109019&section=5)</sup> |
| 操作系统机制 | 在Windows中，发往驱动程序的所有I/O请求都以I/O请求包（IRP）的形式发送，I/O模型支持异步I/O<sup>[3](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/overview-of-the-windows-i-o-model)</sup> |
| 硬件资源 | 每个连接的设备都被分配I/O端口、中断向量、直接内存访问（DMA）通道及其他通信路径<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/drivers/wdf/introduction-to-hardware-resources)</sup> |
| 内部互连 | PCI Express支持1、2、4、8、12、16和32通道配置，在最初2.5 GHz信号速率下可提供16.0 GB/s的可扩展带宽<sup>[5](https://pcisig.com/faq?field_category_value%5B%5D=pci_express)</sup> |
| 外部互连 | USB4通过USB Type-C线缆运行两个通道，速率最高达80 Gbps；HDMI 2.2为显示器提供96 Gbps带宽；以太网规范覆盖1 Mb/s至400 Gb/s<sup>[6](https://usb.org/usb4)</sup><sup> • </sup><sup>[7](https://www.hdmi.org/spec/hdmi2_1/)</sup><sup> • </sup><sup>[8](https://standards.ieee.org/ieee/7003/10422/)</sup> |

## 设备与子系统

输入设备从计算机外部采集信息，输入子系统将这些信息转换为处理器可用的数据形式。输出设备向计算机外部呈现信息，输出子系统将处理器格式的数据转换为外部有意义的信号。采集与转换这两种功能，有时由单一物理实体完成，有时由两个独立实体分别完成。<sup>[2](https://www.open.edu/openlearn/mod/oucontent/view.php?id=109019&section=5)</sup>

常见的输入设备包括键盘、鼠标、扫描仪、触摸屏、数位板、麦克风、网络摄像头和操纵杆；常见的输出设备包括显示器、打印机、投影仪、声卡、显卡和扬声器。<sup>[9](https://www.open.edu/openlearncreate/mod/book/tool/print/index.php?id=181144)</sup> 某些组件同时具备输入和输出功能：声卡是一种输入输出子系统，触摸屏则广泛用于输入和输出两种用途。<sup>[10](https://www.open.edu/openlearn/mod/oucontent/view.php?id=112559&section=_unit3.7)</sup><sup> • </sup><sup>[11](https://www.open.edu/openlearn/mod/oucontent/view.php?id=112559&section=_unit2.3)</sup> 设备也可以组合在一起，例如集打印、扫描和复印功能于一体的单一设备。<sup>[12](https://www.open.edu/openlearn/digital-computing/introducing-ict-systems/content-section-10.1)</sup>

**信号转换。** 计算机总线上的数据以二进制电信号传输，低电平对应接近零的电压，高电平对应较高的电压。输入设备产生的信号或输出设备所需的信号不一定是二进制的，甚至不一定是数字的，因此输入和输出子系统的核心任务之一，就是在总线上的二进制信号与其特定设备所使用的信号之间进行转换。<sup>[2](https://www.open.edu/openlearn/mod/oucontent/view.php?id=109019&section=5)</sup>

## 通过计算机的I/O路径

计算机总线是连接输入和输出子系统以及辅助存储子系统与处理器和主存的数据通路。数据沿总线双向传输；数据仅从输入设备向内流入，仅向输出设备向外流出。<sup>[2](https://www.open.edu/openlearn/mod/oucontent/view.php?id=109019&section=5)</sup> 例如在笔记本电脑中，键盘和鼠标通过键盘和鼠标输入子系统连接，显示器和扬声器通过输出子系统连接，声卡则充当扬声器的输出子系统。<sup>[13](https://www.open.edu/openlearn/mod/oucontent/view.php?id=112559&section=_unit6.2)</sup>

每个连接的设备都必须被分配硬件资源：I/O端口、中断向量、直接内存访问（DMA）通道及其他通信路径。驱动程序框架协商设备的资源需求，审查建议的资源列表，并在设备初始化之前接收所分配的资源。<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/drivers/wdf/introduction-to-hardware-resources)</sup>

## 操作系统I/O

所有操作系统都包含某种I/O模型——无论是否明示——用以管理数据在系统与外围设备之间的流动方式。在微软Windows模型中，I/O管理器为所有内核模式驱动程序（从最低层到文件系统驱动程序）提供一致的接口，并将所有I/O请求以I/O请求包（IRP）的形式发送。I/O操作是分层的：I/O管理器截获系统服务调用，建立一个或多个IRP，并通过可能分层的驱动程序将其路由到物理设备。驱动程序、其设备以及系统硬件都以对象表示，I/O管理器还与即插即用和电源管理器协作，发送包含PnP和电源请求的IRP。<sup>[3](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/overview-of-the-windows-i-o-model)</sup>

## 用于I/O的互连

**PCI Express。** PCI Express（PCIe）是一种行业标准的高性能通用串行I/O互连，面向企业、桌面、移动、通信和嵌入式平台。它保持与既有PCI软件编程模型的兼容性，采用低引脚数接口以最大化每引脚带宽，并可聚合1、2、4、8、12、16或32个通道以满足应用的带宽需求。在其最初的2.5 GHz信号速率下，它可提供16.0 GB/s的可扩展带宽，后续世代速率更高。<sup>[5](https://pcisig.com/faq?field_category_value%5B%5D=pci_express)</sup> 监督该标准的组织PCI-SIG已宣布PCIe 8.0规范草案，目标传输速率为256 GT/s，通过x16配置可实现高达1 TB/s的双向带宽，采用PAM4信号、前向纠错和Flit模式编码；最终批准预计在2028年。<sup>[14](https://www.tomshardware.com/tech-industry/pci-sig-reveals-pcie-8-0-0-5v-spec-first-draft-includes-1-tb-s-bandwidth-and-new-connector-technology)</sup> 正在开发的协议扩展包括数据复用提示、原子操作、动态功率调整、宽松事务排序、I/O缺页异常和BAR重设，旨在改善互连延迟、功耗和平台效率。<sup>[15](https://pcisig.com/what-are-pcie-protocol-extensions-and-how-do-they-improve-pcie-interconnect-performance)</sup>

**USB与USB Type-C。** USB4基于英特尔贡献的Thunderbolt协议规范，提供两倍于USB的最大聚合带宽，并允许多种数据和显示协议同时在一条高速链路上运行。它通过现有USB Type-C线缆在两个通道上运行，使用经认证支持该速率的线缆时可达80 Gbps，同时保持对早期USB版本的向后兼容。<sup>[6](https://usb.org/usb4)</sup> USB Type-C连接器对称且可正反插，支持所有USB设备速率，并承载交替模式——在该模式下非USB协议通过线缆运行，同时保留USB 2.0和充电功能；常见的交替模式包括DisplayPort/DockPort和MHL。在没有Power Delivery的情况下，Type-C系统支持最高5 V、3 A、15 W；配合[USB Power Delivery](https://www.edgepedia.org/zh/usb-power-delivery)，它可作为电源或受电方，支持最高100 W。<sup>[16](https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/faq--usb-type-c-connector-on-a-windows-system)</sup> 交替模式通过重新分配引脚以支持另一条总线、改变总线的运行模式、启用边带信号以及可能重新配置线缆来重构连接器。<sup>[17](https://www.usb.org/sites/default/files/D2T2-1%20-%20USB%20Power%20Delivery.pdf)</sup>

**显示与网络I/O。** HDMI是一种数字视频、音频和数据接口，将超高清显示器连接到消费电子、PC、移动、汽车和商用AV设备；自2002年12月首个规范发布以来，已有近140亿台支持HDMI的设备出货。HDMI 2.2规范通过固定速率链路技术提供96 Gbps带宽，支持高达12K@120和16K@60的分辨率；它还增加了更高质量的模式，其中包括10位和12位色深下的无压缩全色度8K@60/4:4:4和4K@240/4:4:4信号。<sup>[7](https://www.hdmi.org/spec/hdmi2_1/)</sup><sup> • </sup><sup>[18](https://www.hdmi.org/spec/)</sup> 以太网由IEEE 802.3规范，是一族用于局域网通信的有线网络技术，覆盖从1 Mb/s到400 Gb/s的选定速率，采用通用的介质访问控制规范；[以太网供电](https://www.edgepedia.org/zh/power-over-ethernet)变体在数据线缆上增加直流电力传输。<sup>[8](https://standards.ieee.org/ieee/7003/10422/)</sup><sup> • </sup><sup>[19](https://technav.ieee.org/topic/ethernet/)</sup>

**内存附加I/O。** Compute Express Link（CXL）是一种公开可用的行业标准，将处理器连接到加速器、内存缓冲、智能网络接口、持久内存和SSD等设备；其用途包括提高加速器效率、扩展服务器内存、跨多台服务器池化资源以及实现对等通信。<sup>[20](https://arxiv.org/abs/2306.11227)</sup>

## 端口

在计算机外部，用于连接摄像头和打印机等外部设备的插槽称为端口；它们控制计算机与这些设备之间的数据流。较旧的端口类型包括常用于调制解调器的串行端口，以及用于连接打印机的并行端口。<sup>[21](https://www.open.edu/openlearn/digital-computing/introducing-ict-systems/content-section-10.2)</sup>

## References

1. [Input/Output (I/O), NIST CSRC Glossary](https://csrc.nist.gov/glossary/term/Input_Output)
2. [An introduction to computers and computer systems: Session 2, Section 5, OpenLearn, The Open University](https://www.open.edu/openlearn/mod/oucontent/view.php?id=109019&section=5)
3. [Overview of the Windows I/O model, Microsoft Learn](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/overview-of-the-windows-i-o-model)
4. [Introduction to Hardware Resources, Microsoft Learn](https://learn.microsoft.com/en-us/windows-hardware/drivers/wdf/introduction-to-hardware-resources)
5. [FAQ: PCI Express, PCI-SIG](https://pcisig.com/faq?field_category_value%5B%5D=pci_express)
6. [USB4, USB Implementers Forum](https://usb.org/usb4)
7. [HDMI 2.2 Specification, HDMI Licensing Administrator](https://www.hdmi.org/spec/hdmi2_1/)
8. [IEEE 802.3-2022, IEEE Standard for Ethernet, IEEE SA](https://standards.ieee.org/ieee/7003/10422/)
9. [Introduction to computers, OpenLearn Create, The Open University](https://www.open.edu/openlearncreate/mod/book/tool/print/index.php?id=181144)
10. [An introduction to computers and computer systems: Section 6, OpenLearn, The Open University](https://www.open.edu/openlearn/mod/oucontent/view.php?id=112559&section=_unit3.7)
11. [An introduction to computers and computer systems: Section 2, OpenLearn, The Open University](https://www.open.edu/openlearn/mod/oucontent/view.php?id=112559&section=_unit2.3)
12. [Introducing ICT systems: 10.1 Introduction, OpenLearn, The Open University](https://www.open.edu/openlearn/digital-computing/introducing-ict-systems/content-section-10.1)
13. [An introduction to computers and computer systems: The personal computer, OpenLearn, The Open University](https://www.open.edu/openlearn/mod/oucontent/view.php?id=112559&section=_unit6.2)
14. [PCIe 8.0 spec hits 1 TB/s of bandwidth and has new connector technology, Tom's Hardware](https://www.tomshardware.com/tech-industry/pci-sig-reveals-pcie-8-0-0-5v-spec-first-draft-includes-1-tb-s-bandwidth-and-new-connector-technology)
15. [What are the PCIe protocol extensions, and how do they improve PCIe interconnect performance?, PCI-SIG](https://pcisig.com/what-are-pcie-protocol-extensions-and-how-do-they-improve-pcie-interconnect-performance)
16. [FAQ: USB Type-C connector on a Windows system, Microsoft Learn](https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/faq--usb-type-c-connector-on-a-windows-system)
17. [USB Power Delivery presentation, USB Implementers Forum](https://www.usb.org/sites/default/files/D2T2-1%20-%20USB%20Power%20Delivery.pdf)
18. [HDMI Specification overview, HDMI Licensing Administrator](https://www.hdmi.org/spec/)
19. [Ethernet, IEEE Technology Navigator](https://technav.ieee.org/topic/ethernet/)
20. [An Introduction to the Compute Express Link (CXL) Interconnect, arXiv](https://arxiv.org/abs/2306.11227)
21. [Introducing ICT systems: 10.2 Ports, OpenLearn, The Open University](https://www.open.edu/openlearn/digital-computing/introducing-ict-systems/content-section-10.2)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Boards, peripherals & form factors › Peripherals & expansion hardware › Peripherals: overview and lists

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/input-output

English original: https://www.edgepedia.org/input-output
