Lecture 6 Overview. TCP: Transmission Control Protocol TCP is an alternative transport layer protocol supported by TCP/IP. TCP provides: – Connection-oriented.

Slides:



Advertisements
Similar presentations
Netprog: TCP Details1 TCP Details. Netprog: TCP Details2 TCP Lingo When a client requests a connection, it sends a “SYN” segment (a special TCP segment)
Advertisements

Netprog: TCP Details1 TCP Details Introduction to Networking Yan Gao TA Jan 27, 2005 Recital 3.
Lecture 3 TCP/IP model CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
Netprog: TCP Details1 TCP Details Introduction to Networking John Otto TA Jan 31, 2007 Recital 4.
4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side, delivers.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 14.
10 - Network Layer. Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving.
Netprog: TCP Details1 TCP Details Introduction to Networking.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
Network Layer4-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley,
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 13.
1 Lecture 11: The Network Layer Slides adapted from: Congestion slides for Computer Networks: A Systems Approach (Peterson and Davis) Chapter 3 slides.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
CSCE 515: Computer Network Programming TCP Details Wenyuan Xu Department of Computer Science and Engineering.
1 Network Layer: Host-to-Host Communication. 2 Network Layer: Motivation Can we built a global network such as Internet by extending LAN segments using.
Network Layer4-1 Data Communication and Networks Lecture 6 Networks: Part 1 Circuit Switching, Packet Switching, The Network Layer October 13, 2005.
Lecture 7 Overview. Two Key Network-Layer Functions forwarding: move packets from router’s input to appropriate router output routing: determine route.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.5 Routing algorithms m Link state m Distance.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
1 Announcement #1 r Did you all receive homework #1 and #2? r Homework #3 will be available online during the day r Midterm.
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 15.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Gursharan Singh Tatla Transport Layer 16-May
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 All material copyright
1 Wide Area Networks and Internet CT1403 Lecture-8: Internet Network Layer (Part-3) By : Najla Al-Nabhan.
Network Layer4-1 Chapter 4 Network Layer Part 1: network layer overview datagram networks routers Computer Networking: A Top Down Approach 6 th edition.
Network Layer Goals: understand principles behind network layer services: –routing (path selection) –dealing with scale –how a router works –advanced topics:
Introduction to Network Layer. Network Layer: Motivation Can we built a global network such as Internet by extending LAN segments using bridges? –No!
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 Layer4-1 Summary: TCP Congestion Control When CongWin is below Threshold, sender in slow-start phase, window grows exponentially. When CongWin.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 18 Omar Meqdadi Department of Computer Science and Software Engineering University.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
Virtual Circuit Network. Network Layer 2 Network layer r transport segment from sending to receiving host r network layer protocols in every host, router.
Network Layer4-1 Chapter 4 Network Layer A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students, readers).
Network Layer 4-1 Chapter 4 Network Layer. Network Layer 4-2 Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3.
Introduction 1-1 EKT355/4 ADVANCED COMPUTER NETWORK MISS HASNAH AHMAD School of Computer & Communication Engineering.
7-1 Last time □ Wireless link-layer ♦ Introduction Wireless hosts, base stations, wireless links ♦ Characteristics of wireless links Signal strength, interference,
1 CSE3213 Computer Network I Network Layer (7.1, 7.3, ) Course page: Slides modified from Alberto Leon-Garcia.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Network Layer introduction.
1 John Magee 24 February 2014 CS 280: Network Layer: Virtual Circuits / Datagram Networks and What’s inside a Router? Most slides adapted from Kurose and.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Internet Protocol ECS 152B Ref: slides by J. Kurose and K. Ross.
4: Network Layer4-1 Schedule Today: r Finish Ch3 r Collect 1 st Project r See projects run r Start Ch4 Soon: r HW5 due Monday r Last chance for Qs r First.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
Forwarding.
Network Layer4-1 Chapter 4 Network Layer All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Project 2 r DUE Wed: 02/24 Network Layer4-1. Project 2 r DUE Wed: 02/24 r DUE Mon: 02/29 Network Layer4-2.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
4: Network Layer4a-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m routing (path selection) m dealing.
INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723
Data Communication and Networks
Chapter 4 Network Layer All material copyright
Introduction to Networking Recital 4
Network Layer Goals: Overview:
CS4470 Computer Networking Protocols
EEC-484/584 Computer Networks
Chapter 4-1 Network layer
EEC-484/584 Computer Networks
TCP Details.
Network Layer I have learned from life no matter how far you go
October 26th, 2010 CS1652/Telcom2310 Jack Lange
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
EEC-484/584 Computer Networks
Transport Layer 9/22/2019.
Presentation transcript:

Lecture 6 Overview

TCP: Transmission Control Protocol TCP is an alternative transport layer protocol supported by TCP/IP. TCP provides: – Connection-oriented – Reliable – Full-duplex – Byte-Stream CPE 401/601 Lecture 6 : TCP/IP model 2

TCP Segment Format CPE 401/601 Lecture 6 : TCP/IP model 3 Destination Port Options (if any) Data 1 byte Source Port Sequence Number Request Number (ACK) 1 byte offset Rsrvd Control Window Size ChecksumUrgent Pointer

TCP Segment Format Sequence Number refers to the first byte of data included in the segment Request Number (Acknowledgement Number) indicates the byte number of the next data that is expected to be received – All bytes up through this number have been received Window: tells sender how many bytes it can send before receiver will have to toss it away – due to fixed buffer size CPE 401/601 Lecture 6 : TCP/IP model 4

Control Flags URG: urgent data included ACK: this segment is (among other things) an acknowledgement RST: error - abort the session SYN: synchronize Sequence Numbers (setup) FIN: polite connection termination CPE 401/601 Lecture 6 : TCP/IP model 5

TCP Connection Creation CPE 401/601 Lecture 6 : TCP/IP model 6 Client Server SYN ISN=X SYN ISN=X 1 SYN ISN=Y, ACK=X+1 SYN ISN=Y, ACK=X+1 2 ACK=Y+1 3 time

TCP Data and ACK Once the connection is established, data can be sent Each data segment includes a sequence number identifying the first byte in the segment Each segment (data or empty) includes a request number indicating what data has been received CPE 401/601 Lecture 6 : TCP/IP model 7

TCP Buffers The TCP layer doesn’t know when the application will ask for any received data – buffers incoming data so it’s ready when application asks for it Both client and server allocate buffers to hold incoming and outgoing data Both client and server announce with every ACK how much buffer space remains – Window field in a TCP segment CPE 401/601 Lecture 6 : TCP/IP model 8

Send Buffers The application gives the TCP layer some data to send The data is put in a send buffer, where it stays until the data is ACK’d – it has to stay, as it might need to be sent again! TCP layer won’t accept data from application unless (or until) there is buffer space CPE 401/601 Lecture 6 : TCP/IP model 9

ACKs A receiver doesn’t have to ACK every segment – it can ACK many segments with a single ACK segment Each ACK can also contain outgoing data – piggybacking If a sender doesn’t get an ACK after some time limit (MSL) it resends the data. CPE 401/601 Lecture 6 : TCP/IP model 10

TCP Segment Order IP delivers TCP segments and IP in not reliable – IP datagrams can be lost or arrive out of order Most TCP implementations will accept out-of- order segments – if there is room in the buffer Once the missing segments arrive, a single ACK can be sent for the whole thing TCP/IP model 11

Termination The TCP layer can send a RST segment that terminates a connection if something is wrong Usually the application tells TCP to terminate the connection politely with a FIN segment CPE 401/601 Lecture 6 : TCP/IP model 12

Connection Termination CPE 401/601 Lecture 6 : TCP/IP model 13 App1 App2 FIN SN=X FIN SN=X 1 ACK=X+1 2 ACK=Y+1 4 FIN SN=Y FIN SN=Y 3...

TCP TIME_WAIT Once a TCP connection has been terminated there is some unfinished business: – What if the ACK is lost? The last FIN will be resent and it must be ACK’d. – What if there are lost or duplicated segments that finally reach the destination after a long delay? TCP hangs out for a while to handle these situations CPE 401/601 Lecture 6 : TCP/IP model 14

