# 网际数据包交换

**网际数据包交换**（Internetwork Packet Exchange，IPX）是Novell开发的一种网络层数据报协议，从20世纪80年代起在NetWare网络上负责数据包的寻址和路由，直至1998年NetWare 5.0将纯TCP/IP支持定为标准。<sup>[1](https://www.novell.com/documentation/nw65/nw65_implement_lx_nw/data/tcpip.html)</sup> Novell将其从施乐网络系统（XNS）的网际数据报协议（IDP）改编而来，通常与其传输层搭档——顺序数据包交换（SPX）——协同工作。<sup>[2](https://www.novell.com/documentation/nw6p/ipx_enu/data/hjyh8yg8.html)</sup><sup> • </sup><sup>[3](https://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1908.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 层次与角色 | OSI网络层；利用RIP或NLSP提供的信息在IPX网际间寻址和路由数据包<sup>[2](https://www.novell.com/documentation/nw6p/ipx_enu/data/hjyh8yg8.html)</sup> |
| 交付模型 | 无连接数据报服务，不保证交付；确认与连接控制交由IPX之上的协议（如SPX）处理<sup>[2](https://www.novell.com/documentation/nw6p/ipx_enu/data/hjyh8yg8.html)</sup> |
| 地址格式 | 12字节十六进制地址：4字节网络号、6字节节点号、2字节套接字号<sup>[4](https://www.novell.com/documentation/nias41/ipx_enu/data/hvvqznoa.html)</sup> |
| 数据包大小 | 最小30字节（仅报头）；历史上被路由的数据包限制为576字节，但协议允许最大65,535字节<sup>[5](https://www.novell.com/documentation/nw6p/ipx_enu/data/hc1w6pvi.html)</sup> |
| 跳数限制 | 基于RIP的路由器丢弃传输控制字段达到16的数据包；NLSP允许最多127跳<sup>[5](https://www.novell.com/documentation/nw6p/ipx_enu/data/hc1w6pvi.html)</sup> |
| 起源 | 改编自施乐的XNS网际数据报协议；RIP和SPX同样源自XNS的RIP和SPP<sup>[2](https://www.novell.com/documentation/nw6p/ipx_enu/data/hjyh8yg8.html)</sup><sup> • </sup><sup>[3](https://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1908.html)</sup> |
| 衰落 | NetWare 5（1998年）将纯TCP/IP定为标准；Novell后来的开放企业服务器中Linux不支持IPX<sup>[1](https://www.novell.com/documentation/nw65/nw65_implement_lx_nw/data/tcpip.html)</sup> |

## 协议设计

IPX是一种无连接数据报协议：当一个节点上的进程与另一节点上的进程通信时，不建立连接，数据包被寻址并发送，不保证也不验证成功交付。每个数据包被视为独立实体，与其他数据包之间没有逻辑或顺序关系。任何确认或连接控制均由IPX之上的协议提供，如SPX——Novell从XNS顺序数据包协议衍生出的可靠的、面向连接的传输协议。<sup>[2](https://www.novell.com/documentation/nw6p/ipx_enu/data/hjyh8yg8.html)</sup><sup> • </sup><sup>[3](https://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1908.html)</sup>

作为网络层协议，IPX根据其报头中的地址字段以及从RIP或NLSP接收的信息做出路由决策，将数据包转发至目的节点或通往目的节点的路径上的下一台路由器。<sup>[2](https://www.novell.com/documentation/nw6p/ipx_enu/data/hjyh8yg8.html)</sup>

## 数据包结构

IPX报头位于MAC报头之后、数据包数据之前，数据部分通常是NCP或SPX等上层协议的报头。<sup>[6](https://support.novell.com/techcenter/articles/ana19900903.html)</sup> 其字段包括：<sup>[5](https://www.novell.com/documentation/nw6p/ipx_enu/data/hc1w6pvi.html)</sup><sup> • </sup><sup>[3](https://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1908.html)</sup>

- **校验和**，16位完整性字段。旧版NetWare不使用该字段，要求将其设为0xFFFF；Novell认为MAC尾部CRC已提供足够保护。<sup>[5](https://www.novell.com/documentation/nw6p/ipx_enu/data/hc1w6pvi.html)</sup><sup> • </sup><sup>[7](https://www.perle.com/support_services/documentation_pdfs/5500087.pdf)</sup>
- **数据包长度**，16位，完整数据包（报头加数据）的字节长度，至少为30。<sup>[5](https://www.novell.com/documentation/nw6p/ipx_enu/data/hc1w6pvi.html)</sup>
- **传输控制**，8位，数据包经过的路由器数量。发送节点将其设为零，每台路由器在转发前将其加一。RIP路由器在值达到16时丢弃该数据包；使用NLSP时，限制可设为8至127跳。<sup>[5](https://www.novell.com/documentation/nw6p/ipx_enu/data/hc1w6pvi.html)</sup><sup> • </sup><sup>[8](https://www.novell.com/documentation/nw6p/ipx_enu/data/hx3eg5x7.html)</sup>
- **数据包类型**，8位，所提供或所需的服务。Novell记录的值包括：0x00为NLSP，0x01为RIP，0x04为SAP，0x05为SPX，0x11为NCP，0x14为传播的[NetBIOS](https://www.edgepedia.org/zh/netbios)数据包。<sup>[5](https://www.novell.com/documentation/nw6p/ipx_enu/data/hc1w6pvi.html)</sup>
- **目的与源**的网络（32位）、节点（48位）和套接字（16位）字段。目的网络为0表示目的地在发送方自己的网段上；目的节点为0xFFFFFFFFFFFF表示向目的网络上的所有节点广播。IPX没有广播网络号或广播套接字号，源节点字段中不允许使用广播地址。<sup>[5](https://www.novell.com/documentation/nw6p/ipx_enu/data/hc1w6pvi.html)</sup>
- **上层数据**，承载NCP或SPX等协议的报头。<sup>[3](https://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1908.html)</sup>

没有数据包分片：IPX数据包可以是任何长度，直至介质的最大传输单元大小。<sup>[3](https://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1908.html)</sup>

## 寻址

完整的IPX网络地址是一个12字节的十六进制数，由4字节网络号、6字节节点号和2字节套接字号组合而成，例如`FEDCBA98 1A2B3C5D7E9F 0453`。<sup>[4](https://www.novell.com/documentation/nias41/ipx_enu/data/hvvqznoa.html)</sup> 在节点寻址方面，IPX使用分配给网络接口板的物理地址，因此无需单独的节点配置。<sup>[4](https://www.novell.com/documentation/nias41/ipx_enu/data/hvvqznoa.html)</sup>

三部分各有不同功能：网络号仅用于网络层路由，节点号用于本地同网段传输，套接字号将数据包导向节点内的某个进程。<sup>[4](https://www.novell.com/documentation/nias41/ipx_enu/data/hvvqznoa.html)</sup> 网际上的每个网段被分配一个唯一的网络号，最多八位十六进制数字，其中0x0、0xFFFFFFFF和0xFFFFFFFE三个号码为保留值，不能标识特定网络。<sup>[4](https://www.novell.com/documentation/nias41/ipx_enu/data/hvvqznoa.html)</sup>

## 路由与服务发现

IPX借助三个配套协议完成其网络层任务：RIP、SAP和NLSP。<sup>[8](https://www.novell.com/documentation/nw6p/ipx_enu/data/hx3eg5x7.html)</sup>

**RIP**（[路由信息协议](https://www.edgepedia.org/zh/routing-information-protocol)）同样源自XNS，在NetWare网际上交换路由信息。工作站广播路由请求以寻找通往某网络号的最快路径，路由器向其他路由器请求路由信息以更新其表，路由器执行周期性广播并在配置变更时广播。Novell在XNS数据包结构中添加了一个额外字段以改善路由选择，这使其无法与其他XNS RIP实现直接集成。<sup>[6](https://support.novell.com/techcenter/articles/ana19900903.html)</sup>

**SAP**（服务通告协议）让提供服务的节点（如文件服务器和打印服务器）通告其地址和服务。SAP数据包与RIP数据包一样搭载在IPX内部，每个数据包最多可携带七个服务器的信息，支持工作站“获取最近服务器”请求等操作。<sup>[3](https://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1908.html)</sup><sup> • </sup><sup>[6](https://support.novell.com/techcenter/articles/ana19900903.html)</sup>

**NLSP**（NetWare链路服务协议）是一种[链路状态路由协议](https://www.edgepedia.org/zh/link-state-routing-protocol)，将跳数限制从RIP的16提高到最多127，并允许管理员设置跳数限制参数。<sup>[5](https://www.novell.com/documentation/nw6p/ipx_enu/data/hc1w6pvi.html)</sup>

路由器收到数据包时，检查传输控制字段，若超出跳数限制则丢弃该数据包；检查数据包类型字段，对类型20（NetBIOS）的数据包按限于八个网络的特殊传播规则处理；然后检查目的网络、节点和套接字字段，以路由该数据包、内部处理或转发。<sup>[8](https://www.novell.com/documentation/nw6p/ipx_enu/data/hx3eg5x7.html)</sup>

## 封装与介质

NetWare在以太网/IEEE 802.3、[令牌环](https://www.edgepedia.org/zh/token-ring)/IEEE 802.5、FDDI、CDDI和ARCnet上运行IPX，并通过PPP在同步广域网链路上运行。<sup>[3](https://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1908.html)</sup> 在以太网上，IPX数据包封装在以太网2.0版或IEEE 802.3帧中，不携带这些帧通常携带的IEEE 802.2信息；NetWare 4.0增加了对标准802.3和SNAP封装的支持。多种封装变体共存，包括Novell的以太网802.3（NetWare 3.11的默认值）、以太网802.2（NetWare 4.0的默认值）、以太网II和SNAP。<sup>[3](https://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1908.html)</sup>

IPX也可承载在IP网络上。1991年6月由Novell的Don Provan发布的RFC 1234规定，通过将IPX数据包封装在UDP/IP报头内，使用IANA分配的UDP端口213，实现IPX流量在IP网络中的隧道传输。<sup>[9](https://www.rfc-editor.org/info/rfc1234/)</sup> 相关标准涵盖广域网介质上的IPX（IPXWAN，RFC 1634）以及XNS IDP的PPP控制协议RFC 1764。<sup>[10](https://www.rfc-editor.org/info/rfc1634/)</sup><sup> • </sup><sup>[11](https://www.rfc-editor.org/info/rfc1764/)</sup>

## 在NetWare中的角色及向TCP/IP的迁移

从20世纪80年代直至NetWare 5.0问世，IPX一直是NetWare的核心协议；该版本发布后，原生TCP/IP支持成为常态。<sup>[1](https://www.novell.com/documentation/nw65/nw65_implement_lx_nw/data/tcpip.html)</sup> 在较早的NetWare版本中，IPX/SPX协议套件承载NetWare核心协议（NCP）功能，包括读写文件、用户登录与认证以及Novell目录服务的同步。<sup>[12](https://support.novell.com/techcenter/articles/nc1998_09c.html)</sup>

NetWare 5可运行于IPX/SPX协议栈、TCP/IP协议栈或两者之上。其“纯IP”模式让NCP直接位于UDP或TCP报头之上，无需封装，而早期的NetWare/IP产品则将IPX数据包封装在UDP/IP报头内。为便于迁移，NetWare 5包含一个IPX兼容模式驱动和一个兼容模式服务器进程，将IPX通信（如SAP查询和广播）转换为纯IP格式，还有一个迁移代理充当IPX与IP网络之间的网关。<sup>[12](https://support.novell.com/techcenter/articles/nc1998_09c.html)</sup><sup> • </sup><sup>[13](https://support.novell.com/techcenter/articles/ana19990206.html)</sup> 服务发现从SAP转向服务位置协议（SLP）。<sup>[14](https://support.novell.com/techcenter/articles/ana19980302.html)</sup>

同时运行两种协议是有代价的：IP和IPX是独立的协议，因此同时运行两者的网络必须维护两者，而管理多协议通信所需的路由器、网桥和交换机可能令人望而却步。<sup>[15](https://www.novell.com/documentation/nw6p/scommenu/data/hxvtls3t.html)</sup> 在后来的产品中，NetWare上仍支持IPX与TCP/IP网络的共存，但Linux不支持IPX。迁移仅使用IPX的应用程序需要重写或替换；在所有IPX依赖项解决后，可从NetWare服务器中移除IPX支持。<sup>[1](https://www.novell.com/documentation/nw65/nw65_implement_lx_nw/data/tcpip.html)</sup>

## References

1. [NW 6.5 SP8: Planning and Implementation Guide - TCP/IP, Novell](https://www.novell.com/documentation/nw65/nw65_implement_lx_nw/data/tcpip.html)
2. [NetWare 6 - The IPX Protocol, Novell Documentation](https://www.novell.com/documentation/nw6p/ipx_enu/data/hjyh8yg8.html)
3. [Troubleshooting Novell IPX, Cisco Internetworking Troubleshooting Guide](https://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1908.html)
4. [Novell Internet Access Server 4.1 - IPX Addressing, Novell Documentation](https://www.novell.com/documentation/nias41/ipx_enu/data/hvvqznoa.html)
5. [NetWare 6 - IPX Packet Structure, Novell Documentation](https://www.novell.com/documentation/nw6p/ipx_enu/data/hc1w6pvi.html)
6. [NetWare Communications Processes, Novell AppNote (1990)](https://support.novell.com/techcenter/articles/ana19900903.html)
7. [Perle support documentation on IPX framing](https://www.perle.com/support_services/documentation_pdfs/5500087.pdf)
8. [NetWare 6 - How IPX Routing Works, Novell Documentation](https://www.novell.com/documentation/nw6p/ipx_enu/data/hx3eg5x7.html)
9. [RFC 1234: Tunneling IPX traffic through IP networks, RFC Editor](https://www.rfc-editor.org/info/rfc1234/)
10. [RFC 1634: Novell IPX Over Various WAN Media (IPXWAN), RFC Editor](https://www.rfc-editor.org/info/rfc1634/)
11. [RFC 1764: The PPP XNS IDP Control Protocol (XNSCP), RFC Editor](https://www.rfc-editor.org/info/rfc1764/)
12. [Migrating to Pure IP With NetWare 5, Novell Connection (1998)](https://support.novell.com/techcenter/articles/nc1998_09c.html)
13. [Migrating from NetWare/IP to NetWare 5 and Pure IP, Novell TID (1999)](https://support.novell.com/techcenter/articles/ana19990206.html)
14. [Maintaining IPX Compatibility During a Migration to TCP/IP on a NetWare Network, Novell AppNote (1998)](https://support.novell.com/techcenter/articles/ana19980302.html)
15. [NetWare 6 - Protocol Selection, Novell Documentation](https://www.novell.com/documentation/nw6p/scommenu/data/hxvtls3t.html)

---
*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: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › 网络基础与架构 › 互联网协议套件

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/internetwork-packet-exchange

English original: https://www.edgepedia.org/internetwork-packet-exchange
