Mohit Lad CEO, ThousandEyes [email protected]/wp-content/uploads/2014/10/CHI-NOG-04...»...

29
1 Mohit Lad CEO, ThousandEyes [email protected] Combining Active and Passive Monitoring CHI-NOG 04

Transcript of Mohit Lad CEO, ThousandEyes [email protected]/wp-content/uploads/2014/10/CHI-NOG-04...»...

Page 1: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

1

Mohit Lad CEO, ThousandEyes [email protected]

Combining Active and Passive Monitoring

CHI-NOG 04

Page 2: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

2

Basics

»  Passive Monitoring

»  Capture traffic from the network by generating a copy of the traffic usually via a span port, mirror port or network tap

»  Typical Use: Discover what is going on

»  Active Probing

»  Generating a synthetic probe that will discover information and report back

»  Examples: ping, traceroute

»  Typical Use: Find the root cause

Page 3: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

3

Example: Google does not load

Google Servers

GET

Response

Page 4: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

4

Example: Google does not load: Step 1 DNS resolution

Local DNS resolver

Authoritative DNS for Google.com

Name Server for .com

Page 5: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

5

Probing for DNS issues

Local DNS resolver

Authoritative DNS for Google.com

Name Server for .com

»  Tcpdump on client -> tells us if we get a DNS reply or not »  What if we don’t get a reply?

»  Check for resolver, returns replies to other domains »  Troubleshoot DNS from resolver to Google

»  If we get a reply, is DNS working?

Page 6: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

6

Buenos Aires cannot resolve DNS

Page 7: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

7

Domain in question is anycasted

Page 8: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

8

How do we know it’s anycast?

10 ms from Paris

55 ms from Sao Paulo

Page 9: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

9

Identifying the problematic Anycast instance

Page 10: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

10

So is everything ok if we get a DNS reply? Lets look at Facebook NS

Facebook NS gets “no mapping” in China

Page 11: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

11

Facebook.com A record is 100% available in China

Page 12: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

12

Most of the world maps facebook.com to 173.252.120.6

Page 13: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

13

Who owns 173.252.120.6

Page 14: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

14

72% of China sees a different IP 37.61.54.158

Page 15: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

15

Who owns 37.61.54.158?

Azerbaijan

Page 16: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

16

Traceroute

»  Protocol used can make a big difference, TCP, UDP or ICMP

»  Load balancing can distort discovered routes

»  Hard to distinguish between muted interfaces and real loss

»  Multiple routes exist, need several probes

»  MPLS can distort delays

Page 17: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

17

Country Financial Outage

Page 18: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

18

Looking at the network

Page 19: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

19

Looking at the network

Page 20: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

20

Diving deeper into BGP

Page 21: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

21

After things are stable

Page 22: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

22

Lets look at a DDoS attack

Page 23: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

23

Network View shows congested Nodes in Upstream ISPs

Nodes with >25% packet loss

Packet loss in upstream ISPs

Verizon and AT&T

HSBC bank website under

attack

High packet loss from all testing

points

Page 24: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

24

DDoS Attack: Mitigation Handoff Using BGP

New Autonomous System (VeriSign)

Prior Autonomous System (HSBC)

Withdrawn routes

New routes

HSBC prefix

Page 25: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

25

Paypal Issues

Page 26: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

26

Lets look at the network

Page 27: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

27

Akamai advertising address block

Page 28: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

28

Indosat advertising the same prefix block

Page 29: Mohit Lad CEO, ThousandEyes mohit@thousandeyeschinog.org/wp-content/uploads/2014/10/CHI-NOG-04...» Protocol used can make a big difference, TCP, UDP or ICMP » Load balancing can

29

Thanks !

[email protected]