NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are here.

Slides:



Advertisements
Similar presentations
Interconnection: Switching and Bridging CS 4251: Computer Networking II Nick Feamster Fall 2008.
Advertisements

ARP AND RARP ROUTED AND ROUTING Tyler Bish. ARP There are a variety of ways that devices can determine the MAC addresses they need to add to the encapsulated.
Media Access Control (MAC) addresses in the network access layer ▫ Associated w/ network interface card (NIC) ▫ 48 bits or 64 bits IP addresses for the.
8-1 Last time □ Network layer ♦ Introduction forwarding vs. routing ♦ Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding.
 As defined in RFC 826 ARP consists of the following messages ■ ARP Request ■ ARP Reply.
DHCP Dynamic Host Configuration Part 7 NVCC Professional Development TCP/IP.
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.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
1 Interconnection ECS 152A. 2 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r But individual.
Subnetting.
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:
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
IP Routing: an Introduction. Quiz
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
Lecture 8 Modeling & Simulation of Communication Networks.
Virtual LANs. VLAN introduction VLANs logically segment switched networks based on the functions, project teams, or applications of the organization regardless.
Connecting LANs, Backbone Networks, and Virtual LANs
Support Protocols and Technologies. Topics Filling in the gaps we need to make for IP forwarding work in practice – Getting IP addresses (DHCP) – Mapping.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CECS 5460 – Assignment 3 Stacey VanderHeiden Güney.
Network Redundancy Multiple paths may exist between systems. Redundancy is not a requirement of a packet switching network. Redundancy was part of the.
DHCP: Dynamic Host Configuration Protocol
Chapter 4: Managing LAN Traffic
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
Connecting LANs, Backbone Networks, and Virtual LANs
Connecting Networks © 2004 Cisco Systems, Inc. All rights reserved. Exploring How IP Address Protocols Work INTRO v2.0—4-1.
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
Common Devices Used In Computer Networks
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
1 A L L A H. Introduction to Computer Networks INTRODUCTION TO COMPUTER NETWORKS.
CS3502: Data and Computer Networks Local Area Networks - 4 Bridges / LAN internetworks.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
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.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
Connecting The Network Layer to Data Link Layer. ARP in the IP Layer The Address Resolution Protocol (ARP) The Address Resolution Protocol (ARP) Part.
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.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 7 Internet Protocol (IP) Routing.
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
Data Link Layer Moving Frames. Link Layer Protocols: ethernet, wireless, Token Ring and PPP Has node-to-node job of moving network layer.
LAN Devices  Purposes: Dividing the network into subnets Dividing the network into subnets Joining two networks together Joining two networks together.
Network Essentials -III Prof. Sujata Rao Lesson 12.
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:
Birgit Bonham: Prospect High School ARP….or What’s your MAC address?
Media Access Control (MAC) addresses in the network access layer ▫ Associated w/ network interface card (NIC) ▫ 48 bits or 64 bits IP addresses for the.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
4: DataLink Layer1 Hubs r Physical Layer devices: essentially repeaters operating at bit levels: repeat received bits on one interface to all other interfaces.
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.
TCP/IP Protocol Suite and IP Addressing Presented By : Dupien AMS.
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.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
1 Layer 3: Protocols Honolulu Community College Cisco Academy Training Center Semester 1 Version
Introduction to Networks
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Link Layer 5.1 Introduction and services
MAC Addresses and ARP 32-bit IP address:
ICMP ICMP – Internet Control Message Protocol
Chapter 4 Data Link Layer Switching
Hubs Hubs are essentially physical-layer repeaters:
ARP: Address Resolution Protocol
One Upon A Time Computer Networks
Hubs Hubs are essentially physical-layer repeaters:
Introduction to Networks
Chapter 15. Connecting Devices
Chapter 5 Data Link Layer – Hub, Switch
Chapter 5: Link Layer 5.1 Introduction and services
Presentation transcript:

NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are here

NUS.SOC.CS2105 Ooi Wei Tsang Physical node-to-node bit-by-bit Network host-to-host Link node-to-node frame-by-frame

NUS.SOC.CS2105 Ooi Wei Tsang

NUS.SoC.CS2105 Ooi Wei Tsang MAC Address 90:AF:F4:CA:BA:03

NUS.SoC.CS2105 Ooi Wei Tsang Broadcast Address FF:FF:FF:FF:FF:FF

NUS.SoC.CS2105 Ooi Wei Tsang Link Layer Addressing Network Link Network Link

NUS.SoC.CS2105 Ooi Wei Tsang Why Two Addresses? :AF:F4:CA:BA:03

