SlideShare a Scribd company logo
Data Communications and Computer Networks
CH-04
Connecting Devices
Baessa K.
Mettu University
College of Engineering and Technology
Department of Information Technology
March 15, 2022
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 1 / 18
Lecture Topics : #
1 Connecting Devices
Hubs
Link-Layer Switches
Routers
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 2 / 18
Connecting Devices
Outline
1 Connecting Devices
Hubs
Link-Layer Switches
Routers
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 3 / 18
Connecting Devices
Introduction
• Hosts and networks do not normally operate in isolation.
• Connecting devices are used to connect hosts together to make a
network or to connect networks together to make an internet.
• Connecting devices can operate in different layers of the Internet
model.
• three kinds of connecting devices:
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 4 / 18
Connecting Devices
Introduction
• Hosts and networks do not normally operate in isolation.
• Connecting devices are used to connect hosts together to make a
network or to connect networks together to make an internet.
• Connecting devices can operate in different layers of the Internet
model.
• three kinds of connecting devices:
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 4 / 18
Connecting Devices Hubs
Outline
1 Connecting Devices
Hubs
Link-Layer Switches
Routers
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 5 / 18
Connecting Devices Hubs
Hubs
• A hub is a device that operates only in the physical layer.
• Signals that carry information within a network can travel a fixed
distance before attenuation endangers the integrity of the data.
• A repeater receives a signal and, before it becomes too weak or
corrupted, regenerates and retimes the original bit pattern.
• The repeater then sends the refreshed signal.
• In the past, when Ethernet LANs were using bus topology,
• …a repeater was used to connect two segments of a LAN to overcome
the length restriction of the coaxial cable.
• Today, however, Ethernet LANs use star topology.
• In a star topology, a repeater is a multiport device, often called a hub,
• …that can be used to serve as the connecting point and
• …at the same time function as a repeater.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 6 / 18
Connecting Devices Hubs
Hubs
• A hub is a device that operates only in the physical layer.
• Signals that carry information within a network can travel a fixed
distance before attenuation endangers the integrity of the data.
• A repeater receives a signal and, before it becomes too weak or
corrupted, regenerates and retimes the original bit pattern.
• The repeater then sends the refreshed signal.
• In the past, when Ethernet LANs were using bus topology,
• …a repeater was used to connect two segments of a LAN to overcome
the length restriction of the coaxial cable.
• Today, however, Ethernet LANs use star topology.
• In a star topology, a repeater is a multiport device, often called a hub,
• …that can be used to serve as the connecting point and
• …at the same time function as a repeater.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 6 / 18
Connecting Devices Hubs
Hubs
• A hub is a device that operates only in the physical layer.
• Signals that carry information within a network can travel a fixed
distance before attenuation endangers the integrity of the data.
• A repeater receives a signal and, before it becomes too weak or
corrupted, regenerates and retimes the original bit pattern.
• The repeater then sends the refreshed signal.
• In the past, when Ethernet LANs were using bus topology,
• …a repeater was used to connect two segments of a LAN to overcome
the length restriction of the coaxial cable.
• Today, however, Ethernet LANs use star topology.
• In a star topology, a repeater is a multiport device, often called a hub,
• …that can be used to serve as the connecting point and
• …at the same time function as a repeater.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 6 / 18
Connecting Devices Hubs
Hubs …
• hub forwards the packet from all outgoing ports except the one from
which the signal was received.
• …the frame is broadcast.
• All stations in the LAN receive the frame, but only station B keeps it.
• The rest of the stations discard it
• hub does not have a filtering capability
• it does not have the intelligence to find from which port the frame
should be sent out.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 7 / 18
Connecting Devices Hubs
Hubs …
• A hub or a repeater is a physical-layer device.
• They do not have a link-layer address and they do not check the
link-layer address of the received frame.
• They just regenerate the corrupted bits and send them out from every
port.
• There are two types of hubs
1 Passive Hubs
• it does nothing except provide a pathway for the electrical signals to
travel along.
2 Active Hubs
• provide a pathway PLUS regenerates the signal before it forwards
• A Hub does not perform any processing on the data that it forwards,
nor does it perform any error checking.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 8 / 18
Connecting Devices Hubs
Hubs …
• A hub or a repeater is a physical-layer device.
• They do not have a link-layer address and they do not check the
link-layer address of the received frame.
• They just regenerate the corrupted bits and send them out from every
port.
• There are two types of hubs
1 Passive Hubs
• it does nothing except provide a pathway for the electrical signals to
travel along.
2 Active Hubs
• provide a pathway PLUS regenerates the signal before it forwards
• A Hub does not perform any processing on the data that it forwards,
nor does it perform any error checking.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 8 / 18
Connecting Devices Hubs
Hubs …
• A hub or a repeater is a physical-layer device.
• They do not have a link-layer address and they do not check the
link-layer address of the received frame.
• They just regenerate the corrupted bits and send them out from every
port.
• There are two types of hubs
1 Passive Hubs
• it does nothing except provide a pathway for the electrical signals to
travel along.
2 Active Hubs
• provide a pathway PLUS regenerates the signal before it forwards
• A Hub does not perform any processing on the data that it forwards,
nor does it perform any error checking.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 8 / 18
Connecting Devices Link-Layer Switches
Outline
1 Connecting Devices
Hubs
Link-Layer Switches
Routers
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 9 / 18
Connecting Devices Link-Layer Switches
Link-Layer Switches
• Operates in both the physical and the data-link layers.
• As a physical-layer device,
• …it regenerates the signal it receives.
• As a link-layer device,
• …the link-layer switch can check the MAC addresses (source and
destination) contained in the frame.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 10 / 18
Connecting Devices Link-Layer Switches
Link-Layer Switches …
Filtering
• A link-layer switch has filtering capability.
• It can check the destination address of a frame and can decide from
which outgoing port the frame should be sent.
• A link-layer switch has a table used in filtering decisions.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 11 / 18
Connecting Devices Link-Layer Switches
Link-Layer Switches …
• Advantages of Switches
• A link-layer switch has several advantages over a hub.
• Collision Elimination
• by creating a direct path between two devices and controlling their
communication,
• …it can greatly reduce the number of collisions on the network.
• the lack of collisions enables switches to communicate with
devices in full-duplex mode.
• Connecting Heterogenous Devices
• A link-layer switch can connect devices that use different protocols
at the physical layer (data rates) and different transmission media.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 12 / 18
Connecting Devices Link-Layer Switches
Link-Layer Switches …
• There are three kinds of switching methods:
1 Cut-through
• packet begins to be forwarded as soon as it is received (fast, but error
prone)
• the switch starts the frame processing as soon as it reads the
destination MAC address of the frame.
• To start the frame processing, a switch only needs the destination MAC
address.
• Just after reading the destination address, it checks the CAM table and
based on the match it starts the forwarding of the frame
2 Store-and-forward
• entire packet is received and error checked before being forwarded
(error-free, but slow)
• After receiving the entire frame, switch verifies whether the received
frame is in the good state or not.
• If the received frame is in the good state, only then the switch
processes it.
• If the received frame is not in the good state, the switch discards it.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 13 / 18
Connecting Devices Link-Layer Switches
Link-Layer Switches …
3 Fragment-Free
• enough of the packet is read to check errors (Takes advantage of both).
• the switch starts the frame processing after reading the first 64 bytes of
the frame.
• 64 bytes is the minimum legal size of an Ethernet frame
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 14 / 18
Connecting Devices Link-Layer Switches
Link-Layer Switches …
Internal frame processing
• A switch has multiple ports.
• These ports are used to connect various devices with it.
• To know which device is connected to which port, the switch stores
the MAC addresses of all connected devices with their related ports in
a table, known as the CAM table.
• When a switch receives a frame on any of its port, it reads the
destination address from the frame and finds that destination address
in the CAM table.
• If the CAM table has an entry for that destination address,
• …the switch forwards that frame from the port on which the
destination address is connected.
• If the CAM table does not have an entry for that destination address,
the switch forwards that frame from all of its ports.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 15 / 18
Connecting Devices Routers
Outline
1 Connecting Devices
Hubs
Link-Layer Switches
Routers
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 16 / 18
Connecting Devices Routers
Routers
• A router is a three-layer device; it operates in the physical, data-link,
and network layers
• As a physical-layer device, it regenerates the signal it receives.
• As a link-layer device,the router checks the physical addresses (source
and destination) contained in the packet
• As a network-layer device, a router checks the network-layer addresses.
• A router can connect networks.
• a router is an internetworking device;
• …it connects independent networks to form an internetwork.
• …two networks connected by a router become an internetwork or an
internet.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 17 / 18
Connecting Devices Routers
Router …
• There are three major differences between a router and a repeater or
a switch
1 A router has a physical and logical (IP) address for each of its
interfaces.
2 A router acts only on those packets in which the link-layer destination
address matches the address of the interface at which the packet
arrives.
3 A router changes the link-layer address of the packet (both source and
destination) when it forwards the packet.
Baessa K. (Mettu University) 04 Data link layer March 15, 2022 18 / 18

