Chapter 09 Network Protocols

Similar documents
Chapter 12 Network Protocols

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

Da t e: August 2 0 th a t 9: :00 SOLUTIONS

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

Internet Control Message Protocol (ICMP)

Internet Protocol, Version 6

Novell TCP IP for Networking Professionals.

ECE4110 Internetwork Programming. Introduction and Overview

Networking: Network layer

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

Need For Protocol Architecture

Need For Protocol Architecture

TSIN02 - Internetworking

TSIN02 - Internetworking

TSIN02 - Internetworking

Guide To TCP/IP, Second Edition UDP Header Source Port Number (16 bits) IP HEADER Protocol Field = 17 Destination Port Number (16 bit) 15 16

Goals and topics. Verkkomedian perusteet Fundamentals of Network Media T Circuit switching networks. Topics. Packet-switching networks

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

Example questions for the Final Exam, part A

TCP over wireless links

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

TCP /IP Fundamentals Mr. Cantu

TSIN02 - Internetworking

User Datagram Protocol

Networking for Data Acquisition Systems. Fabrice Le Goff - 14/02/ ISOTDAQ

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.

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

Vorlesung Kommunikationsnetze

TCP/IP Protocol Suite

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

Introduction to Internetworking

Lecture 3. The Network Layer (cont d) Network Layer 1-1

IP Protocols. ALTTC/Oct

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

Computer Networks (Introduction to TCP/IP Protocols)

Information Network Systems The network layer. Stephan Sigg

TSIN02 - Internetworking

EEC-684/584 Computer Networks

Review. Some slides are in courtesy of J. Kurose and K. Ross

Chapter 19 Network Layer: Logical Addressing

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

Introduction to Open System Interconnection Reference Model

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

IPv6: An Introduction

Network Layer (4): ICMP

The Internet Protocol (IP)

Acknowledgments. Part One - Introduction to the TCP/IP Protocol

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

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

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

Networks Fall This exam consists of 10 problems on the following 13 pages.

Chapter 7. Local Area Network Communications Protocols

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

IPv6. IPv4 & IPv6 Header Comparison. Types of IPv6 Addresses. IPv6 Address Scope. IPv6 Header. IPv4 Header. Link-Local

Topics for This Week

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

ET4254 Communications and Networking 1

NETWORK PACKET ANALYSIS PROGRAM

ICMP (Internet Control Message Protocol)

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

II. Principles of Computer Communications Network and Transport Layer

Review of Important Networking Concepts

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

Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

Internetwork Protocols

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

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

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

CHAPTER-2 IP CONCEPTS

Lecture Computer Networks

Network Layer: Internet Protocol

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

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

Internetworking Part 2

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

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

Lecture 18 Overview. Last Lecture. This Lecture. Next Lecture. Internet Protocol (1) Internet Protocol (2)

UNIT IV -- TRANSPORT LAYER

Network and Security: Introduction

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

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

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

IPng (IPv6) Motivation. Currently: mainly servers, workstations, SLIP/PPP Address space exhaustion + new uses:

Internet Protocols (chapter 18)

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

Mobile Transport Layer

ICS 351: Networking Protocols

This tutorial will help you in understanding IPv4 and its associated terminologies along with appropriate references and examples.

Foreword xxiii Preface xxvii IPv6 Rationale and Features

internet technologies and standards

Networking Technologies and Applications

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

Outline 9.2. TCP for 2.5G/3G wireless

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

Chapter 5 Network Layer

Computer Network Programming. The Transport Layer. Dr. Sam Hsu Computer Science & Engineering Florida Atlantic University

Paper solution Subject: Computer Networks (TE Computer pattern) Marks : 30 Date: 5/2/2015

Mobile Communications Chapter 9: Mobile Transport Layer

OSI Transport Layer. objectives

Transcription:

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 Interconnection (OSI) Transmission Control Protocol / Internetworking Protocol (TCP/IP) TCP over wireless Internet Protocol version 6 (IPv6) Summary Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 2

OSI Model Application Presentation Session Transport Network Data link Physical Layer 7 Layer 6 Layer 5 Layer 4 Layer 3 Layer 2 Layer 1 7 layer OSI model Copyright 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 3

Physical Layer Functions Establishment and termination of a connection to a communication medium Process for effective use of communication resources Conversion between representation of digital data Physical characteristics of interfaces and media Representation of bits, transmission rate, synchronization of bits. Link configuration Physical topology, and transmission mode Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 4

Data Link Layer Functions Provides functional and procedural means to transfer data between network entities. Responds to service requests from the network layer and issues requests to the physical layer. Concerned with: Framing Physical addressing Flow Control Error Control Access Control Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 5

Network Layer Functions Provides for transfer of variable length sequences from source to destination via one or more networks Responds to service requests from the transport layer and issues requests to the data link layer Concerned with: Logical addressing Routing Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 6

