Dongsoo S. Kim Electrical and Computer Engineering Indiana U. Purdue U. Indianapolis

Size: px
Start display at page:

Download "Dongsoo S. Kim Electrical and Computer Engineering Indiana U. Purdue U. Indianapolis"

Transcription

1 Session 8. TCP/IP Dongsoo S. Kim Electrical and Computer Engineering Indiana U. Purdue U. Indianapolis IP Packet Version IHL Type of Service Total Length Identification Flags Fragment Offset Time to live Protocol Header checksum Source IP address Destination IP address Options Padding Version The current version is 4 Real-time stream protocol is 5 IPv6 uses

2 Version IHL Type of Service Total Length IP Packet, 2 IHL (Internet Header Length) In 32-bit word The default value is 5 (20 bytes) The maximum is 15 (60 bytes) TOS (Type of Service) 3-bit priority (precedence) Identification Flags Fragment Offset Time to live Protocol Header checksum Source IP address Destination IP address Options 4-bit specific requirement (delay, throughtput, reliability, cost) Ignored by most of IP routers Total Length In bytes Including header and data The maximum length is bytes Identification, Flags, and Fragment offset Used for fragmentation and reassembly Padding 8-3 Version IHL Type of Service Total Length IP Packet, 3 Identification Flags Fragment Offset Time to live Protocol Header checksum Source IP address TTL (Time To Live) Destination IP address The amount of time in seconds the packet is allowed to remain in the network Practically, indicate the number of hops the packet is allowed to travel Each router decrements this by one The router discards a packet with TTL=0, and send an error message Protocol 6 for TCP 17 for UDP 1 for ICMP Header checksum RFC 1071 Source IP address and Destination IP address Options Variable length For new protocols Padding To make the header a multiple of 32-bit words Options Padding 8-4 2

3 IP Address, Overview Two levels network ID and host ID A unique address to each computer? Dual-home server or router system has two or more IP addresses NAT (Network Address Translation) Address Classes Class A 0 Network ID Host ID Class B 10 Network ID Host ID Class C 110 Network ID Host ID Class D 1110 Multicast address Class E Reserved for experiments 8-5 IP Address, Structure Network Classes Class A 7-bit net ID, 24-bit host ID Class B 14-bit net ID, 16-bit host ID Class C 21 bit net ID, 8-bit host ID Class D 28-bit group ID for multicast services (MBONE) Class E reserved Special Host ID All zeroes network address All ones broadcast address Eg) IUPUI has an class B address ? IUPUI Network broadcast to all hosts in IUPUI network 8-6 3

4 IP Address, Notation Dotted-decimal Notation Each byte is represented by a DECIMAL number, separated by a dot Example Software Loopback address 127.x.y.z (mostly ) 8-7 Subnet Addressing Problem of fixed IP hierarchy IUPUI has a class B address, which supports 65,536 hosts How to organize this many hosts A router supporting 2 24 hosts (Class A), 2 16 hosts (Class B) The size of routing table and the time complexity for searching Subnet - another hierarchical level Flexible and transparent Subnet mask Indication of (net ID + subnet ID) with binary 1 s The portion of host ID contains all 0 s Example ( ) Notation of IP address (IP address/subnet mask) / , or /25 Operation of subnet mask Network_address = IP & MASK // Broadcast_address = IP ~MASK // Network ID Subnet ID Host ID 8-8 4

5 Address Assignment with Subnet H /25 H / / / Internet R / / / R2 H5 H / / / / / / /26 H3 H4 8-9 IP Routing An IP packet is either sent directly to the destination host, or send to an appropriate router To reduce the size of table, group address can be used Routing Table Search Search an host ID (a complete destination ID) Search an group ID Search a default gateway Not found host unreachable ICMP packet Router If the destination address is not its own, refer the routing table to determine the next hop Routing table for H1 Destination Mask Next Hop Flags H Interface Lo H Eth Direct G Eth0 Default Any G Eth

6 Classless Interdomain Routing (CIDR) Motivation Shortage of Class B address spaces No demand for Class C address spaces Gigantic Class A address spaces Solution Subnetting and Supernetting in routers with submask Supernet utilize contiguous class C addresses Routing Routing table with submask If there are two entries matching an address, use the longest prefix match first Mask Address Resolution Protocol (ARP) Between IP and a DL protocol Operation A host know the destination IP address, but not the destination MAC address ARP Table list of IP and MAC address (initially empty and aged) If a host need a MAC address, send an ARP request with MAC address The intended host sends back an ARP response with a MAC address :00:5A:C5:3B: :00:38:A4:3F:12 ARP Request - Broadcast :00:5A:C5:3B: ? ARP Response One2One :00:5A:C5:3B: :00:38:A4:3F:

7 Reverse Address Resolution Protocol (RARP) MAC address in a firmware; IP address in software Application Diskless X terminal Dynamic host configuration reuse IP address spaces RARP server Diskless X terminal 08:00:5A:C5:3B:94 RARP server :00:38:A4:3F:12 RARP Request - Broadcast? 08:00:5A:C5:3B:94 FF:FF:FF:FF:FF:FF RARP Response :00:5A:C5:3B: Fragmentation and Reassembly Maximum Transfer Unit (MTU) Ethernet 1500 bytes FDDI 4464 bytes An IP router can break an IP packet into smaller fragments whose size is no larger than the MTU of the forwarding physical network, unless it says don t The destination IP will reassemble the fragments. Note that intermediate routers won t reassemble them Fields for FAR (SAR:Segmentation and Reassembly) Identification Flags Fragment offset

