# Patent

## Title
Providing services for multiple virtual private networks

## Abstract

A network device provides services for multiple virtual private networks (VPNs) via one or more virtual hosts. For example, a router receives packets from multiple VPNs, and communicates the packets to a service card via a logical interface in accordance with a forwarding information base. A virtual host within the service card processes the packets and provides a service for the network device from which the packet was sent. The virtual host may, for example, provide print services for network devices within a corresponding VPN. The virtual host acts, in essence, as a print server within the corresponding VPN. In this manner, the router may eliminate the need for the customer associated with the VPN to maintain print servers within remote customer sites.

## Background
This application is a continuation of U.S. application Ser. No. 10/298,696, filed Nov. 15, 2002, the entire contents of which is incorporated herein by reference.


TECHNICAL FIELD
The invention relates to computer networks and, more particularly, to communication through computer networks via virtual private networks (VPNs).
BACKGROUND
A computer network is a collection of interconnected computing devices that exchange data and share resources. In a packet-based network, such as the Internet, the computing devices communicate data by dividing the data into small blocks called packets. The packets are individually routed across the network from a source device to a destination device. The destination device extracts the data from the packets and assembles the data into its original form. Dividing the data into packets enables the source device to resend only those individual packets that may be lost during transmission.
Certain devices within the network, referred to as routers, maintain tables of routing information that describe available routes through the network. Each route defines a path between two locations on the network. Upon receiving an incoming data packet, the router examines header information within the packet to identify the destination for the packet. Based on the header information, the router accesses the routing table, selects an appropriate route for the packet and forwards the packet accordingly.
Virtual private networks (VPNs) are private data networks used to share data between two remotely located computing devices. VPNs may, for example, make use of a public network infrastructure, such as the Internet. For instance, a company with two different sites may securely transmit data between the two different sites via a VPN. VPNs may include numerous servers and other devices that provide services to host devices within a particular VPN. For example, a print server may provide printing services to the host devices within the VPN.
SUMMARY
In general, the invention is directed to techniques for providing services to network devices within multiple virtual private networks (VPNs) via one or more virtual hosts. In particular a service card within a router provides an operating environment for one or more virtual hosts. The virtual hosts each operate as an independent network device within a corresponding one of the VPNs to provide services to other network devices within the corresponding VPNs. The virtual hosts may, for example, be assigned an Internet Protocol (IP) address within the subnet scope of IP addresses belonging to the corresponding VPNs of a customer. For example, a first virtual host may be assigned an IP address within a first subnet scope belonging to a first virtual private network of a first customer. A second virtual host may be assigned an IP address within a second subnet scope belonging to a second virtual private network of a second customer. The first virtual host may provide services to network devices within the first VPN and the second virtual host may provide services to network devices within the second VPN. The virtual hosts, for example, may provide services such as authentication services, print services, file-sharing services, network address translation (NAT) services, and domain name system (DNS) services. In this manner, the router provides services to network devices within multiple VPNs.
The router may relay data, such as packets, to and from the service card and, in turn, to and from the virtual hosts. To relay packets to and from the service card, the router may make use of a set of logical interfaces. In particular, the router may construct an input logical interface and an output logical interface for each virtual host. In this manner, the service card may correspond to a set of input logical interfaces and output logical interfaces. Packets for different VPNs traverse to and from the service card via different input and output logical interfaces. For all extensive purposes, such as forwarding and routing, the logical interfaces may be treated in a manner similar to physical interfaces to other network devices. Consequently, router may view the service card as providing services to a number of different networks, as if the service card were a node in multiple networks.
In order to reduce the amount of resources necessary for servicing the VPNs, the router may dynamically instantiate input and output logical interfaces. The router may communicate information to and from the service card via the instantiated logical interfaces, and destruct the logical interfaces upon completion of communications.
In one aspect of this disclosure, a router comprises a plurality of virtual hosts executing on an operating system of the router, a plurality of interfaces to receive data from multiple virtual private networks and a control unit that maintains a forwarding information base that associates network destinations with next hops within the virtual private networks. The control unit forwards virtual private network traffic received from the virtual private networks to the virtual hosts in accordance with the forwarding information base. Each of the virtual hosts operates as a network device within at least one of the virtual private networks to process the received virtual private network traffic and provide a service to another network device within the respective virtual private network.
In another aspect of this disclosure, a method comprises receiving virtual private network traffic from multiple virtual private networks, providing an operating environment for a plurality of virtual hosts, wherein each of the virtual hosts operates as a network device within at least one of the virtual private networks, forwarding the virtual private network traffic to the virtual hosts in accordance with one or more forwarding information bases that associate network destinations with next hops in the virtual private networks, and processing the virtual private network traffic via the virtual hosts to provide a service to another network device within the respective virtual private network via the virtual hosts.
In a further aspect of this disclosure, a computer-readable medium comprises instructions that cause a processor to receive virtual private network traffic from multiple virtual private networks, provide an operating environment for one or more virtual hosts, wherein each of the virtual hosts operates as a network device within at least one of the virtual private networks, forward the virtual private network traffic to the virtual hosts in accordance with one or more forwarding information bases that associate network destinations with next hops in a network, and process the virtual private network traffic via the virtual hosts to provide a service to another network device within the respective virtual private network via the virtual hosts.
The invention may provide one or more advantages. For example, the described techniques may allow a router to provide services to network devices within multiple VPNs. A service provider, for example, may incorporate such a router to provide print services for a plurality of VPNs. In this manner, the router provided by the service provider may eliminate the need for each customer to maintain print servers at each remote site. Furthermore, the techniques may allow a control unit within the router to utilize logical interfaces for relaying packets for multiple networks to, and receiving packets from, one or more service cards for servicing the VPNs. Furthermore, the router may dynamically instantiate and destruct the logical interfaces as necessary to support the current VPNs being serviced. Accordingly, the techniques may reduce the resources necessary for servicing the VPNs.
The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the invention will be apparent from the description and drawings, and from the claims.



