Network Security Fundamentals. Network Security Fundamentals. Roadmap. Security Training Course. Module 2 Network Fundamentals

Similar documents
Hands-On Network Security: Practical Tools & Methods

THE OSI MODEL. Application Presentation Session Transport Network Data-Link Physical. OSI Model. Chapter 1 Review.

Cisco Cisco Certified Network Associate (CCNA)

Question 7: What are Asynchronous links?

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

- Hubs vs. Switches vs. Routers -

Imi :... Data:... Nazwisko:... Stron:...

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Fundamentals of Networking. OSI & TCP/IP Model. Kuldeep Sonar 1

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

IP Protocols. ALTTC/Oct

IT114 NETWORK+ Learning Unit 1 Objectives: 1, 2 Time In-Class Time Out-Of-Class Hours 2-3. Lectures: Course Introduction and Overview

The Interconnection Structure of. The Internet. EECC694 - Shaaban

TCP/IP Networking. Training Details. About Training. About Training. What You'll Learn. Training Time : 9 Hours. Capacity : 12

Computer Networks Prof. S. Ghosh Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture 28 IP Version 4

Network Protocols - Revision

Review of Important Networking Concepts

CCNA. Course Catalog

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

exam. Number: Passing Score: 800 Time Limit: 120 min CISCO Interconnecting Cisco Networking Devices Part 1 (ICND)

Networking Fundamentals

Data Link Layer. Our goals: understand principles behind data link layer services: instantiation and implementation of various link layer technologies

Special expressions, phrases, abbreviations and terms of Computer Networks

EEC-684/584 Computer Networks

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Da t e: August 2 0 th a t 9: :00 SOLUTIONS

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

IT220 Network Standards & Protocols. Unit 8: Chapter 8 The Internet Protocol (IP)

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

Chapter 5 Reading Organizer After completion of this chapter, you should be able to:

Vorlesung Kommunikationsnetze

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

CS 43: Computer Networks Switches and LANs. Kevin Webb Swarthmore College December 5, 2017

Fundamental Questions to Answer About Computer Networking, Jan 2009 Prof. Ying-Dar Lin,

Chapter 12 Network Protocols

Networking for Data Acquisition Systems. Fabrice Le Goff - 14/02/ ISOTDAQ

This tutorial will help you in understanding IPv4 and its associated terminologies along with appropriate references and examples.

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

Chapter 5 Network Layer

Chapter 09 Network Protocols

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

Internetwork Basic. Possible causes of LAN traffic congestion are

Network layer: Overview. Network Layer Functions

Lecture 3 Protocol Stacks and Layering

CSC 401 Data and Computer Communications Networks

Hubs. twisted pair. hub. 5: DataLink Layer 5-1

FINAL EXAM REVIEW PLEASE NOTE THE MATERIAL FROM LECTURE #16 at the end. Exam 1 Review Material

Introduction to Computer Networks. CS 166: Introduction to Computer Systems Security

OSI Data Link & Network Layer

7010INT Data Communications Lecture 7 The Network Layer

IP - The Internet Protocol

Raj Jain. The Ohio State University Columbus, OH

ITEC 3210 M - Applied Data Communications and Networks. Professor: Younes Benslimane, Ph.D.

Applied Networks & Security

TSIN02 - Internetworking

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY

Agenda L2 versus L3 Switching IP Protocol, IP Addressing IP Forwarding ARP and ICMP IP Routing First Hop Redundancy

Internetworking Concepts Overview. 2000, Cisco Systems, Inc. 2-1

CHAPTER-2 IP CONCEPTS

OSI Data Link & Network Layer

CSC458 Lecture 6. Administrivia. Inter-domain Routing IP Addressing. Midterm will Cover Following Topics (2) Midterm will Cover Following Topics

Objectives. Hexadecimal Numbering and Addressing. Ethernet / IEEE LAN Technology. Ethernet

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Need For Protocol Architecture

Need For Protocol Architecture

Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

Summary of MAC protocols

