Skip to main content

3. IPX WAN Protocol Description

After the underlying data link connection is established as described in the preceding media dependant description, the IPXWAN protocol is activated to exchange identities and determine certain operational charactaristics of the link.

There are two steps in the IPXWAN operation:
  • Negotiating master/slave role and choice of routing protocol.
The master/slave roles persist for the IPXWAN exchanges only;
  • Information exchange of final router configuration.

After these steps are concluded, transmission of IPX routing packets begins - using the routing protocol negotiated - as well as

transmission of IPX data traffic.

3.1. The Initial Negotiation​

The first exchange of packets decides the master/slave roles and the routing protocol to be used on the link and gauges the link delay for the routing metrics. The initial negotiation is the same for all protocols.

+---------------+                 +---------------+
| Timer Request | | Timer Request |
+---------------+ +---------------+
\---->\ /<----/
\ /
x
/ \
/\ /<----/ \---->\ /\
/ \ / \
/ \ / \
/ My primary \ / My primary \
/ network address\ / network address\
\ is larger / \ is smaller /
\ / \ /
\ / \ /
\ / \ /
\/ \/
MASTER SLAVE

+----------------+
<----------------+ Timer Response +
+----------------+

After link establishment, both sides of the link send Timer Request packets and start a timer waiting for a Timer Response. These Timer Requests are sent every 20 seconds until a response is received or a descision is made that the remote node is not responding. This could be after a predefined time (min. 60 seconds) or a number of retries (e.g., 16).

In composing the Timer Request, the router or workstation takes into

consideration:
  • Which types of routing protocols it supports;

  • Whether it is prepared to assign a network address to the link;

  • For workstations, whether they require the ability to specify

their network/NIC address on a reconnect;
  • Whether it is able to support IPX header compression [6].

For each routing protocol supported, place an option in the Timer Request packet. The Routing Type options should be added in the originator's order of preference with the most preferred option first.

Some of the newer (or modified) routing protocols do not have the requirement to allocate a network number on a WAN link. This type of routing protocol has the advantage of potentially simpler configuration as no network number pools are necessary for WAN links. However, these router implementations may still wish to interoperate with the older IPXWAN implementations which are able to allocate network numbers to the WAN link. In this case, the following method is used to force the older implementation to become the link master. It should be noted that a router implementation capable of supporting workstation dial-in MUST be able to supply AT LEAST ONE network number on which the workstation can reside.

If the router is prepared to assign an IPX network number to the link, it sends its primary network number in the Timer Request WNodeID field, and omits the Extended Node ID option. On the other hand, if the router is NOT prepared to assign an IPX network number to the link, it sets the Timer Request WNodeID field to zero, and includes its primary network number in an Extended Node ID option.

Workstations follow a similar, but slightly different set of rules for setting the WNodeID field. If this is the first time the work-station is connecting to the router, the workstation will set the WNodeID to zero indicating the router should be the link master and allocate a network number for the new link. In this case, the work-station will respond to the router's Timer Request and acknowledge only the Workstation Routing Type option. Note that a workstation does NOT include an Extended Node ID option in it's timer request.

If the workstation is reconnecting a link after an earlier inactivity disconnect, it is necessary for the workstation to be able to specify its network, NIC address and "Router Name" field (so that file server connections can be maintained after the reconnect). In this case, the workstation will set its WNodeID field to FFFFFFFFh forcing itself to be the link master. In this case, the router will respond to the workstation's Timer Request with only the Workstation Router Type acknowledged.

Further packets in the IPXWAN exchange MUST use the correct WNodeID (workstations will always use zero).

On receiving a Timer Request packet, a router determines its role -master or slave - for the remainder of the IPXWAN exchanges. The master role does not denote special privileges, it merely means that the router is the requestor in the ensuing request/response exchanges. The descision is made as follows:

a) If there is an Extended Node ID present (and we understand
the option), this must be compared to our Primary Network
Number. If we have the lower Primary Network Number, we
MUST respond with a Timer Response and become the slave.

b) If there is NO Extended Node ID, we must compare the WNodeID
of the received Timer Request with our Primary Network Number
and respond if we have a lower number.

Note: The Primary Network Number for a workstation when
determining master/slave roles depends on whether the
workstation requires itself to be the master of slave. It
should compare the received WNodeID to that sent in it's own
Timer Request.

The numeric comparisons are done by considering each byte of the WNodeID or Extended Node ID fields as an unsigned integer, and the first byte as most significant.

The link slave responds to the Timer Request with a Timer Response. To do so, each option in the received Timer Request is parsed. If an option is not supported (or recognized), that option is rejected by changing the WAccept field to "NO" for that option.

When selecting the router type which will be used on the link, the first option in the Timer Request which can be supported should be accepted. All other router types should have the WAccept field set to "NO". A router MUST NOT accept workstation connectivity to a node which is another router.

