The invention relates to the technical field of
computer network communication technology, and discloses an automatic multi-time NAT (
Network Address Translation) implementation method and
system based on
network data packet circulation. The automatic multi-time NAT implementation method is applied to a
network address translation device, and specifically comprises the following steps: S101, obtaining a request destination and a
route of a source node, and finally reaching a destination address according to the request destination and the
route through one or more times of forwarding in a cloud topology so as to generate an
access line path topology; s102, searching all paths from a source node to a destination node by using depth-first, and simulating whether a
route from each path to the destination node is reachable or not for a data packet from the source node; according to the method, a path prediction technology based on a depth-first search (DFS)
algorithm is introduced, all network equipment through which a
network data packet passes from a source node to a destination node is automatically analyzed and calculated, the circulation conditions of the data packet on different paths are accurately simulated, and NAT strategy configuration requirements are automatically identified.