2. Running Routing Protocols on the WAN
2.1 Overview
Multiprotocol routers are used on connection oriented Wide Area Networks (WANs), such as X.25 packet switched networks and ISDN networks, to interconnect LANs. By using the multiplexing properties of the underlying WAN technology, several LANs can be interconnected simultaneously through a single physical interface on the router.
A circuit manager provides an interface between the connectionless network layers (IP, IPX, CLNP etc) and the connection oriented WAN (X.25 or ISDN). Figure 1 shows a schematic representative stack
showing the relationship between routing protocols, the network layers, the circuit manager and the connection oriented WAN.
-------------- --------- ---------
| RIP | | RIP | | SAP |
-------------- --------- ---------
| | |
-------------- | |
| UDP | | |
-------------- | |
| | |
-------------- ----------------
| IP | | IPX |
-------------- ----------------
| |
-------------------------------------------
| Circuit Manager |
-------------------------------------------
||||||||||
||||||||||
---------------------------
| Connection Oriented |
| WAN stack |
---------------------------
A WAN circuit manager will support a variety of network layer protocols, on its upper interface. On its lower interface, it may support one or more subnetworks. A subnetwork may support a number of Virtual Circuits.
Figure 1. Representative Multiprotocol Router stack
The router has a translation table which relates the network layer address of the next hop router to the physical address used to establish a Virtual Circuit (VC) to it. Datagrams may be encapsulated in a header to distinguish the network layer protocol [5].
The circuit manager takes datagrams from the connectionless network layer protocols and (if one is not currently available) opens a VC to the next hop router. A VC can carry all traffic between two end-point routers for a given network layer protocol (or with appropriate encapsulation all network layer protocols). An idle timer is used to close the VC when the datagrams stop arriving at the circuit manager.
Running routing protocols on the WAN has traditionally consisted of making small modifications to the methods used on LANs. Where
routing information would be broadcast periodically on a LAN interface, it is converted to a series of periodic updates sent to a list of addresses on the WAN.
This memo targets two areas:
-
Eliminating the overkill inherent in periodic transmission of routing updates.
-
Overcoming the bandwidth limitations on the WAN: the number of simultaneous VCs to next hop routers and restricted data throughput which the WAN link can support. The first of these is overcome by transmitting routing updates (called routing responses) only when required:
-
Firstly, when a specific request for a routing update has been received.
-
Secondly, when the routing database is modified by new information from another interface. Update information received in this way is not normally propagated on other interfaces immediately, but is delayed for a few seconds to allow information from several updates to be grouped.
-
Thirdly, when the circuit manager indicates that a destination has changed from an unreachable (circuit down) to a reachable (circuit up) state. Because of the inherent unreliability of a datagram based system, both routing requests and routing responses require acknowledgement, and retransmission in the event of NOT receiving an acknowledgement.
To overcome the bandwidth limitations the routing application can perform a form of self-imposed flow control, to spread routing updates out over a period of time.
2.2 Presumption of Reachability
If a routing update is received from a next hop router on the WAN, entries in the update are thereafter always considered to be reachable, unless proven otherwise:
- If in the normal course of routing datagrams, the circuit manager fails to establish a connection to the next hop router, it notifies the routing application that the next hop router is not reachable through an internal circuit down message.
The routing application then goes through a process of timing out database entries to make them unreachable in the routing sense.
- If the circuit manager is subsequently able to establish a connec tion to the next hop router, it will notify the routing applica tion that the next hop router is reachable through an internal circuit up message. The routing application will then exchange messages with the next hop router so as to re-prime their respective routing databases with up-to-date information.
Handling of circuit up and circuit down messages requires that the circuit manager takes responsibility for establishing (or reestablishing) the connection in the event of a next hop router becoming unreachable. A description of the processes the circuit manager adopts to perform this task is outside the scope of this memo.
2.3 WAN Router list
The routing task MAY be provided with a list of routers to send routing updates to on the WAN. It will comprise of the logical addresses of next hop routers for which the router has a logical to physical address mapping. Entries in the list SHOULD be categorized (on a per-peer basis) as follows:
-
Running the standard routing protocol, namely transmitting updates periodically with the packet formats used in LAN broadcasts. This option is supported to allow interoperability with existing routing implementations, and might also be appropriate if some of the destinations are using Permanent Virtual Circuits (PVCs) rather than SVCs.
-
Running the triggered update routing protocol proposed in this memo. Omitting an address from both of these categories is equivalent to not running the routing protocols.
If routing packets arrive from a destination not supporting the appropriate variant they MUST be discarded.
2.4 Triggered Updates and Unreliable Delivery
If triggered update information is sent to next hop routers on the WAN only once it can fail to arrive for one of the following reasons:
- A free VC resource might not be available, because of a restricted number of X.25 logical channels or ISDN B-channels.
- The transmit queue might be full - requiring the datagram to be discarded.
- The VC might be pre-empted (in favour of establishing a VC to another next hop router) while the datagram is in a queue, resulting in the queue being flushed and the datagram discarded.
- In cases where the method of transport is not guaranteed, for example with PPP where there is no acknowledgement and retransmission of HDLC frames, a corrupted frame will result in the loss of the datagram.
2.5 Guaranteeing delivery of Routing Updates
To guarantee delivery of routing updates on the WAN an acknowledgement and retransmission scheme MUST be used:
-
Send a routing update to a next hop router on the WAN.
-
The other router responds with an acknowledgement packet. The original router receives the acknowledgement.
-
Otherwise the original router retransmits the update until an acknowledgement is received. Retransmission timer values are covered in section 7.
In cases where the routing database is modified before an acknowledgement is received a new routing update with an updated sequence number is sent out. If an acknowledgement for the old routing update is received it is ignored.
- A router only updates its routing database when it receives a complete update, which may consist of several fragments. Each fragment is individually acknowledged. The above mechanism caters for cases where the datagram is lost because of a frame error or is discarded because of an over-full
queue. The routing update and acknowledgement will eventually both get through.
In cases where the circuit manager cannot establish a connection, a mechanism is provided to allow the circuit manager to inform the routing task of the failure to make a connection so that it can suppress retransmissions until a circuit becomes available.
2.6 The Routing Database
A requirement of using triggered updates for propagating routing information is that NO routing information ever gets LOST or DISCARDED.
The routing database MUST adopt one of the following strategies:
- It must keep ALL alternative routing information it learns from any routing updates from the LAN and the WAN, so that if the best route disappears an alternative route (if available) can replace it as the new best route.
- If the amount of memory this consumes is problematic the routing application must keep SOME alternative routing information - say a best route and two alternatives. If the router ever has to discard routing information about a route it should note the fact. If the routes that have been kept disappear because they have become unreachable, the router MUST issue a request on all interfaces to try and obtain discarded alternatives.
It is recommended that the request is issued BEFORE all routes to a destination have been lost.
Entries in the routing database can either be permanent or temporary. Entries learned from broadcasts on LANs are temporary. They will expire if not periodically refreshed by further broadcasts.
Entries learned from a triggered response on the WAN are 'permanent'. They MUST not time out in the normal course of events. The entries state MUST be changed to 'temporary' by the following events:
-
The arrival of a routing update containing the entry set to unreachable. The normal hold down timer MUST be started, after which the entry disappears from the routing database.
-
The arrival of a routing update with the entry absent. If the hold down timer is not already running, the entry MUST be set to unreachable and the hold down timer started.
-
A message sent from the circuit manager, to indicate that it failed to make a connection in normal running. The routing table MUST be scanned for all routes via that next hop router. Aging of these routing entries MUST commence. If the aging timer expires the entry MUST be set to unreachable and the hold down timer started. If the hold down timer expires the entry disappears from the routing database.
-
If the interface goes down, the circuit manager should indicate that all circuits on that interface have gone down. Database timer values are covered in section 7.
2.7 New Packet Types
To support triggered updates, three new packet types MUST be supported:
TRIGGERED REQUEST
A request to the responding system to send all appropriate elements in its routing database.
A triggered request is retransmitted at periodic intervals until a triggered response is received.
Routing requests are transmitted in the following circumstances:
- Firstly when the router is powered on.
- Secondly when the circuit manager indicates a destination has been in an unreachable (circuit down) state for an extended period and changes to a reachable (circuit up) state.
- Thirdly in the event of all routing update fragments failing to arrive within a set period.
- It may also send triggered requests at other times to compensate for discarding non-optimal routing information. TRIGGERED RESPONSE
A message containing all appropriate elements of the routing database. An appropriate element is an entry NOT learned from the interface to which the routing information is being sent out. This is known as "split horizon".
Stability is improved by adding "poisoned reverse" on routes learned from a destination. This consists of also including some routes learned from a destination in routing updates sent back to that destination, but setting the routes as unreachable. A route is only poisoned if it is the best route (rather than an inferior alternative route) in the database.
A triggered response message may be sent in response to a triggered request, or it may be an update message issued because of a change in the routing database.
A triggered response message MUST be sent in response to a triggered request message even if there are no routes to propagate. This would be the case for a host which had a WAN interface only, but which wished to run the triggered update protocol.
A triggered response is retransmitted at periodic intervals until a triggered acknowledgement is received.
TRIGGERED ACKNOWLEDGEMENT
A message sent in response to every triggered response packet received.
Triggered response and triggered acknowledgement packets MUST contain additional fields for a sequence number, fragment number and number of fragments.
If a triggered request or response is not acknowledged after 10 retransmissions, routes to the destination should be marked as unreachable for the duration of a hold down timer before being deleted.
The destination should then be polled at a lower frequency using triggered request packets. When a triggered response is received, the router should prime the next hop router my sending its routing database through triggered response packets.
Strictly speaking polling should occur indefinitely to guarantee database integrity. However the administrator MAY wish the router to cease polling after a few attempts believing that the lack of response is due to a mis-configuration of the next hop router. The destination should be marked as NOT supporting the mechanism and no further routing messages should be sent to that destination.
Before marking the destination as not supporting the mechanism, at least 5 triggered request polls (without acknowledgement) should be sent.
If a destination marked as not supporting the mechanism, subsequently sends a valid 'triggered' message, the destination should be marked as supporting the mechanism once more (to allow for the next hop router's configuration being changed). It should be sent a triggered request and a triggered response to obtain and propagate up-to-date routing information.
2.8 Fragmentation
If a routing update is sufficiently large, the information MUST be fragmented over several triggered response packets:
-
Each fragment MUST be individually acknowledged with a triggered acknowledgement packet. The sender of the routing update MUST periodically retransmit fragments which have not been acknowledged (or until the destination is marked as not supporting the mechanism).
-
A router receiving fragments MUST re-assemble them before updating its routing database.
-
If all fragments are not received within four times the retransmit period, they MUST be discarded. A triggered request packet MUST then be sent to the originator of the routing update.
On receiving the triggered request packet, the originator of the routing update MUST retransmit ALL fragments.
- If a fragment with an updated sequence number is received, ALL fragments with the earlier sequence number MUST be discarded. An updated sequence number is defined as any sequence number that is different. There is no concept of the value of the sequence number conveying its age.
Fragmentation timer values are covered in section 7.
2.9 Preventing Queue Overload
In order to prevent too many routing messages being queued at a WAN interface, the routing task MAY operate a scheme whereby 'broadcasting' of a triggered request or triggered response to a WAN interface is staggered. All routing requests or routing responses are not sent to ALL next hop routers on the interface in a single batch:
- The routing task should limit the number of outstanding triggered request messages for which a triggered response has not been received.
- The routing task should limit the number of outstanding triggered response messages for which a triggered acknowledgement has not been received. As outstanding messages are appropriately acknowledged, further messages can be sent out to other next hop routers, until all next hop routers have been sent the message and have acknowledged it.
The maximum number of outstanding messages transmitted without acknowledgement is a function of the link speed and the number of other routing protocols operating the triggered update mechanism.
Messages should always be acknowledged immediately (even if it causes the limit to be exceeded), since a connection is almost certainly available. This has the potential benefit of allowing the VC to close sooner (on its idle timer).
Sending all triggered request fragments to a destination at once is also beneficial.