Transport Layer Functions Provides transparent data transfer between end users Responds to service requests from the session layer and issues requests to the network layer. Concerned with: Service-point addressing Segmentation and reassembly Connection control; Flow Control Error Control Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 7

Session Layer Functions Provides mechanism for managing a dialogue between end-user application processes Responds to service requests from the presentation layer and issues requests to the transport layer Supports duplex or half- duplex operations. Concerned with: Dialogue control Synchronization Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 8

Presentation Layer Functions Relieves application layer from concern regarding syntactical differences in data representation with end-user systems Responds to service requests from the application layer and issues requests to the session layer Concerned with: Translation Encryption Compression Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 9

Application Layer Functions Interfaces directly to and performs common application services for application processes Issues service requests to the Presentation layer Specific services provided: Network virtual terminal File transfer, access and management Mail services Directory services Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 10

TCP/IP Protocol TCP/IP protocol consists of five layers The lower four layers correspond to the layer of the OSI model The application layer of the TCP/IP model represents the three topmost layers of the OSI model Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 11

TCP/IP Protocol stack OSI layers TCP/IP layers Application Presentation Session DNS Application FTP, Telnet, SMTP Transport TCP UDP Network IP OSPF DHCP ICMP IGMP Data link Physical Lower level vendor implementations Copyright 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 12

Internet Protocol (IP) Provides connection-less, best-effort service for delivery of packets through the inter-network Best-effort: No error checking or tracking done for the sequence of packets (datagrams) being transmitted Upper layer should take care of sequencing Datagrams transmitted independently and may take different routes to reach same destination Fragmentation and reassembly supported to handle data links with different maximum transmission unit (MTU) sizes Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 13

Internet Control Message Protocol (ICMP) The Internet Control Message Protocol (ICMP) is one of the core protocols of the Internet Protocol Suite Companion protocol to IP Provides mechanisms for error reporting and query to a host or a router a requested service is not available or that a host or router could not be reached Query message used to probe the status of a host or a router Error reporting messages used by the host and the routers to report errors Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 14

Internet Group Management Protocol (IGMP) Used to maintain multicast group membership within a domain Similar to ICMP, IGMP query and reply messages are used by routers to maintain multicast group membership Periodic IGMP query messages are used to find new multicast members within the domain A member sends a IGMP join message to the router, which takes care of joining the multicast tree Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 15

IGMP IGMP operates between the client computer and a local multicast router. Switches featuring IGMP snooping derive useful information by observing these IGMP transactions. Protocol Independent Multicast (PIM) is then used between the local and remote multicast routers, to direct multicast traffic from the multicast server to many multicast clients. IGMP operates above the network layer, though it does not actually act as a transport protocol. Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 16

Dynamic Host Configuration Protocol (DHCP) Used to assign IP addresses dynamically in a domain Extension to Bootstrap Protocol (BOOTP) BOOTP is a network protocol used by a network client to obtain an IP address from a configuration server Node Requests an IP address from DHCP server Helps in saving IP address space by using same IP address to occasionally connecting hosts Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 17

Internet Routing Protocols Intradomain Routing Distance Vector Routing Information Protocol (RIP) Distance information about all the nodes is conveyed to the neighbors. Open Shortest Path First (OSPF) Based on shortest path algorithm, sometimes also known as Dijkstra algorithm Hosts are partitioned in to autonomous systems (AS) AS is further partitioned in to OSPF areas that helps boarder routers to identify every single node in the area Link-state advertisements sent to all routers within the same hierarchical area Border Gateway Protocol (BGP) Intra-autonomous systems communicate with each other using path vector routing protocol Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 18

Application Layer TCP Top three layers (session, presentation, and application) merged into application layer Routing using Bellman-Ford Algorithm -1 4 6 1 3 2 1 3 3 2 4 0 3 Root A routing table maintained at each node, indicating the best known distance and next hop to get there Calculate w(u,v), is the cost associated with edge uv Calculate d(u), the distance of node u from a root node For each uv, find minimum d(u,v) Repeat n-1 times for n-nodes Abstract model of a wireless network in the form of a graph Copyright 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 19

TCP (ctd) -1 6 3 4 1 3 3 1 2 4 Abstract model of a wireless network in the form of a graph 2 0 3 Root To Node 0 1 2 3 4 Pass 0 0 8 8 8 8 8 Pass 1 0 3 2 8 Pass 2 0 7 3 1 2 Pass 3 0 4 3 1 2 Pass 4 0 4 3 1 2 To Node 0 1 2 3 4 Pass 0 * 8 8 8 8 Pass 1 * 0 0 8 8 Pass 2 * 2 0 4 0 Pass 3 * 3 0 4 0 Pass 4 * 3 0 4 0 Successive calculation of distance D(u) Predecessor from Node 0 to other network from Node 0 Nodes Copyright 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 20

Solutions for Wireless Environment Networking layering provides good abstraction Wireless networking interference limited. Information delivery capability depends on current channel quality Adoption in physical and link layer broadcast could lead to efficient resource usage Changes need to be made in MSs and mobile access points to ensure compatibility Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 21

