Introduction to TCP/IP. Yusuke Matsuoka / Herwin Chan EE201A Spring/2003 UCLA

Similar documents
IP address format: Dotted decimal notation:

Network Security TCP/IP Refresher

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

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

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

Overview of TCP/IP. TCP/IP and Internet

Ethernet. Ethernet. Network Devices

Transport and Network Layer

How do I get to

Outline. CSc 466/566. Computer Security. 18 : Network Security Introduction. Network Topology. Network Topology. Christian Collberg

Networks: IP and TCP. Internet Protocol

Transport Layer Protocols

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

Networking Test 4 Study Guide

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

Chapter 9. IP Secure

8.2 The Internet Protocol

IP - The Internet Protocol

Computer Networks/DV2 Lab

TCP/IP and the Internet

Network Programming TDC 561

RARP: Reverse Address Resolution Protocol

Introduction to IP networking

LESSON Networking Fundamentals. Understand TCP/IP

Understanding TCP/IP. Introduction. What is an Architectural Model? APPENDIX

Introduction to TCP/IP

Chapter 11. User Datagram Protocol (UDP)

Internet Packets. Forwarding Datagrams

Gary Hecht Computer Networking (IP Addressing, Subnet Masks, and Packets)

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

Internet Control Protocols Reading: Chapter 3

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

ACHILLES CERTIFICATION. SIS Module SLS 1508

Network Models OSI vs. TCP/IP

The OSI and TCP/IP Models. Lesson 2

Data Communication Networks and Converged Networks

Lecture Computer Networks

Unix System Administration

Objectives of Lecture. Network Architecture. Protocols. Contents

UPPER LAYER SWITCHING

NETWORK LAYER/INTERNET PROTOCOLS

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

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

CS101 Lecture 19: Internetworking. What You ll Learn Today

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

Network Layer: and Multicasting Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Technical Support Information Belkin internal use only

Protocols. Packets. What's in an IP packet

Computer Networks/DV2 Lab

Transport Layer. Chapter 3.4. Think about

Internet Architecture and Philosophy

Subnetting,Supernetting, VLSM & CIDR

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

Networking Overview. (as usual, thanks to Dave Wagner and Vern Paxson)

8-bit Microcontroller. Application Note. AVR460: Embedded Web Server. Introduction. System Description

CSCE 465 Computer & Network Security

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

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

BASIC ANALYSIS OF TCP/IP NETWORKS

20-CS X Network Security Spring, An Introduction To. Network Security. Week 1. January 7

Internet Protocols. Background CHAPTER

Troubleshooting Tools

Lecture 2-ter. 2. A communication example Managing a HTTP v1.0 connection. G.Bianchi, G.Neglia, V.Mancuso

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

Mobile IP Network Layer Lesson 01 OSI (open systems interconnection) Seven Layer Model and Internet Protocol Layers

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Lecture 28: Internet Protocols

PART OF THE PICTURE: The TCP/IP Communications Architecture

Ethernet and IP A slightly less introductory networking class. Drew Saunders Networking Systems Stanford University

04 Internet Protocol (IP)

FIREWALLS. Firewall: isolates organization s internal net from larger Internet, allowing some packets to pass, blocking others

IP addressing and forwarding Network layer

Solution of Exercise Sheet 5

Life of a Packet CS 640,

Data Communication I

Internet Protocol: IP packet headers. vendredi 18 octobre 13

VLAN und MPLS, Firewall und NAT,

Session Hijacking Exploiting TCP, UDP and HTTP Sessions

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

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

Final for ECE374 05/06/13 Solution!!

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

Laboratory work 4. Application of Windows OS Built-in Networks Diagnostic Tools

Firewalls. Basic Firewall Concept. Why firewalls? Firewall goals. Two Separable Topics. Firewall Design & Architecture Issues

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

Cape Girardeau Career Center CISCO Networking Academy Bill Link, Instructor. 2.,,,, and are key services that ISPs can provide to all customers.

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

Internet Firewall CSIS Internet Firewall. Spring 2012 CSIS net13 1. Firewalls. Stateless Packet Filtering

Introduction To Computer Networking

CS335 Sample Questions for Exam #2

CS155 - Firewalls. Simon Cooper <sc@sgi.com> CS155 Firewalls 22 May 2003

Candidates should attempt FOUR questions. All questions carry 25 marks.

Lecture 8. IP Fundamentals

The internetworking solution of the Internet. Single networks. The Internet approach to internetworking. Protocol stacks in the Internet