8 Operation of FAR Identification The source host generates the unique ID Flags (3-bits) Unused bit DF bit (Don t Fragment) 1 force the router not to fragment the packet. If the packet length is greater than the MTU, the router will discard the packet and send an error message to the source MF bit (More Fragment) 1 tell the destination whether or not more fragments follow Offset Unit of 8-byte (why?) Between the beginning of the packet to be fragmented and the beginning of the fragment Intelligent Router (Switch) PPD (Partial Packet Discard) EPD (Early Packet Discard) 8-15 Example of FAR (34,000,0) Payload (1484 bytes) Router MTU=576 (34,000,138) Payload (380 bytes) 138x8=1104 (34,001,69) Payload (552 bytes) 69x8=552 (34,001,0) Payload (552 bytes)

9 Internet Control Message Protocol (ICMP) Send an error message back to the source to report routing problems To provide feedback, not to make IP reliable No ICMP message are sent about ICMP messages ICMP message are only sent about errors in handling fragment zero of fragmented datagrams Encapsulated by IP packets (Protocol=1) Type of ICMP Messages Destination Unreachable Message (3) Time Exceeded Message (11) Parameter Problem Message (12) Source Quench Message (4) Redirect Message (5) Echo Message(8) and Echo Reply Message (0) Timestamp Message (13) and Timestamp Reply Message (14) Information Request Message (15) and Information Reply Message (16) 8-17 User Datagram Protocol (UDP) Unreliable and connectionless Main functions: demultiplexing and error checking Applications TFTP (Trivial File Transfer Protocol) DNS (Domain Name System) SNMP (Simple Network Management Protocol) RTP (Real-time Transport Protocol) No checksum is calculated if the UDP checksum field contains all zero 0 Source Port UDP Length Destination Port UDP Checksum Data

10 Transmission Control Protocol (TCP) Connection-oriented, reliable, in-sequence, byte-stream, flow control Main functions Acknowledge Selective repeat ARQ Long sequence number to count the number of bytes (32bits, count up to 4 Gigabytes) Flow control Dynamic advertised window Advertised window size = buffer size (R new R next ) R new : the highest numbered byte that has been received correctly R next : the lowest numbered byte that has not yet been received correctly (the next byte it expects to receive) Retransmission Set a timer each time a segment is transmitted How much do we need to set? (Dynamic behavior of TCP/IP) Adaptive timer using the average round-trip time (t RTT ) Averaging samples in a real-time? Too much overhead! 8-19 Exponential Mean and Deviation The Fourth Mean, after arithmetic mean, harmonic mean, and geometric mean The weights α and β instruct how fast they can forget the history Suitable for a real-time computation One sample at a time Modification to an integer operation (addition, subtraction, multiplication, shift, but no division and floating-point) For samples x, x, L, x, x 1 2 n n+ 1, mean t = αt + (1 α) x deviation d n n = βd n 1 n 1 n + (1 β ) x n t n

11 Timeout Calculation t out = t + cd n n Notation t n : exponential mean of round-trip time d n : exponential deviation of round-trip time c: some constant If the round-trip time is highly fluctuated, then a larger timeout value is used If the round-trip time is stable, the timeout value is slightly larger than the mean 8-21 TCP Format, Overview Source Port Destination Port Sequence Number Acknowledgement Number Header Length Reserved U R G A C K P S H R S T S Y N F I N Window Size Checksum Urgent Pointer Options Padding Data

12 TCP Format, 1 Source port and Destination port: identify the sending and receiving applications Sequence number: the first data byte of this segment For the initial connection establishment (SYN=1), it is the init ial sequence number (ISN) Acknowledgement number: the sequence number of the next data byte expected to receive Header Length: the length of the TCP header in 32-bit words (to handle the variable option field) URG: the urgent field is valid if this is set ACK: the acknowledgement number filed is valid if this is set PSH: tells the receiver to handle this packet immediately (Flush) RST: tells the receiver to abort the connection (Reset) SYN: requests a connection FIN: tell the receiver there is no more data left (Final) 8-23 TCP Format, 2 Window size: dynamic advertised window size Checksum Urgent point: sequence # + urgent pt = the last byte of urgent data if URG=1 Options MSS (Maximum Segment Size) during connection setup

13 TCP, Connection Establishment Three-way Handshake Host A Host B SYN, Seq_no = x SYN, Seq_no = y, ACK, Ack_no = x+1 Seq_no = x+1, ACK, Ack_no = y TCP, Client/Server connect (blocks) Host A (Client) socket connect returns Write read (blocks) read returns SYN, Seq_no = x SYN, Seq_no = y, ACK, Ack_no = x+1 Seq_no = x+1, ACK, Ack_no = y+1 request message reply message Host B (Server) socket bind listen accept (blocks) accept returns read (blocks) read returns write read (blocks)

