13-1 Last time □ Router internals ♦ Input ports, switching fabric, output ports ♦ Switching via memory, bus, crossbar ♦ Queueing, head-of-line blocking.

Slides:



Advertisements
Similar presentations
Transport Layer3-1 Transport Overview and UDP. Transport Layer3-2 Goals r Understand transport services m Multiplexing and Demultiplexing m Reliable data.
Advertisements

Introduction 1-1 Chapter 3 Transport Layer Intro and Multiplexing Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.
Wireless, Mobile Networks – Mobility. Wireless, Mobile Networks6-2 Mobility: Vocabulary home network: permanent “home” of mobile (e.g., /24)
CPSC 441: Intro, UDP1 Transport Layer Instructor: Carey Williamson Office: ICT Class Location:
Computer Communication Digital Communication in the Modern World Transport Layer Multiplexing, UDP
Chapter 3: Transport Layer
Transport Layer3-1 Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
Lecture 8 Chapter 3 Transport Layer
CPSC 441: Intro, UDP1 Instructor: Anirban Mahanti Office: ICT Class Location: ICT 121 Lectures: MWF 12:00 – 12:50 Notes.
1 Internet transport-layer protocols r reliable, in-order delivery (TCP) m congestion control m flow control m connection setup r unreliable, unordered.
Some slides are in courtesy of J. Kurose and K. Ross Review of Previous Lecture Electronic Mail: SMTP, POP3, IMAP DNS Socket programming with TCP.
3-1 Transport services and protocols r provide logical communication between app processes running on different hosts r transport protocols run in end.
8-1 Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer m flow.
Transport Layer Transport Layer. Transport Layer 3-2 Chapter 3 Transport Layer Computer Networking: A Top Down Approach Featuring the Internet,
Previous Lecture r P2P file sharing r Socket programming with TCP r Socket programming with UDP.
Chapter 6 Wireless and Mobile Networks Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Lecture 4 Mobility Overview.
Review: –What is AS? –What is the routing algorithm in BGP? –How does it work? –Where is “policy” reflected in BGP (policy based routing)? –Give examples.
Data Communications and Computer Networks Chapter 3 CS 3830 Lecture 12 Omar Meqdadi Department of Computer Science and Software Engineering University.
CS 1652 The slides are adapted from the publisher’s material All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Jack Lange.
Network LayerII-1 RSC Part III: Transport Layer 1. Basic Concepts Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are,
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.
Chapter 6 Wireless and Mobile Networks Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Wireless,
Transport Layer and UDP Tahir Azim Ref:
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 Part.
Chapter 3 Transport Layer
Transport Layer3-1 Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
Transport Layer3-1 Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable.
Transport Layer3-1 Chapter 3 Transport Layer These ppt slides are originally from the Kurose and Ross’s book. But some slides are deleted and added for.
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 A.
Transport Layer3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach Featuring the Internet, 2 nd edition. Jim Kurose, Keith Ross Addison-Wesley,
Transport Layer3-1 Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable.
Transport Layer1 Ram Dantu (compiled from various text books)
1 Transport Layer Lecture 7 Imran Ahmed University of Management & Technology.
Lecture91 Administrative Things r Return homework # 1 r Review some problems in homework # 1 r Questions about grading? Yona r WebCT for CSE245 is working!
CS 3830 Day 13 Introduction 1-1. Announcements r Quiz 3: Wednesday, Oct 10 r Prog3 due Wednesday, Oct 10 Transport Layer 3-2.
Transport Layer3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July A.
Transport Layer 3-1 Chapter 3 Outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP.
Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
Transport Layer3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley,
Prof. Younghee Lee 1 1 Computer Networks u Lecture 5: Transport services and protocols Prof. Younghee Lee * Some part of this teaching materials are prepared.
MULTIPLEXING/DEMULTIPLEXING, CONNECTIONLESS TRANSPORT.
Accommodating mobility with direct routing
Mobility CPE 401/601 Computer Network Systems slides are modified from Jim Kurose & Keith Ross All material copyright J.F Kurose and K.W. Ross,
Transport Layer3-1 Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable.
Application Layer 2-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
Introduction 1-1 source application transport network link physical HtHt HnHn M segment HtHt datagram destination application transport network link physical.
2: Transport Layer 11 Transport Layer 1. 2: Transport Layer 12 Part 2: Transport Layer Chapter goals: r understand principles behind transport layer services:
Spring 2006 CPE : Transport Layer Overview2-1 Special Topics in Computer Engineering The Transport Layer in the Internet: Overview Some of these.
Prof. Younghee Lee 1 1 Computer Networks u Lecture 11: Mobility Prof. Younghee Lee * Some part of this teaching materials are prepared referencing the.
CSEN 404 Transport Layer I Amr El Mougy Lamia Al Badrawy.
Transport Layer3-1 Transport Layer Never take life seriously. Nobody gets out alive anyway.
Chapter 3 Transport Layer
Introduction to Networks
Chapter 3 Transport Layer
Transport Layer Slides are originally from instructor: Carey Williamson at University of Calgary Very minor modification are made Notes derived from “Computer.
Chapter 3 outline 3.1 Transport-layer services
CPE 401/601 Computer Network Systems
06- Transport Layer Transport Layer.
CS 1652 Jack Lange University of Pittsburgh
Introduction to Networks
Transport Layer Our goals:
September 19th, 2013 CS1652 Jack Lange University of Pittsburgh
Chapter 3 Transport Layer
Chapter 3 Transport Layer
Transport Layer Our goals:
Presentation transcript:

13-1 Last time □ Router internals ♦ Input ports, switching fabric, output ports ♦ Switching via memory, bus, crossbar ♦ Queueing, head-of-line blocking □ Mobility ♦ Home, visited networks ♦ Home, foreign agents ♦ Permanent, care-of addresses ♦ Indirect vs. direct routing □ Mobile IP ♦ tunneling, agent discovery, registration

13-2 This time □ Mobility in Cellular Networks □ Transport layer ♦ Introduction ♦ Multiplexing ♦ UDP

13-3 Mobile Switching Center Public telephone network, and Internet Mobile Switching Center Components of cellular network architecture □ connects cells to wide area net □ manages call setup □ handles mobility MSC □ covers geographical region □ base station (BS) analogous to AP □ mobile users attach to network through BS □ air-interface: physical and link layer protocol between mobile and BS cell wired network

13-4 Components of cellular network architecture correspondent MSC wired public telephone network different cellular networks, operated by different providers

13-5 Handling mobility in cellular networks □ Home network: network of cellular provider you subscribe to (e.g., Sprint PCS, Verizon) ♦ home location register (HLR): database in home network containing permanent cell phone #, profile information (services, preferences, billing), information about current location (could be in another network) □ Visited network: network in which mobile currently resides ♦ visitor location register (VLR): database with entry for each user currently in network ♦ could be home network

13-6 Public switched telephone network mobile user home Mobile Switching Center HLR home network visited network correspondent Mobile Switching Center VLR GSM: indirect routing to mobile 1 call routed to home network 2 home MSC consults HLR, gets roaming number of mobile in visited network 3 home MSC sets up 2 nd leg of call to MSC in visited network 4 MSC in visited network completes call through base station to mobile

13-7 Mobile Switching Center VLR old BSS new BSS old routing new routing GSM: handoff with common MSC □ Handoff goal: route call via new base station (without interruption) □ Reasons for handoff: ♦ stronger signal to/from new BSS (continuing connectivity, less battery drain) ♦ load balance: free up channel in current BSS ♦ GSM doesn’t mandate why to perform handoff (policy), only how (mechanism) □ Handoff initiated by old BSS

13-8 Mobile Switching Center VLR old BSS GSM: handoff with common MSC new BSS 1. old BSS informs MSC of impending handoff, provides list of 1 + new BSSs 2. MSC sets up path (allocates resources) to new BSS 3. new BSS allocates radio channel for use by mobile 4. new BSS signals MSC, old BSS: ready 5. old BSS tells mobile: perform handoff to new BSS 6. mobile, new BSS signal to activate new channel 7. mobile signals via new BSS to MSC: handoff complete. MSC reroutes call 8 MSC-old-BSS resources released

13-9 home network Home MSC PSTN correspondent MSC anchor MSC MSC (a) before handoff GSM: handoff between MSCs □ Anchor MSC: first MSC visited during call ♦ call remains routed through anchor MSC □ Anchor MSC sends call to current visited BSS □ Always at most 3 hops ♦ Home MSC ♦ Anchor MSC ♦ Visited MSC

