Network and Security: Introduction

Similar documents
Introduction to TCP/IP networking

CS244a: An Introduction to Computer Networks

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

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

IP : Internet Protocol

CSCI-GA Operating Systems. Networking. Hubertus Franke

The Internet Protocol (IP)

EE 610 Part 2: Encapsulation and network utilities

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

Part 1: Introduction. Goal: Review of how the Internet works Overview

Connectionless and Connection-Oriented Protocols OSI Layer 4 Common feature: Multiplexing Using. The Transmission Control Protocol (TCP)

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

Introduction to Information Science and Technology 2017 Networking II. Sören Schwertfeger 师泽仁

CS 640: Introduction to Computer Networks. Today s Lecture. Page 1

Introduction to Internetworking

Lecture (11) OSI layer 4 protocols TCP/UDP protocols

416 Distributed Systems. Networks review; Day 1 of 2 Jan 5 + 8, 2018

Introduction to Networking. Operating Systems In Depth XXVII 1 Copyright 2017 Thomas W. Doeppner. All rights reserved.

Position of IP and other network-layer protocols in TCP/IP protocol suite

ECE4110 Internetwork Programming. Introduction and Overview

User Datagram Protocol

TCP/IP Overview. Basic Networking Concepts. 09/14/11 Basic TCP/IP Networking 1

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

ET4254 Communications and Networking 1

Chapter 09 Network Protocols

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

Operating Systems. 16. Networking. Paul Krzyzanowski. Rutgers University. Spring /6/ Paul Krzyzanowski

The Transmission Control Protocol (TCP)

Chapter 5 Network Layer

Common Protocols. The grand finale. Telephone network protocols. Traditional digital transmission

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

QUIZ: Longest Matching Prefix

ECE 158A: Lecture 7. Fall 2015

Announcements Computer Networking. What is the Objective of the Internet? Today s Lecture

Data & Computer Communication

Introduction to Internet. Ass. Prof. J.Y. Tigli University of Nice Sophia Antipolis

Internet Routing. Review of Networking Principles. What s the Internet: nuts and bolts view. Communication links

Internet Routing. Review of Networking Principles

TCP/IP THE TCP/IP ARCHITECTURE

Network Protocols and Architectures

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

OSI Transport Layer. objectives

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

Single Network: applications, client and server hosts, switches, access links, trunk links, frames, path. Review of TCP/IP Internetworking

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

Transport: How Applications Communicate

Chapter 5 OSI Network Layer

CS 416: Operating Systems Design April 11, 2011

TCP/IP Protocol Suite

TRANSMISSION CONTROL PROTOCOL. ETI 2506 TELECOMMUNICATION SYSTEMS Monday, 7 November 2016

CCNA Exploration Network Fundamentals. Chapter 04 OSI Transport Layer

Network Layer: Internet Protocol

NT1210 Introduction to Networking. Unit 10

Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP 23.1

CSE/EE 461 Lecture 13 Connections and Fragmentation. TCP Connection Management

Need For Protocol Architecture

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. ** Slides are attributed to J. F.

Lecture 18 Overview. Last Lecture. This Lecture. Next Lecture. Internet Protocol (1) Internet Protocol (2)

Need For Protocol Architecture

6.033 Computer System Engineering

Goals and topics. Verkkomedian perusteet Fundamentals of Network Media T Circuit switching networks. Topics. Packet-switching networks

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

TSIN02 - Internetworking

Interconnecting Networks with TCP/IP

ECE 650 Systems Programming & Engineering. Spring 2018

TCP /IP Fundamentals Mr. Cantu

ECE 650 Systems Programming & Engineering. Spring 2018

SEN366 (SEN374) (Introduction to) Computer Networks

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1

Lecture 20 Overview. Last Lecture. This Lecture. Next Lecture. Transport Control Protocol (1) Transport Control Protocol (2) Source: chapters 23, 24

Transport Layer. The transport layer is responsible for the delivery of a message from one process to another. RSManiaol

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

Vorlesung Kommunikationsnetze

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers

Professor Yashar Ganjali Department of Computer Science University of Toronto.

IPv6: An Introduction

CS 716: Introduction to communication networks th class; 7 th Oct Instructor: Sridhar Iyer IIT Bombay

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

Chapter 7. Local Area Network Communications Protocols

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

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

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

CPSC156a: The Internet Co-Evolution of Technology and Society. Lecture 4: September 16, 2003 Internet Layers and the Web

Data Communication & Networks G Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

Lecture 6. Internet Security: How the Internet works and some basic vulnerabilities. Thursday 19/11/2015

TSIN02 - Internetworking

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

CCNA 1 v3.11 Module 11 TCP/IP Transport and Application Layers

Chapter 12 Network Protocols

Lecture 16: Network Layer Overview, Internet Protocol

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

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

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

Internetworking Part 2

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

TSIN02 - Internetworking

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

Transcription:

Network and Security: Introduction Seungwon Shin KAIST Some slides are from Dr. Srinivasan Seshan Some slides are from Dr. Nick Mckeown

Network Overview

Computer Network Definition A computer network or data network is a telecommunications network that allows computers to exchange data. In computer networks, networked computing devices pass data to each other along data connections. - from Wikipedia Computer Exchange Data

Computer Network data

Why is it important? Everything is connected from norman-networok.net

Network Diagram Drawing something direct connection Link Node Node multiple hosts, multiple links One wire Wires for everybody!

Network Multiplexing Multiple hosts How to share a network link switched network resource sharing orange sends two packets to red - others are waiting black sends two packets to green - others are waiting