BRIEF DESCRIPTION OF DRAWINGS
FIG. 1 is a block diagram illustrating an example system in which routers provide services for multiple virtual private networks (VPNs) in accordance with the principles of the invention.
FIG. 2 is a block diagram illustrating an exemplary router that provides services to multiple networks.
FIG. 3 is an exemplary embodiment of a service card that provides services to network devices within multiple VPNs in accordance with the principles of the invention.
FIG. 4 is a flowchart illustrating an exemplary mode of operation of a router instantiating logical interfaces in accordance with the principles of the invention.
FIG. 5 is a flowchart illustrating an exemplary mode of operation of a service card providing services for multiple VPNs.
FIG. 6 is a block diagram illustrating another exemplary router that provides services for multiple VPNs.



DETAILED DESCRIPTION
FIG. 1 is a block diagram illustrating an example system 10 in which routers 12A-12C (“routers 12”) provide services for virtual private networks 13A and 13B (“VPNs 13”) in accordance with the principles of the invention. Routers 12 couple customer site networks 14A and 14B (“customer sites 14”) to a public network 16. Public network 16 includes one or more autonomous systems (not shown) having a number of devices, such as routers and switches, used to forward packets across public network 16.
Customer site networks 14 may be geographically distributed sites of multiple customers. In the example of FIG. 1, customer site networks 14 include customer site networks for two customers: customer A and customer B. For example, customer A includes customer site networks 14A′ and 14A′′. Each of customer site networks 14 includes one or more devices (not shown), such as personal computers, laptop computers, handheld computers, workstations, servers, routers, switches, printers, fax machines, or the like. Customer site networks 14 may include one or more Local Area Networks (LANs), Wide Area Network (WANs), or the like. Although system 10 may include any number of customer site networks 14 coupled to public network 16 by any number of routers 12, FIG. 1, for simplicity, shows only customer site networks 14 coupled to public network 16 by routers 12. Each of customer site networks 14 connects to routers 12 via one or more access links 17A-D (“access links 17”).
Customer site networks 14 may transmit data flows between associated customers site networks 14 via corresponding VPNs 13. For example, customer A may transmit data flows between customer site network 14A′ and customer site network 14A′′ via VPN 13A. In the same manner, customer site network 14B′ may transmit data flows to customer site 14B′′ via VPN 13B.
In general, routers 12 provide services for customer site networks 14. Routers 12 may, for example, provide services for VPNs 13 and, in turn, for multiple customers. Routers 12 may include one or more virtual hosts 18. Each of virtual hosts 18 operates as an independent network device within a corresponding one of VPNs 13 to provide services to other network devices within the corresponding VPN 13. For example, each of virtual hosts 18 may be assigned an Internet Protocol (IP) address within the subnet of IP addresses belonging to the corresponding VPN 13 of a customer. In the example of FIG. 1, router 12A includes virtual hosts 18A and 18B. Virtual host 18A corresponds to customer A and, more particularly to VPN 13A. Virtual host 18B corresponds to customer B and, more particularly to VPN 13B. Router 12A may, for example, provide print services to customer A and customer B via VPNs 13A and 13B, respectively. In this manner, router 12 eliminates the need for customer A and customer B to maintain devices to provide services at each remote customer site. Other services the routers 12 may provide include authentication services, file-sharing services, network address translation (NAT) services, domain name system (DNS) services, and the like.
Routers 12 may relay data, such as packets, to and from virtual hosts 18. Virtual hosts 18 may, for example, reside within one or more service cards (not shown) within routers 12. The service cards provide services for VPNs 13. To relay packets to and from the service cards, routers 12 may make use of a set of logical interfaces. In particular, routers 12 may construct an input logical interface and an output logical interface for each virtual host 18. In this manner, each service card may correspond to a set of input logical interfaces and output logical interfaces. Packets for different VPNs 13 traverse to and from the service cards via different input and output logical interfaces. For all extensive purposes, such as forwarding and routing, the logical interfaces may be treated in a manner similar to physical interfaces to other network devices. Consequently, routers 12 may view the service cards as providing services to a number of different networks, as if the service cards were nodes in multiple networks.
In order to reduce the amount of resources necessary for servicing VPNs 13, routers 12 may dynamically instantiate input and output logical interfaces. Routers 12 may communicate information to and from the service cards via the instantiated logical interfaces, and destruct the logical interfaces upon completion of communications.
FIG. 2 is a block diagram illustrating an exemplary router, such as router 12A, that provides services to multiple networks, such as VPNs 13. In particular, router 12A provides services to a number of different networks, as if the router 12A were a node in multiple networks.
Router 12A includes interface cards 20A-20M (“IFCs 20”) that receive and send packets via network links 22 and 24, respectively. IFCs 20 may be coupled to network links 22, 24 via a number of interface ports. In addition, router 12A includes service cards 26A-26K (“service cards 26”) that provide services to multiple customer networks, such as customer site networks 14 and, more particularly VPNs 13. A number of input logical interfaces 28 and output logical interfaces 30 may couple service cards 26 to a control unit 32.
Each of service cards 26 may further include one or more virtual hosts 18A-18J (“virtual hosts 18”). As described above, each of virtual hosts 18 operates as an independent network device within one of VPNs 13 to provide services to other network devices within the respective VPN 13. For example, each of virtual hosts 18 may be assigned an Internet Protocol (IP) address within the subnet of IP addresses belonging to the corresponding VPN 13 of a customer. In this manner, router 12A appears as a node within multiple networks.
Control unit 32 maintains routing information 34, which describes the topology of network 16. In particular, routing information 34 describes various routes within network 16, and the appropriate next hops for each route, i.e., the neighboring devices of router 12A along each of the routes. Control unit 32 analyzes routing information 34 and generates forwarding information bases 36A-36N (“forwarding information bases 36”). Forwarding information bases 36 may associate, for example, network destinations with specific next hops and corresponding IFCs 20 or service cards 26. Forwarding information bases 36 may, therefore, be thought of as a variation of routing information 34. Control unit 32 may maintain separate forwarding information bases 36 respectively associated with each of VPNs 13. In this manner, control unit 32 may associate virtual hosts 18 with respective VPNs 13.
Router 12A may further include a chassis 37 for housing control unit 32. Chassis 37 has a number of slots (not shown) for receiving a set of cards, including interface cards (IFCs) 20 and service cards 26. Each card may be inserted into a corresponding slot of chassis 37 for electrically coupling the card to control unit 32 via a bus, backplane, or other electrical communication mechanism.
Control unit 32 receives a packet from IFCs 20, and associates the packet with a corresponding one of forwarding information bases 36. For example, router 12A may identify which one of IFCs 20 received the packet, and associate the packet with one of forwarding information bases 36 based on which one of IFCs 20 received the packet. Alternatively, router 12A may associate the packet with one of forwarding information bases 36 based on the subnet scope of an IP source address, IP destination address, or other path information within or appended to the packet. Router 12A relays the packet to the next hop in accordance with the associated one of forwarding information bases 36.
In the case in which the next hop is one of service cards 26, control unit 32 relays the packet to the indicated one of service cards 26. In this manner, control unit 32 forwards packets to service cards 26 as if service cards 26 are nodes within customer networks 14. Control unit 32 may selectively choose which one of service cards 26 to relay the packet. Control unit 32 may, for example, select the one of service cards 26 that has the most available bandwidth. Alternatively, one of service cards 26 may service a portion of VPNs 13 while other service cards 26 service other portions of VPNs 13. Further, control unit 32 may select a particular one of service cards 26 depending on what kind of service is to be performed on the packet. For example, one of service cards 26 may provide authentication services while another one of service cards 26 may provide NAT services.
Control unit 32 may relay the packet to service cards 26 via one of input logical interfaces 28. Control unit 32 may statically maintain logical interfaces 28, 30. For example, router 12A may maintain a configuration file (not shown) that defines the logical interfaces 28, 30 between control unit 32 and service cards 26. Upon startup, control unit 32 may access the configuration file and instantiate the defined logical interfaces 28, 30. The configuration file may further associate logical interfaces with particular customers and, more particularly with particular VPNs 13. In this manner, control unit 32 may map logical interfaces 28, 30 to forwarding information bases 36 corresponding to VPNs 13. Further, control unit 32 may map logical interfaces 28, 30 to virtual hosts 18 within service cards 26 in the same manner as forwarding information bases 36.
Further, control unit 32 may dynamically instantiate logical interfaces 28, 30 between control unit 32 and service cards 26 to support serviced VPNs 13. For example, control unit 32 may identify the next hop of a packet to be one of service cards 26 in which no logical interfaces 28, 30 couple service cards 26 to control unit 32. Control unit 32 may instantiate one of input logical interfaces 28 and one of outbound logical interfaces 30 to couple control unit 32 with a particular one of service cards 26. Control unit 32 may map the instantiated logical interfaces 28, 30 to a corresponding forwarding information base 36, a corresponding virtual host, or both. Upon ending communications with a particular one of service cards 26, control unit 32 may destruct the pair of instantiated logical interfaces 28, 30 between that service card and control unit 32. Dynamically instantiating and destructing logical interfaces 28, 30 between control unit 32 and service cards 26 reduces the number of logical interfaces 28, 30 that must be maintained by control unit 32, therefore reducing the number of resources necessary to service VPNs 13.
Upon receiving a packet from control unit 32, service cards 26 associate the packet with a particular one of virtual hosts 18. For example, the destination address of the packet may correspond to the IP address assigned to the respective one of virtual hosts 18. Alternatively, service cards 26 may associate the received packet with the virtual hosts based on the one of input logical interfaces 28 that received the packet.
Upon identifying one of virtual hosts 18 associated with the packet, identified virtual host processes the packet, and provides services for other network device within VPN 13 that sent the packet. For example, each of virtual hosts 18 may provide authentication services for mobile telephone user requesting access to a VPN. In the case in which one of virtual hosts 18 provides authentication services, the virtual host may originate VPN traffic for a radius server within the one of VPNs 13 to which the mobile user requests access in order to determine whether to grant the mobile user access to the VPN. Virtual hosts 18 may further receive traffic destined for the assigned IP address and process the traffic. In this manner, each of virtual hosts 18 acts as a source device and a destination device within the associated one of VPNs 13. Alternatively, each of virtual hosts 18 may originate traffic not in response to receiving a packet. For example, each of virtual hosts 18 may periodically send messages to network devices within the corresponding one of VPNs 13 in order to determine the state of the device.
Service cards 26 relay the VPN traffic originated by virtual hosts 18 to control unit 32. Control unit 32 identifies the appropriate forwarding information base 36 associated with the packet. Control unit 32 may associate the packet with a corresponding one of forwarding information bases 36 using a mapping of logical interfaces 28, 30 to forwarding information bases 36. Alternatively, other packet information may be used to select one of information forwarding bases 36. For example, path information appended to the packet, such as one or more parts of a label, may be used to identify the corresponding one of forwarding information bases 36 associated with the packet. Control unit 32 forwards the packet in accordance with the identified one of forwarding information bases 36.
Router 12A may operate according to executable instructions fetched from a computer-readable medium (not shown). Examples of such media include random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory, and the like. The functions of router 12A may be implemented by executing the instructions of the computer-readable medium with one or more processors, discrete hardware circuitry, firmware, software executing on a programmable processor, or a combination of any of the above.
FIG. 3 is an exemplary embodiment of a service card 26A that provides services to network devices within multiple VPNs in accordance with the principles of the invention. Service card 26A includes an operating system 40 that provides a multi-tasking operating environment for execution of a number of concurrent processes. An example of such an operating system is FreeBSD, which is an advanced UNIX operating system that is compatible with a number of programmable processors, including processors commercially available.
Service card 26A includes virtual hosts 18A-18N (“virtual hosts 18”) that control the services provided by service card 26A. Each of virtual hosts 18 may be a process running on operating system 40. Alternatively, virtual hosts 28 may be a single process. Virtual hosts 18 may include VPN data 42A-42N, respectively, that may contain specific information for the corresponding one of VPNs 13 associated with virtual hosts 18. For example, VPN data 42A may include cryptographic information associated with VPN 13A, a corresponding one of output logical interfaces 30, a VPN label to attach to the output packet, a radius server for authentication, domain name information, and the like.
Service card 26A receives inbound packets from control unit 32. Service card 26A may receive inbound packets via input logical interfaces 28. Alternatively, service card 26A may receive inbound packets from a physical interface. Service card 26A associates the inbound packet with a particular one of virtual hosts 18. As mentioned above, the destination address of the packet may correspond to an IP address assigned to the respective one of virtual hosts 18. For example, if virtual host 18A is associated with the packet, virtual host 18A processes the packet and, provides a service associated with the packet. For instance, virtual host 18A may provide print services to network devices within the corresponding one of VPNs 13. Virtual host 18A may receive a print request from a host device within a respective one of customer site networks 14 of the corresponding one of VPNs 13. Virtual host 18A, in this case acts like a print server, and generates a print request and sends the print request to a printing device within the corresponding one of VPNs 13 via control unit 32. Virtual host 18A may access VPN data 42A to obtain information regarding the corresponding one of VPNs 13. For example, VPN data 42A may further identify a corresponding one of output logical interfaces 30 associated with the VPN, a VPN label associated with the VPN, or the like.
FIG. 4 is a flowchart illustrating an exemplary mode of operation of exemplary router 12A instantiating logical interfaces in accordance with the principles of the invention. Router 12A receives a packet (44), e.g., from one of IFCs 20 or service cards 26, and associates the packet with a corresponding one of forwarding information bases 36 (46). Router 12A may associate the packet with one of forwarding information bases 36 based on the interface on which the packet was received. Alternatively, control unit 32 may extract information from or appended to the packet to identify a particular one of forwarding information bases 36.
Control unit 32 may identify the next hop of the packet from particular one of forwarding information bases 36 associated with the packet (46), and determine whether the next hop is one of service cards 26 (48). When the next hop for the packet is not one of service cards 26, control unit 32 forwards the packet in accordance with the associated one of forwarding information bases 36 (50). For instance, control unit 32 may receive a packet from one of customer sites 14, and forward the packet to network 16 without providing any services to the packet.
When the next hop of the packet is one of service cards 26, control unit 32 determines whether logical interfaces 28, 30 exist between control unit 32 and the one of service cards 26 corresponding to the next hop (52). When logical interfaces 28, 30 do not exist between control unit 32 and the service card, control unit 32 instantiates one of input logical interfaces 28 and one of output logical interfaces 30 (54). Control unit 32 further associates the instantiated logical interfaces 28, 30 with one of forwarding information bases 36 (56). Control unit 32 may update the associated forwarding information base 36 to include the instantiated logical interfaces 28, 30 (57). Control unit 32 relays the packet to the particular one of service cards 26 via the particular one of input logical interfaces 28 associated with the service card (58).
FIG. 5 is a flowchart illustrating an exemplary mode of operation of one of service cards 26 providing services for multiple VPNs. By way of example, service card 26A will be used to explain the exemplary mode. Service card 26A receives a packet from control unit 32 via one of input logical interfaces 28 (60). Service card 26A associates the packet with one of virtual hosts 18 (62). For example, the destination address of the packet may be an IP address associated with a particular one of virtual hosts 18. Alternatively, service card 26A may associate the packet with one of virtual hosts 18 based on input logical interface 28 that received the packet. Alternatively, a portion of the packet or a label appended to the packet may be used by service card 26A to map the packet to a particular one of virtual hosts 18.
The one of virtual hosts 18 associated with the packet processes the packet (64), and provides services indicated by the packet (65). For example, service IFC 26A may provide authentication services for a mobile telephone user. The virtual host further determines whether the services provided require any response packets (66). When the services provided do not require response packets the services to the customer are complete. When the services provided do require response packets, the virtual host identifies the associated one of output logical interfaces 30 (66). VPN data 42A may include output logical interfaces 30 associated with the particular VPNs. Service card 26A relays the response packet to control unit 32 via the associated output logical interface 30 (68).
Although described in the context of originating VPN traffic in response to received data, service card 26A may originate VPN traffic that is not in response to received data. For instance, service card 26A may send periodic messages to a server within one of VPNs 13 in order to determine the state of the server.
FIG. 6 is a block diagram illustrating another exemplary router 112 that provides services for multiple VPNs. Router 112 comprises a control unit 132 that includes a routing engine 138 and a forwarding engine 140. Routing engine 138 is primarily responsible for maintaining routing information 134 to reflect the current topology of network 16 and other network entities to which it is connected. In particular, routing engine 138 periodically updates routing information 134 to accurately reflect the topology of network 16 and other entities.
In accordance with routing information 134, forwarding engine 140 maintains forwarding information bases 136A-136N (“forwarding information bases 136”) that associates network destinations with specific next hops and corresponding interface ports. Accordingly, as described in detail, forwarding engine 140 relays packets received from IFCs 120A-120M (“IFCs 120”) to service cards 126A-126K (“service IFCs 126”). Service cards 126 receive packets from control unit 132, selectively provide services to the customers in accordance with information within the packet, and relay any response packets to control unit 132 for forwarding via one of VPNs 13. In this manner, the router may provide services for multiple customers via VPNs 13.
In one embodiment, each of forwarding engine 140 and routing engine 138 may comprise one or more dedicated processors, hardware, and the like, and may be communicatively coupled by a data communication channel. The data communication channel may be a high-speed network connection, bus, shared-memory or other data communication mechanism. Forwarding engine 140, routing engine 138, or both, may make use of the data structures and organization described above.
Various embodiments of the invention have been described. For example, although packet-based networks are described herein, other types of data units may also be used consistent with the principles of the invention. For instance, the term “packet” is used to generally describe a unit of data communicated between resources in conformance with a communication protocol. The principles of the invention may be readily applied to a variety of protocols, such as Transmission Control Protocol (TCP), the Internet Protocol (IP), Multiprotocol Label Switch (MPLS), Asynchronous Transfer Mode (ATM), Frame Relay, and the like. Accordingly, “packet” is used to encompass any such unit of data, and may be interchanged with the term “cell”, or other similar terms used in such protocols to describe a unit of data communicated between resources within the network.
The virtual hosts may also be implemented on service elements other than service cards. For example, one or more virtual hosts may be implemented on service cards within a router, in a device attached directly to a router, in a device attached to a router via a network or other device, or some combination of these. Further, the virtual hosts may be implemented within a control unit of a router. Moreover, network devices other than routers may use service cards as described herein to carry out operations consistent with the principles of the invention.

