master thesis supporting ipv6 host-based multihoming ... · master thesis supporting ipv6...

31
Theoretic overview Shim6 and Firewalls: Problem statement Implementation Performance evaluation Configuring a shim6-firewall Conclusion Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph Paasch Master Thesis - Shim6-firewall

Upload: others

Post on 08-Jul-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Master Thesis

Supporting IPv6 host-based multihoming (shim6)in Linux Firewalls

Christoph Paasch

December 20, 2010

Christoph Paasch Master Thesis - Shim6-firewall

Page 2: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

1 Theoretic overview

2 Shim6 and Firewalls: Problem statement

3 Implementation

4 Performance evaluation

5 Configuring a shim6-firewall

6 Conclusion

Christoph Paasch Master Thesis - Shim6-firewall

Page 3: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

1 Theoretic overviewMultihomingShim6Statefull firewall

2 Shim6 and Firewalls: Problem statementDesign of the shim6 firewall

3 ImplementationShim6-firewall architecture

4 Performance evaluation

5 Configuring a shim6-firewall

6 Conclusion

Christoph Paasch Master Thesis - Shim6-firewall

Page 4: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Multihoming

Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 5: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Multihoming

Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 6: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Multihoming

Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 7: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Shim6

Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 8: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Shim6

Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 9: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Shim6

Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 10: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Shim6

Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 11: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Shim6

Separate Locators from Identifiers.

Identifier Identifies a connection and is passed to the upper layerprotocols.

Locators Used inside the packet.

Christoph Paasch Master Thesis - Shim6-firewall

Page 12: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Shim6

Shim6 control messagesEstablish the shim6 sessionAssure connectivitySwitch locators

Shim6 payload messagesTransport payload-data, tagged with the context tag

Christoph Paasch Master Thesis - Shim6-firewall

Page 13: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Statefull firewall

Supporting IPv6 host-based multihoming(shim6) in Linux Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 14: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Statefull firewall

Supporting IPv6 host-based multihoming(shim6) in Linux Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 15: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Statefull firewall

Supporting IPv6 host-based multihoming(shim6) in Linux Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 16: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

MultihomingShim6Statefull firewall

Statefull firewall

Supporting IPv6 host-based multihoming(shim6) in Linux Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 17: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Design of the shim6 firewall

1 Theoretic overviewMultihomingShim6Statefull firewall

2 Shim6 and Firewalls: Problem statementDesign of the shim6 firewall

3 ImplementationShim6-firewall architecture

4 Performance evaluation

5 Configuring a shim6-firewall

6 Conclusion

Christoph Paasch Master Thesis - Shim6-firewall

Page 18: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Design of the shim6 firewall

Shim6 vs. Stateful Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 19: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Design of the shim6 firewall

Shim6 vs. Stateful Firewalls

Christoph Paasch Master Thesis - Shim6-firewall

Page 20: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Design of the shim6 firewall

Solution

Associate the new flow to the original state

Track shim6 context establishment

Map Context Tag to the pair of identifiers

ProblemsShim6 does not allow support of each feature in stateful firewalls.Shim6 needs to be changed.

Christoph Paasch Master Thesis - Shim6-firewall

Page 21: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Shim6-firewall architecture

1 Theoretic overviewMultihomingShim6Statefull firewall

2 Shim6 and Firewalls: Problem statementDesign of the shim6 firewall

3 ImplementationShim6-firewall architecture

4 Performance evaluation

5 Configuring a shim6-firewall

6 Conclusion

Christoph Paasch Master Thesis - Shim6-firewall

Page 22: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Shim6-firewall architecture

Shim6-Firewall architecture

Christoph Paasch Master Thesis - Shim6-firewall

Page 23: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Shim6-firewall architecture

Shim6-Firewall architecture

Christoph Paasch Master Thesis - Shim6-firewall

Page 24: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

1 Theoretic overviewMultihomingShim6Statefull firewall

2 Shim6 and Firewalls: Problem statementDesign of the shim6 firewall

3 ImplementationShim6-firewall architecture

4 Performance evaluation

5 Configuring a shim6-firewall

6 Conclusion

Christoph Paasch Master Thesis - Shim6-firewall

Page 25: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Test Setup

Creation of a huge number of firewall-states

Delay measured that the firewall introduces

Christoph Paasch Master Thesis - Shim6-firewall

Page 26: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Session Initiation messages

10

20

30

40

50

60

70

80

90

100

0 50000 100000 150000 200000 250000 300000

Del

ay in

mic

ro-s

econ

ds

Number of states created

Delay introduced by the firewall for shim6/TCP state initiation messages

TCP-syn on shim6-firewallI1-message on shim6-firewall

TCP-syn on clean Kernel

Christoph Paasch Master Thesis - Shim6-firewall

Page 27: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

1 Theoretic overviewMultihomingShim6Statefull firewall

2 Shim6 and Firewalls: Problem statementDesign of the shim6 firewall

3 ImplementationShim6-firewall architecture

4 Performance evaluation

5 Configuring a shim6-firewall

6 Conclusion

Christoph Paasch Master Thesis - Shim6-firewall

Page 28: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Express consistent rules

Filter on identifiers rather than on locators.

Avoid locator-specific rules.

Avoid per-locators rate-limiting rules.

Christoph Paasch Master Thesis - Shim6-firewall

Page 29: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

1 Theoretic overviewMultihomingShim6Statefull firewall

2 Shim6 and Firewalls: Problem statementDesign of the shim6 firewall

3 ImplementationShim6-firewall architecture

4 Performance evaluation

5 Configuring a shim6-firewall

6 Conclusion

Christoph Paasch Master Thesis - Shim6-firewall

Page 30: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Conclusion

Most parts of shim6 are supported in the Linux firewall.

Performs very well even with a huge number of states.

Configuring the firewall needs to be done carfully.

Future WorkMinor modifications to the shim6 protocol.

Adapt firewall to these changes.

Tweak the firewall to achieve best performance.

Christoph Paasch Master Thesis - Shim6-firewall

Page 31: Master Thesis Supporting IPv6 host-based multihoming ... · Master Thesis Supporting IPv6 host-based multihoming (shim6) in Linux Firewalls Christoph Paasch December 20, 2010 Christoph

Theoretic overviewShim6 and Firewalls: Problem statement

ImplementationPerformance evaluation

Configuring a shim6-firewallConclusion

Questions?

Christoph Paasch Master Thesis - Shim6-firewall