Switching Approaches Circuit switching Source first establishes a connection (circuit) to the destination Each switch along the way stores info about connection (and possibly allocates resources) Source sends the data over the circuit No need to include the destination address with the data since the switches know the path The connection is explicitly torn down Example: telephone network (analog)

Circuit Switching

Switching Approaches Packet switching Source sends information as self-contained packets that have an address. Source may have to break up single message in multiple Each packet travels independently to the destination host. Switches use the address in the packet to determine how to forward the packets Store and forward Analogy: a letter in surface mail.

Packet Switching Packets

Internet An inter-net: a network of networks. Networks are connected using routers that support communication in a hierarchical fashion Often need other special devices at the boundaries for security, accounting,.. The Internet: the interconnected set of networks of the Internet Service Providers (ISPs) About 17,000 different networks make up the Internet

Internet

How to find Nodes? Naming what is the IP address of nss.kaist.ac.kr it is 143.248.111.111 DNS

Routing What is it? an approach of sending packets to a destination e.g., OSPF, BGP, ISIS, and more routing vs. switching?

Protocol and Layer

Protocol Definition A communication protocol is a system of digital rules for data exchange within or between computers. - from Wikipedia RULE for Communication

OSI Model OSI Open System Interconnection model Definition A conceptual model that characterizes and standardizes the internal functions of a communication system by partitioning it into abstraction layers. - from Wikipedia

Layering User A Peer Layer Peer Layer User B Application Transport Network Link Host Host Modular approach to network functionality

OSI-7 Layer from cisco.com

Protocols in OSI-7 layer

Headers

Layering again Application Presentation Session Transport Network Data Link Physical Host Bridge/Switch Router/Gateway Host

In Detail

IP Definition The Internet Protocol (IP) is the principal communications protocol in the Internet protocol suite for relaying datagrams across network boundaries. - from Wikipedia

IP Characteristics of IP CONNECTIONLESS: mis-sequencing UNRELIABLE: may drop packets BEST EFFORT: but only if necessary DATAGRAM: individually routed Source A R2 D H B Destination D H R1 R4 R3 Architecture Links Topology Transparent

IP Datagram vers HLen TOS Total Length Offset within original packet Hop count ID Flags FRAG Offset TTL Protocol checksum SRC IP Address DST IP Address <=64 KBytes (OPTIONS) (PAD)

IP Fragmentation A router may receive a packet larger than the maximum transmission unit (MTU) of the outgoing link Source Destination A B Ethernet MTU=1500 bytes MTU=1500 bytes R1 MTU<1500 bytes R2 Offset>0 More Frag=0 Data HDR (ID=x) Offset=0 More Frag=1 Data HDR (ID=x) Data HDR (ID=x) Data HDR (ID=x)

IP Fragmentation Fragments are re-assembled by the destination host; not by intermediate routers. To avoid fragmentation, hosts commonly use path MTU discovery to find the smallest MTU along the path. Path MTU discovery involves sending various size datagrams until they do not require fragmentation along the path. Most links use MTU>=1500bytes today.

ICMP Internet Control Message Protocol: Used by a router/end-host to report some types of error: E.g. Destination Unreachable: packet can t be forwarded to/towards its destination. E.g. Time Exceeded: TTL reached zero, or fragment didn t arrive in time. Traceroute uses this error to its advantage. An ICMP message is an IP datagram, and is sent back to the source of the packet that caused the error.

TCP and UDP TCP and UDP TCP UDP Transmission Control Protocol User Datagram Protocol core protocols of the Internet Key difference between them?

TCP Key features connection oriented reliable - how? ordered - how? traffic control - how? Retransmission - ACK Sequence number - SEQ Flow Control - Window size

TCP Header

TCP: 3-way handshake (Active) Client Syn (Passive) Server (Active) Client Fin (Passive) Server Syn + Ack (Data +) Ack Ack Fin Ack Connection Setup 3-way handshake Connection Close/Teardown 2 x 2-way handshake

UDP UDP is a connectionless datagram service. There is no connection establishment: packets may show up at any time. UDP is unreliable: No acknowledgements to indicate delivery of data. Checksums cover the header, and only optionally cover the data. Contains no mechanism to detect missing or mis-sequenced packets. No mechanism for automatic retransmission. No mechanism for flow control, and so can over-run the receiver.

HTTP Definition The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems. - from Wikipedia

FTP user at host FTP user interface FTP client local file system file transfer FTP server remote file system Transfer file to/from remote host Client/server model Client: side that initiates transfer (either to/from remote) Server: remote host ftp: RFC 959 ftp server: port 21

FTP Ftp client contacts ftp server at port 21, specifying TCP as transport protocol Two parallel TCP connections opened: Control: exchange commands, responses between client, server. out of band control Data: file data to/from server Ftp server maintains state : current directory, earlier authentication FTP client TCP control connection port 21 TCP data connection port 20 FTP server

SOCKET Definition A network socket is an endpoint of an interprocess communication flow across a computer network from wikipedia

Client - Server Server and Client exchange messages over the network through a common Socket API Server ports Clients user space TCP/UDP Socket API TCP/UDP kernel space IP IP Ethernet Adapter Ethernet Adapter hardware

Network Port Port numbers are used to identify entities on a host Port numbers can be Well-known (port 0-1023) Dynamic or private (port 1024-65535) Servers/daemons usually use wellknown ports Any client can identify the server/service HTTP = 80, FTP = 21, Telnet = 23,... /etc/service defines well-known ports Clients usually use dynamic ports Assigned by the kernel at run time NTP daemon TCP/UDP IP Web server port 123 port 80 Ethernet Adapter

Class Summary Network some basic things