Introduction 1-1 Lecture 14 Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CS3516: These slides.

Slides:



Advertisements
Similar presentations
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs A note on the use of these ppt slides: Were making these slides freely available to all (faculty, students,
Advertisements

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.
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.
1 Ethernet EECS 489 Computer Networks Z. Morley Mao Wednesday Feb 21, 2007 Acknowledgement: Some slides taken.
5/31/05CS118/Spring051 twisted pair hub 10BaseT, 100BaseT, hub r T= Twisted pair (copper wire) r Nodes connected to a hub, 100m max distance r Hub: physical.
5: DataLink Layer5-1 MAC Addresses and ARP r 32-bit IP address: m network-layer address m used to get datagram to destination IP subnet r MAC (or LAN or.
1 Interconnection ECS 152A. 2 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r But individual.
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-1 Data Link Layer r Today, we will study the data link layer… r This is the last layer in the network protocol stack we will study in this class…
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
Introduction 1 Lecture 25 Link Layer (Ethernet, Switch) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
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.
Chapter 5 Link Layer Link Layer5-1. Link Layer5-2 Link layer: introduction terminology:  hosts and routers: nodes  communication channels that connect.
Chapter 5 Link Layer and LANs
5: DataLink Layer5-1 LAN technologies Data link layer so far: m services, error detection/correction, multiple access Next: LAN technologies m addressing.
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
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,
Data Link Layer5-1 Review of MAC protocols channel partitioning, by time, frequency or code – Time Division, Frequency Division random access (dynamic),
5: DataLink Layer5-1 Ethernet “dominant” wired LAN technology: r cheap $20 for 100Mbs! r first widely used LAN technology r Simpler, cheaper than token.
5: DataLink Layer5-1 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 Addressing.
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.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
Chapter 5 Link Layer Link Layer5-1 Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley Chapter5_2.
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.
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
Link Layer Fundamentals NWEN302 Computer Network Design.
5: DataLink Layer5-1 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 Addressing.
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 LANs.
Chapter 5 Link Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Link Layer5-1.
CS 1652 Jack Lange University of Pittsburgh 1. 5: DataLink Layer5-2 MAC Addresses and ARP r 32-bit IP address: m network-layer address m used to get datagram.
Link layer, LANs: outline
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.
5: DataLink Layer5-1 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 Addressing.
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.
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:
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 Link layer, LANs: outline 5.1 introduction, services 5.2 error detection, correction 5.3 multiple access protocols 5.4 LANs  addressing,
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
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
5: DataLink Layer5-1 Virtualization of networks Virtualization of resources: powerful abstraction in systems engineering: r computing examples: virtual.
5: DataLink Layer5-1 Hubs Hubs are essentially physical-layer repeaters: m bits coming from one link go out all other links m at the same rate m no frame.
5: DataLink Layer5-1 Link-layer switches. 5: DataLink Layer5-2 Hubs … physical-layer (“dumb”) repeaters: m bits coming in one link go out all other links.
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.
5-1 Last time □ Multiple access protocols ♦ Channel partitioning MAC protocols TDMA, FDMA ♦ Random access MAC protocols Slotted Aloha, Pure Aloha, CSMA,
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.
Link Layer 5.1 Introduction and services
Virtualization of networks
Link Layer 5.1 Introduction and services
A Typical Connection Scenario
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:
Hubs Hubs are essentially physical-layer repeaters:
University of Pittsburgh
ARP: Address Resolution Protocol
Mac Addressing, Ethernet, and Interconnections
Hubs Hubs are essentially physical-layer repeaters:
Chapter 6 The Data Link layer
Data Link Issues Relates to Lab 2.
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.
Synthesis A day in the life of a web request
Chapter 5 Data Link Layer – Hub, Switch
Link Layer 5.1 Introduction and services
Presentation transcript:

Introduction 1-1 Lecture 14 Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CS3516: These slides are generated from those made available by the authors of our text.

Network Layer 4-2 Get MAC Address (Getmac.exe) Discovers the Media Access Control (MAC) address and lists associated network protocols for all network cards in a computer, either locally or across a network. C:\Users\jb>getmac Physical Address Transport Name ============ ============================= DD-AA Media disconnected DD-AA \Device\Tcpip_{437F350E-DFD7-4A86-B063-0B9650BD4404} DD-AA Media disconnected B8-CA-3A-DC-C6-2B Media disconnected E4-38 \Device\Tcpip_{F551D578-DC B91C-B349EAE4238F} Useful Commands

Network Layer 4-3 IP Configuration Utility (Ipconfig.exe) Displays all current (TCP/IP) network configurations. C:\Users\jb>ipconfig Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix. : WPI.EDU Link-local IPv6 Address..... : fe80::e591:74d4:a495:7998%16 IPv4 Address : Subnet Mask : Default Gateway : C:\Users\jb>ipconfig /?  Prints command line options C:\Users\jb>ipconfig /displaydns  gives dns info cached on node cs.wpi.edu Record Name..... : cs.wpi.edu Record Type..... : 1 Time To Live.... : Data Length..... : 4 Section : Answer A (Host) Record... : Useful Commands

Network Layer 4-4 Name Server Lookup (Nslookup.exe) Displays information about Domain Name System records for specific IP addresses and/or host names so that you can troubleshoot DNS problems. C:\Users\jb>nslookup Server: a.resolvers.level3.net  this is the name of the default server Address: Non-authoritative answer: Name: Addresses: 2607:f8b0:4000:804:: Useful Commands

Network Layer 4-5 Net services commands (Net.exe) Performs a broad range of network tasks. Type net with no parameters to see a full list of available command-line options. C:\Users\jb>net help The syntax of this command is: Commands available are: NET ACCOUNTS NET HELPMSG NET STATISTICS NET COMPUTER NET LOCALGROUP NET STOP NET CONFIG NET PAUSE NET TIME NET CONTINUE NET SESSION NET USE NET FILE NET SHARE NET USER NET GROUP NET START NET VIEW NET HELP NET HELP NAMES explains different types of names in NET HELP syntax lines. NET HELP SERVICES lists some of the services you can start. NET HELP SYNTAX explains how to read NET HELP syntax lines. NET HELP command | MORE displays Help one screen at a time. Useful Commands

Network Layer 4-6 Netstat (Netstat.exe) Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, and IPv4/IPv6 statistics. C:\Users\jb>netstat Proto Local Address Foreign Address State TCP :1029 jb-laptop:5354 ESTABLISHED TCP :1036 jb-laptop:27015 ESTABLISHED TCP :1047 jb-laptop:19872 ESTABLISHED TCP :39055 jb-laptop:39054 ESTABLISHED TCP :2492 blugro5relay:2492 ESTABLISHED C:\Users\jb>netstat -s IPv4 Statistics Packets Received = Received Header Errors = 2848 Received Address Errors = Datagrams Forwarded = 0 Unknown Protocols Received = Received Packets Discarded = Received Packets Delivered = Useful Commands

Network Layer 4-7 Network Command Shell (Netsh.exe) Displays or modifies the network configuration of a local or remote computer that is currently running. This command-line scripting utility has a huge number of options, which are fully detailed in Help. TCP/IP Route (Route.exe) Displays and modifies entries in the local IP routing table. C:\Users\jb>route print Interface List dd aa Intel(R) Centrino(R) Wireless-N dd aa Bluetooth Device (Personal Area Network) e VirtualBox Host-Only Ethernet Adapter IPv4 Route Table Network Destination Netmask Gateway Interface Metric On-link On-link On-link On-link On-link On-link On-link On-link On-link On-link Useful Commands

Network Layer 4-8 (Arp.exe) Displays current ARP entries by interrogating the current protocol data. If inet_addr is specified, the IP and Physical addresses for only the specified computer are displayed. If more than one network interface uses ARP, entries for each ARP table are displayed. C:\Users\jb>arp -a Interface: x10 Internet Address Physical Address Type e dynamic c f0 dynamic f0-1f-af-2f-e1-27 dynamic e-c dynamic e d dynamic ff-ff-ff-ff-ff-ff static Useful Commands

Link Layer 5-9 Lecture 14: outline 5.4 LANs  addressing, ARP  Ethernet  switches  VLANS 5.5 link virtualization: MPLS 5.6 data center networking 5.7 a day in the life of a web request

Link Layer 5-10 Ethernet “dominant” wired LAN technology:  cheap $20 for NIC  first widely used LAN technology  simpler, cheaper than token LANs and ATM  kept up with speed race: 10 Mbps – 10 Gbps Metcalfe’s Ethernet sketch

Link Layer 5-11 Ethernet: physical topology  bus: popular through mid 90s  all nodes in same collision domain (can collide with each other)  star: prevails today  active switch in center  each “spoke” runs a (separate) Ethernet protocol (nodes do not collide with each other) switch bus: coaxial cable star

Link Layer 5-12 Ethernet frame structure sending adapter encapsulates IP datagram (or other network layer protocol packet) in Ethernet frame preamble:  7 bytes with pattern followed by one byte with pattern  used to synchronize receiver, sender clock rates dest. address source address data (payload) CRC preamble type

Link Layer 5-13 Ethernet frame structure (more)  addresses: 6 byte source, destination MAC addresses  if adapter receives frame with matching destination address, or with broadcast address (e.g. ARP packet), it passes data in frame to network layer protocol  otherwise, adapter discards frame  type: indicates higher layer protocol (mostly IP but others possible, e.g., Novell IPX, AppleTalk)  CRC: cyclic redundancy check at receiver  error detected: frame is dropped dest. address source address data (payload) CRC preamble type

Link Layer 5-14 Ethernet: unreliable, connectionless  connectionless: no handshaking between sending and receiving NICs  unreliable: receiving NIC doesn’t send acks or nacks to sending NIC  data in dropped frames recovered only if initial sender uses higher layer rdt (e.g., TCP), otherwise dropped data lost  Ethernet’s MAC protocol: unslotted CSMA/CD wth binary backoff

Link Layer X  LAN Management  Defines Logical Link Control – the upper part of the Data Link Layer  Ethernet (wired)  Token Bus  Token Ring  MAN Definition  Ethernet (Wireless)

Link Layer Ethernet standards: link & physical layers  many different Ethernet standards  common MAC protocol and frame format  different speeds: 2 Mbps, 10 Mbps, 100 Mbps, 1Gbps, 10G bps  different physical layer media: fiber, cable application transport network link physical MAC protocol and frame format 100BASE-TX 100BASE-T4 100BASE-FX 100BASE-T2 100BASE-SX 100BASE-BX fiber physical layer copper (twister pair) physical layer

Link Layer 5-17 Lecture 14: outline 5.4 LANs  addressing, ARP  Ethernet  switches  VLANS 5.5 link virtualization: MPLS 5.6 data center networking 5.7 a day in the life of a web request

Link Layer 5-18 Ethernet switch  link-layer device: takes an active role  store, forward Ethernet frames  examine incoming frame’s MAC address, selectively forward frame to one-or-more outgoing links when frame is to be forwarded on segment, uses CSMA/CD to access segment  transparent  hosts are unaware of presence of switches  plug-and-play, self-learning  switches do not need to be configured

Link Layer 5-19 Switch: multiple simultaneous transmissions  hosts have dedicated, direct connection to switch  switches buffer packets  Ethernet protocol used on each incoming link, but no collisions; full duplex  each link is its own collision domain  switching: A-to-A’ and B-to-B’ can transmit simultaneously, without collisions switch with six interfaces (1,2,3,4,5,6) A A’A’ B B’B’ C C’C’

Link Layer 5-20 Switch forwarding table Q: how does switch know A’ reachable via interface 4, and B’ reachable via interface 5? switch with six interfaces (1,2,3,4,5,6) A A’A’ B B’B’ C C’C’  A: each switch has a switch table, each entry:  (MAC address of host, interface to reach host, time stamp)  looks like a routing table! Q: how are entries created, maintained in switch table?  something like a routing protocol?

A A’A’ B B’B’ C C’C’ Link Layer 5-21 Switch: self-learning  switch learns which hosts can be reached through which interfaces  when frame received, switch “learns” location of sender: incoming LAN segment  records sender/location pair in switch table A A’ Source: A Dest: A’ MAC addr interface TTL Switch table (initially empty) A 1 60

Link Layer 5-22 Switch: frame filtering/forwarding when frame received at switch: 1. record incoming link, MAC address of sending host 2. index switch table using MAC destination address 3. if entry found for destination then { if destination on segment from which frame arrived then drop frame else forward frame on interface indicated by entry } else flood /* forward on all interfaces except arriving interface */

A A’A’ B B’B’ C C’C’ Link Layer 5-23 Self-learning, forwarding: example A A’ Source: A Dest: A’ MAC addr interface TTL switch table (initially empty) A 1 60 A A’  frame destination, A’, location unknown: flood A’ A  destination A location known: A’A’ 4 60 selectively send on just one link

Link Layer 5-24 Interconnecting switches  switches can be connected together Q: sending from A to G - how does S 1 know to forward frame destined to F via S 4 and S 3 ?  A: self learning! (works exactly the same as in single-switch case!) A B S1S1 C D E F S2S2 S4S4 S3S3 H I G

Link Layer 5-25 Self-learning multi-switch example Suppose C sends frame to I, I responds to C  Q: show switch tables and packet forwarding in S 1, S 2, S 3, S 4 A B S1S1 C D E F S2S2 S4S4 S3S3 H I G

Link Layer 5-26 Institutional network to external network router IP subnet mail server web server

Link Layer 5-27 Switches vs. routers both are store-and-forward:  routers: network-layer devices (examine network- layer headers)  switches: link-layer devices (examine link-layer headers) both have forwarding tables:  routers: compute tables using routing algorithms, IP addresses  switches: learn forwarding table using flooding, learning, MAC addresses application transport network link physical network link physical link physical switch datagram application transport network link physical frame datagram

Link Layer 5-28 Lecture 14: outline 5.4 LANs  addressing, ARP  Ethernet  Switches  VLANS 5.6 data center networking 5.7 a day in the life of a web request

Link Layer 5-29 Data center networks  10’s to 100’s of thousands of hosts, often closely coupled, in close proximity:  e-business (e.g. Amazon)  content-servers (e.g., YouTube, Akamai, Apple, Microsoft)  search engines, data mining (e.g., Google)  challenges:  multiple applications, each serving massive numbers of clients  managing/balancing load, avoiding processing, networking, data bottlenecks Inside a 40-ft Microsoft container, Chicago data center

Link Layer 5-30 Server racks TOR switches Tier-1 switches Tier-2 switches Load balancer Load balancer B A C Border router Access router Internet Data center networks load balancer: application-layer routing  receives external client requests  directs workload within data center  returns results to external client (hiding data center internals from client)

Server racks TOR switches Tier-1 switches Tier-2 switches Data center networks  rich interconnection among switches, racks:  increased throughput between racks (multiple routing paths possible)  increased reliability via redundancy

Link Layer 5-32 Lecture 14: outline 5.4 LANs  addressing, ARP  Ethernet  switches  VLANS 5.5 link virtualization: MPLS 5.6 data center networking 5.7 a day in the life of a web request

Link Layer 5-33 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

Link Layer 5-34 A day in the life: scenario Comcast network /13 Google’s network / web server DNS server school network /24 web page browser

router (runs DHCP) Link Layer 5-35 A day in the life… connecting to the Internet  connecting laptop needs to get its own IP address, addr of first-hop router, addr of DNS server: use DHCP DHCP UDP IP Eth Phy DHCP UDP IP Eth Phy DHCP  DHCP request encapsulated in UDP, encapsulated in IP, encapsulated in Ethernet  Ethernet frame broadcast (dest: FFFFFFFFFFFF) on LAN, received at router running DHCP server  Ethernet demuxed to IP demuxed, UDP demuxed to DHCP

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

router (runs DHCP) Link Layer 5-37 A day in the life… ARP (before DNS, before HTTP)  before sending HTTP request, need IP address of DNS DNS UDP IP Eth Phy DNS  DNS query created, encapsulated in UDP, encapsulated in IP, encapsulated in Eth. 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 DNS query ARP query Eth Phy ARP ARP reply

router (runs DHCP) Link Layer 5-38 DNS UDP IP Eth Phy DNS  IP datagram containing DNS 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 DNS server  demux’ed to DNS server  DNS server replies to client with IP address of Comcast network /13 DNS server DNS UDP IP Eth Phy DNS A day in the life… using DNS

router (runs DHCP) Link Layer 5-39 A day in the life…TCP connection carrying HTTP HTTP TCP IP Eth Phy HTTP  to send HTTP request, client first opens TCP socket to web server  TCP SYN segment (step 1 in 3- way handshake) inter-domain routed to web server  TCP connection established! web server SYN TCP IP Eth Phy SYN SYNACK  web server responds with TCP SYNACK (step 2 in 3-way handshake)

router (runs DHCP) Link Layer 5-40 A day in the life… HTTP request/reply HTTP TCP IP Eth Phy HTTP  HTTP request sent into TCP socket  IP datagram containing HTTP request routed to  IP datagram containing HTTP reply routed back to client web server HTTP TCP IP Eth Phy  web server responds with HTTP reply (containing web page) HTTP  web page finally (!!!) displayed

The End is Near!