Service time evaluation (transfer) for a message sent over a LAN through TCP protocol Network Routers service time.

Slides:



Advertisements
Similar presentations
Laboratório de Teleprocessamento e Redes1 Unix Network Programming Prof. Nelson Fonseca
Advertisements

CCNA – Network Fundamentals
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
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
1 Computer Networks IP: The Internet Protocol. 2 IP is a connection-less, unreliable network layer protocol IP provides best effort services in the sense.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
1 Review of Important Networking Concepts Introductory material. This module uses the example from the previous module to review important networking concepts:
Transport Layer TCP and UDP IS250 Spring 2010
Gursharan Singh Tatla Transport Layer 16-May
1 Review of Important Networking Concepts Introductory material. This slide uses the example from the previous module to review important networking concepts:
Lecture 8 Modeling & Simulation of Communication Networks.
1.  A protocol is a set of rules that governs the communications between computers on a network.  Functions of protocols:  Addressing  Data Packet.
Process-to-Process Delivery:
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_a
Review: – computer networks – topology: pair-wise connection, point-to-point networks and broadcast networks – switching techniques packet switching and.
Copyright 2003 CCNA 1 Chapter 9 TCP/IP Transport and Application Layers By Your Name.
TCP/IP and the Internet ARPANET (1969) –R&D network funded by DARPA. –Packet Switching Survive nuclear war. –Experimental to operational (1975). –Not suitable.
Computer Networks (CS 132/EECS148) General Networking Example Karim El Defrawy Donald Bren School of Information and Computer Science University of California.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 2.5 Internetworking Chapter 25 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
Transport Layer: TCP and UDP. Overview of TCP/IP protocols Comparing TCP and UDP TCP connection: establishment, data transfer, and termination Allocation.
Ch 1. Computer Networks and the Internet Myungchul Kim
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Chapter 15 – Part 2 Networks The Internal Operating System The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Packet switching network Data is divided into packets. Transfer of information as payload in data packets Packets undergo random delays & possible loss.
William Stallings Data and Computer Communications
Interfaces and Services Each layer provides a service to the layer above it. A service is a set of primitive operations. Under UNIX, primitives are implemented.
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.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Individual Project 1 Sarah Pritchard. Fran, a customer of your company, would like to visit your company’s website from her home computer… How does your.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
1 Chapter 4: Internetworking (Internet Protocol) Dr. Rocky K. C. Chang 16 March 2004.
Network Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Data Communications and Networks Chapter 6 – IP, UDP and TCP ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
- 1 - DPNM Review of Important Networking Concepts J. Won-Ki Hong Dept. of Computer Science and Engineering POSTECH Tel:
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Communication Networks NETW 501 Tutorial 2
Chapter 5 Network and Transport Layers
A quick intro to networking
Process-to-Process Delivery, TCP and UDP protocols
Process-to-Process Delivery
TCP Transport layer Er. Vikram Dhiman LPU.
Network Architecture Introductory material
Process-to-Process Delivery:
Review of Important Networking Concepts
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Process-to-Process Delivery:
Review of Important Networking Concepts
Wide Area Networks and Internet CT1403
TRANSMISSION CONTROL PROTOCOL
CPEG514 Advanced Computer Networkst
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
Process-to-Process Delivery: UDP, TCP
Review of Important Networking Concepts
NET 323D: Networks Protocols
Transport Layer 9/22/2019.
Presentation transcript:

Service time evaluation (transfer) for a message sent over a LAN through TCP protocol Network Routers service time

PROTOCOL TCP/IP STRATIFICATION IP UDP TELNETHTTPFTP TCP NFS DNSSNMP data link layer network layer transport layer RPC

DATAGRAM IP FORWARDING The router holds a routing table, used to find the following router or host which forward the datagram Host AHost B TCP IP Network layer TCP IP Network layer IP Data layer router

Layer n Layer n -1 Layer n Layer n -1 network PROTOCOLS Communication protocol design is based on a layer architecture. Every layer n entity communicates, exchanging Physical Data Unit (PDU), only with layer n remote entities, using the services provided by layer n-1 and offers services to layer n+1. When data are transferred an header is added by each layer Data layer nHeader layer n Data layer n -1 Header layer n -1

NETWORK PROTOCOLS

TCP TCP provides a service: connection oriented, reliable, end-to-end, with flow control. It assures the data delivery in the same sending order, without losses. TCP implements a connection reliable mechanism called Three way handshake 3 segments are required to establish a connection 4 segments are required to end it in both directions Host A Host B syn ack data fin ack data fin ack

IP IP defines the format of the packets sent in Internet The service is unreliable, isn’t end-to-end like, and the datagrams can be lost