14 TCP, Data Transfer Host A Seq_no = 1, Ack_no = 2000, Win = 2048, No Data Host B t 0 t 1 Seq_no = 2000, Ack_no = 1, Win = 1024, Data = t 2 Seq_no = 3024, Ack_no = 1, Win = 1024, Data = piggyback t 4 Seq_no = 1, Ack_no = 4048, Win = 512, Data = Adjust window Seq_no = 4048, Ack_no = 129, Win = 1024, Data = t TCP, Connection Termination Host A Host B FIN, seq = 5086 ACK = 5087 Deliver 150 bytes Data, seq. = 303, ACK = 5087 ACK = 453 FIN, seq. =453, ACK = 5087 ACK =

15 Dynamic Host Configuration Protocol (DHCP) On BOOTP (Bootstrap Protocol), port # 67 for server, 68 for client Diskless workstation to be remotely booted up Assign temporary IP addresses to hosts Operation Broadcast DHCP Discover message The server responds with a DHCP Offer message (IP address and other configuration information) Select one DHCP offer among servers, and broadcast a DHCP Request message with the ID of the server The server sends a DHCP ACK message and assigns the IP address for some period of time The host can extend the expiration time 8-29 Overview of Routing Protocols Autonmous System (AS) Stub AS single-homed AS Multihomed AS multiple connection to the outside but no transit traffic Transit AS multiple connection to the outside and carry transit and local traffic Globally unique AS number (ASN) Classes of routing protocols Interior Gateway Protocol (IGP) within an AS, use IP addresses Deal with performance Routing Information Protocol (RIP) Open Shortest Path First (OSPF) Exterior Gateway Protocol (EGP) among AS s, use AS numbers Deal with policies Border Gateway Protocol (BGP)

16 Routing Information Protocol (RIP) Based on distance-vector algorithm Operating on UDP port number 520 Metrics the number of hops (maximum=15 and infinity=16) Exchange update message every 30 sec Use split horizon with poisoned reverse for a fast convergence The minimum cost to a given destination(y) is set to infinity if the neighbor(z) is the next node along the shortest path. A --- X --- Z -*- Y Z sends the infinity minimum cost(y) to X X sends the infinity minimum cost(y) to A 8-31 RIP Format Command 1 : request the other system to send its routing info 2 : response containing the routing info Version 1 : RIP-1, 2 : RIP-2 Addr Family ID (2 for IP) IP Address : Destination address either a network or host address Metric : # of hops to the destination in the range of 1 to 15, infinity(16) Command Version Zero Addr Family ID Zero IP address Zero Zero Metric RIP Entry Other RIP entries

17 Open Shortest Path First (OSPF) Base on the link-state routing algorithm IGP Features Multiple routes to a given destination, one for each IP TOS Support CIDR (Classless InterDomain Routing) Flexible link cost (16-bit) Load balancing over multiple paths Authentication for trusted neighbors Multicast rather than broadcast Election of designated router 8-33 OSPF, Basic Areas in OSPF Area ID (32 bit) Special area in an AS (backbone area: ) Types of routers in OSPF Internal router all links in the same area Area border router links connected to more than one area ABR summarizes one area information Backbone router links to the backbone AS border router links to another AS

18 OSPF, Sample N1 R1 N2 Internal Router Area Border Router Backbone Router R3 R4 To another AS Backbone Router AS Broder Router Area Border Router Backbone Router R6 N4 N5 R7 Internal Router Internal Router R2 Area R5 N3 Area R8 N7 Area Border Router Backbone Router Backbone Router Area N6 Area OSPF, Format Run directly over IP (Protocol 89) OSPF Header Packet Format Type Hello, Database description, Link-state request, Link-state update, Link-state acknowledgements OSPF Header Version (2) Type Packet Length (in byte) Router ID (sending router) Area ID Checksum Authentication type Authentication Authentication Data

19 OSPF, Operation Stage 1: discovery of neighbors, and election of designated routers Transmit hello packet to each interface every 10 sec Respond the hello packet attaching router Ids it has seen Elect designated router based on the priority and ID Stage 2: Establishing adjacencies and synchronizing database database description Flood link-state info within the area only ABR summarizes the info, and sends them to other area routers and ASBRs Stage 3: Propagation of link-state info, and building of routing table link-state request, link-state update, and link-state ack Use reliable flooding Repeated link-state update until receiving its acknowledge 8-37 Reading Assignment Leon-Garcia and Widjaja Communication Networks: Fundamental Concepts and Key Architecture 2000, pp

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

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia IP - The Internet Protocol Based on the slides of Dr. Jorg Liebeherr, University of Virginia Orientation IP (Internet Protocol) is a Network Layer Protocol. IP: The waist of the hourglass IP is the waist

More information

Vorlesung Kommunikationsnetze

Vorlesung Kommunikationsnetze Picture 15 13 Vorlesung Kommunikationsnetze Prof. Dr. H. P. Großmann mit B. Wiegel sowie A. Schmeiser und M. Rabel Sommersemester 2009 Institut für Organisation und Management von Informationssystemen

