CS 356 Systems Security Spring 2015 Dr. Indrajit Ray

Slides:



Advertisements
Similar presentations
ISO/OSI Model Layers Application: applications that use the network. This is were mail, browsers, ftp, etc reside Presentation: data formats, character.
Advertisements

Review of Important Networking Concepts
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
Introduction To Networking
1 Review of Important Networking Concepts Introductory material. This module uses the example from the previous module to review important networking concepts:
William Stallings Data and Computer Communications 7 th Edition Chapter 2 Protocols and Architecture.
Institute of Technology Sligo - Dept of Computing Semester 2 Chapter 9 The TCP/IP Protocol Suite Paul Flynn.
COE 342: Data & Computer Communications (T042) Dr. Marwan Abu-Amara Chapter 2: Protocols and Architecture.
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
© Jörg Liebeherr ECE 1545 Forwarding in IP Networks.
1 Review of Important Networking Concepts Introductory material. This slide uses the example from the previous module to review important networking concepts:
1.  A protocol is a set of rules that governs the communications between computers on a network.  Functions of protocols:  Addressing  Data Packet.
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
Computer Science and Engineering Computer System Security CSE 5339/7339 Session 24 November 11, 2004.
CT 320: Network and System Administration Fall 2014 * Dr. Indrajit Ray Department of Computer.
TCP/IP Protocol Suite - examples
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 3: TCP/IP Architecture.
Chapter 9.
Chapter 2 Network Models
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
COMT 429 The Internet Protocols COMT 429. History 1969First version of a 4 node store and forward network, the ARPAnet 1972Formal demonstration of ARPAnet.
Huda AL_Omairl - Network 71 Protocols and Network Software.
Examining TCP/IP.
Computer Networks (CS 132/EECS148) General Networking Example Karim El Defrawy Donald Bren School of Information and Computer Science University of California.
Component 9 – Networking and Health Information Exchange Unit 1-1 ISO Open Systems Interconnection (OSI) This material was developed by Duke University,
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Chapter 4 TCP/IP Overview Connecting People To Information.
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
Polytechnic University1 The internetworking solution of the Internet Prof. Malathi Veeraraghavan Elec. & Comp. Engg. Dept/CATT Polytechnic University
Protocols 1 Objective: Build a protocol foundation for Client / Server programming in an Internet Environment Note: RFCs available from
© Jörg Liebeherr, Organization Addresses TCP/IP Protocol stack Forwarding Internet.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
1 CS 4396 Computer Networks Lab TCP/IP Networking An Example.
Basic IP Protocol Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
CSE 6590 Department of Computer Science & Engineering York University 111/9/ :26 AM.
Instructor & Todd Lammle
Chapter 2 Protocols and the TCP/IP Suite 1 Chapter 2 Protocols and the TCP/IP Suite.
Data Communications and Networks
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
1 OSI and TCP/IP Models. 2 TCP/IP Encapsulation (Packet) (Frame)
1 Introduction to Networking Concepts Chu-Sing Yang Department of Electrical Engineering National Cheng Kung University.
Chapter 2 - Page 1 Infogem Institute of Technology CCNA Course TCP/IP Protocol Suite TCP/IP PROTOCOL SUITE Chapter 3 Sybex, Chapter 9 Exam Cram.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
1. Layered Architecture of Communication Networks: TCP/IP Model
Transmission Control Protocol (TCP) Internet Protocol (IP)
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
2.1 Chapter 2 Network Models – cont. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
J. Liebeher (modified by M. Veeraraghavan) 1 Introduction Complexity of networking: An example Layered communications The TCP/IP protocol suite.
- 1 - DPNM Review of Important Networking Concepts J. Won-Ki Hong Dept. of Computer Science and Engineering POSTECH Tel:
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
Communication Networks NETW 501 Tutorial 2
© 2003, Cisco Systems, Inc. All rights reserved.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Introduction to TCP/IP
Part I. Overview of Data Communications and Networking
TCP/IP Transmission Control Protocol / Internet Protocol
Networking for Home and Small Businesses – Chapter 6
Network Architecture Introductory material
Networking for Home and Small Businesses – Chapter 6
Review of Important Networking Concepts
Review of Important Networking Concepts
TCP/IP Protocol Suite: Review
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
Networking for Home and Small Businesses – Chapter 6
16EC Computer networks unit II Mr.M.Jagadesh
Review of Important Networking Concepts
Presentation transcript:

CS 356 Systems Security Spring Dr. Indrajit Ray

A Very Brief Introduction to Networking

Simplest Network

Local Area Network (LAN)

Network of LANs

Internetworking Internetwork = Collection of networks connected via routers

Internet = Virtual Network