## Claims

1. A router comprising:
a plurality of virtual hosts executing on an operating system of the router;
a plurality of interfaces to receive data from multiple virtual private networks;
a control unit that maintains routing information that describes routes and next hops along each of the routes, wherein the control unit maintains a plurality of forwarding information bases that each includes forwarding information for a respective one of the virtual private networks, and wherein each of the forwarding information bases associates network destinations with the next hops for the virtual private networks,
wherein the control unit dynamically instantiates one or more inbound logical interfaces to deliver virtual private network traffic from the control unit to the virtual hosts and one or more outbound logical interfaces to deliver the virtual private network traffic from the virtual hosts to the control unit,
wherein the control unit destructs the dynamically instantiated logical interfaces after delivering the virtual private network traffic,
wherein the control unit forwards the virtual private network traffic received from the virtual private networks to the virtual hosts in accordance with a respective one of the forwarding information bases, and
wherein each of the virtual hosts operates as a network device within at least one of the virtual private networks to process the received virtual private network traffic and provide a service to another network device within the respective virtual private network.

2. The router of claim 1, wherein one or more of the virtual hosts operate as source devices that originate virtual private network traffic.

3. The router of claim 1, wherein one or more of the virtual hosts operate as destination devices for virtual private network traffic.

4. The router of claim 1, wherein each of the virtual hosts maintains virtual private network data that contains information specific to the respective virtual private network.