More information

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

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet Chapter 2 - Part 1 The TCP/IP Protocol: The Language of the Internet Protocols A protocol is a language or set of rules that two or more computers use to communicate 2 Protocol Analogy: Phone Call Parties

More information

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP IP ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP Peter R. Egli 1/37 Contents 1. IP Routing 2. Routing Protocols 3. Fragmentation in the IP Layer 4. Proxy ARP 5. Routing and IP forwarding

More information

IP Protocols. ALTTC/Oct

IP Protocols. ALTTC/Oct IP Protocols Internet or IP technology over the years has emerged as the most prominent data communication technology. TCP/IP protocol has become de-facto data comm standard throughout the world. It can

More information

ECE4110 Internetwork Programming. Introduction and Overview

ECE4110 Internetwork Programming. Introduction and Overview ECE4110 Internetwork Programming Introduction and Overview 1 EXAMPLE GENERAL NETWORK ALGORITHM Listen to wire Are signals detected Detect a preamble Yes Read Destination Address No data carrying or noise?

More information

EEC-684/584 Computer Networks

EEC-684/584 Computer Networks EEC-684/584 Computer Networks Lecture 14 wenbing@ieee.org (Lecture nodes are based on materials supplied by Dr. Louise Moser at UCSB and Prentice-Hall) Outline 2 Review of last lecture Internetworking

More information

Introduction to routing in the Internet

Introduction to routing in the Internet Introduction to routing in the Internet Internet architecture IPv4, ICMP, ARP Addressing, routing principles (Chapters 2 3 in Huitema) Internet-1 Internet Architecture Principles End-to-end principle by

More information

II. Principles of Computer Communications Network and Transport Layer

II. Principles of Computer Communications Network and Transport Layer II. Principles of Computer Communications Network and Transport Layer A. Internet Protocol (IP) IPv4 Header An IP datagram consists of a header part and a text part. The header has a 20-byte fixed part

More information

The Interconnection Structure of. The Internet. EECC694 - Shaaban

The Interconnection Structure of. The Internet. EECC694 - Shaaban The Internet Evolved from the ARPANET (the Advanced Research Projects Agency Network), a project funded by The U.S. Department of Defense (DOD) in 1969. ARPANET's purpose was to provide the U.S. Defense

More information

Introduction to routing in the Internet

Introduction to routing in the Internet Introduction to routing in the Internet Internet architecture IPv4, ICMP, ARP Addressing, routing principles (Chapters 2 3 in Huitema) Internet-1 Internet Architecture Principles End-to-end principle by

More information

CHAPTER-2 IP CONCEPTS

CHAPTER-2 IP CONCEPTS CHAPTER-2 IP CONCEPTS Page: 1 IP Concepts IP is a very important protocol in modern internetworking; you can't really comprehend modern networking without a good understanding of IP. Unfortunately, IP

More information

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

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst EITF25 Internet Techniques and Applications L7: Internet Stefan Höst What is Internet? Internet consists of a number of networks that exchange data according to traffic agreements. All networks in Internet

More information

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting Outline Routing Fundamentals of Computer Networks Guevara Noubir Introduction Broadcasting and Multicasting Shortest Path Unicast Routing Link Weights and Stability F2003, CSG150 Fundamentals of Computer

More information

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang CS 356: Computer Network Architectures Lecture 10: IP Fragmentation, ARP, and ICMP Xiaowei Yang xwy@cs.duke.edu Overview Homework 2-dimension parity IP fragmentation ARP ICMP Fragmentation and Reassembly

More information

TCP /IP Fundamentals Mr. Cantu

TCP /IP Fundamentals Mr. Cantu TCP /IP Fundamentals Mr. Cantu OSI Model and TCP/IP Model Comparison TCP / IP Protocols (Application Layer) The TCP/IP subprotocols listed in this layer are services that support a number of network functions:

More information

Topics for This Week

Topics for This Week Topics for This Week Routing Protocols in the Internet OSPF, BGP More on IP Fragmentation and Reassembly ICMP Readings Sections 5.6.4-5.6.5 1 Hierarchical Routing aggregate routers into regions, autonomous

More information

TSIN02 - Internetworking

TSIN02 - Internetworking Lecture 2: The Internet Protocol Literature: Forouzan: ch 4-9 and ch 27 2004 Image Coding Group, Linköpings Universitet Outline About the network layer Tasks Addressing Routing Protocols 2 Tasks of the

More information

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

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer 1 CPSC 826 Intering The Network Layer: Routing & Addressing Outline The Network Layer Michele Weigle Department of Computer Science Clemson University mweigle@cs.clemson.edu November 10, 2004 Network layer

More information

TCP/IP Networking. Part 4: Network and Transport Layer Protocols

TCP/IP Networking. Part 4: Network and Transport Layer Protocols TCP/IP Networking Part 4: Network and Transport Layer Protocols Orientation Application Application protocol Application TCP TCP protocol TCP IP IP protocol IP IP protocol IP IP protocol IP Network Access

More information

Basic Idea. Routing. Example. Routing by the Network

Basic Idea. Routing. Example. Routing by the Network Basic Idea Routing Routing table at each router/gateway When IP packet comes, destination address checked with routing table to find next hop address Questions: Route by host or by network? Routing table:

More information

Routing by the Network

Routing by the Network Routing Basic Idea Routing table at each router/gateway When IP packet comes, destination address checked with routing table to find next hop address Questions: Route by host or by network? Routing table:

More information

Chapter 8 Communication Networks and Services

Chapter 8 Communication Networks and Services Chapter 8 Communication Networks and Services The TCP/IP Architecture The Internet Protocol IPv6 Transport Layer Protocols Internet Routing Protocols Multicast Routing DHCP, NAT, and Mobile IP Chapter

More information

Networking Technologies and Applications

Networking Technologies and Applications Networking Technologies and Applications Rolland Vida BME TMIT Transport Protocols UDP User Datagram Protocol TCP Transport Control Protocol and many others UDP One of the core transport protocols Used

More information

User Datagram Protocol

User Datagram Protocol Topics Transport Layer TCP s three-way handshake TCP s connection termination sequence TCP s TIME_WAIT state TCP and UDP buffering by the socket layer 2 Introduction UDP is a simple, unreliable datagram

More information

The Network Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax.

The Network Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax. The Network Layer Nixu Oy PL 21 (Mäkelänkatu 91) 00601 Helsinki, Finland tel. +358 9 478 1011 fax. +358 9 478 1030 info@nixu.fi http://www.nixu.fi OVERVIEW The Internet Protocol IP addresses, address resolution

More information

Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I

Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I Hello and welcome to today s lecture on TCP/IP. (Refer Slide

More information

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

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane This presentation is adapted from slides produced by Jim Kurose and Keith Ross for their book, Computer Networking:

More information

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca Based partly on lecture notes by David Mazières, Phil Levis, John Janno< Administrivia IP out today. Your job: Find partners and tell us Implement

More information

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address Outline IP The Internet Protocol o IP Address IP subnetting CIDR o ARP Protocol o IP Function o Fragmentation o NAT o IPv6 2 IP Address o Hostname & IP Address IP Address o The Address ping www.nu.ac.th

More information

HY 335 Φροντιστήριο 8 ο

HY 335 Φροντιστήριο 8 ο HY 335 Φροντιστήριο 8 ο Χειμερινό Εξάμηνο 2009-2010 Παπακωνσταντίνου Άρτεμις artpap@csd.uoc.gr 4/12/2009 Roadmap IP: The Internet Protocol IPv4 Addressing Datagram Format Transporting a datagram from source

More information

Computer Networks ICS 651. IP Routing RIP OSPF BGP MPLS Internet Control Message Protocol IP Path MTU Discovery

Computer Networks ICS 651. IP Routing RIP OSPF BGP MPLS Internet Control Message Protocol IP Path MTU Discovery Computer Networks ICS 651 IP Routing RIP OSPF BGP MPLS Internet Control Message Protocol IP Path MTU Discovery Routing Information Protocol DV modified with split horizon and poisoned reverse distance

More information

EE 610 Part 2: Encapsulation and network utilities

EE 610 Part 2: Encapsulation and network utilities EE 610 Part 2: Encapsulation and network utilities Objective: After this experiment, the students should be able to: i. Understand the format of standard frames and packet headers. Overview: The Open Systems

More information

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri Department of Computer and IT Engineering University of Kurdistan Network Layer By: Dr. Alireza Abdollahpouri What s the Internet: nuts and bolts view PC server wireless laptop cellular handheld millions

More information

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097 Chair for Network Architectures and Services Prof. Carle Department for Computer Science TU München Master Course Computer Networks IN2097 Prof. Dr.-Ing. Georg Carle Christian Grothoff, Ph.D. Chair for

More information

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall: Network Layer The Network Layer Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control 1 2 Contents 4.1.1 Connection-Oriented and Connectionless

More information

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control The Network Layer 1 Network Layer Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control 2 Contents Connection-Oriented (virtual circuit)

More information

Internet Protocols (chapter 18)

Internet Protocols (chapter 18) Internet Protocols (chapter 18) CSE 3213 Fall 2011 Internetworking Terms 1 TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol

More information

IPv4. Christian Grothoff.

IPv4. Christian Grothoff. IPv4 christian@grothoff.org http://grothoff.org/christian/ Sites need to be able to interact in one single, universal space. Tim Berners-Lee 1 The Network Layer Transports datagrams from sending to receiving

More information

Internetworking Part 2

Internetworking Part 2 CMPE 344 Computer Networks Spring 2012 Internetworking Part 2 Reading: Peterson and Davie, 3.2, 4.1 19/04/2012 1 Aim and Problems Aim: Build networks connecting millions of users around the globe spanning

More information

internet technologies and standards

internet technologies and standards Institute of Telecommunications Warsaw University of Technology 2017 internet technologies and standards Piotr Gajowniczek Andrzej Bąk Michał Jarociński Network Layer The majority of slides presented in

More information

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols Guide to Networking Essentials, 6 th Edition Chapter 5: Network Protocols Objectives Describe the purpose of a network protocol, the layers in the TCP/IP architecture, and the protocols in each TCP/IP

More information

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing Network layer: Overview Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing 1 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

Part 4. Wide Area Networks (WAN)

Part 4. Wide Area Networks (WAN) Part 4 Wide Area Networks (WAN) Wide Area Networks (WAN) Network spread over a large geographical area All machines in a network may not be directly connected to each other due to large number geographically

More information

K2289: Using advanced tcpdump filters

K2289: Using advanced tcpdump filters K2289: Using advanced tcpdump filters Non-Diagnostic Original Publication Date: May 17, 2007 Update Date: Sep 21, 2017 Topic Introduction Filtering for packets using specific TCP flags headers Filtering

More information

Network layer: Overview. Network Layer Functions

Network layer: Overview. Network Layer Functions Network layer: Overview Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing 1 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

Chapter 12 Network Protocols

Chapter 12 Network Protocols Chapter 12 Network Protocols 1 Outline Protocol: Set of defined rules to allow communication between entities Open Systems Interconnection (OSI) Transmission Control Protocol/Internetworking Protocol (TCP/IP)

More information

TSIN02 - Internetworking

TSIN02 - Internetworking Lecture 2: Internet Protocol Literature: Forouzan: ch (4-6), 7-9 and ch 31 2004 Image Coding Group, Linköpings Universitet Lecture 2: IP Goals: Understand the benefits Understand the architecture IPv4

More information

Network Layer: Internet Protocol

Network Layer: Internet Protocol Network Layer: Internet Protocol Motivation Heterogeneity Scale Intering IP is the glue that connects heterogeneous s giving the illusion of a homogenous one. Salient Features Each host is identified by

More information

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS 1. General (5p) a) The so-called hourglass model (sometimes referred to as a wine-glass ) has been used