KillTest ᦝ䬺 䬽䭶䭱䮱䮍䭪䎃䎃䎃ᦝ䬺 䬽䭼䯃䮚䮀 㗴 㓸 NZZV ]]] QORRZKYZ PV ٶ瀂䐘މ悹伥濴瀦濮瀃瀆ݕ 濴瀦

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

OSI Reference Model. Computer Networks lab ECOM Prepared By : Eng. Motaz Murtaja Eng. Ola Abd Elatief

This talk will cover the basics of IP addressing and subnetting. Topics covered will include:

OSI Data Link & Network Layer

Internet Protocol (IP)

Computer Networks Security: intro. CS Computer Systems Security

ECE 435 Network Engineering Lecture 12

Switching & ARP Week 3

ROYAL INSTITUTE OF INFORMATION & MANAGEMENT

Assignment - 1 Chap. 1 Wired LAN s

CS 455/555 Intro to Networks and Communications. Link Layer Addressing, Ethernet, and a Day in the Life of a Web Request

TCP/IP Protocol Suite

Configuring your VLAN. Presented by Gregory Laffoon

TCP /IP Fundamentals Mr. Cantu

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

The Internet Protocol (IP)

cs144 Midterm Review Fall 2010

Chapter 6: Network Communications and Protocols

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

Where we are in the Course

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Internet Protocol Addressing and Routing. Redes TCP/IP

End-to-End Communication

Transcription:

Network Security Fundamentals Security Training Course Dr. Charles J. Antonelli The University of Michigan 2013 Network Security Fundamentals Module 2 Network Fundamentals Roadmap Network Fundamentals The OSI 7-layer model OSI Layers 1-4 in detail: Ethernet and IP IP subnetting and routing Virtualizing the network 3 1

Focus on IPv4 and Ethernet IP is the dominant network protocol IPv6 not yet widely deployed Ethernet is ubiquitous Some notes The basic principles apply to other protocols and other media As always, the devil is in the details 4 You are here Network Fundamentals The OSI 7-layer model OSI Layers 1-4 in detail: Ethernet and IP IP subnetting and routing Virtualizing the network 5 The OSI model 7 - Application (HTML) 6 - Presentation (ASCII, JPEG) 5 - Session (ZIP, SCP) 4 - Transport (TCP, UDP) 3 - Network (IP, IPX, Appletalk) 2 - Data Link (Ethernet II, IEEE 802.2) 1 - Physical (100BaseT, 1000BaseSX) 6 2

The OSI model in pictures Users interact with layer 7 Each layer interacts with adjacent layers Layers communicate with peer layers 7 Data encapsulation Headers and trailers are added or stripped as data moves down and up the stack Each layer s information is encapsulated by the next lower layer 8 An example Bold text on a web page => encapsulated by HTML (<B> Bold text </B>) => encoded as 8-bit ASCII => encapsulated in TCP source port 80 (HTTP), destination port 12345 => encapsulated in IP packet from IP address 1.2.3.4 to 55.66.77.88 => encapsulated in an Ethernet II frame from MAC address 1111.2222.3333 to 0123.4567.89ab => encoded as 4B/5B NRZI-3 100BaseTx => carried over Cat5e cable to your desktop 9 3

Two missing layers Layer 8: Users Vulnerable to social engineering Vulnerable to the Oops of death Vulnerable to ignorance, curiosity, evil Layer 0: The environment Equipment has to sit somewhere Power has to come from somewhere Cables have to follow some path Everyone talks about the weather, but 10 You are here Network Fundamentals The OSI 7-layer model OSI Layers 1-4 in detail: Ethernet and IP IP subnetting and routing Virtualizing the network 11 Let s get physical 7 - Application 6 - Presentation 5 - Session 4 - Transport 3 - Network 2 - Data Link 1 - Physical 12 4