5. The router of claim 4, wherein the virtual private network data includes at least one of cryptographic information associated with the respective virtual private network, a radius server within the respective virtual private network for authentication, and domain name information for the respective virtual private network.

6. The router of claim 1, wherein each of the virtual hosts is assigned an address from a subnet of addresses belonging to the respective virtual private network.

7. The router of claim 1, wherein the service provided by the virtual hosts includes at least one of authentication services, network address translation (NAT) services, domain name system (DNS) services, print services, and file-sharing services.

8. A method comprising:
maintaining a plurality of forwarding information bases within a router, wherein each of the forwarding information bases includes forwarding information for a respective one of a plurality of virtual private networks, and wherein each of the forwarding information bases associates network destinations with next hops for the virtual private networks;
receiving, with the router, virtual private network traffic from the multiple virtual private networks;
providing an operating environment within the router for a plurality of virtual hosts, wherein each of the virtual hosts operates as a network device within at least one of the virtual private networks;
forwarding the virtual private network traffic to the virtual hosts within the router in accordance with the forwarding information bases, wherein forwarding the virtual private network traffic comprises dynamically instantiating one or more logical interfaces to send the virtual private network traffic to one of the virtual hosts and destructing the dynamically logical interfaces after sending the virtual private network traffic; and
processing the virtual private network traffic via the virtual hosts to provide a service to another network device within the respective virtual private network via the virtual hosts.