Sending a packet from Argon to Neon

DNS: The IP address of “neon.tcpip-lab.edu” is ARP: What is the MAC address of ? DNS: What is the IP address of “neon.tcpip-lab.edu”? ARP: The MAC address of is 00:e0:f9:23:a8: is not on my local network. Therefore, I need to send the packet to my default gateway with address frame is on my local network. Therefore, I can send the packet directly. ARP: The MAC address of is 00:20:af:03:98:28 ARP: What is the MAC address of ? frame

Communications Architecture The complexity of the communication task is reduced by using multiple protocol layers: Each protocol is implemented independently Each protocol is responsible for a specific subtask Protocols are grouped in a hierarchy A structured set of protocols is called a communications architecture or protocol suite

TCP/IP Protocol Suite The TCP/IP protocol suite is the protocol architecture of the Internet The TCP/IP suite has four layers: Application, Transport, Network, and Data Link Layer End systems (hosts) implement all four layers. Gateways (Routers) only have the bottom two layers.

OSI and TCP/IP Protocol Stack OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation Layer 5 th Session Layer 4 th Transport Layer 3 rd Network Layer 2 nd Link Layer 1 st Physical Layer Application Layer Transport Layer Network Layer Link Layer

Functions of the Layers Data Link Layer: – Service: Reliable transfer of frames over a link Media Access Control on a LAN – Functions: Framing, media access control, error checking Network Layer: – Service: Move packets from source host to destination host – Functions: Routing, addressing Transport Layer: – Service: Delivery of data between hosts – Functions: Connection establishment/termination, error control, flow control Application Layer: – Service: Application specific (delivery of , retrieval of HTML documents, reliable transfer of file) – Functions: Application specific

Assignment of Protocols to Layers

Layered Communications An entity of a particular layer can only communicate with: 1. a peer layer entity using a common protocol (Peer Protocol) 2. adjacent layers to provide services and to receive services

Exchange of Data The unit of data sent between peer entities is called a Protocol Data Unit (PDU) For now, let us think of a PDU as a single packet Scenario: Layer-N at A sends a layer-N PDU to layer-N at B What actually happens: – A ’ s layer-N passes the PDU to the SAPs at layer-N-1 – Layer-N-1 entity at A constructs its own (layer-N-1) PDU which it sends to the layer-N-1 entity at B – PDU at layer-N-1 = layer-N-1 Header + layer –N PDU AB

Layers in the Example

Send HTTP Request to neon Establish a connection to at port 80 Open TCP connection to port 80 Send a datagram (which contains a connection request) to Send IP datagram to Send the datagram to Send Ethernet frame to 00:e0:f9:23:a8:20 Send Ethernet frame to 00:20:af:03:98:28 Send IP data-gram to Send the datagram to Frame is an IP datagram IP datagram is a TCP segment for port 80

Encapsulation As data is moving down the protocol stack, each protocol is adding layer-specific control information

Ethernet Computer Computer communication on same network Each device has unique MAC address (48-bit) example: 00-C0-4F Ethernet Packet: Dest. address DataCRC Source address Type MAC: Media Access Control 6bytes 2bytes Preamble 8bytes bytes4bytes

IP: Internet Protocol Unreliable … connectionless datagram delivery service Responsible for routing of data through intermediate networks and computers IP header: 1 :ICMP 6 :TCP 17 :UDP

ICMP : Internet Control Message Protocol Used to report problems with delivery of IP Datagrams within an IP network Used by Ping, Traceroute commands Types and Codes Echo Request (type=8, code=0) Echo Reply(type=0, code=0) Destination Unreachable(type=3, code=0) Time Exceeded(type=11, code=0) : Time-to-Live =0 ICMP Message ICMP Data ICMP Header IP Header 4bytes20bytes TypeCodeChecksum 1byte 2bytes

TCP : Transmission Control Protocol Connection-Oriented, Reliable, Byte Stream Service Protocol 1.Set up connection 2.Transfer data 3.Close connection Source PortDestination Port Sequence Number Acknowledgement Number Data Offset ---- Window ChecksumUrgent Pointer Options (0 to 10 Words of 32 Bits) TCP Payload TCP Header Format

ARP : Address Resolution Protocol ARP provides mapping 32bit IP address 48bit MAC address C0-4F ARP cache maintains the recent mappings from IP addresses to MAC addresses Protocol 1.ARP request broadcast on Ethernet 2.Destination host ARP layer responds

DNS: Domain Name System DNS provides mapping – – and many other mappings mail servers, IPv6, reverse mapping Data is organized as a tree

DNS Protocol.Root DNS Server.edu DNS Server.colostate.edu DNS Server caching DNS server what is what is is …