• No results found

Detecting and Refactoring Operational Smells within the Domain Name System

N/A
N/A
Protected

Academic year: 2021

Share "Detecting and Refactoring Operational Smells within the Domain Name System"

Copied!
18
0
0

Loading.... (view fulltext now)

Full text

(1)

www.le.ac.uk

Detecting and Refactoring Operational

Smells within the Domain Name System

Marwan Radwan and Reiko Heckel

Graphs as Models (GaM) Workshop,

European Joint Conferences on Theory and Practice of Software (ETAPS-15)

11,12 April 2015

(2)

www.le.ac.uk

Outline

1. The Domain Name System

2. Problem Statement

3. DNS Dependency Graphs and Operational

Model

4. ISDR Method

5. Refactoring and Graph Transformations

6. Challenges and Future Work

(3)

www.le.ac.uk

ICANN ROOT VERISIGN COM IPR ORG Nominet UK Janet AC GOOGLE LE. UNI. www cs www gmail

The Domain Name System (DNS)

le

(4)

www.le.ac.uk

The Problem:

Operational Parameters & Implications on DNS System's Qualities

DNS Operational Interdependencies

System Administrator Actions: Zone Misconfiguration and Name

Servers’ Deployment Choices

Quality Impacts (Availability, Security and Resilience)

Examples:

Servers’ names : Zone redundancy

but

security and resiliency

threats (Zone Influence, Attack Surface and Points of Failure).

# of ANSs and where to locate them: Server Redundancy

but

operational overhead and less resistance against failures.

Peering with external organizations: Diversity

but

transitional

(5)

www.le.ac.uk

DNS Interdependencies

Delegation Graph

(6)

www.le.ac.uk

DNS Operational Model

(7)

www.le.ac.uk

The

ISDR

Method

Model-based approach that subsumes all the steps necessary to identify, specify and detect the DNS operational bad smells.

(8)

www.le.ac.uk

Bad Smells Taxonomy

Operational Bad Smells Single-Type Inter-Type Intra-Type Intra-Zone Type Property Measurable Lexical

Structural Ill Formed RR

Small Parameter Value

Incorrect Parameter Value Bad Smell (19) Large Parameter Value

Unnecessary RR Measurable Lexical Structural Measurable Lexical Structural Measurable Lexical Structural Missing RR Ambiguous Data Absence of Multiple RRs

Invalid Trust Anchor Corrupted Parent Untrusted Organization

Large Attack Surface Excessive Zone Influence

False Redundancy Diminished Redundancy Administrative Complexity

Cyclic Dependency Non-Optimal Query Path Delegation Inconsistency

(9)

www.le.ac.uk

DNS Metrics

Metric Administrative Complexity

Definition Describes the diversity of a zone with respect to the organisations administering its authoritative name servers.

Usage Mutual hosting of zones between organizations is common in the DNS deployment schemes. The advantage of such practice is an increased availability but at the same time increased potential of failure and instability of the DNS zone resolution process.

How to Measure Count the number of authoritative name servers of each organization involved in the dependency graph of zone z.

Metric Notation Oz denotes the set of organizations that administer authoritative name servers hosting the zone z; n denotes total number of authoritative name servers; NSo

z denotes subset of name servers administered by

organization o in Oz.

(10)

www.le.ac.uk

Validation

Case Study-1: Cyclic Dependency

$ORIGIN .net. [Parent of example.net]

example.net. NS ns1.example.com. example.net. NS ns2.example.com.

$ORIGIN .com. [Parent of example.com]

example.com. NS ns1.example.com. example.com. NS ns2.example.com. example.com. NS dns1.example.net. example.com. NS dns2.example.net. ns1.example.com. A 1.1.1.1 ns2.example.com. A 1.1.1.2 dns1.example.net. A 1.1.1.3 dns2.example.net. A 1.1.1.4 Refactoring: AddGlueRecord

• Same Administrative Unit (Example Company)

• Different Zones.

(11)

www.le.ac.uk

$ORIGIN .com. example.com. NS ns1.example.com. example.com. NS ns2.example.com. example.com. NS dns1.example.net. example.com. NS dns2.example.net. ns1.example.com. A 1.1.1.1 ns2.example.com. A 1.1.1.2 dns1.example.net. A 1.1.1.3 dns2.example.net. A 1.1.1.4

