Skip to content

Commit

Permalink
Working on nat64 tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ewpratten committed Aug 5, 2023
1 parent 3a9017e commit 32f1447
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 24 deletions.
5 changes: 3 additions & 2 deletions docs/book/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Summary

- [Introduction](./introduction.md)
- [Libraries](./libraries.md)
# Getting Started

- [What is NAT64?](./learning/nat64.md)

# User Guides

Expand Down
2 changes: 2 additions & 0 deletions docs/book/binaries/protomask.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# `protomask` User Guide

The `protomask` binary is a NAT64 implementation.
11 changes: 0 additions & 11 deletions docs/book/introduction.md

This file was deleted.

11 changes: 11 additions & 0 deletions docs/book/learning/nat64.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# What is NAT64?

IPv4 and IPv6 are two different versions of the Internet Protocol that, while being similar in many ways, are not directly compatible (largely due to their differing header structure).


## Addressing

IPv4 addresses are 32-bit numbers (represented as `xxx.xxx.xxx.xxx`), while IPv6 addresses are 128-bit numbers (represented as `xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx`).

When an IPv4 packet is sent from one host to another, the sender embeds both the sending and receiving address into the packet header (just like a destination and return address on physical mail). This means that a packet traveling from `192.0.2.1` to `192.0.2.2` would be marked as such in the packet header:

11 changes: 0 additions & 11 deletions docs/book/libraries.md

This file was deleted.

0 comments on commit 32f1447

Please sign in to comment.