More information

TCPIP Protocol Suite & Utilities. Revision no.: PPT/2K403/02

TCPIP Protocol Suite & Utilities. Revision no.: PPT/2K403/02 TCPIP Protocol Suite & Utilities Revision no.: PPT/2K403/02 Comparing the TCP/IP protocol Suite, the OSI Model, and the DoD Model Comparing the TCP/IP protocol Suite, the OSI Model, and the DoD Model (contd.)

More information

Chapter 09 Network Protocols

Chapter 09 Network Protocols Chapter 09 Network Protocols Copyright 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 1 Outline Protocol: Set of defined rules to allow communication between entities Open Systems

More information

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing Last time Network layer Introduction forwarding vs. routing Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding tables, longest prefix matching IP: the Internet Protocol

More information

EEC-484/584 Computer Networks

EEC-484/584 Computer Networks EEC-484/584 Computer Networks Lecture 13 wenbing@ieee.org (Lecture nodes are based on materials supplied by Dr. Louise Moser at UCSB and Prentice-Hall) Outline 2 Review of lecture 12 Routing Congestion

More information

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

CSCI-1680 Network Layer: IP & Forwarding John Jannotti CSCI-1680 Network Layer: IP & Forwarding John Jannotti Based partly on lecture notes by David Mazières, Phil Levis, Rodrigo Fonseca Administrivia IP out today. Your job: Find partners, get setup with Github

More information

SEN366 (SEN374) (Introduction to) Computer Networks

SEN366 (SEN374) (Introduction to) Computer Networks SEN366 (SEN374) (Introduction to) Computer Networks Prof. Dr. Hasan Hüseyin BALIK (12 th Week) The Internet Protocol 12.Outline Principles of Internetworking Internet Protocol Operation Internet Protocol

More information

Router Architecture Overview

Router Architecture Overview Chapter 4: r Introduction (forwarding and routing) r Review of queueing theory r Router design and operation r IP: Internet Protocol m IPv4 (datagram format, addressing, ICMP, NAT) m Ipv6 r Generalized

More information

TCP/IP Protocol Suite

TCP/IP Protocol Suite TCP/IP Protocol Suite Computer Networks Lecture 5 http://goo.gl/pze5o8 TCP/IP Network protocols used in the Internet also used in today's intranets TCP layer 4 protocol Together with UDP IP - layer 3 protocol

More information

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols Top-Down Network Design Chapter Seven Selecting Switching and Routing Protocols Copyright 2010 Cisco Press & Priscilla Oppenheimer 1 Switching 2 Page 1 Objectives MAC address table Describe the features

More information

ET4254 Communications and Networking 1

ET4254 Communications and Networking 1 Topic 9 Internet Protocols Aims:- basic protocol functions internetworking principles connectionless internetworking IP IPv6 IPSec 1 Protocol Functions have a small set of functions that form basis of

More information

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ... 1 Inter-networking COS 460 & 540 2 Problem 3 LAN s are great but We want to connect them together...across the world Inter-networking 4 Internet Protocol (IP) Routing The Internet Multicast* Multi-protocol

More information

Chapter 4: Network Layer