Case Study-2: False Redundancy

Example.com

ns1.example.com

1.1.1.1 ns2.example.com 1.1.1.2 dns1.example.net 1.1.1.3 dns2.example.net 1.1.1.4

GeoLocation [CityX]

(12)

www.le.ac.uk

Bad Smell Catalogue Entry

Name False-Redundancy.

Type Inter-zone and Measurable.

Inspection Planes Control Plane.

Description Level of availability of redundant servers function of their number, physical location and networks they connect to. Occurrence All redundant servers at the same physical location,

connected to the same network

Quality Impacts Reduced availability & resilience, and the system become susceptible to single point of failure at certain granularity. Detection

Strategy

Queries on DG for the following metrics: a) # of ANSs, b) # of GeoLocations, c) # of ASs, and d) distinct BGP prefixes. Refactoring Applying MoveServerLocation refactoring rule will improve

(13)

www.le.ac.uk

Addressing Bad Smells

Through GT-Based Refactoring

Refactoring

is the technique of choice for

improving

the

structure

of existing code

without changing

its

external

behaviour

.

Refactoring implementation includes the following steps:

1. Identify the location for refactoring,

2. Refactoring Rules priorities and conflicts,

3. Guarantee the preservation of external behaviour of the system, 4. Application of selected refactoring rules,

5. Assess the effect of refactoring on the systems external qualities and 6. Maintain the consistency between the refactored elements and

(14)

www.le.ac.uk

Refactoring Rule:

MoveServerLocation

z1: zone

server

G2: Geo

z1: zone

s1: server

G1: Geo G2: Geo

z1: zone

s1: server

G1: Geo G2: Geo

(NAC) (LHS) (RHS) s2: server s2: server NS NS NS NS NS

NAC: No Servers have already been located in the G2 GeoLocation

LHS: Two ANSs are located within the same GeoLocation (G1)

RHS: One of the Servers is moved to the new GeoLocation (G2)

(15)

www.le.ac.uk

Execution of Refactoring Rules

Priorities and Alternative Rules

• MoveServerLocation Vs Creating a new server at the new GeoLocation. • Quality Impacts, Trade-offs on NFP and cost.

• More than one rule application, incremental improvement, repeated

or combined with others.

Self-Contained Refactoring Rules

• Executed by directly modifying the zone file records elements within

the model.

Refactoring Across Borders

• Physical and Access Permissions.

• Coordination with other zones’ administrators and peer organizations

(16)

www.le.ac.uk

Future Work and Challenges

Bad Smells Catalogue

– Expand the Taxonomy, – DNS Metrics Suite, and

– Detection Logical Formulas and Techniques.

Refactoring Rules:

– Verification: behaviour preservation and quality improvements. – Applicability: trade-offs, conflicts and ordering.

– Complex sequence of operations to transform the model changes into

physical resources relocation.

– Physical access permissions, or coordination actions such as service

(17)

www.le.ac.uk

Future Work and Challenges

DNS Operational Advisor (DOA) Tool

DG extraction from Zone file(s) and Deployment Choice(s)

DNS Qualities (Availability, Security and Resiliency)

DNS Structural Metrics

New configuration generation and DNS operator

recommendations

(18)

References

Related documents

The results of the thesis can be used to help calibrate certain parameters of the evacuation models like the behavior of different agents at decision points and can also be used

Christ before Pilate at the trial of Jesus revealed one of his last claims. Jesus and his word are ultimate truth. The Pontius Pilate and Jesus exchange set the two positions

National Conference on Technical Vocational Education, Training and Skills Development: A Roadmap for Empowerment (Dec. 2008): Ministry of Human Resource Development, Department

The main optimization of antichain-based algorithms [1] for checking language inclusion of automata over finite alphabets is that product states that are subsets of already

missible levels of monetary aggregation for the Euro area. We find that the Euro area mone­  tary  assets  in  M2  and  M3  are  weakly  separable  and 

Deletion mutants of FgABC1 showed reduced virulence towards wheat in crown and root infection assays but were unaltered in infectivity on barley.. Expression

[r]

• Severe mental health issues such as psychotic depression would exclude. • Is depression a “normal” reaction to the chronic symptoms