More Related Content

PPTX
chapter 5.1.pptx
PPTX
Interconnecting devies
PPTX
Switches, Routers and different routing protocols
PPT
1 networking devices 2014
PPT
Computer networkingdevices
PPTX
Chapter 3 1-network_design_with_internet_tools - Network Design
chapter 5.1.pptx
Interconnecting devies
Switches, Routers and different routing protocols
1 networking devices 2014
Computer networkingdevices
Chapter 3 1-network_design_with_internet_tools - Network Design

Similar to Data communication and computer network- chapter 04.pdf (20)

PPTX
Network hardware essentials Lec#3
PPT
chapter7.ppt introduction to networking and subneting for ip version four
PPTX
Chapter V-Connecting LANs, Backbone Networks, and Virtual LANs.pptx
PPTX
NETWORK INFRASTRUCTURE MANAGEMENT-mod1_1.pptx
PPT
Internetworking devices(networking)
PPT
chapter 4 networking: Connecting Devices.ppt
PPTX
Internet of Things Communication API and Levels
PDF
Best fit topology - lo1 part iii
PPTX
Chapter 5 - Data Communication and Internet Technology Pt.1.pptx
PPT
Networkdevices by Jetarvind kumar madhukar
PPTX
Network Topologies, L1-L2 Basics, Networking Devices
PPTX
Computer network_network devices
PPT
Basic networking hardware pre final 1
PPTX
Connecting devices
PDF
1.NggggggggggghhhhhhhhhhS UNIT - 1.pptx.pdf
PPTX
Data communication and computer network Chapter 2.pptx
PDF
Chapter - 2 Fundamental Network Concept.pdf
PPTX
Network Connecting Devices UNIT 5
PPTX
Module-1_Introduction to Data Communications.pptx
PPTX
Computer networking devices
Network hardware essentials Lec#3
chapter7.ppt introduction to networking and subneting for ip version four
Chapter V-Connecting LANs, Backbone Networks, and Virtual LANs.pptx
NETWORK INFRASTRUCTURE MANAGEMENT-mod1_1.pptx
Internetworking devices(networking)
chapter 4 networking: Connecting Devices.ppt
Internet of Things Communication API and Levels
Best fit topology - lo1 part iii
Chapter 5 - Data Communication and Internet Technology Pt.1.pptx
Networkdevices by Jetarvind kumar madhukar
Network Topologies, L1-L2 Basics, Networking Devices
Computer network_network devices
Basic networking hardware pre final 1
Connecting devices
1.NggggggggggghhhhhhhhhhS UNIT - 1.pptx.pdf
Data communication and computer network Chapter 2.pptx
Chapter - 2 Fundamental Network Concept.pdf
Network Connecting Devices UNIT 5
Module-1_Introduction to Data Communications.pptx
Computer networking devices
Ad

