CS244A Review Session Routing and DNS

Similar documents
CS 355. Computer Networking. Wei Lu, Ph.D., P.Eng.

Domain Name System (or Service) (DNS) Computer Networks Term B10

K-Root Name Server Operations

Domain Name System Richard T. B. Ma

DNS: Domain Name System

The Application Layer: DNS

Workshop on Scientific Applications for the Internet of Things (IoT) March

CMPE 80N: Introduction to Networking and the Internet

3. The Domain Name Service

Domain Name System (DNS) RFC 1034 RFC

BASIC TCP/IP NETWORKING

How To Map Between Ip Address And Name On A Domain Name System (Dns)

Domain Name System DNS

The role of JANET CSIRT

DNS : Domain Name System

FTP: the file transfer protocol

CS 43: Computer Networks Naming and DNS. Kevin Webb Swarthmore College September 17, 2015

Names vs. Addresses. Flat vs. Hierarchical Space. Domain Name System (DNS) Computer Networks. Lecture 5: Domain Name System

Chapter 2 Application Layer

VM-Series Firewall Deployment Tech Note PAN-OS 5.0

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting

Network(Security(Protocols(

DNS Domain Name System

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting, NTP

Naming and the DNS. Focus. How do we name hosts etc.? Application Presentation Topics. Session Domain Name System (DNS) /URLs

Technical Support Information Belkin internal use only

TCP/IP Network Essentials. Linux System Administration and IP Services

Introduction to NetGUI

Linux TCP/IP Network Management

Domain Name System (DNS) Reading: Section in Chapter 9

Unix System Administration

IP addressing and forwarding Network layer

Network programming, DNS, and NAT. Copyright University of Illinois CS 241 Staff 1

Twin Peaks Software High Availability and Disaster Recovery Solution For Linux Server

DNS: Domain Name System

internet technologies and standards

Lab 2. CS-335a. Fall 2012 Computer Science Department. Manolis Surligas

Hands On Activities: TCP/IP Network Monitoring and Management

DNS. Spring 2016 CS 438 Staff 1

Network Management and Debugging. Jing Zhou

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

Troubleshooting Tools

DNS and P2P File Sharing

Advanced SSH Tunneling by Bill Brassfield, Dev Ops Technical Consultant, Taos

Chapter 4 Network Layer

Forensic Network Analysis Tools

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Internet Protocol: IP packet headers. vendredi 18 octobre 13

HIGH AVAILABILITY (HA) WITH OPENSIPS

IP network tools & troubleshooting. AFCHIX 2010 Nairobi, Kenya October 2010

Domain Name System (DNS)

netkit lab single-host Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

IP Address: the per-network unique identifier used to find you on a network

1.0 Basic Principles of TCP/IP Network Communications

Instructor Notes for Lab 3

Lecture Computer Networks

Wireless LAN Apple Bonjour Deployment Guide

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

How do I get to

Setting Up A High-Availability Load Balancer (With Failover and Session Support) With Perlbal/Heartbeat On Debian Etch

IPv6 Trace Analysis using Wireshark Nalini Elkins, CEO Inside Products, Inc.

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

CS335 Sample Questions for Exam #2

CS2107 Introduction to Information and System Security (Slid. (Slide set 8)

The Domain Name System

TCP/IP Protocol Suite. Marshal Miller Chris Chase

Network layer: Overview. Network layer functions IP Routing and forwarding

bigbluebutton Open Source Web Conferencing

Internet Working 5 th lecture. Chair of Communication Systems Department of Applied Sciences University of Freiburg 2004

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

LESSON Networking Fundamentals. Understand TCP/IP

Network Layer, Part 1 Internet Architecture. History

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Slide 1 Introduction cnds@napier 1 Lecture 6 (Network Layer)

Canopy Wireless Broadband Platform

Transport and Network Layer

IP - The Internet Protocol

This howto is also a bit old now. But I thought of uploading it in the howtos section, as it still works.

Ethereal Lab: DNS PART 1. 1.Run nslookup to obtain the IP address of a Web server in Asia. I performed nslookup for

Tcpdump Lab: Wired Network Traffic Sniffing

Networking Technology Online Course Outline

IP Address Classes (Some are Obsolete) Computer Networking. Important Concepts. Subnetting Lecture 8 IP Addressing & Packets

Network Security TCP/IP Refresher

HOST AUTO CONFIGURATION (BOOTP, DHCP)

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

Communications and Networking

Project 4: IP over DNS Due: 11:59 PM, Dec 14, 2015

TCP/IP Networking An Example

Introduction to Network Security Lab 1 - Wireshark

Transcription:

CS244A Review Session Routing and DNS January 18, 2008 Peter Pawlowski Slides derived from: Justin Pettit (2007) Matt Falkenhagen (2006) Yashar Ganjali (2005) Guido Appenzeller (2002) Announcements PA #1 was due at noon Problem submitting? Send to TA. PS #1 due Tuesday at noon PA #2 live tonight at 11:59PM 1

What s Covered Today The three most important things learned so far: The Layer Model IP and Routing Basics The Domain Name System (DNS) Some useful Network Tools Netstat and ifconfig Traceroute Tcpdump/Wireshark Host The Layer Model Application Presentation Session Transport Network Link Physical FTP ASCII/Binary TCP IP Ethernet Application Transport Network Link The 7-layer OSI Model The 4-layer Model What abstraction(s) does each layer expose? 2

Useful tools #1a: netstat Tells you about current network status Current TCP sessions on the system netstat -t Current TCP listeners on the system netstat -ltn Current routing table netstat r netstat -rn (to display IP addresses instead of domain names) Current interfaces netstat i Useful tools #1b: ifconfig Tells you about current network interfaces Displays all interfaces, including their MTU, netmask, and IP addresses. ifconfig a Must have root privileges to modify the network interfaces but anyone may view the current state [user@myth8 ~] ifconfig eth0 eth0 Link encap:ethernet HWaddr 00:0F:1F:84:75:2E inet addr:171.64.15.186 Bcast:171.64.255.255 Mask:255.255.0.0 inet6 addr: fe80::20f:1fff:fe84:752e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2393901 errors:0 dropped:0 overruns:0 frame:0 TX packets:1958553 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1108847978 (1.0 GiB) TX bytes:1208671699 (1.1 GiB) Base address:0xdcc0 Memory:dfee0000-dff00000 3

Layer Trivia Which layers are the following protocols: IP TCP HTTP FTP Wi-Fi/802.11 Bluetooth DHCP Network Layer Transport Layer Application Layer, on top of TCP Application Layer, on top of TCP Link Layer Link Layer plus some Application Between Link and Network Protocol Quiz Q: How does a computer decide whether an incoming IP packet is UDP or TCP? A: Look at the protocol field. Q: How does a computer decide whether an incoming IP packet is HTTP or FTP? A: Look at the port number. But it doesn t care, it just sends it to the application bound to that port. Q: You just fragged your friend with the AK-47 on Counter-Strike. What protocols did you use? A: Application layer protocol over UDP. 4

Useful tools #2a: tcpdump Tool to capture and display network traffic on the local area network Runs on Unix and Windows On Unix only the root user may listen on the interface [root@colorado user]# tcpdump -n -i eth0 -x -X -vvv -c 1 -s 200 tcpdump: listening on eth0 11:17:47.738282 171.64.74.34.22 > 64.175.39.85.1221: P [tcp sum ok] 2168458766:2168458810(44) a ck 1258905391 win 5840 (DF) [tos 0x10] (ttl 64, id 50841, len 84) 0x0000 4510 0054 c699 4000 4006 1694 ab40 4a22 E..T..@.@...@J" 0x0010 40af 2755 0016 04c5 8140 0e0e 4b09 5f2f @.'U...@..K._/ Useful tools #2b: wireshark GUI tool similar to tcpdump. Lets you view packets and translates a lot of the fields for you Formally called ethereal Runs on Unix or Windows On Unix only the root user may listen on the interface Both wireshark and tcpdump are available for the Myth systems in /usr/class/cs244a/bin No man page but has lots of documentation, including a user manual at http://www.wireshark.org 5

View of wireshark Packets Translation Packet content in hex format IP Fragmentation Quiz Q: What happens if a packet arrives that is too long for the link layer? A: It is split into several pieces. Q: Where in the network are packets fragmented? A: Can happen at any router or host! Q: Where are they re-assembled? A: Only at the destination! Q: What percentage of packets in the internet are fragmented? A: Almost none 6

Useful tools #3: traceroute Traces how a packet gets from the local machine to the destination Sets TTL to n = 1...32 Collects timeout ICMP messages from hosts along the way Good for finding out what is happening if the network is down Also good for finding what the MTU on a path is or if packets get fragmented traceroute -F <host> <fragment size> Domain Name Service (DNS) Maps domain names (e.g. cs.stanford.edu) to IP addresses (e.g. 171.64.64.64) Top level name servers handle top level domains (e.g..edu,.de etc.) Each domain has a DNS server that is responsible for the domain (e.g. DENIC for the.de domain) Each subdomains (e.g. google.de) has a DNS server that is responsible for the subdomain 7

Domain Name Service (DNS) To find a mapping I work my way downwards Root Server(s) DENIC Karlsruhe Germany de fr com Yahoo s DNS Server yahoo.de google.de mail.yahoo.de In reality all this is done for me by my local DNS server Useful tools #4: host Tells you anything (almost) about DNS records Map a DNS name to an IP address host www.google.com Map an IP address to a DNS name host 171.64.64.64 Which DNS servers are responsible for a domain host t NS stanford.edu Which hosts accept mail for a domain host t MX stanford.edu 8

Root Name Servers (The Old Way) There are 13 root name servers [Herndon, VA, USA] A.ROOT-SERVERS.NET (Verisign) [Marina del Rey, CA, USA] B.ROOT-SERVERS.NET (ISI) [Herndon, VA, USA] C.ROOT-SERVERS.NET (Cogent) [College Park, MD, USA] D.ROOT-SERVERS.NET (UM) [Mt View, CA, USA] E.ROOT-SERVERS.NET (NASA) [Palo Alto, CA, USA] F.ROOT-SERVERS.NET (ISC) [Columbus, OH, USA] G.ROOT-SERVERS.NET (DoD) [Aberdeen, MD, USA] H.ROOT-SERVERS.NET (US Army) [Stockholm, Sweden] I.ROOT-SERVERS.NET (Autonomica) [Dulles, VA, USA] J.ROOT-SERVERS.NET (Verisign) [London, UK] K.ROOT-SERVERS.NET (Reseaux) [Los Angeles, CA, USA] L.ROOT-SERVERS.NET (ICANN) [Tokyo, Japan] M.ROOT-SERVERS.NET (WIDE) Root Name Servers (The Old Way) Source: ICANN 9

Root Name Servers (Today) Source: ICANN 10