13-10 home network Home MSC PSTN correspondent MSC anchor MSC MSC (b) after handoff GSM: handoff between MSCs □ Anchor MSC: first MSC visited during call ♦ call remains routed through anchor MSC □ Anchor MSC sends call to current visited BSS □ Always at most 3 hops ♦ Home MSC ♦ Anchor MSC ♦ Visited MSC

13-11 Mobility: GSM versus Mobile IP Care-of- address Routable address for telephone call segment between home MSC and visited MSC, visible to neither the mobile nor the correspondent. Mobile Station Roaming Number (MSRN), or “roaming number” Foreign agentVisited MSC: responsible for setting up calls to/from mobile nodes in cells associated with MSC. VLR: temporary database entry in visited system, containing subscription information for each visiting mobile user Visited Mobile services Switching Center. Visitor Location Record (VLR) Visited networkNetwork other than home system where mobile user is currently residing Visited System Home agentHome MSC: point of contact to obtain routable address of mobile user. HLR: database in home system containing permanent phone number, profile information, current location of mobile user, subscription information Gateway Mobile Switching Center, or “home MSC”. Home Location Register (HLR) Home networkNetwork to which the mobile user’s permanent phone number belongs Home system Mobile IP elementComment on GSM elementGSM element

13-12 Wireless, mobility: impact on higher layer protocols □ Logically, impact should be minimal … ♦ best effort service model remains unchanged ♦ TCP and UDP can (and do) run over wireless, mobile □ … but performance-wise: ♦ packet loss/delay due to bit-errors (discarded packets, delays for link-layer retransmissions), and handoff ♦ TCP interprets loss as congestion, will decrease congestion window un-necessarily ♦ delay impairments for real-time traffic ♦ limited bandwidth of wireless links

13-13 Chapter 3: Transport Layer Our goals: □ Understand principles behind transport layer services: ♦ multiplexing/ demultiplexing ♦ reliable data transfer ♦ flow control ♦ congestion control □ Learn about transport layer protocols in the Internet: ♦ UDP: connectionless transport ♦ TCP: connection-oriented transport ♦ TCP congestion control

13-14 Chapter 3 outline □ 3.1 Transport-layer services □ 3.2 Multiplexing and demultiplexing □ 3.3 Connectionless transport: UDP □ 3.4 Principles of reliable data transfer □ 3.5 Connection-oriented transport: TCP ♦ segment structure ♦ reliable data transfer ♦ flow control ♦ connection management □ 3.6 Principles of congestion control □ 3.7 TCP congestion control

13-15 Transport services and protocols □ Provide logical communication between app processes running on different hosts □ Transport protocols run in end systems ♦ sender side: breaks app messages into segments, passes to network layer ♦ receiver side: reassembles segments into messages, passes to app layer □ More than one transport protocol available to apps ♦ Internet: TCP and UDP application transport network data link physical application transport network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical logical end-end transport

13-16 Transport vs. network layer □ Network layer: logical communication between hosts □ Transport layer: logical communication between processes ♦ relies on, enhances, network layer services Household analogy: 12 kids sending letters to 12 kids □ processes = kids □ app messages = letters in envelopes □ hosts = houses □ transport protocol = Ann and Bill □ network-layer protocol = postal service

13-17 Internet transport-layer protocols □ Reliable, in-order delivery (TCP) ♦ congestion control ♦ flow control ♦ connection setup □ Unreliable, unordered delivery: UDP ♦ no-frills extension of “best- effort” IP □ Services not available: ♦ delay guarantees ♦ bandwidth guarantees application transport network data link physical application transport network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical logical end-end transport

13-18 Chapter 3 outline □ 3.1 Transport-layer services □ 3.2 Multiplexing and demultiplexing □ 3.3 Connectionless transport: UDP □ 3.4 Principles of reliable data transfer □ 3.5 Connection-oriented transport: TCP ♦ segment structure ♦ reliable data transfer ♦ flow control ♦ connection management □ 3.6 Principles of congestion control □ 3.7 TCP congestion control

