CSE331: Introduction to Networks and Security Lecture 10 Fall 2002.

Slides:



Advertisements
Similar presentations
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
CSCI 4550/8556 Computer Networks
Transmission Control Protocol (TCP)
Guide to TCP/IP, Third Edition
IS333, Ch. 26: TCP Victor Norman Calvin College 1.
Fundamentals of Computer Networks ECE 478/578 Lecture #20: Transmission Control Protocol Instructor: Loukas Lazos Dept of Electrical and Computer Engineering.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
1 TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Winter 2008CS244a Handout #61 CS244a: An Introduction to Computer Networks Handout 6: The Transport Layer, Transmission Control Protocol (TCP), and User.
1 Computer Networks: A Systems Approach, 5e Larry L. Peterson and Bruce S. Davie Chapter 5 End-to-End Protocols Copyright © 2010, Elsevier Inc. All rights.
1 CS 4396 Computer Networks Lab Transmission Control Protocol (TCP) Part I.
CS3505 The Internet and Info Hiway transport layer protocols : TCP/UDP.
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.
Computer Networks 2 Lecture 2 TCP – I - Transport Protocols: TCP Segments, Flow control and Connection Setup.
UNIT 07 Process – to – Process Delivery: UDP,TCP and SCTP
Introduction to Transport Layer. Transport Layer: Motivation A B R1 R2 r Recall that NL is responsible for forwarding a packet from one HOST to another.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
Border Gateway Protocol (BGP). 2 CORE, PEERs Autonomous Systems BGP Basic Operations The BGP Routing Process.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Transport Protocols Slide 1 Transport Protocols.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
EEC-484/584 Computer Networks Lecture 6 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Process-to-Process Delivery:
Gursharan Singh Tatla Transport Layer 16-May
Process-to-Process Delivery:
1 Transport Layer Computer Networks. 2 Where are we?
1 Chapter 1 OSI Architecture The OSI 7-layer Model OSI – Open Systems Interconnection.
6.1. Transport Control Protocol (TCP) It is the most widely used transport protocol in the world. Provides reliable end to end connection between two hosts.
Transport Layer 3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 All.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
SMUCSE 4344 transport layer. SMUCSE 4344 transport layer end-to-end protocols –transport code runs only on endpoint hosts encapsulates network communications.
ECE453 – Introduction to Computer Networks Lecture 14 – Transport Layer (I)
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.
Transport Layer: TCP and UDP. Overview of TCP/IP protocols Comparing TCP and UDP TCP connection: establishment, data transfer, and termination Allocation.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
Transport Layer3-1 Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable.
1 Introduction to Computer Networks University of ilam Dr. Mozafar Bag-Mohammadi Transport Layer.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
1 TCP: Reliable Transport Service. 2 Transmission Control Protocol (TCP) Major transport protocol used in Internet Heavily used Completely reliable transfer.
23.1 Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CSE 331: Introduction to Networks and Security Fall 2000 Instructor: Carl A. Gunter Slide Set 5.
Networking Basics CCNA 1 Chapter 11.
Computer Networks23-1 PART 5 Transport Layer. Computer Networks23-2 Position of Transport Layer Responsible for the delivery of a message from one process.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 12 Transmission Control Protocol (TCP)
Transport Protocols.
1 Transport Layer: Basics Outline Intro to transport UDP Congestion control basics.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Inter-domain Routing Outline Border Gateway Protocol.
1 Computer Communication & Networks Lecture 23 & 24 Transport Layer: UDP and TCP Waleed Ejaz
1 End-to-End Protocols UDP TCP –Connection Establishment/Termination –Sliding Window Revisited –Flow Control –Congestion Control –Adaptive Timeout.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
3. END-TO-END PROTOCOLS (PART 1) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 22 March
5. End-to-end protocols (part 1)
Process-to-Process Delivery, TCP and UDP protocols
TCP.
PART 5 Transport Layer Computer Networks.
Computer Networking TCP/IP Part 2
Transport Protocols: TCP Segments, Flow control and Connection Setup
Introduction to Computer Networks
Transport Protocols: TCP Segments, Flow control and Connection Setup
Process-to-Process Delivery: UDP, TCP
Transport Layer 9/22/2019.
Presentation transcript:

CSE331: Introduction to Networks and Security Lecture 10 Fall 2002

CSE331 Fall Announcements HW 2 Graded –Mean 82 –Pick up after class

CSE331 Fall Recap Domain Name System IPv4 Routing –RIP – Routing Information Protocol –OSPF – Open Shortest Path First

CSE331 Fall Today Interdomain Routing IPv6 UDP & TCP