Layer 1 covers: Voltage / power levels Cable impedance, loss, dispersion RF frequency, power, modulation Bit encoding scheme Connectors and termination Clocking / timing / synchronization Collision detection / avoidance Speed / duplex negotiation 13 Layer 1 basics Common media are: Copper (coax, twisted pair) Fiber (single-mode, multimode, WDM) RF (point-to-point or broadcast) Common electronics are: Hubs (everyone hears everyone else) Switches (traffic is directed to the target) Media converters (wireless bridges, etc.) 14 Let s talk 7 - Application 6 - Presentation 5 - Session 4 - Transport 3 - Network 2 - Data Link 1 - Physical 15 5

Layer 2 - data link The Data Link layer provides reliable transit of data across the physical layer Physical addressing Error detection and notification Flow control Frame sequencing 16 Layer-2 framing Ethernet header has three or more fields: Destination (MAC) address (6 bytes) Source (MAC) address (6 bytes) Type (Ethernet II; 2 bytes) or Length (IEEE 802.3; 2 bytes) Other data (depending on frame type) Ethernet trailer is a 4-byte CRC Frame size between 64 bytes and 1518 bytes Frame Data link layer header Upper layer data Data link layer trailer 17 MAC addresses Unique to each network interface Sometimes this rule is violated Ethernet: 6 bytes => 2.8 x 10 14 addresses 3-byte Vendor code, 3-byte Device code Some protocols (e.g. DECnet) require user-programmable MAC addresses Destination address of all 1s is a layer-2 broadcast (i.e. all devices ) frame 18 6

Definition: LAN A LAN is a layer-2 network Every device can directly reach every other device on the LAN LANs are generally responsive A LAN is a single broadcast domain A broadcast frame from any device will reach every other device on the LAN LANs generally don t scale up well 19 Hubs / Repeaters Classic Ethernet is multiple access Every box sees every frame Each interface examines every frame header Frame is discarded if destination MAC isn t either itself or a broadcast CSMA/CD - half duplex, collision detection On collision, back off and try again later A hub is a multi-port repeater In one port, out on all the others 20 Switches Switches snoop for MAC addresses to learn which devices are on which ports If destination MAC is known, frame is directed out appropriate port If destination MAC is unknown, frame is flooded out all ports (except ingress) Switches may (must?) buffer Buffer overflow => dropped traffic Switches do not modify transiting frames 21 7

Starting to get abstract 7 - Application 6 - Presentation 5 - Session 4 - Transport 3 - Network 2 - Data Link 1 - Physical 22 OSI and the IP protocol suite The IP protocol suite maps onto the OSI model layers 2-7 IP is the layer 3 part of the IP suite TCP/IP is a common (and incorrect!) synonym for IP 23 Layer 3 - Network Layer 3 adds logical addresses One-to-one or many-to-one mapping of layer 3 to layer 2 addresses Other layer 3 functions include: Fragmentation / reassembly Sequencing Priority / precedence / type-of-service Time to live 24 8

Layer 3: IP packet header IP Header includes: Header length Source & destination addresses Priority Fragmentation info Header checksum Protocol field indicates what s inside the packet 25 Routers Routers exchange layer-3 information to learn which networks are reachable on which ports If destination net is known, packet is directed out appropriate port If destination net is unknown, packet is forwarded to default gateway Routers must buffer packets Buffer overflow => dropped traffic Routers must modify transiting frames Decrement packet TTL, update header checksum Rewrite source / destination MAC, frame checksum 26 Layer 4: Transport IP protocols include: ICMP UDP & TCP IGMP & PIM ESP & L2TP UDP for one-way TCP for two-way ICMP for signalling 27 9

ARP - Address Resolution Protocol How do you send an IP packet to a machine whose MAC address you don t know? ARP request: Layer 2 broadcast ARP reply: Layer 2 unicast 28 Putting it all together Layer 1: Ethernet preamble Layer 2: MAC source/destination, frame CRC Layer 3: IP source/destination, header CRC Layer 4: Protocol/port numbers, packet CRC (maybe) 29 You are here Network Fundamentals The OSI 7-layer model OSI Layers 1-4 in detail: Ethernet and IP IP subnetting and routing Virtualizing the network 30 10