13-19 Multiplexing/demultiplexing application transport network link physical P1 application transport network link physical application transport network link physical P2 P3 P4 P1 host 1 host 2 host 3 = process= socket delivering received segments to correct socket Demultiplexing at rcv host: gathering data from multiple sockets, enveloping data with header (later used for demultiplexing) Multiplexing at send host:

13-20 How demultiplexing works □ Host receives IP datagrams ♦ each datagram has source IP address, destination IP address ♦ each datagram carries 1 transport-layer segment ♦ each segment has source, destination port number □ Host uses IP addresses & port numbers to direct segment to appropriate socket source port #dest port # 32 bits application data (message) other header fields TCP/UDP segment format

13-21 Connectionless demultiplexing □ Create sockets with port numbers: DatagramSocket mySocket1 = new DatagramSocket(12534); DatagramSocket mySocket2 = new DatagramSocket(12535); □ UDP socket identified by two-tuple: ( dest IP address, dest port number) □ When host receives UDP segment: ♦ checks destination port number in segment ♦ directs UDP segment to socket with that port number □ IP datagrams with different source IP addresses and/or source port numbers directed to same socket

13-22 Connectionless demux (cont) DatagramSocket serverSocket = new DatagramSocket(6428); Client IP:B P2 client IP: A P1 P3 server IP: C SP: 6428 DP: 9157 SP: 9157 DP: 6428 SP: 6428 DP: 5775 SP: 5775 DP: 6428 SP provides “return address”

13-23 Connection-oriented demux □ TCP socket identified by 4-tuple: ♦ source IP address ♦ source port number ♦ dest IP address ♦ dest port number □ Recv host uses all four values to direct segment to appropriate socket □ Server host may support many simultaneous TCP sockets: ♦ each socket identified by its own 4-tuple □ Web servers have different sockets for each connecting client ♦ non-persistent HTTP will have different socket for each request

13-24 Connection-oriented demux (cont) Client IP:B P1 client IP: A P1P2P4 server IP: C SP: 9157 DP: 80 SP: 9157 DP: 80 P5P6P3 D-IP:C S-IP: A D-IP:C S-IP: B SP: 5775 DP: 80 D-IP:C S-IP: B

13-25 Connection-oriented demux: Threaded Web Server Client IP:B P1 client IP: A P1P2 server IP: C SP: 9157 DP: 80 SP: 9157 DP: 80 P4 P3 D-IP:C S-IP: A D-IP:C S-IP: B SP: 5775 DP: 80 D-IP:C S-IP: B

13-26 Chapter 3 outline □ 3.1 Transport-layer services □ 3.2 Multiplexing and demultiplexing □ 3.3 Connectionless transport: UDP □ 3.4 Principles of reliable data transfer □ 3.5 Connection-oriented transport: TCP ♦ segment structure ♦ reliable data transfer ♦ flow control ♦ connection management □ 3.6 Principles of congestion control □ 3.7 TCP congestion control

13-27 UDP: User Datagram Protocol [RFC 768] □ “No frills,” “bare bones” Internet transport protocol □ “Best effort” service; UDP segments may be: ♦ lost ♦ delivered out of order to app □ Connectionless: ♦ no handshaking between UDP sender, receiver ♦ each UDP segment handled independently of others Why is there a UDP? □ no connection establishment (which can add delay) □ simple: no connection state at sender, receiver □ small segment header □ no congestion control: UDP can blast away as fast as desired

13-28 UDP: more □ Often used for streaming multimedia apps ♦ loss tolerant ♦ rate sensitive □ Other UDP uses ♦ DNS ♦ SNMP □ Reliable transfer over UDP: add reliability at application layer ♦ application-specific error recovery! source port #dest port # 32 bits Application data (message) UDP segment format length checksum Length, in bytes of UDP segment, including header

13-29 UDP checksum Sender: □ treat segment contents as sequence of 16-bit integers □ checksum: addition (1’s complement sum) of segment contents □ sender puts checksum value into UDP checksum field Receiver: □ test checksum of received segment ♦ accept or discard segment Goal: detect “errors” (e.g., flipped bits) in transmitted segment

13-30 Recap □ Mobility in Cellular networks ♦ HLR, VLR, MSC ♦ Handoff □ Transport Layer ♦ Introduction ♦ Multiplexing / demultiplexing ♦ UDP

13-31 Next time □ Reliable Data Transfer □ Midterm review