network diagnostics using passive network monitoring and packet analysis › conferences2019 ›...

18
Network Diagnostics Using Passive Network Monitoring and Packet Analysis Martin Holkovič, CESNET, Czech Republic Ondřej Ryšavý, Brno University of Technology, Czech Republic

Upload: others

Post on 05-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Network Diagnostics Using Passive Network Monitoring

and Packet Analysis

Martin Holkovič, CESNET, Czech RepublicOndřej Ryšavý, Brno University of Technology, Czech Republic

Page 2: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Motivation

User tries to send an e-mail

Networkadministrator

diagnosticsreport

SMTP serverhttps://www.flowmon.com/en/products/flowmon/traffic-recorder

Page 3: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Why it is not an easy problem

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 3/18

• Each protocol is different

• Each network is different

• Dependencies between services

• Requiring deep knowledge and lot of time

Bahl, P.; Chandra, R.; Greenberg, A.; aj.: Towards highly reliable enterprise network services via inference of multi-level dependencies. In ACM SIGCOMM Computer CommunicationReview, ročník 37, ACM, 2007, s. 13–24

Page 4: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Possible methods

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 4/18

• Wireshark - manual

• How are the data accessed?

• How is the model created?

Active

Passive

Learned

Predefined

Page 5: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Our goals

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 5/18

• Passive analysis from PCAP file

• Predefined rule-based tree model

• Automate administrator’s actions

• Good-readable diagnostic output

• Easily extendible by an administrator

Page 6: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 6/18

Page 7: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Proposed architecture

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 7/18

Page 8: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Protocols Analyzer

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 8/18

• Using Tshark (Wireshark)

• Support over 3000 protocols and over 227000 fields

• Integrated lower layers analysis

• JSON output

Page 9: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Events Finder

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 9/18

• Simulates questions of a real administrator• E.g., SMTP authentication

• Two step process:1. Find specific packets

2. Create tuples from packets fulfilling conditions

Page 10: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Tree Engine

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 10/18

• Binary tree• Two next states

• Each node refers to the Events Finder

• State represents the knowledge

• Integrates Python code

Page 11: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Output creator

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 11/18

• Predefined output records

• Creates links between records

• JSON format

Page 12: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Rules – Events Finder

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 12/18

Page 13: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Rules – Tree Engine

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 13/18

Page 14: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Rules - Output

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 14/18

Page 15: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Supported protocols

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 15/18

Page 16: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 16/x

Page 17: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Future work

• Use another passive data sources• Syslog

• SNMP traps

• Optimize performance• Filtering input data

• Indexing key-data for faster processing

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 17/18

Page 18: Network Diagnostics Using Passive Network Monitoring and Packet Analysis › conferences2019 › filesICNS19 › MartinHolkovic... · 2019-09-13 · Network Diagnostics Using Passive

Conclusion

• Network administrators need to diagnose problems

• Diagnostics is time and knowledge requiring activity

• We use PCAP files as the data source

• We have implemented tree-based analysis

• The diagnostic output is good understandable

Network Diagnostics Using Passive Network Monitoring and Packet Analysis 18/18