SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Of Knights and Drawbridges
Auro Tripathy
auro@shatterline.com
A halt-who-goes-there medieval story about the modern
mystery of NAT Traversal
2
Using an Analogy to explain NATs
NAT NAT NAT NAT
+-+ +-+ +-+ +-+
+----+ | | | | | | | | +----+
|EP-a|---+ +...+ +---((Public Network))---+ +...+ +---|EP-b|
+----+ | | | | | | | | +----+
+-+ +-+ +-+ +-+
EP = End Point
NAT = Network Address Translation
Source : https://tools.ietf.org/html/draft-takeda-symmetric-nat-traversal-00
3
Imagine…
 The fortress (your home) is a private
network
 The tenant is an end-point device (e.g.
PC, network attached storage, wireless
thermostat, wireless smoke-alarm, IoT
device)
 The NAT is the “moat”, to defend the fort.
 A tenant can send out a packet by
lowering the drawbridge
 Until a tenant sends a packet out of the
fort, the fort is locked-down; there are no
drawbridges
4
Fortifying your defenses with a Moat
 Lowering the drawbridge is an opportunity for
unintended “knight” to come in
 The bridge must be defended against uninvited knights.
 The rules of the drawbridge define the Moat
 Full-Cone NAT (least restrictive crossing)
 Restricted-Cone NAT
 Port-restricted cone NAT
 Symmetric NAT (most restrictive crossing)
5
Full-Cone NAT
 When the tenant (end-point) in the
fort sends a knight (packet) out, a
drawbridge will be lowered with a
guard to determine who can come-in
using that drawbridge.
 For an in-coming knight (packet), the
guard checks:
 Are you, Sire, visiting the tenant who
created this drawbridge?
 If yes, go on in.
 The guard does not check
 where the knight (packet) came from(could be any end-point).
 Whether the knight had an invitation
6
The Invitation Letter
 The trick to traverse a NAT with UDP is to utilize the
'invitation letter” (packet).
 The invitation packet is not necessarily a 'special'
invitation packet. The first part of outgoing data
transmission works as an invitation because it lowers a
drawbridge assigns a guard for incoming knights.
7
Restricted-Cone NAT
 A drawbridge will be lowered when a tenant(endpoint) in the fort sends
an invitation letter (a packet) for the first time to another fort.
 The guard on the drawbridge will check if the in-coming knight (packet) is
visiting the tenant who lowered this drawbridge.
 The guard also checks if the knight came from the fort that received the
invitation letter from the tenant.
 The guard does not check the invitation letter, just the fort name to which
the invitation was sent.
8
Port-restricted-Cone NAT
 A drawbridge will be lowered when a tenant(endpoint) in a fort
sends an invitation letter (a packet) for the first time to a tenant in
another fort.
 The guard will check if each knight (packet) trying to enter (via the
drawbridge) is visiting the tenant who lowered the drawbridge.
 The guard checks if the knight came from the fort that received the
invitation letter from the tenant.
 The guard also checks if the knight has received the invitation
letter from the tenant.
You came from the correct
fort, do you have the
invitation?
9
Symmetric-Cone NAT
 In the case of non-symmetric NATS, the same
drawbridge will be used whenever the same tenant in a
fort sends an invitation packet to a different destination.
 In a symmetric NAT, a new drawbridge will be always
lowered every time the tenant in the fort sends an
“invitation” packet.
Fort
Moat
Drawbridge
Tenant
 Each invitation has it own
drawbridge
 The drawbridge for a
knight to enter from one
fort is not the same for
other knights to enter from
other forts
10
Summary
NAT-Type Intended for
Tenant who
lowered the
Drawbridge?
Invitation to Fort F2
and coming from
Fort F2?
Has the
Invitation
Letter?
Coming-in on the
same drawbridge
that the invitation
went out on?
Full
Cone
Yes,
Go-on in
Not Checked Not Checked Not-Checked
Restricted Cone Yes and… Yes, go-on in Not Checked Not Checked
Port-Restricted Cone Yes and … Yes, and … Yes, go-on in Not Checked
Symmetric
Cone*
Yes Yes, and… Yes, and Yes, go-on in
F2
11
Applying the Analogy
 In this analogy, a 'tenant' represents local UDP port.
 Several tenants comprise a device. Each device has an
IP address.
 A fort protects multiple devices with a NAT (the moat)
 A drawbridge is a mapping and a rule for incoming