More from fikadumeuedu (19)

PPTX
Chapter 04 Object Oriented programming .pptx
PPTX
Chapter 1 history and overview of Operating system.pptx
PPTX
Operating system Chapter 3 Part-1 process and threads.pptx
PPTX
Data structure chapter 2 Time complexity of known algorithms.pptx
PDF
Information storage and Retrieval-Chapter 2 Updated.pdf
PDF
Advanced programming chapter 2 - Java Applet.pdf
PDF
Information storage and Retrieval-chapter 3.pdf
DOC
chapter 5--Data Communications and Computer Networks.doc
DOC
Chapter 4--Data representation Method.doc
PDF
windows 7 installation guide edit how to install window 7.pdf
PDF
Computer maintenance tool and parts chapter1.pdf
PPTX
Advanced Database System Chapter 2 Transaction.pptx
PDF
Data communication and computer network-Chapter 05.pdf
PDF
Data communication and computer network- Chapter 03.pdf
PDF
Chapter seven Laptop and other devices1.pdf
PPTX
ARTIFICICIAL INTELLIGENT LECTURE NOTE Chapter 1.pptx
PPTX
Telecom Technologies lecture note Chapter 1.pptx
PPTX
Artificial Intelligent lecture note chapter 1.pptx
PPTX
1Chapter_ Two_ 2 Data Preparation lecture note.pptx
Chapter 04 Object Oriented programming .pptx
Chapter 1 history and overview of Operating system.pptx
Operating system Chapter 3 Part-1 process and threads.pptx
Data structure chapter 2 Time complexity of known algorithms.pptx
Information storage and Retrieval-Chapter 2 Updated.pdf
Advanced programming chapter 2 - Java Applet.pdf
Information storage and Retrieval-chapter 3.pdf
chapter 5--Data Communications and Computer Networks.doc
Chapter 4--Data representation Method.doc
windows 7 installation guide edit how to install window 7.pdf
Computer maintenance tool and parts chapter1.pdf
Advanced Database System Chapter 2 Transaction.pptx
Data communication and computer network-Chapter 05.pdf
Data communication and computer network- Chapter 03.pdf
Chapter seven Laptop and other devices1.pdf
ARTIFICICIAL INTELLIGENT LECTURE NOTE Chapter 1.pptx
Telecom Technologies lecture note Chapter 1.pptx
Artificial Intelligent lecture note chapter 1.pptx
1Chapter_ Two_ 2 Data Preparation lecture note.pptx
Ad

