TDTS06: Computer Networks

Similar documents
CSC 4900 Computer Networks: Link Layer (3)

Computer Communications DIT 420 EDA343

Course on Computer Communication and Networks. Lecture 16 Synthesis, Summary/flashback and Projection (related topics continuation of study)

Link Layer and LANs. CMPS 4750/6750: Computer Networks

TDTS06 Computer Networks Final Exam: 14:00-18:00, Friday, November 1, 2013

CS118 Discussion 1A, Week 9. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

Lecture 14 Summary - flashback

CSC 401 Data and Computer Communications Networks

TDTS04 Computer networks and distributed systems Final Exam: 14:00-18:00, Thursday, March 20, 2014

CS 655 System and Network Architectures and Implementation. Module 4 Naming, Mobility, Messaging

CS 455/555 Intro to Networks and Communications. Link Layer Addressing, Ethernet, and a Day in the Life of a Web Request

Course on Computer Communication and Networks. Lecture 16 Synthesis, Summary/flashback and Projection (related topics continuation of study)

Internet protocol stack

Chapter 6 The Link Layer and LANs

Chapter 5 Link Layer. Down Approach. Computer Networking: A Top. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Lecture 9 Ethernet and other Link Layer protocols

Transmission Control Protocol

Chapter 5 Data Link Layer

Computer Communication Networks Midterm Review

CSC 8560 Computer Networks: Link and Physical Layers

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

FTP. Mail. File Transfer Protocol (FTP) FTP commands, responses. Electronic Mail. TDTS06: Computer Networks

Computer Networks. Instructor: Niklas Carlsson

Link layer, LANs: outline. Chapter 5-2 Link Layer. MAC addresses (more) MAC addresses

Student ID: CS457: Computer Networking Date: 3/20/2007 Name:

Internet Applications and the Application Layer Material from Kurose and Ross, Chapter 2: The Application Layer

Putting it all together

CS164 Final Exam Winter 2013

ECE 4450:427/527 - Computer Networks Spring 2017

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

Mid Term Exam Results

CPSC 441 COMPUTER COMMUNICATIONS MIDTERM EXAM SOLUTION

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

Computer Communication EDA344, EDA343, DIT 420

CPSC 441 COMPUTER COMMUNICATIONS MIDTERM EXAM

ECE4110, Internetwork Programming, QUIZ 2 - PRACTICE Spring 2006

CS 3516: Advanced Computer Networks

TCP. Second phase of the project. Connection management. Flow control and congestion. Emphasizing on the followings: Three parameters: At any time

Chapter 3 outline. 3.5 Connection-oriented transport: TCP. 3.6 Principles of congestion control 3.7 TCP congestion control

ECE 544 Computer Networks II Mid-Term Exam March 29, 2002 Profs. D. Raychaudhuri & M. Ott

Chapter 3 Transport Layer

Final Exam Computer Networks Fall 2015 Prof. Cheng-Fu Chou

CS 421: COMPUTER NETWORKS FALL FINAL January 10, minutes

Computer Networks. Dr. Abdel Ilah ALshbatat Dept. of Communication and Computer Engineering Faculty of Engineering Tafila Technical University

Chapter 3 Transport Layer

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Midterm Review. EECS 489 Computer Networks Z. Morley Mao Monday Feb 19, 2007

Chapter 3 Transport Layer

Application. Transport. Network. Link. Physical

Key Network-Layer Functions

Subnets. IP datagram format. The Internet Network layer. IP Fragmentation and Reassembly. IP Fragmentation & Reassembly. IP Addressing: introduction

TDTS06: Computer Networks

CS3516 B10 Computer Networks Final Exam December 14, 2010

Chapter 6: Link layer and LANs. Link layer, LANs: outline. Link layer: introduction. Link layer: context. Link layer services (more)

PLEASE WRITE NEATLY I need to be able to read your answers! (seemingly encrypted solutions can not be decrypted!)

King Fahd University of Petroleum and Minerals College of Computer Sciences and Engineering Department of Computer Engineering

1. (10 points): For each of the following, choose exactly one best answer.

CSCI Computer Networks Spring 2017

Chapter 6 The Link Layer and LANs

CSCI Computer Networks Fall 2016

CS 3516: Computer Networks

cs/ee 143 Communication Networks

Your Name: Your student ID number:

internet technologies and standards

Transport layer. UDP: User Datagram Protocol [RFC 768] Review principles: Instantiation in the Internet UDP TCP

Wireless TCP Performance Issues

