NAT 类型对于在线游戏意味着什么?
What does NAT type mean for online gaming?
NAT 类型并不总是一个问题,取决于您的网络配置方式。
在在线游戏的设置中或在控制台上,您可能已经看到 NAT 类型字段并想知道它的含义。在某些情况下,您甚至可能会收到一条警告,指出您的 NAT 类型很严格,并且匹配将会受到影响。
在许多情况下,这比您需要采取行动的任何事情都更具信息性。如果您的游戏在匹配和语音聊天方面运行良好,则无需进行调整。但是,如果您的网络配置不适合游戏,并且不断断开连接或看到错误,则应该进行一些更改以避免性能问题。让我们看看 NAT 类型的含义、它如何影响您以及您可以采取哪些措施来调整它。
NAT 代表网络地址转换,长期以来一直是互联网运行方式的关键部分。 IPv4 是 IP 地址的原始方案,只能容纳大约 40 亿个唯一数字。当该标准在 80 年代制定时,这已经足够了,但当每个人都上网并开始添加数十个智能设备时,它很快就变得捉襟见肘。
ISP 提出了 NAT 作为解决方案。这样,每个家庭都有一个公共 IP 地址,其路由器会转换传入和传出流量,以便其内的所有设备在单个公共 IP 下工作。对于大多数网络流量来说,这并不是一个重大障碍,但对于游戏等实时应用程序来说,少量的不一致和这些转换层可能会产生很大的影响。
新版本的互联网协议 IPv6 拥有足够的 IP 地址,地球上的每一粒沙子都拥有数十亿个自己的 IP 地址。因此它不需要 NAT,因为每个设备都可以有自己的 IP 地址。
许多现代设备都支持 IPv6,但过渡尚未完全完成。某些设备在混合模式下工作,可以利用 IPv6,但如果出现问题或链上的其他设备不兼容,则回退到 IPv4。
游戏中的 NAT 类型说明了您的设备与更广泛的互联网通信的能力。在 Xbox 和 PC 上,您将看到三种类型:开放、中等和严格。在 PlayStation 上,它们分别称为类型 1、类型 2 和类型 3。Nintendo Switch 使用 A、B 和 C,其中 D 表示连接受到严格限制,如果您的主机根本无法连接,则使用 F。 NAT 类型不是官方网络规范,这就是它们在不同平台上有所不同的原因。
开放 NAT 意味着您的游戏机或 PC 直接连接到互联网,并且对其通信对象没有限制。 (如上所述,这实际上不是 NAT,但游戏仍然这样指定它。)中等表示您的系统位于路由器后面以进行互联网连接,但仍然能够根据需要进行通信。最后,严格意味着您的系统有必要的端口被阻塞,无法正常通信。
尽管 Open 听起来应该是我们的目标,但事实并非如此。让您的控制台或 PC 直接连接到互联网是不切实际的,因为它需要您将计算机连接到调制解调器,从而阻止您使用路由器使所有其他设备在线,除非您使用网络交换机。重要的是,它也是不安全的,因为您的路由器没有防火墙或其他安全功能来保护您的网络流量。
使用开放 NAT 类型,您可以连接到其他任何人;通过“中等”,您可以连接到其他“中等”或“开放”玩家。严格是最不兼容的,因为你只能与那些拥有开放 NAT 的人一起玩。通常,具有开放 NAT 的人会被选为游戏主机,而具有严格 NAT 则意味着您更有可能看到匹配错误,无法加入朋友等类似情况。
您的体验最受点对点 (P2P) 连接游戏中 NAT 类型的影响,而不是开发商提供的专用服务器。然而,即使在拥有自己服务器的游戏中,游戏内语音聊天、自定义大厅、合作活动等元素可能仍然依赖于 P2P 连接。
NAT 类型不会改变您的网络速度或 ping;它只会影响您的控制台可以与谁交谈。提高路由器的下载速度是另一回事。
要检查 PS5 上的 NAT 类型,请前往“设置”>“网络”>“连接状态”>“测试互联网连接”,您将能够在其中看到您的 NAT 类型。在 Xbox Series X|S 上,转到“设置”>“常规”>“网络设置”,然后检查“当前网络状态”。在 Switch 或 Switch 2 上,转至设置 > 互联网 > 测试连接。有些游戏还会在网络设置或多人游戏主菜单中显示您的 NAT。
如果您的 NAT 类型是开放/类型 1/A 或中等/类型 2/B,则您适合多人游戏。如果您发现评级较差,您可以对网络进行一些调整,但没有简单的切换按钮可以翻转。
首先,确保您没有使用两个路由器。这会产生称为双 NAT 的问题,其中发生两层地址转换。如果您有一个路由器连接到 ISP 的网关,将网关置于桥接模式将防止双重 NAT。任何使用第二个路由器作为接入点的人都应该将其置于 AP 模式,这样就不会增加路由器功能。
除此之外,严格 NAT 类型最常见的修复方法是在路由器上启用 UPnP(通用即插即用)。出现 NAT 类型问题是因为游戏和在线服务无法通过相关端口与您的主机进行通信。解决此问题需要登录路由器并将相关端口转发到控制台或游戏电脑,以畅通来自外部的相关通信,但对每个游戏都这样做很不方便。
启用 UPnP 后,网络上的任何设备都可以请求从路由器转发所需的端口,并且这些端口将被授予。这很方便,但也带来了安全风险。如果有人恶意访问您的网络,他们可能会滥用 UPnP 请求打开端口,从而获得更多控制权。哟…
原文(English)
NAT type isn’t always an issue, and depends on how your network is configured.
Inside an online game's settings or on your console you may have seen the NAT Type field and wondered what it meant. In some cases, you might even get a warning that your NAT type is strict and that matchmaking will be affected.
In many cases, this is more informational than anything you need to act on. If your game is working fine in matchmaking and voice chat, then adjustments shouldn't be necessary. But if your network is configured poorly for gaming and you keep getting disconnected or seeing errors, you should make some changes to avoid performance issues. Let's look over what NAT type means, how it affects you and what you can do to adjust it.
NAT stands for network address translation and is a key part of how the internet has worked for some time. IPv4, the original scheme for IP addresses, only has enough room for about four billion unique numbers. That was plenty when the standard was developed in the '80s but it quickly became stretched once everyone got online and started adding dozens of smart devices.
ISPs came up with NAT as a solution. With this, each home has one public IP address and its router translates incoming and outgoing traffic so all devices within it work under a single public IP. It's not a significant roadblock to most network traffic, but for real-time applications like gaming small bits of inconsistency and these layers of translation can have a big effect.
The newer version of the internet protocol, IPv6, has enough possible IP addresses for every grain of sand on Earth to have billions of their own. It thus doesn't require NAT because every device can have its own IP address.
Many modern devices support IPv6, but the transition hasn't fully completed yet. Some devices work in a hybrid mode where they can take advantage of IPv6 but fall back to IPv4 if there are issues or another device along the chain isn't compatible.
NAT type in a game explains how well your device can communicate with the wider internet. On Xbox and PC, you'll see three types: Open, Moderate and Strict. On PlayStation, these are respectively known as Type 1, Type 2 and Type 3. The Nintendo Switch uses A, B and C, with D for connections that are heavily restricted and F if your console can't connect at all. NAT types are not an official network specification, which is why they vary across platforms.
An Open NAT means your gaming console or PC is directly connected to the internet and has no restrictions on what it can communicate with. (As explained above, this isn't actually NAT, but games still designate it as such.) Moderate indicates that your system is behind a router for its internet connection but is still able to communicate as needed. Finally, Strict means your system has necessary ports blocked and can't communicate normally.
Although Open sounds like it should be the goal, that's not really the case. Having your console or PC directly connected to the internet is impractical, as it would require you to connect your machine to your modem, preventing you from using a router to get every other device online unless you used a network switch. Importantly, it would also be insecure since you wouldn't have the firewall or other security features of your router protecting your network traffic.
With an Open NAT type, you can connect to anyone else; and with Moderate you can connect to other Moderate or Open players. Strict is the least compatible, as you can only play with those who have an Open NAT. Usually, someone with an Open NAT is chosen as the game host, while having a Strict NAT means you're more likely to see matchmaking errors, won't be able to join friends and similar.
Your experience is most affected by NAT type in games with peer-to-peer (P2P) connections rather than dedicated servers provided by the developer. However, even in games with their own servers, elements like in-game voice chat, custom lobbies, co-op campaigns and similar might still rely on P2P connections.
NAT type doesn't change your network speed or ping; it only affects who your console can talk to. Improving your router's download speeds is another matter.
To check your NAT type on PS5, go to Settings > Network > Connection Status > Test Internet Connection, and there you'll be able to see your NAT type. On Xbox Series X|S, go to Settings > General > Network Settings and check under Current Network Status. On a Switch or Switch 2, go to Settings > Internet > Test Connection. Some games will also show your NAT in their network settings or on the multiplayer main menu.
If your NAT type is Open/Type 1/A or Moderate/Type 2/B, you're in good shape for multiplayer games. In case you see a worse rating, you can make a few adjustments on your network, but there isn't a simple toggle to flip.
First, make sure you aren't using two routers. This creates a problem called double NAT where there are two layers of address translation happening. If you have a router connected to your ISP's gateway, putting the gateway in bridge mode will prevent double NAT. Anyone who uses a second router as an access point should put it in AP mode so it's not doubling up on router functionality.
Aside from that, the most common fix for a Strict NAT type is enabling UPnP (Universal Plug and Play) on your router. NAT type problems occur because games and online services can't communicate with your console over the relevant ports. Fixing this involves logging into your router and forwarding the relevant ports to your console or gaming PC to unblock relevant communication from the outside, but doing so for every game is inconvenient.
When UPnP is enabled, any device on your network can request ports that it needs forwarded from your router and they will be granted. This is convenient but also creates security risks. If someone malicious gained access to your network, they could abuse UPnP to request ports be opened that give them more control. Yo…
本文为自动翻译,可能存在偏差,请以原文为准。发布于 2026-11-08 06:30
阅读原文 ↗https://www.engadget.com/2309599/what-nat-type-means-online-