Why two addresses? We want to keep the link layer and network layer independent so that the link layer can work with other network layer besides IP. We also want efficiency -- we want the adapter to be able to decide if a frame received is addressed to the adapter. To do this we need an address in the hardware. But if we use network address here, then the hardware need to be reconfigured everytime the newtork address changes.

NUS.SoC.CS2105 Ooi Wei Tsang Link Layer Addressing Network Link Network Link

NUS.SoC.CS2105 Ooi Wei Tsang ARP Address Resolution Protocol

NUS.SoC.CS2105 Ooi Wei Tsang ARP “What is the MAC address of ?”

NUS.SoC.CS2105 Ooi Wei Tsang HEY! WHAT IS THE MAC ADDRESS OF ? HEY! WHAT IS THE MAC ADDRESS OF ?

NUS.SoC.CS2105 Ooi Wei Tsang That’s me! That’s me! not me

NUS.SoC.CS2105 Ooi Wei Tsang The MAC address of is FB:CA:73:8A:9C:DD The MAC address of is FB:CA:73:8A:9C:DD

NUS.SoC.CS2105 Ooi Wei Tsang ARP Table

Address Resolution Protocol ARP maps from the IP address of a node on the same subnet to its MAC address. A node, wanting to find out the MAC address of a host with IP address of X, first broadcasts an ARP query message onto its subnet. The host with matching IP address X replies (using unicast) with an ARP response, containing its MAC address. Information from ARP is temporarily cached in an ARP table. Entries in ARP table has a timer (just like DNS tables and RIP tables and NAT table) and the entry is removed when its timer expires.

NUS.SoC.CS2105 Ooi Wei Tsang

Inter-subnet Communications A router has multiple interfaces/adapters/IP addresses/MAC addresses. Suppose a node A sends a packet P to another node B outside its subnet. Packet P must go through the router R first. P’s destination MAC address is the MAC address of R (not B) on the same subnet. R changes the destination MAC address to the MAC address of the destination node B, and forwards the packet to the destination subnet.

NUS.SoC.CS2105 Ooi Wei Tsang DHCP Dynamic Host Configuration Protocol

NUS.SoC.CS2105 Ooi Wei Tsang DHCP discovery “I NEED AN IP ADDRESS!”

NUS.SoC.CS2105 Ooi Wei Tsang DHCP server offers “You can have for 20 mins” “You can have for 1 hr” :

NUS.SoC.CS2105 Ooi Wei Tsang DHCP request “OK, let me have for 20 mins”

NUS.SoC.CS2105 Ooi Wei Tsang DHCP ACK “Your IP is now for 20 mins”

DHCP DHCP is used by a host to obtain an IP address. Each administrative domain has some DHCP servers. A client broadcasts a DHCP discover message (over UDP). A DHCP server replies with a DHCP offer, offering an IP address and lease time to the client. A client may receive multiple offers. It picks an offer and broadcast a DHCP request back, echoing the DHCP offer it has chosen. The chosen DHCP server then response with DHCP ACK. If the DHCP server is located on a different subnet, the router (configured to be a relay agent) will forward the DHCP messages across two different subnets.

NUS.SoC.CS2105 Ooi Wei Tsang

NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical DHCP ARP

DHCP and ARP DHCP runs at the application layer (on top of UDP). ARP runs at the network/link layer (on top of link layer).

NUS.SoC.CS2105 Ooi Wei Tsang Hub

NUS.SoC.CS2105 Ooi Wei Tsang

Hubs A hub is a physical layer device. When it receives a bit from one of its interface, it simply repeats it on all its outgoing interfaces. It does not provide multiple access control (e.g. no collision detection) Connecting LAN segments using hubs has its limitations: (1) it merges the LAN segments into one collision domain, (2) it only connects LAN using the same Ethernet technology, and (3) there is a limit to number of nodes and maximum distance between nodes.

NUS.SoC.CS2105 Ooi Wei Tsang Switch

NUS.SoC.CS2105 Ooi Wei Tsang

Switches A switch is a link-layer devices. It operates on Ethernet frames. When a frame is received, it checks the destination address and either forwards it to correct interface or drops (filters) it. Switches understands CSMA/CD and therefore separates the LAN segment into different collision domain. A switching table on a switch contains mapping from MAC addresses and its corresponding interfaces. An entry (X, Y) is created automatically when the switch received a frame from MAC address X on interface Y. Entries are deleted after they expires (have not heard from X for some time).

NUS.SoC.CS2105 Ooi Wei Tsang Switch? Router?

Switches vs Routers Switches does not modify MAC address of frames, but routers do. Adapters on switches do not have MAC addresses. Switches support plug-and-play, while routers needs their interfaces’ IP address to be configured Topology using switch is restricted to a tree, while routers (due to shortest path routing and TTL) allows loops. Switch is suitable for smaller networks, while router should be used for larger networks.