Transmission Control Protocol TCP and PacketSwitching Hardware Devang

  • Slides: 28
Download presentation
Transmission Control Protocol (TCP) and Packet-Switching Hardware Devang Parekh EE 290 F 4/15/04

Transmission Control Protocol (TCP) and Packet-Switching Hardware Devang Parekh EE 290 F 4/15/04

Outline TCP n n n OSI 7 Layer SYN/ACK Different Flavors Routers n n

Outline TCP n n n OSI 7 Layer SYN/ACK Different Flavors Routers n n What they do Protocols

OSI 7 Layer Model

OSI 7 Layer Model

OSI 7 Layer Model Physical (Layer 1) n n n Physical link layer Electrical

OSI 7 Layer Model Physical (Layer 1) n n n Physical link layer Electrical impulse, radio, optical Lowest layer of the OSI Model

OSI 7 Layer Model Data Link (Layer 2) n n Data packets encoded into

OSI 7 Layer Model Data Link (Layer 2) n n Data packets encoded into bits Media Access Control (MAC) Layer w Controls how a computer gains access to a link and transmission on that link. n Logical Link Control (LLC) Layer w Frame synchronization, flow control, error checking

OSI 7 Layer Model Network (Layer 3) n n n Switching and routing performed

OSI 7 Layer Model Network (Layer 3) n n n Switching and routing performed at this layer Addressing, internetworking, error handling, congestion control, packet sequencing IP

OSI 7 Layer Model Transport (Layer 4) n n Transparent transfer of data End-to-end

OSI 7 Layer Model Transport (Layer 4) n n Transparent transfer of data End-to-end recovery Flow control TCP/UDP

OSI 7 Layer Model Session (Layer 5) n Manages end-to-end connections Presentation (Layer 6)

OSI 7 Layer Model Session (Layer 5) n Manages end-to-end connections Presentation (Layer 6) n Acts as middleware for application layer Application (Layer 7) n The program you use

TCP/UDP (User Datagram Protocol) n n Provides multiplexing/demultiplexing to IP No congestion control Advantage:

TCP/UDP (User Datagram Protocol) n n Provides multiplexing/demultiplexing to IP No congestion control Advantage: does not increase delay over connection Audio/video stream

TCP/UDP TCP (Transmission Control Protocol) n n n Reliable, in-order delivery Multiplexing/Demultiplexing to IP

TCP/UDP TCP (Transmission Control Protocol) n n n Reliable, in-order delivery Multiplexing/Demultiplexing to IP Congestion control and avoidance Increases delay File transfer, chat

3 -way handshake

3 -way handshake

3 -way handshake Goal: Agree on sequence numbers

3 -way handshake Goal: Agree on sequence numbers

State Diagram

State Diagram

Header

Header

Header Ports – self-explanatory Sequence number, acknowledgement – used in sliding window protocol Flags

Header Ports – self-explanatory Sequence number, acknowledgement – used in sliding window protocol Flags n n SYN/FIN –establishing/terminating connections ACK – acknowledgement is valid URG – urgent data RESET- abort connection

Sliding Window Protocol Stop & Wait n n n Transmit Wait for Ack If

Sliding Window Protocol Stop & Wait n n n Transmit Wait for Ack If timeout send again Go-back-n n n Transmit n packets If timeout at packet k, send again from k, k+1, …

Congestion Control Telephone Network: n Reservation TCP: n n Adapt rate to congestion Algorithm

Congestion Control Telephone Network: n Reservation TCP: n n Adapt rate to congestion Algorithm should be fair UDP: n Hope for the best

Congestion Control Ex. TCP-Reno n n n Congested -> decrease rate Uncongested -> increase

Congestion Control Ex. TCP-Reno n n n Congested -> decrease rate Uncongested -> increase rate Additive-Increase Multiplicative-Decrease (AIMD)

Congestion Control Fast retransmit Fast Recovery Slow Start Flow Control

Congestion Control Fast retransmit Fast Recovery Slow Start Flow Control

Congestion Control Fast Retransmit n ACK #= next expected ACK

Congestion Control Fast Retransmit n ACK #= next expected ACK

Congestion Control Slow Start n Discover available bandwidth fast

Congestion Control Slow Start n Discover available bandwidth fast

Congestion Control Flow Control n Receiver advertises window

Congestion Control Flow Control n Receiver advertises window

Routers IP Addressing Classes

Routers IP Addressing Classes

Routers Functions n n n Topology update Shortest path Switching

Routers Functions n n n Topology update Shortest path Switching

Routers Topology Update n Link State w Communicates name and distance to each neighbor

Routers Topology Update n Link State w Communicates name and distance to each neighbor n Distance Vector w Communicates current distance estimates to every other node n Path Vector w Communicates current preferred path to every other node

Routers

Routers

Routers

Routers

Routers The Cisco 1760 Modular Access Router offers small and medium-sized businesses and enterprise

Routers The Cisco 1760 Modular Access Router offers small and medium-sized businesses and enterprise small branch offices a 19 -inch rack-mount access solution designed to enable them to grow their e-business capabilities. The two different versions of the Cisco 1760 Modular Access Router, the base version Cisco 1760 router and the preconfigured multiservice-ready Cisco 1760 -V router, address the needs of customers who want to deploy e-business applications—now or in the future. The Cisco 1760 router, as a modular platform in a 19 -inch rack-mount form factor, offers customers secure Internet and intranet access, as well as the capability to implement a variety of e-business and voice applications. This includes voice over IP (Vo. IP), virtual private network (VPN) access, and business-class digital subscriber line (DSL) as required (refer to Figure 1). The Cisco 1760 router is part of a broad portfolio of access routers optimized to deliver intelligent services such as quality of service (Qo. S), manageability, availability, and security. The two different versions of the Cisco 1760 Modular Access Router, the base version Cisco 1760 router and the Cisco 1760 -V router, address the needs of customers who want to deploy transformation technologies such as converged voice and data, IP telephony, or videoconferencing.