SC/CSE 3213 Winter Sebastian Magierowski York University CSE 3213, W13 L8: TCP/IP. Outline. Forwarding over network and data link layers

Similar documents
Chapter 2 Applications and Layered Architectures

OSI and TCP/IP Models

Lab Using Wireshark to Examine Ethernet Frames

Lab Using Wireshark to Examine Ethernet Frames

Lab - Using Wireshark to Examine a UDP DNS Capture

Lab - Using Wireshark to Examine a UDP DNS Capture

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

Introduction to CSE 3213

PROGRAMMING Kyriacou E. Frederick University Cyprus. Network communication examples

Chapter 2 Network Architectures A global view

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

Chapter 2 Layer Architecture of Network Protocols. School of Info. Sci. & Eng. Shandong Univ.

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.

Chapter 7. Local Area Network Communications Protocols

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

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

Network Architecture Models

Internet Protocols (chapter 18)

Communicating over the Network

TSIN02 - Internetworking

Networking Background

Operating Systems CS 571

CSCI Networking Name:

Use of the TCP/IP Protocols and the OSI Model in Packet Tracer

Network Reference Models

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

MODUL 7 DATA LINK LAYER

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

COMPUTER NETWORK. Homework #1. Due Date: March 29, 2017 in class

Defining Networks with the OSI Model. Module 2

Internet. 1) Internet basic technology (overview) 3) Quality of Service (QoS) aspects

NETWORK PACKET ANALYSIS PROGRAM

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

L6: OSI Reference Model

Web, HTTP and Web Caching

Outline. SC/CSE 3213 Winter Sebastian Magierowski York University. ICMP ARP DHCP NAT (not a control protocol) L9: Control Protocols

TCP/IP and the OSI Model

CSCD 330 Network Programming

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

Review of Important Networking Concepts

Chapter 2 Network Models 2.1

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

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

ICS 351: Networking Protocols

Network Layer (1) Networked Systems 3 Lecture 8

Lecture-4. TCP/IP-Overview:

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

CS519: Computer Networks. Lecture 1 (part 2): Jan 28, 2004 Intro to Computer Networking

E&CE 358: Tutorial 1. Instructor: Sherman (Xuemin) Shen TA: Miao Wang

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

IP: Addressing, ARP, Routing

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

TCP/IP THE TCP/IP ARCHITECTURE

Cisco Interconnecting Cisco Networking Devices Part 1.

Networking Basics. EC512 Spring /15/2015 EC512 - Prof. Thomas Skinner 1

IT 341: Introduction to System

IP Basics Unix/IP Preparation Course June 29, 2010 Pago Pago, American Samoa

PLEASE READ CAREFULLY BEFORE YOU START

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

Computer Networks. More on Standards & Protocols Quality of Service. Week 10. College of Information Science and Engineering Ritsumeikan University

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

03 The Internet Model and TCP/IP

Lab 1: Packet Sniffing and Wireshark

BSc Year 2 Data Communications Lab - Using Wireshark to View Network Traffic. Topology. Objectives. Background / Scenario

HyperText Transfer Protocol

What is a Network? TCP / IP. The ISO OSI Model. Protocols. The TCP/IP Protocol Suite. The TCP/IP Protocol Suite. Computer network.

PLEASE READ CAREFULLY BEFORE YOU START

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

Overview of TCP/IP Overview of TCP/IP protocol: TCP/IP architectural models TCP protocol layers.

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

To make a difference between logical address (IP address), which is used at the network layer, and physical address (MAC address),which is used at

CMSC 332 Computer Networking Web and FTP

Computer Forensics: Investigating Network Intrusions and Cybercrime, 2nd Edition. Chapter 2 Investigating Network Traffic

Networking and Internetworking 1

Computer Network Addressing. The TCP/IP Layers and Addresses. Topics. The Internet Communication. The TCP/IP Layers and Addresses IP Address

Review of Previous Lecture

Introduction to Protocols

TCP/IP stack is the family of protocols that rule the current internet. While other protocols are also used in computer networks, TCP/IP is by far

Computer Networks (Unit wise Questions)

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

01/17/08 TDC /17/08 TDC363-03

Network concepts introduction & wireshark

Outline. Inter-Process Communication. IPC across machines: Problems. CSCI 4061 Introduction to Operating Systems

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

Introduction to the TCP/IP protocol suite

TCP / IP. Isidro Martinez Director, Latin Amèrica

Networking Fundamentals

EXAM - HP0-Y52. Applying HP FlexNetwork Fundamentals. Buy Full Product.

