Introduction to Networks

Slides:



Advertisements
Similar presentations
Communication Networks ( ) / Spring 2011 The Blavatnik School of Computer Science, Tel-Aviv University Allon Wagner.
Advertisements

Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r Homework 3 out r Project 3 out, link state only. Some slides are.
5: DataLink Layer5-1 Mac Addressing, Ethernet, and Interconnections.
Chapter 5 Link Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
8-1 Last time □ Network layer ♦ Introduction forwarding vs. routing ♦ Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding.
1 Improving Web Servers performance Objectives:  Scalable Web server System  Locally distributed architectures  Cluster-based Web systems  Distributed.
MAC Addresses and ARP 32-bit IP address: –network-layer address –used to get datagram to destination IP subnet MAC (or LAN or physical or Ethernet) address:
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
16 – CSMA/CD - ARP Network Layer4-1. 5: DataLink Layer5-2 CSMA (Carrier Sense Multiple Access) CSMA: listen before transmit: If channel sensed idle: transmit.
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
Lecture 8 Modeling & Simulation of Communication Networks.
Chapter 5 Link Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Link Layer data center.
Network Redundancy Multiple paths may exist between systems. Redundancy is not a requirement of a packet switching network. Redundancy was part of the.
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 26 Omar Meqdadi Department of Computer Science and Software Engineering.
Network LayerII-1 RSC Part II: Network Layer 4. IP in operation Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are,
5: DataLink Layer5-1 LAN technologies Data link layer so far: m services, error detection/correction, multiple access Next: LAN technologies m addressing.
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Part 4: Link Layer addressing Ethernet Computer Networking: A Top Down Approach 6 th edition Jim Kurose,
A day in the life: scenario
Link Layer 5-1 Link layer, LAN s: outline 5.1 introduction, services 5.2 error detection, correction 5.3 multiple access protocols 5.4 LANs  addressing,
1 John Magee 11 July 2013 CS 101 Lecture 11: How do you “visit” a web page, revisted Slides adapted from Kurose and Ross, Computer Networking 5/e Source.
5: Link Layer Part Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer.
Link Layer5-1 Synthesis: a day in the life of a web request  journey down protocol stack complete!  application, transport, network, link  putting-it-all-together:
CSCI 3335: C OMPUTER N ETWORKS A DAY IN THE LIFE OF A WEB REQUEST Vamsi Paruchuri University of Central Arkansas
Chapter 5 Link Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Link Layer introduction,
5: DataLink Layer5-1 CSMA (Carrier Sense Multiple Access) CSMA: listen before transmit: If channel sensed idle: transmit entire frame r If channel sensed.
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
Link Layer5-1 Synthesis: a “day” in the life of a web request  journey down protocol stack!  application, transport, network, link  putting-it-all-together:
Chapter 5 Link 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 14 Wenbing Zhao
Net5: ARP 協定 授課教師:雲林科技大學 張慶龍 老師. IP Address/Physical Address Static Mapping  IP broadcast address maps to Ethernet broadcast address  IP Multicast Address.
5: DataLink Layer5-1 Virtualization of networks Virtualization of resources: powerful abstraction in systems engineering: r computing examples: virtual.
5: DataLink Layer5-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m.
End-host IP: MAC: 11:11:11:11:11 gateway IP: MAC: 22:22:22:22:22 Google server IP: interne t interface DNS server IP:
CSEN 404 Data Link Layer Amr El Mougy Lamia AlBadrawy.
CSEN 404 Introduction to Networks Amr El Mougy Lamia AlBadrawy.
4: DataLink Layer1 LAN technologies Data link layer so far: m services, error detection/correction, multiple access Next: LAN technologies m addressing.
CPSC 441: Link Layer1 Link Layer Addressing Slides originally from Carey Williamson Notes derived from “ Computer Networking: A Top Down Approach”, by.
Chapter 5 Link 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.
Address Resolution Protocol (ARP)
Virtualization of networks
Instructor Materials Chapter 3 Communicating on a Local Network
EEC-484/584 Computer Networks
A Typical Connection Scenario
CS4470 Computer Networking Protocols
CS 280: Summary: A day in the life of a web request
Course Review 2015 Computer networks 赵振刚
MAC Addresses and ARP 32-bit IP address:
CS 5565 Network Architecture and Protocols
CSci4211: Data Link Layer: Part 1
University of Pittsburgh
ARP: Address Resolution Protocol
Mac Addressing, Ethernet, and Interconnections
Lecture 11: Link Layer Slides derived from those available on the site of the book “Computer Networking”, by Kurose and Ross, PEARSON.
IP Forwarding Relates to Lab 3.
Address Resolution Protocol (ARP)
CS 457 – Lecture 10 Internetworking and IP
Chapter 5 Link Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
Introduction to Networks
ECE 4450:427/527 - Computer Networks Spring 2017
Chapter 6 The Data Link layer
Some slides have been taken from:
IP Forwarding Relates to Lab 3.
Chapters 1~5 Overview Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley Prof. Hong Liu for ECE369 Adapted from.
Link Layer 5.1 Introduction and services
Chapter 6 The Link Layer and LANs
CMPE 252A : Computer Networks
Synthesis A day in the life of a web request
LAN Addresses and ARP IP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node’s.
Link Layer 5.1 Introduction and services
Chapter 5: Link Layer 5.1 Introduction and services
Presentation transcript:

Introduction to Networks CSEN 404 Introduction to Networks Amr El Mougy Ali Saudi ** Slides are attributed to J. F. Kurose

Link Layer Application Transport Network Data Link PHY

Link Layer: Introduction Some terminology: hosts and routers are nodes communication channels that connect adjacent nodes along communication path are links wired links wireless links LANs layer-2 packet is a frame, encapsulates datagram data-link layer has responsibility of transferring datagram from one node to adjacent node over a link

Link Layer Functions Framing Medium Access Control (MAC) Reliable delivery Flow control Error detection and correction

IP Address vs. MAC Address 32-bit IP address: network-layer address used to get datagram to destination IP subnet MAC (or LAN or physical or Ethernet) address: function: get frame from one interface to another physically- connected interface (same network) 48 bit MAC address (for most LANs) burned in NIC ROM, also sometimes software settable Each network card (adapter) has a permanent unique MAC address (a.k.a hardware address, physical address, LAN address) represented in hexadecimal notation 5: DataLink Layer

IP Address vs. MAC Address xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx 223 191 056 008 xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx 1C 22 F3 D1 42 A9 5: DataLink Layer

LAN Addresses and ARP Broadcast address = FF-FF-FF-FF-FF-FF LAN Each adapter on LAN has unique LAN address 1A-2F-BB-76-09-AD Broadcast address = FF-FF-FF-FF-FF-FF LAN (wired or wireless) = adapter 71-65-F7-2B-08-53 58-23-D7-FA-20-B0 0C-C4-11-6F-E3-98 5: DataLink Layer

LAN Address (more) MAC address allocation administered by IEEE manufacturer buys portion of MAC address space (to assure uniqueness) analogy: (a) MAC address: like Social Security Number, SIN (b) IP address: like postal address MAC flat address ➜ portability can move LAN card from one LAN to another IP hierarchical address NOT portable address depends on IP subnet to which node is attached 5: DataLink Layer

MACs in Frame Starting at A, given IP datagram addressed to B: look up net. address of B, find B on same net. as A link layer send datagram to B inside link-layer frame

ARP: Address Resolution Protocol Each IP node (host, router) on LAN has ARP table ARP table: IP/MAC address mappings for some LAN nodes < IP address; MAC address; TTL> TTL (Time To Live): time after which address mapping will be forgotten (typically 20 min) 137.196.7.78 1A-2F-BB-76-09-AD 137.196.7.23 137.196.7.14 LAN 71-65-F7-2B-08-53 58-23-D7-FA-20-B0 0C-C4-11-6F-E3-98 137.196.7.88

ARP protocol: Same LAN (network) A wants to send datagram to B, and B’s MAC address not in A’s ARP table. A broadcasts ARP query packet, containing B's IP address dest MAC address = FF-FF-FF-FF-FF-FF all machines on LAN receive ARP query B receives ARP packet, replies to A with its (B's) MAC address frame sent to A’s MAC address (unicast) A caches (saves) IP-to-MAC address pair in its ARP table until information becomes old (times out) soft state: information that times out (goes away) unless refreshed ARP is “plug-and-play”: nodes create their ARP tables without intervention from net administrator

Addressing: routing to another LAN walkthrough: send datagram from A to B via R assume A knows B’s IP address two ARP tables in router R, one for each IP network (LAN) 1A-23-F9-CD-06-9B 222.182.191.007 193.154.112.110 E6-E9-00-17-BB-4B CC-49-DE-D0-AB-7D 193.154.112.112 193.154.112.111 A 74-29-9C-E8-FF-55 222.182.191.008 88-B2-2F-54-1A-0F B 222.182.191.009 49-BD-D2-C7-56-2A LAN 5: DataLink Layer