Chapter 4: Network Layer Chapter 4: Introduction (forwarding and routing) Review of queueing theory Routing algorithms Link state, Distance Vector Router design and operation IP: Internet Protocol IPv4 (datagram format, addressing,

More information

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it Lecture 4 The Network Layer Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it Network layer functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

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

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6 RMIT University Data Communication and Net-Centric Computing COSC 1111/2061 Internetworking IPv4, IPv6 Technology Slide 1 Lecture Overview During this lecture, we will understand The principles of Internetworking

More information

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Today Network layer: Internet Protocol (v4) Forwarding Next 2 classes:

More information

The Internet. The Internet is an interconnected collection of netw orks.

The Internet. The Internet is an interconnected collection of netw orks. The Internet The Internet is an interconnected collection of netw orks. Internetw orking-1 Internetworking! Communications Network: A facility that provides a data transfer service among stations attached

More information

Introduction to Networks and the Internet

Introduction to Networks and the Internet Introduction to Networks and the Internet CMPE 80N Announcements Project 2. Reference page. Library presentation. Internet History video. Spring 2003 Week 7 1 2 Today Internetworking (cont d). Fragmentation.

More information

Chapter 2 Advanced TCP/IP

Chapter 2 Advanced TCP/IP Tactical Perimeter Defense 2-1 Chapter 2 Advanced TCP/IP At a Glance Instructor s Manual Table of Contents Overview Objectives Teaching Tips Quick Quizzes Class Discussion Topics Additional Projects Additional

More information

The Internet Protocol (IP)

The Internet Protocol (IP) The Internet Protocol (IP) The Blood of the Internet (C) Herbert Haas 2005/03/11 "Information Superhighway is really an acronym for 'Interactive Network For Organizing, Retrieving, Manipulating, Accessing

More information

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Network Layer PREPARED BY AHMED ABDEL-RAOUF Network Layer PREPARED BY AHMED ABDEL-RAOUF Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on receiving side, delivers segments to transport

More information

University of Toronto Faculty of Applied Science and Engineering. Final Exam, December ECE 461: Internetworking Examiner: J.

University of Toronto Faculty of Applied Science and Engineering. Final Exam, December ECE 461: Internetworking Examiner: J. University of Toronto Faculty of Applied Science and Engineering Final Exam, December 2009 ECE 461: Internetworking Examiner: J. Liebeherr Exam Type: A Calculator: Type 2 There are a total of 10 problems.

More information

Protocols. End-to-end connectivity (host-to-host) Process-to-Process connectivity Reliable communication

Protocols. End-to-end connectivity (host-to-host) Process-to-Process connectivity Reliable communication Protocols Tasks End-to-end connectivity (host-to-host) Process-to-Process connectivity Reliable communication Error detection Error recovery, e.g. forward error correction or retransmission Resource management

More information

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly The Internet Protocol IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly IP Addresses IP Addresses are 32 bit. Written in dotted decimal format:

More information

TCP/IP Networking. Training Details. About Training. About Training. What You'll Learn. Training Time : 9 Hours. Capacity : 12

TCP/IP Networking. Training Details. About Training. About Training. What You'll Learn. Training Time : 9 Hours. Capacity : 12 TCP/IP Networking Training Details Training Time : 9 Hours Capacity : 12 Prerequisites : There are no prerequisites for this course. About Training About Training TCP/IP is the globally accepted group

More information

The Network Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax.

The Network Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax. The Network Layer Nixu Oy PL 21 (Mäkelänkatu 91) 00601 Helsinki, Finland tel. +358 9 478 1011 fax. +358 9 478 1030 info@nixu.fi http://www.nixu.fi OVERVIEW The Internet Protocol IP addresses, address resolution

More information

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

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1 Internet Protocol Runs on all hosts in the Internet and enables packets to be routed between systems

More information

Chapter 19 Network Layer: Logical Addressing

Chapter 19 Network Layer: Logical Addressing Chapter 19 Network Layer: Logical Addressing 19.1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 19.2 19-1 IPv4 ADDRESSES An IPv4 address is a 32-bit address

More information

(Chapters 2 3 in Huitema) E7310/Internet basics/comnet 1

(Chapters 2 3 in Huitema) E7310/Internet basics/comnet 1 Introduction to routing in the Internet Ethernet, switching vs. routing Internet architecture IPv4 Addressing Routing principles Protocols: IPv4, ICMP, ARP (Chapters 2 3 in Huitema) E7310/Internet basics/comnet

More information

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

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers Layer 4: UDP, TCP, and others based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers Concepts application set transport set High-level, "Application Set" protocols deal only with how handled

More information

Lecture 8. Network Layer (cont d) Network Layer 1-1

Lecture 8. Network Layer (cont d) Network Layer 1-1 Lecture 8 Network Layer (cont d) Network Layer 1-1 Agenda The Network Layer (cont d) What is inside a router Internet Protocol (IP) IPv4 fragmentation and addressing IP Address Classes and Subnets Network

More information

Examination 2D1392 Protocols and Principles of the Internet 2G1305 Internetworking 2G1507 Kommunikationssystem, fk SOLUTIONS

Examination 2D1392 Protocols and Principles of the Internet 2G1305 Internetworking 2G1507 Kommunikationssystem, fk SOLUTIONS Examination 2D1392 Protocols and Principles of the Internet 2G1305 Internetworking 2G1507 Kommunikationssystem, fk Date: January 17 th 2006 at 14:00 18:00 SOLUTIONS 1. General (5p) a) Draw the layered

More information

Lecture 11: IP routing, IP protocols