End-to-End Solutions End-to-End protocols attempts to make the TCP sender handle losses through the use of two techniques. Internet employs TCP/IP protocol stack. Most of the applications require reliable transmission layer (mostly TCP) Wireless network must support existing applications Limitations of wired version of TCP Routing Information Protocol (RIP) Packet loss can occur because of random errors as well as due to congestion Decreases efficiency due to TCP s Congestion avoidance Many other problems like mobility support demands modification in TCP Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 22

Solutions for Wireless Environment TCP-SACK Selective Acknowledgement and Selective Retransmission. Sender can retransmit missing data due to random errors/mobility WTCP (wireless wide-area transmission control protocol) Separate flows for wired (Sender to BS) and wireless (BS to MS) segments of TCP connections Local Retransmission for mobile link breakage BS sends ACK to sender after Timestamp modification to avoid change in round trip estimates Freeze-TCP Protocol Mobile detects impending handoff Advertises Zero Window size, to force the sender into Zero Window Probe mode Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 23

Solutions for Wireless Environment (Cont d) Explicit Band State Notification (EBSN) Local Retransmission from BS to shield wireless link errors EBSN message from BS to Source during local recovery Source Resets its timeout value after receiving EBSN Fast Retransmission Approach Tries to reduce the effect of MS handoff MS after handoff sends certain number of duplicate ACKs Avoids coarse time-outs at the sender, Accelerates retransmission Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 24

Solutions for Wireless Environment (Link Layer Protocols) Transport Unaware Link Improvement Protocol (TULIP) Provides Service Aware Link Layer Reliable Service for TCP packets, unreliable service for UDP Packets AIRMAIL Protocol Asymmetric Reliable Mobile Access in Link Layer Uses combination of FEC and ARQ for loss recovery Snoop Protocol Transport layer aware Snoop Agent at BS Agent monitors all TCP segments destined to MS, caches it in buffer Also monitors ACKs from MS Loss detected by duplicate ACKs from MS or local time-out Local Retransmission of missing segment if cached Suppresses the duplicate ACKs Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 25

Solutions for Wireless Environment (Split TCP Approach) Indirect-TCP (I-TCP) Split the connection into wired component and wireless component Specialized support for mobile applications for wireless side. Wired side is left unchanged M-TCP Protocol Split the connection into wired component and wireless component BS relays ACKs for sender only after receiving ACKs from MS In case of frequent disconnections, Receiver can signal Sender to enter in persist mode by advertising Zero Window size Copyright 2010, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 26

Internet Protocol Version 6 (IPv6) Designed to address the unforeseen growth of the internet and the limited address space provided by IPv4 Features of IPv6: Enhanced Address Space: 128 bits long, can solve the problem created by limited IPv4 address space (32 bits) Resource Allocation: By using Flow Label, a sender can request special packet handling Modified Address Format: Options and Base Header are separated which speeds up the routing process Support for Security: Encryption and Authentication options are supported in option header Copyright 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 27

IPv4 Header Format Version (4 bits) Header length (4 bits) Type of service (8 bits) Total length (16 bits) Identification (16 bits) Flags (3 bits) Fragment offset (13 bits) Time to live (8 bits) Protocol (8 bits) Header checksum (16 bits) Source address (32 bits) Destination address (32 bits) Options and padding (if any) Copyright 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 28

IPv6 Header Format Address Space Resource Allocation Modified Header Format Support for Security Version Traffic Class Flow Label Payload Length Next Header Source Address Destination Address Data Hop Limit Copyright 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 29

Format of IPv6 Name Bits Function Version 4 IPv6 version number Traffic Class 8 Internet traffic priority delivery value Flow Label 20 Used for specifying special router handling from source to destination(s) for a sequence of packets Payload Length 16, unsigned Specifies the length of the data in the packet. When set to zero, the option is a hop-by-hop Jumbo payload Next Header 8 Specifies the next encapsulated protocol. The values are compatible with those specified for the IPv4 protocol field Hop Limit 8, unsigned For each router that forwards the packet, the hop limit is decremented by 1. When the hop limit field reaches zero, the packet is discarded. This replaces the TTL field in the IPv4 header that was originally intended to be used as a time based hop limit Source Address 128 The IPv6 address of the sending node Destination Address 128 The IPv6 address of the destination node Copyright 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 30

Differences between IPv4 and IPv6 Expanded Addressing Capabilities Simplified Header Format Improved Support for Options and Extensions Flow Labeling Capabilities Support for Authentication and Encryption Copyright 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 31

Network Transition from IPv4 to IPv6 Dual IP-Stack: IPv4-hosts and IPv4-routers have an IPv6-stack, this ensures full compatibility to not yet updated systems IPv6-in-IPv4 Encapsulation (Tunneling): Encapsulate IPv6 datagram in IPv4 datagram and tunnel it to next router/host Copyright 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 32