packets.
12
References
https://tools.ietf.org/html/draft-takeda-symmetric-nat-traversal-00

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
chumtiyababu
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 

Kürzlich hochgeladen (20)

Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 

Empfohlen

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Of knights-and-drawbridges-nat-behaviour

  • 1. Of Knights and Drawbridges Auro Tripathy auro@shatterline.com A halt-who-goes-there medieval story about the modern mystery of NAT Traversal
  • 2. 2 Using an Analogy to explain NATs NAT NAT NAT NAT +-+ +-+ +-+ +-+ +----+ | | | | | | | | +----+ |EP-a|---+ +...+ +---((Public Network))---+ +...+ +---|EP-b| +----+ | | | | | | | | +----+ +-+ +-+ +-+ +-+ EP = End Point NAT = Network Address Translation Source : https://tools.ietf.org/html/draft-takeda-symmetric-nat-traversal-00
  • 3. 3 Imagine…  The fortress (your home) is a private network  The tenant is an end-point device (e.g. PC, network attached storage, wireless thermostat, wireless smoke-alarm, IoT device)  The NAT is the “moat”, to defend the fort.  A tenant can send out a packet by lowering the drawbridge  Until a tenant sends a packet out of the fort, the fort is locked-down; there are no drawbridges
  • 4. 4 Fortifying your defenses with a Moat  Lowering the drawbridge is an opportunity for unintended “knight” to come in  The bridge must be defended against uninvited knights.  The rules of the drawbridge define the Moat  Full-Cone NAT (least restrictive crossing)  Restricted-Cone NAT  Port-restricted cone NAT  Symmetric NAT (most restrictive crossing)
  • 5. 5 Full-Cone NAT  When the tenant (end-point) in the fort sends a knight (packet) out, a drawbridge will be lowered with a guard to determine who can come-in using that drawbridge.  For an in-coming knight (packet), the guard checks:  Are you, Sire, visiting the tenant who created this drawbridge?  If yes, go on in.  The guard does not check  where the knight (packet) came from(could be any end-point).  Whether the knight had an invitation
  • 6. 6 The Invitation Letter  The trick to traverse a NAT with UDP is to utilize the 'invitation letter” (packet).  The invitation packet is not necessarily a 'special' invitation packet. The first part of outgoing data transmission works as an invitation because it lowers a drawbridge assigns a guard for incoming knights.
  • 7. 7 Restricted-Cone NAT  A drawbridge will be lowered when a tenant(endpoint) in the fort sends an invitation letter (a packet) for the first time to another fort.  The guard on the drawbridge will check if the in-coming knight (packet) is visiting the tenant who lowered this drawbridge.  The guard also checks if the knight came from the fort that received the invitation letter from the tenant.  The guard does not check the invitation letter, just the fort name to which the invitation was sent.
  • 8. 8 Port-restricted-Cone NAT  A drawbridge will be lowered when a tenant(endpoint) in a fort sends an invitation letter (a packet) for the first time to a tenant in another fort.  The guard will check if each knight (packet) trying to enter (via the drawbridge) is visiting the tenant who lowered the drawbridge.  The guard checks if the knight came from the fort that received the invitation letter from the tenant.  The guard also checks if the knight has received the invitation letter from the tenant. You came from the correct fort, do you have the invitation?
  • 9. 9 Symmetric-Cone NAT  In the case of non-symmetric NATS, the same drawbridge will be used whenever the same tenant in a fort sends an invitation packet to a different destination.  In a symmetric NAT, a new drawbridge will be always lowered every time the tenant in the fort sends an “invitation” packet. Fort Moat Drawbridge Tenant  Each invitation has it own drawbridge  The drawbridge for a knight to enter from one fort is not the same for other knights to enter from other forts
  • 10. 10 Summary NAT-Type Intended for Tenant who lowered the Drawbridge? Invitation to Fort F2 and coming from Fort F2? Has the Invitation Letter? Coming-in on the same drawbridge that the invitation went out on? Full Cone Yes, Go-on in Not Checked Not Checked Not-Checked Restricted Cone Yes and… Yes, go-on in Not Checked Not Checked Port-Restricted Cone Yes and … Yes, and … Yes, go-on in Not Checked Symmetric Cone* Yes Yes, and… Yes, and Yes, go-on in F2
  • 11. 11 Applying the Analogy  In this analogy, a 'tenant' represents local UDP port.  Several tenants comprise a device. Each device has an IP address.  A fort protects multiple devices with a NAT (the moat)  A drawbridge is a mapping and a rule for incoming packets.