Note: It is permitted for a router to support a numbered routing type, but not be able to assign the network number. In this case, that routing type can be selected only if the other router supports it and is able to assign the network number. This can be determined by the value of the received WNodeID field. If the router is unable to assign a network number to the link, it MUST support Unnumbered RIP and include this option in the Timer Requests.

If a router wishes to provide WAN Client access without supporting other WAN routing types, a potential problem arises since a router and WAN client would both just be sending a single Routing Type option indicating the use of WAN Client. The IPXWAN specification

does not allow a WAN workstation to connect to another WAN workstation. The method for detecting this is that the sent and received Timer Requests have a single Routing Type defined of WAN Client. To overcome this problem, IPXWAN defines that a router MUST NOT send a single Routing Type if that type is just WAN Client. The router MUST additionally include one (or more) of the defined routing types (like WAN RIP) with the WAccept option set to NO. This is so that a workstation may detect that this is actually a router sending the Timer Request and not just another workstation trying to call a workstation. The extra option will serve to be a counted Routing Type that will be ignored. If a workstation detects it is connecting to another workstation, it should disconnect the link.

Note that a router supporting a workstation will need to be able to supply AT LEAST one network number for workstations. All dial-in workstations could share the same network, and be assigned unique node numbers by the router, or each workstation could be assigned a different network number. This is a router specific implementation detail. Use of a single network for all clients is prefered, however, this does involve extra work by the router when dealing with broadcast frames. When the router is the link master and allocating NIC addresses on a single network,it should ALWAYS use a unique value - by incrementing the NIC address for each client connection. This allows a workstation which is reconnecting the ability to specify his old network and NIC address. It is unlikely with a 6 byte NIC address, that there will be wrap-around in the numbers that would cause a problem. Router Node Number allocation should follow a few simple rules. The six byte NIC address SHOULD have the first byte set to 2.

Byte # +--1----2----3----4----5----6-+
| 02 | XX | XX | XX | XX | XX |
+-----------------------------+

In an IEEE address space, this would represent a non-multicast, locally defined address. Node numbers of zero or -1 are not allowed.

If a slave determines it cannot support any of the supplied routing protocols in the received Timer Request, it MUST issue a disconnect on the connection being established. The master of the link (determined when a Timer Response packet is received) is responsible for defining the network number that is to be used as a common network number for the new WAN link, and for calculating the RIP transport time that will be advertized to other RIP routers for the new link. This is calculated by stopping the timer which was started when a Timer Request was initiated and applying the algorithm in section 4.3.

3.2. Information Exchange​

After exchanging Timer Request packets, the link master and slave have been determined, and the Routing Protocol to be used on the link is negotiated. The link master is now responsible for sending an Information Request packet to the slave specifying the network number to be used on the new link (zero for unnumbered RIP and On Demand), the calculated transport time to be used in the routing metric, the Router Name (for management purposes), and for a workstation connection, the NIC address the workstation will be adopting. The NIC address option is a separate option added in the Information Request/Response for workstation connectivity. It is NOT present for router to router connections.

If a router receives an inappropriate Information Request from a workstation trying to set the common network number and NIC address the router MUST overwrite these values with preferred values. When the workstation receives the Information Response, it MUST note the new values. If the workstation is unable to adjust to the new values, it MUST issue a disconnect on the link. If a workstation is the link master (i.e., it is reconnecting), the router is additionally responsible for ensuring the "Router Name" field matches that of the original connection. If the values differ, the call should be disconnected.

If a router detects an error for which no suitable protocol response exists (e.g., unable to allocate a network number), the link should be terminated according to the relevant media specification.

Under certain circumstances, particularly on X.25 permanent circuits, it is only possible to detect the remote router went away when it comes back up again. In this case, one side of the link receives a Timer Request packet when IPX is in a fully connected state. The side receiving the Timer Request MUST realize that a problem occurred, and revert to the IPX link establishment phase. Furthermore, the routing information learned from this connection should be immediately discarded.

When Unnumbered RIP, On-demand or Workstation options are negotiated, Information Request packets are repeated every 20 seconds until a response is received. For the Numbered RIP links, the Information Request is NOT resent. Instead, the link is disconnected after a suitable delay (min. 60 seconds) - this requirement ensures interoperabilty with earlier versions of IPXWAN. When Information Requests are repeated, they should continue for a preconfigured time (min. 60 seconds) or a preconfigured number of retries (e.g., 16). Each retry uses an incremented sequence number.

3.3. NAK Packets​

The IPXWAN protocol uses a NAK packet to indicate the received IPXWAN packet was not acceptable. A NAK packet is an exact copy of the received packet with the WPacketType field set to NAK. There are two anticipated uses of this packet.

  • The received WPacketType is invalid or not recognized;

  • A badly formed IPXWAN packet is received.

Returning a NAK packet allows the sender a chance to work out what was wrong. If the sender was unable to determine the problem, the call can then be disconnected.

The value of the NAK WPacketType is FFh.