DDR involves using the switched phone system to establish connectivity. Asynchronous modems can be used for DDR on the AUX port of the router. Synchronous modems or ISDN TA's can be used on serial ports. And integrated ISDN (BRI, MBRI, or PRI) ports can perform DDR.
DDR is usually used for low volume, periodic traffic. Low volume, so that a dial-up or ISDN connection suffices. Periodic, so that most of the time the connection can be down.
DDR is also used for dial backup. When a leased line or Frame Relay interface line fails or becomes saturated, a phone call replaces it or adds capacity.
DDR can also be used with dial-up access to X.25 or Frame Relay.
interface serial 0This associates an IP address with the interface and indicates that other routers will be connecting up via DDR. On a router that would be calling another, you might add more interface commands like:
ip address 1.2.3.4 255.255.255.0
dialer in-band
dialer idle-timeout 600This specifies a 10-minute wait (idle time) with no "interesting" traffic before hanging up the connection (see When, below).
With ISDN, setup might also include commands like:
! specify the ISDN switch type:Router interfaces connected by DDR are assigned IP addresses in the same subnet, just as if there was a permanent leased line between them.
isdn switch-type basic-dms100
! this service provider requires 2 SPID's,
! one for each B channel
interface bri 0
isdn spid1 412555121201 5551212
isdn spid2 412555121302 5551213
This by no means is all that there is to say about Setup, but if you think in terms of Setup, of having to clue the router in on what's going on, then you can dig the details out of UniverCD.
One possibility is to use static routing. The static route indicates a default route via 144.254.50.1.
ip route 144.254.0.0 255.255.0.0 144.254.50.1When a packet arrives at the DDR router, if its destination is not in the routing table, the router will forward it to 144.254.50.1, which is the address of the router across the DDR link.
If we're doing static routing, we probably are NOT dynamically routing across the DDR link, even when it is up. The above might be suitable for a small branch office, where if an address is not a local LAN, it must be at the main office.
Another possibility follows. This might be a main office. We give it a static route for each branch office, we turn on dynamic routing, and we redistribute the static routes. Redistribution of static routes saves having to put similar static routes on all our other main office routers. The passive-interface keeps the IGRP updates off the DDR link. (We use bri 0 to illustrate how it might look for ISDN).
! static route to branch office:A third useful approach is Cisco's snapshot routing. Think of it as dynamic static routing, or if you prefer, lazy-person's static routing. It's like static routing information where the router goes out and gets the information for itself. The information gets infrequently refreshed, either via a separate phone call or when the link is up.
ip route 144.254.55.0 255.255.255.0 144.254.50.1
! dynamic routing for main office:
router igrp 100
network 144.254.0.0
passive-interface bri 0
! advertise the branch office:
redistribute static
default-metric 56 2000 255 1 1500
If there's only one phone number, you can specify it as above with the dialer string command:
interface serial 0When there's more than one next hop router, the router needs a phone book:
dialer string 5551212
interface serial 0This says that the IP address 144.254.50.1 is reached at phone number 5551212. The name part is optional. The word broadcast may be added to the dialer map, if IP broadcasts need to cause dialing.
dialer map IP 144.254.50.1 name nextHopper 5551212
There are some other How issues. One is how dialing occurs. Default is v.25bis dialing, as above, on synchronous serial ports (chat scripts on the AUX port). Use the interface command
dialer in-band [odd-parity | no-parity]to specify DDR with v.25bis dialing (and parity if needed).
The router can instead raise DTR to trigger an autodial modem to dial. This is configured with the interface command:
dialer dtrA third alternative is to use a chat script, typically with a Hayes-compatible modem. The name of the chat script is specified in the dialer map statement.
ISDN BRI and PRI interfaces of course use ISDN dialing.
Some people want any traffic to cause the phone link to be brought up. That's fairly simple. It's also one approach to dial backup.
Most people want to only place a call when there is traffic to be transmitted. That's because toll calls and ISDN are usually billed based on usage, so it costs to leave the connection up.
However, there are lots of things happening on a network that aren't worth a phone call. For instance, routing updates. If you're running IP RIP, do you want to place a call every 30 seconds? Probably not.
So we need to help the router out, by telling it what traffic is worth a phone call. We do this with an access list (see below). When the router needs to forward an "interesting" packet out the DDR interface, it places the call. The call goes through (we hope), and traffic flows. If we want to block some of the "uninteresting" traffic, we need to do so separately. When the link is up, all traffic may be transmitted across it. The router resets an idle timer every time an interesting packet is sent, and when there are no interesting packets for a while, the idle timer causes the phone call to be ended.
The following is an ISDN configuration that ties BRI interface 0 to dialer-group 1. The dialer group 1 in turn specifies what traffic is interesting, namely all IP traffic and IPX traffic matching the "permit" clauses of access list 901, an extended IPX access list. This is not intended to be realistic, just to illustrate the possibilities. We've omitted the access list for brevity.
! access-list saying RIP, SAP, serialization
! are not interesting:
access-list 901 deny 0 -1 452
access-list 901 deny 0 -1 453
access-list 901 deny 0 -1 457
access-list 901 deny 0 -1 0 -1 452
access-list 901 deny 0 -1 0 -1 453
access-list 901 deny 0 -1 0 -1 457
access-list 901 permit -1
! specify interesting traffic:
dialer-list 1 protocol ip permit
dialer-list 1 protocol list 901
! tie this to the BRI 0 interface:
interface bri 0
dialer-group 1
If you have it, the Cisco NetWorkers '95 CD has two very informative sets of slides, 5B (ISDN) and 5D (DDR Technical Overview). These could be a good place to start, and they cover most of what you need to know.
Dr. Peter J. Welcher (CCIE #1773, CCSI #94014) is a Senior Consultant with Chesapeake NetCraftsmen. NetCraftsmen is a high-end consulting firm and Cisco Premier Partner dedicated to quality consulting and knowledge transfer. NetCraftsmen has nine CCIE's, with expertise including large network high-availability routing/switching and design, VoIP, QoS, MPLS, network management, security, IP multicast, and other areas. See http://www.netcraftsmen.net for more information about NetCraftsmen. Pete's links start at http://www.netcraftsmen.net/welcher . New articles will be posted under the Articles link. Questions, suggestions for articles, etc. can be sent to pjw@netcraftsmen.net .