FRAGMENTATION Protocol entities at each layer communicate with each other by exchanging PDUs composed of a header and a data area. PDUs have a maximum dimension for the data area (named, for the network layer, Maximum Transmission Unit ((MTU)) Being MTUs lengths variable for different protocols, router has to be able to fragment datagrams, that will be reassembled at the IP level by the destination host.

Fragmentation disadvantages The router has to be able to divide PDU Destination node must reassemblate the fragments WARNING: IP standard tells to fragment from source node, in anticipation of the path to make.

Service times Service Time of a message Time to transmit the message over the network = = # of bytes (including protocol header-trailer, and fragmentation if there is) bandwidth =

Example WITHOUT fragmentation 300 byte message sent from a Client to a Server TCP IP Network layer client TCP IP Network layer Server ethernet T.R. FDDI router1 router2

LAN service time Service Time Eth = == 358 x sec. Service Time FDDI = == 368 x sec. Service Time TR = == 368 x sec byte message sent from a Client to a Server

Example WITH fragmentation TCP IP Network layer client TCP IP Network layer Server ethernet T.R. FDDI TR FDDI FDDI = 4424 = = dataIPET dataET The Server sends a byte reply to Client Hypothesis: TCP does not know the local network MTU 20

LAN Service Time Service Time = The Server sends a byte reply to Client Hypothesis: TCP does not know the local network MTU Case of Token Ring Service Time = ( ) x 8 = sec. () x 8

TCP IP Network layer client TCP IP Network layer Server ethernet T.R. FDDI TR FDDI FDDI = 4424 = = dataIPET dataET 20 TCP Example WITH fragmentation The Server sends a byte reply to Client Hypothesis: TCP knows the local network MTU

Service Time = Service Time = ( ) x 8 = sec. () x sec sec. 20  sec different LAN Service Time The Server sends a byte reply to Client Hypothesis: TCP knows the local network MTU Case of Token Ring

Average service time Evaluation without fragmentation Let’s specify: MTU n : network n MTU (byte) XOvhd: X protocol overhead (byte) FrameOvhd n : network n overhead (byte) Overhead n : network n total overhead (TCP+IP+frame) (byte) Bandwidth n : network n bandwidth (Mbps) Ndatagrams: number of IP datagrams required Nsegments: number of TCP segments required (< or = Ndatagrams) N: number of networks

Average service time Without fragmentation NDatagrams = ServiceTime n = MessageSize + NSegments x TCPOvhd min n MTU n - IPOvhd Overhead n = NSegments x TCPOvhd + Ndatagrams x (IPOvhd + FrameOvhd n ) 8 x (MessageSize + Overhead n ) 10 6 x Bandwidth NSegments = MessageSize NSegments = NDatagrams TCP knows LAN MTU TCP does not know LAN MTU (rough estimate)

Exercise - text T.R. FDDI 100 Mbps MTU: 4472 bytes The client sends 3 transactions per minute (0.05 tps), whose messages average lenght is 400 bytes. The 80% of replies are 8092 bytes lenght and the 20% are bytes Assuming that no fragmentation exists and the TCP layer does not know the netwotk MTU, evaluate the average service time for requests and replies for each network. router1router2 ClientDB server Ethernet 10 Mbps MTU: 1518 bytes Token RingI 16 Mbps MTU: 4444 bytes

Exercise - solution Using NDatagrams = MessageSize + Nsegment x TCPOvhd min n MTU n - IPOvhd We can evaluate the numbers of Datagrams required in each case (request, short reply and long reply) (400+20)/( ) = 1 request ( )/( ) = 6 short reply ( )/( ) = 68 long reply

Exercise - solution Using We can evaluate the network overhead (ethernet) Overhead Eth = ( ) = 58 request Overhead Eth = ( ) = 248 short reply Overhead Eth = ( ) = 2604 long reply Overhead n = TCPOvhd+Ndatagrams x (IPOvhd + FrameOvhd n ) Using We can evaluate the Service Time (ethernet) Overhead Eth = 8 x ( ) / = msec request Overhead Eth = 8 x ( ) / = 6.67 msec short reply Overhead Eth = 8 x ( ) / = 82.1 msec long reply ServiceTime n = 8 x (MessageSize + Overhead n ) 10 6 x Bandwidth

Service times evaluation

Network Router Router queues

Service times at Routers Router latency (  sec per packet): time spent by the router to process a datagram, given by manufacturer. RouterServiceTime: Ndatagrams * RouterLatency Where NDatagrams = MessageSize + TCPOvhd min n MTU n - IPOvhd

Exercise Router 1 and 2 process 400,000 packets/sec  Service time: 2.5  sec (=1/400,000)  Service demand at router T.R. FDDI 100 Mbps MTU: 4472 bytes router1router2 ClientDB server Ethernet 10 Mbps MTU: 1518 bytes Token Ring 16 Mbps MTU: 4444 bytes Client RequestShort ReplyLong Request 1 x 2.5 = 2.5  sec6 x 2.5 = 15  sec 68 x 2.5 = 170  sec