# 文件共享

文件共享是指分发或提供数字文件访问权限的行为，其范围从两台计算机之间通过网络的直接传输，到媒体内容在互联网上的大规模公开分发。这一术语涵盖了几种不同的技术：网络文件共享协议，如SMB和NFS，允许计算机读写远程服务器上的文件；传输协议，如FTP；点对点（P2P）网络，用户之间直接交换文件；以及托管云服务，由服务提供商存储文件并通过链接和权限管理访问。

| 关键事实 | 详情 |
|---|---|
| 定义 | 计算机组成网络，其中每个节点都可以共享文件，文件共享软件让用户能够搜索并从其他计算机下载文件；节点在请求信息时称为客户端，在满足请求时称为服务器，在两者兼有时称为对等节点<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup> |
| 大规模共享的起点 | Napster于1999年6月1日上线，通常被视为大规模互联网文件共享的开端<sup>[2](https://sites.ualberta.ca/~econwps/2012/wp2012-19.pdf)</sup> |
| Napster架构 | 文件在个人计算机之间直接传输；Napster的核心业务是运营一个中央目录，列出已登录用户的共享内容<sup>[2](https://sites.ualberta.ca/~econwps/2012/wp2012-19.pdf)</sup> |
| 第二代网络 | 2001年7月Napster关停后，用户转向eDonkey、FastTrack（KaZaA和Grokster使用）以及Gnutella（Bearshare、LimeWire、Morpheus）<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup> |
| BitTorrent设计 | 客户端发出许多小型数据请求，并按“最稀有优先”的顺序下载；同时下载的用户互相上传，因此一个源只需略微增加负载就能支持大量下载者<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup><sup> • </sup><sup>[3](https://www.bittorrent.org/beps/bep_0003.html)</sup> |
| 流量占比 | 2002年至2008年间，文件共享占全部带宽使用量的40%至60%；到2006年，它占全部消费者互联网流量的60%，其中大部分是视频<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup> |
| 规模 | BigChampagne统计，到2006年中期，美国同时在线文件共享用户约700万；海盗湾追踪器识别出超过2500万曾使用其站点的对等节点<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup><sup> • </sup><sup>[4](https://www.pewresearch.org/internet/2009/06/15/the-state-of-music-online-ten-years-after-napster-2/)</sup> |

## 文件共享的工作原理

文件共享依赖于计算机组成网络来传输数据。每台计算机，即节点，可以同意共享其部分文件，文件共享软件允许用户在网络中搜索并从其他计算机下载文件。单个节点在请求信息时称为客户端，在满足请求时称为服务器，在两者兼有时称为对等节点<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup>。

不同架构的主要区别在于可用文件索引存放的位置。在Napster这样的集中式设计中，目录服务器列出所有已连接用户的共享内容及其IP地址；用户的客户端随后直接联系相应的对等节点，文件本身在两台个人计算机之间传输，从不经过运营商的服务器<sup>[2](https://sites.ualberta.ca/~econwps/2012/wp2012-19.pdf)</sup>。在Gnutella和FastTrack这样的全分布式设计中，没有中央数据库；对等节点向网络广播查询，持有所需资源的对等节点作出响应<sup>[5](https://www.cse.wustl.edu/~jain/cse571-07/ftp/p2p/)</sup>。

**BitTorrent**改变了传输模式。客户端不再像经典的HTTP请求那样请求整个文件，而是发出许多小型数据请求，类似于互联网电话将语音拆分成小数据包的方式。下载遵循“最稀有优先”的顺序，这有助于文件在网络中保持可用。开始时，用户获取一个种子文件，这是一个包含下载元数据和追踪器地址的小文件，追踪器是协调分发的计算机；种子文件由数量相当少的网站托管，其中海盗湾可能是最知名的<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup>。协议规范直接描述了其优势：当同一文件的多个下载同时进行时，下载者之间互相上传，因此文件源只需略微增加自身负载就能支持非常大量的下载者<sup>[3](https://www.bittorrent.org/beps/bep_0003.html)</sup>。

## 历史

自20世纪70年代末首批电话调制解调器上市以来，个人计算机之间就开始在线共享数字文件，但互联网上数字媒体的大规模共享通常被追溯到1999年6月1日Napster上线<sup>[2](https://sites.ualberta.ca/~econwps/2012/wp2012-19.pdf)</sup>。[肖恩·范宁](https://www.edgepedia.org/zh/shawn-fanning)（Shawn Fanning），波士顿东北大学18岁的学生，发布了这款软件，最初让他和室友交换音乐。在Napster之前，乐迷使用Lycos等搜索引擎和音乐网站下载音乐，但可用的索引往往过时，许多网站提供的死链比有效链接还多<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup>。

用户采用速度很快。到2000年7月，皮尤互联网项目（Pew Internet Project）就在线音乐共享进行首次民意调查时，近四分之一的成年互联网用户报告下载过音乐文件，其中54%通过Napster网络获取。<sup>[4](https://www.pewresearch.org/internet/2009/06/15/the-state-of-music-online-ten-years-after-napster-2/)</sup>

**法律压力与去中心化。** 1999年12月，[美国唱片业协会](https://www.edgepedia.org/zh/recording-industry-association-of-america)（Recording Industry Association of America）以帮助侵权和替代侵权为由起诉Napster。经过两年和一次上诉后，第九巡回上诉法院裁定Napster败诉，认定该服务的中央文件目录使其运营者知晓并能够控制用户的侵权行为。由于无法过滤网络中的文件，Napster于2001年7月关停<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup>。

让Napster停业比终止文件共享容易得多。大多数Napster用户转向了第二代P2P服务，同时数百万新用户加入，三大网络发展起来：eDonkey；KaZaA和Grokster使用的FastTrack；以及开源网络Gnutella，为Bearshare、Gnucleus、LimeWire和Morpheus等客户端提供服务<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup>。法院判决也塑造了技术本身。由于第九巡回法院将责任与Napster的中央目录挂钩，第二代服务认为，对侵权没有直接知晓或控制能力的P2P公司可能受到最高法院Betamax判决的保护，因此取消了集中式索引<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup>。Betamax判例认为，如果公司的技术能够用于实质性非侵权用途，则公司不对客户的版权侵权行为承担责任<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup>。

业界还追究了个体用户。2003年9月，RIAA开始起诉文件共享用户，到2008年底已提起约35,000起诉讼<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup>。后来的程序扩大了可交换内容的范围：Napster仅限用户共享音乐文件，而后继者允许共享任何类型的文件，包括视频、图像和文本<sup>[6](https://www.govinfo.gov/content/pkg/CHRG-108hhrg88016/pdf/CHRG-108hhrg88016.pdf)</sup>。

## 衡量文件共享

研究记录中出现了三种测量方法。网络运营商测量带宽：深度包检测公司Sandvine的报告显示，2002年至2008年间文件共享占全部带宽使用量的40%至60%，到2006年文件共享占全部消费者[互联网流量](https://www.edgepedia.org/zh/internet-traffic)的60%，其中大部分是视频<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup>。校园研究在当地发现了同样的模式：2000年威斯康星大学网络的一项研究发现文件共享量级与网页流量相当，2002年华盛顿大学的一项研究发现其超过网页流量的三倍<sup>[7](https://irep.ntu.ac.uk/id/eprint/2991/)</sup>。对P2P网络的直接观测——监测公司BigChampagne采用的方法——统计到2006年中期美国同时在线文件共享用户约700万；在全球范围内，BigChampagne估计超过2亿台计算机至少安装了一个P2P应用<sup>[1](https://www.journals.uchicago.edu/doi/full/10.1086/605852)</sup><sup> • </sup><sup>[4](https://www.pewresearch.org/internet/2009/06/15/the-state-of-music-online-ten-years-after-napster-2/)</sup>。2009年皮尤的一项调查发现，15%的美国在线成年人承认使用点对点或[BitTorrent](https://www.edgepedia.org/zh/bittorrent)下载或共享文件<sup>[4](https://www.pewresearch.org/internet/2009/06/15/the-state-of-music-online-ten-years-after-napster-2/)</sup>。

## 网络文件共享协议

另一类文件共享在组织内部运行，通过协议让一台计算机读写存储在另一台计算机上的文件。

**SMB。** 服务器消息块（Server Message Block）协议是一种网络文件共享协议，允许在TCP/IP或其他传输层之上通过网络读写文件；当应用程序访问远程共享（如\\\\server\\share）时，计算机的SMB客户端管理连接，服务器处理传入的文件访问请求<sup>[8](https://learn.microsoft.com/en-us/windows-server/storage/file-server/file-server-smb-overview)</sup>。通用互联网文件系统（CIFS）是SMB的一种方言，两者也可在VMS、多个版本的Unix及其他操作系统上使用<sup>[9](https://learn.microsoft.com/windows/desktop/fileio/microsoft-smb-protocol-and-cifs-protocol-overview)</sup>。现代方言增加了安全功能：SMB加密随[Windows 8](https://www.edgepedia.org/zh/windows-8)和[Windows Server 2012](https://www.edgepedia.org/zh/windows-server-2012)中的SMB 3.0引入，SMB 3.1.1增加了强制预认证完整性，对连接的早期阶段进行加密哈希以防止协商和会话建立被篡改，同时默认禁用访客访问<sup>[10](https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-feature-descriptions?tabs=windows-server)</sup><sup> • </sup><sup>[11](https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-interception-defense)</sup>。

**FTP与NFS。** 文件传输协议是最古老的互联网协议之一；其当前的基础规范RFC 959由J. Postel和J. Reynolds编写，于1985年10月发布，其中列出的目标包括促进文件共享以及可靠高效地传输数据<sup>[12](https://www.rfc-editor.org/info/rfc959/)</sup>。在Unix环境中，[网络文件系统](https://www.edgepedia.org/zh/network-file-system)（NFS）承担同样的角色；NFS版本4次版本2于2016年11月在RFC 7862中标准化，增加了服务端复制、稀疏文件和带标签NFS等扩展<sup>[13](https://www.rfc-editor.org/info/rfc7862/)</sup>。

## 云与企业文件共享

最新的模式用托管服务取代了点对点网络和本地文件服务器。云存储和协作工具使共享文档和共同编写变得容易，但错误的配置或不合适的工具可能让未经授权的人看到信息；常见的风险包括通过电子邮件发送文件、基于链接的共享对任何人开放从而扩散到预期受众之外、副本失去追踪，以及前项目成员保留访问权限<sup>[14](https://privsec.harvard.edu/best-practices-secure-collaboration-cloud-storage)</sup>。

因此，企业部署将共享与控制措施配对。在[Microsoft 365](https://www.edgepedia.org/zh/microsoft-365)中，[SharePoint](https://www.edgepedia.org/zh/sharepoint)提供用于团队协作的共享库，而OneDrive保存每个用户的个人文件，管理员可以禁止外部共享、要求外部用户进行身份验证，或将共享限制在指定域<sup>[15](https://learn.microsoft.com/en-us/sharepoint/deploy-file-collaboration)</sup>。此类服务的安全指南强调端到端加密——在这种加密下，提供商只收到不可读的数据块，无法解密存储的内容——以及访问控制和适用于受监管行业的合规认证<sup>[16](https://expertinsights.com/data-security-and-privacy/top-secure-file-sharing-storage-services)</sup><sup> • </sup><sup>[17](https://www.techradar.com/best/best-apps-to-share-files-securely)</sup>。

## References

1. [Oberholzer-Gee, F. and colleagues. File Sharing and Copyright. Innovation Policy and the Economy, Vol. 10](https://www.journals.uchicago.edu/doi/full/10.1086/605852)
2. [The Market for Digital Information Goods: P2P file sharing networks (University of Alberta working paper, 2012)](https://sites.ualberta.ca/~econwps/2012/wp2012-19.pdf)
3. [Cohen, B. The BitTorrent Protocol Specification (BEP 3)](https://www.bittorrent.org/beps/bep_0003.html)
4. [Pew Research Center (2009). The State of Music Online: Ten Years After Napster](https://www.pewresearch.org/internet/2009/06/15/the-state-of-music-online-ten-years-after-napster-2/)
5. [A Survey of Peer-to-Peer Network Security Issues, Washington University in St. Louis](https://www.cse.wustl.edu/~jain/cse571-07/ftp/p2p/)
6. [File-Sharing Programs and Peer-to-Peer Networks: Privacy and Security Risks (US House hearing)](https://www.govinfo.gov/content/pkg/CHRG-108hhrg88016/pdf/CHRG-108hhrg88016.pdf)
7. [Towards open tracing of P2P file sharing systems, Nottingham Trent University](https://irep.ntu.ac.uk/id/eprint/2991/)
8. [What is SMB File Sharing for Windows and Windows Server? Microsoft Learn](https://learn.microsoft.com/en-us/windows-server/storage/file-server/file-server-smb-overview)
9. [Microsoft SMB Protocol and CIFS Protocol Overview, Microsoft Learn](https://learn.microsoft.com/windows/desktop/fileio/microsoft-smb-protocol-and-cifs-protocol-overview)
10. [SMB features in Windows and Windows Server, Microsoft Learn](https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-feature-descriptions?tabs=windows-server)
11. [Protect SMB traffic from interception, Microsoft Learn](https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-interception-defense)
12. [RFC 959: File Transfer Protocol, RFC Editor](https://www.rfc-editor.org/info/rfc959/)
13. [RFC 7862: Network File System (NFS) Version 4 Minor Version 2 Protocol, RFC Editor](https://www.rfc-editor.org/info/rfc7862/)
14. [Best Practices: Secure Collaboration & Cloud Storage, Harvard University Information Security](https://privsec.harvard.edu/best-practices-secure-collaboration-cloud-storage)
15. [Plan and deploy a file collaboration environment, Microsoft Learn](https://learn.microsoft.com/en-us/sharepoint/deploy-file-collaboration)
16. [Best 8 Secure File-Sharing and Storage Services for Business, Expert Insights](https://expertinsights.com/data-security-and-privacy/top-secure-file-sharing-storage-services)
17. [Best ways to share files securely, TechRadar](https://www.techradar.com/best/best-apps-to-share-files-securely)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Titles 2 to Ma

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/file-sharing

English original: https://www.edgepedia.org/file-sharing