Address Resolution Protocol (ARP), Reverse ARP, Internet Protocol (IP)

The OSI Model and the TCP/IP Protocol Suite

Computer Networks. Chapter 5 Transport Protocols

Internet Protocols. Addressing & Services. Updated:

Transcription:

Introduction to TCP/IP Yusuke Matsuoka / Herwin Chan EE0A Spring/003 UCLA

OSI and Protocol StackOSI: Open Systems Interconnect OSI Model TCP/IP Hierarchy Protocols 7 th Application Layer 6 th Presentation Layer 5 th Session Layer 4 th Transport Layer 3 rd Network Layer nd Link Layer st Physical Layer Application Layer Transport Layer Network Layer Link Layer Link Layer card Network Layer Routing : includes device driver and network interface : handles the movement of packets, i.e.

Packet Encapsulation 3 The data is sent down the protocol stack Each layer adds to the data by prepending headers Bytes0Bytes0Bytes 4Bytes 64 to 500 Bytes

Ethernet 4 Computer <-> Computer communication on same network Each device has unique MAC address (48-bit) example: 00-C0-4F-48-47-93 Ethernet Packet: Preamble Dest. address Source address Type Data CRC 8bytes 6bytes 6bytes bytes 64-500bytes 4bytes MAC: Media Access Contro

5 ARP : Address Resolution Protocol ARP provides mapping 3bit IP address <-> 48bit MAC address 8.97.89.53 <-> 00-C0-4F-48-47-93 ARP cache maintains the recent mappings from IP addresses to MAC addresses Protocol. ARP request broadcast on Ethernet. Destination host ARP layer responds

IP: Internet Protocol 6 Unreliable connectionless datagram delivery service Responsible for routing of data through intermediate networks and computers IP header: 03 4567 890 345 6789 03 4567 33 890 :ICMP 6 :TCP 7 :UDP

IP Routing 7 Source Application Transport Network Link Router Network Link Destination Application Transport Network Link Routing Table Destination IP address IP address of a next-hop router Flags Network interface specification

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

9 TCP : Transmission Control Protocol Connection-Oriented, Reliable, Byte Stream Service Protocol. Set up connection. Transfer data 3. Close connection TCP Header Format 0 3 4 5 6 7 8 9 0 Data Offset Source Port 3 4 5 6 7 Sequence Number 8 Acknowledgement Number 9 0 3 4 5 Destination Port Window Checksum Options (0 to 0 Words of 3 Bits) TCP Payload Urgent Pointer 6 7 8 9 3 0 3

TCP : State Diagram 0

TCP : Connection Clien t Send SYN seq=x Receive SYN +ACK segment Send ACK y+ Host Receive SYN segment Send SYN seq=y, ACK x+ Receive ACK segment Clien t Send FIN seq=x Receive ACK segment Receive FIN + ACK segment Send ACK y+ Host Receive FIN segment Send ACK x+ Send FIN seq=y, ACK x+ Receive ACK segment Establishing a TCP Connection Closing a TCP Connection

TCP : Data transfer Timer Clien t Send Packet Start Timer ACK would normally Arrive at this time Packet Lost Host Packet should arrive ACK should be sent Time Expires Timer Retransmit Packet Start Timer Receive Packet Send AXK Receive ACK Cancel Timer

3 HTTP : Hyper Text Transfer Protocol Stateless Transaction Protocol Each transaction creates a new connection Steps in Transaction. Establish connection. Request Method <URL> <CR> 3. Response Response Code <Data> <CR> 4. Close connection

HTTP 4 Common Request Methods GET, PUT, POST Response Categories Informational :00 Successful :00 Redirection :300 Client Error :400 (eg. 404 Not found) Server Error :500

5 Example: Access www.ee.ucla.edu Client Appl HTTP Transp TCP Net IP Link ethernet Http request GET http://www.ee.ucla.edu <CR> Http response 00 <CR> <html file in MIME format> Initiate connection (hdshk) Package data (add TCP header) send http request packet Assemble response (break into several packets) Send http response packets send data to next hop Close connection (hdshk) Relay data ARP to provide IP/MAC translation Net IP Link ethernet Router(s) Server Appl HTTP Transp TCP Net IP Link ethernet

References 6 TCP/IP Illustrated, Volume The Protocols by W. Richard Stevens (http://yenigul.net/tcpip ) Internet Working with TCP/IP Volume by Douglas E. Comer Sams Teach Yourself TCP/IP in 4 Hours by Joe Casad. Published by Sams. (http://www. informit.com)