Recently uploaded (20)

PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Institutional Correction lecture only . . .
PPTX
Cell Structure & Organelles in detailed.
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
master seminar digital applications in india
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Business Ethics Teaching Materials for college
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Insiders guide to clinical Medicine.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Renaissance Architecture: A Journey from Faith to Humanism
Abdominal Access Techniques with Prof. Dr. R K Mishra
Institutional Correction lecture only . . .
Cell Structure & Organelles in detailed.
Anesthesia in Laparoscopic Surgery in India
O7-L3 Supply Chain Operations - ICLT Program
Final Presentation General Medicine 03-08-2024.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
PPH.pptx obstetrics and gynecology in nursing
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
master seminar digital applications in india
Microbial disease of the cardiovascular and lymphatic systems
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Business Ethics Teaching Materials for college
VCE English Exam - Section C Student Revision Booklet
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Insiders guide to clinical Medicine.pdf

Data communication and computer network- chapter 04.pdf

  • 1. Data Communications and Computer Networks CH-04 Connecting Devices Baessa K. Mettu University College of Engineering and Technology Department of Information Technology March 15, 2022 Baessa K. (Mettu University) 04 Data link layer March 15, 2022 1 / 18
  • 2. Lecture Topics : # 1 Connecting Devices Hubs Link-Layer Switches Routers Baessa K. (Mettu University) 04 Data link layer March 15, 2022 2 / 18
  • 3. Connecting Devices Outline 1 Connecting Devices Hubs Link-Layer Switches Routers Baessa K. (Mettu University) 04 Data link layer March 15, 2022 3 / 18
  • 4. Connecting Devices Introduction • Hosts and networks do not normally operate in isolation. • Connecting devices are used to connect hosts together to make a network or to connect networks together to make an internet. • Connecting devices can operate in different layers of the Internet model. • three kinds of connecting devices: Baessa K. (Mettu University) 04 Data link layer March 15, 2022 4 / 18
  • 5. Connecting Devices Introduction • Hosts and networks do not normally operate in isolation. • Connecting devices are used to connect hosts together to make a network or to connect networks together to make an internet. • Connecting devices can operate in different layers of the Internet model. • three kinds of connecting devices: Baessa K. (Mettu University) 04 Data link layer March 15, 2022 4 / 18
  • 6. Connecting Devices Hubs Outline 1 Connecting Devices Hubs Link-Layer Switches Routers Baessa K. (Mettu University) 04 Data link layer March 15, 2022 5 / 18
  • 7. Connecting Devices Hubs Hubs • A hub is a device that operates only in the physical layer. • Signals that carry information within a network can travel a fixed distance before attenuation endangers the integrity of the data. • A repeater receives a signal and, before it becomes too weak or corrupted, regenerates and retimes the original bit pattern. • The repeater then sends the refreshed signal. • In the past, when Ethernet LANs were using bus topology, • …a repeater was used to connect two segments of a LAN to overcome the length restriction of the coaxial cable. • Today, however, Ethernet LANs use star topology. • In a star topology, a repeater is a multiport device, often called a hub, • …that can be used to serve as the connecting point and • …at the same time function as a repeater. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 6 / 18
  • 8. Connecting Devices Hubs Hubs • A hub is a device that operates only in the physical layer. • Signals that carry information within a network can travel a fixed distance before attenuation endangers the integrity of the data. • A repeater receives a signal and, before it becomes too weak or corrupted, regenerates and retimes the original bit pattern. • The repeater then sends the refreshed signal. • In the past, when Ethernet LANs were using bus topology, • …a repeater was used to connect two segments of a LAN to overcome the length restriction of the coaxial cable. • Today, however, Ethernet LANs use star topology. • In a star topology, a repeater is a multiport device, often called a hub, • …that can be used to serve as the connecting point and • …at the same time function as a repeater. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 6 / 18
  • 9. Connecting Devices Hubs Hubs • A hub is a device that operates only in the physical layer. • Signals that carry information within a network can travel a fixed distance before attenuation endangers the integrity of the data. • A repeater receives a signal and, before it becomes too weak or corrupted, regenerates and retimes the original bit pattern. • The repeater then sends the refreshed signal. • In the past, when Ethernet LANs were using bus topology, • …a repeater was used to connect two segments of a LAN to overcome the length restriction of the coaxial cable. • Today, however, Ethernet LANs use star topology. • In a star topology, a repeater is a multiport device, often called a hub, • …that can be used to serve as the connecting point and • …at the same time function as a repeater. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 6 / 18
  • 10. Connecting Devices Hubs Hubs … • hub forwards the packet from all outgoing ports except the one from which the signal was received. • …the frame is broadcast. • All stations in the LAN receive the frame, but only station B keeps it. • The rest of the stations discard it • hub does not have a filtering capability • it does not have the intelligence to find from which port the frame should be sent out. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 7 / 18
  • 11. Connecting Devices Hubs Hubs … • A hub or a repeater is a physical-layer device. • They do not have a link-layer address and they do not check the link-layer address of the received frame. • They just regenerate the corrupted bits and send them out from every port. • There are two types of hubs 1 Passive Hubs • it does nothing except provide a pathway for the electrical signals to travel along. 2 Active Hubs • provide a pathway PLUS regenerates the signal before it forwards • A Hub does not perform any processing on the data that it forwards, nor does it perform any error checking. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 8 / 18
  • 12. Connecting Devices Hubs Hubs … • A hub or a repeater is a physical-layer device. • They do not have a link-layer address and they do not check the link-layer address of the received frame. • They just regenerate the corrupted bits and send them out from every port. • There are two types of hubs 1 Passive Hubs • it does nothing except provide a pathway for the electrical signals to travel along. 2 Active Hubs • provide a pathway PLUS regenerates the signal before it forwards • A Hub does not perform any processing on the data that it forwards, nor does it perform any error checking. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 8 / 18
  • 13. Connecting Devices Hubs Hubs … • A hub or a repeater is a physical-layer device. • They do not have a link-layer address and they do not check the link-layer address of the received frame. • They just regenerate the corrupted bits and send them out from every port. • There are two types of hubs 1 Passive Hubs • it does nothing except provide a pathway for the electrical signals to travel along. 2 Active Hubs • provide a pathway PLUS regenerates the signal before it forwards • A Hub does not perform any processing on the data that it forwards, nor does it perform any error checking. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 8 / 18
  • 14. Connecting Devices Link-Layer Switches Outline 1 Connecting Devices Hubs Link-Layer Switches Routers Baessa K. (Mettu University) 04 Data link layer March 15, 2022 9 / 18
  • 15. Connecting Devices Link-Layer Switches Link-Layer Switches • Operates in both the physical and the data-link layers. • As a physical-layer device, • …it regenerates the signal it receives. • As a link-layer device, • …the link-layer switch can check the MAC addresses (source and destination) contained in the frame. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 10 / 18
  • 16. Connecting Devices Link-Layer Switches Link-Layer Switches … Filtering • A link-layer switch has filtering capability. • It can check the destination address of a frame and can decide from which outgoing port the frame should be sent. • A link-layer switch has a table used in filtering decisions. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 11 / 18
  • 17. Connecting Devices Link-Layer Switches Link-Layer Switches … • Advantages of Switches • A link-layer switch has several advantages over a hub. • Collision Elimination • by creating a direct path between two devices and controlling their communication, • …it can greatly reduce the number of collisions on the network. • the lack of collisions enables switches to communicate with devices in full-duplex mode. • Connecting Heterogenous Devices • A link-layer switch can connect devices that use different protocols at the physical layer (data rates) and different transmission media. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 12 / 18
  • 18. Connecting Devices Link-Layer Switches Link-Layer Switches … • There are three kinds of switching methods: 1 Cut-through • packet begins to be forwarded as soon as it is received (fast, but error prone) • the switch starts the frame processing as soon as it reads the destination MAC address of the frame. • To start the frame processing, a switch only needs the destination MAC address. • Just after reading the destination address, it checks the CAM table and based on the match it starts the forwarding of the frame 2 Store-and-forward • entire packet is received and error checked before being forwarded (error-free, but slow) • After receiving the entire frame, switch verifies whether the received frame is in the good state or not. • If the received frame is in the good state, only then the switch processes it. • If the received frame is not in the good state, the switch discards it. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 13 / 18
  • 19. Connecting Devices Link-Layer Switches Link-Layer Switches … 3 Fragment-Free • enough of the packet is read to check errors (Takes advantage of both). • the switch starts the frame processing after reading the first 64 bytes of the frame. • 64 bytes is the minimum legal size of an Ethernet frame Baessa K. (Mettu University) 04 Data link layer March 15, 2022 14 / 18
  • 20. Connecting Devices Link-Layer Switches Link-Layer Switches … Internal frame processing • A switch has multiple ports. • These ports are used to connect various devices with it. • To know which device is connected to which port, the switch stores the MAC addresses of all connected devices with their related ports in a table, known as the CAM table. • When a switch receives a frame on any of its port, it reads the destination address from the frame and finds that destination address in the CAM table. • If the CAM table has an entry for that destination address, • …the switch forwards that frame from the port on which the destination address is connected. • If the CAM table does not have an entry for that destination address, the switch forwards that frame from all of its ports. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 15 / 18
  • 21. Connecting Devices Routers Outline 1 Connecting Devices Hubs Link-Layer Switches Routers Baessa K. (Mettu University) 04 Data link layer March 15, 2022 16 / 18
  • 22. Connecting Devices Routers Routers • A router is a three-layer device; it operates in the physical, data-link, and network layers • As a physical-layer device, it regenerates the signal it receives. • As a link-layer device,the router checks the physical addresses (source and destination) contained in the packet • As a network-layer device, a router checks the network-layer addresses. • A router can connect networks. • a router is an internetworking device; • …it connects independent networks to form an internetwork. • …two networks connected by a router become an internetwork or an internet. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 17 / 18
  • 23. Connecting Devices Routers Router … • There are three major differences between a router and a repeater or a switch 1 A router has a physical and logical (IP) address for each of its interfaces. 2 A router acts only on those packets in which the link-layer destination address matches the address of the interface at which the packet arrives. 3 A router changes the link-layer address of the packet (both source and destination) when it forwards the packet. Baessa K. (Mettu University) 04 Data link layer March 15, 2022 18 / 18