CSE331 Fall Interdomain Routing EGP - Exterior Gateway Protocol –Early; constrained Internet to tree and hence shares some problems of bridging (scalability, path exploitation, etc. ….. ) Internet tree structure circa 1990.

CSE331 Fall Backbone Service Provider Today’s Multibackbone Internet Backbone Service Provider Consumer ISP Large Corporation Small Company Peering point

CSE331 Fall BGP - Border Gateway Protocol Arbitrary topology Interconnected of Administrative Domains –local traffic: originates or terminates in A.D. –transit traffic: passes through –stub: one A.D.-A.D. link –multihomed: multiple A.D. links, no transit –transit: connections to other A.D.s; carry transit

CSE331 Fall BGP Continued AD Connectivity –A border gateway is an IP router that forwards packets between A.D.s –A.D. has one “BGP speaker” Border Gateway Protocol –Advertises reachability, not costs –Advertises complete paths between A.D.s Needed for policy decisions like “Use provider B” Helps detect loops –Not LSP or DV. –Router state ~# A.D.s, hence large

CSE331 Fall Next Generation IP (IPv6 or IPng) Lots of addresses (128 bits) Real-time Security Autoconfiguration Mobile hosts and other enhanced routing functions

CSE331 Fall Packet Format Next Header/Data Ver. Prio FlowLabel PayloadLEN NextHeader HopLimit Source Address (128 bits) Destination Address (128 bits) 031

CSE331 Fall Protocol Stack Revisited Application Presentation Session Transport Network Data Link Physical UDP and TCP/IP So far…

CSE331 Fall Application vs. Network

CSE331 Fall User Datagram Protocol (UDP) Simplest transport-layer protocol Just exposes IP packet functionality to application level Ports identify sending/receiving process –Demultiplexing information –(port, host) pair identifies a network process SrcPortDestPort LengthChecksum IP Packet Data 01631

CSE331 Fall UDP End-to-End Model Multiplexing/Demultiplexing with Port number UDP Sender (Multiplexer) UDP Receiver (Demultiplexer) Application

CSE331 Fall Using Ports Client contacts Server at a well-known port –DNS: port 53 –POP3: port 110 –Unix talk : port 517 –In unix, ports are listed in /etc/services Sometimes Client and Server agree on a different port for subsequent communication Ports are an abstraction –Implemented differently on different OS’s –Typically a message queue

CSE331 Fall Transmission Control Protocol (TCP) Most widely used protocol for reliable byte streams –Reliable, in-order delivery of a stream of bytes –Full duplex: pair of streams, one in each direction –Flow and congestion control mechanisms –Like UDP, supports ports Built on top of IP (hence TCP/IP)

CSE331 Fall TCP End-to-End Model Buffering corrects errors but may introduce delays Application TCP Sender: Send Buffers TCP Receiver Receive Buffers segment

CSE331 Fall Packet Format Flags –SYN –FIN –RESET –PUSH –URG –ACK Fields SequenceNum SrcPort DstPort Options (variable) Checksum UrgPtr HL 0 Flags Advert.Wind. Acknowledgment DATA

CSE331 Fall Three-Way Handshake

CSE331 Fall TCP State Transitions

CSE331 Fall TCP Receiver Maintains a buffer from which application reads Advertises < buffer size as the window for sliding window Responds with Acknowledge and AdvertisedWindow on each send; updates byte counts when data O.K. Application blocked until read() O.K.

CSE331 Fall TCP Sender Maintains a buffer; sending application is blocked until room in the buffer for its write Holds data until acknowledged by receiver as successfully received Implement window expansion and contraction; note difference between flow and congestion control

CSE331 Fall Flow vs. Congestion Control Flow control protects the recipient from being overwhelmed. Congestion control protects the network from being overwhelmed.

CSE331 Fall TCP Congestion Control Additive Increase / Multiplicative Decrease Slow Start Fast Retransmit and Fast Recovery

CSE331 Fall Increase and Decrease A value CongestionWindow is used to control the number of unacknowledged transmissions. This value is increased linearly until timeouts for ACKs are missed. When timeouts occur, CongestionWindow is decreased by half to reduce the pressure on the network quickly. The strategy is called “additive increase / multiplicative decrease”.

CSE331 Fall Additive Increase

CSE331 Fall TCP Sawtooth Pattern Time KB

CSE331 Fall Slow Start Sending the entire window immediately could cause a traffic jam in the network. Begin “slowly” by setting the congestion window to one packet. When acknowledgements arrive, double the congestion window. Continue until ACKs do not arrive or flow control dominates.

CSE331 Fall Slow Start