MikroTik Certified Internetworking Engineer (MTCINE)
1 Introduction to Networking
1-1 Basic Networking Concepts
1-2 OSI Model
1-3 TCPIP Model
1-4 Network Devices
1-5 Network Topologies
2 MikroTik RouterOS Basics
2-1 Introduction to RouterOS
2-2 RouterOS Interface
2-3 Basic Configuration
2-4 User Management
2-5 System Logging
3 IP Addressing and Subnetting
3-1 IPv4 Addressing
3-2 Subnetting
3-3 IPv6 Addressing
3-4 IPv6 Subnetting
3-5 NAT and PAT
4 Routing
4-1 Static Routing
4-2 Dynamic Routing Protocols
4-3 OSPF
4-4 BGP
4-5 EIGRP
5 Wireless Networking
5-1 Wireless Basics
5-2 Wireless Security
5-3 Wireless Configuration
5-4 Wireless Bridging
5-5 Wireless Repeaters
6 VPN Technologies
6-1 VPN Basics
6-2 IPsec VPN
6-3 OpenVPN
6-4 L2TPPPTP
6-5 SSL VPN
7 Quality of Service (QoS)
7-1 QoS Basics
7-2 Traffic Shaping
7-3 Policing
7-4 Prioritization
7-5 Queue Types
8 Firewall and Security
8-1 Firewall Basics
8-2 Firewall Rules
8-3 NAT Rules
8-4 Filtering Rules
8-5 Hotspot and Captive Portal
9 Advanced Topics
9-1 VLANs
9-2 MPLS
9-3 High Availability
9-4 Load Balancing
9-5 Monitoring and Troubleshooting
3.5 NAT and PAT Explained

3.5 NAT and PAT Explained

Key Concepts

Network Address Translation (NAT)

Network Address Translation (NAT) is a method used to modify IP address information in IP packet headers while they are in transit across a traffic routing device. NAT allows multiple devices on a local network to be mapped to a single public IP address, enabling them to communicate with the outside world.

Example: Think of NAT as a post office that changes the return address on a letter before sending it out. When a device on a private network sends data to the internet, the router changes the private IP address to a public IP address, allowing the data to be sent and received correctly.

Port Address Translation (PAT)

Port Address Translation (PAT), also known as NAT Overloading, is a type of NAT that allows multiple devices on a local network to share a single public IP address. PAT achieves this by using different port numbers for each device, ensuring that data packets are correctly routed back to the appropriate device.

Example: Consider PAT as a large office building where each employee has a unique office number (port) but shares the same street address (public IP). When a letter (data packet) arrives, the receptionist (router) uses the office number to deliver it to the correct employee.

Static NAT

Static NAT involves a one-to-one mapping between a private IP address and a public IP address. This type of NAT is commonly used for devices that need to be accessible from the internet, such as web servers.

Example: Imagine a VIP guest list at a party where each guest (private IP) has a specific seat (public IP). Static NAT ensures that each guest always sits in the same seat, making it easy for others to find them.

Dynamic NAT

Dynamic NAT involves mapping a private IP address to a public IP address from a pool of available public IP addresses. This type of NAT is used when there are more private IP addresses than public IP addresses available.

Example: Think of dynamic NAT as a hotel where guests (private IPs) are assigned rooms (public IPs) from a pool of available rooms. The room assignment changes each time a guest checks in, ensuring that all guests have a place to stay.

Overloading (PAT)

Overloading, or PAT, allows multiple private IP addresses to be translated to a single public IP address by using different port numbers. This is the most common form of NAT used in home and small business networks.

Example: Consider a busy restaurant where multiple customers (private IPs) share the same table (public IP) but are served by different waiters (ports). Each customer's order is correctly delivered to them based on the waiter's identification.