Lecture 11: IP routing, IP protocols Lecture 11: IP routing, IP protocols Contents Routing principles Local datagram delivery ICMP Protocol UDP Protocol TCP/IP Protocol Assuring requirements for streaming TPC Building and terminating TCP

More information

Internetworking - We are heterogeneity to our network (variable network technologies, bandwidth, MTU, latency, etc. etc.)

Internetworking - We are heterogeneity to our network (variable network technologies, bandwidth, MTU, latency, etc. etc.) Internetworking - We are heterogeneity to our network (variable network technologies, bandwidth, MTU, latency, etc. etc.) Goal is to use this opportunity (and not to find the lowest common denominator

More information

Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents Table of Contents Table of Contents Chapter 1 Static Routing Configuration... 1-1 1.1 Introduction... 1-1 1.1.1 Static Route... 1-1 1.1.2 Default Route... 1-1 1.1.3 Application Environment of Static Routing...

More information

ICS 451: Today's plan

ICS 451: Today's plan ICS 451: Today's plan ICMP ping traceroute ARP DHCP summary of IP processing ICMP Internet Control Message Protocol, 2 functions: error reporting (never sent in response to ICMP error packets) network

More information

Unit 3: Dynamic Routing

Unit 3: Dynamic Routing Unit 3: Dynamic Routing Basic Routing The term routing refers to taking a packet from one device and sending it through the network to another device on a different network. Routers don t really care about

More information

TSIN02 - Internetworking

TSIN02 - Internetworking TSIN02 - Internetworking Literature: Lecture 4: Transport Layer Forouzan: ch 11-12 Transport layer responsibilities UDP TCP 2004 Image Coding Group, Linköpings Universitet 2 Transport layer in OSI model

More information

Introduction to Internetworking

Introduction to Internetworking Introduction to Internetworking Introductory terms Communications Network Facility that provides data transfer services An internet Collection of communications networks interconnected by bridges and/or

More information

IP - The Internet Protocol

IP - The Internet Protocol IP - The Internet Protocol 1 Orientation IP s current version is Version 4 (IPv4). It is specified in RFC 891. TCP UDP Transport Layer ICMP IP IGMP Network Layer ARP Network Access Link Layer Media 2 IP:

More information

Chapter 4 Network Layer

Chapter 4 Network Layer Sungkyunkwan University Chapter 4 Network Layer Prepared by H. Choo 2018-Fall Computer Networks Copyright 2000-2014 2000-2018 Networking Laboratory 1/52 Presentation Outline 4.1 Introduction 4.2 Network-Layer

More information

IP : Internet Protocol

IP : Internet Protocol 1/20 IP : Internet Protocol Surasak Sanguanpong nguan@ku.ac.th http://www.cpe.ku.ac.th/~nguan Last updated: July 30, 1999 Agenda 2/20 IP functions IP header format Routing architecture IP layer 3/20 defines

More information

Networking Fundamentals

Networking Fundamentals Networking Fundamentals Network Startup Resource Center www.nsrc.org These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license (http://creativecommons.org/licenses/by-nc/4.0/)

More information

Internetworking With TCP/IP

Internetworking With TCP/IP Internetworking With TCP/IP Vol II: Design, Implementation, and Internals SECOND EDITION DOUGLAS E. COMER and DAVID L. STEVENS Department of Computer Sciences Purdue University West Lafayette, IN 47907

More information

CSC 401 Data and Computer Communications Networks

CSC 401 Data and Computer Communications Networks CSC 401 Data and Computer Communications Networks Network Layer IPv4, Format and Addressing,, IPv6 Prof. Lina Battestilli Fall 2017 Chapter 4 Outline Network Layer: Data Plane 4.1 Overview of Network layer

More information

Packet Header Formats

Packet Header Formats A P P E N D I X C Packet Header Formats S nort rules use the protocol type field to distinguish among different protocols. Different header parts in packets are used to determine the type of protocol used

More information

ECE 428 Internet Protocols (Network Layer: Layer 3)

ECE 428 Internet Protocols (Network Layer: Layer 3) ECE 428 Internet Protocols (Network Layer: Layer 3) 1 Done so far MAC protocols (with PHYsical layer) Transport bits from one node to another. Key element: Determine WHEN to transmit DLC protocol (running

More information

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen Lecture 4 - Network Layer Networks and Security Jacob Aae Mikkelsen IMADA September 23, 2013 September 23, 2013 1 / 67 Transport Layer Goals understand principles behind network layer services: network

More information

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting Quiz v 10/30/2013 (Wednesday), 20 mins v Midterm question (available on website) v TCP basics Segment structure and fields Flow control (rwnd) Timeout interval v TCP Congestion control Phases transition

More information

Module 7 Internet And Internet Protocol Suite

Module 7 Internet And Internet Protocol Suite Module 7 Internet And Internet Protocol Suite Lesson 22 IP addressing. ICMP LESSON OBJECTIVE General The lesson will continue the discussion on IPv4 along with the idea of ICMP. Specific The focus areas

More information

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link. Internet Layers Application Application Transport Transport Network Network Network Network Link Link Link Link Ethernet Fiber Optics Physical Layer Wi-Fi ARP requests and responses IP: 192.168.1.1 MAC:

More information