IP Basics. Physical Link Network IP ARP ICMP RoutingTables.

Slides:



Advertisements
Similar presentations
Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Chapter 2 TCP/IP Fundamentals.
Advertisements

CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
Transmission Control Protocol (TCP)
Intermediate TCP/IP TCP Operation.
CISCO NETWORKING ACADEMY PROGRAM (CNAP)
Chapter 7 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain the need for the transport layer.  Identify.
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
CP476 Internet Computing TCP/IP 1 Lecture 3. TCP / IP Objective: A in-step look at TCP/IP Purposes and operations Header specifications Implementations.
Transport Layer – TCP (Part1) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Chapter 7 – Transport Layer Protocols
TELE202 Lecture 14 TCP/UDP (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »TCP/UDP (1) »Source: chapter 17 ¥This Lecture »TCP/UDP (2) »Source: chapter.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
IP Basics. IP encapsulates TCP IP packets travel through many different routers (hops) before reaching it’s destination MTU variation at the physical.
1 CCNA 2 v3.1 Module Intermediate TCP/IP CCNA 2 Module 10.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
TCP/IP Basics A review for firewall configuration.
Transport Layer TCP and UDP IS250 Spring 2010
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Module A Panko and Panko Business Data Networks and Security, 9 th Edition © 2013 Pearson.
Internet Control Message Protocol ICMP. ICMP has two major purposes: –To report erroneous conditions –To diagnose network problems ICMP has two major.
Petrozavodsk State University, Alex Moschevikin, 2003NET TECHNOLOGIES Internet Control Message Protocol ICMP author -- J. Postel, September The purpose.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
1 Chapter 1 OSI Architecture The OSI 7-layer Model OSI – Open Systems Interconnection.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Chapter 4 TCP/IP Overview Connecting People To Information.
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
TCP: A Closer Look Transmission Control Protocol.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
University of the Western Cape Chapter 12: The Transport Layer.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
Routers and Routing Basics CCNA 2 Chapter 10.
More on TCP Acknowledgements Sequence Number Field Initial Sequence Number Acknowledgement Number Field.
Dr. John P. Abraham Professor UTPA
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
1 An Error Reporting Mechanism (ICMP). 2 IP Semantics IP is best-effort Datagrams can be –Lost –Delayed –Duplicated –Delivered out of order –Corrupted.
1 Chapter 23 Internetworking Part 3 (Control Messages, Error Handling, ICMP)
Internet Protocol Formats. IP (V4) Packet byte 0 byte1 byte 2 byte 3 data... – up to 65 K including heading info Version IHL Serv. Type Total Length Identifcation.
Networking Basics CCNA 1 Chapter 11.
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.
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Transport Protocols.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
1 Computer Communication & Networks Lecture 23 & 24 Transport Layer: UDP and TCP Waleed Ejaz
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Chapter 23 Internetworking Part 3 (Control Messages, Error Handling, ICMP)
Internet Control Message Protocol (ICMP)
Chapter 5 Network and Transport Layers
Internet Control Message Protocol (ICMP)
Introduction to TCP/IP networking
Introduction to TCP/IP
Internet Control Message Protocol (ICMP)
Error and Control Messages in the Internet Protocol
© 2003, Cisco Systems, Inc. All rights reserved.
TCP/IP Transmission Control Protocol / Internet Protocol
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Net 323 D: Networks Protocols
46 to 1500 bytes TYPE CODE CHECKSUM IDENTIFIER SEQUENCE NUMBER OPTIONAL DATA ICMP Echo message.
ITIS 6167/8167: Network and Information Security
32 bit destination IP address
Presentation transcript:

IP Basics

Physical Link Network IP ARP ICMP RoutingTables

IP Basics IP encapsulates TCP IP packets travel through many different routers (hops) before reaching it’s destination MTU variation at the physical layer requires IP to fragment the message into smaller units along the way Reassembly is an option at each hop. IP does NOT guarantee delivery!

IP Fragmentation R R R 1000 b500 b 250 b Every link has the potential to dictate adjusting size of frames. It is possible to reassemble at any point. R R R 1000 b500 b 1000 b

What if frames are lost? R R 250 b Receive Computer Receive computer will hold the first 2 frames awaiting the 3 rd. After a period of time, a timer expires and IP level passes the 500 bytes up and stops looking for the other pieces. TCP (NOT IP) then will acknowledge receipt of 500 more bytes to the sending TCP layer. If the first frame is lost, NONE are passed up to TCP. More on TCP later.

IP Frame format Fragmentation Fields Version Header Length Type of Service Packet Length FlagsFragment OffsetIdentification Time To LiveProtocol Checksum Source IP Address Destination IP Address Options DATA 32 bits Each line

Fragmentation and the Frame Fig byte frame router FragId 345 FragOffset=0 MoreFragments Bit=1 Size->1400 byes FragId 345 FragOffset=175 MoreFragments Bit=1 Size-> 1400 bytes FragId 345 FragOffset=350 MoreFragments Bit=0 Size->1200 bytes FragOffset should be multiplied by 8 (8x175=1400)

IP Frame format Version Header Length Type of Service Packet Length FlagsFragment OffsetIdentification Time To LiveProtocol Checksum Source IP Address Destination IP Address Options DATA 32 bits Each line

IP Summary Fragmentation results in delivery of frames which are potentially smaller than the original transmission. Some of the frames can be lost If a message is fragmented and frames are lost, all frames up to the first lost frame are passed up to the receiving TCP and all subsequent frames are dropped. TCP views this as a stream and is unaware of the loss of frames. It just accepts the next “n” bytes, acks the receipt, and waits for subsequent data.

TCP End To End Delivery

Physical Link Network Transport TCP UDP

TCP basics Connection-oriented –Sets up the connection prior to data transmission SYN and 3-way handshake –Guarantees delivery of data Sender holds a copy of the data for retransmission if necessary Receiver ACKS specific byte positions in the stream so sender can resend from any byte position Encapsulated by IP Receiver tells sender it’s receive window size to limit rate of data arrival (flow control)

Consider How TCP and IP Work Together

Transport Network(IP) Physical Network(IP) Physical Transport Network(IP) Physical (Send 2000 bytes) (ACK 500 bytes) TCP handling of fragmentation Up to destination port

Transport Network(IP) Physical Network(IP) Physical Transport Network(IP) Physical (Send 2000 bytes) (ACK 500 bytes) TCP handling of fragmentation Up to destination port

Transport Network(IP) Physical Network(IP) Physical Transport Network(IP) Physical (Send 2000 bytes) (ACK 500 bytes) TCP handling of fragmentation Up to destination port

Transport Network(IP) Physical Network(IP) Physical Transport Network(IP) Physical (Send 2000 bytes) (ACK 500 bytes) TCP handling of fragmentation Up to destination port

What does the TCP frame look like? Source Port Destination Port LengthChecksum Data

And after TCP is encapsulated in IP? IP Header IP Trailer TCP

More TCP Issues

TCP handshake/setup time Host AHost B Ack 0, Syn 1 Ack 1, Syn 0 Ack 1, Syn 1 Ack 1, Syn setup data

TCP Frame Source Port Destination Port Sequence Number HeaderLengthFlags Acknowledgment Number Urgent Pointer Options DATA Checksum Window

Flow Control w/TCP Data … s=101, a=701 Data … s=201, a=701 Data … s=701, a=301, c=0 Data … s=801, a=301, c=200 Data … s=301, a=901 Data … s=401, a=901 AB B says STOP B says GO (up to 200)

UDP Issues

UDP basics At transport layer as alternative to TCP No connection establishment No Guaranteed Delivery Practically adds nothing to IP Application must guarantee delivery if necessary TCP and timing is hard for you to implement at the application layer UDP runs faster if delivery is not required to be error-free.

ICMP

ICMP Basics Lower than IP A support protocol for routing info/problems Doesn’t use ports Used in ping Frequently used to deny service.. problematic –ping of death (too large message), and –denial of service (ping flood) physical IP TCP/UDP ICMP

ICMP Message types Echo Request Echo Response Time Exceeded Destination Unreachable Redirect

IP Tunnelling Transport (IP) Physical Network(IP) Physical Apple talk Intermediate Routers only See IP Router CAN do AT in IP Receiving Router Inside Network (AT) Connected Network (AT) Transport (IP) Physical Apple talk

Transport (IP) Physical Apple talk IP Tunnelling at one end Physical Appletalk Physical Appletalk Appletalk to local Appletalk to non-local AT IP AT IP Route to Destination As IP

Summary