摘要 |
A gateway is provided which routes a packet sent from a user to the connected network which would maximize the chances that the packet arrives at its destination in the quickest way possible. This is accomplished by extracting a source address from the packet; searching through one or more per-user routing tables to find a per-user routing table corresponding to the source address, the per-user routing table containing a list of currently accessible networks for the user and the range of network addresses corresponding to the currently accessible networks; extracting a destination address from the packet; traversing the entries of the matching per-user routing table, looking for a range of network addresses containing the destination address; routing the packet to a matching network if the destination address is contained within one of the ranges of network addresses for the currently accessible networks; and routing the packet to a default network if the destination address is not contained within one of the ranges of network addresses for the currently accessible networks. The gateway may also avoid the drawbacks of using hops in transporting packets to a destination by looking up the destination network in a table, each entry in the table having a router network address corresponding to each network currently accessible; establishing a tunneling session to the matching router network address; and forwarding the packet to the router network address through the tunneling session.
|