Transport layer. Review principles: Instantiation in the Internet UDP TCP. Reliable data transfer Flow control Congestion control

Link Layer: Introduction. Chapter 5 Link Layer & LANS. Link layer: context. Link Layer Services

a. (4pts) What general information is contained in a LSR-PDU update that A might send?

Sirindhorn International Institute of Technology Thammasat University

Final Exam for ECE374 05/03/12 Solution!!

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Question Points Score total 100

internet technologies and standards

Name Student ID Department/Year. Midterm Examination. Introduction to Computer Networks Class#: 901 E31110 Fall 2007

Closed book. Closed notes. No electronic device.

CS 421: COMPUTER NETWORKS SPRING FINAL May 16, minutes

CPSC 441 COMPUTER COMMUNICATIONS MIDTERM EXAM SOLUTION

Chapter 4 Network Layer

Chapter 6 The Link Layer and LANs

Solution to Question 1: ``Quickies'' (25 points, 15 minutes)

Kent State University

Homework 3 1 DNS. A root. A com. A google.com

cs144 Midterm Review Fall 2010

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

CC451 Computer Networks

Chapter 4 Network Layer: The Data Plane. Part A. Computer Networking: A Top Down Approach

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING

Why dynamic route? (1)

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. **Slides are attributed to J. F. Kurose

MIDTERM EXAMINATION #2 OPERATING SYSTEM CONCEPTS U N I V E R S I T Y O F W I N D S O R S C H O O L O F C O M P U T E R S C I E N C E

CPSC 441 COMPUTER NETWORKS MIDTERM EXAM

COMP211 Chapter 6/7 Link Layer

15-441: Computer Networks Homework 3

Chapter 09 Network Protocols

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

TCP: Transmission Control Protocol UDP: User Datagram Protocol TCP - 1

Department of Computer Science and Engineering. Final Examination. Instructor: N. Vlajic Date: April 15, 2011

TCP/IP Networking. Part 4: Network and Transport Layer Protocols

interface Question 1. a) Applications nslookup/dig Web Application DNS SMTP HTTP layer SIP Transport layer OSPF ICMP IP Network layer

Transcription:

TDTS06: Computer Networks Instructor: Niklas Carlsson Email: niklas.carlsson@liu.se Notes derived from Computer Networking: A Top Down Approach, by Jim Kurose and Keith Ross, Addison-Wesley. The slides are adapted and modified based on slides from the book s companion Web site, as well as modified slides by Anirban Mahanti and Carey Williamson. 8-1

Synthesis: a day in the life of a web request journey down protocol stack complete! application, transport, network, link putting-it-all-together: synthesis! goal: identify, review, understand protocols (at all layers) involved in seemingly simple scenario: requesting www page scenario: student attaches laptop to campus network, requests/receives www.google.com 8-2

A day in the life: scenario browser server Comcast network 68.80.0.0/13 school network 68.80.2.0/24 web page web server 64.233.169.105 Google s network 64.233.160.0/19 8-3

A day in the life connecting to the Internet UDP IP UDP IP router (runs ) connecting laptop needs to get its own IP address, addr of first-hop router, addr of server: use request encapsulated in UDP, encapsulated in IP, encapsulated in 802.1 ernet ernet frame broadcast (dest: FFFFFFFFFFFF) on LAN, received at router running server ernet demuxed to IP demuxed, UDP demuxed to 8-4

A day in the life connecting to the Internet UDP IP server formulates ACK containing client s IP address, IP address of first-hop router for client, name & IP address of server UDP IP router (runs ) encapsulation at server, frame forwarded (switch learning) through LAN, demultiplexing at client client receives ACK reply Client now has IP address, knows name & addr of server, IP address of its first-hop router 8-5

A day in the life ARP (before, before HTTP) ARP query UDP IP ARP ARP reply ARP before sending HTTP request, need IP address of www.google.com: query created, encapsulated in UDP, encapsulated in IP, encapsulated in. In order to send frame to router, need MAC address of router interface: ARP ARP query broadcast, received by router, which replies with ARP reply giving MAC address of router interface client now knows MAC address of first hop router, so can now send frame containing query 8-6

A day in the life using UDP IP UDP IP Comcast network 68.80.0.0/13 server IP datagram containing query forwarded via LAN switch from client to 1 st hop router IP datagram forwarded from campus network into comcast network, routed (tables created by RIP, OSPF, IS-IS and/or BGP routing protocols) to server demuxed to server server replies to client with IP address of www.google.com 8-7