Lecture 7 Routing CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger slides are modified from J. Kurose & K. Ross

Two Key Network-Layer Functions forwarding: move packets from router’s input to appropriate router output routing: determine route taken by packets from source to dest. – routing algorithms Analogy – routing: process of planning trip from source to destination – forwarding: process of getting through single interchange CPE 401/601 Lecture 7 : Routing 16

1 2 3 local forwarding table header value output link routing and forwarding 0111 value in arriving packet’s header routing algorithm CPE 401/601 Lecture 7 : Routing 17

Connection setup 3 rd important function in some architectures – ATM, frame relay, X.25 before datagrams flow, two end hosts and intervening routers establish virtual connection – routers get involved network vs transport layer connection service: – network: between two hosts may also involve intervening routers in case of VCs – transport: between two processes CPE 401/601 Lecture 7 : Routing 18

Network service model Q: What service model for channel transporting datagrams from sender to receiver? Example services for individual datagrams: – guaranteed delivery – guaranteed delivery with less than 40 msec delay Example services for a flow of datagrams: – in-order datagram delivery – guaranteed minimum bandwidth to flow – restrictions on changes in inter-packet spacing CPE 401/601 Lecture 7 : Routing 19

Network layer service models Network Architecture Internet ATM Service Model best effort BR VBR ABR UBR Bandwidth none constant rate guaranteed rate guaranteed minimum none Loss no yes no Order no yes Timing no yes no Congestion feedback no (inferred via loss) no congestion no congestion yes no Guarantees ? CPE 401/601 Lecture 7 : Routing 20

Connection and connection-less service Datagram network provides network-layer connectionless service Virtual Circuit network provides network-layer connection service analogous to the transport-layer services, but: – service: host-to-host – no choice: network provides one or the other – implementation: in network core CPE 401/601 Lecture 7 : Routing 21

Virtual circuits src-to-dst path behaves much like telephone circuit – performance-wise – network actions along source-to-dest path call setup, teardown for each call before data can flow each packet carries VC identifier – not destination host address every router on source-dest path maintains “state” for each passing connection link, router resources (bandwidth, buffers) may be allocated to VC – dedicated resources = predictable service) CPE 401/601 Lecture 7 : Routing 22

VC implementation A VC consists of: – path from source to destination – VC numbers one number for each link along path – entries in forwarding tables in routers along path packet belonging to VC carries VC number – rather than dest address VC number can be changed on each link – New VC number comes from forwarding table CPE 401/601 Lecture 7 : Routing 23

Forwarding table VC number interface number Incoming interface Incoming VC # Outgoing interface Outgoing VC # … … Forwarding table in northwest router: Routers maintain connection state information! CPE 401/601 Lecture 7 : Routing 24

Virtual circuits: signaling protocols used to setup, maintain teardown VC used in ATM, frame-relay, X.25 not used in today’s Internet application transport network data link physical application transport network data link physical 1. Initiate call 2. incoming call 3. Accept call 4. Call connected 5. Data flow begins 6. Receive data CPE 401/601 Lecture 7 : Routing 25

Datagram networks no call setup at network layer routers: no state about end-to-end connections – no network-level concept of “connection” packets forwarded using destination host address – packets between same src-dst pair may take different paths application transport network data link physical application transport network data link physical 1. Send data 2. Receive data CPE 401/601 Lecture 7 : Routing 26

Forwarding table Destination Address Range Link Interface through through through otherwise 3 4 billion possible entries CPE 401/601 Lecture 7 : Routing 27

Longest prefix matching Network Layer 4-28 Prefix Match Link Interface otherwise 3 DA: Examples DA: Which interface?

Datagram or VC network: why? Internet (datagram) – data exchange among computers “elastic” service, no strict timing requirement – “smart” end systems (computers) can adapt, perform control, error recovery simple inside network, complexity at “edge” – many link types different characteristics uniform service difficult CPE 401/601 Lecture 7 : Routing 29

Datagram or VC network: why? ATM (VC) – evolved from telephony – human conversation: strict timing, reliability requirements need for guaranteed service – “dumb” end systems telephones complexity inside network CPE 401/601 Lecture 7 : Routing 30