Types of NAT
The availability of the TCP-hole-punching technique depends on the type of computer port allocation used by the NAT. When two peers, A and B, initiate TCP connections by binding to local ports Pa and Pb, respectively, they need to know the remote endpoint NAT port in order to make the connection.
A NAT port allocation can be one of the two:
- predictable: the gateway uses a simple algorithm to map the local port to the NAT port. Most of the time a NAT will use port preservation, which is to say that the local port is mapped to the same port on the NAT.
- non predictable: the gateways uses an algorithm that is either random or too impractical to predict.
Connection matrix representing the different cases:
-
A predictable A non-predictable B predictable YES YES B non-predictable YES NO
-
- YES: the connection will work all the time
- NO: the connection will almost never work
Read more about this topic: TCP Hole Punching
Famous quotes containing the words types of, types and/or nat:
“The wider the range of possibilities we offer children, the more intense will be their motivations and the richer their experiences. We must widen the range of topics and goals, the types of situations we offer and their degree of structure, the kinds and combinations of resources and materials, and the possible interactions with things, peers, and adults.”
—Loris Malaguzzi (19201994)
“Our major universities are now stuck with an army of pedestrian, toadying careerists, Fifties types who wave around Sixties banners to conceal their record of ruthless, beaverlike tunneling to the top.”
—Camille Paglia (b. 1947)
“nat every wight he sholde go selle
Al that he hadde and yive it to the poore,
And in swich wise folwe him and his fore:
He spak to hem that wolde live parfitly
And lordinges, by youre leve, that am nat I.”
—Geoffrey Chaucer (1340?1400)