Introduction to OSI model and Network Analyzer :- Introduction to Wireshark

TCP/IP Network Essentials

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

ISO OSI 7 Layer model and the TCP/IP protocol stack. Introduction to the TCP/IP protocol suite. Networking Glossary

Communicating over the Network. Network Fundamentals. ITE PC v4.0 Chapter Cisco Systems, Inc. All rights reserved.

Objectives. Chapter 10. Upon completion you will be able to:

TCP/IP Protocol Suite and IP Addressing

Scribe Notes -- October 31st, 2017

MODULE: NETWORKS MODULE CODE: CAN1102C. Duration: 2 Hours 15 Mins. Instructions to Candidates:

The OSI Model. Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO).

Network Programming. Introduction to Sockets. Dr. Thaier Hayajneh. Process Layer. Network Layer. Berkeley API

9. Wireshark I: Protocol Stack and Ethernet

Transcription:

SC/CSE 3213 Winter 2013 L8: TCP/IP Overview Sebastian Magierowski York University 1 Outline TCP/IP Reference Model A set of protocols for internetworking The basis of the modern IP Datagram Exchange Examples Forwarding over network and data link layers Analyzer Views A means to view live protocol traffic HTTP (maybe) In a bit more detail 2 1

working To allow internetworking a set of protocols developed over time The TCP/IP protocol suite aka protocol suite First described in 74 (Cerf & Kahn) 3 TCP/IP Arrangement Roughly organized into a 4-level model Same idea as OSI But model came after protocols Model called TCP/IP network architecture Since it specifies exact services and protocols to be used by each layer Unlike OSI (which is not specific) TCP/IP reference model ( TCP/IP model ) Named after its two primary protocols 7 6 5 4 3 2 1 OSI Application Presentation Session Transport Data link Physical TCP/IP Application Transport Link Not present in the model TCP IP 4 2

TCP/IP Model 4 layers smaller than OSI Model developed after the fact Doesn t partition functions as cleanly as OSI layers don t have to talk in sequential fashion E.g. direct interaction between application layer and interface possible Not a suitable guide for new network designs Transport layer layer interface Application layer 5 TCP/IP Protocol Suite HTTP SMTP DNS RTP Reliable stream service TCP Distributed applications UDP User datagram service Best-effort connectionless packet transfer IP (ICMP, OSPF, ARP) interface 1 interface 2 interface 3 Diverse network technologies 6 3

Protocol Approach IP packets transfer information across the Host A IP router router router Host B IP IP layer in each router determines next hop (router) interfaces transfer IP packets across networks Host B Host A Transport Layer Layer Interface Layer Interface Net Net 51 Layer Interface Layer Net Net 54 Net Net 52 Net Net 53 Interface Transport Layer Layer Interface 7 TCP/IP Packet Forwarding Example Server (1,1) s Ethernet (netid=1) w (2,1) (1,3) r Workstation PPP Netid=2 PC (2,2) *PPP does not use addresses IP addressing unique 32-bit logical address 128.34.51.2 = (netid, hostid), simplified in example: e.g. (1,3) Physical address (1,2) unique LAN address e.g. 48-bit Ethernet: 00:90:27:96:68:07, simplified in example: e.g. r 8 4

TCP/IP Packet Forwarding Example Ethernet (netid=1) Server (1,1) s (1,2) w (2,1) (1,3) r Workstation PPP Netid=2 PC (2,2) *PPP does not use addresses netid hostid Physical address server 1 1 s workstation 1 2 w router 1 3 r router 2 1 - PC 2 2-9 IP Packet from Workstation to Server Server (2,1) PC (1,1) s (1,3) r PPP (2,2) Ethernet w w, s (1,2), (1,1) (1,2) Workstation 1. IP packet has (1,2) IP address for source and (1,1) IP address for destination 2. IP table at workstation indicates (1,1) connected to same network, so IP packet is encapsulated in Ethernet frame with addresses w and s 3. Ethernet frame is broadcast by workstation NIC and captured by server and router NIC 4. server NIC examines protocol type field and then delivers packet to its IP layer 10 5