9. The method of claim 8, wherein each of the virtual hosts operating as a network device within at least one of the virtual private networks comprises each of the virtual hosts operating as a source device of virtual private network traffic within the respective virtual private network.

10. The method of claim 8, wherein each of the virtual hosts operating as a network device within at least one of the virtual private networks comprises each of the virtual hosts operating as a destination device for virtual private network traffic within the respective virtual private network.

11. The method of claim 8, further comprising associating each of the virtual hosts with an address from a subnet of addresses belonging to the respective virtual private network.

12. The method of claim 8, wherein processing the virtual private network traffic via the virtual hosts to provide a service to another network device within the respective virtual private network comprises processing the virtual private network traffic via the virtual hosts to provide at least one of authentication services, network address translation (NAT) services, domain name system (DNS) services, print services, and file-sharing services.

13. The method of claim 8, further comprising maintaining at least one of cryptographic information associated with the respective virtual private network, a radius server within the respective virtual private network for authentication, and domain name information for the respective virtual private network.

14. A non-transitory computer-readable medium comprising instructions that cause one or more processors to:
maintain a plurality of forwarding information bases within a router, wherein each of the forwarding information bases includes forwarding information for a respective one of a plurality of virtual private networks, and wherein each of the forwarding information bases associates network destinations with next hops for the virtual private networks;
provide an operating environment within the router for a plurality of virtual hosts, wherein each of the virtual hosts operates as a network device within at least one of the virtual private networks;
dynamically instantiate one or more logical interfaces to forward virtual private network traffic to at least one of the virtual hosts within the router in accordance with the forwarding information bases;
receive, with the router, the virtual private network traffic from the multiple virtual private networks;
destruct the dynamically logical interfaces; and
process the virtual private network traffic via the virtual hosts to provide a service to another network device within the respective virtual private network via the virtual hosts.