摘要 |
A method for packet routing includes receiving packets over a plurality of virtual private networks (VPNs). Each of the packets includes a respective virtual routing and forwarding (VRF) identifier indicative of a respective VPN over which the packet was transmitted. Each of the packets is assigned to a respective service class having a respective class identifier. For each packet among at least some of the packets, a respective key is computed based on the respective VRF identifier and the respective class identifier of the packet. The respective key is looked up in a configuration table to determine whether the packet is subject to network address translation (NAT). If the packet is subject to NAT, a new address is assigned to the packet, and the packet is forwarded using the new address.
|