Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work...

12
Dealing with fragmentation in EDNS0 Proposal for a recommendation Roland van Rijswijk - Deij [email protected] Sean McAfee (AP)

Transcript of Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work...

Page 1: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

Dealing with fragmentation in EDNS0Proposal for a recommendation

Roland van Rijswijk - Deij

[email protected]

Sean McAfee (AP)

Page 2: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

SURFnet: we make innovation work

Problem recap

2

Recursive CachingName Server

(resolver)

AuthoritativeName Server

Firewall

Page 3: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

SURFnet: we make innovation work

Extent of the problem

•9% of all internet hosts may have problems receiving fragmented UDP messages [1];

•2% – 10% of all resolving name servers experience problems receiving fragmented DNS responses [2]

[1] Weaver, N., Kreibich, C., Nechaev, B., and Paxson, V.: Implications of Netalyzr’s DNS Measurements. In: Proceedings of the First Workshop on Securing and Trusting Internet Names (SATIN), Teddington, United Kingdom, (2011).

[2] Van den Broek, J., Van Rijswijk, R., Pras, A., Sperotto, A., “DNSSEC and firewalls - Deployment problems and solutions”, Private Communication, Pending Publication, (2012).

3

Page 4: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

SURFnet: we make innovation work

Solutions

•Resolving name servers should advertise a proper max. response size to avoid fragmentation issues [RFC 2671BIS (DRAFT)];

Not explicitly stated in standards yet, nor widely implemented;

•Until then: set maximum response size at some authoritative name servers

4

Page 5: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

SURFnet: we make innovation work

Resolver experiments (1)Normal operations

5

109$

785$

687$

281$

83$ 105$150$

388$ 381$

0$

100$

200$

300$

400$

500$

600$

700$

800$

900$

Windows(Server(2012( Unbound( BIND(

Time((m

s.)(

Response(>me((ms.)(

Page 6: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

SURFnet: we make innovation work

Resolver experiments (2)Blocking fragments

6

1.175%

4.463%

465%

2.524%

760%

3.435%

0%

1.000%

2.000%

3.000%

4.000%

5.000%

6.000%

Windows(Server(2012( Unbound( BIND(

Time((m

s.)(

Response(>me((ms.)([0/5(altered(Authorita>ve(Name(Servers](

[24,195;12,167]x̅=17,787

Time x2

Time x10 (!)

Time x100+ (!!!)

Page 7: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

SURFnet: we make innovation work

Resolver experiments (3)Max. resp. size on 1 authNS

7

1.169%

2.126%

109% 117% 173%

4.889%

638%1.118%

0%

1.000%

2.000%

3.000%

4.000%

5.000%

6.000%

Windows(Server(2012( Unbound( BIND(

Time((m

s.)(

Response(>me((ms.)([1/5(altered(Authorita>ve(Name(Servers](

Max.  =  16,162

Page 8: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

SURFnet: we make innovation work

Resolver experiments (4)Max. resp. size on 2 authNS

8

3.295&

1.036&

1.408&

290&99& 126&

1.756&

513&651&

0&

500&

1.000&

1.500&

2.000&

2.500&

3.000&

3.500&

Windows(Server(2012( Unbound( BIND(

Time((m

s.)(

Response(>me((ms.)([2/5(altered(Authorita>ve(Name(Servers](

Time x1.5

Time x2Time x10

Page 9: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

SURFnet: we make innovation work

Experiment on live authNS

9

Traffic (IPv4 + IPv6) Normal Operations

Max. response size 1232 bytes

Fragmented responses 28.9% 0.0%*Fragment receiving resolvers 57.3% 0.0%*

Truncated UDP responses 0.8% 0.9%

ICMP FRTE messages 5649/h < 1/h*ICMP FRTE sending resolvers 1.3% 0.0%*

Total retries 25.8% 25.5%

*Statistically significant difference between experiments

Page 10: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

SURFnet: we make innovation work

Rise in truncated answers

•Experiment:– Querying 995 zones in .com, .edu, .mil, .net and .nl– All zones are signed and have a www-node– Results:

– 30% truncations were expected for a maximum response size of 1232 bytes byRikitake, K., Nogawa, H., Tanaka, T., Nakao, K. and Shimojo, S. “An Analysis of DNSSEC Transport Overhead Increase”, IPSJ SIG Technical Reports 2005-CSEC-28, Vol. 2005, No. 33, pp. 345-350, ISSN 0919-6072, 2005

10

Max. response A for www AAAA for www DNSKEY4096 0.0% 0.0% 0.0%

1472 1.8% 1.8% 8.1%

1232 2.9% 3.5% 40.0%

Page 11: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

SURFnet: we make innovation work

Proposed recommendation

1. At least 50% of all authoritative name servers for a zone SHOULD be set to limit the overall response size to 1472 bytes, but MAY be set as low as 1232 bytes;

2. At least 50% of all in-zone authoritative name servers for a zone SHOULD be set to limit the overall response size to 1472 bytes, but MAY be set as low as 1232 bytes;

3. Authoritative name servers to which the above recommendations are applied MUST accept DNS queries over TCP.

11

Page 12: Dealing with fragmentation in EDNS0 ... - 28 September 2012...SURFnet: we make innovation work Proposed recommendation 1. At least 50% of all authoritative name servers for a zone

nl.linkedin.com/in/rolandvanrijswijk

@reseauxsansfil

[email protected]

Questions? Remarks?