After user packets arrive at a NAT device, the device does not perform NAT directly for the user packet. The device diverts packets matching specified ACL rules to a NAT service board for processing. This implementation is called NAT traffic diversion. NAT traffic diversion is performed in either inbound-interface or outbound-interface mode.
In the inbound-interface traffic diversion mode, a traffic policy is applied to an inbound interface to divert packets. A traffic classifier in the traffic policy defines ACL rules used to match against packets, and a traffic behavior defines the NAT processing for packets.
After the traffic policy is applied to the inbound interface, NAT translation is performed for packets matching the ACL rules defined in the traffic policy. The packets that do not match the traffic policy are forwarded based on the regular process.
In the carrier scenario, NAT is required for all user traffic. The inbound-interface traffic diversion mode is recommended.
As shown in the preceding figure, the forward traffic forwarding process in inbound-interface traffic diversion mode is as follows:
In outbound-interface traffic diversion mode, the NetEngine 8000 F diverts traffic based on the ACL rules bound to a NAT instance. The NetEngine 8000 F filters out user packets. The packets destined for the internal network are forwarded based on the regular forwarding process. Packets destined for the public network are diverted to the NAT service board for processing.
In the enterprise network scenario, there is a large amount of internal communication traffic, and NAT does not need to be performed. NAT is performed only for the traffic that needs to access the external network. In such a scenario, the outbound-interface traffic diversion solution is recommended.
As shown in the preceding figure, the forward traffic forwarding process in outbound-interface traffic diversion mode is as follows:
The forwarding process is the same as the reverse traffic forwarding process in inbound-interface traffic diversion mode. For details, see Forwarding process in inbound-interface traffic diversion mode (reverse traffic).