IP Packet from Server to PC (internetworking) Server (2,1) (1,1), (2,2) PC s, r (1,1) s (1,1), (2,2) (1,2) w (1,3) r Workstation 11 (2,2) 1. IP packet has (1,1) and (2,2) as IP source and destination addresses 2. IP table at server indicates packet should be sent to router, so IP packet is encapsulated in Ethernet frame with addresses s and r 3. Ethernet frame is broadcast by server NIC and captured by router NIC 4. router NIC examines protocol type field and delivers packet to its IP layer 5. IP layer examines IP packet destination address and determines IP packet should be routed to (2,2) 6. s table indicates (2,2) is directly connected via PPP link 7. IP packet is encapsulated in PPP frame and delivered to PC 8. PPP at PC examines protocol type field and delivers packet to PC IP layer What s Happening Above IP? (a) Server (1,1) s Ethernet (b) Server HTTP TCP IP PC (2,1) (1,3) r PPP (2,2) HTTP uses process-to-process Reliable byte stream transfer of TCP connection: Server socket: (IP Address, 80) PC socket (IP Address, Eph. #) TCP uses node-to-node Unreliable packet transfer of IP Server IP address & PC IP address IP PC HTTP TCP IP interface interface interface Ethernet PPP 12 6

Encapsulation TCP Header contains source & destination port numbers HTTP Request IP Header contains source and destination IP addresses; transport protocol type TCP header HTTP Request Ethernet Header contains source & destination MAC addresses; network protocol type IP header TCP header HTTP Request Ethernet header IP header TCP header HTTP Request FCS 13 How the Layers Work Together: Analyzer Example User clicks on http://www.nytimes.com/ Wireshark network analyzer captures all frames observed by its Ethernet NIC Sequences of frames and contents of frame can be examined in detail down to individual bytes 14 7

Top Pane shows frame/ packet sequence Wireshark Windows Middle Pane shows encapsulation for a given frame 15 Bottom Pane shows hex & text DNS Query Top Pane: Frame Sequence TCP Connection Setup HTTP Request & Response 16 8

Middle Pane: Encapsulation Ethernet Frame Protocol Type Ethernet Destination and Source Addresses 17 Middle Pane: Encapsulation And a lot of other stuff! IP Packet IP Source and Destination Addresses Protocol Type 18 9

Middle Pane: Encapsulation TCP Segment HTTP Request Source and Destination Port Numbers GET 19 TCP/IP Summary Encapsulation is key to layering IP provides for transfer of packets across diverse networks TCP and UDP provide universal communications services across the Distributed applications that use TCP and UDP can operate over the entire names, IP addresses, port numbers, sockets, connections, physical addresses 20 10

Hypertext Transfer Protocol RFC 1945 (HTTP 1.0), RFC 2616 (HTTP 1.1) HTTP provides communications between web browsers & web servers Web: framework for accessing documents & resources through the Hypertext documents: text, graphics, images, hyperlinks Documents prepared using Hypertext Markup Language (HTML) 21 HTTP Protocol HTTP servers use well-known port 80 Client request / Server reply Stateless: server does not keep any information about client HTTP 1.0 new TCP connection per request/reply (nonpersistent) HTTP 1.1 persistent operation is default 22 11

HTTP Typical Exchange 23 HTTP messages written in ASCII text Request Message Format HTTP Message Formats 1. Request Line (Each line ends with carriage return) Method URL HTTP-Version \r\n Method specifies action to apply to object URL specifies object 2. Header Lines (Each line ends with carriage return) Attribute Name: Attribute Value E.g. type of client, content, identity of requester, Last header line has extra carriage return 3. Entity Body (Content) Additional information to server 24 12

HTTP Request Methods GET Request method HEAD POST PUT DELETE TRACE OPTIONS Meaning Retrieve information (object) identified by the URL. Retrieve meta-information about the object, but do not transfer the object; Can be used to find out if a document has changed. Send information to a URL (using the entity body) and retrieve result; used when a user fills out a form in a browser. Store information in location named by URL Remove object identified by URL Trace HTTP forwarding through proxies, tunnels, etc. Used to determine the capabilities of the server, or characteristics of a named resource. 25 HTTP Request Headers 26 13

HTTP Response Message Response Message Format Status Line HTTP-Version Status-Code Message Status Code: 3-digit code indicating result E.g. HTTP/1.0 200 OK Headers Section Information about object transferred to client E.g. server type, content length, content type, Content Object (document) 27 HTTP Response Message 28 14

Cookies and Web Sessions Cookies are data exchanged by clients & servers as header lines Since HTTP stateless, cookies can provide context for HTTP interaction Set cookie header line in reply message from server + unique ID number for client If client accepts cookie, cookie added to client s cookie file (must include expiration date) Henceforth client requests include ID Server site can track client interactions, store these in a separate database, and access database to prepare appropriate responses 29 Cookie Header Line; ID is 24 hex numeral 30 15