introduction to networking - cnsatuva.github.io · introduction to networking roman bohuk...

22
Introduction to Networking Roman Bohuk University of Virginia

Upload: others

Post on 25-Jul-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Introduction to Networking

Roman Bohuk

University of Virginia

Page 2: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Networks?

• Two or more computers talking to each other

• Wide Area Network (WAN):

• Large geographical area

• Multiple networks attached together

• Internet is the biggest WAN

• Local Area Network:

• Smaller (home, office)

• Doesn’t have to be attached to internet

Page 3: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Hardware

• Transmission: ethernet, radio (wifi),

optical cables

• Computers – anything w/ cpu

• Routers – connect networks together

• Switch – connects computers on the

network

• Modem – analog-to-digital and vice

versa

Page 4: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Addressing

• IP (Internet Protocol) address identifies the computer on

the network

• IPv4 - current standard, ARIN already ran out

• MAC – an address burned into the NIC

• NAT helps to connect networks

• a computer has a public & private IP

Page 5: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same
Page 6: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same
Page 7: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Packets & Protocols

Page 8: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Packets

• Units of data

• Generally small

• Helps to standardize

communication

• Contain sender and

receiver address

Page 9: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Protocols

• Rules that govern interaction between machines

• Describe the handshake and transmission processes

• A port is a specific communication channel

• Ranges from 0 to 2^(16)-1

• UDP and TCP do not conflict

Page 10: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Protocols

• TCP

• Reliable

• SYN -> SYN/ACK -> ACK handshake

• Re-sends corrupted or missing data

• UDP

• Doesn’t resend

• Faster

Page 11: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same
Page 12: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Other Protocols

• ARP

• HTTP

• HTTPS

• FTP

• SSH

• SMTP

• POP3

• IMAP

• ICMP

• DNS

• DHCP

Page 13: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Networking Models

Page 14: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

IP Packets

Page 15: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

TCP Packets

Page 16: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

UDP Packets

Page 17: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same
Page 18: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Installation

• https://www.wireshark.org/

• If on Windows, need to install WinPcap

• Part of the same installer

• Issues? Google.

• Download some practice files:

https://tinyurl.com/yczp2gld

Page 19: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Demo

Page 20: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Other tools & commands

• nmap

• ifconfig / ipconfig

• whois

• nslookup

• netminer

• tcpdump

Page 21: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same

Networking attacks

• ARP Spoofing – fake ARP packets (computers associate

wrong MAC to a valid IP address)

• DNS cache poisoning

• Man in the middle (MITM)

• DoS and DDoS

Page 22: Introduction to Networking - cnsatuva.github.io · Introduction to Networking Roman Bohuk University of Virginia. ... • If on Windows, need to install WinPcap • Part of the same