IP nets and subnetting Classful networks come in three sizes Class A (16,777,216 addresses) - 0.x.x.x - 127.x.x.x e.g. Apple 17.0.0.0-17.255.255.255 Class B (65,536 addresses) - 128.x.x.x - 191.x.x.x) e.g. Oakland U. 141.210.0.0-141.210.255.255 Class C (256 addresses) - 192.x.x.x - 223.x.x.x) e.g. Ernst & Young (Belgium) 195.0.0.0-195.0.0.255 Class D range is used for Multicast 224.x.x.x - 239.x.x.x Several special networks are defined 127.x.x.x, 169.254.x.x, 192.0.2.x are special-purpose Private IP - 10.x.x.x, 172.<16-31>.x.x, 192.168.x.x 31 IP nets and subnetting Classful addressing can be very wasteful Did Merit (35.x.x.x) really need 16 million addresses? Subnetting divides address space into smaller chunks Major nets are assigned to organizations Subnets are assigned within organizations Anything within your subnet is local Anything outside your subnet passes through the default gateway (i.e. a router) Net and subnet sizes must be powers of 2 32 IP nets and subnetting Net (subnet) mask 1 indicates network part of address 0 indicates host part of address Usually represented in decimal, e.g. 255.255.255.0 CIDR (Classless Inter-Domain Routing) notation: /nn nn is the number of 1 bits in the mask. /24 = 255.255.255.0 = 11111111.11111111.11111111.00000000 Subnets typically contain 4-1024 addresses i.e. a mask of /30 to /22 Network must begin on appropriate power-of-2 boundary 141.211.40.0/22 (= 141.211.<40-43>.x) is OK 141.211.42.0/22 => 141.211.42.0/23 + 141.211.44.0/23 33 11

IP nets and subnetting An IP subnet has three broadcast addresses: Local IP broadcast: 255.255.255.255 Subnet directed broadcast: <IP Subnet>.<all 1s> Subnet address: <IP Subnet>.<all 0s> Ex: 141.211.28.0/22 = 141.211.<28.0-31.255> Local Broadcast: 255.255.255.255 Normal host address: 141.211.28.255 Directed broadcast: 141.211.31.255 Local broadcasts are not forwarded by routers Directed broadcasts might be forwarded All 0s broadcast is deprecated 34 Switching vs. Routing Switches forward traffic within subnets Routers forward traffic between subnets Routers must rewrite headers TTL decrements on each hop Header checksum changes Source/dest. MACs change with each hop Frame CRC changes Routers may need to fragment packets 35 Routing Routers exchange information on what IP networks ( prefixes ) they can reach Routing decisions are based on metrics such as path bandwidth (OSPF), hop count (RIP), or congestion (EIGRP), or on explicit policy (Reshall-via-Packeteer) Internet routing table >250,000 prefixes UMnet routing table >1200 prefixes 36 12

You are here Network Fundamentals The OSI 7-layer model OSI Layers 1-4 in detail: Ethernet and IP IP subnetting and routing Virtualizing the network 37 VLANs People / groups / units change, move, grow, split, share space Separate physical LANs are expensive to build and maintain VLANs allow logically independent nets to share a common physical network Like P LANs, each VLAN is a separate (layer 2) broadcast domain 38 VLANs in switches Each VLAN is assigned a VLAN ID Access ports are assigned to one VLAN Trunk ports can carry multiple VLANs; each frame is tagged with the VLAN ID Gotchas: Some switches don t support VLANs Some switches don t support trunking Switches support different # of VLANs Switches support different tagging schemes 39 13

UMnet backbone diagram 04/13 http://www.itcom.itd.umich.edu/backbone/ cja 2013 40 UMnet VLAN configuration IP Telephones UMnet Backbone Workstations Wireless APs Access Layer Data VLAN VOIP VLAN Wireless VLAN Distribution Layer VLAN Trunk 41 14