Infrastructure root server Host at cis.poly.edu wants IP address for gaia.cs.umass.edu Infrastructure: Client resolver Local server Authoritative Server Root Server Top-Level Domain Server local server dns.poly.edu 1 2 8 requesting host cis.poly.edu 3 4 5 7 TLD server 6 authoritative server dns.cs.umass.edu gaia.cs.umass.edu 8 8-8

Routing and Forwarding 3c 3a 3b AS3 1a 1c 1d 1b Intra-AS Routing algorithm AS1 Forwarding table Inter-AS Routing algorithm 2a 2c 2b AS2 Forwarding table is configured by both intra- and inter-as routing algorithm Intra-AS sets entries for internal dests Inter-AS & Intra-As sets entries for external dests CPSC441: Routing 9 8-9

A day in the life TCP connection carrying HTTP HTTP SYNACK SYNACK SYNACK HTTP TCP IP SYNACK SYNACK SYNACK TCP IP web server 64.233.169.105 to send HTTP request, client first opens TCP socket to web server TCP SYN segment (step 1 in 3-way handshake) interdomain routed to web server web server responds with TCP SYNACK (step 2 in 3- way handshake) TCP connection established! 8-10

A day in the life HTTP request/reply HTTP HTTP HTTP HTTP HTTP HTTP TCP IP web page finally (!!!) displayed HTTP HTTP HTTP HTTP HTTP TCP IP web server 64.233.169.105 HTTP request sent into TCP socket IP datagram containing HTTP request routed to www.google.com web server responds with HTTP reply (containing web page) IP datagram containing HTTP reply routed back to client 8-11

Network View: HTTP and TCP TCP is a connection-oriented protocol SYN SYN/ACK GET URL ACK Web Client YOUR DATA HERE Web Server FIN ACK FIN/ACK 128-12

Slow Start Slow Start is used to reach the equilibrium state Initially: W = 1 (slow start) On each successful ACK: W W + 1 Exponential growth of W each RTT: W 2 x W Enter CA when W >= ssthresh ssthresh: window size after which TCP cautiously probes for bandwidth sender cwnd 1 2 3 4 5 6 7 8 data segment ACK receiver 138-13

Congestion Avoidance Starts when sender receiver W ssthresh On each successful ACK: W W+ 1/W Linear growth of W each RTT: W W + 1 1 2 3 4 data segment ACK 148-14

Exam Read all instructions carefully Possible bonus marks from bonus question Please explain how you derived your answers. Your final answers should be clearly stated. Write answers legibly; no marks will be given for answers that cannot be read easily. Where a discourse or discussion is called for, be concise and precise. 8-15

Exam (cnt.) If necessary, state any assumptions you made in answering a question. However, remember to read the instructions for each question carefully and answer the questions as precisely as possible. Solving the wrong question may result in deductions! It is better to solve the right question incorrectly, than the wrong question correctly. Answers can be provided in either English or Swedish. (If needed, feel free to bring a dictionary from an official publisher. Hardcopy, not electronic!! Also, your dictionary is not allowed to contain any notes; only the printed text by the publisher.) 8-16

Some example questions Note: Expect to see that you understand the material questions will therefore be given that test your understanding. 8-17

Question: TCP (6) [Web] Consider two machines A and B which are located 75ms apart. Assume that A is delivering a large file to B. Draw a figure that captures the send and receive events of the first 16 packets. You should consider three scenarios. (a) Assume no packet losses. (b) Assume that packets 8, 9, and 10 are lost. (c) Assume that packets 5, 6, and 7 are lost. You can assume that the TCP version is implementing fast retransmit and the timeout period is 250ms. For simplicity, you can also assume that the transmission rate is infinite. 8-18

Question: TCP fairness (3) [Web] Please explain what it means for an UDP flow to be TCP friendly. Why is this reasonable etiquette? 8-19

Question: Dijkstra s algorithm (4) [Web] Consider the network in the graph below. Calculate the shortest part between A and D. (Please insert your own random graph topology here.) 8-20

Question: CDN (3) [Web] Both Content Distribution Networks (CDNs) and Internet Service Providers (ISPs) use caching to improve end user performance. Please explain how service models of CDNs (such as Akamai) differ from that of ISPs? 8-21

Question: Chord (5) [Web] Assume a fully populated chord circle (in which there is one node per value), with a total of 128 values. Further assume that each node keeps track of its successor, predecessor, and full finger table. Please provide the routing tables of nodes 0, 1, and 5. Be sure to indicate which entries correspond to the successor, predecessor, and full finger table. 8-22