R A B A creates IP datagram with source A, destination B A uses ARP to get R’s MAC address for 111.111.111.110 A creates link-layer frame with R's MAC address as dest, frame contains A-to-B IP datagram A’s NIC sends frame R’s NIC receives frame R removes IP datagram from Ethernet frame, sees its destined to B R uses ARP to get B’s MAC address R creates frame containing A-to-B IP datagram sends to B R 1A-23-F9-CD-06-9B 222.222.222.220 111.111.111.110 E6-E9-00-17-BB-4B CC-49-DE-D0-AB-7D 111.111.111.112 111.111.111.111 A 74-29-9C-E8-FF-55 222.222.222.221 88-B2-2F-54-1A-0F B 222.222.222.222 49-BD-D2-C7-56-2A 5: DataLink Layer

Switches and Routers Routers Switches Traffic Isolation Yes Plug and Play No Optimal Routing Larger networks require routers as they have better traffic isolation and can find better routes

A Day in the Life of a Webpage Request DNS Server 68.87.71.226 GUC 68.85.2.0/24 Bob 00:16:D3:23:63:8A ISP 68.80.0.0/13 00:22:6B:45:1F:1B 68.85.2.1 Bob wishes to retrieve a page from www.google.com Bob has just booted up the computer www.google.com 68.233.169.105 Google 68.233.160.0/19

A Day in the Life of a Webpage Request 68 67 0.0.0.0 255.255.255.255 00:16:D3:23:63:8A FF:FF:FF:FF:FF:FF DNS Server 68.87.71.226 GUC 68.85.2.0/24 Bob 00:16:D3:23:63:8A ISP 68.80.0.0/13 00:22:6B:45:1F:1B 68.85.2.1 Yiaddr: 68.85.2.101 67 68 68.85.2.1 255.255.255.255 00:22:6B:45:1F:1B FF:FF:FF:FF:FF:FF DHCP ACK also includes IP of default gateway (router in this case) and DNS server www.google.com 68.233.169.105 Google 68.233.160.0/19

A Day in the Life of a Webpage Request ARP Query 68.85.2.101 68.85.2.1 00:16:D3:23:63:8A FF:FF:FF:FF:FF:FF DNS Server 68.87.71.226 GUC 68.85.2.0/24 Bob 00:16:D3:23:63:8A 68.85.2.101 ISP 68.80.0.0/13 00:22:6B:45:1F:1B 68.85.2.1 ARP Reply 68.85.2.1 68.85.2.101 00:22:6B:45:1F:1B 00:16:D3:23:63:8A Before sending a DNS query, Bob must first discover the MAC address of the router through ARP www.google.com 68.233.169.105 Google 68.233.160.0/19

A Day in the Life of a Webpage Request DNS query: www.google.com 61334 53 68.85.2.101 68.87.71.226 00:16:D3:23:63:8A 00:22:6B:45:1F:1B DNS reply: 68.233.169.105 53 61334 68.87.71.226 68.85.2.101 MAC of DNS MAC of default R DNS Server 68.87.71.226 GUC 68.85.2.0/24 Bob 00:16:D3:23:63:8A 68.85.2.101 ISP 68.80.0.0/13 00:22:6B:45:1F:1B 68.85.2.1 To send HTTP request, Bob’s browser has to create a TCP socket. Thus, it needs the IP address of www.google.com www.google.com 68.233.169.105 Google 68.233.160.0/19

A Day in the Life of a Webpage Request 52122 80 68.85.2.101 68.233.169.105 00:16:D3:23:63:8A 00:22:6B:45:1F:1B DNS Server 68.87.71.226 GUC 68.85.2.0/24 Bob 00:16:D3:23:63:8A 68.85.2.101 ISP 68.80.0.0/13 00:22:6B:45:1F:1B 68.85.2.1 To establish TCP connection, TCP SYN packet is sent www.google.com 68.233.169.105 Google 68.233.160.0/19 80 52122 68.233.169.105 68.85.2.101 MAC of web server MAC of default R

A Day in the Life of a Webpage Request HTTP Request: google search 52122 80 68.85.2.101 68.233.169.105 00:16:D3:23:63:8A 00:22:6B:45:1F:1B DNS Server 68.87.71.226 GUC 68.85.2.0/24 Bob 00:16:D3:23:63:8A 68.85.2.101 ISP 68.80.0.0/13 00:22:6B:45:1F:1B 68.85.2.1 Finally HTTP request can be sent HTTP Reply: search results 80 52122 68.233.169.105 68.85.2.101 MAC of web server MAC of default R www.google.com 68.233.169.105 Google 68.233.160.0/19